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V,EAAE6U,GAG/C,OADAC,EADca,EAAkBb,SACxBY,GACDC,EAAkBX,OAC3B,C,kBCXA,IAAIY,EAAI,EAAQ,OACZC,EAAU,EAAQ,OAClBC,EAA2B,EAAQ,OACnCC,EAAQ,EAAQ,OAChBC,EAAa,EAAQ,OACrBC,EAAa,EAAQ,KACrBC,EAAqB,EAAQ,MAC7BC,EAAiB,EAAQ,MACzBC,EAAgB,EAAQ,OAExBC,EAAyBP,GAA4BA,EAAyBzG,UA0BlF,GAhBAuG,EAAE,CAAEvS,OAAQ,UAAWiT,OAAO,EAAMC,MAAM,EAAMC,SAP5BV,GAA4BC,GAAM,WAEpDM,EAAgC,QAAE9G,KAAK,CAAEvK,KAAM,WAA0B,IAAK,WAA0B,GAC1G,KAIuE,CACrE,QAAW,SAAUyR,GACnB,IAAI5B,EAAIqB,EAAmB/a,KAAM6a,EAAW,YACxCU,EAAaT,EAAWQ,GAC5B,OAAOtb,KAAK6J,KACV0R,EAAa,SAAUhB,GACrB,OAAOS,EAAetB,EAAG4B,KAAazR,MAAK,WAAc,OAAO0Q,CAAG,GACrE,EAAIe,EACJC,EAAa,SAAU3Z,GACrB,OAAOoZ,EAAetB,EAAG4B,KAAazR,MAAK,WAAc,MAAMjI,CAAG,GACpE,EAAI0Z,EAER,KAIGZ,GAAWI,EAAWH,GAA2B,CACpD,IAAI3V,EAAS6V,EAAW,WAAW3G,UAAmB,QAClDgH,EAAgC,UAAMlW,GACxCiW,EAAcC,EAAwB,UAAWlW,EAAQ,CAAEwW,QAAQ,GAEvE,C","sources":["webpack://@stamhoofd/webshop/../../shared/components/src/errors/Validator.ts","webpack://@stamhoofd/webshop/./src/views/checkout/AddressSelectionView.vue?fc8f","webpack://@stamhoofd/webshop/src/views/checkout/AddressSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/AddressSelectionView.vue?45ed","webpack://@stamhoofd/webshop/./src/views/checkout/AddressSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/CheckoutMethodSelectionView.vue?7913","webpack://@stamhoofd/webshop/src/views/checkout/CheckoutMethodSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/CheckoutMethodSelectionView.vue?a6d4","webpack://@stamhoofd/webshop/./src/views/checkout/CheckoutMethodSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/CustomerView.vue?44ed","webpack://@stamhoofd/webshop/src/views/checkout/CustomerView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/CustomerView.vue?31f3","webpack://@stamhoofd/webshop/./src/views/checkout/CustomerView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/PaymentSelectionView.vue?aeb5","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqBannerView.vue","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqBannerView.vue?3cb0","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqBannerView.vue?6e18","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqBannerView.vue?5ff2","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqButtonView.vue?73a6","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqButtonView.vue","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqButtonView.vue?4439","webpack://@stamhoofd/webshop/../../shared/components/src/views/PayconiqButtonView.vue?b3d9","webpack://@stamhoofd/webshop/../../shared/components/src/views/PaymentHandler.ts","webpack://@stamhoofd/webshop/src/views/checkout/PaymentSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/PaymentSelectionView.vue?87fa","webpack://@stamhoofd/webshop/./src/views/checkout/PaymentSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/TimeSelectionView.vue?6f87","webpack://@stamhoofd/webshop/src/views/checkout/TimeSelectionView.vue","webpack://@stamhoofd/webshop/./src/views/checkout/TimeSelectionView.vue?a31c","webpack://@stamhoofd/webshop/./src/views/checkout/TimeSelectionView.vue","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/AddressInput.vue?6b57","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/AddressInput.vue","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/AddressInput.vue?e6d4","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/AddressInput.vue?92df","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/Dropdown.vue?4353","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/Dropdown.vue","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/Dropdown.vue?2fa3","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/Dropdown.vue?6229","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/EmailInput.vue?e0fc","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/EmailInput.vue","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/EmailInput.vue?8870","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/EmailInput.vue?311d","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/PhoneInput.vue?2ffe","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/PhoneInput.vue","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/PhoneInput.vue?8dd5","webpack://@stamhoofd/webshop/../../shared/components/src/inputs/PhoneInput.vue?0210","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STButtonToolbar.vue?6aed","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STButtonToolbar.vue","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STButtonToolbar.vue?d072","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STButtonToolbar.vue?5cfa","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STFloatingFooter.vue?62a0","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/STFloatingFooter.vue?0f69","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/SaveView.vue?66d0","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/SaveView.vue","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/SaveView.vue?38c6","webpack://@stamhoofd/webshop/../../shared/components/src/navigation/SaveView.vue?f2b1","webpack://@stamhoofd/webshop/../../shared/components/src/views/PaymentSelectionList.vue?653c","webpack://@stamhoofd/webshop/../../shared/components/src/views/PaymentSelectionList.vue","webpack://@stamhoofd/webshop/../../shared/components/src/views/PaymentSelectionList.vue?a88a","webpack://@stamhoofd/webshop/../../shared/components/src/views/PaymentSelectionList.vue?61ed","webpack://@stamhoofd/webshop/../../../shared/utility/esm/dist/src/DataValidator.js","webpack://@stamhoofd/webshop/../../../node_modules/core-js/internals/new-promise-capability.js","webpack://@stamhoofd/webshop/../../../node_modules/core-js/internals/promise-native-constructor.js","webpack://@stamhoofd/webshop/../../../node_modules/core-js/internals/promise-resolve.js","webpack://@stamhoofd/webshop/../../../node_modules/core-js/modules/es.promise.finally.js"],"sourcesContent":["\n\ntype Validation = () => Promise<boolean> | boolean\n/***\n * Pass a Validator instance to mutliple components so you can validate the state of multiple input components at once. \n * This is usefull because some validation already happens on the fly in components, that way we can reuse that behaviour\n * in a final validation before submitting a form.\n * Components are responsible for their own error showing\n */\nexport class Validator {\n validations: Map<any, Validation> = new Map()\n\n addValidation(owner: any, validation: Validation) {\n this.validations.set(owner, validation)\n }\n\n removeValidation(owner: any) {\n this.validations.delete(owner)\n }\n\n /**\n * Validate all fields\n */\n async validate(): Promise<boolean> {\n let valid = true\n for (const [_, validation] of this.validations) {\n const result = await validation()\n if (!result) {\n valid = false\n // we do not return yet, since validation method can have side effects in UI\n }\n }\n return valid\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('SaveView',{attrs:{\"title\":\"Kies je leveringsadres\",\"loading\":_vm.loading,\"save-icon-right\":\"arrow-right\",\"save-text\":\"Doorgaan\",\"data-submit-last-field\":\"\"},on:{\"save\":_vm.goNext}},[_c('h1',[_vm._v(\"Kies je leveringsadres\")]),_vm._v(\" \"),(_vm.deliveryMethod && _vm.deliveryMethod.price.minimumPrice !== null && _vm.deliveryMethod.price.discountPrice !== _vm.checkout.deliveryPrice)?_c('div',{staticClass:\"info-box\"},[_vm._v(\"\\n Bestel minimum \"+_vm._s(_vm._f(\"price\")(_vm.deliveryMethod.price.minimumPrice))+\" om van een verlaagde leveringskost van \"+_vm._s(_vm._f(\"price\")(_vm.deliveryMethod.price.discountPrice))+\" te genieten.\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.checkout.deliveryPrice == 0)?_c('p',{staticClass:\"success-box\"},[_vm._v(\"\\n Levering is gratis\\n \"),(_vm.deliveryMethod && _vm.deliveryMethod.price.minimumPrice !== null && _vm.deliveryMethod.price.price != 0)?[_vm._v(\"\\n vanaf een bestelbedrag van \"+_vm._s(_vm._f(\"price\")(_vm.deliveryMethod.price.minimumPrice))+\".\\n \")]:_vm._e()],2):_c('p',{staticClass:\"info-box\"},[_vm._v(\"\\n De leveringskost bedraagt \"+_vm._s(_vm._f(\"price\")(_vm.checkout.deliveryPrice))+\"\\n \"),(_vm.deliveryMethod && _vm.deliveryMethod.price.minimumPrice !== null && _vm.deliveryMethod.price.discountPrice === _vm.checkout.deliveryPrice)?[_vm._v(\"\\n vanaf een bestelbedrag van \"+_vm._s(_vm._f(\"price\")(_vm.deliveryMethod.price.minimumPrice))+\".\\n \")]:_vm._e()],2),_vm._v(\" \"),_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}}),_vm._v(\" \"),_c('AddressInput',{attrs:{\"required\":true,\"title\":\"Vul het leveringsadres in\",\"validator\":_vm.validator,\"validate-server\":_vm.unscopedServer},model:{value:(_vm.address),callback:function ($$v) {_vm.address=$$v},expression:\"address\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <SaveView title=\"Kies je leveringsadres\" :loading=\"loading\" save-icon-right=\"arrow-right\" save-text=\"Doorgaan\" data-submit-last-field @save=\"goNext\">\n <h1>Kies je leveringsadres</h1>\n <div v-if=\"deliveryMethod && deliveryMethod.price.minimumPrice !== null && deliveryMethod.price.discountPrice !== checkout.deliveryPrice\" class=\"info-box\">\n Bestel minimum {{ deliveryMethod.price.minimumPrice | price }} om van een verlaagde leveringskost van {{ deliveryMethod.price.discountPrice | price }} te genieten.\n </div>\n\n <p v-if=\"checkout.deliveryPrice == 0\" class=\"success-box\">\n Levering is gratis\n <template v-if=\"deliveryMethod && deliveryMethod.price.minimumPrice !== null && deliveryMethod.price.price != 0\" class=\"info-box\">\n vanaf een bestelbedrag van {{ deliveryMethod.price.minimumPrice | price }}.\n </template>\n </p>\n <p v-else class=\"info-box\">\n De leveringskost bedraagt {{ checkout.deliveryPrice | price }}\n <template v-if=\"deliveryMethod && deliveryMethod.price.minimumPrice !== null && deliveryMethod.price.discountPrice === checkout.deliveryPrice\" class=\"info-box\">\n vanaf een bestelbedrag van {{ deliveryMethod.price.minimumPrice | price }}.\n </template>\n </p>\n\n <STErrorsDefault :error-box=\"errorBox\" />\n\n <AddressInput v-model=\"address\" :required=\"true\" title=\"Vul het leveringsadres in\" :validator=\"validator\" :validate-server=\"unscopedServer\" />\n </SaveView>\n</template>\n\n<script lang=\"ts\">\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { AddressInput, ErrorBox, SaveView, STErrorsDefault, STList, STListItem, Validator } from \"@stamhoofd/components\";\nimport { UrlHelper } from '@stamhoofd/networking';\nimport { Address, ValidatedAddress } from '@stamhoofd/structures';\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins } from \"vue-property-decorator\";\n\nimport { CheckoutManager } from '../../classes/CheckoutManager';\nimport { WebshopManager } from '../../classes/WebshopManager';\nimport { CheckoutStepsManager, CheckoutStepType } from './CheckoutStepsManager';\n\n@Component({\n components: {\n STList,\n STListItem,\n STErrorsDefault,\n AddressInput,\n SaveView\n },\n filters: {\n dateWithDay: (d: Date) => Formatter.capitalizeFirstLetter(Formatter.dateWithDay(d)),\n minutes: Formatter.minutes.bind(Formatter),\n price: Formatter.price.bind(Formatter)\n }\n})\nexport default class AddressSelectionView extends Mixins(NavigationMixin){\n step = -1\n\n loading = false\n errorBox: ErrorBox | null = null\n validator = new Validator()\n CheckoutManager = CheckoutManager\n\n get checkoutMethod() {\n return CheckoutManager.checkout.checkoutMethod!\n }\n\n get deliveryMethod() {\n return CheckoutManager.checkout.deliveryMethod\n }\n\n get checkout() {\n return CheckoutManager.checkout\n }\n\n get webshop() {\n return WebshopManager.webshop\n }\n\n get address() {\n return CheckoutManager.checkout.address\n }\n\n set address(address: ValidatedAddress | Address | null) {\n if (address instanceof ValidatedAddress) {\n CheckoutManager.checkout.address = address\n CheckoutManager.saveCheckout()\n }\n } \n\n get unscopedServer() {\n return WebshopManager.unscopedServer\n }\n\n async goNext() {\n if (this.loading) {\n return\n }\n this.loading = true\n\n if (!await this.validator.validate()) {\n this.loading = false\n return\n }\n this.errorBox = null\n\n try {\n await CheckoutStepsManager.goNext(CheckoutStepType.Address, this)\n \n } catch (e) {\n console.error(e)\n this.errorBox = new ErrorBox(e)\n }\n this.loading = false\n }\n\n mounted() {\n UrlHelper.setUrl(\"/checkout/\"+CheckoutStepType.Address.toLowerCase())\n }\n}\n</script>","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressSelectionView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressSelectionView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AddressSelectionView.vue?vue&type=template&id=5976627c\"\nimport script from \"./AddressSelectionView.vue?vue&type=script&lang=ts\"\nexport * from \"./AddressSelectionView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('SaveView',{attrs:{\"title\":\"Kies je afhaalmethode\",\"loading\":_vm.loading,\"save-icon-right\":\"arrow-right\",\"save-text\":\"Doorgaan\",\"prefer-large-button\":true},on:{\"save\":_vm.goNext}},[_c('h1',[_vm._v(\"Kies je afhaalmethode\")]),_vm._v(\" \"),_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}}),_vm._v(\" \"),_c('STList',_vm._l((_vm.checkoutMethods),function(checkoutMethod){return _c('STListItem',{key:checkoutMethod.id,staticClass:\"right-stack left-center\",attrs:{\"selectable\":true,\"element-name\":\"label\"}},[_c('Radio',{attrs:{\"slot\":\"left\",\"name\":\"choose-checkout-method\",\"value\":checkoutMethod},slot:\"left\",model:{value:(_vm.selectedMethod),callback:function ($$v) {_vm.selectedMethod=$$v},expression:\"selectedMethod\"}}),_vm._v(\" \"),_c('h2',{staticClass:\"style-title-list\"},[_vm._v(\"\\n \"+_vm._s(_vm.getTypeName(checkoutMethod.type))+\": \"+_vm._s(checkoutMethod.name)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"style-description-small\"},[_vm._v(\"\\n \"+_vm._s(checkoutMethod.description || checkoutMethod.address || \"\")+\"\\n \")]),_vm._v(\" \"),(checkoutMethod.timeSlots.timeSlots.length == 1)?_c('p',{staticClass:\"style-description-small\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"capitalizeFirstLetter\")(_vm._f(\"date\")(checkoutMethod.timeSlots.timeSlots[0].date)))+\" tussen \"+_vm._s(_vm._f(\"minutes\")(checkoutMethod.timeSlots.timeSlots[0].startTime))+\" - \"+_vm._s(_vm._f(\"minutes\")(checkoutMethod.timeSlots.timeSlots[0].endTime))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(checkoutMethod.timeSlots.timeSlots.length == 1)?[(checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock === 0)?_c('span',{staticClass:\"style-tag error\",attrs:{\"slot\":\"right\"},slot:\"right\"},[_vm._v(\"Volzet\")]):(checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock !== null)?_c('span',{staticClass:\"style-tag\",attrs:{\"slot\":\"right\"},slot:\"right\"},[_vm._v(\"Nog \"+_vm._s(checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock)+\" \"+_vm._s(checkoutMethod.timeSlots.timeSlots[0].remainingPersons !== null ? (checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock == 1 ? \"persoon\" : \"personen\") : (checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock == 1 ? \"plaats\" : \"plaatsen\")))]):_vm._e()]:_vm._e()],2)}),1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <SaveView title=\"Kies je afhaalmethode\" :loading=\"loading\" save-icon-right=\"arrow-right\" save-text=\"Doorgaan\" :prefer-large-button=\"true\" @save=\"goNext\">\n <h1>Kies je afhaalmethode</h1>\n\n <STErrorsDefault :error-box=\"errorBox\" />\n\n <STList>\n <STListItem v-for=\"checkoutMethod in checkoutMethods\" :key=\"checkoutMethod.id\" :selectable=\"true\" element-name=\"label\" class=\"right-stack left-center\">\n <Radio slot=\"left\" v-model=\"selectedMethod\" name=\"choose-checkout-method\" :value=\"checkoutMethod\" />\n <h2 class=\"style-title-list\">\n {{ getTypeName(checkoutMethod.type) }}: {{ checkoutMethod.name }}\n </h2>\n <p class=\"style-description-small\">\n {{ checkoutMethod.description || checkoutMethod.address || \"\" }}\n </p>\n <p v-if=\"checkoutMethod.timeSlots.timeSlots.length == 1\" class=\"style-description-small\">\n {{ checkoutMethod.timeSlots.timeSlots[0].date | date | capitalizeFirstLetter }} tussen {{ checkoutMethod.timeSlots.timeSlots[0].startTime | minutes }} - {{ checkoutMethod.timeSlots.timeSlots[0].endTime | minutes }}\n </p>\n\n <template v-if=\"checkoutMethod.timeSlots.timeSlots.length == 1\">\n <span v-if=\"checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock === 0\" slot=\"right\" class=\"style-tag error\">Volzet</span>\n <span v-else-if=\"checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock !== null\" slot=\"right\" class=\"style-tag\">Nog {{ checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock }} {{ checkoutMethod.timeSlots.timeSlots[0].remainingPersons !== null ? (checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock == 1 ? \"persoon\" : \"personen\") : (checkoutMethod.timeSlots.timeSlots[0].listedRemainingStock == 1 ? \"plaats\" : \"plaatsen\") }}</span>\n </template>\n </STListItem>\n </STList>\n </SaveView>\n</template>\n\n<script lang=\"ts\">\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { ErrorBox, Radio, SaveView, STErrorsDefault, STList, STListItem } from \"@stamhoofd/components\";\nimport { UrlHelper } from '@stamhoofd/networking';\nimport { CheckoutMethod, CheckoutMethodType } from '@stamhoofd/structures';\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins } from \"vue-property-decorator\";\n\nimport { CheckoutManager } from '../../classes/CheckoutManager';\nimport { WebshopManager } from '../../classes/WebshopManager';\nimport { CheckoutStepsManager, CheckoutStepType } from './CheckoutStepsManager';\n\n@Component({\n components: {\n STList,\n STListItem,\n Radio,\n STErrorsDefault,\n SaveView\n },\n filters: {\n date: Formatter.dateWithDay.bind(Formatter),\n minutes: Formatter.minutes.bind(Formatter),\n capitalizeFirstLetter: Formatter.capitalizeFirstLetter.bind(Formatter)\n }\n})\nexport default class CheckoutMethodSelectionView extends Mixins(NavigationMixin){\n step = -1\n\n loading = false\n errorBox: ErrorBox | null = null\n\n CheckoutManager = CheckoutManager\n\n get webshop() {\n return WebshopManager.webshop\n }\n\n get checkoutMethods() {\n return this.webshop.meta.checkoutMethods\n }\n\n get selectedMethod(): CheckoutMethod {\n if (this.CheckoutManager.checkout.checkoutMethod) {\n const search = this.CheckoutManager.checkout.checkoutMethod.id\n const f = this.webshop.meta.checkoutMethods.find(c => c.id == search)\n if (f) {\n return f\n }\n }\n return this.webshop.meta.checkoutMethods[0]\n }\n\n set selectedMethod(method: CheckoutMethod) {\n CheckoutManager.checkout.checkoutMethod = method\n CheckoutManager.saveCheckout()\n }\n\n getTypeName(type: CheckoutMethodType) {\n switch (type) {\n case CheckoutMethodType.Takeout: return \"Afhalen\";\n case CheckoutMethodType.Delivery: return \"Levering\";\n case CheckoutMethodType.OnSite: return \"Ter plaatse consumeren\";\n }\n }\n \n async goNext() {\n if (this.loading || !this.selectedMethod) {\n return\n }\n // Force checkout save\n this.selectedMethod = this.selectedMethod as any\n\n this.loading = true\n this.errorBox = null\n\n try {\n await CheckoutStepsManager.goNext(CheckoutStepType.Method, this)\n } catch (e) {\n console.error(e)\n this.errorBox = new ErrorBox(e)\n }\n this.loading = false\n }\n\n mounted() {\n UrlHelper.setUrl(\"/checkout/\"+CheckoutStepType.Method.toLowerCase())\n }\n}\n</script>\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutMethodSelectionView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutMethodSelectionView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CheckoutMethodSelectionView.vue?vue&type=template&id=784a7632\"\nimport script from \"./CheckoutMethodSelectionView.vue?vue&type=script&lang=ts\"\nexport * from \"./CheckoutMethodSelectionView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('SaveView',{attrs:{\"title\":\"Jouw gegevens\",\"loading\":_vm.loading,\"save-icon-right\":\"arrow-right\",\"save-text\":\"Doorgaan\",\"data-submit-last-field\":\"\"},on:{\"save\":_vm.goNext}},[_c('h1',[_vm._v(\"Jouw gegevens\")]),_vm._v(\" \"),_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}}),_vm._v(\" \"),(!_vm.isLoggedIn)?[_c('STInputBox',{attrs:{\"title\":\"Jouw naam\",\"error-fields\":\"firstName,lastName\",\"error-box\":_vm.errorBox}},[_c('div',{staticClass:\"input-group\"},[_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"}],staticClass:\"input\",attrs:{\"name\":\"fname\",\"type\":\"text\",\"placeholder\":\"Voornaam\",\"required\":\"\",\"autocomplete\":\"given-name\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.firstName=$event.target.value}}})]),_vm._v(\" \"),_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"}],staticClass:\"input\",attrs:{\"name\":\"lname\",\"type\":\"text\",\"placeholder\":\"Achternaam\",\"required\":\"\",\"autocomplete\":\"family-name\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.lastName=$event.target.value}}})])])]),_vm._v(\" \"),_c('EmailInput',{attrs:{\"title\":\"E-mailadres\",\"name\":\"email\",\"validator\":_vm.validator,\"placeholder\":_vm.emailPlaceholder,\"autocomplete\":\"email\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_vm._v(\" \"),(_vm.emailDescription)?_c('p',{staticClass:\"style-description-small\",domProps:{\"textContent\":_vm._s(_vm.emailDescription)}}):_vm._e()]:_vm._e(),_vm._v(\" \"),(_vm.phoneEnabled)?_c('PhoneInput',{attrs:{\"title\":_vm.$t('shared.inputs.mobile.label' ),\"name\":\"mobile\",\"validator\":_vm.validator,\"placeholder\":\"Voor dringende info\",\"autocomplete\":\"tel\"},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}}):_vm._e(),_vm._v(\" \"),_vm._l((_vm.fields),function(field){return _c('FieldBox',{key:field.id,attrs:{\"with-title\":false,\"field\":field,\"answers\":_vm.CheckoutManager.checkout.fieldAnswers,\"error-box\":_vm.errorBox}})})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <SaveView title=\"Jouw gegevens\" :loading=\"loading\" save-icon-right=\"arrow-right\" save-text=\"Doorgaan\" data-submit-last-field @save=\"goNext\">\n <h1>Jouw gegevens</h1>\n\n <STErrorsDefault :error-box=\"errorBox\" />\n\n <template v-if=\"!isLoggedIn\">\n <STInputBox title=\"Jouw naam\" error-fields=\"firstName,lastName\" :error-box=\"errorBox\">\n <div class=\"input-group\">\n <div>\n <input v-model=\"firstName\" class=\"input\" name=\"fname\" type=\"text\" placeholder=\"Voornaam\" required autocomplete=\"given-name\">\n </div>\n <div>\n <input v-model=\"lastName\" class=\"input\" name=\"lname\" type=\"text\" placeholder=\"Achternaam\" required autocomplete=\"family-name\">\n </div>\n </div>\n </STInputBox>\n\n <EmailInput v-model=\"email\" title=\"E-mailadres\" name=\"email\" :validator=\"validator\" :placeholder=\"emailPlaceholder\" autocomplete=\"email\" />\n <p v-if=\"emailDescription\" class=\"style-description-small\" v-text=\"emailDescription\" />\n </template>\n\n <PhoneInput v-if=\"phoneEnabled\" v-model=\"phone\" :title=\"$t('shared.inputs.mobile.label' )\" name=\"mobile\" :validator=\"validator\" placeholder=\"Voor dringende info\" autocomplete=\"tel\" />\n\n <FieldBox v-for=\"field in fields\" :key=\"field.id\" :with-title=\"false\" :field=\"field\" :answers=\"CheckoutManager.checkout.fieldAnswers\" :error-box=\"errorBox\" />\n </SaveView>\n</template>\n\n<script lang=\"ts\">\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { EmailInput, ErrorBox, FieldBox, PhoneInput, SaveView, STErrorsDefault, STInputBox, STList, STListItem, Validator } from \"@stamhoofd/components\";\nimport { SessionManager, UrlHelper } from '@stamhoofd/networking';\nimport { WebshopTicketType } from \"@stamhoofd/structures\";\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins } from \"vue-property-decorator\";\n\nimport { CheckoutManager } from '../../classes/CheckoutManager';\nimport { WebshopManager } from '../../classes/WebshopManager';\nimport { CheckoutStepsManager, CheckoutStepType } from './CheckoutStepsManager';\n\n\n@Component({\n components: {\n STList,\n STListItem,\n STErrorsDefault,\n STInputBox,\n EmailInput,\n PhoneInput,\n SaveView,\n FieldBox\n },\n filters: {\n dateWithDay: (d: Date) => Formatter.capitalizeFirstLetter(Formatter.dateWithDay(d)),\n minutes: Formatter.minutes.bind(Formatter)\n }\n})\nexport default class CustomerView extends Mixins(NavigationMixin){\n step = -1\n\n loading = false\n errorBox: ErrorBox | null = null\n validator = new Validator()\n CheckoutManager = CheckoutManager\n\n get phoneEnabled() {\n return this.webshop.meta.phoneEnabled\n }\n\n get isLoggedIn() {\n return SessionManager.currentSession?.isComplete() ?? false\n }\n \n get checkoutMethod() {\n return CheckoutManager.checkout.checkoutMethod!\n }\n\n get emailPlaceholder() {\n if (this.webshop.meta.ticketType !== WebshopTicketType.None) {\n return 'Voor tickets'\n }\n return 'Voor bevestigingsemail'\n }\n\n get emailDescription() {\n if (this.webshop.meta.ticketType !== WebshopTicketType.None) {\n return 'Je ontvangt jouw tickets op dit e-mailadres. Kijk het goed na.'\n }\n return null\n }\n\n get fields() {\n return this.webshop.meta.customFields\n }\n\n get webshop() {\n return WebshopManager.webshop\n }\n\n get firstName() {\n return CheckoutManager.checkout.customer.firstName\n }\n\n set firstName(firstName: string) {\n CheckoutManager.checkout.customer.firstName = firstName\n CheckoutManager.saveCheckout()\n } \n\n get lastName() {\n return CheckoutManager.checkout.customer.lastName\n }\n\n set lastName(lastName: string) {\n CheckoutManager.checkout.customer.lastName = lastName\n CheckoutManager.saveCheckout()\n } \n\n get email() {\n return CheckoutManager.checkout.customer.email\n }\n\n set email(email: string) {\n CheckoutManager.checkout.customer.email = email\n CheckoutManager.saveCheckout()\n } \n\n get phone() {\n return CheckoutManager.checkout.customer.phone\n }\n\n set phone(phone: string) {\n CheckoutManager.checkout.customer.phone = phone\n CheckoutManager.saveCheckout()\n } \n\n async goNext() {\n if (this.loading) {\n return\n }\n\n if (!await this.validator.validate()) {\n return\n }\n this.loading = true\n this.errorBox = null\n\n // Clear old open fields\n\n try {\n await CheckoutStepsManager.goNext(CheckoutStepType.Customer, this)\n } catch (e) {\n console.error(e)\n this.errorBox = new ErrorBox(e)\n }\n this.loading = false\n }\n\n mounted() {\n UrlHelper.setUrl(\"/checkout/\"+CheckoutStepType.Customer.toLowerCase())\n }\n}\n</script>\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CustomerView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CustomerView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CustomerView.vue?vue&type=template&id=26062804\"\nimport script from \"./CustomerView.vue?vue&type=script&lang=ts\"\nexport * from \"./CustomerView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('SaveView',{attrs:{\"title\":_vm.title,\"loading\":_vm.loading,\"save-text\":\"Bestelling bevestigen\",\"prefer-large-button\":true},on:{\"save\":_vm.goNext}},[(_vm.checkout.totalPrice > 0)?_c('span',{attrs:{\"slot\":\"left\"},slot:\"left\"},[_vm._v(\"Totaal: \"+_vm._s(_vm._f(\"price\")(_vm.checkout.totalPrice)))]):_vm._e(),_vm._v(\" \"),_c('h1',[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),(_vm.isTrial)?_c('p',{staticClass:\"warning-box\"},[_vm._v(\"\\n Dit is een demo webshop. Bestellingen zijn fictief.\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.checkout.totalPrice > 0)?[_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}}),_vm._v(\" \"),_c('PaymentSelectionList',{attrs:{\"payment-methods\":_vm.paymentMethods,\"organization\":_vm.organization,\"context\":_vm.paymentContext},model:{value:(_vm.selectedPaymentMethod),callback:function ($$v) {_vm.selectedPaymentMethod=$$v},expression:\"selectedPaymentMethod\"}})]:[_c('p',[_vm._v(\"Jouw bestelling zal worden geplaatst als je verder gaat.\")]),_vm._v(\" \"),_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}})]],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"payconiq-banner-view\">\n <button class=\"payconiq-close button icon close white\" type=\"button\" @click=\"close\" />\n <h1>Scan en betaal met Payconiq by Bancontact</h1>\n\n <div class=\"payconiq-logo\" />\n\n <div class=\"qr-code\" :class=\"{ scanned: payment.status == 'Pending'}\">\n <img v-if=\"payment.status == 'Pending' || payment.status == 'Created'\" :src=\"qrCodeSrc\">\n </div>\n\n <LoadingButton :loading=\"payment && payment.status == 'Pending'\" class=\"price-loading\">\n <p class=\"price\">\n {{ price | price }}\n </p>\n </LoadingButton>\n\n <p>Of scan met een ondersteunende bank app</p>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { Decoder } from '@simonbackx/simple-encoding';\nimport { Server } from '@simonbackx/simple-networking';\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { CenteredMessage, EmailInput, LoadingButton, STErrorsDefault,STFloatingFooter, STNavigationBar } from \"@stamhoofd/components\"\nimport { Payment,PaymentStatus } from '@stamhoofd/structures';\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins, Prop } from \"vue-property-decorator\";\n\n@Component({\n components: {\n STNavigationBar,\n STFloatingFooter,\n EmailInput,\n LoadingButton,\n STErrorsDefault\n },\n filters: {\n price: Formatter.price.bind(Formatter)\n }\n})\nexport default class PayconiqBannerView extends Mixins(NavigationMixin){\n @Prop({})\n paymentUrl: string;\n\n @Prop({ required: true })\n initialPayment!: Payment\n\n payment: Payment = this.initialPayment\n\n @Prop({ required: true })\n server: Server\n\n @Prop({ required: true })\n finishedHandler: (payment: Payment | null) => void\n\n pollCount = 0\n timer: any = null\n\n loading = false\n canceling = false\n\n mounted() {\n this.timer = setTimeout(this.poll.bind(this), 3000);\n }\n\n close() {\n // Try to cancel the payment in the background\n this.dismiss();\n }\n\n cancel() {\n if (this.canceling) {\n return;\n }\n this.canceling = true;\n const paymentId = this.payment.id\n this.server\n .request({\n method: \"POST\",\n path: \"/payments/\" +paymentId,\n query: {\n cancel: true\n },\n decoder: Payment as Decoder<Payment>,\n }).catch(console.error)\n }\n\n async shouldNavigateAway() {\n if (await CenteredMessage.confirm(\"Sluit dit alleen als je zeker bent dat je niet hebt betaald! Anders moet je gewoon even wachten.\", \"Ik heb nog niet betaald\")) {\n this.cancel();\n return true;\n }\n return false;\n }\n\n get price() {\n return this.payment?.price ?? 0\n }\n\n poll() {\n this.timer = null;\n const paymentId = this.payment.id\n this.server\n .request({\n method: \"POST\",\n path: \"/payments/\" +paymentId,\n decoder: Payment as Decoder<Payment>,\n }).then(response => {\n const payment = response.data\n this.payment = payment\n\n if (payment.status == PaymentStatus.Succeeded) {\n this.finishedHandler(payment)\n this.dismiss({ force: true })\n }\n\n if (payment.status == PaymentStatus.Failed) {\n // TODO: temporary message\n this.finishedHandler(payment)\n this.dismiss({ force: true })\n }\n }).catch(e => {\n // too: handle this\n console.error(e)\n }).finally(() => {\n this.pollCount++;\n if (this.payment.status == PaymentStatus.Succeeded || this.payment.status == PaymentStatus.Failed) {\n return;\n }\n this.timer = setTimeout(this.poll.bind(this), 3000);\n });\n }\n\n beforeDestroy() {\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n if (this.payment.status != PaymentStatus.Succeeded && this.payment.status != PaymentStatus.Failed) {\n this.finishedHandler(this.payment)\n }\n }\n\n get qrCodeSrc() {\n return \"https://portal.payconiq.com/qrcode?s=L&c=\"+encodeURIComponent(this.paymentUrl);\n }\n\n}\n</script>\n\n<style lang=\"scss\">\n@use \"@stamhoofd/scss/base/variables.scss\" as *;\n\n .payconiq-banner-view {\n padding: 40px 30px;\n background: $color-payconiq;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n --st-sheet-width: 380px;\n\n .payconiq-close {\n color: $color-payconiq-dark-original;\n position: absolute;\n top: 15px;\n right: 15px;\n }\n\n > h1 {\n font-size: 25px;\n font-weight: bold;\n color: white;\n line-height: 1.5;\n }\n\n .payconiq-logo {\n width: 150px;\n height: 150px;\n background: url(~@stamhoofd/assets/images/partners/payconiq/app-shadow.svg) no-repeat center center;\n background-size: contain;\n }\n\n .qr-code {\n overflow: hidden;\n width: 250px;\n height: 250px;\n background: white;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n img {\n width: 240px;\n height: 240px;\n transition: opacity 0.2s;\n }\n margin-bottom: 20px;\n\n &.scanned {\n img {\n opacity: 0.5;\n }\n }\n }\n\n p {\n color: $color-payconiq-dark-original;\n font-size: 16px;\n font-weight: 500;\n }\n\n .install {\n margin-bottom: 15px;;\n }\n\n .price-loading {\n --color-primary: white;\n }\n\n .price {\n color: white;\n font-size: 25px;\n font-weight: bold;\n margin: 20px 0;\n }\n }\n</style>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayconiqBannerView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayconiqBannerView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PayconiqBannerView.vue?vue&type=template&id=772274bd\"\nimport script from \"./PayconiqBannerView.vue?vue&type=script&lang=ts\"\nexport * from \"./PayconiqBannerView.vue?vue&type=script&lang=ts\"\nimport style0 from \"./PayconiqBannerView.vue?vue&type=style&index=0&id=772274bd&prod&lang=scss\"\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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"payconiq-banner-view\"},[_c('button',{staticClass:\"payconiq-close button icon close white\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.close}}),_vm._v(\" \"),_c('h1',[_vm._v(\"Scan en betaal met Payconiq by Bancontact\")]),_vm._v(\" \"),_c('div',{staticClass:\"payconiq-logo\"}),_vm._v(\" \"),_c('div',{staticClass:\"qr-code\",class:{ scanned: _vm.payment.status == 'Pending'}},[(_vm.payment.status == 'Pending' || _vm.payment.status == 'Created')?_c('img',{attrs:{\"src\":_vm.qrCodeSrc}}):_vm._e()]),_vm._v(\" \"),_c('LoadingButton',{staticClass:\"price-loading\",attrs:{\"loading\":_vm.payment && _vm.payment.status == 'Pending'}},[_c('p',{staticClass:\"price\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"price\")(_vm.price))+\"\\n \")])]),_vm._v(\" \"),_c('p',[_vm._v(\"Of scan met een ondersteunende bank app\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"st-view payconiq-button-view\"},[_c('STNavigationBar',{attrs:{\"title\":\"Payconiq by Bancontact\"}},[_c('button',{staticClass:\"button icon gray close\",attrs:{\"slot\":\"right\",\"type\":\"button\"},on:{\"click\":_vm.close},slot:\"right\"})]),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('STToolbar',[_c('button',{staticClass:\"button secundary\",attrs:{\"slot\":\"right\",\"type\":\"button\"},on:{\"click\":_vm.helpMe},slot:\"right\"},[_c('span',{staticClass:\"icon help\"}),_vm._v(\" \"),_c('span',[_vm._v(\"Het lukt niet\")])]),_vm._v(\" \"),_c('LoadingButton',{attrs:{\"slot\":\"right\",\"loading\":_vm.payment && _vm.payment.status == 'Pending'},slot:\"right\"},[_c('a',{staticClass:\"button primary open-app\",attrs:{\"href\":_vm.paymentUrl}},[_c('span',{staticClass:\"icon external\"}),_c('span',[_vm._v(\"Open de app\")])])])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('main',[_c('h1',[_vm._v(\"Betaal met Payconiq by Bancontact\")]),_vm._v(\" \"),_c('p',{staticClass:\"style-description\"},[_vm._v(\"Je hebt één van volgende apps nodig om te kunnen betalen: Payconiq by Bancontact, KBC Mobile, ING Banking, Belfius, BNP Paribas Fortis, Fintro, Hello Bank!, Argenta of Crelan.\")]),_vm._v(\" \"),_c('p',{staticClass:\"style-description\"},[_vm._v(\"Klik op de volgende pagina op 'Kies een andere app' als je met een andere app dan Payconiq by Bancontact wilt betalen.\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div class=\"st-view payconiq-button-view\">\n <STNavigationBar title=\"Payconiq by Bancontact\">\n <button slot=\"right\" class=\"button icon gray close\" type=\"button\" @click=\"close\" />\n </STNavigationBar>\n\n <main>\n <h1>Betaal met Payconiq by Bancontact</h1>\n <p class=\"style-description\">Je hebt één van volgende apps nodig om te kunnen betalen: Payconiq by Bancontact, KBC Mobile, ING Banking, Belfius, BNP Paribas Fortis, Fintro, Hello Bank!, Argenta of Crelan.</p>\n <p class=\"style-description\">Klik op de volgende pagina op 'Kies een andere app' als je met een andere app dan Payconiq by Bancontact wilt betalen.</p>\n </main>\n\n <STToolbar>\n <button slot=\"right\" class=\"button secundary\" type=\"button\" @click=\"helpMe\">\n <span class=\"icon help\" />\n <span>Het lukt niet</span>\n </button>\n <LoadingButton slot=\"right\" :loading=\"payment && payment.status == 'Pending'\">\n <a :href=\"paymentUrl\" class=\"button primary open-app\">\n <span class=\"icon external\" /><span>Open de app</span>\n </a>\n </LoadingButton>\n </STToolbar>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { CenteredMessage,EmailInput, LoadingButton, STErrorsDefault, STNavigationBar, STToolbar } from \"@stamhoofd/components\"\nimport { Component, Prop } from \"vue-property-decorator\";\n\nimport PayconiqBannerView from \"./PayconiqBannerView.vue\";\n\n@Component({\n components: {\n STNavigationBar,\n STToolbar,\n EmailInput,\n LoadingButton,\n STErrorsDefault\n }\n})\nexport default class PayconiqButtonView extends PayconiqBannerView {\n @Prop({})\n paymentUrl: string;\n\n getOS(): string {\n var userAgent = navigator.userAgent || navigator.vendor;\n\n if (/android/i.test(userAgent)) {\n return \"android\";\n }\n\n if (/Mac OS X 10_14|Mac OS X 10_13|Mac OS X 10_12|Mac OS X 10_11|Mac OS X 10_10|Mac OS X 10_9/.test(userAgent)) {\n // Different sms protocol\n return \"macOS-old\";\n }\n\n // iOS detection from: http://stackoverflow.com/a/9039885/177710\n if (/iPad|iPhone|iPod/.test(userAgent) && !(window as any).MSStream) {\n return \"iOS\";\n }\n\n // iPad on iOS 13 detection\n if (navigator.userAgent.includes(\"Mac\") && \"ontouchend\" in document) {\n return \"iOS\";\n }\n\n if (navigator.platform.toUpperCase().indexOf('MAC')>=0 ) {\n return \"macOS\";\n }\n\n if (navigator.platform.toUpperCase().indexOf('WIN')>=0 ) {\n return \"windows\";\n }\n\n if (navigator.platform.toUpperCase().indexOf('IPHONE')>=0 ) {\n return \"iOS\";\n }\n\n if (navigator.platform.toUpperCase().indexOf('ANDROID')>=0 ) {\n return \"android\";\n }\n\n return \"unknown\"\n }\n\n get isIOS() {\n return this.getOS() == \"iOS\"\n }\n\n helpMe() {\n if (this.getOS() == \"iOS\") {\n new CenteredMessage(\"Het lukt niet\", \"Kijk na of je één van de apps bovenaan deze pagina hebt geïnstalleerd. Als je op een pagina terecht komt die zegt dat je de app niet hebt: sleep die pagina naar beneden tot er een grijze balk tevoorschijn komt, klik daar op 'Open'. Probeer eventueel opnieuw op een computer of selecteer een andere betaalmethode.\")\n .addCloseButton()\n .show()\n } else {\n new CenteredMessage(\"Het lukt niet\", \"Kijk na of je één van de apps bovenaan deze pagina hebt geïnstalleerd. Probeer eventueel opnieuw op een computer (daar kan je de QR-code scannen) of selecteer een andere betaalmethode.\").addCloseButton().show()\n }\n }\n}\n</script>\n\n<style lang=\"scss\">\n.payconiq-button-view {\n --color-primary: #FF4785;\n\n .payment-app-logo {\n height: 28px;\n }\n\n .open-app {\n // Prevent opening in a new tab -> breaks opening\n -webkit-touch-callout: none;\n }\n}\n\n\n</style>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayconiqButtonView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PayconiqButtonView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PayconiqButtonView.vue?vue&type=template&id=7e82892b\"\nimport script from \"./PayconiqButtonView.vue?vue&type=script&lang=ts\"\nexport * from \"./PayconiqButtonView.vue?vue&type=script&lang=ts\"\nimport style0 from \"./PayconiqButtonView.vue?vue&type=style&index=0&id=7e82892b&prod&lang=scss\"\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 { Server } from '@simonbackx/simple-networking';\nimport { ComponentWithProperties, NavigationMixin } from '@simonbackx/vue-app-navigation';\nimport { Organization, Payment, PaymentMethod, PaymentProvider, PaymentStatus, TransferSettings } from \"@stamhoofd/structures\";\n\nimport PayconiqBannerView from \"./PayconiqBannerView.vue\"\nimport PayconiqButtonView from \"./PayconiqButtonView.vue\"\nimport TransferPaymentView from \"./TransferPaymentView.vue\"\n\nexport class PaymentHandler {\n static getOS(): string {\n const userAgent = navigator.userAgent || navigator.vendor;\n\n if (/android/i.test(userAgent)) {\n return \"android\";\n }\n\n if (/Mac OS X 10_14|Mac OS X 10_13|Mac OS X 10_12|Mac OS X 10_11|Mac OS X 10_10|Mac OS X 10_9/.test(userAgent)) {\n // Different sms protocol\n return \"macOS-old\";\n }\n\n // iOS detection from: http://stackoverflow.com/a/9039885/177710\n if (/iPad|iPhone|iPod/.test(userAgent) && !(window as any).MSStream) {\n return \"iOS\";\n }\n\n // iPad on iOS 13 detection\n if (navigator.userAgent.includes(\"Mac\") && \"ontouchend\" in document) {\n return \"iOS\";\n }\n\n if (navigator.platform.toUpperCase().includes('MAC') ) {\n return \"macOS\";\n }\n\n if (navigator.platform.toUpperCase().includes('WIN') ) {\n return \"windows\";\n }\n\n if (navigator.platform.toUpperCase().includes('IPHONE') ) {\n return \"iOS\";\n }\n\n if (navigator.platform.toUpperCase().includes('ANDROID') ) {\n return \"android\";\n }\n\n return \"unknown\"\n }\n\n static handlePayment(settings: { \n server: Server; \n organization: Organization; \n payment: Payment; \n returnUrl: string | null;\n paymentUrl: string | null; \n transferSettings: TransferSettings | null;\n component: NavigationMixin; \n type: \"order\" | \"registration\";\n }, successHandler: (payment: Payment, component: NavigationMixin) => void, failedHandler: (payment: Payment | null) => void, transferHandler?: (payment: Payment | null) => void) {\n const {payment, organization, server, component, paymentUrl, returnUrl, transferSettings } = settings;\n\n if (payment.method == PaymentMethod.PointOfSale) {\n successHandler(payment, component)\n } else if (payment.method == PaymentMethod.Transfer) {\n if (transferHandler) {\n transferHandler(payment)\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n component.show(new ComponentWithProperties(TransferPaymentView, {\n created: true,\n type: settings.type,\n organization,\n payment,\n settings: transferSettings,\n finishedHandler: (payment: Payment, component: NavigationMixin) => {\n // Always go to success\n successHandler(payment, component)\n }\n }))\n } else if (payment.provider == PaymentProvider.Payconiq && paymentUrl) {\n if (this.getOS() == \"android\" || this.getOS() == \"iOS\") {\n // we need this view for polling\n const buttonComponent = new ComponentWithProperties(PayconiqButtonView, { \n paymentUrl, \n server,\n initialPayment: payment,\n finishedHandler: (payment: Payment | null) => {\n if (payment && payment.status == PaymentStatus.Succeeded) {\n successHandler(payment, component) // use component because payconiq closed itself + was a sheet\n } else {\n failedHandler(payment)\n }\n }\n }).setDisplayStyle(\"sheet\")\n component.present(buttonComponent)\n return;\n \n } else {\n // We need to remove the checkout search params to make the QR-code work.\n const u = new URL(paymentUrl);\n u.searchParams.delete('token');\n u.searchParams.delete('returnUrl');\n const url = u.toString();\n\n // only on desktop\n const bannerComponent = new ComponentWithProperties(PayconiqBannerView, { \n paymentUrl: url, \n server,\n initialPayment: payment,\n finishedHandler: (payment: Payment | null) => {\n if (payment && payment.status == PaymentStatus.Succeeded) {\n successHandler(payment, component) // use component because payconiq closed itself + was a sheet\n } else {\n failedHandler(payment)\n }\n }\n }).setDisplayStyle(\"sheet\")\n component.present(bannerComponent)\n return;\n }\n } else {\n if (paymentUrl) {\n window.location.href = paymentUrl;\n }\n }\n }\n\n}","<template>\n <SaveView :title=\"title\" :loading=\"loading\" save-text=\"Bestelling bevestigen\" :prefer-large-button=\"true\" @save=\"goNext\">\n <span v-if=\"checkout.totalPrice > 0\" slot=\"left\">Totaal: {{ checkout.totalPrice | price }}</span>\n\n <h1>{{ title }}</h1>\n\n <p v-if=\"isTrial\" class=\"warning-box\">\n Dit is een demo webshop. Bestellingen zijn fictief.\n </p>\n\n <template v-if=\"checkout.totalPrice > 0\">\n <STErrorsDefault :error-box=\"errorBox\" />\n <PaymentSelectionList v-model=\"selectedPaymentMethod\" :payment-methods=\"paymentMethods\" :organization=\"organization\" :context=\"paymentContext\" />\n </template>\n <template v-else>\n <p>Jouw bestelling zal worden geplaatst als je verder gaat.</p>\n <STErrorsDefault :error-box=\"errorBox\" />\n </template>\n </SaveView>\n</template>\n\n<script lang=\"ts\">\nimport { Decoder } from '@simonbackx/simple-encoding';\nimport { isSimpleError, isSimpleErrors, SimpleErrors } from '@simonbackx/simple-errors';\nimport { ComponentWithProperties, NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { ErrorBox, LoadingButton, PaymentHandler, PaymentSelectionList, Radio, SaveView, STErrorsDefault, STList, STListItem, STNavigationBar, STToolbar, Toast } from \"@stamhoofd/components\";\nimport { I18nController } from '@stamhoofd/frontend-i18n';\nimport { UrlHelper } from '@stamhoofd/networking';\nimport { OrderData, OrderResponse, Payment, PaymentMethod } from '@stamhoofd/structures';\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins } from \"vue-property-decorator\";\n\nimport { CheckoutManager } from '../../classes/CheckoutManager';\nimport { WebshopManager } from '../../classes/WebshopManager';\nimport OrderView from '../orders/OrderView.vue';\nimport { CheckoutStepType } from './CheckoutStepsManager';\n\n@Component({\n components: {\n STNavigationBar,\n STToolbar,\n STList,\n STListItem,\n Radio,\n LoadingButton,\n STErrorsDefault,\n PaymentSelectionList,\n SaveView\n },\n filters: {\n price: Formatter.price.bind(Formatter),\n dateWithDay: (d: Date) => Formatter.capitalizeFirstLetter(Formatter.dateWithDay(d)),\n minutes: Formatter.minutes.bind(Formatter)\n }\n})\nexport default class PaymentSelectionView extends Mixins(NavigationMixin){\n step = -1\n\n loading = false\n errorBox: ErrorBox | null = null\n CheckoutManager = CheckoutManager\n\n get title() {\n if (this.checkout.totalPrice > 0) {\n return \"Kies je betaalmethode\"\n }\n return \"Bevestig jouw bestelling\"\n }\n\n get selectedPaymentMethod(): PaymentMethod | null {\n return CheckoutManager.checkout.paymentMethod\n }\n\n set selectedPaymentMethod(paymentMethod: PaymentMethod | null) {\n CheckoutManager.checkout.paymentMethod = paymentMethod\n CheckoutManager.saveCheckout()\n }\n\n get paymentContext() {\n return this.checkout.paymentContext\n }\n\n get checkout() {\n return CheckoutManager.checkout\n }\n\n get checkoutMethod() {\n return CheckoutManager.checkout.checkoutMethod!\n }\n\n get webshop() {\n return WebshopManager.webshop\n }\n\n get isTrial() {\n return this.organization.meta.packages.isWebshopsTrial\n }\n\n get organization() {\n return WebshopManager.organization\n }\n\n get paymentMethods() {\n return this.webshop.meta.paymentMethods\n }\n\n goToOrder(id: string, component: NavigationMixin) {\n // Force reload webshop (stock will have changed: prevent invalidating the cart)\n // Update stock in background\n WebshopManager.reload().catch(e => {\n console.error(e)\n })\n \n if (this.modalNavigationController) {\n // We are not in a popup: on mobile\n // So replace with a force instead of dimissing\n component.present({\n components: [\n new ComponentWithProperties(OrderView, { orderId: id, success: true })\n ],\n replace: 1,\n force: true\n })\n } else {\n // Desktop: push\n component.present({\n components: [\n new ComponentWithProperties(OrderView, { orderId: id, success: true })\n ]\n })\n component.dismiss({force: true})\n }\n }\n \n async goNext() {\n if (this.loading) {\n return\n }\n this.loading = true\n\n try {\n if (!CheckoutManager.checkout.paymentMethod) {\n CheckoutManager.checkout.paymentMethod = PaymentMethod.Unknown\n }\n // Place order\n const data = OrderData.create(CheckoutManager.checkout as any)\n data.consumerLanguage = I18nController.shared?.language ?? \"nl\"\n const response = await WebshopManager.optionalAuthenticatedServer.request({\n method: \"POST\",\n path: \"/webshop/\"+this.webshop.id+\"/order\",\n body: data, // TODO: add some manual casting here\n decoder: OrderResponse as Decoder<OrderResponse>,\n shouldRetry: false,\n timeout: 30000 // Longer because some payment providers are slow in development mode\n })\n\n const payment = response.data.order.payment\n if (payment) {\n PaymentHandler.handlePayment({\n server: WebshopManager.server, \n organization: this.organization, \n payment, \n paymentUrl: response.data.paymentUrl, \n returnUrl: \"https://\"+this.webshop.getUrl(this.organization)+\"/payment?id=\"+encodeURIComponent(payment.id),\n component: this,\n transferSettings: WebshopManager.webshop.meta.transferSettings,\n type: \"order\"\n }, (payment: Payment, component: NavigationMixin) => {\n this.loading = false\n this.goToOrder(response.data.order.id, component)\n }, (payment: Payment) => {\n // failure\n this.loading = false\n })\n return;\n }\n\n // Go to success page\n this.loading = false\n this.goToOrder(response.data.order.id, this)\n \n } catch (e) { \n let error = e\n\n if (isSimpleError(e)) {\n error = new SimpleErrors(e)\n }\n\n if (isSimpleErrors(error)) {\n if (error.hasFieldThatStartsWith(\"cart\")) {\n // A cart error: force a reload and go back to the cart.\n await WebshopManager.reload()\n \n if (this.webshop.meta.cartEnabled) {\n this.navigationController!.popToRoot({ force: true }).catch(e => console.error(e))\n } else {\n this.dismiss({ force: true })\n }\n Toast.fromError(e).show()\n } else if (error.hasFieldThatStartsWith(\"fieldAnswers\")) {\n // A cart error: force a reload and go back to the cart.\n await WebshopManager.reload()\n\n if (this.webshop.meta.cartEnabled) {\n this.navigationController!.popToRoot({ force: true }).catch(e => console.error(e))\n } else {\n this.dismiss({ force: true })\n }\n\n Toast.fromError(e).show()\n }\n\n\n }\n this.errorBox = new ErrorBox(e)\n }\n this.loading = false\n }\n\n mounted() {\n UrlHelper.setUrl(\"/checkout/\"+CheckoutStepType.Payment.toLowerCase())\n }\n}\n</script>\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelectionView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelectionView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PaymentSelectionView.vue?vue&type=template&id=6fa00685\"\nimport script from \"./PaymentSelectionView.vue?vue&type=script&lang=ts\"\nexport * from \"./PaymentSelectionView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('SaveView',{attrs:{\"title\":_vm.title,\"loading\":_vm.loading,\"save-icon-right\":\"arrow-right\",\"save-text\":\"Doorgaan\",\"prefer-large-button\":true},on:{\"save\":_vm.goNext}},[_c('h1',[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")]),_vm._v(\" \"),(_vm.checkoutMethod.type == 'Takeout')?_c('p',[_vm._v(\"\\n Afhaallocatie: \"+_vm._s(_vm.checkoutMethod.name ? _vm.checkoutMethod.name + ',' : '')+\" \"+_vm._s(_vm.checkoutMethod.address)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.checkoutMethod.type == 'OnSite')?_c('p',[_vm._v(\"\\n Locatie: \"+_vm._s(_vm.checkoutMethod.name ? _vm.checkoutMethod.name + ',' : '')+\" \"+_vm._s(_vm.checkoutMethod.address)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('STErrorsDefault',{attrs:{\"error-box\":_vm.errorBox}}),_vm._v(\" \"),_c('STList',_vm._l((_vm.timeSlots),function(slot,index){return _c('STListItem',{key:index,staticClass:\"right-stack left-center\",attrs:{\"selectable\":true,\"element-name\":\"label\"}},[_c('Radio',{attrs:{\"slot\":\"left\",\"name\":\"choose-time-slot\",\"value\":slot},slot:\"left\",model:{value:(_vm.selectedSlot),callback:function ($$v) {_vm.selectedSlot=$$v},expression:\"selectedSlot\"}}),_vm._v(\" \"),_c('h2',{staticClass:\"style-title-list\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"dateWithDay\")(slot.date))+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"style-description\"},[_vm._v(\"\\n Tussen \"+_vm._s(_vm._f(\"minutes\")(slot.startTime))+\" - \"+_vm._s(_vm._f(\"minutes\")(slot.endTime))+\"\\n \")]),_vm._v(\" \"),(slot.listedRemainingStock === 0)?_c('span',{staticClass:\"style-tag error\",attrs:{\"slot\":\"right\"},slot:\"right\"},[_vm._v(\"Volzet\")]):(slot.listedRemainingStock !== null)?_c('span',{staticClass:\"style-tag\",attrs:{\"slot\":\"right\"},slot:\"right\"},[_vm._v(\"Nog \"+_vm._s(slot.listedRemainingStock)+\" \"+_vm._s(slot.remainingPersons !== null ? (slot.listedRemainingStock == 1 ? \"persoon\" : \"personen\") : (slot.listedRemainingStock == 1 ? \"plaats\" : \"plaatsen\")))]):_vm._e()],1)}),1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <SaveView :title=\"title\" :loading=\"loading\" save-icon-right=\"arrow-right\" save-text=\"Doorgaan\" :prefer-large-button=\"true\" @save=\"goNext\">\n <h1>\n {{ title }}\n </h1>\n\n <p v-if=\"checkoutMethod.type == 'Takeout'\">\n Afhaallocatie: {{ checkoutMethod.name ? checkoutMethod.name + ',' : '' }} {{ checkoutMethod.address }}\n </p>\n\n <p v-if=\"checkoutMethod.type == 'OnSite'\">\n Locatie: {{ checkoutMethod.name ? checkoutMethod.name + ',' : '' }} {{ checkoutMethod.address }}\n </p>\n \n <STErrorsDefault :error-box=\"errorBox\" />\n\n <STList>\n <STListItem v-for=\"(slot, index) in timeSlots\" :key=\"index\" :selectable=\"true\" element-name=\"label\" class=\"right-stack left-center\">\n <Radio slot=\"left\" v-model=\"selectedSlot\" name=\"choose-time-slot\" :value=\"slot\" />\n <h2 class=\"style-title-list\">\n {{ slot.date | dateWithDay }}\n </h2> \n <p class=\"style-description\">\n Tussen {{ slot.startTime | minutes }} - {{ slot.endTime | minutes }}\n </p>\n\n <span v-if=\"slot.listedRemainingStock === 0\" slot=\"right\" class=\"style-tag error\">Volzet</span>\n <span v-else-if=\"slot.listedRemainingStock !== null\" slot=\"right\" class=\"style-tag\">Nog {{ slot.listedRemainingStock }} {{ slot.remainingPersons !== null ? (slot.listedRemainingStock == 1 ? \"persoon\" : \"personen\") : (slot.listedRemainingStock == 1 ? \"plaats\" : \"plaatsen\") }}</span>\n </STListItem>\n </STList>\n </SaveView>\n</template>\n\n<script lang=\"ts\">\nimport { SimpleError } from '@simonbackx/simple-errors';\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport { ErrorBox, Radio, SaveView, STErrorsDefault, STList, STListItem } from \"@stamhoofd/components\";\nimport { UrlHelper } from '@stamhoofd/networking';\nimport { CheckoutMethodType, WebshopTimeSlot } from '@stamhoofd/structures';\nimport { Formatter } from '@stamhoofd/utility';\nimport { Component, Mixins } from \"vue-property-decorator\";\n\nimport { CheckoutManager } from '../../classes/CheckoutManager';\nimport { WebshopManager } from '../../classes/WebshopManager';\nimport { CheckoutStepsManager, CheckoutStepType } from './CheckoutStepsManager';\n\n@Component({\n components: {\n STList,\n STListItem,\n Radio,\n STErrorsDefault,\n SaveView\n },\n filters: {\n dateWithDay: (d: Date) => Formatter.capitalizeFirstLetter(Formatter.dateWithDay(d)),\n minutes: Formatter.minutes.bind(Formatter)\n }\n})\nexport default class TimeSelectionView extends Mixins(NavigationMixin){\n step = -1\n\n loading = false\n errorBox: ErrorBox | null = null\n CheckoutManager = CheckoutManager\n\n get title() {\n if (this.checkoutMethod.type === CheckoutMethodType.Takeout) {\n return \"Kies je afhaaltijdstip\"\n }\n if (this.checkoutMethod.type === CheckoutMethodType.Delivery) {\n return \"Kies je leveringstijdstip\"\n }\n if (this.checkoutMethod.type === CheckoutMethodType.OnSite) {\n return \"Kies wanneer je komt\"\n }\n return \"Kies je tijdstip\"\n }\n\n get checkoutMethod() {\n return CheckoutManager.checkout.checkoutMethod!\n }\n\n get timeSlots(): WebshopTimeSlot[] {\n return CheckoutManager.checkout.checkoutMethod!.timeSlots.timeSlots.slice().sort(WebshopTimeSlot.sort)\n }\n\n get selectedSlot(): WebshopTimeSlot {\n if (CheckoutManager.checkout.timeSlot) {\n return this.timeSlots.find(t => t.id == CheckoutManager.checkout.timeSlot!.id) ?? this.timeSlots[0]\n }\n return this.timeSlots[0]\n }\n\n set selectedSlot(timeSlot: WebshopTimeSlot) {\n CheckoutManager.checkout.timeSlot = timeSlot\n CheckoutManager.saveCheckout()\n }\n\n get webshop() {\n return WebshopManager.webshop\n }\n\n async goNext() {\n if (this.loading || !this.selectedSlot) {\n return\n }\n // Force checkout save\n this.selectedSlot = this.selectedSlot as any\n this.loading = true\n this.errorBox = null\n\n try {\n await CheckoutStepsManager.goNext(CheckoutStepType.Time, this)\n } catch (e) {\n console.error(e)\n this.errorBox = new ErrorBox(e)\n }\n this.loading = false\n }\n\n mounted() {\n UrlHelper.setUrl(\"/checkout/\"+CheckoutStepType.Time.toLowerCase())\n\n // Force minimum selection\n this.selectedSlot = this.selectedSlot as any\n }\n}\n</script>\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TimeSelectionView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TimeSelectionView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./TimeSelectionView.vue?vue&type=template&id=b1c3eb94\"\nimport script from \"./TimeSelectionView.vue?vue&type=script&lang=ts\"\nexport * from \"./TimeSelectionView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('STInputBox',{attrs:{\"title\":_vm.title,\"error-fields\":\"address\",\"error-box\":_vm.errorBox}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addressLine1),expression:\"addressLine1\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"Straat en nummer\",\"name\":\"street-address\",\"autocomplete\":\"street-address\"},domProps:{\"value\":(_vm.addressLine1)},on:{\"change\":_vm.updateAddress,\"input\":[function($event){if($event.target.composing)return;_vm.addressLine1=$event.target.value},_vm.updateAddressRealTime],\"focus\":_vm.onFocus,\"blur\":_vm.onBlur}}),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.postalCode),expression:\"postalCode\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"Postcode\",\"name\":\"postal-code\",\"autocomplete\":\"postal-code\"},domProps:{\"value\":(_vm.postalCode)},on:{\"change\":_vm.updateAddress,\"input\":[function($event){if($event.target.composing)return;_vm.postalCode=$event.target.value},_vm.updateAddressRealTime],\"focus\":_vm.onFocus,\"blur\":_vm.onBlur}})]),_vm._v(\" \"),_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.city),expression:\"city\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":_vm.$t('shared.Gemeente'),\"name\":\"city\",\"autocomplete\":\"address-level2\"},domProps:{\"value\":(_vm.city)},on:{\"change\":_vm.updateAddress,\"input\":[function($event){if($event.target.composing)return;_vm.city=$event.target.value},_vm.updateAddressRealTime],\"focus\":_vm.onFocus,\"blur\":_vm.onBlur}})])]),_vm._v(\" \"),_c('Dropdown',{attrs:{\"autocomplete\":\"country\",\"name\":\"country\"},on:{\"change\":_vm.updateAddress,\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},model:{value:(_vm.country),callback:function ($$v) {_vm.country=$$v},expression:\"country\"}},_vm._l((_vm.countries),function(country){return _c('option',{key:country.value,domProps:{\"value\":country.value}},[_vm._v(\"\\n \"+_vm._s(country.text)+\"\\n \")])}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <STInputBox :title=\"title\" error-fields=\"address\" :error-box=\"errorBox\">\n <input v-model=\"addressLine1\" class=\"input\" type=\"text\" placeholder=\"Straat en nummer\" name=\"street-address\" autocomplete=\"street-address\" @change=\"updateAddress\" @input=\"updateAddressRealTime\" @focus=\"onFocus\" @blur=\"onBlur\">\n <div class=\"input-group\">\n <div>\n <input v-model=\"postalCode\" class=\"input\" type=\"text\" placeholder=\"Postcode\" name=\"postal-code\" autocomplete=\"postal-code\" @change=\"updateAddress\" @input=\"updateAddressRealTime\" @focus=\"onFocus\" @blur=\"onBlur\">\n </div>\n <div>\n <input v-model=\"city\" class=\"input\" type=\"text\" :placeholder=\"$t('shared.Gemeente')\" name=\"city\" autocomplete=\"address-level2\" @change=\"updateAddress\" @input=\"updateAddressRealTime\" @focus=\"onFocus\" @blur=\"onBlur\"> <!-- name needs to be city for safari autocomplete -->\n </div>\n </div>\n\n <Dropdown v-model=\"country\" autocomplete=\"country\" name=\"country\" @change=\"updateAddress\" @focus=\"onFocus\" @blur=\"onBlur\">\n <option v-for=\"country in countries\" :key=\"country.value\" :value=\"country.value\">\n {{ country.text }}\n </option>\n </Dropdown>\n </STInputBox>\n</template>\n\n<script lang=\"ts\">\nimport { Decoder } from '@simonbackx/simple-encoding';\nimport { isSimpleError, isSimpleErrors } from '@simonbackx/simple-errors';\nimport { Server } from \"@simonbackx/simple-networking\";\nimport { Dropdown,ErrorBox, STInputBox, Validator } from \"@stamhoofd/components\"\nimport { I18nController } from '@stamhoofd/frontend-i18n';\nimport { Address, Country, CountryHelper, ValidatedAddress} from \"@stamhoofd/structures\"\nimport { Component, Prop, Vue, Watch } from \"vue-property-decorator\";\n\n@Component({\n components: {\n STInputBox,\n Dropdown\n }\n})\nexport default class AddressInput extends Vue {\n @Prop({ default: \"\" }) \n title: string;\n\n /**\n * Assign a validator if you want to offload the validation to components\n */\n @Prop({ default: null }) \n validator: Validator | null\n\n errorBox: ErrorBox | null = null\n pendingErrorBox: ErrorBox | null = null\n \n @Prop({ default: null })\n value: Address | ValidatedAddress | null\n\n /**\n * Validate on the server or not? -> will return a ValidatedAddress if this is true\n */\n @Prop({ default: null })\n validateServer: Server | null\n\n @Prop({ default: true })\n required: boolean\n\n /**\n * Whether the value can be set to null if it is empty (even when it is required, will still be invalid)\n * Only used if required = false\n */\n @Prop({ default: false })\n nullable!: boolean\n\n addressLine1 = \"\"\n city = \"\"\n postalCode = \"\"\n country = this.getDefaultCountry()\n\n @Prop({ default: false })\n linkCountryToLocale: boolean\n\n getDefaultCountry() {\n return I18nController.shared?.country ?? Country.Belgium\n }\n\n hasFocus = false\n\n get countries() {\n return CountryHelper.getList()\n }\n\n @Watch('value', { deep: true })\n onValueChanged(val: Address | null) {\n if (this.hasFocus) {\n // don't change while typing\n return;\n }\n\n if (!val) {\n if (!this.required && !this.pendingErrorBox && !this.errorBox) {\n this.addressLine1 = \"\"\n this.city = \"\"\n this.postalCode = \"\"\n }\n return\n }\n this.addressLine1 = val.street.length > 0 ? (val.street+\" \"+val.number) : (val.number+\"\")\n this.city = val.city\n this.postalCode = val.postalCode\n this.country = val.country\n }\n\n updateValues(val: Address | null) {\n if (!val) {\n if (!this.required && !this.pendingErrorBox && !this.errorBox) {\n this.addressLine1 = \"\"\n this.city = \"\"\n this.postalCode = \"\"\n }\n return\n }\n this.addressLine1 = val.street.length > 0 ? (val.street+\" \"+val.number) : (val.number+\"\")\n this.city = val.city\n this.postalCode = val.postalCode\n this.country = val.country\n }\n\n onBlur() {\n this.hasFocus = false\n\n // Sometimes the blur happens without a onChange event, so we always need to update the address after a blur\n // it will only make the errors visible if hasFocus is still false after 200ms\n this.updateAddress()\n }\n\n onFocus() {\n this.hasFocus = true\n }\n\n mounted() {\n if (this.validator) {\n this.validator.addValidation(this, () => {\n return this.isValid(true, false)\n })\n }\n\n if (this.value) {\n this.addressLine1 = this.value.street.length > 0 ? (this.value.street+\" \"+this.value.number) : (this.value.number+\"\")\n this.city = this.value.city\n this.postalCode = this.value.postalCode\n this.country = this.value.country\n }\n }\n\n destroyed() {\n if (this.validator) {\n this.validator.removeValidation(this)\n }\n }\n\n async isValid(isFinal: boolean, silent = false): Promise<boolean> {\n if (!this.required && this.addressLine1.length == 0 && this.postalCode.length == 0 && this.city.length == 0) {\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.value !== null) {\n this.$emit(\"input\", null)\n }\n return true\n }\n\n if (this.required && this.addressLine1.length == 0 && this.postalCode.length == 0 && this.city.length == 0) {\n if (!isFinal) {\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.nullable && this.value !== null) {\n this.$emit(\"input\", null)\n }\n return false\n }\n }\n\n let address: Address\n\n try {\n address = Address.createFromFields(this.addressLine1, this.postalCode, this.city, this.country)\n\n if (!this.value || (this.validateServer && !(this.value instanceof ValidatedAddress) && !silent && isFinal) || address.toString() != this.value.toString()) {\n // Do we need to validate on the server?\n if (this.validateServer && !silent && isFinal) {\n const response = await this.validateServer.request({\n method: \"POST\",\n path: \"/address/validate\",\n body: address,\n decoder: ValidatedAddress as Decoder<ValidatedAddress>,\n shouldRetry: false\n })\n if (!this.hasFocus) {\n this.updateValues(response.data)\n }\n this.$emit(\"input\", response.data)\n } else {\n if (!this.hasFocus) {\n this.updateValues(address)\n }\n this.$emit(\"input\", address)\n }\n } else {\n if (!this.hasFocus) {\n this.updateValues(address)\n }\n }\n \n if (!silent) {\n this.errorBox = null\n this.pendingErrorBox = null\n }\n return true\n } catch (e) {\n if (isSimpleError(e) || isSimpleErrors(e)) {\n e.addNamespace(\"address\")\n\n if (!silent) {\n if (isFinal) {\n this.errorBox = new ErrorBox(e)\n } else {\n this.pendingErrorBox = new ErrorBox(e)\n\n setTimeout( () => {\n if (!this.hasFocus) {\n this.errorBox = this.pendingErrorBox\n }\n }, 200);\n }\n }\n }\n\n if (!this.required && !silent) {\n this.$emit(\"input\", null)\n }\n return false\n }\n }\n\n updateAddress() {\n if (this.country && this.linkCountryToLocale && I18nController.shared && I18nController.isValidCountry(this.country)) {\n I18nController.shared.switchToLocale({ country: this.country }).catch(console.error)\n }\n this.isValid(false).catch(console.error)\n }\n\n /**\n * Send real time input updates, but don't update error messages\n */\n updateAddressRealTime() {\n if (this.country && this.linkCountryToLocale && I18nController.shared && I18nController.isValidCountry(this.country)) {\n I18nController.shared.switchToLocale({ country: this.country }).catch(console.error)\n }\n this.isValid(false, true).catch(console.error)\n }\n}\n</script>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressInput.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressInput.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AddressInput.vue?vue&type=template&id=70f9bd68\"\nimport script from \"./AddressInput.vue?vue&type=script&lang=ts\"\nexport * from \"./AddressInput.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"input-icon-container right icon arrow-down-small gray\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mappedValue),expression:\"mappedValue\"}],staticClass:\"input\",attrs:{\"autocomplete\":_vm.autocomplete,\"name\":_vm.name},on:{\"blur\":function($event){return _vm.$emit('blur', $event)},\"focus\":function($event){return _vm.$emit('focus', $event)},\"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.mappedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"input-icon-container right icon arrow-down-small gray\">\n <select v-model=\"mappedValue\" class=\"input\" :autocomplete=\"autocomplete\" :name=\"name\" @blur=\"$emit('blur', $event)\" @focus=\"$emit('focus', $event)\">\n <slot />\n </select>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { NavigationMixin } from '@simonbackx/vue-app-navigation';\nimport { Component, Mixins,Prop } from \"vue-property-decorator\";\n\n@Component({\n \"model\": {\n \"prop\": \"value\",\n \"event\": \"change\"\n },\n})\nexport default class Dropdown extends Mixins(NavigationMixin) {\n @Prop({})\n value: any\n\n @Prop({ default: undefined })\n autocomplete?: string\n\n @Prop({ default: undefined })\n name?: string\n\n get mappedValue() {\n return this.value\n }\n\n set mappedValue(val: any) {\n this.$emit(\"change\", val)\n }\n}\n</script>\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dropdown.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dropdown.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Dropdown.vue?vue&type=template&id=2948ea70\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=ts\"\nexport * from \"./Dropdown.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('STInputBox',{attrs:{\"title\":_vm.title,\"error-fields\":\"email\",\"error-box\":_vm.errorBox}},[_c('input',_vm._b({directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.emailRaw),expression:\"emailRaw\"}],ref:\"input\",staticClass:\"email-input-field input\",class:{ error: !_vm.valid },attrs:{\"type\":\"email\",\"disabled\":_vm.disabled},domProps:{\"value\":(_vm.emailRaw)},on:{\"change\":function($event){return _vm.validate(false)},\"input\":[function($event){if($event.target.composing)return;_vm.emailRaw=$event.target.value},function($event){_vm.emailRaw = $event.target.value; _vm.onTyping();}]}},'input',_vm.$attrs,false)),_vm._v(\" \"),_vm._t(\"right\",null,{\"slot\":\"right\"})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <STInputBox :title=\"title\" error-fields=\"email\" :error-box=\"errorBox\">\n <input ref=\"input\" v-model=\"emailRaw\" class=\"email-input-field input\" type=\"email\" :class=\"{ error: !valid }\" :disabled=\"disabled\" v-bind=\"$attrs\" @change=\"validate(false)\" @input=\"emailRaw = $event.target.value; onTyping();\">\n <slot slot=\"right\" name=\"right\" />\n </STInputBox>\n</template>\n\n<script lang=\"ts\">\nimport { SimpleError } from '@simonbackx/simple-errors';\nimport { ErrorBox, STInputBox, Validator } from \"@stamhoofd/components\"\nimport { DataValidator } from \"@stamhoofd/utility\";\nimport { Component, Prop,Vue, Watch } from \"vue-property-decorator\";\n\n@Component({\n components: {\n STInputBox\n },\n\n // All attributes that we don't recognize should be passed to the input, and not to the root (except style and class)\n inheritAttrs: false\n})\nexport default class EmailInput extends Vue {\n @Prop({ default: \"\" }) \n title: string;\n\n @Prop({ default: null }) \n validator: Validator | null\n\n emailRaw = \"\";\n valid = true;\n\n @Prop({ default: null })\n value!: string | null\n\n @Prop({ default: true })\n required!: boolean\n\n /**\n * Whether the value can be set to null if it is empty (even when it is required, will still be invalid)\n * Only used if required = false\n */\n @Prop({ default: false })\n nullable!: boolean\n\n @Prop({ default: false })\n disabled!: boolean\n\n errorBox: ErrorBox | null = null\n\n @Watch('value')\n onValueChanged(val: string | null) {\n if (val === null) {\n return\n }\n this.emailRaw = val\n }\n\n onTyping() {\n // Silently send value to parents, but don't show visible errors yet\n this.validate(false, true)\n }\n\n mounted() {\n if (this.validator) {\n this.validator.addValidation(this, () => {\n return this.validate(true)\n })\n }\n\n this.emailRaw = this.value ?? \"\"\n }\n\n destroyed() {\n if (this.validator) {\n this.validator.removeValidation(this)\n }\n }\n\n validate(final = true, silent = false) {\n this.emailRaw = this.emailRaw.trim().toLowerCase()\n\n if (!this.required && this.emailRaw.length == 0) {\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.value !== null) {\n this.$emit(\"input\", null)\n }\n return true\n }\n\n if (this.required && this.emailRaw.length == 0 && !final) {\n // Ignore empty email if not final\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.nullable && this.value !== null) {\n this.$emit(\"input\", null)\n } else if (this.value !== \"\") {\n this.$emit(\"input\", \"\")\n }\n return false\n }\n \n if (!DataValidator.isEmailValid(this.emailRaw)) {\n if (!silent) {\n this.errorBox = new ErrorBox(new SimpleError({\n \"code\": \"invalid_field\",\n \"message\": \"Ongeldig e-mailadres\",\n \"field\": \"email\"\n }))\n }\n return false\n\n } else {\n if (this.emailRaw !== this.value) {\n this.$emit(\"input\", this.emailRaw)\n }\n if (!silent) {\n this.errorBox = null\n }\n return true\n }\n }\n\n focus() {\n (this.$refs.input as any)?.focus()\n }\n}\n</script>\n\n<style lang=\"scss\">\n .email-input-field {\n // Fix safari bug that shows the autofill on the wrong position\n transform: translate3d(0, 0, 0);\n }\n</style>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EmailInput.vue?vue&type=template&id=75bcc6ca\"\nimport script from \"./EmailInput.vue?vue&type=script&lang=ts\"\nexport * from \"./EmailInput.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EmailInput.vue?vue&type=style&index=0&id=75bcc6ca&prod&lang=scss\"\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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('STInputBox',{attrs:{\"title\":_vm.title,\"error-fields\":\"phone\",\"error-box\":_vm.errorBox}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phoneRaw),expression:\"phoneRaw\"}],staticClass:\"input\",class:{ error: !_vm.valid },attrs:{\"placeholder\":_vm.placeholder,\"autocomplete\":\"mobile tel\",\"type\":\"tel\"},domProps:{\"value\":(_vm.phoneRaw)},on:{\"change\":function($event){return _vm.validate(false)},\"input\":[function($event){if($event.target.composing)return;_vm.phoneRaw=$event.target.value},function($event){_vm.phoneRaw = $event.target.value; _vm.onTyping();}]}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <STInputBox :title=\"title\" error-fields=\"phone\" :error-box=\"errorBox\">\n <input v-model=\"phoneRaw\" class=\"input\" :class=\"{ error: !valid }\" :placeholder=\"placeholder\" autocomplete=\"mobile tel\" type=\"tel\" @change=\"validate(false)\" @input=\"phoneRaw = $event.target.value; onTyping();\">\n </STInputBox>\n</template>\n\n<script lang=\"ts\">\nimport { SimpleError } from '@simonbackx/simple-errors';\nimport { ErrorBox, STInputBox, Validator } from \"@stamhoofd/components\"\nimport { I18nController } from '@stamhoofd/frontend-i18n';\nimport { Country } from \"@stamhoofd/structures\"\nimport { Component, Prop,Vue, Watch } from \"vue-property-decorator\";\n\n@Component({\n components: {\n STInputBox\n }\n})\nexport default class PhoneInput extends Vue {\n @Prop({ default: \"\" }) \n title: string;\n\n @Prop({ default: null }) \n validator: Validator | null\n\n phoneRaw = \"\";\n valid = true;\n\n @Prop({ default: null })\n value!: string | null\n\n @Prop({ default: true })\n required!: boolean\n\n /**\n * Whether the value can be set to null if it is empty (even when it is required, will still be invalid)\n * Only used if required = false\n */\n @Prop({ default: false })\n nullable!: boolean\n\n @Prop({ default: \"\" })\n placeholder!: string\n\n errorBox: ErrorBox | null = null\n\n @Watch('value')\n onValueChanged(val: string | null) {\n if (val === null) {\n this.phoneRaw = \"\"\n return\n }\n this.phoneRaw = val\n }\n\n onTyping() {\n // Silently send value to parents, but don't show visible errors yet\n this.validate(false, true).catch(console.error)\n }\n\n mounted() {\n if (this.validator) {\n this.validator.addValidation(this, () => {\n return this.validate(true)\n })\n }\n\n this.phoneRaw = this.value ?? \"\"\n }\n\n destroyed() {\n if (this.validator) {\n this.validator.removeValidation(this)\n }\n }\n\n async validate(final: boolean, silent = false) {\n\n if (this.phoneRaw.length == 0) {\n\n if (!this.required) {\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.value !== null) {\n this.$emit(\"input\", null)\n }\n return true\n }\n\n if (!final) {\n if (!silent) {\n this.errorBox = null\n }\n\n if (this.nullable && this.value !== null) {\n this.$emit(\"input\", null)\n }\n return false\n }\n }\n try {\n const libphonenumber = await import(/* webpackChunkName: \"libphonenumber\" */ \"libphonenumber-js/max\")\n const phoneNumber = libphonenumber.parsePhoneNumber(this.phoneRaw, I18nController.shared?.country ?? Country.Belgium)\n\n if (!phoneNumber || !phoneNumber.isValid()) {\n for (const country of Object.values(Country)) {\n const phoneNumber = libphonenumber.parsePhoneNumber(this.phoneRaw, country)\n\n if (phoneNumber && phoneNumber.isValid()) {\n if (!silent) {\n this.errorBox = new ErrorBox(new SimpleError({\n \"code\": \"invalid_field\",\n \"message\": this.$t(\"shared.inputs.mobile.invalidMessageTryCountry\").toString(),\n \"field\": \"phone\"\n }))\n }\n return false\n }\n }\n if (!silent) {\n this.errorBox = new ErrorBox(new SimpleError({\n \"code\": \"invalid_field\",\n \"message\": this.$t(\"shared.inputs.mobile.invalidMessage\").toString(),\n \"field\": \"phone\"\n }))\n }\n return false\n\n } else {\n const v = silent ? this.phoneRaw : phoneNumber.formatInternational();\n this.phoneRaw = v\n \n if (this.value !== v) {\n this.$emit(\"input\", v)\n }\n if (!silent) {\n this.errorBox = null\n }\n return true\n }\n } catch (e) {\n console.error(e)\n if (!silent) {\n this.errorBox = new ErrorBox(new SimpleError({\n \"code\": \"invalid_field\",\n \"message\": this.$t(\"shared.inputs.mobile.invalidMessage\").toString(),\n \"field\": \"phone\"\n }))\n }\n return false\n }\n \n }\n}\n</script>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PhoneInput.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PhoneInput.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PhoneInput.vue?vue&type=template&id=46ccdc5b\"\nimport script from \"./PhoneInput.vue?vue&type=script&lang=ts\"\nexport * from \"./PhoneInput.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"st-button-toolbar\"},[_c('div',[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"st-button-toolbar\">\n <div>\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { Component, Vue } from \"vue-property-decorator\";\n\n@Component\nexport default class STButtonToolbar extends Vue {\n}\n</script>\n\n<style lang=\"scss\">\n@use \"~@stamhoofd/scss/base/variables.scss\" as *;\n\n.st-button-toolbar {\n margin: 0;\n margin-bottom: calc(-1 * var(--st-vertical-padding, 40px));\n margin-bottom: calc(-1 * var(--st-vertical-padding, 40px) - var(--st-safe-area-bottom, 0px));\n padding-top: var(--st-vertical-padding, 20px);\n \n > div {\n flex-shrink: 0;\n height: 60px;\n\n .popup & {\n // Smaller inside a popup\n height: 45px;\n }\n box-sizing: content-box;\n border-top: $border-width-thin solid $color-border-shade;\n padding-bottom: var(--st-safe-area-bottom, 0px);\n\n margin: 0;\n\n background: $color-background-shade;\n\n display: flex;\n flex-direction: row;\n align-items: stretch;\n\n position: sticky;\n bottom: 0;\n \n > .button, > .upload-button {\n flex-grow: 1;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: auto;\n line-height: 1;\n position: relative;\n overflow: visible;\n\n > span {\n margin-bottom: 4px;\n }\n\n &.is-active {\n color: $color-primary;\n }\n\n > .style-bubble {\n background: $color-error;\n position: absolute;\n left: 50%;\n bottom: 50%;\n transform: translate(6px, 0);\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./STButtonToolbar.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./STButtonToolbar.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./STButtonToolbar.vue?vue&type=template&id=8592a4b2\"\nimport script from \"./STButtonToolbar.vue?vue&type=script&lang=ts\"\nexport * from \"./STButtonToolbar.vue?vue&type=script&lang=ts\"\nimport style0 from \"./STButtonToolbar.vue?vue&type=style&index=0&id=8592a4b2&prod&lang=scss\"\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 { render, staticRenderFns } from \"./STFloatingFooter.vue?vue&type=template&id=7d8ff7db\"\nvar script = {}\nimport style0 from \"./STFloatingFooter.vue?vue&type=style&index=0&id=7d8ff7db&prod&lang=scss\"\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 render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"st-floating-footer\"},[_c('div',[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('form',{staticClass:\"st-view\",on:{\"submit\":function($event){$event.preventDefault();return _vm.$emit('save')}}},[_c('STNavigationBar',{attrs:{\"title\":_vm.title}},[(_vm.$parent.canPop)?_c('BackButton',{attrs:{\"slot\":\"left\"},on:{\"click\":_vm.$parent.pop},slot:\"left\"}):(_vm.$isMobile || _vm.$isIOS || _vm.$isAndroid)?_c('template',{slot:\"left\"},[(_vm.$isAndroid)?_c('button',{staticClass:\"button navigation icon close\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.$parent.pop}}):_c('button',{staticClass:\"button text selected unbold\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.$parent.pop}},[_vm._v(\"\\n \"+_vm._s(_vm.cancelText)+\"\\n \")])]):_vm._e(),_vm._v(\" \"),(!_vm.$isMobile && !_vm.$isIOS)?_vm._t(\"buttons\",null,{\"slot\":\"right\"}):_vm._e(),_vm._v(\" \"),(!_vm.preferLargeButton && (_vm.$isMobile || _vm.$isIOS || _vm.$isAndroid))?_c('LoadingButton',{attrs:{\"slot\":\"right\",\"loading\":_vm.loading},slot:\"right\"},[_c('button',{staticClass:\"button navigation highlight\",attrs:{\"disabled\":_vm.disabled,\"type\":\"submit\"}},[_vm._v(\"\\n \"+_vm._s(_vm.saveText)+\"\\n \")])]):(_vm.$parent.canDismiss && !_vm.$isAndroid && !_vm.$isMobile && !_vm.$isIOS)?_c('button',{staticClass:\"button navigation icon close\",attrs:{\"slot\":\"right\",\"type\":\"button\"},on:{\"click\":_vm.$parent.dismiss},slot:\"right\"}):_vm._e()],2),_vm._v(\" \"),_c('main',[_vm._t(\"default\")],2),_vm._v(\" \"),(_vm.preferLargeButton || (!_vm.$isMobile && !_vm.$isIOS && !_vm.$isAndroid))?_c('STToolbar',{scopedSlots:_vm._u([{key:\"left\",fn:function(){return [_vm._t(\"left\")]},proxy:true},{key:\"right\",fn:function(){return [_vm._t(\"toolbar\"),_vm._v(\" \"),(!_vm.$slots.toolbar && _vm.addExtraCancel && (_vm.$parent.canPop || _vm.$parent.canDismiss) && _vm.cancelText !== null)?_c('button',{staticClass:\"button secundary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.$parent.pop}},[_vm._v(\"\\n \"+_vm._s(_vm.cancelText)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('LoadingButton',{attrs:{\"loading\":_vm.loading}},[_c('button',{staticClass:\"button primary\",attrs:{\"disabled\":_vm.disabled,\"type\":\"submit\"}},[(_vm.saveIcon)?_c('span',{staticClass:\"icon\",class:_vm.saveIcon}):_vm._e(),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.saveText))]),_vm._v(\" \"),(_vm.saveIconRight)?_c('span',{staticClass:\"icon\",class:_vm.saveIconRight}):_vm._e()])])]},proxy:true}],null,true)}):(!!_vm.$slots.buttons || !!_vm.$slots.toolbar)?_c('STButtonToolbar',{staticClass:\"sticky\"},[_vm._t(\"buttons\"),_vm._v(\" \"),_vm._t(\"toolbar\")],2):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <form class=\"st-view\" @submit.prevent=\"$emit('save')\">\n <STNavigationBar :title=\"title\">\n <BackButton v-if=\"$parent.canPop\" slot=\"left\" @click=\"$parent.pop\" />\n <template v-else-if=\"$isMobile || $isIOS || $isAndroid\" slot=\"left\">\n <button v-if=\"$isAndroid\" class=\"button navigation icon close\" type=\"button\" @click=\"$parent.pop\" />\n <button v-else class=\"button text selected unbold\" type=\"button\" @click=\"$parent.pop\">\n {{ cancelText }}\n </button>\n </template>\n\n <slot v-if=\"!$isMobile && !$isIOS\" slot=\"right\" name=\"buttons\" />\n\n <LoadingButton v-if=\"!preferLargeButton && ($isMobile || $isIOS || $isAndroid)\" slot=\"right\" :loading=\"loading\">\n <button class=\"button navigation highlight\" :disabled=\"disabled\" type=\"submit\">\n {{ saveText }}\n </button>\n </LoadingButton>\n <button v-else-if=\"$parent.canDismiss && !$isAndroid && !$isMobile && !$isIOS\" slot=\"right\" class=\"button navigation icon close\" type=\"button\" @click=\"$parent.dismiss\" />\n </STNavigationBar>\n <main>\n <slot />\n </main>\n <STToolbar v-if=\"preferLargeButton || (!$isMobile && !$isIOS && !$isAndroid)\">\n <template #left>\n <slot name=\"left\" />\n </template>\n <template #right>\n <slot name=\"toolbar\" />\n <button v-if=\"!$slots.toolbar && addExtraCancel && ($parent.canPop || $parent.canDismiss) && cancelText !== null\" class=\"button secundary\" type=\"button\" @click=\"$parent.pop\">\n {{ cancelText }}\n </button>\n <LoadingButton :loading=\"loading\">\n <button class=\"button primary\" :disabled=\"disabled\" type=\"submit\">\n <span v-if=\"saveIcon\" class=\"icon \" :class=\"saveIcon\" />\n <span>{{ saveText }}</span>\n <span v-if=\"saveIconRight\" class=\"icon \" :class=\"saveIconRight\" />\n </button>\n </LoadingButton>\n </template>\n </STToolbar>\n <STButtonToolbar v-else-if=\"!!$slots.buttons || !!$slots.toolbar\" class=\"sticky\">\n <slot name=\"buttons\" />\n <slot name=\"toolbar\" />\n </STButtonToolbar>\n </form>\n</template>\n\n\n<script lang=\"ts\">\nimport { Component,Prop,Vue } from \"vue-property-decorator\";\n\nimport BackButton from \"./BackButton.vue\";\nimport LoadingButton from \"./LoadingButton.vue\";\nimport STButtonToolbar from \"./STButtonToolbar.vue\";\nimport STNavigationBar from \"./STNavigationBar.vue\";\nimport STToolbar from \"./STToolbar.vue\";\n\n@Component({\n components: {\n STNavigationBar,\n STToolbar,\n LoadingButton,\n BackButton,\n STButtonToolbar\n }\n})\nexport default class SaveView extends Vue {\n @Prop({ default: false })\n loading!: boolean;\n\n @Prop({ default: false })\n disabled!: boolean;\n\n @Prop({ default: \"\" })\n title!: string;\n\n @Prop({ default: \"Opslaan\" })\n saveText!: string;\n\n @Prop({ default: null })\n saveIcon!: string | null;\n\n @Prop({ default: null })\n saveIconRight!: string | null;\n\n @Prop({ default: \"Annuleren\" })\n cancelText!: string | null;\n\n @Prop({ default: false })\n preferLargeButton!: boolean; // Always use large buttons at the bottom on mobile\n\n @Prop({ default: false })\n addExtraCancel!: boolean; // Add a large cancel button at the bottom\n}\n</script>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SaveView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SaveView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SaveView.vue?vue&type=template&id=19e34317\"\nimport script from \"./SaveView.vue?vue&type=script&lang=ts\"\nexport * from \"./SaveView.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('STList',{staticClass:\"payment-selection-list\"},_vm._l((_vm.sortedPaymentMethods),function(paymentMethod){return _c('STListItem',{key:paymentMethod,staticClass:\"right-stack left-center\",attrs:{\"selectable\":true,\"element-name\":\"label\"}},[_c('Radio',{attrs:{\"slot\":\"left\",\"name\":\"choose-payment-method\",\"value\":paymentMethod},slot:\"left\",model:{value:(_vm.selectedPaymentMethod),callback:function ($$v) {_vm.selectedPaymentMethod=$$v},expression:\"selectedPaymentMethod\"}}),_vm._v(\" \"),_c('h2',{class:{ 'style-title-list': !!_vm.getDescription(paymentMethod) }},[_vm._v(\"\\n \"+_vm._s(_vm.getName(paymentMethod))+\"\\n\\n \"),(paymentMethod == 'Payconiq' && _vm.hasNonPayconiq)?_c('span',{staticClass:\"style-tag inline-first\"},[_vm._v(\"Meest gebruikt\")]):_vm._e()]),_vm._v(\" \"),(_vm.getDescription(paymentMethod))?_c('p',{staticClass:\"style-description-small\"},[_vm._v(\"\\n \"+_vm._s(_vm.getDescription(paymentMethod))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(paymentMethod == 'Payconiq')?_c('div',{staticClass:\"payment-app-banner\"},[_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/payconiq/app.svg\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/kbc/app.svg\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/ing/app.svg\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/belfius/app.svg\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/bnp/app.png\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/hello-bank/app.png\")}}),_vm._v(\" \"),_c('img',{staticClass:\"payment-app-logo\",attrs:{\"src\":require(\"@stamhoofd/assets/images/partners/argenta/app.png\")}})]):_vm._e(),_vm._v(\" \"),(_vm.getLogo(paymentMethod) && (!_vm.$isMobile || paymentMethod !== 'Payconiq'))?_c('img',{staticClass:\"payment-method-logo\",class:paymentMethod.toLowerCase(),attrs:{\"slot\":\"right\",\"src\":_vm.getLogo(paymentMethod)},slot:\"right\"}):_vm._e()],1)}),1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <STList class=\"payment-selection-list\">\n <STListItem v-for=\"paymentMethod in sortedPaymentMethods\" :key=\"paymentMethod\" :selectable=\"true\" element-name=\"label\" class=\"right-stack left-center\">\n <Radio slot=\"left\" v-model=\"selectedPaymentMethod\" name=\"choose-payment-method\" :value=\"paymentMethod\" />\n <h2 :class=\"{ 'style-title-list': !!getDescription(paymentMethod) }\">\n {{ getName(paymentMethod) }}\n\n <span v-if=\"paymentMethod == 'Payconiq' && hasNonPayconiq\" class=\"style-tag inline-first\">Meest gebruikt</span>\n </h2>\n <p v-if=\"getDescription(paymentMethod)\" class=\"style-description-small\">\n {{ getDescription(paymentMethod) }}\n </p>\n\n <div v-if=\"paymentMethod == 'Payconiq'\" class=\"payment-app-banner\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/payconiq/app.svg\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/kbc/app.svg\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/ing/app.svg\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/belfius/app.svg\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/bnp/app.png\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/hello-bank/app.png\">\n <img class=\"payment-app-logo\" src=\"~@stamhoofd/assets/images/partners/argenta/app.png\">\n </div>\n\n <img v-if=\"getLogo(paymentMethod) && (!$isMobile || paymentMethod !== 'Payconiq')\" slot=\"right\" :src=\"getLogo(paymentMethod)\" class=\"payment-method-logo\" :class=\"paymentMethod.toLowerCase()\">\n </STListItem>\n </STList>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { NavigationMixin } from \"@simonbackx/vue-app-navigation\";\nimport bancontactLogo from \"@stamhoofd/assets/images/partners/bancontact/logo.svg\";\nimport idealLogo from \"@stamhoofd/assets/images/partners/ideal/logo.svg\";\nimport { LoadingButton, Radio, STErrorsDefault, STList, STListItem, STNavigationBar, STToolbar } from \"@stamhoofd/components\";\nimport { Country, Organization, PaymentMethod, PaymentMethodHelper } from \"@stamhoofd/structures\";\nimport { Component, Mixins, Prop } from \"vue-property-decorator\";\n\n@Component({\n components: {\n STNavigationBar,\n STToolbar,\n STList,\n STListItem,\n Radio,\n LoadingButton,\n STErrorsDefault\n },\n model: {\n // Already vue 3 compliant\n prop: 'modelValue',\n event: 'update:modelValue'\n },\n})\nexport default class PaymentSelectionList extends Mixins(NavigationMixin){\n @Prop({ default: null })\n modelValue: PaymentMethod | null\n\n @Prop({ required: true }) \n organization: Organization\n\n @Prop({ required: true }) \n paymentMethods: PaymentMethod[]\n\n @Prop({ default: null }) \n context: null | \"takeout\" | \"delivery\"\n\n mounted() {\n if (!this.selectedPaymentMethod || this.selectedPaymentMethod === PaymentMethod.Unknown || !this.paymentMethods.includes(this.selectedPaymentMethod)) {\n this.selectedPaymentMethod = this.sortedPaymentMethods[0] ?? null\n }\n }\n\n get selectedPaymentMethod() {\n return this.modelValue\n }\n\n set selectedPaymentMethod(method: PaymentMethod | null) {\n this.$emit('update:modelValue', method)\n }\n\n get sortedPaymentMethods() {\n const methods = this.paymentMethods\n const r: PaymentMethod[] = []\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.iDEAL) && this.organization.address.country == Country.Netherlands) {\n r.push(PaymentMethod.iDEAL)\n }\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.Payconiq)) {\n r.push(PaymentMethod.Payconiq)\n }\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.Bancontact)) {\n r.push(PaymentMethod.Bancontact)\n }\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.iDEAL) && this.organization.address.country != Country.Netherlands) {\n r.push(PaymentMethod.iDEAL)\n }\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.CreditCard)) {\n r.push(PaymentMethod.CreditCard)\n }\n\n // Force a given ordering\n if (methods.includes(PaymentMethod.Transfer)) {\n r.push(PaymentMethod.Transfer)\n }\n\n // Others\n r.push(...methods.filter(p => p != PaymentMethod.Payconiq && p != PaymentMethod.Bancontact && p != PaymentMethod.iDEAL && p != PaymentMethod.CreditCard && p != PaymentMethod.Transfer))\n\n return r\n }\n\n get hasNonPayconiq() {\n const hasTransfer = this.paymentMethods.includes(PaymentMethod.Transfer) ? 1 : 0\n const hasPOS = this.paymentMethods.includes(PaymentMethod.PointOfSale) ? 1 : 0\n return this.paymentMethods.length > 1 || !!hasTransfer || !!hasPOS\n }\n\n getName(paymentMethod: PaymentMethod): string {\n switch (paymentMethod) {\n case PaymentMethod.Payconiq: return 'Payconiq by Bancontact'\n case PaymentMethod.Transfer: return \"Via overschrijving\"\n case PaymentMethod.DirectDebit: return \"Opgeslagen betaalkaart\"\n }\n return PaymentMethodHelper.getNameCapitalized(paymentMethod, this.context)\n }\n\n getDescription(paymentMethod: PaymentMethod): string {\n switch (paymentMethod) {\n case PaymentMethod.Payconiq: return \"Betaal met de Payconiq by Bancontact app, de KBC-app, Belfius, BNP Paribas Fortis, ING-app, Fintro, Hello bank!, Argenta of Crelan app\"\n case PaymentMethod.Transfer: return \"\"\n case PaymentMethod.Bancontact: return this.organization.address.country === Country.Belgium ? \"\" : \"\"\n case PaymentMethod.iDEAL: return this.organization.address.country === Country.Netherlands ? \"Meest gebruikte betaalmethode.\" : \"\"\n case PaymentMethod.Unknown: return \"\"\n case PaymentMethod.DirectDebit: return \"Indien beschikbaar (kan 3 werkdagen duren)\"\n case PaymentMethod.CreditCard: return \"\"\n case PaymentMethod.PointOfSale: return \"\"\n }\n }\n\n getLogo(paymentMethod: PaymentMethod): string | null {\n switch (paymentMethod) {\n case PaymentMethod.Payconiq: return null;\n case PaymentMethod.Transfer: return null\n case PaymentMethod.Bancontact: return bancontactLogo\n case PaymentMethod.iDEAL: return idealLogo\n case PaymentMethod.Unknown: return null\n case PaymentMethod.DirectDebit: return null\n case PaymentMethod.CreditCard: return null\n case PaymentMethod.PointOfSale: return null\n }\n }\n}\n</script>\n\n<style lang=\"scss\">\n.payment-selection-list {\n .payment-method-logo {\n max-height: 30px;\n\n &.bancontact {\n max-height: 38px;\n margin: -4px 0 !important; // Fix white borders in bancontact logo\n }\n }\n\n .payment-app-logo {\n height: 28px;\n width: 28px;\n }\n\n .payment-app-banner {\n display: flex;\n flex-direction: row;\n padding-top: 10px;\n\n > * {\n margin-right: 5px\n }\n }\n}\n\n</style>","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelectionList.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-1.use[0]!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-1.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentSelectionList.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./PaymentSelectionList.vue?vue&type=template&id=1a4a50c2\"\nimport script from \"./PaymentSelectionList.vue?vue&type=script&lang=ts\"\nexport * from \"./PaymentSelectionList.vue?vue&type=script&lang=ts\"\nimport style0 from \"./PaymentSelectionList.vue?vue&type=style&index=0&id=1a4a50c2&prod&lang=scss\"\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","export class DataValidator {\n static isEmailValid(str) {\n const blockList = [\"gmail.be\", \"gmail.nl\", \"hotmail.c\", \"hotmail.co\", \"gmail.co\", \"gmail.c\", \"gmail.co\", \"gmal.com\", \"glail.com\", \"gmail.col\", \"gamil.com\", \"gmail.con\", \"icloud.be\"];\n const regex = /^[a-zA-Z0-9.!#$%&*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;\n if (!regex.test(str)) {\n return false;\n }\n for (const l of blockList) {\n if (str.endsWith(\"@\" + l)) {\n return false;\n }\n }\n return true;\n }\n}\n//# sourceMappingURL=DataValidator.js.map","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromisePrototype['finally'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });\n }\n}\n"],"names":["Validator","constructor","validations","Map","addValidation","owner","validation","this","set","removeValidation","delete","validate","valid","_","AddressSelectionView","Mixins","NavigationMixin","step","loading","errorBox","validator","CheckoutManager","checkoutMethod","checkout","deliveryMethod","webshop","WebshopManager","address","ValidatedAddress","saveCheckout","unscopedServer","goNext","CheckoutStepsManager","CheckoutStepType","Address","e","console","error","ErrorBox","mounted","UrlHelper","setUrl","toLowerCase","__decorate","Component","components","STList","STListItem","STErrorsDefault","AddressInput","SaveView","filters","dateWithDay","d","Formatter","capitalizeFirstLetter","minutes","bind","price","_vm","_c","_self","_setupProxy","attrs","on","_v","minimumPrice","discountPrice","deliveryPrice","staticClass","_s","_f","_e","model","value","callback","$$v","expression","CheckoutMethodSelectionView","checkoutMethods","meta","selectedMethod","search","id","f","find","c","method","getTypeName","type","CheckoutMethodType","Takeout","Delivery","OnSite","Method","Radio","date","_l","key","slot","name","description","timeSlots","length","startTime","endTime","listedRemainingStock","remainingPersons","CustomerView","phoneEnabled","isLoggedIn","_b","_a","SessionManager","currentSession","isComplete","emailPlaceholder","ticketType","WebshopTicketType","None","emailDescription","fields","customFields","firstName","customer","lastName","email","phone","Customer","STInputBox","EmailInput","PhoneInput","FieldBox","directives","rawName","domProps","$event","target","composing","$t","field","fieldAnswers","PayconiqBannerView","payment","initialPayment","pollCount","timer","canceling","setTimeout","poll","close","dismiss","cancel","paymentId","server","request","path","query","decoder","Payment","catch","shouldNavigateAway","CenteredMessage","confirm","then","response","data","status","PaymentStatus","Succeeded","finishedHandler","force","Failed","finally","beforeDestroy","clearTimeout","qrCodeSrc","encodeURIComponent","paymentUrl","Prop","required","STNavigationBar","STFloatingFooter","LoadingButton","class","scanned","PayconiqButtonView","getOS","userAgent","navigator","vendor","test","window","MSStream","includes","document","platform","toUpperCase","indexOf","isIOS","helpMe","addCloseButton","show","STToolbar","_m","PaymentHandler","handlePayment","settings","successHandler","failedHandler","transferHandler","organization","component","returnUrl","transferSettings","PaymentMethod","PointOfSale","Transfer","ComponentWithProperties","TransferPaymentView","created","provider","PaymentProvider","Payconiq","buttonComponent","setDisplayStyle","present","u","URL","searchParams","url","toString","bannerComponent","location","href","PaymentSelectionView","title","totalPrice","selectedPaymentMethod","paymentMethod","paymentContext","isTrial","packages","isWebshopsTrial","paymentMethods","goToOrder","reload","modalNavigationController","OrderView","orderId","success","replace","Unknown","OrderData","create","consumerLanguage","I18nController","shared","language","optionalAuthenticatedServer","body","OrderResponse","shouldRetry","timeout","order","getUrl","isSimpleError","SimpleErrors","isSimpleErrors","hasFieldThatStartsWith","cartEnabled","navigationController","popToRoot","Toast","fromError","PaymentSelectionList","TimeSelectionView","slice","sort","WebshopTimeSlot","selectedSlot","timeSlot","t","Time","index","Vue","pendingErrorBox","addressLine1","city","postalCode","country","getDefaultCountry","hasFocus","Country","Belgium","countries","CountryHelper","getList","onValueChanged","val","street","number","updateValues","onBlur","updateAddress","onFocus","isValid","destroyed","isFinal","silent","$emit","nullable","createFromFields","validateServer","addNamespace","linkCountryToLocale","isValidCountry","switchToLocale","updateAddressRealTime","default","Watch","deep","Dropdown","text","mappedValue","undefined","autocomplete","$$selectedVal","Array","prototype","filter","call","options","o","selected","map","_value","multiple","_t","emailRaw","onTyping","final","trim","DataValidator","isEmailValid","SimpleError","focus","$refs","input","inheritAttrs","ref","disabled","$attrs","phoneRaw","libphonenumber","phoneNumber","parsePhoneNumber","v","formatInternational","Object","values","placeholder","STButtonToolbar","BackButton","preventDefault","$parent","pop","$isMobile","$isIOS","$isAndroid","cancelText","preferLargeButton","saveText","canDismiss","scopedSlots","_u","fn","proxy","$slots","toolbar","addExtraCancel","canPop","saveIcon","saveIconRight","buttons","sortedPaymentMethods","modelValue","methods","r","iDEAL","Netherlands","push","Bancontact","CreditCard","p","hasNonPayconiq","hasTransfer","hasPOS","getName","DirectDebit","PaymentMethodHelper","getNameCapitalized","context","getDescription","getLogo","bancontactLogo","idealLogo","prop","event","str","blockList","l","endsWith","aCallable","$TypeError","TypeError","PromiseCapability","C","resolve","reject","promise","$$resolve","$$reject","module","exports","global","Promise","anObject","isObject","newPromiseCapability","x","promiseCapability","$","IS_PURE","NativePromiseConstructor","fails","getBuiltIn","isCallable","speciesConstructor","promiseResolve","defineBuiltIn","NativePromisePrototype","proto","real","forced","onFinally","isFunction","unsafe"],"sourceRoot":""}