{"version":3,"sources":["webpack:///./src/Payment/PaymentLocation.vue?ac48","webpack:///./src/Payment/PaymentLocation.vue?3b8f","webpack:///./src/Payment/PaymentLocation.vue?059e","webpack:///./src/Payment/PaymentLocation.vue","webpack:///./src/Payment/PaymentLocation.vue?5793"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","unknownLocation","location","_v","_s","$t","_e","loggedIn","directives","name","rawName","value","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","selectedLocation","multiple","locationSelected","attrs","domProps","_l","key","urlSegment","staticRenderFns","component","extend","beforeMount","checkLocation","props","destinationRoute","type","String","required","Boolean","default","computed","$typedStore","modules","userModule","getters","userName","data","locations","methods","actions","getAllowedLocations","find","item","toUpperCase","$router","push","params","watch"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAAEN,EAAIO,iBAAmBP,EAAIQ,SAAUJ,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,OAAO,CAACE,YAAY,SAAS,CAACN,EAAIS,GAAG,qBAAqBT,EAAIU,GAAGV,EAAIW,GAAG,iCAAkC,CAACH,SAAUR,EAAIQ,YAAY,wBAAwBR,EAAIY,KAAOZ,EAAIa,SAA61Bb,EAAIY,KAAv1BR,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,SAAS,CAACU,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOjB,EAAoB,iBAAEkB,WAAW,qBAAqBZ,YAAY,eAAea,GAAG,CAAC,OAAS,CAAC,SAASC,GAAQ,IAAIC,EAAgBC,MAAMC,UAAUC,OAAOC,KAAKL,EAAOM,OAAOC,SAAQ,SA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gBAAQ,eAAE0D,mBAAkB,KACrFjE,KAAKkC,mB,KAJD,YAMFA,iBAAgB,W,yIACdlC,KAAKgC,kBAAoBhC,KAAKO,WAAaP,KAAKgC,iBAAiBO,WACjE,GAAM,eAAyD,QAAlC,EAAsB,QAAtB,EAACvC,KAAKgC,wBAAgB,eAAEO,kBAAU,QAAI,KADnE,M,OACA,SACAvC,KAAKkE,QAAQC,KAAK,CACdrD,KAAMd,KAAK8C,iBACXsB,QAAM,KACF,EAAC,YAAapE,KAAKgC,iBAAiBO,WACvC,K,oCAKjB8B,MAAO,CACH9D,SAAQ,WACJP,KAAK4C,oBAKF,IC3F2X,I,wBCQtY,EAAY,eACd,EACA9C,EACA0C,GACA,EACA,KACA,WACA,MAIa,e,oECnBf,yBAAyiB,EAAG","file":"js/chunk-61790a4e.112dbe1a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[(_vm.unknownLocation && _vm.location)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"offset-md-1 col-md-4\"},[_c('span',{staticClass:\"error\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('payment.unknownLocationMessage', {location: _vm.location}))+\"\\n \")])])]):_vm._e(),(!_vm.loggedIn)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"offset-md-1 col-md-3\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedLocation),expression:\"selectedLocation\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedLocation=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.locationSelected]}},[_c('option',{attrs:{\"disabled\":\"\",\"selected\":\"\"},domProps:{\"value\":null}},[_vm._v(_vm._s(_vm.$t('payment.selectLocationPlaceholder')))]),_vm._l((_vm.locations),function(location){return _c('option',{key:location.urlSegment,domProps:{\"value\":location}},[_vm._v(_vm._s(location.name)+\"\\n \")])})],2)])]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('router-view')],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\r\nimport Vue from 'vue';\r\nimport {Location} from '@/Stores/UserStore';\r\nimport {redirectRetiredLocation} from '@/Shared/Redirection';\r\n\r\nconst component = Vue.extend({\r\n beforeMount() {\r\n this.checkLocation();\r\n },\r\n props: {\r\n destinationRoute: {\r\n type: String,\r\n required: true\r\n },\r\n location: {\r\n type: String as () => (string | undefined)\r\n },\r\n unknownLocation: {\r\n type: Boolean,\r\n required: false,\r\n default: true,\r\n },\r\n },\r\n computed: {\r\n loggedIn(): boolean {\r\n return this.$typedStore.modules.userModule.getters.userName ? true : false;\r\n },\r\n },\r\n data() {\r\n return {\r\n selectedLocation: null as Location | null,\r\n locations: [] as Location[]\r\n };\r\n },\r\n methods: {\r\n async checkLocation() {\r\n this.locations = await this.$typedStore.modules.userModule.actions.getAllowedLocations();\r\n if (!this.location) {\r\n return;\r\n }\r\n this.selectedLocation = this.locations\r\n .find(item => item.urlSegment.toUpperCase() === this.location?.toUpperCase()) || null;\r\n this.locationSelected();\r\n },\r\n async locationSelected() {\r\n if (this.selectedLocation && this.location !== this.selectedLocation.urlSegment) {\r\n await redirectRetiredLocation(this.selectedLocation?.urlSegment ?? '');\r\n this.$router.push({\r\n name: this.destinationRoute,\r\n params: {\r\n ['location']: this.selectedLocation.urlSegment\r\n }\r\n });\r\n }\r\n }\r\n },\r\n watch: {\r\n location() {\r\n this.checkLocation();\r\n }\r\n }\r\n});\r\n\r\nexport default component;\r\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/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentLocation.vue?vue&type=script&lang=ts&\"; 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/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentLocation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PaymentLocation.vue?vue&type=template&id=5e7c4aa2&scoped=true&\"\nimport script from \"./PaymentLocation.vue?vue&type=script&lang=ts&\"\nexport * from \"./PaymentLocation.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PaymentLocation.vue?vue&type=style&index=0&id=5e7c4aa2&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 \"5e7c4aa2\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentLocation.vue?vue&type=style&index=0&id=5e7c4aa2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentLocation.vue?vue&type=style&index=0&id=5e7c4aa2&lang=scss&scoped=true&\""],"sourceRoot":""}