PageSourceSearch

https://kitchenjam-withlove.manus.space/assets/Home-B-p9Jw-i.js

js kitchenjam-withlove.manus.space collected 2026-10-03 05:02:55 UTC 107,898 bytes, 2 lines download raw bytes

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.