import{g as v,aT as P,b7 as y,m as R,r as A,by as r,h as p,bw as B,cW as O,n as D,cG as G,j as t,o,c,a as n,H as I,aj as E,s as L,q as S,t as C,x as g,aN as U,u as $,b as i,w as j,a4 as F,i as k,bX as M}from"./D-NqFN1U.js";import{_ as V}from"./DJ23bcL4.js";import{R as _}from"./CUpIs38M.js";import{_ as z}from"./CBaN07Ap.js";import{_ as T}from"./DB9mIyZh.js";import{P as H}from"./BLdnKFvz.js";import{P as q,R as W,a as X}from"./BBF1GmD0.js";const J={key:0,class:"tw-pt-1.5 md:tw-pt-3 tw-pb-0.5 md:tw-pb-2 tw-shadow-nl-5 tw-text-[15px] tw-relative tw-z-50 tw-bg-nl-yellow-100"},K=n("a",{href:"/",class:"tw-hidden lg:tw-block tw-absolute tw-top-[23px] tw-left-[33px] tw-w-[160px]"},[n("img",{src:V,alt:"Nurture Life"})],-1),Q={class:"tw-flex tw-justify-center tw-gap-x-[10px] md:tw-gap-x-[50px]"},Y=["onClick"],Z={key:0},tt=n("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n("circle",{cx:"15",cy:"15",r:"13.5",fill:"#007D4D",stroke:"#007D4D","stroke-width":"3"}),n("path",{d:"M10 16.7188C11.6667 18.3438 12.9167 22 14.5833 22C16.25 22 18.3333 11.8438 20 9",stroke:"white","stroke-width":"3","stroke-linecap":"round"})],-1),et=[tt],nt=v({__name:"Progress",props:{initialSteps:Array},setup(x){const a=x,u=P(),e=y(),d=R(),m=A(!1),b=[r.LOGIN,r.SUCCESS,r.PROCESSING],w=p(()=>new B(u.$state)),f=p(()=>!b.includes(e.name)&&!(e.name==="menus"&&!w.value.hasPlan())),h=p(()=>{if(a.initialSteps)return a.initialSteps;const l=()=>e.name!==r.SIGNUP;return O([m.value?new _("signup",0):null,new _("plans",1,l),new _("menu",2,l),new _("checkout",3,()=>u.isCheckoutStepAvailable&&l())])});return D(()=>{m.value=window.localStorage.getItem(G)||e.name==="signup"}),(l,at)=>t(f)?(o(),c("div",J,[K,n("ul",Q,[(o(!0),c(I,null,E(t(h),(s,N)=>(o(),c("li",{key:s.name},[n("a",{href:"#",onClick:L(lt=>s.navigate(t(d)),["prevent"]),class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-gap-0.5 tw-w-[88px]"},[s.isComplete(t(e),t(w))?(o(),c("span",Z,et)):(o(),c("span",{key:1,class:S(["tw-flex tw-items-center tw-justify-center tw-font-bold tw-h-[30px] tw-w-[30px] tw-rounded-full tw-border-[3px]",{"tw-border-transparent tw-text-white tw-bg-nl-green-400":s.isComplete(t(e),t(w)),"tw-bg-nl-green-400 tw-border-transparent tw-text-white":s.isCurrent(t(e)),"tw-bg-transparent tw-border-nl-green-100 tw-nl-green-100":s.isUpcoming(t(e)),"tw-bg-transparent tw-border-nl-green-100 tw-text-nl-green-100":!s.isCurrent(t(e))}])},C(N+1),3)),n("span",{class:S(["tw-uppercase",{"tw-font-bold":s.isCurrent(t(e))}])},C(s.name),3)],8,Y)]))),128))])])):g("",!0)}}),st={class:"tw-min-h-[calc(var(--vh)-var(--om-floating-height))] tw-flex tw-flex-col tw-bg-nl-yellow-100 tw-text-nl-green-100 tw-antialiased"},ot={class:"tw-sticky tw-top-[var(--om-floating-height)] tw-right-0 tw-left-0 tw-z-[51]"},rt={id:"content",class:"tw-flex-1 tw-flex tw-flex-col"},dt=v({__name:"regflow-new",setup(x){const a=y(),u=U();$({link:[{rel:"stylesheet",href:"/assets/compile/tailwind.css"}]});const e=p(()=>a.name===r.SIGNUP||a.name===r.ONBOARDING_PLANS?!1:u.isCartOpen),d=p(()=>a.name===r.ONBOARDING_PLANS);return(m,b)=>{const w=M,f=nt,h=z,l=T;return o(),c("div",st,[n("div",ot,[i(w,null,{default:j(()=>[i(q),i(H)]),_:1}),i(W),i(X),i(f,{class:"tw-w-full"})]),n("main",rt,[F(m.$slots,"default")]),t(e)?(o(),k(h,{key:0})):g("",!0),t(d)?(o(),k(l,{key:1,class:"tw-block md:tw-hidden"})):g("",!0)])}}});export{dt as default}; //# sourceMappingURL=CBdbzv2K.js.map