1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3437],{48512:(e,t,o)=>{"use strict";o.d(t,{default:()=>r});var n=o(95155),a=o(68321);function r(e){let{scripts:t=[]}=e;return t.length?(0,n.jsx)(n.Fragment,{children:t.filter(e=>e.enabled&&"body"===e.location||"body"===e.placement).map(e=>{let t=e.script.replace(/<script[^>]*>/i,"").replace(/<\/script>/i,"");return(0,n.jsx)(a.default,{id:"body-script-".concat(e.id),strategy:"afterInteractive",children:t},e.id)})}):null}},60280:(e,t,o)=>{"use strict";o.d(t,{default:()=>s});var n=o(95155),a=o(88661),r=o.n(a),l=o(20063),i=o(68321);let s=e=>{let{inlineScript:t}=e;return(0,l.usePathname)().includes("webadmin")?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.default,{id:"smartsupp-script",strategy:"afterInteractive",children:"\n ".concat(t,"\n ")}),(0,n.jsx)(r(),{id:"29e6ab5b6d70f2fc",children:'div[data-testid="widgetButtonFrame"]{bottom:20px!important;left:20px!important}'}),(0,n.jsxs)("noscript",{className:"jsx-29e6ab5b6d70f2fc",children:["Powered by"," ",(0,n.jsx)("a",{href:"https://www.smartsupp.com",target:"_blank",rel:"noopener noreferrer",className:"jsx-29e6ab5b6d70f2fc",children:"Smartsupp"})]})]})}},61698:(e,t,o)=>{Promise.resolve().then(o.t.bind(o,41402,23)),Promise.resolve().then(o.bind(o,48512)),Promise.resolve().then(o.bind(o,60280)),Promise.resolve().then(o.bind(o,69828))},69828:(e,t,o)=>{"use strict";o.d(t,{default:()=>m});var n=o(95155),a=o(12115),r=o(20063),l=o(72378),i=o(52619),s=o.n(i),c=o(35258);o(53132);var d=o(97290);let u=()=>{let[e]=(0,a.useState)([{code:"en",name:"English"},{code:"bn",name:"Bengali"},{code:"hi",name:"Hindi"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"es",name:"Spanish"},{code:"zh-CN",name:"Chinese"}]),[t,o]=(0,a.useState)("en"),[r,i]=(0,a.useState)(!1),s=()=>{var e;let t=l.A.get("googtrans")||(null==(e=document.cookie.split("; ").find(e=>e.startsWith("googtrans=")))?void 0:e.split("=")[1]);if(t){let e=t.split("/");if(e.length>=3)return e[2];if(2===e.length&&""===e[0]&&2===e[1].length)return e[1]}return"en"};return(0,a.useEffect)(()=>{o(s());let e=()=>{if(window.google&&window.google.translate&&window.google.translate.TranslateElement)return void t();let o=document.querySelector('script[src*="translate.google.com"]');o&&o.remove();let n=document.createElement("script");n.type="text/javascript";let a=new Date().getTime();n.src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&t=".concat(a),n.async=!0,n.defer=!0,window.googleTranslateElementInit=t,n.onload=()=>{i(!0),console.log("Google Translate script loaded")},n.onerror=()=>{console.error("Failed to load Google Translate script"),setTimeout(e,2e3)},document.head.appendChild(n)},t=()=>{if(!window.google||!window.google.translate)return void console.warn("Google Translate not available yet");let e=document.getElementById("google_translate_element");e&&(e.innerHTML="");try{new window.google.translate.TranslateElement({pageLanguage:"en",includedLanguages:"en,bn,hi,fr,de,zh-CN",autoDisplay:!1,layout:window.google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element"),setTimeout(()=>{if(window.google&&window.google.translate&&window.google.translate.TranslateElement){let e=s();if("en"!==e){let e=document.querySelector(".goog-te-banner-frame");if(e&&e.contentWindow)try{e.contentWindow.location.reload()}catch(e){}}}},1e3)}catch(e){console.error("Error initializing Google Translate:",e)}},n=()=>{[".goog-te-banner-frame",".goog-te-gadget",".goog-te-combo",".skiptranslate",".VIpgJd-ZVi9od-l4eHX-hSRGPd",".VIpgJd-ZVi9od-ORHb-OEVmcd"].forEach(e=>{let t=document.querySelector(e);t&&(t.style.display="none",t.style.visibility="hidden")}),"0px"!==document.body.style.top&&(document.body.style.top="0px")},a=document.createElement("style");a.id="google-translate-hide",a.innerHTML="\n .goog-te-banner-frame, .skiptranslate { \n display: none !important; \n visibility: hidden !important;\n height: 0 !important;\n width: 0 !important;\n opacity: 0 !important;\n }\n body { \n top: 0px !important; \n position: static !important; \n }\n .goog-te-gadget { \n font-size: 0px !important; \n display: none !important;\n }\n .goog-te-combo { \n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n position: absolute !important; \n left: -9999px !important; \n width: 0 !important;\n height: 0 !important;\n }\n .goog-tooltip { display: none !important; }\n .goog-tooltip:hover { display: none !important; }\n .goog-text-highlight { background: none !important; box-shadow: none !important; }\n ";let r=document.getElementById("google-translate-hide");r&&r.remove(),document.head.appendChild(a),e();let l=new MutationObserver(e=>{e.forEach(()=>{n()})});return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),n(),()=>{l.disconnect(),a.parentNode&&a.parentNode.removeChild(a)}},[]),(0,n.jsx)("div",{className:"fixed top-14 lg:top-17 right-2 z-50 notranslate",translate:"no",children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("select",{translate:"no",className:"notranslate border border-gray-300 rounded-lg px-3 py-1 bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm appearance-none cursor-pointer",onChange:e=>(e=>{if(e!==t)if(console.log("Changing language to:",e),(e=>{document.cookie.split(";
1").forEach(e=>{let[t]=e.trim().split("=");t.includes("googtrans")&&(l.A.remove(t.trim(),{path:"/"}),l.A.remove(t.trim(),{path:"/",domain:window.location.hostname}),l.A.remove(t.trim(),{path:"/",domain:".".concat(window.location.hostname)}),document.cookie="".concat(t.trim(),"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"),document.cookie="".concat(t.trim(),"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=").concat(window.location.hostname,";"),document.cookie="".concat(t.trim(),"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.").concat(window.location.hostname,";"))});let t="/en/".concat(e),o=window.location.hostname;if(l.A.set("googtrans",t,{path:"/",expires:365,sameSite:"Lax"}),document.cookie="googtrans=".concat(t,"; path=/; expires=").concat(new Date(Date.now()+31536e6).toUTCString(),"; SameSite=Lax"),o.split(".").length>2){let e=o.substring(o.indexOf("."));document.cookie="googtrans=".concat(t,"; path=/; domain=").concat(e,"; expires=").concat(new Date(Date.now()+31536e6).toUTCString(),"; SameSite=Lax")}})(e),o(e),window.google&&window.google.translate)try{let t=document.querySelector(".goog-te-combo");t&&(t.value=e,t.dispatchEvent(new Event("change"))),setTimeout(()=>{let t=document.querySelector(".goog-te-banner-frame");if(t&&t.contentWindow)try{new Event("message"),t.contentWindow.postMessage({command:"translate",lang:e},"*")}catch(e){console.log("Could not post message to iframe")}setTimeout(()=>{window.location.reload()},500)},300)}catch(e){console.error("Error changing language:",e),window.location.reload()}else window.location.reload()})(e.target.value),value:t,"aria-label":"Select language",children:e.map(e=>(0,n.jsxs)("option",{value:e.code,translate:"no",className:"notranslate",children:["\uD83C\uDF10 ",e.name]},e.code))}),(0,n.jsx)("div",{id:"google_translate_element",style:{display:"none",position:"absolute",left:"-9999px",top:"-9999px",width:"1px",height:"1px",opacity:"0",pointerEvents:"none",overflow:"hidden"}})]})})};o(15239);let g=function(){var e,t,o,l,i,g,h,p,f;let m,{brandSlug:b,website_slug:x}=(0,r.useParams)(),y=(0,r.usePathname)(),[v,w]=(0,a.useState)(!1),[k,S]=(0,a.useState)({}),[j,C]=(0,a.useState)({}),[N,L]=(0,a.useState)(""),[z,B]=(0,a.useState)(!0),[W,_]=(0,a.useState)([]),[M,E]=(0,a.useState)({}),[T,R]=(0,a.useState)({}),[D,I]=(0,a.useState)(!0),[P,U]=(0,a.useState)(!1),A="clients.staystack.encrobytes.com"===window.location.hostname||window.location.hostname.includes("localhost"),F=(0,a.useRef)({brand:null,website:null}),H=(0,a.useRef)({}),G=(0,a.useRef)({}),Z=(0,a.useRef)(null),O=(0,a.useRef)(null),J=(0,a.useRef)(null),q={navbarBackground:"#ffffff",isSticky:!1,linksColor:"#000000",logoSize:100,fontSize:14,fontWeight:"normal",paddingTop:8,paddingRight:24,paddingBottom:8,paddingLeft:24,hoverLinkColor:"#3b82f6"},V={...q,...M,logoSize:Math.max(24,parseInt(M.logoSize)||q.logoSize),fontSize:Math.max(10,parseInt(M.fontSize)||q.fontSize),paddingTop:Math.max(0,parseInt(M.paddingTop)||q.paddingTop),paddingRight:Math.max(0,parseInt(M.paddingRight)||q.paddingRight),paddingBottom:Math.max(0,parseInt(M.paddingBottom)||q.paddingBottom),paddingLeft:Math.max(0,parseInt(M.paddingLeft)||q.paddingLeft),isSticky:!!M.isSticky,minHeight:M.minHeight||86,hoverLinkColor:M.hoverLinkColor||q.hoverLinkColor};(m={show:!1,content:"",backgroundColor:"#000000",textColor:"#ffffff",isSticky:!0,showCloseButton:!0,link:"",linkText:"",...T}).show,m.content,m.backgroundColor,m.textColor,void 0===m.isSticky||m.isSticky,void 0===m.showCloseButton||m.showCloseButton,m.link,m.linkText;let X=e=>{switch(e){case"bold":return"font-bold";case"medium":return"font-medium";default:return"font-normal"}},K=e=>{switch(e){case"bold":return 700;case"medium":return 500;default:return 400}};(0,a.useEffect)(()=>{w(!1),S({}),C({})},[y]);let Q=e=>{S(t=>({...t,[e]:!1}))};(0,a.useEffect)(()=>{let e=e=>{var t;(null==(t=J.current)||!t.contains(e.target))&&(Z.current&&!Z.current.contains(e.target)&&(S({}),C({})),v&&O.current&&!O.current.contains(e.target)&&(w(!1),C({})))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v]);let Y=e=>{if("/"===e||!e||"/undefined"===e||void 0===e)return A?"/".concat(b,"/website/").concat(x):"/";let t=e.replace(/^\/{2,}/,"/");return A?"/".concat(b,"/website/").concat(x).concat(t):t},$=e=>A?y===e||e==="/".concat(b,"/website/").concat(x,"/")&&y==="/".concat(b,"/website/").concat(x)||e==="/".concat(b,"/website/").concat(x)&&y==="/".concat(b,"/website/").concat(x,"/"):y===e||"/"===e&&"/"===y,ee=(e,t,o)=>{let n=t;return o&&(n=e.endsWith("/")?e+(t.startsWith("/")?t.substring(1):t):e+(t.startsWith("/")?"":"/")+t),Y(n)},et=e=>{if("Home"===e.type){if($(A?"/".concat(b,"/website/").concat(x):"/"))return!0}else if($(Y(e.pageSlug)))return!0;
1if(e.hasInternal&&e.children){for(let t of e.children)if($(ee(e.pageSlug,t.pageSlug,t.includeParentRoute)))return!0}return!1},eo=async()=>{try{let{data:e}=await (0,c.Sz)({body:{brandSlug:b,websiteSlug:x}}),t=(null==e?void 0:e.Data)||[],o=null==t?void 0:t.map(e=>{let t=e.pageSlug||"/";return t=t.replace(/^\/{2,}/,"/"),{_id:e._id,type:e.type,pageSlug:t,hasInternal:e.hasInternal||!1,includeParentRoute:e.includeParentRoute||!1,children:e.children||[],order:e.order||0}});(o=o.map(e=>{if(e.hasInternal&&e.children.length>0){let t=[...e.children].sort((e,t)=>e.order-t.order);return{...e,children:t.map(t=>({...t,_id:t._id||"".concat(e._id,"-").concat(t.pageSlug),type:t.type}))}}return e})).sort((e,t)=>e.order-t.order),_(o||[])}catch(e){console.log("Err",e),_([])}},en=async()=>{try{var e;let{data:t}=await (0,c.BZ)({body:{brandSlug:b,websiteSlug:x,filters:{isGlobal:!0,type:"navbar"}}});E((null==t||null==(e=t.Data[0])?void 0:e.content)||{})}catch(e){console.error("Error fetching config:",e)}};return(0,a.useEffect)(()=>{b&&x&&((async()=>{let e="".concat(b,"-").concat(x);if(H.current[e]&&G.current[e]){L(H.current[e]),R(G.current[e]),B(!1),I(!1);return}if(F.current.brand===b&&F.current.website===x){B(!1),I(!1);return}try{var t,o,n,a,r,l,i,s,d,u,g,h;B(!0),I(!0);let{data:p}=await (0,c.BZ)({body:{brandSlug:b,websiteSlug:x,filters:{type:"website_config"}}});U((null==p||null==(n=p.Data[0])||null==(o=n.config)||null==(t=o.googleTranslate)?void 0:t.show)||!1);let f="",m={};if(null==p||null==(l=p.Data)||null==(r=l[0])||null==(a=r.config)?void 0:a.logo)f=p.Data[0].config.logo;else{let{data:e}=await (0,c.BZ)({body:{brandSlug:b,websiteSlug:x,filters:{type:"contact-info"}}});f=(null==e||null==(h=e.Data)||null==(g=h[0])||null==(u=g.content)?void 0:u.logo)||""}(null==p||null==(d=p.Data)||null==(s=d[0])||null==(i=s.config)?void 0:i.notificationBar)&&(m=p.Data[0].config.notificationBar),L(f),R(m),H.current[e]=f,G.current[e]=m,F.current={brand:b,website:x}}catch(e){console.log("Error fetching logo:",e)}finally{B(!1),I(!1)}})(),eo(),en())},[b,x]),(0,n.jsxs)(n.Fragment,{children:[P&&(0,n.jsx)(u,{}),(0,n.jsx)("div",{className:"w-full relative",ref:Z,style:{minHeight:V.isSticky?"".concat(V.minHeight||86,"px"):"auto"},children:(0,n.jsx)("nav",{className:"shadow-md transition-all duration-300 ".concat(V.isSticky?"fixed left-0 right-0 top-0 z-40":"relative"," "),style:{backgroundColor:V.navbarBackground},children:(0,n.jsxs)("div",{className:"".concat((null==V?void 0:V.isFullWidth)?"w-full":"max-w-7xl mx-auto"),style:{padding:"".concat(V.paddingTop,"px ").concat(V.paddingRight,"px ").concat(V.paddingBottom,"px ").concat(V.paddingLeft,"px")},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(s(),{href:A?"/".concat(b,"/website/").concat(x):"/",className:"flex-shrink-0",children:(0,n.jsx)("div",{className:"flex items-center",children:z?(0,n.jsx)(()=>(0,n.jsx)("div",{className:"h-8 sm:h-10 w-32 bg-gray-200 rounded animate-pulse"}),{}):N?(0,n.jsx)("img",{src:"".concat(d.image_url,"/").concat(N),className:"h-auto object-contain transition-all duration-300",style:{width:"".concat(V.logoSize,"px")},loading:"eager",alt:"Logo",fetchPriority:"high",onLoad:()=>B(!1)}):(0,n.jsx)("div",{className:"h-7 sm:h-9 bg-gray-100 flex items-center justify-center rounded text-xs text-gray-500 transition-all duration-300",style:{width:"".concat(V.logoSize,"px")},children:"No Logo"})})}),(0,n.jsx)("div",{className:"lg:hidden",children:(0,n.jsxs)("button",{ref:J,onClick:()=>{w(!v),v&&C({})},className:"inline-flex items-center justify-center p-1.5 rounded-md",style:{color:V.linksColor},"aria-label":v?"Close menu":"Open menu",children:[(0,n.jsx)("svg",{className:"".concat(v?"hidden":"block"," h-5 w-5"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),(0,n.jsx)("svg",{className:"".concat(v?"block":"hidden"," h-5 w-5"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})]})}),(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsxs)("ul",{className:"flex items-center gap-3",children:[Array.isArray(W)&&W.map((e,t)=>{let o="Home"===e.type?A?"/".concat(b,"/website/").concat(x):"/":Y(e.pageSlug),a=e.hasInternal&&e.children&&e.children.length>0,r=et(e),l=t>=W.length-2;return(0,n.jsx)("li",{className:"relative group dropdown-container ".concat(a?"dropdown-container":""),onMouseLeave:()=>a&&Q(e._id),children:a?(0,n.jsxs)("div",{className:"relative h-full",children:[(0,n.jsxs)("button",{onClick:t=>{var o;t.preventDefault(),o=e._id,S(e=>({...e,[o]:!e[o]}))},onMouseEnter:()=>{S(t=>({...t,[e._id]:!0}))},className:"relative px-2 py-1.5 transition-all duration-300 flex items-center gap-0.5 h-full group-hover:opacity-80 ".concat(r?"opacity-100 after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:transform after:scale-x-100":"opacity-90 after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:transform after:scale-x-0 after:transition-transform after:duration-300 group-hover:after:scale-x-100"," ").concat(X(V.fontWeight)),style:{color:r&&V.activeLinkColor||V.linksColor,backgroundColor:"transparent",fontSize:"".concat(V.fontSize,"px")},children:[e.type,(0,n.jsx)("svg",{className:"w-3 h-3 transition-transform duration-200 ".concat(k[e._id]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),k[e._id]&&(0,n.jsx)("div",{className:"absolute top-full mt-0.5 w-
156 rounded-lg shadow-lg border border-gray-200 z-50 ".concat(l?"right-0":"left-0"),style:{backgroundColor:V.navbarBackground},onMouseLeave:()=>Q(e._id),children:(0,n.jsx)("div",{className:"py-1 max-h-100 overflow-y-auto",children:e.children.map(t=>{let o=ee(e.pageSlug,t.pageSlug,t.includeParentRoute),a=$(o);return(0,n.jsx)(s(),{href:o,className:"block px-3 py-2 rounded-md transition-colors duration-200 border border-transparent ".concat(a?"bg-gray-100 border-gray-300":"hover:border-gray-300"),style:{color:a?V.activeLinkColor||V.hoverLinkColor:V.linksColor,opacity:a?1:.9,fontSize:"".concat(Math.max(V.fontSize-1,12),"px"),fontWeight:a?600:K(V.fontWeight),backgroundColor:a?"rgba(0,0,0,0.05)":"transparent"},onMouseEnter:e=>{a||(e.target.style.color=V.hoverLinkColor,e.target.style.opacity="1",e.target.style.backgroundColor="rgba(0,0,0,0.1)")},onMouseLeave:e=>{a||(e.target.style.color=V.linksColor,e.target.style.opacity="0.9",e.target.style.backgroundColor="transparent")},children:t.type},t._id)})})})]}):(0,n.jsx)(s(),{href:o,className:"relative px-2 py-1.5 transition-all duration-300 group-hover:opacity-80 ".concat(r?"opacity-100 after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:transform after:scale-x-100":"opacity-90 after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:transform after:scale-x-0 after:transition-transform after:duration-300 group-hover:after:scale-x-100"," ").concat(X(V.fontWeight)),style:{color:r&&V.activeLinkColor||V.linksColor,backgroundColor:"transparent",fontSize:"".concat(V.fontSize,"px")},onMouseEnter:e=>{r||(e.target.style.color=V.hoverLinkColor)},onMouseLeave:e=>{r||(e.target.style.color=V.linksColor)},children:e.type})},e._id)}),V.showButton&&V.buttonText&&(0,n.jsx)("li",{className:"ml-2",children:(0,n.jsx)("a",{href:(null==V||null==(e=V.buttonUrl)?void 0:e.includes("http"))?V.buttonUrl:Y(V.buttonUrl),target:(null==(t=V.buttonUrl)?void 0:t.startsWith("http://"))||(null==(o=V.buttonUrl)?void 0:o.startsWith("https://"))?"_blank":void 0,rel:(null==(l=V.buttonUrl)?void 0:l.startsWith("http://"))||(null==(i=V.buttonUrl)?void 0:i.startsWith("https://"))?"noopener noreferrer":void 0,className:"inline-block font-medium transition-all duration-300 hover:opacity-90 hover:scale-105",style:{backgroundColor:V.buttonBackgroundColor||"#3b82f6",color:V.buttonTextColor||"#ffffff",borderRadius:"".concat(V.buttonBorderRadius||6,"px"),padding:"".concat(V.buttonPaddingTop||8,"px ").concat(V.buttonPaddingRight||16,"px ").concat(V.buttonPaddingBottom||8,"px ").concat(V.buttonPaddingLeft||16,"px"),fontSize:"".concat(V.fontSize,"px"),fontWeight:K(V.fontWeight),textDecoration:"none",display:"inline-block"},children:V.buttonText})})]})})]}),(0,n.jsx)("div",{className:"lg:hidden relative",ref:O,children:(0,n.jsx)("div",{className:"absolute top-0 left-0 right-0 transition-all duration-300 ease-in-out overflow-hidden ".concat(v?"max-h-[1000px] opacity-100 mt-4":"max-h-0 opacity-0"," rounded-lg shadow-lg border border-gray-100 z-40"),style:{backgroundColor:V.navbarBackground},children:(0,n.jsxs)("div",{className:"px-2 pt-1 pb-2 space-y-0.5",children:[Array.isArray(W)&&W.map(e=>{let t="Home"===e.type?A?"/".concat(b,"/website/").concat(x):"/":Y(e.pageSlug),o=e.hasInternal&&e.children&&e.children.length>0,a=et(e);return(0,n.jsx)("div",{className:"group relative",children:o?(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{onClick:()=>{var t;return t=e._id,void C(e=>({...e,[t]:!e[t]}))},className:"w-full text-left px-3 py-2 rounded-md transition-all duration-200 flex items-center justify-between group ".concat(a?"bg-gray-100":""),style:{color:a?V.activeLinkColor||V.hoverLinkColor:V.linksColor,opacity:a?1:.9,fontSize:"".concat(V.fontSize,"px"),fontWeight:a?600:K(V.fontWeight)},onMouseEnter:e=>{a||(e.target.style.opacity="1",e.target.style.backgroundColor="rgba(0,0,0,0.1)")},onMouseLeave:e=>{a||(e.target.style.opacity="0.9",e.target.style.backgroundColor="transparent")},children:[(0,n.jsx)("span",{children:e.type}),(0,n.jsx)("svg",{className:"w-3 h-3 transition-transform duration-200 ".concat(j[e._id]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),j[e._id]&&(0,n.jsx)("div",{className:"pl-3 mt-0.5 rounded-md mx-1 max-h-50 overflow-y-auto",style:{backgroundColor:"rgba(0,0,0,0.05)"},children:(0,n.jsx)("div",{className:"space-y-0.5 py-1",children:e.children.map(t=>{let o=ee(e.pageSlug,t.pageSlug,t.includeParentRoute),a=$(o);return(0,n.jsx)(s(),{href:o,className:"block px-3 py-1.5 rounded-md transition-colors duration-200 ".concat(a?"border-l-2 pl-2 bg-gray-100":""),style:{color:a?V.activeLinkColor||V.hoverLinkColor:V.linksColor,opacity:a?1:.8,fontSize:"".concat(Math.max(V.fontSize-1,12),"px"),fontWeight:a?600:K(V.fontWeight),borderLeftColor:V.hoverLinkColor,backgroundColor:a?"rgba(0,0,0,0.1)":"transparent"},onClick:()=>w(!1),onMouseEnter:e=>{a||(e.target.style.opacity="1",e.target.style.backgroundColor="rgba(0,0,0,0.1)")},onMouseLeave:e=>{a||(e.target.style.opacity="0.8",e.target.style.backgroundColor="transparent")},children:t.type},t._id)})})})]}):(0,n.jsx)(s(),{href:t,className:"block px-3 py-2 rounded-md transition-all duration-200 group ".concat(a?"opacity-100 border-l-4 bg-gray-100":"opacity-90 group-hover:opacity-100"),style:{color:a&&V.activeLinkColor||V.linksColor,borderColor:V.hoverLinkColor,fontSize:"".concat(V.fontSize,"px"),fontWeight:a?600:K(V.fontWeight),backgroundColor:a?"rgba(0,0,0,0.1)":"transparent"},onClick:()=>w(!1),onMouseEnter:e=>{a||(e.target.style.color=V.hoverLinkColor,e.target.style.backgroundColor="rgba(0,0,0,0.1)")},onMouseLeave:e=>{a||(e.target.style.color=V.linksColor,e.target.style.backgroundColor="transparent")},children:e.type})},e._id)}),V.showButton&&V.buttonText&&(0,n.jsx)("div",{className:"pt-2 pb-1",children:(0,n.jsx)("a",{href:V.buttonUrl||"#",target:(null==(g=V.buttonUrl)?void 0:g.startsWith("http://"))||(null==(h=V.buttonUrl)?void 0:h.startsWith("https://"))?"_blank":void 0,rel:(null==(p=V.buttonUrl)?void 0:p.startsWith("http://"))||(null==(f=V.buttonUrl)?void 0:f.startsWith("https://"))?"noopener noreferrer":void 0,onClick:e=>{((e,t)=>
1{if(!t||"#"===t)return e.preventDefault();if(!(t.startsWith("http://")||t.startsWith("https://"))){e.preventDefault();let o=Y(t);window.location.href=o}})(e,V.buttonUrl),w(!1)},className:"block text-center font-medium transition-all duration-300 hover:opacity-90",style:{backgroundColor:V.buttonBackgroundColor||"#3b82f6",color:V.buttonTextColor||"#ffffff",borderRadius:"".concat(V.buttonBorderRadius||6,"px"),padding:"".concat(V.buttonPaddingTop||8,"px ").concat(V.buttonPaddingRight||16,"px ").concat(V.buttonPaddingBottom||8,"px ").concat(V.buttonPaddingLeft||16,"px"),fontSize:"".concat(V.fontSize,"px"),fontWeight:K(V.fontWeight),textDecoration:"none"},children:V.buttonText})})]})})})]})})})]})};var h=o(52817);let p=function(){let e,{brandSlug:t,website_slug:o}=(0,r.useParams)(),l=(0,r.usePathname)(),[i,u]=(0,a.useState)(!1),[g,h]=(0,a.useState)({}),[p,f]=(0,a.useState)({}),[m,b]=(0,a.useState)(""),[x,y]=(0,a.useState)(!0),[v,w]=(0,a.useState)([]),[k,S]=(0,a.useState)({}),[j,C]=(0,a.useState)({}),[N,L]=(0,a.useState)(!0),z="clients.staystack.encrobytes.com"===window.location.hostname||window.location.hostname.includes("localhost"),B=(0,a.useRef)({brand:null,website:null}),W=(0,a.useRef)({}),_=(0,a.useRef)({}),M=(0,a.useRef)(null),E=(0,a.useRef)(null),T=(0,a.useRef)(null),R={navbarBackground:"#ffffff",isSticky:!1,linksColor:"#000000",logoSize:100,fontSize:14,fontWeight:"normal",paddingTop:8,paddingRight:24,paddingBottom:8,paddingLeft:24},D={...R,...k,logoSize:Math.max(24,parseInt(k.logoSize)||R.logoSize),fontSize:Math.max(10,parseInt(k.fontSize)||R.fontSize),paddingTop:Math.max(0,parseInt(k.paddingTop)||R.paddingTop),paddingRight:Math.max(0,parseInt(k.paddingRight)||R.paddingRight),paddingBottom:Math.max(0,parseInt(k.paddingBottom)||R.paddingBottom),paddingLeft:Math.max(0,parseInt(k.paddingLeft)||R.paddingLeft),isSticky:!!k.isSticky},I={show:(e={show:!1,content:"",backgroundColor:"#000000",textColor:"#ffffff",isSticky:!0,showCloseButton:!0,link:"",linkText:"",...j}).show||!1,content:e.content||"",backgroundColor:e.backgroundColor||"#000000",textColor:e.textColor||"#ffffff",isSticky:void 0===e.isSticky||e.isSticky,showCloseButton:void 0===e.showCloseButton||e.showCloseButton,link:e.link||"",linkText:e.linkText||""},P=e=>{switch(e){case"bold":return"font-bold";case"medium":return"font-medium";default:return"font-normal"}},U=e=>{switch(e){case"bold":return 700;case"medium":return 500;default:return 400}};(0,a.useEffect)(()=>{u(!1),h({}),f({})},[l]);let A=e=>{h(t=>({...t,[e]:!1}))},F=()=>{u(!1),f({})};(0,a.useEffect)(()=>{let e=e=>{var t;(null==(t=T.current)||!t.contains(e.target))&&(M.current&&!M.current.contains(e.target)&&(h({}),f({})),i&&E.current&&!E.current.contains(e.target)&&F())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let H=e=>{if("/"===e||!e||"/undefined"===e||void 0===e)return z?"/".concat(t,"/website/").concat(o):"/";let n=e.replace(/^\/{2,}/,"/");return z?"/".concat(t,"/website/").concat(o).concat(n):n},G=e=>z?l===e||e==="/".concat(t,"/website/").concat(o,"/")&&l==="/".concat(t,"/website/").concat(o)||e==="/".concat(t,"/website/").concat(o)&&l==="/".concat(t,"/website/").concat(o,"/"):l===e||"/"===e&&"/"===l,Z=(e,t,o)=>{let n=t;return o&&(n=e.endsWith("/")?e+(t.startsWith("/")?t.substring(1):t):e+(t.startsWith("/")?"":"/")+t),H(n)},O=e=>{if("Home"===e.type)return G(z?"/".concat(t,"/website/").concat(o):"/");if(G(H(e.pageSlug)))return!0;if(e.hasInternal&&e.children){for(let t of e.children)if(G(Z(e.pageSlug,t.pageSlug,t.includeParentRoute)))return!0}return!1},J=async()=>{try{let{data:e}=await (0,c.Sz)({body:{brandSlug:t,websiteSlug:o}}),n=(null==e?void 0:e.Data)||[],a=null==n?void 0:n.map(e=>{let t=e.pageSlug||"/";return t=t.replace(/^\/{2,}/,"/"),{_id:e._id,type:e.type,pageSlug:t,hasInternal:e.hasInternal||!1,includeParentRoute:e.includeParentRoute||!1,children:e.children||[],order:e.order||0}});(a=a.map(e=>{if(e.hasInternal&&e.children.length>0){let t=[...e.children].sort((e,t)=>e.order-t.order);return{...e,children:t.map(t=>({...t,_id:t._id||"".concat(e._id,"-").concat(t.pageSlug),type:t.type}))}}return e})).sort((e,t)=>
1e.order-t.order),w(a||[])}catch(e){console.log("Err",e),w([])}},q=async()=>{try{var e;let{data:n}=await (0,c.BZ)({body:{brandSlug:t,websiteSlug:o,filters:{isGlobal:!0,type:"navbar"}}});S((null==n||null==(e=n.Data[0])?void 0:e.content)||{})}catch(e){console.error("Error fetching config:",e)}};return(0,a.useEffect)(()=>{t&&o&&((async()=>{let e="".concat(t,"-").concat(o);if(W.current[e]&&_.current[e]){b(W.current[e]),C(_.current[e]),y(!1),L(!1);return}if(B.current.brand===t&&B.current.website===o){y(!1),L(!1);return}try{var n,a,r,l,i,s,d,u,g;y(!0),L(!0);let{data:h}=await (0,c.BZ)({body:{brandSlug:t,websiteSlug:o,filters:{type:"website_config"}}}),p="",f={};if(null==h||null==(r=h.Data)||null==(a=r[0])||null==(n=a.config)?void 0:n.logo)p=h.Data[0].config.logo;else{let{data:e}=await (0,c.BZ)({body:{brandSlug:t,websiteSlug:o,filters:{type:"contact-info"}}});p=(null==e||null==(g=e.Data)||null==(u=g[0])||null==(d=u.content)?void 0:d.logo)||""}(null==h||null==(s=h.Data)||null==(i=s[0])||null==(l=i.config)?void 0:l.notificationBar)?(f=h.Data[0].config.notificationBar,console.log("Found notification bar data:",f)):console.log("No notification bar data found, using defaults"),b(p),C(f),W.current[e]=p,_.current[e]=f,B.current={brand:t,website:o}}catch(e){console.log("Error fetching logo:",e)}finally{y(!1),L(!1)}})(),J(),q())},[t,o]),console.log("navbarSettings",k),(0,n.jsxs)("div",{className:"w-full relative",ref:M,style:{height:I.isSticky?"85px":"auto"},children:[I.show&&(0,n.jsxs)("div",{className:"w-full text-center py-2 px-4 text-sm ".concat(I.isSticky?"sticky top-0 z-50":""),style:{backgroundColor:I.backgroundColor,color:I.textColor},children:[I.link?(0,n.jsxs)(s(),{href:I.link,className:"hover:underline",children:[I.content,I.linkText&&(0,n.jsxs)("span",{className:"ml-1 font-semibold",children:[I.linkText," â"]})]}):(0,n.jsx)("span",{children:I.content}),I.showCloseButton&&(0,n.jsx)("button",{onClick:()=>{C({...I,show:!1})},className:"absolute right-4 top-1/2 transform -translate-y-1/2 ml-4",style:{color:I.textColor},"aria-label":"Close notification",children:(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsx)("nav",{className:"shadow-md transition-all duration-300 ".concat(D.isSticky?"fixed left-0 right-0 top-0 z-40":"relative"),style:{backgroundColor:D.navbarBackground,padding:"".concat(D.paddingTop,"px ").concat(D.paddingRight,"px ").concat(D.paddingBottom,"px ").concat(D.paddingLeft,"px")},children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(s(),{href:z?"/".concat(t,"/website/").concat(o):"/",className:"flex-shrink-0",children:(0,n.jsx)("div",{className:"flex items-center",children:x?(0,n.jsx)(()=>(0,n.jsx)("div",{className:"h-8 sm:h-10 w-32 bg-gray-200 rounded animate-pulse"}),{}):m?(0,n.jsx)("img",{src:"".concat(d.image_url,"/").concat(m),className:"h-auto object-contain transition-all duration-300",style:{width:"".concat(D.logoSize,"px")},alt:"Logo",onLoad:()=>y(!1)}):(0,n.jsx)("div",{className:"h-7 sm:h-9 bg-gray-100 flex items-center justify-center rounded text-xs text-gray-500 transition-all duration-300",style:{width:"".concat(D.logoSize,"px")},children:"No Logo"})})}),(0,n.jsx)("div",{className:"hidden lg:flex items-center justify-center flex-1",children:(0,n.jsx)("ul",{className:"flex items-center space-x-8",children:Array.isArray(v)&&v.map((e,a)=>{let r="Home"===e.type?z?"/".concat(t,"/website/").concat(o):"/":H(e.pageSlug),l=e.hasInternal&&e.children&&e.children.length>0,i=O(e);return(0,n.jsx)("li",{className:"relative group dropdown-container ".concat(l?"dropdown-container":""),onMouseLeave:()=>l&&A(e._id),children:l?(0,n.jsxs)("div",{className:"relative h-full",children:[(0,n.jsxs)("button",{onClick:t=>{var o;t.preventDefault(),o=e._id,h(e=>({...e,[o]:!e[o]}))},onMouseEnter:()=>h(t=>({...t,[e._id]:!0})),className:"relative py-4 transition-all duration-300 flex items-center gap-1 h-full ".concat(i?"text-opacity-100 border-b-2":"text-opacity-80 hover:text-opacity-100 border-b-2 border-transparent hover:border-current"," ").concat(P(D.fontWeight)),style:{color:D.linksColor,borderColor:i?D.linksColor:"transparent",fontSize:"".concat(D.fontSize,"px")},children:[e.type,(0,n.jsx)("svg",{className:"w-3 h-3 transition-transform duration-200 ".concat(g[e._id]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),g[e._id]&&(0,n.jsx)("div",{className:"absolute top-full mt-0 w-56 rounded-lg shadow-lg border border-gray-200 py-1 z-50",style:{backgroundColor:D.navbarBackgroun
1d},onMouseLeave:()=>A(e._id),children:(0,n.jsx)("div",{className:"py-1",children:e.children.map(t=>(0,n.jsx)(s(),{href:Z(e.pageSlug,t.pageSlug,t.includeParentRoute),className:"block px-4 py-2 transition-colors duration-200",style:{color:D.linksColor,fontSize:"".concat(Math.max(D.fontSize-1,12),"px"),fontWeight:U(D.fontWeight)},onMouseEnter:e=>{e.target.style.backgroundColor="rgba(0,0,0,0.05)"},onMouseLeave:e=>{e.target.style.backgroundColor="transparent"},children:t.type},t._id))})})]}):(0,n.jsx)("div",{className:"h-full flex items-center",children:(0,n.jsx)(s(),{href:r,className:"relative py-4 transition-all duration-300 ".concat(i?"text-opacity-100 border-b-2":"text-opacity-80 hover:text-opacity-100 border-b-2 border-transparent hover:border-current"," ").concat(P(D.fontWeight)),style:{color:D.linksColor,borderColor:i?D.linksColor:"transparent",fontSize:"".concat(D.fontSize,"px")},children:e.type})})},e._id)})})}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(s(),{href:H("/contact"),className:"px-4 py-2 rounded-md transition-all duration-300",style:{backgroundColor:D.linksColor,color:D.navbarBackground,fontSize:"".concat(D.fontSize,"px"),fontWeight:U(D.fontWeight)},children:"Contact Us"})}),(0,n.jsx)("div",{className:"lg:hidden ml-4",children:(0,n.jsxs)("button",{ref:T,onClick:()=>{u(!i),i&&f({})},className:"inline-flex items-center justify-center p-2 rounded-md",style:{color:D.linksColor},"aria-label":i?"Close menu":"Open menu",children:[(0,n.jsx)("svg",{className:"".concat(i?"hidden":"block"," h-6 w-6"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),(0,n.jsx)("svg",{className:"".concat(i?"block":"hidden"," h-6 w-6"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})]})})]})]})})}),(0,n.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden ".concat(i?"block":"hidden"),children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:F}),(0,n.jsxs)("div",{ref:E,className:"fixed right-0 top-0 h-full w-80 overflow-y-auto transition-transform transform ".concat(i?"translate-x-0":"translate-x-full"),style:{backgroundColor:D.navbarBackground},children:[(0,n.jsx)("div",{className:"flex justify-end p-4",children:(0,n.jsx)("button",{onClick:F,className:"p-2 rounded-md",style:{color:D.linksColor},"aria-label":"Close menu",children:(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsxs)("div",{className:"px-4 pb-6",children:[Array.isArray(v)&&v.map(e=>{let a="Home"===e.type?z?"/".concat(t,"/website/").concat(o):"/":H(e.pageSlug),r=e.hasInternal&&e.children&&e.children.length>0,l=O(e);return(0,n.jsx)("div",{className:"mb-2",children:r?(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{onClick:()=>{var t;return t=e._id,void f(e=>({...e,[t]:!e[t]}))},className:"w-full text-left px-4 py-3 rounded-md transition-all duration-200 flex items-center justify-between",style:{color:D.linksColor,backgroundColor:l?"rgba(0,0,0,0.05)":"transparent",fontSize:"".concat(D.fontSize,"px"),fontWeight:U(D.fontWeight)},children:[(0,n.jsx)("span",{children:e.type}),(0,n.jsx)("svg",{className:"w-4 h-4 transition-transform duration-200 ".concat(p[e._id]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),p[e._id]&&(0,n.jsx)("div",{className:"pl-4 mt-1 space-y-1",children:e.children.map(t=>(0,n.jsx)(s(),{href:Z(e.pageSlug,t.pageSlug,t.includeParentRoute),className:"block px-4 py-2 rounded-md transition-colors duration-200",style:{color:D.linksColor,fontSize:"".concat(Math.max(D.fontSize-1,12),"px"),fontWeight:U(D.fontWeight)},onClick:F,children:t.type},t._id))})]}):(0,n.jsx)(s(),{href:a,className:"block px-4 py-3 rounded-md transition-all duration-200 ".concat(l?"font-semibold":"font-normal"),style:{color:D.linksColor,backgroundColor:l?"rgba(0,0,0,0.05)":"transparent",fontSize:"".concat(D.fontSize,"px"),fontWeight:l?U("bold"):U(D.fontWeight)},onClick:F,children:e.type})},e._id)}),(0,n.jsx)("div",{className:"mt-6",children:(0,n.jsx)(s(),{href:H("/contact"),className:"block w-full text-center px-4 py-3 rounded-md transition-all duration-300",style:{backgroundColor:D.linksColor,color:D.navbarBackgroun
1d,fontSize:"".concat(D.fontSize,"px"),fontWeight:U(D.fontWeight)},onClick:F,children:"Contact Us"})})]})]})]})]})};o(45250);let f=()=>{let{brandSlug:e,website_slug:t}=(0,r.useParams)(),[o,l]=(0,a.useState)("theme1"),[i,s]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let o=async()=>{try{var o,n,a,r,i,d,u,g;let{data:h}=await (0,c.BZ)({body:{brandSlug:e,websiteSlug:t,filters:{isGlobal:!0,type:"navbar"}}});(null==h||null==(n=h.Data[0])||null==(o=n.content)?void 0:o.hideNavbar)&&(null==h||null==(r=h.Data[0])||null==(a=r.content)?void 0:a.hideNavbar)===!0?s(!1):s(!0),(null==h||null==(i=h.Data[0])?void 0:i.content)&&l((null==h||null==(d=h.Data[0])?void 0:d.content.selectedTheme)?(null==h||null==(u=h.Data[0])?void 0:u.content.selectedTheme)=="none"?"theme1":null==h||null==(g=h.Data[0])?void 0:g.content.selectedTheme:"theme1")}catch(e){console.error("Error fetching config:",e)}};e&&t&&o()},[e,t]),i)?(0,n.jsxs)(n.Fragment,{children:["theme1"===o&&(0,n.jsx)(g,{})," ","theme2"===o&&(0,n.jsx)(p,{})]}):null};o(22663);let m=e=>{let{brandSlug:t,website_slug:o,children:i}=e,s=(0,r.usePathname)(),[d,u]=(0,a.useState)(!1),[g,p]=(0,a.useState)(null),[m,b]=(0,a.useState)(!0),x=h.J[null==g?void 0:g.theme];return(0,a.useEffect)(()=>{u(s.includes("webadmin"));{let e=window.location.hostname;l.A.get("domain")!==e&&(l.A.set("domain",e,{expires:7}),l.A.set("website_slug",o||"",{expires:7}),l.A.set("brand_slug",t||"",{expires:7}),console.log("Cookies updated:",{domain:e,website_slug:o,brandSlug:t}))}let e=async()=>{try{let{data:e}=await (0,c.BZ)({body:{brandSlug:t,websiteSlug:o,filters:{isGlobal:!0,type:"footer"}}});console.log("data",e),p(()=>{var t,o;return{...null==(t=e.Data[0])?void 0:t.content,theme:null==(o=e.Data[0])?void 0:o.theme}})}catch(e){console.error("Error fetching config:",e)}finally{b(!1)}};t&&o&&e()},[s,t,o]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{children:[!d&&(0,n.jsx)(f,{}),i,(0,n.jsx)(n.Fragment,{children:m?(0,n.jsx)("div",{}):(0,n.jsx)(n.Fragment,{children:!d&&x&&(0,n.jsx)(n.Fragment,{children:(null==g?void 0:g.hideFooter)===!0?(0,n.jsx)("div",{}):(0,n.jsx)(x,{data:g})})})})]})})}}},e=>{e.O(0,[6711,7448,2663,1213,2619,5239,3397,6046,5250,1156,8441,1255,7358],()=>e(e.s=61698)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.