{"version":3,"sources":["webpack:///src/components/UI/Message.vue","webpack:///src/components/Vouchers/Locations.vue","webpack:///./src/components/UI/Message.vue","webpack:///./src/components/Vouchers/Locations.vue","webpack:///./src/components/UI/Message.vue?fb09","webpack:///./src/components/UI/Message.vue?fba0","webpack:///./src/components/UI/Message.vue?3503","webpack:///./src/components/Vouchers/Locations.vue?0769","webpack:///./src/components/Vouchers/Locations.vue?8607","webpack:///./src/components/Vouchers/Locations.vue?4f41"],"names":["props","message","type","String","default","size","data","computed","combindedClass","c","length","ModalEditLocation","components","Message","locationId","Number","$route","params","showEditLocations","_objectSpread","mapState","locationCanEdit","_this","canEdit","voucher","locationIndex","Locations","findIndex","l","LocationId","LocationCreated","methods","openLocations","hideModal","render","_vm","_c","_self","staticClass","class","_v","_s","_e","_t","staticRenderFns","_withStripped","Type","locationState","attrs","showModal","onClickCancel","showEdit","profileState","editFunction","scopedSlots","_u","key","fn","$t","proxy","_l","location","id","LocationName","icon"],"mappings":";;;;;;;;;;;AAee;EACfA,KAAA;IACA;AACA;AACA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IAEAC,IAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IAEA;AACA;AACA;AACA;IACAF,IAAA;MACAA,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;EACA;EACAE,IAAA,WAAAA,KAAA;IACA;EACA;EAEAC,QAAA;IACAC,cAAA,WAAAA,eAAA;MACA,IAAAC,CAAA,QAAAP,IAAA;MAEA,SAAAG,IAAA,CAAAK,MAAA;QACAD,CAAA,GAAAA,CAAA,cAAAJ,IAAA;MACA;MAEA,OAAAI,CAAA;IACA;EACA;AACA,CAAC,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPD;AACA;AACA,IAAAE,iBAAA,YAAAA,kBAAA;EAAA,OACA;AAAA;AAEe;EACfC,UAAA;IACAX,OAAA,EAAAY,8DAAA;IACAF,iBAAA,EAAAA;EACA;EA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AG,OAAO;MAEhD;IACF,CAAC,CAAC,CACH,EACD,CACF,CAAC,CACF,CAAC,CACH,CAAC;EACJ,CAAC,CAAC,EACF,CACF,CAAC,CACF,CAAC,CACH,EACD,CACF,CAAC,CACF,EACD,CACF,CAAC,GACDK,GAAG,CAACO,EAAE,CAAC,CAAC;AACd,CAAC;AACD,IAAIE,eAAe,GAAG,EAAE;AACxBV,MAAM,CAACW,aAAa,GAAG,IAAI;;;;;;;;;;;;;;AC9G3B;AAAA;AAAA;AAAA;AAAiG;AACvC;AACL;;;AAGrD;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAA+R,CAAgB,yUAAG,EAAC,C;;;;;;;;;;;;;ACAnT;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAuF;AAC3B;AACL;;;AAGvD;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAAiS,CAAgB,2UAAG,EAAC,C;;;;;;;;;;;;;ACArT;AAAA;AAAA;AAAA;AAAA","file":"js/203.js?id=e8102836f3afbf4a0a35","sourcesContent":["<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","<template>\n  <div v-if=\"voucher.Type !== 'Package' && locationState\">\n    <ModalEditLocation\n      v-if=\"showEditLocations\"\n      :showModal=\"showEditLocations\"\n      :onClickCancel=\"hideModal\"\n    />\n\n    <!-- <section class=\"section is-small\"> -->\n      <div class=\"container\">\n        <ui-section-header\n          :showEdit=\"locationCanEdit && this.profileState.Locations.length > 1\"\n          :editFunction=\"openLocations\"\n        >\n          <template v-slot:title>{{\n            $t('Components.Vouchers.Locations.Template_Title')\n          }}</template>\n        </ui-section-header>\n        <message :message=\"$t('Components.Vouchers.Locations.Error_Text')\" />\n        <table class=\"table is-striped is-fullwidth\">\n          <thead>\n            <th>{{ $t('Components.Vouchers.Locations.TableHeader_Name') }}</th>\n            <th>{{ $t('Components.Vouchers.Locations.TableHeader_Edit') }}</th>\n          </thead>\n          <tbody>\n            <tr\n              v-for=\"location in voucher.Locations\"\n              :key=\"location.id\"\n            >\n              <td>{{ location.LocationName }}</td>\n              <td>\n                <span class=\"icon is-small\">\n                  <font-awesome-icon\n                    :icon=\"['fas', location.LocationCreated ? 'check' : 'times']\"\n                    :class=\"location.LocationCreated ? 'has-text-success' : 'has-text-danger'\"\n                  />\n                </span>\n              </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    <!-- </section> -->\n  </div>\n</template>\n\n<script>\nimport { mapState, mapGetters } from 'vuex'\nimport Message from '@/components/UI/Message'\nconst ModalEditLocation = () =>\n  import('@/components/Vouchers/ModalEditLocation')\n\nexport default {\n  components: {\n    message: Message,\n    ModalEditLocation,\n  },\n\n  props: {\n    //voucher: null\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      showEditLocations: false,\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapState('voucherStore', ['voucher']),\n    ...mapState('profileStore', ['profileState']),\n\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  methods: {\n    openLocations() {\n      this.showEditLocations = true\n    },\n    hideModal() {\n      this.showEditLocations = false\n    },\n  },\n}\n</script>","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"article\", { staticClass: \"message\", class: _vm.combindedClass }, [\n    _c(\n      \"div\",\n      { staticClass: \"message-body\" },\n      [\n        _vm.message ? [_vm._v(\" \" + _vm._s(_vm.message) + \" \")] : _vm._e(),\n        _vm._t(\"content\"),\n      ],\n      2\n    ),\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _vm.voucher.Type !== \"Package\" && _vm.locationState\n    ? _c(\n        \"div\",\n        [\n          _vm.showEditLocations\n            ? _c(\"ModalEditLocation\", {\n                attrs: {\n                  showModal: _vm.showEditLocations,\n                  onClickCancel: _vm.hideModal,\n                },\n              })\n            : _vm._e(),\n          _c(\n            \"div\",\n            { staticClass: \"container\" },\n            [\n              _c(\"ui-section-header\", {\n                attrs: {\n                  showEdit:\n                    _vm.locationCanEdit &&\n                    this.profileState.Locations.length > 1,\n                  editFunction: _vm.openLocations,\n                },\n                scopedSlots: _vm._u(\n                  [\n                    {\n                      key: \"title\",\n                      fn: function () {\n                        return [\n                          _vm._v(\n                            _vm._s(\n                              _vm.$t(\n                                \"Components.Vouchers.Locations.Template_Title\"\n                              )\n                            )\n                          ),\n                        ]\n                      },\n                      proxy: true,\n                    },\n                  ],\n                  null,\n                  false,\n                  49567665\n                ),\n              }),\n              _c(\"message\", {\n                attrs: {\n                  message: _vm.$t(\"Components.Vouchers.Locations.Error_Text\"),\n                },\n              }),\n              _c(\"table\", { staticClass: \"table is-striped is-fullwidth\" }, [\n                _c(\"thead\", [\n                  _c(\"th\", [\n                    _vm._v(\n                      _vm._s(\n                        _vm.$t(\"Components.Vouchers.Locations.TableHeader_Name\")\n                      )\n                    ),\n                  ]),\n                  _c(\"th\", [\n                    _vm._v(\n                      _vm._s(\n                        _vm.$t(\"Components.Vouchers.Locations.TableHeader_Edit\")\n                      )\n                    ),\n                  ]),\n                ]),\n                _c(\n                  \"tbody\",\n                  _vm._l(_vm.voucher.Locations, function (location) {\n                    return _c(\"tr\", { key: location.id }, [\n                      _c(\"td\", [_vm._v(_vm._s(location.LocationName))]),\n                      _c(\"td\", [\n                        _c(\n                          \"span\",\n                          { staticClass: \"icon is-small\" },\n                          [\n                            _c(\"font-awesome-icon\", {\n                              class: location.LocationCreated\n                                ? \"has-text-success\"\n                                : \"has-text-danger\",\n                              attrs: {\n                                icon: [\n                                  \"fas\",\n                                  location.LocationCreated ? \"check\" : \"times\",\n                                ],\n                              },\n                            }),\n                          ],\n                          1\n                        ),\n                      ]),\n                    ])\n                  }),\n                  0\n                ),\n              ]),\n            ],\n            1\n          ),\n        ],\n        1\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Message.vue?vue&type=template&id=e83c7908&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  \"e83c7908\",\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('e83c7908')) {\n      api.createRecord('e83c7908', component.options)\n    } else {\n      api.reload('e83c7908', component.options)\n    }\n    module.hot.accept(\"./Message.vue?vue&type=template&id=e83c7908&scoped=true\", function () {\n      api.rerender('e83c7908', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/UI/Message.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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/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 * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Message.vue?vue&type=template&id=e83c7908&scoped=true\"","import { render, staticRenderFns } from \"./Locations.vue?vue&type=template&id=373c2d38\"\nimport script from \"./Locations.vue?vue&type=script&lang=js\"\nexport * from \"./Locations.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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('373c2d38')) {\n      api.createRecord('373c2d38', component.options)\n    } else {\n      api.reload('373c2d38', component.options)\n    }\n    module.hot.accept(\"./Locations.vue?vue&type=template&id=373c2d38\", function () {\n      api.rerender('373c2d38', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Vouchers/Locations.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./Locations.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./Locations.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locations.vue?vue&type=template&id=373c2d38\""],"sourceRoot":""}