PageSourceSearch

https://go-makkah.com/assets/BoutiqueMiel-CHNStgqX.js

js go-makkah.com collected 2026-10-02 13:47:03 UTC 33,581 bytes, 1 lines download raw bytes

1import{u as te,a9 as ce,r as x,p as V,R as oe,j as e,L as Q}from"./index-c-vW2Iaa.js";import{c as W}from"./clientUi-D8h0ubSJ.js";/* empty css               */const xe=.25,se=180,f=s=>s.toLocaleString("fr-FR")+" SAR",b=s=>s.toLocaleString("fr-FR",{minimumFractionDigits:0,maximumFractionDigits:2})+" €",R=s=>s*xe,q="/hajj2027/assets/photos/miel-sidr.png",me=[{id:"sidr250",name:"Miel de Sidr — 250 g",tag:"Découverte",w:250,price:120,img:q,desc:"Le premier pas vers le nectar des sultans.",best:!1},{id:"sidr500",name:"Miel de Sidr — 500 g",tag:"Le plus vendu",w:500,price:230,img:q,desc:"Le format préféré des familles, au meilleur équilibre.",best:!1},{id:"sidr1000",name:"Miel de Sidr — 1 kg",tag:"La meilleure affaire",w:1e3,price:390,img:q,desc:"Le prix au kilo le plus bas. Le choix des connaisseurs.",best:!0}],pe=s=>({id:String(s.id),name:s.name,tag:s.badge||"",w:Number(s.weightGrams)||0,price:Number(s.priceSar)||0,img:s.imageUrl||q,desc:s.description||"",best:!!s.isFeatured}),C=s=>s.w?Math.round(s.price/(s.w/1e3)):0,_=s=>se*(s.w/1e3)-R(s.price),D=s=>s>=1e3?s/1e3+" kg":s+" g",X=[["mountain","feat.origin.title","feat.origin.desc"],["flower","feat.pure.title","feat.pure.desc"],["drop","feat.rare.title","feat.rare.desc"],["leaf","feat.natural.title","feat.natural.desc"],["crown","feat.taste.title","feat.taste.desc"]],he={mountain:'<path d="m3 20 6-11 4 6 2-3 6 8Z"/>',flower:'<circle cx="12" cy="12" r="2.5"/><path d="M12 9.5a3 3 0 1 0 0-.1M12 14.5a3 3 0 1 0 0 .1M9.5 12a3 3 0 1 0-.1 0M14.5 12a3 3 0 1 0 .1 0"/>',drop:'<path d="M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11Z"/>',leaf:'<path d="M11 20A7 7 0 0 1 4 13c0-5 5-9 16-9 0 11-4 16-9 16Z"/><path d="M5 19c4-5 7-7 12-8"/>',crown:'<path d="m3 8 4 4 5-7 5 7 4-4v9H3Z"/>'},ue=[["hand","gar.hand.title","gar.hand.sub"],["leaf2","gar.pure.title","gar.pure.sub"],["star","gar.tradition.title","gar.tradition.sub"],["snow","gar.raw.title","gar.raw.sub"],["heart","gar.virtues.title","gar.virtues.sub"]],be={hand:'<path d="M18 11V6a1.5 1.5 0 0 0-3 0M15 6V4.5a1.5 1.5 0 0 0-3 0V6M12 6.5V5a1.5 1.5 0 0 0-3 0v6l-1.5-1.5a1.5 1.5 0 0 0-2 2.2L9 17a5 5 0 0 0 9-3v-3Z"/>',leaf2:'<path d="M11 20A7 7 0 0 1 4 13c0-5 5-9 16-9 0 11-4 16-9 16Z"/><path d="M5 19c4-5 7-7 12-8"/>',star:'<path d="M12 3l2.5 5.5L20 9l-4 4 1 6-5-3-5 3 1-6-4-4 5.5-.5Z"/>',snow:'<path d="M12 2v20M4 7l16 10M20 7 4 17M12 6l3-3M12 6 9 3M12 18l3 3M12 18l-3 3"/>',heart:'<path d="M12 21s-7-4.5-9.5-9A4.8 4.8 0 0 1 12 7a4.8 4.8 0 0 1 9.5 5c-2.5 4.5-9.5 9-9.5 9Z"/>'},ge=[["ben.immunity.title","ben.immunity.desc"],["ben.calm.title","ben.calm.desc"],["ben.digestion.title","ben.digestion.desc"],["ben.antioxidant.title","ben.antioxidant.desc"],["ben.cardio.title","ben.cardio.desc"],["ben.energy.title","ben.energy.desc"]],fe={pending:"En attente",confirmed:"Confirmée",shipped:"Expédiée",delivered:"Livrée",cancelled:"Annulée"},je={pending:"bg-amber-50 text-amber-700",confirmed:"bg-sky-50 text-sky-700",shipped:"bg-indigo-50 text-indigo-700",delivered:"bg-emerald-50 text-emerald-700",cancelled:"bg-cream-200 text-ink-mute"},T=s=>s?new Date(s).toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"}):"";function i({d:s,className:l="",sw:r=1.8}){return e.jsx("svg",{viewBox:"0 0 24 24",className:l,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",dangerouslySetInnerHTML:{__html:s}})}function E({src:s,label:l,className:r="",style:F,fit:c="cover",radius:g,dark:h}){const[p,j]=x.useState(!!s);return e.jsxs("div",{className:`relative overflow-hidden ${r}`,style:{...F,...g?{borderRadius:`${g}px`}:{},background:h?"radial-gradient(120% 120% at 80% 0%, #3A2A12, #0E0A04)":"linear-gradient(160deg,#F2ECDF,#E2D7C2)"},children:[p&&s&&e.jsx("img",{src:s,alt:l||"",onError:()=>j(!1),className:`h-full w-full ${c==="contain"?"object-contain":"object-cover"}`}),(!p||!s)&&e.jsx("span",{className:`absolute inset-0 grid place-items-center px-4 text-center text-[11px] uppercase tracking-[0.08em] ${h?"text-gold-light/55":"text-navy/50"}`,children:l})]})}const ve=()=>{const{t:s}=te(),{user:l}
1=ce(),[r,F]=x.useState(me),[c,g]=x.useState({}),[h,p]=x.useState(!1),[j,$]=x.useState(!1),[B,H]=x.useState(!1),[I,Z]=x.useState(null),[z,S]=x.useState(null),[G,ae]=x.useState([]);x.useEffect(()=>{let t=!1;return V.get("/api/boutique/products").then(a=>{const d=(Array.isArray(a==null?void 0:a.data)?a.data:[]).filter(m=>(m.category||"").toLowerCase()==="miel");t||!d.length||(F(d.map(pe)),g({}))}).catch(()=>{}),()=>{t=!0}},[]);const O=oe.useCallback(()=>{V.get("/api/boutique/orders/me").then(t=>ae(Array.isArray(t==null?void 0:t.data)?t.data:[])).catch(()=>{})},[]);x.useEffect(()=>{O()},[O]);const K=x.useMemo(()=>{const t=new Set(r.map(a=>String(a.id)));return t.size?G.filter(a=>(a.items||[]).some(d=>t.has(String(d.productId)))):[]},[G,r]),N=t=>r.find(a=>a.id===t)||r[0],L=t=>g(a=>({...a,[t]:(a[t]||0)+1})),U=t=>g(a=>{const d=(a[t]||0)-1,m={...a};return d<=0?delete m[t]:m[t]=d,m});x.useEffect(()=>{const t=h||j;document.body.style.overflow=t?"hidden":"";const a=d=>{d.key==="Escape"&&(j?$(!1):h&&p(!1))};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a),document.body.style.overflow=""}},[h,j]);const u=Object.keys(c),w=u.reduce((t,a)=>t+c[a],0),Y=u.reduce((t,a)=>t+N(a).price*c[a],0),P=u.reduce((t,a)=>t+N(a).w*c[a],0)/1e3,le=(Number.isInteger(P)?P:P.toLocaleString("fr-FR",{maximumFractionDigits:2}))+" kg",ie=u.reduce((t,a)=>t+_(N(a))*c[a],0),ne=Math.min(...r.map(C)),k=r.find(t=>t.best)||r.reduce((t,a)=>a.w>t.w?a:t,r[0]),y=(()=>{let t={};try{t=JSON.parse(localStorage.getItem("customer_data")||"{}")}catch{}return{name:[l==null?void 0:l.firstName,l==null?void 0:l.lastName].filter(Boolean).join(" ")||(l==null?void 0:l.name)||[t.firstName,t.lastName].filter(Boolean).join(" ")||"",email:(l==null?void 0:l.email)||t.email||"",phone:(l==null?void 0:l.phone)||t.phone||""}})(),re=async()=>{var a,d,m,M;if(!w){p(!0);return}if(u.filter(o=>!(Number(o)>0)).length){S(s("client:boutiqueMiel.toast.catalogUnavailable")),W(s("client:boutiqueMiel.toast.catalogUnavailable"));return}S(null),H(!0);try{const o=u.map(A=>({productId:Number(A),name:N(A).name,unitPrice:N(A).price,quantity:c[A]})),n=await V.post("/api/boutique/orders",{items:o,currency:"SAR",customerName:y.name||void 0,customerEmail:y.email||void 0,customerPhone:y.phone||void 0}),v=(a=n==null?void 0:n.data)==null?void 0:a.id;Z(((d=n==null?void 0:n.data)==null?void 0:d.reference)||(v?`GMB-${v}`:null)),$(!0),O()}catch(o){const n=((M=(m=o==null?void 0:o.response)==null?void 0:m.data)==null?void 0:M.message)||(o==null?void 0:o.message)||s("client:boutiqueMiel.toast.orderError");S(Array.isArray(n)?n.join(" · "):String(n)),W(s("client:boutiqueMiel.toast.orderError"))}finally{H(!1)}},J=()=>{$(!1),g({}),p(!1),Z(null),S(null)},de=s(B?"client:boutiqueMiel.pay.processing":w?"client:boutiqueMiel.pay.order":"client:boutiqueMiel.pay.viewCart");return e.jsxs("div",{className:"min-h-screen text-ink",style:{background:"#F2ECE0",fontFamily:"'Manrope', system-ui, sans-serif"},children:[e.jsxs("div",{className:"mx-auto w-full max-w-[1200px]",children:[e.jsxs("header",{className:"sticky top-0 z-30 flex items-center justify-between gap-3 border-b border-ink/8 bg-cream-100/95 px-4 py-2.5 backdrop-blur-md sm:px-6",children:[e.jsxs(Q,{to:"/client/dashboard",className:"flex items-center gap-2 text-[13.5px] font-semibold text-ink-soft transition hover:text-red-brand",children:[e.jsx(i,{d:'<path d="m15 18-6-6 6-6"/>',className:"h-5 w-5",sw:2}),e.jsx("span",{className:"hidden sm:inline",children:s("client:boutiqueMiel.header.clientArea")})]}),e.jsx(Q,{to:"/",className:"absolute left-1/2 -translate-x-1/2",children:e.jsx("img",{src:"/logo.png",alt:"GO-MAKKAH",className:"h-9 w-auto"})}),e.jsxs("button",{onClick:()=>p(!0),className:"relative flex h-11 items-center gap-2 rounded-full bg-cream-200 pl-3.5 pr-2 text-navy transition active:scale-95","aria-label":s("client:boutiqueMiel.header.cartAria"),children:[e.jsx(i,{d:'<circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6"/>',className:"h-5 w-5",sw:2}),w>0&&e.jsx("span",{className:"grid h-6 min-w-[24px] place-items-center rounded-full bg-red-brand px-1.5 text-[12px] font-bold text-white",children:w})]})]}),e.jsxs("main",{className:"px-4 pb-32 pt-5 sm:px-6",children:[e.jsxs("section",{className:"relative overflow-hidden rounded-3xl shadow-lift",style:{background:"radial-gradient(120% 120% at 80% 0%, #3A2A12 0%, #211608 45%, #0E0A04 100%)"},children:[e.jsx("div",{className:"pointer-events-none absolute -right-16 -top-16 h-72 w-72 rounded-full bg-[radial-gradient(circle,rgba(224,193,115,0.22),transparent_70%)]"}),e.jsxs("div",{className:"relative p-6 text-center sm:p-9",children:[e.jsx("p",{className:"font-display text-[12px] uppercase tracking-[0.32em] text-gold-light/80",children:s("client:boutiqueMiel.hero.eyebrow")}),e.jsxs("h1",{className:"font-display mt-3 text-[30px] leading-[1.04] text-gold-light sm:text-[46px]",children:[s("client:boutiqueMiel.hero.titleLine1"),e.jsx("br",{}),e.jsx("span",{className:"text-white",children:s("client:boutiqueMiel.hero.titleLine2")})]}),e.jsxs("div",{className:"mx-auto mt-3 flex max-w-xs items-center gap-3 text-gold-light/70",children:[e.jsx("span",{className:"h-px flex-1 bg-gradient-to-r from-transparent to-gold-light/40"}),e.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-[0.28em]",children:"Sidr Maliky"}),e.jsx("span",{className:"h-px flex-1 bg-gradient-to-l from-transparent to-gold-light/40"})]}),e.jsx("p",{className:"mx-auto mt-4 max-w-lg text-[14px] leading-relaxed text-white/75 sm:text-[15px]",children:s("client:boutiqueMiel.hero.desc")})]}),e.jsxs("div",{className:"relative grid gap-6 px-6 pb-7 sm:px-9 lg:grid-cols-[1fr_minmax(220px,300px)_1fr] lg:items-center",children:[e.jsx("ul",{className:"order-2 space-y-4 lg:
1order-1",children:X.slice(0,3).map(t=>e.jsx(ee,{f:t},t[1]))}),e.jsxs("div",{className:"relative order-1 mx-auto w-full max-w-[300px] lg:order-2",children:[e.jsx(E,{src:q,dark:!0,fit:"contain",radius:18,label:s("client:boutiqueMiel.hero.jarLabel"),className:"w-full",style:{aspectRatio:"3/4"}}),e.jsx("span",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full bg-gold-light px-4 py-1.5 text-[12px] font-bold text-[#1a1206] shadow-lift",children:"250 g · 500 g · 1 kg"})]}),e.jsx("ul",{className:"order-3 space-y-4",children:X.slice(3).map(t=>e.jsx(ee,{f:t},t[1]))})]}),e.jsxs("div",{className:"relative mt-2 flex items-center justify-center gap-3 border-t border-gold-light/15 px-6 py-4",children:[e.jsx("span",{className:"text-gold-light/50",children:"❦"}),e.jsx("p",{className:"text-center text-[11.5px] font-semibold uppercase tracking-[0.22em] text-gold-light/70",children:s("client:boutiqueMiel.hero.tagline")}),e.jsx("span",{className:"text-gold-light/50",children:"❧"})]})]}),e.jsxs("div",{className:"mt-4 flex flex-col items-center justify-between gap-3 rounded-2xl border border-ink/8 bg-cream-100 p-4 shadow-soft sm:flex-row",children:[e.jsxs("p",{className:"text-[13.5px] text-ink-soft",children:[e.jsx("strong",{className:"text-ink",children:s("client:boutiqueMiel.cta.priceGuarantee")})," — ",s("client:boutiqueMiel.cta.upTo")," ",e.jsx("span",{className:"font-bold text-emerald-700",children:s("client:boutiqueMiel.cta.savingPerKg")})," ",s("client:boutiqueMiel.cta.vsFrance")]}),e.jsxs("a",{href:"#produits",className:"inline-flex h-12 w-full items-center justify-center gap-2 rounded-full bg-red-brand px-6 text-[14.5px] font-bold text-white shadow-soft transition active:scale-[0.98] sm:w-auto",children:[s("client:boutiqueMiel.cta.orderNow")," ",e.jsx(i,{d:'<path d="m9 18 6-6-6-6"/>',className:"h-4 w-4",sw:2.4})]})]}),e.jsx("section",{className:"mt-4 overflow-hidden rounded-2xl border border-ink/8 bg-cream-100 px-2 py-5 shadow-soft",children:e.jsx("div",{className:"grid grid-cols-2 gap-y-5 sm:grid-cols-5",children:ue.map((t,a)=>e.jsxs("div",{className:`flex flex-col items-center gap-2 px-2 text-center ${a?"border-l border-ink/8":""}`,children:[e.jsx("span",{className:"grid h-11 w-11 place-items-center rounded-full border border-gold-deep/40 text-gold-deep",children:e.jsx(i,{d:be[t[0]],className:"h-5 w-5",sw:1.6})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11.5px] font-bold uppercase tracking-wide text-ink",children:s("client:boutiqueMiel."+t[1])}),e.jsx("p",{className:"text-[11px] text-ink-mute",children:s("client:boutiqueMiel."+t[2])})]})]},t[1]))})}),e.jsxs("section",{className:"mt-7 overflow-hidden rounded-3xl border border-ink/8 bg-cream-100 p-5 shadow-soft sm:p-7",children:[e.jsx("h2",{className:"font-display text-[20px] text-navy sm:text-[24px]",children:s("client:boutiqueMiel.why.title")}),e.jsx("p",{className:"mt-2 max-w-2xl text-[13.5px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel.why.desc")}),e.jsx("div",{className:"mt-5 grid gap-4 sm:grid-cols-3",children:[["why.rare.title","why.rare.desc"],["why.ancestral.title","why.ancestral.desc"],["why.gift.title","why.gift.desc"]].map(([t,a])=>e.jsxs("div",{className:"rounded-2xl bg-cream-200/60 p-4",children:[e.jsx("p",{className:"font-display text-[16px] text-amber-deepamber",children:s("client:boutiqueMiel."+t)}),e.jsx("p",{className:"mt-1.5 text-[13px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel."+a)})]},t))})]}),e.jsxs("section",{id:"produits",className:"mt-8 scroll-mt-20",children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-3 overflow-hidden rounded-2xl bg-red-brand px-4 py-3.5 shadow-soft",children:[e.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-white/15 text-white",children:e.jsx(i,{d:'<path d="m12 2 8 4.6v9.2L12 22l-8-6.2V6.6Z"/><path d="M9 10h6M9 14h6"/>',className:"h-[18px] w-[18px]",sw:2})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-[10.5px] font-bold uppercase tracking-[0.16em] text-white/70",children:s("client:boutiqueMiel.products.eyebrow")}),e.jsx("h3",{className:"font-display text-[19px] leading-tight text-white sm:text-[22px]",children:s("client:boutiqueMiel.products.title")})]}),w>0&&e.jsx("div",{className:"w-full rounded-xl bg-white/12 px-3 py-2 text-[12.5px] font-semibold text-white sm:w-auto",children:e.jsxs("span",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[r.filter(t=>c[t.id]).map(t=>e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx("span",{className:"grid h-5 min-w-[20px] place-items-center rounded-full bg-white px-1 text-[11px] font-bold text-red-brand",children:c[t.id]}),D(t.w)]},t.id)),e.jsx("span",{className:"text-white/60",children:"="}),e.jsx("span",{className:"text-gold-light",children:le})]})})]}),e.jsx("div",{className:"grid gap-3.5 sm:grid-cols-3",children:r.map(t=>{const a=c[t.id]||0;return e.jsxs("div",{className:`group flex flex-col overflow-hidden rounded-2xl border ${t.best?"border-red-brand/50 ring-2 ring-red-brand/15":"border-ink/8"} bg-cream-100 shadow-soft`,children:[e.jsxs("div",{className:"relative",children:[e.jsx(E,{src:t.img,label:t.name,className:"h-40 w-full"}),e.jsx("span",{className:`absolute left-3 top-3 rounded-full ${t.best?"bg-red-brand text-white":"bg-white/95 text-amber-deepamber"} px-2.5 py-1 text-[11px] font-bold uppercase tracking-wide shadow-soft`,children:t.tag})]}),e.jsxs("div",{className:"flex flex-1 flex-col p-4",children:[e.jsx("h4",{className:"font-display text-[16.5px] leading-tight text-ink",children:t.name}),e.jsx("p",{className:"mt-1 text-[12.5px] leading-relaxed text-ink-mute",children:t.desc}),e.jsxs("div",{className:"mt-3 flex items-end gap-2",children:[e.jsx("span",{className:"font-display text-[26px] leading-none text-red-brand",children:f(t.price)}),e.jsxs("span",{className:"mb-0.5 text-[13.5px] font-semibold text-ink-soft",children:["≈ ",b(R(t.price))]})]}),e.jsxs("p",{className:`mt-1 text-[12px] font-semibold ${t.best?"text-red-brand":"text-ink-mute"}
1`,children:[s("client:boutiqueMiel.products.perKg",{price:f(C(t))}),t.best?s("client:boutiqueMiel.products.cheapestInline"):""]}),e.jsxs("div",{className:"mt-3 flex items-center gap-2 rounded-xl bg-emerald-50 px-3 py-2",children:[e.jsx(i,{d:'<path d="M7 17 17 7M17 7H9M17 7v8"/>',className:"h-4 w-4 shrink-0 text-emerald-600",sw:2.2}),e.jsxs("p",{className:"text-[12px] font-bold text-emerald-700",children:[s("client:boutiqueMiel.products.save",{amount:b(_(t))})," ",e.jsx("span",{className:"font-medium text-emerald-600/80",children:s("client:boutiqueMiel.products.vsFranceParen",{amount:b(se*(t.w/1e3))})})]})]}),e.jsx("div",{className:"mt-3.5",children:a===0?e.jsxs("button",{onClick:()=>L(t.id),className:"flex h-11 w-full items-center justify-center gap-2 rounded-full bg-navy text-[14px] font-bold text-white transition active:scale-[0.98]",children:[e.jsx(i,{d:'<path d="M12 5v14M5 12h14"/>',className:"h-4 w-4",sw:2.4})," ",s("client:boutiqueMiel.products.addToCart")]}):e.jsxs("div",{className:"flex h-11 items-center justify-between rounded-full bg-red-brand px-1.5 text-white",children:[e.jsx("button",{onClick:()=>U(t.id),className:"grid h-8 w-8 place-items-center rounded-full bg-white/15 transition active:scale-90",children:e.jsx(i,{d:'<path d="M5 12h14"/>',className:"h-4 w-4",sw:2.6})}),e.jsx("span",{className:"text-[15px] font-bold",children:s("client:boutiqueMiel.products.inCart",{count:a})}),e.jsx("button",{onClick:()=>L(t.id),className:"grid h-8 w-8 place-items-center rounded-full bg-white/15 transition active:scale-90",children:e.jsx(i,{d:'<path d="M12 5v14M5 12h14"/>',className:"h-4 w-4",sw:2.6})})]})})]})]},t.id)})}),e.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-ink/8 bg-cream-100 p-4 shadow-soft sm:p-5",children:[e.jsx("p",{className:"text-center text-[14px] font-bold text-ink",children:s("client:boutiqueMiel.compare.title")}),e.jsx("div",{className:"mt-4 grid grid-cols-3 gap-2.5",children:r.map(t=>{const a=C(t)===ne;return e.jsxs("div",{className:`flex flex-col items-center gap-1 rounded-xl border p-3 text-center ${a?"border-red-brand bg-red-pale/50":"border-ink/8 bg-cream-200/40"}`,children:[e.jsx("span",{className:"text-[13px] font-bold text-ink",children:D(t.w)}),e.jsx("span",{className:`font-display text-[19px] leading-none ${a?"text-red-brand":"text-ink-soft"}`,children:C(t)}),e.jsx("span",{className:"text-[10.5px] text-ink-mute",children:"SAR / kg"}),a&&e.jsx("span",{className:"mt-0.5 rounded-full bg-red-brand px-2 py-0.5 text-[9.5px] font-bold uppercase tracking-wide text-white",children:s("client:boutiqueMiel.compare.cheapest")})]},t.id)})}),e.jsxs("p",{className:"mt-4 text-center text-[12.5px] leading-relaxed text-ink-soft",children:[s("client:boutiqueMiel.compare.franceLead")," ",e.jsx("strong",{className:"text-ink",children:"180 €"}),". ",s("client:boutiqueMiel.compare.goMakkahLead")," ",e.jsx("strong",{className:"text-emerald-700",children:"≈ 97,50 € le kilo"}),"."]})]})]}),K.length>0&&e.jsxs("section",{id:"mes-commandes",className:"mt-8 scroll-mt-20 overflow-hidden rounded-3xl border border-ink/8 bg-cream-100 p-5 shadow-soft sm:p-7",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-red-pale text-red-brand",children:e.jsx(i,{d:'<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/><path d="M3 6h18M16 10a4 4 0 0 1-8 0"/>',className:"h-5 w-5",sw:1.8})}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-display text-[20px] leading-tight text-navy sm:text-[24px]",children:"Mes commandes"}),e.jsx("p",{className:"text-[12.5px] text-ink-soft",children:"Réglées à la livraison — notre équipe vous contacte pour la remise."})]})]}),e.jsx("div",{className:"mt-5 space-y-3",children:K.map(t=>{var M,o;const a=(t.items||[]).reduce((n,v)=>n+(Number(v.totalEur)||0),0),d=fe[t.status]||t.status,m=t.paymentStatus==="paid";return e.jsxs("div",{className:"rounded-2xl border border-ink/8 bg-white p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"font-display text-[16px] text-navy",children:t.reference||`GMB-${t.id}`}),e.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-[11px] font-bold uppercase tracking-wide ${je[t.status]||"bg-cream-200 text-ink-soft"}`,children:d})]}),e.jsx("span",{className:"text-[12.5px] text-ink-mute",children:T(t.createdAt)})]}),e.jsx("ul",{className:"mt-3 space-y-1.5",children:(t.items||[]).map((n,v)=>e.jsxs("li",{className:"flex items-center gap-2 text-[13.5px]",children:[e.jsx("span",{className:"grid h-5 min-w-[20px] shrink-0 place-items-center rounded bg-cream-200 px-1 text-[11.5px] font-bold text-ink",children:n.quantity}),e.jsx("span",{className:"flex-1 text-ink-soft",children:n.name}),e.jsx("span",{className:"shrink-0 font-semibold text-ink",children:f(Number(n.total)||0)})]},v))}),(((M=t.dossier)==null?void 0:M.makkahHotel)||((o=t.dossier)==null?void 0:o.makkahCheckin))&&e.jsxs("p",{className:"mt-3 rounded-xl bg-cream-200/60 px-3 py-2 text-[12.5px] leading-relaxed text-ink-soft",children:[e.jsx("strong",{className:"text-ink",children:"Remise à La Mecque"}),t.dossier.makkahHotel?` · ${t.dossier.makkahHotel}`:"",t.dossier.makkahCheckin&&t.dossier.makkahCheckout?` · du ${T(t.dossier.makkahCheckin)} au ${T(t.dossier.makkahCheckout)}`:""]}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-end justify-between gap-2 border-t border-ink/8 pt-3",children:[e.jsx("span",{className:`text-[12.5px] font-semibold ${m?"text-emerald-700":"text-red-brand"}`,children:m?"Réglée":"À régler à la livraison"}),e.jsxs("span",{className:"text-right",children:[e.jsx("span",{className:"font-display text-[20px] leading-none text-red-brand",children:f(Number(t.total)||0)}),a>0&&e.jsxs("span",{className:"block text-[12.5px] font-semibold text-ink-soft",children:["≈ ",b(a)]})]})]})]},t.id)})})]}),e.jsxs("section",{className:"mt-8 grid gap-4 lg:grid-cols-[1fr_1.1fr] lg:items-stretch",children:[e.jsx(E,{label:s("client:boutiqueMiel.story.imgLabel"),radius:24,className:"min-h-[280px]"}),e.jsxs("div",{className:"overflow-hidden rounded-3xl border border-ink/8 bg-cream-100 p-5 shadow-soft sm:p-7",children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.16em] text-gold-deep",children:"Hadramaout · Yémen"}),e.jsx("h2",{className:"font-display mt-2 text-[22px] leading-tight text-navy sm:text-[27px]",children:s("client:boutiqueMiel.story.title")}),e.jsx("p",{className:"mt-3 text-[13.5px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel.story.desc")}),e.jsx("div",{className:"mt-4 grid grid-cols-3 gap-3",children:[["40 j","story.stat1"],["2–5 kg","story.stat2"],["100 %","story.stat3"]].map(([t,a])=>e.jsxs("div",{className:"rounded-2xl bg-cream-200/60 p-3 text-center",children:[e.jsx("p",{className:"font-display text-[20px] leading-none text-red-brand",children:t}),e.jsx("p",{className:"mt-1 text-[11.5px] leading-snug text-ink-mute",children:s("client:boutiqueMiel."+a)})]},t))}),e.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:["story.chip1","story.chip2","story.chip3"].map(t=>e.jsx("span",{className:"rounded-full bg-amber-honey/10 px-3 py-1 text-[12px] font-semibold text-amber-deepamber",children:s("client:boutiqueMiel."+t)},t))})]})]}),e.jsx("section",{className:"mt-8 overflow-hidden rounded-3xl border border-ink/8 bg-cream-100 shadow-soft",children:e.jsxs("div",{className:"grid lg:grid-cols-2",children:[e.jsx(E,{label:s("client:boutiqueMiel.nectar.imgLabel"),className:"min-h-[220px]"}),e.jsxs("div",{className:"p-5 sm:p-7",children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.16em] text-gold-deep",children:s("client:boutiqueMiel.nectar.eyebrow")}),e.jsx("h2",{className:"font-display mt-2 text-[22px] leading-tight text-navy sm:text-[26px]",children:s("client:boutiqueMiel.nectar.title")}),e.jsx("p",{className:"mt-3 text-[13.5px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel.nectar.p1")}),e.jsx("p",{className:"mt-3 text-[13.5px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel.nectar.p2")})]})]})}),e.jsxs("section",{className:"mt-4 overflow-hidden rounded-3xl border border-ink/8 bg-cream-100 p-5 shadow-soft sm:p-7",children:[e.jsx("h2",{className:"font-display text-[20px] text-navy sm:text-[24px]",children:s("client:boutiqueMiel.benefits.title")}),e.jsx("p",{className:"mt-2 max-w-2xl text-[13.5px] leading-relaxed text-ink-soft",children:s("client:boutiqueMiel.benefits.desc")}),e.jsx("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:ge.map(t=>e.jsxs("div",{className:"flex items-start gap-3 rounded-2xl bg-cream-200/50 p-3.5",children:[e.jsx("span",{className:"mt-0.5 grid h-7 w-7 shrink-0 place-items-center rounded-full bg-emerald-100 text-emerald-600",children:e.jsx(i,{d:'<path d="m20 6-11 11-5-5"/>',className:"h-4 w-4",sw:2.4})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13.5px] font-bold text-ink",children:s("client:boutiqueMiel."+t[0])}),e.jsx("p",{className:"mt-0.5 text-[12.5px] leading-snug text-ink-soft",children:s("client:boutiqueMiel."+t[1])})]})]},t[0]))}),e.jsx("p",{className:"mt-4 text-[11.5px] italic leading-relaxed text-ink-mute",children:s("client:boutiqueMiel.benefits.disclaimer")})]}),e.jsxs("section",{className:"mt-4 overflow-hidden rounded-3xl p-6 text-center shadow-soft sm:p-9",style:{background:"radial-gradient(120% 120% at 50% 0%, #3A2A12 0%, #211608 55%, #0E0A04 100%)"},children:[e.jsx("span",{className:"mx-auto block text-[22px] text-gold-light/50",children:"❦"}),e.jsxs("p",{className:"mx-auto mt-3 max-w-xl font-display text-[16px] italic leading-relaxed text-gold-light sm:text-[19px]",children:["« Dans le miel, il y a une douceur que rien ne surpasse,",e.jsx("br",{}),"son parfum est un froid en été, une chaleur en hiver.",e.jsx("br",{}),"Celui qui le goûte continue à en désirer,",e.jsx("br",{}),"même avec le passage des années. »"]}),e.jsx("p",{className:"mt-4 text-[11.5px] uppercase tracking-[0.22em] text-white/45",children:"Poème sur le miel"})]})]})]}),e.jsx("div",{className:`fixed inset-0 z-40 bg-ink/50 backdrop-blur-sm transition-opacity ${h?"opacity-100":"pointer-events-none opacity-0"}`,onClick:()=>p(!1)}),e.jsxs("aside",{className:`fixed inset-y-0 right-0 z-50 flex w-full max-w-[440px] flex-col bg-cream-100 shadow-lift transition-transform duration-300 ${h?"translate-x-0":"translate-x-full"}`,children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-ink/8 px-5 py-4",children:[e.jsx("h3",{className:"font-display text-[19px] text-navy",children:"Mon panier"}),e.jsx("button",{onClick:()=>p(!1),className:"grid h-10 w-10 place-items-center rounded-full bg-cream-200 text-ink-soft transition active:scale-95",children:e.jsx(i,{d:'<path d="M18 6 6 18M6 6l12 12"/>',className:"h-5 w-5",sw:2})})]}),e.jsx("div",{className:"no-sb flex-1 overflow-y-auto px-5 py-4",children:u.length?e.jsxs(e.Fragment,{children:[u.map(t=>{const a=N(t);return e.jsxs("div",{className:"mb-3 flex items-center gap-3 rounded-2xl border border-ink/8 bg-white p-3",children:[e.jsx("span",{className:"grid h-12 w-12 shrink-0 place-items-center rounded-xl bg-red-pale text-red-brand",children:e.jsx(i,{d:'<path d="m12 2 8 4.6v9.2L12 22l-8-6.2V6.6Z"/><path d="M9 10h6M9 14h6"/>',className:"h-6 w-6",sw:1.8})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-[14px] font-semibold text-ink",children:a.name}),e.jsxs("p",{className:"text-[12.5px] text-ink-mute",children:[f(a.price)," · ≈ ",b(R(a.price))]})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("button",{onClick:()=>U(t),className:"grid h-7 w-7 place-items-center rounded-full bg-cream-200 text-ink-soft active:scale-90",children:e.jsx(i,{d:'<path d="M5 12h14"/>
1',className:"h-3.5 w-3.5",sw:2.6})}),e.jsx("span",{className:"w-5 text-center text-[14px] font-bold",children:c[t]}),e.jsx("button",{onClick:()=>L(t),className:"grid h-7 w-7 place-items-center rounded-full bg-cream-200 text-ink-soft active:scale-90",children:e.jsx(i,{d:'<path d="M12 5v14M5 12h14"/>',className:"h-3.5 w-3.5",sw:2.6})})]})]},t)}),e.jsx("div",{className:"mt-1 rounded-2xl bg-emerald-50 p-3.5 text-center",children:e.jsxs("p",{className:"text-[13px] font-bold text-emerald-700",children:["🍯 Vous économisez déjà ",b(ie)," vs France !"]})}),k&&!c[k.id]&&e.jsxs("button",{onClick:()=>L(k.id),className:"mt-2 flex w-full items-center justify-between gap-2 rounded-2xl border border-dashed border-red-brand/40 bg-red-pale/50 px-4 py-3 text-left transition active:scale-[0.99]",children:[e.jsxs("span",{children:[e.jsxs("span",{className:"block text-[13px] font-bold text-red-brand",children:["Passez au ",D(k.w)," — le prix au kilo le plus bas"]}),e.jsxs("span",{className:"block text-[11.5px] text-ink-soft",children:["+",f(k.price)," · économisez ",b(_(k))," vs France"]})]}),e.jsx("span",{className:"grid h-8 w-8 shrink-0 place-items-center rounded-full bg-red-brand text-white",children:e.jsx(i,{d:'<path d="M12 5v14M5 12h14"/>',className:"h-4 w-4",sw:2.4})})]})]}):e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 py-16 text-center",children:[e.jsx("span",{className:"grid h-16 w-16 place-items-center rounded-full bg-cream-200 text-ink-mute",children:e.jsx(i,{d:'<circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6"/>',className:"h-8 w-8",sw:1.6})}),e.jsx("p",{className:"text-[14px] text-ink-mute",children:"Votre panier est vide"})]})}),w>0&&e.jsxs("div",{className:"border-t border-ink/8 px-5 py-4",children:[e.jsx("p",{className:"text-[12px] font-bold uppercase tracking-[0.14em] text-red-brand",children:"Paiement à la livraison"}),y.name&&e.jsxs("p",{className:"mt-1.5 text-[12.5px] text-ink-mute",children:["Commande au nom de ",e.jsx("strong",{className:"text-ink",children:y.name}),"."]})]}),z&&e.jsxs("div",{className:"mx-5 mb-1 mt-3 flex items-start gap-2.5 rounded-2xl border border-red-tint bg-red-pale/60 p-3.5",children:[e.jsx("span",{className:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center rounded-full bg-red-brand text-white",children:e.jsx(i,{d:'<path d="M12 8v5M12 17h.01"/>',className:"h-3.5 w-3.5",sw:2.6})}),e.jsx("p",{className:"text-[12.5px] leading-relaxed text-red-brand",children:z})]}),e.jsxs("div",{className:"border-t border-ink/8 px-5 pt-4 pb-[max(0.75rem,env(safe-area-inset-bottom))]",children:[e.jsxs("div",{className:"mb-3 flex items-end justify-between",children:[e.jsx("span",{className:"text-[13.5px] text-ink-soft",children:"Total"}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-display text-[26px] leading-none text-red-brand",children:f(Y)}),e.jsxs("span",{className:"block text-[13px] font-semibold text-ink-soft",children:["≈ ",b(R(Y))]})]})]}),e.jsxs("button",{onClick:re,disabled:B,className:"flex h-[3.25rem] w-full items-center justify-center gap-2 rounded-full bg-red-brand py-4 text-[15px] font-bold text-white shadow-soft transition active:scale-[0.98] disabled:opacity-70",children:[e.jsx(i,{d:'<path d="M9 11l3 3 5-5"/><path d="M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9"/>',className:"h-5 w-5",sw:2}),e.jsx("span",{children:de})]}),e.jsx("p",{className:"mt-2 pb-1 text-center text-[11.5px] text-ink-mute",children:"Paiement à la livraison · aucun règlement en ligne"})]})]}),j&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-ink/60 p-5 backdrop-blur-sm",children:e.jsxs("div",{className:"w-full max-w-[380px] rounded-3xl bg-cream-100 p-7 text-center shadow-lift",children:[e.jsx("span",{className:"mx-auto grid h-16 w-16 place-items-center rounded-full bg-emerald-100 text-emerald-600",children:e.jsx(i,{d:'<path d="m5 13 4 4L19 7"/>',className:"h-8 w-8",sw:2.5})}),e.jsx("h3",{className:"font-display mt-4 text-[22px] text-navy",children:"Commande enregistrée !"}),I&&e.jsxs("p",{className:"mt-1 text-[13px] font-bold text-red-brand",children:["Référence : ",I]}),e.jsxs("p",{className:"mt-2 text-[14px] leading-relaxed text-ink-soft",children:["Merci. Votre miel de Sidr sera préparé avec soin. ",e.jsx("strong",{className:"text-ink",children:"Vous réglerez à la livraison"})," — notre équipe vous contacte pour convenir de la remise."]}),e.jsx("button",{onClick:()=>{var t;J(),(t=document.getElementById("mes-commandes"))==null||t.scrollIntoView({behavior:"smooth"})},className:"mt-5 h-12 w-full rounded-full bg-red-brand text-[14.5px] font-bold text-white transition active:scale-[0.98]",children:"Voir mes commandes"}),e.jsx("button",{onClick:J,className:"mt-2 h-11 w-full rounded-full border border-ink/12 text-[13.5px] font-semibold text-ink-soft transition active:scale-[0.98]",children:"Revenir à la boutique"})]})})]})};function ee({f:s}){const{t:l}=te();return e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"grid h-11 w-11 shrink-0 place-items-center rounded-full border border-gold-light/40 text-gold-light",children:e.jsx(i,{d:he[s[0]],className:"h-5 w-5",sw:1.6})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-display text-[14px] uppercase tracking-wide text-gold-light",children:l("client:boutiqueMiel."+s[1])}),e.jsx("p",{className:"mt-0.5 text-[12.5px] leading-snug text-white/65",children:l("client:boutiqueMiel."+s[2])})]})]})}export{ve as BoutiqueMiel,ve 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.