1import{d as V,x as Q,y as W,o as s,h as S,b as z,f as o,a as u,z as Y,e as t,t as e,A as q,g as c,c as p,C as Z,D as ee,E as R,G as U,H as te,I as F,J as P,K as oe,L as D,M as ae,N as ne,O as ie,P as se,Q as le,R as ce,F as T,i as j,p as L,n as M,r as O,T as re,m as pe,S as de,v as ue,U as me}from"./WdeBNt_a.js";import{_ as be}from"./DmWXaPhj.js";import{_ as he}from"./C1LoX4-J.js";/* empty css */import{u as fe}from"./Cp_toNKS.js";import"./XehFLFNg.js";import"./C6Y-ieo6.js";import"./CSjkSOhH.js";import"./BFS6Qq9F.js";import"./BzdHwUuc.js";import"./NiLC4dWZ.js";import"./DKUq8JRX.js";import"./B38aEM9R.js";import"./B2FPx0ZF.js";import"./BOZAIcDd.js";import"./B3EeSqqR.js";import"./Cgg3Jk9S.js";import"./CgCiuwhe.js";import"./y9XafGBS.js";const ge={class:"ios-safe-top mx-auto flex min-h-full max-w-md flex-col px-4 pb-8 pt-3"},xe={class:"flex justify-end"},_e={class:"mt-4 text-center text-xl font-extrabold uppercase text-zinc-900"},ve={class:"mt-1 text-center text-sm text-zinc-600"},Ae={class:"mt-6 rounded-3xl bg-white p-5 shadow-md"},we={key:1,class:"b2b font-serif-b2b"},ye=V({__name:"AppAuthGate",props:ee({space:{},target:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(b){const d=b,_=Q(b,"open"),v=W(),f=U(!1);async function g(){if(f.value)return;f.value=!0;const n=v.currentRoute.value.fullPath;try{await R(d.target)}catch{}v.currentRoute.value.fullPath===n&&(_.value=!1,f.value=!1)}return(n,A)=>{const w=Y,h=q,i=be,x=he,y=Z;return s(),S(y,{open:_.value,"onUpdate:open":A[0]||(A[0]=C=>_.value=C),fullscreen:"",title:b.space==="b2c"?("t"in n?n.t:t(e))("mobileApp.gate.b2cTitle"):("t"in n?n.t:t(e))("mobileApp.gate.b2bTitle"),close:!1,ui:{content:"bg-zinc-100",header:"hidden",body:"p-0 sm:p-0"}},{body:z(()=>[o("div",ge,[o("div",xe,[u(w,{color:"neutral",variant:"ghost",icon:"i-lucide-x",class:"rounded-full","aria-label":("t"in n?n.t:t(e))("mobileApp.gate.close"),onClick:g},null,8,["aria-label"])]),u(h,{class:"mx-auto h-14 w-auto text-zinc-900"}),o("h2",_e,c(b.space==="b2c"?("t"in n?n.t:t(e))("mobileApp.gate.b2cTitle"):("t"in n?n.t:t(e))("mobileApp.gate.b2bTitle")),1),o("p",ve,c(b.space==="b2c"?("t"in n?n.t:t(e))("mobileApp.gate.b2cText"):("t"in n?n.t:t(e))("mobileApp.gate.b2bText")),1),o("div",Ae,[b.space==="b2c"?(s(),S(i,{key:0,onSuccess:g})):(s(),p("div",we,[u(x,{onSuccess:g})]))])])]),_:1},8,["open","title"])}}}),ke=Object.assign(ye,{__name:"AppAuthGate"}),Te={class:"min-h-dvh"},ze=["aria-label"],Se={class:"flex items-center justify-between"},Ce={class:"mt-6 flex min-h-0 flex-1 items-center justify-center [container-type:size]"},Be={class:"relative aspect-square w-[min(100cqw,100cqh,24rem)]"},$e={class:"absolute inset-0 overflow-hidden rounded-[2rem] shadow-xl"},je=["src","alt","aria-hidden"],Le={class:"mt-3 text-3xl font-extrabold uppercase leading-tight text-zinc-900"},Me={class:"mt-2 text-base leading-relaxed text-zinc-600"},Oe={class:"flex items-center justify-between gap-4 pt-4"},Re={class:"text-sm font-semibold tabular-nums text-zinc-400"},Ue=["aria-label"],Ne={key:1,class:"ios-safe-top mx-auto flex min-h-dvh max-w-md flex-col px-4 pb-8 pt-6 [--ios-safe-top-extra:0.5rem]"},Ee={class:"flex items-center justify-between gap-3"},Ie={class:"mt-6 text-center text-xl font-extrabold uppercase text-zinc-900"},Fe={class:"mt-5 flex flex-1 flex-col gap-4"},Pe=["onClick"],De=["src","alt"],Ge={class:"relative mt-auto flex w-full items-end justify-between gap-3 bg-gradient-to-t from-black/75 to-transparent p-5 pt-16 text-white"},Ve={class:"block text-2xl font-extrabold uppercase"},Ye={class:"block text-sm text-white/90"},qe=["aria-label"],G="lemoulin_app_onboarded",Xe=V({__name:"index",setup(b){te({title:e("mobileApp.seoTitle"),robots:"noindex, nofollow"});const d=[{image:"/images/vitrine/header-le-moulin.fr-.webp",accent:"bg-amber-400",tagText:"text-zinc-900",tag:e("mobileApp.onboarding.slide1Tag"),title:e("mobileApp.onboarding.slide1Title"),text:e("mobileApp.onboarding.slide1Text"),alt:e("mobileApp.onboarding.slide1Alt")},{image:"/images/vitrine/pause-dej-home.webp",accent:"bg-moulin-500",tagText:"text-white",tag:e("mobileAp
1p.onboarding.slide2Tag"),title:e("mobileApp.onboarding.slide2Title"),text:e("mobileApp.onboarding.slide2Text"),alt:e("mobileApp.onboarding.slide2Alt")},{image:"/images/b2b/offer-header-default-1200.webp",accent:"bg-b2b-dark",tagText:"text-white",tag:e("mobileApp.onboarding.slide3Tag"),title:e("mobileApp.onboarding.slide3Title"),text:e("mobileApp.onboarding.slide3Text"),alt:e("mobileApp.onboarding.slide3Alt")}],_=fe(),v=[{space:"b2c",to:F,image:"/images/vitrine/carte-pause-dej-mobile-800.webp",title:e("mobileApp.home.b2cTitle"),text:e("mobileApp.home.b2cText"),alt:e("mobileApp.home.b2cAlt"),shortcutsAria:e("mobileApp.home.b2cShortcutsAria"),shortcuts:[{label:e("mobileApp.home.shortcutFid"),icon:"i-lucide-gift",to:D("/mon-compte/avantages")},{label:e("mobileApp.home.shortcutTracking"),icon:"i-lucide-package-search",to:D("/mon-compte/mes-commandes")}]},{space:"b2b",to:P,image:"/images/b2b/offer-header-default-800.webp",title:e("mobileApp.home.b2bTitle"),text:e("mobileApp.home.b2bText"),alt:e("mobileApp.home.b2bAlt"),shortcutsAria:e("mobileApp.home.b2bShortcutsAria"),shortcuts:[{label:e("mobileApp.home.shortcutContact"),icon:"i-lucide-phone",to:`${P}?contact=1`},{label:e("mobileApp.home.shortcutTracking"),icon:"i-lucide-package-search",to:`${oe}/devis`}]}],f=ae(),g=ne(),n=de({open:!1,space:"b2c",target:F});async function A(a){let r;if(a.space==="b2c"?(await f.init(),r=f.isLoggedIn):(await g.init(),r=g.isLoggedIn),r){await R(a.to);return}Object.assign(n,{open:!0,space:a.space,target:a.to})}const w=U(!1),h=ie("app-onboarding",()=>!1),i=U(0),x=ue(()=>i.value===d.length-1);se(()=>{if(!le()){R("/",{replace:!0});return}try{h.value=localStorage.getItem(G)!=="1"}catch{h.value=!1}w.value=!0});function y(){try{localStorage.setItem(G,"1")}catch{}h.value=!1}const C=String(ce().public.appSiteBase||"").replace(/\/$/,"")!=="https://lemoulin.fr";function X(){i.value=0,h.value=!0,window.scrollTo(0,0)}function N(){x.value?y():i.value++}let E=0,I=0;function K(a){E=a.touches[0]?.clientX??0,I=a.touches[0]?.clientY??0}function H(a){const r=(a.changedTouches[0]?.clientX??0)-E,k=(a.changedTouches[0]?.clientY??0)-I;Math.abs(r)<50||Math.abs(r)<Math.abs(k)||(r<0&&!x.value?i.value++:r>0&&i.value>0&&i.value--)}return(a,r)=>{const k=q,B=Y,$=pe,J=ke;return s(),p("div",Te,[t(w)?(s(),p(T,{key:0},[t(h)?(s(),p("section",{key:0,class:"ios-safe-top flex h-dvh flex-col px-6 pb-6 pt-4","aria-label":("t"in a?a.t:t(e))("mobileApp.onboarding.ariaLabel"),onTouchstartPassive:K,onTouchend:H},[o("div",Se,[u(k,{class:"h-10 w-auto text-zinc-900"}),t(x)?L("",!0):(s(),S(B,{key:0,color:"neutral",variant:"ghost",class:"rounded-full",onClick:y},{default:z(()=>[j(c(("t"in a?a.t:t(e))("mobileApp.onboarding.skip")),1)]),_:1}))]),o("div",Ce,[o("div",Be,[o("div",{class:M(["absolute inset-0 rotate-3 rounded-[2rem] transition-colors duration-700",d[t(i)].accent]),"aria-hidden":"true"},null,2),o("div",$e,[(s(),p(T,null,O(d,(l,m)=>o("img",{key:l.image,src:l.image,alt:m===t(i)?l.alt:"","aria-hidden":m!==t(i),class:M(["absolute inset-0 size-full object-cover transition-opacity duration-700 ease-out",m===t(i)?"onboarding-zoom opacity-100":"opacity-0"])},null,10,je)),64))])])]),u(re,{name:"slide",mode:"out-in"},{default:z(()=>[(s(),p("div",{key:t(i),class:"mt-6 min-h-[12.5rem]"},[o("span",{class:M(["inline-block rounded-full px-3 py-1 text-xs font-bold uppercase tracking-wide",[d[t(i)].accent,d[t(i)].tagText]])},c(d[t(i)].tag),3),o("h1",Le,c(d[t(i)].title),1),o("p",Me,c(d[t(i)].text),1)]))]),_:1}),o("div",Oe,[o("span",Re,c(String(t(i)+1).padStart(2,"0"))+" / "+c(String(d.length).padStart(2,"0")),1),t(x)?(s(),p("button",{key:1,type:"button",class:"flex h-14 items-center gap-2 rounded-full bg-moulin-500 px-7 text-base font-bold uppercase tracking-wide text-white shadow-lg transition-transform active:scale-95",onClick:N},[j(c(("t"in a?a.t:t(e))("mobileApp.onboarding.start"))+" ",1),u($,{name:"i-lucide-arrow-right",class:"size-5"})])):(s(),p("button",{key:0,type:"button",class:"flex size-14 items-center justify-center rounded-full bg-zinc-900 text-white shadow-lg transition-transform active:scale-95","aria-label":("t"in a?a.t:t(e))("mobileAp
1p.onboarding.next"),onClick:N},[u($,{name:"i-lucide-arrow-right",class:"size-6"})],8,Ue))])],40,ze)):(s(),p("main",Ne,[o("div",Ee,[u(k,{class:"h-14 w-auto text-zinc-900"}),u(B,{icon:"i-lucide-headset",color:"neutral",variant:"ghost",size:"xl",class:"rounded-full text-zinc-900","aria-label":("t"in a?a.t:t(e))("mobileApp.home.support"),onClick:r[0]||(r[0]=l=>t(_).open())},null,8,["aria-label"])]),u(J,{open:t(n).open,"onUpdate:open":r[1]||(r[1]=l=>t(n).open=l),space:t(n).space,target:t(n).target},null,8,["open","space","target"]),o("h1",Ie,c(("t"in a?a.t:t(e))("mobileApp.home.title")),1),o("div",Fe,[(s(),p(T,null,O(v,l=>o("section",{key:l.to,class:"flex flex-1 flex-col overflow-hidden rounded-3xl bg-white shadow-md"},[o("button",{type:"button",class:"group relative flex min-h-36 flex-1 overflow-hidden text-left",onClick:m=>A(l)},[o("img",{src:l.image,alt:l.alt,class:"absolute inset-0 size-full object-cover transition-transform duration-300 group-active:scale-105"},null,8,De),o("span",Ge,[o("span",null,[o("span",Ve,c(l.title),1),o("span",Ye,c(l.text),1)]),u($,{name:"i-lucide-arrow-right",class:"size-7 shrink-0"})])],8,Pe),o("nav",{class:"flex divide-x divide-zinc-200","aria-label":l.shortcutsAria},[(s(!0),p(T,null,O(l.shortcuts,m=>(s(),S(B,{key:m.label,to:m.to,icon:m.icon,color:"neutral",variant:"ghost",class:"flex-1 basis-0 flex-col justify-center gap-1 whitespace-nowrap rounded-none px-3 py-2.5 text-xs font-semibold text-zinc-800 hover:bg-zinc-50 active:bg-zinc-100"},{default:z(()=>[j(c(m.label),1)]),_:2},1032,["to","icon"]))),128))],8,qe)])),64))]),C?(s(),p("button",{key:0,type:"button",class:"mx-auto mt-4 text-xs text-zinc-400 underline underline-offset-2",onClick:X},c(("t"in a?a.t:t(e))("mobileApp.home.replayOnboarding")),1)):L("",!0)]))],64)):L("",!0)])}}}),mt=me(Xe,[["__scopeId","data-v-03d8b89d"]]);export{mt 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.