{"version":3,"sources":["webpack:///./src/project/ui-components/address/AddressCard.vue?9b1f","webpack:///./src/project/ui-components/address/AddressCard.vue","webpack:///./src/project/ui-components/address/AddressCard.vue?27e5","webpack:///./src/project/ui-components/address/AddressCard.vue?22ca","webpack:///./src/project/ui-components/PageToaster.vue?1496","webpack:///./src/project/ui-components/address/AddressCard.vue?2982","webpack:///./src/project/spinners/SpinnerElement.vue?81e9","webpack:///./src/project/spinners/SpinnerElement.vue?e3a8","webpack:///./src/project/spinners/SpinnerElement.vue","webpack:///./src/project/spinners/SpinnerElement.vue?4c07","webpack:///./src/project/spinners/SpinnerElement.vue?f339","webpack:///./src/project/ui-components/PageToaster.vue?5261","webpack:///./src/project/ui-components/PageToaster.vue","webpack:///./src/project/ui-components/PageToaster.vue?4710","webpack:///./src/project/ui-components/PageToaster.vue?4b54","webpack:///./src/project/app/client-pages/checkout/addresses/address.service.ts","webpack:///./src/project/app/client-pages/checkout/CheckoutElementLayout.vue?cd17","webpack:///./src/project/app/client-pages/checkout/addresses/CheckoutAddressOverview.vue?67c5","webpack:///./src/project/modals/overlays/CheckoutChangeAddressOverlay.service.ts","webpack:///./src/project/app/client-pages/checkout/addresses/CheckoutAddressOverview.vue","webpack:///./src/project/app/client-pages/checkout/addresses/CheckoutAddressOverview.vue?9fd9","webpack:///./src/project/app/client-pages/checkout/addresses/CheckoutAddressOverview.vue?b7fd","webpack:///./src/project/spinners/SpinnerOverlay.vue?6883","webpack:///./src/project/spinners/SpinnerOverlay.vue","webpack:///./src/project/spinners/SpinnerOverlay.vue?c950","webpack:///./src/project/spinners/SpinnerOverlay.vue?9066","webpack:///./src/project/app/client-pages/checkout/CheckoutElementLayout.vue?04db","webpack:///./src/project/app/client-pages/checkout/CheckoutElementLayout.vue","webpack:///./src/project/app/client-pages/checkout/CheckoutElementLayout.vue?88a5","webpack:///./src/project/app/client-pages/checkout/CheckoutElementLayout.vue?512e"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","headerClass","_v","_s","$dictionary","get","headingLabel","bodyClass","address","companyName","_e","street","street2","postalCode","city","region","countryNameByCountryCode","countryCode","contact","email","phone","attrs","_l","error","key","field","msg","errorLabel","staticRenderFns","validate","fieldsToValidate","fieldLabelErrors","requiredLabel","filter","x","map","validationErrors","length","String","Object","Boolean","component","name","warning","headline","description","required","type","default","localPrefix","deliveryAddresses","getDeliveryAddresses","genLocalWebId","Math","random","isLocalWebId","webId","startsWith","setOriginalDeliveryAddresses","addresses","applyAddress","addr","findPredicate","createFindPredicate","existing","find","other","temporaryId","addrInList","isDefault","forEach","a","push","validationError","dataLoaded","invoiceAddress","ref","deliveryAddress","on","$event","showChangeAddressOverlay","AbstractModalService","allowedCountryCodes","options","showModal","componentAttrs","wide","usePanelWrapper","closeButtonPosition","showCloseButton","disableUserClose","closeOnBreakpointChange","isBreakpointActive","show","placement","side","$emit","valid","$refs","isValid","Promise","resolve","value","Array","immediate","components","SpinnerOverlay","AddressCard","CheckoutElementLayout","model","prop","event","doShow","startTime","change","setTimeout","performance","now","delay","timeShown","restTime","max","minDuration","Number","SpinnerElement","_t","showPlaceholder"],"mappings":"2IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,KAAK,CAACE,YAAY,4DAA4DC,MAAMP,EAAIQ,aAAa,CAACR,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIW,YAAYC,IAAIZ,EAAIa,eAAe,OAAQb,EAAW,QAAEI,EAAG,UAAU,CAACE,YAAY,qBAAqBC,MAAMP,EAAIc,WAAW,CAAEd,EAAIe,QAAmB,YAAEX,EAAG,IAAI,CAACE,YAAY,wCAAwC,CAACN,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIe,QAAQC,aAAa,OAAOhB,EAAIiB,KAAMjB,EAAIe,QAAc,OAAEX,EAAG,IAAI,CAACE,YAAY,yBAAyB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AW,K,2BAId,MA7BgB,EAAO,gBAH3B,eAAU,CACPC,WAAY,CAAEmB,iBAAA,SAEG,WCrBsY,I,YCOvZnF,EAAY,eACd,EACAjD,EACAoC,GACA,EACA,KACA,KACA,MAIa,OAAAa,E,kEClBf,IAAIjD,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,KAAK,CAACE,YAAY,SAAS,CAACN,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIW,YAAYC,IAAIZ,EAAIa,eAAe,OAAOT,EAAG,MAAM,CAACE,YAAY,WAAWC,MAAM,CAAE,QAAWP,EAAIgF,kBAAmB,CAAChF,EAAIoI,GAAG,WAAWhI,EAAG,kBAAkB,CAACwB,MAAM,CAAC,KAAO5B,EAAIqI,gBAAgB,MAAQ,QAAQ,MAC/WlG,EAAkB,G,4DCsBtB,IAAqB,EAArB,cAAmD,eAK/C,gBAJC,eAAK,CACFmB,KAAMT,OACNQ,UAAU,K,mCAQd,gBAJC,eAAK,CACFC,KAAMP,QACNQ,SAAS,K,sCAQb,gBAJC,eAAK,CACFD,KAAMP,QACNQ,SAAS,K,sCAfI,EAAqB,gBALzC,eAAU,CACPyD,WAAY,CACRC,iBAAA,SAGa,WCvBib,I,wBCQlcjE,EAAY,eACd,EACAjD,EACAoC,GACA,EACA,KACA,WACA,MAIa,OAAAa,E","file":"js/chunk-6f3c2f6b.3f29a7d1.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('article',[_c('h3',{staticClass:\"text-16 font-medium mb-10 print:text-14 print:font-medium\",class:_vm.headerClass},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get(_vm.headingLabel))+\" \")]),(_vm.address)?_c('section',{staticClass:\"address-card__body\",class:_vm.bodyClass},[(_vm.address.companyName)?_c('p',{staticClass:\"font-semi-bold text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.address.companyName)+\" \")]):_vm._e(),(_vm.address.street)?_c('p',{staticClass:\"text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.address.street)+\" \")]):_vm._e(),(_vm.address.street2)?_c('p',{staticClass:\"text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.address.street2)+\" \")]):_vm._e(),_c('p',{staticClass:\"text-15 print:text-10\"},[(_vm.address.postalCode)?_c('span',[_vm._v(_vm._s(_vm.address.postalCode)+\" \")]):_vm._e(),(_vm.address.city)?_c('span',[_vm._v(_vm._s(_vm.address.city))]):_vm._e()]),(_vm.address.region)?_c('p',{staticClass:\"text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.address.region)+\" \")]):_vm._e(),(_vm.address.countryCode)?_c('p',{staticClass:\"text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.countryNameByCountryCode(_vm.address.countryCode))+\" \")]):_vm._e(),(_vm.address.contact)?_c('p',{staticClass:\"text-15 print:text-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Checkout.Address.AttentionAbbr'))+\": \"+_vm._s(_vm.address.contact)+\" \")]):_vm._e(),(_vm.address.email || _vm.address.phone)?_c('div',{staticClass:\"mt-20 text-15 print:text-10 print:mt-10\"},[(_vm.address.email)?_c('p',{staticClass:\"truncate\",attrs:{\"title\":_vm.address.email}},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Checkout.Address.EmailAbbr'))+\": \"+_vm._s(_vm.address.email)+\" \")]):_vm._e(),(_vm.address.phone)?_c('p',{staticClass:\"truncate\",attrs:{\"title\":_vm.address.phone}},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Checkout.Address.PhoneAbbr'))+\": \"+_vm._s(_vm.address.phone)+\" \")]):_vm._e()]):_vm._e(),(_vm.validate)?[_c('ol',{staticClass:\"print:hidden\"},_vm._l((_vm.validationErrors),function(error){return _c('li',{key:error.field,staticClass:\"text-red-500 text-11 font-medium my-5\"},[_vm._v(\" \"+_vm._s(error.msg)+\" \"),_c('span',{staticClass:\"lowercase\"},[_vm._v(_vm._s(error.errorLabel))])])}),0)]:_vm._e()],2):_vm._e()])}\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\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 Component from 'vue-class-component';\r\nimport { AddressViewObject, DeliveryAddressViewObject } from '@/types/apiServerContract';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport dictionaryService from '@/core/translation/dictionary.service';\r\n\r\n@Component\r\nexport default class AddressCard extends Vue {\r\n @Prop(String)\r\n headingLabel!: string;\r\n\r\n @Prop(Object)\r\n address!: AddressViewObject | DeliveryAddressViewObject | null;\r\n\r\n @Prop(String)\r\n headerClass!: string;\r\n\r\n @Prop(String)\r\n bodyClass!: string;\r\n\r\n @Prop(Boolean)\r\n validate!: boolean;\r\n\r\n get validationErrors() {\r\n if (!this.validate || !this.address) return [];\r\n\r\n const fieldsToValidate: Array<(keyof DeliveryAddressViewObject)> =\r\n ['companyName', 'street', 'postalCode', 'city'];\r\n\r\n const fieldLabelErrors = {\r\n companyName: 'Checkout.Address.CompanyNameField',\r\n street: 'Checkout.Address.StreetAndNoField',\r\n postalCode: 'Checkout.Address.PostalCodeField',\r\n city: 'Checkout.Address.CityField'\r\n };\r\n\r\n const requiredLabel = dictionaryService.get('Validation.Required');\r\n\r\n return fieldsToValidate\r\n .filter(x => !this.address![x])\r\n .map(x => ({\r\n field: x,\r\n msg: dictionaryService.get(fieldLabelErrors[x]),\r\n errorLabel: requiredLabel\r\n }));\r\n }\r\n\r\n isValid() {\r\n return this.validationErrors.length === 0;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressCard.vue?vue&type=template&id=4b0b4090&\"\nimport script from \"./AddressCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressCard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AddressCard.vue?vue&type=style&index=0&lang=less&\"\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","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageToaster.vue?vue&type=style&index=0&id=780289e8&lang=less&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageToaster.vue?vue&type=style&index=0&id=780289e8&lang=less&scoped=true&\"","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressCard.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressCard.vue?vue&type=style&index=0&lang=less&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerElement.vue?vue&type=style&index=0&id=db7d78cc&lang=less&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerElement.vue?vue&type=style&index=0&id=db7d78cc&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"ball-pulse pulse-lyn\"},[_c('div',{staticClass:\"spin_lyn1\",attrs:{\"aria-hidden\":\"true\"}},[_c('CIcon',{attrs:{\"name\":\"lyn1\",\"height\":\"22\",\"width\":\"32\",\"alt\":\"\",\"original\":true}})],1),_c('div',{staticClass:\"spin_lyn2\",attrs:{\"aria-hidden\":\"true\"}},[_c('CIcon',{attrs:{\"name\":\"lyn2\",\"height\":\"22\",\"width\":\"32\",\"alt\":\"\",\"original\":true}})],1),_c('div',{staticClass:\"spin_lyn3\",attrs:{\"aria-hidden\":\"true\"}},[_c('CIcon',{attrs:{\"name\":\"lyn3\",\"height\":\"22\",\"width\":\"32\",\"alt\":\"\",\"original\":true}})],1),_c('p',{staticClass:\"sr-only\"},[_vm._v(\" Loading... \")])])}\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\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\n\r\n@Component({\r\n name: 'SpinnerElement'\r\n})\r\nexport default class SpinnerElement extends Vue {\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerElement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerElement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SpinnerElement.vue?vue&type=template&id=db7d78cc&scoped=true&\"\nimport script from \"./SpinnerElement.vue?vue&type=script&lang=ts&\"\nexport * from \"./SpinnerElement.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SpinnerElement.vue?vue&type=style&index=0&id=db7d78cc&lang=less&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 \"db7d78cc\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.show)?_c('article',{staticClass:\"page-toaster mb-20 p-15\",class:{ 'bg-red-500 text-white': !_vm.warning, 'bg-yellow-500 text-black': _vm.warning}},[(_vm.headline)?_c('h2',{staticClass:\"text-20 mb-10 flex items-center\"},[_c('CIcon',{staticClass:\"mr-15\",attrs:{\"name\":\"notification\",\"height\":\"30\",\"width\":\"30\"}}),_c('span',[_vm._v(_vm._s(_vm.headline))])],1):_vm._e(),(_vm.description)?_c('p',{staticClass:\"flex items-center\"},[(!_vm.headline)?_c('CIcon',{staticClass:\"mr-15\",attrs:{\"name\":\"notification\",\"height\":\"30\",\"width\":\"30\"}}):_vm._e(),_vm._v(\" \"+_vm._s(_vm.description)+\" \")],1):_vm._e()]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Vue, Prop } from 'vue-property-decorator';\r\nimport Component from 'vue-class-component';\r\n\r\n@Component\r\n\r\nexport default class BasketToaster extends Vue {\r\n @Prop({\r\n required: true,\r\n type: Boolean,\r\n default: false\r\n }) show!: boolean;\r\n\r\n @Prop({\r\n required: false,\r\n type: String,\r\n default: ''\r\n }) headline!: string;\r\n\r\n @Prop({\r\n required: false,\r\n type: String,\r\n default: ''\r\n }) description!: string;\r\n\r\n @Prop({\r\n required: false,\r\n type: Boolean,\r\n default: false\r\n }) warning!: boolean;\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageToaster.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageToaster.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PageToaster.vue?vue&type=template&id=780289e8&scoped=true&\"\nimport script from \"./PageToaster.vue?vue&type=script&lang=ts&\"\nexport * from \"./PageToaster.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PageToaster.vue?vue&type=style&index=0&id=780289e8&lang=less&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 \"780289e8\",\n null\n \n)\n\nexport default component.exports","import { DeliveryAddressViewObject } from '@/types/apiServerContract';\r\nimport { ExtendedDeliveryAddressViewObject } from '@/project/app/client-pages/checkout/types';\r\n\r\nconst localPrefix = 'local-';\r\nlet deliveryAddresses: DeliveryAddressViewObject[] = [];\r\n\r\nfunction getDeliveryAddresses(): DeliveryAddressViewObject[] {\r\n return deliveryAddresses;\r\n}\r\n\r\nfunction genLocalWebId(): string {\r\n return `${localPrefix}${Math.random()}`;\r\n}\r\n\r\nfunction isLocalWebId(webId: string): boolean {\r\n return webId != null && webId.startsWith(localPrefix);\r\n}\r\n\r\nfunction setOriginalDeliveryAddresses(addresses: DeliveryAddressViewObject[]) {\r\n deliveryAddresses = [...addresses];\r\n}\r\n\r\nfunction applyAddress(addr: ExtendedDeliveryAddressViewObject) {\r\n const findPredicate = createFindPredicate(addr);\r\n const existing = deliveryAddresses.find(findPredicate);\r\n if (existing) {\r\n // Remove old to update\r\n deliveryAddresses = deliveryAddresses.filter(addrInList => !findPredicate(addrInList));\r\n }\r\n // Check for update on isDefault\r\n if (addr.isDefault) {\r\n // isDefault set - clear for everyone\r\n deliveryAddresses.forEach(a => a.isDefault = false);\r\n }\r\n deliveryAddresses.push(addr);\r\n\r\n function createFindPredicate(addr: ExtendedDeliveryAddressViewObject) {\r\n // If addr has a temporary id - use that to look up - else use webid\r\n return (other: ExtendedDeliveryAddressViewObject) => {\r\n return addr.temporaryId ? addr.temporaryId === other.temporaryId : addr.webId === other.webId;\r\n };\r\n }\r\n}\r\n\r\nexport default {\r\n genLocalWebId,\r\n isLocalWebId,\r\n applyAddress,\r\n setOriginalDeliveryAddresses,\r\n getDeliveryAddresses\r\n};\r\n","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutElementLayout.vue?vue&type=style&index=0&id=621f41df&scoped=true&lang=less&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutElementLayout.vue?vue&type=style&index=0&id=621f41df&scoped=true&lang=less&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CheckoutElementLayout',{attrs:{\"heading-label\":\"Checkout.Address.Heading\",\"validation-error\":_vm.validationError,\"show-placeholder\":!_vm.dataLoaded}},[_c('div',{staticClass:\"flex flex-col md:flex-row relative bg-white p-10 md:p-30 lg:p-40\"},[_c('article',{staticClass:\"w-full md:w-1/2\"},[_c('AddressCard',{attrs:{\"heading-label\":\"Checkout.Address.InvoiceHeading\",\"address\":_vm.invoiceAddress}})],1),_c('article',{staticClass:\"w-full mt-40 md:w-1/2 md:mt-0\"},[_c('AddressCard',{ref:\"deliveryAddress\",attrs:{\"heading-label\":\"Checkout.Address.DeliveryHeading\",\"validate\":\"\",\"address\":_vm.deliveryAddress}}),_c('button',{staticClass:\"inline-flex items-center mt-20 underline hover:no-underline focus:no-underline\",class:_vm.validationError ? 'text-red-500' : 'theme-text-linkcolor',attrs:{\"type\":\"button\",\"disabled\":!_vm.dataLoaded},on:{\"click\":function($event){return _vm.showChangeAddressOverlay()}}},[_c('CIcon',{attrs:{\"name\":\"edit\",\"width\":\"18\",\"height\":\"18\"}}),_c('span',{staticClass:\"text-15 ml-10\"},[_vm._v(_vm._s(_vm.$dictionary.get(_vm.validationError ? 'Checkout.Address.SpecifyAddress' : 'Checkout.Address.ChangeAddress')))])],1)],1),(_vm.basketUpdateInProgress)?_c('div',{staticClass:\"absolute inset-0\"},[_c('SpinnerOverlay',{attrs:{\"show\":\"\",\"delay\":0}})],1):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { AbstractModalService } from '@/core/modals/AbstractModalService';\r\nimport { ModalOptions } from '@/core/modals/ModalState';\r\nimport { AddressViewObject, DeliveryAddressViewObject } from '@/types/apiServerContract';\r\n\r\nclass CheckoutChangeAddressOverlayService extends AbstractModalService {\r\n public show(\r\n deliveryAddresses: DeliveryAddressViewObject[],\r\n deliveryAddress: AddressViewObject | DeliveryAddressViewObject | null,\r\n allowedCountryCodes: string[],\r\n options?: Partial\r\n ) {\r\n return this.showModal({\r\n component: () => import(\r\n /* webpackPrefetch: true */\r\n '@/project/app/client-pages/checkout/addresses/CheckoutChangeAddressOverlay.vue'),\r\n componentAttrs: {\r\n deliveryAddresses,\r\n deliveryAddress,\r\n allowedCountryCodes\r\n },\r\n options: {\r\n wide: true,\r\n usePanelWrapper: false,\r\n closeButtonPosition: 'right-30',\r\n showCloseButton: true,\r\n disableUserClose: true,\r\n closeOnBreakpointChange: false,\r\n ...options\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport default new CheckoutChangeAddressOverlayService();\r\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 Component from 'vue-class-component';\r\nimport CheckoutElementLayout from '@/project/app/client-pages/checkout/CheckoutElementLayout.vue';\r\nimport { AddressViewObject, DeliveryAddressViewObject } from '@/types/apiServerContract';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport AddressCard from '@/project/ui-components/address/AddressCard.vue';\r\nimport checkoutChangeAddressOverlayService from '@/project/modals/overlays/CheckoutChangeAddressOverlay.service';\r\nimport breakpointsState from '@/core/responsive/breakpoints/breakpointsState.observable';\r\nimport { MAX_SM } from '@/core/config/breakpointConfig';\r\nimport addressService from './address.service';\r\nimport { Validatable } from '@/project/app/client-pages/checkout/types';\r\nimport SpinnerOverlay from '@/project/spinners/SpinnerOverlay.vue';\r\n\r\n@Component({\r\n components: { SpinnerOverlay, AddressCard, CheckoutElementLayout },\r\n model: {\r\n prop: 'deliveryAddress',\r\n event: 'deliveryAddressUpdated'\r\n }\r\n})\r\nexport default class CheckoutAddressOverview extends Vue implements Validatable {\r\n validationError = false;\r\n\r\n @Prop(Object)\r\n invoiceAddress!: AddressViewObject;\r\n\r\n @Prop(Object)\r\n deliveryAddress!: AddressViewObject | DeliveryAddressViewObject | null;\r\n\r\n @Prop(Array)\r\n deliveryAddresses!: DeliveryAddressViewObject[];\r\n\r\n @Prop(Boolean)\r\n basketUpdateInProgress!: boolean;\r\n\r\n @Prop({\r\n type: Array,\r\n required: true\r\n })\r\n allowedCountryCodes!: string[];\r\n\r\n @Prop(Boolean)\r\n dataLoaded!: boolean;\r\n\r\n get side(): 'left' | 'center' {\r\n return breakpointsState.isBreakpointActive(MAX_SM) ? 'left' : 'center';\r\n }\r\n\r\n async showChangeAddressOverlay() {\r\n const address = await checkoutChangeAddressOverlayService.show(\r\n this.deliveryAddresses, this.deliveryAddress, this.allowedCountryCodes, {\r\n placement: this.side\r\n });\r\n if (address) {\r\n this.validationError = false;\r\n this.$emit('deliveryAddressUpdated', address);\r\n }\r\n }\r\n\r\n validate(): Promise {\r\n const valid = !!this.deliveryAddress && this.$refs.deliveryAddress.isValid();\r\n this.validationError = !valid;\r\n return Promise.resolve(valid);\r\n }\r\n\r\n @Watch('deliveryAddresses', {\r\n immediate: true\r\n })\r\n onDeliveryAddressesChange(value: DeliveryAddressViewObject[]) {\r\n addressService.setOriginalDeliveryAddresses(value);\r\n }\r\n\r\n $refs!: Vue['$refs'] & {\r\n deliveryAddress: AddressCard\r\n }\r\n}\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutAddressOverview.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutAddressOverview.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CheckoutAddressOverview.vue?vue&type=template&id=78bad571&\"\nimport script from \"./CheckoutAddressOverview.vue?vue&type=script&lang=ts&\"\nexport * from \"./CheckoutAddressOverview.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show || _vm.doShow)?_c('div',{staticClass:\"overlay absolute inset-0 z-spinner select-none\"},[_c('transition',{attrs:{\"appear\":\"\",\"enter-active-class\":\"animated fadeIn u-anim-dur-200\",\"leave-active-class\":\"animated fadeOut u-anim-dur-200\"}},[(_vm.doShow)?_c('div',{staticClass:\"overlay h-full flex items-center justify-center\"},[_c('spinner-element')],1):_vm._e()])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport SpinnerElement from '@/project/spinners/SpinnerElement.vue';\r\n\r\n@Component({\r\n components: { SpinnerElement }\r\n})\r\nexport default class Spinner extends Vue {\r\n @Prop({\r\n required: false,\r\n type: Boolean\r\n })\r\n show!: boolean;\r\n\r\n @Prop({\r\n required: false,\r\n type: Number,\r\n default: 250\r\n })\r\n delay!: number;\r\n\r\n @Prop({\r\n required: false,\r\n type: Number,\r\n default: 0\r\n })\r\n minDuration!: number;\r\n\r\n doShow = false;\r\n startTime = 0;\r\n\r\n @Watch('show', {\r\n immediate: true\r\n })\r\n onShowChange(value: boolean) {\r\n this.change(value);\r\n }\r\n\r\n change(value: boolean) {\r\n // Only show after delay, and if shown, show for at least minDuration.\r\n if (value) {\r\n setTimeout(() => {\r\n if (this.show) {\r\n this.doShow = true;\r\n this.startTime = performance.now();\r\n }\r\n }, this.delay);\r\n } else {\r\n const timeShown = performance.now() - this.startTime;\r\n const restTime = Math.max(0, this.minDuration - timeShown);\r\n setTimeout(() => {\r\n if (!this.show) {\r\n this.doShow = false;\r\n }\r\n }, restTime);\r\n }\r\n }\r\n}\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerOverlay.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SpinnerOverlay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SpinnerOverlay.vue?vue&type=template&id=3aa49e76&\"\nimport script from \"./SpinnerOverlay.vue?vue&type=script&lang=ts&\"\nexport * from \"./SpinnerOverlay.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('article',[_c('h2',{staticClass:\"mb-15\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get(_vm.headingLabel))+\" \")]),_c('div',{staticClass:\"relative\",class:{ 'invalid': _vm.validationError }},[_vm._t(\"default\"),_c('spinner-overlay',{attrs:{\"show\":_vm.showPlaceholder,\"delay\":500}})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport SpinnerOverlay from '@/project/spinners/SpinnerOverlay.vue';\r\n\r\n@Component({\r\n components: {\r\n SpinnerOverlay\r\n }\r\n})\r\nexport default class CheckoutElementLayout extends Vue {\r\n @Prop({\r\n type: String,\r\n required: true\r\n })\r\n headingLabel!: string;\r\n\r\n @Prop({\r\n type: Boolean,\r\n default: false\r\n })\r\n showPlaceholder!: boolean;\r\n\r\n @Prop({\r\n type: Boolean,\r\n default: false\r\n })\r\n validationError!: boolean;\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutElementLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutElementLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CheckoutElementLayout.vue?vue&type=template&id=621f41df&scoped=true&\"\nimport script from \"./CheckoutElementLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./CheckoutElementLayout.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CheckoutElementLayout.vue?vue&type=style&index=0&id=621f41df&scoped=true&lang=less&\"\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 \"621f41df\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}