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rD,EAAU,cAAgB6C,EAAY,KAAOO,EAAU,IAC1F3W,EAAMyE,KAAO,iBACbzE,EAAMnM,KAAOuiB,EACbpW,EAAMsW,QAAUK,EAChBD,EAAmB,GAAG1W,EACvB,CACD,GAEwC,SAAWuT,EAASA,EAE/D,CACD,EAWF1B,EAAoBO,EAAEQ,EAAKW,GAA0C,IAA7BkD,EAAgBlD,GAGxD,IAAIsD,EAAuB,CAACC,EAA4B/d,KACvD,IAGI+Y,EAAUyB,GAHTjB,EAAUyE,EAAaC,GAAWje,EAGhBnC,EAAI,EAC3B,GAAG0b,EAAS2E,MAAM9f,GAAgC,IAAxBsf,EAAgBtf,KAAa,CACtD,IAAI2a,KAAYiF,EACZlF,EAAoB/b,EAAEihB,EAAajF,KACrCD,EAAoBM,EAAEL,GAAYiF,EAAYjF,IAGhD,GAAGkF,EAAS,IAAI3E,EAAS2E,EAAQnF,EAClC,CAEA,IADGiF,GAA4BA,EAA2B/d,GACrDnC,EAAI0b,EAASxb,OAAQF,IACzB2c,EAAUjB,EAAS1b,GAChBib,EAAoB/b,EAAE2gB,EAAiBlD,IAAYkD,EAAgBlD,IACrEkD,EAAgBlD,GAAS,KAE1BkD,EAAgBlD,GAAW,EAE5B,OAAO1B,EAAoBO,EAAEC,EAAO,EAGjC6E,EAAqBC,KAAqC,+BAAIA,KAAqC,gCAAK,GAC5GD,EAAmB3d,QAAQsd,EAAqB1B,KAAK,KAAM,IAC3D+B,EAAmBvZ,KAAOkZ,EAAqB1B,KAAK,KAAM+B,EAAmBvZ,KAAKwX,KAAK+B,G,KCnFvF,IAAIE,EAAsBvF,EAAoBO,OAAE9c,EAAW,CAAC,WAAW,IAAOuc,EAAoB,QAClGuF,EAAsBvF,EAAoBO,EAAEgF,E","sources":["webpack://hema-foto-shopping/webpack/runtime/chunk loaded","webpack://hema-foto-shopping/webpack/runtime/load script","webpack://hema-foto-shopping/./src/ts/entries/confirmDialogFunction.tsx","webpack://hema-foto-shopping/./node_modules/oj-mithriljs-packages/dist/Zmdi/Zmdi.js","webpack://hema-foto-shopping/./src/ts/svg.tsx","webpack://hema-foto-shopping/./node_modules/oj-mithriljs-packages/dist/Dialog/Dialog.js","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/deliveryOption.tsx","webpack://hema-foto-shopping/./src/ts/utils.ts","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/logic.ts","webpack://hema-foto-shopping/./src/ts/components/fields/inputNumber.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/translations.ts","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/cartItem.tsx","webpack://hema-foto-shopping/./src/ts/mobile.ts","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/groupItem.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/cart.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/discountLogic.ts","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/priceOverview.tsx","webpack://hema-foto-shopping/./src/ts/translation.ts","webpack://hema-foto-shopping/./src/ts/components/forms/inputField.tsx","webpack://hema-foto-shopping/./node_modules/oj-mithriljs-packages/dist/Flyout/Flyout.js","webpack://hema-foto-shopping/./src/ts/components/forms/inputFieldGroup.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/customDiscountCode.tsx","webpack://hema-foto-shopping/./src/ts/components/forms/formRow.tsx","webpack://hema-foto-shopping/./src/ts/entries/Login/translations.ts","webpack://hema-foto-shopping/./src/ts/entries/Login/forgotPasswordFlyout.tsx","webpack://hema-foto-shopping/./src/ts/entries/Login/loginForm.tsx","webpack://hema-foto-shopping/./src/ts/entries/Login/loginRegisterForm.tsx","webpack://hema-foto-shopping/./src/ts/entries/Login/loginFlyout.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart/discountOptions.tsx","webpack://hema-foto-shopping/./src/ts/entries/shoppingCart.tsx","webpack://hema-foto-shopping/webpack/bootstrap","webpack://hema-foto-shopping/webpack/runtime/compat get default export","webpack://hema-foto-shopping/webpack/runtime/define property getters","webpack://hema-foto-shopping/webpack/runtime/ensure chunk","webpack://hema-foto-shopping/webpack/runtime/get javascript chunk filename","webpack://hema-foto-shopping/webpack/runtime/get mini-css chunk filename","webpack://hema-foto-shopping/webpack/runtime/global","webpack://hema-foto-shopping/webpack/runtime/hasOwnProperty shorthand","webpack://hema-foto-shopping/webpack/runtime/make namespace object","webpack://hema-foto-shopping/webpack/runtime/publicPath","webpack://hema-foto-shopping/webpack/runtime/css loading","webpack://hema-foto-shopping/webpack/runtime/jsonp chunk loading","webpack://hema-foto-shopping/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"hema-foto-shopping:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","import m from \"mithril\"\r\nimport { dialog } from \"oj-mithriljs-packages/dist/Dialog/Dialog\"\r\nimport { Svg } from \"../svg\"\r\n\r\nexport const showConfirmDialog = (open: boolean, title: string, confirm: string, description: string, onclose?: () => void) => {\r\n if (!open)\r\n return\r\n\r\n dialog({\r\n dismiss: true,\r\n animate: true,\r\n open: false,\r\n\r\n content: close =>\r\n
\r\n \r\n
\r\n {title}\r\n
\r\n

