1(()=>{"use strict";var e={156(e){var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function r(e,t,i){return e.concat(t).map(function(e){return s(e,i)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function n(e,t){try{return t in e}catch(e){return!1}}function a(e,i,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var h,c,u=Array.isArray(i);return u!==Array.isArray(e)?s(i,l):u?l.arrayMerge(e,i,l):(c={},(h=l).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=s(e[t],h)}),o(i).forEach(function(t){(!n(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(n(e,t)&&h.isMergeableObject(i[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var i=t.customMerge(e);return"function"==typeof i?i:a})(t,h)(e[t],i[t],h):c[t]=s(i[t],h))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,i){return a(e,i,t)},{})},e.exports=a}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=i(156),r=i.n(s);class o{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let i=o.toUpperCamelCase(e,t);return o.lcFirst(i)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>o.ucFirst(e.toLowerCase())).join(""):o.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class n{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(e,{detail:t,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,r=e.split("."),o=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=o;o=function(i){s.unsubscribe(e),t(i)}}return this.el.addEventListener(r[0],o),this.listeners.push({splitEventName:r,opts:i,cb:o}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,i)=>([...i.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):e.push(i),e),[]),!0}reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}}class a{constructor(e,t={},i=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${i}".`);return}this.el=e,this.$emitter=new n(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),r().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=o.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${t}-config`);return i?window.PluginConfigManager.get(this._pluginName,i):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=o.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${t}-options`);if(i)try{return JSON.parse(i)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return e}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}}class l{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",e,i);return this._sendRequest(s,null,t)}post(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let r=this._createPreparedRequest("POST",e,s);return this._sendRequest(r,t,i)}delete(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let r=this._createPreparedRequest("DELETE",e,s);return this._sendRequest(r,t,i)}patch(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let r=this._createPreparedRequest("PATCH",e,s);return this._sendRequest(r,t,i)}
1abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn(`the request to ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${e.responseURL} timed out`)})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,i){return this._registerOnLoaded(e,i),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,i){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&this._request.setRequestHeader("Content-type",i),this._request}}class h extends a{static #e=this.options={formId:null,debug:!1,useAjax:!1,hiddenClass:"d-none",hiddenSubmitSelector:".submit--hidden",formContentSelector:".form-content",cmsBlock:".cms-block",contentType:"application/x-www-form-urlencoded",technicalName:"fb_form"};init(){this._submitting=!1,this.formSubmittedByCaptcha=!1,this._initGoogleReCaptchaAgain(),this._client=new l,this._getButton(),this._getFeedback(),this._getHiddenSubmit(),this._inheritGetParams(),this._registerEvents(),this._getCmsBlock(),this._getConfirmationText(),this._debugMode()}_initGoogleReCaptchaAgain(){setTimeout(()=>{this.options.useAjax&&!this.formSubmittedByCaptcha&&(window.googleReCaptchaV2Active&&this._pushInstance("GoogleReCaptchaV2"),window.googleReCaptchaV3Active&&this._pushInstance("GoogleReCaptchaV3"))},1e3)}_pushInstance(e){window.PluginManager.getPluginInstances(e).forEach(t=>{"function"==typeof t._setGoogleReCaptchaHandleSubmit?t._setGoogleReCaptchaHandleSubmit():this.formSubmittedByCaptcha=!0,console.warn(`MoorlFbForm instance added to ${e}`)})}_debugMode(){this.options.debug&&(this.el.style.border="5px solid red",this.el.querySelectorAll("[required]").forEach(function(e){e.removeAttribute("required"),e.setAttribute("data-required",!0)}))}sendAjaxFormSubmit(){if(this._submitting)return;this._publishEvent("fb_submit"),this._submitting=!0;let{_client:e,el:t,options:i}=this,s=new FormData(t);s.append("_formId",this.options.formId),e.post(t.action,s,this._handleResponse.bind(this),i.contentType)}_inheritGetParams(){let e=this;new URLSearchParams(window.location.search).forEach(function(t,i){0===t.length?e.el.querySelector('input[name="'+i+'"]')&&(e.el.querySelector('input[name="'+i+']"').checked=!0):e.el.querySelector('[name="'+i+'"]:not([type=checkbox]):not([type=radio])')?e.el.querySelector('[name="'+i+'"]').value=t:e.el.querySelector('input[name="'+i+'"][value="'+t+'"]')?e.el.querySelector('input[name="'+i+'"][value="'+t+'"]').checked=!0:e.el.querySelector('input[name="'+i+'[]"][value="'+t+'"]')&&(e.el.querySelector('input[name="'+i+'[]"][value="'+t+'"]').checked=!0)})}_registerEvents(){this.options.useAjax&&(this.el.addEventListener("submit",this._handleSubmit.bind(this)),this._button&&(this._button.addEventListener("submit",this._handleSubmit.bind(this)),this._button.addEventListener("click",this._handleSubmit.bind(this))))}_getConfirmationText(){let e=this.el.querySelector('input[name="confirmationText"]');e&&(this._confirmationText=e.value)}_getButton(){this._button=this.el.querySelector('button[type="submit"]')}_getFeedback(){this._feedback=this.el.querySelector("[data-moorl-fb-feedback]"),this._feedback||(this._feedback=this.el)}_getCmsBlock(){this._block=this.el.closest(this.options.cmsBlock)}_getHiddenSubmit(){this._hiddenSubmit=this.el.querySelector(this.options.hiddenSubmitSelector)}_handleSubmit(e){"submit"===e.type&&!0===e.cancelable&&e.preventDefault(),this._debugMode(),!1!==this.el.checkValidity()&&this._submitForm()}_showValidation(){this._hiddenSubmit.click()}_submitForm(){this.$emitter.publish("beforeSubmit"),this._button.classList.add("loading"),this.formSubmittedByCaptcha||this.sendAjaxFormSubmit()}_handleResponse(e){this._submitting=!1,this._button.classList.remove("loading");let t=JSON.parse(e);this._feedback.innerHTML=t.feedback,this.$emitter.publish("onFormResponse",t),this.el.dispatchEvent(new CustomEvent("removeLoader")),t.success?(this.el.reset(),this._publishEvent("fb_success"),this.el.classList.remove("was-validated"),t.reload?setTimeout(function(){window.location.reload()},2e3):t.location&&setTimeout(function(){"reload"===t.location?window.location.reload():window.location=t.location},2e3)):this._publishEvent("fb_error")}_publishEvent(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,formName:this.options.technicalName,formId:this.options.formId})}}class c{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var i of e.entries())t(i[1],i[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(i=>
1{t(e[i],i)});throw Error(`The element type ${typeof e} is not iterable!`)}}class u extends a{static #e=this.options={mediaUrl:null,mediaId:null,value:null};init(){this._hidden=this.el.querySelector('input[type="hidden"]'),this._file=this.el.querySelector('input[type="file"]'),this._label=this.el.querySelector(".form-label"),this.options.value&&(this._label.classList.add("selected"),this._label.innerText=this.options.value),this._registerEvents()}_registerEvents(){this._file.addEventListener("change",()=>{this._label.classList.add("selected"),this._label.innerText=this._file.value.split("\\").pop(),this._hidden&&this._hidden.remove()},!1)}}class d extends a{static #e=this.options={exclude:[]};init(){this._input=this.el.querySelector('input[type="date"]'),this._registerEvents()}_registerEvents(){this._input.addEventListener("change",()=>{let e=new Date(this._input.value).getUTCDay();isNaN(e)||0===this.options.exclude||(this.options.exclude.includes(e)?(this._input.value="",this._input.setCustomValidity("weekday not allowed")):this._input.setCustomValidity(""))},!1)}}class m extends a{static #e=this.options={required:!1,minlength:1,maxlength:0,length:0};init(){this.options.required&&(this._formSubline=this.el.querySelector("small"),this._formSubline&&(this.options.maxlength<this.options.minlength&&(this.options.maxlength=this.options.length),this.options.maxlength>this.options.length&&(this.options.maxlength=this.options.length),this._checkboxElements=this.el.querySelectorAll('input[type="checkbox"]'),this._checkboxElements.forEach(e=>{e.required=!0}),this._registerEvents(),this._validate()))}_registerEvents(){this._checkboxElements.forEach(e=>{e.addEventListener("change",()=>{this._validate()},!1)})}_validate(){let e=this.el.querySelectorAll('input[type="checkbox"]:checked'),t=this.el.querySelectorAll('input[type="checkbox"]:not(:checked)'),i=e.length;i>=this.options.minlength?(this._formSubline.classList.remove("text-danger"),this._formSubline.classList.remove("text-muted"),this._formSubline.classList.add("text-success"),this._checkboxElements.forEach(e=>{e.required=!1})):(this._formSubline.classList.remove("text-success"),this._formSubline.classList.remove("text-muted"),this._formSubline.classList.add("text-danger"),this._checkboxElements.forEach(e=>{e.required=!0})),i>=this.options.maxlength?t.forEach(e=>{e.disabled=!0}):t.forEach(e=>{e.disabled=!1})}}class p extends a{static #e=this.options={url:null};init(){this._client=new l,this.getValue()}getValue(){this._client.get(this.options.url,e=>{this.el.value=e})}}class g{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,i){if(null==e)throw Error("You must specify a key to set a cookie");let s=new Date;s.setTime(s.getTime()+864e5*i);let r="";"https:"===location.protocol&&(r="secure"),document.cookie=`${e}=${t};expires=${s.toUTCString()};path=/;sameSite=lax;${r}`}static getItem(e){if(!e)return!1;let t=e+"=",i=document.cookie.split(";");for(let e=0;e<i.length;e++){let s=i[e];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(t))return s.substring(t.length,s.length)}return!1}static removeItem(e){document.cookie=`${e}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}class _{constructor(){this._storage={}}setItem(e,t){return this._storage[e]=t}getItem(e){return Object.prototype.hasOwnProperty.call(this._storage,e)?this._storage[e]:null}removeItem(e){return delete this._storage[e]}key(e){return Object.values(this._storage)[e]||null}clear(){return this._storage={}}}class f{constructor(){this._storage=null,this._chooseStorage(),this._validateStorage()}_chooseStorage(){return f._isSupported("localStorage")?this._storage=window.localStorage:f._isSupported("sessionStorage")?this._storage=window.sessionStorage:g.isSupported()?this._storage=g:this._storage=new _}static _isSupported(e){try{let t="__storage_test";return window[e].setItem(t,"1"),window[e].removeItem(t),!0}catch(e){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}}let b=Object.freeze(new f).getStorage(),y=window.PluginManager;y.register("MoorlFbForm",h,"[data-moorl-fb-form]"),y.register("MoorlFbFormValidator",class extends a{init(){if(this._getForm(),!this._form)throw Error(`No form found for the plugin: ${this.constructor.name}`);this._formFields=this._getFormFields(),this._formFields&&0!==this._formFields.length&&this._registerEvents()}_getForm(){this.el&&"FORM"===this.el.nodeName?this._form=this.el:this._form=this.el.closest("form")}_getFormFields(){return this._form.querySelectorAll("input, select, textarea")}_registerEvents(){c.iterate(this._formFields,e=>{e.addEventListener("invalid",this._onInvalidCard.bind(this),!1),e.addEventListener("invalid",this._onInvalidCustom.bind(this),!1)}),this.$emitter.subscribe("onFormResponse",this._applyErrorsFromList.bind(this))}_onInvalidCard(e){let t=e.target.closest(".collapse");if(!t)return;let i=bootstrap.Collapse.getInstance(t);i||(i=new bootstrap.Collapse(t,{toggle:!1})),i.show()}_onInvalidCustom(e){let t=e.target.closest(".moorl-fb-required");t&&t.classList.add("is-invalid")}_applyErrorsFromList(e){let t=e?.detail?.violations;
1t&&t.forEach(e=>{let t=this._form.querySelector('[name="'+e.name+'"], [name="'+e.name+'[]"]');if(!t){console.warn("No field found",e);return}window.formValidation.addErrorMessage(e.path,e.message),window.formValidation.setFieldInvalid(t,[e.path])})}},"form"),y.register("MoorlFbUpload",u,"[data-moorl-fb-upload]"),y.register("MoorlFbDate",d,"[data-moorl-fb-date]"),y.register("MoorlFbWindowLocation",class extends a{init(){this.el.value=window.location.toString()}},"[data-moorl-fb-window-location]"),y.register("MoorlFbCheckboxGroup",m,"[data-moorl-fb-checkbox-group]"),y.register("MoorlFbContextValue",p,"[data-moorl-fb-context-value]"),y.override("MoorlFbForm",class extends h{init(){this.cookieEnabledName="moorl-fb-store",this.storage=b,this._fetch(),super.init()}_registerEvents(){if(!g.getItem(this.cookieEnabledName)){super._registerEvents();return}this.el.addEventListener("change",()=>{let e=new FormData(this.el);e.delete("_csrf_token"),e.delete("_fb_entity_name"),e.delete("_fb_entity_id");let t={};e.forEach((e,i)=>{if(e.length){if(!Reflect.has(t,i)){t[i]=e;return}Array.isArray(t[i])||(t[i]=[t[i]]),t[i].push(e)}}),this.storage.setItem(this._getStorageKey(),JSON.stringify(t))}),this.el.addEventListener("reset",()=>{this.storage.removeItem(this._getStorageKey())}),super._registerEvents()}_submitForm(){this.storage.removeItem(this._getStorageKey()),super._submitForm()}_fetch(){if(!g.getItem(this.cookieEnabledName)){this.storage.removeItem(this._getStorageKey());return}let e=this.storage.getItem(this._getStorageKey());e&&Object.entries(JSON.parse(e)).forEach(e=>{if(!Array.isArray(e))return;let t=this.el.querySelectorAll(`[name="${e[0]}"]`);if(t&&t.length){if(1===t.length){if(t[0].readOnly||t[0].disabled||"hidden"===t[0].type||"file"===t[0].type)return;try{t[0].value=e[1]}catch(e){}}else t.forEach(t=>{"file"!==t.type&&(Array.isArray(e[1])?t.checked=e[1].includes(t.value):t.checked=t.value===e[1])})}})}_getStorageKey(){return"moorl-fb-store"+this.options.formId}},"[data-moorl-fb-form]")})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.