File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/wwwroot/js/site/app.js
(self.webpackChunk=self.webpackChunk||[]).push([[615],{85:()=>{},6097:()=>{Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},2344:function(e,t,o){var i,n,r;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}r=function(){"use strict";function e(e){var t=this.constructor;return this.then((function(o){return t.resolve(e()).then((function(){return o}))}),(function(o){return t.resolve(e()).then((function(){return t.reject(o)}))}))}var t=setTimeout;function i(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn((function(){var o=1===e._state?t.onFulfilled:t.onRejected;if(null!==o){var i;try{i=o(e._value)}catch(e){return void l(t.promise,e)}a(t.promise,i)}else(1===e._state?a:l)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===s(t)||"function"==typeof t)){var o=t.then;if(t instanceof n)return e._state=3,e._value=t,void c(e);if("function"==typeof o)return void d((i=o,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){l(e,t)}var i,r}function l(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&n._immediateFn((function(){e._handled||n._unhandledRejectionFn(e._value)}));for(var t=0,o=e._deferreds.length;t<o;t++)r(e,e._deferreds[t]);e._deferreds=null}function u(e,t,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=o}function d(e,t){var o=!1;try{e((function(e){o||(o=!0,a(t,e))}),(function(e){o||(o=!0,l(t,e))}))}catch(e){if(o)return;o=!0,l(t,e)}}n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var o=new this.constructor(i);return r(this,new u(e,t,o)),o},n.prototype.finally=e,n.all=function(e){return new n((function(t,o){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var n=i.length;function r(e,a){try{if(a&&("object"===s(a)||"function"==typeof a)){var l=a.then;if("function"==typeof l)return void l.call(a,(function(t){r(e,t)}),o)}i[e]=a,0==--n&&t(i)}catch(e){o(e)}}for(var a=0;a<i.length;a++)r(a,i[a])}))},n.resolve=function(e){return e&&"object"===s(e)&&e.constructor===n?e:new n((function(t){t(e)}))},n.reject=function(e){return new n((function(t,o){o(e)}))},n.race=function(e){return new n((function(t,o){for(var i=0,n=e.length;i<n;i++)e[i].then(t,o)}))},n._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},n._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o.g)return o.g;throw new Error("unable to locate global object")}();"Promise"in f?f.Promise.prototype.finally||(f.Promise.prototype.finally=e):f.Promise=n},"object"===s(t)?r():void 0===(n="function"==typeof(i=r)?i.call(t,o,t,e):i)||(e.exports=n)},2365:()=>{[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},5873:(e,t,o)=>{"use strict";function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.checkoutDataForm=document.querySelector(".js-checkout-data-form"),isset(this.checkoutDataForm)&&(this.differentEmailAddressForInvoiceCheckbox=this.checkoutDataForm.querySelector("#checkout_send_invoice_to_other_email"),this.clientTypeRadioButtons=this.checkoutDataForm.getElementsByClassName("js-client-type"),this.differentEmailAddressForInvoiceCheckbox&&this.toggleDifferentEmailAddressField(this.differentEmailAddressForInvoiceCheckbox.checked),this.controlListeners=this.controlListeners.bind(this),this.triggerToggleOtherEmailAddressForInvoice=this.triggerToggleOtherEmailAddressForInvoice.bind(this),this.toggleDifferentEmailAddressField=this.toggleDifferentEmailAddressField.bind(this),this.clientTypeChanged=this.clientTypeChanged.bind(this),this.changeClientType=this.changeClientType.bind(this),this.controlListeners(!0))}var t,o,n;return t=e,(o=[{key:"controlListeners",value:function(e){this.differentEmailAddressForInvoiceCheckbox.removeEventListener("change",this.triggerToggleOtherEmailAddressForInvoice);for(var t=this.clientTypeRadioButtons.length,o=0;o<t;o++){var i=this.clientTypeRadioButtons[o];i.removeEventListener("change",this.clientTypeChanged),i.checked&&this.changeClientType(i.value)}if(e){this.differentEmailAddressForInvoiceCheckbox.addEventListener("change",this.triggerToggleOtherEmailAddressForInvoice);for(var n=0;n<t;n++)this.clientTypeRadioButtons[n].addEventListener("change",this.clientTypeChanged)}}},{key:"triggerToggleOtherEmailAddressForInvoice",value:function(e){var t=e.currentTarget;this.toggleDifferentEmailAddressField(t.checked)}},{key:"toggleDifferentEmailAddressField",value:function(e){this.checkoutDataForm.querySelector(".js-other-email-for-invoice-area").hidden=!e}},{key:"clientTypeChanged",value:function(e){var t=e.currentTarget;this.changeClientType(t.value)}},{key:"changeClientType",value:function(e){this.checkoutDataForm.querySelector(".js-company-area").hidden=1==e}}])&&i(t.prototype,o),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function r(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var a=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"handleListItemMouseEnter",(function(e){var t=e.target.dataset.locationId,i=o.markers.filter((function(e){return e.dataset.locationId===t}))[0];i&&i.classList.add("active")})),s(this,"handleListItemMouseLeave",(function(e){var t=e.target.dataset.locationId,i=o.markers.filter((function(e){return e.dataset.locationId===t}))[0];i&&i.classList.remove("active")})),s(this,"handleMarkerMouseEnter",(function(e){var t=e.target.dataset.locationId,i=o.listItems.filter((function(e){return e.dataset.locationId===t}))[0];i&&i.parentNode.classList.add("active"),e.target.classList.add("active")})),s(this,"handleMarkerMouseLeave",(function(e){var t=e.target.dataset.locationId,i=o.listItems.filter((function(e){return e.dataset.locationId===t}))[0];i&&i.parentNode.classList.remove("active"),e.target.classList.remove("active")})),s(this,"handleClick",(function(e){var t=e.target.dataset.locationId;o.setActiveCard(t)})),this.listItems=Array.from(t.querySelectorAll(".js-locations-list-item")),this.markers=Array.from(t.querySelectorAll(".js-locations-marker")),this.cards=Array.from(t.querySelectorAll(".js-locations-card")),this.cardsWrapper=t.querySelector(".js-locations-cards"),this.listItems.forEach((function(e){return e.addEventListener("mouseenter",o.handleListItemMouseEnter)})),this.listItems.forEach((function(e){return e.addEventListener("mouseleave",o.handleListItemMouseLeave)})),this.listItems.forEach((function(e){return e.addEventListener("click",o.handleClick)})),this.markers.forEach((function(e){return e.addEventListener("mouseenter",o.handleMarkerMouseEnter)})),this.markers.forEach((function(e){return e.addEventListener("mouseleave",o.handleMarkerMouseLeave)})),this.markers.forEach((function(e){return e.addEventListener("click",o.handleClick)}));var i=Math.floor(Math.random()*(this.listItems.length-1)+1);this.setActiveCard(i)}var t,o,i;return t=e,(o=[{key:"setActiveCard",value:function(e){this.cards.forEach((function(e){return e.classList.add("hidden")})),this.cards.filter((function(t){return t.dataset.locationId==e}))[0].classList.remove("hidden"),this.markers.forEach((function(e){return e.classList.remove("selected")})),this.listItems.forEach((function(e){return e.parentNode.classList.remove("selected")}));var t=this.markers.filter((function(t){return t.dataset.locationId==e}))[0],o=this.listItems.filter((function(t){return t.dataset.locationId==e}))[0];t&&t.classList.add("selected"),o.parentNode.classList.add("selected")}}])&&r(t.prototype,o),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=o(9669),c=o.n(l);const u={dataPrefix:"kal",startStateClass:"is-kal-start",endStateClass:"is-kal-end",elements:[],options:{root:null,rootMargin:"-48px 0px -48px 0px",threshold:0},elementOptions:{once:!0},intersectionObserver:null,init:function(){void 0!==window.IntersectionObserver?(u.elements=document.querySelectorAll("*[data-"+u.dataPrefix+"]"),0!==u.elements.length&&u.createIntersectionObserver()):console.warn("IntersectionObserver is not supported")},createIntersectionObserver:function(){u.intersectionObserver=new IntersectionObserver(u.onIntersection,{root:u.options.root,rootMargin:u.options.rootMargin,threshold:u.options.threshold}),u.elements.forEach((function(e){u.intersectionObserver.observe(e),e.classList.add(u.startStateClass)}))},onIntersection:function(e,t){e.forEach((function(e){e.intersectionRatio>u.options.threshold?(u.triggerAnimation(e),u.getElementOption(e.target,"once")&&t.unobserve(e.target)):u.getElementOption(e.target,"once")||u.reverseAnimation(e)}))},clearIntersectionObserver:function(){u.intersectionObserver.disconnect(),u.intersectionObserver=null},getElementOption:function(e,t){const o=e.getAttribute("data-"+u.dataPrefix+"-"+t);return null!==o?"once"===t?"true"==o:o:u.elementOptions[t]},triggerAnimation:function(e){const t=e.target;t.classList.remove(u.startStateClass),t.classList.add(u.endStateClass)},reverseAnimation:function(e){const t=e.target;t.classList.add(u.startStateClass),t.classList.remove(u.endStateClass)}};var d=o(8253),f=o(6983);u.options.rootMargin="0px 0px -100px 0px",u.init(),window.axios=c().create(),window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},o(840),o(4843),o(85),o(6097),o(2344),o(2365),o(2856),o(2225),o(2349),o(8726),o(4510),o(4653),o(306),o(1796),o(6633),o(7125),o(9301),o(2780),o(2511),o(3310),o(9049),o(433),o(6045),new n,document.querySelectorAll(".js-locations").forEach((function(e){return new a(e)}));var g=document.querySelector(".js-cart");g&&o.e(511).then(o.bind(o,8356)).then((function(e){new(0,e.default)(g)}));var h=document.querySelector(".js-activities");h&&o.e(471).then(o.bind(o,8805)).then((function(e){new(0,e.default)(h)}));var v=document.querySelector(".js-review-slider");v&&o.e(912).then(o.bind(o,591)).then((function(e){new(0,e.default)(v)}));var m=document.querySelector(".js-checkout-summary");m&&o.e(90).then(o.bind(o,658)).then((function(e){new(0,e.default)(m)}));var p=document.querySelector(".js-product-image-slider");p&&o.e(912).then(o.bind(o,1816)).then((function(e){new(0,e.default)(p)}));var y=(0,d.iH)(null),S=(0,d.iH)(null),b=(0,d.iH)(null),w=document.getElementById("planModal"),k=document.querySelectorAll(".js-plan-popup");if(k.length>0){if(!w)throw new Error("Plan buttons found but Plan modal element is missing");w.dataset.location&&(b.value=w.dataset.location),w.dataset.date&&(S.value=w.dataset.date),(0,f.a)(JSON.parse(w.dataset.translations)),delete w.dataset.translations,o.e(862).then(o.bind(o,6437)).then((function(e){var t=e.default;k.forEach((function(e){e.addEventListener("click",(function(){var e=parseInt(event.currentTarget.dataset.productId);y.value===e?y.value=null:y.value=e}))})),(0,d.ri)({components:{PlanModal:t},data:function(){return{activeProduct:y,sessionDate:S,sessionLocation:b}}}).mount(w)}))}},4510:()=>{var e={categoryToggleClass:"js-category-toggle",categoryGroupClass:"js-category-group",init:function(){var t=document.querySelectorAll("."+e.categoryToggleClass),o=t.length;if(isset(t)&&0!==o)for(var i=0;i<o;i++){var n=t[i];e.initToggle(n)}},initToggle:function(t){t.addEventListener("click",e.activateToggle,!1)},activateToggle:function(t){for(var o=t.target,i=o.getAttribute("data-category"),n=document.querySelectorAll("."+e.categoryToggleClass),r=document.querySelectorAll("."+e.categoryGroupClass),s=0;s<n.length;s++)n[s].classList.remove("is-active");for(var a=0;a<r.length;a++)r[a].classList.remove("is-active"),r[a].getAttribute("data-category")===i&&r[a].classList.add("is-active");t.preventDefault(),o.classList.add("is-active")}};e.init()},4653:()=>{var e={bannedVisitor:[],enter:function(){var t=document.querySelectorAll(".js-chocolate-factory");if(isset(t))for(var o=t.length,i=0;i<o;i++){var n=t[i];e._flashTicket(n)}},_flashTicket:function(t){var o=t.querySelector(".js-golden-ticket");isset(o)?o.addEventListener("click",(function(){e.enjoyTheTour(t)})):console.log("To bad, no golden tickets has been found.")},enjoyTheTour:function(t){var o=t.querySelectorAll("input, textarea");if(isset(o)){for(var i={},n=0,r=o.length,s=0;s<r;s++){var a=o[s],l=a.getAttribute("name");e._isVisitorBanned(l)||(i[l]=e._getArrangement(a),n++)}if(0===n)return;e._finishTour(i,t)}else console.log("To bad, no members to visit this factory")},_isVisitorBanned:function(t){return-1!==e.bannedVisitor.indexOf(t)},_getArrangement:function(e){e.nodeName;return"checkbox"===e.type?e.checked:e.value},_finishTour:function(t,o){t=e._addWillieWonka(t);var i=o.getAttribute("data-route"),n="/".concat(i,"/process");try{Ajax.post(n,t,(function(t){var i=JSON.parse(t.response);switch(t.status){case 200:return e._thanksForVisiting(i.redirectUrl);case 422:return e._giveFeedbackToMembers(i.errors,o)}return e._unknownGapInFactory(o)}))}catch(t){return e._unknownGapInFactory(o)}},_addWillieWonka:function(e){return e._willie="wonka",e},_giveFeedbackToMembers:function(t,o){var i=o.querySelector(".js-error-area");isset(i)&&(i.innerHTML=""),e._clearPreviousMarkedJackets(o),Object.keys(t).forEach((function(n){var r=null,s=null;if("_honey"!==n&&"_secretCode"!==n){var a=o.querySelector("#"+n);r=e._grabVisitorJacket(a),isset(r)&&(s=r.querySelector(".js-form-element-error")),isset(s)&&(s.innerHTML="")}for(var l=t[n],c=l.length,u=0;u<c;u++){var d=l[u];if("_honey"!==n&&"_secretCode"!==n&&(isset(r)&&r.classList.add("has-error"),isset(s))){var f=s.innerHTML;f+="<span>"+capitalizeFirstLetter(d)+"</span>",s.innerHTML=f}if(isset(i)){var g=i.innerHTML;g+="<li>"+capitalizeFirstLetter(d)+"</li>",i.innerHTML=g}}}))},_clearPreviousMarkedJackets:function(e){for(var t=e.querySelectorAll(".has-error"),o=t.length,i=0;i<o;i++)t[i].classList.remove("has-error")},_grabVisitorJacket:function(e){if(!isset(e))return null;currentLayer=e,safetyBreak=0;do{if(safetyBreak++,currentLayer=currentLayer.parentNode,currentLayer.classList.contains("js-form-element"))return currentLayer}while("BODY"!==currentLayer.tagName&&safetyBreak<=10);return null},_thanksForVisiting:function(e){window.location=e},_unknownGapInFactory:function(e){console.log(e),console.log("ChocolateFactory: Unkown Error")}};e.enter()},306:()=>{var e={cookieBar:null,cookieOverlay:null,cookieMessage:null,cookieSwitch:null,cookieFadeOutAnimationDuration:400,acceptTracking:!1,init:function(){e.cookieMessage=document.querySelector(".js-cookie-bar, .js-cookie-overlay"),e.cookieBar=document.querySelector(".js-cookie-bar"),isset(e.cookieBar)?e.initCookieBar():(e.cookieOverlay=document.querySelector(".js-cookie-overlay"),isset(e.cookieOverlay)&&e.initCookieOverlay()),isset(e.cookieMessage)&&e.checkForCookieSettings(),e.cookieSwitch=document.querySelector(".js-cookie-switch"),isset(e.cookieSwitch)&&e.initCookieSwitch()},initCookieBar:function(){var t=e.cookieBar.querySelector(".js-disable-cookie-bar");isset(t)&&t.addEventListener("click",e.closeCookieMessage)},initCookieOverlay:function(){var t=e.cookieMessage.querySelector(".js-change-cookies-settings");isset(t)&&t.addEventListener("click",e.openCookieSettings);var o=e.cookieMessage.querySelector(".c-cookie-type__input--tracking");isset(o)&&(!0===o.checked&&(e.acceptTracking=!0),o.addEventListener("change",e.toggleTrackingSetting));var i=e.cookieMessage.querySelector(".js-accept-cookies");isset(i)&&i.addEventListener("click",e.setCookieSettings)},initCookieSwitch:function(){var t=e.cookieSwitch.querySelector(".c-cookie-type__input--tracking");isset(t)&&(!0===t.checked?e.acceptTracking=!0:e.acceptTracking=!1,t.addEventListener("change",e.toggleTrackingSetting));var o=e.cookieSwitch.querySelector(".js-save-cookie-settings");isset(o)&&o.addEventListener("click",(function(){e.cookieFadeOutAnimationDuration=0,e.setCookieSettings()}))},checkForCookieSettings:function(){Cookie.get("cookieMessage")?e.cookieMessage.classList.add("is-accepted"):(e.cookieMessage.classList.remove("is-accepted"),document.body.classList.add("is-cookie-bar-visible"))},closeCookieMessage:function(){Cookie.set("cookieMessage",!0,90),e.cookieMessage.classList.add("is-transitioning-out"),document.body.classList.remove("is-cookie-bar-visible")},openCookieSettings:function(){e.cookieOverlay.querySelector(".js-cookie-settings").classList.remove("is-hidden"),e.cookieOverlay.querySelector(".js-cookie-info").classList.add("is-hidden")},toggleTrackingSetting:function(){e.acceptTracking?e.acceptTracking=!1:e.acceptTracking=!0},setCookieSettings:function(){e.acceptTracking?Cookie.set("trackingCookieAccepted","true",90):Cookie.get("trackingCookieAccepted")&&Cookie.erase("trackingCookieAccepted"),e.closeCookieMessage(),setTimeout((function(){location.reload()}),e.cookieFadeOutAnimationDuration)}};e.init()},6045:()=>{var e={customerLogoSliderArea:null,customerLogoSlides:null,activeLogo:2,autoPlay:!0,autoPlayInterval:3e3,init:function(){e.customerLogoSliderArea=document.querySelector(".js-customer-logo-slider"),isset(e.customerLogoSliderArea)&&(e.replaceSources=e.customerLogoSliderArea.getAttribute("data-replace-source"),e.hasSwipeEvents=e.customerLogoSliderArea.getAttribute("data-has-swipe-events"),e.customerLogoSlides=e.customerLogoSliderArea.querySelectorAll(".js-customer-logo-slide"),e.addEvents(),"true"===e.hasSwipeEvents&&e.addSwipeEvents(),!0===e.autoPlay&&(e.autoPlayInterval=setInterval(e.slideToNext,e.autoPlayInterval)))},slideToNext:function(){e.nextLogo(),e.updateSlider()},addEvents:function(){var t=e.customerLogoSliderArea.querySelector(".c-customer-logo-slider__button.next"),o=e.customerLogoSliderArea.querySelector(".c-customer-logo-slider__button.previous");t.addEventListener("click",(function(){e.nextLogo(),e.updateSlider()})),o.addEventListener("click",(function(){e.previousLogo(),e.updateSlider()}))},addSwipeEvents:function(){var t=new Hammer(e.customerLogoSliderArea);t.on("swipeleft",(function(){e.nextLogo(),e.updateSlider()})),t.on("swiperight",(function(){e.previousLogo(),e.updateSlider()}))},getLogoIds:function(){for(var t=e.customerLogoSlides.length,o=[],i=0;i<t;i++){var n=e.customerLogoSlides[i].getAttribute("data-logo-id");o.push(n)}return{ids:o}},finishLoading:function(){e.customerLogoSliderArea.querySelector(".js-customer-logo-slide-container").classList.remove("is-loading"),lazyLoadInstance.update()},nextLogo:function(){e.activeLogo++,e.activeLogo===e.customerLogoSlides.length&&(e.activeLogo=0)},previousLogo:function(){e.activeLogo--,e.activeLogo<0&&(e.activeLogo=e.customerLogoSlides.length-1)},resetLogosOrder:function(){e.customerLogoSlides=e.customerLogoSliderArea.querySelectorAll(".js-customer-logo-slide");for(var t=e.customerLogoSlides.length,o=0;o<t;o++){e.customerLogoSlides[o].setAttribute("data-slide-id",o)}e.updateSlider()},updateSlider:function(){for(var t=e._calcPreviousPositions(3),o=e._calcPreviousPositions(2),i=e._calcPreviousPositions(1),n=e._calcNextPositions(1),r=e._calcNextPositions(2),s=e._calcNextPositions(3),a=0;a<e.customerLogoSlides.length;a++){var l=e.customerLogoSlides[a];switch(l.classList.remove("c-customer-logo-slider__item--pre-previous"),l.classList.remove("c-customer-logo-slider__item--position-1"),l.classList.remove("c-customer-logo-slider__item--position-2"),l.classList.remove("c-customer-logo-slider__item--position-3"),l.classList.remove("c-customer-logo-slider__item--position-4"),l.classList.remove("c-customer-logo-slider__item--position-5"),l.classList.remove("c-customer-logo-slider__item--pre-next"),l.classList.remove("is-hidden"),a){case t:l.classList.add("c-customer-logo-slider__item--pre-previous");break;case o:l.classList.add("c-customer-logo-slider__item--position-1");break;case i:l.classList.add("c-customer-logo-slider__item--position-2");break;case e.activeLogo:l.classList.add("c-customer-logo-slider__item--position-3");break;case n:l.classList.add("c-customer-logo-slider__item--position-4");break;case r:l.classList.add("c-customer-logo-slider__item--position-5");break;case s:l.classList.add("c-customer-logo-slider__item--pre-next");break;default:l.classList.add("is-hidden")}}},_calcPreviousPositions:function(t){var o=e.activeLogo-t;return o<0?e.customerLogoSlides.length+o:o},_calcNextPositions:function(t){var o=e.activeLogo+t;return o>=e.customerLogoSlides.length?o-e.customerLogoSlides.length:o},_loadCountryBasedLogos:function(t){if(204===t.status)return console.log("CustomerLogoSlider: Empty response"),void e.finishLoading();if(200!==t.status)return console.log("CustomerLogoSlider: Unexpected response "+t.status),void e.finishLoading();var o=JSON.parse(t.response).data,i="";o.forEach((function(t){i=e._prepareCustomerLogoHtml(i,t);var o=e.customerLogoSliderArea.querySelector('.js-customer-logo-slide[data-logo-id="'+t.id+'"]');isset(o)&&o.remove()}));var n=e.customerLogoSliderArea.querySelector(".js-customer-logo-slide-container"),r=n.innerHTML;n.innerHTML=i+r,e.resetLogosOrder(),e.finishLoading()},_prepareCustomerLogoHtml:function(e,t){return isset(t.url)&&""!==t.url?e+='<a target="_blank" rel="nofollow noopener noreferrer" href="'+t.url+'" aria-label="Go to our partners website: '+t.url+'" ':e+="<div",e+=' class="c-customer-logo-slider__item js-customer-logo-slide" ',e+='data-slide-id="" data-logo-id="'+t.id+'"><div class="c-customer-logo-slider__logo js-lazy" data-bg="'+t.image+'"></div>',isset(t.url)&&""!==t.url?e+="</a>":e+="</div>",e}};e.init()},9049:(e,t,o)=>{"use strict";o.r(t),o.d(t,{DatePickerHandler:()=>r});var i=o(6667),n=o(6679);i.Z.localize(n.Dutch),i.Z.defaultConfig={dateFormat:"d-m-Y",nextArrow:'<span class="lib-flatpickr__arrow lib-flatpickr__arrow--next"></span>',prevArrow:'<span class="lib-flatpickr__arrow lib-flatpickr__arrow--prev"></span>',disableMobile:"true"};var r={datePickers:[],init:function(){for(var e=document.getElementsByClassName("js-date-picker"),t=0;t<e.length;t++)r.makeFlatPickr(e[t])},makeFlatPickr:function(e){var t=e.value,o=e.getAttribute("data-min-date"),n=e.getAttribute("data-days-of-the-week-closed");n=isset(n)?JSON.parse(n):[],(0,i.Z)(e,{minDate:o,defaultDate:t,disable:[function(e){return-1!==n.indexOf(e.getDay())}]})}};r.init()},2780:()=>{var e={map:null,key:"",init:function(){if(e.map=document.querySelector(".js-location-map"),isset(e.map))for(var t=e.map.querySelectorAll(".js-location-marker"),o=0;o<t.length;o++){var i=t[o];i.addEventListener("mouseover",(function(){e.enableBelongTooltip(this)})),i.addEventListener("mouseout",(function(){e.disableBelongTooltip(this)}))}},enableBelongTooltip:function(t){e.map.querySelector("#"+t.dataset.target).classList.remove("is-hidden")},disableBelongTooltip:function(t){e.map.querySelector("#"+t.dataset.target).classList.add("is-hidden")}};e.init()},1796:()=>{var e={maps:[],key:"",init:function(){var t=document.querySelectorAll(".js-google-map");if(0!==t.length){for(var o=0;o<t.length;o++){var i=t[o];if(i.hasAttribute("data-google-lat")&&i.hasAttribute("data-google-lng")){var n=parseFloat(i.getAttribute("data-google-lat")),r=parseFloat(i.getAttribute("data-google-lng"));e.maps.push({node:i,location:{lat:n,lng:r},styles:e.setCustomStyling()})}}"undefined"==typeof google||void 0===google.maps?getScript("https://maps.googleapis.com/maps/api/js?key="+e.key,e.drawMaps):e.drawMaps()}},drawMaps:function(){for(var t=0;t<e.maps.length;t++){var o=e.maps[t],i=new google.maps.Map(o.node,{zoom:11,center:o.location,disableDefaultUI:!0,styles:o.styles});new google.maps.Marker({position:o.location,map:i})}},setCustomStyling:function(){return[{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#747474"},{lightness:"23"}]},{featureType:"poi.attraction",elementType:"geometry.fill",stylers:[{color:"#f38eb0"}]},{featureType:"poi.government",elementType:"geometry.fill",stylers:[{color:"#ced7db"}]},{featureType:"poi.medical",elementType:"geometry.fill",stylers:[{color:"#ffa5a8"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#c7e5c8"}]},{featureType:"poi.place_of_worship",elementType:"geometry.fill",stylers:[{color:"#d6cbc7"}]},{featureType:"poi.school",elementType:"geometry.fill",stylers:[{color:"#c4c9e8"}]},{featureType:"poi.sports_complex",elementType:"geometry.fill",stylers:[{color:"#b1eaf1"}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:"100"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"},{lightness:"100"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffd4a5"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffe9d2"}]},{featureType:"road.local",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{weight:"3.00"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{weight:"0.30"}]},{featureType:"road.local",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#747474"},{lightness:"36"}]},{featureType:"road.local",elementType:"labels.text.stroke",stylers:[{color:"#e9e5dc"},{lightness:"30"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{visibility:"on"},{lightness:"100"}]},{featureType:"water",elementType:"all",stylers:[{color:"#d2e7f7"}]}]}};e.init()},6633:(e,t,o)=>{var i=o(7891),n={init:function(){var e=document.querySelectorAll(".js-overlay-menu-trigger"),t=e.length;if(isset(e)&&0!==t)for(var o=0;o<t;o++){var i=e[o];n.initOverlayMenu(i)}},initOverlayMenu:function(e){e.addEventListener("click",n.toggleOverlayMenu,!1)},toggleOverlayMenu:function(e){var t=document.querySelector(".js-overlay-menu");if(t){if(i.enableBodyScroll(t),document.body.classList.contains("is-overlay-menu-active"))return t.querySelectorAll('[tabindex="0"]').forEach((function(e){e.tabIndex=-1})),void document.body.classList.remove("is-overlay-menu-active");i.disableBodyScroll(t),t.querySelectorAll('[tabindex="-1"]').forEach((function(e){e.tabIndex=0})),document.body.classList.toggle("is-overlay-menu-active"),t.hidden=!1}}};n.init()},7125:()=>{for(var e=[],t=document.querySelectorAll(".js-projector"),o=t.length,i=0;i<o;i++){var n=t[i].getAttribute("id");if(null!==n){var r=new s({sliderId:n,slideQuery:"#"+n+" .js-projector-slide",navigationButtons:"#"+n+" .js-projector-button",dots:"#"+n+" .js-projector-indicator",autoSlide:!0,sliderInterval:4e3});e.push(new a(r.prepareParameters()).init())}else console.log("An image slider has no id...")}function s(e){var t=this;return this.sliderId="",this.definedPreviousNext=!0,this.autoSlide=!1,this.sliderInterval=4e3,this.navigationButtons="",this.dots="",this.captions="",this.slideQuery="",this.setProjectorId=function(e){return this.sliderId=e,this},this.setDefinedPreviousNext=function(e){return this.definedPreviousNext=e,this},this.setAutoSlide=function(e){return this.autoSlide=e,this},this.setSliderInterval=function(e){return this.sliderInterval=e,this},this.setSlideQuery=function(e){return this.slideQuery=e,this},this.setNavigationButtons=function(e){return this.navigationButtons=e,this},this.setDots=function(e){return this.dots=e,this},this.setCaptions=function(e){return this.captions=e,this},this.getProjectorId=function(){return this.sliderId},this.getDefinedPreviousNext=function(){return this.definedPreviousNext},this.getAutoSlide=function(){return this.autoSlide},this.getSliderInterval=function(){return this.sliderInterval},this.getSlideQuery=function(){return this.slideQuery},this.getNavigationButtons=function(){return this.navigationButtons},this.getDots=function(){return this.dots},this.getCaptions=function(){return this.captions},this.prepareParameters=function(){return{sliderId:t.getProjectorId(),definedPreviousNext:t.getDefinedPreviousNext(),autoSlide:t.getAutoSlide(),sliderInterval:t.getSliderInterval(),navigationButtons:t.getNavigationButtons(),dots:t.getDots(),captions:t.getCaptions(),slideQuery:t.getSlideQuery()}},this.fill=function(){for(var o=Object.keys(e),i=o.length,n=0;n<i;n++){var r=o[n];t[r]=e[r]}},this.fill(),{sliderId:t.setProjectorId,definedPreviousNext:t.setDefinedPreviousNext,autoSlide:t.setAutoSlide,sliderInterval:t.setSliderInterval,navigationButtons:t.setNavigationButtons,dots:t.setDots,captions:t.setCaptions,slideQuery:t.setSlideQuery,prepareParameters:t.prepareParameters}}function a(e){var t=this;this.sliderObject="",this.activeSlideId=0,this.previousSlideId=0,this.nextSlideId=0,this.availableSlides=1,this.slides=[],this.autoSlideInterval=null,this.settings={},this.init=function(){this.settings=e,this.sliderObject=document.getElementById(this.settings.sliderId),this.slides=document.querySelectorAll(this.settings.slideQuery),this.availableSlides=this.slides.length,this.activeSlideId=0,t.settings.definedPreviousNext&&this.setPreviousAndNextSlide(),this.setSlide();var o=new Hammer(this.sliderObject);if(o.on("swipeleft",(function(){t.resetAutoSlide(),t.nextSlide(),t.setSlide()})),o.on("swiperight",(function(){t.resetAutoSlide(),t.previousSlide(),t.setSlide()})),""!==this.settings.navigationButtons)for(var i=document.querySelectorAll(this.settings.navigationButtons),n=i.length,r=0;r<n;r++){i[r].addEventListener("click",(function(){t.clickNavigationButton(this)}))}if(""!==this.settings.dots)for(var s=document.querySelectorAll(this.settings.dots),a=s.length,l=0;l<a;l++){s[l].addEventListener("click",(function(){t.clickDot(this)}))}t.autoSlide()},this.autoSlide=function(){null!==this.autoSlideInterval&&clearInterval(this.autoSlideInterval),this.settings.autoSlide&&Number.isInteger(this.settings.sliderInterval)&&(this.autoSlideInterval=setInterval((function(){t.nextSlide(),t.setSlide()}),this.settings.sliderInterval))},this.resetAutoSlide=t.autoSlide,this.nextSlide=function(){this.activeSlideId++,this.activeSlideId>=this.availableSlides&&(this.activeSlideId=0),t.settings.definedPreviousNext&&this.setPreviousAndNextSlide()},this.previousSlide=function(){this.activeSlideId--,this.activeSlideId<0&&(this.activeSlideId=this.availableSlides-1),t.settings.definedPreviousNext&&this.setPreviousAndNextSlide()},this.setPreviousAndNextSlide=function(){this.nextSlideId=this.activeSlideId+1,this.nextSlideId>=this.availableSlides&&(this.nextSlideId=0),this.previousSlideId=this.activeSlideId-1,this.previousSlideId<0&&(this.previousSlideId=this.availableSlides-1)},this.setSlide=function(){for(var e=t.slides.length,o=0;o<e;o++){var i=t.slides[o],n=parseInt(i.getAttribute("data-order"));n!==t.activeSlideId?i.classList.remove("is-active"):i.classList.add("is-active"),t.settings.definedPreviousNext&&(n!==t.previousSlideId?i.classList.remove("previous"):i.classList.add("previous"),n!==t.nextSlideId?i.classList.remove("next"):i.classList.add("next"))}""!==t.settings.dots&&t.setActiveDot(),""!==t.settings.captions&&t.setActiveCaption()},this.clickNavigationButton=function(e){t.activeSlideId=parseInt(e.getAttribute("data-order")),t.settings.definedPreviousNext&&t.setPreviousAndNextSlide(),t.setSlide();var o=document.querySelector(t.settings.navigationButtons+".next"),i=document.querySelector(t.settings.navigationButtons+".previous");o.setAttribute("data-order",t.nextSlideId),i.setAttribute("data-order",t.previousSlideId),t.resetAutoSlide()},this.clickDot=function(e){t.activeSlideId=parseInt(e.getAttribute("data-order")),t.setSlide(),t.resetAutoSlide()},this.setActiveDot=function(){for(var e=document.querySelectorAll(this.settings.dots),o=e.length,i=0;i<o;i++){var n=e[i];dotOrder=parseInt(n.getAttribute("data-order")),dotOrder!==t.activeSlideId?n.classList.remove("is-active"):n.classList.add("is-active")}},this.setActiveCaption=function(){for(var e=document.querySelectorAll(this.settings.captions),o=e.length,i=0;i<o;i++){var n=e[i];captionOrder=parseInt(n.getAttribute("data-order")),captionOrder!==t.activeSlideId?n.classList.remove("is-active"):n.classList.add("is-active")}}}},9301:()=>{var e={offset:60,duration:1400,body:null,start:0,change:0,currentTime:0,allowAnimation:!1,scrollToAnimation:null,easing:"easeInOutQuad",init:function(){for(var t=document.querySelectorAll(".js-scroll-to-target"),o=t.length,i=0;i<o;i++){t[i].addEventListener("click",(function(t){e.prepareScrollTo(this.getAttribute("href")),t.preventDefault()}))}},prepareScrollTo:function(t){t=t.substr(t.indexOf("#")+1);var o=document.getElementById(t).getBoundingClientRect();e.body=document.documentElement,e.start=Math.max(e.body.scrollTop,document.body.scrollTop,window.pageYOffset),e.change=o.top+e.start-e.start-e.offset,e.startTime="now"in window.performance?performance.now():(new Date).getTime(),e.allowAnimation=!0,scrollToAnimation=requestAnimationFrame(e.animateScroll),window.addEventListener("mousedown",e.abortScrollAnimation),window.addEventListener("wheel",e.abortScrollAnimation),window.addEventListener("DOMMouseScroll",e.abortScrollAnimation),window.addEventListener("mousewheel",e.abortScrollAnimation),window.addEventListener("keyup",e.abortScrollAnimation),window.addEventListener("touchmove",e.abortScrollAnimation)},animateScroll:function(t){var o=Math.min(1,(t-e.startTime)/e.duration);o<0&&(o=0),o=EasingFunctions[e.easing](o);var i=e.start+e.change*o;e.body.scrollTop=i,0===e.body.scrollTop&&(document.body.scrollTop=i),o<1&&e.allowAnimation&&(scrollToAnimation=requestAnimationFrame(e.animateScroll))},abortScrollAnimation:function(t){e.allowAnimation=!1,cancelAnimationFrame(e.scrollToAnimation)}};e.init()},433:()=>{var e={form:null,init:function(){if(e.form=document.querySelector(".js-search-form"),isset(e.form)){var t=e.form.querySelector(".js-search-location");if(e.form.addEventListener("submit",(function(e){""===t.value&&(t.classList.add("c-select--alert"),e.preventDefault())})),e.form.classList.contains("js-search-form-on-change"))for(var o=e.form.querySelectorAll("select, input"),i=0;i<o.length;i++){o[i].addEventListener("change",(function(){""!==t.value&&e.form.submit()}))}}}};e.init()},2511:()=>{var e={toggleClass:"js-toggle",toggleSwitchClass:"js-toggle-switch",toggleContentClass:"js-toggle-content",init:function(){var t=document.querySelectorAll("."+e.toggleClass),o=t.length;if(isset(t)&&0!==o)for(var i=0;i<o;i++){var n=t[i];e.initToggle(n)}},initToggle:function(t){for(var o=t.querySelectorAll("."+e.toggleSwitchClass),i=0;i<o.length;i++)for(var n=o[i],r=0;r<n.children.length;r++){n.children[r].style.pointerEvents="none"}t.addEventListener("click",e.activateToggle,!1)},activateToggle:function(t){var o=t.target.parentNode;o.parentNode.children;t.target.classList.contains(e.toggleSwitchClass)&&o.querySelector("."+e.toggleContentClass)&&(t.preventDefault(),o.classList.toggle("is-active"))}};e.init()},3310:()=>{var e={youtubeClass:".js-youtube-player",players:[],init:function(){for(var t=document.querySelectorAll(e.youtubeClass),o=t.length,i=0;i<o;i++){var n=t[i];if(null!==n.getAttribute("id")){var r={id:n.getAttribute("id"),link:n.getAttribute("data-youtube-link"),autoPlay:parseInt(n.getAttribute("data-auto-play")),disableKB:parseInt(n.getAttribute("data-disable-kb")),controls:parseInt(n.getAttribute("data-controls")),loop:parseInt(n.getAttribute("data-loop"))};e.players.push(r)}else console.log("Element not include because there isn't a id on the player"),console.log(n)}o>=1&&e.initYoutube()},initYoutube:function(){"undefined"==typeof YT||void 0===YT.Player?(window.onYouTubePlayerAPIReady=function(){e.loadPlayers()},getScript("https://www.youtube.com/iframe_api")):e.loadPlayers()},loadPlayers:function(){for(var t=[],o=e.players.length,i=0;i<o;i++){var n=e.players[i];n.player=new YT.Player(n.id,{height:200,width:200,videoId:n.link,host:"https://www.youtube-nocookie.com",playerVars:{modestbranding:0,rel:0,autoplay:n.autoPlay,controls:n.controls,disablekb:n.disableKB},events:{onReady:e.onReady,onStateChange:e.onStateChange}}),t[n.id]=n}e.players=t},onReady:function(t){var o=t.target.getIframe().getAttribute("id"),i=e.players[o];setTimeout((function(){document.querySelector("#"+o).classList.add("is-active")}),800),1===i.autoPlay&&(i.player.mute(),i.player.playVideo(),i.player.setPlaybackQuality("hd1080"))},onStateChange:function(t){var o=t.target.getIframe().getAttribute("id"),i=e.players[o];t.data===YT.PlayerState.ENDED&&1===i.loop&&i.player.playVideo()}};e.init()},2225:()=>{var e={userAgent:"",browserInfo:"",init:function(){e.userAgent=window.navigator.userAgent,e.browserInfo=e.getBrowserInfo(),e.handleIE(),e.handleSafari()},handleIE:function(){var t=e.userAgent.indexOf("MSIE "),o=t>0,i=!!navigator.userAgent.match(/Trident.*rv\:11\./);if(o||i){var n="11";o&&(n=parseInt(e.userAgent.substring(t+5,e.userAgent.indexOf(".",t)))),document.body.classList.add("ie"),document.body.classList.add("v"+n)}},handleSafari:function(){"Safari"===e.browserInfo.name&&e.browserInfo.version<=10&&document.getElementsByTagName("html")[0].classList.add("ie")},getBrowserInfo:function(){var e,t=navigator.userAgent,o=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(o[1])?{name:"IE ",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===o[1]&&null!=(e=t.match(/\bOPR\/(\d+)/))?{name:"Opera",version:e[1]}:(o=o[2]?[o[1],o[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&o.splice(1,1,e[1]),{name:o[0],version:o[1]})}};e.init()},2856:()=>{window.isset=function(e){return null!=e},window.EasingFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},window.getScript=function(e,t){var o=document.createElement("script");o.async=1;var i=document.getElementsByTagName("script"),n=i[i.length-1];o.onload=o.onreadystatechange=function(e,i){(i||!o.readyState||/loaded|complete/.test(o.readyState))&&(o.onload=o.onreadystatechange=null,o=void 0,i||t&&t())},o.src=e,n.parentNode.insertBefore(o,n)},window.debounce=function(e,t,o){var i;return function(){var n=this,r=arguments,s=function(){i=null,o||e.apply(n,r)},a=o&&!i;clearTimeout(i),i=setTimeout(s,t),a&&e.apply(n,r)}},window.Cookie={set:function(e,t,o){var i,n,r,s,a;o?((r=new Date).setTime(r.getTime()+24*o*60*60*1e3),s="; expires="+r.toGMTString()):s="",1===(a=location.host).split(".").length?document.cookie=e+"="+t+s+"; path=/":((n=a.split(".")).shift(),i="."+n.join("."),document.cookie=e+"="+t+s+"; path=/; domain="+i,null!=Cookie.get(e)&&Cookie.get(e)==t||(i="."+a,document.cookie=e+"="+t+s+"; path=/; domain="+i))},get:function(e){for(var t=e+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var n=o[i];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},erase:function(e){Cookie.set(e,"",-1)}},window.number_format=function(e,t,o,i){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var n=isFinite(+e)?+e:0,r=isFinite(+t)?Math.abs(t):0,s=void 0===i?",":i,a=void 0===o?".":o,l="";return l=(r?function(e,t){var o=Math.pow(10,t);return""+Math.round(e*o)/o}(n,r):""+Math.round(n)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(l[1]||"").length<r&&(l[1]=l[1]||"",l[1]+=new Array(r-l[1].length+1).join("0")),l.join(a)},Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null}),window.Ajax={get:function(e,t){var o=new XMLHttpRequest,i=document.querySelector('meta[name="csrf-token"]').content;o.open("get",e,!0),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-CSRF-TOKEN",i),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.onreadystatechange=function(){4===o.readyState&&t(o)},o.send()},post:function(e,t,o){var i=new XMLHttpRequest,n=document.querySelector('meta[name="csrf-token"]').content;i.open("post",e,!0),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("X-CSRF-TOKEN",n),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.send(JSON.stringify(t))},postFormData:function(e,t,o){var i=new XMLHttpRequest,n=document.querySelector('meta[name="csrf-token"]').content;i.open("post",e,!0),i.setRequestHeader("X-CSRF-TOKEN",n),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.send(t)}},window.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},window.snakeToCamel=function(e){return e.replace(/(\-\w)/g,(function(e){return e[1].toUpperCase()}))},window.indexInParent=function(e){for(var t=e.parentNode.childNodes,o=0,i=0;i<t.length;i++){if(t[i]==e)return o;1==t[i].nodeType&&o++}return-1},window.copyToClipboard=function(e){if(e="string"==typeof e?document.querySelector(e):e,navigator.userAgent.match(/ipad|ipod|iphone/i)){var t=e.contentEditable,o=e.readOnly;e.contentEditable=!0,e.readOnly=!0;var i=document.createRange();i.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(i),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=o}else e.select();document.execCommand("copy")},window.bodyOffset=function(e){var t=e.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+i,left:t.left+o}}},2349:()=>{var e={time:Date.now(),timeout:null,waitThrottle:1e3,waitDebounce:300,lastScrollTopPosition:0,scrollDirectionDown:!0,scrollDirectionUp:!1,init:function(){e.triggerOnInit(),window.addEventListener("scroll",(function(){e.time+e.waitThrottle-Date.now()<0&&(e.triggerThrottle(),e.time=Date.now())})),window.addEventListener("scroll",(function(){e.triggerSmooth()})),window.addEventListener("scroll",(function(){isset(e.timeout)&&clearTimeout(e.timeout),e.timeout=setTimeout(e.triggerDebounce,e.waitDebounce)}))},triggerOnInit:function(){e.triggerElementInViewportAnimation()},triggerThrottle:function(){e.triggerElementInViewportAnimation()},triggerDebounce:function(){},triggerSmooth:function(){e.detectScrollDirection(),e.toggleStickyHeader()},detectIfElementIsPartlyInViewport:function(e){if(isset(e)){var t=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,n=t.top<=o&&t.top+t.height>=0,r=t.left<=i&&t.left+t.width>=0;return n&&r}},detectIfElementIsFullyInViewport:function(e){if(isset(e)){var t=e.getBoundingClientRect();return t.top>=0&&t.bottom<=window.innerHeight}},detectScrollDirection:function(){var t=window.pageYOffset||document.documentElement.scrollTop;t>=e.lastScrollTopPosition?(e.scrollDirectionDown=!0,e.scrollDirectionUp=!1):(e.scrollDirectionDown=!1,e.scrollDirectionUp=!0),e.lastScrollTopPosition=t},triggerElementInViewportAnimation:function(){for(var t=document.querySelectorAll(".element-in-viewport"),o=t.length,i=0;i<o;i++){var n=t[i];e.detectIfElementIsPartlyInViewport(n)&&n.classList.remove("element-in-viewport")}},toggleStickyHeader:function(){var t=document.querySelector(".js-sticky-header");if(t){var o="is-sticky-header-visible",i=document.querySelectorAll(".js-subnav"),n=!1;t.hidden=!1;for(var r=0;r<i.length;r++)if("visible"==window.getComputedStyle(i[r],null).visibility)return!0;isset(t)&&!n&&(e.scrollDirectionDown||e.lastScrollTopPosition<110?document.body.classList.remove(o):document.body.classList.add(o))}}};e.init()},8726:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ToggleHandler:()=>i});var i={init:function(){var e=document.querySelectorAll(".js-toggle-trigger"),t=e.length;if(isset(e)&&t>0)for(var o=0;o<t;o++){var n=e[o];i.initToggle(n)}},initToggle:function(e){e.addEventListener("click",i.adjustToggle,!1)},adjustToggle:function(e){var t=e.currentTarget.getAttribute("data-toggle-id"),o=Array.from(document.querySelectorAll(".js-toggle-target")).find((function(e){return e.getAttribute("data-toggle-id")===t}));o&&(o.classList.toggle("u-hidden"),e.currentTarget.classList.toggle("is-toggled"))}};i.init()},6983:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n,a:()=>r});var i=(0,o(8253).qj)({});function n(){return{trans:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null,r=e.split("."),s=0;s<r.length&&(0===s||null!==n);)0===s?n=i[r[s]]||null:null!=n&&(n=n[r[s]]||null),s++;if(null===n)return o?(console.warn("No translation for "+e+". Try clearing your session storage."),e):"";if(void 0===t)return n;var a=Object.keys(t);return a.forEach((function(e){n=n.replace("%"+e,t[e])})),n}}}function r(e){Object.assign(i,e)}},7389:()=>{},9274:()=>{},4155:e=>{var t,o,i=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(o){try{return t.call(null,e,0)}catch(o){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{o="function"==typeof clearTimeout?clearTimeout:r}catch(e){o=r}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===r||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];l.push(new g(e,t)),1!==l.length||c||s(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},8253:(e,t,o)=>{"use strict";o.d(t,{BK:()=>i.toRefs,C_:()=>i.normalizeClass,Fl:()=>i.computed,HY:()=>i.Fragment,JJ:()=>i.provide,Jd:()=>i.onBeforeUnmount,Ko:()=>i.renderList,SU:()=>i.unref,Uk:()=>i.createTextVNode,Wm:()=>i.createVNode,Xn:()=>i.onBeforeUpdate,Y3:()=>i.nextTick,YP:()=>i.watch,_:()=>i.createElementVNode,bM:()=>i.vModelSelect,bv:()=>i.onMounted,e8:()=>i.vModelCheckbox,f3:()=>i.inject,h:()=>i.h,iD:()=>i.createElementBlock,iH:()=>i.ref,ic:()=>i.onUpdated,j4:()=>i.createBlock,kq:()=>i.createCommentVNode,nr:()=>i.vModelText,qj:()=>i.reactive,ri:()=>i.createApp,up:()=>i.resolveComponent,w5:()=>i.withCtx,wg:()=>i.openBlock,wy:()=>i.withDirectives,zw:()=>i.toDisplayString});var i=o(9963),n=o(6252),r=o(2849),s=o(3577);const a=Object.create(null);(0,n.Y1)((function(e,t){if(!(0,s.HD)(e)){if(!e.nodeType)return s.dG;e=e.innerHTML}const o=e,n=a[o];if(n)return n;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const{code:l}=(0,r.MY)(e,(0,s.l7)({hoistStatic:!0,onError:void 0,onWarn:s.dG},t)),c=new Function("Vue",l)(i);return c._rc=!0,a[o]=c}))}},e=>{var t=t=>e(e.s=t);e.O(0,[63,938,898],(()=>(t(5873),t(7389),t(9274))));e.O()}]);
//# sourceMappingURL=app.js.map