{"version":3,"sources":["webpack:///./src/components/Vouchers/Profiles.vue","webpack:///src/components/Vouchers/Profiles.vue","webpack:///./src/components/Vouchers/Profiles.vue?1fb8","webpack:///./src/components/Vouchers/Profiles.vue?0a68","webpack:///./src/components/Vouchers/Profiles.vue?a5ab","webpack:///./src/components/UI/Message.vue","webpack:///src/components/UI/Message.vue","webpack:///./src/components/UI/Message.vue?5d20","webpack:///./src/components/UI/Message.vue?fb09"],"names":["render","_vm","this","_c","_self","voucher","showEditProfiles","attrs","hideModal","_e","locationCanEdit","openProfiles","scopedSlots","_u","key","fn","_v","_s","$t","proxy","staticClass","_l","Profiles","profile","Id","ProfileName","staticRenderFns","ModalEditProfiles","components","message","Message","data","locationId","Number","$route","params","computed","_objectSpread","mapState","_this","canEdit","locationIndex","Locations","findIndex","l","LocationId","LocationCreated","beforeCreate","created","methods","component","class","combindedClass","_t","props","type","String","default","size","c","length"],"mappings":"oMAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,QAASF,EAAG,MAAM,CAAEF,EAAIK,iBAAkBH,EAAG,sBAAsB,CAACI,MAAM,CAAC,UAAYN,EAAIK,iBAAiB,cAAgBL,EAAIO,aAAaP,EAAIQ,KAAKN,EAAG,oBAAoB,CAACI,MAAM,CAAC,SAAWN,EAAIS,gBAAgB,aAAeT,EAAIU,cAAcC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAACd,EAAIe,GAAGf,EAAIgB,GAAGhB,EAAIiB,GAAG,mDAAmDC,OAAM,IAAO,MAAK,EAAM,cAAchB,EAAG,UAAU,CAACI,MAAM,CAAC,QAAUN,EAAIiB,GAAG,8CAA8Cf,EAAG,QAAQ,CAACiB,YAAY,iCAAiC,CAACjB,EAAG,QAAQF,EAAIoB,GAAIpB,EAAII,QAAQiB,UAAU,SAASC,GAAS,OAAOpB,EAAG,KAAK,CAACW,IAAIS,EA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A,WACA,IAAAO,EAAA,KAAAJ,KAMA,OAJA,KAAAG,KAAAE,OAAA,IACAD,IAAA,SAAAD,MAGAC,KCnD+V,I,YCO3VT,EAAY,eACd,EACAlD,EACA0B,GACA,EACA,KACA,WACA,MAIa,aAAAwB,E","file":"js/chunk-6a500ef4.js?id=aecbb960488074301d93","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.voucher)?_c('div',[(_vm.showEditProfiles)?_c('modal-edit-profiles',{attrs:{\"showModal\":_vm.showEditProfiles,\"onClickCancel\":_vm.hideModal}}):_vm._e(),_c('ui-section-header',{attrs:{\"showEdit\":_vm.locationCanEdit,\"editFunction\":_vm.openProfiles},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(_vm._s(_vm.$t('Components.Vouchers.Profiles.Template_Title')))]},proxy:true}],null,false,4175985575)}),_c('message',{attrs:{\"message\":_vm.$t('Components.Vouchers.Profiles.Error_Text')}}),_c('table',{staticClass:\"table is-striped is-fullwidth\"},[_c('tbody',_vm._l((_vm.voucher.Profiles),function(profile){return _c('tr',{key:profile.Id},[_c('td',[_vm._v(_vm._s(profile.ProfileName))])])}),0)])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div v-if=\"voucher\">\n    <modal-edit-profiles\n      v-if=\"showEditProfiles\"\n      :showModal=\"showEditProfiles\"\n      :onClickCancel=\"hideModal\"\n    ></modal-edit-profiles>\n\n    <ui-section-header :showEdit=\"locationCanEdit\" :editFunction=\"openProfiles\">\n      <template v-slot:title>{{\n        $t('Components.Vouchers.Profiles.Template_Title')\n      }}</template>\n    </ui-section-header>\n\n    <message :message=\"$t('Components.Vouchers.Profiles.Error_Text')\" />\n\n    <table class=\"table is-striped is-fullwidth\">\n      <tbody>\n        <tr v-for=\"profile in voucher.Profiles\" :key=\"profile.Id\">\n          <td>{{ profile.ProfileName }}</td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapGetters } from 'vuex'\nimport Message from '@/components/UI/Message'\n\nconst ModalEditProfiles = () =>\n  import('@/components/Vouchers/ModalEditProfiles')\n\nexport default {\n  components: {\n    message: Message,\n    'modal-edit-profiles': ModalEditProfiles,\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      showEditProfiles: false,\n    }\n  },\n\n  computed: {\n    ...mapState('voucherStore', ['voucher']),\n\n    locationCanEdit() {\n      let canEdit = false\n\n      if (this.voucher) {\n        let locationIndex = this.voucher.Locations.findIndex(\n          (l) => l.LocationId === this.locationId\n        )\n        if (locationIndex > -1) {\n          canEdit = this.voucher.Locations[locationIndex].LocationCreated\n        }\n      }\n\n      return canEdit\n    },\n  },\n\n  beforeCreate() {},\n\n  created() {},\n\n  methods: {\n    openProfiles() {\n      this.showEditProfiles = true\n    },\n    hideModal() {\n      this.showEditProfiles = false\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.table {\n  tbody {\n    tr {\n      &:first-child {\n        td {\n          border-top-width: 1px;\n        }\n      }\n    }\n  }\n}\n</style>\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!./Profiles.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!./Profiles.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Profiles.vue?vue&type=template&id=5286caa0&scoped=true\"\nimport script from \"./Profiles.vue?vue&type=script&lang=js\"\nexport * from \"./Profiles.vue?vue&type=script&lang=js\"\nimport style0 from \"./Profiles.vue?vue&type=style&index=0&id=5286caa0&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  \"5286caa0\",\n  null\n  \n)\n\nexport default component.exports","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!./Profiles.vue?vue&type=style&index=0&id=5286caa0&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('article',{staticClass:\"message\",class:_vm.combindedClass},[_c('div',{staticClass:\"message-body\"},[(_vm.message)?[_vm._v(\" \"+_vm._s(_vm.message)+\" \")]:_vm._e(),_vm._t(\"content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <article\n    class=\"message\"\n    :class=\"combindedClass\"\n  >\n    <div class=\"message-body\">\n      <template v-if=\"message\">\n        {{ message }}\n      </template>\n      <slot name=\"content\"></slot>\n    </div>\n  </article>\n</template>\n\n<script>\nexport default {\n  props: {\n    /**\n     * For what'll be shown inside of the message box.\n     */\n    message: {\n      type: String,\n      default: ''\n    },\n\n    size: {\n      type: String,\n      default: ''\n    },\n\n    /**\n     * type bepaalt het type weergave\n     * eq. is-info = for information style. It defines the style of the message\n     */\n    type: {\n      type: String,\n      default: 'is-info'\n    }\n  },\n  data() {\n    return {};\n  },\n\n  computed: {\n    combindedClass() {\n      let c = this.type;\n\n      if (this.size.length > 0) {\n        c = c + ' ' + this.size;\n      }\n\n      return c;\n    }\n  }\n};\n</script>\n\n<style lang=\"scss\" scoped></style>\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!./Message.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!./Message.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Message.vue?vue&type=template&id=509443f1&scoped=true\"\nimport script from \"./Message.vue?vue&type=script&lang=js\"\nexport * from \"./Message.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  \"509443f1\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}