1(()=>{"use strict";function e(e){return"object"==typeof e&&null!=e}function t(e){return!isNaN(parseFloat(e))&&isFinite(e)}const n=()=>window.helperJs,i=e=>e.components.form,o=(e,t)=>n().getProcessedFieldValue(e,t);function r(e,t){for(let n=0;n<t.length;n++)e.setAttribute(t[n].name,t[n].value)}const s=(e,t)=>{t?(e.removeAttribute("hidden"),e.style.removeProperty("display")):(e.setAttribute("hidden","hidden"),e.style.display="none"),e.setAttribute("aria-hidden",`${!t}`)};var a,c,l,d,u;function h(e,t,n){const i=e.get(t);if(i)return i;const o=n();return e.set(t,o),o}function p(e){return h(globalThis.govisVars._scriptPromiseCache,e.url,(()=>new Promise(((t,n)=>{const i=document.createElement("script");i.src=e.url,i.onload=()=>t(),i.onerror=e=>n(e),r(i,e.attributes||[]),document.head.appendChild(i)}))))}function f(e,t,n="marker"){const i="govisFormInitGoogleMap",o=window[i]||(()=>{});window[i]=function(){o(),e()};const r="https://maps.googleapis.com/maps/api/js";var s;document.querySelector(`script[src^="${r}"]`)?(window[i](),delete window[i]):(s=[{url:`${r}?key=${t}®ion=CH&libraries=${n}&loading=async&callback=${i}`}],Promise.all(s.map((e=>p(e)))))}function m(e){var t,n;t=e=>{e.gmaps&&w.init(function(e){const t=e.locationConf,n={};if(t&&(n.apiKey=t.apiKey,t.mapsConf.geolocation&&(n.geolocation=t.mapsConf.geolocation)),e.location){const i=null==t?void 0:t.markerTitle,o=document.getElementById(e.formId);n.location=e.location.map((e=>g(e,o,i)))}return e.autocomplete&&(n.autocomplete=e.autocomplete),n}(e.gmaps))},n=[e],"loading"!==document.readyState?t.apply(null,n):window.addEventListener("DOMContentLoaded",(()=>t.apply(null,n)))}null!==(a=globalThis.govisVars)&&void 0!==a||(globalThis.govisVars={}),null!==(c=(d=globalThis.govisVars)._scriptPromiseCache)&&void 0!==c||(d._scriptPromiseCache=new Map),null!==(l=(u=globalThis.govisVars)._cssPromiseCache)&&void 0!==l||(u._cssPromiseCache=new Map);const w={init:e=>{const t=e.autocomplete||[];e.hasOwnProperty("apiKey")?f((()=>{window.govis.module.cookieconsent.service.gmaps.init(e),w.initAutoComplete(t)}),e.apiKey,((e,t)=>{const n=["marker"];return e.length&&n.push("places"),t.forEach((e=>{n.includes(e)||n.push(e)})),n.join(",")})(t,e.additionalLibraries||[])):w.initAutoComplete(t)},initAutoComplete:e=>{for(let t=0;t<e.length;t++)e[t]()}};const g=(e,t,n)=>{const i=["id","locationMappingConf","mapOptions"].reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i),t}),{}),o=v(e,t);return i.markerOptions={title:n,gmpDraggable:!0},i.form=t,Object.assign(i,o),i},v=(e,t)=>{const n={position:e.position,precisePosition:""},i=e.locationMappingConf;if(i){const e=y(t,i.latitude),o=y(t,i.longitude);e&&o&&(n.precisePosition=`${e},${o}`)}return n},y=(e,t)=>t?e.querySelector(`[id="${t}"]`).value:"",b={hasResizeListener:!1,instances:{}};function E(e){const t=e.querySelector("canvas"),n=new window.SignaturePad(t,{backgroundColor:"rgb(255, 255, 255)"});e.querySelector(".js-signature-pad--clear").addEventListener("click",(()=>{n.clear()}));e.querySelector(".js-signature-pad--undo").addEventListener("click",(()=>{const e=n.toData();e&&(e.pop(),n.fromData(e))}));const i=e.querySelector(".js-signature-pad--redo");return i&&i.addEventListener("click",(()=>{e.querySelector(".js-signature-pad--wrapper").style.display="block",e.querySelector(".js-signature-pad--data").remove()})),e.addEventListener("govisFormHasSignature",(t=>{t.detail.hasSignature=function(e,t){return t._data.length||!!e.querySelector('input[name$=".path"]')}(e,n)})),n}function P(e,t){let n;return"svg"==t?function(e){if(window.devicePixelRatio>1){const t=e.instance.toSVG(),n=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg"),i=document.querySelector(`[id="${e.id}-group"] canvas`),o=i.width,r=i.width;return n.setAttribute("width",o.toString()),n.setAttribute("height",r.toString()),n.setAttribute("viewBox",`0 0 ${o} ${r}`),btoa(n.outerHTML)}return D(e.instance,"image/svg+xml")}(e):("jpeg"==t&&(n="image/jpeg"),D(e.instance,n))}function D(e,t){return e.toDataURL(t).split(";base64,")[1]}function F(e){const t=Math.max(window.devicePixelRatio||1,1);for(let n=0;n<e.length;n++)T(e[n],t)}function T(e,t){const n=document.getElementById(e.id);if(n){const i=n.querySelector("canvas");i.width=i.offsetWidth*t,i.height=i.offsetHeight*t,i.getContext("2d").scale(t,t);const o=e.instance;o.fromData(o.toData())}}const S=(e,t)=>{const n={method:e.method||"POST",headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"}};let i=e.url;if(t){const e=A(t);"POST"==n.method?n.body=e:i+="&"+e}return{input:i,init:n}},C=t=>{let n=t;return e(t)&&!Array.isArray(t)&&(n=JSON.stringify(t)),null===n?"":n},A=e=>{const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(C(e[n])));return t.join("&")};function O(e,t,n=[]){const i=new CustomEvent(t,{detail:n});
1return{result:e.dispatchEvent(i),event:i}}const j=(e,t)=>{const n=i(e);I(t,n.getElementsByClassName("js-file")),I(t,n.querySelectorAll("input[type=file]")),e.componentTypes.signature&&function(e,t){const n=b.instances[t],i=[];for(let t=0;t<n.length;t++){const o=n[t].instance,r=n[t].name;if(!o.isEmpty()){const i=n[t].extensions.split(",");for(let o=0;o<i.length;o++)e.append(r+"."+o+".source",P(n[t],i[o])),e.append(r+"."+o+".name",r+"."+i[o])}i.push(r)}i.length&&e.append("_signatureField",i.join(","))}(t,n.id)};function I(e,t){for(let n=0;n<t.length;n++){const i=t[n].name;if(i){const o=t[n].files||[];for(let t=0;t<o.length;t++)e.append(i,o[t])}}}const k=e=>{const t={};return e.forEach(((e,n)=>{t.hasOwnProperty(n)?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)):t[n]=e})),t};function x(e,t){const n=i(e);if(O(n,"govisFormClearErrors"),t.length){const i=function(e,t){const n=1===t.length,i=function(e){const t=document.createElement(e);return t.className="clearfix box box--error",t.setAttribute("role","alert"),t.tabIndex=0,t.style.outline="none",t}(n?"p":"div"),o=e.translations;if(n)i.append(M(e,t[0],o.validation_error));else{const n=document.createElement("p");n.innerHTML=o.validation_errors,i.append(n),i.append(function(e,t){const n=document.createElement("ul");for(const i of t){const t=document.createElement("li");t.append(M(e,i)),n.append(t)}return n}(e,t))}return i}(e,t);L(t)?(n.parentNode.insertBefore(i,n),s(n,!1)):function(e,t){const n=e.firstElementChild;"h3"===(null==n?void 0:n.tagName.toLowerCase())?n.insertAdjacentElement("afterend",t):e.prepend(t)}(n,i),i.focus()}}const L=e=>e.some((e=>e&&"issubmissionclosed"==e.code));function M(e,t,n=""){const i=`${n}${t.error}`;let o=null;const r=$(e,t);if(r){const e=V(r);if(e){o=function(e,t,n){const i=document.createElement("a");return i.id=t.id,i.href=`#${e.id}`,i.innerHTML=`${n}`,i}(e,t,i);const n=q(e,t.id);e.setAttribute("aria-describedby",n)}}return o||i}const q=(e,t)=>{let n=[];if(e.hasAttribute("aria-describedby")){n=e.getAttribute("aria-describedby").split(" ");for(let e=0;e<n.length;e++)n[e].match("-error-block$")&&(n.splice(e,1),e--)}return n.push(t),n.join(" ")},$=(e,t)=>t.name&&i(e).querySelector('[name="'+t.name+'"]'),V=e=>{let t=e;var n;return e&&!((n=e).checkVisibility?n.checkVisibility():function(e){const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity}(n))&&(t=e.closest("#"+e.getAttribute("id")+"-group")),t};const G=(e,t)=>{R(t)?H(e,t):W(e,t)},R=e=>e&&e.success,H=(e,t)=>{var n;e.onFormSubmitSuccess&&e.onFormSubmitSuccess(t);const o=_(e),r=Y(e,o);r?(o.innerHTML=r,null===(n=i(e).closest(".box--success"))||void 0===n||n.setAttribute("aria-hidden",!1)):location.href=t.url},W=(t,o)=>{t.components.submitButton.disabled=!1,x(t,B(o)),e(o.data)&&n().captcha.reload(t.components.form,o.data),o.sessionNotFound&&function(e,t,n={}){const i=Object.assign({detail:[],bubbles:!0,cancelable:!0},n),o=new CustomEvent(t,i);e.dispatchEvent(o)}(i(t),"govisSessionNotFound")},B=e=>Array.isArray(e&&e.errors)?e.errors:[],Y=(e,t)=>{if(t){const n=(null==t?void 0:t.querySelector(e.selectors.success))||document.querySelector(e.selectors.success);return null==n?void 0:n.innerHTML}return""},_=e=>{var t;return null===(t=i(e))||void 0===t?void 0:t.closest(".js-form-builder")},N=e=>{U(e);try{const{input:t,init:n}=S({url:e.actionUrl,method:"POST"},(e=>{const t=new FormData(i(e));return j(e,t),k(t)})(e));fetch(t,n).then((e=>e.json())).then((t=>G(e,t)))}catch(t){console.log(t),G(e,null)}},U=e=>{const t=e.components;var n;O(t.form,"govisFormClearErrors"),t.submitButton.disabled=!0,n=i(e),["input","textarea"].forEach((e=>{const t=n.getElementsByTagName(e);for(let e=0;e<t.length;e++)o(t[e],t[e].value)}))};class K{getOffsetDate(e){const t=parseInt(e.offset,10)||0,n=e.unit,i=parseInt(e.wholeUnit,10)||!1,o=new Date;let r=new Date(o.getFullYear(),o.getMonth(),o.getDate());return(0!=t||i)&&("day"===n?r.setDate(r.getDate()+t):"week"===n?(r.setDate(r.getDate()+7*t),i&&r.setDate(r.getDate()-r.getDay()+(0==r.getDay()?-6:1))):"month"===n?(r.setMonth(r.getMonth()+t),i&&r.setDate(1)):"year"===n&&(r.setFullYear(r.getFullYear()+t),i&&(r.setDate(1),r.setMonth(0)))),r}getTillOffsetDate(e){const t=e.unit;let n=this.getOffsetDate(e);if(0==parseInt(e.offset,10)||parseInt(e.wholeUnit,10))if("week"===t){const e=n.getDay();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()+(0===e?0:7)-e)}else"month"===t?n=new Date(n.getFullYear(),n.getMonth()+1,0):"year"===t&&(n=new Date(n.getFullYear(),11,31));return n.setHours(23,59,59),n}}var z,J,X,Q,Z,ee,te,ne,ie=function(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},oe=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class re{constructor(e,n){z.add(this),J.set(this,void 0),X.set(this,void 0),ie(this,J,new K,"f"),"birthdate"===e&&(n.dateYearsInFuture=-1*(t(n.minAge)?n.minAge:0),n.dateYearsInPast=t(n.maxAge)?n.maxAge:150),ie(this,X,n,"f")}getRestrictions(){const e=oe(this,z,"m",Q).call(this),t=oe(this,z,"m",ee).call(this);return Object.assign(Object.assign({},e&&{startDate:e}),t&&{endDate:t})}}J=new WeakMap,X=new WeakMap,z=new WeakSet,Q=function(){let e;const n=oe(this,X,"f");if(n.hasOwnProperty("dateYearsInPast")&&t(n.dateYearsInPast)&&(e=new Date(oe(this,z,"m",ne).call(this)-parseFloat(n.dateYearsInPast),0,1)),n.hasOwnProperty("minDate")){const t=oe(this,z,"m",Z).call(this,n);(!e||t>e)&&(e=t)}return e},Z=function(e){return"date"===e.minDate.validationType?new Date(e.minDate.date):(e.minDate.offset=parseInt(e.minDate.offset,10),oe(this,J,"f").getOffsetDate(e.minDate))},ee=function(){let e;const n=new Date,i=oe(this,X,"f");if(i.hasOwnProperty("dateYearsInFuture")&&t(i.dateYearsInFuture)&&(e=new Date(oe(this,z,"m",ne).call(this)+parseFloat(i.dateYearsInFuture),i.now?n.getMonth():11,i.now?n.getDate():31)),i.hasOwnProperty("maxDate")){const t=oe(this,z,"m",te).call(this,i);(!e||t<e)&&(e=t)}return e},te=function(e){return"date"===e.maxDate.validationType?new Date(e.maxDate.date):(e.maxDate.offset=parseInt(e.maxDate.offset,10),oe(this,J,"f").getTillOffsetDate(e.maxDate))},ne=function(){return(new Date).getFullYear()};var se,ae,ce=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class le{constructor(){se.add(this)}setHidden(e,t){t?this.hide(e):this.show(e)}show(e){e.style.removeProperty("display")}hide(e){e.style.setProperty("display","none")}isVisible(e){return e.checkVisibility?e.checkVisibility():ce(this,se,"m",ae).call(this,e)}
1dispatchGovisEvent(e,t,n={}){const i=Object.assign({detail:[],bubbles:!0,cancelable:!0},n),o=new CustomEvent(t,i);return{result:e.dispatchEvent(o),event:o}}}se=new WeakSet,ae=function(e){const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity};var de,ue,he,pe,fe,me,we,ge,ve=function(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},ye=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class be{constructor(e,t,n){de.add(this),ue.set(this,void 0),he.set(this,void 0),pe.set(this,void 0),ve(this,ue,e,"f"),ve(this,he,t,"f"),ve(this,pe,n,"f"),t.addEventListener("onGovisFormFieldShow",(e=>{ye(this,de,"m",fe).call(this,e.target,"show")&&(e.preventDefault(),e.stopPropagation())})),t.addEventListener("onGovisFormFieldHide",(e=>{ye(this,de,"m",fe).call(this,e.target,"hide")&&(e.preventDefault(),e.stopPropagation())}))}}ue=new WeakMap,he=new WeakMap,pe=new WeakMap,de=new WeakSet,fe=function(e,t){const n=ye(this,de,"m",me).call(this,e);return n&&("show"==t?ye(this,de,"m",we).call(this,n):ye(this,de,"m",ge).call(this,n),ye(this,pe,"f")&&ye(this,ue,"f").dispatchGovisEvent(ye(this,he,"f"),"onGovisFormFieldNoOptions")),!!n},me=function(e){return e.closest("hr[id],option[value]")},we=function(e){ye(this,ue,"f").show(e),e.getAttribute("data-element-disabled")?(e.removeAttribute("data-element-disabled"),e.disabled=!0):e.disabled=!1},ge=function(e){e.disabled=!0,e.selected=!1,ye(this,ue,"f").hide(e)};var Ee,Pe,De,Fe=function(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},Te=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Se{constructor(e,t,n){Ee.add(this),Pe.set(this,void 0),Fe(this,Pe,e,"f"),t.addEventListener("onGovisFormFieldShow",(e=>{var i=Te(this,Ee,"m",De).call(this,e.target);if(i){e.preventDefault(),e.stopPropagation(),Te(this,Pe,"f").show(i);const o=i.closest("li");o&&Te(this,Pe,"f").show(o),i.getAttribute("data-element-disabled")?(i.removeAttribute("data-element-disabled"),i.disabled=!0):i.disabled=!1,n&&Te(this,Pe,"f").dispatchGovisEvent(t,"onGovisFormFieldNoOptions")}})),t.addEventListener("onGovisFormFieldHide",(e=>{e.preventDefault(),e.stopPropagation();var i=Te(this,Ee,"m",De).call(this,e.target);if(i){i.disabled=!0,Te(this,Pe,"f").hide(i);const e=i.closest("li");e&&Te(this,Pe,"f").hide(e),n&&Te(this,Pe,"f").dispatchGovisEvent(t,"onGovisFormFieldNoOptions")}}))}}Pe=new WeakMap,Ee=new WeakSet,De=function(e){return e.closest("input[value]")};var Ce,Ae,Oe,je,Ie=function(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},ke=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class xe{constructor(e,t){Ce.add(this),Ae.set(this,void 0),Oe.set(this,void 0),Ie(this,Ae,t,"f"),Ie(this,Oe,e,"f");const n=document.getElementById(e.id);if(n)switch(e.noOptionsAction&&ke(this,Ce,"m",je).call(this,n),n.addEventListener("onGovisFormFieldShow",(t=>{if(t.detail.component){t.preventDefault(),t.stopPropagation();var n=e.groupid||e.id+"-group",i=document.getElementById(n);i&&ke(this,Ae,"f").show(i)}})),n.addEventListener("onGovisFormFieldHide",(t=>{if(t.detail.component){t.preventDefault(),t.stopPropagation();var n=e.groupid||e.id+"-group",i=document.getElementById(n);i&&ke(this,Ae,"f").hide(i)}})),e.type){case"select":case"groupedselect":case"servercombo":new be(ke(this,Ae,"f"),n,!!e.noOptionsAction);break;case"checkbox":case"radio":new Se(ke(this,Ae,"f"),n,!!e.noOptionsAction)}}}Ae=new WeakMap,Oe=new WeakMap,Ce=new WeakSet,je=function(e){e.addEventListener("onGovisFormFieldNoOptions",(t=>{t.preventDefault(),t.stopPropagation();const n=ke(this,Oe,"f").type,i=["select","groupedselect","servercombo"].includes(n),o=e.querySelectorAll(i?"option":'input[type="'+n+'"]'),r=!Array.from(o).some((e=>"none"!=e.style.display));switch(ke(this,Oe,"f").noOptionsAction){case"hide":r?ke(this,Ae,"f").isVisible(e)&&ke(this,Ae,"f").dispatchGovisEvent(e,"onGovisFormFieldHide",{detail:{option:!1,component:!0}}):ke(this,Ae,"f").isVisible(e)||ke(this,Ae,"f").dispatchGovisEvent(e,"onGovisFormFieldShow",{detail:{option:!1,component:!0}});break;case"show_message":{const e=document.getElementById(ke(this,Oe,"f").id+"-noOptionsMessage");e&&r==!ke(this,Ae,"f").isVisible(e)&&(e.setAttribute("aria-hidden",r?"false":"true"),ke(this,Ae,"f").setHidden(e,!r));break}}}))};var Le,Me,qe,$e=function(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},Ve=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Ge{constructor(e){Le.add(this),Me.set(this,void 0),$e(this,Me,new le,"f"),Ve(this,Le,"m",qe).call(this,e)}setVisibilityListeners(e){new xe(e,Ve(this,Me,"f"))}}Me=new WeakMap,Le=new WeakSet,qe=function(e){e.querySelectorAll(".js-rule-visibility").forEach((e=>{const t=e.getAttribute("id");this.setVisibilityListeners({id:t,groupid:e.getAttribute("data-group-id")||t})}))};var Re,He,We,Be,Ye=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class _e{constructor(e){Re.add(this),e.querySelectorAll(".js-input--radio-with-dynamic-option").forEach((t=>{t.addEventListener("change",(t=>Ye(this,Re,"m",Be).call(this,e,t.target)));const n=Ye(this,Re,"m",He).call(this,t);n.addEventListener("onGovisFormFieldShow",(t=>Ye(this,Re,"m",We).call(this,e,t.target))),n.addEventListener("onGovisFormFieldHide",(t=>{Ye(this,Re,"m",We).call(this,e,t.target)}))}))}}Re=new WeakSet,He=function(e){return e.querySelector(".js-input--radio-dynamic-option")},We=function(e,t){const n=`${t.value}-text`,i=e.querySelector(`[id=${n}-group]`),o=i.querySelector(`[id=${n}]`);t.checked?(i.removeAttribute("hidden"),o.removeAttribute("disabled"),o.focus()):(i.setAttribute("hidden",""),o.setAttribute("disabled",""))}
1,Be=function(e,t){if("radio"===t.type){const n=t.closest(".js-input--radio-with-dynamic-option");Ye(this,Re,"m",We).call(this,e,Ye(this,Re,"m",He).call(this,n))}};var Ne=function(e,t){const i=e.components.form,o=globalThis.Validator&&globalThis.Validator.get(i),r=e=>{const t=e.getAttribute("id"),n=e.getAttribute("name");return t?`[id="${t}"]`:`[name="${n}"]`};["a11ydate","birthdate","date","text"].forEach((s=>{i.querySelectorAll(`.js-date-${s}`).forEach((a=>{const c=o?o.getRules(a):{},l=new re(s,c).getRestrictions(),d={data:Object.assign(Object.assign({},l),{selector:`#${i.getAttribute("id")} ${r(a)}`})};"accessibilitydate"!==s&&n().datePicker.init(d.data);const u=a.getAttribute("id");u&&t.hasOwnProperty(u)&&t[u](e,d)}))}))};const Ue=e=>window[`form${e}`],Ke="govis.module.form".split(".").reduce(((e,t)=>(e[t]||(e[t]={}),e[t])),globalThis);Ke.hasOwnProperty("init")||function(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}(Ke,{init:function(e){const t=i(e),r=Ue(e.formId);r._innerVars={visibility:new Ge(t)},new _e(t),(e=>{globalThis.GovisUIFormRule&&(Ue(e.formId)._innerVars.rule=new globalThis.GovisUIFormRule(e.components.form,e.components.submitContainer,e.components.submitButton))})(e),e.validation&&globalThis.Validator.validate(t,Object.assign({langCode:e.langCode,submitHandler:()=>((e=>{e.confirmationprompt?n().showA11yDialog({dialogClass:`js-form-builder-confirm-dialog-${e.formId}`},(()=>{N(e)})):N(e)})(e),!1)},e.validation)),e.showReset&&(r.reset=[]);for(let e=0;e<r.executeFn.length;e++)try{this[r.executeFn[e].name].apply(this,[...r.executeFn[e].args,r._innerVars])}catch(e){console.error(e)}var s,a;!function(e){const t=i(e);t.addEventListener("govisFormClearErrors",(()=>{var e,n;null===(n=null===(e=t.closest(".js-form-builder"))||void 0===e?void 0:e.querySelector(".box--error"))||void 0===n||n.remove()})),t.addEventListener("govisFormShowHiddenErrors",(t=>{x(e,t.detail.errors)}))}(e),t.addEventListener("reset",(()=>{const e=r.hasOwnProperty("reset")?r.reset.length:0;for(let t=0;t<e;t++)r.reset[t]()})),Ne(e,r.dates),this._initUploaders(e,t),e.componentTypes&&e.componentTypes.signature&&(s=t,a=Ue(e.formId).signatures,window.helperJs.executeScript({executeFn:()=>{const e=s.id;b.instances[e]=[];for(let t=0;t<a.length;t++){const n=a[t];n.instance=E(s.querySelector(`[id="${n.id}-group"]`)),b.instances[e].push(n)}b.hasResizeListener||(window.addEventListener("resize",(()=>{const e=b.instances;for(let t in e)e.hasOwnProperty(t)&&F(e[t])})),b.hasResizeListener=!0)},resources:[{alias:"lib",name:"signature-pad",isLoadedFn:()=>window.SignaturePad}]}));for(let t=0;t<r.afterInitFn.length;t++)try{r.afterInitFn[t].call(this,e)}catch(e){console.error(e)}t.addEventListener("focusout",(e=>{const t=e.target;t&&o(t,t.value)}))},initServices:e=>{const t=Ue(e);t&&m(t.services||{})},prepareValue:o,initWysiwyg:function(e,t){var n;const i=t.editor,o=i.editorId;(t.externalPlugins&&window.CKEDITOR.plugins.addExternal(t.externalPlugins.name,t.externalPlugins.link,""),t.extraPlugins&&window.CKEDITOR.on("instanceCreated",(function(e){var n=t.extraPlugins;n&&e.editor.name==o&&e.editor.on("customConfigLoaded",(function(e){e.editor.config.extraPlugins?e.editor.config.extraPlugins+=","+n:e.editor.config.extraPlugins=n}))})),i.toolbar.length)&&(i.language=e.langCode,window.CKEDITOR.replace(o,i).on("change",(e=>{const t=document.getElementById(o);t&&(t.value=e.editor.getData())})));if(e.showReset){const t=(null===(n=document.getElementById(o))||void 0===n?void 0:n.value)||"";Ue(e.formId).reset.push((function(){window.CKEDITOR.instances.hasOwnProperty(o)&&window.CKEDITOR.instances[o].setData(t,(function(){this.updateElement()}))}))}},_initUploaders:function({uploadUrl:e,langCode:t,formId:n},i){const o=Ue(n).files;i.querySelectorAll(".js-file").forEach((n=>{const i=n.id,r=o[i]||{};globalThis.createUploader(n.id,Object.assign({uploadUrl:e,langCode:t},r))}))},setVisibilityListeners:function(e,{visibility:t}){t.setVisibilityListeners(e)},setRequiredListeners:function(e,{rule:t}){t&&t.setRequiredListeners(e)}}),globalThis.FormDateOffset=K})();
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.