1import{U as v}from"#entry";import{c as i}from"./wzWXuswT.js";import{s as b}from"./DDOY1lLW.js";import{y as w,ai as k,A as s,a4 as p,X as h,al as _,ag as S,D as $,aq as F,_ as l,ao as C,ak as u,F as m,a5 as D,$ as P}from"./D0rPpKiU.js";import"./D_gTWDL9.js";const z={key:0,"aria-label":"Purchase flow progress"},B={class:"flex overflow-hidden bg-cool-grey-150"},j=["aria-current"],r=30,A=w({__name:"PurchaseFlowStepper",props:{blok:{}},setup(f){const g=f,c=$(()=>b(g.blok.steps));function y(a){return b(a.label).map(e=>!e||e.component!=="Editor"?e:{...e,font_size:e.font_size||"button-text-small",text_color:e.text_color||(a.active?"white":"cool-grey-500")})}function x(a,e){const n=a===0,t=a===e-1;let o;return n?o=`polygon(0 0, calc(100% - ${r}px) 0, 100% 50%, calc(100% - ${r}px) 100%, 0 100%)`:t?o=`polygon(0 0, 100% 0, 100% 100%, 0 100%, ${r}px 50%)`:o=`polygon(0 0, calc(100% - ${r}px) 0, 100% 50%, calc(100% - ${r}px) 100%, 0 100%, ${r}px 50%)`,{clipPath:o}}return(a,e)=>{const n=F("editable");return c.value.length>0?k((l(),s("nav",z,[p("ol",B,[(l(!0),s(h,null,_(c.value,(t,o)=>(l(),s("li",{key:t._uid,class:u(m(i)("relative flex items-center justify-center py-4 pl-[44px] pr-[30px] md:w-1/3",t.active?"w-3/5 bg-orange-500 text-white md:w-1/3":"w-1/5 text-cool-grey-500 md:w-1/3")),"aria-current":t.active?"step":void 0,style:C(x(o,c.value.length))},[p("span",{class:u(m(i)("flex h-7 w-7 shrink-0 items-center justify-center bg-white rounded-full border-2 text-sm",t.active?"border-white/30 bg-white text-orange-500":"border-cool-grey-250 text-cool-grey-500"))},D(o+1),3),p("div",{class:u(m(i)("ml-3",t.active?"block":"hidden md:block"))},[(l(!0),s(h,null,_(y(t),d=>(l(),P(v,{key:d._uid,blok:d},null,8,["blok"]))),128))],2)],14,j))),128))])])),[[n,f.blok]]):S("",!0)}}}),V=Object.assign(A,{__name:"PurchaseFlowStepper"});export{V 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.