1import{p as E,r as f,x as R,O as X,a1 as K,o as a,c as n,a as e,j as B,t as l,F as w,g as j,y as A,h as v,H as z,k as g,e as Y,f as Q,_ as te,m as se,v as Z,z as ae,E as le,aY as ne,b as oe,s as ie,w as re,d as de,C as ce,i as me,l as H}from"./D3nmt92m.js";import{s as ue}from"./jSpz5dxS.js";import{u as ge}from"./CoxrE4z9.js";const xe={class:"relative overflow-hidden bg-glotelho-blue text-white"},be={class:"px-4 py-12 sm:px-6 md:mx-[5rem] md:py-16 sm:mx-[3rem] lg:mx-[7rem] lg:py-20 2xl:mx-auto 2xl:max-w-[1700px] xl:py-24"},he={class:"grid min-w-0 grid-cols-1 items-center gap-8 lg:grid-cols-[1.15fr_0.85fr] lg:gap-14"},pe={class:"min-w-0 motion-safe:animate-[ag-fade-up_.5s_ease-out_both]"},fe={class:"mb-3 inline-flex items-center gap-2 text-xs font-medium uppercase tracking-[0.1em] text-orange-200 sm:text-sm"},ve={class:"break-words text-[1.75rem] font-bold leading-tight tracking-tight text-white sm:text-4xl lg:text-5xl"},we={class:"text-orange-400 not-italic"},ye={class:"mt-4 max-w-xl text-sm leading-6 text-slate-100 sm:mt-5 sm:text-base sm:leading-7 md:text-lg md:leading-8"},ke={class:"mt-5 flex flex-wrap gap-2 sm:mt-7 sm:gap-2.5"},_e={class:"min-w-0 flex flex-col gap-4 motion-safe:animate-[ag-fade-up_.55s_ease-out_.08s_both]"},$e={class:"relative overflow-hidden rounded-2xl border border-dashed border-slate-300 bg-white p-4 text-glotelho-blue shadow-2xl sm:p-6"},Ce={class:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-4"},Le={class:"min-w-0"},Ae={class:"text-xs font-semibold text-slate-600 sm:text-sm"},je={class:"mt-0.5 break-words text-lg font-semibold tracking-tight sm:text-xl md:text-2xl"},Se={class:"shrink-0 self-start rounded-xl bg-glotelho-blue px-3 py-2 text-center sm:min-w-[118px]"},Me={class:"mt-0.5 text-[0.65rem] font-medium uppercase leading-tight tracking-[0.04em] text-slate-200 sm:text-xs sm:tracking-[0.06em]"},Be={class:"min-w-0"},Ie={class:"mb-2 flex flex-col gap-2 text-sm sm:flex-row sm:items-center sm:justify-between sm:gap-3 sm:text-base"},Ge={class:"flex min-w-0 flex-wrap items-center gap-2 sm:gap-2.5"},Te={key:0,class:"flex shrink-0 items-center gap-1"},Pe={key:0,class:"ag-avatars-ellipsis shrink-0 pb-0.5 text-xs font-bold leading-none text-slate-500 sm:text-sm","aria-hidden":"true"},Re={class:"min-w-0 break-words font-bold leading-snug text-amber-800"},Ne={class:"shrink-0 font-medium text-slate-700"},Oe={class:"relative h-3 overflow-hidden rounded-full bg-slate-200 sm:h-3.5"},Ee={class:"mt-2 text-xs leading-relaxed text-slate-600 sm:mt-2.5 sm:text-sm"},De={class:"text-red-600"},U=48*3600,He=1600,Ve=E({__name:"Hero",props:{eyebrow:{},titleBefore:{},titleEmphasis:{},titleAfter:{},titleLine2:{},lead:{},badges:{},campaignCard:{},ctaLink:{},ctaLabel:{}},setup(t){const d=t,h={"bg-blue-600":"bg-blue-600","bg-violet-600":"bg-violet-600","bg-emerald-600":"bg-emerald-600","bg-rose-600":"bg-rose-600","bg-amber-600":"bg-amber-600"};function r(u){return h[u]??u}const o=f(W(U)),m=f("0%"),x=f(null),y=f(!1),k=f(!1),p=f(0),S=f(0),$=f(0),C=R(()=>d.campaignCard.paidLabel.replace("{count}",String(p.value))),G=R(()=>d.campaignCard.totalLabel.replace("{count}",String(S.value))),D=R(()=>d.campaignCard.remainingHighlight.replace("{count}",String($.value))),N=R(()=>{const u=d.campaignCard.participantAvatars?.length??0;return u>0&&u<d.campaignCard.paidCount});let T=null,i=null,c=null,s=null,M=U;function _(u){return 1-Math.pow(1-u,3)}function q(){const{paidCount:u,totalCount:b,remainingCount:I}=d.campaignCard,L=performance.now();p.value=0,S.value=0,$.value=b;const P=ee=>{const J=Math.min((ee-L)/He,1),F=_(J);p.value=Math.round(u*F),S.value=Math.round(b*F),$.value=Math.round(b-(b-I)*F),J<1?s=requestAnimationFrame(P):(p.value=u,S.value=b,$.value=I,s=null)};s&&cancelAnimationFrame(s),s=requestAnimationFrame(P)}function W(u){const b=Math.floor(u/3600),I=Math.floor(u%3600/60),L=Math.floor(u%60);return[b,I,L].map(P=>String(P).padStart(2,"0")).join(":")}return X(()=>{if(T=ue(()=>{M>0&&(M--,o.value=W(M),y.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{y.value=!1},170))},1e3),!x.value)return;const u=new IntersectionObserver(b=>{b.forEach(I=>{I.isIntersecting&&(m.value=`${d.campaignCard.gaugePercent}%`,q(),k.value=!0,c&&clearTimeout(c),c=setTimeout(()=>{k.value=!1},760),u.disconnect())})},{threshold:.4});u.observe(x.value)}),K(()=>{T&&clearInterval(T),i&&clearTimeout(i),c&&clearTimeout(c),s&&cancelAnimationFrame(s)}),(u,b)=>{const I=te;return a(),n("header",xe,[b[2]||(b[2]=e("div",{class:"pointer-events-none absolute -right-24 -top-24 h-80 w-80 rounded-full bg-orange-400/20 blur-3xl","aria-hidden":"true"},null,-1)),e("div",be,[e("div",he,[e("div",pe,[e("p",fe,[b[0]||(b[0]=e("span",{class:"h-2 w-2 shrink-0 rounded-full bg-orange-400"},null,-1)),B(" "+l(t.eyebrow),1)]),e("h1",ve,[B(l(t.titleBefore),1),e("em",we,l(t.titleEmphasis),1),B(l(t.titleAfter),1),b[1]||(b[1]=e("br",null,null,-1)),B(" "+l(t.titleLine2),1)]),e("p",ye,l(t.lead),1),e("div",ke,[(a(!0),n(w,null,j(t.badges,L=>(a(),n("span",{key:L,class:"rounded-full border border-white/30 px-2.5 py-1 text-xs text-slate-100 sm:px-3 sm:py-1.5 sm:text-sm"},l(L),1))),128))])]),e("div",_e,[e("div",$e,[e("div",Ce,[e("div",Le,[e("p",Ae,l(t.campaignCard.label),1),e("p",je,l(t.campaignCard.name),1)]),e("div",Se,[e("p",{class:A(["text-base font-bold tabular-nums tracking-wide text-orange-400 transition-transform duration-150 ease-out sm:text-xl motion-safe:sm:scale-100",v(y)?"motion-safe:sm:scale-[1.04]":"scale-100"])},l(v(o)),3),e("p",Me,l(t.campaignCard.countdownLabel),1)])]),e("div",Be,[e("div",Ie,[e("div",Ge,[t.campaignCard.participantAvatars?.length?(a(),n("div",Te,[e("div",{class:"ag-avatars-stack flex shrink-0 flex-row -space-x-2 overflow-hidden sm:-space-x-2.5",style:z({"--avatar-count":t.campaignCard.participantAvatars.length}),"aria-hidden":"true"},[(a(!0),n(w,null,j(t.campaignCard.participantAvatars,(L,P)=>(a(),n("div",{key:`${L.initials}-${P}`,class:A(["relative flex h-7 w-7 shrink-0 items-center justify-center rounded-full border-2 border-white text-[0.65rem] font-semibold text-white shadow-md sm:h-8 sm:w-8 sm:text-[0.7rem]",r(L.color)]),style:z({zIndex:P+1})},l(L.initials),7))),128))],4),v(N)?(a(),n("span",Pe,"...")):g("",!0)])):g("",!0),e("span",Re,l(v(C)),1)]),e("span",Ne,l(v(G)),1)]),e("div",Oe,[e("div",{ref_key:"heroGaugeRef",ref:x,class:"h-full rounded-full bg-gradient-to-r from-green-800 to-green-600 transition-[width] duration-[1600ms] ease-out",style:z({width:v(m)})},null,4),e("div",{class:A(["pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 -skew-x-12 bg-gradient-to-r from-transparent via-white/45 to-transparent opacity-0",v(k)?"motion-safe:animate-[ag-gauge-sheen_.75s_ease-out]":""])},null,2)]),e("p",Ee,[B(l(t.campaignCard.remainingBefore),1),e("strong",De,l(v(D)),1),B(l(t.campaignCard.remainingAfter),1)])])]),Y(I,{to:t.ctaLink,class:"inline-flex w-full items-center justify-center rounded-md bg-glotelho-yellow px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-white hover:text-glotelho-blue active:scale-[0.98] motion-safe:animate-[ag-breathe_4.8s_ease-in-out_infinite] sm:text-base"},{default:Q(()=>[B(l(t.ctaLabel),1)]),_:1},8,["to"])])])])])}}}),ze=se(Ve,[["__scopeId","data-v-08350e7d"]]),Fe=["id"],qe={class:"px-4 sm:px-6 md:mx-[5rem] sm:mx-[3rem] lg:mx-[7rem] 2xl:mx-auto 2xl:max-w-[1700px]"},We={class:"grid min-w-0 grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-12 xl:gap-16"},Je={key:0,class:"w-full max-w-xs"},Ue={class:"rounded-xl border border-slate-200 bg-slate-50 p-4 shadow-sm"},Xe={class:"text-sm font-semibold text-glotelho-blue"},Ke={class:"mt-2 flex items-baseline gap-2"},Ye={class:"text-lg font-bold text-green-700"},Qe={class:"text-sm text-slate-400 line-through"},Ze={class:"mt-2 inline-block rounded-full bg-orange-100 px-2.5 py-0.5 text-xs font-semibold text-orange-800"},et={key:0,class:"mt-4 text-center text-base leading-relaxed text-slate-600"},tt={key:1,class:"grid w-full max-w-sm grid-cols-1 gap-3 min-[400px]:grid-cols-2"},st={class:"rounded-xl border-2 border-glotelho-blue bg-glotelho-blue/5 p-4 text-center"},at={class:"text-sm font-bold text-glotelho-blue"},lt={class:"rounded-xl border-2 border-orange-400 bg-orange-50 p-4 text-center"},nt={class:"text-sm font-bold text-orange-800"},ot={key:0,class:"col-span-1 mt-1 text-center text-sm leading-relaxed text-slate-600 min-[400px]:col-span-2 sm:text-base"},it={key:2,class:"w-full max-w-xs"},rt={class:"mb-4 flex items-center gap-2 rounded-xl border border-slate-200 bg-slate-50 px-3 py-2.5"},dt={class:"truncate text-sm text-slate-600"},ct={key:3,class:"w-full max-w-sm text-center"},mt={class:"mb-4 flex flex-wrap justify-center gap-1.5 sm:gap-2"},ut={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2.5",stroke:"currentColor",class:"h-5 w-5"},gt={key:1},xt={class:"text-lg font-bold text-glotelho-blue"},bt={key:0,class:"mt-2 text-base leading-relaxed text-slate-600"},ht={key:4,class:"w-full max-w-xs text-center"},pt={class:"mb-4 flex flex-wrap items-center justify-center gap-4 sm:gap-6"},ft={class:"flex flex-col items-center gap-2"},vt={class:"text-xs font-semibold uppercase tracking-wide text-slate-600"},wt={class:"flex flex-col items-center gap-2"},yt={class:"text-xs font-semibold uppercase tracking-wide text-slate-600"},kt={key:0,class:"inline-block rounded-full bg-green-100 px-3.5 py-1.5 text-xs font-semibold text-green-800"},_t={class:"mb-3 break-words text-xl font-bold tracking-tight sm:mb-4 sm:text-2xl lg:text-3xl"},$t=E({__name:"Point",props:{sectionId:{},visual:{},reversed:{type:Boolean},tag:{},tagVariant:{},title:{},paragraphs:{},visualCaption:{},browseProductName:{},browseTeamPrice:{},browseRegularPrice:{},browseBadge:{},teamStartLabel:{},teamJoinLabel:{},shareLinkLabel:{},chatBubbles:{},formationMembers:{},formationProgressLabel:{},paymentStepLabel:{},deliveryStepLabel:{},lockStatus:{}},setup(t){const d=t,h=R(()=>{const r={browse:"bg-blue-100 text-blue-800",team:"bg-orange-100 text-orange-800",share:"bg-green-100 text-green-800",formation:"bg-violet-100 text-violet-800",payment:"bg-glotelho-yellow-25 text-glotelho-blue"};return r[d.tagVariant]||r.browse});return(r,o)=>(a(),n("section",{id:t.sectionId,class:"border-b border-gray-200 py-12 sm:py-16 md:py-20"},[e("div",qe,[e("div",We,[e("div",{class:A(["flex min-h-[240px] items-center justify-center rounded-2xl border border-gray-200 bg-white p-5 sm:min-h-[280px] sm:p-8",t.reversed?"order-1 lg:order-2":""])},[t.visual==="browse"?(a(),n("div",Je,[e("div",Ue,[o[0]||(o[0]=e("div",{class:"mb-3 flex h-28 items-center justify-center rounded-lg bg-white"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-12 w-12 text-slate-300"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-6 18.75h6"})])],-1)),e("p",Xe,l(t.browseProductName),1),e("div",Ke,[e("span",Ye,l(t.browseTeamPrice),1),e("span",Qe,l(t.browseRegularPrice),1)]),e("span",Ze,l(t.browseBadge),1)]),t.visualCaption?(a(),n("p",et,l(t.visualCaption),1)):g("",!0)])):t.visual==="team"?(a(),n("div",tt,[e("div",st,[o[1]||(o[1]=e("div",{class:"mx-auto mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-glotelho-blue text-white"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])],-1)),e("p",at,l(t.teamStartLabel),1)]),e("div",lt,[o[2]||(o[2]=e("div",{class:"mx-auto mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-orange-400 text-white"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"})])],-1)),e("p",nt,l(t.teamJoinLabel),1)]),t.visualCaption?(a(),n("p",ot,l(t.visualCaption),1)):g("",!0)])):t.visual==="share"?(a(),n("div",it,[e("div",rt,[o[3]||(o[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5 shrink-0 text-glotelho-blue"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})],-1)),e("span",dt,l(t.shareLinkLabel),1)]),(a(!0),n(w,null,j(t.chatBubbles,(m,x)=>(a(),n("div",{key:x,class:A(["mb-2.5 max-w-[88%] rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed motion-safe:animate-[achat-groupe-rise_0.5s_ease_forwards]",[m.mine?"ml-auto rounded-br-sm bg-green-100 font-medium text-green-900":"rounded-bl-sm bg-slate-100 text-glotelho-blue"]]),style:z({animationDelay:`${m.delay}s`})},l(m.text),7))),128))])):t.visual==="formation"?(a(),n("div",ct,[e("div",mt,[(a(!0),n(w,null,j(t.formationMembers,(m,x)=>(a(),n("div",{key:x,class:A(["flex h-9 w-9 items-center justify-center rounded-full border-2 text-xs font-bold sm:h-11 sm:w-11",m.joined?"border-green-600 bg-green-600 text-white":"border-dashed border-slate-300 bg-slate-50 text-slate-400"])},[m.joined?(a(),n("svg",ut,[...o[4]||(o[4]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)])])):(a(),n("span",gt,"?"))],2))),128))]),e("p",xt,l(t.formationProgressLabel),1),t.visualCaption?(a(),n("p",bt,l(t.visualCaption),1)):g("",!0)])):t.visual==="payment"?(a(),n("div",ht,[e("div",pt,[e("div",ft,[o[5
1]||(o[5]=e("div",{class:"flex h-14 w-14 items-center justify-center rounded-full bg-glotelho-yellow text-glotelho-blue"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-7 w-7"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})])],-1)),e("p",vt,l(t.paymentStepLabel),1)]),o[7]||(o[7]=e("div",{class:"flex items-center text-slate-300"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})])],-1)),e("div",wt,[o[6]||(o[6]=e("div",{class:"flex h-14 w-14 items-center justify-center rounded-full bg-green-600 text-white"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-7 w-7"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 18.75a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 01-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 00-3.213-9.193 2.056 2.056 0 00-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 00-10.026 0 1.106 1.106 0 00-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12"})])],-1)),e("p",yt,l(t.deliveryStepLabel),1)])]),t.lockStatus?(a(),n("p",kt,l(t.lockStatus),1)):g("",!0)])):g("",!0)],2),e("div",{class:A(["min-w-0",t.reversed?"order-2 lg:order-1":""])},[e("span",{class:A(["mb-3 inline-block rounded-md px-2.5 py-1 text-xs font-semibold uppercase tracking-[0.08em]",v(h)])},l(t.tag),3),e("h2",_t,l(t.title),1),(a(!0),n(w,null,j(t.paragraphs,(m,x)=>(a(),n("p",{key:x,class:A(["max-w-xl text-sm leading-6 text-slate-700 sm:text-base sm:leading-7",x>0?"mt-3":""])},l(m),3))),128))],2)])])],8,Fe))}}),Ct={key:0,class:"bg-[#f1f5f9] py-10 sm:py-12 md:py-16"},Lt={class:"px-4 sm:px-6 md:mx-[5rem] sm:mx-[3rem] lg:mx-[7rem] 2xl:mx-auto 2xl:max-w-[1700px]"},At={class:"mb-6 max-w-2xl sm:mb-8"},jt={key:0,class:"mb-3 inline-flex items-center gap-2 text-xs font-medium uppercase tracking-[0.1em] text-orange-500 sm:text-sm"},St={key:1,class:"text-xl font-bold tracking-tight text-glotelho-blue sm:text-2xl lg:text-3xl"},Mt={key:2,class:"mt-2 text-sm leading-6 text-gray-600 sm:text-base sm:leading-7"},Bt={class:"absolute inset-0"},It=["src","alt"],Gt=["aria-label"],Tt=["aria-label"],Pt={key:0,class:"mt-4 flex items-center justify-center gap-2",role:"tablist","aria-label":"Gallery slides"},Rt=["aria-label","aria-selected","onClick"],O=14,Nt=E({__name:"Gallery",props:{enabled:{type:Boolean,default:!0},eyebrow:{default:""},title:{default:""},lead:{default:""}},setup(t){const d=Array.from({length:O},(i,c)=>{const s=String(c+1).padStart(4,"0");return`/images/group-buy/${encodeURIComponent(`GLOTELHO Group Buy_page-${s}.jpg`)}`}),h=f(null),r=f(!1),o=f(0),m=f(new Set([0]));let x=null,y=null,k=null,p=null;const S=i=>{if(m.value.has(i))return;const c=new Set(m.value);c.add(i),m.value=c},$=i=>{S(i),S((i-1+O)%O),S((i+1)%O)},C=i=>{o.value=(i+O)%O,$(o.value)},G=()=>C(o.value-1),D=()=>C(o.value+1),N=()=>{const i=()=>{r.value=!0,$(0)};typeof window<"u"&&"requestIdleCallback"in window?x=window.requestIdleCallback(()=>i(),{timeout:2e3}):y=setTimeout(i,300)},T=()=>{if(!r.value){if(document.readyState==="complete"){N();return}k=()=>{N()},window.addEventListener("load",k,{once:!0})}};return X(()=>{h.value&&(p=new IntersectionObserver(([i])=>{i?.isIntersecting&&(T(),p?.disconnect(),p=null)},{rootMargin:"200px 0px"}),p.observe(h.value))}),Z(o,i=>{$(i)}),K(()=>{p?.disconnect(),k&&window.removeEventListener("load",k),x!==null&&typeof window<"u"&&"cancelIdleCallback"in window&&window.cancelIdleCallback(x),y&&clearTimeout(y)}),(i,c)=>{const s=ne;return t.enabled?(a(),n("section",Ct,[e("div",Lt,[e("div",At,[t.eyebrow?(a(),n("p",jt,[c[0]||(c[0]=e("span",{class:"h-2 w-2 shrink-0 rounded-full bg-orange-400"},null,-1)),B(" "+l(t.eyebrow),1)])):g("",!0),t.title?(a(),n("h2",St,l(t.title),
11)):g("",!0),t.lead?(a(),n("p",Mt,l(t.lead),1)):g("",!0)]),e("div",{ref_key:"rootRef",ref:h,class:"relative mx-auto w-full max-w-5xl overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",style:{"aspect-ratio":"16 / 10"}},[Y(s,null,{default:Q(()=>[r.value?(a(),n(w,{key:0},[e("div",Bt,[(a(!0),n(w,null,j(v(d),(M,_)=>ae((a(),n("img",{key:M,src:m.value.has(_)?M:void 0,alt:`Group buy guide ${_+1}`,class:"h-full w-full object-contain bg-white",width:"1280",height:"800",decoding:"async",loading:"lazy",fetchpriority:"low"},null,8,It)),[[le,_===o.value]])),128))]),e("button",{type:"button",class:"absolute left-2 top-1/2 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-gray-200 bg-white/95 text-glotelho-blue shadow-sm transition hover:bg-white sm:left-3 sm:h-11 sm:w-11","aria-label":i.$t("previous"),onClick:G},[...c[1]||(c[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)])],8,Gt),e("button",{type:"button",class:"absolute right-2 top-1/2 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-gray-200 bg-white/95 text-glotelho-blue shadow-sm transition hover:bg-white sm:right-3 sm:h-11 sm:w-11","aria-label":i.$t("next"),onClick:D},[...c[2]||(c[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"h-5 w-5","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)])],8,Tt)],64)):g("",!0)]),_:1})],512),r.value?(a(),n("div",Pt,[(a(!0),n(w,null,j(v(d),(M,_)=>(a(),n("button",{key:`dot-${_}`,type:"button",role:"tab",class:A(["h-2.5 w-2.5 rounded-full transition",_===o.value?"bg-glotelho-blue scale-110":"bg-gray-300 hover:bg-gray-400"]),"aria-label":`Slide ${_+1}`,"aria-selected":_===o.value,onClick:q=>C(_)},null,10,Rt))),128))])):g("",!0)])])):g("",!0)}}}),Ot={id:"etapes",class:"overflow-hidden bg-glotelho-blue py-12 text-white sm:py-16 md:py-20 lg:py-24"},Et={class:"px-4 sm:px-6 md:mx-[5rem] sm:mx-[3rem] lg:mx-[7rem] 2xl:mx-auto 2xl:max-w-[1700px]"},Dt={class:"mb-8 max-w-2xl sm:mb-10 lg:mb-12"},Ht={class:"mb-3 inline-flex items-center gap-2 text-xs font-medium uppercase tracking-[0.1em] text-orange-200 sm:text-sm"},Vt={class:"text-xl font-bold tracking-tight sm:text-2xl lg:text-3xl"},zt={class:"mt-3 text-sm leading-6 text-slate-100 sm:text-base sm:leading-7 lg:text-lg lg:leading-8"},Ft={class:"grid grid-cols-1 gap-6 min-[480px]:grid-cols-2 md:gap-8 lg:grid-cols-3 xl:grid-cols-5 xl:gap-6"},qt={class:"mb-3 flex h-9 w-9 items-center justify-center rounded-full border border-orange-300/60 text-sm font-semibold text-orange-200 sm:mb-4 sm:h-10 sm:w-10 sm:text-base"},Wt={class:"mb-1.5 text-base font-semibold leading-snug sm:mb-2 sm:text-lg"},Jt={class:"text-sm leading-6 text-slate-100 sm:text-[0.9375rem] sm:leading-relaxed lg:text-base lg:leading-7"},Ut=E({__name:"Steps",props:{eyebrow:{},title:{},lead:{},steps:{}},setup(t){return(d,h)=>(a(),n("section",Ot,[e("div",Et,[e("div",Dt,[e("p",Ht,[h[0]||(h[0]=e("span",{class:"h-2 w-2 shrink-0 rounded-full bg-orange-400"},null,-1)),B(" "+l(t.eyebrow),1)]),e("h2",Vt,l(t.title),1),e("p",zt,l(t.lead),1)]),e("div",Ft,[(a(!0),n(w,null,j(t.steps,(r,o)=>(a(),n("div",{key:r.title,class:"relative min-w-0 pb-2 sm:pb-0"},[e("div",qt,l(o+1),1),e("h3",Wt,l(r.title),1),e("p",Jt,l(r.description),1)]))),128))])])]))}}),Xt={class:"py-12 sm:py-16 md:py-20"},Kt={class:"px-4 sm:px-6 md:mx-[5rem] sm:mx-[3rem] lg:mx-[7rem] 2xl:mx-auto 2xl:max-w-[1700px]"},Yt={class:"grid grid-cols-1 gap-5 rounded-2xl border border-gray-200 bg-white p-5 min-[480px]:grid-cols-2 sm:gap-6 sm:p-6 md:gap-7 lg:grid-cols-3 lg:p-8 xl:grid-cols-5"},Qt={class:"mb-1.5 text-xs font-semibold uppercase tracking-[0.06em] text-orange-800 sm:mb-2 sm:text-sm"},Zt={class:"text-sm leading-6 text-slate-700 sm:text-base sm:leading-7"},es={class:"mx-auto mt-6 max-w-2xl text-center text-sm leading-6 text-slate-600 sm:mt-8 sm:text-base sm:leading-7"},ts=E({__name:"Recap",props:{items:{},footnote:{}},setup(t){return(d,h)=>(a(),n("section",Xt,[e("div",Kt,[e("div",Yt,[(a(!0),n(w,null,j(t.items,r=>(a(),n("div",{key:r.key,class:"min-w-0"},[e("p",Qt,l(r.key),1),e("p",Zt,l(r.text),1)]))),128))]),e("p",es,l(t.footnote),1)])]))}}),ss={class:"bg-[#f1f5f9] text-glotelho-blue"},V="achat-groupe",os=E({__name:"achat-groupe",async setup(t){let d,h;const r=ge(),{locale:o}=oe(),{pagesData:m}=ie(r),x={fr:{title:"L'achat groupé, expliqué",description:"Découvrez comment fonctionne l'achat groupé sur Glotelho : parcourir, créer ou rejoindre une équipe, partager l'offre, et payer pour déclencher la livraison."},en:{title:"Group buying explained",description:"Learn how group buying works on Glotelho: browse team deals, start or join a team, share with friends, and pay to activate delivery."}},{data:y}=([d,h]=re(()=>me(()=>`/api/v2/page-data?lang=${o.value}&page=${V}`,{key:()=>`page-data-${V}-${o.value}`},"$Ig9vnvJyR2")),d=await d,h(),d),k=R(()=>
1{if(Array.isArray(y.value)&&y.value.length)return y.value;const G=m.value[V];return Array.isArray(G)?G:[]}),p=R(()=>o.value.startsWith("fr")?x.fr:x.en);Z(k,C=>{C.length&&r.setPageData(C,V)},{immediate:!0});const $=ce().public.environment;return de({title:()=>p.value.title,meta:[{name:"description",content:()=>p.value.description},{name:"robots",content:$==="production"?"INDEX, FOLLOW":"NOINDEX, NOFOLLOW"}]}),(C,G)=>{const D=ze,N=$t,T=Nt,i=Ut,c=ts;return a(),n("div",ss,[(a(!0),n(w,null,j(v(k),(s,M)=>(a(),n(w,{key:M},[s?.component==="AchatGroupeHero"?(a(),H(D,{key:0,eyebrow:s.eyebrow,"title-before":s.titleBefore,"title-emphasis":s.titleEmphasis,"title-after":s.titleAfter,"title-line2":s.titleLine2,lead:s.lead,badges:s.badges,"campaign-card":s.campaignCard,"cta-link":s.ctaLink,"cta-label":s.ctaLabel},null,8,["eyebrow","title-before","title-emphasis","title-after","title-line2","lead","badges","campaign-card","cta-link","cta-label"])):g("",!0),s?.component==="AchatGroupePoint"?(a(),H(N,{key:1,"section-id":s.sectionId,visual:s.visual,reversed:s.reversed,tag:s.tag,"tag-variant":s.tagVariant,title:s.title,paragraphs:s.paragraphs,"visual-caption":s.visualCaption,"browse-product-name":s.browseProductName,"browse-team-price":s.browseTeamPrice,"browse-regular-price":s.browseRegularPrice,"browse-badge":s.browseBadge,"team-start-label":s.teamStartLabel,"team-join-label":s.teamJoinLabel,"share-link-label":s.shareLinkLabel,"chat-bubbles":s.chatBubbles,"formation-members":s.formationMembers,"formation-progress-label":s.formationProgressLabel,"payment-step-label":s.paymentStepLabel,"delivery-step-label":s.deliveryStepLabel,"lock-status":s.lockStatus},null,8,["section-id","visual","reversed","tag","tag-variant","title","paragraphs","visual-caption","browse-product-name","browse-team-price","browse-regular-price","browse-badge","team-start-label","team-join-label","share-link-label","chat-bubbles","formation-members","formation-progress-label","payment-step-label","delivery-step-label","lock-status"])):g("",!0),s?.component==="AchatGroupeGallery"?(a(),H(T,{key:2,enabled:s.enabled!==!1,eyebrow:s.eyebrow,title:s.title,lead:s.lead},null,8,["enabled","eyebrow","title","lead"])):g("",!0),s?.component==="AchatGroupeSteps"?(a(),H(i,{key:3,eyebrow:s.eyebrow,title:s.title,lead:s.lead,steps:s.steps},null,8,["eyebrow","title","lead","steps"])):g("",!0),s?.component==="AchatGroupeRecap"?(a(),H(c,{key:4,items:s.items,footnote:s.footnote},null,8,["items","footnote"])):g("",!0)],64))),128))])}}});export{os 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.