"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5751],{34222:function(e,t,o){var r=o(26042),a=o(69396),n=o(99534),s=o(85893),l=o(41664),i=o.n(l);o(67294);t.Z=function(e){var t=e.link,o=(0,n.Z)(e,["link"]),l=t.title,c=t.link,u=t.external,d=t.isHome;return u?(0,s.jsx)("a",(0,a.Z)((0,r.Z)({href:c,target:"_blank"},o),{children:(0,s.jsx)("span",{children:l})})):(0,s.jsx)(i(),(0,a.Z)((0,r.Z)({href:d?c:"/pages/".concat(c)},o),{children:(0,s.jsx)("span",{children:l})}))}},39625:function(e,t,o){var r=o(26042),a=o(828),n=o(85893),s=o(67294),l=(o(6158),o(73135)),i=(o(70893),o(25675)),c=o.n(i),u=o(41248),d=o(59441),p=o(41664),g=o.n(p),y=o(73455),m=o(18650),f=o(11163);t.Z=function(e){var t,o,i,p,v,h;(0,l.c)("Logo");var b=(0,d.rV)(),I=b.imageHost,x=b.logo,P=b.headerLogoLink,S=b.headerLogoFitOnNavMobile,_=b.theme,C=b.merchantId,k=b.setting,w=(0,m.Lc)(),j=(0,u.v9)((function(e){return e.settings.restaurantTitle})),M=(0,a.Z)((0,s.useState)(!0),2),N=(M[0],M[1]),B=(null===(t=w[C])||void 0===t?void 0:t.MenuLogo)?null===(o=w[C])||void 0===o?void 0:o.MenuLogo:(null===x||void 0===x?void 0:x.includes("https"))?x:I+x,T=(0,u.I0)(),D=(0,f.useRouter)().query.dineinmenu;return(0,n.jsx)("div",{className:"logo-upper-wrapper ".concat(e.column),children:(0,n.jsx)("span",{className:"logo-wrapper",children:(0,n.jsx)("div",{className:(P?"cursor-pointer ":"")+"logo-container overflow-hidden"+(e.bg?" bg-true ":"")+(_.makeLogoBoxInSquare?" box":"")+(S?"logo-fit-on-mbl":""),children:(0,n.jsx)(g(),{onClick:"1"!==D?function(){window.location.pathname!=="/menu-".concat(localStorage.getItem("slug"))&&T((0,y.gM)(!0))}:"",style:e.isLogoHide?{visibility:"hidden"}:{visibility:"visible"},href:"1"!==D?P||("undefined"!==typeof localStorage&&localStorage.getItem("slug")?"/menu-".concat(localStorage.getItem("slug")):"/"):"/?dineinmenu=1",children:(0,n.jsx)(c(),(0,r.Z)({src:B,alt:(null===k||void 0===k||null===(i=k.merchantInfo)||void 0===i?void 0:i.restaurant_name)?k.merchantInfo.restaurant_name:j||"Logo",className:"img-fluid",onLoad:function(){N(!1),e.onLoad&&e.onLoad()}},!0===(null===(p=w[C])||void 0===p?void 0:p.rectangleLogo)?{width:null===(v=w[C])||void 0===v?void 0:v.rectangleWidth,height:null===(h=w[C])||void 0===h?void 0:h.rectangleHeight}:{width:110,height:110}))})})})})}},92400:function(e,t){var o=new String('@font-face{font-family:"Poppins";font-weight:300;src:url(/assets/fonts/Poppins-Light.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:400;src:url(/assets/fonts/Poppins-Regular.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:500;src:url(/assets/fonts/Poppins-Medium.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:600;src:url(/assets/fonts/Poppins-SemiBold.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:700;src:url(/assets/fonts/Poppins-Bold.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:800;src:url(/assets/fonts/Poppins-ExtraBold.ttf);font-size-adjust:.5;font-display:swap}@font-face{font-family:"Poppins";font-weight:900;src:url(/assets/fonts/Poppins-Black.ttf);font-size-adjust:.5;font-display:swap}body{font-family:Poppins,sans-serif!important;text-rendering:optimizeLegibility}');o.__hash="79cf81cd1c7e4bdb",t.Z=o},64248:function(e,t,o){var r=o(828),a=o(85893),n=o(67294),s=o(47516),l=o(89583),i=o(41248),c=o(50450),u=o(73455),d=o(56351),p=o(11163),g=o(59441),y=o(25675),m=o.n(y);t.Z=function(){var e=(0,g.rV)(),t=e.staticPagesList,o=e.merchantId,y=(0,r.Z)((0,n.useState)(!1),2),f=y[0],v=y[1],h=(0,r.Z)((0,n.useState)(!1),2),b=h[0],I=h[1],x=(0,i.v9)((function(e){return e.settings.user})),P=(0,i.v9)((function(e){return e.settings.selectedLanguage})),S=(0,i.I0)(),_=(0,p.useRouter)();(0,n.useEffect)((function(){if(t&&t.length){var e=t.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;I(!!e)}else I(!1)}),[t]);return(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.m3W,{size:25,className:"primary-color loggedIn ".concat(b?"":"ml-3-mbl")}),(0,a.jsxs)(c.Lt,{className:"user-dropdown loggedIn",isOpen:f,toggle:function(){return v((function(e){return!e}))},direction:"down",children:[(0,a.jsxs)(c.Z_,{caret:!0,className:"btn-profile text-capitalize",children:[x.first_name," "]}),(0,a.jsxs)(c.h_,{children:[(0,a.jsxs)(c.hP,{onClick:function(){return _.push("/profile",void 0,{locale:P})},children:[(0,a.jsx)(s.ePx,{className:"text-secondary mx-1"}),(0,a.jsx)("span",{className:"text-secondary m-0 p-0",style:{fontSize:15},children:"My Profile"})]}),(0,a.jsxs)(c.hP,{onClick:function(){return _.push("/profile/myOrders",void 0,{locale:P})},children:[(0,a.jsx)(l.GWw,{className:"text-secondary mx-1"}),(0,a.jsx)("span",{className:"text-secondary m-0 p-0",style:{fontSize:15},children:"My Orders"})]}),(0,a.jsxs)(c.hP,{onClick:function(){return _.push("/profile/addresses",void 0,{locale:P})},children:[(0,a.jsx)(s.nvq,{className:"text-secondary mx-1"}),(0,a.jsx)("span",{className:"text-secondary m-0 p-0",style:{fontSize:15},children:"My Addresses"})]}),(0,a.jsx)(c.hP,{divider:!0}),(0,a.jsxs)(c.hP,{onClick:function(){localStorage.removeItem("userToken"),localStorage.removeItem("userDetails"),localStorage.removeItem("otp_details"),localStorage.removeItem("isLoggedIn"),localStorage.removeItem("f_userDetails"),localStorage.removeItem("f_otp_details"),localStorage.removeItem("addressBook"),S((0,u.av)(null)),S((0,u.nf)(null)),S((0,u.OK)(null)),_.push((0,d.Jv)(window.location.origin)?"/menu-".concat(localStorage.getItem("slug")):"/",void 0,{locale:P})},children:[(0,a.jsx)(l.fHX,{className:"text-danger"}),(0,a.jsx)("span",{className:"mx-2 text-danger",children:"Sign out"})]})]})]})]}):(0,a.jsx)("button",{className:"btn px-1 login-modal-btn ".concat(b?"":"ml-3-mbl"),onClick:function(){S((0,u.EK)("login_by_phone"))},children:"220535"==o?(0,a.jsx)(m(),{src:"/assets/images/savourFoods/profile.png",height:"22",width:"22"}):(0,a.jsx)(l.m3W,{size:25,className:"primary-color"})})})}},67672:function(e,t,o){o.r(t),o.d(t,{auth:function(){return c},db:function(){return u},firebaseApp:function(){return i},messaging:function(){return l}});var r=o(83977),a=o(51019),n=o(20061),s=o(91259);(0,o(11796).q)();var l,i=(0,r.ZF)({apiKey:"AIzaSyA2_UEpdttC0BsaDVTED3WXiJWWUMIf0Pc",authDomain:"indoljpk-a6b75.firebaseapp.com",databaseURL:"https://indoljpk-a6b75-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"indoljpk-a6b75",storageBucket:"indoljpk-a6b75.appspot.com",messagingSenderId:"1032654674695",appId:"1:1032654674695:web:163833efd24a483b7103a2",measurementId:"G-E2WT922MVL"}),c=(0,s.v0)(i),u=(0,a.N8)(i);try{(0,n.Gb)().then((function(e){e?(console.log("messaging supported"),l=(0,n.KL)(i)):(console.log("messaging not supported"),l=null)}))}catch(d){console.warn("messaging error =>",d)}},31647:function(e,t,o){o.d(t,{C0:function(){return p},TW:function(){return c},Vi:function(){return i},i1:function(){return l},sR:function(){return u},xK:function(){return d}});var r=o(47568),a=o(70655),n=o(91259),s=o(67672),l=function(e){var t,o={},r={},a=[],n=[];e.sub_item&&Object.keys(e.sub_item).length&&(null===e||void 0===e||null===(t=e.sub_item)||void 0===t||t.map((function(e){if("one"==(null===e||void 0===e?void 0:e.multi_option)){var t=e.exclusive_price?e.exclusive_price:e.price;o[e.value.split("|")[0]]=[e.sub_item_id+"|"+t+"|"+e.sub_item_name]}else if("multiple"==(null===e||void 0===e?void 0:e.multi_option)||"custom"==(null===e||void 0===e?void 0:e.multi_option)){var s=e.exclusive_price?e.exclusive_price:e.price,l=e.sub_item_id+"|"+s+"|"+e.sub_item_name+"|"+e.subcat_id,i=e.qty+"|"+e.subcat_id;n.push(i),a.push(l),o[e.value.split("|")[0]]=a.filter((function(t){return e.value.split("|")[0]==t.split("|")[3]})).map((function(e){return e.split("|").slice(0,3).join("|")})),r[e.value.split("|")[0]]=n.filter((function(t){return e.value.split("|")[0]==t.split("|")[1]})).map((function(e){return e.split("|").slice(0,1).join("|")}))}})));return[o,r]},i=function(e){var t="".concat(e.getMonth()+1).padStart(2,"0"),o="".concat(e.getDate()).padStart(2,"0");return[[e.getFullYear(),t,o].join("-"),e.toLocaleString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})]},c=function(e){return Symbol.iterator in Object(e)},u=function(e){if(!e||!e.length)return e;var t={};return e.forEach((function(e){var o=e.subcat_id?e.subcat_id:e.value.split("|")[0],r={id:e.sub_item_id,name:e.sub_item_name,category:e.subcat_name,qty:e.qty,size:!1,price:e.price,pretty_price:e.pretty_price,nested_addons:e.selected_nested_addons&&e.selected_nested_addons.length?e.selected_nested_addons.map((function(e){return{id:e.sub_item_id,name:e.sub_item_name,category:e.subcat_name,qty:e.qty,size:!1,price:e.price,pretty_price:e.pretty_price}})):[]};t[o]&&t[o].length?t[o].push(r):t[o]=[r]})),t},d=function(e){var t,o,r,a=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate();return e.getHours()>=12?(t=e.getHours()-12,r="PM"):(t=e.getHours(),r="AM"),0==(o=e.getMinutes())&&(o="00"),0==t&&(t="12"),o>0&&o<10&&(o="0"+o),[t+":"+o+" "+r,a]},p=function(){var e=(0,r.Z)((function(e){var t,o;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:console.log(s.auth,"====>token"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,n._p)(s.auth,e)];case 2:return t=r.sent(),console.log("User signed in successfully:",t),[2,t];case 3:throw o=r.sent(),console.log("Error signing in with custom token:",o,e),o;case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}()},95370:function(e,t,o){o.d(t,{s:function(){return s},u:function(){return l}});var r=o(72066);function a(e){var t=parseInt(e.slice(1,3),16),o=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"".concat(t,", ").concat(o,", ").concat(r)}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(e){var o=parseInt(null===e||void 0===e?void 0:e.slice(1,3),16),r=parseInt(null===e||void 0===e?void 0:e.slice(3,5),16),a=parseInt(null===e||void 0===e?void 0:e.slice(5,7),16);return o=Math.min(255,o+t),r=Math.min(255,r+t),a=Math.min(255,a+t),"rgba(".concat(o,", ").concat(r,", ").concat(a,", 1)")}}var s=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=document.querySelector(":root");e.isParentBarShow&&t&&"text"==e.navStyling?o.style.setProperty("--TopCartSpacing","108px"):e.isParentBarShow&&t&&"icon"==e.navStyling||e.isParentBarShow&&t&&"squareicon"==e.navStyling?(o.style.setProperty("--TopCartSpacing","220px"),o.style.setProperty("--scrollPaddingForMobile","170px")):e.isParentBarShow&&t&&"round"==e.navStyling||e.isParentBarShow&&t&&"rectangle"==e.navStyling?o.style.setProperty("--TopCartSpacing","100px"):"icon"==e.navStyling||"squareicon"==e.navStyling?(o.style.setProperty("--TopCartSpacing","100px"),o.style.setProperty("--scrollPaddingForMobile","110px")):"round"==e.navStyling?(o.style.setProperty("--TopCartSpacing","53px"),o.style.setProperty("--scrollPaddingForMobile","53px")):(e.navStyling,o.style.setProperty("--TopCartSpacing","53px"),o.style.setProperty("--scrollPaddingForMobile","53px"))},l=function(e,t){var o,l,i,c,u,d,p,g,y,m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=document.querySelector(":root");f.style.setProperty("--foreground-color",e.foregroundColor),f.style.setProperty("--background-color",e.backgroundColor),f.style.setProperty("--light-background-color",(0,r.$W)(e.backgroundColor)),f.style.setProperty("--font-family",e.fontFamily?"url(".concat(e.fontFamily,")"):""),f.style.setProperty("--fix-banner-height","".concat(e.fixBannerHeight,"px")),e.fixBannerHeight&&f.style.setProperty("--banner-image-fit","cover"),f.style.setProperty("--menu-background-color",e.menuBackgroundColor),f.style.setProperty("--navbar-cart-icon-color",e.navbarCartIconColor),f.style.setProperty("--item-price-background",e.itemPriceBackground),f.style.setProperty("--item-price-text-color",e.itemPriceTextColor),f.style.setProperty("--item-price-border-color",e.itemPriceBorderColor),f.style.setProperty("--stock-tag-background",e.stockTagBackground),f.style.setProperty("--stock-tag-color",e.stockTagColor),f.style.setProperty("--discount-background",e.discountBackground),f.style.setProperty("--discount-color",e.discountTextColor),f.style.setProperty("--category-navbar-background",e.categoryNavbarBackground),f.style.setProperty("--category-navbar-color",e.categoryNavbarColor),f.style.setProperty("--category-navbar-item-background",e.categoryNavbarItemBackground),f.style.setProperty("--category-navbar-item-border",e.categoryNavbarItemBorder),f.style.setProperty("--category-navbar-item-focus-color",e.categoryNavbarItemFocusColor),f.style.setProperty("--category-navbar-item-focus-border",e.categoryNavbarItemFocusBorder),f.style.setProperty("--category-navbar-item-focus-bg",e.categoryNavbarItemFocusBackground),f.style.setProperty("--parent-category-navbar-background",e.parentCategoryNavbarBackground),f.style.setProperty("--parent-category-navbar-color",e.parentCategoryNavbarColor),f.style.setProperty("--parent-category-navbar-item-background",e.parentCategoryNavbarItemBackground),f.style.setProperty("--parent-category-navbar-item-border",e.parentCategoryNavbarItemBorder),f.style.setProperty("--parent-category-navbar-item-focus-color",e.parentCategoryNavbarItemFocusColor),f.style.setProperty("--parent-category-navbar-item-focus-border",e.parentCategoryNavbarItemFocusBorder),f.style.setProperty("--parent-category-navbar-item-focus-bg",e.parentCategoryNavbarItemFocusBackground),f.style.setProperty("--whatsapp-logo-position","".concat(e.whatsappMoveNumber,"%")),f.style.setProperty("--whatsapp-logo-position-mobile","".concat(e.whatsappMoveNumberMobile,"%")),f.style.setProperty("--font-adjust","".concat(e.fontAdjust,"%")),f.style.setProperty("--font-adjust-mobile","".concat(e.fontAdjustMobile,"%")),f.style.setProperty("--is-lower-case","".concat(e.isAllFontsLowerCase?"lowercase":"none")),f.style.setProperty("--logoContainerWidth","".concat((null===(o=m[t])||void 0===o?void 0:o.rectangleWidth)?m[t].rectangleWidth+"px":"")),f.style.setProperty("--logoContainerHeight","".concat((null===(l=m[t])||void 0===l?void 0:l.rectangleHeight)?m[t].rectangleHeight+"px":"")),f.style.setProperty("--logoContainerWidthMobile","".concat((null===(i=m[t])||void 0===i?void 0:i.rectangleWidthMobile)?m[t].rectangleWidthMobile+"px":"")),f.style.setProperty("--logoContainerHeightMobile","".concat((null===(c=m[t])||void 0===c?void 0:c.rectangleHeightMobile)?m[t].rectangleHeightMobile+"px":"")),f.style.setProperty("--largeIconMenuTitleMinHeight","".concat((null===(u=m[t])||void 0===u?void 0:u.largeIconMenuTitleMinHeight)?m[t].largeIconMenuTitleMinHeight+"px":"")),f.style.setProperty("--item-modal-background",e.itemModalBackground),f.style.setProperty("--item-modal-text",e.itemModalText),f.style.setProperty("--cartbackground",n(e.backgroundColor)),f.style.setProperty("--item-modal-btn-background",e.itemModalBtnBackground),f.style.setProperty("--item-modal-btn-text",e.itemModalBtnText),f.style.setProperty("--allItemsBackground","".concat((null===(d=m[t])||void 0===d?void 0:d.allItemsBackground)?m[t].allItemsBackground:e.allItemBackgroundColor?e.allItemBackgroundColor:"")),f.style.setProperty("--allItemsTextColor","".concat((null===(p=m[t])||void 0===p?void 0:p.allItemsTextColor)?m[t].allItemsTextColor:e.allItemTextColor?e.allItemTextColor:"")),f.style.setProperty("--allItemsTextColor","".concat((null===(g=m[t])||void 0===g?void 0:g.allItemsTextColor)?m[t].allItemsTextColor:e.allItemTextColor?e.allItemTextColor:""));var v=a("".concat((null===(y=m[t])||void 0===y?void 0:y.allItemsTextColor)?m[t].allItemsTextColor:e.allItemTextColor?e.allItemTextColor:""));f.style.setProperty("--allItemsHEXTextColor",v),f.style.setProperty("--menu-light-bg",n(e.menuBackgroundColor)),s(e)}},11796:function(e,t,o){o.d(t,{q:function(){return s}});var r=o(40013),a=o(83415),n="1.18.51";function s(e){var t={mobileNumber:(0,a.Mf)("cust_phone_number"),cityID:(0,a.Mf)("city_id"),isCitySelected:(0,a.Mf)("CityAreaSelected"),branch:(0,a.Mf)("branch"),area:r.tO.getData("area"),customerInfo:(0,a.Mf)("customerInfo"),cartHistory:(0,a.Mf)("cartHistory"),userDetails:(0,a.Mf)("userDetails"),otpDetails:(0,a.Mf)("otp_details"),hasOrdered:(0,a.Mf)("hasOrdered"),cityAreas:(0,a.Mf)("cityAreas"),delivery_type:(0,a.Mf)("delivery_type")},o=(0,a.Mf)("version");console.log("local storage version",o,o===n,"new version",n,"obj",t),window.location.pathname.includes("menu")&&(window.location.origin.includes("indolj")||window.location.origin.includes("localhost")||window.location.origin.includes("192.168"))?(e=window.location.pathname.replace("/menu-",""),localStorage.getItem("slug")===e&&n==o||(localStorage.clear(),console.log("local storage cleared",t),n!==o&&localStorage.getItem("slug")===e&&(t.cityID&&localStorage.setItem("city_id",t.cityID),t.isCitySelected&&localStorage.setItem("CityAreaSelected",t.isCitySelected),t.branch&&localStorage.setItem("branch",t.branch),t.cartHistory&&localStorage.setItem("cartHistory",t.cartHistory),t.area&&r.tO.saveData(t.area,"area"),t.userDetails&&localStorage.setItem("userDetails",t.userDetails),t.mobileNumber&&localStorage.setItem("cust_phone_number",t.mobileNumber),t.customerInfo&&localStorage.setItem("customerInfo",t.customerInfo),t.otpDetails&&localStorage.setItem("otp_details",t.otpDetails),t.hasOrdered&&localStorage.setItem("hasOrdered",t.hasOrdered),t.cityAreas&&localStorage.setItem("cityAreas",t.cityAreas),t.cityAreas&&localStorage.setItem("cityAreas",t.cityAreas),t.delivery_type&&localStorage.setItem("delivery_type",t.delivery_type)),localStorage.setItem("slug",e),localStorage.setItem("version",n))):n!=o&&(localStorage.clear(),console.log("local storage cleared",t),localStorage.setItem("version",n),t.mobileNumber&&localStorage.setItem("cust_phone_number",t.mobileNumber),t.cityID&&localStorage.setItem("city_id",t.cityID),t.isCitySelected&&localStorage.setItem("CityAreaSelected",t.isCitySelected),t.branch&&localStorage.setItem("branch",t.branch),t.customerInfo&&localStorage.setItem("customerInfo",t.customerInfo),t.cartHistory&&localStorage.setItem("cartHistory",t.cartHistory),t.area&&r.tO.saveData(t.area,"area"),t.userDetails&&localStorage.setItem("userDetails",t.userDetails),t.otpDetails&&localStorage.setItem("otp_details",t.otpDetails),t.hasOrdered&&localStorage.setItem("hasOrdered",t.hasOrdered),t.delivery_type&&localStorage.setItem("delivery_type",t.delivery_type))}}}]);