1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3786],{11513:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var i=a(44501),r=a(40670),n=a(14232),l=a(69241),s=a(4697),o=a(35268),d=a(77573),c=a(47951),u=a(45879);function h(e){return(0,u.Ay)("MuiBottomNavigation",e)}(0,c.A)("MuiBottomNavigation",["root"]);var g=a(37876);let x=["children","className","component","onChange","showLabels","value"],m=(0,o.Ay)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",height:56,backgroundColor:(t.vars||t).palette.background.paper}}),p=n.forwardRef(function(e,t){let a=(0,d.b)({props:e,name:"MuiBottomNavigation"}),{children:o,className:c,component:u="div",onChange:p,showLabels:A=!1,value:v}=a,f=(0,r.A)(a,x),j=(0,i.A)({},a,{component:u,showLabels:A}),y=(e=>{let{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(j);return(0,g.jsx)(m,(0,i.A)({as:u,className:(0,l.A)(y.root,c),ref:t,ownerState:j},f,{children:n.Children.map(o,(e,t)=>{if(!n.isValidElement(e))return null;let a=void 0===e.props.value?t:e.props.value;return n.cloneElement(e,{selected:a===v,showLabel:void 0!==e.props.showLabel?e.props.showLabel:A,value:a,onChange:p})})}))})},19120:(e,t,a)=>{"use strict";var i=a(29563);t.A=void 0;var r=i(a(59628)),n=a(37876);t.A=(0,r.default)((0,n.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"}),"LibraryBooks")},20359:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>U,default:()=>X});var i=a(37876),r=a(14232),n=a(33187),l=a(19055),s=a(89099),o=a(74695),d=a(25545),c=a(91665),u=a(87285),h=a(62080),g=a(41316),x=a(61032),m=a(97914),p=a(60398),A=a(64907),v=a(1992),f=a(77165);let j=async e=>{let{category_id:t}=e,{data:a}=await p.A.get("".concat(A.Z$,"/").concat(t));return a};var y=a(6995),b=a(82),w=a(89037),_=a(28343),C=a(90982);let E=e=>{let{categoryMenus:t,setCategoryId:a,category_id:n,page_limit:l,setPageLimit:s,id:o,usein:d}=e,{t:c}=(0,b.Bd)();(0,y.A)("(min-width:600px)");let[u,h]=(0,r.useState)(10),g=e=>{a(e)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(_.QE,{orientation:"horizontal",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",children:(0,i.jsxs)(w.A,{children:[(0,i.jsx)(C.z9,{sx:{color:0===n||n===o?"whiteContainer.main":"whiteContainer",backgroundColor:e=>n===o?e.palette.primary.main:"inherit","&:hover":{backgroundColor:e=>n===o?e.palette.primary.main:"inherit"}},onClick:()=>g(o),children:c("All")}),(null==t?void 0:t.length)>0&&(null==t?void 0:t.map(e=>(0,i.jsx)(C.z9,{sx:{color:t=>n===e.id&&"whiteContainer.main",backgroundColor:t=>n===e.id?t.palette.primary.main:"inherit","&:hover":{backgroundColor:t=>n===e.id?t.palette.primary.main:"inherit"}},onClick:()=>g(e.id),children:e.name},e.id)))]})})})};var k=a(77426),R=a(66756);function S(e){var t;let{product_list:a,page_limit:r=10,offset:n,setOffset:l}=e,s=(0,y.A)("(max-width:1180px)");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i.Fragment,{children:null==a||null==(t=a.products)?void 0:t.map(e=>(0,i.jsx)(g.Ay,{item:!0,sm:4,xs:12,md:s?3:2.4,children:(0,i.jsx)(k.Ay,{sm:1,xs:1,item:e,changed_bg:"true"})},null==e?void 0:e.id))}),(null==a?void 0:a.total_size)>r?(0,i.jsx)(g.Ay,{item:!0,xs:12,sm:12,md:12,align:"center",children:(0,i.jsx)(R.A,{total_size:null==a?void 0:a.total_size,page_limit:r,offset:n,setOffset:l})}):""]})}var z=a(22185),B=a(36749),M=a(82453),N=a(60795),H=a(66703),I=a(62712);let L=()=>{let[e,t]=r.useState(5);return(0,H.A)(),(0,i.jsx)(i.Fragment,{children:[...Array(e)].map((e,t)=>(0,i.jsx)(g.Ay,{item:!0,md:2.4,sm:4,xs:12,children:(0,i.jsx)(k.Ox,{children:(0,i.jsxs)(N.A,{spacing:1,children:[(0,i.jsx)(I.A,{variant:"rectangular",animation:"pulse",height:150}),(0,i.jsxs)(N.A,{padding:"1rem",children:[(0,i.jsx)(I.A,{variant:"text",animation:"wave",height:20,width:"80%"}),(0,i.jsx)(I.A,{variant:"text",animation:"wave",height:20}),(0,i.jsx)(I.A,{variant:"text",animation:"wave",height:20,width:"80%"}),(0,i.jsxs)(N.A,{direction:"row",spacing:2,children:[(0,i.jsx)(I.A,{variant:"text",animation:"wave",width:70,height:20}),(0,i.jsx)(I.A,{variant:"text",animation:"wave",width:70,height:20})]})]})]})})},t))})};var V=a(58619),T=a(72775),D=a(39430),O=a(69222);let P=e=>{var t,a,n,l,s,d;let{data:c,id:u,category_id:h,setCategoryId:p,storeData:A,offset:b,page_limit:w,type:C,setOffset:k,isLoading:R,setType:N,subCategory:H,isRefetching:I,itemIsLoading:P}=e,{selectedModule:F}=(0,o.d4)(e=>
1e.utilsData),Q=[{title:(0,T.R)(),value:(0,T.R)()},{title:(0,D.E)(),value:(0,D.E)()}],[q,J]=(0,r.useState)(Q[0].value),[U,X]=(0,r.useState)([]),Z=(0,y.A)("(max-width:1180px)"),G=(0,y.A)("(max-width:480px)"),{configData:K}=(0,o.d4)(e=>e.configData);null==K||null==(t=K.base_urls)||t.store_image_url;let{data:W,refetch:Y}=(d={category_id:h},(0,v.useQuery)("categories-details-Childes",()=>j(d),{enabled:!1,onError:f.P1}));return(0,r.useEffect)(()=>{"true"!==H&&Y()},[]),(0,r.useEffect)(()=>{u&&(null==W?void 0:W.length)>0&&X(W),p(u)},[W,u]),(0,i.jsx)(_.jB,{sx:{minHeight:"70vh"},children:(0,i.jsxs)(g.Ay,{container:!0,spacing:5,children:[(0,i.jsx)(g.Ay,{item:!0,xs:12,sm:12,md:12,align:"center",marginTop:"20px",children:(0,i.jsx)(x.A,{tabs:Q,currentTab:q,setCurrentTab:J,t:m.t})}),(0,i.jsx)(g.Ay,{item:!0,xs:12,sm:12,md:12,align:"center",children:"true"!==H&&(0,i.jsx)(E,{categoryMenus:U,setCategoryId:p,category_id:h,id:u})}),(null==F?void 0:F.module_type)==="food"&&(0,i.jsx)(g.Ay,{item:!0,xs:12,sm:12,md:12,align:"center",children:(0,i.jsx)(_.jB,{alignItems:"center",justifyContent:"center",children:(0,i.jsx)(V.A,{setType:N,type:C})})}),(0,i.jsxs)(g.Ay,{container:!0,item:!0,xs:12,sm:12,md:12,spacing:1,children:[q===(0,T.R)()&&(I||P?(0,i.jsx)(L,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{product_list:c,offset:b,page_limit:w,setOffset:k,wishlistcard:"true"}),(null==c||null==(a=c.products)?void 0:a.length)===0&&(0,i.jsx)(z.A,{image:M.A,label:O.tG})]})),q===(0,D.E)()&&(0,i.jsxs)(i.Fragment,{children:[(null==A||null==(n=A.stores)?void 0:n.length)>0&&!R&&(null==A||null==(l=A.stores)?void 0:l.map(e=>(0,i.jsx)(g.Ay,{item:!0,md:Z?3:2.4,sm:4,xs:G?12:6,children:(0,i.jsx)(B.h,{data:e})},e.id))),(null==A||null==(s=A.stores)?void 0:s.length)===0&&(0,i.jsx)(z.A,{label:O.pJ,image:M.A})]})]})]})})},F=async e=>{let{categoryId:t,offset:a,page_limit:i,type:r}=e,{data:n}=await p.A.get("".concat(A.JP,"/").concat(t,"?limit=").concat(i,"&offset=").concat(a,"&type=").concat(r));return n},Q=async e=>{let{categoryId:t,offset:a,page_limit:i,type:r}=e,{data:n}=await p.A.get("".concat(A.tg,"/").concat(t,"?limit=").concat(i,"&offset=").concat(a,"&type=").concat(r));return n};var q=a(52531),J=a(85967),U=!0;let X=e=>{var t,a;let{configData:g,categoryName:x}=e,m=(0,o.wA)(),p=(0,s.useRouter)(),A=p.query.id,[j,y]=(0,r.useState)(A),[b,w]=(0,r.useState)(1),[_,C]=(0,r.useState)("all");(0,r.useEffect)(()=>{g&&m((0,d.ff)(g))},[g,m]),(0,r.useEffect)(()=>{A&&y(A)},[A]),(0,r.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);let E=function(e){return(0,v.useQuery)(["category-landing-items",e.categoryId,e.offset,e.type],()=>F(e),{enabled:!!e.categoryId,keepPreviousData:!0,onError:f.P1})}({categoryId:j,offset:b,page_limit:20,type:_}),k=function(e){return(0,v.useQuery)(["category-landing-stores",e.categoryId,e.offset,e.type],()=>Q(e),{enabled:!!e.categoryId,keepPreviousData:!0,onError:f.P1})}({categoryId:j,offset:b,page_limit:20,type:_}),R=(null==k||null==(a=k.data)||null==(t=a.category)?void 0:t.name)||x||"Category",S=(0,r.useMemo)(()=>(0,J.buildHandoffDestination)({type:"category",id:A,moduleId:p.query.module_id||p.query.module,name:R}),[A,p.query.module_id,p.query.module,R]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Ay,{}),(0,i.jsx)(h.A,{title:"".concat(R," - ").concat((null==g?void 0:g.business_name)||"Mangwale"),businessName:null==g?void 0:g.business_name,configData:g}),(0,i.jsx)(c.A,{configData:g,children:(0,i.jsx)(u.A,{children:(0,i.jsxs)(l.A,{children:[S?(0,i.jsx)(q.A,{destination:S}):null,(0,i.jsx)(P,{data:null==E?void 0:E.data,storeData:null==k?void 0:k.data,id:A,category_id:j,setCategoryId:y,offset:b,setOffset:w,page_limit:20,type:_,setType:C,subCategory:"false",isLoading:null==k?void 0:k.isLoading,itemIsLoading:null==E?void 0:E.isLoading,isRefetching:null==E?void 0:E.isRefetching})]})})})]})}},23140:(e,t,a)=>{"use strict";a.d(t,{S:()=>s});var i=a(1992),r=a(64907),n=a(60398);let l=async e=>{let{data:t}=await n.A.post("".concat(r.QL,"?store_id=").concat(e));return t},s=()=>(0,i.useMutation)("delete_wishlist",l)},29367:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(37876);a(14232);var r=a(82179),n=a(74441),l=a(66703),s=a(35003),o=a(82);let d=e=>{let{borderRadius:t}=e,{t:a}=(0,o.Bd)(),d=(0,l.A)();return(0,i.jsx)(r.A,{sx:{position:"absolute",bottom:0,left:0,width:"100%",background:e=>(0,n.X4)(e.palette.primary.overLay,.7),color:e=>e.palette.neutral[100],padding:"10px",height:"100%",alignItems:"center",justifyContent:"center",borderRadius:t||".5rem"},children:(0,i.jsx)(s.A,{align:"center",color:"dark"===d.palette.mode?d.palette.neutral[1e3]:d.palette.neutral[100],fontWeight:"600",fontSize:"12px",children:a("CLOSED NOW")})})};d.propTypes={};let c=d},34226:(e,t,a)=>{"use strict";var i=a(29563);t.A=void 0;var r=i(a(59628)),n=a(37876);t.A=(0,r.default)((0,n.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 3c0 .55.45 1 1 1h1l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h11c.55 0 1-.45 1-1s-.45-1-1-1H7l1.1-2h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.67-1.43c-.16-.35-.52-.57-.9-.57H2c-.55 0-1 .45-1 1m16 15c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCartRounded")},54985:(e,t,a)=>{"use strict";var i=a(29563);t.A=void 0;var r=i(a(59628)),n=a(37876);t.A=(0,r.default)((0,n.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"SmsRounded")},58619:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var i=a(37876),r=a(14232),n=a(7319),l=a(27420),s=a(82),o=a(27115),d=a(28343);let c=(0,o.A)(e=>({affected:{textAlign:"right"},unaffected:{flip:!1,textAlign:"right"}})),u=e=>{let{setType:t,type:a}=e,[o,u]=(0,r.useState)("ltr");(0,r.useEffect)(()=>{localStorage.getItem("direction")&&u(localStorage.getItem("direction"))},[]);let{t:h}=(0,s.Bd)(),g=c();return(0,i.jsx)(n.A,{orientation:"horizontal",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",children:(0,i.jsxs)(l.A,{sx:{borderTopLeftRadius:"30px"},className:g.unaffected,children:[(0,i.jsx)(d.xu,{language_direction:o,background:"all"===a,onClick:()=>t("all"),sx:{width:{xs:"80px",md:"100px"}},children:h("All")}),(0,i.jsx)(d.xu,{background:"veg"===a,onClick:()=>t("veg"),sx:{width:{xs:"80px",md:"100px"}},children:h("Veg")}),(0,i.jsx)(d.xu,{language_direction:o,background:"non_veg"===a,onClick:()=>t("non_veg"),sx:{width:{xs:"80px",md:"100px"}},borderLeftBottom:"15px",borderLeftTop:"20px",children:h("Non-Veg")})]})})};u.propTypes={};let h=u},59053:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(37876);a(14232);var r=a(82),n=a(82179),l=a(66703),s=a(35003),o=a(29367);let d=e=>{let{active:t,open:a,borderRadius:d}=e,{t:c}=(0,r.Bd)(),u=(0,l.A)();return t?0===a?(0,i.jsx)(o.A,{borderRadius:d}):void 0:(0,i.jsx)(n.A,{sx:{position:"absolute",bottom:0,left:0,width:"100%",background:e=>e.palette.primary.overLay,opacity:"0.5",color:e=>e.palette.neutral[100],padding:"10px",height:"100%",alignItems:"center",justifyContent:"center",borderRadius:d||"8px"},children:(0,i.jsx)(s.A,{align:"center",color:u.palette.neutral[100],sx:{fontSize:"10px"},children:c("Closed Now")})})};d.propTypes={};let c=d},66756:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(37876);a(14232);var r=a(89037),n=a(59999),l=a(95062),s=a.n(l);let o=e=>{let{total_size:t,page_limit:a,offset:l,setOffset:s}=e;return(0,i.jsx)(r.A,{sx:{display:"flex",justifyContent:"center",marginTop:"auto"},padding:{xs:"10px 0px 0px 0px",md:"30px 0px 70px 0px"},children:(0,i.jsx)(n.A,{count:Math.ceil(t/a),onChange:(e,t)=>
1{s(t)},page:l})})};o.propTypes={total_size:s().number.isRequired,page_limit:s().number.isRequired,offset:s().string.isRequired,setOffset:s().func.isRequired};let d=o},66908:(e,t,a)=>{"use strict";var i=a(29563);t.A=void 0;var r=i(a(59628)),n=a(37876);t.A=(0,r.default)((0,n.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},82453:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i={src:"/_next/static/media/nodata.34e87c10.png",height:1004,width:1004,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEVMaXFONxwcFBBEKRxzQimHUzfCb0gkFhGcXjxzPCjEm0P0+ZAaAAAAC3RSTlMAQA4yV2+AGoQ1msXNSKIAAAAJcEhZcwAAA+gAAAPoAbV7UmsAAAAvSURBVHicY2BAABZWZgjNxcjGDmKwMrJwMoIYzKzMbExgOXZGJg4Ii4mBCSwHAQAQEgBpJ9bZpwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},86628:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[id]",function(){return a(20359)}])}},e=>{e.O(0,[3347,9759,3716,5373,9692,6545,6971,4163,8343,8779,7426,446,636,6593,8792],()=>e(e.s=86628)),_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.