"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[517],{12056:function(e,n,t){var i=t(828),o=t(85893),l=t(67294),a=t(51436),r=t(92814),s=t(73135),c=t(6690),d=t(11163);n.Z=function(e){var n=e.value,t=e.onChange,u=e.onEmpty,v=e.placeholder,m=e.animatedPlaceholder,h=e.setFirstCategoryOnScrollView,g=e.autocomplete,f=(0,l.useRef)();(0,s.c)("SearchBox"),(0,l.useEffect)((function(){0===n.length&&x(!1)}),[n]),(0,l.useEffect)((function(){m&&m.length>0&&(0,c.S)(f.current,{showCursor:!1,placeholder:!0,strings:m})}),[]);var p=(0,i.Z)((0,l.useState)(!1),2),x=(p[0],p[1]),b=(0,i.Z)((0,l.useState)(!1),2),j=b[0],_=b[1],w=(0,d.useRouter)().locale;(0,l.useEffect)((function(){window.addEventListener("scroll",(function(){var e,n=null===f||void 0===f||null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().y;_(n<0)}))}),[]);var y=["Search for item by title...","Search Location"];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"input-group search-indolj-wrapper mt-1",children:[(0,o.jsx)("span",{className:"input-group-text pointer ps-3",onClick:function(e){u(!1),x(!1)},style:"ar"===w?{borderRadius:"0 10px 10px 0"}:{},children:(0,o.jsx)(r.G,{icon:a.acZ})}),(0,o.jsx)("input",{autoComplete:g,type:"text",name:"query",id:"searchbox",ref:f,className:"form-control",placeholder:v,value:n,onChange:function(e){return t(e.currentTarget.value)},onFocus:function(e){!y.includes(e.target.placeholder)&&t(e.target.placeholder.replace("Search ","")),x(!0)}})]}),j?(0,o.jsx)("div",{className:"jump-search",onClick:function(e){return f.current.focus(),window.scrolling="yes",f.current.scrollIntoView({behavior:"smooth",block:"center"}),void h()},children:(0,o.jsx)(r.G,{icon:a.wn1})}):(0,o.jsx)(o.Fragment,{})]})}},22975:function(e,n,t){var i=t(828),o=t(85893),l=t(67294),a=t(73135),r=t(59441),s=t(39625),c=t(72066),d=t(50450),u=t(89583),v=t(51649),m=t(83415),h=t(25675),g=t.n(h),f=t(18650);n.Z=function(e){var n,t,h=e.position,p=void 0===h?"header":h;(0,a.c)("AppAlert");var x,b,j,_,w,y,N,k,S,C,Z,I,O,L,E,F,B,P,A,M,U,V,z,R,H,T,G,W,D=(0,r.rV)(),X=D.setting,J=D.merchantId,q=(0,f.Lc)(),K=(0,i.Z)((0,l.useState)(""),2),Y=K[0],Q=K[1],$=(0,i.Z)((0,l.useState)(!0),2),ee=$[0],ne=$[1],te=function(){ne(!1),localStorage.removeItem("appBar",0)};return(0,l.useEffect)((function(){Q(null===X||void 0===X?void 0:X.icon_links)}),[]),((null===(n=q[J])||void 0===n?void 0:n.appAlertPosition)?null===(t=q[J])||void 0===t?void 0:t.appAlertPosition:"header")==p?"custom"===(null===(x=q[J])||void 0===x?void 0:x.appAlertLayout)?"undefined"!=typeof localStorage&&"0"!=(0,m.Mf)("appBar")&&(null===(b=q[J])||void 0===b?void 0:b.appAlert)&&(0,o.jsx)(d.bZ,{className:"app-alert-custom d-lg-none mb-0",style:{background:(null===(j=q[J])||void 0===j?void 0:j.appAlertBg)?null===(_=q[J])||void 0===_?void 0:_.appAlertBg:"#cff4fc"},isOpen:ee,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"position-relative",children:"220535"===J?(0,o.jsx)(v.FMH,{onClick:te,size:35,style:{color:"#ffffff",padding:"5px",borderRadius:"100px",position:"absolute",top:"-12px",left:"-9px"}}):(0,o.jsx)(u.aHS,{onClick:te,style:{background:"gray",color:"#ffffff",fontSize:"25px",padding:"5px",borderRadius:"100px",position:"absolute",top:"-12px",left:"-9px"}})}),(0,o.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center",children:[(0,o.jsxs)("div",{className:"app-icon-wrapper d-flex gap-2",children:[(null===Y||void 0===Y?void 0:Y.merchant_app_icon_enable)?(0,o.jsx)("a",{href:null===Y||void 0===Y?void 0:Y.merchant_app_icon,target:"_blank",className:"position-relative",children:(0,o.jsx)(g(),{width:"80",height:"25",src:null===(w=q[J])||void 0===w?void 0:w.appAlertImgGooglePlay,alt:"download app from google play store"})}):"",(null===Y||void 0===Y?void 0:Y.merchant_app_icon_enable)?(0,o.jsx)("a",{href:null===Y||void 0===Y?void 0:Y.merchant_ios_icon,target:"_blank",className:"position-relative",children:(0,o.jsx)(g(),{width:"80",height:"25",src:null===(y=q[J])||void 0===y?void 0:y.appAlertImgAppStore,alt:"download app from apple app store"})}):""]}),(0,o.jsxs)("div",{style:{fontSize:"14px",fontWeight:"500"},className:"app-alert-text",children:[" ",null===(N=q[J])||void 0===N?void 0:N.appAlertText," "]})]})]})}):"undefined"!=typeof localStorage&&"0"!=(0,m.Mf)("appBar")&&(null===(k=q[J])||void 0===k?void 0:k.appAlert)&&(0,o.jsx)(d.bZ,{className:"app-alert d-lg-none mb-0",style:{background:(null===(S=q[J])||void 0===S?void 0:S.appAlertBg)?null===(C=q[J])||void 0===C?void 0:C.appAlertBg:"#cff4fc"},isOpen:ee,children:(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,o.jsxs)("div",{className:"d-flex align-items-center",children:[(0,o.jsx)(u.aHS,{onClick:te,style:{background:(null===(Z=q[J])||void 0===Z?void 0:Z.appAlertBtnTextBg)?null===(I=q[J])||void 0===I?void 0:I.appAlertBtnTextBg:"#cc2e2e",color:(null===(O=q[J])||void 0===O?void 0:O.appAlertBtnTextColor)?null===(L=q[J])||void 0===L?void 0:L.appAlertBtnTextColor:"#ffffff",fontSize:"25px",padding:"5px",borderRadius:"100px"}}),(null===(E=q[J])||void 0===E?void 0:E.hideAppAlertLogo)?(0,o.jsx)(o.Fragment,{}):(null===(F=q[J])||void 0===F?void 0:F.appAlertLogo)?(0,o.jsx)(g(),{src:null===(B=q[J])||void 0===B?void 0:B.appAlertLogo,width:65,height:65}):(0,o.jsx)(s.Z,{})]}),(0,o.jsxs)("div",{style:{color:null===(P=q[J])||void 0===P?void 0:P.appAlertTextColor,fontSize:"14px",fontWeight:"500",paddingLeft:(null===(A=q[J])||void 0===A?void 0:A.appAlertTextLeftPadding)?null===(M=q[J])||void 0===M?void 0:M.appAlertTextLeftPadding:0,marginLeft:(null===(U=q[J])||void 0===U?void 0:U.appAlertTextLeftMargin)?null===(V=q[J])||void 0===V?void 0:V.appAlertTextLeftMargin:0,flex:(null===(z=q[J])||void 0===z?void 0:z.hideAppAlertLogo)?"auto":"none"},children:[" ",null===(R=q[J])||void 0===R?void 0:R.appAlertText," "]}),(0,o.jsx)("div",{children:(0,o.jsx)("a",{className:"btn",style:{background:(null===(H=q[J])||void 0===H?void 0:H.appAlertBtnTextBg)?null===(T=q[J])||void 0===T?void 0:T.appAlertBtnTextBg:"#cc2e2e",color:(null===(G=q[J])||void 0===G?void 0:G.appAlertBtnTextColor)?null===(W=q[J])||void 0===W?void 0:W.appAlertBtnTextColor:"#ffffff",width:"111px"},href:"".concat("Android"===(0,c.HG)()?null===Y||void 0===Y?void 0:Y.merchant_app_icon:null===Y||void 0===Y?void 0:Y.merchant_ios_icon),children:"Install App"})})]})}):null}},80517:function(e,n,t){t.d(n,{Z:function(){return fe}});var i=t(85893),o=t(67294),l=t(47568),a=t(828),r=t(70655),s=t(41248),c=t(73135),d=t(59441);var u=function(){(0,c.c)("RainAlertMsg");var e=(0,s.v9)((function(e){return e.settings.staticSettings})),n=(0,a.Z)((0,o.useState)(null),2),t=n[0],l=n[1];return(0,o.useEffect)((function(){var n,t;console.log("staticSettings.setting?.rain_related",null===(n=e.setting)||void 0===n?void 0:n.rain_related),l(null===(t=e.setting)||void 0===t?void 0:t.rain_related)}),[e]),(0,i.jsx)(i.Fragment,{children:parseInt(null===t||void 0===t?void 0:t.show_message_merchant_check)?(0,i.jsx)("div",{className:"rain-alert",children:"Its Raining! Deliveries may be affected. Enjoy the Weather with our delicious menu"}):""})},v=t(83415),m=t(86896),h=t(18650);var g=function(){var e,n,t=(0,d.rV)(),l=t.setting,r=t.alertMsg,c=(0,h.Lc)(),u=(0,s.v9)((function(e){return e.settings.branchDetails})),g=(0,a.Z)((0,o.useState)("200576"===(0,v.Mf)("merchantId")||"220262"===(0,v.Mf)("merchantId")?"Ordering paused momentarily. Please retry in few minutes. Thank you for your patience.":"Ordering is temporarily disabled"),2),f=g[0],p=g[1],x=(0,m.Z)();return(0,o.useEffect)((function(){(null===u||void 0===u?void 0:u.disabledOrdering)&&p("Ordering is currently disabled in this branch")}),[u]),(0,i.jsx)(i.Fragment,{children:r.length?(null===(e=c[(0,v.Mf)("merchantId")])||void 0===e?void 0:e.isAlertMsgAnimate)?(0,i.jsxs)("div",{className:"alert-msg \n            ".concat((null===(n=c[(0,v.Mf)("merchantId")])||void 0===n?void 0:n.isAlertMsgMarquee)?"marquee":"blink","\n          "),children:[" ",(0,i.jsxs)("span",{children:[" ",r]})]}):(0,i.jsx)("div",{className:"alert-msg",children:r}):(null===l||void 0===l?void 0:l.disabledOrdering)||(null===u||void 0===u?void 0:u.disabledOrdering)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"alert-msg bg-danger",children:x.formatMessage({id:f})})}):""})},f=t(22975),p=t(50450),x=t(73455),b=t(77561),j=t(25675),_=t.n(j),w=t(64248),y=t(45155),N=t(11163),k=function(e){var n=e.dropdownOpen,t=e.toggle,l=e.languages,r=(0,a.Z)((0,o.useState)("/"),2),c=r[0],d=r[1],u=(0,s.I0)(),v=(0,N.useRouter)(),h=v.locale,g=(0,m.Z)();return(0,o.useEffect)((function(){var e="/";e=localStorage.getItem("slug")?"/menu-"+localStorage.getItem("slug"):"/",d(e)}),[]),(0,i.jsxs)(p.Lt,{className:"user-dropdown loggedIn mx-1",isOpen:n,toggle:t,direction:"down",children:[(0,i.jsxs)(p.Z_,{caret:!0,className:"btn-profile text-capitalize",children:[(0,i.jsx)(y.MGB,{className:"mx-2",color:"indolj-primary"}),g.formatMessage({id:l[h]})]}),(0,i.jsx)(p.h_,{children:Object.values(l).map((function(e,n){return(0,i.jsx)(p.hP,{onClick:function(){var e=Object.keys(l)[n];e!==h&&(localStorage.setItem("language",e),v.push(c,void 0,{locale:e}),u((0,x.om)(e)))},children:(0,i.jsx)("span",{className:"text-secondary m-0 p-0",style:{fontSize:15},children:g.formatMessage({id:e})})},n)}))})]})},S=t(51436),C=t(70893),Z=t(92814),I=t(40013);var O=function(e){var n,t,l,r,u=e.handleClick;(0,c.c)("BranchName");var v=(0,s.v9)((function(e){return e.settings.branchName})),h=(0,s.v9)((function(e){return e.settings.selectedCity})),g=(0,s.v9)((function(e){return e.settings.selectedBranch})),f=(0,s.v9)((function(e){return e.settings.selectedArea})),b=(0,s.v9)((function(e){return e.settings.addressMap})),j=(0,d.rV)(),w=j.cities,y=j.showMapModal,N=j.merchantId,k=(0,s.v9)((function(e){return e.settings.areasCityWise})),C=(0,s.v9)((function(e){return e.settings.deliveryType})),O=(0,a.Z)((0,o.useState)(""),2),L=O[0],E=O[1],F=(0,a.Z)((0,o.useState)(""),2),B=F[0],P=F[1],A=(0,m.Z)(),M=(0,s.I0)();(0,o.useEffect)((function(){if(C&&"Delivery"==C){var e;E(A.formatMessage({id:"changeLocation"}));var n=null===(e=JSON.parse(I.tO.getData("area")))||void 0===e?void 0:e.area_name;if(!n){var t=localStorage.getItem("city_id");n=w[t]}if(y){var i,o=null===(i=JSON.parse(localStorage.getItem("address")))||void 0===i?void 0:i.address;o&&P(o)}else P(n)}else C&&E(A.formatMessage({id:"changeBranch"}))}),[C,h,f,g,v,k,b]),(0,o.useEffect)((function(){M((0,x.ZA)(null===g||void 0===g?void 0:g.label))}),[g]);var U={243:{src:"/assets/images/location-outline.svg",height:15,width:15},200576:{src:"/assets/images/kababbjeesfriedchicken/Location-icon.png",height:20,width:15},220262:{src:"/assets/images/kababbjeesfriedchicken/Location-icon.png",height:20,width:15},220295:{src:"/assets/images/burgerLab/SVGs/Location-icon.svg",height:20,width:15}};return(0,i.jsxs)(p.zx,{className:"".concat("220445"===N?"mx-1":"mx-2"," location fw-bold rounded-04"),color:"indolj-primary",onClick:u,children:[(null===(n=U[N])||void 0===n?void 0:n.src)?(0,i.jsx)(_(),{src:null===(t=U[N])||void 0===t?void 0:t.src,alt:"locationIcon",height:null===(l=U[N])||void 0===l?void 0:l.height,width:null===(r=U[N])||void 0===r?void 0:r.width}):(0,i.jsx)(Z.G,{icon:S.FGq}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"mx-1 change-branch-btn",children:L}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"mx-1",children:"Delivery"==C&&(B||v)?B:v})]})]})},L=t(60339),E=function(e){var n,t,o,l,a,r,c,u,v=e.classes,m=(0,s.I0)(),h=(0,d.rV)().merchantId,g=window.innerWidth<600,f={200576:{src:"/assets/images/kababbjeesfriedchicken/hamburger-icon.png",height:15,width:25},220262:{src:"/assets/images/kababbjeesfriedchicken/hamburger-icon.png",height:15,width:25},220295:{src:"/assets/images/burgerLab/SVGs/hamburger-icon.svg",height:15,width:25},220417:{src:"/assets/images/kababbjeesfriedchicken/hamburger-icon.png",height:15,width:25},411:{src:"/assets/images/kababbjeesfriedchicken/hamburger-icon.png",height:15,width:25}};return(0,i.jsx)(i.Fragment,{children:g?(0,i.jsx)(p.zx,{className:"btn-indolj-primary rounded-04 py-mbl ms-1 ms-md-2 me-1 me-md-2 bar-btn ".concat(v),onClick:function(){m((0,L.VT)(!0))},children:(null===(n=f[h])||void 0===n?void 0:n.src)?(0,i.jsx)(_(),{src:null===(t=f[h])||void 0===t?void 0:t.src,alt:"locationIcon",height:null===(o=f[h])||void 0===o?void 0:o.height,width:null===(l=f[h])||void 0===l?void 0:l.width}):(0,i.jsx)(Z.G,{size:"lg",icon:S.xiG})}):(0,i.jsx)(p.zx,{className:"btn-indolj-primary rounded-04 py-mbl ms-1 ms-md-2 me-1 me-md-2 bar-btn ".concat(v),onMouseOver:function(){m((0,L.VT)(!0))},children:(null===(a=f[h])||void 0===a?void 0:a.src)?(0,i.jsx)(_(),{src:null===(r=f[h])||void 0===r?void 0:r.src,alt:"locationIcon",height:null===(c=f[h])||void 0===c?void 0:c.height,width:null===(u=f[h])||void 0===u?void 0:u.width}):(0,i.jsx)(Z.G,{size:"lg",icon:S.xiG})})})},F=t(39625),B=function(e){var n,t,l,r,c,u,v,m=(0,s.v9)((function(e){return e.menu.cartItem})),g=(0,s.I0)(),f=(0,a.Z)((0,o.useState)(0),2),x=f[0],b=f[1],j=(0,d.rV)(),w=j.isFullSize,y=j.merchantId,N=(0,h.Lc)();(0,o.useEffect)((function(){var e=0;m&&m.length&&m.forEach((function(n){e+=n.qty})),b(e)}),[m]);var k={200576:{src:"/assets/images/kababbjeesfriedchicken/Cart-icon.png",height:35,width:40},220262:{src:"/assets/images/kababbjeesfriedchicken/Cart-icon.png",height:35,width:40},220295:{src:"/assets/images/burgerLab/Cart-icon.png",height:35,width:40},220082:{src:"/assets/images/fourteen_streetPizza/cart.png",height:35,width:35},220417:{src:"/assets/images/fourteen_streetPizza/cart.png",height:35,width:35},220535:{src:"/assets/images/savourFoods/cart.png",height:20,width:20}};return(0,i.jsxs)("div",{className:"".concat("220535"==y?"d-block":"d-none"," ").concat("200372"===y?"d-lg-flex gap-3 align-items-center":"d-lg-block"," p-2 cart-icon position-relative"),children:["200372"===y?(0,i.jsx)("a",{color:"none",className:"p-0",href:"#searchbox",children:(0,i.jsx)(Z.G,{icon:S.Y$T})}):null,w?(0,i.jsxs)(p.zx,{color:"none",className:"p-0",onClick:function(e){return g((0,L.Pt)(!0))},children:["200372"===y?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 cart_svg",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}):(null===(n=k[y])||void 0===n?void 0:n.src)?(0,i.jsx)(_(),{src:null===(t=k[y])||void 0===t?void 0:t.src,alt:"catIcon",width:null===(l=k[y])||void 0===l?void 0:l.width,height:null===(r=k[y])||void 0===r?void 0:r.height}):"220535"!=y&&(null===(c=N[y])||void 0===c?void 0:c.SmartHeader)?(0,i.jsx)("div",{className:"cart_icon",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"30",viewBox:"0 0 52.752 41.029",children:(0,i.jsx)("path",{id:"Icon_awesome-shopping-basket","data-name":"Icon awesome-shopping-basket",d:"M52.752,19.1v1.465a2.2,2.2,0,0,1-2.2,2.2h-.733L47.43,39.5a4.4,4.4,0,0,1-4.352,3.774H9.674A4.4,4.4,0,0,1,5.322,39.5L2.931,22.765H2.2a2.2,2.2,0,0,1-2.2-2.2V19.1a2.2,2.2,0,0,1,2.2-2.2H8.365L18.145,3.457A2.931,2.931,0,1,1,22.885,6.9l-7.272,10H37.139l-7.272-10a2.931,2.931,0,0,1,4.74-3.447L44.387,16.9h6.167A2.2,2.2,0,0,1,52.752,19.1ZM28.574,35.22V24.963a2.2,2.2,0,0,0-4.4,0V35.22a2.2,2.2,0,1,0,4.4,0Zm10.257,0V24.963a2.2,2.2,0,0,0-4.4,0V35.22a2.2,2.2,0,1,0,4.4,0Zm-20.515,0V24.963a2.2,2.2,0,0,0-4.4,0V35.22a2.2,2.2,0,1,0,4.4,0Z",transform:"translate(0 -2.25)",fill:"#fff"})})}):(null===(u=N[y])||void 0===u?void 0:u.headerCartIconIsOutline)?(0,i.jsx)("div",{className:"cart_icon",children:(0,i.jsx)(_(),{src:"/assets/images/delizia-cart.svg",alt:"catIcon",width:20,height:20})}):(0,i.jsx)(Z.G,{icon:S.yYj,className:"align-bottom"}),(null===(v=N[y])||void 0===v?void 0:v.hasClipArtBadge)?(0,i.jsx)(p.Ct,{className:"clip-art-badge d-flex justify-content-center align-items-center p-0",children:x||0}):"220535"!==y&&(0,i.jsx)(p.Ct,{className:"rounded-circle position-absolute d-flex justify-content-center align-items-center p-0",style:{color:e.bg},children:x||0})]}):(0,i.jsxs)("a",{color:"none",className:"p-0",href:"#cart",children:["200372"===y?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 cart_svg",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}):"220082"===y?(0,i.jsx)(_(),{src:"/assets/images/fourteen_streetPizza/cart.png",alt:"catIcon",width:35,height:35}):(0,i.jsx)(Z.G,{icon:S.yYj,className:"align-bottom"}),(0,i.jsx)(p.Ct,{className:"rounded-circle position-absolute d-flex justify-content-center align-items-center p-0",style:{color:e.bg},children:x||0})]})]})},P=t(72066);function A(e){var n;(0,c.c)("Info");var t=(0,d.rV)(),u=t.setting,v=t.staticPagesList,m=t.locationPopup,h=t.merchantId,g=t.branchPhoneNumber,f=t.branches,p=(0,s.v9)((function(e){return e.settings.selectedCity})),j=(0,s.v9)((function(e){return e.settings.selectedBranch})),_=(0,s.v9)((function(e){return e.settings.selectedArea})),y=(0,s.v9)((function(e){return e.settings.isEasypaisa})),I=(0,a.Z)((0,o.useState)(S.j1w),2),L=I[0],F=I[1],B=(0,a.Z)((0,o.useState)(""),2),P=B[0],A=B[1],M=(0,a.Z)((0,o.useState)(""),2),U=M[0],V=M[1],z=(0,a.Z)((0,o.useState)(g),2),R=z[0],H=z[1],T=(0,a.Z)((0,o.useState)(!1),2),G=T[0],W=T[1],D=(0,C.xQ)().apiUrl,X=(0,s.I0)(),J=null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.languages,q=(0,a.Z)((0,o.useState)(!1),2),K=q[0],Y=q[1],Q=(0,a.Z)((0,o.useState)(""),2),$=Q[0],ee=Q[1],ne=(0,a.Z)((0,o.useState)(""),2),te=ne[0],ie=ne[1],oe=(0,a.Z)((0,o.useState)(!1),2),le=oe[0],ae=oe[1];(0,o.useEffect)((function(){var e;W(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.enable_user_login)}),[u]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))H(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===_||void 0===_||null===(n=_.areaObj)||void 0===n?void 0:n.branch_id)&&_.areaObj.branch_id in f){var i=f[_.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void H(i.phone_number)}}else if(null===j||void 0===j||null===(t=j.branchObj)||void 0===t?void 0:t.phone_number)return void H(j.branchObj.phone_number);H(g)}}),[g,j,_]),(0,o.useEffect)((function(){if(v&&v.length){var e=v.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;ae(!!e)}else ae(!1)}),[v]),(0,o.useEffect)((function(){var e;ee(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.phone_icon_type)}),[p,u]),(0,o.useEffect)((function(){"call"===$?(F(S.j1w),A("tel:".concat(R))):"whatsapp"===$?(F(faWhatsapp),A("https://wa.me/".concat(R,"?text=")),V("_blank")):A("tel:".concat(R))}),[$,R]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=re(null===p||void 0===p?void 0:p.label);ie(n),A("tel:".concat(n+R))}}),[p,R,e.preCodeNum]);var re=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},se=(0,N.useRouter)().pathname,ce=function(){Y(!K)},de=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",h),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",D,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)("div",{className:"text-right\n            ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start",children:(0,i.jsxs)(i.Fragment,{children:[function(){if(se.includes("menu")||se.includes("/"))return!0}()&&"yes"===m?(0,i.jsx)(O,{handleClick:function(e){X((0,x.uN)(!1))}}):"",(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:P,target:U,onClick:function(){return de()},children:[(0,i.jsx)(Z.G,{className:" d-md-inline-block",icon:L}),(0,i.jsx)("div",{className:"mx-1 d-none d-md-block",children:(0,i.jsx)("span",{children:R&&te?R&&R:R})})]}),le?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null,G&&!y?(0,i.jsxs)("div",{className:"d-flex justify-content-center align-items-center",children:[J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:ce}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(w.Z,{showStaticPages:le})]}):(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:ce}):(0,i.jsx)(i.Fragment,{})})]})})})}function M(e){var n,t=(0,d.rV)(),l=t.setting,r=t.staticPagesList,s=t.merchantId,c=(0,a.Z)((0,o.useState)(!1),2),u=c[0],v=c[1],m=(0,a.Z)((0,o.useState)(!1),2),h=m[0],g=m[1],f=(0,a.Z)((0,o.useState)(!1),2),p=f[0],x=f[1],b=((0,N.useRouter)().asPath,null===l||void 0===l||null===(n=l.options)||void 0===n?void 0:n.languages);(0,o.useEffect)((function(){if(r&&r.length){var e=r.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;v(!!e)}else v(!1)}),[r]),(0,o.useEffect)((function(){var e;g(null===l||void 0===l||null===(e=l.options)||void 0===e?void 0:e.enable_user_login)}),[l]);return(0,i.jsx)("div",{className:"text-right\n      ".concat(e.column,"\n      "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center justify-content-end fs-08",children:(0,i.jsxs)(i.Fragment,{children:[P.HB[s]?(0,i.jsx)("div",{className:"d-flex align-items-center sumbit_complain",style:{marginBottom:"-0.19rem"},children:P.HB[s].map((function(e){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"".concat(e.image?"pe-1":"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number align-items-center d-none d-lg-flex"),style:{transform:"translate(".concat(e.imageXPosition,", ").concat(e.imageYPosition,")")},children:e.image?(0,i.jsx)(_(),{src:e.image,alt:"benefits of this brand",className:"img-fluid d-none d-lg-block",width:e.imageWidth,height:e.imageHeight}):e.text})}))}):(0,i.jsx)(i.Fragment,{}),b&&Object.values(b)&&Object.values(b).length>1?(0,i.jsx)(k,{languages:b,dropdownOpen:p,toggle:function(){x(!p)}}):(0,i.jsx)(i.Fragment,{}),h?(0,i.jsx)(w.Z,{}):null,h?(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}):null,(0,i.jsx)(B,{bg:e.bg}),(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}),u?(0,i.jsx)(E,{classes:"d-block"}):null]})})})}var U=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.merchantId,c=n.theme,v=(n.setting,(0,o.useRef)()),m=(0,s.I0)(),h="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;m((0,x.cs)(null===(e=null===v||void 0===v||null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(h=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(h=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:v,className:"topbar-wrapper Kabbabjees_fried_chicken",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,className:"py-2 topbar-container",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsxs)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                            ".concat("1"!==c.logoLeftAlign?"justify-content-md-end":""),children:[(0,i.jsx)(A,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:h,preCodeNum:"148"==r}),(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!1,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===v||void 0===v||null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(M,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]})})})]})},V=t(93024);var z=function(e){var n,t,l,a,r,s,c=(0,d.rV)().setting,u={fbUrl:null===c||void 0===c||null===(n=c.options)||void 0===n?void 0:n.facebook,instaUrl:null===c||void 0===c||null===(t=c.options)||void 0===t?void 0:t.instagram,twitterUrl:null===c||void 0===c||null===(l=c.options)||void 0===l?void 0:l.twitter_Pagelink,linkedInUrl:null===c||void 0===c||null===(a=c.options)||void 0===a?void 0:a.linkedin_Pagelink,youtubUrl:null===c||void 0===c||null===(r=c.options)||void 0===r?void 0:r.youtube_Pagelink,tiktokUrl:null===c||void 0===c||null===(s=c.options)||void 0===s?void 0:s.tiktok_Pagelink};return(0,o.useEffect)((function(){localStorage.setItem("socialURL",JSON.stringify(u))}),[]),function(e){return(null===e||void 0===e?void 0:e.fbUrl)||(null===e||void 0===e?void 0:e.instaUrl)||(null===e||void 0===e?void 0:e.twitterUrl)||(null===e||void 0===e?void 0:e.linkedInUrl)||(null===e||void 0===e?void 0:e.youtubUrl)||(null===e||void 0===e?void 0:e.tiktokUrl)}(u)?(0,i.jsx)(i.Fragment,{children:(null===e||void 0===e?void 0:e.infoMercahnt)?(0,i.jsxs)("div",{className:"social-wrapper d-flex gap-2 ms-0 me-2 social_links_forHeader",children:[(null===u||void 0===u?void 0:u.fbUrl)?(0,i.jsx)("a",{href:u.fbUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.AYu})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.instaUrl)?(0,i.jsx)("a",{href:u.instaUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.Zzi})}):(0,i.jsx)(i.Fragment,{})]}):(0,i.jsxs)("div",{className:"social-wrapper ms-0 me-2",children:[(null===u||void 0===u?void 0:u.fbUrl)?(0,i.jsx)("a",{href:u.fbUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.AYu})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.instaUrl)?(0,i.jsx)("a",{href:u.instaUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.Zzi})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.twitterUrl)?(0,i.jsx)("a",{href:u.twitterUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.mdU})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.linkedInUrl)?(0,i.jsx)("a",{href:u.linkedInUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.D9H})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.youtubUrl)?(0,i.jsx)("a",{href:u.youtubUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.opf})}):(0,i.jsx)(i.Fragment,{}),(null===u||void 0===u?void 0:u.tiktokUrl)?(0,i.jsx)("a",{href:u.tiktokUrl,target:"_blank",children:(0,i.jsx)(Z.G,{icon:V.ABo})}):(0,i.jsx)(i.Fragment,{})]})}):(0,i.jsx)(i.Fragment,{})},R=(t(46299),t(41664)),H=t.n(R);var T=function(e){var n,t,u,v,m,g,f;(0,c.c)("Info");var p=(0,d.rV)(),j=p.setting,y=p.staticPagesList,I=p.locationPopup,L=p.merchantId,F=p.theme,B=p.branchPhoneNumber,A=(p.isFullSize,p.branches),M=(0,h.Lc)(),U=(0,s.v9)((function(e){return e.settings.selectedCity})),R=((0,s.v9)((function(e){return e.settings.isDineinMenu})),(0,s.v9)((function(e){return e.settings.selectedBranch}))),T=(0,s.v9)((function(e){return e.settings.selectedArea})),G=(0,s.v9)((function(e){return e.settings.isEasypaisa})),W=((0,s.v9)((function(e){return e.settings.user})),(0,a.Z)((0,o.useState)(S.j1w),2)),D=W[0],X=W[1],J=(0,a.Z)((0,o.useState)(""),2),q=J[0],K=J[1],Y=(0,a.Z)((0,o.useState)(""),2),Q=Y[0],$=Y[1],ee=(0,a.Z)((0,o.useState)(B),2),ne=ee[0],te=ee[1],ie=(0,a.Z)((0,o.useState)(!1),2),oe=ie[0],le=ie[1],ae=(0,C.xQ)().apiUrl,re=(0,s.I0)(),se=null===j||void 0===j||null===(n=j.options)||void 0===n?void 0:n.languages,ce=(0,a.Z)((0,o.useState)(!1),2),de=ce[0],ue=ce[1],ve=(0,a.Z)((0,o.useState)(""),2),me=ve[0],he=ve[1],ge=(0,a.Z)((0,o.useState)(""),2),fe=ge[0],pe=ge[1],xe=(0,a.Z)((0,o.useState)(!1),2),be=xe[0],je=xe[1];(0,o.useEffect)((function(){var e;le(null===j||void 0===j||null===(e=j.options)||void 0===e?void 0:e.enable_user_login)}),[j]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))te(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===T||void 0===T||null===(n=T.areaObj)||void 0===n?void 0:n.branch_id)&&T.areaObj.branch_id in A){var i=A[T.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void te(i.phone_number)}}else if(null===R||void 0===R||null===(t=R.branchObj)||void 0===t?void 0:t.phone_number)return void te(R.branchObj.phone_number);te(B)}}),[B,R,T]),(0,o.useEffect)((function(){if(y&&y.length){var e=y.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;je(!!e)}else je(!1)}),[y]),(0,o.useEffect)((function(){var e;he(null===j||void 0===j||null===(e=j.options)||void 0===e?void 0:e.phone_icon_type)}),[U,j]),(0,o.useEffect)((function(){"call"===me?(X(S.j1w),K("tel:".concat(ne))):"whatsapp"===me?(X(V.VHX),K("https://wa.me/".concat(ne,"?text=")),$("_blank")):K("tel:".concat(ne))}),[me,ne]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=_e(null===U||void 0===U?void 0:U.label);pe(n),K("tel:".concat(n+ne))}}),[U,ne,e.preCodeNum]);var _e=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},we=(0,N.useRouter)().pathname,ye=function(){ue(!de)},Ne=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",L),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",ae,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),ke={220185:{classess:"belco_header_links",list:[{title:"Corporate Gifting",link:"https://cloud.symits.com/~symbioshostcpane/beta/belco/corporate.php"},{title:"Customization",link:"https://cloud.symits.com/~symbioshostcpane/beta/belco/index.php"}]}};return(0,i.jsx)("div",{className:"text-right\n            ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start",children:(0,i.jsxs)(i.Fragment,{children:["220445"===L&&(0,i.jsxs)("a",{className:"btn d-flex d-md-none d-lg-none  mx-2 btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex d-md-none d-lg-flex align-items-center",href:"https://menu.indolj.io/upload/Flyer.pdf",target:"_blank",children:[(0,i.jsx)(Z.G,{icon:S.gee,size:"1.3rem"}),(0,i.jsxs)("div",{className:"mx-1 ",children:[(0,i.jsx)("span",{children:"Menu"})," "]})]}),"200478"===L||"200655"===L&&(0,i.jsx)(z,{infoMercahnt:!0}),function(){if(we.includes("menu")||we.includes("/"))return!0}()&&"yes"===I?(0,i.jsx)(O,{handleClick:function(e){re((0,x.uN)(!1))}}):"",F.hideContact||"200372"===L||G?"":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-md-2 rounded-04 branch-phone-number d-flex align-items-center ".concat("220445"===L?"mx-1 px-2":""),href:q,target:Q,onClick:function(){return Ne()},children:[(null===(t=M[L])||void 0===t?void 0:t.SmartHeader)&&"220082"===L?(0,i.jsx)(_(),{src:"/assets/images/fourteen_streetPizza/Call.png",alt:"cartIcon",width:30,height:35}):(null===(u=M[L])||void 0===u?void 0:u.SmartHeader)?(0,i.jsx)("div",{className:"phone_icon",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"20",viewBox:"0 0 12.029 19.246",children:(0,i.jsx)("path",{id:"Icon_awesome-mobile-alt",fill:"#fff","data-name":"Icon awesome-mobile-alt",d:"M10.224,0H1.8A1.8,1.8,0,0,0,0,1.8V17.441a1.8,1.8,0,0,0,1.8,1.8h8.42a1.8,1.8,0,0,0,1.8-1.8V1.8A1.8,1.8,0,0,0,10.224,0ZM6.014,18.043a1.2,1.2,0,1,1,1.2-1.2A1.2,1.2,0,0,1,6.014,18.043Zm4.21-4.06a.452.452,0,0,1-.451.451H2.255a.452.452,0,0,1-.451-.451V2.255A.452.452,0,0,1,2.255,1.8H9.773a.452.452,0,0,1,.451.451Z"})})}):"243"===L?(0,i.jsx)(_(),{className:"d-none d-md-inline",src:"/assets/images/phone-outline.svg",alt:"phone-outline",height:15,width:15}):(0,i.jsx)(Z.G,{className:"220445"===L?"d-md-inline-block":"d-none d-md-inline-block",icon:D,style:{fontSize:"220445"===L&&"15px"}}),(null===(v=M[L])||void 0===v?void 0:v.SmartHeader)?(0,i.jsxs)("div",{className:"mx-1",children:[(0,i.jsx)("span",{children:"Call and Order"})," ",(0,i.jsx)("span",{children:ne&&fe?ne&&ne:ne})]}):(0,i.jsx)("span",{className:"mx-1 ".concat("220445"===L?"d-none d-md-inline-block":""),children:ne&&fe?ne&&ne:ne})]}),"220445"===L&&(0,i.jsxs)("a",{className:"btn d-none d-lg-flex mx-2 btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex d-md-none d-lg-flex align-items-center",href:"https://menu.indolj.io/upload/Flyer.pdf",target:"_blank",children:[(0,i.jsx)(Z.G,{icon:S.gee,size:"1.3rem"}),(0,i.jsxs)("div",{className:"mx-1 ",children:[(0,i.jsx)("span",{children:"Menu"})," "]})]})]}),be&&!(null===(m=M[L])||void 0===m?void 0:m.hideStaticPageBar)?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null,oe&&!G?["379","220013"].includes(L)?(0,i.jsx)("div",{className:"d-md-block d-md-none d-flex justify-content-center align-items-center ms-2",children:(0,i.jsx)(w.Z,{})}):(0,i.jsxs)("div",{className:"d-flex justify-content-center align-items-center",children:[se&&Object.values(se)&&Object.values(se).length>1?(0,i.jsx)(k,{languages:se,dropdownOpen:de,toggle:ye}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(w.Z,{})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:se&&Object.values(se)&&Object.values(se).length>1?(0,i.jsx)(k,{languages:se,dropdownOpen:de,toggle:ye}):(0,i.jsx)(i.Fragment,{})})}),P.HB[L]?(0,i.jsx)("div",{className:"order-1 d-flex align-items-center",style:{marginBottom:"-0.19rem"},children:P.HB[L].map((function(e){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"\n                      ".concat(e.image?"pe-1":"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number align-items-center","\n                      ").concat((null===e||void 0===e?void 0:e.showMobileSameDesktopPosition)?"d-flex":"d-none d-lg-flex","\n                    \n                    "),style:{transform:"translate(".concat(e.imageXPosition,", ").concat(e.imageYPosition,")")},children:e.image?(0,i.jsx)(_(),{src:e.image,alt:"benefits of this brand",className:"img-fluid \n                          ".concat((null===e||void 0===e?void 0:e.showMobileSameDesktopPosition)?"d-flex":"d-none d-lg-flex","\n                        "),width:e.imageWidth,height:e.imageHeight}):e.text})}))}):(0,i.jsx)(i.Fragment,{}),we&&ke[L]?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("ul",{className:null===(g=ke[L])||void 0===g?void 0:g.classess,children:null===(f=ke[L])||void 0===f?void 0:f.list.map((function(e,n){return(0,i.jsx)("li",{children:(0,i.jsx)(H(),{href:null===e||void 0===e?void 0:e.link,target:"_blank",children:null===e||void 0===e?void 0:e.title})},n)}))})}):null]})})})},G=t(12056),W=(t(96486),t(85367)),D=function(){var e="undefined"!==typeof localStorage?localStorage.getItem("socialURL"):null;if(e)return e=JSON.parse(e);return{iconLinks:null,floatingWhatsAppNo:"",fbUrl:null,instaUrl:null}};var X=function(e){var n,t,l,r,c,u,v,g,f=(0,d.rV)(),p=f.setting,b=f.staticPagesList,j=f.merchantId,y=(0,h.Lc)(),S=(0,s.v9)((function(e){return e.settings.isEasypaisa})),C=(0,a.Z)((0,o.useState)(!1),2),Z=C[0],I=C[1],O=(0,a.Z)((0,o.useState)(!1),2),L=O[0],F=O[1],P=(0,a.Z)((0,o.useState)(null===(n=D())||void 0===n?void 0:n.fbUrl),2),A=P[0],M=P[1],U=(0,a.Z)((0,o.useState)(null===(t=D())||void 0===t?void 0:t.instaUrl),2),V=U[0],z=U[1],R=(0,a.Z)((0,o.useState)(!1),2),X=R[0],J=R[1],q=(0,N.useRouter)().asPath,K=(0,s.I0)(),Y=(0,m.Z)(),Q=null===p||void 0===p||null===(l=p.options)||void 0===l?void 0:l.languages;(0,o.useEffect)((function(){if(b&&b.length){var e=b.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;I(!!e)}else I(!1)}),[b]),(0,o.useEffect)((function(){var e;F(null===p||void 0===p||null===(e=p.options)||void 0===e?void 0:e.enable_user_login)}),[p]);var $=function(){J(!X)},ee={220082:[{title:"Our Story",link:"/pages/our-story"},{title:"Franchising",link:"/pages/get-a-franchise"},{title:"Contact Us",link:"/pages/contact-us"}],200292:[{title:"Contact Us",link:"/pages/contact-us"}],200023:[{title:"Corporate & Special Event Orders",link:"/pages/corporate-&-special-event-orders"}],635:[{title:"Reservation Form",link:"/pages/reservation-form"}],220417:[{title:"Locations",link:"/pages/our-location"},{title:"Franchising",link:"/pages/get-a-franchise"},{title:"Contact Us",link:"/pages/contact-us"}]},ne=(0,a.Z)((0,W.q)(),3),te=ne[0],ie=ne[1],oe=ne[2];(0,o.useEffect)((function(){var e,n,t,i;!A&&M(null===p||void 0===p||null===(e=p.options)||void 0===e?void 0:e.facebook),!V&&z(null===p||void 0===p||null===(n=p.options)||void 0===n?void 0:n.instagram);var o={fbUrl:null===p||void 0===p||null===(t=p.options)||void 0===t?void 0:t.facebook,instaUrl:null===p||void 0===p||null===(i=p.options)||void 0===i?void 0:i.instagram};localStorage.setItem("socialURL",JSON.stringify(o))}),[p]);var le=(0,N.useRouter)().query.dineinmenu;return(0,i.jsx)("div",{className:"text-right\n      ".concat(e.column,"\n      "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center justify-content-end fs-08",children:(0,i.jsxs)(i.Fragment,{children:["148"==j?(0,i.jsx)(_(),{src:"/assets/img/group-icon-california2.png",alt:"benefits of california pizza",className:"img-fluid d-none d-lg-block c-pizza-img",width:450,height:47}):"","379"==j||"220013"==j?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("ul",{className:"navigation",children:[(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"https://ginsoy.com/",children:"Home"})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"https://ginsoy.com/about-us.html",children:"Our Story"})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"https://ginsoy.com/gallery.html",children:"Gallery"})}),null===(r={220013:[{title:"Party Tray Menu",menuCategoryLink:410150}],379:[{title:"Menu",menuCategoryLink:407027},{title:"Party Tray Menu",menuCategoryLink:406872}]}[j])||void 0===r?void 0:r.map((function(e){return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"#".concat(e.menuCategoryLink),onClick:function(n){return t=e.menuCategoryLink,window.scrolling="yes",void K((0,x.Xg)(t));var t},children:e.title})})}))]}),(0,i.jsxs)("div",{className:"h-100 d-flex flex-row align-items-center justify-content-end",children:[L&&!S?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.Z,{}),"/"===q||q.includes("menu")?(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}):(0,i.jsx)(i.Fragment,{})]}):null,Q&&Object.values(Q)&&Object.values(Q).length>1?(0,i.jsx)(k,{languages:Q,dropdownOpen:X,toggle:$}):(0,i.jsx)(i.Fragment,{}),"/"===q||q.includes("menu")?(0,i.jsx)(B,{bg:e.bg}):(0,i.jsx)(i.Fragment,{}),Z?(0,i.jsx)(E,{classes:"d-block"}):null]})]}):(0,i.jsxs)(i.Fragment,{children:[Q&&Object.values(Q)&&Object.values(Q).length>1?(0,i.jsx)(k,{languages:Q,dropdownOpen:X,toggle:$}):(0,i.jsx)(i.Fragment,{}),"200441"===j?(0,i.jsx)(T,{preCodeNum:!1}):null,L&&!(null===(c=y[j])||void 0===c?void 0:c.SmartHeader)?(0,i.jsx)(w.Z,{}):null,L&&!(null===(u=y[j])||void 0===u?void 0:u.SmartHeader)?(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}):null,(null===(v=y[j])||void 0===v?void 0:v.SmartHeader)||ee[j]?(0,i.jsx)("ul",{children:ee[j]&&ee[j].map((function(e,n){return(0,i.jsx)("li",{children:(0,i.jsx)(H(),{href:e.link,className:q===e.link?"active":"",children:(0,i.jsx)("span",{children:e.title})})},n)}))}):null,"243"===j&&(0,i.jsx)(i.Fragment,{children:A||V?(0,i.jsxs)("div",{className:"mx-2 follow fw-bold d-flex align-items-center",children:[(0,i.jsx)("span",{children:"Follow Us"}),V?(0,i.jsx)("a",{href:V,target:"_blank",children:(0,i.jsx)(_(),{src:"/assets/images/instagram.svg",alt:"cartIcon",width:20,height:12})}):null,A?(0,i.jsx)("a",{href:A,target:"_blank",children:(0,i.jsx)(_(),{src:"/assets/images/fb.svg",alt:"cartIcon",width:12,height:12})}):null]}):(0,i.jsx)(i.Fragment,{})}),"220185"===j?(0,i.jsx)("div",{className:"searchh",children:(0,i.jsx)(G.Z,{onEmpty:oe,onChange:ie,value:te,placeholder:"".concat(Y.formatMessage({id:"searchPlaceholder"}))})}):null,"1"!==le?(0,i.jsx)(B,{bg:e.bg}):null,["200292"].includes(j)?(0,i.jsx)(w.Z,{}):(0,i.jsx)(i.Fragment,{}),Z?(null===(g=y[j])||void 0===g?void 0:g.SmartHeader)?null:(0,i.jsx)(E,{classes:"d-block"}):null]})]})})})};var J=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.merchantId,c=n.theme,v=(n.setting,(0,o.useRef)()),m=(0,s.I0)(),h="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;m((0,x.cs)(null===(e=null===v||void 0===v||null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(h=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(h=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:v,className:"topbar-wrapper street-14",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,style:{background:h},className:"py-2 topbar-container",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsx)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                            ".concat("1"!==c.logoLeftAlign?"justify-content-md-end":""),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:h,preCodeNum:"148"==r}),(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!0,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===v||void 0===v||null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(X,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]})})})})]})};function q(e){var n;(0,c.c)("Info");var t=(0,d.rV)(),u=t.setting,v=t.staticPagesList,m=t.locationPopup,h=t.merchantId,g=t.branchPhoneNumber,f=t.branches,p=(0,s.v9)((function(e){return e.settings.selectedCity})),j=(0,s.v9)((function(e){return e.settings.selectedBranch})),_=(0,s.v9)((function(e){return e.settings.selectedArea})),y=(0,s.v9)((function(e){return e.settings.isEasypaisa})),I=(0,a.Z)((0,o.useState)(S.j1w),2),L=I[0],F=I[1],B=(0,a.Z)((0,o.useState)(""),2),P=B[0],A=B[1],M=(0,a.Z)((0,o.useState)(""),2),U=M[0],V=M[1],z=(0,a.Z)((0,o.useState)(g),2),R=z[0],H=z[1],T=(0,a.Z)((0,o.useState)(!1),2),G=T[0],W=T[1],D=(0,C.xQ)().apiUrl,X=(0,s.I0)(),J=null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.languages,q=(0,a.Z)((0,o.useState)(!1),2),K=q[0],Y=q[1],Q=(0,a.Z)((0,o.useState)(""),2),$=Q[0],ee=Q[1],ne=(0,a.Z)((0,o.useState)(""),2),te=ne[0],ie=ne[1],oe=(0,a.Z)((0,o.useState)(!1),2),le=oe[0],ae=oe[1];(0,o.useEffect)((function(){var e;W(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.enable_user_login)}),[u]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))H(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===_||void 0===_||null===(n=_.areaObj)||void 0===n?void 0:n.branch_id)&&_.areaObj.branch_id in f){var i=f[_.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void H(i.phone_number)}}else if(null===j||void 0===j||null===(t=j.branchObj)||void 0===t?void 0:t.phone_number)return void H(j.branchObj.phone_number);H(g)}}),[g,j,_]),(0,o.useEffect)((function(){if(v&&v.length){var e=v.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;ae(!!e)}else ae(!1)}),[v]),(0,o.useEffect)((function(){var e;ee(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.phone_icon_type)}),[p,u]),(0,o.useEffect)((function(){"call"===$?(F(S.j1w),A("tel:".concat(R))):"whatsapp"===$?(F(faWhatsapp),A("https://wa.me/".concat(R,"?text=")),V("_blank")):A("tel:".concat(R))}),[$,R]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=re(null===p||void 0===p?void 0:p.label);ie(n),A("tel:".concat(n+R))}}),[p,R,e.preCodeNum]);var re=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},se=(0,N.useRouter)().pathname,ce=function(){Y(!K)},de=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",h),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",D,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)("div",{className:"text-right\n            ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start",children:(0,i.jsxs)(i.Fragment,{children:[function(){if(se.includes("menu")||se.includes("/"))return!0}()&&"yes"===m?(0,i.jsx)(O,{handleClick:function(e){X((0,x.uN)(!1))}}):"",(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:P,target:U,onClick:function(){return de()},children:[(0,i.jsx)(Z.G,{className:"d-md-inline-block icon",icon:L}),(0,i.jsxs)("div",{className:"mx-1",children:[(0,i.jsx)("span",{children:"Call and Order"}),(0,i.jsx)("span",{children:R&&te?R&&R:R})]})]}),le?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null,G&&!y?(0,i.jsxs)("div",{className:"d-flex justify-content-center align-items-center",children:[J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:ce}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(w.Z,{showStaticPages:le})]}):(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:ce}):(0,i.jsx)(i.Fragment,{})})]})})})}function K(e){var n,t=(0,d.rV)(),l=t.setting,r=t.staticPagesList,s=(0,a.Z)((0,o.useState)(!1),2),c=s[0],u=s[1],v=(0,a.Z)((0,o.useState)(!1),2),m=v[0],h=v[1],g=(0,a.Z)((0,o.useState)(!1),2),f=g[0],p=g[1],x=(0,N.useRouter)().asPath,b=null===l||void 0===l||null===(n=l.options)||void 0===n?void 0:n.languages;(0,o.useEffect)((function(){if(r&&r.length){var e=r.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;u(!!e)}else u(!1)}),[r]),(0,o.useEffect)((function(){var e;h(null===l||void 0===l||null===(e=l.options)||void 0===e?void 0:e.enable_user_login)}),[l]);var j=[{title:"Become A Franchisee",link:"/pages/get-a-franchise"}];return(0,i.jsx)("div",{className:"text-right\n      ".concat(e.column,"\n      "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center justify-content-end fs-08",children:(0,i.jsxs)(i.Fragment,{children:[j&&j.map((function(e,n){return(0,i.jsx)(H(),{href:e.link,className:"header_custom_links ".concat(x===e.link?"active":""),children:e.title})})),b&&Object.values(b)&&Object.values(b).length>1?(0,i.jsx)(k,{languages:b,dropdownOpen:f,toggle:function(){p(!f)}}):(0,i.jsx)(i.Fragment,{}),m?(0,i.jsx)(w.Z,{}):null,m?(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}):null,(0,i.jsx)(B,{bg:e.bg}),(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}),c?(0,i.jsx)(E,{classes:"d-block"}):null]})})})}var Y=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.merchantId,c=(n.theme,n.setting,(0,o.useRef)()),v=(0,s.I0)(),m="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;v((0,x.cs)(null===(e=null===c||void 0===c||null===(n=c.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(m=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(m=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:c,className:"topbar-wrapper burger_lab",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,className:"py-2 topbar-container",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsxs)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between",children:[(0,i.jsx)(q,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:m,preCodeNum:"148"==r}),(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!1,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===c||void 0===c||null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(K,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]})})})]})};function Q(e){var n;(0,c.c)("Info");var t=(0,d.rV)(),u=t.setting,v=t.staticPagesList,m=t.locationPopup,h=t.merchantId,g=t.branchPhoneNumber,f=t.branches,p=(0,s.v9)((function(e){return e.settings.selectedCity})),j=(0,s.v9)((function(e){return e.settings.selectedBranch})),_=(0,s.v9)((function(e){return e.settings.selectedArea})),y=(0,s.v9)((function(e){return e.settings.isEasypaisa})),I=(0,a.Z)((0,o.useState)(S.j1w),2),L=I[0],F=I[1],B=(0,a.Z)((0,o.useState)(""),2),P=B[0],A=B[1],M=(0,a.Z)((0,o.useState)(""),2),U=M[0],V=M[1],z=(0,a.Z)((0,o.useState)(g),2),R=z[0],H=z[1],T=(0,a.Z)((0,o.useState)(!1),2),G=T[0],W=T[1],D=(0,C.xQ)().apiUrl,X=(0,s.I0)(),J=null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.languages,q=(0,a.Z)((0,o.useState)(!1),2),K=q[0],Y=q[1],Q=(0,a.Z)((0,o.useState)(""),2),$=Q[0],ee=Q[1],ne=(0,a.Z)((0,o.useState)(""),2),te=ne[0],ie=ne[1],oe=(0,a.Z)((0,o.useState)(!1),2),le=oe[0],ae=oe[1],re=(0,s.v9)((function(e){return e.menu.recentOrder}));(0,o.useEffect)((function(){var e;W(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.enable_user_login)}),[u]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))H(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===_||void 0===_||null===(n=_.areaObj)||void 0===n?void 0:n.branch_id)&&_.areaObj.branch_id in f){var i=f[_.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void H(i.phone_number)}}else if(null===j||void 0===j||null===(t=j.branchObj)||void 0===t?void 0:t.phone_number)return void H(j.branchObj.phone_number);H(g)}}),[g,j,_]),(0,o.useEffect)((function(){if(v&&v.length){var e=v.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;ae(!!e)}else ae(!1)}),[v]),(0,o.useEffect)((function(){var e;ee(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.phone_icon_type)}),[p,u]),(0,o.useEffect)((function(){"call"===$?(F(S.j1w),A("tel:".concat(R))):"whatsapp"===$?(F(faWhatsapp),A("https://wa.me/".concat(R,"?text=")),V("_blank")):A("tel:".concat(R))}),[$,R]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=se(null===p||void 0===p?void 0:p.label);ie(n),A("tel:".concat(n+R))}}),[p,R,e.preCodeNum]);var se=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},ce=(0,N.useRouter)().pathname,de=function(){Y(!K)},ue=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",h),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",D,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)("div",{className:"text-right\n              ".concat(e.column,"\n          "),children:(0,i.jsx)("div",{className:"h-100 ".concat(re?"recent-mt":""," d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start"),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-2 ms-md-2 rounded-04 menu-card d-flex d-md-none align-items-center",href:"https://menu.indolj.io/upload/Curved-UAE-Main-Menu-FINAL.pdf",target:"_blank",children:[(0,i.jsx)(Z.G,{icon:S.gee,size:"1.3rem"}),(0,i.jsxs)("div",{className:"mx-1",children:[(0,i.jsx)("span",{children:"Menu"})," "]})]}),function(){if(ce.includes("menu")||ce.includes("/"))return!0}()&&"yes"===m?(0,i.jsx)(O,{handleClick:function(e){X((0,x.uN)(!1))}}):"",(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:P,target:U,onClick:function(){return ue()},children:[(0,i.jsx)("div",{className:"phone_icon",children:(0,i.jsx)(Z.G,{className:"d-none d-md-inline-block",icon:L,style:{fontSize:"15px"}})}),(0,i.jsxs)("div",{className:"mx-1 d-none d-md-block",children:[(0,i.jsx)("span",{children:"Call and Order"})," ",(0,i.jsx)("span",{children:R&&te?R&&R:R})]})]}),le?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null,G&&!y?(0,i.jsxs)("div",{className:"d-flex justify-content-center align-items-center ms-2",children:[J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:de}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(w.Z,{showStaticPages:le})]}):(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:de}):(0,i.jsx)(i.Fragment,{})}),(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-2 ms-md-2 rounded-04 menu-card d-none d-lg-flex align-items-center",href:"https://menu.indolj.io/upload/Curved-UAE-Main-Menu-FINAL.pdf",target:"_blank",children:[(0,i.jsx)(Z.G,{icon:S.gee,size:"1.3rem"}),(0,i.jsxs)("div",{className:"mx-1",children:[(0,i.jsx)("span",{children:"Menu"})," "]})]})]})})})}function $(e){var n,t=(0,d.rV)(),l=t.setting,r=t.staticPagesList,c=t.merchantId,u=(0,a.Z)((0,o.useState)(!1),2),v=u[0],m=u[1],h=(0,a.Z)((0,o.useState)(!1),2),g=(h[0],h[1]),f=(0,a.Z)((0,o.useState)(!1),2),p=f[0],x=f[1],b=((0,N.useRouter)().asPath,(0,s.v9)((function(e){return e.menu.recentOrder}))),j=null===l||void 0===l||null===(n=l.options)||void 0===n?void 0:n.languages;(0,o.useEffect)((function(){if(r&&r.length){var e=r.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;m(!!e)}else m(!1)}),[r]),(0,o.useEffect)((function(){var e;g(null===l||void 0===l||null===(e=l.options)||void 0===e?void 0:e.enable_user_login)}),[l]);return(0,i.jsx)("div",{className:"text-right\n        ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 ".concat(b?"recent-mt":""," d-flex flex-row align-items-center justify-content-end fs-08"),children:(0,i.jsxs)(i.Fragment,{children:[P.HB[c]?(0,i.jsx)("div",{className:"d-flex align-items-center sumbit_complain",style:{marginBottom:"-0.19rem"},children:P.HB[c].map((function(e){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"".concat(e.image?"pe-1":"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number align-items-center d-none d-lg-flex"),style:{transform:"translate(".concat(e.imageXPosition,", ").concat(e.imageYPosition,")")},children:e.image?(0,i.jsx)(_(),{src:e.image,alt:"benefits of this brand",className:"img-fluid d-none d-lg-block",width:e.imageWidth,height:e.imageHeight}):e.text})}))}):(0,i.jsx)(i.Fragment,{}),j&&Object.values(j)&&Object.values(j).length>1?(0,i.jsx)(k,{languages:j,dropdownOpen:p,toggle:function(){x(!p)}}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(B,{bg:e.bg}),(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}),v?(0,i.jsx)(E,{classes:"d-block"}):null]})})})}var ee=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.merchantId,c=n.theme,v=(n.setting,(0,o.useRef)()),m=(0,s.I0)(),h="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;m((0,x.cs)(null===(e=null===v||void 0===v||null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(h=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(h=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:v,className:"topbar-wrapper ",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,className:"py-2 topbar-container pizza_max_dubai",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsxs)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                                ".concat("1"!==c.logoLeftAlign?"justify-content-md-end":""),children:[(0,i.jsx)(Q,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:h,preCodeNum:"148"==r}),(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!1,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===v||void 0===v||null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)($,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]})})})]})};function ne(e){var n;(0,c.c)("Info");var t=(0,d.rV)(),u=t.setting,v=t.staticPagesList,m=t.locationPopup,h=t.merchantId,g=t.branchPhoneNumber,f=t.branches,p=(0,s.v9)((function(e){return e.settings.selectedCity})),j=(0,s.v9)((function(e){return e.settings.selectedBranch})),_=(0,s.v9)((function(e){return e.settings.selectedArea})),y=(0,s.v9)((function(e){return e.settings.isEasypaisa})),I=(0,a.Z)((0,o.useState)(S.j1w),2),L=I[0],F=I[1],B=(0,a.Z)((0,o.useState)(""),2),P=B[0],A=B[1],M=(0,a.Z)((0,o.useState)(""),2),U=M[0],V=M[1],z=(0,a.Z)((0,o.useState)(g),2),R=z[0],H=z[1],T=(0,a.Z)((0,o.useState)(!1),2),G=T[0],W=T[1],D=(0,C.xQ)().apiUrl,X=(0,s.I0)(),J=null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.languages,q=(0,a.Z)((0,o.useState)(!1),2),K=q[0],Y=q[1],Q=(0,a.Z)((0,o.useState)(""),2),$=Q[0],ee=Q[1],ne=(0,a.Z)((0,o.useState)(""),2),te=ne[0],ie=ne[1],oe=(0,a.Z)((0,o.useState)(!1),2),le=oe[0],ae=oe[1],re=(0,s.v9)((function(e){return e.menu.recentOrder}));(0,o.useEffect)((function(){var e;W(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.enable_user_login)}),[u]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))H(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===_||void 0===_||null===(n=_.areaObj)||void 0===n?void 0:n.branch_id)&&_.areaObj.branch_id in f){var i=f[_.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void H(i.phone_number)}}else if(null===j||void 0===j||null===(t=j.branchObj)||void 0===t?void 0:t.phone_number)return void H(j.branchObj.phone_number);H(g)}}),[g,j,_]),(0,o.useEffect)((function(){if(v&&v.length){var e=v.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;ae(!!e)}else ae(!1)}),[v]),(0,o.useEffect)((function(){var e;ee(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.phone_icon_type)}),[p,u]),(0,o.useEffect)((function(){"call"===$?(F(S.j1w),A("tel:".concat(R))):"whatsapp"===$?(F(faWhatsapp),A("https://wa.me/".concat(R,"?text=")),V("_blank")):A("tel:".concat(R))}),[$,R]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=se(null===p||void 0===p?void 0:p.label);ie(n),A("tel:".concat(n+R))}}),[p,R,e.preCodeNum]);var se=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},ce=(0,N.useRouter)().pathname,de=function(){Y(!K)},ue=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",h),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",D,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)("div",{className:"text-right\n              ".concat(e.column,"\n          "),children:(0,i.jsx)("div",{className:"h-100 ".concat(re?"recent-mt":""," d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start"),children:(0,i.jsxs)(i.Fragment,{children:[function(){if(ce.includes("menu")||ce.includes("/"))return!0}()&&"yes"===m?(0,i.jsx)(O,{handleClick:function(e){X((0,x.uN)(!1))}}):"",(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:P,target:U,onClick:function(){return ue()},children:[(0,i.jsx)("div",{className:"phone_icon",children:(0,i.jsx)(Z.G,{className:"d-none d-md-inline-block",icon:L,style:{fontSize:"15px"}})}),(0,i.jsxs)("div",{className:"mx-1 d-none d-md-block",children:[(0,i.jsx)("span",{children:"Call and Order"})," ",(0,i.jsx)("span",{children:R&&te?R&&R:R})]})]}),le?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null,G&&!y?(0,i.jsxs)("div",{className:"d-flex justify-content-center align-items-center ms-2",children:[J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:de}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(w.Z,{showStaticPages:le})]}):(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:J&&Object.values(J)&&Object.values(J).length>1?(0,i.jsx)(k,{languages:J,dropdownOpen:K,toggle:de}):(0,i.jsx)(i.Fragment,{})})]})})})}function te(e){var n,t=(0,d.rV)(),l=t.setting,r=t.staticPagesList,c=t.merchantId,u=(0,a.Z)((0,o.useState)(!1),2),v=u[0],m=u[1],h=(0,a.Z)((0,o.useState)(!1),2),g=(h[0],h[1]),f=(0,a.Z)((0,o.useState)(!1),2),p=f[0],x=f[1],b=(0,N.useRouter)().asPath,j=(0,s.v9)((function(e){return e.menu.recentOrder})),w=null===l||void 0===l||null===(n=l.options)||void 0===n?void 0:n.languages;(0,o.useEffect)((function(){if(r&&r.length){var e=r.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;m(!!e)}else m(!1)}),[r]),(0,o.useEffect)((function(){var e;g(null===l||void 0===l||null===(e=l.options)||void 0===e?void 0:e.enable_user_login)}),[l]);var y=[{title:"Locations",link:"/pages/our-location"},{title:"Franchising",link:"/pages/get-a-franchise"},{title:"Contact Us",link:"/pages/contact-us"}];return(0,i.jsx)("div",{className:"text-right\n        ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 ".concat(j?"recent-mt":""," d-flex flex-row align-items-center justify-content-end fs-08"),children:(0,i.jsxs)(i.Fragment,{children:[P.HB[c]?(0,i.jsx)("div",{className:"d-flex align-items-center sumbit_complain",style:{marginBottom:"-0.19rem"},children:P.HB[c].map((function(e){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"".concat(e.image?"pe-1":"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number align-items-center d-none d-lg-flex"),style:{transform:"translate(".concat(e.imageXPosition,", ").concat(e.imageYPosition,")")},children:e.image?(0,i.jsx)(_(),{src:e.image,alt:"benefits of this brand",className:"img-fluid d-none d-lg-block",width:e.imageWidth,height:e.imageHeight}):e.text})}))}):(0,i.jsx)(i.Fragment,{}),w&&Object.values(w)&&Object.values(w).length>1?(0,i.jsx)(k,{languages:w,dropdownOpen:p,toggle:function(){x(!p)}}):(0,i.jsx)(i.Fragment,{}),0!==y.length?(0,i.jsx)("ul",{className:"d-lg-flex d-none",children:y.map((function(e,n){return(0,i.jsx)("li",{children:(0,i.jsx)(H(),{href:e.link,className:b===e.link?"active":"",children:(0,i.jsx)("span",{children:e.title})})},n)}))}):null,(0,i.jsx)(B,{bg:e.bg}),v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"px-1 primary-color",children:"|"}),(0,i.jsx)(E,{classes:"d-block"})]}):null]})})})}var ie=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.merchantId,c=n.theme,v=(n.setting,(0,o.useRef)()),m=(0,s.I0)(),h="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;m((0,x.cs)(null===(e=null===v||void 0===v||null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(h=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(h=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:v,className:"topbar-wrapper ",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,className:"py-2 topbar-container ny212-header-container",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsxs)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                                ".concat("1"!==c.logoLeftAlign?"justify-content-md-end":""),children:[(0,i.jsx)(ne,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:h,preCodeNum:"148"==r}),(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!1,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===v||void 0===v||null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(te,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]})})})]})};function oe(e){var n,t=(0,d.rV)(),l=t.setting,r=t.staticPagesList,c=t.merchantId,u=(0,a.Z)((0,W.q)(),3),v=u[0],h=u[1],g=u[2],f=(0,m.Z)(),p=(0,a.Z)((0,o.useState)(!1),2),x=p[0],b=p[1],j=(0,a.Z)((0,o.useState)(!1),2),y=j[0],S=j[1],C=(0,a.Z)((0,o.useState)(!1),2),Z=C[0],I=C[1],O=(0,N.useRouter)().asPath,L=(0,s.v9)((function(e){return e.menu.recentOrder})),F=null===l||void 0===l||null===(n=l.options)||void 0===n?void 0:n.languages;(0,o.useEffect)((function(){if(r&&r.length){var e=r.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;b(!!e)}else b(!1)}),[r]),(0,o.useEffect)((function(){var e;S(null===l||void 0===l||null===(e=l.options)||void 0===e?void 0:e.enable_user_login)}),[l]);var A=[{title:"Locations",link:"/pages/our-location"},{title:"About Us",link:"/pages/about-us"},{title:"New Arrivals",link:"#419224"}];return(0,i.jsx)("div",{className:"text-right w-auto\n        ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 ".concat(L?"recent-mt":""," d-flex flex-row align-items-center justify-content-between fs-08"),children:(0,i.jsxs)(i.Fragment,{children:[0!==A.length?(0,i.jsx)("ul",{className:"d-lg-flex d-none",children:A.map((function(e,n){return(0,i.jsx)("li",{children:(0,i.jsx)(H(),{href:e.link,className:O===e.link?"active":"",children:(0,i.jsx)("span",{children:e.title})})},n)}))}):null,(0,i.jsxs)("div",{className:"d-flex align-items-center ",children:[P.HB[c]?(0,i.jsx)("div",{className:"d-flex align-items-center sumbit_complain",style:{marginBottom:"-0.19rem"},children:P.HB[c].map((function(e){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"".concat(e.image?"pe-1":"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number align-items-center d-none d-lg-flex"),style:{transform:"translate(".concat(e.imageXPosition,", ").concat(e.imageYPosition,")")},children:e.image?(0,i.jsx)(_(),{src:e.image,alt:"benefits of this brand",className:"img-fluid d-none d-lg-block",width:e.imageWidth,height:e.imageHeight}):e.text})}))}):(0,i.jsx)(i.Fragment,{}),F&&Object.values(F)&&Object.values(F).length>1?(0,i.jsx)(k,{languages:F,dropdownOpen:Z,toggle:function(){I(!Z)}}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)("div",{className:"searchh d-md-block d-none",children:(0,i.jsx)(G.Z,{onEmpty:g,onChange:h,value:v,placeholder:"".concat(f.formatMessage({id:"searchPlaceholder"})),setFirstCategoryOnScrollView:function(){}})}),(0,i.jsx)("div",{className:"d-md-block d-none",children:(0,i.jsx)(B,{bg:e.bg})}),y?(0,i.jsx)(w.Z,{}):null,(0,i.jsx)(le,{column:"",bg:e.navbarColor,preCodeNum:"148"==c}),x?(0,i.jsx)(E,{classes:"d-block savourFoods-humburger"}):null]})]})})})}function le(e){var n;(0,c.c)("Info");var t=(0,d.rV)(),u=t.setting,v=t.staticPagesList,m=t.locationPopup,h=t.merchantId,g=t.branchPhoneNumber,f=t.branches,p=(0,s.v9)((function(e){return e.settings.selectedCity})),j=(0,s.v9)((function(e){return e.settings.selectedBranch})),_=(0,s.v9)((function(e){return e.settings.selectedArea})),w=((0,s.v9)((function(e){return e.settings.isEasypaisa})),(0,a.Z)((0,o.useState)(S.j1w),2)),y=w[0],k=w[1],I=(0,a.Z)((0,o.useState)(""),2),L=I[0],E=I[1],F=(0,a.Z)((0,o.useState)(""),2),B=F[0],P=F[1],A=(0,a.Z)((0,o.useState)(g),2),M=A[0],U=A[1],V=(0,a.Z)((0,o.useState)(!1),2),z=(V[0],V[1]),R=(0,C.xQ)().apiUrl,H=(0,s.I0)(),T=(null===u||void 0===u||null===(n=u.options)||void 0===n||n.languages,(0,a.Z)((0,o.useState)(!1),2)),G=(T[0],T[1],(0,a.Z)((0,o.useState)(""),2)),W=G[0],D=G[1],X=(0,a.Z)((0,o.useState)(""),2),J=(X[0],X[1]),q=(0,a.Z)((0,o.useState)(!1),2),K=(q[0],q[1]),Y=(0,s.v9)((function(e){return e.menu.recentOrder}));(0,o.useEffect)((function(){var e;z(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.enable_user_login)}),[u]),(0,o.useEffect)((function(){var e=localStorage.getItem("branch");if(e&&(null===(e=JSON.parse(e))||void 0===e?void 0:e.phone_number))U(e.phone_number);else{var n,t;if("Delivery"===localStorage.getItem("delivery_type")){if((null===_||void 0===_||null===(n=_.areaObj)||void 0===n?void 0:n.branch_id)&&_.areaObj.branch_id in f){var i=f[_.areaObj.branch_id];if(null===i||void 0===i?void 0:i.phone_number)return void U(i.phone_number)}}else if(null===j||void 0===j||null===(t=j.branchObj)||void 0===t?void 0:t.phone_number)return void U(j.branchObj.phone_number);U(g)}}),[g,j,_]),(0,o.useEffect)((function(){if(v&&v.length){var e=v.filter((function(e){return"navbar"===e.position||"both"===e.position})).length;K(!!e)}else K(!1)}),[v]),(0,o.useEffect)((function(){var e;D(null===u||void 0===u||null===(e=u.options)||void 0===e?void 0:e.phone_icon_type)}),[p,u]),(0,o.useEffect)((function(){"call"===W?(k(S.j1w),E("tel:".concat(M))):"whatsapp"===W?(k(faWhatsapp),E("https://wa.me/".concat(M,"?text=")),P("_blank")):E("tel:".concat(M))}),[W,M]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=Q(null===p||void 0===p?void 0:p.label);J(n),E("tel:".concat(n+M))}}),[p,M,e.preCodeNum]);var Q=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]},$=(0,N.useRouter)().pathname,ee=function(){var e=(0,l.Z)((function(){var e,n,t,i,o,l;return(0,r.__generator)(this,(function(a){switch(a.label){case 0:e=window.location.hostname,n=window.location.origin,t={json:"1"},a.label=1;case 1:return a.trys.push([1,3,,4]),(i=new FormData).append("merchant_id",h),i.append("ip_address",e),i.append("http_referrer",n),[4,(0,b.P)("POST",R,"ClickCallButton",i,t)];case 2:return(o=a.sent())&&1===o.code&&console.log("loading => axios ClickCallButton success",o),[3,4];case 3:return l=a.sent(),console.log("loading => axios ClickCallButton error",l),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)("div",{className:"text-right\n              ".concat(e.column,"\n          "),children:(0,i.jsx)("div",{className:"h-100 ".concat(Y?"recent-mt":""," d-flex flex-row align-items-center topbar-info-container fs-08 justify-content-end justify-content-md-start"),children:(0,i.jsxs)(i.Fragment,{children:[function(){if($.includes("menu")||$.includes("/"))return!0}()&&"yes"===m?(0,i.jsx)(O,{handleClick:function(e){H((0,x.uN)(!1))}}):"",(0,i.jsx)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:L,target:B,onClick:function(){return ee()},children:(0,i.jsx)(Z.G,{className:" d-md-inline-block",icon:y})})]})})})}var ae=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerImages,a=n.headerVideo,r=n.theme,c=(n.merchantId,(0,o.useRef)()),v=(0,s.I0)(),m="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;v((0,x.cs)(null===(e=null===c||void 0===c||null===(n=c.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===l||void 0===l?void 0:l.logo_navber)?(m=null===l||void 0===l?void 0:l.navbar_color,e=null===l||void 0===l?void 0:l.navbar_logo_link):"video"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)&&(m=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link),(0,i.jsxs)("div",{ref:c,className:"topbar-wrapper mt-3",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),(0,i.jsx)(p.W2,{fluid:!0,className:"py-2 topbar-container savour_foods",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsxs)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                                ".concat("1"!==r.logoLeftAlign?"justify-content-md-end":""),children:[(0,i.jsx)(F.Z,{column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!0,logoUrl:e,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===c||void 0===c||null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(oe,{column:" col-md-5 col-9 order-md-3 order-2 px-0 px-md-1",navbarColor:m})]})})})]})};var re=function(e){var n,t,o,l,a,r=e.merchantId,s=(0,h.Lc)();return(null===(n=s[r])||void 0===n?void 0:n.KFCHeader)?(0,i.jsx)(U,{}):(null===(t=s[r])||void 0===t?void 0:t.BurgerLabHeader)?(0,i.jsx)(Y,{}):(null===(o=s[r])||void 0===o?void 0:o.pizzaMaxDubai)?(0,i.jsx)(ee,{}):(null===(l=s[r])||void 0===l?void 0:l.Ny212Header)?(0,i.jsx)(ie,{}):(null===(a=s[r])||void 0===a?void 0:a.savourFoodsHeader)?(0,i.jsx)(ae,{}):(0,i.jsx)(J,{})};var se=function(e){(0,c.c)("InfoMomentumSwing");var n=(0,d.rV)(),t=n.setting,l=n.staticPagesList,r=(n.locationPopup,n.merchantId,n.theme),u=n.branchPhoneNumber,v=(n.isFullSize,(0,s.v9)((function(e){return e.settings.selectedCity}))),m=((0,s.v9)((function(e){return e.settings.isDineinMenu})),(0,a.Z)((0,o.useState)(""),2)),h=m[0],g=m[1],f=(0,a.Z)((0,o.useState)(""),2),p=f[0],x=f[1],b=(0,a.Z)((0,o.useState)(""),2),j=b[0],_=b[1],w=(0,a.Z)((0,o.useState)(u),2),y=w[0],N=w[1],k=(0,a.Z)((0,o.useState)(""),2),C=k[0],I=k[1],O=(0,a.Z)((0,o.useState)(""),2),L=O[0],F=O[1],B=((0,s.I0)(),(0,a.Z)((0,o.useState)(!1),2)),P=B[0],A=B[1];(0,o.useEffect)((function(){l&&Object.keys(l).length?A(!0):A(!1)}),[l]),(0,o.useEffect)((function(){var e;N((null===(e=JSON.parse(localStorage.getItem("branch")))||void 0===e?void 0:e.phone_number)?JSON.parse(localStorage.getItem("branch")).phone_number:u)}),[u]),(0,o.useEffect)((function(){var e;I(null===t||void 0===t||null===(e=t.options)||void 0===e?void 0:e.phone_icon_type)}),[v,t]),(0,o.useEffect)((function(){"call"===C?(g(S.j1w),x("tel:".concat(y))):"whatsapp"===C?(g(V.VHX),x("https://wa.me/".concat(y,"?text=")),_("_blank")):x("tel:".concat(y))}),[C,y]),(0,o.useEffect)((function(){if(e.preCodeNum){var n=M(null===v||void 0===v?void 0:v.label);F(n),x("tel:".concat(n+y))}}),[v,y,e.preCodeNum]);var M=function(e){return{Islamabad:"051-",Karachi:"021-",Hyderabad:"021-",Lahore:"042-",Multan:"051-"}[e]};return(0,i.jsx)("div",{className:"text-right\n            ".concat(e.column,"\n        "),children:(0,i.jsx)("div",{className:"h-100 d-flex flex-row align-items-center fs-08",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"d-block d-md-none top-0 start-0 end-0 bottom-0 d-flex flex-grow-1 justify-content-center align-items-center momentum-text-logo",children:"MOMENTUM SWINGS"}),(0,i.jsxs)("div",{className:"bar-n-number d-flex",children:[r.hideContact?"":(0,i.jsxs)("a",{className:"btn btn-indolj-primary fs-08 fw-bold ms-1 ms-md-2 rounded-04 branch-phone-number d-flex align-items-center",href:p,target:j,children:[(0,i.jsx)(Z.G,{className:"d-none d-md-inline-block",icon:h}),(0,i.jsx)("span",{className:"ms-1",children:y&&L?y&&y:y})]}),P?(0,i.jsx)(E,{classes:"d-block d-md-none"}):null]})]})})})};function ce(e){var n,t,o=e.navbarColor,l=e.theme,r=e.dispatch,s=e.merchantId,c=e.logoExternalUrl,d=e.containerRef,u=e.intl,v=(0,a.Z)((0,W.q)(),3),m=v[0],g=v[1],f=v[2],b=(0,h.Lc)();return(0,i.jsx)(p.W2,{fluid:!0,style:{background:o},className:"py-2 topbar-container",children:(0,i.jsx)("div",{className:"px-0 px-md-1",children:(0,i.jsx)(p.X2,{className:"m-0 topbar-wrapper topbar-inside-wrapper justify-content-between \n                            ".concat("1"!==l.logoLeftAlign?"justify-content-md-end":""),children:"200269"==s?(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(se,{column:"col-md-5 d-md-none col-10 col-10-custom-width order-md-1 order-2 px-0 px-md-1"}),(0,i.jsx)(F.Z,{isLogoHide:null===(n=b[s])||void 0===n?void 0:n.hideMenuLogo,column:"col-md-2 col-2 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!0,logoUrl:c,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===d||void 0===d||null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(X,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T,{column:"col-md-5 col-9 order-md-1 order-2 px-0 px-md-1",bg:o,preCodeNum:"148"==s}),(0,i.jsx)(F.Z,{isLogoHide:null===(t=b[s])||void 0===t?void 0:t.hideMenuLogo,column:"col-md-2 col-3 order-md-2 order-1 px-0 px-md-1 top-header-logo",bg:!0,logoUrl:c,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===d||void 0===d||null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),(0,i.jsx)(X,{column:"d-none d-md-block col-md-5 col-9 order-md-3 order-2 px-0 px-md-1"}),"200441"==s?(0,i.jsx)("div",{className:"searchh",children:(0,i.jsx)(G.Z,{autocomplete:"off",onEmpty:f,onChange:g,value:m,placeholder:u.formatMessage({id:"searchPlaceholder"}),setFirstCategoryOnScrollView:function(){return r((0,x.Xg)(""))}})}):null]})})})})}function de(e){var n,t=e.headerCustom,o=e.merchantId,l=e.containerRef,a=e.baseUrl,r=e.paymentList,s=(e.intl,(0,h.Lc)());return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.W2,{fluid:!0,style:{background:t.topbar_background_color,color:t.topbar_text_color},className:"topbar-container d-flex d-sm-block flex-column align-items-center py-2 ps-md-5 fs-08 fw-light",children:[(0,i.jsxs)("a",{href:"tel:".concat(t.contact.replace(/\s/g,"")),style:{color:t.topbar_text_color},className:"text-decoration-none px-2",children:[(0,i.jsx)(Z.G,{icon:S.j1w})," ",t.contact]}),(0,i.jsxs)("span",{className:"px-2",children:[(0,i.jsx)(Z.G,{icon:S.SZw})," ",t.timing]}),(0,i.jsxs)("a",{href:"mailto:".concat(t.email),style:{color:t.topbar_text_color},className:"text-decoration-none px-2",children:[(0,i.jsx)(Z.G,{icon:S.FU$})," ",t.email]})]}),(0,i.jsx)(p.W2,{className:"px-0 py-2 py-md-0 d-flex justify-content-center",children:(0,i.jsx)(F.Z,{isLogoHide:null===(n=s[o])||void 0===n?void 0:n.hideMenuLogo,column:"col-6",bg:!1,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===l||void 0===l||null===(t=l.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}})}),(0,i.jsxs)(p.W2,{fluid:!0,className:"position-relative",style:{width:"100%",aspectRatio:t.aspectRatio?t.aspectRatio:"auto"},children:[(0,i.jsx)(_(),{src:a?encodeURI(a+"/upload/"+t.url):"",alt:"banner",priority:!0,fill:!0,onLoad:function(e){var n,t;(0,x.cs)(null===(n=null===l||void 0===l||null===(t=l.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.height)}}),Object.values(r).includes("Online Credit Card")&&(0,i.jsx)("div",{className:"payment-image",children:(0,i.jsx)(_(),{style:{maxWidth:"100%"},src:"/assets/img/Card.png",fill:!0,alt:"transaction available from online card"})})]})]})}var ue=function(){var e,n=(0,d.rV)(),t=n.headerType,l=n.headerCustom,a=n.headerImages,r=n.headerVideo,c=n.merchantId,v=n.theme,h=n.paymentList,p=(n.setting,(0,o.useRef)()),b=(0,C.xQ)().baseUrl,j=(0,s.I0)(),_=(0,m.Z)(),w="#fff";return(0,o.useEffect)((function(){window.addEventListener("resize",(function(){var e,n;j((0,x.cs)(null===(e=null===p||void 0===p||null===(n=p.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===e?void 0:e.height))}))}),[]),"image"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)?(w=null===a||void 0===a?void 0:a.navbar_color,e=null===a||void 0===a?void 0:a.navbar_logo_link):"video"===t&&"1"===(null===r||void 0===r?void 0:r.logo_navber)&&(w=null===r||void 0===r?void 0:r.navbar_color,e=null===r||void 0===r?void 0:r.navbar_logo_link),(0,i.jsxs)("div",{ref:p,className:"topbar-wrapper",children:[(0,i.jsx)(u,{}),(0,i.jsx)(g,{}),(0,i.jsx)(f.Z,{}),"custom"===t&&l?(0,i.jsx)(de,{headerCustom:l,merchantId:c,containerRef:p,baseUrl:b,paymentList:h,intl:_}):"image"===t&&"1"===(null===a||void 0===a?void 0:a.logo_navber)||"video"===t&&"1"===(null===r||void 0===r?void 0:r.logo_navber)||"default"===t?(0,i.jsx)(ce,{navbarColor:w,theme:v,dispatch:j,merchantId:c,logoExternalUrl:e,containerRef:p,intl:_}):(0,i.jsx)(i.Fragment,{})]})},ve=t(51019),me=t(21921),he=t(31647),ge=function(){var e,n,c=(0,N.useRouter)(),u=(0,s.I0)(),v=(0,a.Z)((0,o.useState)(null),2),g=v[0],f=v[1],b=(0,a.Z)((0,o.useState)(null),2),j=b[0],w=b[1],y=(0,a.Z)((0,o.useState)(!0),2),k=y[0],S=y[1],Z=(0,a.Z)((0,o.useState)(!1),2),I=Z[0],O=Z[1],E=(0,C.xQ)().baseUrl,F=(0,s.v9)((function(e){return e.settings.authToken})),B=(0,s.v9)((function(e){return e.settings.firebase_token})),P=(0,d.rV)(),A=P.merchantId,M=P.headerType,U=P.headerVideo,V=P.headerImages,z=(0,m.Z)(),R=(0,C.xQ)().server,H="#fff";"image"===M&&"1"===(null===V||void 0===V?void 0:V.logo_navber)?H=null===V||void 0===V?void 0:V.navbar_color:"video"===M&&"1"===(null===U||void 0===U?void 0:U.logo_navber)&&(H=null===U||void 0===U?void 0:U.navbar_color),(0,o.useEffect)((function(){if(A){var e,n=JSON.parse(localStorage.getItem("order-history-".concat(A))),t=n&&(null===(e=Object.keys(n))||void 0===e?void 0:e.length)?Object.values(n):[],i=t[t.length-1];if(i){var o=new Date(i.timestamp).getTime(),l=(new Date).getTime(),a=72e5;l-o<a&&(f(i),setTimeout((function(){f(null)}),a-(l-o)))}}else console.error("merchantId is not available")}),[A]);var T={initial_order:{title:"Not Paid",color:"danger"},auto_cancelled_payment_failed:{title:"Not Paid",color:"danger"},pending:{title:z.formatMessage({id:"received"}),color:"warning"},paid:{title:"Order Paid",color:"success"},cancelled:{title:"Cancelled",color:"danger"},decline:{title:"Decline",color:"danger"}},G=function(){var e=(0,l.Z)((function(){var e;return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return(null===g||void 0===g?void 0:g.orderId)?[4,(0,me.o3)(E,F,null===g||void 0===g?void 0:g.orderId)]:[3,2];case 1:e=n.sent(),u((0,x.i8)(null===e||void 0===e?void 0:e.details)),n.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){G()}),[null===g||void 0===g?void 0:g.order_id]),(0,o.useEffect)((function(){console.log(B,"====>firebaseToken"),B&&(0,he.C0)(B).then((function(e){console.log(e,"====>userCredential"),g&&A&&Promise.resolve().then(t.bind(t,67672)).then((function(e){var n=e.db,t=(0,ve.IO)((0,ve.iH)(n,R+"/merchants/"+A+"/orders/"+(null===g||void 0===g?void 0:g.order_id)));(0,ve.jM)(t,(function(e){var n=e.val();console.log("loading => firebase realtime data",n),w(null===n||void 0===n?void 0:n.status)}))}))})).catch((function(e){console.error("Authentication error:",e)}))}),[g,A,B]);var W=(0,h.Lc)();return g&&k&&(null===g||void 0===g?void 0:g.order_id)&&j&&u((0,L.KQ)(!0)),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{style:W&&(null===(e=W[A])||void 0===e?void 0:e.KFCHeader)?{background:"transparent",zIndex:"999"}:W&&(null===(n=W[A])||void 0===n?void 0:n.BurgerLabHeader)?{background:"transparent",top:40,zIndex:"999"}:{background:H},className:"".concat(g&&k&&(null===g||void 0===g?void 0:g.order_id)&&j?"recent-order-container":"","  d-flex justify-content-end  position-relative"),children:[g&&k&&(null===g||void 0===g?void 0:g.order_id)&&j&&(!j||"delivered"!==j&&"completed"!==j&&"picked-up"!==j)?(0,i.jsx)("div",{className:"bg-white opacity-75 mt-1 mb-1 px-2 rounded-pill ".concat(k?"slider-enter-recent":"slider-exit-recent"),style:{width:"30rem"},children:(0,i.jsxs)("div",{className:"d-flex flex-row p-1 recent-order justify-content-between align-items-center",children:[(0,i.jsxs)("div",{className:"text-danger d-flex flex-wrap align-items-center justify-content-center recent-order-font",children:[(0,i.jsxs)("div",{className:"d-flex",children:[" ",(0,i.jsx)("div",{className:" position-relative ",style:{width:"2rem",height:"2rem"},children:(0,i.jsx)(_(),{src:"/assets/img/live.gif",className:"live-gif",fill:!0,alt:"Live status"})}),(0,i.jsx)("h6",{className:"my-auto recent-order-font",children:"Current Order Status :"})]}),(0,i.jsx)("div",{children:j?j in T?(0,i.jsx)("btn",{className:"btn btn-sm ms-1 rounded-pill text-white border-0 recent-order-font bg-".concat(T[j].color),color:T[j].color,children:T[j].title}):"accepted"===j.toLowerCase()?(0,i.jsx)(p.zx,{className:"btn btn-sm ms-1 text-white recent-order-font border-0 rounded-pill bg-success",children:z.formatMessage({id:"accepted"})}):"order preparation"===j.toLowerCase()?(0,i.jsx)(p.zx,{className:"btn btn-sm ms-1 text-white recent-order-font border-0 rounded-pill bg-success",children:"order preparation"}):(0,i.jsx)("btn",{className:"btn btn-sm ms-1 text-white recent-order-font border-0 rounded-pill bg-warning",children:j}):j?(0,i.jsx)(p.zx,{className:"btn btn-sm ms-1 text-white recent-order-font rounded-pill border-0 bg-".concat(T[j].color),children:j}):null})]}),(0,i.jsx)("btn",{onClick:function(){return c.push("/receipt?id=".concat(null===g||void 0===g?void 0:g.orderId))},className:"btn btn-indolj-primary btn-sm rounded-pill d-flex recent-order-font",children:"View Order"})]})}):null,g&&(null===g||void 0===g?void 0:g.order_id)&&j&&(!j||"delivered"!==j&&"completed"!==j&&"picked-up"!==j)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.zx,{style:{borderRadius:"4px",marginRight:"4px",position:"relative",marginBottom:1,display:"flex",alignItems:"center",marginLeft:5},id:"Tooltip-",onClick:function(){return S(!k)},color:"indolj-primary",className:"rounded-04 mt-1  ",children:k?">>":"<<"}),(0,i.jsx)(p.u,{isOpen:I,target:"Tooltip-",toggle:function(){return O(!I)},children:"Your Order"})]}):null]})})};var fe=function(){var e,n=(0,d.rV)().merchantId,t=(0,h.Lc)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ge,{}),(null===(e=t[n])||void 0===e?void 0:e.SmartHeader)?(0,i.jsx)(re,{merchantId:n}):(0,i.jsx)(ue,{})]})}},85367:function(e,n,t){t.d(n,{q:function(){return r}});var i=t(67294),o=t(41248),l=t(73455),a=t(96486),r=function(){var e=(0,o.I0)(),n=(0,o.v9)((function(e){return e.menu})),t=n.activeMainCategory,r=n.categoryInView,s=(0,o.v9)((function(e){return e.settings})),c=s.debouncedSearchValue,d=s.searchValue,u=(0,i.useCallback)((0,a.debounce)((function(n){console.log("query",n),e((0,l.xM)(n))}),500),[]),v=function(){e((0,l.gI)("")),e((0,l.xM)(""))};return(0,i.useEffect)((function(){c||v()}),[r]),(0,i.useEffect)((function(){v()}),[t]),[d,function(n){console.log("value",n,"searchValue",d),e((0,l.gI)(n)),u(n)},v]}}}]);