1import{a1 as M,c as u,M as o,ao as K,bf as X,bg as Y,aL as Z,ad as Q,af as I,N as r,aF as T,bh as O,ag as c,al as g,ah as f,aA as d,a5 as v,ai as N,aB as $,am as C,an as D,aI as q}from"./Czd9XnOY.js";const ee=M({__name:"DefaultFooterElement",props:["source","isFormQualified","formSubmitDisable","isNextEnable","isFormPosted","isButtonsDisabled","isBackButtonEnabledControl","isProgressBarEnabled","progressPercent"],emits:["checkForNextSlide","moveToPrev"],setup(t,{emit:m}){const{t:b}=I(),e=t,p=m,h=()=>p("checkForNextSlide"),k=()=>p("moveToPrev");return(B,F)=>(o(),r("div",{class:N([{"ghl-footer-preview":e.source==="preview"},"ghl-footer"])},[e.isFormQualified?v("",!0):(o(),r("div",{key:0,style:{position:"absolute",right:"15px",transform:"translate(-50%, -50%)",top:"30px"}},[T($,{loading:e.formSubmitDisable,color:"#FFFFFF",size:"22px"},null,8,["loading"])])),c("div",{class:"ghl-button-bar"},[!e.isNextEnable&&!e.isFormPosted&&e.isFormQualified?(o(),r("div",{key:0,class:"ghl-btn-align ghl-btn-submit"},[e.formSubmitDisable?v("",!0):(o(),r("input",{key:0,id:"nextButton",onClick:h,type:"submit",class:"ghl-button ghl-next-button",name:"nextButton","aria-label":f(b)("survey.next"),value:"Submit"},null,8,["aria-label"])),c("div",{style:{position:"absolute",right:"15px",transform:"translate(-50%, -50%)",top:"30px"}},[T($,{loading:e.formSubmitDisable,color:"#FFFFFF",size:"22px"},null,8,["loading"])])])):v("",!0),e.isNextEnable&&e.isFormQualified?(o(),r("div",{key:1,class:"ghl-btn-align ghl-next-prev"},[c("button",{disabled:e.isButtonsDisabled,onClick:F[0]||(F[0]=w=>h()),type:"button",class:"ghl-button ghl-next-button ghl-mobile-next","aria-label":f(b)("survey.next_button_alt"),style:{display:"block"}},[c("span",{class:"right-pointing-triangle"})],8,["disabled","aria-label"])])):v("",!0),e.isBackButtonEnabledControl?(o(),r("div",{key:2,class:"ghl-btn-align ghl-next-prev"},[c("button",{disabled:e.isButtonsDisabled,onClick:k,type:"button",class:"ghl-button ghl-back-button ghl-mobile-back","aria-label":f(b)("survey.back_button_alt"),style:{display:"block"}},[c("span",{class:"left-pointing-triangle"})],8,["disabled","aria-label"])])):v("",!0)]),e.isProgressBarEnabled?(o(),r("div",{key:1,class:"ghl-progress-bar",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progressPercent},[c("div",{class:"ghl-progress-bar-text"},g(e.progressPercent)+"%",1),c("div",{class:N([{"percent-100":e.progressPercent===100},"ghl-progress-bar-background"])},[c("div",{style:d({width:e.progressPercent+"%"}),class:"ghl-progress-bar-inner"},null,4)],2)],8,["aria-valuenow"])):v("",!0)],2))}}),te=Q(ee,[["__scopeId","data-v-8261250f"]]),G=M({__name:"DynamicArrowIcon",props:{strokeColor:String,direction:{type:String,default:"left"}},setup(t){return(m,b)=>(o(),r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",stroke:`#${t.strokeColor}`,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[t.direction==="left"?(o(),r("path",{key:0,d:"M15 9H3M3 9L7.5 13.5M3 9L7.5 4.5"})):t.direction==="right"?(o(),r("path",{key:1,d:"M3 9H15M15 9L10.5 4.5M15 9L10.5 13.5"})):v("",!0)],8,["stroke"]))}}),le=M({__name:"ButtonBarElement",props:["isStickyFooter","isBackButtonEnable","isNextEnable","isFormPosted","isFormQualified","isButtonsDisabled","formSubmitDisable","buttonConfig","footerStyle","currentSlide","totalSlides","isMobile"],emits:["checkForNextSlide","moveToPrev"],setup(t,{emit:m}){const{t:b}=I(),e=m,p=()=>e("checkForNextSlide"),h=()=>e("moveToPrev"),k=()=>{t.isButtonsDisabled||p()},B=()=>{t.isButtonsDisabled||h()},F=u(()=>{var l;return(l=t.buttonConfig)==null?void 0:l.fontColor}),w=u(()=>{var l;return(l=t.buttonConfig)==null?void 0:l.prevBtnText}),P=u(()=>{var l;return(l=t.buttonConfig)==null?void 0:l.nextBtnText}),x=u(()=>{var l;return(l=t.buttonConfig)==null?void 0:l.submitBtnText}),y=u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.container)??{}}),i=u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.nextButton)??{}}),a=u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.backButton)??{}}),S=u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.submitButton)??{}}),L=u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.icon)??{}});u(()=>{var l,n,s;return((s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.loader)??{}});const z=u(()=>{var l,n,s,E;const _=(E=(s=(n=(l=t.footerStyle)==null?void 0:l.computedStyles)==null?void 0:n.styles)==null?void 0:s.icon)==null?void 0:E.
1color;return _?_.replace(/^#/,""):F.value});return(l,n)=>{var s,E,_,R,A,V,H,j;return o(),r("div",{class:"ghl-footer-buttons",style:d(y.value)},[t.isBackButtonEnable?(o(),r("div",{key:0,role:"button",tabindex:"0",class:N(["ghl-btn ghl-footer-back",{"disabled-button":t.isButtonsDisabled}]),style:d(a.value),"aria-disabled":t.isButtonsDisabled,"aria-label":w.value||"Previous step",onClick:h,onKeydown:[C(D(B,["prevent"]),["enter"]),C(D(B,["prevent"]),["space"])]},[(s=t.footerStyle.computedStyles)!=null&&s.showArrow?(o(),K(G,{key:0,direction:"left",class:"ghl-footer-back-arrow",strokeColor:z.value,style:d({marginRight:"2px",stroke:f(q)(z.value),...L.value})},null,8,["strokeColor","style"])):v("",!0),(E=t.footerStyle.computedStyles)!=null&&E.showText?(o(),r("span",{key:1},g(w.value),1)):v("",!0)],46,["aria-disabled","aria-label","onKeydown"])):(o(),r("div",{key:1,class:"ghl-btn-placeholder",style:d(a.value),"aria-hidden":"true"},null,4)),t.isMobile&&(_=t.footerStyle)!=null&&_.enableProgressBar&&t.totalSlides>1?(o(),r("div",{key:2,class:"ghl-mobile-step-indicator",role:"status","aria-live":"polite"},[c("span",{class:"ghl-mobile-step-text",style:d((V=(A=(R=t.footerStyle.computedStyles)==null?void 0:R.styles)==null?void 0:A.progressBar)==null?void 0:V.textStyle)},g(t.currentSlide+1)+" "+g(f(b)("survey.of"))+" "+g(t.totalSlides),5)])):v("",!0),t.isNextEnable&&t.isFormQualified?(o(),r("div",{key:3,role:"button",tabindex:"0",class:N(["ghl-btn ghl-footer-next",{"disabled-button":t.isButtonsDisabled}]),style:d(i.value),"aria-disabled":t.isButtonsDisabled,"aria-label":P.value||"Next step",onClick:p,onKeydown:[C(D(k,["prevent"]),["enter"]),C(D(k,["prevent"]),["space"])]},[(H=t.footerStyle.computedStyles)!=null&&H.showText?(o(),r("span",{key:0},g(P.value),1)):v("",!0),(j=t.footerStyle.computedStyles)!=null&&j.showArrow?(o(),K(G,{key:1,direction:"right",class:"ghl-footer-next-arrow",strokeColor:z.value,style:d({marginLeft:"2px",stroke:f(q)(z.value),...L.value})},null,8,["strokeColor","style"])):v("",!0)],46,["aria-disabled","aria-label","onKeydown"])):v("",!0),!t.isNextEnable&&!t.isFormPosted&&t.isFormQualified&&!t.formSubmitDisable?(o(),r("div",{key:4,role:"button",tabindex:"0",class:"ghl-btn ghl-submit-btn",style:d(S.value),"aria-label":x.value||"Submit",onClick:p,onKeydown:[C(D(p,["prevent"]),["enter"]),C(D(p,["prevent"]),["space"])]},g(x.value),45,["aria-label","onKeydown"])):!t.isNextEnable&&!t.isFormPosted&&t.isFormQualified&&t.formSubmitDisable?(o(),r("div",{key:5,class:"ghl-btn-placeholder",style:d(S.value),role:"status","aria-busy":"true","aria-label":f(b)("survey.submitting")},[T($,{loading:!0,color:"#FFFFFF",size:"25px"})],12,["aria-label"])):!t.isNextEnable&&!t.isFormQualified?(o(),r("div",{key:6,class:"ghl-btn-placeholder","aria-hidden":"true"})):v("",!0)],4)}}}),W=Q(le,[["__scopeId","data-v-0decf3c9"]]),oe=M({__name:"PercentageBarFooterElement",props:["footerStyle","isStickyFooter","isFunnelPreview","source","isFormQualified","formSubmitDisable","isNextEnable","isFormPosted","isButtonsDisabled","isBackButtonEnable","isProgressBarEnabled","progressPercent","currentSlide","totalSlides","isMobile"],emits:["checkForNextSlide","moveToPrev"],setup(t,{emit:m}){const{t:b}=I(),e=t,p=u(()=>{var y,i,a;return{...(y=e.footerStyle)==null?void 0:y.buttonStyle,isButtonsDisabled:e.isButtonsDisabled,fontSize:(i=e.footerStyle)==null?void 0:i.fontSize,borderRadius:(a=e.footerStyle)==null?void 0:a.borderRadius}}),h=u(()=>Math.min(100,Math.max(0,Number(e.progressPercent)||0))),k=m,B=()=>k("checkForNextSlide"),F=()=>k("moveToPrev"),w=()=>e.isFunnelPreview?e.isStickyFooter?"static":"absolute":e.isStickyFooter?"static":"fixed",P=u(()=>{var y,i,a;return((a=(i=(y=e.footerStyle)==null?void 0:y.computedStyles)==null?void 0:i.styles)==null?void 0:a.progressBar)??{}}),x=u(()=>{var y,i;const a=(i=(y=e.footerStyle)==null?void 0:y.computedStyles)==null?void 0:i.styles;return{...a?.footer??{},position:w()}});return(y,i)=>(o(),r("div",{role:"contentinfo",class:N([{"ghl-footer-preview":e.source==="preview"},"ghl-footer"]),style:d(x.value)},[T(W,O(y.$props,{buttonConfig:p.value,currentSlide:e.currentSlide,totalSlides:e.totalSlides,isMobile:e.isMobile,onCheckForNextSlide:B,onMoveToPrev:F}),null,16,["buttonConfig","currentSlide","totalSlides","isMobile"]),e.footerStyle.enableProgressBar&&!e.isStickyFooter?(o(),r("div",{key:0,class:"ghl-progress-container ghl-progress-container--mobile-hidden"},[c("div",{role:"progressbar","aria-valuenow":h.value,"aria-valuemin":"
10","aria-valuemax":"100","aria-label":f(b)("survey.progress"),class:"ghl-footer-progress-bar",style:d(P.value.barStyle)},[c("div",{class:"ghl-progress-bar-fill",style:d({width:(e.progressPercent||10)+"%",...P.value.fillStyle})},[c("div",{class:"ghl-footer-progress-text","aria-hidden":"true"},g(e.progressPercent)+"%",1)],4)],12,["aria-valuenow","aria-label"])])):v("",!0)],6))}}),re=Q(oe,[["__scopeId","data-v-60f05b65"]]),J="ghl-survey-progress-label",se=M({__name:"StepsFooterElement",props:["footerStyle","isStickyFooter","isFunnelPreview","source","isFormQualified","formSubmitDisable","isNextEnable","isFormPosted","isButtonsDisabled","isBackButtonEnable","isProgressBarEnabled","progressPercent","currentSlide","totalSlides","isMobile"],emits:["checkForNextSlide","moveToPrev"],setup(t,{emit:m}){const{t:b}=I(),e=t,p=u(()=>{var i,a,S;return{...(i=e.footerStyle)==null?void 0:i.buttonStyle,isButtonsDisabled:e.isButtonsDisabled,fontSize:(a=e.footerStyle)==null?void 0:a.fontSize,borderRadius:(S=e.footerStyle)==null?void 0:S.borderRadius}}),h=m,k=()=>h("checkForNextSlide"),B=()=>h("moveToPrev"),F=u(()=>e.currentSlide===e.totalSlides-1?95:(e.currentSlide+1)*100/e.totalSlides),w=u(()=>e.totalSlides>0?Math.round((e.currentSlide+1)/e.totalSlides*100):0),P=()=>e.isFunnelPreview?e.isStickyFooter?"static":"absolute":e.isStickyFooter?"static":"fixed",x=u(()=>{var i,a,S;return((S=(a=(i=e.footerStyle)==null?void 0:i.computedStyles)==null?void 0:a.styles)==null?void 0:S.progressBar)??{}}),y=u(()=>{var i,a;const S=(a=(i=e.footerStyle)==null?void 0:i.computedStyles)==null?void 0:a.styles;return{...S?.footer??{},position:P()}});return(i,a)=>(o(),r("div",{role:"contentinfo",class:N([{"ghl-footer-preview":e.source==="preview"},"ghl-footer"]),style:d(y.value)},[T(W,O(i.$props,{buttonConfig:p.value,currentSlide:e.currentSlide,totalSlides:e.totalSlides,isMobile:e.isMobile,onCheckForNextSlide:k,onMoveToPrev:B}),null,16,["buttonConfig","currentSlide","totalSlides","isMobile"]),e.footerStyle.enableProgressBar&&!e.isStickyFooter?(o(),r("div",{key:0,class:"ghl-progress-container ghl-progress-container--mobile-hidden"},[c("p",{id:J,class:"ghl-footer-progress-text",style:d(x.value.textStyle)},g(f(b)("survey.showing"))+" "+g(e.currentSlide+1)+" "+g(f(b)("survey.of"))+" "+g(e.totalSlides),5),c("div",{role:"progressbar","aria-valuenow":w.value,"aria-valuemin":"0","aria-valuemax":"100","aria-labelledby":J,"aria-label":f(b)("survey.progress"),class:"ghl-footer-progress-bar",style:d(x.value.barStyle)},[c("div",{class:"ghl-progress-bar-fill",style:d({width:`${F.value}%`,...x.value.fillStyle})},null,4)],12,["aria-valuenow","aria-label"])])):v("",!0)],6))}}),U=Q(se,[["__scopeId","data-v-0c88824b"]]),ae=M({__name:"FooterSwitcher",props:["footerStyle","isNewFooter"],setup(t){const m=t,b=u(()=>{var e;const p=(e=m.footerStyle)==null?void 0:e.theme;if(m.isNewFooter)switch(p){case"percentageBar":return re;case"steps":return U;default:return U}else return te});return(e,p)=>(o(),K(Z(b.value),X(Y(e.$props)),null,16))}});export{ae 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.