1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[543],{2674:function(e,t,o){var s=o(7437),r=o(3873),l=o(6463);t.default=()=>{let{foodItems:e}=(0,r.Z)(),t=(0,l.usePathname)(),o=(0,l.useRouter)();return console.log("pathname",t),(0,s.jsxs)("div",{className:"h-16 w-full bg-white fixed bottom-0 left-0 flex items-center justify-around border border-black px-4 md:px-30 lg:px-40 xl:px-40",children:[(0,s.jsxs)("button",{onClick:()=>o.push("/"),className:"flex flex-col items-center ".concat("/"===t?"text-primary":""),children:[(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M7.30061 2.51611H5.08061C3.44584 2.51611 2.12061 3.79038 2.12061 5.36227V7.49688C2.12061 9.06877 3.44584 10.343 5.08061 10.343H7.30061C8.93537 10.343 10.2606 9.06877 10.2606 7.49688V5.36227C10.2606 3.79038 8.93537 2.51611 7.30061 2.51611Z",fill:"/"===t?"#FFB300":"#434444"}),(0,s.jsx)("path",{d:"M16.9202 2.51611H14.7002C13.0655 2.51611 11.7402 3.79038 11.7402 5.36227V7.49688C11.7402 9.06877 13.0655 10.343 14.7002 10.343H16.9202C18.555 10.343 19.8802 9.06877 19.8802 7.49688V5.36227C19.8802 3.79038 18.555 2.51611 16.9202 2.51611Z",fill:"/"===t?"#FFB300":"#434444"}),(0,s.jsx)("path",{d:"M7.30061 11.7666H5.08061C3.44584 11.7666 2.12061 13.0409 2.12061 14.6128V16.7474C2.12061 18.3193 3.44584 19.5935 5.08061 19.5935H7.30061C8.93537 19.5935 10.2606 18.3193 10.2606 16.7474V14.6128C10.2606 13.0409 8.93537 11.7666 7.30061 11.7666Z",fill:"/"===t?"#FFB300":"#434444"}),(0,s.jsx)("path",{d:"M16.9202 11.7666H14.7002C13.0655 11.7666 11.7402 13.0409 11.7402 14.6128V16.7474C11.7402 18.3193 13.0655 19.5935 14.7002 19.5935H16.9202C18.555 19.5935 19.8802 18.3193 19.8802 16.7474V14.6128C19.8802 13.0409 18.555 11.7666 16.9202 11.7666Z",fill:"/"===t?"#FFB300":"#434444"})]}),(0,s.jsx)("p",{className:"text-xs font-medium",children:"Home"})]}),(0,s.jsxs)("button",{className:"hover:opacity-50 flex flex-col items-center relative",onClick:()=>window.location.href="/cart",children:[(0,s.jsxs)("svg",{width:"24",height:"23",viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M8.53285 19.5325C8.91586 19.5325 9.22635 19.222 9.22635 18.839C9.22635 18.456 8.91586 18.1455 8.53285 18.1455C8.14984 18.1455 7.83936 18.456 7.83936 18.839C7.83936 19.222 8.14984 19.5325 8.53285 19.5325Z",stroke:"black",strokeWidth:"1.38699",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M18.2418 19.5325C18.6248 19.5325 18.9353 19.222 18.9353 18.839C18.9353 18.456 18.6248 18.1455 18.2418 18.1455C17.8588 18.1455 17.5483 18.456 17.5483 18.839C17.5483 19.222 17.8588 19.5325 18.2418 19.5325Z",stroke:"black",strokeWidth:"1.38699",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M2.98486 4.27539H5.75885L7.83934 16.0648H18.9353",stroke:"black",strokeWidth:"1.38699",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M7.83914 13.2909H18.6508C18.7309 13.291 18.8087 13.2632 18.8707 13.2124C18.9328 13.1616 18.9753 13.0909 18.991 13.0122L20.2393 6.77076C20.2494 6.72043 20.2481 6.66849 20.2357 6.61869C20.2233 6.5689 20.1999 6.52248 20.1674 6.4828C20.1348 6.44311 20.0939 6.41115 20.0475 6.38921C20.0011 6.36728 19.9504 6.35592 19.899 6.35596H6.45215",stroke:"black",strokeWidth:"1.38699",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsxs)("div",{className:"absolute top-[-8px] right-[-8px] bg-primary text-white text-xs p-1 rounded-full w-4 h-4 flex items-center justify-center",children:[" ",e.length]}),(0,s.jsx)("p",{className:"text-xs font-medium",children:"Cart"})]}),(0,s.jsxs)("button",{className:"mr-8 flex flex-col items-center ".concat("/profile"===t||"/orders"===t?"text-primary":""),onClick:()=>o.push("/profile"),children:[(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_41_183)",children:[(0,s.jsx)("path",{d:"M19.6357 11.1156C19.6386 12.9023 19.1072 14.6491 18.1097 16.1316C17.2872 17.3586 16.1749 18.364 14.8713 19.0589C13.5677 19.7538 12.113 20.1167 10.6357 20.1156C9.15852 20.1167 7.70378 19.7538 6.40019 19.0589C5.0966 18.364 3.98432 17.3586 3.16174 16.1316C2.37847 14.964 1.87964 13.6291 1.70525 12.234C1.53085 10.8389 1.68574 9.42234 2.15749 8.09787C2.62924 6.7734 3.40474 5.57788 4.42181 4.60714C5.43888 3.63641 6.66924 2.91746 8.01425 2.50793C9.35926 2.0984 10.7815 2.00968 12.167 2.24889C13.5525 2.4881 14.8626 3.04859
115.9924 3.88541C17.1223 4.72223 18.0403 5.81211 18.673 7.06769C19.3057 8.32327 19.6354 9.70961 19.6357 11.1156Z",stroke:"/profile"===t||"/orders"===t?"#FFB300":"#434444"}),(0,s.jsx)("path",{d:"M12.1356 8.11572C12.1356 8.51355 11.9776 8.89508 11.6963 9.17638C11.415 9.45769 11.0335 9.61572 10.6356 9.61572V10.6157C10.9639 10.6157 11.289 10.5511 11.5923 10.4254C11.8957 10.2998 12.1712 10.1156 12.4034 9.88349C12.6355 9.65134 12.8197 9.37575 12.9453 9.07243C13.071 8.76912 13.1356 8.44403 13.1356 8.11572H12.1356ZM10.6356 9.61572C10.2378 9.61572 9.85627 9.45769 9.57497 9.17638C9.29366 8.89508 9.13563 8.51355 9.13563 8.11572H8.13563C8.13563 8.44403 8.20029 8.76912 8.32593 9.07243C8.45157 9.37575 8.63572 9.65134 8.86786 9.88349C9.3367 10.3523 9.97259 10.6157 10.6356 10.6157V9.61572ZM9.13563 8.11572C9.13563 7.7179 9.29366 7.33637 9.57497 7.05506C9.85627 6.77376 10.2378 6.61572 10.6356 6.61572V5.61572C9.97259 5.61572 9.3367 5.87911 8.86786 6.34796C8.39902 6.8168 8.13563 7.45268 8.13563 8.11572H9.13563ZM10.6356 6.61572C11.0335 6.61572 11.415 6.77376 11.6963 7.05506C11.9776 7.33637 12.1356 7.7179 12.1356 8.11572H13.1356C13.1356 7.45268 12.8722 6.8168 12.4034 6.34796C11.9346 5.87911 11.2987 5.61572 10.6356 5.61572V6.61572ZM3.80163 16.9717L3.32163 16.8297L3.24463 17.0907L3.42163 17.2977L3.80163 16.9717ZM17.4696 16.9717L17.8496 17.2977L18.0266 17.0907L17.9486 16.8297L17.4696 16.9717ZM7.63563 14.6157H13.6356V13.6157H7.63563V14.6157ZM7.63563 13.6157C6.66648 13.6156 5.72319 13.9283 4.94608 14.5074C4.16898 15.0865 3.59859 15.901 3.32163 16.8297L4.28063 17.1147C4.4962 16.3925 4.93919 15.7591 5.54368 15.3088C6.14817 14.8585 6.88187 14.6155 7.63563 14.6157V13.6157ZM10.6356 19.6157C9.4089 19.617 8.19649 19.3522 7.08206 18.8394C5.96763 18.3267 4.97772 17.5782 4.18063 16.6457L3.42163 17.2977C4.31268 18.3395 5.41906 19.1756 6.6645 19.7484C7.90993 20.3212 9.26478 20.6171 10.6356 20.6157V19.6157ZM13.6356 14.6157C14.3895 14.6155 15.1233 14.8588 15.7278 15.3092C16.3323 15.7597 16.7752 16.3933 16.9906 17.1157L17.9486 16.8297C17.6717 15.901 17.1023 15.0865 16.3252 14.5074C15.5481 13.9283 14.6048 13.6156 13.6356 13.6157V14.6157ZM17.0906 16.6457C16.2935 17.5782 15.3036 18.3267 14.1892 18.8394C13.0748 19.3522 11.8624 19.617 10.6356 19.6157V20.6157C12.0065 20.6171 13.3613 20.3212 14.6068 19.7484C15.8522 19.1756 16.9586 18.3395 17.8496 17.2977L17.0906 16.6457Z",fill:"/profile"===t||"/orders"===t?"#FFB300":"#434444"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_41_183",children:(0,s.jsx)("rect",{width:"20.4923",height:"20.4923",fill:"white",transform:"translate(0.753906 0.808105)"})})})]}),(0,s.jsx)("p",{className:"text-xs font-medium",children:"Profile"})]}),(0,s.jsx)("button",{onClick:()=>o.push("/chikkamagaluru-food-game"),className:"absolute bottom-1 -right-6 transform -translate-x-1/2 bg-gradient-to-r from-orange-500 via-amber-400 to-yellow-500 text-white text-sm py-3 px-6 rounded-xl flex items-center justify-center w-14 h-12 z-10 transition-all duration-300 ease-in-out hover:scale-105 shadow-2xl focus:outline-none ring-4 ring-yellow-300",children:(0,s.jsxs)("span",{className:"font-semibold flex items-center justify-center text-xs",children:[(0,s.jsx)("span",{className:"mr-2 text-lg",children:"\uD83C\uDF89"}),"Play & Win"]})})]})}},3873:function(e,t,o){var s=o(903);let r=()=>{{let e=localStorage.getItem("cart");return e?JSON.parse(e):{foodItems:[]}}},l=(0,s.U)(e=>({orderFreebie:null,setOrderFreebie:t=>e({orderFreebie:t}),claimedFreebie:null,setClaimedFreebie:t=>e({claimedFreebie:t}),couponCode:"",setCouponCode:t=>e({couponCode:t}),deliveryCoordinates:null,setDeliveryCoordinates:t=>e({deliveryCoordinates:t}),cookingInstructions:"",setCookingInstructions:t=>e({cookingInstructions:t}),finalDiscount:0,setFinalDiscount:t=>e({finalDiscount:t}),totalPrice:0,setTotalPrice:t=>e({totalPrice:t}),scrollToAddress:!1,setScrollToAddress:t=>e({scrollToAddress:t}),foodItems:[],loadCart:()=>{let{foodItems:t}=r();e({foodItems:t})},addFoodItem:(t,o,s,r)=>{e(e=>{let l=e.foodItems.findIndex(e=>e.id===t),n=[...e.foodItems];if(l>-1&&!r){let e=n[l].quantity+o;e>=1?n[l].quantity=e:n[l].quantity=1}else -1===l&&n.push({id:t,quantity:r?o:1,addons:[],name:s.name,image:s.image,price:s.price,mrp:s.mrp});return localStorage.setItem("cart",JSON.stringify({foodItems:n})),{foodItems:n}})},removeFoodItem:t=>{e(e=>{let o=e.foodItems.filter(e=>e.id!==t);return localStorage.setItem("cart",JSON.stringify({foodItems:o})),{foodItems:o}})},addAddon:function(t,o,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(e=>{let l=e.foodItems.findIndex(e=>e.id===t),n=[...e.foodItems];if(l>-1){let e=n[l].addons.findIndex(e=>e.id===o);if(e>-1){let t=n[l].addons[e].quantity+s;t>0?n[l].addons[e].quantity=t:n[l].addons.splice(e,1)}else n[l].addons.push({id:o,quantity:s,foodId:t,name:r.name,price:r.price,image:r.image})}return localStorage.setItem("cart",JSON.stringify({foodItems:n})),{foodItems:n}})},removeAddon:(t,o)=>{e(e=>{let s=e.foodItems.findIndex(e=>e.id===t),r=[...e.foodItems];return s>-1&&(r[s].addons=r[s].addons.filter(e=>e.id!==o)),localStorage.setItem("cart",JSON.stringify({foodItems:r})),{foodItems:r}})},clearCart:()=>{localStorage.removeItem("cart"),e({foodItems:[],scrollToAddress:!1})}}));t.Z=l},9898:function(e,t,o){var s=o(5033);let r=(0,o(903).U)(e=>({myPoints:0,setMyPoints:t=>e({myPoints:t}),notification:null,setNotification:t=>e({notification:t}),shop:null,setShop:t=>e({shop:t}),locationSent:!1,setLocationSent:t=>e({locationSent:t}),selectedAddress:null,setSelectedAddress:t=>{try{t?localStorage.setItem(s.fL,JSON.stringify(t)):localStorage.removeItem(s.fL)}catch(e){}e({selectedAddress:t})},isOpen:!1,user:null,setUser:t=>e({user:t}),openModal:()=>e({isOpen:!0}),closeModal:()=>e({isOpen:!1}),login:t=>{localStorage.setItem(s.nq,JSON.stringify(t)),e({user:t})},logout:()=>{localStorage.removeItem(s.nq);try{localStorage.removeItem(s.fL)}catch(e){}e({user:null})},checkout:()=>{e({locationSent:!1,selectedAddress:null});try{localStorage.removeItem(s.fL)}catch(e){}}}));t.Z=r},5033:function(e,t,o){o.d(t,{Xx:function(){return l},fL:function(){return r},nq:function(){return s}});let s="userPhoneNumber",r="selectedAddress",l="addresses"}}]);
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.