PageSourceSearch

https://www.roskilde.dk/_nuxt/D7nDIElH.js

js roskilde.dk collected 2026-09-24 09:26:14 UTC 43,047 bytes, 1 lines download raw bytes

1import{C as e,D as t,E as l,Et as a,Gt as o,J as i,Lt as n,M as s,N as r,Nt as d,R as u,St as c,T as p,Tt as f,_ as m,_t as v,ct as h,dt as g,fn as b,hn as y,it as x,nt as _,pn as k,pt as C,st as T,tt as w,w as I,wt as $}from"./B8XHxhss.js";import{D as V,Et as S,Ht as L,It as q,Nt as M,Rt as A,Tt as E,_ as U,bt as O,dt as F,j,pt as z,st as P,xt as R,zt as H}from"#entry";import{t as N}from"./DnRsJ2ze.js";import{t as D}from"./CB9WeAtJ.js";import{t as B}from"./Dcux_0w4.js";import{t as K}from"./tKPW4sCS.js";import{t as G}from"./Due2nrpw.js";import{a as J,i as W,n as Y,o as X,r as Q,s as Z,t as ee}from"./C8zoISF_2.js";import{t as te}from"./C486Nj6E2.js";import{t as le}from"./KHXGd_cr2.js";var ae=["id","data-theme","data-size","data-sitekey"],oe=["textContent"],ie=Object.assign({inheritAttrs:!1},{__name:"InputRecaptcha2",props:{id:{type:[String,Number]},name:{type:String,default:void 0},required:{type:Boolean,default:!1},requiredLabelAppendage:{type:String,default:""},label:{type:String,default:void 0},helpText:{type:String,default:null},modelValue:{type:String,default:void 0},errors:{type:Array,default:()=>[]},theme:{type:String,default:""},size:{type:String,default:""}},emits:["update:modelValue"],setup(l,{emit:a}){const s=M(),r=a,d=l,u=n(null),c=n(),m=e({get:()=>d.modelValue??c.value,set(e){c.value=e,r("update:modelValue",e)}}),h=v(),g=e(()=>d.id&&"string"==typeof d.id?d.id:"number"==typeof d.id?`input-${d.id}`:`input-${h}`);O(()=>({script:[s.public?.recaptcha2?.publicKey&&u.value&&{src:"https://www.google.com/recaptcha/api.js",async:!0,defer:!0,type:"application/javascript"}]}));const b=n(null);function k(){const e=u.value?.querySelector('textarea[id="g-recaptcha-response"]');e&&e.value!==m.value&&(m.value=e.value)}return w(()=>{if(u.value&&(b.value=new MutationObserver(k),k(),b.value.observe(u.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),"grecaptcha"in window))try{grecaptcha.reset()}catch(e){}}),_(()=>{b.value&&(b.value.disconnect(),b.value=null)}),(e,a)=>{const n=G;return x(),p(n,i({"base-id":o(g),class:"c-input-recaptcha-2"},("useAttrsSome"in e?e.useAttrsSome:o(K))(["class","style","aria-label","data-n-ids"],e.$attrs),{label:l.label,"label-is-label":!1,"help-text":l.helpText,required:l.required,"required-label-appendage":l.requiredLabelAppendage,errors:l.errors}),{default:f(()=>[a[0]||(C(-1,!0),(a[0]=o(s).public?.recaptcha2?.publicKey?(x(),t("div",{key:0,id:o(g),ref_key:"$el",ref:u,class:"g-recaptcha","data-theme":l.theme||"","data-size":l.size||"","data-sitekey":o(s).public?.recaptcha2?.publicKey},null,8,ae)):(x(),t("p",{key:1,textContent:y(("localize"in e?e.localize:o(U))("PHRASE_RECAPTCHA_PUBLIC_KEY_MISSING",{capitalize:!0}))},null,8,oe))).cacheIndex=0,C(1),a[0])]),_:1},16,["base-id","label","help-text","required","required-label-appendage","errors"])}}});var ne=Object.assign(j({},[["render",function(e,t){const l=ie;return x(),p(l,{class:"c-form-recaptcha2"})}]]),{__name:"FormRecaptcha2"}),se=["id","name","value","required"],re=["textContent"],de=Object.assign({inheritAttrs:!1},{__name:"InputRecaptcha3",props:{id:{type:[String,Number]},name:{type:String,default:void 0},required:{type:Boolean,default:!0},requiredLabelAppendage:{type:String,default:""},label:{type:String,default:void 0},helpText:{type:String,default:null},modelValue:{type:String,default:void 0},errors:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{emit:s}){const r=M(),d=s,u=a,c=n(null),m=n(null),h=n(),g=e({get:()=>u.modelValue??h.value,set(e){h.value=e,d("update:modelValue",e)}}),b=v(),k=e(()=>u.id&&"string"==typeof u.id?u.id:"number"==typeof u.id?`input-${u.id}`:`input-${b}`);O(()=>({script:[r.public?.recaptcha3?.siteKey&&c.value&&{async:!0,defer:!0,src:"https://www.google.com/recaptcha/api.js?render=explicit",type:"application/javascript",onload:I}]}));let T=null;function I(){if("grecaptcha"in window){let e=-1;function t(){e=grecaptcha.render(m.value,{badge:"inline",size:"invisible",sitekey:r.public?.recaptcha3?.siteKey}),l()}function l(){grecaptcha.execute(e,{action:"umbracoform_submit"}).then(e=>{g.value=e}).catch(e=>{}),T=setTimeout(l,6e4)}grecaptcha.ready(t)}}return w(I),_(()=>{const e=document.querySelector(".c-input-recaptcha-3"),t=document.querySelector(".grecaptcha-badge");!e&&t&&t.remove(),window.clearTimeout(T)}),(e,n)=>{const s=G;return x(),p(s,i({"base-id":o(k),class:["c-input-recaptcha-3",{"c-input-recaptcha-3--sr-only":o(r).public?.recaptcha3?.siteKey&&!a.errors?.length&&!a.helpText}]},("useAttrsSome"in e?e.useAttrsSome:o(K))(["class","style","aria-label","data-n-ids"],e.$attrs),{label:a.label,"label-is-label":!1,"help-text":a.helpText,required:a.required,"required-label-appendage":a.requiredLabelAppendage,errors:a.errors}),{default:f(()=>[n[0]||(C(-1,!0),(n[0]=o(r).public?.recaptcha3?.siteKey?(x(),t("div",{key:0,ref_key:"container",ref:m},null,512)):l("",!0)).cacheIndex=0,C(1),n[0]),o(r).public?.recaptcha3?.siteKey?(x(),t("input",{key:1,id:o(k),ref_key:"$el",ref:c,type:"hidden",name:a.name,value:o(g),required:a.required},null,8,se)):(x(),t("p",{key:2,textContent:y(("localize"in e?e.localize:o(U))("PHRASE_RECAPTCHA_SITE_KEY_MISSING",{capitalize:!0}))},null,8,re))]),_:1},16,["base-id","class","label","help-text","required","required-label-appendage","errors"])}}});var ue=Object.assign(j({},[["render",function(e,t){const l=de;return x(),p(l,{class:"c-form-recaptcha3"})}]]),{__name:"FormRecaptcha3"});var ce={key:0,class:"c-umbraco-forms__loader"},pe={key:1,class:"c-umbraco-forms__success"},fe=["textContent"],me=["innerHTML"],ve={key:2,class:"c-umbraco-forms__closed"},he=["textContent"],ge=["id","name","action"],be={class:"c-umbraco-forms__title"},ye={key:0,class:"c-umbraco-forms__error",role:"alert"},xe={key:0},_e=["hidden"],ke={class:"c-umbraco-forms__page-caption"},Ce={class:"c-umbraco-forms__legend"},Te=["hidden"],we=["for"],Ie=["textContent"],$e=["textContent"],Ve=["onUpdate:modelValue","onInvalid"],Se={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Le=["for"],qe=["textContent"],Me=["textContent"],Ae=["onUpdate:modelValue"],Ee={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Ue=["for"],Oe=["textContent"],Fe=["textContent"],je=["onUpdate:modelValue"],ze={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Pe=["for"],Re=["textContent"],He=["textContent"],Ne=["onUpdate:modelValue"],De={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Be=["for"],Ke=["textContent"],Ge=["textContent"],Je=["onUpdate:modelValue"],We={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Ye=["for"],Xe=["textContent"],Qe=["textContent"],Ze=["onUpdate:modelValue"],et={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},tt=["for"],lt=["textContent"],at=["textContent"],ot=["onUpdate:modelValue"],it={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},nt=["for"],st=["textContent"],rt=["textContent"],dt=["onUpdate:modelValue"],ut={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"}
1,ct=["for"],pt=["textContent"],ft=["textContent"],mt=["onUpdate:modelValue"],vt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},ht=["for"],gt=["textContent"],bt=["textContent"],yt=["onUpdate:modelValue"],xt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},_t=["for"],kt=["textContent"],Ct=["textContent"],Tt=["onUpdate:modelValue","rows","onInvalid"],wt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},It=["for"],$t=["textContent"],Vt=["textContent"],St=["onUpdate:modelValue"],Lt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},qt=["for"],Mt=["textContent"],At=["textContent"],Et=["onUpdate:modelValue"],Ut={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Ot=["onUpdate:modelValue"],Ft=["for"],jt=["textContent"],zt=["textContent"],Pt=["onUpdate:modelValue"],Rt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Ht={key:0,class:"c-umbraco-forms__field-caption"},Nt=["textContent"],Dt=["textContent"],Bt=["value","onChange"],Kt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Gt={key:0,class:"c-umbraco-forms__field-caption"},Jt=["textContent"],Wt=["textContent"],Yt=["value","onChange"],Xt={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},Qt=["for"],Zt=["textContent"],el=["textContent"],tl=["onUpdate:modelValue"],ll={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},al=["for"],ol=["textContent"],il=["textContent"],nl=["onUpdate:modelValue"],sl=["value"],rl={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},dl=["for"],ul=["textContent"],cl=["textContent"],pl=["accept"],fl={key:2,class:"c-umbraco-forms__field-error-message",role:"alert"},ml=["id","innerHTML"],vl=["id"],hl={class:"c-umbraco-forms__buttons"},gl=["hidden"],bl=["hidden"],yl=["hidden","value"],xl={__name:"UmbracoForms",props:{content:Object,definitionsEndpoint:String,postEndpoint:String,statusEndpoint:String,useMagicStrings:[Boolean,Object],gotoPageOnSubmitRoute:{type:[String,Boolean],default:!0,validate:e=>"string"==typeof e||"boolean"==typeof e||void 0===e},bodyProps:Object,id:String,name:String},emits:["error","status","success"],async setup(r,{emit:v}){let _,C;const V=v,M=r,U=n(null),O=n(0),j=n(0),N=n({}),D=n(null),B=n(!1),K=z(`umbraco-forms_${M.definitionsEndpoint}/${M.postEndpoint}_is-loading`,()=>!0),G=z(`umbraco-forms_${M.definitionsEndpoint}/${M.postEndpoint}`,()=>null),J=`umbraco-forms_${M.definitionsEndpoint}/${M.postEndpoint}_status`,W=M.statusEndpoint?z(J,()=>null):n(null),Y=F();G.value??=([_,C]=$(()=>R(M.definitionsEndpoint)),_=await _,C(),_),M.statusEndpoint&&(W.value??=([_,C]=$(()=>El()),_=await _,C(),_)),M.useMagicStrings&&function(e,t){t="object"==typeof t?t:{};const l=S(),a=P();let i="string"==typeof e?e:JSON.stringify(o(e));
1[...new Set(i.match(/@\w+/g)||[])].forEach(e=>{const o=e.substring(1);i=o in t?i.replaceAll(`[@${o}]`,t[o]):o in l.query?i.replaceAll(`[@${o}]`,l.query[o]):"Url"===o?i.replaceAll(`[@${o}]`,a.href+a.search):i.replaceAll(`[@${o}]`,"")}),"string"==typeof e||(d(e)?e.value=JSON.parse(i):e=JSON.parse(i))}(G,"object"==typeof M.useMagicStrings?M.useMagicStrings:{});const X=G.value,{pages:Q,hideFieldValidation:Z,showValidationSummary:ee,messageOnSubmitIsHtml:te,messageOnSubmit:le,gotoPageOnSubmitRoute:ae,submitLabel:oe,nextLabel:ie,previousLabel:ne}=X,se=e(()=>"string"==typeof M.gotoPageOnSubmitRoute?M.gotoPageOnSubmitRoute:!1===M.gotoPageOnSubmitRoute?null:ae?.path),re=e(()=>!1===W.value?.isOpen),de=[];Q?.forEach?.((e,t)=>{e.fieldsets.forEach(e=>{e.columns.forEach(e=>{e.fields.forEach(e=>{de.push({...e,page:t})})})})});const ue={};de.forEach(e=>{ue[e.id]={alias:e.alias,condition:e.condition,required:e.required,value:e.settings?.defaultValue?e.settings?.defaultValue:"",type:e.type,showIndicator:"NoIndicator"===X.fieldIndicationType||"MarkMandatoryFields"===X.fieldIndicationType?e.required:!e.required}});const xl=n({});xl.value=ue;const _l=n({});_l.value=(()=>{const e={};return de.forEach(t=>{e[t.id]={...t.condition,visible:!1}}),e})();const kl=n([]);kl.value=(()=>{const e=[];return de.forEach(t=>{if(t.condition?.rules&&0!==t.condition.rules.length){const l=t.condition?.rules.map(e=>({...e,dependant:t.id,conditionMet:!1}));e.push(...l)}}),e})(),c(()=>xl.value,e=>{ql(),Cl(e),wl()},{deep:!0});const Cl=e=>{kl.value.forEach(t=>{Tl(t,e)})},Tl=(e,t)=>{"Is"===e.operator&&(t[e.field].value===e.value?e.conditionMet=!0:e.conditionMet=!1),"IsNot"===e.operator&&(t[e.field].value!==e.value?e.conditionMet=!0:e.conditionMet=!1),"GreaterThen"===e.operator&&(""!==t[e.field].value&&parseInt(t[e.field].value)>parseInt(e.value)?e.conditionMet=!0:e.conditionMet=!1),"LessThen"===e.operator&&(""!==t[e.field].value&&parseInt(t[e.field].value)<parseInt(e.value)?e.conditionMet=!0:e.conditionMet=!1),"Contains"===e.operator&&(t[e.field].value.includes(e.value)?e.conditionMet=!0:e.conditionMet=!1),"EndsWith"===e.operator&&(t[e.field].value.endsWith(e.value)?e.conditionMet=!0:e.conditionMet=!1),"StartsWith"===e.operator&&(t[e.field].value.startsWith(e.value)?e.conditionMet=!0:e.conditionMet=!1)},wl=()=>{for(const[e,t]of Object.entries(_l.value))Il(e,t.actionType,t.logicType)},Il=(e,t,l)=>{const a=kl.value.filter(t=>t.dependant===e);void 0===t||void 0===l?_l.value[e].visible=!0:"Show"===t&&"All"===l?void 0===a.find(e=>!1===e.conditionMet)?_l.value[e].visible=!0:_l.value[e].visible=!1:"Show"===t&&"Any"===l?void 0===a.find(e=>!0===e.conditionMet)?_l.value[e].visible=!1:_l.value[e].visible=!0:"Hide"===t&&"All"===l?void 0===a.find(e=>!1===e.conditionMet)?_l.value[e].visible=!1:_l.value[e].visible=!0:"Hide"===t&&"Any"===l&&(void 0===a.find(e=>!0===e.conditionMet)?_l.value[e].visible=!0:_l.value[e].visible=!1)},$l=e=>({id:`uf-${e.id}`,modelValue:xl.value[e.id].value,required:e.required,indicator:X.indicator,fieldName:e.alias,field:{...e,settings:{...e.settings,defaultValue:"Checkbox"==e.type.name?"on":e.settings.defaultValue}},setModelValue:Ml,setModelValueForId:Al,errors:N.value[e.alias],showIndicator:"NoIndicator"===X.fieldIndicationType||"MarkMandatoryFields"===X.fieldIndicationType?e.required:!e.required,showLabel:e.settings.showLabel,pattern:e.pattern,placeholder:e.placeholder||e.settings.placeholder,onInvalid:Ll}),Vl=e=>({id:`uf-${e.id}`,required:e.required,name:e.alias,pattern:e.pattern?e.pattern:null,maxlength:e.settings.maximumLength?e.settings.maximumLength:null,placeholder:e.placeholder||e.settings.placeholder?e.placeholder||e.settings.placeholder:null}),Sl=new Map,Ll=(e,t)=>{e?.target&&(e.target.setCustomValidity(""),e.target.validity.patternMismatch&&t?.patternInvalidErrorMessage&&(Sl.set(t.alias,e.target),e.target.setCustomValidity(t.patternInvalidErrorMessage)),e.target.validity.valueMissing&&t?.requiredErrorMessage&&(Sl.set(t.alias,e.target),e.target.setCustomValidity(t.requiredErrorMessage)))},ql=()=>{Sl.forEach((e,t,l)=>{e.setCustomValidity(""),Sl.delete(t)})},Ml=e=>{if("object"==typeof e){const t=e.target?.id?.substring?.(3);t&&(xl.value[t].value=e.target.value)}},Al=(e,t)=>
1{e&&(xl.value[e].value=t)};async function El(){try{const e=await R(M.statusEndpoint);return V("status",e),e}catch{return null}}const Ul=async()=>{if(!K.value){const l=new FormData(U.value);K.value=!0,N.value={},D.value=null;let a=[];for(const[e,t]of Object.entries(xl.value))"File upload"!==t.type.name&&("Multiple choice"===t.type.name?a.push(t.alias):Array.isArray(t.value)?l.set(t.alias,t.value.toString()):""!==t.value&&l.set(t.alias,t.value));const o={...M.bodyProps||{},values:{...M.bodyProps?.values||{}}};for(const[n,s]of l)if(Ol(s)){var e=s.name,t=await Fl(s);o.values[n]||(o.values[n]=[]),o.values[n].push({fileName:e,fileContents:t})}else a.includes(n)?o.values[n]=l.getAll(n):o.values[n]=s;const i=await R(M.postEndpoint,{method:"POST",headers:{...Y,"Content-Type":"application/json"},body:JSON.stringify(o)});if(202===i.status||204===i.status){K.value=!1,B.value=!0;const e=Object.assign({},i);(se.value||ae?.path)&&(e.redirectUrl=se.value||ae?.path),se.value&&E(se.value),V("success",e)}else if(400===i.status||422===i.status){K.value=!1,Object.keys(i.errors||{}).length?(N.value=i.errors,i.errors[""]&&(D.value=i.errors[""][0])):D.value=i?.title;let e=null;for(const[t]of Object.entries(i.errors||{})){const l=de.find(e=>e.alias===t);l&&(null===e||l.page<e)&&(e=l.page)}null!==e&&jl(e),V("error",i),M.statusEndpoint&&i.errors?.[""]&&(W.value=await El())}else K.value=!1,D.value=i?.title||i?.message||"An error occurred",V("error",i)}},Ol=e=>"File"in window&&e instanceof File,Fl=e=>new Promise((t,l)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>{const{result:o}=a;"string"==typeof o?t("data:"+e.type+";base64,"+o.split(",")[1]):l("Error reading file as base64.")},a.onerror=e=>l(e)}),jl=e=>{if(K.value=!0,"number"==typeof e&&(O.value=e),"next"===e&&Q.length>O.value+1){if(!U.value.reportValidity())return void(K.value=!1);O.value++,j.value++}"previous"===e&&O.value>0&&O.value--,K.value=!1};G.value&&(Cl(xl.value),wl(),K.value=!1);const zl=e(()=>Q&&Q[O.value]?Q[O.value]?.caption||null:[]);return w(()=>{Cl(xl.value),wl(),K.value=!1}),(e,n)=>(x(),t("div",{class:b(["c-umbraco-forms",[o(K)?"c-umbraco-forms--loading":"",o(re)?"c-umbraco-forms--closed":""]])},[o(K)?(x(),t("div",ce,[h(e.$slots,"formIsLoading")])):l("",!0),o(B)?(x(),t("div",pe,[h(e.$slots,"formSuccess",k(u({messageOnSubmitIsHtml:o(te),messageOnSubmit:o(le)})),()=>[o(te)?l("",!0):(x(),t("div",{key:0,class:"c-umbraco-forms__success-text",role:"status",textContent:y(o(le))},null,8,fe)),o(te)?(x(),t("div",{key:1,class:"c-umbraco-forms__success-html",role:"status",innerHTML:o(le)},null,8,me)):l("",!0)])])):l("",!0),o(re)?(x(),t("div",ve,[h(e.$slots,"formClosed",k(u({...o(W)})),()=>[o(W).message?(x(),t("div",{key:0,class:"c-umbraco-forms__closed-text",role:"status",textContent:y(o(W).message)},null,8,he)):l("",!0)])])):l("",!0),o(B)||o(re)?l("",!0):(x(),t("form",{key:3,id:r.id,ref_key:"formEl",ref:U,name:r.name,action:r.postEndpoint,method:"POST",onSubmit:L(Ul,["prevent"])},[h(e.$slots,"formHeader",k(u({previousLabel:o(ne),nextLabel:o(ie),submitLabel:o(oe),changePage:jl,currentPage:o(O),currentPageFieldset:o(zl),pageCount:o(Q).length,name:o(X).name,formErrors:o(N)})),()=>[h(e.$slots,"title",k(u({name:o(X).name})),()=>[I("div",be,y(o(X).name),1)])]),o(D)||Object.keys(o(N)).length&&o(ee)?(x(),t("div",ye,[h(e.$slots,"errorBox",k(u({majorFormError:o(D),formErrors:o(N)})),()=>[s(y(o(D)||"oplistede fejl")+" ",1),o(N)?.length?(x(),t("ul",xe,[(x(!0),t(m,null,T(o(N),(e,l)=>(x(),t("li",{key:l},y(e),1))),128))])):l("",!0)])])):l("",!0),(x(!0),t(m,null,T(o(Q)?.slice?.(0,o(j)+1)??[],(n,r)=>(x(),t("section",{key:r,class:b(["c-umbraco-forms__page",o(O)!==r?"c-umbraco-forms__page--hidden":""]),hidden:o(O)!==r?"hidden":null},[h(e.$slots,"pageHeader",{caption:n.caption},()=>[I("div",ke,y(n.caption),1)]),(x(!0),t(m,null,T(n.fieldsets,(n,r)=>(x(),t("fieldset",{key:r,class:"c-umbraco-forms__fieldset"},[h(e.$slots,"legend",{caption:n.caption},()=>[I("legend",Ce,y(n.caption),1)]),(x(!0),t(m,null,T(n.columns,(n,r)=>(x(),t("div",{key:r,class:b(["c-umbraco-forms__column",[`c-umbraco-forms__column--col-span--${n.width}`]])},[(x(!0),t(m,null,T(n.fields?.filter?.(e=>o(_l)[e.id].visible),n=>(x(),t("div",{key:n.id,hidden:o(_l)[n.id].visible?null:"hidden",class:b(["c-umbraco-forms__field",`c-umbraco-forms__field--name--${n.type.name.replace(/\s+/g,"-").toLowerCase()}`,n.settings.fieldType?`c-umbraco-forms__field--type--${n.settings.fieldType}`:"",{"c-umbraco-forms__field--hidden":!o(_l)[n.id].visible}])},["Short answer"===n.type.name?(x(),t(m,{key:0},["text"===n.settings.fieldType?h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Ie)):l("",!0)],8,we)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,$e)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"text"},{ref_for:!0},Vl(n),{onInvalid:e=>Ll(e,n)}),null,16,Ve),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",Se,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,0):"week"===n.settings.fieldType?h(e.$slots,"week",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"date",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,qe)):l("",!0)],8,Le)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Me)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"week"},{ref_for:!0},Vl(n)),null,16,Ae),[[H,o(xl)[n.id].value]]),o(N)[n.alias]?(x(),t("div",Ee,y(o(N)[n.alias][0]),1)):l("",!0)])])],void 0,1):"date"===n.settings.fieldType?h(e.$slots,"date",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Oe)):l("",!0)],8,Ue)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Fe)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"date"},{ref_for:!0},Vl(n)),null,16,je),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",ze,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,2):"datetime-local"===n.settings.fieldType?h(e.$slots,"datetimeLocal",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"date",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Re)):l("",!0)],8,Pe)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,He)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"datetime-local"},{ref_for:!0},Vl(n)),null,16,Ne),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",De,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,3):"email"===n.settings.fieldType?h(e.$slots,"email",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Ke)):l("",!0)],8,Be)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Ge)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"email"},{ref_for:!0},Vl(n)),null,16,Je),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",We,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,4):"tel"===n.settings.fieldType?h(e.$slots,"tel",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Xe)):l("",!0)],8,Ye)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Qe)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"tel"},{ref_for:!0},Vl(n)),null,16,Ze),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",et,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,5):"number"===n.settings.fieldType?h(e.$slots,"number",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,lt)):l("",!0)],8,tt)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,at)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"number"},{ref_for:!0},Vl(n)),null,16,ot),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",it,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,6):"time"===n.settings.fieldType?h(e.$slots,"time",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,st)):l("",!0)],8,nt)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,rt)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"time"},{ref_for:!0},Vl(n)),null,16,dt),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",ut,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,7):"url"===n.settings.fieldType?h(e.$slots,"url",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,pt)):l("",!0)],8,ct)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,ft)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"url"},{ref_for:!0},Vl(n)),null,16,mt),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",vt,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,8):h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,gt)):l("",!0)],8,ht)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,bt)):l("",!0),a(I("input",i({ref_for:!0},Vl(n),{"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"text"}),null,16,yt),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",xt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,9)],64)):"Long answer"===n.type.name?h(e.$slots,"textArea",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,kt)):l("",!0)],8,_t)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Ct)):l("",!0),a(I("textarea",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e},{ref_for:!0},Vl(n),{rows:n.settings.numberOfRows,onInvalid:e=>Ll(e,n)}),null,16,Tt),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",wt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,1):"Date"===n.type.name?h(e.$slots,"date",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,$t)):l("",!0)],8,It)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Vt)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"date"},{ref_for:!0},Vl(n)),null,16,St),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",Lt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,2):"Password"===n.type.name?h(e.$slots,"password",i({ref_for:!0},$l(n)),()=>[h(e.$slots,"text",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Mt)):l("",!0)],8,qt)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,At)):l("",!0),a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"password"},{ref_for:!0},Vl(n)),null,16,Et),[[H,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",Ut,y(o(N)[n.alias][0]),1)):l("",!0)])],void 0,3):"Hidden"===n.type.name?h(e.$slots,"hidden",i({ref_for:!0},$l(n)),()=>[a(I("input",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"hidden"},{ref_for:!0},Vl(n)),null,16,Ot),[[H,o(xl)[n.id].value]])],void 0,4):"Checkbox"===n.type.name?h(e.$slots,"checkbox",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,jt)):l("",!0)],8,Ft)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,zt)):l("",!0),a(I("input",i({ref_for:!0},Vl(n),{"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"checkbox"}),null,16,Pt),[[q,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",Rt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,5):"Single choice"===n.type.name?h(e.$slots,"radioList",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("p",Ht,[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Nt)):l("",!0)])):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Dt)):l("",!0),(x(!0),t(m,null,T(n.preValues,e=>(x(),t("label",{key:e.value},[I("input",i({ref_for:!0},Vl(n),{type:"radio",value:e.value,onChange:()=>((e,t)=>{xl.value[e.id].value=t})(n,e.value)}),null,16,Bt),s(" "+y(e.caption),1)]))),128)),o(N)[n.alias]&&!o(Z)?(x(),t("div",Kt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,6):"Multiple choice"===n.type.name?h(e.$slots,"checkboxList",i({ref_for:!0},$l(n)),()=>
1["False"!==n.settings.showLabel?(x(),t("p",Gt,[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Jt)):l("",!0)])):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,Wt)):l("",!0),(x(!0),t(m,null,T(n.preValues,e=>(x(),t("label",{key:e.value},[I("input",i({ref_for:!0},Vl(n),{type:"checkbox",value:e.value,onChange:e=>((e,t)=>{if(e.target.checked?(xl.value[t.id].value||(xl.value[t.id].value=[]),xl.value[t.id].value.push(e.target.value)):xl.value[t.id].value=xl.value[t.id].value.filter(t=>t!==e.target.value),t.required){const e=document.querySelectorAll(`[id^='uf-${t.id}']`),l=[...e].some(e=>e.checked);e.forEach(e=>{e.required=!l})}})(e,n)}),null,16,Yt),s(" "+y(e.caption),1)]))),128)),o(N)[n.alias]&&!o(Z)?(x(),t("div",Xt,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,7):"Data Consent"===n.type.name?h(e.$slots,"dataConsent",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,Zt)):l("",!0)],8,Qt)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,el)):l("",!0),a(I("input",i({ref_for:!0},Vl(n),{"onUpdate:modelValue":e=>o(xl)[n.id].value=e,type:"checkbox"}),null,16,tl),[[q,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",ll,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,8):"Dropdown"===n.type.name?h(e.$slots,"select",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,ol)):l("",!0)],8,al)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,il)):l("",!0),a(I("select",i({"onUpdate:modelValue":e=>o(xl)[n.id].value=e},{ref_for:!0},Vl(n)),[(x(!0),t(m,null,T(n.preValues,e=>(x(),t("option",{key:e.value,value:e.value},y(e.caption),9,sl))),128))],16,nl),[[A,o(xl)[n.id].value]]),o(N)[n.alias]&&!o(Z)?(x(),t("div",rl,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,9):"File upload"===n.type.name?h(e.$slots,"file",i({ref_for:!0},$l(n)),()=>["False"!==n.settings.showLabel?(x(),t("label",{key:0,for:`uf-${n.id}`},[s(y(n.caption)+" ",1),o(xl)[n.id].showIndicator?(x(),t("span",{key:0,textContent:y(o(X).indicator)},null,8,ul)):l("",!0)],8,dl)):l("",!0),n.helpText?(x(),t("div",{key:1,class:"c-umbraco-forms__field-help-text",textContent:y(n.helpText)},null,8,cl)):l("",!0),I("input",i({ref_for:!0},Vl(n),{type:"file",accept:n.fileUploadOptions.allowAllUploadExtensions?null:n.fileUploadOptions.allowedUploadExtensions.toString()}),null,16,pl),o(N)[n.alias]&&!o(Z)?(x(),t("div",fl,y(o(N)[n.alias][0]),1)):l("",!0)],void 0,10):"Rich text"===n.type.name?h(e.$slots,"richText",i({ref_for:!0},$l(n)),()=>[I("div",{id:`uf-${n.id}`,innerHTML:n.settings.html},null,8,ml)],void 0,11):"Title and description"===n.type.name?(x(),t("div",{key:12,id:`uf-${n.id}`},[h(e.$slots,"titleDescription",i({ref_for:!0},$l(n)),()=>[(x(),p(g(n.settings.captionTag),null,{default:f(()=>[s(y(n.settings.caption),1)]),_:2},1024)),I("p",null,y(n.settings.bodyText),1)])],8,vl)):"Recaptcha2"===n.type.name?h(e.$slots,"recaptcha2",i({ref_for:!0},$l(n)),void 0,void 0,13):"reCAPTCHA v3 with score"===n.type.name?h(e.$slots,"recaptcha3",i({ref_for:!0},$l(n)),void 0,void 0,14):l("",!0)],10,Te))),128))],2))),128))]))),128))],10,_e))),128)),h(e.$slots,"formFooter",k(u({previousLabel:o(ne),nextLabel:o(ie),submitLabel:o(oe),changePage:jl,currentPage:o(O),pageCount:o(Q).length})),()=>[I("footer",hl,[I("button",{type:"button",class:b(["c-umbraco-forms__button c-umbraco-forms__button--prev",0===o(O)?"c-umbraco-forms__button--hidden":""]),hidden:0===o(O)?"hidden":null,onClick:n[0]||(n[0]=e=>jl("previous"))},y(o(ne)),11,gl),I("button",{type:"button",class:b(["c-umbraco-forms__button c-umbraco-forms__button--next",o(O)===o(Q).length-1?"c-umbraco-forms__button--hidden":""]),hidden:o(O)===o(Q).length-1?"hidden":null,onClick:n[1]||(n[1]=e=>jl("next"))},y(o(ie)),11,bl),I("input",{class:b(["c-umbraco-forms__button c-umbraco-forms__button--submit",o(O)!==o(Q).length-1?"c-umbraco-forms__button--hidden":""]),hidden:o(O)!==o(Q).length-1?"hidden":null,type:"submit",value:o(oe)},null,10,yl)])])],40,ge))],2))}},_l=["id"],kl=["innerHTML"],Cl={class:"w-full bg-surface p-cardInset rounded-xl"},Tl=["innerHTML"],wl={class:"s-rich-text text-caption-md-strong text-danger mb-lg"},Il=["textContent"],$l={key:1},Vl={key:0,class:"mb-sm"},Sl={key:0,class:"text-display-xs text-strong mb-md"},Ll=["innerHTML"],ql={key:0,class:"s-rich-text"},Ml={key:1,class:"whitespace-pre-line"},Al={class:"flex flex-col >=656:flex-row 656:flex-wrap gap-xs mt-md"},El={key:0,class:"mb-md w-full text-subtle"},Ul={role:"status",class:"text-caption-lg-strong"},Ol={class:"mt-4xs text-body-md-strong"}
1,Fl=Object.assign({inheritAttrs:!1},{__name:"BlockListBlocksBlockListForm",props:{id:String,context:String,title:String,label:String,definitionsUrl:String,entriesUrl:String,bodyProps:Object,settings:Object},setup(e){const a=e,d=n(null),u=z(`${a.id}/${a.definitionsUrl}/${a.entriesUrl}-formKey`,()=>0);function c(){u.value+=1}function v(){const e=document.querySelector(`#${a.id}`);e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},100)}function h(e){setTimeout(()=>{const e=d.value?.querySelector?.(".c-umbraco-forms__error");e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},100)}return(a,n)=>{const g=D,b=N,_=Y,k=ee,C=Z,w=X,$=Q,S=J,L=W,q=B,M=ne,A=ue,E=V,O=te,F=le,j=xl;return x(),t("div",i({id:e.id,ref_key:"$el",ref:d,class:["c-block-list-form",[`c-block-list-form--ctx--${e.context}`,a.$attrs.class]]},("useAttrsSome"in a?a.useAttrsSome:o(K))(["style","data-n-ids"],a.$attrs)),[e.title?(x(),p(g,{key:0,class:">=1280:max-w-4/12col",overline:e.label,"long-read-id":e.settings?.includeInToc&&e.id,"long-read-title":e.settings?.includeInToc&&e.title},{default:f(()=>[I("span",{innerHTML:e.title},null,8,kl)]),_:1},8,["overline","long-read-id","long-read-title"])):l("",!0),r(q,{level:e.title?"+0":"-1"},{default:f(()=>[(x(),p(j,{key:o(u),class:">=1280:max-w-4/12col","post-endpoint":e.entriesUrl,"definitions-endpoint":e.definitionsUrl,"body-props":e.bodyProps,"use-magic-strings":"",onSuccess:v,onError:h},{formSuccess:f(({messageOnSubmit:e})=>[I("div",Cl,[r(b,{class:"text-strong text-body-lg-strong"},{default:f(()=>[s(y(("localize"in a?a.localize:o(U))("FORMULAR_SUBMITTED",{capitalize:!0}))+"! ",1)]),_:1}),e?(x(),t("div",{key:0,class:"mt-3xs s-rich-text text-medium text-body-lg-regular",innerHTML:e},null,8,Tl)):l("",!0),I("button",{type:"button",class:"mt-md text-interactive text-body-lg-link underline",onClick:c},y(("localize"in a?a.localize:o(U))("RELOAD_FORM_TO_SUBMIT_AGAIN",{capitalize:!0})),1)])]),formHeader:f(()=>[...n[0]||(n[0]=[s(y(null),-1)])]),errorBox:f(({majorFormError:e,formErrors:i})=>[I("div",wl,[e?(x(),t("p",{key:0,textContent:y(("localize"in a?a.localize:o(U))("ERROR_MESSAGE",{capitalize:!0})+": "+e)},null,8,Il)):l("",!0),i?.length?(x(),t("ul",$l,[(x(!0),t(m,null,T(i,(e,l)=>(x(),t("li",{key:l},y(e),1))),128))])):l("",!0)])]),pageHeader:f(({caption:e})=>[e?(x(),t("header",Vl,[r(b,{class:"text-heading-lg text-strong"},{default:f(()=>[s(y(e),1)]),_:2},1024)])):l("",!0)]),legend:f(({caption:e})=>[e?(x(),t("legend",Sl,y(e),1)):l("",!0)]),text:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(_,i({key:e.id},{type:e.settings?.fieldType,id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,pattern:e.pattern||void 0,placeholder:e.settings?.placeholder,required:e.required,requiredLabelAppendage:l,maxlength:e.settings?.maximumLength||void 0,autocomplete:e.settings?.autocompleteAttribute||void 0,label:e.caption,helpText:e.helpText,errors:a},{onInput:o,onInvalid:n}),null,16,["onInput","onInvalid"]))]),password:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(_,i({key:e.id}
1,{type:e.settings?.fieldType||"password",id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,pattern:e.pattern||void 0,placeholder:e.settings?.placeholder,required:e.required,requiredLabelAppendage:l,maxlength:e.settings?.maximumLength||void 0,autocomplete:e.settings?.autocompleteAttribute||void 0,label:e.caption,helpText:e.helpText,errors:a},{onInput:o,onInvalid:n}),null,16,["onInput","onInvalid"]))]),textArea:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(k,i({key:e.id},{type:e.settings?.fieldType,id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,pattern:e.pattern||void 0,placeholder:e.settings?.placeholder,required:e.required,requiredLabelAppendage:l,rows:e.settings?.numberOfRows,maxlength:e.settings?.maximumLength||void 0,autocomplete:e.settings?.autocompleteAttribute||void 0,label:e.caption,helpText:e.helpText,errors:a},{onInput:o,onInvalid:n}),null,16,["onInput","onInvalid"]))]),date:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(_,i({key:e.id},{type:e.settings?.fieldType||"date",id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,pattern:e.pattern||void 0,placeholder:e.settings?.placeholder,required:e.required,requiredLabelAppendage:l,maxlength:e.settings?.maximumLength||void 0,autocomplete:e.settings?.autocompleteAttribute||void 0,label:e.caption,helpText:e.helpText,errors:a},{onInput:o,onInvalid:n}),null,16,["onInput","onInvalid"]))]),checkbox:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(C,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:t||null,required:e.required,requiredLabelAppendage:l,label:e.caption,helpText:e.helpText,errors:a},{onChange:o,onInvalid:n}),null,16,["onChange","onInvalid"]))]),checkboxList:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValueForId:o,onInvalid:n})=>[(x(),p(w,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,items:e.preValues||[],required:e.required,requiredLabelAppendage:l,label:e.caption,layout:{Horizontal:"row-wrap",Vertical:"col"}[e.settings?.displayLayout]||void 0,helpText:e.helpText,errors:a},{onChange:t=>o(e.id,t),onInvalid:n}),null,16,["onChange","onInvalid"]))]),radioList:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValueForId:o,onInvalid:n})=>[(x(),p($,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,items:e.preValues||[],required:e.required,requiredLabelAppendage:l,label:e.caption,layout:{Horizontal:"row-wrap",Vertical:"col"}[e.settings?.displayLayout]||void 0,helpText:e.helpText,errors:a},{onChange:t=>o(e.id,t),onInvalid:n}),null,16,["onChange","onInvalid"]))]),dataConsent:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(C,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:t||null,required:e.required,requiredLabelAppendage:l,label:e.caption,checkboxLabel:e.settings?.acceptCopy,helpText:e.helpText,errors:a},{onChange:o,onInvalid:n}),null,16,["onChange","onInvalid"]))]),select:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValueForId:o,onInvalid:n})=>[(x(),p(S,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:e.settings?.defaultValue,modelValue:t,items:e.preValues||[],placeholder:e.settings?.selectPrompt,required:e.required,requiredLabelAppendage:l,label:e.caption,helpText:e.helpText,errors:a},{onChange:t=>o(e.id,t),onInvalid:n}),null,16,["onChange","onInvalid"]))]),file:f(({field:e,indicator:t,errors:l,setModelValueForId:a,onInvalid:o})=>[(x(),p(L,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,accept:!e.fileUploadOptions?.allowAllUploadExtensions&&e.fileUploadOptions?.allowedUploadExtensions||null,multiple:!!e.fileUploadOptions?.allowMultipleFileUploads||null,label:e.caption,helpText:e.helpText,placeholder:e.placeholder||null|e.settings.placeholder,required:e.required,requiredLabelAppendage:t,errors:l,handlingMode:"simple"},{onChange:t=>a(e.id,t),onInvalid:o}),null,16,["onChange","onInvalid"]))]),richText:f(({field:e})=>[e?.settings?.html?(x(),t("div",{key:0,class:"s-rich-text",innerHTML:e.settings.html},null,8,Ll)):l("",!0)]),titleDescription:f(({field:e})=>[r(q,null,{default:f(()=>
1[e?.settings?(x(),t("div",ql,[e.settings.caption?(x(),p(b,{key:0,tag:null},{default:f(()=>[s(y(e.settings.caption),1)]),_:2},1024)):l("",!0),e.settings.bodyText?(x(),t("p",Ml,y(e.settings.bodyText),1)):l("",!0)])):l("",!0)]),_:2},1024)]),recaptcha2:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(M,i({key:e.id},{id:`uf-${e.id}`,name:e.alias,value:t||null,required:e.required,requiredLabelAppendage:l,label:e.caption,theme:e.settings?.theme,size:e.settings?.size,helpText:e.helpText,errors:a},{onChange:o,onInvalid:n}),null,16,["onChange","onInvalid"]))]),recaptcha3:f(({field:e,modelValue:t,indicator:l,errors:a,setModelValue:o,onInvalid:n})=>[(x(),p(A,i({key:e.id},{id:`uf-${e.id}`,name:"g-recaptcha-response",value:t||null,required:e.required,requiredLabelAppendage:l,label:e.caption,helpText:e.helpText,errors:a},{onChange:o,onInvalid:n}),null,16,["onChange","onInvalid"]))]),formFooter:f(({previousLabel:e,nextLabel:i,submitLabel:n,currentPage:r,pageCount:d,changePage:u})=>[I("footer",Al,[d>1?(x(),t("div",El,[I("div",Ul,y(("localize"in a?a.localize:o(U))("PAGE"))+" "+y(r+1)+" / "+y(d),1),I("p",Ol,y(("localize"in a?a.localize:o(U))("PHRASE_THIS_FORM_SPANS_MULTIPLE_PAGES",{capitalize:!0})),1)])):l("",!0),r?(x(),p(E,{key:1,type:"button",class:"flex-grow",onClick:e=>u("previous")},{default:f(()=>[s(y(e),1)]),_:2},1032,["onClick"])):l("",!0),r<d-1?(x(),p(E,{key:2,type:"button",class:"flex-grow",onClick:e=>u("next")},{default:f(()=>[s(y(i),1)]),_:2},1032,["onClick"])):l("",!0),r===d-1?(x(),p(E,{key:3,type:"submit",class:"flex-grow"},{default:f(()=>[s(y(n),1)]),_:2},1024)):l("",!0)])]),formIsLoading:f(()=>[r(F,{class:"absolute left-0 top-0 w-full h-full","inner-class":"flex justify-center items-center"},{default:f(()=>[r(O,{label:("localize"in a?a.localize:o(U))("SENDING",{capitalize:!0})},null,8,["label"])]),_:1})]),_:1},8,["post-endpoint","definitions-endpoint","body-props"]))]),_:1},8,["level"])],16,_l)}}});export{Fl as default};

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.