{"version":3,"sources":["webpack:///./src/components/volunteers/VolunteerForm.vue?6393","webpack:///./src/components/volunteers/VolunteerForm.vue","webpack:///./src/components/volunteers/VolunteerForm.vue?ee68","webpack:///./src/components/volunteers/VolunteerForm.vue?7b6b","webpack:///./src/store/volunteers-api.ts","webpack:///../../../src/mixins/rippleable/index.ts","webpack:///./src/common/validators/rules.ts","webpack:///../../../src/components/VCheckbox/VCheckbox.ts","webpack:///../../../src/mixins/selectable/index.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","model","value","callback","$$v","thanks","expression","_v","on","$event","ref","preventDefault","submit","validators","required","scopedSlots","_u","key","fn","name","stopPropagation","proxy","volunteer","$set","maxLength","staticRenderFns","volunteersStore","$refs","form","validate","save","then","reset","VolunteerForm","component","VAlert","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCheckbox","VCol","VDialog","VDivider","VForm","VRow","VSpacer","VTextField","getAll","get","post","edit","put","directives","ripple","props","type","Boolean","default","methods","genRipple","data","center","v","Array","isArray","length","toString","trim","email","test","requiredIf","other","message","indeterminate","indeterminateIcon","offIcon","onIcon","inputIndeterminate","computed","classes","computedIcon","validationState","isDisabled","hasError","hasColor","watch","isActive","genCheckbox","checkboxAttrs","staticClass","setTextColor","dense","dark","light","genInput","genDefaultSlot","e","prop","event","id","inputValue","falseValue","trueValue","multiple","label","String","lazyValue","computedColor","isDark","isMultiple","input","item","undefined","valueComparator","isDirty","rippleState","genLabel","click","prevent","Object","disabled","role","domProps","checked","blur","change","focus","keydown","onClick","onChange","onFocus","onBlur","onKeydown"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,WAAW,CAACE,MAAM,CAAC,MAAQ,OAAOC,MAAM,CAACC,MAAOR,EAAU,OAAES,SAAS,SAAUC,GAAMV,EAAIW,OAAOD,GAAKE,WAAW,W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m=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"width\":\"400\"},model:{value:(_vm.thanks),callback:function ($$v) {_vm.thanks=$$v},expression:\"thanks\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Save Complete\")]),_c('v-card-text',[_c('v-alert',{attrs:{\"type\":\"success\"}},[_vm._v(\" Thank you for volunteering! \")])],1),_c('v-divider'),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":function($event){_vm.thanks = false}}},[_vm._v(\"Close\")])],1)],1)],1),_c('v-form',{ref:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.submit($event)}}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Register as a Volunteer\")]),_c('v-card-text',[_c('p',[_vm._v(\" Ongar Chasers recognises the key role coaches, team managers and all club officers play in the lives of children in sport. All volunteers should have as their first priority the children’s safety and enjoyment of the sport and should adhere to the guidelines and regulations set out by Basketball Ireland, Sport Ireland and Children First. \")]),_c('p',[_vm._v(\" Volunteers must respect the rights, dignity and worth of every child and must treat everyone equally, regardless of gender, ethnic origin, religion or ability. \")]),_c('p',[_vm._v(\"All Volunteers must:\")]),_c('ol',[_c('li',[_vm._v(\" Be Familiar with Club Policies (Each year a new declaration must be signed) \")]),_c('li',[_vm._v(\"Be Garda Vetted (renewed every 5 years)\")]),_c('li',[_vm._v(\" Attend a Safeguarding Course (Level 1). (This qualification is renewed every 2 years) \")]),_c('li',[_vm._v(\"Have a Coaching License (not required for Team Managers)\")]),_c('li',[_vm._v(\"Have completed Covid 19 Training\")])]),_c('p',[_vm._v(\"All Volunteers should be familiar with:\")]),_c('ol',[_c('li',[_vm._v(\"The responsibilities of the role\")]),_c('li',[_vm._v(\"The level of experience/qualifications required\")]),_c('li',[_vm._v(\" Sport Ireland Ethics: Safeguarding Guidance for Children & Young People in Sport. (www.sportireland.ie) \")]),_c('li',[_vm._v(\" Basketball Ireland \"),_c('a',{attrs:{\"href\":\"https://sportlomo-userupload.s3.amazonaws.com/uploaded/galleries/638_uploaded/935a9b7c9639354caa16e7cbf37c7621e64d047d.pdf\",\"target\":\"_blank\"}},[_vm._v(\"Code of Conduct for Coaches\")]),_vm._v(\". \")])]),_c('h3',[_vm._v(\"GDPR\")]),_c('p',[_vm._v(\" As volunteers you will have access to personal data of Team Members through the website, the Treasurer and Team Lists. It is important that you follow club GDPR policy regarding this Personnel Data, especially with the retaining of the data and destruction of the data when you no longer need it. Any breach of data MUST be reported to the DPO (\"),_c('a',{attrs:{\"href\":\"mailto:data@ongarchasers.com\"}},[_vm._v(\"data@ongarchasers.com\")]),_vm._v(\") as soon as a breach has been discovered. The Club has 72hrs to report to the DPC. \")]),_c('v-checkbox',{attrs:{\"rules\":[_vm.validators.required()]},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',[_vm._v(\"I approve the \"),_c('router-link',{attrs:{\"to\":{ name: 'member.policies.gdpr' }},on:{\"click\":function($event){$event.stopPropagation();}}},[_vm._v(\"GDPR Policy\")])],1)]},proxy:true}]),model:{value:(_vm.volunteer.gdpr),callback:function ($$v) {_vm.$set(_vm.volunteer, \"gdpr\", $$v)},expression:\"volunteer.gdpr\"}}),_c('h3',[_vm._v(\"Club Responsibilities\")]),_c('p',[_vm._v(\" Ongar Chasers will take all reasonable steps to ensure that our volunteers are suitable and appropriately qualified. Lisa O'Sullivan DLP. \")]),_c('h3',[_vm._v(\"Volunteer Responsibilities\")]),_c('p',[_vm._v(\" I will comply with all the relevant \"),_c('router-link',{attrs:{\"to\":{ name: 'member.policies.volunteers' }}},[_vm._v(\"guidelines, policies and procedures and rules\")]),_vm._v(\" that apply to my involvement with the Club as issued by the Club Board, governing bodies or Government as applies. \")],1),_c('v-checkbox',{attrs:{\"rules\":[_vm.validators.required()]},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',[_vm._v(\"I approve the \"),_c('router-link',{attrs:{\"to\":{ name: 'member.policies.volunteers' }},on:{\"click\":function($event){$event.stopPropagation();}}},[_vm._v(\"Volunteers Policy\")])],1)]},proxy:true}]),model:{value:(_vm.volunteer.volunteer),callback:function ($$v) {_vm.$set(_vm.volunteer, \"volunteer\", $$v)},expression:\"volunteer.volunteer\"}}),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"5\"}},[_c('v-text-field',{attrs:{\"label\":\"First Name\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(20)]},model:{value:(_vm.volunteer.firstName),callback:function ($$v) {_vm.$set(_vm.volunteer, \"firstName\", $$v)},expression:\"volunteer.firstName\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"5\"}},[_c('v-text-field',{attrs:{\"label\":\"Last Name\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(20)]},model:{value:(_vm.volunteer.lastName),callback:function ($$v) {_vm.$set(_vm.volunteer, \"lastName\", $$v)},expression:\"volunteer.lastName\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"2\"}},[_c('v-btn',{attrs:{\"type\":\"submit\",\"color\":\"primary\"}},[_vm._v(\"Register\")])],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { VolunteersApi, Volunteer } from \"@/store/volunteers-api\";\nimport { required, maxLength } from \"@/common/validators/rules\";\n\n@Component({})\nexport default class VolunteerForm extends Vue {\n volunteersStore = new VolunteersApi();\n validators = { required, maxLength };\n volunteer: Volunteer = {} as Volunteer;\n thanks = false;\n\n submit() {\n if (!(this.$refs.form as any).validate()) {\n return;\n }\n\n this.volunteersStore.save({ volunteer: this.volunteer }).then(() => {\n (this.$refs.form as any).reset();\n this.thanks = true;\n });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VolunteerForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VolunteerForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VolunteerForm.vue?vue&type=template&id=1b177c88&\"\nimport script from \"./VolunteerForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./VolunteerForm.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCheckbox,VCol,VDialog,VDivider,VForm,VRow,VSpacer,VTextField})\n","import { axios } from \"./axios\";\n\nexport class VolunteersApi {\n getAll() {\n return axios.get(\"/volunteers\");\n }\n\n save({ volunteer }: { volunteer: Volunteer }) {\n return axios.post(\"/volunteers\", volunteer);\n }\n\n edit({ volunteer }: { volunteer: Volunteer }) {\n return axios.put(\"/volunteers\", volunteer);\n }\n}\n\nexport interface Volunteer {\n id: number;\n firstName: string;\n lastName: string;\n gdpr: boolean;\n volunteer: boolean;\n registrationDate: Date;\n safeGuardingDate: Date;\n gardaVettingDate: Date;\n}\n","// Directives\nimport ripple from '../../directives/ripple'\n\n// Types\nimport Vue, { VNode, VNodeData, VNodeDirective } from 'vue'\n\nexport default Vue.extend({\n name: 'rippleable',\n\n directives: { ripple },\n\n props: {\n ripple: {\n type: [Boolean, Object],\n default: true,\n },\n },\n\n methods: {\n genRipple (data: VNodeData = {}): VNode | null {\n if (!this.ripple) return null\n\n data.staticClass = 'v-input--selection-controls__ripple'\n\n data.directives = data.directives || []\n data.directives.push({\n name: 'ripple',\n value: { center: true },\n } as VNodeDirective)\n\n return this.$createElement('div', data)\n },\n },\n})\n","export const required = () => (v: any) => (Array.isArray(v) ? v.length > 0 : v && !!v.toString().trim()) || \"Required\";\nexport const dateAfter = (otherDate: Date, message: string) => (v: any) =>\n (otherDate && new Date(v) > new Date(otherDate)) || message;\nexport const dateBefore = (otherDate: Date, message: string) => (v: any) =>\n (otherDate && new Date(v) < new Date(otherDate)) || message;\nexport const maxLength = (length: number) => (v: string) =>\n typeof v !== \"string\" || (v || \"\").length <= length || `Max length of ${length}`;\nexport const minLength = (length: number) => (v: string) => (v && v.length >= length) || `Min length of ${length}`;\n\n// Regex - @.\n// Dot or comma or whitespace should NOT be the last character\n// Shouldn't be surrounded by angular brackets\nexport const email = () => (v: any) => !v || /^[^<]\\S+@\\S+\\.\\S+[^.^,^>]$/.test(v.trim()) || \"Must be a valid email\";\n\nexport const multiEmail = (maxEmails?: number) => (v: string) => {\n const emails = (v || \"\").split(\",\").map((p) => p.trim());\n\n if (maxEmails && emails.length > maxEmails) {\n return `Only ${maxEmails} emails are allowed`;\n }\n\n return emails.every((v) => !v || email()(v) === true) || \"Must be comma separated list of valid emails\";\n};\nexport const numeric = () => (v: string) => /\\d+/.test(v) || \"Must include numbers (0-9)\";\nexport const alphaLower = () => (v: string) => /[a-z]/.test(v) || \"Must include lowercase letter (a-z)\";\nexport const alphaUpper = () => (v: string) => /[A-Z]/.test(v) || \"Must include uppercase letter (A-Z)\";\nexport const equal = (other: string, message: string) => (v: string) => other === v || message;\nexport const requiredIf = (other: boolean, message?: string) => (v: any) =>\n !other || (Array.isArray(v) ? v.length > 0 : !!v) || message || \"Required\";\n","// Styles\nimport './VCheckbox.sass'\nimport '../../styles/components/_selection-controls.sass'\n\n// Components\nimport VIcon from '../VIcon'\nimport VInput from '../VInput'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-checkbox',\n\n props: {\n indeterminate: Boolean,\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate',\n },\n offIcon: {\n type: String,\n default: '$checkboxOff',\n },\n onIcon: {\n type: String,\n default: '$checkboxOn',\n },\n },\n\n data () {\n return {\n inputIndeterminate: this.indeterminate,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls': true,\n 'v-input--checkbox': true,\n 'v-input--indeterminate': this.inputIndeterminate,\n }\n },\n computedIcon (): string {\n if (this.inputIndeterminate) {\n return this.indeterminateIcon\n } else if (this.isActive) {\n return this.onIcon\n } else {\n return this.offIcon\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.isDisabled && !this.inputIndeterminate) return undefined\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n },\n\n watch: {\n indeterminate (val) {\n // https://github.com/vuetifyjs/vuetify/issues/8270\n this.$nextTick(() => (this.inputIndeterminate = val))\n },\n inputIndeterminate (val) {\n this.$emit('update:indeterminate', val)\n },\n isActive () {\n if (!this.indeterminate) return\n this.inputIndeterminate = false\n },\n },\n\n methods: {\n genCheckbox () {\n const { title, ...checkboxAttrs } = this.attrs$\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.$createElement(VIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.dense,\n dark: this.dark,\n light: this.light,\n },\n }), this.computedIcon),\n this.genInput('checkbox', {\n ...checkboxAttrs,\n 'aria-checked': this.inputIndeterminate\n ? 'mixed'\n : this.isActive.toString(),\n }),\n this.genRipple(this.setTextColor(this.rippleState)),\n ])\n },\n genDefaultSlot () {\n return [\n this.genCheckbox(),\n this.genLabel(),\n ]\n },\n },\n})\n","// Components\nimport VInput from '../../components/VInput'\n\n// Mixins\nimport Rippleable from '../rippleable'\nimport Comparable from '../comparable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\nexport function prevent (e: Event) {\n e.preventDefault()\n}\n\n/* @vue/component */\nexport default mixins(\n VInput,\n Rippleable,\n Comparable\n).extend({\n name: 'selectable',\n\n model: {\n prop: 'inputValue',\n event: 'change',\n },\n\n props: {\n id: String,\n inputValue: null as any,\n falseValue: null as any,\n trueValue: null as any,\n multiple: {\n type: Boolean,\n default: null,\n },\n label: String,\n },\n\n data () {\n return {\n hasColor: this.inputValue,\n lazyValue: this.inputValue,\n }\n },\n\n computed: {\n computedColor (): string | undefined {\n if (!this.isActive) return undefined\n if (this.color) return this.color\n if (this.isDark && !this.appIsDark) return 'white'\n return 'primary'\n },\n isMultiple (): boolean {\n return this.multiple === true || (this.multiple === null && Array.isArray(this.internalValue))\n },\n isActive (): boolean {\n const value = this.value\n const input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) return false\n\n return input.some(item => this.valueComparator(item, value))\n }\n\n if (this.trueValue === undefined || this.falseValue === undefined) {\n return value\n ? this.valueComparator(value, input)\n : Boolean(input)\n }\n\n return this.valueComparator(input, this.trueValue)\n },\n isDirty (): boolean {\n return this.isActive\n },\n rippleState (): string | undefined {\n return !this.isDisabled && !this.validationState\n ? undefined\n : this.validationState\n },\n },\n\n watch: {\n inputValue (val) {\n this.lazyValue = val\n this.hasColor = val\n },\n },\n\n methods: {\n genLabel () {\n const label = VInput.options.methods.genLabel.call(this)\n\n if (!label) return label\n\n label!.data!.on = {\n // Label shouldn't cause the input to focus\n click: prevent,\n }\n\n return label\n },\n genInput (type: string, attrs: object) {\n return this.$createElement('input', {\n attrs: Object.assign({\n 'aria-checked': this.isActive.toString(),\n disabled: this.isDisabled,\n id: this.computedId,\n role: type,\n type,\n }, attrs),\n domProps: {\n value: this.value,\n checked: this.isActive,\n },\n on: {\n blur: this.onBlur,\n change: this.onChange,\n focus: this.onFocus,\n keydown: this.onKeydown,\n click: prevent,\n },\n ref: 'input',\n })\n },\n onClick (e: Event) {\n this.onChange()\n this.$emit('click', e)\n },\n onChange () {\n if (!this.isInteractive) return\n\n const value = this.value\n let input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) {\n input = []\n }\n\n const length = input.length\n\n input = input.filter((item: any) => !this.valueComparator(item, value))\n\n if (input.length === length) {\n input.push(value)\n }\n } else if (this.trueValue !== undefined && this.falseValue !== undefined) {\n input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue\n } else if (value) {\n input = this.valueComparator(input, value) ? null : value\n } else {\n input = !input\n }\n\n this.validate(true, input)\n this.internalValue = input\n this.hasColor = input\n },\n onFocus (e: FocusEvent) {\n this.isFocused = true\n this.$emit('focus', e)\n },\n onBlur (e: FocusEvent) {\n this.isFocused = false\n this.$emit('blur', e)\n },\n /** @abstract */\n onKeydown (e: Event) {},\n },\n})\n"],"sourceRoot":""}