PageSourceSearch

https://www.velux.it/dist/velux-marketing/client/assets/AdvisoryPlanningSection-711da482.js

js velux.it collected 2026-10-02 11:37:36 UTC 74,312 bytes, 2 lines download raw bytes

1import{g as m,e as Te,h as Pe,a as Oe,u as ft,t as bt,v as gt,w as xt,o as ht}from"./lodash-86ed0c75.js";import{ag as Ne,f as l,w as X,D as x,E as O,P as S,J as k,O as Y,u as w,I as ae,a0 as yt,g as et,m as Qe,G as te,bz as _t,F as J,K as q,S as xe,U as he,a as be,r as z,a8 as ze,a7 as Ce,ah as Ft,i as Me,bh as St,ad as qe,bA as Ve,bB as It,T as Et,bC as kt,bD as Dt,bE as Ct,W as Ot,H as it,X as Nt,Y as wt,V as Ae,a3 as Ue,ab as At,a5 as Ge,bF as Tt,bG as tt,ae as Lt,n as $t,be as Pt,c as Vt,bH as Bt,R as Rt,Z as jt,$ as Mt,q as qt}from"./vendor-a0789617.js";import{u as ye,_ as Ut,a as zt}from"./vee-validate-daa3561c.js";import{u as oe,B as ee}from"./AdvisoryPlanningStore-b7e66e84.js";import{d as Ht,e as re,g as le,S as Ye,_ as _e,f as Be,m as He,j as Le,V as Ke,B as Gt,l as Wt,n as at,u as rt,q as ot,h as Zt,s as Xt}from"./index-a0a0e1a1.js";import{Vue3Lottie as Kt}from"./vue3-lottie.es-a37e0f1c.js";import{s as Qt}from"./searchProviderConstants-1dc0cbda.js";import{A as Yt}from"./ApiLoaderIcon-683b30b5.js";import{a as lt,c as De,b as We,d as Jt,e as ea,f as ta,g as st}from"./yup-69374111.js";import{i as aa,a as la}from"./libphonenumber-js-6ce9d8b4.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */const sa={key:0,class:"mt-6 text-16 tablet:text-15 tablet:leading-18 leading-[19px] font-light text-velux-grey-800"},na={__name:"AdvisoryPlanningTemplateTextContent",props:{title:{type:[Object,String],default:()=>({})},subtitle:{type:[Object,String],default:()=>({})},status:{type:String,default:"inactive"},isOptional:{type:Boolean,default:!1}},setup(t){const f=t,{t:e}=Ne(),{wrapper:n,isVisibleContent:p}=Ht(0,!0,!0),u=oe(),o=l(()=>m(f,"title",{value:""})),d=l(()=>m(f,"subtitle",{value:""})),a=l(()=>m(f,"title.iterableIndex","")),r=l(()=>m(f,"title.anchorId","")),c=l(()=>{const v=Object.assign({},o.value);if(a.value.length){const s=parseInt(a.value).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1});v.value=`${v.value} (${s})`}return v});return X(p,v=>{r.value&&v&&u.setSelectedTabId(r.value)}),(v,s)=>(x(),O("div",{ref_key:"wrapper",ref:n,class:"max-w-[277px] mr-5 mobile:max-w-none w-full"},[S("legend",null,[k(re,{id:r.value,class:"break-words text-32 tablet:text-24 tablet:leading-28 mobile:text-24 leading-120 font-light mb-6 tablet:mb-4 mobile:mb-4",tag:"h4",field:c.value},null,8,["id","field"]),k(re,{class:"text-16 tablet:text-15 tablet:leading-18 leading-[19px] font-light text-velux-grey-800 max-w-[210px]",tag:"p",field:d.value},null,8,["field"]),t.isOptional?(x(),O("p",sa,Y(w(e)("Feature/Forms/Optional Step")),1)):ae("",!0)])],512))}},ia="5.9.0",ra=25,oa=0,ua=126,ca=150,da=150,va="Velux_Spinner_Lottie",ma=0,pa=[],fa=[{ddd:0,ind:1,ty:3,nm:"Null 2",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[75,75,0],ix:2,l:2},a:{a:0,k:[50,50,0],ix:1,l:2},s:{a:0,k:[80,80,100],ix:6,l:2}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Shape Layer 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:49.5,ix:3},y:{a:0,k:-11.86,ix:4}},a:{a:0,k:[-8.786,-62.287,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[34.165,0],[0,-34.165],[-34.165,0],[0,34.165]],o:[[-34.165,0],[0,34.165],[34.165,0],[0,-34.165]],v:[[0,-61.86],[-61.86,0],[0,61.86],[61.86,0]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-8.786,-.427],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.67],y:[1]},o:{x:[.001],y:[0]},t:37,s:[100]},{t:88,s:[0]}],ix:1},e:{a:1,k:[{i:{x:[.6],y:[-.056]},o:{x:[.26],y:[0]},t:92,s:[100]},{t:125,s:[0]}],ix:2},o:{a:0,k:0,ix:3,x:`var $bm_rt;
2$bm_rt = thisComp.layer('Shape Layer 1').content('Trim Paths 1').offset;`},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:37,op:337,st:37,bm:0},{ddd:0,ind:3,ty:4,nm:"Shape Layer 1",parent:1,sr:1,ks:{o:{a:0,k:50,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:49.5,ix:3},y:{a:0,k:50,ix:4}},a:{a:0,k:[-8.786,-.427,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}}
2,ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[34.165,0],[0,-34.165],[-34.165,0],[0,34.165]],o:[[-34.165,0],[0,34.165],[34.165,0],[0,-34.165]],v:[[0,-61.86],[-61.86,0],[0,61.86],[61.86,0]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-8.786,-.427],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.52],y:[.88]},o:{x:[.48],y:[.12]},t:0,s:[100]},{t:75,s:[0]}],ix:1},e:{a:0,k:100,ix:2},o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:125,s:[360]}],ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:88,st:0,bm:0}],ba=[],ga={v:ia,fr:ra,ip:oa,op:ua,w:ca,h:da,nm:va,ddd:ma,assets:pa,layers:fa,markers:ba},xa={ref:"errorsWrapper",class:"text-16 tablet:text-15 leading-120 flex mobile:flex-col justify-end items-center"},ha={key:0,class:"order-2 sm:order-1 flex items-center mobile:mt-6 sm:mr-6"},ya=yt({__name:"ConditionsSection",props:{agreementTitle:{type:Object,default:()=>({})},submitButtonTitle:{type:Object,default:()=>({})},errorList:{type:Array,default:()=>[]}},emits:["submitData"],setup(t,{emit:f}){const e=t,n=et({[ee.Initial]:!0,[ee.Loading]:!1,[ee.Success]:!1,[ee.Error]:!1}),{t:p}=Ne(),u=oe(),o=f,d=b=>{b.preventDefault(),o("submitData")},a=l(()=>u.formProcessingStatus),r=l(()=>m(e,"submitButtonTitle.value","")),c=l(()=>({isInitial:a.value===ee.Initial,isPending:a.value===ee.Loading,isSuccess:a.value===ee.Success,isError:a.value===ee.Error})),v=l(()=>p("Feature/Forms/Success Message","Thank you!")),s=l(()=>p("Feature/Forms/Error Message","Please try again")),h=l(()=>I?.value==="AlreadyEnrolled"?p("Feature/Courses/Course Enroll Error"):I?.value==="Error"?p("Feature/Courses/Course Submit Error"):I?.value==="SelectFieldError"?p("Feature/Forms/Select field","Please select before proceeding"):""),I=Qe("errorCode"),_=et({errorText:I?.value==="AlreadyEnrolled"?r.value:s.value,successText:v.value,initialText:r.value});return X(()=>I?.value,()=>{I?.value==="AlreadyEnrolled"&&(n[ee.Error]=!1,n[ee.Initial]=!0)}),X(c,b=>{if(b.isPending){n[ee.Success]=n[ee.Error]=!1,n[ee.Loading]=!0;return}if(b.isSuccess){n[ee.Success]=!0;return}if(b.isError){n[ee.Loading]=!1,n[ee.Error]=!0;return}if(b.isInitial){n[ee.Error]=n[ee.Loading]=n[ee.Success]=!1;return}}),(b,F)=>(x(),O("div",xa,[h.value?(x(),O("div",ha,[k(le,{name:"warning","stroke-width":1,stroke:"unset",width:"12",height:"12",class:"mr-1 text-velux-red-800"}),k(Ye,{class:"text-12 text-velux-red-800 font-normal",field:{value:h.value}},null,8,["field"])])):ae("",!0),k(w(_t),{class:"order-1 sm:order-2 mobile:w-full","button-actions-context":_,"actions-states":n,onHandleClick:d},{loading:te(()=>[k(w(Kt),{class:"stroke-current text-velux-white h-full","animation-data":w(ga)},null,8,["animation-data"])]),_:1},8,["button-actions-context","actions-states"])],512))}});const _a=_e(ya,[["__scopeId","data-v-caeed849"]]);const Fa=["name","value","disabled","checked","aria-disabled","aria-checked"],Sa={class:"flex flex-col"},Ia={__name:"BaseRadioButton",props:{item:{type:Object,required:!0},activeValue:{type:[String,Number],default:""},isDisabled:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},groupName:{type:String,required:!0}},emits:["setActiveOption"],setup(t){const f=t,e=l(()=>m(f,"item.value.value")),n=l(()=>m(f,"item.icon",!1)),p=l(()=>m(f,"isDisabled",!1)),u=l(()=>m(f,"hasError",!1)),o=l(()=>m(f,"item.supportingInformation",!1)),d=l(()=>({"text-velux-grey-200 pointer-none cursor-default border-velux-grey-200":p.value&&!r.value,"border-velux-grey-400 cursor-pointer hover:bg-velux-grey-400 text-velux-black":!p.value&&!r.value,"bg-velux-grey-50 border-velux-black text-velux-black":!p.value&&r.value,"text-velux-grey-500 pointer-none cursor-default border-velux-grey-500":r.value&&p.value,"sm:!h-48 sm:flex-col sm:justify-between items-center sm:items-baseline":n.value,"border-velux-red-800":u.value})),a=l(()=>m(f,"groupName")),r=l(()=>e.value===f.activeValue);return(c,v)=>(x(),O("div",null,[S("label",{class:q(["relative flex mobile:items-center sm:flex-col sm:p-8 px-6 mobile:h-12 font-normal text-20 mobile:text-12 leading-115 sm:leading-130 h-full border border-velux-grey-200",d.value]),onClick:v[0]||(v[0]=s=>c.$emit("setActiveOption",t.item.value))},[S("input",{class:"absolute opacity-0 fixed w-0",type:"radio",name:a.value,value:e.value,disabled:p.value,checked:r.value,"aria-disabled":p.value,"aria-checked":r.value},null,8,Fa),n.value?(x(),J(Be,{key:0,height:48,width:48,media:t.item.icon,"is-lazy-load":!1,class:"h-4 w-4 sm:h-12 sm:w-12 sm:mb-6 mr-5 sm:mr-0"},null,8,["media"])):ae("",!0),S("div",Sa,[o.value?(x(),J(re,{key:0,field:t.item.supportingInformation,class:"text-11 sm:text-14 mb-1",tag:"span"},null,8,["field"])):ae("",!0),k(re,{field:t.item.title,tag:"span",class:"inline"},null,8,["field"])]),r.value?(x(),J(le,{key:1,class:"inline absolute right-6 sm:right-8 sm:bottom-9",width:"12",height:"15",name:"check-glyph"})):ae("",!0)],2)]))}},Ea=_e(Ia,[["__scopeId","data-v-c42f993c"]]),ka={class:"h-full"},Da={__name:"BaseRadioGroup",props:{options:{type:Array,default:()=>[]},internalName:{type:String,required:!0},activeValue:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:["select","error"],setup(t,{emit:f}){const e=t,n=f,{logErrorMessage:p}=He(),u=l(()=>m(e,"isDisabled",!1)),o=l(()=>m(e,"internalName","")),d=l(()=>
2m(e,"options",[])),a=_=>{const b=_?.analyticParameters||[],F=_?.name||"";return(!b.length||!F)&&p({message:"Analytics parameters or the name of the active field are missing",componentName:"BaseRadioGroup.vue"}),b.map(i=>{const D=i.event.form_field_name.replace("$name",F);return{...i,event:{...i.event,form_field_name:D}}})},r=_=>{n("select",{name:o.value,analyticParameters:a(_)})},c=({value:_},b)=>{r(b),v.value=_},{value:v,errorMessage:s,errors:h}=ye(o.value,void 0,{initialValue:e.activeValue,validateOnMount:!1}),I=l(()=>!!h.value?.length);return X(s,()=>{s.value&&!u.value&&n("error",s.value)}),X(v,()=>{if(!v.value)return;const _=d.value.find(b=>b.value?.value===v.value);r(_)}),(_,b)=>(x(),O("div",null,[(x(!0),O(xe,null,he(d.value,(F,i)=>(x(),O("div",{key:i},[S("div",ka,[k(Ea,{"group-name":o.value,item:F,"active-value":w(v),"is-disabled":u.value,"has-error":I.value,"data-test-id":"base-radio-button",onSetActiveOption:D=>c(D,F)},null,8,["group-name","item","active-value","is-disabled","has-error","onSetActiveOption"])])]))),128))]))}},Ca={__name:"RadioButtonField",props:{isDisabled:{type:Boolean,default:!1},required:{type:Object,default:()=>({value:!1})},options:{type:Array,default:()=>[]},internalName:{type:Object,required:!0},layoutColumns:{type:Object,default:()=>({value:"2"})},analyticParameters:{type:Array,default:()=>[]},doNotIncludeInPayload:{type:Object,default:()=>({value:!1})}},emits:["select","change","error"],setup(t,{emit:f}){const e=t,n=f,{getFormFieldData:p,setExcludeFormFieldName:u}=oe();be(()=>{d.value&&u(o.value)});const o=l(()=>m(e,"internalName.value","")),d=l(()=>m(e,"doNotIncludeInPayload.value",!1)),a=l(()=>p(o.value)),r=l(()=>`grid-cols-${m(e,"layoutColumns.value",2)}`),c=s=>{n("change",{analyticParameters:s.analyticParameters}),n("select",s.name)},v=()=>{n("error",e.analyticParameters)};return(s,h)=>(x(),O("div",null,[k(Da,{class:q(["grid grid-flow-row gap-x-5 gap-y-6 old_tablet:gap-y-4 old_mobile:grid-cols-1",r.value]),options:t.options,"internal-name":o.value,"is-disabled":t.isDisabled,"active-value":a.value,onSelect:c,onError:v},null,8,["class","options","internal-name","is-disabled","active-value"])]))}},Oa={class:"w-[282px] cursor-pointer flex flex-col old_mobile:w-full"},Na={class:"h-full py-8 px-8 hover:bg-old_velux-grey-100 border border-old_velux-grey-200 old_mobile:p-6"},wa={__name:"AdvisoryPlanningReplaceCard",props:{title:{type:Object,default:()=>({})},image:{type:Object,default:()=>({})}},setup(t){const{isMobile:f}=Le();return(e,n)=>(x(),O("div",Oa,[w(f)?ae("",!0):(x(),J(Be,{key:0,class:"w-full h-[159px] object-cover",media:t.image,"data-test-id":"image-wrapper"},null,8,["media"])),S("div",Na,[k(re,{class:"inline-block max-w-[218px] text-16 leading-[120%] font-normal text-old_velux-grey-800 old_mobile:max-w-none",field:t.title},null,8,["field"])])]))}},Aa={class:"w-[282px] cursor-pointer flex flex-col old_mobile:w-full"},Ta={class:"flex items-center h-full py-8 px-8 old_mobile:p-6 border border-old_velux-grey-200 hover:bg-old_velux-grey-100"},nt={__name:"AdvisoryPlanningRedirectCard",props:{title:{type:Object,default:()=>({})},image:{type:Object,default:()=>({})}},setup(t){const{isMobile:f}=Le(),e=t,n=l(()=>m(e,"image.value.src","").length>0);return(p,u)=>(x(),O("div",Aa,[!w(f)&&n.value?(x(),J(Be,{key:0,class:"w-full h-[159px] object-cover",media:t.image,"data-test-id":"image-wrapper"},null,8,["media"])):ae("",!0),S("div",Ta,[k(re,{class:"inline-block mr-4.5 max-w-[183px] text-16 leading-[120%] font-normal text-old_velux-grey-800 old_mobile:max-w-none",tag:"span",field:t.title},null,8,["field"]),k(le,{class:"inline min-w-6 min-h-6",name:"appendix","stroke-width":"0.1"})])]))}},La={class:"max-w-[584px] old_desktop:min-w-fit mt-[70px] old_mobile:mt-[116px] old_mobile:mb-20"},$a={class:"flex flex-wrap gap-5 mt-16 mb-5 old_mobile:mt-12 old_mobile:flex-col old_mobile:gap-2"},Pa={__name:"AdvisoryPlanningSidebarContent",props:{sidebarData:{type:Object,required:!0},internalName:{type:String,required:!0}},emits:["closeSidebar","select"],setup(t,{emit:f}){const e=f,n=t;be(()=>{p(_.value)});const{setExcludeFormFieldName:p}=oe(),u=l(()=>m(n,"sidebarData.title")),o=l(()=>m(n,"sidebarData.replaceLinkTitle")),d=l(()=>m(n,"sidebarData.rightLinkTitle")),a=l(()=>m(n,"sidebarData.replaceLinkImage")),r=l(()=>m(n,"sidebarData.rightItemImage")),c=l(()=>m(n,"sidebarData.rightItemLink")),v=l(()=>m(n,"sidebarData.repairServiceTitle")),s=l(()=>m(n,"sidebarData.repairServiceImage")),h=l(()=>m(n,"sidebarData.repairServiceLink")),I=l(()=>({...m(h.value,"value",{}),value:{href:m(h.value,"value.href","/")}}
2)),_=l(()=>m(n,"internalName","")+"_replacing"),{value:b}=ye(_.value),F=()=>{const i=m(n,"sidebarData.replaceLink.value","");b.value=i,e("closeSidebar",null),e("select",null)};return(i,D)=>(x(),O("div",La,[k(re,{class:"text-32 old_mobile:text-24 font-light leading-120",tag:"h4",field:u.value,"data-test-id":"title"},null,8,["field"]),S("div",$a,[k(wa,{image:a.value,title:o.value,"data-test-id":"planning-card",onClick:F},null,8,["image","title"]),k(Ke,{"link-data":{link:c.value},class:"px-0","custom-indent":"","empty-styles":"","data-test-id":"button"},{default:te(()=>[k(nt,{class:"h-full",image:r.value,title:d.value,"data-test-id":"redirect-card"},null,8,["image","title"])]),_:1},8,["link-data"]),k(Ke,{"link-data":{link:I.value},class:"px-0","custom-indent":"","empty-styles":"","data-test-id":"button"},{default:te(()=>[k(nt,{class:"h-full",image:s.value,title:v.value,"data-test-id":"redirect-card"},null,8,["image","title"])]),_:1},8,["link-data"])])]))}},Va={class:"w-full flex items-center justify-between"},Ba={class:"font-bold text-16 old_tablet:text-14 leading-20 old_tablet:leading-18 text-old_velux-grey-800"},Ra={__name:"ReplacingField",props:{title:{type:Object,default:()=>({})},required:{type:Object,default:()=>({value:!1})},subtitle:{type:Object,default:()=>({})},position:{type:String,default:"right"},popup:{type:Object,default:()=>({})},internalName:{type:Object,required:!0},isDisabled:{type:Boolean,default:!1},analyticParameters:{type:Array,default:()=>[]},layoutColumns:{type:Object,default:()=>({value:2})}},emits:["select","change"],setup(t,{emit:f}){const e=t,n=z(!1),p=f,u=()=>{p("change",{analyticParameters:e.analyticParameters}),n.value=!0},o=()=>n.value=!1,d=l(()=>e.internalName?.value||null),a=l(()=>`grid grid-cols-${m(e,"layoutColumns.value",2)} old_mobile:grid-cols-1 gap-x-5`),r=()=>{p("select",d.value)};return(c,v)=>(x(),O("div",{class:q(a.value)},[S("div",{class:q(["min-h-[84px] py-5.5 px-8 old_mobile:p-6 bg-old_velux-birch-300 flex items-center",{"cursor-pointer":!t.isDisabled}]),"data-test-id":"sidebar-wrapper",onClick:u},[S("div",Va,[S("div",Ba,[k(re,{field:t.title,class:"block",tag:"span","data-test-id":"sidebar-data-title"},null,8,["field"]),k(re,{field:t.subtitle,class:"text-16 leading-18 font-light text-old_velux-grey-800",tag:"span","data-test-id":"sidebar-data-subtitle"},null,8,["field"])]),k(le,{"stroke-width":"0.1",name:"appendix"})])],2),k(Gt,{position:t.position,"is-visible":n.value,"position-offset":0,class:"max-w-[720px] px-[68px] box-border old_mobile:px-6","data-test-id":"base-sidebar",onClose:o},{default:te(()=>[k(le,{class:"inline absolute top-6 right-6 cursor-pointer",width:"32",height:"32",name:"close","data-test-id":"sidebar-icon",onClick:o}),k(Pa,{"sidebar-data":t.popup,"data-test-id":"sidebar-content","internal-name":d.value,onCloseSidebar:o,onSelect:r},null,8,["sidebar-data","internal-name"])]),_:1},8,["position","is-visible"])],2))}};const ja=["aria-disabled","aria-describedby","aria-invalid","maxlength","disabled"],Ma=["name","type","maxlength","disabled","aria-disabled","aria-describedby","aria-invalid"],qa=["id"],Ua={__name:"BaseInput",props:{name:{type:String,required:!0},placeholder:{type:String,default:"Type here"},type:{type:String,default:"text"},maxLength:{type:Number,default:100},initialValue:{type:[String,Number],default:""},isDisabled:{type:Boolean,default:!1},isMultiLineText:{type:Boolean,default:!1}},emits:["blur","error","focus"],setup(t,{emit:f}){const e=t,n=f,p=z(!1),{isMobile:u}=Le(),o=z(null),d=l(()=>m(e,"initialValue","")),{value:a,errorMessage:r}=ye(e.name,void 0,{initialValue:d.value,validateOnMount:!1}),c=z(!!a.value),v=l(()=>{const g=u.value?"10px":"15px";return{top:s.value?g:"calc(50% - 8px)"}}),s=l(()=>a.value||c.value),h=l(()=>r.value?`${e.name}--error`:null),I=l(()=>r.value?!0:null),_=g=>{if(n("focus"),e.isMultiLineText&&a.value)return c.value=!0;c.value=g},b=()=>{n("blur",a.value),_(!1),r.value&&D(r.value)},F=()=>o.value.focus(),D=Te(g=>{n("error",g)},2e3);return X(a,()=>{p.value=!0}),X(r,()=>{D.cancel(),!c.value&&r.value&&D(r.value)}),(g,C)=>(x(),O("div",{class:q(["cursor-text relative transition-height duration-300 border h-14 px-6 pt-[29px] pb-[15px] mobile:pt-5.5 mobile:pb-[10px] mobile:px-5 font-normal",{"border-velux-grey-500":!w(r),"border-velux-red-800":w(r),"bg-velux-grey-50":t.isDisabled,"mobile:h-[50px]":!t.isMultiLineText||!c.value,"h-32 mobile:h-24":t.isMultiLineText&&c.value}]),onClick:F},[S("div",{class:q(["absolute transition-all duration-300 leading-120 text-velux-grey-800 line-clamp-1",{"text-12 mobile:text-10":s.value,"text-16 mobile:text-15":!s.value}]),style:ze(v.value)},Y(t.placeholder),7),t.isMultiLineText?Ce((x(),O("textarea",{key:0,ref_key:"textField",ref:o,"onUpdate:modelValue":C[0]||(C[0]=P=>Me(a)?a.value=P:null),class:q(["absolute w-[calc(100%_-_48px)] mobile:w-[calc(100%_-_40px)] h-full max-h-[calc(100%_-_44px)] mobile:max-h-[calc(100%_-_32px)] text-16 leading-120 p-0 border-none outline-none bg-transparent mobile:leading-100",{"text-velux-red-800":w(r)}]),autocomplete:"off","aria-disabled":t.isDisabled,"aria-describedby":h.value,"aria-invalid":I.value,maxlength:t.maxLength,disabled:t.isDisabled,onFocus:C[1]||(C[1]=P=>_(!0)),onBlur:b},null,42,ja)),[[Ft,w(a)]]):Ce((x(),O("input",{key:1,ref_key:"textField",ref:o,"onUpdate:modelValue":C[2]||(C[2]=P=>Me(a)?a.value=P:null),name:t.name,class:q(["absolute w-[calc(100%_-_48px)] mobile:w-[calc(100%_-_40px)] text-16 leading-120 p-0 border-none outline-none bg-transparent mobile:leading-100",{"text-velux-red-800":w(r)}]),type:t.type,autocomplete:"off",maxlength:t.maxLength,disabled:t.isDisabled,"aria-disabled":t.isDisabled,"aria-describedby":h.value,"aria-invalid":I.value,onFocus:C[3]||(C[3]=P=>_(!0)),onBlur:b},null,42,Ma)),[[St,w(a)]]),Ce(S("span",{id:`${t.name}--error`,class:"absolute -bottom-5 text-12 font-normal text-velux-red-800 leading-110","aria-live":"assertive"},Y(w(r)),9,qa),[[qe,w(r)]]),Ce(k(le,{class:"absolute right-6 top-[calc(50%_-_12px)] text-velux-red-800",name:"error","stroke-width":"0.2",stroke:"#C70000"},null,512),[[qe,w(r)]])],2))}},ut=_e(Ua,[["__scopeId","data-v-d7f00644"]]),za={__name:"InputField",props:{internalName:{type:Object,required:!0},id:{type:String,required:!0}
2,validationLength:{type:Object,default:()=>({value:99})},placeholder:{type:Object,default:()=>({value:"placeholder"})},validationType:{type:Object,default:()=>({value:"text"})},analyticParameters:{type:Array,default:()=>[]},required:{type:Object,default:()=>({value:!1})},multiLineText:{type:Object,default:()=>({value:!1})},doNotIncludeInPayload:{type:Object,default:()=>({value:!1})}},emits:["change","error","focus"],setup(t,{emit:f}){const e=t,n=f,p=oe(),{getFormFieldData:u,setRelatedMultiselectFieldName:o,setExcludeFormFieldName:d}=p,{isMultiSelectedFieldRendered:a}=Ve(p),r=l(()=>p.isReadonly(e.internalName.value));be(()=>{a.value&&o(c.value),v.value&&d(c.value)});const c=l(()=>m(e,"internalName.value","")),v=l(()=>m(e,"doNotIncludeInPayload.value",!1)),s=l(()=>m(e,"multiLineText.value",!1)),h=l(()=>u(c.value)),I=l(()=>m(e,"validationLength.value","")),_=l(()=>{const g=m(e,"placeholder.value","");return e.required.value?g+" *":g}),b=l(()=>m(e,"validationType.value","")),F=()=>{n("focus",e.analyticParameters)},i=g=>{if(!g&&!g?.trim()&&!e.required.value){p.removeDataLayerInteractionEvent(e.id);return}n("change",{analyticParameters:e.analyticParameters})},D=()=>{n("error",e.analyticParameters)};return X(a,()=>{a.value&&o(c.value)}),(g,C)=>(x(),O("div",null,[k(ut,{name:c.value,"max-length":I.value,placeholder:_.value,type:b.value,"initial-value":h.value,"is-multi-line-text":s.value,"is-disabled":r.value,onFocus:F,onBlur:i,onError:D},null,8,["name","max-length","placeholder","type","initial-value","is-multi-line-text","is-disabled"])]))}};const Ha={class:"relative min-h-[56px] mobile:min-h-[50px]"},Ga={class:"absolute -bottom-5 left-6 mobile:left-5 text-12 font-normal text-velux-red-800 leading-110"},Wa={__name:"BaseSelect",props:{name:{type:String,required:!0},options:{type:Object,required:!0},initialValue:{type:Object,default:()=>({})},placeholder:{type:String,default:"Select"}},emits:["selected","error","focus"],setup(t,{emit:f}){const e=t,n=f,{isMobile:p}=Le(),{value:u,errorMessage:o}=ye(e.name,void 0,{initialValue:e.initialValue,validateOnMount:!1}),d=l(()=>{const a=p.value?"10px":"15px";return{top:u.value?.title?a:"calc(50% - 8px)"}});return X(()=>u.value,a=>{n("selected",a)}),X(o,()=>{o.value&&n("error",o.value)}),(a,r)=>(x(),O("div",Ha,[k(w(Ct),{modelValue:w(u),"onUpdate:modelValue":r[1]||(r[1]=c=>Me(u)?u.value=c:null),name:t.name},{default:te(({open:c})=>[S("div",{class:q(["absolute w-full border font-normal transition- duration-300",{"border-velux-black z-10":c&&!w(o),"border-velux-grey-400 z-0":!c&&!w(o),"border-velux-red-800 z-0":!c&&w(o),"border-velux-red-800 z-10":c&&w(o)}])},[k(w(It),{class:"relative w-full px-6 pb-[15px] pt-[29px] text-16 text-left h-14 mobile:h-[50px] mobile:pt-5.5 mobile:pb-[10px] mobile:px-5",onClick:r[0]||(r[0]=v=>a.$emit("focus"))},{default:te(()=>[S("span",{class:q(["absolute text-velux-grey-800 transition duration-300",{"text-12 leading-110 mobile:text-10":w(u)?.title,"text-16 leading-120":!w(u)?.title}]),style:ze(d.value)},Y(t.placeholder),7),k(re,{class:"leading-120",field:w(u)?.title},null,8,["field"]),k(le,{name:"select-arrow",class:q(["absolute right-6 top-[calc(50%_-_12px)]",{"rotate-180":c}]),"stroke-width":1,fill:"#28231F"},null,8,["class"])]),_:2},1024),k(Et,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100"},{default:te(()=>[k(w(kt),{class:q(["box-options bg-velux-white max-h-[230px] overflow-hidden",{"border-velux-grey-500 border-t ":c}])},{default:te(()=>[(x(!0),O(xe,null,he(t.options,(v,s)=>(x(),J(w(Dt),{key:s,class:"hover:bg-velux-grey-50",value:v},{default:te(({selected:h})=>[S("div",{class:q(["cursor-pointer text-16 leading-120 px-6 py-4",{"border-l-4 border-velux-red-800 bg-velux-grey-50":h,"text-velux-grey-800":!h}])},[k(re,{field:v.title},null,8,["field"])],2)]),_:2},1032,["value"]))),128))]),_:1},8,["class"])]),_:2},1024)],2)]),_:1},8,["modelValue","name"]),S("span",Ga,Y(w(o)),1)]))}},Za=_e(Wa,[["__scopeId","data-v-67fb61a8"]]),Xa={__name:"DropdownField",props:{internalName:{type:Object,default:()=>({value:""})},serverName:{type:String,default:""},options:{type:Array,default:()=>[]},placeholder:{type:Object,default:()=>({value:"placeholder"})},popupTitle:{type:Object,default:()=>({value:""})},popupDescription:{type:Object,default:()=>({value:""})},analyticParameters:{type:Array,default:()=>[]},required:{type:Object,default:()=>({value:!1})},useValidation:{type:Object,default:()=>({value:!1})},doNotIncludeInPayload:{type:Object,default:()=>({value:!1})}},emits:["change","error","focus"],setup(t,{emit:f}){const e=t,n=f,p=oe(),{setServiceFormData:u,getFormFieldData:o,setDialogData:d,setExcludeFormFieldName:a}=p,{selectedCountryCode:r}=Ve(p);be(()=>{v.value.length&&a(v.value),s.value&&a(c.value)});const c=l(()=>m(e,"internalName.value")||m(e,"serverName","")),v=l(()=>m(e,"serverName","")),s=l(()=>m(e,"doNotIncludeInPayload.value",!1)),h=l(()=>o(c.value)),I=l(()=>{const i=m(e,"placeholder.value","");return e.required.value?i+" *":i}),_=i=>{const D="showPopup"in i?i.showPopup.value:!1;if(D){const{popupTitle:g,popupDescription:C}
2=e,P={popupTitle:g.value,popupDescription:C.value,preventClosing:!0};d(P)}return D},b=i=>{if(n("change",{analyticParameters:e.analyticParameters}),!(!v.value.length||e.useValidation.value&&_(i))){if(i?.countryData){u({[v.value]:i.countryData.hubspotCountryCode}),r.value=i.countryData.countryCode;return}u({[v.value]:i})}},F=i=>{n("error",e.analyticParameters,i)};return(i,D)=>(x(),O("div",null,[k(Za,{options:t.options,name:c.value,placeholder:I.value,"initial-value":h.value,onSelected:b,onFocus:D[0]||(D[0]=g=>i.$emit("focus",t.analyticParameters)),onError:F},null,8,["options","name","placeholder","initial-value"])]))}};const Ka={class:"relative"},Qa={class:"absolute right-6 top-[17px] flex gap-6 mobile:top-[13px]"},Ya={class:"absolute -bottom-5 left-6 text-12 font-normal text-velux-red-800 leading-110 mobile:left-5 line-clamp-1"},Ja={__name:"SearchSelect",props:{name:{type:String,required:!0},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"Select one"},isLoading:{type:Boolean,default:!1},clearSearch:{type:Boolean,default:!1},label:{type:String,required:!0},trackBy:{type:String,required:!0},noResultMessage:{type:String,default:"No results"},initialValue:{type:Object,default:()=>({})},isSingleLabel:{type:Boolean,default:!1},noOptionsMessage:{type:Object,default:()=>({value:""})}},emits:["searchChange","selectOption","clearSelectedOption","error","focus"],setup(t,{emit:f}){const e=t,n=f,p=z(""),u=l(()=>m(e,"initialValue",{})),{value:o,errorMessage:d}=ye(e.name,void 0,{initialValue:u.value,validateOnMount:!1}),a=l(()=>Pe(o.value)!==0),{t:r}=Ne(),c=l(()=>{const F=m(e,"noOptionsMessage.value","");return F.length?F:r("Feature/Forms/Autocomplete Message")||"Enter to search options"}),v=()=>{o.value={},p.value="",n("clearSelectedOption")},s=F=>{p.value=F.target.value},h=F=>{n("searchChange",F)},I=F=>{n("selectOption",F)},b=Te(F=>n("error",F),2e3);return X(d,()=>{b.cancel(),!o.value&&d.value&&b(d.value)}),X(()=>e.clearSearch,()=>{e.clearSearch&&v()}),be(()=>{Pe(u.value)&&I(u.value)}),(F,i)=>(x(),O("div",Ka,[k(w(At),{modelValue:w(o),"onUpdate:modelValue":i[0]||(i[0]=D=>Me(o)?o.value=D:null),placeholder:"",class:q(["text-velux-grey-800 font-normal",{"multiselect--error":w(d)}]),options:t.options,"options-limit":1e3,"close-on-select":!0,"clear-on-select":!1,label:t.label,disabled:a.value,"internal-search":!1,loading:t.isLoading,"track-by":t.trackBy,onFocus:i[1]||(i[1]=D=>F.$emit("focus")),onInput:s,onSearchChange:h,onSelect:I},Ot({clear:te(()=>[a.value?(x(),J(le,{key:0,name:"close",class:"absolute right-6 top-[17px] mobile:top-[13px] cursor-pointer z-20",width:"24",height:"24",onMousedown:Ae(v,["stop"])})):ae("",!0)]),selection:te(({isOpen:D})=>[S("div",Qa,[t.isLoading?(x(),J(Yt,{key:0,class:"w-6 h-6 scale-[2]"})):ae("",!0),w(d)&&!t.isLoading?(x(),J(le,{key:1,class:"text-velux-red-800",name:"error","stroke-width":"0.2",stroke:"#C70000"})):ae("",!0),!a.value&&!w(d)?(x(),J(le,{key:2,name:"select-arrow",class:q({"rotate-180":D}),"stroke-width":1,fill:"#28231F"},null,8,["class"])):ae("",!0)]),S("div",{class:q(["absolute transition-[padding] duration-300",{"text-12 pb-[15px]":D||w(o),"mobile:text-15":!D&&!w(o)}])},Y(t.placeholder),3)]),noResult:te(()=>[Ue(Y(t.noResultMessage),1)]),noOptions:te(()=>[Ue(Y(c.value),1)]),_:2},[t.isSingleLabel?{name:"singleLabel",fn:te(()=>[it(F.$slots,"singleLabel",Nt(wt({selectedOption:w(o),searchText:p.value})),void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","class","options","label","disabled","loading","track-by"]),S("div",Ya,Y(w(d)),1)]))}},el=_e(Ja,[["__scopeId","data-v-e80b2d19"]]);function tl(t){const f=Wt(),{logErrorMessage:e}=He(),n={suggestions:`${f.apiHost}/api/Velux/AdvisoryPlanningForm/GetAddressSuggestions`,fullAddress:`${f.apiHost}/api/Velux/AdvisoryPlanningForm/GetFullAddress`};return{getSuggestions:async(o,d={languageCode:"",enableZipCodePopupLogic:!1})=>{if(!o)return[];const{languageCode:a,enableZipCodePopupLogic:r}=d;let c="";a.length&&(c=`&languageCultureName=${a}`),r&&(c=`${c}&enableZipCodePopupLogic=${r}`),window.self!==window.top&&(c=`${c}&sc_lang=${t||"en"}`);try{const{data:v}=await at(`${n.suggestions}?text=${o}${c}`);return v}catch{e({message:"Error during fetching address suggestions",componentName:"QAS"})}},GetFullAddress:async o=>{if(!o)return{};try{const{data:d}=await at(`${n.fullAddress}?addressId=${o}`);return d}catch{e({message:"Error during fetching full address",componentName:"QAS"})}}}}const al={key:0},ll={key:1},sl={key:0,class:"flex flex-col gap-6 mt-6"},nl={__name:"DropdownSearchField",props:{name:{type:String,default:"Type here"},serverName:{type:String,default:"serverName"},placeholder:{type:Object,default:()=>({value:"Type here"})},placeholders:{type:Object,default:()=>{}},autocompleteFields:{type:Object,default:()=>{}},noOptionsMessage:{type:Object,default:()=>({value:""})},analyticParameters:{type:Array,default:()=>[]},required:{type:Object,default:()=>({value:!1})},enableZipCodePopupLogic:{type:Object,default:()=>({value:!1})}},emits:["change","error","focus"],setup(t,{emit:f}){const n=rt()?.sitecoreContext?.language||"en",{getSuggestions:p,GetFullAddress:u}=tl(n),{logErrorMessage:o}=He(),d=oe(),{getFormFieldData:a,setDialogData:r}=d,{selectedCountryCode:c}=Ve(d),{t:v}=Ne(),s=t,h=f,I=z([]),_=z(null),b=z(!1),F=z(!0),i=z(""),D=z(""),g=Qe("searchProvider"),C=l(()=>{const E=m(s,"placeholder.value","");return s.required.value?E+" *":E}),P=l(()=>m(s,"serverName","")),T=l(()=>a(P.value)||null),B=l(()=>m(s,"enableZipCodePopupLogic.value",!1)),U=l(()=>g.value===Qt.PICASSO_SOLR),H=l(()=>U.value?"name":"id"),ue=l(()=>_.value?U.value?[{id:Ge(),value:_.value.zipCode,placeholderInput:m(s,"autocompleteFields.zipCode.placeholder.value","zipCode"),internalName:m(s,"autocompleteFields.zipCode.internalName.value","zipCode")},{id:Ge(),value:_.value.name,placeholderInput:m(s,"autocompleteFields.city.placeholder.value","city"),internalName:m(s,"autocompleteFields.city.internalName.value","city")}]:Object.keys(_.value).reduce((N,M)=>{const y=_.value[M],L=`${M[0].toLowerCase()}${M.slice(1)}`,R=s.autocompleteFields&&s.autocompleteFields[L]?.placeholder.value||"",G=s.autocompleteFields&&s.autocompleteFields[L]?.internalName.value||"";return G?.length||o({message:"The required field 'internal name' is missing",componentName:"AddressFields.vue"}),y&&N.push({id:Ge(),value:y,placeholderInput:R,internalName:G}),N},[]):{}),de=E=>{E?.length&&(i.value=E.trim())},ce=l(()=>({languageCode:c.value,enableZipCodePopupLogic:B.value})),fe=async E=>{if(F.value){if(U.value)return _.value=E;b.value=!0,_.value=await u(E.id),h("change",{analyticParameters:s.analyticParameters}),b.value=!1}},se=Te(async()=>{const E=await p(i.value,ce.value),{results:N,showPopup:M=!1,popupTitle:y,popupDescription:L}=E,R=N;F.value=!M,U.value?(I.value=R,F.value=!m(R,"[0].showPopup",!1)):I.value=R.filter(G=>G?.id),D.value=v("Feature/Forms/No results")||"",b.value=!1,F.value||r({popupTitle:y,popupDescription:L})},1e3),K=()=>{I.value=[],_.value=null},ne=()=>h("error",s.analyticParameters),V=l(()=>{const E=m(s,"noOptionsMessage.value","");return E.length?E:v("Feature/Forms/Autocomplete Message")||"Enter to search options"});return X(()=>i.value,()=>{b.value=!0,F.value=!0,se.cancel(),se(i.value)}),(E,N)=>(x(),O("div",null,[k(el,{"is-single-label":"",label:"name","track-by":H.value,name:P.value,"initial-value":T.value,options:I.value,"is-loading":b.value,placeholder:C.value,"no-result-message":D.value,"no-options-message":V.value,"clear-search":!F.value,onFocus:N[0]||(N[0]=M=>E.$emit("focus",t.analyticParameters)),onSearchChange:de,onSelectOption:fe,onClearSelectedOption:K,onError:ne},{singleLabel:te(({selectedOption:M})=>[U.value&&M.zipCode?(x(),O("span",al,Y(`${M.name}, ${M.zipCode}`),1)):M.name?(x(),O("span",ll,Y(M?.name),1)):ae("",!0)]),_:1}
2,8,["track-by","name","initial-value","options","is-loading","placeholder","no-result-message","no-options-message","clear-search"]),_.value?(x(),O("div",sl,[(x(!0),O(xe,null,he(ue.value,({internalName:M,placeholderInput:y,value:L})=>(x(),J(ut,{key:M,name:M,placeholder:y,"initial-value":L,"is-disabled":"",onFocus:N[1]||(N[1]=R=>E.$emit("focus",t.analyticParameters)),onError:ne},null,8,["name","placeholder","initial-value"]))),128))])):ae("",!0)]))}},il={__name:"DescriptionField",props:{text:{type:Object,required:!0}},setup(t){return(f,e)=>(x(),O("div",null,[k(Ye,{class:"text-16 old_tablet:text-15 leading-120 col-span-2",field:t.text},null,8,["field"])]))}};const rl={class:"wrapper relative cursor-pointer min-w-[16px] min-h-4"},ol=["checked","aria-checked"],ul={__name:"BaseCheckbox",props:{name:{type:String,required:!0},initialValue:{type:Boolean,default:!1}},emits:["select","error"],setup(t,{emit:f}){const e=t,n=f,{value:p,errorMessage:u}=ye(e.name,void 0,{initialValue:e.initialValue,validateOnMount:!1}),o=()=>{p.value=!p.value,n("select")};return X(u,()=>{u.value&&n("error",u.value)}),(d,a)=>(x(),O("div",rl,[S("input",{type:"checkbox",class:"absolute opacity-0 w-0 h-0",checked:w(p),"aria-checked":w(p)},null,8,ol),S("span",{class:q(["checkmark absolute top-0 left-0 w-4 h-4 border border-velux-black",{"border-velux-red-800":w(u)}]),onClick:o},null,2)]))}},cl=_e(ul,[["__scopeId","data-v-d2415748"]]),dl={class:"inline-flex gap-2.5"},vl={class:"relative"},ml={__name:"CheckboxField",props:{description:{type:Object,default:()=>({value:""})},internalName:{type:Object,required:!0},analyticParameters:{type:Array,default:()=>[]},doNotIncludeInPayload:{type:Object,default:()=>({value:!1})}},emits:["change","error"],setup(t,{emit:f}){const e=t,n=f,{getFormFieldData:p,setExcludeFormFieldName:u}=oe();be(()=>{a.value&&u(o.value)});const o=l(()=>m(e,"internalName.value","")),d=l(()=>p(o.value)),a=l(()=>m(e,"doNotIncludeInPayload.value",!1)),r=z(),c=()=>{r.value="",n("change",{analyticParameters:e.analyticParameters})},v=s=>{r.value=s,n("error",e.analyticParameters)};return(s,h)=>(x(),O("div",dl,[k(cl,{name:o.value,"initial-value":d.value,onSelect:c,onError:v},null,8,["name","initial-value"]),S("div",vl,[k(Ye,{field:t.description,tag:"span",class:"text-16 tablet:text-15 leading-120"},null,8,["field"]),Ce(S("div",{class:"absolute -bottom-5 text-12 font-normal text-velux-red-800 leading-110","aria-live":"assertive"},Y(r.value),513),[[qe,r.value]])])]))}},pl={class:"flex flex-col gap-2"},fl={class:"flex justify-between text-12 font-normal leading-130"},bl={class:"flex relative w-full items-center h-6 bg-old_velux-grey-250 text-11 uppercase tracking-60 transition delay-200"},gl={class:"z-10 pl-2"},xl={__name:"BaseProgressBar",props:{value:{type:[Number,String],default:0},fileName:{type:String,default:""}},setup(t){const{t:f}=Ne(),e=t,n=l(()=>{if(e.value)return e.value>=100?f("Feature/Forms/Completed"):f("Feature/Forms/Uploading")}),p=l(()=>({width:`${e.value}%`}));return(u,o)=>(x(),O("div",pl,[S("div",fl,[S("span",null,Y(t.fileName),1),S("span",null,Y(t.value)+" % ",1)]),S("div",bl,[S("span",gl,Y(n.value),1),S("div",{class:"absolute h-full bg-old_velux-grey-400",style:ze(p.value)},null,4)])]))}},hl={class:"flex flex-col gap-6 p-4 justify-center items-center h-full bg-velux-grey-100 text-center"},yl={class:"flex flex-col"},_l={__name:"FilePlaceholder",props:{fileTitle:{type:String,required:!0},fileName:{type:String,required:!0}},setup(t){return(f,e)=>(x(),O("div",hl,[k(le,{name:"file","stroke-width":"1",width:"48",height:"48"}),S("div",yl,[k(re,{field:{value:t.fileTitle},class:"text-20 text-velux-black mb-2 font-w-60 leading-135"},null,8,["field"]),k(re,{class:"text-11 text-velux-grey-800 uppercase font-400 font-w-45 tracking-6 leading-130",field:{value:t.fileName}},null,8,["field"])])]))}},ct={DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},dt={PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},Fl={MAX_FILE_SIZE:5e6,ALLOWED_FILE_TYPES:["application/pdf","image/jpeg","image/png","image/webp",...Object.values(ct),...Object.values(dt)]};const Sl={class:"flex flex-col gap-4 mobile:w-full mobile:mb-7"},Il={class:"draggable-container relative flex flex-col justify-center items-center gap-6 h-[260px] mobile:hidden px-4 text-20 font-240 text-center"},El={key:1,class:"flex gap-4"},kl={class:"flex items-center flex-1 border border-velux-grey-200 text-12 font-400 px-6 py-4 text-velux-grey-800"},Dl={key:2,class:""},Cl={class:"h-[325px] mobile:hidden"},Ol=["src"],Nl={class:"mobile:flex hidden justify-between gap-4 bg-velux-grey-50 px-6 py-4"},wl={class:"text-12 text-velux-grey-800 font-400"},Al={__name:"BaseFileUpload",props:{name:{type:String,required:!0},initialValue:{type:Array,default:()=>[]},icon:{type:Object,default:()=>({})}},emits:["upload-files"],setup(t,{emit:f}){Tt(y=>({v1f8e62c0:c.value}));const{MAX_FILE_SIZE:e,ALLOWED_FILE_TYPES:n}=Fl,p=t,u=f,o=l(()=>m(p,"initialValue")),d=z(null),a=z([]),r=z([]),c=z("#e0e0e0"),v=z(!1),s=z(""),h=z(0),I=z(0),_=z(0),b=z([]),{t:F}=Ne(),{value:i,errorMessage:D}=ye(p.name,void 0,{initialValue:o.value,validateOnMount:!1}),g=y=>y.url?.includes(".doc")||Object.values(ct).includes(y.type),C=y=>y.url?.includes(".ppt")||Object.values(dt).includes(y.type),P=y=>g(y)?F("Feature/Forms/Word Document"):F("Feature/Forms/Powerpoint Document"),T=(y,L,R)=>{const G={name:y,url:L,isVisible:!0,type:R};a.value.push(G),r.value.push(G),setTimeout(ue,500)},B=(y,L)=>{const R=new FileReader;return R.onload=G=>{const A=G.target.result;T(y,A,L)},R},U=y=>{i.value.includes(y)||(i.value=[...i.value,y]),B(y.name,y.type).readAsDataURL(y)},H=y=>{const L=new Blob([y],{type:"application/pdf"}),R=window.URL.createObjectURL(L),G=R+"#toolbar=0";T(y.name,G,y.type),setTimeout(function(){window.URL.revokeObjectURL(R)},100)},ue=()=>{_.value+=1,h.value=Math.round(_.value/I.value*100),h.value>=100&&setTimeout(()=>{E()},500)},de=y=>{const L=y.target.files||y.dataTransfer.files;b.value=[],L.length&&(v.value=!0,M(L),ne())},ce=y=>
2{y.name.includes("heic")?N(y):y.type==="application/pdf"?(i.value.includes(y)||(i.value=[...i.value,y]),H(y)):U(y)},fe=y=>{if(!n.includes(y.type)&&!y.name.includes("heic")){const L=F("Feature/Forms/Invalid File Type");return b.value.includes(L)||(b.value=[...b.value,L]),!0}if(y.size>=e){const L=F("Feature/Forms/Invalid File Size");return b.value.includes(L)||(b.value=[...b.value,L]),!0}},ve=y=>{Array.from(y).forEach(L=>{ce(L)})},se=y=>{r.value[y].isVisible=!1;const L=r.value.filter(({isVisible:R})=>R).findIndex((R,G)=>G===y);i.value.splice(L,1),a.value.splice(L,1),d.value.value=null},K=()=>c.value="#28231f",ne=()=>{c.value="#e0e0e0"},V=()=>d.value.click(),E=()=>{h.value=0,I.value=0,_.value=0,v.value=!1};be(()=>{o.value.length&&ve(o.value)});const N=async y=>{if(typeof window>"u")return;const L=(await Ut(()=>import("./heic2any-a162ec4d.js").then($=>$.h),[])).default,R=await L({blob:y,toType:"image/jpeg",quality:.7}),G=y.name.replace(".heic",".jpg"),A=new File([R],G,{type:"image/jpeg"});U(A)},M=async y=>{Array.isArray(i.value)||(i.value=[]);let L=!1;I.value=y.length,Array.from(y).forEach(async R=>{s.value=R.name,fe(R)?(I.value-=1,I.value||(L=!0,v.value=!1)):await ce(R)}),await $t(),L||u("upload-files",i.value)};return(y,L)=>(x(),O("div",null,[k(w(Lt),{show:!0},{default:te(()=>[S("div",{class:q(["grid md:grid-cols-upload-grid gap-5 mobile:gap-2",{"mobile:mb-7":a.value.length}])},[k(w(tt),null,{default:te(()=>[S("div",Sl,[S("div",Il,[k(Be,{class:"w-12 h-12",media:t.icon},null,8,["media"]),S("span",null,Y(w(F)("Feature/Forms/Drag and Drop")),1),S("div",{class:"absolute w-full h-full",onDragenter:K,onDragleave:ne,onDrop:Ae(de,["prevent"]),onDragover:L[0]||(L[0]=Ae(()=>{},["prevent"]))},null,32)]),v.value?(x(),J(xl,{key:0,"file-name":s.value,value:h.value},null,8,["file-name","value"])):(x(),O("div",El,[S("div",kl,Y(w(F)("Feature/Forms/Choose File")),1),k(Ke,{class:"uppercase px-6 md:hover:text-velux-white md:hover:bg-velux-red-900 md:hover:border-velux-red-900 border-velux-black",bordered:"","background-color":"bg-velux-white","text-color":"text-velux-black",onClick:Ae(V,["prevent"])},{default:te(()=>[Ue(Y(w(F)("Feature/Forms/Browse")),1)]),_:1})])),b.value.length?(x(),O("div",Dl,[(x(!0),O(xe,null,he(b.value,R=>(x(),O("div",{key:R,class:"flex items-baseline text-12 font-normal text-velux-red-800 leading-110 mb-1"},[k(le,{name:"warning",stroke:"unset","stroke-width":1,width:"12",height:"12",class:"mr-1 min-w-[12px] text-velux-red-800"}),S("span",null,Y(R),1)]))),128))])):ae("",!0)])]),_:1}),(x(!0),O(xe,null,he(r.value,(R,G)=>(x(),J(w(tt),{key:G,as:"template",enter:"transition ease-in-out duration-[1000ms] delay-[200ms]","enter-from":"opacity-0 ","enter-to":"opacity-100 "},{default:te(()=>[S("div",{class:q(["relative",{hidden:!R.isVisible}])},[S("div",Cl,[g(R)||C(R)?(x(),J(_l,{key:0,"file-title":P(R),"file-name":R.name},null,8,["file-title","file-name"])):(x(),O("embed",{key:1,src:R.url,class:"w-full h-full object-cover"},null,8,Ol))]),S("div",Nl,[S("span",wl,Y(R.name),1),k(le,{class:"cursor-pointer min-w-[16px]",name:"bordered-circle","stroke-width":"1",width:"16",height:"16",onClick:A=>se(G)},null,8,["onClick"])]),k(le,{class:"cursor-pointer absolute -right-2 -top-2 w-4 h-4 mobile:hidden",name:"close-circle",onClick:A=>se(G)},null,8,["onClick"])],2)]),_:2},1024))),128))],2)]),_:1}),S("input",{ref_key:"fileContainer",ref:d,class:"hidden",type:"file",multiple:"",onChange:de},null,544),Ce(S("span",{class:"text-12 font-normal text-velux-red-800 leading-110","aria-live":"assertive"},Y(w(D)),513),[[qe,w(D)]])]))}},Tl=_e(Al,[["__scopeId","data-v-19f1ad7b"]]),Ll={__name:"FileUploadField",props:{internalName:{type:Object,required:!0},uploadIcon:{type:Object,default:()=>({})},required:{type:Object,default:()=>({value:!1})},analyticParameters:{type:Array,default:()=>[]},doNotIncludeInPayload:{type:Object,default:()=>({value:!1})}},emits:["upload-files"],setup(t,{emit:f}){const e=t,{getFormFieldData:n,setFileFormFieldNames:p,setExcludeFormFieldName:u}=oe(),o=f;be(()=>{p(d.value),a.value&&u(d.value)});const d=l(()=>m(e,"internalName.value","")),a=l(()=>m(e,"doNotIncludeInPayload.value",!1)),r=l(()=>n(d.value)||[]),c=()=>{o("upload-files",e.analyticParameters)};return(v,s)=>(x(),O("div",null,[k(Tl,{name:d.value,icon:t.uploadIcon,"initial-value":r.value,onUploadFiles:c},null,8,["name","icon","initial-value"])]))}},Q={DROPDOWN_FIELD:"DropdownField",DROPDOWN_SEARCH_FIELD:"DropdownSearchField",RADIO_BUTTON_FIELD:"RadioButtonField",INPUT_FIELD:"InputField",DESCRIPTION_FIELD:"DescriptionField",REPLACING_FIELD:"ReplacingField",CHECKBOX_FIELD:"CheckboxField",MULTIPLE_SELECT_FIELD:"MultipleSelectField",HIDDEN_FIELD:"HiddenField",UPLOAD_IMAGES_FIELD:"UploadImagesField"};function $l(){const t=(u,o)=>{let d=!1;return u.type===Q.RADIO_BUTTON_FIELD?d=u.options.some(r=>o.includes(r.id)):d=o.includes(u.id),d},f=(u,o)=>
2o.find(({current:d})=>d===u),e=({relatedIds:u,copyStepItems:o,value:d,lastStepIndex:a,childrenRelatedIds:r,numberOfRoom:c,currentIncrementIndex:v,parentName:s,newStepItems:h,isSubRelated:I,mappingRelatedIds:_,mounted:b})=>(o.forEach((F,i)=>{let D=!1;const g=F.isCopied&&!I,C=F.copyTilesData?.parentNameField===s;if(g){C&&(a=i);return}const P=Oe(F),B=P.fields.filter(U=>U&&t(U,u)).reduce((U,H)=>{const de=(H.originalInternalName||H.internalName.value).replace("@index@",v),ce=F.iterableCount>d&&F.iterableParentName===s&&!b,fe=c<d&&!b;if(f(i,h)||fe||ce)return;const se=_.relatedIds?.some(K=>u.includes(K));return I&&_.relatedIds?.length&&se&&(D=!0),H.internalName.value=de,H.id=`${H.id}_${c}`,H.parentName=s,a=a<i?i:a,H.options?.length&&(H.options.forEach(({relatedIds:K=[]})=>{if(!K?.length)return U;r.relatedIds=[...r.relatedIds,...K],r.increment=c;const ne=a!==i?a-i:i;_={relatedIds:K,stepIndex:ne}}),H.options=H.options.map(K=>(I&&(K.id=`${K.id}_${c}`),K.relatedIds?.length&&(K.relatedIds=K.relatedIds.map(ne=>`${ne}_${c}`)),K))),U.push(H),U},[]);B?.length&&(P.fields=B,P.iterableCount=v,h.push({current:i,shiftFlag:D,parentIndex:i-_.stepIndex||0,item:P,iterableIndex:c}))}),{newSteps:o,childrenRelatedIds:r,lastStepIndex:a,newStepItems:h,mappingRelatedIds:_}),n=({copyStepItems:u,numberOfRoom:o,relatedIds:d})=>{let a=[];return u=u.map(r=>{r.iterableCount=o;const c=r.fields.map(v=>{if(v&&t(v,d)){v.originalInternalName||(v.originalInternalName=v.internalName.value);const s=v.originalInternalName.replace("@index@",o);v.internalName.value=s,v.options?.length&&v.options.forEach(({relatedIds:h=[]})=>{h?.length&&(a=[...a,...h])})}return v});return{...r,fields:c}}),{copyStepItems:u,childrenRelatedIds:a}};return{copyNewStepsItem:e,replaceInternalName:n,processingFirstStepFields:({copyStepItems:u,currentIncrementIndex:o,relatedIds:d})=>{let a=[];for({copyStepItems:u,childrenRelatedIds:a}=n({copyStepItems:u,numberOfRoom:o,relatedIds:d});a.length;)({copyStepItems:u,childrenRelatedIds:a}=n({copyStepItems:u,numberOfRoom:o,relatedIds:a}));return{copyStepItems:u}}}}const Pl={class:"flex items-center justify-center gap-x-4 z-20 relative"},Vl={__name:"BaseIncrement",props:{maxCount:{type:Number,default:5},count:{type:Number,default:0},disabled:{type:Boolean,default:!1}},emits:["setIncrement"],setup(t,{emit:f}){const e=t,n=f,p=l(()=>m(e,"maxCount")),u=l(()=>m(e,"count")),o=l(()=>m(e,"disabled")),d=l(()=>u.value<p.value&&!o.value),a=l(()=>u.value>0),r=(c,v)=>{v&&n("setIncrement",c?u.value+1:u.value-1)};return(c,v)=>(x(),O("div",Pl,[S("div",{class:q(["flex",{disabled:!a.value,"cursor-pointer":a.value}]),onClick:v[0]||(v[0]=Ae(s=>r(!1,a.value),["prevent"]))},[k(le,{class:"inline",width:"16",height:"16",name:"minus"})],2),Ue(" "+Y(u.value)+" ",1),S("div",{class:q(["flex",{disabled:!d.value,"cursor-pointer":d.value}]),onClick:v[1]||(v[1]=Ae(s=>r(!0,d.value),["prevent"]))},[k(le,{class:"block",width:"16",height:"16",name:"plus"})],2)]))}}
2,Bl=_e(Vl,[["__scopeId","data-v-227c1957"]]),Rl={__name:"BaseMultipleCheckboxField",props:{internalName:{type:String,required:!0},initialValue:{type:String,required:!0},iterableIndex:{type:Number,required:!0}},setup(t){const f=t,e=l(()=>m(f,"internalName","")),n=l(()=>m(f,"initialValue","")),p=l(()=>m(f,"iterableIndex","")),u=l(()=>e.value.replace("@index@",p.value));return ye(u.value,void 0,{initialValue:n.value,validateOnMount:!1}),(o,d)=>it(o.$slots,"default")}};const jl={class:"h-full"},Ml=["id","name","value","disabled","aria-disabled","aria-checked"],ql=["for"],Ul={class:"flex items-center justify-between mobile:flex-1"},zl={__name:"BaseMultipleCheckbox",props:{item:{type:Object,required:!0},dataItem:{type:Array,default:()=>[]},isDisabled:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},groupName:{type:String,required:!0},initialValue:{type:[Number,String],default:0}},emits:["setActiveOption","error"],setup(t,{emit:f}){const e=t,n=f,p=z(parseInt(e.initialValue)||0),u=z(!!e.initialValue),o=l(()=>m(e,"hasError",!1)),d=l(()=>m(e,"item.value.value","")),a=l(()=>ft(d.value)),r=l(()=>m(e,"item.icon","")),c=l(()=>m(e,"groupName","")),v=l(()=>m(e,"item.title",{})),s=l(()=>m(e,"isDisabled",!1)),h=d,I=l(()=>{switch(!0){case(o.value&&u.value):return"border-velux-red-800 bg-velux-grey-50 text-velux-black cursor-pointer";case(o.value&&!u.value):return"border-velux-red-800 text-velux-black cursor-pointer";case(s.value&&u.value):return"text-velux-grey-500 pointer-none cursor-default border-velux-grey-500";case(s.value&&!u.value):return"text-velux-grey-200 pointer-none cursor-default border-velux-grey-200";case(!s.value&&u.value):return"bg-velux-grey-50 border-velux-black text-velux-black";case(!s.value&&!u.value):return"border-velux-grey-400 cursor-pointer hover:bg-velux-grey-400 text-velux-black";default:return""}}),_=l(()=>{switch(!0){case(s.value&&u.value):return"selected-disabled-image";case(s.value&&!u.value):return"disabled-image";default:return""}}),b=()=>{const i=u.value?1:0;p.value=i},F=i=>{p.value=i,u.value=!!i};return be(()=>{p.value&&n("setActiveOption",h.value,e.item,p.value,!0)}),X(p,()=>{n("setActiveOption",h.value,e.item,p.value)}),(i,D)=>(x(),O("div",jl,[(x(!0),O(xe,null,he(t.dataItem,(g,C)=>(x(),J(Rl,{key:C,"initial-value":d.value,"iterable-index":g.iterableIndex,"internal-name":c.value},null,8,["initial-value","iterable-index","internal-name"]))),128)),Ce(S("input",{id:a.value,"onUpdate:modelValue":D[0]||(D[0]=g=>u.value=g),class:"absolute invisible",type:"checkbox",name:c.value,value:d.value,disabled:s.value,"aria-disabled":s.value,"aria-checked":u.value,onChange:b},null,40,Ml),[[Pt,u.value]]),S("label",{class:q(["relative h-full flex mobile:items-center sm:flex-col sm:justify-between sm:p-8 mobile:px-6 mobile:h-12 font-normal text-20 mobile:text-12 leading-115 sm:leading-130 border",I.value]),for:a.value},[k(Be,{class:q(["object-cover sm:max-w-12 mobile:mr-4 max-w-4",_.value]),media:r.value,"is-lazy-load":!1},null,8,["class","media"]),S("div",Ul,[k(re,{tag:"span",class:"inline",field:v.value},null,8,["field"]),k(Bl,{ref:"increment",class:"ml-2",count:p.value,disabled:s.value,onSetIncrement:F},null,8,["count","disabled"])])],10,ql)]))}},Hl=_e(zl,[["__scopeId","data-v-d023b7e2"]]),Gl={class:"relative"},Wl={class:"h-full"},Zl={__name:"BaseMultipleCheckboxGroup",props:{options:{type:Array,default:()=>[]},data:{type:Object,required:!0},internalName:{type:String,required:!0},isDisabled:{type:Boolean,default:!1},initialValue:{type:Object,default:()=>({})},groupValue:{type:Number,default:0}},emits:["select","error"],setup(t,{emit:f}){const e=t,n=f,p=l(()=>m(e,"data",{})),u=l(()=>m(e,"isDisabled",!1)),o=l(()=>m(e,"internalName","")),d=l(()=>m(e,"groupValue",0)),a=l(()=>m(e,"initialValue",{})),r=(b=null)=>b&&e.initialValue[b]||0,c=(b="")=>p.value?.[b],{value:v,errorMessage:s,errors:h}=ye(o.value,void 0,{initialValue:d.value,validateOnMount:!1}),I=l(()=>!!h.value?.length),_=(b,F,i,D)=>{n("select",{name:b,item:F,value:i,mounted:D})};return X(a,()=>{v.value=d.value}),X(s,()=>{s.value&&!u.value&&n("error",s.value)}),(b,F)=>
2(x(),O("div",Gl,[(x(!0),O(xe,null,he(t.options,(i,D)=>(x(),O("div",{key:D},[S("div",Wl,[k(Hl,{item:i,"group-name":o.value,"is-disabled":u.value,"has-error":I.value,"data-item":c(i?.value?.value),"initial-value":r(i?.value?.value),"data-test-id":"base-radio-button",onSetActiveOption:_},null,8,["item","group-name","is-disabled","has-error","data-item","initial-value"])])]))),128))]))}},Xl=["tab-id","onClick"],Kl={__name:"BaseTabs",props:{activeTab:{type:[Number,String],default:null},items:{type:Array,default:()=>[]},vertical:{type:Boolean,default:!1},textClasses:{type:String,default:""}},emits:["update:activeTab","select"],setup(t,{emit:f}){const e=t,n=ot();be(()=>{n.customNavigationColor=!0,n.setInitialNavigationClasses({textColor:"text-old_velux-black",backgroundColor:"bg-old_velux-white"})}),Vt(()=>{n.customNavigationColor=!1,n.setInitialNavigationClasses({textColor:"text-old_velux-white",backgroundColor:""})});const p=f,u=d=>d===e.activeTab,o=d=>{p("select",d),p("update:activeTab",d)};return(d,a)=>(x(),O("div",{class:q(["flex md:gap-x-8 gap-x-6 text-velux-grey-800",{"flex-row md:flex-col gap-y-4":t.vertical}])},[(x(!0),O(xe,null,he(t.items,(r,c)=>(x(),O("div",{key:r?.id||c,"tab-id":r?.id,class:q(["cursor-pointer tab-item flex gap-3 items-center text-16 leading-115 tracking-16 h-16 old_md:hover:border-velux-grey-400 hover:text-velux-black",{"text-velux-black border-velux-red-800 md:hover:border-velux-red-800":u(r?.id||c),"border-transparent":!u(r?.id||c),"border-t-2":!t.vertical,"md:border-l-2 px-2 h-auto":t.vertical}]),onClick:v=>o(r?.id||c)},[r?.icon?(x(),J(le,{key:0,name:r?.icon,width:"16",height:"16"},null,8,["name"])):ae("",!0),S("span",{class:q(["tab-item__text inline-block w-max",t.textClasses])},Y(r?.title),3)],10,Xl))),128))],2))}};const Ql={__name:"MultipleSelectField",props:{isDisabled:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},internalName:{type:Object,required:!0},analyticParameters:{type:Array,default:()=>[]},layoutColumns:{type:Object,default:()=>({value:"2"})},maxSize:{type:Number,default:5}},emits:["select","change","error"],setup(t,{emit:f}){const e=t,{copyNewStepsItem:n,processingFirstStepFields:p}=$l(),u=f,o=z(null),{x:d}=Bt(o),a=oe(),r=Le(),c=ot(),{setTilesDataField:v,getTilesFieldIndex:s,getTileFieldLength:h,setSteps:I,setExcludeGlobalRelatedId:_,removeExcludeGlobalRelatedId:b,setExcludeFormFieldName:F,setMultiSelectFieldRender:i}=a,{steps:D,selectedTabId:g,tilesData:C,getTilesOccupiedIndex:P,getTilesOccupiedIndexByName:T}=Ve(a);be(()=>{i(!0),F(H.value)}),Rt(()=>{i(!1)});const B=l(()=>m(e,"maxSize")),U=l(()=>m(e,"options",[])),H=l(()=>m(e,"internalName.value","")),ue=l(()=>`grid-cols-${m(e,"layoutColumns.value",2)}`),de=l(()=>c.sidebarOpened?"opacity-0 -z-10":"z-30"),ce=l(()=>Object.values(ve.value).reduceRight((A,$)=>A+$,0)),fe=l(()=>{const A=ce.value>=B.value;return m(e,"isDisabled",!1)||A}),ve=l(()=>U.value.map(({value:$})=>$.value).reduce(($,j)=>{const W={[j]:h(j)||0};return $={...$,...W},$},{})),se=l(()=>{const A=[];return Object.keys(ve.value).map($=>{const j=U.value.find(({value:W})=>W.value===$);for(let W=0;W<ve.value[$];W++){const Z=`${j.title.value} (0${W+1})`,me=`${j.value.value} (0${W+1})`,ie=ve.value[$]>1?Z:j.title.value;A.push({id:me,title:ie})}}),A}),K=z(ce.value||1),ne=(A,$,j="",W=!1)=>{$?_(A):b(A);let Z=Oe(D.value),me=s(j,$)||K.value;if($>1){W&&(me=s(j,1)||me,{copyStepItems:Z}=p({copyStepItems:Z,currentIncrementIndex:me,relatedIds:A}));for(let ie=2;ie<=$;ie++){me=s(j,ie)||me;let pe={},Fe=0,Se=[],Ee={};for({childrenRelatedIds:pe,lastStepIndex:Fe,newStepItems:Se,mappingRelatedIds:Ee}=n({relatedIds:A,copyStepItems:Z,value:$,lastStepIndex:0,childrenRelatedIds:{relatedIds:[],increment:0},mappingRelatedIds:{},newStepItems:Se,parentName:j,numberOfRoom:ie,currentIncrementIndex:me,mounted:W});pe.relatedIds.length;)({childrenRelatedIds:pe,lastStepIndex:Fe,newStepItems:Se,mappingRelatedIds:Ee}=n({relatedIds:pe.relatedIds,copyStepItems:Z,value:$,mappingRelatedIds:Ee,lastStepIndex:Fe,childrenRelatedIds:{relatedIds:[],increment:0},parentName:j,newStepItems:Se,numberOfRoom:pe.increment,currentIncrementIndex:me,isSubRelated:!0,mounted:W}));Se.forEach(({current:ke,item:ge,iterableIndex:Re,shiftFlag:vt,parentIndex:mt},pt)=>{ge.title.iterableIndex=`${Re}`,ge.title.anchorId=`${j} (0${Re})`,ge.iterableCount=$,ge.id=`${ge.id}_${Re}`,ge.copyTilesData={parentNameField:j,iterableIndex:Re},ge.isCopied=!0,Z[ke].title.iterableIndex="1",Z[ke].title.anchorId=`${j} (01)`,Z[ke].iterableParentName=j,Z[ke].iterableCount=$;let Je=Fe+pt+1;vt&&(Je=Fe+mt+1),Z.splice(Je,0,ge)}
2)}}else if($===1){const ie=A[0];({copyStepItems:Z}=p({copyStepItems:Z,currentIncrementIndex:me,relatedIds:A}));const pe=Z.find(Fe=>!!Fe.fields.find(Ee=>{let ke=null;return Ee.type===Q.RADIO_BUTTON_FIELD&&(ke=Ee.options.find(ge=>ge.id===ie)),Ee.id===ie||!!ke}))||{};pe.iterableCount=$,pe.title={...pe.title,anchorId:`${j} (01)`}}else Z.forEach(({iterableParentName:ie,title:pe})=>{ie===j&&(pe.iterableIndex="")});Z=bt(Z,({copyTilesData:ie={},isCopied:pe})=>{if(!pe)return!0;const{parentNameField:Fe,iterableIndex:Se}=ie;return!(j===Fe&&$<Se)}),I(Z)},V=(A,$,j=!1)=>{const W=P.value,Z=T.value[$];return j?A===1?A:gt(1,A).find(ie=>Z.includes(ie))||1:W.includes(A)?xt(1,B.value+1).find(me=>!W.includes(me)):A},E=(A,$)=>{const j=h(A);let W=K.value;if(j<$)W=V(K.value,A);else{const Z=s(A,j);W=V(Z,A,!0)}K.value=W,v(A,$,W)},N=({relatedIds:A},$,j,W)=>{W||E(j,$),ne(A,$,j,W)},M=(A,$)=>A.analyticParameters.map(j=>{const W=j.event.form_field_name,Z=W?W.replace("@index@",$):"";return{...j,event:{...j.event,form_field_name:Z}}}),y=({name:A,item:$,value:j,mounted:W})=>{const Z=M($,j);u("change",{analyticParameters:Z,option:$,iteration:j}),u("select",A),N($,j,A,W)},L=()=>{u("error",e.analyticParameters)},R=A=>{const $=document.getElementById(A);$&&$.scrollIntoView({behavior:"smooth",block:"center"})},G=Te(A=>{const j=o.value.querySelector(`[tab-id="${A}"]`).getBoundingClientRect();d.value=j.x-j.width},500);return X(g,A=>{r.isDesktopDevice.value||(G.cancel(),G(A))}),(A,$)=>(x(),O("div",null,[S("div",{class:q(["flex justify-center fixed top-[60px] old_tablet:top-[50px] old_md:top-[58px] old_mobile:top-16 left-0 bg-old_velux-white w-full pt-1 px-6",de.value])},[S("div",{ref_key:"tabsWrapper",ref:o,class:"overflow-x-auto"},[k(Kl,{"active-tab":w(g),items:se.value,onSelect:R},null,8,["active-tab","items"])],512)],2),k(Zl,{class:q(["grid grid-flow-row gap-x-5 gap-y-6 old_tablet:gap-y-4 old_mobile:grid-cols-1 old_desktop:grid-cols-2 old_sm:auto-rows-[193px]",ue.value]),options:U.value,"internal-name":H.value,"is-disabled":fe.value,"initial-value":ve.value,"max-size":B.value,"group-value":ce.value,data:w(C),onSelect:y,onError:L},null,8,["class","options","internal-name","is-disabled","initial-value","max-size","group-value","data"])]))}},Yl=_e(Ql,[["__scopeId","data-v-5b8e445c"]]),we={eventIds:{FORM_VIEWED:"06C043DE-D9D2-4C61-957A-123C13773349",FORM_START:"51C8F5B2-B316-47BD-B52F-0D412039337B",FORM_START_OPTION:"2A400661-3929-4A36-8AE4-346FD802CA5B",FORM_INTERACTIONS:"B8458526-BE2F-4CA8-B568-CCD1554008D4",FORM_INTERACTIONS_OPTION:"62F7F205-C105-41FF-B4C9-EAB8755C535D",FORM_ERROR:"9636BB53-8EBB-4FD5-8056-F849ADB3BEC8",GENERATE_LEAD:"B2FAD47F-9340-48AC-8CFD-E95C75A598A9",FORM_SUBMIT:"C869C401-D16C-4B24-A338-DFA23C15D451",FILE_UPLOAD:"D339D2D6-7E69-4161-AC8E-07BB9DC79E1D"}},Jl={class:"flex w-full old_tablet:flex-col"},es={class:"w-full grid grid-cols-2 grid-flow-row gap-x-5 gap-y-6 max-w-[1015px]"},ts={__name:"AdvisoryCommonTemplate",props:{stepData:{type:Object,required:!0},isFinalStep:{type:Boolean,default:!1},isFirstStep:{type:Boolean,default:!1},hiddenField:{type:Object,default:null},nextButtonTitle:{type:Object,default:()=>({value:"Next"})},fieldValues:{type:Object,default:()=>({})},validStepData:{type:Boolean,default:!1}},emits:["submitData","touchField"],setup(t,{emit:f}){const e=t,n=we.eventIds.FORM_INTERACTIONS,p=we.eventIds.FORM_INTERACTIONS_OPTION,u=we.eventIds.FILE_UPLOAD,o=we.eventIds.FORM_START,d=we.eventIds.FORM_START_OPTION,a=we.eventIds.FORM_ERROR,r=oe(),c=z(!1),v=[Q.DESCRIPTION_FIELD],{trackEvent:s}=Zt(),{logErrorMessage:h}=He(),{isMobile:I}=Le(),_=z([]),b=f,F={[Q.RADIO_BUTTON_FIELD]:Ca,[Q.REPLACING_FIELD]:Ra,[Q.DROPDOWN_FIELD]:Xa,[Q.INPUT_FIELD]:za,[Q.DROPDOWN_SEARCH_FIELD]:nl,[Q.DESCRIPTION_FIELD]:il,[Q.CHECKBOX_FIELD]:ml,[Q.UPLOAD_IMAGES_FIELD]:Ll,[Q.MULTIPLE_SELECT_FIELD]:Yl},i=l(()=>m(e,"stepData.title",{})),D=l(()=>m(e,"stepData.subtitle",{})),g=l(()=>m(e,"stepData.isOptionalStep",!1)),C=l(()=>r.sendToLearnUpon),P=l(()=>m(e,"stepData.fields",[]));C.value&&P.value.filter(V=>V.type===Q.HIDDEN_FIELD).forEach(V=>{ye(V.name,void 0,{initialValue:r.formData[V.name],validateOnMount:!1})});const T=l(()=>P.value.filter(E=>E.type!==Q.HIDDEN_FIELD).map(E=>{const N=F[E.type];return!E.serverName&&!E?.internalName?.value&&!v.includes(E.type)&&h({message:`internalName and serverName are empty: ${E.type}`,componentName:"AdvisoryCommonTemplate"}),N?{component:N,id:E.id,props:{...E}}:(h({message:`Field template not found, field type: ${E.type}`,componentName:"AdvisoryCommonTemplate"}),null)}).filter(E=>E?.props?.isVisible)),B=V=>V.props?.internalName?.value+V.id,U=()=>{const V=r.steps.map(E=>E.fields.filter(N=>N.type===Q.CHECKBOX_FIELD)).filter(E=>E.length).flat();
2V.length&&V.forEach(E=>{const N={analyticParameters:E.analyticParameters,interactionEventId:n,id:E.id};r.updateDataLayerInteractionEvents(N)})},H=()=>{U(),r.dataLayerInteractionEvents.forEach(V=>{s(V.analyticParameters,V.interactionEventId,"Advisory Form",{isAllowEmptyValues:!0})}),r.clearSavedDataLayerInteractionEvents()},ue=()=>{H(),c.value=!0,b("submitData")},de=V=>{if(r.isFormStarted)return;const E=V.some(N=>N.id===o)?o:d;s(V,E,"Advisory Form",{isAllowEmptyValues:!0}),r.setIsFormStarted(!0)},ce=(V,E)=>{const N=V.props.internalName.value,M=Oe(V);return M.props.internalName.value=N.replace("@index@",E),M},fe=(V,E,N)=>{const M=V.some(L=>L.id===n)?n:p,y={analyticParameters:V,interactionEventId:M,id:N?.id||E?.id};r.updateDataLayerInteractionEvents(y)},ve=({analyticParameters:V,option:E,iteration:N},M)=>{const y=E?ce(M,N):M;r.setTouchedField(y),V?.length&&(de(V),fe(V,M,E))},se=(V,E)=>{r.setTouchedField(E),V?.length&&s(V,u,"Advisory Form",{isAllowEmptyValues:!0})},K=V=>{s(V,a,"Advisory Form",{isAllowEmptyValues:!0})},ne=V=>{const E=m(V,"props.columns.value",2);return{gridColumn:I.value?"span 2 / span 2":`span ${E||1} / span ${E||1}`}};return(V,E)=>(x(),O("div",Jl,[k(na,{class:"old_tablet:mb-12",title:i.value,subtitle:D.value,"is-optional":g.value,"data-test-id":"text-content"},null,8,["title","subtitle","is-optional"]),S("div",{class:q(["relative flex flex-col gap-y-6 w-full mb-[121px] old_mobile:mb-25",{"-mt-[45px]":t.isFirstStep}])},[S("div",es,[(x(!0),O(xe,null,he(T.value,(N,M)=>(x(),O("div",{key:B(N)||M,style:ze(ne(N))},[(x(),J(Mt(N.component),jt({ref_for:!0},N.props,{onChange:y=>ve(y,N),onUploadFiles:y=>se(y,N),onError:K,onFocus:E[0]||(E[0]=y=>de(y))}),null,16,["onChange","onUploadFiles"]))],4))),128))]),t.isFinalStep?(x(),J(_a,{key:0,class:"col-span-2 mt-4 mb-[121px] mobile:mb-20","error-list":_.value,"agreement-title":t.stepData.agreementTitle,"submit-button-title":t.stepData.submitButtonTitle||t.nextButtonTitle,onSubmitData:ue},null,8,["error-list","agreement-title","submit-button-title"])):ae("",!0)],2)]))}},Ie={active:"active",inactive:"inactive",completed:"completed",start:"start"},je={active:"active",inactive:"inactive",completed:"completed"},as={"aria-label":"Progress",class:"m-auto max-w-[1360px]"},ls={role:"list"},ss={class:"relative flex items-start"},ns=["id"],is={class:"relative z-10 flex items-center justify-center rounded-full border h-4 w-4 old_tablet:h-4 old_tablet:w-4 bg-old_velux-white old_tablet:left-[3px]","data-test-id":"step-status"},rs={__name:"AdvisoryPlanningMain",props:{fieldValues:{type:Object,default:()=>({})},sectionTitle:{type:Object,default:()=>({})},nextButtonTitle:{type:Object,default:()=>({value:"Next"})}},emits:["submitData"],setup(t,{emit:f}){const e=t,n=f,p=oe(),u=z([]),o=l(()=>p.steps.filter(v=>!!v.fields.find(s=>s.isVisible))),d=v=>m(v,"fields",[]).filter(_=>_.isVisible).map(_=>m(_,"internalName.value",null)||m(_,"serverName","")).reduce((_,b)=>(b in e.fieldValues&&(_={..._,[b]:e.fieldValues[b]}),_),{}),a=v=>v===Ie.start?"active-line h-[calc(100%_-_12.5px)]":"inactive-line h-[calc(100%_-_32px)] top-1/2 -translate-y-[calc(50%_-_3.5px)]",r=()=>{n("submitData")},c=v=>o.value.findLastIndex(({fields:s})=>s.find(h=>h.isVisible))===v;return(v,s)=>(x(),O("form",null,[S("nav",as,[S("ol",ls,[(x(!0),O(xe,null,he(o.value,(h,I)=>(x(),O("li",{key:h.id,class:"relative"},[S("div",{class:q(["absolute left-2 old_tablet:left-3 -mx-px w-px active-line bg-old_velux-grey-800",a(h.status)]),"aria-hidden":"true","data-test-id":"step-line"},null,2),S("div",ss,[S("span",{id:h.id,ref_for:!0,ref_key:"templateRefs",ref:u,class:"flex items-center scroll-mt-64"},[S("span",is,[h.status==="completed"?(x(),J(le,{key:0,name:"check-glyph",width:"5.5",height:"6"})):ae("",!0)])],8,ns),S("div",{class:q(["w-full",{"-mt-[12.5px]":I!==0}])},[I===0?(x(),J(re,{key:0,class:"block pl-8.5 old_mobile:pl-[19px] text-11 font-normal leading-[13px] tracking-[.06em] text-old_velux-black uppercase",tag:"span",field:t.sectionTitle,"data-test-id":"section-title"},null,8,["field"])):ae("",!0),S("div",{class:q(["pl-8 old_mobile:pl-5",{"mt-8":I===0}])},[S("fieldset",null,[k(ts,{"step-data":h,"is-final-step":c(I),"is-first-step":I===0,"next-button-title":t.nextButtonTitle,"field-values":d(h),"valid-step-data":h.valid,onSubmitData:r}
2,null,8,["step-data","is-final-step","is-first-step","next-button-title","field-values","valid-step-data"])])],2)],2)])]))),128))])])]))}};function os(){return{setVisibleField:(f,e)=>{const n=Oe(f);if(n.type===Q.RADIO_BUTTON_FIELD){const p=n.options.find(u=>e.includes(u.id));n.isVisible=!p}else n.isVisible=!e.includes(f.id);return n}}}function us(t,f,e){const n=oe(),{setVisibleField:p}=os(),{setSteps:u,getFormFieldData:o}=n,d=l(()=>n.steps),a=l(()=>n.excludeGlobalRelatedIds),r=z(!1),c=g=>{if(r.value)return;const C=g.filter(T=>{const B=T.internalName?.value||T.serverName;return T.type!==Q.HIDDEN_FIELD&&B&&T.isVisible});return C.filter(T=>{const B=o(T.internalName?.value)||o(T.serverName)?.id;return typeof B=="object"&&!B.value?!!Array.from(B).length:!!B}).length===C.length?Ie.completed:Ie.active},v=()=>{const g=t.map((C,P)=>{const T={...C};return T.fields=C.fields.map(B=>({isVisible:!0,...B})),T.status=c(T.fields),T.status!==Ie.completed&&(T.status=P?Ie.active:Ie.start),T});u(g),i()},s=(g={})=>{const C=Object.keys(g),T=Oe(d.value).map(B=>{const U=m(B,"fields",[]);return U.filter(({isVisible:ue})=>ue).length&&(r.value=!!U.find(({internalName:ue})=>C.includes(ue?.value)),r.value?B.status=Ie.active:B.status=Ie.completed),B});u(T)},h=l(()=>d.value.reduce((g,C)=>g=[...g,...C.fields],[])),I=l(()=>Xt(d.value,"relatedIds").reduce((g,C)=>g=[...g,...C],[])),_=l(()=>Object.keys(f).reduce((g,C)=>(f[C]&&h.value.forEach(P=>{const T=m(P,"internalName.value")||m(P,"serverName"),B=P.options?.find(U=>{const H=m(U,"value.value");return H===f[T]||H===m(f[T],"value.value")});if(!P.isVisible)return g;B?g.push(...B.relatedIds):T===C&&P.relatedIds&&g.push(...P.relatedIds)}),g),[])),b=l(()=>{const g=[];return I.value.forEach(C=>{const P={},T=h.value.find(({id:B})=>B===C);T&&T?.value?.value&&T.type===Q.HIDDEN_FIELD&&(P.internalName=T.internalName.value,P.id=T.id,P.value=T.value.value),Pe(P)&&g.push(P)}),g}),F=l(()=>I.value.filter(g=>!_.value.includes(g)&&!a.value.includes(g))),i=()=>{const C=Oe(d.value).map(P=>{const B=m(P,"fields",[]).map(U=>p(U,F.value));return{...P,fields:B}});u(C)},D=g=>{const P=Oe(d.value).map(T=>{const B=m(T,"fields",[]);return B.find(H=>H.internalName?.value===g||H.serverName===g)&&(T.status=c(B)),T});u(P)};return X(_,g=>{g.length&&b.value.forEach(C=>{g.includes(C.id)&&e(C.internalName,C.value,!1)})}),{setStepsStatus:s,setupSteps:v,filterSteps:i,updateStepStatusOnChange:D}}const $e={NUMBER:"number",PHONE:"phone",FIRST_NAME:"firstname",LAST_NAME:"lastname",EMAIL:"email"},Ze={INCLUDE_VELUX_EMAIL:"includesveluxemail",EXCLUDE_VELUX_EMAIL:"excludesveluxemail"},Xe={requiredField:"requiredAnd",relatedField:"requiredOr"};function cs(){const{t}=Ne(),f=oe(),{selectedCountryCode:e}=Ve(f);function n(o){const{message:d,effectiveCountryCode:a,isRequired:r}=o;return this.test("checkPhone",d,function(c){return c||(c=""),aa(a)&&(r||c)?la(c,a):!0})}function p(o){const{message:d,isRequired:a}=o;return this.test("checkSelect",d,function(r){if(!(!Pe(r)&&a))return!0})}lt(De,"localPhone",n),lt(We,"listBoxSelect",p);function u(o=[],d=""){if(!o.length)return{};const a=l(()=>({email:t("Feature/Forms/Invalid Email")||"Invalid email",phone:t("Feature/Forms/Invalid Phone")||"Invalid phone number",name:t("Feature/Forms/Invalid Name")||"Invalid name",field:t("Feature/Forms/Required Field")||"Required field"}));return Jt(o.reduce((c,v)=>{const s=m(v,"internalName.value")||m(v,"serverName"),h=v.type,I=m(v,"validationType.value"),_=m(v,"required.value"),b=_===Xe.requiredField,F=_===Xe.relatedField;if(!s||h===Q.REPLACING_FIELD)return c;switch(!0){case s===$e.NUMBER:c[s]=st().typeError(a.value[s]).when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()}).integer().positive();break;case h===Q.MULTIPLE_SELECT_FIELD:c[s]=st().typeError(a.value[s]).when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()}).integer().min(1,a.value.field);break;case s===$e.PHONE:{const D=e.value?.split("-")[1]||""||d;c[s]=De().when([],{is:()=>b,then:g=>g.required(a.value.field),otherwise:g=>g.notRequired()}).localPhone({message:a.value.phone,effectiveCountryCode:D,isRequired:b}).typeError(a.value[s]||a.value.phone)}break;case(s===$e.FIRST_NAME||s===$e.LAST_NAME):c[s]=De().trim().when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()}).matches(/^[\p{L}\p{M}\p{Zs}]*([{\-}|{'}][\p{L}\p{M}\p{Zs}]+)*$/u,a.value[s]||a.value.name);break;case(I===Ze.INCLUDE_VELUX_EMAIL||I===Ze.EXCLUDE_VELUX_EMAIL):{const i=/^$|[a-zA-Z0-9+&*_-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)*velux\.[a-zA-Z]{2,}$/gm,D=/^$|(?!.*@velux\.)[a-zA-Z0-9+&*_-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/gm,g=I===Ze.INCLUDE_VELUX_EMAIL?i:D;c[s]=De().when([],{is:()=>b,then:C=>C.required(a.value.field),otherwise:C=>C.notRequired()}).matches(g,a.value[s]||a.value.email).email(a.value[s]||a.value.email);break}case s===$e.EMAIL:{const i=/^$|[a-zA-Z0-9+&*_-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/gm;c[s]=De().when([],{is:()=>b,then:D=>D.required(a.value.field),otherwise:D=>D.notRequired()}).matches(i,a.value[s]||a.value.email).email(a.value[s]||a.value.email);break}case h===Q.DROPDOWN_FIELD:c[s]=We().when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()}).listBoxSelect({message:a.value.field,isRequired:b}).typeError(a.value[s]||a.value.field);break;case h===Q.DROPDOWN_SEARCH_FIELD:c[s]=We().when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()}).listBoxSelect({message:a.value.field,isRequired:b});break;case h===Q.UPLOAD_IMAGES_FIELD:c[s]=ta().when([],{is:()=>b,then:i=>i.min(1,a.value.field),otherwise:i=>i.notRequired()});break;case h===Q.HIDDEN_FIELD:c[s]=De().notRequired();break;case h===Q.CHECKBOX_FIELD:c[s]=ea().when([],{is:()=>b,then:i=>i.required(a.value.field).oneOf([!0],a.value.field),otherwise:i=>i.notRequired()});break;default:c[s]=De().when([],{is:()=>b,then:i=>i.required(a.value.field),otherwise:i=>i.notRequired()})}return F&&(c[s]=c[s].test("",a.value.field,function(){const{parent:i}=this;return o.filter(g=>g.required?.value===Xe.relatedField).map(g=>g?.internalName?.value).some(g=>!!i[g])})),c},{}))}return{useValidationFormSchema:u}}const ds={__name:"AdvisoryPlanningSection",props:{stepsData:{type:Object,required:!0},sectionTitle:{type:Object,default:()=>({})},sectionStatus:{type:String,default:je.inactive},language:{type:String,default:""},nextButtonTitle:{type:Object,default:()=>({value:"Next"})}},emits:["mountedContent","formHandler","formTouched"],setup(t,{emit:f}){const e=t,n=rt(),p=oe(),u=qt(),o=l(()=>n.sitecoreContext?.requestUrl||""),{setFormData:d,setSubmitFormData:a,setCurrentFormValidate:r}=p,{useValidationFormSchema:c}=cs(),v=f,s=Qe("errorCode"),h=l(()=>m(e,"sectionStatus")),I=l(()=>n.getCountryCode()),_=l(()=>p.steps),b=l(()=>p.excludeFormFieldName),F=l(()=>p.excludeGlobalRelatedIds),i=z({}),{meta:D,handleSubmit:g,values:C,setFieldValue:P,errors:T}=zt({initialValues:p.formData,validationSchema:i}),{setupSteps:B,filterSteps:U,setStepsStatus:H,updateStepStatusOnChange:ue}=us(e.stepsData,C,P);h.value===je.active&&B();const de=l(()=>_.value.reduce((N,M)=>N=[...N,...M.fields],[]).filter(N=>N.isVisible)),ce=()=>{V()},fe=g(()=>{a(ht(C,b.value),I.value),r(!1),v("formHandler",{meta:D})}),ve=()=>{H(T.value),r(!0),fe()},se=Te(()=>{U()},0),K=Te(N=>{const{props:M}=N;ue(M.internalName?.value||M.serverName)}),ne=N=>{K(N),v("formTouched",N)},V=()=>{i.value=c(de.value,I.value)},E=()=>{const N=[];if(Object.keys(T.value).forEach(y=>{const L=_.value.find(R=>R.fields.find(G=>G.internalName?.value===y||G.serverName===y));L&&N.push(L)}),!N.reduce((y,L)=>{const R=`${u.value.origin}${o.value}#${L.id}`;let G="";L.title?.iterableIndex&&(G=parseInt(L.title?.iterableIndex).toLocaleStr
2ing("en-US",{minimumIntegerDigits:2,useGrouping:!1}));const A=m(L,"errorName.value",L.name),$=`<a href="${R}"> ${A} ${G}</a> `;return y.includes($)?y:y+=$},"")){s.value="";return}s.value="SelectFieldError"};return X(F,()=>{se.cancel(),se()}),X(T,()=>{Pe(T.value)&&H(T.value),E()}),X(h,()=>{h.value===je.active&&B()}),X(C,()=>{h.value===je.active&&(se.cancel(),se(),d(C))}),X(i,()=>{if(p.resetValidationSchema.value){p.resetValidationSchema.value=!1;return}ve()}),X(p.newFormData,()=>{Object.entries(p.newFormData).forEach(N=>{P(N[0],N[1])})}),X(p.resetValidationSchema,N=>{N.value&&(i.value={})}),(N,M)=>(x(),J(rs,{"section-title":t.sectionTitle,"section-status":h.value,"next-button-title":t.nextButtonTitle,"data-test-id":"advisory-main",onSubmitData:ce,onTouchField:ne},null,8,["section-title","section-status","next-button-title"]))}},Fs=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"}));export{Fs as A,ds as _,$e as a,we as b,Q as f,je as s};

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.