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F,iBAAiB,SAAS,SAACC,GACtCA,EAAE6G,iBACF7G,EAAE8G,kBAEF,IAAME,EAAc7B,EAAgBI,cAAc,4BAC5C0B,EAAsBD,EAAYzB,cAAc,2BAChD2B,EAAWF,EAAYG,mBAE7B,IAAKF,EAAoBL,gBAGrB,OAFAK,EAAoBG,SAEb,EAGPF,EAASrB,UAAUwB,SAAS,eAC5BL,EAAYnB,UAAUC,IAAI,UAC1BoB,EAASrB,UAAUS,OAAO,UAC1BY,EAAS3B,cAAc,SAAS6B,UAEhCzC,EAAoBe,GACpBP,EAAgBmC,cAAc1C,GAEtC,IAEAU,EAAgBiC,YAAY7B,EAChC,EAtFA,IAAAjF,EAAAG,MAAAL,EAAAE,EAAAI,KAAAC,MAAAkE,GAsFC,OAAAhE,GAAAP,EAAAT,EAAAgB,EAAA,SAAAP,EAAAQ,GAAA,KAEwEuG,EAFxEC,EAAA/G,EAEyBqE,SAASpE,iBAAiB,uBAAqB,IAAzE,IAAA8G,EAAA7G,MAAA4G,EAAAC,EAAA5G,KAAAC,MAA2E,KAAhET,EAAWmH,EAAA5H,OAClBQ,EAAAA,EAAAA,GAAWC,EAAa,gDAC5B,CAEA,OAAAW,GAAAyG,EAAAzH,EAAAgB,EAAA,SAAAyG,EAAAxG,GAAA,CACA,IAAMyG,EAAWrI,OAAOsI,WAAW,sBAGnC5C,SAASQ,cAAc,uBAAuBxF,iBAAiB,SAAS,SAAC6H,GACrEF,EAASG,SAAWD,EAAMf,gBAC9B,IAEA,IAAMiB,EAAgB,SAACF,GACnB,IAAMG,EAAWhD,SAASQ,cAAc,aACxCqC,EAAMC,QAAUE,EAASC,gBAAgB,QAAUD,EAASE,aAAa,OAAQ,GACrF,EAEAP,EAAS3H,iBAAiB,SAAU+H,GACpCA,EAAcJ,E","sources":["webpack:///./node_modules/core-js/internals/array-for-each.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack:///./node_modules/core-js/internals/date-to-primitive.js","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./node_modules/core-js/modules/es.symbol.to-primitive.js","webpack:///./assets/default/js/form/form-protection.js","webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/modules/es.date.to-primitive.js","webpack:///./assets/default/js/stock/offer.js"],"sourcesContent":["'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\n\nvar $TypeError = TypeError;\n\n// `Date.prototype[@@toPrimitive](hint)` method implementation\n// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive\nmodule.exports = function (hint) {\n anObject(this);\n if (hint === 'string' || hint === 'default') hint = 'string';\n else if (hint !== 'number') throw new $TypeError('Incorrect hint');\n return ordinaryToPrimitive(this, hint);\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n","export class Form {\n #isDirty = false;\n\n constructor(\n w = window,\n confirmMessage = 'Het lijkt er op dat je iets aan het bewerken bent. Als je weggaat zonder op te slaan, gaan je wijzigingen verloren.',\n ) {\n this.window = w;\n this.confirmMessage = confirmMessage;\n this.bindUnload();\n }\n\n clean() {\n return !this.#isDirty;\n }\n\n start() {\n this.#isDirty = true;\n }\n\n finish() {\n this.#isDirty = false;\n }\n\n confirmationMessage() {\n return this.confirmMessage;\n }\n\n bindUnload() {\n this.window.addEventListener('beforeunload', (e) => {\n if (this.clean()) {\n return undefined;\n }\n\n e.returnValue = this.confirmationMessage();\n return e.returnValue;\n });\n }\n}\nexport default function bindToForm(formElement, message) {\n const form = new Form(window, message);\n\n for (const element of formElement.querySelectorAll('input,select,textarea')) {\n element.addEventListener('change', () => {\n form.start();\n });\n }\n\n formElement.addEventListener('change', () => {\n form.start();\n });\n\n formElement.addEventListener('submit', () => {\n form.finish();\n });\n\n return form;\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar globalThis = require('../internals/global-this');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = globalThis[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = globalThis.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n // fast equal of /^0b[01]+$/i\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0o[0-7]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n default:\n return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar dateToPrimitive = require('../internals/date-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar DatePrototype = Date.prototype;\n\n// `Date.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive\nif (!hasOwn(DatePrototype, TO_PRIMITIVE)) {\n defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);\n}\n","import '../../styles/stock/offer.css';\nimport bindToForm from '../form/form-protection';\nimport '../../image/geld-lenen-kost-geld.svg';\n\nfunction disableSubmitButton(submitButton) {\n submitButton.disabled = true;\n submitButton.innerHTML = 'Bezig met verzenden...';\n}\n\nfor (const wizardContainer of document.querySelectorAll('.enable-wizard')) {\n if (wizardContainer.nodeName !== 'FORM') {\n throw new Error('Wizard container must be a form element');\n }\n\n const buttonContainer = wizardContainer.querySelector('.submit-button-container');\n const submitButton = buttonContainer.querySelector('button[type=submit]');\n\n wizardContainer.addEventListener('submit', () => {\n disableSubmitButton(submitButton);\n\n return true;\n });\n\n // Check if the wizard is enabled\n if (typeof wizardContainer.dataset.wizard !== 'undefined' && wizardContainer.dataset.wizard !== 'true') {\n continue;\n }\n\n const fakeNextButton = document.createElement('button');\n fakeNextButton.innerText = 'Volgende';\n\n fakeNextButton.classList.add(...submitButton.classList);\n submitButton.classList.add('hidden');\n\n const steps = wizardContainer.querySelectorAll('.form-group');\n const errorParentElement = wizardContainer.querySelector('.form-field.error')?.closest('.form-group');\n\n steps.forEach((el, i) => {\n if (errorParentElement) {\n el.classList.add('hidden');\n\n if (errorParentElement === el) {\n el.classList.remove('hidden');\n }\n } else {\n i > 0 && el.classList.add('hidden');\n }\n\n const inputElements = el.querySelectorAll('input, textarea, select');\n\n if (inputElements.length > 1) {\n return;\n }\n\n for (const elem of inputElements) {\n elem.addEventListener('keydown', (e) => {\n if (!elem.checkValidity()) {\n return;\n }\n\n if (e.key === 'Enter') {\n e.preventDefault();\n e.stopPropagation();\n\n fakeNextButton.click();\n }\n });\n }\n });\n\n fakeNextButton.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n\n const currentStep = wizardContainer.querySelector('.form-group:not(.hidden)');\n const currentInputElement = currentStep.querySelector('input, textarea, select');\n const nextStep = currentStep.nextElementSibling;\n\n if (!currentInputElement.checkValidity()) {\n currentInputElement.focus();\n\n return false;\n }\n\n if (nextStep.classList.contains('form-group')) {\n currentStep.classList.add('hidden');\n nextStep.classList.remove('hidden');\n nextStep.querySelector('input').focus();\n } else {\n disableSubmitButton(fakeNextButton);\n wizardContainer.requestSubmit(submitButton);\n }\n });\n\n buttonContainer.appendChild(fakeNextButton);\n}\n\nfor (const formElement of document.querySelectorAll('form[data-protect]')) {\n bindToForm(formElement, 'Weet je zeker dat je de pagina wilt verlaten?');\n}\n\n// \nconst listener = window.matchMedia('(max-width: 768px)');\n\n// Disable the click event of the summary element when the screen is bigger than 640px\ndocument.querySelector('#overview > summary').addEventListener('click', (event) => {\n listener.matches || event.preventDefault();\n});\n\nconst openSummaryFn = (event) => {\n const overview = document.querySelector('#overview');\n event.matches ? overview.removeAttribute('open') : overview.setAttribute('open', '');\n};\n\nlistener.addEventListener('change', openSummaryFn);\nopenSummaryFn(listener);\n// "],"names":["$forEach","STRICT_METHOD","arrayMethodIsStrict","module","exports","forEach","callbackfn","this","arguments","length","undefined","uncurryThis","valueOf","globalThis","DOMIterables","DOMTokenListPrototype","createNonEnumerableProperty","handlePrototype","CollectionPrototype","error","COLLECTION_NAME","prototype","anObject","ordinaryToPrimitive","$TypeError","TypeError","hint","fails","METHOD_NAME","argument","method","call","defineWellKnownSymbol","defineSymbolToPrimitive","Form","w","window","confirmMessage","_classCallCheck","_classPrivateFieldInitSpec","_isDirty","bindUnload","key","value","_classPrivateFieldSet","_this","addEventListener","e","clean","returnValue","confirmationMessage","bindToForm","formElement","message","_step","form","_iterator","_createForOfIteratorHelper","querySelectorAll","s","n","done","start","err","f","finish","$","IS_PURE","DESCRIPTORS","path","isForced","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","getOwnPropertyNames","getOwnPropertyDescriptor","defineProperty","thisNumberValue","trim","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","stringSlice","slice","charCodeAt","toNumber","first","third","radix","maxCode","digits","index","code","it","NaN","parseInt","FORCED","NumberWrapper","dummy","primValue","toNumeric","Object","constructor","global","wrap","forced","Number","copyConstructorProperties","target","source","keys","split","j","defineBuiltIn","dateToPrimitive","TO_PRIMITIVE","wellKnownSymbol","DatePrototype","Date","disableSubmitButton","submitButton","disabled","innerHTML","document","_loop","_fakeNextButton$class","_wizardContainer$quer","wizardContainer","nodeName","Error","buttonContainer","querySelector","dataset","wizard","fakeNextButton","createElement","innerText","classList","add","apply","_toConsumableArray","steps","errorParentElement","closest","el","i","remove","inputElements","_step3","_iterator3","_loop2","elem","checkValidity","preventDefault","stopPropagation","click","currentStep","currentInputElement","nextStep","nextElementSibling","focus","contains","requestSubmit","appendChild","_step2","_iterator2","listener","matchMedia","event","matches","openSummaryFn","overview","removeAttribute","setAttribute"],"sourceRoot":""}