1import{r as c,j as e,L as ka}from"./react-vendor-DVopAsjh.js";import{u as st,t as fe,s as tt}from"./index-Di5Eb0rq.js";import{c as rt,t as U}from"./marketingTracking-BlUUAJ_V.js";import{b as Ca,a as Sa}from"./whatsappTemplates-caDJACMI.js";import{n as ze,E as ct,o as Ee,p as Ke,q as Ae,r as Ea,s as Aa,X as Ta,t as ot,u as lt,v as nt,M as Pa,w as Ma,x as it,B as dt,y as mt,z as pt,G as Ia,H as gt,J as ht,K as xt}from"./ui-vendor-CEBG5Lbq.js";import"./vendor-DNbl-SW_.js";import"./data-vendor-CJ705dqC.js";const qe={facebook:"https://www.facebook.com/share/1EcYGaKfvU/?mibextid=wwXIfr",instagram:"https://www.instagram.com/mykitchen.jams?igsi=MTV4dHhvb2d5eWRtcg==",whatsappCatalog:"https://wa.me/c/201093354994"};function ut(i,d){const x=(i===3||i===5)&&d>=i;return{eligible:x,progress:x?100:0}}const H={appleClassic:125,apple:135,pumpkin:125,strawberry:110,orange:125,bitterOrange:125,fig:135,eggplant:145,strawberrySpread:110,appleSpread:115};function ft(i,d){const x=d.search.trim().toLocaleLowerCase();return i.filter(p=>{const y=[p.name,p.en,p.description,p.descriptionEn,...p.ingredientsAr,...p.ingredientsEn].join(" ").toLocaleLowerCase(),M=d.filter==="Ù٠اÙÙÙÙØ§Øª"||p.category===d.filter,B=!x||p.id===x||y.includes(x),_=d.selectedIngredients.length===0||d.selectedIngredients.every(A=>p.ingredientsAr.includes(A)||p.ingredientsEn.includes(A)),L=d.priceFilter==="all"||d.priceFilter==="under150"&&p.price<150||d.priceFilter==="150to179"&&p.price>=150&&p.price<180||d.priceFilter==="180plus"&&p.price>=180,z=p.ingredientsAr.some(A=>A.includes("ستÙÙÙØ§"))||p.ingredientsEn.some(A=>A.toLocaleLowerCase().includes("stevia")),V=!d.dietFilter||d.dietFilter==="all"||z,K=!d.dietFilter||d.dietFilter!=="no-added-sugar"||z;return M&&B&&_&&L&&V&&K})}const $a="https://ipn.eg/S/afarweez/instapay/2BkRKq",yt={"apple-classic":95,apple:135,pumpkin:125,strawberry:90,orange:95,"bitter-orange":95,fig:105,eggplant:105,"strawberry-spread":110,"apple-spread":115},re=(i,d)=>i===340?d?"Large · 340 gm":"ÙØ¨Ùر · 340 جÙ
":d?"Medium · 240 gm":"ÙØ³Ø· · 240 جÙ
",k=(i,d)=>d===340?i.price:i.mediumPrice??yt[i.id]??i.price,La=(i,d)=>i[d]??340,jt=(i,d,x)=>{const p=La(i,d);return x?.includes(p)?p:x?.[0]??p},Ze="/manus-storage/IMG_4639_e7e4655e.JPG";function Ht(i){return typeof i=="string"&&i.trim()?i:Ze}const vt="/manus-storage/my-kitchen-logo-header-cropped_8dbd4cf6.png",ce=(i,d)=>`${i}__${d}`,Ba="/manus-storage/my-kitchen-logo-header-cropped_8dbd4cf6.png",Ye="my-kitchen-bundle-state",v=(i,d)=>`${i} ${d?"EGP":"جÙÙÙ"}`,We=(i,d,x)=>x?`${i} gm · ${v(d,!0)}`:`${i} جÙ
â ${v(d,!1)}`;function Te({value:i,isEnglish:d}){const[x,p]=c.useState(i),y=c.useRef(i);return c.useEffect(()=>{const M=y.current;if(y.current=i,M===i)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){p(i);return}const _=performance.now(),L=460;let z=0;const V=K=>{const A=Math.min(1,(K-_)/L),q=1-Math.pow(1-A,3);p(Math.round(M+(i-M)*q)),A<1&&(z=window.requestAnimationFrame(V))};return z=window.requestAnimationFrame(V),()=>window.cancelAnimationFrame(z)},[i]),e.jsx(e.Fragment,{children:v(x,d)})}const Ge="201093354994",Ue="my-kitchen-cart-quantities",Je="my-kitchen-cart-sizes",Fa="my-kitchen-language",Oa="my-kitchen-last-order",Ve="my-kitchen-whatsapp-redirect-pending",bt=750,wt=300,Nt=3e3,ye=[{id:"apple-classic",name:"Ù
Ø±Ø¨Ù ØªÙØ§Ø ÙÙØ§Ø³ÙÙ",en:"Classic Apple Jam",description:"ÙØ§ÙÙØ© طازجة Ù
ع Ø§ÙØ³Ùر ÙØ¹ØµÙر اÙÙÙÙ
ÙÙ Ø§ÙØ·Ø¨ÙØ¹ÙØ بدÙÙ Ù
ÙØ§Ø¯ ØØ§Ùظة.",descriptionEn:"Fresh fruit with sugar and natural lemon juice, with no preservatives.",price:H.appleClassic,oldPrice:H.appleClassic,category:"ÙÙØ§ÙÙ",ingredientsAr:["ØªÙØ§Ø طازج","Ø³ÙØ±","Ø¹ØµÙØ± ÙÙÙ
ÙÙ Ø·Ø¨ÙØ¹Ù"],ingredientsEn:["Fresh apple","Sugar","Natural lemon juice"],image:"/manus-storage/store-apple-cinnamon-3d-7cm_af782e2c.webp",availableSizes:[240,340]},{id:"apple",name:"ØªÙØ§Ø باÙÙØ±ÙØ©",en:"Apple Cinnamon Jam",description:"ØªÙØ§Ø Ù
Ø·Ù٠عÙÙ Ù
ÙÙ Ù
ع ÙÙ
سة ÙØ±ÙØ© Ø¯Ø§ÙØ¦Ø©Ø ÙÙÙØ© Ø¨ÙØªÙØ© تÙÙ٠باÙÙØ·Ùر.",descriptionEn:"Slow-cooked apple with a warm touch of cinnamon â made for a comforting breakfast.",price:H.apple,oldPrice:H.apple,category:"ÙØµÙات خاصة",ingredientsAr:["ØªÙØ§Ø","ÙØ±ÙØ©"],ingredientsEn:["Apple","Cinnamon"],image:"/manus-storage/store-apple-cinnamon-3d-7cm_af782e2c.webp",availableSizes:[340]},{id:"pumpkin",name:"اÙÙØ±Ø¹ Ø§ÙØ¹Ø³Ù٠باÙÙØ±ÙØ©",en:"Pumpkin with Cinnamon",description:"ÙØ±Ø¹ عسÙÙ Ù
ع اÙÙØ±ÙØ© ÙØ§ÙØ³ÙØ± ÙØ¹ØµÙر اÙÙÙÙ
ÙÙ Ø§ÙØ·Ø¨ÙØ¹ÙØ بدÙÙ Ù
ÙØ§Ø¯ ØØ§Ùظة.",descriptionEn:"Sweet pumpkin with cinnamon, sugar, and natural lemon juice, with no preservatives.",price:H.pumpkin,oldPrice:H.pumpkin,category:"ÙØµÙات خاصة",ingredientsAr:["ÙØ±Ø¹ عسÙÙ","ÙØ±ÙØ©","Ø³ÙØ±","Ø¹ØµÙØ± ÙÙÙ
ÙÙ Ø·Ø¨ÙØ¹Ù"],ingredientsEn:["Sweet pumpkin","Cinnamon","Sugar","Natural lemon juice"],image:"/manus-storage/store-pumpkin-cinnamon-3d-7cm_e33899d8.webp",availableSizes:[340]},{id:"strawberry",name:"Ù
Ø±Ø¨Ù ÙØ±Ø§ÙÙØ© ÙÙØ§Ø³ÙÙ",en:"Classic Strawberry Jam",description:"ÙØ±Ø§ÙÙØ© طازجة Ù
ع Ø§ÙØ³Ùر ÙØ¹ØµÙر اÙÙÙÙ
ÙÙ Ø§ÙØ·Ø¨ÙØ¹ÙØ بدÙÙ Ù
ÙØ§Ø¯ ØØ§Ùظة.",descriptionEn:"Fresh strawberry with sugar and natural lemon juice, with no preservatives.",price:H.strawberry,oldPrice:H.strawberry,category:"ÙÙØ§ÙÙ",ingredientsAr:["ÙØ±Ø§ÙÙØ© طازجة","Ø³ÙØ±","Ø¹ØµÙØ± ÙÙÙ
ÙÙ Ø·Ø¨ÙØ¹Ù"],ingredientsEn:["Fresh strawberry","Sugar","Natural lemon juice"],image:"/manus-storage/store-strawberry-3d-7cm_24f64065.webp",availableSizes:[240,340]},{id:"orange",name:"Ù
رÙ
اÙÙØ¯ Ø§ÙØ¨Ø±ØªÙاÙ",en:"Orange Marmalade",description:"ÙØ§ÙÙØ© Ø·Ø¨ÙØ¹ÙØ© Ù
ع ÙÙÙÙ Ù
Ù Ø§ÙØ³Ùر ÙØ¹ØµÙر اÙÙÙÙ
ÙÙ.",descriptionEn:"Natural fruit with a little sugar and lemon juice.",price:H.orange,oldPrice:H.orange,category:"ÙÙØ§ÙÙ",ingredientsAr:["ÙØ§ÙÙØ© Ø·Ø¨ÙØ¹ÙØ©","ÙÙÙÙ Ù
Ù Ø§ÙØ³Ùر","Ø¹ØµÙØ± اÙÙÙÙ
ÙÙ"],ingredientsEn:["Natural fruit","A little sugar","Lemon juice"],image:"/manus-storage/my-kitchen-orange-jam-340g_e2e703c5.png",availableSizes:[240,340]},{id:"bitter-orange",name:"Ù
رÙ
اÙÙØ¯ اÙÙØ§Ø±Ùج",en:"Bitter Orange Marmalade",description:"Ù
رÙ
اÙÙØ¯ اÙÙØ§Ø±Ùج بطعÙ
ØÙ
ض٠Ù
ØªÙØ§Ø²Ù ÙÙÙ
Ø
1³Ø© Ø¨ÙØªÙØ© ÙØ§Ø¶ØØ©.",descriptionEn:"Bitter orange marmalade with a balanced citrus note and a homemade character.",price:H.bitterOrange,oldPrice:H.bitterOrange,category:"ÙÙØ§ÙÙ",ingredientsAr:["ÙØ§Ø±Ùج","Ø³ÙØ±","Ø¹ØµÙØ± ÙÙÙ
ÙÙ Ø·Ø¨ÙØ¹Ù"],ingredientsEn:["Bitter orange","Sugar","Natural lemon juice"],image:"/manus-storage/my-kitchen-orange-jam-340g_e2e703c5.png",availableSizes:[240,340]},{id:"fig",name:"Ù
رب٠تÙÙ ÙÙØ§Ø³ÙÙ",en:"Classic Fig Jam",description:"تÙ٠طازج Ù
ع Ø§ÙØ³Ùر ÙØ¹ØµÙر اÙÙÙÙ
ÙÙ Ø§ÙØ·Ø¨ÙØ¹ÙØ بدÙÙ Ù
ÙØ§Ø¯ ØØ§Ùظة.",descriptionEn:"Fresh fig with sugar and natural lemon juice, with no preservatives.",price:H.fig,oldPrice:H.fig,category:"ÙÙØ§ÙÙ",ingredientsAr:["تÙ٠طازج","Ø³ÙØ±","Ø¹ØµÙØ± ÙÙÙ
ÙÙ Ø·Ø¨ÙØ¹Ù"],ingredientsEn:["Fresh fig","Sugar","Natural lemon juice"],image:"/manus-storage/store-fig-3d-7cm_a1131cc0.webp",availableSizes:[240,340]},{id:"eggplant",name:"خد Ø§ÙØ¬Ù
Ù٠بعÙÙ Ø§ÙØ¬Ù
Ù",en:"Eggplant Preserves with Walnuts",description:"ÙØµÙØ© Ù
Ù
ÙØ²Ø© Ù
Ù Ø§ÙØ¨Ø§Ø°Ùجا٠Ù
ع عÙÙ Ø§ÙØ¬Ù
٠بطابع Ø¨ÙØªÙ ÙØ§Ø¶Ø.",descriptionEn:"A distinctive eggplant preserve with walnuts and a clear homemade character.",price:H.eggplant,oldPrice:H.eggplant,category:"ÙØµÙات خاصة",ingredientsAr:["Ø¨Ø§Ø°ÙØ¬Ø§Ù","عÙÙ Ø§ÙØ¬Ù
Ù"],ingredientsEn:["Eggplant","Walnuts"],image:"/manus-storage/khadd-al-jameel-walnuts_03ed38bb.png",availableSizes:[340]},{id:"strawberry-spread",name:"ÙØ±Ø§ÙÙØ© â Ø³ØªÙÙÙØ§ ÙØ´Ùا",en:"Strawberry Spread â Stevia & Chia",description:"ÙØ±Ø§ÙÙØ© Ù
ع ستÙÙÙØ§ ÙØ¨Ø°Ùر Ø§ÙØ´Ùا بÙÙØ§Ù
Ù
Ø®Ù
Ù٠سÙ٠اÙÙØ±Ø¯.",descriptionEn:"Strawberry with stevia and chia seeds in a smooth, spreadable texture.",price:H.strawberrySpread,oldPrice:H.strawberrySpread,category:"ÙØ¬Ø¨Ø§Øª صØÙØ©",ingredientsAr:["ÙØ±Ø§ÙÙØ©","ستÙÙÙØ§","Ø¨Ø°ÙØ± Ø´ÙØ§ Ù
Ø·ØÙÙØ©","Ø¹ØµÙØ± ÙÙÙ
ÙÙ"],ingredientsEn:["Fresh strawberries","Stevia","Ground chia seeds","Lemon juice"],image:"/manus-storage/my-kitchen-strawberry-spread-jar-maximum-7cm_c0bd002c.png",availableSizes:[240]},{id:"apple-spread",name:"ØªÙØ§Ø â Ø³ØªÙÙÙØ§ ÙØ´Ùا",en:"Apple Spread â Stevia & Chia",description:"ØªÙØ§Ø Ù
ع ستÙÙÙØ§ ÙØ¨Ø°Ùر Ø§ÙØ´Ùا بÙÙØ§Ù
Ù
ÙØ§Ø³Ø¨ ÙÙÙØ·Ùر.",descriptionEn:"Apple with stevia and chia seeds in a breakfast-friendly spread.",price:H.appleSpread,oldPrice:H.appleSpread,category:"ÙØ¬Ø¨Ø§Øª صØÙØ©",ingredientsAr:["ØªÙØ§Ø","ستÙÙÙØ§","Ø¨Ø°ÙØ± Ø´ÙØ§"],ingredientsEn:["Apple","Stevia","Chia seeds"],image:"/manus-storage/B92F1AD1-28E8-4454-8193-553D96DBEF70_fdd9c91b.png",availableSizes:[240]}],Pe=["apple-classic","strawberry","orange","bitter-orange","fig","apple","pumpkin","eggplant","strawberry-spread","apple-spread"],Da=i=>i.map((d,x)=>({product:d,index:x})).sort((d,x)=>(Pe.indexOf(d.product.id)===-1?999:Pe.indexOf(d.product.id))-(Pe.indexOf(x.product.id)===-1?999:Pe.indexOf(x.product.id))||d.index-x.index).map(({product:d})=>d),Xe=i=>["apple-classic","strawberry","orange","bitter-orange","fig"].includes(i.id)?"classic":i.id==="apple"?"apple-cinnamon":i.id==="pumpkin"?"pumpkin-cinnamon":i.id==="eggplant"?"khadd-al-jameel":"diet-light",Ra=i=>Xe(i)==="diet-light",kt=(i,d)=>({classic:d?"Classic preserves":"اÙÙ
Ø±Ø¨ÙØ§Øª اÙÙÙØ§Ø³ÙÙÙØ©","apple-cinnamon":d?"Apple with cinnamon":"ØªÙØ§Ø باÙÙØ±ÙØ©","pumpkin-cinnamon":d?"Pumpkin with cinnamon":"اÙÙØ±Ø¹ باÙÙØ±ÙØ©","khadd-al-jameel":d?"Khadd Al-Jameel with walnuts":"خد Ø§ÙØ¬Ù
Ù٠بعÙÙ Ø§ÙØ¬Ù
Ù","diet-light":d?"Diet Light · Stevia & Chia":"Ø¯Ø§ÙØª ÙØ§Ùت · Ø¨Ø§ÙØ´Ùا ÙØ§ÙستÙÙÙØ§"})[i]||i,Qe=[{label:"Ù
صر Ø§ÙØ¬Ø¯Ùدة ÙÙ
دÙÙØ© ÙØµØ±",fee:50},{label:"اÙÙØ§Ùرة Ø§ÙØ¬Ø¯Ùدة",fee:80},{label:"Ø§ÙØ³Ø§Ø¯Ø³ Ù
Ù Ø£ÙØªÙبر",fee:80},{label:"Ø²Ø§ÙØ¯",fee:80}],_a=[{value:"بعد Ù¥ Ù
ساءÙ",en:"After 5 PM"},{value:"Ù
Ù Ù¥ Ø¥ÙÙ Ù§ Ù
ساءÙ",en:"5â7 PM"},{value:"Ù
Ù Ù§ Ø¥ÙÙ Ù© Ù
ساءÙ",en:"7â9 PM"}];function zt(){const[i,d]=c.useState(null),[x,p]=c.useState(!1),[y,M]=c.useState(()=>{try{const a=window.localStorage.getItem(Ue),t=a?JSON.parse(a):{};return t&&typeof t=="object"?t:{}}catch{return{}}}),[B,_]=c.useState(()=>{try{const a=window.localStorage.getItem(Je),t=a?JSON.parse(a):{};return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).map(([o,l])=>[o,l===240?240:340]))}catch{return{}}}),{user:L,isAuthenticated:z,logout:V}=st(),{data:K}=fe.catalogue.publicList.useQuery(),{data:A}=fe.siteContent.publicHome.useQuery(),q=c.useMemo(()=>
1{if(!K?.length)return Da(ye);const a=K.map(l=>{const f=ye.find(b=>b.id===l.sku.toLowerCase()||b.name===l.nameAr||b.en===l.nameEn);return{id:f?.id??l.sku.toLowerCase(),name:l.nameAr,en:l.nameEn,description:l.descriptionAr??f?.description??"",descriptionEn:l.descriptionEn??f?.descriptionEn??"",price:l.priceEgp,mediumPrice:(()=>{try{const b=l.optionsJson?JSON.parse(l.optionsJson):{};return typeof b.mediumPriceEgp=="number"&&Number.isInteger(b.mediumPriceEgp)?b.mediumPriceEgp:void 0}catch{return}})(),oldPrice:l.originalPriceEgp??l.priceEgp,category:f?.category??l.category,ingredientsAr:f?.ingredientsAr??[],ingredientsEn:f?.ingredientsEn??[],image:l.imageUrl??f?.image??"",availableSizes:f?.availableSizes}}),t=new Set(K.flatMap(l=>[l.sku.toLowerCase(),l.nameAr,l.nameEn])),o=ye.filter(l=>!t.has(l.id)&&!t.has(l.name)&&!t.has(l.en));return Da([...a,...o])},[K]),g=a=>jt(B,a.id,a.availableSizes),[w,ea]=c.useState(()=>{const a=new URLSearchParams(window.location.search).get("lang");return a==="en"||a==="ar"?a:window.localStorage.getItem(Fa)==="en"?"en":"ar"}),[aa,T]=c.useState(""),[za,oe]=c.useState("default"),[Q,sa]=c.useState(""),[Ka,ta]=c.useState(""),[Me,ra]=c.useState(""),[qa,ca]=c.useState(""),[I,le]=c.useState(null),[je,Ya]=c.useState(!1),[$,He]=c.useState(()=>{try{const a=JSON.parse(window.localStorage.getItem(Ye)||"null");return a?.activeBundle===3||a?.activeBundle===5?a.activeBundle:null}catch{return null}}),[Wa,Ga]=c.useState({3:"strawberry",5:"fig"}),[ve,Ct]=c.useState(()=>{const a={3:ye.slice(0,3).map(t=>t.id),5:ye.slice(0,5).map(t=>t.id)};try{const t=JSON.parse(window.localStorage.getItem(Ye)||"null");return t?.bundleSelections?.[3]&&t?.bundleSelections?.[5]?t.bundleSelections:a}catch{return a}}),[St,Et]=c.useState(""),[oa,At]=c.useState(null),[Tt,Pt]=c.useState("all"),Ua=c.useRef(null),[S,Ja]=c.useState(()=>{try{const a=window.localStorage.getItem(Oa);return a?JSON.parse(a):null}catch{return null}}),[F,P]=c.useState(!1),[Va,Ie]=c.useState(!1),[be,we]=c.useState(!1),$e=c.useRef(null),[Qa,Za]=c.useState("Ù٠اÙÙÙÙØ§Øª"),[Xa,es]=c.useState(""),[as,ss]=c.useState([]),[ts,rs]=c.useState("all"),[cs,os]=c.useState("all"),[Y,la]=c.useState(Qe[0].label),[ne,ls]=c.useState(()=>new Date(Date.now()+864e5).toISOString().slice(0,10)),[ie,ns]=c.useState(_a[0].value),[Z,J]=c.useState("cart"),[is,Ne]=c.useState(!1),[ds,ke]=c.useState(!1),[X,ms]=c.useState(!1),[ps,de]=c.useState(!1),[Ce,gs]=c.useState(null),[W,na]=c.useState(!1),[u,O]=c.useState({name:"",phone:"",email:"",address:""}),[ia,Be]=c.useState(""),[E,hs]=c.useState(null),[da,me]=c.useState(""),[pe,xs]=c.useState(!1),[ee,us]=c.useState("manual_review"),[ma,Se]=c.useState(""),[ge]=c.useState(()=>{const a=localStorage.getItem("my-kitchen-referral");if(a)return a;const t=`MK${Math.random().toString(36).slice(2,8).toUpperCase()}`;return localStorage.setItem("my-kitchen-referral",t),t}),fs=async()=>{try{await navigator.clipboard.writeText($a),Se(s?"InstaPay link copied.":"تÙ
ÙØ³Ø® رابط InstaPay.")}catch{Se(s?"Copy is unavailable. Use the button to open InstaPay.":"اÙÙØ³Ø® ØºÙØ± Ù
تاØ. استخدÙ
Ø§ÙØ²Ø± ÙÙØªØ InstaPay.")}window.setTimeout(()=>Se(""),2200)},ys=async()=>{const a=navigator;if(!a.contacts?.select){Be(s?"Contact selection is not available in this browser. You can use the browser autofill instead.":"Ø§Ø®ØªÙØ§Ø± Ø¬ÙØ§Øª Ø§ÙØ§ØªØµØ§Ù ØºÙØ± Ù
ØªØ§Ø ÙÙ ÙØ°Ø§ اÙÙ
ØªØµÙØ. ÙÙ
ÙÙ٠استخداÙ
Ø§ÙØªØ¹Ø¨Ø¦Ø© Ø§ÙØªÙÙØ§Ø¦ÙØ© ÙÙÙ
ØªØµÙØ.");return}try{const o=(await a.contacts.select(["name","tel","address"],{multiple:!1}))[0];if(!o)return;const l=o.address?.[0],f=[...l?.addressLine??[],l?.streetAddress,l?.city].filter(Boolean).join("Ø ");O(b=>({...b,name:o.name?.[0]||b.name,phone:o.tel?.[0]||b.phone,address:f||b.address})),Be(s?"Contact details filled locally. Nothing was saved to your address book.":"تÙ
Ù
ÙØ¡ Ø§ÙØ¨ÙØ§ÙØ§Øª Ù
ØÙÙÙØ§Ø ÙÙÙ
ÙØªÙ
ØÙظ Ø£Ù Ø´ÙØ¡ ÙÙ Ø¯ÙØªØ± Ø¬ÙØ§Øª Ø§ÙØ§ØªØµØ§Ù.")}catch{Be(s?"Contact selection was cancelled.":"تÙ
Ø¥ÙØºØ§Ø¡ Ø§Ø®ØªÙØ§Ø± Ø¬ÙØ© Ø§ÙØ§ØªØµØ§Ù.")}},js=fe.referral.ensureCode.useMutation(),Fe=fe.referral.register.useMutation(),Hs=fe.orders.create.useMutation(),[pa,vs]=c.useState(""),[ga,bs]=c.useState("");c.useEffect(()=>{js.mutate({code:ge})},[ge]),c.useEffect(()=>{rt(window.location.search)},[]),c.useEffect(()=>{try{window.localStorage.setItem(Ue,JSON.stringify(y))}catch{}},[y]),c.useEffect(()=>{try{window.localStorage.setItem(Je,JSON.stringify(B))}catch{}},[B]),c.useEffect(()=>{try{window.localStorage.setItem(Fa,w)}catch{}document.documentElement.lang=w,document.documentElement.dir=w==="ar"?"rtl":"ltr"},[w]),c.useEffect(()=>{try{window.localStorage.setItem(Ye,JSON.stringify({activeBundle:$,bundleSelections:ve}))}catch{}},[$,ve]),c.useEffect(()=>{if(!F)return;const a=o=>{o.key==="Escape"&&P(!1)},t=document.body.style.overflow;return document.addEventListener("keydown",a),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=t}},[F]),c.useEffect(()=>{$===null||oa===null||Ua.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[$,oa]),c.useEffect(()=>{const a=()=>{Ya(t=>t?window.scrollY>8:window.scrollY>560)};return a(),window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[]),c.useEffect(()=>{if(!I)return;const a=o=>{o.key==="Escape"&&le(null)},t=document.body.style.overflow;return document.addEventListener("keydown",a),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=t}},[I]),c.useEffect(()=>{if(!F&&!be)return;const a=t=>{$e.current&&!$e.current.contains(t.target)&&(P(!1),we(!1))};return document.addEventListener("pointerdown",a),()=>document.removeEventListener("pointerdown",a)},[F,be]);const s=w==="en",ws=s?{flavors:"Flavors",opening:"Opening offer",delivery:"Delivery",share:"Share the kitchen",order:"Order here",handmade:"Handcrafted since 2016",heroTitle:"Handmade goodness",heroAccent:"with love.",heroBody:"Small-batch recipes made with care, carrying a little kitchen history in every spoon. Discover MY KITCHEN and choose the flavor that feels right for your morning.",offerLink:"See the opening bundles",leadTime:"Order 48 hours before delivery",cairo:"Delivery across Cairo & Giza",offerTitle:"Try more than one flavor.",offerBody:"Our opening bundles make it simple to try a few recipes and find your favorite.",three:"3 different jars",five:"5 different jars",tryOffer:"Try the kitchen favorites",fullSet:"Meet all the flavors",choose3:"Try 3 flavors",choose5:"Bring home 5 flavors",fromKitchen:"From our kitchen",catalogTitle:"Many flavors, one story.",catalogProof:"Small-batch recipes · clear ingredients · a jar made with care",catalogBody:"Pick your flavors and quantities, add them to your cart, then review everything before sending your order on WhatsApp.",all:"All flavors",fruit:"Fruit",special:"Special recipes",quantity:"Quantity",ready:"Ready for your order.",orderBody:"Choose your flavors and quantities, confirm your cart, select your delivery area, and add your details before sending the order on WhatsApp.",step1:"Choose flavors and quantity",step2:"Select your delivery area",step3:"Send your order through WhatsApp",summary:"Your selection",jars:"jars",empty:"Nothing in your cart yet â choose a flavor above to get started.",chooseZone:"Select delivery area",total:"Total including delivery",fee:"Delivery fee",orderHere:"Start your order",shareTaste:"Share the taste",shareTitle:"Send a little kitchen warmth their way.",shareBody:"Scan the code to open the catalog and share it with family and friends.",openCatalog:"Open the catalog",made:"A taste of old recipes, made with love.",chooseFlavor:"Choose your flavor",addToCart:"Add a jar",addedToCart:"In your cart",cartLabel:"Cart",referralKicker:"Share the kitchen",referralTitle:"Invite someone to discover a homemade flavor.",referralBody:"Share your personal link with a friend. After the friend places and confirms a first order, the kitchen can a
1pply a 20 EGP reward to your next order.",referralReward:"20 EGP reward after a confirmed first order",referralShare:"Share my kitchen link",referralCopy:"Copy my invite link",referralJoinTitle:"Are you discovering MY KITCHEN through a friend?",referredName:"Your full name",referredPhone:"Your phone number",registerReferral:"Claim my referral",referralNote:"Referral rewards are confirmed manually after the new customerâs first order.",storyKicker:"The MY KITCHEN promise",storyTitle:"Natural ingredients. Homemade care.",storyBody:"We keep the recipe honest: recognizable ingredients, careful preparation, and a jar made to bring warmth to your table.",storyOne:"Natural ingredients",storyOneBody:"Simple ingredients selected for a clear, familiar taste.",storyTwo:"Made by hand",storyTwoBody:"Prepared in small batches with the attention of a home kitchen.",storyThree:"Shared with care",storyThreeBody:"Packed, explained, and delivered with a personal touch.",audienceKicker:"Made for real moments",audienceTitle:"A jar for your table, your gift, and your next morning.",audienceBody:"MY KITCHEN helps you choose something honest for breakfast, a thoughtful gift, or a small discovery to share at home.",audienceOne:"For your morning",audienceOneBody:"A familiar flavor that makes breakfast feel cared for.",audienceTwo:"For someone you love",audienceTwoBody:"A warm, personal gift with a story behind the label.",audienceThree:"For discovering",audienceThreeBody:"Try three flavors, then return for the one that becomes yours.",socialKicker:"From the kitchen journal",socialTitle:"Stories, serving ideas, and simple ways to choose.",socialBody:"Follow the MY KITCHEN journal for ingredient notes, breakfast inspiration, storage guidance, seasonal ideas, and thoughtful gifts.",socialBrowse:"Browse the flavors",socialShare:"Share the kitchen",socialCards:["Serving ideas","Label & ingredients","Breakfast moments","Gift bundles"]}:{flavors:"اÙÙÙÙØ§Øª",opening:"Ø§ÙØ¹Ø±Ø¶ Ø§ÙØ§ÙتتاØÙ",delivery:"Ø§ÙØªÙصÙÙ",share:"Ø´Ø§Ø±Ù Ø¯ÙØ¡ اÙÙ
طبخ",order:"Ø§Ø·ÙØ¨ ÙÙØ§",handmade:"Ù
صÙÙØ¹ ÙØ¯ÙÙÙØ§ Ù
ÙØ° ٢٠١٦",heroTitle:"طعÙ
Ø¨ÙØªÙ أصÙÙ",heroAccent:"Ù
صÙÙØ¹ Ø¨ØØ¨.",heroBody:"ÙØµÙات Ø¨ÙØªÙØ© Ø¨ØªØØ¶Ùر ÙØ§Ø¯Ø¦ ÙØ¹ÙØ§ÙØ© Ù
٠أÙÙ Ø®Ø·ÙØ© ÙØ¢Ø®Ø± Ù
ÙØ¹ÙØ©. Ø§ÙØªØ´Ù MY KITCHEN ÙØ§Ø®ØªØ§Ø± اÙÙÙÙØ© اÙÙ٠تÙÙ٠بصباØÙ.",offerLink:"Ø´ÙÙ Ø¨Ø§ÙØ§Øª Ø§ÙØ§ÙتتاØ",leadTime:"Ø§Ø·ÙØ¨ ÙØ¨Ù Ø§ÙØªÙصÙ٠ب٠48 ساعة",cairo:"ØªÙØµÙ٠داخ٠اÙÙØ§Ùرة ÙØ§ÙØ¬ÙØ²Ø©",offerTitle:"Ø¬Ø±ÙØ¨ Ø£ÙØ«Ø± Ù
Ù ÙÙÙØ©.",offerBody:"Ø¨Ø§ÙØ§Øª Ø§ÙØ§ÙØªØªØ§Ø ØªØ®ÙÙÙÙ ØªØ¬Ø±ÙØ¨ Ø£ÙØ«Ø± Ù
Ù ÙØµÙØ© ÙØªØ¹Ø±Ù اÙÙÙÙØ© اÙÙÙ ÙØªØ¨ÙÙ Ø§Ø®ØªÙØ§Ø±Ù.",three:"Ù£ برطÙ
Ø§ÙØ§Øª Ù
ختÙÙØ©",five:"Ù¥ برطÙ
Ø§ÙØ§Øª Ù
ختÙÙØ©",tryOffer:"Ø¬Ø±ÙØ¨ ÙÙÙØ§Øª اÙÙ
طبخ",fullSet:"Ø´ÙÙ Ù٠اÙÙÙÙØ§Øª",choose3:"Ø¬Ø±ÙØ¨ Ù£ ÙÙÙØ§Øª",choose5:"خد Ù¥ برطÙ
Ø§ÙØ§Øª ÙÙØ¨Ùت",fromKitchen:"Ù
Ù Ù
Ø·Ø¨Ø®ÙØ§",catalogTitle:"ÙÙÙØ§Øª ÙØ«ÙØ±Ø©Ø ØÙØ§ÙØ© ÙØ§ØØ¯Ø©.",catalogProof:"ÙØµÙات عÙÙ Ø¯ÙØ¹Ø§Øª ØµØºÙØ±Ø© · Ù
ÙÙÙØ§Øª ÙØ§Ø¶ØØ© · برطÙ
ا٠Ù
عÙ
ÙÙ Ø¨Ø¹ÙØ§ÙØ©",catalogBody:"اختار Ø£Ù ÙÙÙØ© Ø£Ù Ø£ÙØ«Ø± Ù
٠اÙÙØªØ§ÙÙØ¬Ø أض٠اÙÙÙ
ÙØ§Øª ÙÙØ³ÙØ©Ø ÙØ±Ø§Ø¬Ø¹ Ø·ÙØ¨Ù Ø¨Ø±Ø§ØØªÙ ÙØ¨Ù Ù
ا تبعت٠عÙÙ ÙØ§ØªØ³Ø§Ø¨.",all:"Ù٠اÙÙÙÙØ§Øª",fruit:"ÙÙØ§ÙÙ",special:"ÙØµÙات خاصة",quantity:"اÙÙÙ
ÙØ©",ready:"Ø·ÙØ¨Ù Ø¬Ø§ÙØ².",orderBody:"اختار اÙÙÙÙØ§Øª ÙØ§ÙÙÙ
ÙØ§ØªØ Ø£ÙÙØ¯ Ø§ÙØ³ÙØ©Ø ØØ¯Ùد Ù
ÙØ·ÙØ© Ø§ÙØªÙصÙÙØ ÙØ§Ùتب Ø¨ÙØ§ÙØ§ØªÙ ÙØ¨Ù Ù
ا تبعت Ø§ÙØ·Ùب عÙÙ ÙØ§ØªØ³Ø§Ø¨.",step1:"اختر اÙÙÙÙØ§Øª ÙØ§ÙÙÙ
ÙØ©",step2:"ØØ¯Ø¯ Ù
ÙØ·ÙØ© Ø§ÙØªÙصÙÙ",step3:"Ø£Ø±Ø³Ù Ø§ÙØ·Ùب عبر ÙØ§ØªØ³Ø§Ø¨",summary:"Ù
ÙØ®Øµ Ø§Ø®ØªÙØ§Ø±Ù",jars:"برطÙ
اÙ",empty:"ÙØ³Ù Ù
ا اخترتش ÙÙÙØ© â Ø§Ø¨Ø¯Ø£ Ù
٠اÙÙØªØ§ÙÙØ¬ اÙÙÙ ÙÙÙ.",chooseZone:"ØØ¯Ø¯ Ù
ÙØ·ÙØ© Ø§ÙØªÙصÙÙ",total:"Ø§ÙØ¥Ø¬Ù
اÙ٠شاÙ
Ù Ø§ÙØªÙصÙÙ",fee:"رسÙÙ
Ø§ÙØªÙصÙÙ",orderHere:"ابدأ Ø·ÙØ¨Ù",shareTaste:"Ø´Ø§Ø±Ù Ø§ÙØ·Ø¹Ù
",shareTitle:"Ø®ÙÙÙ Ø¯ÙØ¡ اÙÙ
طبخ ÙÙØµÙ ÙØØ¯ بابÙÙ
.",shareBody:"اÙ
Ø³Ø Ø§ÙØ±Ù
ز ÙÙØªØ اÙÙØªØ§ÙÙØ¬ ÙØ´Ø§Ø±Ù٠بسÙÙÙØ© Ù
ع Ø§ÙØ¹Ø§Ø¦ÙØ© ÙØ§ÙØ£ØµØ¯ÙØ§Ø¡.",openCatalog:"Ø§ÙØªØ اÙÙØªØ§ÙÙØ¬",made:"طعÙ
Ù
Ù ÙØµÙات زÙ
Ø§ÙØ Ù
صÙÙØ¹ Ø¨ØØ¨.",chooseFlavor:"اختر ÙÙÙØªÙ",addToCart:"أض٠برطÙ
اÙÙØ§",addedToCart:"Ø§ØªØ¶Ø§Ù ÙØ³ÙتÙ",cartLabel:"Ø§ÙØ³ÙØ©",referralKicker:"Ø´Ø§Ø±Ù Ø¯ÙØ¡ اÙÙ
طبخ",referralTitle:"Ø§Ø¯Ø¹Ù Ø´Ø®ØµÙØ§ ÙØ§Ùتشا٠ÙÙÙØ© Ù
ÙØ²ÙÙØ©.",referralBody:"Ø´Ø§Ø±Ù Ø±Ø§Ø¨Ø·Ù Ø§ÙØ®Ø§Øµ Ù
ع صدÙÙ. بعد Ø£Ù ÙØ·Ùب صدÙÙÙ ÙØ£ÙÙ Ù
رة ÙÙØ¤Ùد Ø·ÙØ¨ÙØ ÙÙ
ÙÙ ÙÙÙ
طبخ Ø¥Ø¶Ø§ÙØ© ØØ§Ùز Ø¥ØØ§ÙØ© بÙÙÙ
Ø© ٢٠جÙÙÙÙØ§ Ø¥ÙÙ Ø·ÙØ¨Ù Ø§ÙØªØ§ÙÙ.",referralReward:"ØØ§Ùز Ø¥ØØ§ÙØ© بÙÙÙ
Ø© ٢٠جÙÙÙÙØ§ بعد تأÙÙØ¯ Ø£ÙÙ Ø·ÙØ¨",referralShare:"شار٠رابط Ø¯Ø¹ÙØªÙ",referralCopy:"Ø§ÙØ³Ø® رابط Ø¯Ø¹ÙØªÙ",referralJoinTitle:"ÙÙ Ø§ÙØªØ´Ùت MY K
1ITCHEN Ù
Ù Ø®ÙØ§Ù صدÙÙØ",referredName:"اسÙ
٠باÙÙØ§Ù
Ù",referredPhone:"رÙÙ
ÙØ§ØªÙÙ",registerReferral:"سجÙÙ Ø¯Ø¹ÙØªÙ",referralNote:"ÙÙØ±Ø§Ø¬Ø¹ ØØ§Ùز Ø§ÙØ¥ØØ§ÙØ© ÙÙÙØ¤Ùد ÙØ¯ÙÙÙØ§ بعد Ø£ÙÙ Ø·ÙØ¨ ÙÙØ¹Ù
ÙÙ Ø§ÙØ¬Ø¯Ùد.",storyKicker:"ÙØ¹Ø¯ MY KITCHEN",storyTitle:"Ù
ÙÙÙØ§Øª Ø·Ø¨ÙØ¹ÙØ©. Ø¹ÙØ§ÙØ© Ù
ÙØ²ÙÙØ©.",storyBody:"ÙØØ§ÙØ¸ عÙ٠اÙÙØµÙØ© ØµØ§Ø¯ÙØ©: Ù
ÙÙÙØ§Øª تعرÙÙØ§Ø ØªØØ¶Ùر Ø¨Ø¹ÙØ§ÙØ©Ø ÙØ¨Ø±Ø·Ù
Ø§Ù ÙØÙ
Ù Ø¯ÙØ¡ Ù
طبخ Ø§ÙØ¨Ùت Ø¥ÙÙ Ù
ائدتÙ.",storyOne:"Ù
ÙÙÙØ§Øª Ø·Ø¨ÙØ¹ÙØ©",storyOneBody:"Ù
ÙÙÙØ§Øª Ø¨Ø³ÙØ·Ø© Ù
ختارة بطعÙ
ÙØ§Ø¶Ø ÙÙ
Ø£ÙÙÙ.",storyTwo:"Ù
صÙÙØ¹ ÙØ¯ÙÙÙØ§",storyTwoBody:"ÙÙØØ¶ÙØ± عÙÙ Ø¯ÙØ¹Ø§Øª ØµØºÙØ±Ø© Ø¨Ø¹ÙØ§ÙØ© تشب٠Ù
طبخ Ø§ÙØ¨Ùت.",storyThree:"ÙØµÙ Ø¥ÙÙÙ Ø¨Ø¹ÙØ§ÙØ©",storyThreeBody:"تغÙÙÙ ÙØ§Ø¶ØØ ØªÙØ§ØµÙÙ ØµØ§Ø¯ÙØ©Ø ÙØªÙصÙ٠بÙÙ
سة Ø´Ø®ØµÙØ©.",audienceKicker:"ÙÙØØ¸Ø§Øª Ø§ÙØÙÙÙÙØ©",audienceTitle:"برطÙ
ا٠ÙÙ
Ø§Ø¦Ø¯ØªÙØ ÙÙØ¯ÙØªÙØ ÙÙØµØ¨Ø§ØÙ اÙÙØ§Ø¯Ù
.",audienceBody:"تساعد٠MY KITCHEN عÙÙ Ø§Ø®ØªÙØ§Ø± Ø´ÙØ¡ صاد٠ÙÙÙØ·ÙØ±Ø Ø£Ù ÙØ¯ÙØ© تØÙ
Ù Ù
عÙÙØ Ø£Ù ÙÙÙØ© Ø¬Ø¯ÙØ¯Ø© تشارÙÙØ§ ÙÙ Ø§ÙØ¨Ùت.",audienceOne:"ÙØµØ¨Ø§ØÙ",audienceOneBody:"ÙÙÙØ© Ù
Ø£ÙÙÙØ© تجع٠اÙÙØ·Ùر Ø£ÙØ«Ø± Ø¯ÙØ¦Ùا ÙØ¹ÙØ§ÙØ©.",audienceTwo:"ÙÙ
Ù ØªØØ¨",audienceTwoBody:"ÙØ¯ÙØ© Ø´Ø®ØµÙØ© Ø¯Ø§ÙØ¦Ø© تØÙ
Ù ØÙØ§ÙØ© Ø®Ù٠اÙÙ
ÙØµÙ.",audienceThree:"ÙÙØ§ÙتشاÙ",audienceThreeBody:"Ø¬Ø±ÙØ¨ Ø«ÙØ§Ø« ÙÙÙØ§ØªØ Ø«Ù
عد Ø¥Ù٠اÙÙÙÙØ© Ø§ÙØªÙ ØªØµØ¨Ø Ø§Ø®ØªÙØ§Ø±Ù.",socialKicker:"Ù
Ù Ø¯ÙØªØ± اÙÙ
طبخ",socialTitle:"ØÙØ§ÙØ§ØªØ Ø£ÙÙØ§Ø± ØªÙØ¯ÙÙ
Ø ÙØ·Ø±ÙÙØ© أسÙÙ ÙÙØ§Ø®ØªÙار.",socialBody:"تابع Ø¯ÙØªØ± MY KITCHEN ÙØªØªØ¹Ø±Ù عÙ٠اÙÙ
ÙÙÙØ§ØªØ ÙØ£ÙÙØ§Ø± اÙÙØ·ÙØ±Ø ÙØ¥Ø±Ø´Ø§Ø¯Ø§Øª Ø§ÙØªØ®Ø²ÙÙØ ÙØ§ÙÙÙÙØ§Øª اÙÙ
ÙØ³Ù
ÙØ©Ø ÙØ§ÙÙØ¯Ø§Ùا Ø§ÙØ¯Ø§Ùئة.",socialBrowse:"ØªØµÙØ اÙÙÙÙØ§Øª",socialShare:"Ø´Ø§Ø±Ù Ø¯ÙØ¡ اÙÙ
طبخ",socialCards:["Ø£ÙÙØ§Ø± ØªÙØ¯ÙÙ
","اÙÙ
ÙØµÙ ÙØ§ÙÙ
ÙÙÙØ§Øª","ÙØØ¸Ø§Øª اÙÙØ·Ùر","Ø¨Ø§ÙØ§Øª اÙÙØ¯Ø§Ùا"]},r=A??{},ha=Number(r.whatsappRedirectDelayMs),xa=Number.isFinite(ha)?Math.min(Nt,Math.max(wt,ha)):bt,n=Object.fromEntries(Object.entries(ws).map(([a,t])=>{const o=r[`ui_${a}${s?"En":"Ar"}`];return[a,typeof t=="string"&&typeof o=="string"&&o.trim()?o:t]}));c.useEffect(()=>{const a=()=>{let o=null;try{o=window.localStorage.getItem(Ve)}catch{return}if(o)try{const l=JSON.parse(o);typeof l.reference=="string"&&typeof l.total=="number"&&typeof l.items=="number"&&(gs({reference:l.reference,total:l.total,items:l.items}),de(!0),U("whatsapp_order_returned",{reference:l.reference,total:l.total,items:l.items,language:w}))}catch{}finally{try{window.localStorage.removeItem(Ve)}catch{}}},t=()=>{document.visibilityState==="visible"&&a()};return a(),window.addEventListener("pageshow",a),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("pageshow",a),document.removeEventListener("visibilitychange",t)}},[w]);const Ns=s?r.heroTitleEn||`${n.heroTitle} ${n.heroAccent}`:r.heroTitleAr||`${n.heroTitle} ${n.heroAccent}`,ks=s?r.heroBodyEn||n.heroBody:r.heroBodyAr||n.heroBody;s?r.secondaryCtaEn||n.offerLink:r.secondaryCtaAr||n.offerLink;const Cs=s?r.announcementEn||n.handmade:r.announcementAr||n.handmade,Ss=s?r.promoEn||"Opening offer · Choose your jars and review delivery before ordering":r.promoAr||"عرض Ø§ÙØ§ÙØªØªØ§Ø Â· اختار برطÙ
Ø§ÙØ§ØªÙ ÙØ±Ø§Ø¬Ø¹ Ø§ÙØªÙصÙÙ ÙØ¨Ù Ø§ÙØ·Ùب",Es=Ht(r.heroImageUrl);s?r.offerTitleEn:r.offerTitleAr,s?r.offerBodyEn:r.offerBodyAr;const As=s?r.deliveryTitleEn||"Delivery with care":r.deliveryTitleAr||"Ø§ÙØªÙصÙÙ Ø¨Ø¹ÙØ§ÙØ©",Ts=s?r.deliveryBodyEn||"Delivery is added after you select an area.":r.deliveryBodyAr||"ØªÙØ¶Ø§Ù رسÙÙ
Ø§ÙØªÙصÙ٠بعد ØªØØ¯Ùد اÙÙ
ÙØ·ÙØ©.",Ps=s?typeof r.footerPromiseEn=="string"&&r.footerPromiseEn.trim()?r.footerPromiseEn:"From our kitchen to your table, with clear details and personal care.":typeof r.footerPromiseAr=="string"&&r.footerPromiseAr.trim()?r.footerPromiseAr:"Ù
Ù Ù
Ø·Ø¨Ø®ÙØ§ Ø¥ÙÙ Ù
Ø§Ø¦Ø¯ØªÙØ Ø¨ØªÙØ§ØµÙÙ ÙØ§Ø¶ØØ© ÙØ¹ÙØ§ÙØ© Ø´Ø®ØµÙØ©.",Ms=s?typeof r.footerExploreEn=="str
1ing"&&r.footerExploreEn.trim()?r.footerExploreEn:"Explore":typeof r.footerExploreAr=="string"&&r.footerExploreAr.trim()?r.footerExploreAr:"ØªØµÙØ اÙÙ
ÙÙØ¹",Is=s?typeof r.footerCareEn=="string"&&r.footerCareEn.trim()?r.footerCareEn:"Care & guidance":typeof r.footerCareAr=="string"&&r.footerCareAr.trim()?r.footerCareAr:"Ø§ÙØ¹ÙØ§ÙØ© ÙØ§Ùإرشادات",$s=s?typeof r.footerContactKickerEn=="string"&&r.footerContactKickerEn.trim()?r.footerContactKickerEn:"Stay close to the kitchen":typeof r.footerContactKickerAr=="string"&&r.footerContactKickerAr.trim()?r.footerContactKickerAr:"Ø®ÙÙÙ ÙØ±Ùب Ù
٠اÙÙ
طبخ",Bs=s?typeof r.footerContactTitleEn=="string"&&r.footerContactTitleEn.trim()?r.footerContactTitleEn:"Questions or a warm recommendation?":typeof r.footerContactTitleAr=="string"&&r.footerContactTitleAr.trim()?r.footerContactTitleAr:"Ø³Ø¤Ø§Ù Ø£Ù ØªØ±Ø´ÙØ Ø¯Ø§ÙØ¦Ø",Fs=s?typeof r.footerContactBodyEn=="string"&&r.footerContactBodyEn.trim()?r.footerContactBodyEn:"We are one WhatsApp message away.":typeof r.footerContactBodyAr=="string"&&r.footerContactBodyAr.trim()?r.footerContactBodyAr:"Ø¥ØÙا ÙØ±ÙبÙÙ Ù
Ù٠عÙÙ ÙØ§ØªØ³Ø§Ø¨.",Os=s?typeof r.footerStorageEn=="string"&&r.footerStorageEn.trim()?r.footerStorageEn:"Storage guide":typeof r.footerStorageAr=="string"&&r.footerStorageAr.trim()?r.footerStorageAr
1:"إرشادات Ø§ÙØªØ®Ø²ÙÙ",Ds=s?typeof r.footerDeliveryEn=="string"&&r.footerDeliveryEn.trim()?r.footerDeliveryEn:"Delivery areas":typeof r.footerDeliveryAr=="string"&&r.footerDeliveryAr.trim()?r.footerDeliveryAr:"Ù
ÙØ§Ø·Ù Ø§ÙØªÙصÙÙ",Rs=s?typeof r.footerReferralEn=="string"&&r.footerReferralEn.trim()?r.footerReferralEn:"Referral":typeof r.footerReferralAr=="string"&&r.footerReferralAr.trim()?r.footerReferralAr:"Ø§ÙØ¥ØØ§ÙØ©",_s=s?typeof r.footerPrivacyEn=="string"&&r.footerPrivacyEn.trim()?r.footerPrivacyEn:"Privacy policy":typeof r.footerPrivacyAr=="string"&&r.footerPrivacyAr.trim()?r.footerPrivacyAr:"Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©",Ls=s?typeof r.footerTermsEn=="string"&&r.footerTermsEn.trim()?r.footerTermsEn:"Order terms":typeof r.footerTermsAr=="string"&&r.footerTermsAr.trim()?r.footerTermsAr:"Ø´Ø±ÙØ· Ø§ÙØ·Ùب";n.all,n.fruit,n.special;const zs=a=>{const t=document,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.startViewTransition&&!o?t.startViewTransition(a):a()},Ks=()=>zs(()=>{es(""),ss([]),rs("all"),os("all"),Za("Ù٠اÙÙÙÙØ§Øª")}),D=s?{cart:"Your cart",confirm:"Confirm order",location:"Delivery location",back:"Back to cart",review:"Review order",edit:"Edit",subtotal:"Products subtotal",transportation:"Delivery fee",grandTotal:"Total to pay",send:"Send my order on WhatsApp",addMore:"Add products from the catalog above.",selected:"Selected products",customer:"Customer details",name:"Full name",phone:"Phone number",address:"Detailed address",required:"Please complete the required fields.",phoneHint:"Enter a reachable phone number.",deliveryPending:"Delivery is added after you select an area.",deliverySlot:"Delivery time",needHelp:"Need help? Chat with MY KITCHEN on WhatsApp",paymentMethod:"Payment method",cashOnDelivery:"Cash on delivery",instapay:"InstaPay transfer",bankTransfer:"Bank transfer",manualReview:"Confirm payment manually"}:{cart:"Ø³ÙØ© Ù
Ø´ØªØ±ÙØ§ØªÙ",confirm:"تأÙÙØ¯ Ø§ÙØ·Ùب",location:"Ù
ÙØ·ÙØ© Ø§ÙØªÙصÙÙ",back:"Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ³ÙØ©",review:"Ù
راجعة Ø§ÙØ·Ùب",edit:"تعدÙÙ",subtotal:"Ù
جÙ
ÙØ¹ اÙÙ
ÙØªØ¬Ø§Øª",transportation:"رسÙÙ
Ø§ÙØªÙصÙÙ",grandTotal:"Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙ
Ø·ÙÙØ¨",send:"ابعت Ø·ÙØ¨Ù عÙÙ ÙØ§ØªØ³Ø§Ø¨",addMore:"أض٠اÙÙ
ÙØªØ¬Ø§Øª Ù
٠اÙÙØªØ§ÙÙØ¬ Ø£Ø¹ÙØ§Ù.",selected:"اÙÙ
ÙØªØ¬Ø§Øª اÙÙ
ختارة",customer:"Ø¨ÙØ§Ùات Ø§ÙØ¹Ù
ÙÙ",name:"Ø§ÙØ§Ø³Ù
باÙÙØ§Ù
Ù",phone:"رÙÙ
اÙÙØ§ØªÙ",address:"Ø§ÙØ¹ÙÙØ§Ù Ø§ÙØªÙصÙÙÙ",required:"ÙØ±Ø¬Ù استÙÙ
Ø§Ù Ø§ÙØÙÙ٠اÙÙ
Ø·ÙÙØ¨Ø©.",phoneHint:"Ø§ÙØªØ¨ رÙÙ
ÙØ§ ÙÙ
Ù٠اÙÙØµÙ٠إÙÙ٠عÙÙÙ.",deliveryPending:"ØªÙØ¶Ø§Ù رسÙÙ
Ø§ÙØªÙصÙ٠بعد ØªØØ¯Ùد اÙÙ
ÙØ·ÙØ©.",deliverySlot:"ÙØªØ±Ø© Ø§ÙØªÙصÙÙ",needHelp:"ØªØØªØ§Ø¬ Ù
Ø³Ø§Ø¹Ø¯Ø©Ø ØªÙØ§ØµÙ Ù
ع MY KITCHEN عÙÙ ÙØ§ØªØ³Ø§Ø¨",paymentMethod:"طرÙÙØ© Ø§ÙØ¯Ùع",cashOnDelivery:"Ø§ÙØ¯Ùع Ø¹ÙØ¯ Ø§ÙØ§Ø³ØªÙاÙ
",instapay:"تØÙÙÙ InstaPay",bankTransfer:"تØÙÙ٠بÙÙÙ",manualReview:"Ù
راجعة Ø§ÙØ¯Ùع ÙØ¯ÙÙÙØ§"},G=(a,t)=>{const o=r[`${a}${s?"En":"Ar"}`];return typeof o=="string"&&o.trim()?o:t},m={...D,confirm:G("checkoutConfirm",D.confirm),review:G("checkoutReview",D.review),location:G("checkoutLocation",D.location),edit:G("checkoutEdit",D.edit),send:G("checkoutSend",D.send),needHelp:G("checkoutNeedHelp",D.needHelp),deliverySlot:G("checkoutDeliverySlot",D.deliverySlot),paymentMethod:G("checkoutPayment",D.paymentMethod)},qs=[{value:"instapay",label:m.instapay,icon:it},{value:"cash_on_delivery",label:m.cashOnDelivery,icon:dt},{value:"bank_transfer",label:m.bankTransfer,icon:mt},{value:"manual_review",label:m.manualReview,icon:pt}],ua=ft(q,{filter:Qa,search:Xa,selectedIngredients:as,priceFilter:ts,dietFilter:cs}),N=c.useMemo(()=>q.flatMap(a=>(a.availableSizes??[340,240]).flatMap(t=>{const o=ce(a.id,t),l=y[o]||0,f=t===g(a)&&!y[o]&&y[a.id]||0,b=l||f;return b>0?[{product:a,size:t,key:o,quantity:b}]:[]})),[q,y,B]),h=N.reduce((a,t)=>a+t.quantity,0),fa=N.reduce((a,t)=>a+k(t.product,t.size)*t.quantity,0),ya=Math.round(fa*0),he=fa-ya;(ve[3]||[]).reduce((a,t)=>a+(q.find(o=>o.id===t)?.price||0),0),(ve[5]||[]).reduce((a,t)=>a+(q.find(o=>o.id===t)?.price||0),0);const xe=Qe.find(a=>a.label===Y)?.fee??50,{eligible:j,progress:ae}=ut($,h),R=he+(h?j?0:xe:0),Oe=c.useRef(j);c.useEffect(()=>{if(Oe.current!==j){ta(j?s?"Free shipping is now active.":"تÙ
ØªÙØ¹ÙÙ Ø§ÙØ´ØÙ اÙÙ
جاÙÙ.":s?"Free shipping is no longer active.":"تÙ
Ø¥ÙØºØ§Ø¡ Ø§ÙØ´ØÙ اÙÙ
جاÙÙ.");const a=window.setTimeout(()=>ta(""),2200);return Oe.current=j,()=>window.clearTimeout(a)}Oe.current=j},[j,s]);const C={name:u.name.trim().length<2?s?"Please enter your full name.":"Ø§ÙØªØ¨ اسÙ
٠باÙÙØ§Ù
Ù Ù
Ù ÙØ¶ÙÙ.":"",ph
1one:/^\d{10,15}$/.test(u.phone.replace(/\D/g,""))?"":s?"Enter a valid phone number with 10â15 digits.":"Ø§ÙØªØ¨ رÙÙ Ù ÙØ¨Ø§Ù٠صØÙØ Ù Ù Ù¡Ù Ø¥Ù٠١٥ رÙÙ ÙØ§.",email:u.email.trim()&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u.email.trim())?s?"Enter a valid email address or leave it empty.":"Ø§ÙØªØ¨ Ø¨Ø±ÙØ¯Ùا Ø¥ÙÙØªØ±ÙÙÙÙØ§ صØÙØÙا أ٠اترÙÙ ÙØ§Ø±ØºÙا.":"",address:u.address.trim().length<5?s?"Please enter your address or city.":"Ø§ÙØªØ¨ Ø§ÙØ¹ÙÙØ§Ù أ٠اÙ٠دÙÙØ© Ø¨Ø§ÙØªÙصÙÙ.":""},ue=Object.values(C).every(a=>!a),ja=ue&&!!E&&pe,De=$&&h===$?Wa[$]:"",Re=q.find(a=>a.id===De),Ha=N.reduce((a,t)=>a+Math.max(0,t.product.oldPrice-k(t.product,t.size))*t.quantity,0)+ya,Ys=N.map(({product:a,size:t,quantity:o})=>{const l=s?a.en:a.name,f=k(a,t).toLocaleString("en-US");return`- ${o} x ${l} (${re(t,s)}) - ${f} ${s?"EGP":"ج.Ù "}`}).join(` 2`),Ws=Ca("review_request",{customerName:u.name,customerPhone:u.phone,customerEmail:u.email,customerAddress:u.address,latitude:E?.latitude,longitude:E?.longitude,orderNumber:"WEB",products:Ys,productsSubtotal:he.toLocaleString("en-US"),shippingFee:xe.toLocaleString("en-US"),shippingIncluded:j,total:R.toLocaleString("en-US"),deliveryArea:Y,deliveryDate:ne,deliverySlot:ie,paymentMethod:ee},w),va=Sa(Ge,Ws),Gs=Ca("support",{customerName:u.name,orderNumber:"WEB",products:N.map(({product:a,size:t,quantity:o})=>`${s?a.en:a.name} à ${o} (${re(t,s)})`).join(", "),total:v(R,s),deliveryArea:Y,deliveryDate:ne,deliverySlot:ie,paymentMethod:ee},w),Us=Sa(Ge,Gs),_e=`${window.location.origin}${window.location.pathname}?ref=${ge}`,Js=s?`Discover MY KITCHEN through my personal link: ${_e}. When your first order is confirmed, ask the kitchen about the referral reward.`:`Ø§ÙØªØ´Ù MY KITCHEN Ù Ù Ø®ÙØ§Ù رابط Ø§ÙØ¯Ø¹ÙØ© Ø§ÙØ®Ø§Øµ بÙ: ${_e}. Ø¹ÙØ¯ تأÙÙØ¯ Ø·ÙØ¨Ù Ø§ÙØ£ÙÙØ اسأ٠اÙ٠طبخ Ø¹Ù ØØ§Ùز Ø§ÙØ¥ØØ§ÙØ©.`,ba=N.reduce((a,t)=>a+t.size*t.quantity,0),wa=s?`${ba} gm total`:`إج٠اÙ٠اÙÙØ²Ù ${ba.toLocaleString("ar-EG")} ج٠`,Na=()=>{sa(s?"Price updated":"ØªÙ ØªØØ¯ÙØ« Ø§ÙØ³Ø¹Ø±"),window.setTimeout(()=>sa(""),1600)},Le=()=>{if(!h){T(s?"Choose at least one jar first.":"اختار Ø¨Ø±Ø·Ù Ø§Ù ÙØ§ØØ¯ عÙÙ Ø§ÙØ£ÙÙ Ø§ÙØ£ÙÙ."),oe("default"),window.setTimeout(()=>T(""),2200);return}na(!1),ke(!0)},Vs=a=>{a.preventDefault(),na(!0),ue&&(ke(!1),J("location"),window.location.hash="delivery",window.requestAnimationFrame(()=>document.getElementById("delivery")?.scrollIntoView({behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",block:"start"})))},Qs=()=>{if(X||!ue)return;if(!E){me(s?"Please add your GPS location before sending the order.":"ÙØ±Ø¬Ù ØªØØ¯Ùد Ù ÙÙØ¹ GPS ÙØ¨Ù Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·Ùب.");return}if(!pe)return;ms(!0);const a=`WEB-${Date.now()}-${Math.random().toString(36).slice(2,8).toUpperCase()}`,t=j?0:xe;Hs.mutate({reference:a,customerName:u.name.trim(),customerPhone:u.phone.trim(),address:u.address.trim(),deliveryRegion:Y,deliverySlot:ie,deliveryDate:ne,deliveryFee:t,latitude:E?.latitude,longitude:E?.longitude,itemsJson:JSON.stringify(N.map(({product:o,size:l,quantity:f})=>({sku:o.id,name:s?o.en:o.name,sizeG:l,quantity:f,unitPrice:k(o,l)}))),totalAmount:R,paymentMethod:ee}),Zs();try{window.localStorage.setItem(Ve,JSON.stringify({reference:a,total:R,items:h,createdAt:new Date().toISOString()}))}catch{}U("whatsapp_order_started",{reference:a,total:R,items:h,products:N.map(({product:o})=>o.id).join(","),zone:Y,favorite:De,savings:Ha,language:w}),window.setTimeout(()=>{U("whatsapp_redirect_ready",{reference:a,total:R,items:h,delayMs:xa,language:w}),M({}),_({}),He(null),J("cart");try{window.localStorage.removeItem(Ue),window.localStorage.removeItem(Je)}catch{}window.location.assign(va)},xa)},se=(a,t,o=La(B,a))=>{const l=ce(a,o);He(null),M(f=>({...f,[l]:Math.max(0,t),[a]:0})),ca(l),window.setTimeout(()=>ca(f=>f===l?"":f),220),Na()},te=(a,t)=>{_(o=>({...o,[a]:t})),Na()},Zs=()=>{const a={quantities:y,selectedSizes:B,zone:Y,activeBundle:$,favoriteId:De};Ja(a);try{window.localStorage.setItem(Oa,JSON.stringify(a))}catch{}},Xs=()=>{S&&(M(S.quantities),_(S.selectedSizes||{}),la(S.zone),He(S.activeBundle),S.favoriteId&&S.activeBundle&&Ga(a=>({...a,[S.activeBundle]:S.favoriteId})),J("cart"),T(s?"Your previous order is ready":"Ø·ÙØ¨Ù Ø§ÙØ³Ø§Ø¨Ù Ø¬Ø§ÙØ²"),window.setTimeout(()=>T(""),1800),U("repeat_order_clicked",{items:Object.values(S.quantities).reduce((a,t)=>a+t,0),zone:S.zone}),window.location.hash="delivery")},et=()=>{if(!navigator.geolocation){me(s?"Location is not supported on this device.":"ØªØØ¯Ùد اÙÙ ÙÙØ¹ ØºÙØ± ٠دعÙ٠عÙÙ ÙØ°Ø§ Ø§ÙØ¬Ùاز.");return}me(s?"Requesting locationâ¦":"Ø¬Ø§Ø±Ù Ø·ÙØ¨ اÙÙ ÙÙØ¹â¦"),navigator.geolocation.getCurrentPosition(a=>{hs({latitude:Number(a.coords.latitude.toFixed(7)),longitude:Number(a.coords.longitude.toFixed(7))}),me(s?"Location captured.":"ØªÙ ØªØØ¯Ùد اÙÙ ÙÙØ¹ Ø¨ÙØ¬Ø§Ø.")},()=>me(s?"Location permission was not granted.":"ÙÙ ÙØªÙ Ø§ÙØ³Ù Ø§Ø Ø¨Ø§ÙÙØµÙ٠إÙ٠اÙÙ ÙÙØ¹."),{enableHighAccuracy:!0,maximumAge:6e4,timeout:1e4})},at=()=>{window.confirm(s?"Clear all products from your cart?":"ÙÙ ØªØ±ÙØ¯ Ù Ø³Ø Ø¬Ù ÙØ¹ اÙÙ ÙØªØ¬Ø§Øª Ù Ù Ø§ÙØ³ÙØ©Ø")&&(M({}),_({}),He(null),J("cart"),T(s?"Cart cleared":"ØªÙ Ù Ø³Ø Ø§ÙØ³ÙØ©"),window.setTimeout(()=>T(""),1800))};return e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1988",className:`site-shell ${s?"lang-en":"lang-ar"}`,id:"top",children:[aa&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1990",className:`cart-notice ${za==="success"?"cart-notice-success":""}`,role:"status","aria-live":"polite",children:[e.jsx(ze,{"data-loc":"client/src/pages/Home.tsx:1995",size:17,"aria-hidden":"true"})," ",e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1995",children:aa})]}),Q&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1999",className:"sr-only",role:"status","aria-live":"polite",children:Q}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2003",className:"site-content",dir:s?"ltr":"rtl",style:{direction:s?"ltr":"rtl"},children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2008",className:"label-corner label-corner-tl","aria-hidden":"true",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2011",className:"label-corner label-corner-tr","aria-hidden":"true",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2014",className:"label-corner label-corner-bl","aria-hidden":"true",children:"â§"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2017",className:"label-corner label-corner-br","aria-hidden":"true",children:"â§"}),e.jsxs("header",{"data-loc":"client/src/pages/Home.tsx:2020",className:"topbar",ref:$e,children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2021",className:"topbar-inner",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:2022",className:"brand",href:"/","aria-label":"MY KITCHEN home",children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2023",className:"brand-seal",children:e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2024",loading:"eager",decoding:"async",width:"1591",height:"581",src:Ba,alt:"MY KITCHEN"})})}),e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:2034",className:"nav-links","aria-label":s?"Main navigation":"Ø§ÙØªÙÙÙ Ø§ÙØ±Ø¦ÙسÙ",children:[e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2038",href:"#flavors",children:[n.flavors," ",e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2039",children:s?"FLAVORS":"ÙÙÙØ§Øª"})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2042",href:"#delivery",children:[n.delivery," ",e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2044",children:s?"DELIVERY":"Ø§ÙØªÙصÙÙ"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2047",className:"top-actions",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2048",className:"mobile-menu-toggle",type:"button","aria-expanded":F,"aria-controls":"mobile-navigation",onClick:()=>P(a=>!a),children:F?"Ã":"â°"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2057",className:"language-switcher",children:[e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2058",className:"pill-btn language-btn",type:"button","aria-expanded":be,"aria-haspopup":"listbox",onClick:()=>we(a=>!a),children:[e.jsx(ct,{"data-loc":"client/src/pages/Home.tsx:2065",size:15,"aria-hidden":"true"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2066",children:s?"EN":"عربÙ"}),e.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:2067",size:13,"aria-hidden":"true"})]}),be?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2070",className:"language-menu",role:"listbox","aria-label":s?"Choose language":"Ø§Ø®ØªÙØ§Ø± اÙÙØºØ©",children:[e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2075",type:"button",role:"option","aria-selected":!s,className:s?"":"is-selected",onClick:()=>{ea("ar"),we(!1)},children:["عرب٠",e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2085",children:"Ø§ÙØ¹Ø±Ø¨ÙØ©"})]}),e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2087",type:"button",role:"option","aria-selected":s,className:s?"is-selected":"",onClick:()=>{ea("en"),we(!1)},children:["EN ",e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2097",children:"English"})]})]}):null]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2102",className:"cart-chip",href:"#delivery","aria-label":`${n.cartLabel}: ${h}`,children:[e.jsx(Ke,{"data-loc":"client/src/pages/Home.tsx:2107",className:"cart-chip-icon",size:15,"aria-hidden":"true"}),s?e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2113",className:"cart-chip-label",children:n.cartLabel}):null,e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2115",className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:s?`Cart contains ${h} items.`:`Ø§ÙØ³ÙØ© ØªØØªÙ٠عÙÙ ${h} Ø¹ÙØ§ØµØ±.`}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2125","aria-hidden":"true",children:h})]}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:2127",className:"pill-btn primary",href:"#delivery",children:n.order})]})]}),F?e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2133",type:"button",className:"mobile-menu-backdrop","aria-label":s?"Close menu":"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù Ø©",onClick:()=>P(!1)}):null,e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:2140",id:"mobile-navigation",className:`mobile-menu ${F?"is-open":""}`,"aria-label":s?"Mobile navigation":"ÙØ§Ø¦Ù Ø© اÙÙØ§ØªÙ","aria-hidden":!F,children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2146",className:"mobile-menu-head",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2147",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2148",className:"mobile-menu-kicker",children:"MY KITCHEN"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2149",children:s?"Explore the kitchen":"Ø§ÙØªØ´Ù اÙ٠طبخ"})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2153",type:"button",className:"mobile-menu-close","aria-label":s?"Close menu":"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù Ø©",onClick:()=>P(!1),children:"Ã"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2162",className:"mobile-menu-links",children:[e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2163",href:"#flavors",onClick:()=>P(!1),children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2164",children:n.flavors}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2165",children:s?"Find your next jar":"اختار ÙÙÙØªÙ اÙÙ ÙØ¶ÙØ©"})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2169",href:"#delivery",onClick:()=>P(!1),children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2170",children:n.delivery}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2171",children:s?"Review your order":"راجع Ø·ÙØ¨Ù بسÙÙÙØ©"})]})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2176",className:"mobile-menu-primary",href:"#flavors",onClick:()=>P(!1),children:[s?"Browse all flavors":"ØªØµÙØ Ù٠اÙÙÙÙØ§Øª"," ",e.jsx(Ae,{"data-loc":"client/src/pages/Home.tsx:2182",size:15})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2184",className:"mobile-account-section","aria-label":s?"Account access":"اÙÙØµÙ٠إÙÙ Ø§ÙØØ³Ø§Ø¨",children:z?e.jsxs(e.Fragment,{children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:2190",className:"mobile-account-user-link",href:"/account",onClick:()=>P(!1),children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2195",className:"mobile-account-user",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2196",className:"mobile-account-avatar",children:(L?.name||L?.email||"U").slice(0,1).toUpperCase()}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2201",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2202",children:s?"Welcome back":"Ø£ÙÙØ§Ù بÙ"}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2205",children:L?.name||L?.email||(s?"Your account":"ØØ³Ø§Ø¨Ù")})]})]})}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2213",className:"mobile-account-action",type:"button",onClick:async()=>{await V(),P(!1)},children:s?"Log out":"تسجÙÙ Ø§ÙØ®Ø±Ùج"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2226",className:"mobile-account-user",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2227",className:"mobile-account-avatar",children:e.jsx(Ea,{"data-loc":"client/src/pages/Home.tsx:2228",size:16,"aria-hidden":"true"})}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2230",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2231",children:s?"Account is o
2ptional":"Ø§ÙØØ³Ø§Ø¨ Ø§Ø®ØªÙØ§Ø±Ù"}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2234",children:s?"Browse and order as a guest.":"ØªØµÙØ ÙØ§Ø·Ùب ÙØ²Ø§Ø¦Ø± بدÙ٠تسجÙÙ."})]})]}),e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2241",className:"mobile-account-action primary",type:"button",onClick:()=>{P(!1),Ie(!0)},children:[e.jsx(Aa,{"data-loc":"client/src/pages/Home.tsx:2249",size:15,"aria-hidden":"true"})," ",s?"Account options":"Ø®ÙØ§Ø±Ø§Øª Ø§ÙØØ³Ø§Ø¨"]})]})})]})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2258",className:"promo-strip",href:"#flavors","aria-label":s?"View todayâs offer":"Ù
Ø´Ø§ÙØ¯Ø© عرض اÙÙÙÙ
",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2263",className:"promo-strip-label",children:s?"TODAY IN THE KITCHEN":"Ù
Ù Ù
Ø·Ø¨Ø®ÙØ§ اÙÙÙÙ
"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2266",children:Ss}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2267",className:"promo-strip-cta",children:[s?"View offer":"Ø´ÙÙ Ø§ÙØ¹Ø±Ø¶"," ",e.jsx(Ae,{"data-loc":"client/src/pages/Home.tsx:2269",size:14,"aria-hidden":"true"})]})]}),ds?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2274",className:"quick-order-backdrop",role:"presentation",onClick:()=>ke(!1),children:e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:2279",className:"quick-order-modal",role:"dialog","aria-modal":"true","aria-labelledby":"quick-order-title",dir:s?"ltr":"rtl",onClick:a=>a.stopPropagation(),children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2287",className:"quick-order-modal-head",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2288",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2289",className:"section-kicker",children:"MY KITCHEN"}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:2290",id:"quick-order-title",children:s?"Complete your order":"إتÙ
اÙ
Ø§ÙØ·Ùب"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:2293",children:s?"Add your details first, then choose delivery and payment.":"Ø§ÙØªØ¨ Ø¨ÙØ§ÙØ§ØªÙ Ø¨Ø³Ø±Ø¹Ø©Ø ÙØ¨Ø¹Ø¯Ùا اختار Ø§ÙØªÙصÙÙ ÙØ·Ø±ÙÙØ© Ø§ÙØ¯Ùع."})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2299",type:"button",className:"quick-order-close","aria-label":s?"Close order form":"Ø¥ØºÙØ§Ù ÙÙ
ÙØ°Ø¬ Ø§ÙØ·Ùب",onClick:()=>ke(!1),children:"Ã"})]}),e.jsxs("form",{"data-loc":"client/src/pages/Home.tsx:2310",className:"quick-order-form",onSubmit:Vs,noValidate:!0,children:[e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2315",htmlFor:"quick-order-name",children:[s?"Full name":"Ø§ÙØ§Ø³Ù
باÙÙØ§Ù
Ù",e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:2317",id:"quick-order-name",name:"name",autoComplete:"name",value:u.name,onChange:a=>O(t=>({...t,name:a.target.value})),"aria-invalid":!!(W&&C.name),required:!0}),W&&C.name?e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2334",className:"quick-order-error",role:"alert",children:C.name}):null]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2339",htmlFor:"quick-order-phone",children:[s?"Phone number":"رÙÙ
اÙÙ
ÙØ¨Ø§ÙÙ",e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:2341",id:"quick-order-phone",name:"tel",type:"tel",inputMode:"tel",autoComplete:"tel",dir:"ltr",value:u.phone,onChange:a=>O(t=>({...t,phone:a.target.value})),"aria-invalid":!!(W&&C.phone),required:!0}),W&&C.phone?e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2361",className:"quick-order-error",role:"alert",children:C.phone}):null]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2366",htmlFor:"quick-order-email",children:[s?"Email (optional)":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)",e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:2370",id:"quick-order-email",name:"email",type:"email",inputMode:"email",autoComplete:"email",dir:"ltr",value:u.email,onChange:a=>O(t=>({...t,email:a.target.value})),placeholder:"[email protected]","aria-invalid":!!(W&&C.email)}),W&&C.email?e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2390",className:"quick-order-error",role:"alert",children:C.email}):null]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2395",htmlFor:"quick-order-address",children:[s?"Address / city":"Ø§ÙØ¹ÙÙØ§Ù أ٠اÙÙ
دÙÙØ©",e.jsx("textarea",{"data-loc":"client/src/pages/Home.tsx:2397",id:"quick-order-address",name:"address",autoComplete:"street-address",value:u.address,onChange:a=>O(t=>({...t,address:a.target.value}
2)),"aria-invalid":!!(W&&C.address),required:!0,rows:3}),W&&C.address?e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2415",className:"quick-order-error",role:"alert",children:C.address}):null]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2420",type:"submit",className:"order-submit quick-order-continue",children:s?"Continue to delivery":"ÙÙ
ÙÙ Ø¨ÙØ§Ùات Ø§ÙØªÙصÙÙ"})]})]})}):null,ps?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2431",className:"whatsapp-return-backdrop",role:"presentation",onClick:()=>de(!1),children:e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:2436",className:"whatsapp-return-modal",role:"dialog","aria-modal":"true","aria-labelledby":"whatsapp-return-title",dir:s?"ltr":"rtl",onClick:a=>a.stopPropagation(),children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2444",className:"whatsapp-return-icon","aria-hidden":"true",children:e.jsx(ze,{"data-loc":"client/src/pages/Home.tsx:2445",size:24})}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2447",className:"section-kicker",children:"MY KITCHEN"}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:2448",id:"whatsapp-return-title",children:s?"Welcome back":"Ø£ÙÙÙØ§ Ø¨Ø¹ÙØ¯ØªÙ"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:2451",children:s?"Your order was sent to WhatsApp and your cart was cleared successfully. Keep your reference number until the kitchen confirms with you.":"تÙ
Ø¥Ø±Ø³Ø§Ù Ø·ÙØ¨Ù Ø¥ÙÙ ÙØ§ØªØ³Ø§Ø¨ ÙØªÙØ±ÙØº Ø§ÙØ³ÙØ© Ø¨ÙØ¬Ø§Ø. Ø§ØØªÙظ برÙÙ
اÙÙ
رجع ÙØØ¯ Ù
ا اÙÙ
طبخ ÙØ¤Ùد Ù
عاÙ."}),e.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:2456",className:"whatsapp-return-success",role:"status","aria-live":"polite",children:[e.jsx(ze,{"data-loc":"client/src/pages/Home.tsx:2461",size:16,"aria-hidden":"true"}),s?"Sent successfully · Cart cleared":"تÙ
Ø§ÙØ¥Ø±Ø³Ø§Ù Ø¨ÙØ¬Ø§Ø · تÙ
ØªÙØ±Ùغ Ø§ÙØ³ÙØ©"]}),Ce&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2467",className:"whatsapp-return-summary",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2468",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2469",children:s?"Reference":"رÙÙ
اÙÙ
رجع"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2470",dir:"ltr",children:Ce.reference})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2472",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2473",children:s?"Items":"عدد اÙÙ
ÙØªØ¬Ø§Øª"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2474",children:Ce.items})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2476",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2477",children:s?"Order total":"إجÙ
اÙÙ Ø§ÙØ·Ùب"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2478",children:v(Ce.total,s)})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2484",className:"whatsapp-return-actions",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2485",type:"button",className:"pill-btn primary",onClick:()=>{de(!1),document.getElementById("flavors")?.scrollIntoView({behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"})},children:s?"Continue shopping":"ÙÙ
ÙÙ Ø§ÙØªØ³ÙÙ"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2501",type:"button",className:"pill-btn",onClick:()=>{de(!1),document.getElementById("delivery")?.scrollIntoView({behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"})},children:s?"Review order":"راجع Ø§ÙØ·Ùب"})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2518",type:"button",className:"whatsapp-return-close",onClick:()=>de(!1),children:s?"Close":"Ø¥ØºÙØ§Ù"})]})}):null,Va?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2529",className:"account-choice-backdrop",role:"presentation",onClick:()=>Ie(!1),children:e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:2534",className:"account-choice-modal",role:"dialog","aria-modal":"true","aria-labelledby":"account-choice-title",onClick:a=>a.stopPropagation(),children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2541",type:"button",className:"account-choice-close","aria-label":s?"Close account options":"Ø¥ØºÙØ§Ù Ø®ÙØ§Ø±Ø§Øª Ø§ÙØØ³Ø§Ø¨",onClick:()=>Ie(!1),children:"Ã"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2551",className:"account-choice-kicker",children:"MY KITCHEN"}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:2552",id:"account-choice-title",children:s?"Choose how to continue":"اختر طرÙÙØ© اÙÙ
تابعة"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:2555",children:s?"Shopping and ordering remain available as a guest. Sign in only if you want to save details or manage the store.":"Ø§ÙØªØµÙØ ÙØ§ÙØ·ÙØ¨ Ù
ØªØ§ØØ§Ù ÙØ²Ø§Ø¦Ø±. سجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙØ· إذا أردت ØÙظ Ø¨ÙØ§Ùات٠أ٠إدارة اÙÙ
تجر."}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2560",className:"account-choice-
2actions",children:[e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2561",type:"button",className:"account-choice-primary",onClick:()=>tt(),children:[e.jsx(Aa,{"data-loc":"client/src/pages/Home.tsx:2566",size:16,"aria-hidden":"true"}),s?"Customer sign in / create account":"دخÙÙ Ø§ÙØ¹Ù
ÙÙ / Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨"]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2571",className:"account-choice-secondary",href:"/admin/catalogue",children:[e.jsx(Ea,{"data-loc":"client/src/pages/Home.tsx:2572",size:16,"aria-hidden":"true"}),s?"Manager login":"دخÙ٠اÙÙ
Ø¯ÙØ±"]})]})]})}):null,I?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2580",className:"product-lightbox",role:"dialog","aria-modal":"true","aria-label":s?`Enlarged image: ${I.en}`:`ØµÙØ±Ø© Ù
ÙØ¨Ø±Ø©: ${I.name}`,onClick:()=>le(null),children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2591",className:"product-lightbox-inner",onClick:a=>a.stopPropagation(),children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2595",className:"product-lightbox-close",type:"button","aria-label":s?"Close enlarged image":"Ø¥ØºÙØ§Ù Ø§ÙØµÙرة اÙÙ
ÙØ¨Ø±Ø©",onClick:()=>le(null),children:e.jsx(Ta,{"data-loc":"client/src/pages/Home.tsx:2603",size:20})}),e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2605",src:I.image,alt:s?I.en:I.name}),e.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:2609",children:[s?I.en:I.name," ·"," ",s?"Net 340 gm":"صاÙ٠٣٤٠جÙ
"]})]})}):null,e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:2616",className:`back-to-top${je?" is-visible":""}`,type:"button",disabled:!je,tabIndex:je?0:-1,"aria-hidden":!je,"aria-label":s?"Back to top":"Ø§ÙØ¹Ùدة Ø¥Ù٠أعÙÙ Ø§ÙØµÙØØ©",onClick:()=>window.scrollTo({top:0,behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),children:[e.jsx(ot,{"data-loc":"client/src/pages/Home.tsx:2633",size:18,"aria-hidden":"true"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2634",className:"back-to-top-label",children:s?"Back to top":"Ø§ÙØ¹Ùدة ÙÙØ£Ø¹ÙÙ"})]}),e.jsxs("main",{"data-loc":"client/src/pages/Home.tsx:2638",children:[e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:2639",className:"hero",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2640",className:"hero-copy",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2641",className:"eyebrow",children:Cs}),e.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:2642",children:Ns}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2643",className:"hero-slogan",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2644",children:"Handmade goodness with love"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2645",children:s?"طعÙ
Ø¨ÙØªÙ أصÙÙØ Ù
صÙÙØ¹ Ø¨ØØ¨":"Handmade goodness with love"})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:2651",className:"hero-lede",children:ks}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2652",className:"hero-ctas",children:e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:2653",className:"pill-btn primary",href:"#flavors",children:[s?"Browse products":"ØªØµÙØ اÙÙ
ÙØªØ¬Ø§Øª"," ",e.jsx(Ae,{"data-loc":"client/src/pages/Home.tsx:2655",size:15})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2658",className:"hero-meta",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2659",children:[e.jsx(lt,{"data-loc":"client/src/pages/Home.tsx:2660",size:14})," ",n.leadTime]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2662",children:[e.jsx(nt,{"data-loc":"client/src/pages/Home.tsx:2663",size:14})," ",n.cairo]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2667",className:"hero-art",children:[e.jsxs("picture",{"data-loc":"client/src/pages/Home.tsx:2668",children:[e.jsx("source",{"data-loc":"client/src/pages/Home.tsx:2669",media:"(max-width: 680px)",srcSet:Ze}),e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2673",loading:"eager",fetchPriority:"high",decoding:"async",width:"1264",height:"843",src:Es,onError:a=>{a.currentTarget.src=Ze},alt:"برطÙ
ا٠MY KITCHEN ÙÙ Ù
عاÙÙØ© Ø§ÙØµÙØØ© Ø§ÙØ±Ø¦ÙØ³ÙØ©"})]}),e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2686",className:"stamp",loading:"eager",decoding:"async",width:"96",height:"96",src:"/manus-storage/my-kitchen-stamp_b59c4219.png",alt:""})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2698",className:"section-divider","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2699"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:2700",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2701"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2703",className:"section-divider section-divider-light","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2707"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:2708",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2709"})]}),e.jsx("section",{"data-loc":"client/src/pages/Home.tsx:2711",className:"section catalog",id:"flavors",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2712",className:"section-inner",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2713",className:"catalog-offer-banner",role:"note",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2714",children:s?"Size choice, clearly priced":"اختار Ø§ÙØØ¬Ù
ÙØ§Ùسعر Ø¨ÙØ¶ÙØ"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2719",children:s?"Choose 240 gm or 340 gm. For the current offer, buy 3 jars; the 4th jar may receive 30% off after WhatsApp confirmation.":"اختار ٢٤٠جÙ
أ٠٣٤٠جÙ
. Ø§ÙØ¹Ø±Ø¶ Ø§ÙØØ§ÙÙ: اشتر٠٣ برطÙ
Ø§ÙØ§ØªØ ÙÙØ¯ ÙØ´Ù
Ù Ø§ÙØ±Ø§Ø¨Ø¹ خصÙ
Ù£Ù Ùª بعد Ù
راجعة Ø§ÙØ·Ùب ÙØªØ£ÙÙØ¯Ù عÙÙ ÙØ§ØªØ³Ø§Ø¨."})]}),ua.length===0?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2726",className:"empty-filter-state",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:2727",children:s?"No jars match that search yet.":"Ù
Ø´ ÙØ§ÙÙÙ٠برطÙ
Ø§Ù ÙØ·Ø§Ø¨Ù Ø§Ø®ØªÙØ§Ø±Ù دÙÙÙØªÙ."}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2732",type:"button",onClick:Ks,children:s?"Show all flavors":"اعرض Ù٠اÙÙÙÙØ§Øª"})]}):null,e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2737",className:"product-grid",children:ua.map((a,t)=>e.jsxs(c.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2740",className:`catalog-group-divider catalog-group-${Xe(a)} ${Ra(a)?"catalog-group-diet":""}`,role:"heading","aria-level":3,children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2745",children:kt(Xe(a),s)})}),e.jsxs("article",{"data-loc":"client/src/pages/Home.tsx:2749",className:`product-card product-card-${t+1} ${Ra(a)?"product-card-diet":""} ${Me===a.id?"product-card-added":""}`,children:[a.ingredientsAr.some(o=>o.includes("ستÙÙÙØ§"))||a.ingredientsEn.some(o=>o.toLocaleLowerCase().includes("stevia"))?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2759",className:"product-badges","aria-label":s?"Diet and no added sugar":"Ø¯Ø§ÙØª ÙØ¨Ø¯ÙÙ Ø³ÙØ± Ù
ضاÙ",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2767",className:"product-badge product-badge-diet",children:s?"Diet":"Ø¯Ø§ÙØª"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2770",className:"product-badge product-badge-sugar",children:s?"No added sugar":"بدÙÙ Ø³ÙØ± Ù
ضاÙ"})]}):null,e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2775",className:`product-image ${a.id==="strawberry-spread"||a.id==="apple-spread"?"product-image-with-badge":""}`,role:"button",tabIndex:0,"aria-label":s?`Enlarge ${a.en}`:`ØªÙØ¨Ùر ØµÙØ±Ø© ${a.name}`,onClick:()=>le(a),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),le(a))},children:[e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2792",loading:"lazy",decoding:"async",width:"1400",height:"1400",src:a.image,alt:a.name}),a.id==="strawberry-spread"||a.id==="apple-spread"?e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:2802",className:"product-image-badge",loading:"lazy",decoding:"async",width:"120",height:"123",src:a.id==="apple-spread"?"/manus-storage/IMG_4157_d4168998.jpeg":"/manus-storage/strawberry-spread-stevia-chia-badge_c8322138.jpg",alt:s?"Stevia sugar and chia seeds":"ستÙÙÙØ§ ÙÙÙØ© ÙØ¨Ø°Ùر Ø´ÙØ§"}):null]}),t===0||t===4?e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2822",className:"jar-seal",children:s?"Special":"ÙØµÙØ© خاصة"}):null,e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2826",className:"product-tag",children:[re(g(a),s)," ·"," ",s?a.en:a.name]}),e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:2830",children:s?a.en:a.name}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:2831",children:s?a.descriptionEn:a.description}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2836",className:"price-row","aria-label":s?`Price ${v(k(a,g(a)),!0)}.`:`Ø§ÙØ³Ø¹Ø± ${v(k(a,g(a)),!1)}.`,children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2844",className:"price-current",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2845",className:"price-label",children:s?`Price · ${g(a)} gm`:`Ø§ÙØ³Ø¹Ø± · ${g(a)} جÙ
`}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2850",className:"price",children:v(k(a,g(a)),s)})]}),a.oldPrice>a.price?e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2862",className:"price-compare",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2863",className:"old-price-label",children:s?"Was":"ÙØ¨Ù"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2866",className:"old-price",children:v(a.oldPrice,s)})]}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2870",className:"price-saving-badge",children:s?`Save ${a.oldPrice-a.price} EGP`:`ÙÙÙØ± ${a.oldPrice-a.price} جÙÙÙ`})]}):null]}),a.oldPrice>a.price?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2879",className:"product-original-price",children:s?`Original price: ${v(a.oldPrice,!0)}`:`Ø§ÙØ³Ø¹Ø± Ø§ÙØ£ØµÙÙ: ${v(a.oldPrice,!1)}`}):null,(a.availableSizes??[340,240]).length>1?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2886",className:"product-size-picker",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2887",className:"quantity-label",children:s?"Size":"Ø§ÙØØ¬Ù
"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2890",className:"product-size-options",role:"radiogroup","aria-label":s?`Choose size for ${a.en}`:`Ø§Ø®ØªÙØ§Ø± ØØ¬Ù
${a.name}`,children:[(a.availableSizes??[340,240]).includes(340)?e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2902",className:g(a)===340?"is-selected":"",onClick:()=>te(a.id,340),onTouchStart:()=>te(a.id,340),children:[e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:2911",type:"radio",name:`size-${a.id}`,value:"340",checked:g(a)===340,onChange:()=>te(a.id,340)}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2918",children:[s?"Large":"ÙØ¨Ùر",e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2920",children:We(340,k(a,340),s)})]})]}):null,(a.availableSizes??[340,240]).includes(240)?e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:2933",className:g(a)===240?"is-selected":"",onClick:()=>te(a.id,240),onTouchStart:()=>te(a.id,240),children:[e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:2942",type:"radio",name:`size-${a.id}`,value:"240",checked:g(a)===240,onChange:()=>te(a.id,240)}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:2949",children:[s?"Medium":"ÙØ³Ø·",e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:2951",children:We(240,k(a,240),s)})]})]}):null]})]}):e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:2964",className:"product-single-size","aria-label":s?`Single size: ${g(a)} gm`:`ØØ¬Ù
ÙØ§ØØ¯: ${g(a)} جÙ
`,children:s?`Single size · ${g(a)} gm`:`ØØ¬Ù
ÙØ§ØØ¯ · ${g(a)} جÙ
`}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2977",className:"quantity",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:2978",className:"quantity-label",children:n.quantity}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:2979",className:"quantity-controls",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:2980","aria-label":s?`Decrease ${a.en}`:`تÙÙÙÙ ${a.name}`,onClick:()=>se(a.id,(y[ce(a.id,g(a))]||y[a.id]||0)-1,g(a)),children:e.jsx(Pa,{"data-loc":"client/src/pages/Home.tsx:3001",size:13})}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3003",className:qa===a.id?"is-quantity-changing":"","aria-live":"polite",children:y[ce(a.id,g(a))]||y[a.id]||0}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3017","aria-label":s?`Increase ${a.en}`:`Ø²ÙØ§Ø¯Ø© ${a.name}`,onClick:()=>se(a.id,(y[ce(a.id,g(a))]||y[a.id]||0)+1,g(a)),children:e.jsx(Ma,{"data-loc":"client/src/pages/Home.tsx:3038",size:13})})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3041",className:`add-to-cart quick-add-to-cart ${Me===a.id?"is-added":""}`,type:"button","aria-label":`${n.addToCart}: ${s?a.en:a.name}`,onClick:()=>{se(a.id,Math.max(1,y[ce(a.id,g(a))]||y[a.id]||0),g(a)),oe("success"),T(`${s?a.en:a.name} · ${n.addedToCart}`),ra(a.id),window.setTimeout(()=>{T(""),oe("default"),ra("")},2200),U("add_to_cart",{product:a.id,sizeG:g(a),unit_price:k(a,g(a)),unit_saving:Math.max(0,a.oldPrice-k(a,g(a)))})},children:Me===a.id?s?"Added â":"تÙ
ت Ø§ÙØ¥Ø¶Ø§ÙØ© â":n.addToCart})]})]},a.id)]},a.id))})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3103",className:"section-divider section-divider-light","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3107"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:3108",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3109"})]}),e.jsx("section",{"data-loc":"client/src/pages/Home.tsx:3111",className:"section order-section",id:"delivery",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3112",className:"section-inner order-layout",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3113",className:"order-copy",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3114",className:"section-kicker",children:[n.delivery," /"," ",s?"ORDER & DELIVERY":"Ø§ÙØ·Ùب ÙØ§ÙØªÙØµÙÙ"]}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:3118",children:n.ready}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3119",children:n.orderBody}),e.jsxs("ol",{"data-loc":"client/src/pages/Home.tsx:3120",className:"order-steps",children:[e.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:3121",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3122",className:"step-no",children:"1"})," ",n.step1]}),e.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:3124",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3125",className:"step-no",children:"2"})," ",n.step2]}),e.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:3127",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3128",className:"step-no",children:"3"})," ",n.step3]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3132",className:"order-card",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3133",className:"sr-only",role:"status","aria-live":"polite",children:Ka}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3136",className:"checkout-progress",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3137",className:Z==="cart"?"active":"",children:["1 · ",m.cart]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3140",className:Z==="location"?"active":"",children:["2 · ",m.location]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3143",className:Z==="review"?"active":"",children:["3 · ",m.review]})]}),Z==="cart"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3149",className:"order-card-head",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:3150",children:m.cart}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3151",className:"total-count",children:[h," ",n.jars,e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3153",children:wa})]})]}),S&&e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3157",className:"repeat-order",type:"button",onClick:Xs,children:s?"Repeat my last order":"إعادة Ø·ÙØ¨Ù Ø§ÙØ³Ø§Ø¨Ù"}),e.jsx("div",{"d
2ata-loc":"client/src/pages/Home.tsx:3167",className:"order-lines",children:N.length?N.map(({product:a,size:t,key:o,quantity:l})=>e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3172",className:"order-line",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3173",children:[s?a.en:a.name," à ",l," ",e.jsxs("small",{"data-loc":"client/src/pages/Home.tsx:3175",className:"order-line-weight",children:[re(t,s)," ",s?"each":"ÙÙÙØØ¯Ø©"]})]}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3180",children:v(k(a,t)*l,s)}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3186",className:"remove-order-line",type:"button",onClick:()=>{se(a.id,0,t),oe("success"),T(`${s?a.en:a.name} · ${s?"Removed from cart":"تÙ
ØØ°Ù اÙÙ
ÙØªØ¬ Ù
Ù Ø§ÙØ³ÙØ©"}`),window.setTimeout(()=>{T(""),oe("default")},2600)},"aria-label":s?`Remove ${a.en} from cart`:`ØØ°Ù ${a.name} Ù
Ù Ø§ÙØ³ÙØ©`,children:"Ã"})]},o)):e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3213",className:"order-empty",role:"status",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3214",className:"empty-cart-illustration","aria-hidden":"true",children:[e.jsx(Ke,{"data-loc":"client/src/pages/Home.tsx:3218",size:34,strokeWidth:1.6}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3219",children:"â¦"})]}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3221",children:s?"Your cart is waiting for something delicious":"Ø³ÙØªÙ ÙÙ Ø§ÙØªØ¸Ø§Ø± Ø£ÙÙ Ø§Ø®ØªÙØ§Ø± ÙØ°Ùذ"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3226",children:m.addMore}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:3227",className:"empty-cart-browse",href:"/",children:[s?"Back to store":"Ø§ÙØ¹Ùدة Ø¥Ù٠اÙÙ
تجر"," ",e.jsx(Ae,{"data-loc":"client/src/pages/Home.tsx:3229",size:15,"aria-hidden":"true"})]})]})}),N.length>0&&e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3235",className:"clear-cart",type:"button",onClick:at,children:s?"Clear cart":"Ù
Ø³Ø Ø§ÙØ³ÙØ©"}),Re&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3244",className:"bundle-favorite-summary",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3245",children:s?"Preferred flavor":"اÙÙÙÙØ© اÙÙ
ÙØ¶ÙØ©"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3248",children:s?Re.en:Re.name})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3255",className:`order-summary ${Q?"is-total-changing":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3258",children:m.subtotal}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3259",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:3260",value:he,isEnglish:s})})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3266",className:`free-shipping-progress ${j?"is-unlocked":""}`,role:"status","aria-live":"polite",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3271",className:"free-shipping-progress-head",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3272",children:s?"Free shipping with a bundle":"Ø§ÙØ´ØÙ اÙÙ
جاÙÙ Ù
ع Ø§ÙØ¨Ø§ÙØ©"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3277",children:j?s?"Unlocked":"Ù
ÙØ¹ÙÙ":s?"Choose a 3- or 5-jar bundle":"اختر Ø¨Ø§ÙØ© Ù£ Ø£Ù Ù¥ برطÙ
Ø§ÙØ§Øª"})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3287",className:"free-shipping-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ae,children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3294",style:{width:`${ae}%`}})}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3296",children:j?s?"Delivery fee removed from your order.":"تÙ
Ø¥ÙØºØ§Ø¡ رسÙÙ
Ø§ÙØªÙصÙÙ Ù
Ù Ø·ÙØ¨Ù.":s?"Pick either bundle to unlock free delivery.":"اختر Ø£ÙÙØ§ Ù
Ù Ø§ÙØ¨Ø§ÙتÙÙ ÙØªÙعÙÙ Ø§ÙØ´ØÙ اÙÙ
جاÙÙ."})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3306",className:"delivery-pending-note",children:j?s?"Free delivery is active for this bundle.":"Ø§ÙØ´ØÙ اÙÙ
جاÙÙ Ù
ÙØ¹ÙÙ ÙÙØ°Ù Ø§ÙØ¨Ø§ÙØ©.":m.deliveryPending}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3314",className:"order-submit",type:"button",disabled:!h,onClick:()=>{U("cart_confirmed",{items:h,savings:Ha,bundle:$||0}),Le()},children:m.confirm})]}),Z==="location"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3333",className:"order-card-head",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:3334",children:As}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3335",className:"text-link",type:"button",onClick:()=>J("cart"),children:m.back})]}),e.jsx("label",{"data-loc":"client/src/pages/Home.tsx:3343",className:"delivery-label",htmlFor:"delivery-zone",children:n.chooseZone}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3346",className:"delivery-content-note",children:Ts}),e.jsx("select",{"data-loc":"client/src/pages/Home.tsx:3347",id:"delivery-zone",className:"delivery-select",value:Y,onChange:a=>la(a.target.value),children:Qe.map(a=>e.jsx("option",{"data-loc":"client/src/pages/Home.tsx:3354",value:a.label,children:`${a.label} â ${j?s?"Free":"Ù
جاÙÙ":v(a.fee,s)}`},a.label))}),e.jsx("label",{"data-loc":"client/src/pages/Home.tsx:3360",className:"delivery-label",htmlFor:"delivery-date",children:s?"Delivery date":"ØªØ§Ø±ÙØ® Ø§ÙØªÙصÙÙ"}),e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3363",id:"delivery-date",className:"delivery-select",type:"date",min:new Date().toISOString().slice(0,10),value:ne,onChange:a=>ls(a.target.value),required:!0}),e.jsx("label",{"data-loc":"client/src/pages/Home.tsx:3372",className:"delivery-label",htmlFor:"delivery-slot",children:m.deliverySlot}),e.jsx("select",{"data-loc":"client/src/pages/Home.tsx:3375",id:"delivery-slot",className:"delivery-select",value:ie,onChange:a=>ns(a.target.value),children:_a.map(a=>e.jsx("option",{"data-loc":"client/src/pages/Home.tsx:3382",value:a.value,children:s?a.en:a.value},a.value))}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3387",className:`free-shipping-progress ${j?"is-unlocked":""}`,role:"status","aria-live":"polite",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3392",className:"free-shipping-progress-head",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3393",children:s?"Free shipping with a bundle":"Ø§ÙØ´ØÙ اÙÙ
جاÙÙ Ù
ع Ø§ÙØ¨Ø§ÙØ©"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3398",children:j?s?"Unlocked":"Ù
ÙØ¹ÙÙ":s?"Choose a 3- or 5-jar bundle":"اختر Ø¨Ø§ÙØ© Ù£ Ø£Ù Ù¥ برطÙ
Ø§ÙØ§Øª"})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3408",className:"free-shipping-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ae,children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3415",style:{width:`${ae}%`}})}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3417",children:j?s?"Delivery fee removed from your order.":"تÙ
Ø¥ÙØºØ§Ø¡ رسÙÙ
Ø§ÙØªÙصÙÙ Ù
Ù Ø·ÙØ¨Ù.":s?"Pick either bundle to unlock free delivery.":"اختر Ø£ÙÙØ§ Ù
Ù Ø§ÙØ¨Ø§ÙتÙÙ ÙØªÙعÙÙ Ø§ÙØ´ØÙ اÙÙ
جاÙÙ."})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3427",className:"order-summary",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3428",children:[m.subtotal,e.jsx("br",{"data-loc":"client/src/pages/Home.tsx:3430"}),e.jsxs("small",{"data-loc":"client/src/pages/Home.tsx:3431",children:[wa," · ",v(he,s)]})]}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3435",children:j?s?"Free":"Ù
جاÙÙ":`+ ${v(xe,s)}`})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3444",className:"order-submit",type:"button",onClick:()=>J("review"),children:m.review})]}),Z==="review"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3455",className:"order-card-head",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:3456",children:m.review}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3457",className:"text-link",type:"button",onClick:()=>J("location"),children:s?"Change delivery date / time":"تغÙÙØ± ØªØ§Ø±ÙØ® ÙÙØªØ±Ø© Ø§ÙØªÙصÙÙ"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3467",className:"customer-form","aria-labelledby":"
2customer-details-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3471",className:"customer-form-head",children:[e.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:3472",id:"customer-details-title",children:m.customer}),e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:3473",type:"button",className:"contact-autofill",onClick:ys,children:["â"," ",s?"Use a contact":"Ø§Ø®ØªÙØ§Ø± Ù
Ù Ø¬ÙØ§Øª Ø§ÙØ§ØªØµØ§Ù"]})]}),ia&&e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3485",className:"form-hint",role:"status",children:ia}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3489",children:[m.name,e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3491",required:!0,autoComplete:"name",value:u.name,onChange:a=>O(t=>({...t,name:a.target.value})),placeholder:m.name})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3504",className:"contact-choice",role:"group","aria-label":s?"Preferred contact method":"ÙØ³ÙÙØ© Ø§ÙØªÙاص٠اÙÙ
ÙØ¶ÙØ©",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3513",children:s?"Contact preference":"ÙØ³ÙÙØ© Ø§ÙØªÙاصÙ"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3516",className:"contact-choice-tabs",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3517",type:"button",className:"contact-choice-tab is-selected","aria-pressed":"true",children:s?"Phone number":"رÙÙ
اÙÙØ§ØªÙ"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3524",type:"button",className:"contact-choice-tab","aria-pressed":"false",onClick:()=>document.getElementById("customer-email")?.focus(),children:s?"Email":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ"})]})]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3536",children:[m.phone,e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3538",required:!0,autoComplete:"tel",type:"tel",inputMode:"tel",value:u.phone,onChange:a=>O(t=>({...t,phone:a.target.value})),placeholder:m.phone})]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3553",htmlFor:"customer-email",children:[s?"Email (optional)":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)",e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3557",id:"customer-email",autoComplete:"email",type:"email",inputMode:"email",value:u.email,onChange:a=>O(t=>({...t,email:a.target.value})),placeholder:"[email protected]",dir:"ltr"})]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3573",children:[m.address,e.jsx("textarea",{"data-loc":"client/src/pages/Home.tsx:3575",required:!0,autoComplete:"street-address",rows:3,value:u.address,onChange:a=>O(t=>({...t,address:a.target.value})),placeholder:m.address})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3589",className:"gps-capture",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3590",type:"button",className:"text-link",onClick:et,children:E?s?"Refresh GPS location":"ØªØØ¯ÙØ« اÙÙ
ÙÙØ¹ Ø§ÙØ¬ØºØ±Ø§ÙÙ":s?"Add GPS location":"Ø¥Ø¶Ø§ÙØ© اÙÙ
ÙÙØ¹ Ø§ÙØ¬ØºØ±Ø§ÙÙ"}),da&&e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3604",role:"status",children:da}),E&&e.jsxs("small",{"data-loc":"client/src/pages/Home.tsx:3607",dir:"ltr",children:[E.latitude.toFixed(5),","," ",E.longitude.toFixed(5)]})]}),e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3613",className:"return-policy-consent",children:[e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3614",type:"checkbox",checked:pe,onChange:a=>xs(a.target.checked)}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3621",children:s?"I agree to the return policy: I cover shipping costs only, and any approved refund is returned through the same payment method.":"Ø£ÙØ§Ù٠عÙÙ Ø³ÙØ§Ø³Ø© Ø§ÙØ¥Ø±Ø¬Ø§Ø¹: أتØÙ
Ù Ù
صارÙÙ Ø§ÙØ´ØÙ ÙÙØ·Ø ÙØ£Ù Ù
Ø¨ÙØº تتÙ
اÙÙ
ÙØ§ÙÙØ© عÙ٠رد٠ÙÙØ¹Ø§Ø¯ بÙÙØ³ طرÙÙØ© Ø§ÙØ¯Ùع."})]}),e.jsxs("fieldset",{"data-loc":"client/src/pages/Home.tsx:3627",className:"payment-method-field",children:[e.jsx("legend",{"data-loc":"client/src/pages/Home.tsx:3628",children:m.paymentMethod}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3629",className:"payment-method-grid",children:qs.map(({value:a,label:t,icon:o})=>e.jsxs("label",{"data-loc":"client/src/pages/Home.tsx:3632",className:`payment-method-option ${ee===a?"is-selected":""}`,children:[e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3636",type:"radio",name:"payment-method",value:a,checked:ee===a,onChange:()=>{us(a),Se("")}}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3646",className:"payment-method-icon","aria-hidden":"true",children:e.jsx(o,{"data-loc":"client/src/pages/Home.tsx:3650",size:18})}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3652",children:t})]},a))})]}),ee==="instapay"&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3659",className:"instapay-panel","aria-live":"polite",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3660",children:s?"Fast and secure payment via InstaPay":"Ø§ÙØ¯Ùع Ø§ÙØ³Ø±Ùع ÙØ§ÙØ¢Ù
٠عبر InstaPay"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3665",children:s?"Open the official payment link, complete the transfer, then send your order on WhatsApp. Payment is reviewed manually before confirmation.":"Ø§ÙØªØ رابط Ø§ÙØ¯Ùع Ø§ÙØ±Ø³Ù
ÙØ أتÙ
Ù
Ø§ÙØªØÙÙÙØ Ø«Ù
Ø£Ø±Ø³Ù Ø·ÙØ¨Ù عبر ÙØ§ØªØ³Ø§Ø¨. تتÙ
Ù
راجعة Ø§ÙØ¯Ùع ÙØ¯ÙÙÙØ§ ÙØ¨Ù Ø§ÙØªØ£ÙÙØ¯."}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3670",className:"instapay-actions",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:3671",href:$a,target:"_blank",rel:"noreferrer",className:"instapay-primary",children:s?"Open InstaPay":"ÙØªØ InstaPay"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3679",type:"button",onClick:()=>void fs(),className:"instapay-secondary",children:s?"Copy payment link":"ÙØ³Ø® رابط Ø§ÙØ¯Ùع"})]}),ma&&e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3690",role:"status",children:ma})]}),(!ue||!E||!pe)&&e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3695",className:"form-hint",children:ue?E?pe?"":s?"Accept the return policy to continue."
2:"ÙØ§Ù٠عÙÙ Ø³ÙØ§Ø³Ø© Ø§ÙØ¥Ø±Ø¬Ø§Ø¹ ÙÙÙ
تابعة.":s?"Add GPS location to continue.":"أض٠Ù
ÙÙØ¹ GPS ÙÙÙ
تابعة.":m.required})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3710",className:"order-lines",children:[N.map(({product:a,size:t,key:o,quantity:l})=>e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3713",className:"order-line",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3714",children:[s?a.en:a.name," à ",l," ",e.jsxs("small",{"data-loc":"client/src/pages/Home.tsx:3716",className:"order-line-weight",children:[re(t,s)," ",s?"each":"ÙÙÙØØ¯Ø©"]})]}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3721",children:v(k(a,t)*l,s)})]},o))," "]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3731",className:"free-shipping-progress compact-progress",role:"status","aria-live":"polite",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3736",className:"free-shipping-progress-head",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3737",children:s?"Bundle free shipping":"Ø´ØÙ Ø§ÙØ¨Ø§ÙØ© اÙÙ
جاÙÙ"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3742",children:j?s?"Unlocked":"Ù
ÙØ¹ÙÙ":s?"Not active":"ØºÙØ± Ù
ÙØ¹ÙÙ"})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3752",className:"free-shipping-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ae,children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3759",style:{width:`${ae}%`}})})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3762",className:"final-breakdown",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3763",className:Q?"is-total-changing":"",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3766",children:m.subtotal}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3767",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:3768",value:he,isEnglish:s})})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3774",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:3775",children:[m.transportation," · ",Y," · ",ne," ·"," ",ie]}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3779",children:j?s?"Free":"Ù
جاÙÙ":v(xe,s)})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3787",className:`grand-total ${Q?"is-total-changing":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3790",children:m.grandTotal}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3791",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:3792",value:R,isEnglish:s})})]})]}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:3796",className:"checkout-help",href:Us,target:"_blank",rel:"noreferrer",children:m.needHelp}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3804",type:"button",className:"checkout-copy-order",onClick:()=>{navigator.clipboard?.writeText(va),T(s?"Order message copied.":"تÙ
ÙØ³Ø® Ø±Ø³Ø§ÙØ© Ø§ÙØ·Ùب.")},children:s?"Copy order message":"ÙØ³Ø® Ø±Ø³Ø§ÙØ© Ø§ÙØ·Ùب"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3818",className:`order-submit ${!ja||X?"is-disabled":""}`,type:"button",disabled:!ja||X,"aria-busy":X,onClick:Qs,children:X?e.jsxs(e.Fragment,{children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3827",className:"whatsapp-submit-spinner","aria-hidden":"true"}),s?"Preparing WhatsAppâ¦":"جار٠تجÙÙØ² ÙØ§ØªØ³Ø§Ø¨â¦"]}):m.send}),X&&e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3840",className:"whatsapp-submit-status",role:"status","aria-live":"polite",children:s?"Your order is ready. WhatsApp will open in a moment.":"Ø·ÙØ¨Ù Ø¬Ø§ÙØ². Ø³ÙØªÙ
ÙØªØ ÙØ§ØªØ³Ø§Ø¨ Ø®ÙØ§Ù ÙØØ¸Ø§Øª."})]})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3856",className:"section-divider section-divider-dark","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3860"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:3861",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3862"})]}),e.jsx("section",{"data-loc":"client/src/pages/Home.tsx:3864",className:"section referral-section","aria-labelledby":"referral-title",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3868",className:"section-inner referral-layout",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3869",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3870",className:"section-kicker",children:n.referralKicker}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:3871",id:"referral-title",children:n.referralTitle}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3872",children:n.referralBody}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3873",className:"referral-reward",children:n.referralReward})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3877",className:"referral-actions",children:[e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:3878",className:"pill-btn primary",href:`https://wa.me/?text=${encodeURIComponent(Js)}`,target:"_blank",rel:"noreferrer",onClick:()=>U("referral_shared",{code:ge}),children:[e.jsx(Ia,{"data-loc":"client/src/pages/Home.tsx:3889",size:15})," ",n.referralShare]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3891",className:"pill-btn",type:"button",onClick:()=>{navigator.clipboard?.writeText(_e),U("social_link_copied",{type:"referral"})},children:n.referralCopy}),e.jsxs("form",{"data-loc":"client/src/pages/Home.tsx:3903",className:"referral-register",onSubmit:a=>{a.preventDefault(),Fe.mutate({code:ge,referredName:pa,referredPhone:ga})},children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:3914",children:n.referralJoinTitle}),e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3915",required:!0,minLength:2,value:pa,onChange:a=>vs(a.target.value),placeholder:n.referredName}),e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:3922",required:!0,minLength:8,value:ga,onChange:a=>bs(a.target.value),placeholder:n.referredPhone,dir:"ltr"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:3930",className:"pill-btn",type:"submit",disabled:Fe.isPending,children:Fe.isSuccess?s?"Registered":"تÙ
Ø§ÙØªØ³Ø¬ÙÙ":n.registerReferral})]}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3942",children:n.referralNote})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3946",className:"section-divider section-divider-dark","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3950"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:3951",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3952"})]}),e.jsx("section",{"data-loc":"client/src/pages/Home.tsx:3954",className:"section share-section",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3955",className:"section-inner share-layout",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3956",className:"share-copy",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:3957",className:"section-kicker",children:n.shareTaste}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:3958",children:n.shareTitle}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:3959",children:n.shareBody}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:3960",className:"pill-btn",href:"https://wa.me/?text=MY%20KITCHEN%20catalog",target:"_blank",rel:"noreferrer",children:[e.jsx(Ia,{"data-loc":"client/src/pages/Home.tsx:3966",size:15})," ",n.share]})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:3969",className:"qr",href:"/manus-storage/my-kitchen-qr_baccaf34.png",download:!0,children:[e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:3974",loading:"lazy",decoding:"async",width:"168",height:"168",src:"/manus-storage/my-kitchen-qr_baccaf34.png",alt:"QR code for MY KITCHEN catalog"}),e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:3982",children:n.openCatalog})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:3986",className:"section-divider section-divider-dark products-footer-transition","aria-hidden":"true",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3990"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:3991",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:3992"})]})]}),e.jsxs("footer",{"data-loc":"client/src/pages/Home.tsx:3996",className:"footer footer-after-products",children:[e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:3997",type:"button",className:"footer-collapse-trigger","aria-expanded":x,"aria-controls":"footer-content",onClick:()=>p(a=>!a),children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4004",children:s?"MY KITCHEN footer":"Ù
عÙÙÙ
ات MY KITCHEN"}),e.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:4007","aria-hidden":"true"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4009",id:"footer-content",className:"footer-inner footer-pro","data-footer-open":x,children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4014",className:"footer-column footer-brand-column",children:[e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:4015",className:"footer-brand footer-logo-frame",href:"/","aria-label":"MY KITCHEN home",children:[e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:4020",loading:"eager",decoding:"async",width:"1600",height:"614",src:vt,alt:"MY KITCHEN",onError:a=>{a.currentTarget.onerror=null,a.currentTarget.src=Ba}}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4032",className:"footer-brand-caption",children:e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:4033",children:n.made})})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:4036",className:"footer-promise",children:Ps})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4038",className:"footer-links-group",children:[e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:4039",className:"footer-column footer-nav-column","data-footer-accordion":"explore","data-open":i==="explore","aria-label":s?"Site links":"Ø±ÙØ§Ø¨Ø· اÙÙ
ÙÙØ¹",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:4045",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:4046",type:"button",className:"footer-accordion-trigger","aria-expanded":i==="explore","aria-controls":"footer-explore-links",onClick:()=>d(a=>a==="explore"?null:"explore"),children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4057",children:Ms}),e.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:4058","aria-hidden":"true"})]})}
2),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4061",id:"footer-explore-links",className:"footer-accordion-panel",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4065",href:"#flavors",children:n.flavors}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4066",href:"#delivery",children:n.order})]})]}),e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:4069",className:"footer-column footer-nav-column","data-footer-accordion":"care","data-open":i==="care","aria-label":s?"Care and guidance":"Ø§ÙØ¹ÙØ§ÙØ© ÙØ§Ùإرشادات",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:4077",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:4078",type:"button",className:"footer-accordion-trigger","aria-expanded":i==="care","aria-controls":"footer-care-links",onClick:()=>d(a=>a==="care"?null:"care"),children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4089",children:Is}),e.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:4090","aria-hidden":"true"})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4093",id:"footer-care-links",className:"footer-accordion-panel",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4094",href:`/storage-guide?lang=${w}`,children:Os}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4097",href:"#delivery",children:Ds}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4098",href:"#referral-title",children:Rs})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4102",className:"footer-column footer-contact-column",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4103",className:"footer-contact-kicker",children:$s}),e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:4106",children:Bs}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:4107",children:Fs}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4108",className:"footer-contact",href:`https://wa.me/${Ge}`,children:"+20 109 335 4994"}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:4111",className:"footer-email",href:"mailto:[email protected]",children:"[email protected]"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4117",className:"footer-social-links","aria-label":s?"Social links":"Ø±ÙØ§Ø¨Ø· Ø§ÙØªÙاصÙ",children:[e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:4121",className:"social-platform-btn",href:qe.facebook,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",children:[e.jsx(gt,{"data-loc":"client/src/pages/Home.tsx:4128",size:17,"aria-hidden":"true"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4129",children:"Facebook"})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:4131",className:"social-platform-btn",href:qe.instagram,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",children:[e.jsx(ht,{"data-loc":"client/src/pages/Home.tsx:4138",size:17,"aria-hidden":"true"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4139",children:"Instagram"})]}),e.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:4141",className:"social-platform-btn",href:qe.whatsappCatalog,target:"_blank",rel:"noopener noreferrer","aria-label":s?"WhatsApp Business":"ÙØ§ØªØ³Ø§Ø¨ Ø¨Ø²ÙØ³",children:[e.jsx(xt,{"data-loc":"client/src/pages/Home.tsx:4148",size:17,"aria-hidden":"true"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4149",children:s?"WhatsApp Business":"ÙØ§ØªØ³Ø§Ø¨ Ø¨Ø²ÙØ³"})]})]}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4152",className:"footer-note",children:n.handmade})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4154",className:"footer-footer-divider",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4155"}),e.jsx("i",{"data-loc":"client/src/pages/Home.tsx:4156","aria-hidden":"true",children:"â¦"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4157"})]}),e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:4159",className:"footer-legal-links","aria-label":s?"Legal links":"Ø§ÙØ±Ùابط اÙÙØ§ÙÙÙÙØ©",children:[e.jsx(ka,{"data-loc":"client/src/pages/Home.tsx:4163",href:`/privacy-policy?lang=${w}`,children:_s}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4166","aria-hidden":"true",children:"â¢"}),e.jsx(ka,{"data-loc":"client/src/pages/Home.tsx:4167",href:`/order-terms?lang=${w}`,children:Ls})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4171",className:"mobile-order",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4172",className:`mobile-order-copy ${Q?"is-total-changing":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4175",children:h?`${h} ${n.jars}`:n.chooseFlavor}),h>0&&e.jsx("small",{"data-loc":"client/src/pages/Home.tsx:4180",children:n.total}),h>0&&e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:4182",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:4183",value:R,isEnglish:s})})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4187",type:"button",onClick:Le,children:h?s?"Review cart":"راجع Ø§ÙØ³ÙØ©":s?"Browse flavors":"ابدأ Ø§Ø®ØªÙØ§Ø±Ù"})]}),is?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4198",className:"floating-cart-layer",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4199",className:"floating-cart-backdrop",type:"button","aria-label":s?"Close cart":"Ø¥ØºÙØ§Ù Ø§ÙØ³ÙØ©",onClick:()=>Ne(!1)}),e.jsxs("aside",{"data-loc":"client/src/pages/Home.tsx:4205",className:"floating-cart-panel",role:"dialog","aria-modal":"true","aria-labelledby":"floating-cart-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4211",className:"floating-cart-head",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4212",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4213",className:"section-kicker",children:"MY KITCHEN"}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:4214",id:"floating-cart-title",children:s?"Your cart":"Ø³ÙØªÙ"})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4218",className:"floating-cart-close",type:"button","aria-label":s?"Close cart":"Ø¥ØºÙØ§Ù Ø§ÙØ³ÙØ©",onClick:()=>Ne(!1),children:e.jsx(Ta,{"data-loc":"client/src/pages/Home.tsx:4224",size:18})})]}),N.length?e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:4228",className:"floating-cart-items",children:N.map(({product:a,size:t,key:o,quantity:l})=>e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4230",className:"floating-cart-item",children:[e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:4231",src:a.image,alt:"",width:"54",height:"54"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4232",children:[e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:4233",children:s?a.en:a.name}),e.jsxs("small",{"data-loc":"client/src/pages/Home.tsx:4234",children:[l," à ",re(t,s)," ·"," ",We(t,k(a,t),s)]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4243",className:"floating-cart-item-control
2s",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4244",type:"button","aria-label":s?`Decrease ${a.en}`:`تÙÙÙÙ ${a.name}`,onClick:()=>se(a.id,l-1,t),children:e.jsx(Pa,{"data-loc":"client/src/pages/Home.tsx:4253",size:13})}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4255",children:l}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4256",type:"button","aria-label":s?`Increase ${a.en}`:`Ø²ÙØ§Ø¯Ø© ${a.name}`,onClick:()=>se(a.id,l+1,t),children:e.jsx(Ma,{"data-loc":"client/src/pages/Home.tsx:4265",size:13})})]})]},`floating-${o}`))}):e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4272",className:"floating-cart-empty",children:[e.jsx(Ke,{"data-loc":"client/src/pages/Home.tsx:4273",size:28,"aria-hidden":"true"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:4274",children:s?"Your cart is ready for your first jar.":"Ø³ÙØªÙ Ø¬Ø§ÙØ²Ø© ÙØ£Ù٠برطÙ
اÙ."}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4279",type:"button",onClick:()=>{Ne(!1),document.getElementById("flavors")?.scrollIntoView({behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"})},children:s?"Browse flavors":"ØªØµÙØ اÙÙÙÙØ§Øª"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4296",className:"floating-cart-summary",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4297",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4298",children:s?"Products":"اÙÙ
ÙØªØ¬Ø§Øª"}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:4299",children:h})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:4301",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:4302",children:n.total}),e.jsx("strong",{"data-loc":"client/src/pages/Home.tsx:4303",children:v(R,s)})]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:4305",className:`floating-cart-cta ${h?"":"is-disabled"}`,type:"button","aria-disabled":!h,onClick:()=>{h&&(Ne(!1),Le())},children:s?"Review order":"راجع Ø§ÙØ·Ùب"})]})]})]}):null]})]})}export{zt 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.