1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8834],{73247:function(e,a,t){"use strict";t.d(a,{Z:function(){return o}});let o=(0,t(79205).Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},21226:function(e,a,t){"use strict";t.d(a,{H:function(){return c},a7:function(){return o},ac:function(){return i}});let o=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!e)return"";let t=e.replace("#","");if(3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length)return console.error("Invalid HEX:",e),e;let o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),c=parseInt(t.slice(4,6),16);return"rgba(".concat(o,", ").concat(i,", ").concat(c,", ").concat(a,")")};function i(e){let a,t,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,c=i/10,s=Math.round(255*c).toString(16).padStart(2,"0");if(e.startsWith("#")){let d=e.replace("#","");return 3===d.length&&(d=d.split("").map(e=>e+e).join("")),a=parseInt(d.substring(0,2),16),t=parseInt(d.substring(2,4),16),o=parseInt(d.substring(4,6),16),{rgba:"rgba(".concat(a,", ").concat(t,", ").concat(o,", ").concat(c,")"),hex:"#".concat(d).concat(s),opacity:"".concat(10*i,"%")}}if(e.startsWith("rgb")){let d=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(d){a=parseInt(d[1]),t=parseInt(d[2]),o=parseInt(d[3]);let e=e=>e.toString(16).padStart(2,"0"),r="#".concat(e(a)).concat(e(t)).concat(e(o));return{rgba:"rgba(".concat(a,", ").concat(t,", ").concat(o,", ").concat(c,")"),hex:"".concat(r).concat(s),opacity:"".concat(10*i,"%")}}}return{error:"Invalid color format!"}}let c=(e,a)=>{if(!e)return"";if((e=e.trim()).startsWith("#")){let t=parseInt(e.replace("#",""),16);return"rgba(".concat(t>>16&255,", ").concat(t>>8&255,", ").concat(255&t,", ").concat(a,")")}if(e.startsWith("rgb(")){let[t,o,i]=e.replace("rgb(","").replace(")","").split(",").map(e=>parseFloat(e.trim()));return"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(a,")")}if(e.startsWith("rgba(")){let[t,o,i]=e.replace("rgba(","").replace(")","").split(",").map(e=>parseFloat(e.trim()));return"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(a,")")}return e}},90035:function(e,a,t){"use strict";function o(e){e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1));let a=e.match(/{[^}]+}/g);if(!a)return[];let t=[];for(let e of a){let a={};for(let t of e.replace(/[{}]/g,"").split(/,(?![^"]*"(?:(?:[^"]*"){2})*[^"]*$)/)){let[e,o]=t.split(":").map(e=>e.trim());if(!e||!o)continue;let i=e.replace(/"/g,""),c=o;if((c=c.replace(/,$/,"")).startsWith("http")){a[i]=c;continue}if(c=c.replace(/^"|"$/g,""),/^\$?[0-9.]+$/.test(c)){a[i]=Number(c.replace("$",""));continue}a[i]=c}t.push(a)}return t}t.d(a,{g:function(){return o}})},1426:function(e,a,t){"use strict";var o=t(57437),i=t(29),c=t.n(i);t(2265);var s=t(19764),d=t(10476);t(7354),t(76889);var r=t(1679);a.Z=e=>{let{banners:a}=e;return(0,o.jsx)("div",{className:"bg-white pt-6 mt-0 drop-shadow-none offerslider container mx-auto lg:max-w-[1200px]",children:(0,o.jsxs)("div",{className:"jsx-5d3c758b48b54b17 sm:mx-auto sm:max-w-7xl w-full lg:px-0",children:[(0,o.jsx)(c(),{id:"5d3c758b48b54b17",children:".offerslider .swiper-pagination-bullet{background:#000;opacity:.3}.offerslider .swiper-pagination-bullet-active{background:#000;opacity:.8}"}),(0,o.jsx)(s.tq,{modules:[d.pt],spaceBetween:0,slidesPerView:3,loop:!0,autoplay:{delay:2500,disableOnInteraction:!1},speed:600,breakpoints:{0:{slidesPerView:1,spaceBetween:10},480:{slidesPerView:1,spaceBetween:12},768:{slidesPerView:2,spaceBetween:16},1024:{slidesPerView:3,spaceBetween:20}},className:"offerslider",children:null==a?void 0:a.map((e,a)=>(0,o.jsx)(s.o5,{children:(0,o.jsx)("div",{className:"jsx-5d3c758b48b54b17 cursor-pointer relative h-[144px] lg:h-[191px] w-full",children:(0,o.jsx)(r.default,{src:e,fill:!0,alt:"offer-banner-".concat(a),className:"rounded-xl w-[100%] h-[100%] object-cover overflow-hidden"})})},a))})]})})}},78834:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return I}});var o=t(57437),i=t(2265),c=t(27648),s=t(73247),d=t(32233),r=t(1679);let n={banner_top:"https://i.postimg.cc/N0Dgrbxt/image-removebg-preview.png",banner_top_lottie:"https://lottie.host/37854703-8f22-488e-9fff-acab485225f5/iPegOtVPSO.json",offerSection_title:"Dairy, Bread & Eggs \uD83E\uDD5A",offerSection_bannerImage:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product_horizontal_strip/eb2686b7-c97e-4119-ac51-7e1bb9434350.gif",offerSection_products:[{id:1,name:"Modern Family Special Bread",price:52,rating:4.5,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp",path:"/"},{id:2,name:"KKP White Eggs",price:68,rating:4.8,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/8f76731e-8b72-4f2d-8ff4-1577b12a4d87.webp",path:"/product/kkp-white-eggs"},{id:3,name:"Amul Butter - 100g",price:56,rating:4.7,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp",path:"/"},{id:4,name:"Mother Dairy Toned Milk - 1L",price:64,rating:4.6,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp",path:"/"},{id:5,name:"Britannia Whole Wheat Bread",price:50,rating:4.4,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp",path:"/"}],adsbanner_images:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/f8fa2e5e-1ef1-485a-8e91-51204ae98bd1.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/b6258450-f5a9-4b59-9ab0-69e1318a157d.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/a9aca47b-c3c2-4515-828b-0b19bcca1e0c.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/a84628cb-9375-4023-bdf5-c3f63b03a226.webp",Wintersale_title:"Be warm, look cool!",Wintersale_subtitle:"Winter needs for you this shivering season",Wintersale_bannerImage:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_supermarket/product_horizontal_strip/4ba88dbc-f5dc-4f5c-b717-daaf6a5d376b.gif",Wintersale_products:[{id:1,name:"Modern Family Special Bread",price:52,rating:4.5,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp",path:"/"}],dairyProducts_title:"Quick Bites, Anytime!",dairyProducts_subt
1itle:"Fast, Fresh, and Delicious \uD83D\uDE0D",dairyProducts_category:{},dairyProduct_categorylist:[{id:1,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/8eff96ec-5ad6-4304-bcf5-f0cae5b14089.webp",path:"/bread",imageWidthandheight:"110px",title:"Dairy, Eggs & Bread",backgroundColor:"rgba(236, 60, 28, 0.2)"},{id:2,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/a2e3e027-8dcc-4094-b523-6d84e3ed4b44.webp",path:"/ready-to-eat",imageWidthandheight:"110px",title:"Ready to Eat & Cook",backgroundColor:"rgba(228, 156, 20, 0.2)"},{id:3,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/427dbd29-5369-43cb-be28-0cae4628daaf.webp",path:"/pastas",imageWidthandheight:"110px",title:"Pastas",backgroundColor:"rgba(228, 156, 20, 0.2)"},{id:4,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/fbfd2744-68a0-488d-81ef-252cc7beac17.webp",path:"/noodles",imageWidthandheight:"110px",title:"Noodles & Vermicelli",backgroundColor:"rgba(236, 60, 28, 0.2)"},{id:5,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/4ccfa50c-2710-408f-bec2-1b7740fe53a2.webp",path:"/instant-frozen",imageWidthandheight:"110px",title:"Instant & Frozen",backgroundColor:"rgba(236, 60, 28, 0.2)"},{id:6,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/0ccaea21-7f08-497c-afe3-8a6159f38fd6.webp",path:"/baking-dessert",imageWidthandheight:"110px",title:"Baking & Dessert Mix",backgroundColor:"rgba(236, 60, 28, 0.2)"},{id:7,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/0035740d-0cfd-4d68-ba9f-b5999091f551.webp",path:"/frozen-veg",imageWidthandheight:"110px",title:"Frozen Veg",backgroundColor:"rgba(236, 60, 28, 0.2)"},{id:8,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/20173dc1-6561-4512-b15f-819d9b47ad20.webp",path:"/soups",imageWidthandheight:"110px",title:"Soups",backgroundColor:"rgba(236, 60, 28, 0.2)"}],Indiansweetstreats_title:"Indian sweets & treats",Indiansweetstreats_subtitle:"Upto 30% off",Indiansweetstreats_product:{},Indiansweetstreats_productlist:[{id:1,title:"Modern Family Special Bread",price:52,variant_id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"},{id:2,title:"Cadbury Silk Plum Cake Chocolate Bar",price:280,variant_id:4.8,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_supermarket/product/95a9c3df-2dc9-47ba-98e1-13dc0e4db588.webp"},{id:3,title:"Amul Butter - 100g",price:56,variant_id:4.7,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"}],fight_the_flu_title:"Fight the flu, like a pro!",fight_the_flu_subtitle:"Upto 60% off",fight_the_flu_product:{},fight_the_flu_productlist:[{id:1,title:"Modern Family Special Bread",price:52,variant_id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"},{id:2,title:"Cadbury Silk Plum Cake Chocolate Bar",price:280,variant_id:4.8,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_supermarket/product/95a9c3df-2dc9-47ba-98e1-13dc0e4db588.webp"},{id:3,title:"Amul Butter - 100g",price:56,variant_id:4.7,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"}],BestSelling_title:"Bestselling deals for you!",BestSelling_subtitle:"A range of top sellers at just one click",BestSelling_product:{},BestSelling_productlist:[{id:1,title:"Modern Family Special Bread",price:"52",variant_id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"},{id:2,title:"KKP White Eggs",price:68,variant_id:4.8,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/8f76731e-8b72-4f2d-8ff4-1577b12a4d87.webp"},{id:3,title:"Amul Butter - 100g",price:56,variant_id:4.7,image:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp"}],colorHex:"#fff",colorGradient:"linear-gradient(241deg,#C7C7C7_49%,#000000_71%)",searchBar:{placeholder:"Search for products...",bgColor:"rgba(220,252,231)",textColor:"rgba(107,114,128)",iconColor:"rgb(34,197,94)"},democategory:[{id:1,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/5ccf73af-de2c-44f2-b5e4-ab6b28727cd9.webp"},{id:2,path:"/babycare",title:"Stationery & Electrical",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/8043b595-ea91-4a28-93f8-56396da05e06.webp"},{id:3,path:"/babycare",title:"Health & Pharma",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/cdf5f910-cc64-474b-8221-751c
159a4c745.webp"},{id:4,path:"/babycare",title:"Personal Care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/d6de905d-c2ef-4377-86f8-2cee723ffcd1.webp"},{id:5,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/182c0e4a-8d1f-4c4a-809e-1725e8253ce1.webp"},{id:6,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/8eff96ec-5ad6-4304-bcf5-f0cae5b14089.webp"},{id:7,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/6e31eeb4-be1b-42cd-b40f-46744269816b.webp"},{id:8,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/3d87bc43-07a7-4272-95e9-98a013499f8c.webp"},{id:9,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/38d1ac42-36b1-4acb-aa12-70b26edab533.webp"},{id:10,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/690f9f84-5548-40f7-b103-9533355387be.webp"},{id:11,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/b2f560d0-55eb-4ded-80de-09c2e24a33c8.webp"},{id:12,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/cdf7526b-6d0c-43f6-ac4b-501775d2890f.webp"},{id:13,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/4ccfa50c-2710-408f-bec2-1b7740fe53a2.webp"},{id:14,path:"/babycare",title:"baby care",src:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/524745ea-3627-48e6-ab0e-51725ba76e7e.webp"}],ExcusiveStore:{backgroundColor:"rgb(255,255,255)",title:"Exclusive stores",categorys:[{id:1,title:"Dairy, Eggs & Bread",path:"/fruits",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/8eff96ec-5ad6-4304-bcf5-f0cae5b14089.webp",color:"rgb(255, 243, 228)"},{id:2,title:"Rice, Atta & Dals",path:"/dairy-eggs",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/e7d04747-dbe3-4969-b648-ace0d44a6f48.webp",color:"rgb(230, 249, 239)"},{id:3,title:"Masala & Dry Fruits",path:"/bakery",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/524745ea-3627-48e6-ab0e-51725ba76e7e.webp",color:"rgb(255, 246, 230)"},{id:4,title:"Chips & Namkeen",path:"/snacks",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/d6de905d-c2ef-4377-86f8-2cee723ffcd1.webp",color:"rgb(240, 240, 255)"},{id:5,title:"Drinks & Juices",path:"/vegetables",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/6e31eeb4-be1b-42cd-b40f-46744269816b.webp",color:"rgb(228, 255, 239)"},{id:6,title:"Sweets & Chocolates",path:"/frozen",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/5a91e3f6-1096-4c73-99d9-18af2db66bb8.webp",color:"rgb(233, 247, 255)"},{id:7,title:"Biscuits & Cookies",path:"/personal-care",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/8043b595-ea91-4a28-93f8-56396da05e06.webp",color:"rgb(255, 239, 239)"},{id:8,title:"Instant & Frozen",path:"/home-essentials",img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/category/4ccfa50c-2710-408f-bec2-1b7740fe53a2.webp",color:"rgb(242, 252, 247)"}]},Exploreallproducts:{title:"Explore all",subtitle:"Discover our full collection, just for you.",products:[{id:1,img:"https://cdn.zepio.io/demo_electronics/product/bcda700f-44ec-4401-b1a6-8aa461cbdd97.webp",price:"450",title:"Table lamp White",mrp:"999",disccount:"55% OFF"},{id:2,img:"https://cdn.zepio.io/demo_electronics/product/de6698b9-b77b-4d91-bc51-9dbbc7637981.webp",price:"12000",title:"6 in 1 Convertible 1.5 Ton 5 Star Split AC",mrp:"76000",disccount:"85% OFF"},{id:3,img:"https://cdn.zepio.io/demo_electronics/product/75fa8122-f9f6-4144-b16a-918fc007f10a.webp",price:"2500",title:"1.08 m (43) QLED QEF1 4K Samsung Vision AI Smart T",mrp:"3400",disccount:"27% OFF"},{id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/71d90ad8-091a-4edc-b517-37fdac61e0d4.webp",price:"11500",title:"Microwave Oven",mrp:"11500",disccount:"0% OFF"},{id:5,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/aeac030b-3f9c-4676-a8c8-1f068845c609.webp",price:"1699",title:"Health Monitor Band",mrp:"1999",disccount:"16% OFF"},{id:6,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/03660b0b-250f-48e3-b3fa-cffedf09ebe0.webp",price:"1599",title:"Activity Tracker",mrp:"1000",disccount:"0% OFF"},{id:7,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/a9bfbc6e-24fb-435a-bb88-23ff022db59a.webp",price:"1299",title:"Heart Rate Band",mrp:"1000",disccount:"0% OFF"},{id:8,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/fedae119-6456-4016-9877-c82b2d40dd9f.webp",price:"999",title:"Step Counter Band",mrp:"100",disccount:"0% OFF"}]}};
1var l=t(53908),p=t(21226),g=t(80789),m=t(77162);let b=()=>(0,o.jsxs)("div",{className:"flex-shrink-0 text-center animate-pulse",children:[(0,o.jsx)("div",{className:"w-20 h-20 mx-auto bg-gray-300 rounded-lg "}),(0,o.jsx)("div",{className:"h-2.5 mt-1.5 bg-gray-300 rounded-full w-16 mx-auto"})]});var f=e=>{let{themeConfig:a,handleGoShop:t,business_id:f,branchName:h,branchId:u,isDemo:x}=e,{searchBar:y}=n||{},{banner_top:w,banner_top_lottie:v}=a||{},[_,j]=(0,i.useState)(""),{data:N,isLoading:S,error:C}=(0,g.h)(null===m.b||void 0===m.b?void 0:m.b.GETCATEGORY,{method:"POST",body:{business_id:f,branch_name:h,branch_id:u}},!0),k=(0,i.useMemo)(()=>(null==N?void 0:N.data)?N.data.map(e=>({id:e.id,image:e.img,name:e.name})):[],[N]);return(0,i.useEffect)(()=>{let e=document.documentElement.style.getPropertyValue("--active-bgPrimary").trim()||getComputedStyle(document.documentElement).getPropertyValue("--active-bgPrimary").trim();j((0,p.H)(e,.12))},[]),(0,o.jsxs)("section",{className:" border-2 border-[var(--active-bgSecondary)] rounded-b-3xl mb-6",style:{backgroundColor:x?"var(--active-bgPrimary)":_},children:[(0,o.jsx)("div",{className:"p-3 container mx-auto lg:max-w-[1200px]",style:{fontFamily:"var(--tp-ff-Inter)"},children:(0,o.jsx)(c.default,{prefetch:!0,href:"/search","aria-label":"Search products",children:(0,o.jsxs)("div",{className:"flex items-center justify-between h-12 px-4 rounded-md cursor-pointer sm:mx-auto sm:max-w-7xl",style:{backgroundColor:"#fff"},children:[(0,o.jsx)("p",{className:"text-sm",style:{color:null==y?void 0:y.textColor},children:(null==y?void 0:y.placeholder)||"Search products..."}),(0,o.jsx)(s.Z,{className:"text-lg",style:{color:"var(--active-bgPrimary) "}})]})})}),(0,o.jsx)("div",{className:"sm:mx-auto sm:max-w-7xl",children:(0,o.jsx)("div",{className:"relative block sm:hidden h-[166px]",children:(0,o.jsxs)("div",{className:"flex items-center justify-between h-full px-3",children:[(0,o.jsx)(r.default,{src:w,alt:"Banner",className:"w-[150px] h-[81px]"}),(0,o.jsx)(d.nI,{src:"https://lottie.host/37854703-8f22-488e-9fff-acab485225f5/iPegOtVPSO.json",loop:!0,autoplay:!0,style:{width:"150px",height:"150px",objectFit:"contain"}})]})})}),(0,o.jsx)("div",{className:"relative z-10 pb-6 mt-0 container mx-auto lg:max-w-[1200px]",children:S?(0,o.jsx)("div",{className:"flex px-4 pb-3 space-x-4 overflow-x-auto hide-scrollbar",children:Array.from({length:5}).map((e,a)=>(0,o.jsx)(b,{},a))}):C?(0,o.jsx)("div",{className:"px-4 text-center text-red-500",children:(0,o.jsx)("p",{children:"Failed to load categories."})}):0===k.length?(0,o.jsx)("div",{className:"px-4 text-center text-gray-400",children:(0,o.jsx)("p",{children:"No categories found."})}):(0,o.jsx)("div",{className:"flex px-4 pb-3 space-x-4 overflow-x-auto hide-scrollbar",children:k.map(e=>(0,o.jsxs)("div",{className:"flex-shrink-0 text-center","aria-label":"Category ".concat(e.name),children:[(0,o.jsx)("button",{onClick:()=>t(null==e?void 0:e.id),className:"relative rounded-lg overflow-hidden",children:(0,o.jsx)(r.default,{src:e.image,alt:e.name,fill:!0,className:"w-20 lg:w-[118px] h-20 lg:h-[118px] mx-auto rounded-lg border-2 border-[var(--active-bgmain)] bg-[var(--active-bgSecondary)] object-cover"})}),(0,o.jsx)(l.Z,{text:null==e?void 0:e.name,fontSize:"mt-1 text-xs font-medium text-black truncate"})]},e.id))})})]})};t(97425),t(49608);var h=t(20824),u=t(1426),x=t(75237),y=e=>{var a;let{shop:t,isDemo:c=!1,themeConfig:s,handleGoShop:d}=e,{offerSection_title:n,offerSection_bannerImage:l,offerSection_products:p}=s,g=(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.products)||[],m=c?p:g,b=(0,i.useMemo)(()=>Array.isArray(m)?m:[],[m]),f=(0,i.useMemo)(()=>{let e=null==s?void 0:s.adsbanner_images;return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]},[s]);return n||0!==b.length||l?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"pt-12 pb-3 mb-3 -mt-12 rounded-b-3xl",style:{backgroundColor:"var(--active-bgmain)",fontFamily:"var(--tp-ff-Inter)"},children:(0,o.jsxs)("div",{className:"container mx-auto lg:max-w-[1200px]",children:[n&&(0,o.jsx)(h.Z,{title:n}),(0,o.jsxs)("div",{className:"flex px-4 pb-6 space-x-4 overflow-x-scroll hide-scrollbar sm:sp
1ace-x-0 sm:overflow-x-visible sm:px-0 sm:grid sm:mx-auto sm:max-w-7xl md:grid-cols-3 lg:grid-cols-5 sm:gap-y-6 sm:gap-x-12",children:[l&&(0,o.jsx)("div",{className:"flex-none sm:flex-initial sm:w-[208px]",children:(0,o.jsx)(r.default,{src:l,alt:n||"Offer banner",fill:!0,className:"rounded-md w-[208px] h-[255px] object-cover"})}),b.map((e,a)=>(0,o.jsx)(x.Z,{item:e,paths:d},(null==e?void 0:e.id)||a))]})]})}),f.length>0&&(0,o.jsx)(u.Z,{banners:f})]}):null},w=t(33079),v=e=>{let{handleGoShop:a,isDemo:t,business_id:c,branchName:s,branchId:d}=e,{democategory:r}=n||{},{data:l,isLoading:p,error:b}=(0,g.h)(null===m.b||void 0===m.b?void 0:m.b.GETCATEGORY,{method:"POST",body:{business_id:c,branch_name:s,branch_id:d}},!0),f=(0,i.useMemo)(()=>(null==l?void 0:l.data)?l.data.map(e=>({id:e.id,href:"/shop",image:e.img,name:e.name})):[],[l]);return p?(0,o.jsxs)("div",{className:"py-6 px-4 bg-white",children:[(0,o.jsx)(h.Z,{title:"Shop by Category"}),(0,o.jsx)("div",{className:"grid gap-x-2 gap-y-4 sm:mx-auto sm:max-w-7xl sm:gap-x-12",style:{gridTemplateColumns:"repeat(4, minmax(0px, 1fr))"},children:Array.from({length:4}).map((e,a)=>(0,o.jsx)("div",{className:"w-full h-40 bg-gray-200 rounded-lg animate-pulse"},a))})]}):b?(0,o.jsx)("div",{className:"py-6 px-4 bg-white text-center text-red-500",children:(0,o.jsx)("p",{children:"Failed to load categories. Please try again later."})}):(0,o.jsxs)("div",{className:"py-6 px-4 bg-white container mx-auto lg:max-w-[1200px]",children:[(0,o.jsx)(h.Z,{title:"Shop by Category"}),(0,o.jsx)("div",{className:"grid grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-x-2 gap-y-4 sm:mx-auto sm:max-w-7xl sm:gap-x-12",children:f.map((e,t)=>(0,o.jsx)(w.Z,{alt:e.name,path:a,image:e.image,background:"rgb(226, 232, 240)",t
1itle:e.name},e.id||t))})]})},_=e=>{let{themeConfig:a,isDemo:t}=e,{Wintersale_products:i}=a||{},{Wintersale_title:c,Wintersale_subtitle:s,Wintersale_bannerImage:d}=a;return(0,o.jsxs)("div",{className:"pt-6 pb-3 container mx-auto lg:max-w-[1200px]",style:{fontFamily:"var(--tp-ff-Inter)"},children:[(0,o.jsx)(h.Z,{title:c,subtitle:s}),(0,o.jsxs)("div",{className:"flex px-4 pb-6 space-x-4 overflow-x-scroll hide-scrollbar sm:space-x-0 sm:overflow-x-visible sm:px-0 sm:grid sm:mx-auto sm:max-w-7xl md:grid-cols-3 lg:grid-cols-5 sm:gap-y-6 sm:gap-x-12",children:[d&&(0,o.jsx)("div",{className:"flex-none sm:flex-initial sm:w-[208px]",children:(0,o.jsx)(r.default,{src:d,alt:c,className:"rounded-md w-[208px] h-[255px] sm:h-[255px] sm:w-[208px] object-cover"})}),null==i?void 0:i.map((e,a)=>(0,o.jsx)(x.Z,{item:e},a))]})]})},j=e=>{let{themeConfig:a,isDemo:t,handleGoShop:i}=e,{dairyProducts_title:c,dairyProducts_subtitle:s,dairyProduct_categorylist:d}=a,r=d;if("string"==typeof r)try{"string"==typeof r&&(r=/^\s*(\{\s*\}|\[\s*\]|\[\s*\{\s*\}\s*\])\s*$/.test(r)?[]:parseLooseArray(r))}catch(e){console.error("Invalid JSON string:",r)}return(0,o.jsxs)("div",{className:"py-6 bg-white container mx-auto lg:max-w-[1200px]",children:[(0,o.jsx)(h.Z,{title:c,subtitle:s}),(0,o.jsx)("div",{className:"flex space-x-4 overflow-x-scroll pb-3 px-4 hide-scrollbar",children:null==r?void 0:r.map(e=>(0,o.jsx)(w.Z,{alt:e.title,image:e.img,path:i,width:e.imageWidthandheight,height:e.imageWidthandheight,background:e.backgroundColor,id:e.id},e.id))})]})},N=t(90035),S=e=>{let{themeConfig:a,themeIndex:t,isDemo:i,data:c}=e,{Indiansweetstreats_title:s,Indiansweetstreats_subtitle:d,Indiansweetstreats_productlist:r,fight_the_flu_title:n,fight_the_flu_subtitle:l,fight_the_flu_productlist:p,BestSelling_title:g,BestSelling_subtitle:m,BestSelling_productlist:b}=a;if("string"==typeof p||"string"===b)try{let e=/^\s*(\{\s*\}|\[\s*\]|\[\s*\{\s*\}\s*\])\s*$/;"string"==typeof p&&(p=e.test(p)?[]:(0,N.g)(p)),"string"==typeof b&&(b=e.test(b)?[]:(0,N.g)(b))}catch(e){console.error("Invalid JSON string:",p||b)}return(0,o.jsxs)("div",{className:"container mx-auto lg:max-w-[1200px]",children:[(0,o.jsxs)("div",{className:"py-6 bg-white",children:[(0,o.jsx)(h.Z,{title:s,subtitle:d}),(0,o.jsx)("div",{className:"flex space-x-4 overflow-x-scroll pb-3 px-4 hide-scrollbar",children:null==r?void 0:r.map((e,a)=>(0,o.jsx)(x.Z,{item:e,themeIndex:t},a))})]}),(0,o.jsxs)("div",{className:"py-6 bg-white",children:[(0,o.jsx)(h.Z,{title:n,subtitle:l}),(0,o.jsx)("div",{className:"flex space-x-4 overflow-x-scroll pb-3 px-4 hide-scrollbar",children:null==p?void 0:p.map((e,a)=>(0,o.jsx)(x.Z,{item:e,themeIndex:t},a))})]}),(0,o.jsxs)("div",{className:"py-6 bg-white",children:[(0,o.jsx)(h.Z,{title:g,subtitle:m}),(0,o.jsx)("div",{className:"flex space-x-4 overflow-x-scroll pb-3 px-4 hide-scrollbar",children:null==b?void 0:b.map((e,a)=>(0,o.jsx)(x.Z,{item:e,themeIndex:t},a))})]})]})},C=t(95342),k=t(99376),F=JSON.parse('{"BestSelling_productlist":[{"id":1,"img":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp","price":"52","title":"Modern Family Special Bread","variant_id":4},{"id":2,"image":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/8f76731e-8b72-4f2d-8ff4-1577b12a4d87.webp","price":68,"title":"KKP White Eggs","variant_id":4.8},{"id":3,"image":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product/f147ed04-898d-4718-a856-f7e8ae2575a8.webp","price":56,"title":"Amul Butter - 100g","variant_id":4.7}],"BestSelling_subtitle":"A range of top sellers at just one click","BestSelling_title":"Bestselling deals for you!","Indiansweetstreats_subtitle":"Upto 30% off","Indiansweetstreats_title":"Indian sweets & treats","Wintersale_bannerImage":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_supermarket/product_horizontal_strip/4ba88dbc-f5dc-4f5c-b717-daaf6a5d376b.gif","Wintersale_subtitle":"Winter needs for you this shivering season","Wintersale_title":"Be warm, look cool!","adsbanner_images":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/f8fa2e5e-1ef1-485a-8e91-51204ae98bd1.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/b6258450-f5a9-4b59-9ab0-69e1318a157d.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/a9aca47b-c3c2-4515-828b-0b19bcca1e0c.webp,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/banner_slider_large/a84628cb-9375-4023-bdf5-c3f63b03a226.webp","banner_top":"https://i.postimg.cc/N0Dgrbxt/image-removebg-preview.png","banner_top_lottie":"https://lottie.host/37854703-8f22-488e-9fff-acab485225f5/iPegOtVPSO.json","dairyProducts_subt
1itle":"Fast, Fresh, and Delicious \uD83D\uDE0D","dairyProducts_title":"Quick Bites, Anytime!","fight_the_flu_subtitle":"Upto 60% off","fight_the_flu_title":"Fight the flu, like a pro!","offerSection_bannerImage":"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/third/product_horizontal_strip/eb2686b7-c97e-4119-ac51-7e1bb9434350.gif","offerSection_title":"Dairy, Bread & Eggs \uD83E\uDD5A"}'),B=t(78032);t(86704);var I=e=>{var a,t,i,c;let{shop:s,themeIndex:d,isDemoMode:r}=e,l=(0,k.useRouter)(),p=null==s?void 0:s.id,g=null==s?void 0:null===(a=s.branch)||void 0===a?void 0:a.name,m=null==s?void 0:null===(t=s.branch)||void 0===t?void 0:t.id,b="rgba(255, 215, 0, 0.85)",h="rgba(255, 223, 70, 0.55)",u="rgba(255, 250, 205, 0.12)";(0,C.Z)({bgPrimary:b,bgmain:u,bgSecondary:h});let x=e=>{let a="/shop";e&&(a+="&id=".concat(e)),l.push(a)},w=(null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.themeConfig)||F,N=r?n:null==s?void 0:null===(c=s.data)||void 0===c?void 0:c.themeConfig;return(0,o.jsxs)("div",{className:"mb-20 lg:mb-0",style:{fontFamily:"var(--tp-ff-Inter)"},children:[(0,o.jsx)(C.Z,{bgPrimary:b,bgmain:u,bgSecondary:h}),(0,o.jsx)(f,{themeConfig:w,handleGoShop:x,themeIndex:d,isDemo:r,shop:s,business_id:p,branchName:g,branchId:m}),(0,o.jsx)(y,{themeConfig:w,isDemo:r,handleGoShop:x,shop:s}),(0,o.jsx)(v,{bgPrimary:b,themeIndex:d,themeConfig:w,isDemo:r,shop:s,business_id:p,handleGoShop:x,branchName:g,branchId:m}),(0,o.jsx)(_,{themeConfig:w,isDemo:r,shop:s,business_id:p,branchName:g,branchId:m}),(0,o.jsx)(j,{themeConfig:w,handleGoShop:x,isDemo:r,shop:s,business_id:p,branchName:g,branchId:m}),(0,o.jsx)(S,{themeIndex:d,themeConfig:w,data:N,isDemo:r,shop:s,business_id:p,branchName:g,branchId:m}),(0,o.jsx)(B.Z,{isDemo:r,business_id:p,branchName:g,branchId:m,data:N})]})}},86704:function(e,a,t){"use strict";t.d(a,{V:function(){return o}});let o={Theme_11_banner:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/b5ad3228-10d7-4c3b-8a47-b9f32ce94e21.gif",Theme11_category:[{id:1,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/87e8bf71-8b03-47a2-94e7-524eefcd2dcd.webp",title:"Bluetooth Speakers",backgound:"rgba(9, 172, 221, 0.2)"},{id:2,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/712be930-838d-4948-8489-59044b7923fa.webp",title:"Car Chargers",color:"rgba(207, 208, 212, 0.2)"},{id:3,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/25d000e4-5260-4165-83a8-fb15e6dfe6f1.webp",title:"Charging Cables",color:"rgba(66, 68, 73, 0.2)"},{id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/5b2ee047-258a-46b4-b6af-cee75c019b33.webp",title:"Fitness Bands",color:"rgba(237, 142, 146, 0.2)"},{id:5,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/1e17e363-46b2-4504-918c-1be21944da09.webp",title:"Neckband Earphones",color:"rgba(114, 45, 49, 0.2)"},{id:6,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/074ee4e8-ec5a-4dd0-a0d4-6cc84bfccf45.webp",title:"Over-Ear Headphones",color:"rgba(111, 90, 62, 0.2)"},{id:7,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/5738d887-b6c9-4f8e-9be1-c077a5c64bc5.webp",title:"Power Banks",color:"rgba(66, 68, 73, 0.2)"},{id:8,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/7446e886-3619-4ede-8ff6-ca7557bf9751.webp",title:"Fitness Bands",color:"rgba(16, 211, 15, 0.2)"},{id:9,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/4712b38e-ea07-4b2b-a7e0-e53640afde96.webp",title:"True Wireless Earbuds",color:"rgba(111, 90, 62, 0.2)"},{id:10,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/a202ccaa-9f6b-4609-8d03-bbfcea459818.webp",title:"Wall Chargers",color:"rgba(154, 73, 36, 0.2)"},{id:11,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/category/924455dd-2f16-4d1e-a791-4a524cf16736.webp",title:"Wireless Chargers",color:"rgba(24, 209, 36, 0.2)"}],informationheadphone:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/688ed9ca-16ec-4003-82ed-e94bbcd92a41.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/875c0b89-706f-4b4d-840e-381e97df1351.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/08cc668e-dc69-4dcb-ba80-362ee49e5b84.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/0f96dd56-8748-4bb7-8ca2-23d9776e60b4.png",purchasePolicy:[{id:1,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/279e0f0d-21f4-45f2-9cf0-fd5dc96891b0.svg",title:"1 Year Warranty"},{id:2,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/531ff34c-ee7f-486d-b48e-cd4de5ba72fd.svg",title:"7 Days Replacement*"},{id:3,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/8bcc3775-f8d1-4d0c-ab08-03912d818cfd.svg",title:"Free Express Delivery*"},{id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/b6b4b0ca-f908-4948-9e6b-08ffce6c99d9.svg",title:"GST Billing"}],Headphonecategoryinfo:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/b620ec60-6e8b-46b1-9f35-5d6c3052f687.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/6fce09d6-ae82-4fa2-97e5-8a4cf5a3df85.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/c72cfacc-832a-4e02-9738-5c9468bb2f28.png,https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/other/3be6a4d1-2763-4734-a506-4bd260137c43.png",bestdeals:{title:"Best deals, going out soon \uD83D\uDE80",bestdeals_bannerImage:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/fourth/product_horizontal_strip/54f6f64c-e879-4069-9291-408b57c8730d.gif",product:[{id:1,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/71d90ad8-091a-4edc-b517-37fdac61e0d4.webp",price:"11,600",title:"Microwave Oven"},{id:2,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/3671ad38-e24b-4304-a47f-b222f61265f7.webp",price:"229",title:"Fast Charging Cable"},{id:3,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/6bfee35c-6ce8-4a75-a152-a794a9c03e8b.webp",price:"599",title:"Lightning Cable"},{id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/76075275-e831-4e32-af1e-9e08235ff41f.webp",price:"199",title:"Nylon USB Cable"},{id:5,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/76f57092-eb9b-4a9d-84a2-c88fc0290fb5.webp",price:"799",title:"3-in-1 Charging Cable"}]},Exploreallproducts:{title:"Explore all",subtitle:"Discover our full collection, just for you.",products:[{id:1,img:"https://cdn.zepio.io/demo_electronics/product/bcda700f-44ec-4401-b1a6-8aa461cbdd97.webp",price:"450",title:"Table lamp White",mrp:"999",disccount:"55% OFF"},{id:2,img:"https://cdn.zepio.io/demo_electronics/product/de6698b9-b77b-4d91-bc51-9dbbc7637981.webp",price:"12000",title:"6 in 1 Convert
1ible 1.5 Ton 5 Star Split AC",mrp:"76000",disccount:"85% OFF"},{id:3,img:"https://cdn.zepio.io/demo_electronics/product/75fa8122-f9f6-4144-b16a-918fc007f10a.webp",price:"2500",title:"1.08 m (43) QLED QEF1 4K Samsung Vision AI Smart T",mrp:"3400",disccount:"27% OFF"},{id:4,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/71d90ad8-091a-4edc-b517-37fdac61e0d4.webp",price:"11500",title:"Microwave Oven",mrp:"11500",disccount:"0% OFF"},{id:5,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/aeac030b-3f9c-4676-a8c8-1f068845c609.webp",price:"1699",title:"Health Monitor Band",mrp:"1999",disccount:"16% OFF"},{id:6,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/03660b0b-250f-48e3-b3fa-cffedf09ebe0.webp",price:"1599",title:"Activity Tracker",mrp:"1000",disccount:"0% OFF"},{id:7,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/a9bfbc6e-24fb-435a-bb88-23ff022db59a.webp",price:"1299",title:"Heart Rate Band",mrp:"1000",disccount:"0% OFF"},{id:8,img:"https://foodomaa.sgp1.cdn.digitaloceanspaces.com/demo_electronics/product/fedae119-6456-4016-9877-c82b2d40dd9f.webp",price:"999",title:"Step Counter Band",mrp:"100",disccount:"0% OFF"}]},headinfo:[{id:1,skuname:"Sony WH1000XM4",image:"/assets/img/Theme_12/1.png",dis:"Preminum Noise Cancellation,Multi-device Pairing"},{id:2,skuname:"Beikin X Disney Kids earphone",image:"/assets/img/Theme_12/2.png",dis:"Desgined for kids,Safe listening volume"},{id:3,skuname:"JBL 770NC Headphones",image:"/assets/img/Theme_12/3.png",dis:"Pure Bass Sound,70hrs Playtime"},{id:3,skuname:"JBL 770NC Headphones",image:"/assets/img/Theme_12/4.png",dis:"Pure Bass Sound,70hrs Playtime"}]}},49608:function(){},97425:function(){},76889:function(){},7354:function(){}}]);
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.