1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[911],{0:(e,t,s)=>{"use strict";s.d(t,{CityProvider:()=>i,D:()=>o});var a=s(5155),r=s(2115);let l=(0,r.createContext)(void 0),n=/^[a-z0-9-]{1,50}$/i,i=e=>{let{children:t,defaultCity:s="",defaultState:i=""}=e,[o,c]=(0,r.useState)(s),[d,m]=(0,r.useState)(i),[u,x]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=localStorage.getItem("nabataty-city"),t=localStorage.getItem("nabataty-state"),a=e||s,r=new URLSearchParams(window.location.search);if(r.has("items")){let e=r.get("city");e&&n.test(e)&&(a=e.toLowerCase(),localStorage.setItem("nabataty-city",a),document.cookie="nabataty-city=".concat(a,"; path=/; max-age=").concat(2592e3))}a&&c(a),t&&m(t),x(!0)},[s]),(0,a.jsx)(l.Provider,{value:{city:o,stateCode:d,hydrated:u,setCity:(e,t)=>{c(e),m(t),localStorage.setItem("nabataty-city",e),localStorage.setItem("nabataty-state",t)}},children:t})},o=()=>{let e=(0,r.useContext)(l);if(!e)throw Error("useCity must be used inside <CityProvider>");return e}},213:(e,t,s)=>{"use strict";s.d(t,{H:()=>a});let a=(0,s(5959).v)(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})}))},1392:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var a=s(5155),r=s(2115),l=s(5239),n=s(4768),i=s(1537);function o(e){let{stories:t,initialIndex:s,lang:o,onClose:c}=e,d="en"===o?"en":"ar",m="en"!==o,[u,x]=(0,r.useState)(s),h=(0,r.useRef)(null),p=(0,r.useRef)(null),g=(0,r.useRef)(Date.now()),f=(0,r.useRef)(0),b=(0,r.useRef)(!1),v=(0,r.useRef)(null),w=(0,r.useCallback)(()=>{p.current&&clearTimeout(p.current)},[]),j=(0,r.useCallback)(()=>{w(),u>=t.length-1?c():x(e=>e+1)},[u,t.length,c,w]),N=(0,r.useCallback)(()=>{w(),x(e=>Math.max(0,e-1))},[w]),y=(0,r.useCallback)(e=>{let t=h.current;t&&(requestAnimationFrame(()=>{t.style.transition="width ".concat(e/1e3,"s linear"),t.style.width="100%"}),g.current=Date.now(),p.current=setTimeout(j,e))},[j]),_=(0,r.useCallback)(()=>{let e=h.current;if(!e)return;let t=getComputedStyle(e).width;e.style.transition="none",e.style.width=t,f.current+=Date.now()-g.current,w()},[w]);(0,r.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),(0,r.useEffect)(()=>{let e;b.current=!1,f.current=0,g.current=Date.now();let t=h.current;t&&(t.style.transition="none",t.style.width="0%");let s=!1,a=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{s||y(7e3)})});return()=>{s=!0,cancelAnimationFrame(a),cancelAnimationFrame(e),w()}},[u]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key?c():"ArrowRight"===e.key?j():"ArrowLeft"===e.key&&N()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[j,N,c]);let k=(0,r.useCallback)(()=>{b.current=!0,_()},[_]),C=(0,r.useCallback)(()=>{b.current&&(b.current=!1,y(Math.max(500,7e3-f.current)))},[y]),P=t[u],S=1===t.length;return P?(0,a.jsxs)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center",style:{background:"rgba(0,0,0,0.92)"},onTouchStart:e=>{v.current=e.touches[0].clientX},onTouchEnd:e=>{if(null===v.current)return;let t=e.changedTouches[0].clientX-v.current;v.current=null,Math.abs(t)>50&&(t<0?j():N())},children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[3px] bg-white/20 z-10",dir:"ltr",children:(0,a.jsx)("div",{ref:h,className:"h-full bg-white w-0"})}),(0,a.jsxs)("div",{className:"relative w-full h-full max-w-lg mx-auto",onPointerDown:k,onPointerUp:C,onPointerLeave:C,children:[(0,a.jsx)(l.default,{src:P.image,alt:"",fill:!0,className:"object-contain",priority:!0}),(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),c()},onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),"aria-label":(0,i.t)(d,"stories.close"),className:"absolute top-5 z-20 inline-flex size-8 items-center justify-center rounded-full bg-black/80 p-0 text-3xl leading-none text-white right-2",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"block size-5",fill:"none",stroke:"white",strokeWidth:"3",strokeLinecap:"round",children:(0,a.jsx)("path",{d:"M6 6L18 18M18 6L6 18"})})}),!S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"absolute top-0 left-0 w-[40%] h-full z-10",onClick:e=>{e.stopPropagation(),N()},onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),"aria-label":"Previous story"}),(0,a.jsx)("button",{className:"absolute top-0 right-0 w-[40%] h-full z-10",onClick:e=>{e.stopPropagation(),j()},onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),"aria-label":"Next story"})]}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-20 transition-transform duration-300 ".concat(P.product?"translate-y-0":"translate-y-full"),onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),children:P.product&&(0,a.jsxs)("div",{className:"bg-white rounded-t-2xl px-4 py-4 mx-2 mb-2 shadow-lg",children:[(0,a.jsx)("p",{className:"text-xs text-gray-400 mb-2 ".concat(m?"text-right":""),children:(0,i.t)(d,"stories.purchasedLabel")}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"relative w-[60px] h-[60px] flex-shrink-0",children:(0,a.jsx)(l.default,{src:P.product.image,alt:P.product.name,fill:!0,className:"object-cover rounded-lg"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 ".concat(m?"text-right":""),children:[(0,a.jsx)("p",{className:"font-medium text-sm text-gray-900 line-clamp-2 leading-snug",children:P.product.name}),(0,a.jsxs)("p",{className:"text-[#00AB52] font-bold mt-1 text-sm",children:[(0,a.jsx)(n.A,{})," ",Number(P.product.price).toFixed(2)]})]}),(0,a.jsx)("a",{href:"".concat("/store").concat("en"==o?"/en":"","/product/").concat(P.product.slug),className:"flex-shrink-0 bg-[#00AB52] text-white text-sm px-4 py-2 rounded-full whitespace-nowrap font-medium",onClick:e=>e.stopPropagation(),children:(0,i.t)(d,"stories.viewProduct")})]})]})})]})]}):null}function c(e){let{stories:t,lang:s}=e,[n,i]=(0,r.useState)(null),[c,d]=(0,r.useState)(t),m=(0,r.useCallback)(e=>i(e),[]),u=(0,r.useCallback)(()=>i(null),[]),x=(0,r.useCallback)((e,t,s)=>{d(a=>a.map(a=>a.id===e?{...a,liked_by_me:t,likes_count:s}:a))},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"overflow-x-auto scrollbar-none rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:(0,a.jsx)("div",{className:"flex gap-1 w-max mb-4",children:c.map((e,t)=>(0,a.jsx)("button",{onClick:()=>m(t),"aria-label":"Story ".concat(t+1),className:"flex-shrink-0 w-20 h-20 rounded-full p-[3px] focus:outline-none",style:{background:"conic-gradient(from 45deg, #888 0deg, #e0e0e0 60deg, #fff 90deg, #e0e0e0 120deg, #999 180deg, #d0d0d0 240deg, #fff 270deg, #ccc 300deg, #888 360deg)"},children:(0,a.jsx)("div",{className:"w-full h-full rounded-full overflow-hidden",children:(0,a.jsx)(l.default,{src:e.thumbnail,alt:"",width:74,height:74,className:"w-full h-full object-cover"})})},e.id))})}),null!==n&&(0,a.jsx)(o,{stories:c,initialIndex:n,lang:s,onClose:u,onLikeUpdate:x})]})}},1575:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var a=s(5155),r=s(2115),l=s(2619),n=s.n(l),i=s(898),o=s(1537);let c=new Date("2026-07-31T23:59:59+03:00");function d(){let e=c.getTime()-Date.now();return e<=0?null:{days:Math.floor(e/864e5),hours:Math.floor(e/36e5%24),minutes:Math.floor(e/6e4%60),seconds:Math.floor(e/1e3%60)}}function m(e){let{lang:t}=e,[s,l]=(0,r.useState)(null);if((0,r.useEffect)(()=>
1{l(d());let e=setInterval(()=>{l(d())},1e3);return()=>clearInterval(e)},[]),!s)return null;let c=[{value:s.days,label:(0,o.t)(t,"home.summerCountdown.days")},{value:s.hours,label:(0,o.t)(t,"home.summerCountdown.hours")},{value:s.minutes,label:(0,o.t)(t,"home.summerCountdown.minutes")},{value:s.seconds,label:(0,o.t)(t,"home.summerCountdown.seconds")}];return(0,a.jsx)("section",{className:"my-4",children:(0,a.jsxs)("div",{className:"relative overflow-hidden flex flex-col items-center gap-4 rounded-2xl bg-gradient-to-br from-green-700 via-brand-green to-green-600 py-6 px-4 shadow-lg shadow-green-900/20",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute -top-10 -right-10 h-40 w-40 rounded-full bg-white/10 blur-2xl"}),(0,a.jsx)("div",{className:"pointer-events-none absolute -bottom-12 -left-8 h-32 w-32 rounded-full bg-white/10 blur-2xl"}),(0,a.jsxs)("h2",{className:"relative flex items-center gap-2 text-base md:text-lg font-bold text-white text-center drop-shadow-sm",children:[(0,a.jsx)(i.wQq,{className:"text-yellow-300 text-lg md:text-xl"}),(0,o.t)(t,"home.summerCountdown.title")]}),(0,a.jsx)("div",{className:"relative flex items-center gap-2 sm:gap-4",dir:"ltr",children:c.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"flex items-center justify-center w-14 h-14 sm:w-16 sm:h-16 rounded-xl bg-white/95 text-brand-green text-2xl sm:text-3xl font-extrabold tabular-nums shadow-inner ring-1 ring-white/40",children:String(e.value).padStart(2,"0")}),(0,a.jsx)("span",{className:"mt-1.5 text-[11px] sm:text-xs font-medium text-white/85 uppercase tracking-wide",children:e.label})]}),t<c.length-1&&(0,a.jsx)("span",{className:"mb-4 text-xl sm:text-2xl font-bold text-white/60",children:":"})]},e.label))}),(0,a.jsx)(n(),{href:"".concat("en"===t?"/en":"","/offers"),className:"relative rounded-full bg-white/95 px-6 py-2 text-sm sm:text-base font-bold text-brand-green shadow-inner ring-1 ring-white/40 transition hover:bg-white",children:(0,o.t)(t,"home.summerCountdown.cta")})]})})}},2236:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(1847).A)("ArrowUpLeft",[["path",{d:"M7 17V7h10",key:"11bw93"}],["path",{d:"M17 17 7 7",key:"2786uv"}]])},4371:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var a=s(5155),r=s(8007);s(1182);var l=s(5239),n=s(2115);function i(e){let{banners:t,lang:s}=e,[i,o]=(0,n.useState)(0),[c,d]=(0,n.useState)(!1),[m,u]=(0,r.E)({loop:!0,initial:0,slideChanged(e){o(e.track.details.rel)},created(){d(!0)}},[e=>{let t,s=!1;function a(){clearTimeout(t)}function r(){clearTimeout(t),s||(t=setTimeout(()=>{e.next()},5e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{s=!0,a()}),e.container.addEventListener("mouseout",()=>{s=!1,r()}),r()}),e.on("dragStarted",a),e.on("animationEnded",r),e.on("updated",r),e.on("destroyed",a)}]);return(0,a.jsxs)("div",{className:"relative",dir:"ltr",children:[(0,a.jsxs)("div",{className:"relative",children:[!c&&(0,a.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 roun
1ded-xl bg-gray-100",role:"status","aria-label":"Loading slider",children:[(0,a.jsx)("div",{className:"w-full aspect-[20/9] overflow-hidden rounded-xl bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:[0,1,2].map(e=>(0,a.jsx)("span",{className:"h-2 w-3 rounded-full bg-gray-200 animate-pulse",style:{animationDelay:"".concat(120*e,"ms")}},e))})]}),(0,a.jsx)("div",{ref:m,className:"keen-slider rounded-xl overflow-hidden transition-opacity duration-500 ".concat(c?"opacity-100":"opacity-0"),children:t.map((e,t)=>(0,a.jsx)("a",{href:"".concat("/store").concat("en"===s?"/en":"","/").concat(e.slug),className:"keen-slider__slide min-w-full",children:(0,a.jsx)("div",{className:"relative w-full aspect-[20/9]",children:(0,a.jsx)(l.default,{src:e.image,alt:"Nabataty Banner",fill:!0,className:"object-cover",priority:0===t,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 100vw, 100vw"})})},e.banner_id))})]}),c&&(0,a.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-2 sm:gap-2.5 z-10",children:t.map((e,t)=>{let s=i===t;return(0,a.jsx)("button",{onClick:()=>{var e;null==(e=u.current)||e.moveToIdx(t)},className:"transition-all duration-300 rounded-full \n ".concat(s?"w-6 h-2 bg-brand-green":"w-2.5 h-2 bg-gray-300/80","\n sm:").concat(s?"w-7 h-2.5":"w-3 h-2.5","\n "),"aria-label":"Go to slide ".concat(t+1)},t)})})]})}},4768:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(5155);function r(e){let{className:t="sar-icon"}=e;return(0,a.jsx)("i",{className:t})}},5275:(e,t,s)=>{"use strict";function a(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}s.d(t,{d:()=>a})},5703:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var a=s(5155),r=s(2619),l=s.n(r),n=s(5239),i=s(4768),o=s(1537),c=s(898),d=s(6191),m=s(2115),u=s(5275),x=s(7719),h=s(213),p=s(0);let g="M0,0C18,0 71,0 107,0C143,3 178,15 214,18C250,21 285,16 321,17C357,18 392,20 428,23C464,26 499,33 535,37C571,41 606,43 642,45C678,47 713,49 749,50C785,51 820,52 856,53C892,54 927,54 963,54C999,54 1034,54 1070,52C1106,50 1141,46 1177,44C1213,42 1248,40 1284,41C1320,42 1355,44 1391,48C1427,52 1462,58 1498,62C1534,66 1569,70 1605,69C1641,68 1694,56 1712,54L1712,80L0,80Z";function f(e){let{color:t}=e;return(0,a.jsxs)("div",{"aria-hidden":!0,className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,a.jsx)("svg",{className:"absolute inset-x-0 top-0 w-full h-[18px] md:h-[36px]",viewBox:"0 0 1712 80",preserveAspectRatio:"none",fill:t,children:(0,a.jsx)("path",{d:g})}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-[17px] bottom-[17px] md:top-[35px] md:bottom-[35px]",style:{backgroundColor:t}}),(0,a.jsx)("svg",{className:"absolute inset-x-0 bottom-0 w-full h-[18px] md:h-[36px] scale-y-[-1]",viewBox:"0 0 1712 80",preserveAspectRatio:"none",fill:t,children:(0,a.jsx)("path",{d:g})})]})}function b(e){let{slug:t,lang:s,title:r,products:g,categoryId:b,backgroundColor:v,href:w}=e,j=(0,m.useRef)(!1),{addItem:N}=(0,x._)(),{open:y}=(0,h.H)(),{city:_}=(0,p.D)(),k="en"===s?"en":"ar";return(0,m.useEffect)(()=>{if(j.current)return;let e=g.slice(0,4).map((e,t)=>({item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:t+1,item_list_name:"Category - ".concat(r),item_category:r}));e.length&&((0,u.d)({event:"view_item_list",ecommerce:{items:e}}),j.current=!0)},[g,r]),(0,a.jsxs)("section",{className:v?"relative mt-6 -mx-4 px-4 py-12":"mt-6 -mx-4 px-4 py-12 bg-[image:var(--bg-img)] bg-cover bg-no-repeat md:bg-none",style:v?void 0:{"--bg-img":"url('".concat("/store","/images/background/home-bg-1.png')")},children:[v&&(0,a.jsx)(f,{color:v}),(0,a.jsxs)("div",{className:"relative flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"md:text-xl text-lg font-bold",children:r}),null!==w&&(0,a.jsx)(l(),{href:null!=w?w:"".concat("en"==s?"/en":"","/product-category/").concat(t),className:"text-sm border-b border-brand-green transition text-brand-green font-semibold",children:(0,o.t)(s,"common.viewMore")},b)]}),(0,a.jsx)("div",{className:"relative grid grid-cols-2 gap-3 py-4 md:grid-cols-4",children:g.slice(0,4).map(e=>{var t,m;let x=e.sale_price&&e.sale_price>0,h=x?Math.round(100-e.sale_price/e.price*100):null,p=(null==(t=e.cities_stock)?void 0:t.stock)>0&&(null==(m=e.cities_stock)?void 0:m.fast_shipping);return(0,a.jsxs)(l(),{href:"".concat("en"==s?"/en":"","/product/").concat(e.slug),className:"w-full p-1 rounded-xl shadow-sm bg-white",children:[(0,a.jsxs)("div",{className:"relative rounded-lg overflow-hidden bg-gray-100 aspect-[1/1]",children:[(0,a.jsx)(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover"}),x&&(0,a.jsxs)("span",{className:"absolute top-2 left-2 bg-white text-green-600 text-xs font-semibold px-2 py-1 rounded-full shadow",children:[h,"%-"]})]}),(0,a.jsx)("div",{className:"mt-2 mb-3 text-sm line-clamp-2",children:e.name}),(0,a.jsx)("div",{className:"text-sm font-bold text-black",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"line-through text-gray-400 text-xs ltr:mr-1 rtl:ml-1",dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]}),(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.sale_price.toFixed(2))]})]}):(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]})}),(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs mt-2",children:[p&&(0,a.jsxs)("div",{className:"bg-brand-light text-green-600 text-[10px] px-2 py-1 rounded-full shadow flex items-center gap-1 z-10",children:[(0,a.jsx)("span",{children:(0,o.t)(s,"product.getItToday")}),(0,a.jsx)(c.dv1,{className:"text-xs"})]}),(0,a.jsx)("button",{type:"button",onClick:t=>{var s;t.preventDefault(),t.stopPropagation(),N({id:e.id,slug:e.slug,name:e.name,image:e.image,price:e.price,sale_price:e.sale_price,qty:1,main_stock:e.main_stock||0,cities_stock:{name:_,stock:(null==(s=e.cities_stock)?void 0:s.stock)||0},city:_}),(0,u.d)({ecommerce:null}),(0,u.d)({event:"add_to_cart",ecommerce:{items:[{item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:1,item_list_name:"Category - ".concat(r),quantity:1}]}}),y()},"aria-label":(0,o.t)(k,"product.addToCart"),className:"ms-auto flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full bg-brand-green text-white shadow hover:bg-green-800 transition z-10 cursor-pointer",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]})]},e.id)})})]})}},6187:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var a=s(5155),r=s(5239),l=s(2619),n=s.n(l),i=s(2236);function o(e){let{categories:t,lang:s,title:l}=e;return(0,a.jsxs)("section",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"md:text-xl text-lg font-semibold",children:l||("en"===s?"Categories":"ÙÙØÙÙ Ù
ا Ø§ÙØ¯ÙتØ")}),(0,a.jsxs)("div",{className:"flex overflow-x-auto gap-3 py-4 rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:[t.map(e=>(0,a.jsx)(n(),{href:"".concat("en"==s?"/en":"","/product-category/").concat(e.slug),className:"flex-shrink-0 text-center md:w-[150px] w-[280px]",children:(0,a.jsxs)("div",{className:"relative w-full overflow-hidden rounded-xl shadow-sm bg-gray-50",children:[(0,a.jsx)(r.default,{src:e.image,alt:e.name,width:300,height:300,className:"object-cover"}),(0,a.jsxs)("div",{className:"md:static absolute bottom-2 left-2 right-2 flex justify-between items-center gap-2",children:[(0,a.jsx)("span",{dir:"ar"===s?"rtl":"ltr",className:"md:text-sm md:py-2 text-lg font-bold text-[#356F77] truncate px-1",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-white rounded-full shadow-md p-1 md:hidden",children:[(0,a.jsx)("span",{className:"text-xs font-bold mr-2 text-[#356F77]",children:"en"===s?"Corporate Services":"Ø§ÙØªØ´Ù"}),(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-[#356F77] flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(i.A,{className:"w-4 h-4 text-white"})})]})]})]})},e.id)),(0,a.jsx)(n(),{href:"".concat("en"==s?"/en":"","/corporate-services"),className:"flex-shrink-0 text-center md:w-[150px] w-[280px]",children:(0,a.jsxs)("div",{className:"relative w-full overflow-hidden rounded-xl shadow-sm bg-gray-50",children:[(0,a.jsx)(r.default,{src:"".concat("/store","/images/coroprate-icon.jpeg"),alt:"Corporate Services",width:300,height:300,className:"object-cover"}),(0,a.jsxs)("div",{className:"md:static absolute bottom-2 left-2 right-2 flex justify-between items-center gap-2",children:[(0,a.jsx)("span",{dir:"ar"===s?"rtl":"ltr",className:"md:text-sm md:py-2 text-lg font-bold text-[#356F77] truncate px-1",children:"en"===s?"Corporate Services":"خدÙ
ات Ø§ÙØ´Ø±Ùات"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-white rounded-full shadow-md p-1 md:hidden",children:[(0,a.jsx)("span",{className:"text-xs font-bold mr-2 text-[#356F77]",children:"en"===s?"Corporate Services":"Ø§ÙØªØ´Ù"}),(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-[#356F77] flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(i.A,{className:"w-4 h-4 text-white"})})]})]})]})},99999)]})]})}},6191:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(1847).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},6199:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var a=s(5155),r=s(2619),l=s.n(r),n=s(5239),i=s(4768),o=s(1537),c=s(898),d=s(6191),m=s(2115),u=s(5275),x=s(7719),h=s(213),p=s(0);function g(e){let{lang:t,title:s,products:r,backgroundImage:g}=e,f=(0,m.useRef)(!1),{addItem:b}=(0,x._)(),{open:v}=(0,h.H)(),{city:w}=(0,p.D)(),j="en"===t?"en":"ar";return(0,m.useEffect)(()=>
1{if(f.current)return;let e=r.map((e,t)=>({item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:t+1,item_list_name:"Category - ".concat(s),item_category:s}));e.length&&((0,u.d)({event:"view_item_list",ecommerce:{items:e}}),f.current=!0)},[r,s]),(0,a.jsx)("section",{className:"mt-6 -mx-4 px-4 pt-30 bg-[image:var(--bg-img)] bg-contain bg-no-repeat md:bg-none",style:{"--bg-img":"url('".concat(null!=g?g:"".concat("/store","/images/background/resize-copyarabic-banner.png"),"')")},children:(0,a.jsx)("div",{className:"flex gap-3 overflow-x-auto py-4 rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:r.map(e=>{var r,m;let x=e.sale_price&&e.sale_price>0,h=x?Math.round(100-e.sale_price/e.price*100):null,p=(null==(r=e.cities_stock)?void 0:r.stock)>0&&(null==(m=e.cities_stock)?void 0:m.fast_shipping);return(0,a.jsxs)(l(),{href:"".concat("en"==t?"/en":"","/product/").concat(e.slug),className:"flex-shrink-0 md:w-[200px] w-[160px] p-1 rounded-xl shadow-sm bg-white",children:[(0,a.jsxs)("div",{className:"relative rounded-lg overflow-hidden bg-gray-100 aspect-[1/1]",children:[(0,a.jsx)(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover"}),x&&(0,a.jsxs)("span",{className:"absolute top-2 left-2 bg-white text-green-600 text-xs font-semibold px-2 py-1 rounded-full shadow",children:[h,"%-"]})]}),(0,a.jsx)("div",{className:"mt-2 mb-3 text-sm line-clamp-2",children:e.name}),(0,a.jsx)("div",{className:"text-sm font-bold text-black",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"line-through text-gray-400 text-xs ltr:mr-1 rtl:ml-1",dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]}),(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.sale_price.toFixed(2))]})]}):(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]})}),(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs mt-2",children:[p&&(0,a.jsxs)("div",{className:"bg-brand-light text-green-600 text-[10px] px-2 py-1 rounded-full shadow flex items-center gap-1 z-10",children:[(0,a.jsx)("span",{children:(0,o.t)(t,"product.getItToday")}),(0,a.jsx)(c.dv1,{className:"text-xs"})]}),(0,a.jsx)("button",{type:"button",onClick:t=>{var a;t.preventDefault(),t.stopPropagation(),b({id:e.id,slug:e.slug,name:e.name,image:e.image,price:e.price,sale_price:e.sale_price,qty:1,main_stock:e.main_stock||0,cities_stock:{name:w,stock:(null==(a=e.cities_stock)?void 0:a.stock)||0},city:w}),(0,u.d)({ecommerce:null}),(0,u.d)({event:"add_to_cart",ecommerce:{items:[{item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:1,item_list_name:"Category - ".concat(s),quantity:1}]}}),v()},"aria-label":(0,o.t)(j,"product.addToCart"),className:"ms-auto flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full bg-brand-green text-white shadow hover:bg-green-800 transition z-10 cursor-pointer",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]})]},e.id)})})})}},6251:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i});var a=s(5155),r=s(5239),l=s(2619),n=s.n(l);function i(e){let{tags:t,lang:s,title:l}=e;return(0,a.jsxs)("section",{className:"mt-6",children:[(0,a.jsx)("h2",{className:"md:text-xl text-lg font-semibold",children:l||("en"===s?"Special Occasions":"Ø§Ø´ØªØ±Ù ØØ³Ø¨ Ù
ÙØ§Ø³Ø¨ØªÙ Ø§ÙØ®Ø§ØµØ©")}),(0,a.jsx)("div",{className:"overflow-x-auto pt-4 rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:(0,a.jsx)("div",{className:"grid grid-flow-col gap-3 md:flex md:flex-nowrap",children:t.map(e=>(0,a.jsxs)(n(),{href:"".concat("en"==s?"/en":"","/product-tag/").concat(e.slug),className:"flex-shrink-0 text-center md:w-[150px] w-[80px]",children:[(0,a.jsx)("div",{className:"w-full aspect-[1/1] overflow-hidden rounded-full shadow-sm bg-gray-50",children:(0,a.jsx)(r.default,{src:e.image,alt:e.name,width:150,height:150,className:"w-full h-full object-cover"})}),(0,a.jsx)("div",{className:"mt-2 text-xs",children:e.name})]},e.id))})})]})}},6998:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(5155),r=s(2619),l=s.n(r),n=s(5239),i=s(4768),o=s(2115),c=s(5275),d=s(1537);function m(e){let{lang:t,title:s,products:r,categoryId:m}=e,u=(0,o.useRef)(!1);return(0,o.useEffect)(()=>
1{if(u.current)return;let e=r.map((e,t)=>({item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:t+1,item_list_name:"Featured - ".concat(s),item_category:s}));e.length&&((0,c.d)({event:"view_item_list",ecommerce:{items:e}}),u.current=!0)},[r,s]),(0,a.jsxs)("section",{className:"mt-6",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"md:text-xl text-lg font-semibold text-gray-800",children:s}),(0,a.jsx)(l(),{href:"".concat("en"==t?"/en":"","/product-category/ÙØ¯Ø§Ùا"),className:"text-sm border-b border-brand-green transition text-brand-green font-semibold",children:(0,d.t)(t,"common.viewMore")},m)]}),(0,a.jsx)("div",{className:"flex gap-3 overflow-x-auto pb-4 rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:r.map(e=>{let s=e.sale_price&&e.sale_price>0,r=s?Math.round(100-e.sale_price/e.price*100):null;return(0,a.jsx)(l(),{href:"".concat("en"==t?"/en":"","/product/").concat(e.slug),className:"flex-shrink-0 md:w-[200px] w-[180px] rounded-xl overflow-hidden relative",children:(0,a.jsxs)("div",{className:"relative aspect-[5/6] bg-gray-100",children:[(0,a.jsx)(n.default,{src:e.image,alt:e.name,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 25vw, 20vw",fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}),s&&(0,a.jsxs)("span",{className:"absolute top-2 left-2 bg-white text-green-600 text-xs font-semibold px-2 py-1 rounded-full shadow",children:["-",r,"%"]}),(0,a.jsxs)("div",{className:"absolute bottom-0 w-full text-white px-3 py-2 z-10",children:[(0,a.jsx)("div",{className:"text-sm font-medium line-clamp-2",children:e.name}),(0,a.jsx)("div",{className:"text-sm font-bold flex items-center gap-1 mt-1",children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"line-through text-xs text-gray-300 flex items-center gap-1",dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price).toFixed(2)]}),(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.sale_price).toFixed(2)]})]}):(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price).toFixed(2)]})})]})]})},e.id)})})]})}},7719:(e,t,s)=>{"use strict";s.d(t,{_:()=>c});var a=s(5959),r=s(9863),l=s(7303),n=s(1537),i=s(7954),o=s(5275);let c=(0,a.v)()((0,r.Zr)((e,t)=>({items:[],hydrated:!1,setHydrated:t=>e({hydrated:t}),addItem:s=>{var a;let r=t().items,i=r.find(e=>e.id===s.id),o=(null==(a=s.cities_stock)?void 0:a.stock)||0,c="riyadh"===s.city?s.main_stock||0:o+(s.main_stock||0),d=((null==i?void 0:i.qty)||0)+s.qty;if(d>c){e({items:r.map(e=>e.id===s.id?{...e,qty:c}:e)});{let e=window.location.pathname.startsWith("/en")?"en":"ar";l.Ay.error((0,n.t)(e,"cart.toast.exceedsStock"));return}}i?e({items:r.map(e=>e.id===s.id?{...e,qty:d}:e)}):e({items:[...r,s]})},removeItem:s=>{let a=t().items.find(e=>e.id===s);e({items:t().items.filter(e=>e.id!==s)}),a&&((0,o.d)({ecommerce:null}),(0,o.d)({event:"remove_from_cart",ecommerce:{currency:"SAR",value:Number((a.price*a.qty).toFixed(2)),items:[{item_name:a.name,item_id:a.id,price:Number(a.price.toFixed(2)),item_brand:"Nabataty",index:1,quantity:a.qty}]}}));let r=i.N.getState().selected,c=i.N.getState().clearGiftCard;r&&r.id===s&&c();{let e=window.location.pathname.startsWith("/en")?"en":"ar";l.Ay.success((0,n.t)(e,"cart.toast.removed"))}},updateQty:(s,a)=>e({items:t().items.map(e=>e.id===s?{...e,qty:a}:e)}),clearCart:()=>e({items:[]})}),{name:"nabataty-cart-storage",storage:(0,r.KU)(()=>localStorage),partialize:e=>({items:e.items}),onRehydrateStorage:()=>e=>{null==e||e.setHydrated(!0)}}))},7954:(e,t,s)=>{"use strict";s.d(t,{N:()=>l});var a=s(5959),r=s(9863);let l=(0,a.v)()((0,r.Zr)(e=>({selected:null,setGiftCard:t=>e({selected:t}),clearGiftCard:()=>e({selected:null})}),{name:"nabataty-gift-card"}))},8320:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var a=s(5155),r=s(2619),l=s.n(r),n=s(5239),i=s(4768),o=s(1537),c=s(898),d=s(6191),m=s(2115),u=s(5275),x=s(7719),h=s(213),p=s(0);function g(e){let{slug:t,lang:s,title:r,products:g,categoryId:f,href:b}=e,v=(0,m.useRef)(!1),{addItem:w}=(0,x._)(),{open:j}=(0,h.H)(),{city:N}=(0,p.D)(),y="en"===s?"en":"ar";return(0,m.useEffect)(()=>
1{if(v.current)return;let e=g.map((e,t)=>({item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:t+1,item_list_name:"Category - ".concat(r),item_category:r}));e.length&&((0,u.d)({event:"view_item_list",ecommerce:{items:e}}),v.current=!0)},[g,r]),(0,a.jsxs)("section",{className:"mt-6",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"md:text-xl text-lg font-bold",children:r}),null!==b&&(0,a.jsx)(l(),{href:null!=b?b:"".concat("en"==s?"/en":"","/product-category/").concat(t),className:"text-sm border-b border-brand-green transition text-brand-green font-semibold",children:(0,o.t)(s,"common.viewMore")},f)]}),(0,a.jsx)("div",{className:"flex gap-3 overflow-x-auto py-4 rtl:-ml-4 ltr:-mr-4 rtl:pl-4 ltr:pr-4 scrollbar-thin",children:g.map(e=>{var t,m;let x=e.sale_price&&e.sale_price>0,h=x?Math.round(100-e.sale_price/e.price*100):null,p=(null==(t=e.cities_stock)?void 0:t.stock)>0&&(null==(m=e.cities_stock)?void 0:m.fast_shipping);return(0,a.jsxs)(l(),{href:"".concat("en"==s?"/en":"","/product/").concat(e.slug),className:"flex-shrink-0 md:w-[200px] w-[160px] p-1 rounded-xl shadow-sm bg-white",children:[(0,a.jsxs)("div",{className:"relative rounded-lg overflow-hidden bg-gray-100 aspect-[1/1]",children:[(0,a.jsx)(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover"}),x&&(0,a.jsxs)("span",{className:"absolute top-2 left-2 bg-white text-green-600 text-xs font-semibold px-2 py-1 rounded-full shadow",children:[h,"%-"]})]}),(0,a.jsx)("div",{className:"mt-2 mb-3 text-sm line-clamp-2",children:e.name}),(0,a.jsx)("div",{className:"text-sm font-bold text-black",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"line-through text-gray-400 text-xs ltr:mr-1 rtl:ml-1",dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]}),(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.sale_price.toFixed(2))]})]}):(0,a.jsxs)("span",{dir:"ltr",children:[(0,a.jsx)(i.A,{}),Number(e.price.toFixed(2))]})}),(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs mt-2",children:[p&&(0,a.jsxs)("div",{className:"bg-brand-light text-green-600 text-[10px] px-2 py-1 rounded-full shadow flex items-center gap-1 z-10",children:[(0,a.jsx)("span",{children:(0,o.t)(s,"product.getItToday")}),(0,a.jsx)(c.dv1,{className:"text-xs"})]}),(0,a.jsx)("button",{type:"button",onClick:t=>{var s;t.preventDefault(),t.stopPropagation(),w({id:e.id,slug:e.slug,name:e.name,image:e.image,price:e.price,sale_price:e.sale_price,qty:1,main_stock:e.main_stock||0,cities_stock:{name:N,stock:(null==(s=e.cities_stock)?void 0:s.stock)||0},city:N}),(0,u.d)({ecommerce:null}),(0,u.d)({event:"add_to_cart",ecommerce:{items:[{item_name:e.name,item_id:e.id,price:Number(e.price.toFixed(2)),item_brand:"Nabataty",index:1,item_list_name:"Category - ".concat(r),quantity:1}]}}),j()},"aria-label":(0,o.t)(y,"product.addToCart"),className:"ms-auto flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full bg-brand-green text-white shadow hover:bg-green-800 transition z-10 cursor-pointer",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]})]},e.id)})})]})}},9072:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,1356,23)),Promise.resolve().then(s.bind(s,6187)),Promise.resolve().then(s.bind(s,8320)),Promise.resolve().then(s.bind(s,6998)),Promise.resolve().then(s.bind(s,4371)),Promise.resolve().then(s.bind(s,5703)),Promise.resolve().then(s.bind(s,6199)),Promise.resolve().then(s.bind(s,1392)),Promise.resolve().then(s.bind(s,1575)),Promise.resolve().then(s.bind(s,6251))},9863:(e,t,s)=>{"use strict";function a(e,t){let s;try{s=e()}catch(e){return}return{getItem:e=>{var a;let r=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),l=null!=(a=s.getItem(e))?a:null;return l instanceof Promise?l.then(r):r(l)},setItem:(e,a)=>s.setItem(e,JSON.stringify(a,null==t?void 0:t.replacer)),removeItem:e=>s.removeItem(e)}}s.d(t,{KU:()=>a,Zr:()=>l});let r=e=>t=>{try{let s=e(t);if(s instanceof Promise)return s;return{then:e=>r(e)(s),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},l=(e,t)=>
1(s,l,n)=>{let i,o={storage:a(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,d=new Set,m=new Set,u=o.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),s(...e)},l,n);let x=()=>{let e=o.partialize({...l()});return u.setItem(o.name,{state:e,version:o.version})},h=n.setState;n.setState=(e,t)=>(h(e,t),x());let p=e((...e)=>(s(...e),x()),l,n);n.getInitialState=()=>p;let g=()=>{var e,t;if(!u)return;c=!1,d.forEach(e=>{var t;return e(null!=(t=l())?t:p)});let a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=l())?e:p))||void 0;return r(u.getItem.bind(u))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[a,r]=e;if(s(i=o.merge(r,null!=(t=l())?t:p),!0),a)return x()}).then(()=>{null==a||a(i,void 0),i=l(),c=!0,m.forEach(e=>e(i))}).catch(e=>{null==a||a(void 0,e)})};return n.persist={setOptions:e=>{o={...o,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>c,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(m.add(e),()=>{m.delete(e)})},o.skipHydration||g(),i||p}}},e=>{e.O(0,[7597,6711,1356,2619,7303,4831,1537,8441,1255,7358],()=>e(e.s=9072)),_N_E=e.O()}]);
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.