\n \n \n \n \n Select Team\n \n \n Un-scratch Team\n \n \n Edit\n \n \n Submit Team\n \n Remove \n \n \n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./teamManagementCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./teamManagementCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./teamManagementCard.vue?vue&type=template&id=2d70d310&\"\nimport script from \"./teamManagementCard.vue?vue&type=script&lang=js&\"\nexport * from \"./teamManagementCard.vue?vue&type=script&lang=js&\"\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\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport QCardSection from 'quasar/src/components/card/QCardSection.js';\nimport QIcon from 'quasar/src/components/icon/QIcon.js';\nimport QTooltip from 'quasar/src/components/tooltip/QTooltip.js';\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport QSeparator from 'quasar/src/components/separator/QSeparator.js';\nimport QCardActions from 'quasar/src/components/card/QCardActions.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport qInstall from \"../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(component, 'components', {QCard,QCardSection,QIcon,QTooltip,QInput,QSeparator,QCardActions,QBtn});\n","import moment from \"moment\";\n\nfunction checkMemberMeetsAwardCriteria(data, member) {\n let passed = false;\n let messages = [];\n let age = moment(data.competition.age_reference_date).diff(\n member.birthDate,\n \"years\",\n false\n );\n\n // TODO: Need to allow for the award that allows for any age\n if (\n (data.filterToEvent.gender == \"X\" ||\n data.filterToEvent.gender == member.gender ||\n data.playerLabel.mixed == 1) &&\n ((age >= data.filterToEvent.age_min && age <= data.filterToEvent.age_max) ||\n (data.playerLabel.noMaxAge == 1 && age >= 14))\n ) {\n passed = true;\n } else {\n return {\n passed: false,\n messages: [\"Athlete does not meet the Age requirement for this Event\"]\n };\n }\n\n if (data.excludeAthletesIds && data.excludeAthletesIds.includes(member.id)) {\n return {\n passed: false,\n messages: [\"Athlete is already in a team for this event\"]\n };\n }\n\n if (data.playerLabel && member.crm_id) {\n let result = checkAwards(\n data.playerLabel,\n data.filterToEvent,\n member,\n data.competition\n );\n messages.messages = result.messages;\n passed = result.display;\n }\n\n return { passed: passed, messages: messages };\n}\n\nfunction checkAwards(playerLabels, event, member, competition) {\n let result = {\n passed: true,\n display: true,\n messages: []\n };\n\n let age = moment(competition.age_reference_date).diff(\n member.birthDate,\n \"years\",\n false\n );\n\n // Check crew award\n if (playerLabels.crew == 1) {\n let award = member.awards.find(a => a.awards_id == 4);\n if (!award) {\n result.passed = false;\n result.messages.push(\"Athlete has no valid IRB Crew award\");\n }\n }\n\n // Check driver award\n if (playerLabels.driver == 1) {\n let award = member.awards.find(\n a =>\n (a.awards_id == 2 || a.awards_id == 6) &&\n moment(a.refresher_date) >= moment(event.refresher_reference_date)\n );\n if (!award) {\n result.passed = false;\n result.messages.push(\"Athlete has no valid IRB Driver award\");\n }\n }\n\n // Check patrolSupport award\n if (playerLabels.patrolSupport == 1 && age >= 13) {\n let award = member.awards.find(\n a =>\n (a.awards_id == 15 ||\n a.awards_id == 11 ||\n a.awards_id == 2 ||\n a.awards_id == 5 ||\n a.awards_id == 6 ||\n a.awards_id == 22 ||\n a.awards_id == 23) &&\n moment(a.refresher_date) >= moment(event.refresher_reference_date)\n );\n if (!award) {\n result.passed = false;\n result.messages.push(\"Athlete has no valid Patrol Support or SLG award\");\n }\n }\n\n // check slg award\n if (playerLabels.slg == 1 && age >= 13) {\n let award = member.awards.find(\n a =>\n (a.awards_id == 22 || a.awards_id == 23) &&\n moment(a.refresher_date) >= moment(event.refresher_reference_date)\n );\n if (!award) {\n result.passed = false;\n result.messages.push(\"Athlete has no valid SLG award\");\n }\n }\n\n // check twoHundredMeter award\n if (playerLabels.twoHundredMeter == 1 && age < 14) {\n // Calculating the members age because this award only applies after they are 14\n // let age = moment(event.refresher_reference_date).diff(\n // member.birthDate,\n // \"years\",\n // false\n // );\n\n let award = member.awards.find(\n a =>\n (a.awards_id == 3 || a.awards_id == 17) &&\n moment(a.refresher_date) >= moment(event.refresher_reference_date)\n );\n if (!award) {\n result.passed = false;\n result.messages.push(\"Athlete has no valid 200m award\");\n }\n }\n\n return result;\n}\n\nexport { checkMemberMeetsAwardCriteria };\n","\n \n
combinedAge ||\n currentEvent.maxCombinedAge < combinedAge) &&\n (currentEvent.maxCombinedAge ||\n currentEvent.minCombinedAge) &&\n athletes.length >=\n playerLabels.filter(val => val.required == 1).length\n \"\n class=\"col-12 q-pa-md\"\n >\n \n Can’t enter team into current event due to combined age, your\n current combined age is {{ combinedAge }}\n \n
combinedAge ||\n currentEvent.maxCombinedAge < combinedAge) &&\n (currentEvent.maxCombinedAge ||\n currentEvent.minCombinedAge) &&\n athletes.length >=\n playerLabels.filter(val => val.required == 1).length\n \"\n class=\"col-12 q-pa-md\"\n >\n \n Can’t enter team into current event due to combined age, your\n current combined age is {{ combinedAge }}\n \n
\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./assignEvent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./assignEvent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./assignEvent.vue?vue&type=template&id=ebf632ca&\"\nimport script from \"./assignEvent.vue?vue&type=script&lang=js&\"\nexport * from \"./assignEvent.vue?vue&type=script&lang=js&\"\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\nimport QSelect from 'quasar/src/components/select/QSelect.js';\nimport QItem from 'quasar/src/components/item/QItem.js';\nimport QItemSection from 'quasar/src/components/item/QItemSection.js';\nimport QItemLabel from 'quasar/src/components/item/QItemLabel.js';\nimport QIcon from 'quasar/src/components/icon/QIcon.js';\nimport QCheckbox from 'quasar/src/components/checkbox/QCheckbox.js';\nimport QTooltip from 'quasar/src/components/tooltip/QTooltip.js';\nimport qInstall from \"../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(component, 'components', {QSelect,QItem,QItemSection,QItemLabel,QIcon,QCheckbox,QTooltip});\n","\n \n
\n If you have a qualification time for the athlete, please enter it\n below and confirm the entry, otherwise just confirm the entry\n (mm:ss:hs e.g. 02:20.78)\n \n
\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./assignMember.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.transform-quasar-imports.js!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./assignMember.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./assignMember.vue?vue&type=template&id=feb0c09e&\"\nimport script from \"./assignMember.vue?vue&type=script&lang=js&\"\nexport * from \"./assignMember.vue?vue&type=script&lang=js&\"\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\nimport QSelect from 'quasar/src/components/select/QSelect.js';\nimport QItem from 'quasar/src/components/item/QItem.js';\nimport QItemSection from 'quasar/src/components/item/QItemSection.js';\nimport QItemLabel from 'quasar/src/components/item/QItemLabel.js';\nimport QIcon from 'quasar/src/components/icon/QIcon.js';\nimport QTooltip from 'quasar/src/components/tooltip/QTooltip.js';\nimport qInstall from \"../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(component, 'components', {QSelect,QItem,QItemSection,QItemLabel,QIcon,QTooltip});\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!../../../node_modules/cache-loader/dist/cjs.js??ref--0-1!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./teamEntryForm.vue?vue&type=style&index=0&id=0e614ae1&lang=scss&scoped=true&\""],"sourceRoot":""}