\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","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Cart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Cart.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Cart.vue?vue&type=template&id=223645fa&scoped=true&\"\nimport script from \"./Cart.vue?vue&type=script&lang=js&\"\nexport * from \"./Cart.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Cart.vue?vue&type=style&index=0&id=223645fa&prod&lang=scss&scoped=true&\"\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 \"223645fa\",\n null\n \n)\n\nexport default component.exports","/* eslint-disable */\nimport constantData from '@/json/data.json'\nimport { mapActions, mapGetters } from 'vuex'\n\nexport const securityMixin = {\n methods: {\n ...mapActions({\n setLoadingStatus: 'menu/setLoadingStatus'\n }),\n inSuperRole(role) {\n return constantData.super_roles.map(sr => sr.key).includes(role)\n },\n determineAccessibility(ctl, profile = false) {\n let camp_match = false\n let country_match = false\n let region_match = false\n let state_match = false\n let super_match = this.userLogin.croles.filter(sf => this.inSuperRole(sf.rle_key) && this.iCanSee(ctl)).length > 0\n if (!super_match) {\n this.controlPermissions\n .filter(cpf => cpf.vcxr_ctl_key === ctl)\n .map(rl => {\n let role_find = this.userLogin.croles.find(cf => cf.rle_key === rl.vcxr_rle_key)\n if (!!role_find) {\n if (!camp_match) {\n if (profile) {\n camp_match =\n rl.vogs_org_type === 'Camp' &&\n !!this.individualProfile &&\n !!this.individualProfile.camp_number &&\n this.individualProfile.camp_number === this.userLogin.campnumber\n } else {\n camp_match =\n rl.vogs_org_type === 'Camp' &&\n (!!this.officerToolbarSelected.camp_name\n ? this.officerToolbarSelected.camp_name === this.userLogin.campname\n : this.officerToolbarSelected.camp_number === this.userLogin.campnumber)\n }\n }\n if (!state_match) {\n if (profile) {\n state_match =\n rl.vogs_org_type === 'State' &&\n !!this.individualProfile &&\n !!this.individualProfile.camp_number &&\n this.individualProfile.camp_number.substr(0, 3) === this.userLogin.campnumber.substr(0, 3)\n } else {\n state_match =\n rl.vogs_org_type === 'State' &&\n this.officerToolbarSelected.camp_number.substr(0, 3) === this.userLogin.campnumber.substr(0, 3)\n }\n }\n if (!country_match) {\n if (profile) {\n country_match =\n rl.vogs_org_type === 'Country' &&\n ['icc', 'ioc'].includes(this.userLogin.membertype.toLowerCase()) &&\n !!this.individualProfile &&\n !!this.individualProfile.camp_number &&\n this.individualProfile.camp_number.substr(0, 3) === this.userLogin.campnumber.substr(0, 3)\n } else {\n country_match =\n rl.vogs_org_type === 'Country' &&\n this.userLogin.membertype.toLowerCase() === 'ioc' &&\n this.officerToolbarSelected.camp_number.substr(0, 3) === this.userLogin.campnumber.substr(0, 3)\n }\n }\n if (!region_match) {\n region_match =\n rl.vcxr_rle_key === constantData.region_1_key || rl.vcxr_rle_key === constantData.region_2_key\n }\n }\n })\n return state_match === true || country_match === true || camp_match === true || region_match === true\n } else {\n // super roles exceptions were made in the API\n return true\n } // clear out state.control_permissions\n },\n // this is a special case for conversations that augments the ICanSee() method\n conversationsICanSee(ctrl) {\n let foundInInstructorsAndEus = this.instructors_and_eus.findIndex(ieu => ieu.ind_key === this.demograph.ind_key) > -1\n if (foundInInstructorsAndEus) {\n return true\n }\n if (!ctrl) {\n return false\n }\n this.iCanSee(ctrl)\n return this.iCanSee(ctrl)\n }\n },\n computed: {\n ...mapGetters({\n controlPermissions: 'user/controlPermissions',\n instructors_and_eus: 'conversations/instructors_and_eus',\n demograph: 'user/demograph',\n iCanSee: 'user/iCanSee',\n individualProfile: 'membership/individualProfileHeader',\n officerToolbarSelected: 'user/officerToolbarSelected',\n userSelectedIndividualKey: 'user/userSelectedIndividualKey',\n userLanguageKey: 'user/userLanguageKey'\n }),\n }\n}\n\nexport default securityMixin\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Cart.vue?vue&type=style&index=0&id=223645fa&prod&lang=scss&scoped=true&\""],"sourceRoot":""}