{description}

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n })\r\n}","var __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nimport m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { cleanString } from \"oj-utils\";\r\nvar Zmdi = (function (_super) {\r\n __extends(Zmdi, _super);\r\n function Zmdi() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n Zmdi.prototype.view = function (v) {\r\n if (v.attrs.icon === undefined)\r\n return;\r\n return m(\"i\", { className: cleanString(\"Zmdi\", \"zmdi zmdi-\" + v.attrs.icon, v.attrs.className) });\r\n };\r\n return Zmdi;\r\n}(MithrilTsxComponent));\r\nexport { Zmdi };\r\n//# sourceMappingURL=Zmdi.js.map","import m from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\n\r\nexport interface ISvg {\r\n src: string\r\n onload?: (svg: SVGElement) => any\r\n}\r\n\r\nexport class Svg extends MithrilTsxComponent {\r\n svg: string\r\n loaded: boolean\r\n\r\n view(v: m.Vnode) {\r\n if (!this.svg)\r\n return\r\n\r\n return m.trust(this.svg)\r\n }\r\n\r\n oninit(v: m.Vnode) {\r\n this.load(v)\r\n }\r\n\r\n onbeforeupdate(v: m.Vnode, o: m.Vnode) {\r\n if (v.attrs.src !== o.attrs.src)\r\n this.load(v)\r\n }\r\n\r\n onupdate(v: m.VnodeDOM) {\r\n if (!this.svg || this.loaded)\r\n return\r\n\r\n if (this.svg) {\r\n this.loaded = true\r\n v.attrs.onload?.(v.dom as SVGElement)\r\n v.dom.setAttribute('aria-hidden', 'true')\r\n v.dom.setAttribute('focusable', 'false')\r\n }\r\n }\r\n\r\n async load(v: m.Vnode) {\r\n if (!v.attrs.src)\r\n return\r\n\r\n this.loaded = false\r\n this.svg = await fetch(v.attrs.src).then(x => x.text())\r\n m.redraw()\r\n }\r\n}\r\n","var __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nimport m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { cleanString, exec, increment } from \"oj-utils\";\r\nimport { updateIfChanged, animateClassNames, animateCreate, animateRemove, portal, immediate } from \"oj-mithriljs-utils\";\r\nimport { getTransitionDuration } from \"oj-dom-utils\";\r\nimport \"./Dialog.scss\";\r\nvar inc = increment();\r\nvar Dialog = (function (_super) {\r\n __extends(Dialog, _super);\r\n function Dialog() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.id = inc();\r\n _this.open = false;\r\n return _this;\r\n }\r\n Dialog.prototype.oninit = function (v) {\r\n this.open = v.attrs.open;\r\n };\r\n Dialog.prototype.onbeforeupdate = function (v, o) {\r\n var open = this.open;\r\n updateIfChanged(\"open\", this, v, o);\r\n if (open !== this.open) {\r\n this.setFocus();\r\n exec(v.attrs.onopen, this.open);\r\n }\r\n };\r\n Dialog.prototype.view = function (v) {\r\n var _this = this;\r\n return m(\"div\", { id: v.attrs.id, className: cleanString(\"Dialog\", v.attrs.className, this.open && \"active\") }, this.open && [\r\n m(\"div\", { className: cleanString(\"backdrop\", v.attrs.animate && animateClassNames(v, \"animate\")), oncreate: function (e) { return v.attrs.animate ? animateCreate(e) : undefined; }, onbeforeremove: function (e) { return v.attrs.animate ? animateRemove(e) : undefined; }, onclick: v.attrs.dismiss ? function () {\r\n _this.setOpen(v, false);\r\n exec(v.attrs.ondismiss);\r\n } : undefined }),\r\n m(\"div\", { className: cleanString(\"content\", v.attrs.animate && animateClassNames(v, \"animate\")), onclick: function (e) {\r\n e.stopPropagation();\r\n exec(v.attrs.onclick, e);\r\n }, oncreate: function (e) {\r\n var _a;\r\n if (v.attrs.animate)\r\n animateCreate(e);\r\n (_a = e.dom.querySelector(\"input, textarea, button\")) === null || _a === void 0 ? void 0 : _a.focus();\r\n }, onbeforeremove: function (e) { return v.attrs.animate ? animateRemove(e) : undefined; } }, v.children)\r\n ]);\r\n };\r\n Dialog.prototype.oncreate = function (v) {\r\n var _this = this;\r\n var _a;\r\n v.dom[\"setOpen\"] = function (open) {\r\n if (open === void 0) { open = true; }\r\n _this.setOpen(v, open);\r\n m.redraw();\r\n };\r\n this.portal = portal(v.dom, (_a = v.attrs.portal) !== null && _a !== void 0 ? _a : document.body);\r\n window.on(\"keydown.Dialog.\".concat(this.id), function (e) {\r\n if (!_this.open)\r\n return;\r\n if (e.key === \"Escape\") {\r\n _this.setOpen(v, false);\r\n m.redraw();\r\n }\r\n });\r\n };\r\n Dialog.prototype.onremove = function (v) {\r\n this.portal.reset();\r\n window.off(\"keydown.Dialog.\".concat(this.id));\r\n };\r\n Dialog.prototype.setOpen = function (v, open) {\r\n if (this.open === open)\r\n return;\r\n this.open = open;\r\n this.setFocus();\r\n exec(v.attrs.onopen, this.open);\r\n };\r\n Dialog.prototype.setFocus = function () {\r\n if (this.open && !this.prevElement)\r\n this.prevElement = document.activeElement;\r\n else if (!this.open) {\r\n setTimeout(function (e) {\r\n e === null || e === void 0 ? void 0 : e.focus();\r\n }, getTransitionDuration(document.querySelector(\".Dialog.active .backdrop\")), this.prevElement);\r\n this.prevElement = undefined;\r\n }\r\n };\r\n return Dialog;\r\n}(MithrilTsxComponent));\r\nexport { Dialog };\r\nexport var dialog = function (data) {\r\n var open = true;\r\n var imm = immediate({\r\n view: function (v) {\r\n return m(Dialog, __assign({}, data, { open: open, ondismiss: function () {\r\n open = false;\r\n exec(data.ondismiss);\r\n imm.resolve(open);\r\n }, onopen: function (e) {\r\n open = e;\r\n exec(data.onopen, e);\r\n imm.resolve(open);\r\n } }), data.content(function () { return open = false; }));\r\n }\r\n });\r\n exec(data.onopen, open);\r\n return imm.promise;\r\n};\r\n//# sourceMappingURL=Dialog.js.map","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { getTranslation } from \"./translations\"\r\nimport * as Logic from \"./logic\"\r\nimport { cleanString } from \"oj-utils\"\r\nimport { formatPrice } from \"../../utils\";\r\n\r\ninterface IDeliveryOptions {\r\n onChange: (option: IDeliveryOption, index: number) => void\r\n}\r\n\r\nenum DeliveryMethod {\r\n PickUpInStore,\r\n DeliveryByMail\r\n}\r\n\r\nexport interface IDeliveryOption {\r\n title: string,\r\n description: string,\r\n deliveryPrice: number,\r\n isEnabled: boolean,\r\n selected?: boolean\r\n orderDeliveryMethod: DeliveryMethod,\r\n}\r\n\r\nexport class DeliveryOptions extends MithrilTsxComponent {\r\n\r\n view(v: Vnode) {\r\n return
\r\n
\r\n {getTranslation(\"delivery\")}\r\n
\r\n
\r\n {Logic.getDeliveryOptions().map((x, index) => )}\r\n
\r\n
\r\n }\r\n\r\n getLanguageTranslation(): string {\r\n if (window.culture === \"fr-BE\" || window.culture === \"nl-BE\")\r\n return `(${getTranslation(\"withinBelgium\")})`\r\n if (window.culture === \"nl-NL\")\r\n return `(${getTranslation(\"withinTheNetherlands\")})`\r\n }\r\n}\r\n","import { get } from \"oj-ajax\"\r\nimport { getRootElements } from \"oj-dom-utils\"\r\nimport { debounce } from \"oj-utils\"\r\nimport m from \"mithril\"\r\n\r\nexport const isTouchDevice = () =>\r\n \"ontouchstart\" in window\r\n\r\n\r\nexport const getFileExtensionFromString = (str: string) =>\r\n str.split(\".\")[1]\r\n\r\nexport const mounter = (selector: string, cb: (root: HTMLElement, data: T | null) => void) =>\r\n getRootElements(selector)\r\n .forEach(x => {\r\n const inputs = Array.from(x.querySelectorAll(\"input\"))\r\n let data: any = null\r\n if (inputs.length > 1)\r\n data = inputs.map(x => {\r\n try {\r\n return JSON.parse(x.value)\r\n } catch (err) {\r\n return x.value\r\n }\r\n })\r\n else if (inputs[0] instanceof HTMLInputElement)\r\n try {\r\n data = JSON.parse(inputs[0].value)\r\n } catch (err) {\r\n data = inputs[0].value\r\n }\r\n cb(x, data)\r\n })\r\n\r\nexport const downloadFile = (response: any, name: string) => {\r\n if (navigator.appVersion.toString().indexOf('.NET') > 0)\r\n window.navigator[\"msSaveBlob\"](response, name)\r\n else {\r\n const blob = new Blob([response], { type: response.type })\r\n const objectUrl = URL.createObjectURL(blob)\r\n const a = document.createElement(\"a\")\r\n a.style.display = \"none\"\r\n document.body.appendChild(a)\r\n a.href = objectUrl\r\n a.download = name\r\n a.click()\r\n URL.revokeObjectURL(objectUrl)\r\n }\r\n}\r\n\r\nexport const testMailAddress = (mail: string) =>\r\n /^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/.test(mail)\r\n\r\nexport const loadScript = (src: string) =>\r\n new Promise((resolve, reject) => {\r\n const script = document.createElement(\"script\")\r\n script.type = \"text/javascript\"\r\n script.onload = resolve\r\n script.onerror = reject\r\n script.src = src\r\n document.body.appendChild(script)\r\n })\r\n\r\nexport const loadScriptSource = (txt: string) =>\r\n new Promise((resolve, reject) => {\r\n const script = document.createElement(\"script\")\r\n script.type = \"text/javascript\"\r\n script.onload = resolve\r\n script.onerror = reject\r\n script.innerHTML = txt\r\n document.body.appendChild(script)\r\n })\r\n\r\nexport const hideScrollbars = (hide: boolean) => {\r\n document.querySelector(\"body\").classList.toggle(\"hide-scrollbars\", hide);\r\n}\r\n\r\nexport const formatPrice = (price: number, currency = true) => {\r\n const formatedPrice = new Intl.NumberFormat(window.culture, {\r\n style: 'currency',\r\n currency: 'EUR',\r\n }).format(price);\r\n\r\n if (currency)\r\n return formatedPrice.replace(\",\", \".\")\r\n else\r\n return formatedPrice.replace(\",\", \".\").replace(\"€\", \"\").trim()\r\n}\r\n\r\nexport const formatHtmlPrice = (price: number) => {\r\n const formatNumber = new Intl.NumberFormat(window[\"culture\"], { minimumFractionDigits: 2 }).format(\r\n price,\r\n )\r\n const priceParts = formatNumber.toString().replace(\".\", \"\").split(\",\");\r\n\r\n if (priceParts[1] != \"00\") {\r\n return `${priceParts[0]}.${priceParts[1]}`\r\n } else {\r\n return `${priceParts[0]}`\r\n }\r\n}\r\n\r\ninterface ImageDimensions {\r\n width: number;\r\n height: number;\r\n}\r\n\r\nexport const getImageDimensions = (imageUrl): Promise => {\r\n return new Promise((resolve, reject) => {\r\n const img = new Image(); // Create a new image object\r\n\r\n img.onload = function () {\r\n // Once the image is loaded, resolve the promise with the width and height\r\n resolve({ width: img.width, height: img.height });\r\n img.onload = null;\r\n img.src = '';\r\n };\r\n\r\n img.onerror = function () {\r\n // Reject the promise if there is an error loading the image\r\n reject(new Error(\"Error loading image.\"));\r\n };\r\n\r\n // Set the image source to the URL, which triggers the loading process\r\n img.src = imageUrl;\r\n });\r\n}\r\n\r\nexport const getAddress = debounce(500, async (form: any) => {\r\n const postalCode = form.getFields().postalCode.value\r\n const houseNumber = form.getFields().houseNumber.value\r\n\r\n if (postalCode && houseNumber) {\r\n await get(`/${window[\"culture\"]}/Checkout/FindAddress/?PostalCode=${postalCode}&HouseNumber=${houseNumber}`)\r\n .then(res => JSON.parse(res))\r\n .then(res => {\r\n if (res.street && res.city) {\r\n form.getFields().street.value = res.street\r\n form.getFields().city.value = res.city\r\n }\r\n form.getFields().street.validate.readonly = false\r\n form.getFields().city.validate.readonly = false\r\n m.redraw()\r\n })\r\n }\r\n})\r\n\r\nexport const decodeUnicode = (str: string) => {\r\n return JSON.parse('\"' + str.replace(/%u/g, '\\\\u') + '\"');\r\n}\r\n\r\nexport const getBaseUrl = () => {\r\n // Create a URL object to easily work with the URL\r\n const urlObj = new URL(document.location.href);\r\n\r\n // Match the language code in the URL, like \"/fr\", \"/en\", etc.\r\n const languageMatch = urlObj.pathname.match(/^\\/([a-z]{2})\\//);\r\n\r\n if (languageMatch) {\r\n // If language is found (e.g., 'fr' or 'en'), return the base URL with language\r\n return `${urlObj.protocol}//${urlObj.host}${languageMatch[0].replace(/\\/$/, '')}`;\r\n } else {\r\n // If no language code is found, return the base URL without language\r\n return `${urlObj.protocol}//${urlObj.host}`;\r\n }\r\n}","import { type IDeliveryOption } from \"./deliveryOption\";\r\nimport { debounce } from \"oj-promise-utils\";\r\nimport { type IPriceOverview } from \"./priceOverview\";\r\nimport m from \"mithril\"\r\nimport { type IShoppingCart } from \"../shoppingCart\";\r\nimport { getBaseUrl } from \"../../utils\";\r\n\r\nexport interface ICartGroupItem {\r\n id: string,\r\n title: string,\r\n items: ILocalCartItem[]\r\n}\r\n\r\nexport interface ICartItem {\r\n groupId?: string,\r\n groupTitle?: string,\r\n id: string,\r\n imageUrl?: string,\r\n title?: string,\r\n descriptionFirstLine?: string,\r\n descriptionSecondLine?: string,\r\n actionPrice: number,\r\n totalPrice: number,\r\n quantity: number,\r\n prevQuantity?: number,\r\n isQuantityMutable?: boolean,\r\n backUrl: string,\r\n disablePickUpInStore: boolean,\r\n disableDeliveryByMail: boolean,\r\n tagmanagerData: any\r\n}\r\n\r\nexport interface ILocalCartItem extends ICartItem {\r\n description: string[];\r\n}\r\n\r\ninterface IState {\r\n cartLines: (ICartGroupItem | ILocalCartItem)[]\r\n deliveryOptions: IDeliveryOption[]\r\n priceOverview: IPriceOverview\r\n url: string\r\n}\r\n\r\nconst state: IState = {\r\n cartLines: [],\r\n deliveryOptions: [],\r\n priceOverview: null,\r\n url: null\r\n}\r\n\r\nexport const setCartLines = (cartLines: ICartItem[]) => {\r\n state.cartLines = convertCartLines(cartLines)\r\n}\r\n\r\nexport const convertCartLines = (cartLines: ICartItem[]): (ICartGroupItem | ILocalCartItem)[] => {\r\n const lines = []\r\n\r\n for (const x of cartLines) {\r\n const lx = { ...x } as ILocalCartItem;\r\n lx.description = [lx.descriptionFirstLine, lx.descriptionSecondLine]\r\n lx.imageUrl = lx.imageUrl ?? \"/FrontendWebpack/dist/assets/images/notfound/fallback-image.png\"\r\n\r\n if (lx.groupId) {\r\n const g = lines.find(y => \"items\" in y && y.id === lx.groupId) as ICartGroupItem\r\n if (g)\r\n g.items.push(lx)\r\n else\r\n lines.push({ id: lx.groupId, title: lx.groupTitle, items: [lx] })\r\n }\r\n else\r\n lines.push(lx)\r\n }\r\n\r\n return lines\r\n}\r\n\r\nexport const setDeliveryOptions = (options: IDeliveryOption[]) => {\r\n options.find(x => x.isEnabled).selected = true\r\n state.deliveryOptions = options\r\n}\r\n\r\nexport const setPriceOverview = (PriceOverview: IPriceOverview) =>\r\n state.priceOverview = PriceOverview\r\n\r\nexport const getCartLines = () =>\r\n state.cartLines\r\n\r\nexport const getCartLinesSize = () =>\r\n state.cartLines.length\r\n\r\nexport const getPriceOverview = () =>\r\n state.priceOverview\r\n\r\nexport const getUrl = () =>\r\n state.url\r\n\r\nexport const setUrl = (url: string) =>\r\n state.url = url\r\n\r\nexport const getDeliveryOptions = () =>\r\n state.deliveryOptions\r\n\r\nexport const findCartItem = (id: string, groupId?: string) => {\r\n const items = groupId == undefined\r\n ? state.cartLines as ICartItem[]\r\n : (state.cartLines.find(x => \"items\" in x && x.id === groupId) as ICartGroupItem)?.items\r\n const item = items.find(x => !(\"items\" in x) && x.id === id)\r\n return item\r\n}\r\n\r\nexport const updateItemQuantity = async (id: string, quantity: number, groupId?: string) => {\r\n const item = findCartItem(id, groupId)\r\n\r\n if (quantity > 0) {\r\n item.prevQuantity ??= item.quantity;\r\n item.quantity = quantity;\r\n await apiUpdateQuantity(item)\r\n window.ojtag('add_to_cart', { items: [item.tagmanagerData] })\r\n }\r\n}\r\n\r\nexport const removeItem = async (id: string, groupId?: string) => {\r\n const item = findCartItem(id, groupId)\r\n\r\n await apiRemoveItem(id, groupId)\r\n window.ojtag('remove_from_cart', { items: [item.tagmanagerData] })\r\n}\r\n\r\nexport const updateDeliveryMethod = async (index: number) => {\r\n await apiUpdateDeliveryMethod(index)\r\n}\r\n\r\nexport const updateCart = (data: IShoppingCart) => {\r\n setCartLines(data.shoppingCartLines)\r\n setPriceOverview({\r\n subPrice: data.subPrice,\r\n processingPrice: data.processingPrice,\r\n shippingPrice: data.shippingPrice,\r\n discountPrice: data.discountPrice,\r\n totalPrice: data.totalPrice,\r\n loyaltyHemaPoints: data.loyaltyHemaPoints,\r\n })\r\n setDeliveryOptions(data.orderDeliveryOptions)\r\n setUrl(data.url)\r\n // emit event for basket amount\r\n window[\"ea_BasketAmount\"].emit(\"basketAmountChanged\", data.shoppingCartLines.reduce((acc, item) => acc + item.quantity, 0));\r\n}\r\n\r\nconst apiUpdateQuantity = debounce(200, async (item: ICartItem) => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/UpdateShoppingCartLine`, {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n body: JSON.stringify({ id: item.id, quantity: item.quantity })\r\n })\r\n const data: IShoppingCart = await res.json()\r\n if (res.status === 400)\r\n throw new Error(\"error with cart quantity update\")\r\n delete item.prevQuantity\r\n\r\n updateCart(data)\r\n }\r\n catch (err) {\r\n // item.quantity = item.prevQuantity\r\n delete item.prevQuantity\r\n console.error(err)\r\n }\r\n m.redraw()\r\n})\r\n\r\nexport const apiRemoveItem = debounce(200, async (id: string, groupId?: string) => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/DeleteShoppingCartLine`, {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n body: JSON.stringify({ id: id, groupId: groupId })\r\n })\r\n const data: IShoppingCart = await res.json()\r\n if (res.status === 400)\r\n throw new Error(\"error with remove cart item\")\r\n\r\n updateCart(data)\r\n }\r\n catch (err) {\r\n console.error(err)\r\n }\r\n m.redraw()\r\n})\r\n\r\nexport const apiUpdateDeliveryMethod = debounce(200, async (index: number) => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/SetShoppingCartDeliveryMethod`, {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n body: JSON.stringify({ deliveryMethod: index })\r\n })\r\n const data: IShoppingCart = await res.json()\r\n if (res.status === 400)\r\n throw new Error(\"error with delivery method update\")\r\n\r\n updateCart(data)\r\n }\r\n catch (err) {\r\n console.error(err)\r\n }\r\n m.redraw()\r\n})\r\n","import m, { Vnode, VnodeDOM } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { Svg } from \"../../svg\";\r\nimport { type IOption } from \"../../types\";\r\nimport { clamp, cleanString } from \"oj-utils\";\r\n\r\ninterface IInputNumber {\r\n id: string,\r\n options: IOption[],\r\n label?: boolean,\r\n trash?: boolean\r\n onChange: (option: IOption) => void\r\n disabled?: boolean\r\n}\r\n\r\nexport class InputNumber extends MithrilTsxComponent {\r\n value: string\r\n\r\n view(v: Vnode) {\r\n const { id, options, trash, onChange, disabled } = v.attrs;\r\n\r\n return options.map(x =>
\r\n \r\n {\r\n const target = e.target as HTMLInputElement;\r\n this.value = target.value;\r\n }}\r\n onchange={() => {\r\n const clampedValue = clamp(+this.value, x.min, x.max)\r\n this.value = clampedValue.toString()\r\n x.value = clampedValue\r\n onChange(x)\r\n }}\r\n disabled={disabled}\r\n />\r\n \r\n
)\r\n }\r\n\r\n};","const NL = {\r\n shoppingCart: \"winkelmandje\",\r\n delivery: \"bezorging\",\r\n edit: \"aanpassen\",\r\n free: \"gratis\",\r\n pickUpInStore: \"afhalen in de winkel\",\r\n homeDelivery: \"thuisbezorgen (binnen Nederland)\",\r\n receipt: \"bonnetje\",\r\n totalPriceItems: \"totale prijs artikelen\",\r\n processingFees: \"verwerkingskosten\",\r\n deliveryFees: \"bezorgkosten\",\r\n totalAmount: \"totaalbedrag\",\r\n continue: \"ga verder\",\r\n discount: \"korting\",\r\n discountCode: \"kortingscode\",\r\n discountCodeNotFound: \"dit is geen geldige kortingscode\",\r\n cartEmpty: \"je winkelmandje is nog leeg...\",\r\n addDiscount: \"korting toevoegen\",\r\n maxDiscountCodes: \"maximaal één kortingscode per bestelling\",\r\n customDiscountCode: \"aangepaste kortingscode\",\r\n add: \"voeg toe\",\r\n addCodeHere: \"voer hier je code in\",\r\n proceed: \"doorgaan\",\r\n somethingWentWrong: \"er is iets fout gegaan\",\r\n useVouchersTitle: \"Gebruik maken van je persoonlijke vouchers ?\",\r\n useVouchersDescription: \"Log in en selecteer welke jij wilt gebruiken.\",\r\n noVouchers: \"Er zijn op dit moment geen actieve vouchers beschikbaar.\",\r\n login: \"inloggen\",\r\n savedPoints: \"gespaarde punten\",\r\n points: \"punten\",\r\n withinTheNetherlands: \"binnen Nederland\",\r\n withinBelgium: \"binnen belgië\",\r\n expires: \"verloopt\",\r\n loadingVouchers: \"Vouchers worden opgehaald...\",\r\n};\r\n\r\nconst FR: typeof NL = {\r\n shoppingCart: \"panier\",\r\n delivery: \"livraison\",\r\n edit: \"ajuster\",\r\n free: \"gratuit\",\r\n pickUpInStore: \"retirer en magasin\",\r\n homeDelivery: \"livraison à domicile (aux Pays-Bas)\",\r\n receipt: \"ticket de caisse\",\r\n totalPriceItems: \"prix total des articles\",\r\n processingFees: \"frais de traitement\",\r\n deliveryFees: \"frais de livraison\",\r\n totalAmount: \"montant total\",\r\n continue: \"continue\",\r\n discount: \"remise\",\r\n discountCode: \"code de réduction\",\r\n discountCodeNotFound: \"ce n'est pas un code de réduction valide\",\r\n cartEmpty: \"votre panier est encore vide...\",\r\n addDiscount: \"ajouter une remise\",\r\n maxDiscountCodes: \"maximum une code de réduction par commande\",\r\n customDiscountCode: \"code de réduction personnalisé\",\r\n add: \"ajoute\",\r\n addCodeHere: \"entrez votre code ici\",\r\n proceed: \"continuer\",\r\n somethingWentWrong: \"il y a eu un problème\",\r\n useVouchersTitle: \"Utiliser vos bons personnels ?\",\r\n useVouchersDescription: \"Connectez-vous et sélectionnez celui que vous souhaitez utiliser.\",\r\n noVouchers: \"Il n'y a pas de bons actifs disponibles pour le moment.\",\r\n login: \"se connecter\",\r\n savedPoints: \"points sauvegardés\",\r\n points: \"points\",\r\n withinTheNetherlands: \"aux Pays-Bas\",\r\n withinBelgium: \"en Belgique\",\r\n expires: \"expire\",\r\n loadingVouchers: \"Chargement des bons...\",\r\n};\r\n\r\nconst translations: Record = {\r\n NL,\r\n FR\r\n};\r\n\r\nexport const getTranslation = (key: T): typeof NL[T] => {\r\n if (window.culture === \"fr-BE\")\r\n return translations[\"FR\"][key]\r\n\r\n return translations[\"NL\"][key]\r\n}\r\n\r\nexport type LanguageKey = keyof typeof NL","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { IOption } from \"../../types\"\r\nimport { InputNumber } from \"../../components/fields/inputNumber\"\r\nimport { getTranslation } from \"./translations\"\r\nimport * as Logic from \"./logic\"\r\nimport { formatHtmlPrice } from \"../../utils\"\r\nimport { Svg } from \"../../svg\"\r\nimport { redrawOnBreakpoint } from \"../../mobile\"\r\n\r\nlet isMobile = redrawOnBreakpoint(767);\r\n\r\nexport class CartItem extends MithrilTsxComponent {\r\n view(v: Vnode) {\r\n const { imageUrl: image, title, backUrl, id, quantity, actionPrice, totalPrice, isQuantityMutable } = v.attrs;\r\n\r\n return
\r\n {image &&\r\n
\r\n {title}\r\n
\r\n }\r\n
\r\n
\r\n
\r\n {title}\r\n {getTranslation(\"edit\")}\r\n {isMobile() && }\r\n
\r\n
\r\n Logic.updateItemQuantity(id, option.value)} disabled={!isQuantityMutable} />\r\n {!isMobile() && }\r\n
\r\n {actionPrice > 0 && {m.trust(formatHtmlPrice(actionPrice))}}\r\n {m.trust(formatHtmlPrice(totalPrice))}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n }\r\n\r\n}\r\n","import m from \"mithril\"\r\nimport { memoize } from \"oj-utils\"\r\n\r\nexport const redrawOnBreakpoint = memoize((width: number = 768) => {\r\n const mediaQueryList = window.matchMedia(`(min-width: ${width}px)`)\r\n let matches = mediaQueryList.matches\r\n\r\n mediaQueryList.onchange = (event) => {\r\n m.redraw()\r\n matches = event.matches\r\n }\r\n return () => !matches\r\n})\r\n","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { getTranslation } from \"./translations\"\r\nimport { type ICartGroupItem } from \"./logic\";\r\nimport { formatHtmlPrice, formatPrice } from \"../../utils\";\r\nimport * as Logic from \"./logic\"\r\nimport { Svg } from \"../../svg\";\r\n\r\nexport class GroupItem extends MithrilTsxComponent {\r\n\r\n view(v: Vnode) {\r\n const { id, title, items } = v.attrs;\r\n const { imageUrl: image, backUrl, actionPrice, totalPrice } = items[0]\r\n\r\n return
\r\n {image &&\r\n
\r\n {title}\r\n
\r\n }\r\n
\r\n
\r\n {title && {title}}\r\n \r\n
\r\n {items.map(x =>
\r\n
\r\n {x.quantity}x {x.title}\r\n {x.description.map(x => x && {x})}\r\n
\r\n
\r\n {/* */}\r\n
\r\n {x.actionPrice > 0 && {formatPrice(x.actionPrice, false)}}\r\n {formatPrice(x.totalPrice, false)}\r\n
\r\n
\r\n
)}\r\n
\r\n {getTranslation(\"edit\")}\r\n
\r\n {actionPrice > 0 && {m.trust(formatHtmlPrice(actionPrice))}}\r\n {m.trust(formatHtmlPrice(totalPrice))}\r\n
\r\n
\r\n\r\n
\r\n
\r\n }\r\n\r\n}\r\n","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { CartItem } from \"./cartItem\"\r\nimport * as Logic from \"./logic\"\r\nimport { GroupItem } from \"./groupItem\"\r\n\r\ninterface ICart {\r\n\r\n}\r\n\r\nexport class Cart extends MithrilTsxComponent {\r\n view(v: Vnode) {\r\n return
\r\n {Logic.getCartLines().map(x => \"items\" in x ? : )}\r\n
\r\n }\r\n}\r\n","import m from \"mithril\"\r\nimport { type IShoppingCart } from \"../shoppingCart\"\r\nimport { getBaseUrl } from \"../../utils\"\r\n\r\nexport interface IDiscountInfo {\r\n code: string,\r\n isVoucher: boolean,\r\n type?: DiscountType,\r\n amount?: number,\r\n}\r\n\r\nexport interface IVoucher {\r\n discountCode: IDiscountInfo,\r\n title: string,\r\n expirationDate: string,\r\n isSelected: boolean\r\n}\r\n\r\ninterface IState {\r\n vouchers: IVoucher[],\r\n discountCode: IDiscountInfo\r\n}\r\n\r\nexport enum DiscountType {\r\n FixedPrice = 0,\r\n Percentage = 1,\r\n}\r\n\r\nconst state = {\r\n vouchers: [],\r\n discountCode: null,\r\n error: null\r\n}\r\n\r\nexport const apiGetDiscountInfo = async () => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/GetDiscountInfo`, {\r\n method: \"GET\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n })\r\n const data: any = await res.json()\r\n state.discountCode = data.discountCode\r\n state.vouchers = data.vouchers\r\n updateDiscountCode()\r\n\r\n }\r\n catch (err) {\r\n\r\n }\r\n m.redraw()\r\n}\r\n\r\nexport const getVouchers = (): IVoucher[] =>\r\n state.vouchers\r\n\r\nexport const getDiscountCode = (): IDiscountInfo =>\r\n state.discountCode\r\n\r\nexport const setDiscountCode = (discountCode: IDiscountInfo) =>\r\n state.discountCode = discountCode\r\n\r\nexport const updateDiscountCode = (discountCode?: IDiscountInfo) => {\r\n getVouchers().map(x => x.isSelected = x.discountCode.code === (discountCode?.code ?? getDiscountCode()?.code))\r\n}\r\n\r\nexport const setError = (error: string) =>\r\n state.error = error\r\n\r\nexport const getError = (): string =>\r\n state.error\r\n\r\nexport const apiSetDiscountCode = async (discountCode: string, isLoyaltyVoucher: boolean, cb: (data) => void) => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/SetDiscountCode`, {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n body: JSON.stringify({ discountCode, isLoyaltyVoucher })\r\n })\r\n const data = await res.json()\r\n if (res.status === 400)\r\n throw new Error(\"error with discount code\")\r\n\r\n cb(data)\r\n\r\n if (data.discountCode) {\r\n setDiscountCode(data.discountCode)\r\n updateDiscountCode()\r\n }\r\n }\r\n catch (err) {\r\n\r\n }\r\n m.redraw()\r\n}\r\n\r\nexport const apiRemoveDiscountCode = async (cb: (data) => void) => {\r\n try {\r\n const res = await fetch(`${getBaseUrl()}/Checkout/RemoveDiscountCode`, {\r\n method: \"GET\",\r\n headers: { \"Content-Type\": \"application/json\", \"Accept-Language\": window[\"culture\"] },\r\n })\r\n const data: IShoppingCart = await res.json()\r\n if (res.status === 400)\r\n throw new Error(\"error with discount code\")\r\n\r\n cb(data)\r\n setDiscountCode(null)\r\n updateDiscountCode()\r\n }\r\n catch (err) {\r\n\r\n }\r\n m.redraw()\r\n}","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { getTranslation } from \"./translations\"\r\nimport { formatPrice, formatHtmlPrice } from \"../../utils\";\r\nimport { cleanString } from \"oj-utils\";\r\n\r\nexport interface IPriceOverview {\r\n subPrice: number,\r\n processingPrice: number,\r\n shippingPrice: number,\r\n discountPrice: number,\r\n totalPrice: number,\r\n loyaltyHemaPoints?: number\r\n hideTitle?: boolean\r\n}\r\n\r\nexport class PriceOverview extends MithrilTsxComponent {\r\n\r\n view(v: Vnode) {\r\n return
\r\n {!v.attrs.hideTitle &&
\r\n {getTranslation(\"receipt\")}\r\n
}\r\n
    \r\n
  • {getTranslation(\"totalPriceItems\")}{formatPrice(v.attrs.subPrice, false)}
  • \r\n {v.attrs.processingPrice > 0 &&
  • {getTranslation(\"processingFees\")}{formatPrice(v.attrs.processingPrice, false)}
  • }\r\n
  • {getTranslation(\"deliveryFees\")}{v.attrs.shippingPrice > 0 ? formatPrice(v.attrs.shippingPrice, false) : getTranslation(\"free\")}
  • \r\n {v.attrs.discountPrice > 0 &&
  • {getTranslation(\"discount\")}- {formatPrice(v.attrs.discountPrice, false)}
  • }\r\n {/*
  • {getTranslation(\"discountCode\")}- 5.00
  • */}\r\n
  • {getTranslation(\"totalAmount\")}{m.trust(formatHtmlPrice(v.attrs.totalPrice))}
  • \r\n {v.attrs?.loyaltyHemaPoints > 0 &&
  • {getTranslation(\"savedPoints\")}{v.attrs.loyaltyHemaPoints} {getTranslation(\"points\")}
  • }\r\n
\r\n
\r\n }\r\n}\r\n","const NL = {\r\n none: '- Geen -',\r\n optional: '(optioneel)',\r\n fileName: 'Bestandsnaam',\r\n add: \"Toevoegen\",\r\n headerYourInfo: 'jouw gegevens',\r\n headerYourQuestion: 'jouw vraag',\r\n send: 'Verzenden',\r\n makeYourChoice: \"maak je keuze\",\r\n fieldSalutationLabel: 'Aanhef',\r\n fieldSalutationMessage: 'Aanhef is verplicht',\r\n fieldNameLabel: 'Naam',\r\n fieldNameMessage: 'Naam is verplicht',\r\n fieldEmailAddressLabel: 'e-mailadres',\r\n fieldEmailMessage: 'E-mail is verplicht',\r\n fieldTelephoneLabel: 'Telefoon',\r\n fieldTelephoneMessage: 'Telefoon is verplicht',\r\n fieldOrderNumberLabel: 'Ordernummer',\r\n fieldOrderNumberMessage: 'Ordernummer is verplicht',\r\n fieldPlatformLabel: 'Mijn vraag gaat over',\r\n fieldPlatformMessage: 'Maak een keuze',\r\n fieldSubjectLabel: 'Onderwerp',\r\n fieldSubjectMessage: 'Onderwerp is verplicht',\r\n fieldDescriptionLabel: 'Vraag, opmerking of suggestie',\r\n fieldDescriptionMessage: 'Dit veld is verplicht',\r\n optionPlatform1: 'HEMA Foto',\r\n optionPlatform2: 'HEMA',\r\n optionSalutation1: 'Neutraal',\r\n optionSalutation2: 'Meneer',\r\n optionSalutation3: 'Mevrouw',\r\n successTitle: 'je bericht is verzonden',\r\n successDescription: 'Wij proberen je bericht zo snel mogelijk te beantwoorden.',\r\n newsletterTitle: \"blijft altijd op de hoogte van onze acties\",\r\n newsletterDescription: \"Schrijf je in voor de HEMA nieuwsbrief en mis nooit meer iets.\",\r\n newsletterSubscribe: \"meld je aan\",\r\n newsletterSignIn: \"schrijf je in\",\r\n newsletterSuccess: \"Gelukt! Je ontvangt vanaf nu onze nieuwsbrief.\",\r\n invalidEmail: \"Dit is geen geldig e-mailadres\",\r\n seeAll: \"bekijk alles\"\r\n}\r\n\r\nconst FR: typeof NL = {\r\n none: '-- Aucun --',\r\n optional: '(optionnel)',\r\n fileName: 'Nom de fichier',\r\n add: \"Ajouter\",\r\n headerYourInfo: 'vos coordonnées',\r\n headerYourQuestion: 'votre question',\r\n send: 'Expédier',\r\n makeYourChoice: \"faites votre choix\",\r\n fieldSalutationLabel: 'Titre',\r\n fieldSalutationMessage: 'Entrez votre titre',\r\n fieldNameLabel: 'Nom',\r\n fieldNameMessage: 'Entrez votre nom',\r\n fieldEmailAddressLabel: 'e-mailadres',\r\n fieldEmailMessage: 'Entrez votre e-mail',\r\n fieldTelephoneLabel: 'Téléphone',\r\n fieldTelephoneMessage: 'Entrez votre téléphone',\r\n fieldOrderNumberLabel: 'Numéro de commande',\r\n fieldOrderNumberMessage: 'Entrez votre numéro de commande',\r\n fieldPlatformLabel: 'Ma question concerne',\r\n fieldPlatformMessage: 'Ma question concerne',\r\n fieldSubjectLabel: 'Sujet',\r\n fieldSubjectMessage: 'Entrez votre sujet',\r\n fieldDescriptionLabel: 'Question, remarque ou suggestion',\r\n fieldDescriptionMessage: 'Entrez votre question, remarque ou suggestion',\r\n optionPlatform1: 'HEMA Photo',\r\n optionPlatform2: 'HEMA',\r\n optionSalutation1: 'Neutre',\r\n optionSalutation2: 'Monsieur',\r\n optionSalutation3: 'Madame',\r\n successTitle: 'votre message a été envoyé',\r\n successDescription: 'Nous essayons de répondre à votre message dès que possible.',\r\n newsletterTitle: \"restez toujours informé de nos promotions\",\r\n newsletterDescription: \"Inscrivez-vous à la newsletter HEMA et ne manquez plus rien.\",\r\n newsletterSubscribe: \"inscris-toi\",\r\n newsletterSignIn: \"inscrivez-vous\",\r\n newsletterSuccess: \"Réussi ! Vous recevrez désormais notre newsletter.\",\r\n invalidEmail: \"Ce n'est pas une adresse e-mail valide\",\r\n seeAll: \"voir tout\"\r\n}\r\n\r\n\r\n\r\nconst translations: Record = {\r\n NL,\r\n FR\r\n}\r\n\r\nexport const getTranslation = (key: T): typeof NL[T] => {\r\n if (window.culture === \"fr-BE\")\r\n return translations[\"FR\"][key]\r\n\r\n return translations[\"NL\"][key]\r\n}\r\n\r\nexport type LanguageKey = keyof typeof NL\r\n","import m from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { childOf } from \"oj-dom-utils\"\r\nimport { Zmdi } from \"oj-mithriljs-packages/dist/Zmdi/Zmdi\"\r\nimport type { Dropzone } from \"oj-mithriljs-packages/dist/FileUpload/FileUpload\"\r\nimport { cleanString, fileToB64, increment } from \"oj-utils\"\r\nimport { getTranslation } from \"../../translation\"\r\nimport { IInputField } from \"./inputFieldGroup\"\r\nimport { Svg } from \"../../svg\"\r\n\r\ninterface ISelectOption { value: string, label: string }\r\n\r\ninterface ISelect {\r\n value: string\r\n placeholder?: string\r\n options: (string | ISelectOption)[]\r\n onchange: (value: string) => void\r\n}\r\n\r\nclass Select extends MithrilTsxComponent {\r\n static increment = increment()\r\n id = Select.increment();\r\n open = false;\r\n\r\n view(v: m.Vnode) {\r\n let value = v.attrs.value || v.attrs.placeholder || v.attrs.options[0]\r\n const _value = v.attrs.options.find(x => value === (typeof x === \"string\" ? x : x.value))\r\n value = (_value && typeof _value !== \"string\") ? _value.label : value\r\n\r\n return
\r\n
this.open = !this.open}>\r\n {value}\r\n \r\n
\r\n {this.open &&
    \r\n {v.attrs.options.map((x) =>
  • {\r\n v.attrs.onchange(typeof x === \"string\" ? x : x.value)\r\n this.open = false\r\n }}>{typeof x === \"string\" ? x : x.label}
  • )}\r\n
}\r\n
\r\n }\r\n\r\n oncreate(v: m.VnodeDOM) {\r\n window.on(`click.select${this.id}`, (e) => {\r\n if (!this.open)\r\n return\r\n\r\n if (childOf(v.dom as HTMLElement, e.target))\r\n return\r\n\r\n this.open = false\r\n m.redraw()\r\n })\r\n }\r\n\r\n onremove() {\r\n window.off(`click.select${this.id}`)\r\n }\r\n}\r\n\r\nexport class InputField extends MithrilTsxComponent {\r\n view(v: m.Vnode) {\r\n let { type, errors, value, setVal, data, key, validate, readonly, id, onchange } = v.attrs\r\n readonly = readonly || validate?.readonly\r\n const shouldValidate = Array.isArray(errors) ? errors.length > 0 : false;\r\n let placeholder = null;\r\n\r\n if (data && Object.hasOwn(data, \"placeholder\")) {\r\n placeholder = data.placeholder.toLowerCase();\r\n }\r\n\r\n\r\n if (type === \"select\")\r\n return this.inputRef = dom as HTMLInputElement} />\r\n {!v.attrs.readonly &&\r\n \r\n }\r\n \r\n \r\n }\r\n}","var __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nimport m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { cleanString } from \"oj-utils\";\r\nimport { Dialog } from \"../Dialog/Dialog\";\r\nimport \"./Flyout.scss\";\r\nvar Flyout = (function (_super) {\r\n __extends(Flyout, _super);\r\n function Flyout() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n Flyout.prototype.view = function (v) {\r\n return m(Dialog, __assign({}, v.attrs, { className: cleanString(\"Flyout\", v.attrs.className) }), v.children);\r\n };\r\n return Flyout;\r\n}(MithrilTsxComponent));\r\nexport { Flyout };\r\n//# sourceMappingURL=Flyout.js.map","import m from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { IFormField } from \"oj-form-utils\"\r\nimport { InputField } from \"./inputField\"\r\nimport { cleanString } from \"oj-utils\"\r\nimport { getTranslation } from \"../../translation\"\r\nimport { Svg } from \"../../svg\"\r\n\r\nexport interface IInputField extends IFormField {\r\n setVal: (val: any, validate?: boolean) => void\r\n readonly?: boolean\r\n onsubmit?: (e: any) => void\r\n onchange?: (e: any) => void\r\n id?: string\r\n}\r\n\r\nexport enum Size {\r\n s = \"-small\",\r\n m = \"-medium\",\r\n l = \"-large\",\r\n xl = \"-extra-large\"\r\n}\r\n\r\nlet scrollToFirstErrorTimer: any = null\r\nexport const scrollToFirstError = (dom: Element) => {\r\n if (scrollToFirstErrorTimer)\r\n return\r\n\r\n dom.scrollIntoView({ behavior: \"smooth\", block: \"center\" })\r\n scrollToFirstErrorTimer = setTimeout(() => scrollToFirstErrorTimer = null, 100)\r\n}\r\n\r\nexport class FormGroup extends MithrilTsxComponent {\r\n isPasswordShown = false;\r\n\r\n view(v: m.Vnode) {\r\n const { label, errors, type, data, key } = v.attrs;\r\n\r\n if (v.attrs.validate?.ignored)\r\n return null\r\n\r\n return
0 && \"invalid -invalid\")}\r\n onkeydown={(e: any) => {\r\n if (e.code === \"Enter\" && v.attrs.onsubmit && e.target.nodeName !== \"TEXTAREA\") {\r\n v.attrs.onsubmit(e)\r\n m.redraw()\r\n }\r\n }}\r\n >\r\n {label &&
\r\n \r\n
}\r\n\r\n
\r\n \r\n {m.fragment({ key: key },\r\n [type === \"password\" && ]\r\n )}\r\n
\r\n\r\n {(errors ?? []).length > 0 &&\r\n
scrollToFirstError(dom)}>\r\n {(errors ?? []).map(x =>\r\n {x}\r\n )}\r\n
\r\n }\r\n
\r\n }\r\n\r\n checkIfGroup(type: string) {\r\n if (type === \"radio\")\r\n return \"group-horizontal\"\r\n if (type === \"checkbox-list\")\r\n return \"group-vertical\"\r\n if (type === \"password\")\r\n return \"form-password\"\r\n\r\n return \"\"\r\n }\r\n}","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { getTranslation } from \"./translations\"\r\nimport { Form } from \"oj-form-utils\"\r\nimport { InputField } from \"../../components/forms/inputField\"\r\nimport * as Logic from \"./discountLogic\"\r\nimport { Svg } from \"../../svg\"\r\nimport { IShoppingCart } from \"../shoppingCart\"\r\nimport { DiscountType, type IDiscountInfo } from \"./discountLogic\"\r\n\r\ninterface IDiscountCode {\r\n discountCode?: IDiscountInfo,\r\n onUpdate: (data: IShoppingCart) => void,\r\n}\r\n\r\nexport class CustomDiscountCode extends MithrilTsxComponent {\r\n errorMessage = null;\r\n form = new Form({\r\n discountCode: Form.field(\"\", getTranslation(\"customDiscountCode\"), {\r\n }, \"text\", {\r\n placeholder: getTranslation(\"addCodeHere\"),\r\n className: \"discountcode\"\r\n }),\r\n })\r\n\r\n code = [\r\n [\"discountCode\"],\r\n ]\r\n\r\n status: [string, Error?] = [\"default\"]\r\n\r\n oninit(v: Vnode) {\r\n if (v.attrs.discountCode) {\r\n this.status = [\"success\"]\r\n this.applyDiscountCode(v.attrs.discountCode?.code)\r\n }\r\n }\r\n\r\n view(v: Vnode) {\r\n const field = this.form.getFields().discountCode;\r\n const id = field.key;\r\n delete field.key;\r\n\r\n return this.status[0] === \"success\"\r\n ?
\r\n {m.trust(this.form.getLabel(\"discountCode\").toString())}\r\n
\r\n \r\n \r\n {v.attrs.discountCode?.type === DiscountType.Percentage ?\r\n `${v.attrs.discountCode.amount}% ${getTranslation(\"discount\")}` :\r\n `${v.attrs.discountCode.amount} ${getTranslation(\"discount\")}`}\r\n \r\n {getTranslation(\"discountCode\")} {this.form.getVal(\"discountCode\")}\r\n
\r\n \r\n
\r\n :
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {[\"discountCode\"].map(Form.fieldHelper(this.form, field => ))}\r\n
\r\n
\r\n {this.status[0] === \"busy\"\r\n ? \r\n : \r\n }\r\n
\r\n {this.errorMessage &&
{this.errorMessage}
}\r\n
\r\n
\r\n
\r\n }\r\n\r\n onbeforeupdate(v: m.Vnode, o: m.Vnode) {\r\n if (v.attrs.discountCode != o.attrs.discountCode) {\r\n if (!v.attrs.discountCode)\r\n this.status = [\"default\"]\r\n }\r\n\r\n }\r\n\r\n applyDiscountCode(discountCode: string) {\r\n this.form.setVal(\"discountCode\", discountCode)\r\n m.redraw()\r\n }\r\n\r\n async setDiscountCode(v: m.Vnode) {\r\n this.errorMessage = null;\r\n\r\n if (!this.form.validate()) {\r\n return\r\n }\r\n\r\n try {\r\n this.status = [\"busy\"]\r\n const json = this.form.toJSON()\r\n\r\n await Logic.apiSetDiscountCode(json.discountCode, false, (data: IShoppingCart) => {\r\n if (data.discountCode) {\r\n v.attrs.onUpdate(data)\r\n this.status = [\"success\"]\r\n } else {\r\n this.errorMessage = data[\"errorMessage\"] ?? getTranslation(\"discountCodeNotFound\")\r\n this.status = [\"default\"]\r\n }\r\n })\r\n }\r\n catch (err) {\r\n this.status = [\"failed\", err]\r\n }\r\n m.redraw()\r\n }\r\n\r\n async removeDiscountCode(v: m.Vnode) {\r\n if (!this.form.validate()) {\r\n return\r\n }\r\n\r\n try {\r\n this.status = [\"busy\"]\r\n\r\n await Logic.apiRemoveDiscountCode((data) => {\r\n v.attrs.onUpdate(data)\r\n this.status = [\"default\"]\r\n })\r\n }\r\n catch (err) {\r\n this.status = [\"failed\", err]\r\n }\r\n m.redraw()\r\n }\r\n}\r\n","import m from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { Form } from \"oj-form-utils\"\r\nimport { FormGroup } from \"./inputFieldGroup\"\r\n\r\nexport interface IFormRow {\r\n fields: string[]\r\n form: Form\r\n readonly?: boolean\r\n onsubmit?: (e: any) => void\r\n onchange?: (e: any) => void\r\n}\r\n\r\nexport class FormRow extends MithrilTsxComponent {\r\n view(v: m.Vnode) {\r\n const fields = v.attrs.fields.filter(x => !v.attrs.form.getIgnored(x))\r\n\r\n if (fields.length < 1)\r\n return null\r\n\r\n return
\r\n {fields.map(Form.fieldHelper(v.attrs.form, field =>\r\n \r\n ))}\r\n
\r\n }\r\n}\r\n\r\nexport interface IFormRows {\r\n rows: string[][]\r\n form: Form\r\n readonly?: boolean\r\n onsubmit?: (e: any) => void\r\n onchange?: (e: any) => void\r\n}\r\n\r\nexport class FormRows extends MithrilTsxComponent {\r\n view(v: m.Vnode) {\r\n return v.attrs.rows.map(row =>\r\n \r\n )\r\n }\r\n}","const NL = {\r\n login: \"inloggen\",\r\n register: \"registreren\",\r\n email: \"emailadres\",\r\n password: \"wachtwoord\",\r\n enterEmail: \"vul je email adres in\",\r\n enterPassword: \"vul je wachtwoord in\",\r\n fieldRequired: \"veld is verplicht\",\r\n newHere: \"nieuw hier?\",\r\n findPhotoProjectsBack: \"sla je fotoprojecten op en vind ze terug\",\r\n savedCredentialsFasterPayment: \"met je bewaarde gegevens bestel je sneller\",\r\n findBackOrders: \"vind je bestellingen gemakkelijk terug\",\r\n forgotPassword: \"wachtwoord vergeten?\",\r\n forgotPasswordText1: \"Vul hieronder je e-mailadres in. Dan sturen wij je een e-mail met een link zodat je een nieuw wachtwoord kunt instellen.\",\r\n forgotPasswordText2: \"LET OP: dit kan even duren, check ook je SPAM folder.\",\r\n requestPassword: \"wachtwoord aanvragen\",\r\n mailSent1: \"we hebben je een e-mail gestuurd\",\r\n mailSent2: \"Als het emailadres bekend is, is er een email verstuurd naar\",\r\n close: \"sluiten\",\r\n back: \"terug\",\r\n howToAddress: \"hoe wil je aangesproken worden?\",\r\n mr: \"de heer\",\r\n mrs: \"mevrouw\",\r\n neutral: \"neutraal\",\r\n firstName: \"voornaam\",\r\n middleName: \"tussenvoegsel\",\r\n lastName: \"achternaam\",\r\n companyName: \"bedrijfsnaam\",\r\n country: \"land\",\r\n postalCode: \"postcode\",\r\n houseNumber: \"huisnummer\",\r\n addition: \"toevoeging\",\r\n address: \"adres\",\r\n city: \"plaatsnaam\",\r\n phoneNumber: \"telefoonnummer\",\r\n invalidEmail: \"Dit is geen geldig e-mailadres\",\r\n invalidPostalCode: \"Dit is geen geldige postcode\",\r\n invalidPhone: \"Dit is geen geldig telefoonnummer\",\r\n passwordMinLength: \"Het wachtwoord moet minimaal 8 tekens lang zijn.\",\r\n passwordMaxLength: \"Het wachtwoord moet maximaal 20 tekens lang zijn.\",\r\n passwordsDoNotMatch: \"wachtwoorden komen niet overeen\",\r\n confirmPassword: \"wachtwoord bevestigen\",\r\n confirmNewPassword: \"bevestig nieuw wachtwoord\",\r\n newPassword: \"nieuw wachtwoord\",\r\n registerTitle: \"registreren\",\r\n enterDetails: \"Voer hieronder je gegevens in.\",\r\n passwordHint: \"Vul een sterk wachtwoord in met cijfers, hoofd- en kleine letters en leestekens. Gebruik minstens 8 en maximaal 20 tekens.\",\r\n netherlands: \"Nederland\",\r\n belgium: \"België\",\r\n changeDetails: \"wijzig gegevens\",\r\n saveChanges: \"wijzigingen opslaan\",\r\n cancel: \"annuleren\",\r\n changeShippingAddress: \"wijzig bezorgadres\",\r\n myDataTitle: \"mijn gegevens\",\r\n removeAccount: \"verwijder je account\",\r\n changePassword: \"wachtwoord wijzigen\",\r\n};\r\n\r\nconst FR: typeof NL = {\r\n login: \"se connecter\",\r\n register: \"s'inscrire\",\r\n email: \"adresse e-mail\",\r\n password: \"mot de passe\",\r\n enterEmail: \"entrez votre adresse e-mail\",\r\n enterPassword: \"entrez votre mot de passe\",\r\n fieldRequired: \"champ requis\",\r\n newHere: \"nouveau ici?\",\r\n findPhotoProjectsBack: \"enregistrez vos projets photo et retrouvez-les\",\r\n savedCredentialsFasterPayment: \"avec vos données sauvegardées, commandez plus rapidement\",\r\n findBackOrders: \"retrouvez facilement vos commandes\",\r\n forgotPassword: \"mot de passe oublié?\",\r\n forgotPasswordText1: \"Entrez votre adresse e-mail ci-dessous. Nous vous enverrons un e-mail avec un lien pour définir un nouveau mot de passe.\",\r\n forgotPasswordText2: \"REMARQUE: cela peut prendre un moment, vérifiez également votre dossier SPAM.\",\r\n requestPassword: \"demander un mot de passe\",\r\n mailSent1: \"nous vous avons envoyé un e-mail\",\r\n mailSent2: \"Si l'adresse e-mail est connue, un e-mail a été envoyé à\",\r\n close: \"fermer\",\r\n back: \"retour\",\r\n howToAddress: \"comment souhaitez-vous être adressé(e) ?\",\r\n mr: \"monsieur\",\r\n mrs: \"madame\",\r\n neutral: \"neutre\",\r\n firstName: \"prénom\",\r\n middleName: \"particule\",\r\n lastName: \"nom\",\r\n companyName: \"nom de l'entreprise\",\r\n country: \"pays\",\r\n postalCode: \"code postal\",\r\n houseNumber: \"numéro\",\r\n addition: \"complément\",\r\n address: \"adresse\",\r\n city: \"ville\",\r\n phoneNumber: \"numéro de téléphone\",\r\n invalidEmail: \"Ce n'est pas une adresse e-mail valide\",\r\n invalidPostalCode: \"Ce n'est pas un code postal valide\",\r\n invalidPhone: \"Ce n'est pas un numéro de téléphone valide\",\r\n passwordMinLength: \"Le mot de passe doit contenir au moins 8 caractères.\",\r\n passwordMaxLength: \"Le mot de passe ne doit pas dépasser 20 caractères.\",\r\n passwordsDoNotMatch: \"les mots de passe ne correspondent pas\",\r\n confirmPassword: \"confirmer le mot de passe\",\r\n confirmNewPassword: \"confirmer le nouveau mot de passe\",\r\n newPassword: \"nouveau mot de passe\",\r\n registerTitle: \"s'inscrire\",\r\n enterDetails: \"Veuillez saisir vos coordonnées ci-dessous.\",\r\n passwordHint: \"Entrez un mot de passe fort avec des chiffres, des majuscules, des minuscules et des signes de ponctuation. Utilisez entre 8 et 20 caractères.\",\r\n netherlands: \"Pays-Bas\",\r\n belgium: \"Belgique\",\r\n changeDetails: \"modifier les coordonnées\",\r\n saveChanges: \"enregistrer les modifications\",\r\n cancel: \"annuler\",\r\n changeShippingAddress: \"modifier l'adresse de livraison\",\r\n myDataTitle: \"mes données\",\r\n removeAccount: \"supprimer ton compte\",\r\n changePassword: \"modifier le mot de passe\",\r\n};\r\n\r\nconst translations: Record = {\r\n NL,\r\n FR\r\n};\r\n\r\nexport const getTranslation = (key: T): typeof NL[T] => {\r\n if (window.culture === \"fr-BE\")\r\n return translations[\"FR\"][key]\r\n\r\n return translations[\"NL\"][key]\r\n}\r\n\r\nexport type LanguageKey = keyof typeof NL","import m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { Flyout } from \"oj-mithriljs-packages/dist/Flyout/Flyout\";\r\nimport { Svg } from \"../../svg\";\r\nimport { Form } from \"oj-form-utils\";\r\nimport { FormRows } from \"../../components/forms/formRow\";\r\nimport { postForm } from \"oj-ajax\";\r\nimport { getTranslation } from \"./translations\";\r\nimport { hideScrollbars } from \"../../utils\";\r\n\r\ninterface IForgotPasswordFlyout {\r\n isFlyout: boolean\r\n}\r\n\r\nexport class ForgotPasswordFlyout extends MithrilTsxComponent {\r\n open: boolean = false;\r\n mailSentTo: string;\r\n\r\n form = new Form({\r\n emailAddressForgotPassword: Form.field(\"\", getTranslation(\"email\"), { required: getTranslation(\"fieldRequired\") }, \"text\", {\r\n placeholder: getTranslation(\"enterEmail\"),\r\n })\r\n })\r\n\r\n view({ attrs: { isFlyout } }: { attrs: IForgotPasswordFlyout }) {\r\n return (\r\n
\r\n {\r\n this.open = !this.open\r\n if (!isFlyout)\r\n hideScrollbars(true)\r\n }}>\r\n {getTranslation(\"forgotPassword\")}\r\n \r\n hideScrollbars(false)}\r\n onopen={open => this.open = open}\r\n dismiss\r\n animate\r\n >\r\n
\r\n \r\n
\r\n
\r\n {!this.mailSentTo ?\r\n
\r\n {getTranslation(\"forgotPassword\")}\r\n

{getTranslation(\"forgotPasswordText1\")}

\r\n

{getTranslation(\"forgotPasswordText2\")}

\r\n
{\r\n e.preventDefault();\r\n\r\n if (!this.form.validate())\r\n return;\r\n\r\n const data = this.form.toJSON();\r\n\r\n await postForm(`/${window.culture}/CustomerService/ForgotPassword/`, e.target)\r\n .then(() => {\r\n this.mailSentTo = data.emailAddressForgotPassword;\r\n m.redraw();\r\n })\r\n }} method=\"post\">\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
:\r\n
\r\n

{getTranslation(\"mailSent1\")}

\r\n

{getTranslation(\"mailSent2\")} {this.mailSentTo}.

\r\n \r\n
}\r\n
\r\n \r\n
\r\n );\r\n }\r\n}","import m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { Form } from \"oj-form-utils\";\r\nimport { FormRows } from \"../../components/forms/formRow\";\r\nimport { ForgotPasswordFlyout } from \"./forgotPasswordFlyout\";\r\nimport { postForm } from \"oj-ajax\";\r\nimport { getTranslation } from \"./translations\";\r\nimport { cleanString } from \"oj-utils\";\r\n\r\ninterface ILoginForm {\r\n token: string\r\n isFlyout: boolean\r\n loginUrl: string\r\n skipRedirect?: boolean\r\n}\r\n\r\nexport class LoginForm extends MithrilTsxComponent {\r\n form\r\n isLoading = false\r\n\r\n oninit({ attrs: { token } }: { attrs: ILoginForm }) {\r\n this.form = new Form({\r\n emailaddress: Form.field(\"\", getTranslation(\"email\"), { required: getTranslation(\"fieldRequired\") }, \"text\", {\r\n placeholder: getTranslation(\"enterEmail\"),\r\n }),\r\n password: Form.field(\"\", getTranslation(\"password\"), { required: getTranslation(\"fieldRequired\") }, \"password\", {\r\n placeholder: getTranslation(\"enterPassword\"),\r\n className: \"form-password\"\r\n }),\r\n \"__RequestVerificationToken\": Form.field(token, null, {}, \"hidden\", {})\r\n })\r\n }\r\n\r\n view({ attrs: { isFlyout, loginUrl, skipRedirect } }: { attrs: ILoginForm }) {\r\n return (\r\n
\r\n {getTranslation(\"login\")}\r\n
{\r\n e.preventDefault();\r\n\r\n if (!this.form.validate())\r\n return;\r\n\r\n this.isLoading = true\r\n\r\n await postForm(loginUrl, e.target)\r\n .then(res => JSON.parse(res))\r\n .then(res => {\r\n if (res.redirect && !skipRedirect)\r\n location.href = res.redirect\r\n else if (!res.errorText && skipRedirect) {\r\n location.reload()\r\n } else {\r\n this.form.getFields().emailaddress.errors.push(\"\")\r\n this.form.getFields().password.errors.push(res.errorText)\r\n m.redraw()\r\n }\r\n })\r\n .finally(() => this.isLoading = false)\r\n }} method=\"post\">\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n );\r\n }\r\n}","import m from \"mithril\";\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\";\r\nimport { Form } from \"oj-form-utils\";\r\nimport { FormRows } from \"../../components/forms/formRow\";\r\nimport { Svg } from \"../../svg\";\r\nimport { getTranslation } from \"./translations\";\r\nimport { postForm } from \"oj-ajax\";\r\nimport { cleanString } from \"oj-utils\";\r\n\r\ninterface ILoginRegisterForm {\r\n registerUrl: string\r\n redirectUrl?: string\r\n}\r\n\r\n\r\nexport class LoginRegisterForm extends MithrilTsxComponent {\r\n isLoading = false\r\n\r\n form = new Form({\r\n emailAddressRegister: Form.field(\"\", getTranslation(\"email\"), { required: getTranslation(\"fieldRequired\") }, \"text\", {\r\n placeholder: getTranslation(\"enterEmail\"),\r\n })\r\n })\r\n oninit(v: m.Vnode) {\r\n\r\n }\r\n\r\n view({ attrs: { registerUrl, redirectUrl } }: { attrs: ILoginRegisterForm }) {\r\n return (\r\n\r\n
\r\n {getTranslation(\"newHere\")}\r\n
    \r\n
  • \r\n \r\n {getTranslation(\"findPhotoProjectsBack\")}\r\n
  • \r\n
  • \r\n \r\n {getTranslation(\"savedCredentialsFasterPayment\")}\r\n
  • \r\n
  • \r\n \r\n {getTranslation(\"findBackOrders\")}\r\n
  • \r\n
\r\n
{\r\n e.preventDefault();\r\n\r\n if (!this.form.validate())\r\n return;\r\n\r\n this.isLoading = true\r\n\r\n await postForm(registerUrl, e.target)\r\n .then(res => JSON.parse(res))\r\n .then(res => {\r\n if (res.exists) {\r\n this.form.getFields().emailAddressRegister.errors.push(res.errorMessage)\r\n m.redraw()\r\n } else\r\n location.href = !redirectUrl ? res.redirect : `${res.redirect}®isterRedirectUrl=${redirectUrl}`\r\n })\r\n .finally(() => this.isLoading = false)\r\n\r\n\r\n }} method=\"post\">\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n );\r\n }\r\n}","import m from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { hideScrollbars, mounter } from \"../../utils\"\r\n\r\nimport { Flyout } from \"oj-mithriljs-packages/dist/Flyout/Flyout\"\r\nimport { Svg } from \"../../svg\"\r\nimport { LoginForm } from \"./loginForm\"\r\nimport { LoginRegisterForm } from \"./loginRegisterForm\"\r\nimport { cleanString } from \"oj-utils\"\r\n\r\nexport interface ILoginFlyout {\r\n btnText: string;\r\n token: string;\r\n loginUrl: string;\r\n registerUrl: string;\r\n className?: string;\r\n skipRedirect?: boolean;\r\n registerRedirectUrl?: string;\r\n}\r\n\r\n\r\nexport class LoginFlyout extends MithrilTsxComponent {\r\n open: boolean = false;\r\n dom: Element\r\n\r\n view(v: m.Vnode) {\r\n return [\r\n ,\r\n hideScrollbars(false)}\r\n onopen={open => this.open = open}\r\n dismiss\r\n animate\r\n >\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n ]\r\n }\r\n\r\n oncreate(v: m.VnodeDOM<{}>) {\r\n this.dom = v.dom\r\n }\r\n}\r\n\r\nmounter(\"[data-m-login-flyout]\", (r, d: ILoginFlyout) => {\r\n m.mount(r, {\r\n oncreate: dom => r.replaceWith(dom.dom),\r\n view: v => \r\n })\r\n})","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { getTranslation } from \"./translations\"\r\nimport { CustomDiscountCode } from \"./customDiscountCode\"\r\nimport { Svg } from \"../../svg\"\r\nimport * as Logic from \"./discountLogic\"\r\nimport { cleanString } from \"oj-utils\"\r\nimport { LoginFlyout } from \"../Login/loginFlyout\"\r\nimport { type IDiscountInfo } from \"./discountLogic\"\r\n\r\ninterface IDiscountOptions {\r\n discountCode?: IDiscountInfo\r\n loginUrl: string\r\n registerUrl: string\r\n token: string\r\n isLoggedOn: boolean\r\n shoppingCartUrl: string\r\n onUpdate: (data) => void\r\n}\r\n\r\nexport class DiscountOptions extends MithrilTsxComponent {\r\n isLoading = true\r\n\r\n async oninit(v: Vnode) {\r\n\r\n if (v.attrs.discountCode)\r\n Logic.setDiscountCode(v.attrs.discountCode)\r\n\r\n if (v.attrs.isLoggedOn) {\r\n await Logic.apiGetDiscountInfo()\r\n .then(() => this.isLoading = false)\r\n }\r\n }\r\n\r\n view(v: Vnode) {\r\n return
\r\n
\r\n {getTranslation(\"addDiscount\")}\r\n

{getTranslation(\"maxDiscountCodes\")}

\r\n
\r\n
\r\n v.attrs.onUpdate(data)} />\r\n {(v.attrs.isLoggedOn && this.isLoading) &&
\r\n

{getTranslation(\"loadingVouchers\")}

\r\n
}\r\n {Logic.getError() &&

{Logic.getError()}

}\r\n {(v.attrs.isLoggedOn && !this.isLoading) && [\r\n Logic.getVouchers().length > 0 ? Logic.getVouchers().map(x => )\r\n :

{getTranslation(\"noVouchers\")}

\r\n ]\r\n }\r\n
\r\n {!v.attrs.isLoggedOn &&
\r\n {getTranslation(\"useVouchersTitle\")}\r\n

{getTranslation(\"useVouchersDescription\")}

\r\n \r\n
}\r\n
\r\n }\r\n\r\n\r\n async onbeforeupdate(v: m.Vnode, o: m.Vnode) {\r\n if (v.attrs.discountCode != o.attrs.discountCode) {\r\n if (v.attrs.isLoggedOn)\r\n await Logic.apiGetDiscountInfo()\r\n }\r\n }\r\n}","import m, { Vnode } from \"mithril\"\r\nimport { MithrilTsxComponent } from \"mithril-tsx-component\"\r\nimport { mounter } from \"../utils\"\r\nimport * as Logic from \"./shoppingCart/logic\"\r\nimport { Cart } from \"./shoppingCart/cart\"\r\nimport { getTranslation } from \"./shoppingCart/translations\"\r\nimport { DeliveryOptions } from \"./shoppingCart/deliveryOption\"\r\nimport { PriceOverview } from \"./shoppingCart/priceOverview\"\r\nimport { Svg } from \"../svg\"\r\nimport { DiscountOptions } from \"./shoppingCart/discountOptions\"\r\nimport { showConfirmDialog } from \"./confirmDialogFunction\"\r\nimport { IDiscountInfo } from \"./shoppingCart/discountLogic\"\r\n\r\nexport interface IShoppingCart {\r\n url: string,\r\n shoppingCartLines: Logic.ICartItem[]\r\n orderDeliveryOptions: IOptionsDelivery[]\r\n subPrice: number,\r\n processingPrice: number,\r\n shippingPrice: number,\r\n discountPrice: number,\r\n totalPrice: number,\r\n loyaltyHemaPoints?: number\r\n discountCode?: IDiscountInfo,\r\n infoBlocks: IInfoBlocks[],\r\n productsFailedMessage?: string,\r\n loginUrl: string,\r\n registerUrl: string,\r\n loginToken: string\r\n isLoggedOn: boolean\r\n shoppingCartUrl: string\r\n}\r\n\r\nexport interface IOptionsDelivery {\r\n title: string,\r\n orderDeliveryMethod: number,\r\n description: string,\r\n deliveryPrice: number,\r\n isEnabled: boolean,\r\n selected: boolean\r\n}\r\n\r\nexport interface IInfoBlocks {\r\n title: string,\r\n description: string\r\n}\r\n\r\nclass ShoppingCart extends MithrilTsxComponent {\r\n oninit(v: Vnode) {\r\n Logic.setDeliveryOptions(v.attrs.orderDeliveryOptions)\r\n Logic.setCartLines(v.attrs.shoppingCartLines)\r\n Logic.setPriceOverview({\r\n subPrice: v.attrs.subPrice,\r\n processingPrice: v.attrs.processingPrice,\r\n shippingPrice: v.attrs.shippingPrice,\r\n discountPrice: v.attrs.discountPrice,\r\n totalPrice: v.attrs.totalPrice,\r\n loyaltyHemaPoints: v.attrs.loyaltyHemaPoints\r\n })\r\n\r\n if (v.attrs.productsFailedMessage && !sessionStorage.getItem(\"productsFailedMessage\"))\r\n showConfirmDialog(true, getTranslation(\"somethingWentWrong\"), getTranslation(\"proceed\"), v.attrs.productsFailedMessage, () => {\r\n sessionStorage.setItem(\"productsFailedMessage\", \"true\");\r\n })\r\n }\r\n\r\n view(v: Vnode) {\r\n return Logic.getCartLinesSize() > 0\r\n ?
\r\n
\r\n
\r\n

{getTranslation(\"shoppingCart\")}

\r\n
\r\n \r\n Logic.updateCart(data)} loginUrl={v.attrs.loginUrl} registerUrl={v.attrs.registerUrl} token={v.attrs.loginToken} discountCode={v.attrs.discountCode} isLoggedOn={v.attrs.isLoggedOn} shoppingCartUrl={v.attrs.shoppingCartUrl} />\r\n
\r\n
\r\n Logic.updateDeliveryMethod(index)} />\r\n \r\n \r\n
    \r\n {window.culture === \"nl-nl\" &&
  • }\r\n
  • \r\n
  • \r\n {window.culture != \"nl-nl\" &&
  • }\r\n {window.culture === \"fr-BE\"\r\n ?
  • \r\n :
  • \r\n }\r\n
\r\n {v.attrs.infoBlocks.map(x =>
\r\n
\r\n {x.title}\r\n
\r\n
\r\n {m.trust(x.description)}\r\n
\r\n
)}\r\n\r\n
\r\n
\r\n :
\r\n {getTranslation(\"cartEmpty\")}\r\n {getTranslation(\"cartEmpty\")}\r\n
\r\n }\r\n}\r\n\r\nmounter(`[data-m-shopping-cart]`, (r, d) => {\r\n\r\n // d.shoppingCartLines[0].disableDeliveryByMail = true\r\n // d.shoppingCartLines[0].disablePickUpInStore = false\r\n\r\n\r\n m.mount(r, {\r\n view: v => \r\n })\r\n})","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames not based on template\n\tif (chunkId === \"node_modules_oj-mithriljs-packages_dist_FileUpload_FileUpload_js\") return \"oj-mithriljs-packages.dist.FileUpload.FileUpload.js.dist.js\";\n\t// return url for filenames based on template\n\treturn undefined;\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames not based on template\n\tif (chunkId === \"node_modules_oj-mithriljs-packages_dist_FileUpload_FileUpload_js\") return \"oj-mithriljs-packages.dist.FileUpload.FileUpload.js.dist.css\";\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/frontendWebpack/dist/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = (chunkId, fullhref, oldTag, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t\"confirmDialogFunction\": 0,\n\t\"shoppingCart\": 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"node_modules_oj-mithriljs-packages_dist_FileUpload_FileUpload_js\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"confirmDialogFunction\": 0,\n\t\"shoppingCart\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkhema_foto_shopping\"] = self[\"webpackChunkhema_foto_shopping\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendor\"], () => (__webpack_require__(9056)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","showConfirmDialog","open","title","confirm","description","onclose","dismiss","animate","content","close","className","onclick","class","src","type","extendStatics","__extends","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","this","constructor","create","Zmdi","_super","apply","arguments","view","v","undefined","attrs","icon","cleanString","svg","oninit","load","onbeforeupdate","o","onupdate","loaded","onload","dom","setAttribute","fetch","then","x","text","__assign","assign","t","s","i","n","length","inc","increment","Dialog","_this","id","setFocus","exec","onopen","oncreate","e","onbeforeremove","setOpen","ondismiss","stopPropagation","_a","querySelector","focus","children","portal","document","body","window","on","concat","key","onremove","reset","off","prevElement","activeElement","setTimeout","dialog","data","imm","resolve","promise","DeliveryMethod","mounter","selector","cb","forEach","inputs","from","querySelectorAll","map","JSON","parse","value","err","HTMLInputElement","hideScrollbars","hide","classList","toggle","formatPrice","price","currency","formatedPrice","Intl","NumberFormat","culture","style","format","replace","trim","formatHtmlPrice","priceParts","minimumFractionDigits","toString","split","getBaseUrl","debounce","form","postalCode","getFields","houseNumber","get","res","street","city","validate","readonly","urlObj","URL","location","href","languageMatch","pathname","match","protocol","host","state","cartLines","deliveryOptions","priceOverview","url","setCartLines","convertCartLines","lines","lx","descriptionFirstLine","descriptionSecondLine","imageUrl","groupId","g","find","y","items","push","groupTitle","setDeliveryOptions","options","isEnabled","selected","setPriceOverview","PriceOverview","getDeliveryOptions","findCartItem","removeItem","item","apiRemoveItem","ojtag","tagmanagerData","updateCart","shoppingCartLines","subPrice","processingPrice","shippingPrice","discountPrice","totalPrice","loyaltyHemaPoints","orderDeliveryOptions","emit","reduce","acc","quantity","apiUpdateQuantity","method","headers","stringify","json","status","Error","prevQuantity","console","error","apiUpdateDeliveryMethod","index","deliveryMethod","trash","onChange","disabled","min","max","oninput","target","onchange","clampedValue","clamp","translations","NL","shoppingCart","delivery","edit","free","pickUpInStore","homeDelivery","receipt","totalPriceItems","processingFees","deliveryFees","totalAmount","continue","discount","discountCode","discountCodeNotFound","cartEmpty","addDiscount","maxDiscountCodes","customDiscountCode","add","addCodeHere","proceed","somethingWentWrong","useVouchersTitle","useVouchersDescription","noVouchers","login","savedPoints","points","withinTheNetherlands","withinBelgium","expires","loadingVouchers","FR","getTranslation","isMobile","memoize","width","mediaQueryList","matchMedia","matches","event","redrawOnBreakpoint","image","backUrl","actionPrice","isQuantityMutable","height","loading","srcset","alt","InputNumber","option","rel","GroupItem","CartItem","DiscountType","name","checked","orderDeliveryMethod","getLanguageTranslation","deliveryPrice","hideTitle","none","optional","fileName","headerYourInfo","headerYourQuestion","send","makeYourChoice","fieldSalutationLabel","fieldSalutationMessage","fieldNameLabel","fieldNameMessage","fieldEmailAddressLabel","fieldEmailMessage","fieldTelephoneLabel","fieldTelephoneMessage","fieldOrderNumberLabel","fieldOrderNumberMessage","fieldPlatformLabel","fieldPlatformMessage","fieldSubjectLabel","fieldSubjectMessage","fieldDescriptionLabel","fieldDescriptionMessage","optionPlatform1","optionPlatform2","optionSalutation1","optionSalutation2","optionSalutation3","successTitle","successDescription","newsletterTitle","newsletterDescription","newsletterSubscribe","newsletterSignIn","newsletterSuccess","invalidEmail","seeAll","Select","placeholder","_value","label","errors","setVal","shouldValidate","isArray","hasOwn","toLowerCase","includes","filter","for","indexOf","List","ImageUpload","accept","FileUpload","autocomplete","loadDropzone","dropzone","prompt","join","file","convertFile","startsWith","Dropzone","fileToB64","substr","slice","inputRef","val","Size","vouchers","apiGetDiscountInfo","updateDiscountCode","getVouchers","getDiscountCode","setDiscountCode","isSelected","code","getError","apiSetDiscountCode","isLoyaltyVoucher","apiRemoveDiscountCode","errorMessage","Form","field","applyDiscountCode","getLabel","Percentage","amount","getVal","removeDiscountCode","fieldHelper","InputField","toJSON","onUpdate","Flyout","scrollToFirstErrorTimer","isPasswordShown","ignored","size","onkeydown","onsubmit","nodeName","checkIfGroup","preventDefault","scrollIntoView","behavior","block","fields","getIgnored","FormGroup","rows","row","FormRow","register","email","password","enterEmail","enterPassword","fieldRequired","newHere","findPhotoProjectsBack","savedCredentialsFasterPayment","findBackOrders","forgotPassword","forgotPasswordText1","forgotPasswordText2","requestPassword","mailSent1","mailSent2","back","howToAddress","mr","mrs","neutral","firstName","middleName","lastName","companyName","country","addition","address","phoneNumber","invalidPostalCode","invalidPhone","passwordMinLength","passwordMaxLength","passwordsDoNotMatch","confirmPassword","confirmNewPassword","newPassword","registerTitle","enterDetails","passwordHint","netherlands","belgium","changeDetails","saveChanges","cancel","changeShippingAddress","myDataTitle","removeAccount","changePassword","emailAddressForgotPassword","required","isFlyout","mailSentTo","postForm","FormRows","isLoading","token","emailaddress","loginUrl","skipRedirect","redirect","errorText","reload","finally","ForgotPasswordFlyout","emailAddressRegister","registerUrl","redirectUrl","exists","btnText","LoginForm","LoginRegisterForm","registerRedirectUrl","r","replaceWith","LoginFlyout","isLoggedOn","CustomDiscountCode","isVoucher","expirationDate","shoppingCartUrl","productsFailedMessage","sessionStorage","getItem","setItem","Cart","DiscountOptions","loginToken","DeliveryOptions","infoBlocks","ShoppingCart","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","getter","__esModule","a","definition","defineProperty","enumerable","f","chunkId","Promise","all","promises","u","miniCssF","globalThis","Function","obj","prop","l","done","script","needAttach","scripts","getElementsByTagName","getAttribute","createElement","charset","timeout","nc","onScriptComplete","prev","onerror","clearTimeout","doneFns","parentNode","removeChild","bind","head","appendChild","Symbol","toStringTag","installedCssChunks","miniCss","reject","fullhref","existingLinkTags","dataHref","tag","existingStyleTags","findStylesheet","oldTag","linkTag","nonce","errorType","realHref","request","createStylesheet","loadStylesheet","installedChunks","installedChunkData","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}