PageSourceSearch

https://nexgo.ai/_next/static/chunks/2657-e99a7c9f875182d7.js

js nexgo.ai collected 2026-10-05 14:08:06 UTC 74,837 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2657],{76623:(e,t,r)=>{r.d(t,{J:()=>n});var i=r(74848);r(96540);var o=r(44794);let n=e=>{let{onClick:t,size:r=24,ariaLabel:n="Close",className:a="",style:l,variant:s="default"}=e,d={cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",backgroundColor:"transparent",padding:o.YK[2],transition:"opacity 0.2s",flexShrink:0,width:"auto",height:"auto",...l},c={default:{backgroundColor:"transparent",border:"none"},bordered:{border:"0.575px solid rgba(0,0,0,0.15)",borderRadius:o.sJ.radius.sm,padding:"3.594px"},filled:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:"50%",padding:o.YK[.5]},white:{backgroundColor:"transparent",border:"none"}},p={...d,...c[s]};return(0,i.jsx)("button",{onClick:t,style:p,className:a,onMouseEnter:e=>{("default"===s||"filled"===s)&&(e.currentTarget.style.opacity="0.8")},onMouseLeave:e=>{("default"===s||"filled"===s)&&(e.currentTarget.style.opacity="1")},"aria-label":n,type:"button",children:(0,i.jsx)("img",{src:"/assets/images/icons/close.svg",alt:n,width:r,height:r,style:{..."white"===s?{filter:"brightness(0) invert(1)"}:{},width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),minHeight:"".concat(r,"px"),maxWidth:"".concat(r,"px"),maxHeight:"".concat(r,"px"),flexShrink:0}})})}},23534:(e,t,r)=>{r.d(t,{Ay:()=>c,jA:()=>d,l1:()=>s});var i=r(74848),o=r(13368),n=r.n(o);let a="https://nexgo.travel",l="".concat(a,"/assets/images/og-image.png"),s="Nexgo AI – Travel Discovery Super App for Authentic Journeys",d="Discover the world through stories with Nexgo. AI-crafted travel meets local guidance—plan authentic journeys beyond typical tourist routes.";function c(e){let{title:t,description:r,path:o="",image:s=l,noIndex:d=!1,ogType:c="website",disableTitleSuffix:p=!1}=e,g=p?t.trim():function(e){let t=" | Nexgo AI";return e.trim().endsWith(t)?e:"".concat(e.trim()).concat(t)}(t),h=o?"".concat(a).concat(o.startsWith("/")?o:"/".concat(o)):a,x=s.startsWith("http")?s:"".concat(a).concat(s.startsWith("/")?s:"/".concat(s));return(0,i.jsxs)(n(),{children:[(0,i.jsx)("title",{children:g}),(0,i.jsx)("meta",{name:"description",content:r}),o?(0,i.jsx)("link",{rel:"canonical",href:h}):null,d?(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"}):(0,i.jsx)("meta",{name:"robots",content:"index, follow"}),(0,i.jsx)("meta",{property:"og:title",content:g}),(0,i.jsx)("meta",{property:"og:description",content:r}),(0,i.jsx)("meta",{property:"og:type",content:c}),(0,i.jsx)("meta",{property:"og:url",content:h}),(0,i.jsx)("meta",{property:"og:image",content:x}),(0,i.jsx)("meta",{property:"og:site_name",content:"Nexgo AI"}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:title",content:g}),(0,i.jsx)("meta",{name:"twitter:description",content:r}),(0,i.jsx)("meta",{name:"twitter:image",content:x})]})}},42255:(e,t,r)=>{r.d(t,{n:()=>v});var i=r(74848),o=r(96540),n=r(86715),a=r(44794),l=r(29965),s=r.n(l),d=r(82899),c=r(32800),p=r(31385),g=r(91306),h=r(76623),x=r(78659);let m=e=>{let{id:t,label:r,iconName:o,isActive:n=!1,onClick:l,showArrow:s=!0}=e;return(0,i.jsxs)("button",{onClick:l,style:{display:"flex",padding:"".concat(a.YK[2.5]," ").concat(a.YK[1.5]),justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",background:n?a.t0.shade:a.t0.primary,cursor:"pointer",transition:"background-color 0.2s",borderRadius:n?a.sJ.radius.sm:"0"},className:n?"":"hover:bg-gray-50",children:[(0,i.jsxs)("div",{style:{display:"flex",gap:a.YK[2],alignItems:"center"},children:[(0,i.jsx)("div",{style:{color:n?a.AH.primary:a.AH.tertiary},children:(0,i.jsx)(x.C3,{iconName:o,size:20,alt:r})}),(0,i.jsx)("span",{style:{color:a.AH.primary,textAlign:"center",fontFamily:"Gantari",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"100%",letterSpacing:"0%",whiteSpace:"nowrap"},children:r})]}),s&&(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{color:a.AH.tertiary,flexShrink:0},children:(0,i.jsx)("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]},t)};var u=r(55193);let f=e=>{let{onClick:t,variant:r="with-label"}=e;return"icon-only"===r?(0,i.jsx)("div",{style:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,i.jsx)(u.C,{iconName:"plus",size:16,alt:"New Chat"})}):(0,i.jsxs)("button",{onClick:t,className:"w-full py-3 rounded-lg flex items-center justify-center gap-2 hover:opacity-90 transition-opacity",style:{backgroundColor:a.I8.primary},"aria-label":"New Chat",children:[(0,i.jsx)(u.C,{iconName:"plus",size:20,alt:"New Chat"}),(0,i.jsx)("span",{style:{fontFamily:a.Wx,fontWeight:a.Il.weight.semibold,fontSize:a.Il.size.base,color:a.AH.primary},children:"New Chat"})]})},y=[{id:"experiences",label:"Experiences",iconName:"experiences"},{id:"discover",label:"Discover",iconName:"discover"},{id:"blog",label:"Blog",iconName:"blog"}],b=[{id:"history",label:"History",iconName:"history"},{id:"riders",label:"Riders Corner",iconName:"riders"}];function v(){let{onNewChat:e,onLogoClick:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,n.useRouter)(),[l,u]=(0,o.useState)(!1),[v,w]=(0,o.useState)("discover"),[C,j]=(0,o.useState)(!1),[S,I]=(0,o.useState)(null),[k,F]=(0,o.useState)(!1),{conversations:N,setActiveConversation:E,getActiveConversation:K}=(0,d.$)(),{name:Y,photo:z}=(0,c.k)(),{accessToken:A,refreshToken:W}=(0,p.sR)(),D=!!A&&!!W,R=Y&&"User Name"!==Y?Y.charAt(0).toUpperCase():"U";(0,o.useEffect)(()=>{console.log("[NAVBAR_DEBUG] MobileNavbar",{name:Y,hasPhoto:!!z,isLoggedIn:D,avatarLetter:R})},[Y,z,D,R]),(0,o.useEffect)(()=>{F(!1)},[z]);let H="User Name"===Y,T=D?H?"Traveller":Y||"Traveller":"Traveller";(0,o.useEffect)(()=>{let e=r.pathname;"/experiences"===e?w("experiences"):"/chat"===e?w("discover"):"/history"===e?w("history"):("/riders-corner"===e||e.startsWith("/riders-corner/"))&&w("riders")},[r.pathname]);let L=()=>{u(!1)},B=()=>{null==t||t(),L()},J=e=>{w(e),L();try{localStorage.removeItem("nexgo-experience-filters"),localStorage.removeItem("nexgo-experience-temp-filters"),localStorage.removeItem("nexgo-experience-selected-filter"),localStorage.removeItem("nexgo-experience-search-query")}catch(e){console.warn("Failed to clear filter localStorage:",e)}if("experiences"===e)(0,g.Jw)(r,"/experiences");else if("discover"===e){let e=K();if(e&&e.messages.length>0)E(e.id),(0,g.Jw)(r,{pathname:"/chat",query:{conversationId:e.id,sessionId:e.sessionId}});else if(N.length>0){let e=N[0];E(e.id),(0,g.Jw)(r,{pathname:"/chat",query:{conversationId:e.id,sessionId:e.sessionId}})}else(0,g.Jw)(r,"/chat")}else"history"===e?(0,g.Jw)(r,"/history"):"blog"===e?window.open("https://blogs.nexgo.ai/","_blank","noopener,noreferrer"):"riders"===e&&(0,g.Jw)(r,"/riders-corner")};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("nav",{style:{backgroundColor:a.t0.primary,paddingTop:a.YK[4],paddingBottom:a.YK[4],paddingLeft:a.YK[4],paddingRight:a.YK[4]},className:"md:hidden fixed top-0 left-0 right-0 flex items-center justify-between z-[100] h-14",children:[(0,i.jsx)("button",{onClick:()=>{u(!l)},className:"w-6 h-6 flex items-center justify-center flex-shrink-0","aria-label":"Menu",children:(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M3 12H21M3 6H21M3 18H21",stroke:a.AH.primary,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("button",{onClick:B,className:"flex items-center justify-center w-[72px] h-6 cursor-pointer hover:opacity-80 transition-opacity flex-shrink-0","aria-label":"Go to landing page",children:(0,i.jsx)(s(),{src:"/assets/images/logo.svg",alt:"Nexgo",width:72,height:24,className:"w-full h-full object-contain",unoptimized:!0})}),(0,i.jsx)("button",{ref:e=>{I(e)},onClick:()=>j(!C),className:"flex items-center justify-center w-10 h-10 flex-shrink-0","aria-label":"Profile",children:(0,i.jsx)("div",{style:{width:"40px",height:"40px",borderRadius:"50%",background:z?"transparent":"linear-gradient(135deg, ".concat(a.I8.primary," 
10%, ").concat(a.I8.secondary," 100%)"),display:"flex",alignItems:"center",justifyContent:"center",fontFamily:a.Wx,fontSize:a.Il.size.base,fontWeight:a.Il.weight.bold,color:"#1C1917",border:"2px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.1)",overflow:"hidden"},children:z&&!k?(0,i.jsx)(s(),{src:z,alt:Y||"User",width:40,height:40,style:{width:"100%",height:"100%",objectFit:"cover"},unoptimized:!0,onError:()=>F(!0)}):R})})]}),(0,i.jsx)(x.XR,{isOpen:C,onClose:()=>j(!1),anchorElement:S,position:"bottom"}),l&&(0,i.jsx)("div",{className:"md:hidden fixed inset-0 bg-black/50 z-[90]",onClick:L}),(0,i.jsxs)("div",{className:"md:hidden fixed top-0 left-0 h-full w-[280px] z-[100] transform transition-transform duration-300 ease-in-out ".concat(l?"translate-x-0":"-translate-x-full"),style:{borderRadius:a.sJ.radius.xl,border:"1px solid ".concat(a.Vo.lightest),background:a.t0.primary,boxShadow:"0 4px 4px 0 rgba(210, 210, 210, 0.25)"},children:[(0,i.jsxs)("div",{style:{backgroundColor:a.t0.primary,paddingTop:a.YK[4],paddingBottom:a.YK[4],paddingLeft:a.YK[4],paddingRight:a.YK[4]},children:[(0,i.jsx)(h.J,{onClick:L,size:16,ariaLabel:"Close menu",variant:"filled",className:"mb-4",style:{backgroundColor:a.t0.secondary,borderRadius:"50%",width:"24px",height:"24px",padding:a.YK[2]}}),(0,i.jsxs)("div",{style:{border:"1px solid ".concat(a.t0.secondary),paddingTop:0,paddingBottom:a.YK[4],paddingLeft:0,paddingRight:0,display:"flex",flexDirection:"column",gap:a.YK[8]},children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",style:{gap:a.YK[2]},children:[(0,i.jsx)("button",{onClick:B,className:"cursor-pointer hover:opacity-80 transition-opacity","aria-label":"Go to landing page",style:{width:"68px",height:"22px"},children:(0,i.jsx)(s(),{src:"/assets/images/logo.svg",alt:"Nexgo",width:68,height:22,className:"h-auto w-auto",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"50% 50%"},unoptimized:!0})}),(0,i.jsxs)("span",{style:{fontFamily:a.Wx,fontWeight:a.Il.weight.regular,fontSize:"16px",color:a.AH.primary,lineHeight:"normal"},children:["Hi ",T]})]}),(0,i.jsx)("div",{style:{display:"flex",width:"52px",height:"52px",padding:a.YK[3],justifyContent:"center",alignItems:"center",gap:a.YK[2],flexShrink:0,borderRadius:"9999px"},children:(0,i.jsx)("div",{style:{width:"52px",height:"52px",borderRadius:"50%",background:z?"transparent":"linear-gradient(135deg, ".concat(a.I8.primary," 0%, ").concat(a.I8.secondary," 100%)"),display:"flex",alignItems:"center",justifyContent:"center",fontFamily:a.Wx,fontSize:a.Il.size.lg,fontWeight:a.Il.weight.bold,color:"#1C1917",minWidth:"52px",minHeight:"52px",border:"2px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden"},children:z&&!k?(0,i.jsx)(s(),{src:z,alt:Y||"User",width:52,height:52,style:{width:"100%",height:"100%",objectFit:"cover"},unoptimized:!0,onError:()=>F(!0)}):R})})]}),(0,i.jsxs)("button",{onClick:()=>{console.log("\uD83D\uDD04 [MobileNavbar] New Chat button clicked"),null==e||e(),L()},style:{display:"none",padding:"".concat(a.YK[2.5]," ").concat(a.YK[1.5]),alignItems:"center",gap:a.YK[1.5],alignSelf:"stretch",borderRadius:"6px",border:"1px solid ".concat(a.I8.primary),background:a.I8.primary,cursor:"pointer",transition:"opacity 0.2s"},className:"hover:opacity-90","aria-label":"New Chat",children:[(0,i.jsx)(f,{variant:"icon-only"}),(0,i.jsx)("span",{style:{color:a.AH.primary,textAlign:"center",fontFamily:a.Wx,fontSize:"14px",fontStyle:"normal",fontWeight:600,lineHeight:"normal"},children:"New Chat"})]})]})]}),(0,i.jsxs)("div",{className:"flex flex-col overflow-y-auto navbar-scrollbar",style:{height:"calc(100vh - 280px)",paddingTop:a.YK[4],paddingBottom:a.YK[6]},children:[(0,i.jsx)("div",{className:"flex flex-col",style:{paddingTop:a.YK[4],gap:a.YK[1],paddingLeft:"16px",paddingRight:"16px"},children:y.map(e=>{let t=v===e.id;return(0,i.jsx)(m,{id:e.id,label:e.label,iconName:e.iconName,isActive:t,onClick:()=>J(e.id),showArrow:!0},e.id)})}),(0,i.jsx)("div",{style:{height:"1px",backgroundColor:a.t0.shade,marginTop:a.YK[4],marginBottom:a.YK[4],marginLeft:a.YK[6],marginRight:a.YK[6]}}),(0,i.jsx)("div",{className:"flex flex-col",style:{gap:a.YK[1],paddingLeft:"16px",paddingRight:"16px"},children:b.map(e=>{let t=v===e.id;return(0,i.jsx)(m,{id:e.id,label:e.label,iconName:e.iconName,isActive:t,onClick:()=>J(e.id),showArrow:!1}
1,e.id)})})]})]})]})}},55193:(e,t,r)=>{r.d(t,{C:()=>l});var i=r(74848),o=r(96540),n=r(29965),a=r.n(n);let l=e=>{let{iconName:t,size:r=20,className:n="",alt:l=""}=e,[s,d]=(0,o.useState)(!1),c="".concat("/assets/images/icons/navbar","/").concat(t,".svg");return s?(0,i.jsx)("div",{style:{width:r,height:r,backgroundColor:"#E7E5E4",borderRadius:"4px"},className:n,"aria-label":l||t}):(0,i.jsx)("div",{style:{width:r,height:r,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},className:n,children:(0,i.jsx)(a(),{src:c,alt:l||t,width:r,height:r,onError:()=>d(!0),unoptimized:!0,style:{width:"100%",height:"100%",objectFit:"contain"}})})}},78659:(e,t,r)=>{r.d(t,{C3:()=>i.C,pl:()=>a,XR:()=>u});var i=r(55193),o=r(74848),n=r(96540);let a=e=>{let{children:t,className:r="",textAlign:i="center",fontWeight:n=400,style:a={}}=e;return(0,o.jsx)("span",{className:r,style:{color:"var(--Colors-Typography-primary, #1C1917)",textAlign:i,fontFamily:"var(--Typography-Fonts-Primary, Gantari)",fontSize:"14px",fontStyle:"normal",fontWeight:n,lineHeight:"normal",whiteSpace:"nowrap",...a},children:t})};var l=r(86715),s=r(84007),d=r(31385),c=r(95749),p=r(32800),g=r(72349),h=r(82899),x=r(80643),m=r(44794);let u=e=>{let{isOpen:t,onClose:r,anchorElement:i,position:a="bottom"}=e,u=(0,l.useRouter)(),f=(0,n.useRef)(null),{accessToken:y,refreshToken:b}=(0,d.sR)(),v=(0,s.n)(e=>e.clearTokens),w=(0,p.k)(e=>e.clearUserProfile),{name:C,email:j}=(0,p.k)(),{resetSearchCount:S,setShowLoginPopup:I,setLoginRequired:k,setLoggedIn:F}=(0,g.j)(),{setRedirectUrl:N,setLoginContext:E}=(0,c.T)(),{getActiveConversation:K}=(0,h.$)(),Y=!!y&&!!b,z="User Name"===C,A=z?"User":C||"User",W=!z&&(C||j&&"[email protected]"!==j);(0,n.useEffect)(()=>{t&&console.log("[PROFILE_MENU_DEBUG] Menu opened",{isLoggedIn:Y,hasProfile:W,name:C,email:(null==j?void 0:j.slice(0,20))+(j&&j.length>20?"...":""),isDefaultName:z,buttonLabel:Y?"Log Out":W?"Login again":"Login"})},[t,Y,W,C,j,z]),(0,n.useEffect)(()=>{if(!t)return;let e=e=>{f.current&&!f.current.contains(e.target)&&i&&!i.contains(e.target)&&r()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,r,i]),(0,n.useEffect)(()=>{if(!t||!i||!f.current)return;let e=()=>{if(!i||!f.current)return;let e=i.getBoundingClientRect(),t=f.current.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,n=0,l=0;n="bottom"===a?e.bottom+8:e.top-t.height-8,(l=e.left+e.width/2-t.width/2)<8&&(l=8),l+t.width>r-8&&(l=r-t.width-8),n<8&&(n=e.bottom+8),n+t.height>o-8&&(n=e.top-t.height-8),f.current.style.top="".concat(n,"px"),f.current.style.left="".concat(l,"px")};return requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})}),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[t,i,a]);let D=async()=>{if(Y||W){w(),v(),localStorage.removeItem("user-profile-storage"),S(),I(!1),k(!1),F(!1),r(),u.push(u.asPath);return}{let e=u.asPath,t="/chat"===u.pathname,r=u.pathname.includes("/activity-details")||u.pathname.includes("/package-details")||u.pathname.includes("/stay-experience-details");if(t){let e=u.query.sessionId,t=K(),r=e||(null==t?void 0:t.sessionId)||null;if(r){let i;try{let e=localStorage.getItem("conversation-tabs");if(e){let o=JSON.parse(e);i=o[r]||((null==t?void 0:t.id)?o[t.id]:void 0)}}catch(e){console.warn("Failed to read active tab:",e)}(0,x.XC)(r,r,i),console.log("\uD83D\uDCBE [ProfileMenu] Saved chat state before login:",{apiSessionId:r,clientConversationId:(null==t?void 0:t.id)||"none",activeTab:i,source:e?"url":t?"store":"none",note:"Using API sessionId, not client-generated conversationId"})}E("chat")}else if(r){let e;let t=u.query.slug;u.pathname.includes("/activity-details")?e="activity":u.pathname.includes("/package-details")?e="package":u.pathname.includes("/stay-experience-details")&&(e="stay"),(0,x.YN)(e,t),console.log("\uD83D\uDCBE [ProfileMenu] Saved booking state before login:",{experienceType:e,slug:t}),E("booking")}else E("general");N(e),window.location.href="".concat("https://dev-api.nexgo.ai/nexgo-gateway","/auth/google/v1/login")}r()};return t?(0,o.jsx)("div",{ref:f,className:"fixed",style:{zIndex:9999,minWidth:"200px",borderRadius:m.sJ.radiu
1s.md,border:"1px solid ".concat(m.Vo.lightest),backgroundColor:m.t0.primary,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",padding:m.YK[2]},children:Y||W?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:{padding:"".concat(m.YK[3]," ").concat(m.YK[4]),borderBottom:"1px solid ".concat(m.Vo.lightest),marginBottom:m.YK[2]},children:[(0,o.jsx)("div",{style:{fontFamily:m.Wx,fontSize:m.Il.size.base,fontWeight:m.Il.weight.semibold,color:m.AH.primary,marginBottom:m.YK[1]},children:A}),j&&"[email protected]"!==j&&(0,o.jsx)("div",{style:{fontFamily:m.Wx,fontSize:m.Il.size.sm,fontWeight:m.Il.weight.regular,color:m.AH.secondary},children:j.length>25?"".concat(j.slice(0,25),"..."):j})]}),(0,o.jsx)("button",{onClick:D,style:{width:"100%",padding:"".concat(m.YK[3]," ").concat(m.YK[4]),borderRadius:m.sJ.radius.sm,border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",fontFamily:m.Wx,fontSize:m.Il.size.base,fontWeight:m.Il.weight.medium,color:m.AH.primary,transition:"background-color 0.2s"},className:"hover:bg-gray-100",onMouseEnter:e=>{e.currentTarget.style.backgroundColor=m.t0.shade},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:"Log Out"})]}):(0,o.jsx)("button",{onClick:D,style:{width:"100%",padding:"".concat(m.YK[3]," ").concat(m.YK[4]),borderRadius:m.sJ.radius.sm,border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",fontFamily:m.Wx,fontSize:m.Il.size.base,fontWeight:m.Il.weight.medium,color:m.AH.primary,transition:"background-color 0.2s"},className:"hover:bg-gray-100",onMouseEnter:e=>{e.currentTarget.style.backgroundColor=m.t0.shade},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:"Login"})}):null}},87628:(e,t,r)=>{r.d(t,{B:()=>v});var i=r(74848),o=r(96540),n=r(86715),a=r(29965),l=r.n(a),s=r(44794),d=r(82899),c=r(31385),p=r(32800),g=r(91306),h=r(34164),x=r(78659),m=r(47899);let u=e=>{let{id:t,label:r,iconName:o,isActive:n=!1,onClick:a,badge:l}=e;return(0,i.jsxs)("button",{type:"button","data-navbar-item-id":t,onClick:a,className:"relative flex flex-col items-center outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[#0A0322]/30",style:{gap:s.YK[1]},"aria-pressed":n,"aria-label":r,title:r,children:[(0,i.jsx)("div",{className:"relative transition-colors",style:{display:"flex",minWidth:"40px",minHeight:"40px",padding:s.YK[2],justifyContent:"center",alignItems:"center",gap:s.YK[2],borderRadius:s.sJ.radius.full,border:n?"".concat(s.sJ.width.thin," solid ").concat(s.Vo.base):"".concat(s.sJ.width.thin," solid transparent"),backgroundColor:n?s.t0.shade:s.t0.primary},children:(0,i.jsx)("span",{className:"relative z-10 flex items-center justify-center",style:{color:n?s.AH.primary:s.AH.tertiary},children:(0,i.jsx)(x.C3,{iconName:o,size:20,alt:r})})}),(0,i.jsx)(x.pl,{className:"transition-all",fontWeight:n?600:400,children:r}),l&&(0,i.jsx)(m.Ex,{variant:"success",size:"sm",className:"bg-[#16A34A] text-white border-0 px-1 py-0.5 uppercase text-[8px]",children:l})]})};var f=r(55193);let y=e=>{let{onClick:t}=e;return(0,i.jsx)("button",{onClick:t,style:{backgroundColor:s.I8.primary},className:"w-10 h-10 rounded-full flex items-center justify-center hover:opacity-90 transition-opacity","aria-label":"New Chat",children:(0,i.jsx)("div",{style:{filter:"brightness(0) saturate(100%)"},children:(0,i.jsx)(f.C,{iconName:"plus",size:20,alt:"New Chat"})})})},b=[{id:"experiences",label:"Experiences",iconName:"experiences"},{id:"discover",label:"Discover",iconName:"discover"},{id:"shop",label:"Shop",iconName:"shop",badge:"New"},{id:"blog",label:"Blog",iconName:"blog"},{id:"history",label:"History",iconName:"history"},{id:"riders",label:"Riders Corner",iconName:"riders"}];function v(){let{onNewChat:e,onLogoClick:t,className:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,n.useRouter)(),[m,f]=o.useState("discover"),[v,w]=o.useState(null),[C,j]=o.useState(null),[S,I]=o.useState(!1),{conversations:k,setActiveConversation:F,getActiveConversation:N}=(0,d.$)(),{accessToken:E,refreshToken:K}=(0,c.sR)(),{name:Y,photo:z}=(0,p.k)(),A=!!E&&!!K,W=Y&&"User Name"!==Y?Y.charAt(0).toUpperCase():"U";o.useEffect(()=>{console.log("[NAVBAR_DEBUG] Sidebar",{name:Y,hasPhoto:!!z,isLoggedIn:A,avatarLetter:W})},[Y,z,A,W]),o.useEffect(()=>{I(!1)},[z]),o.useEffect(()=>{let e=a.pathname;"/experiences"===e?f("experiences"):"/chat"===e?f("discover"):"/history"===e?f("history"):("/riders-corner"===e||e.startsWith("/riders-corner/"))&&f("riders")},[a.pathname]);let D=e=>{f(e);try{localStorage.removeItem("nexgo-experience-filters"),localStorage.removeItem("nexgo-experience-temp-filters"),localStorage.removeItem("nexgo-experience-selected-filter"),localStorage.removeItem("nexgo-experience-search-query")}catch(e){console.warn("Failed to clear filter localStorage:",e)}if("experiences"===e)(0,g.Jw)(a,"/experiences");else if("discover"===e){let e=N();if(e&&e.messages.length>0)F(e.id),(0,g.Jw)(a,{pathname:"/chat",query:{conversationId:e.id,sessionId:e.sessionId}});else if(k.length>0){let e=k[0];F(e.id),(0,g.Jw)(a,{pathname:"/chat",query:{conversationId:e.id,sessionId:e.sessionId}})}else(0,g.Jw)(a,"/chat")}else"history"===e?(0,g.Jw)(a,"/history"):"blog"===e?window.open("https://blogs.nexgo.ai/","_blank","noopener,noreferrer"):"riders"===e&&(0,g.Jw)(a,"/riders-corner")};return(0,i.jsxs)("aside",{style:{backgroundColor:s.t0.primary,borderRightColor:s.t0.shade,paddingLeft:s.YK[2],paddingRight:s.YK[2],paddingTop:s.YK[6],paddingBottom:s.YK[12]},className:(0,h.A)("hidden md:flex fixed left-0 top-0 h-screen w-[111px] border-r flex-col items-center z-[100]",r),children:[(0,i.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginBottom:s.YK[16]},children:(0,i.jsx)("button",{onClick:t,className:"cursor-pointer hover:opacity-80 transition-opacity","aria-label":"Go to landing page",style:{width:"72px",height:"24px",aspectRatio:"3/1"},children:(0,i.jsx)(l(),{src:"/assets/images/logo.svg",alt:"Nexgo",width:72,height:24,className:"object-cover object-[50%_50%]",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"50% 50%"},unoptimized:!0})})}),(0,i.jsxs)("nav",{className:"flex flex-col items-center overflow-y-auto navbar-scrollbar",style:{flex:1,width:"100%",minHeight:0,gap:s.YK[6]},children:[(0,i.jsxs)("div",{style:{display:"none",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:s.YK[2.5],flexShrink:0},children:[(0,i.jsx)(y,{onClick:()=>{console.log("\uD83D\uDD04 [Sidebar] New Chat button clicked"),null==e||e()}}),(0,i.jsx)(x.pl,{style:{whiteSpace:"nowrap"},children:"New Chat"})]}),(0,i.jsx)("div",{className:"flex flex-col items-center",style:{gap:s.YK[6]},children:b.filter(e=>"shop"!==e.id).map(e=>{let t=m===e.id;return(0,i.jsx)(u,{id:e.id,label:e.label,iconName:e.iconName,isActive:t,onClick:()=>D(e.id),badge:e.badge},e.id)})})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center flex-shrink-0",style:{gap:s.YK[3],marginTop:"auto",paddingBottom:s.YK[4]},children:[(0,i.jsx)("button",{type:"button",ref:e=>{j(e)},onClick:()=>{w("profile"===v?null:"profile")},className:"flex flex-col items-center outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[#0A0322]/30",style:{gap:s.YK[1.5]},"aria-pressed":"profile"===v,"aria-label":"Profile",children:(0,i.jsx)("div",{className:"relative flex items-center justify-center",style:{boxShadow:"0px 0px 0px rgba(0,0,0,0)"},children:(0,i.jsx)("div",{style:{width:"48px",height:"48px",borderRadius:"50%",background:z?"transparent":"linear-gradient(135deg, ".concat(s.I8.primary," 
10%, ").concat(s.I8.secondary," 100%)"),display:"flex",alignItems:"center",justifyContent:"center",fontFamily:s.Wx,fontSize:s.Il.size.lg,fontWeight:s.Il.weight.bold,color:"#1C1917",border:"2px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden"},children:z&&!S?(0,i.jsx)(l(),{src:z,alt:Y||"User",width:48,height:48,style:{width:"100%",height:"100%",objectFit:"cover"},unoptimized:!0,onError:()=>I(!0)}):W})})}),(0,i.jsx)(x.XR,{isOpen:"profile"===v,onClose:()=>w(null),anchorElement:C,position:"top"})]})]})}},85269:(e,t,r)=>{r.d(t,{AM:()=>l,Wv:()=>s,hl:()=>d});var i=r(74848),o=r(96540),n=r(94261),a=r(18019);let l=n.bL,s=n.l9,d=o.forwardRef((e,t)=>{let{className:r,align:o="center",sideOffset:l=4,...s}=e;return(0,i.jsx)(n.ZL,{children:(0,i.jsx)(n.UC,{ref:t,align:o,sideOffset:l,className:(0,a.cn)("z-50 w-72 rounded-md border bg-white p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r),...s})})});d.displayName=n.UC.displayName},7810:(e,t,r)=>{r.d(t,{np:()=>o});var i=r(74848);r(96540);let o=e=>{let{size:t=20,color:r="currentColor",className:o=""}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",className:o,xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M10 18.3333C14.6024 18.3333 18.3333 14.6024 18.3333 10C18.3333 5.39763 14.6024 1.66667 10 1.66667C5.39763 1.66667 1.66667 5.39763 1.66667 10C1.66667 14.6024 5.39763 18.3333 10 18.3333Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.33333 7.5L12.5 10L8.33333 12.5V7.5Z",fill:r,stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}},47899:(e,t,r)=>{r.d(t,{Ex:()=>x,Zp:()=>g,VA:()=>b,vu:()=>v,K0:()=>C,oz:()=>w}),r(54564);var i=r(74848),o=r(96540),n=r(22732),a=r(34164),l=r(50856);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}let d=(0,n.F)("inline-flex items-center justify-center gap-2 rounded-sm font-semibold transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none",{variants:{variant:{primary:"bg-[#FDE047] text-[#1C1917] hover:bg-[#FDE047]/90 focus:ring-[#FDE047]/50",secondary:"bg-[#1C1917] text-white hover:bg-[#1C1917]/90 focus:ring-[#1C1917]/50",outline:"border border-[#D6D3D1] bg-white text-[#1C1917] hover:bg-[#F5F5F4] focus:ring-[#D6D3D1]",ghost:"bg-transparent text-[#1C1917] hover:bg-[#F5F5F4] focus:ring-[#D6D3D1]",link:"bg-transparent text-[#1C1917] underline hover:text-[#57534E] focus:ring-0"},size:{sm:"h-8 px-3 py-1.5 text-sm",md:"h-10 px-4 py-2.5 text-base",lg:"h-12 px-6 py-3 text-base",icon:"h-10 w-10 p-2"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}});o.forwardRef((e,t)=>{let{className:r,variant:o,size:n,fullWidth:a,children:l,leftIcon:c,rightIcon:p,isLoading:g,disabled:h,...x}=e;return(0,i.jsx)("button",{className:s(d({variant:o,size:n,fullWidth:a,className:r})),ref:t,disabled:h||g,...x,children:g?(0,i.jsxs)("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,i.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,i.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):(0,i.jsxs)(i.Fragment,{children:[c&&(0,i.jsx)("span",{className:"inline-flex shrink-0",children:c}),l,p&&(0,i.jsx)("span",{className:"inline-flex shrink-0",children:p})]})})}).displayName="Button";let c=(0,n.F)("w-full px-4 py-2 rounded-lg border bg-white text-[#1C1917] placeholder:text-[#78716C] transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-[#FDE047] focus:border-transparent disabled:bg-[#F5F5F4] disabled:cursor-not-allowed",{variants:{variant:{default:"border-[#D6D3D1]",error:"border-red-500 focus:ring-red-500",success:"border-green-500 focus:ring-green-500"},inputSize:{sm:"h-8 text-sm px-3 py-1",md:"h-10 text-sm px-4 py-2",lg:"h-12 text-base px-4 py-3"}},defaultVariants:{variant:"default",inputSize:"md"}});o.forwardRef((e,t)=>
1{let{className:r,containerClassName:o,variant:n,inputSize:a,leftIcon:l,rightIcon:d,label:p,helperText:g,error:h,...x}=e,m=!!h;return(0,i.jsxs)("div",{className:s("flex flex-col gap-1",o),children:[p&&(0,i.jsx)("label",{className:"text-sm font-semibold text-[#1C1917]",children:p}),(0,i.jsxs)("div",{className:"relative",children:[l&&(0,i.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[#78716C]",children:l}),(0,i.jsx)("input",{className:s(c({variant:m?"error":n,inputSize:a}),l&&"pl-10",d&&"pr-10",r),ref:t,...x}),d&&(0,i.jsx)("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-[#78716C]",children:d})]}),(h||g)&&(0,i.jsx)("p",{className:s("text-xs",h?"text-red-600":"text-[#78716C]"),children:h||g})]})}).displayName="Input";let p=(0,n.F)("rounded-xl border bg-white transition-all duration-300",{variants:{variant:{default:"border-[#E7E5E4]",elevated:"border-[#E7E5E4] shadow-[4px_4px_4px_0px_rgba(0,0,0,0.1)]",outlined:"border-2 border-[#D6D3D1]",ghost:"border-transparent"},padding:{none:"p-0",sm:"p-3",md:"p-6",lg:"p-8"},hoverable:{true:"hover:shadow-md hover:scale-[1.02] cursor-pointer",false:""}},defaultVariants:{variant:"default",padding:"md",hoverable:!1}}),g=o.forwardRef((e,t)=>{let{className:r,variant:o,padding:n,hoverable:a,header:l,footer:d,children:c,...g}=e;return(0,i.jsxs)("div",{className:s(p({variant:o,padding:n,hoverable:a,className:r})),ref:t,...g,children:[l&&(0,i.jsx)("div",{className:"border-b border-[#E7E5E4] pb-4 mb-4",children:l}),c,d&&(0,i.jsx)("div",{className:"border-t border-[#E7E5E4] pt-4 mt-4",children:d})]})});g.displayName="Card",o.forwardRef((e,t)=>{let{className:r,imageSrc:o,imageAlt:n="",imageAspectRatio:a="video",children:l,...d}=e;return(0,i.jsxs)(g,{className:s("overflow-hidden",r),padding:"none",ref:t,...d,children:[(0,i.jsx)("div",{className:s("w-full overflow-hidden",{square:"aspect-square",video:"aspect-video",wide:"aspect-[21/9]"}[a]),children:(0,i.jsx)("img",{src:o,alt:n,className:"w-full h-full object-cover"})}),l&&(0,i.jsx)("div",{className:"p-6",children:l})]})}).displayName="ImageCard";let h=(0,n.F)("inline-flex items-center gap-1 rounded-sm font-medium transition-all",{variants:{variant:{default:"bg-[#F5F5F4] text-[#1C1917] border border-[#E7E5E4]",primary:"bg-[#FDE047] text-[#1C1917] border border-[#F6EBB5]",success:"bg-[#DCF5E6] text-[#16A34A] border border-[#BFE5CD]",error:"bg-[#FEE2E2] text-[#DC2626] border border-[#FECACA]",warning:"bg-[#FEF3C7] text-[#D97706] border border-[#FDE68A]",info:"bg-[#DBEAFE] text-[#2563EB] border border-[#BFDBFE]",outlined:"bg-transparent text-[#1C1917] border border-[#D6D3D1]"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"}},defaultVariants:{variant:"default",size:"md"}}),x=o.forwardRef((e,t)=>{let{className:r,variant:o,size:n,icon:a,children:l,...d}=e;return(0,i.jsxs)("span",{className:s(h({variant:o,size:n,className:r})),ref:t,...d,children:[a&&(0,i.jsx)("span",{className:"inline-flex shrink-0",children:a}),l]})});x.displayName="Badge";let m=(0,n.F)("inline-flex items-center justify-center rounded-full bg-[#E7E5E4] text-[#1C1917] font-semibold overflow-hidden",{variants:{size:{xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl","2xl":"h-20 w-20 text-2xl"}},defaultVariants:{size:"md"}});o.forwardRef((e,t)=>{let{className:r,size:n,src:a,alt:l,fallback:d,...c}=e,[p,g]=o.useState(!1),h=!a||p;return(0,i.jsx)("div",{className:s(m({size:n,className:r})),ref:t,...c,children:h?(0,i.jsx)("span",{children:d||(null==l?void 0:l.charAt(0).toUpperCase())||"?"}):(0,i.jsx)("img",{src:a,alt:l,className:"h-full w-full object-cover",onError:()=>g(!0)})})}).displayName="Avatar",o.forwardRef((e,t)=>{let{className:r,placeholder:n="Ask anything about travel.",value:a,onChange:l,onSubmit:d,showMicrophone:c=!0,showAttachment:p=!0,disclaimerText:g="Nexgo is AI-powered and may not always be accurate. Verify when needed.",...h}=e,[x,m]=o.useState(a||""),u=()=>{x.trim()&&(null==d||d())};return(0,i.jsx)("div",{className:s("flex flex-col gap-1 w-full",r),ref:t,...h,children:(0,i.jsx)("div",{className:"bg-white border border-[#D6D3D1] rounded-lg overflow-hidden",children:(0,i.jsxs)("div",{className:"flex flex-col gap-3 p-3",children:[(0,i.jsx)("div",{className:"px-2.5 py-2.5",children:(0,i.jsx)("textarea",{className:"w-full resize-none text-sm text-[#1C1917] placeholder:text-[#78716C] focu
1s:outline-none bg-transparent min-h-[24px] max-h-[120px]",placeholder:n,value:x,onChange:e=>{let t=e.target.value;m(t),null==l||l(t)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),u())},rows:1})}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("div",{className:"flex items-center gap-2",children:p&&(0,i.jsx)("button",{className:"h-7 w-7 flex items-center justify-center border border-[#E7E5E4] rounded-full hover:bg-[#F5F5F4] transition-colors",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M10 7.5C10 6.83696 10.2634 6.20107 10.7322 5.73223C11.2011 5.26339 11.837 5 12.5 5C13.163 5 13.7989 5.26339 14.2678 5.73223C14.7366 6.20107 15 6.83696 15 7.5V12.5C15 13.163 14.7366 13.7989 14.2678 14.2678C13.7989 14.7366 13.163 15 12.5 15C11.837 15 11.2011 14.7366 10.7322 14.2678C10.2634 13.7989 10 13.163 10 12.5V7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[c&&(0,i.jsx)("button",{className:"h-7 w-7 flex items-center justify-center border border-[#E7E5E4] rounded-full hover:bg-[#F5F5F4] transition-colors",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M10 12.5C10.663 12.5 11.2989 12.2366 11.7678 11.7678C12.2366 11.2989 12.5 10.663 12.5 10V5C12.5 4.33696 12.2366 3.70107 11.7678 3.23223C11.2989 2.76339 10.663 2.5 10 2.5C9.33696 2.5 8.70107 2.76339 8.23223 3.23223C7.76339 3.70107 7.5 4.33696 7.5 5V10C7.5 10.663 7.76339 11.2989 8.23223 11.7678C8.70107 12.2366 9.33696 12.5 10 12.5Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M15 10C15 10 15 12.5 10 12.5C5 12.5 5 10 5 10M10 12.5V17.5M7.5 17.5H12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,i.jsx)("button",{onClick:u,disabled:!x.trim(),className:"h-8 w-8 flex items-center justify-center bg-[#FDE047] rounded-sm hover:bg-[#FDE047]/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M10 15V5M10 5L5 10M10 5L15 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),g&&(0,i.jsx)("p",{className:"text-xs text-[#1C1917] text-center px-2",children:g})]})})})}).displayName="SearchBar";var u=r(45703),f=r.n(u),y=r(44794);let b=o.forwardRef((e,t)=>{let{placeholder:r="Ask anything about travel.",value:n="",onChange:a,onSubmit:l,onMicClick:s,onStopClick:d,onAttachClick:c,showMicrophone:p=!0,showAttachment:g=!1,disclaimerText:h="Nexgo is AI-powered and may not always be accurate. Verify when needed.",className:x="",disabled:m=!1,isLoading:u=!1,isRecording:b=!1,recordingTime:v=0,inputFontSize:w,...C}=e,[j,S]=o.useState(n),I=o.useRef(null);o.useEffect(()=>{S(n)},[n]),o.useEffect(()=>{let e=I.current;if(e){e.style.height="auto";let t=e.scrollHeight;e.style.height="".concat(Math.min(t,200),"px")}},[j]);let k=()=>{!j.trim()||m||u||null==l||l()};return(0,i.jsxs)("div",{ref:t,className:x,style:{display:"flex",flexDirection:"column",width:"100%"},...C,children:[(0,i.jsx)("div",{style:{backgroundColor:y.t0.primary,borderColor:y.t0.shade,borderWidth:y.sJ.width.thin,borderStyle:"solid",borderRadius:y.sJ.radius.lg,boxShadow:"4px 4px 16px 0 rgba(0, 0, 0, 0.06)"},children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:y.YK[2],height:"auto",minHeight:"80px",alignItems:"flex-start",overflow:"hidden",paddingLeft:y.YK[3],paddingRight:y.YK[2],paddingTop:y.YK[2],paddingBottom:y.YK[2],borderRadius:"inherit",width:"100%",boxSizing:"border-box"},children:[(0,i.jsxs)("div",{style:{display:"flex",gap:y.YK[0],alignItems:"flex-start",paddingLeft:y.YK[0],paddingRight:y.YK[0],paddingTop:y.YK[2.5],paddingBottom:y.YK[0],width:"100%",boxSizing:"border-box",position:"relative",flexShrink:0,minHeight:"24px"},children:[!j.trim()&&(0,i.jsx)("p",{style:{fontFamily:y.Wx,fontWeight:y.Il.weight.regular,fontSize:w||y.Il.size.sm,lineHeight:"normal",color:y.AH.placeholder,margin:0,padding:0,position:"absolute",top:y.YK[2.5],left:0,right:0,pointerEvents:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%",maxWidth:"100%",textAlign:"left",display:"block"},children:r}),(0,i.jsx)("textarea",{ref:I,value:j,onChange:e=>{let t=e.target.value;S(t),null==a||a(t)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),k())},disabled:m||u,style:{fontFamily:y.Wx,fontWeight:y.Il.weight.regular,fontSize:w||y.Il.size.sm,lineHeight:"normal",color:m||u?j.trim()?y.AH.primary:y.AH.tertiary:j.trim()?y.AH.primary:y.AH.placeholder,textAlign:"left",width:"100%",border:"none",outline:"none",resize:"none",background:"transparent",minHeight:"24px",height:"24px",maxHeight:"200px",overflowY:"auto",overflowX:"hidden",opacity:m||u?j.trim()?.8:.6:1,flex:"1 0 0",position:"relative",zIndex:1,padding:0,margin:0},rows:1})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",maxWidth:"100%",flexShrink:0,height:"36px",maxHeight:"36px"},children:[(0,i.jsx)("div",{style:{display:"flex",flex:"1 0 0",gap:y.YK[2],alignItems:"center",minHeight:"36px",minWidth:"1px"},children:g&&(0,i.jsx)("button",{onClick:m||u?void 0:c,disabled:m||u,style:{backgroundColor:y.t0.primary,borderColor:y.Vo.light,borderWidth:y.sJ.width.thin,borderStyle:"solid",display:"flex",gap:y.YK[2],alignItems:"center",justifyContent:"center",paddingTop:y.YK[1],paddingRight:y.YK[2],paddingBottom:y.YK[1],paddingLeft:y.YK[2],borderRadius:y.sJ.radiu
1s.full,width:"28px",cursor:m||u?"not-allowed":"pointer",transition:"all 0.2s",boxSizing:"border-box",opacity:m||u?.5:1},onMouseEnter:e=>{m||u||(e.currentTarget.style.backgroundColor=y.t0.secondary)},onMouseLeave:e=>{m||u||(e.currentTarget.style.backgroundColor=y.t0.primary)},children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"20px",height:"20px",flexShrink:0,aspectRatio:"1/1"},children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.404 14.596C4.6481 13.8402 4.09028 12.9096 3.77995 11.8866C3.46961 10.8637 3.41635 9.78005 3.62488 8.73163C3.8334 7.6832 4.29728 6.70239 4.97542 5.87607C5.65355 5.04975 6.52502 4.40343 7.51261 3.99437C8.50021 3.5853 9.57344 3.42612 10.6373 3.53092C11.7011 3.63572 12.7226 4.00127 13.6114 4.59518C14.5002 5.18909 15.2288 5.99304 15.7326 6.9358C16.2365 7.87856 16.5001 8.93104 16.5 10C16.5 10.3315 16.3683 10.6495 16.1339 10.8839C15.8995 11.1183 15.5815 11.25 15.25 11.25C14.9185 11.25 14.6005 11.1183 14.3661 10.8839C14.1317 10.6495 14 10.3315 14 10C13.9999 9.03256 13.6492 8.09794 13.0128 7.36926C12.3765 6.64057 11.4976 6.16722 10.539 6.03687C9.58033 5.90652 8.60696 6.12801 7.79913 6.66031C6.9913 7.19261 6.40376 7.99965 6.14534 8.93194C5.88693 9.86423 5.97515 10.8586 6.39366 11.7308C6.81218 12.603 7.53263 13.294 8.42156 13.6758C9.31049 14.0576 10.3077 14.1042 11.2283 13.8071C12.149 13.51 12.9309 12.8893 13.429 12.06C13.8257 12.4106 14.3152 12.6392 14.8386 12.7184C15.3621 12.7976 15.8972 12.724 16.3799 12.5065C16.8626 12.2889 17.2722 11.9367 17.5595 11.4921C17.8469 11.0475 17.9999 10.5294 18 10C17.9999 8.14916 17.3581 6.3556 16.1839 4.92492C15.0097 3.49425 13.3757 2.51497 11.5605 2.15395C9.74517 1.79293 7.86086 2.07251 6.2286 2.94504C4.59633 3.81757 3.3171 5.22908 2.60887 6.93905C1.90064 8.64902 1.80723 10.5517 2.34455 12.3228C2.88187 14.0939 4.01668 15.6239 5.55563 16.6522C7.09457 17.6804 8.94243 18.1432 10.7844 17.9617C12.6263 17.7803 14.3483 16.9658 15.657 15.657C15.7895 15.5148 15.8616 15.3268 15.8582 15.1325C15.8547 14.9382 15.776 14.7528 15.6386 14.6154C15.5012 14.478 15.3158 14.3993 15.1215 14.3958C14.9272 14.3924 14.7392 14.4645 14.597 14.597C13.9934 15.2007 13.2768 15.6795 12.4881 16.0062C11.6995 16.333 10.8542 16.5011 10.0005 16.5011C9.14684 16.5011 8.30153 16.333 7.51286 16.0062C6.72419 15.6795 6.00759 15.2007 5.404 14.597M10 7.5C9.33696 7.5 8.70108 7.76339 8.23223 8.23223C7.76339 8.70107 7.5 9.33695 7.5 10C7.5 10.663 7.76339 11.2989 8.23223 11.7678C8.70108 12.2366 9.33696 12.5 10 12.5C10.663 12.5 11.2989 12.2366 11.7678 11.7678C12.2366 11.2989 12.5 10.663 12.5 10C12.5 9.33695 12.2366 8.70107 11.7678 8.23223C11.2989 7.76339 10.663 7.5 10 7.5Z",fill:"#A8A29E"})})})}),(0,i.jsxs)("div",{style:{display:"flex",gap:y.YK[2],alignItems:"center",width:b?"auto":"84px"},children:[p&&(0,i.jsxs)("button",{onClick:m||u?void 0:s,disabled:m||u,style:{backgroundColor:b?"transparent":y.t0.primary,borderColor:b?"transparent":y.Vo.light,borderWidth:b?0:y.sJ.width.thin,borderStyle:b?"none":"solid",display:"flex",paddingTop:y.YK[1],paddingRight:y.YK[2],paddingBottom:y.YK[1],paddingLeft:y.YK[2],justifyContent:"center",alignItems:"center",gap:y.YK[2],borderRadius:y.sJ.radius.full,cursor:m||u?"not-allowed":"pointer",transition:"all 0.2s",position:"relative",boxSizing:"border-box",opacity:m||u?.5:1,flex:"1 0 0",alignSelf:"stretch"},onMouseEnter:e=>{b||m||u||(e.currentTarget.style.backgroundColor=y.t0.secondary)},onMouseLeave:e=>{b||m||u||(e.currentTarget.style.backgroundColor=y.t0.primary)},className:"jsx-f4bf834a7aa89636",children:[b?(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2.5px",width:"20px",height:"20px",aspectRatio:"1/1"},className:"jsx-f4bf834a7aa89636",children:[(0,i.jsx)("div",{style:{width:"2.5px",height:"12px",minHeight:"4px",backgroundColor:y.AH.primary,borderRadius:"1.25px",animation:"wave 0.9s ease-in-out infinite",animationDelay:"0s",transformOrigin:"center bottom"},className:"jsx-f4bf834a7aa89636"}),(0,i.jsx)("div",{style:{width:"2.5px",height:"12px",minHeight:"4px",backgroundColor:y.AH.primary,borderRadius:"1.25px",animation:"wave 0.9s ease-in-out infinite",animationDelay:"0.1s",transformOrigin:"center bottom"},className:"jsx-f4bf834a7aa89636"}),(0,i.jsx)("div",{style:{width:"2.5px",height:"12px",minHeight:"4px",backgroundColor:y.AH.primary,borderRadius:"1.25px",animation:"wave 0.9s ease-in-out infinite",animationDelay:"0.2s",transformOrigin:"center bottom"},className:"jsx-f4bf834a7aa89636"}),(0,i.jsx)("div",{style:{width:"2.5px",height:"12px",minHeight:"4px",backgroundColor:y.AH.primary,borderRadius:"1.25px",animation:"wave 0.9s ease-in-out infinite",animationDelay:"0.3s",transformOrigin:"center bottom"},className:"jsx-f4bf834a7aa89636"}),(0,i.jsx)("div",{style:{width:"2.5px",height:"12px",minHeight:"4px",backgroundColor:y.AH.primary,borderRadius:"1.25px",animation:"wave 0.9s ease-in-out infinite",animationDelay:"0.4s",transformOrigin:"center bottom"},className:"jsx-f4bf834a7aa89636"})]}):(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"20px",height:"20px",flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},className:"jsx-f4bf834a7aa89636",children:[(0,i.jsx)("path",{d:"M13.3334 5.00001C13.3334 3.15906 11.841 1.66667 10.0001 1.66667C8.15913 1.66667 6.66675 3.15906 6.66675 5.00001V9.16667C6.66675 11.0076 8.15913 12.5 10.0001 12.5C11.841 12.5 13.3334 11.0076 13.3334 9.16667V5.00001Z",fill:"#A8A29E",className:"jsx-f4bf834a7aa89636"}),(0,i.jsx)("path",{d:"M4.16675 9.16667C4.16675 9.93272 4.31763 10.6913 4.61078 11.399C4.90394 12.1067 5.33362 12.7498 5.87529 13.2915C6.41697 13.8331 7.06003 14.2628 7.76776 14.556C8.47549 14.8491 9.23404 15 10.0001 15C10.7661 15 11.5247 14.8491 12.2324 14.5
156C12.9401 14.2628 13.5832 13.8331 14.1249 13.2915C14.6665 12.7498 15.0962 12.1067 15.3894 11.399C15.6825 10.6913 15.8334 9.93272 15.8334 9.16667M10.0001 17.5V15.8333",stroke:"#A8A29E",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-f4bf834a7aa89636"})]}),(0,i.jsx)(f(),{id:"f4bf834a7aa89636",children:"@-webkit-keyframes wave{0%,100%{-webkit-transform:scaley(.3);transform:scaley(.3);opacity:.7}50%{-webkit-transform:scaley(1);transform:scaley(1);opacity:1}}@-moz-keyframes wave{0%,100%{-moz-transform:scaley(.3);transform:scaley(.3);opacity:.7}50%{-moz-transform:scaley(1);transform:scaley(1);opacity:1}}@-o-keyframes wave{0%,100%{-o-transform:scaley(.3);transform:scaley(.3);opacity:.7}50%{-o-transform:scaley(1);transform:scaley(1);opacity:1}}@keyframes wave{0%,100%{-webkit-transform:scaley(.3);-moz-transform:scaley(.3);-o-transform:scaley(.3);transform:scaley(.3);opacity:.7}50%{-webkit-transform:scaley(1);-moz-transform:scaley(1);-o-transform:scaley(1);transform:scaley(1);opacity:1}}"})]}),b&&p&&(0,i.jsx)("button",{onClick:m||u?void 0:d||s,disabled:m||u,style:{backgroundColor:y.t0.primary,borderColor:y.Vo.light,borderWidth:y.sJ.width.thin,borderStyle:"solid",display:"flex",paddingTop:y.YK[1],paddingRight:y.YK[2],paddingBottom:y.YK[1],paddingLeft:y.YK[2],justifyContent:"center",alignItems:"center",borderRadius:y.sJ.radius.full,cursor:m||u?"not-allowed":"pointer",transition:"all 0.2s",minWidth:"28px",width:"28px",height:"28px",maxWidth:"28px",maxHeight:"28px",boxSizing:"border-box",opacity:m||u?.5:1},onMouseEnter:e=>{m||u||(e.currentTarget.style.opacity="0.9")},onMouseLeave:e=>{m||u||(e.currentTarget.style.opacity="1")},children:(0,i.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"1",fill:y.AH.primary})})}),(0,i.jsx)("button",{onClick:k,disabled:!j.trim()||m||u,style:{backgroundColor:y.I8.primary,display:"flex",gap:y.YK[2],alignItems:"center",justifyContent:"center",padding:y.YK[2],borderRadius:y.sJ.radius.sm,cursor:!j.trim()||m||u?"not-allowed":"pointer",opacity:!j.trim()||m||u?.5:1,transition:"all 0.2s",border:"none",height:"36px",maxHeight:"36px",width:"36px",minWidth:"36px",maxWidth:"36px",boxSizing:"border-box",flexShrink:0},onMouseEnter:e=>{!j.trim()||m||u||(e.currentTarget.style.opacity="0.9")},onMouseLeave:e=>{!j.trim()||m||u||(e.currentTarget.style.opacity="1")},children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0001 17.5C9.75141 17.5 9.51295 17.4012 9.33714 17.2254C9.16132 17.0496 9.06255 16.8111 9.06255 16.5625V5.7L5.03755 9.725C4.85983 9.8906 4.62478 9.98075 4.3819 9.97647C4.13902 9.97218 3.90729 9.87379 3.73553 9.70203C3.56376 9.53026 3.46537 9.29853 3.46108 9.05565C3.4568 8.81278 3.54695 8.57772 3.71255 8.4L9.33755 2.775C9.51333 2.59944 9.75161 2.50082 10.0001 2.50082C10.2485 2.50082 10.4868 2.59944 10.6626 2.775L16.2876 8.4C16.4532 8.57772 16.5433 8.81278 16.539 9.05565C16.5347 9.29853 16.4363 9.53026 16.2646 9.70203C16.0928 9.87379 15.8611 9.97218 15.6182 9.97647C15.3753 9.98075 15.1403 9.8906 14.9626 9.725L10.9376 5.7V16.5625C10.9376 16.8111 10.8388 17.0496 10.663 17.2254C10.4871 17.4012 10.2487 17.5 10.0001 17.5Z",fill:y.AH.primary})})})]})]})]})}),h&&(0,i.jsx)("p",{style:{fontFamily:y.Wx,fontWeight:y.Il.weight.regular,fontSize:y.Il.size.xs,lineHeight:"normal",color:y.AH.primary,textAlign:"center",margin:0,marginTop:y.YK[2]},children:h})]})});b.displayName="ChatInput";let v=e=>{let{label:t,isActive:r=!1,onClick:o,icon:n,size:a="md"}=e,l={sm:{paddingX:y.YK[2],paddingY:y.YK[1],fontSize:y.Il.size.xs},md:{paddingX:y.YK[3],paddingY:y.YK[1.5],fontSize:y.Il.size.sm},lg:{paddingX:y.YK[4],paddingY:y.YK[2],fontSize:y.Il.size.base}}[a];return(0,i.jsxs)("button",{onClick:o,style:{backgroundColor:r?y.I8.offset:"#FFFFFF",borderColor:r?y.Vo.brand:y.Vo.base,borderWidth:y.sJ.width.thin,borderStyle:"solid",borderRadius:y.sJ.radius.full,paddingLeft:l.paddingX,paddingRight:l.paddingX,paddingTop:l.paddingY,paddingBottom:l.paddingY,display:"flex",alignItems:"center",gap:y.YK[1],cursor:o?"pointer":"default",transition:"all 0.2s",fontFamily:y.Wx,fontSize:l.fontSize,fontWeight:y.Il.weight.medium,color:y.AH.primary},onMouseEnter:e=>{o&&!r&&(e.currentTarget.style.backgroundColor=y.I8.offset)},onMouseLeave:e=>{o&&!r&&(e.currentTarget.style.backgroundColor="#FFFFFF")},children:[n&&(0,i.jsx)("span",{style:{display:"flex",alignItems:"center"},children:n}),(0,i.jsx)("span",{children:t})]})},w=e=>{let{label:t,isActive:r=!1,onClick:o,size:n="md",disabled:a=!1,className:l=""}=e,s={xs:{paddingX:y.YK[1.5],paddingY:y.YK[1],fontSize:y.Il.size.xs},sm:{paddingX:y.YK[2],paddingY:y.YK[1.5],fontSize:y.Il.size.xs},md:{paddingX:y.YK[3],paddingY:y.YK[2],fontSize:y.Il.size.sm},lg:{paddingX:y.YK[4],paddingY:y.YK[3],fontSize:y.Il.size.base}}[n],d=a&&!r;return(0,i.jsx)("button",{onClick:a?void 0:e=>{e.preventDefault(),null==o||o(e)},disabled:a,className:l,style:{backgroundColor:r?y.t0.secondary:"transparent",border:"none",borderRadius:y.sJ.radiu
1s.lg,paddingLeft:s.paddingX,paddingRight:s.paddingX,paddingTop:s.paddingY,paddingBottom:s.paddingY,cursor:a?"not-allowed":o?"pointer":"default",transition:"all 0.2s",fontFamily:y.Wx,fontSize:y.Il.size.base,fontStyle:"normal",fontWeight:y.Il.weight.regular,lineHeight:"normal",color:d?y.AH.tertiary:y.AH.primary,opacity:d?.5:1},onMouseEnter:e=>{!o||r||a||(e.currentTarget.style.backgroundColor=y.t0.secondary)},onMouseLeave:e=>{!o||r||a||(e.currentTarget.style.backgroundColor="transparent")},children:t})},C=e=>{let{icon:t,onClick:r,size:o="md",variant:n="default",ariaLabel:a}=e,l={sm:{size:y.KQ.component.icon.sm,padding:y.YK[1]},md:{size:y.KQ.component.iconButton.width,padding:y.YK[2]},lg:{size:y.KQ.component.icon.lg,padding:y.YK[3]}}[o],s=l.size,d=()=>"ghost"===n||"outlined"===n?"transparent":y.t0.primary;return(0,i.jsx)("button",{onClick:r,"aria-label":a,style:{width:s,height:s,backgroundColor:d(),borderColor:"ghost"===n?"transparent":y.t0.shade,borderWidth:"ghost"===n?y.sJ.width.none:y.sJ.width.thin,borderStyle:"solid",borderRadius:y.sJ.radius.full,display:"flex",alignItems:"center",justifyContent:"center",cursor:r?"pointer":"default",transition:"all 0.2s",padding:l.padding},onMouseEnter:e=>{r&&(e.currentTarget.style.backgroundColor=y.t0.secondary)},onMouseLeave:e=>{r&&(e.currentTarget.style.backgroundColor=d())},children:t})};r(29965),r(85269),r(7810),r(895)},895:(e,t,r)=>{r.d(t,{NP:()=>h});var i=r(38870),o=r(5547),n=r(13557),a=r(38735),l=r(41573);let s={colors:{...i.Tj},typography:o.Il,spacing:n.YK,borders:a.sJ,shadows:l.E},d={colors:{...i.Tj,background:{primary:"#1C1917",secondary:"#292524",offset:"#292524",shade:"#44403C",alternate:"#FFFFFF"},typography:{primary:"#FFFFFF",secondary:"#E7E5E4",tertiary:"#A8A29E",placeholder:"#A8A29E",alternate:"#1C1917",text:"#D6D3D1","alt-offset":"#E7E5E4"}},typography:o.Il,spacing:n.YK,borders:a.sJ,shadows:l.E};var c=r(74848),p=r(96540);let g=(0,p.createContext)(void 0);function h(e){let{children:t,defaultMode:r="light",storageKey:i="nexgo-theme"}=e,[o,n]=(0,p.useState)(r);(0,p.useEffect)(()=>{let e=localStorage.getItem(i);("light"===e||"dark"===e)&&n(e)},[i]),(0,p.useEffect)(()=>{document.documentElement.setAttribute("data-theme",o),localStorage.setItem(i,o)},[o,i]);let a="dark"===o?d:s;return(0,c.jsx)(g.Provider,{value:{theme:a,mode:o,toggleTheme:()=>{n(e=>"light"===e?"dark":"light")},setTheme:e=>{n(e)}},children:t})}},12421:(e,t,r)=>{let i={duration:{instant:"0ms",fast:"150ms",normal:"300ms",slow:"500ms",slower:"750ms"},transition:{all:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)",colors:"background-color 300ms cubic-bezier(0.4, 0, 0.2, 1), border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms cubic-bezier(0.4, 0, 0.2, 1)",opacity:"opacity 300ms cubic-bezier(0.4, 0, 0.2, 1)",transform:"transform 300ms cubic-bezier(0.4, 0, 0.2, 1)",shadow:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1)"}};i.transition.all,i.duration.fast,i.transition.transform,i.duration.instant,i.transition.opacity,i.duration.normal,i.transition.opacity,i.duration.fast,"".concat(i.transition.opacity,", ").concat(i.transition.transform),i.duration.fast,i.transition.opacity,i.duration.fast,"".concat(i.transition.transform,", ").concat(i.transition.shadow),i.duration.normal},38735:(e,t,r)=>{r.d(t,{sJ:()=>i});let i={radius:{none:"0px",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},width:{none:"0px",thin:"1px",medium:"2px",thick:"4px"},style:{solid:"solid",dashed:"dashed",dotted:"dotted",none:"none"}};i.radius.lg,i.width.thin,i.style.solid,i.radius.sm,i.width.thin,i.style.solid,i.radius.xl,i.width.thin,i.style.solid,i.radius.sm,i.width.thin,i.style.solid,i.radius.full,i.width.none,i.style.solid,i.radius["2xl"],i.width.none,i.style.solid},91780:(e,t,r)=>{let i={xs:"480px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};i.xs,i.sm,i.md,i.lg,i.xl,i["2xl"],i.xs,i.sm,i.md,i.lg,i.xl,i["2xl"]},38870:(e,t,r)=>{r.d(t,{AH:()=>a,Bf:()=>d,I8:()=>o,PA:()=>s,Tj:()=>i,Vo:()=>l,t0:()=>n});let i={brand:{primary:"#FDE047",secondary:"#F6EBB5",tertiary:"#FBF8EA",offset:"#FEFCE8"},background:{primary:"#FFFFFF",secondary:"#F5F5F4",offset:"#F5F5F4",shade:"#E7E5E4",alternate:"#1C1917",foodSpecialty:"#FFFBF5"},typography:{primary:"#1C1917",secondary:"#57534E",tertiary:"#78716C",placeholder:"#78716C",alternate:"#FFFFFF",text:"#44403C","alt-offset":"#E7E5E4"},stroke:{lightest:"#F5F5F4",light:"#E7E5E4",base:"#D6D3D1",medium:"#A8A29E",brand:"#FEF08A",foodSpecialty:"#FFFCED"},status:{success:{light:"#DCF5E6",border:"#BFE5CD",text:"#16A34A",icon:"#84CC16"},error:{light:"#FEE2E2",border:"#FECACA",text:"#DC2626"},warning:{light:"#FEF3C7",border:"#FDE68A",text:"#D97706"},info:{light:"#DBEAFE",border:"#BFDBFE",text:"#2563EB"}},gray:{50:"#FAFAF9",100:"#F5F5F4",200:"#E7E5E4",300:"#D6D3D1",400:"#A8A29E",500:"#78716C",600:"#57534E",700:"#44403C",800:"#292524",900:"#1C1917"},overlay:{light:"rgba(0, 0, 0, 0.1)",medium:"rgba(0, 0, 0, 0.2)",dark:"rgba(0, 0, 0, 0.5)",dar
1ker:"rgba(0, 0, 0, 0.8)"},ui:{divider:"#E7E5E4",hover:"rgba(0, 0, 0, 0.05)",pressed:"rgba(0, 0, 0, 0.1)",focus:"#FDE047",disabled:"#D6D3D1"},base:{white:"#FFFFFF",black:"#000000",transparent:"transparent"}},o=i.brand,n=i.background,a=i.typography,l=i.stroke,s=i.status;i.gray;let d=i.overlay},85103:(e,t,r)=>{r.d(t,{K:()=>i});let i={container:{hero:"720px",experienceList:"1087px",experienceListInner:"1073px",headerWide:"744px",headerMedium:"556px",leftPanel:"430px",maxContent:"1407px",maxContentAlt:"1400px",maxContentSmall:"1394px",maxContentMedium:"1401px",chat:"720px",placeOverlay:"618px"},component:{cardSignature:{width:"286px",height:"536px"},cardExperience:{width:"180px",height:"160px"},cardPackage:{imageHeight:"215px"},cardBoutique:{height:"548px"},cardActivity:{width:"286px",height:"390px"},cardQuick:{width:"180px",height:"160px"},cardRide:{imageWidth:"213px",imageHeight:"220px"},logoCircle:{width:"159px",height:"159px"},logoSidebar:{width:"72px",height:"24px"},iconButton:{width:"40px",height:"40px"},durationBadgeNumber:{width:"26px"},sidebar:{width:"106px"},icon:{xs:"16px",sm:"20px",md:"24px",lg:"32px"},feedbackButton:{width:"44px",height:"36px"},activityCardImage:{height:"120px"},suggestedItem:{height:"40px"},placeOverlayImage:{large:"382px",medium:"187px",small:"200px",food:"191px",thumbnail:"66px",thumbnailHeight:"60px"}},gaps:{greeting:"43px",sectionContent:"42px",divider:"13px"}}},54564:(e,t,r)=>{r.d(t,{Il:()=>i.Il}),r(38870);var i=r(5547);r(13557),r(38735),r(41573),r(91780),r(12421)},41573:(e,t,r)=>{r.d(t,{E:()=>i});let i={none:"none",xs:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)",sm:"0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)",md:"0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)",xl:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)","2xl":"0px 25px 50px -12px rgba(0, 0, 0, 0.25)",card:"4px 4px 4px 0px rgba(0, 0, 0, 0.1)",button:"none",dropdown:"0px 4px 16px 0px rgba(0, 0, 0, 0.1)",modal:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)",inner:{sm:"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",md:"inset 0px 2px 4px 0px rgba(0, 0, 0, 0.06)"},focus:{primary:"0 0 0 3px rgba(253, 224, 71, 0.5)",error:"0 0 0 3px rgba(239, 68, 68, 0.5)",success:"0 0 0 3px rgba(34, 197, 94, 0.5)"}};i.card,i.md,i.none,i.sm,i.inner.md,i.none,i.focus.primary,i.focus.error,i.dropdown,i.modal},13557:(e,t,r)=>{r.d(t,{YK:()=>i});let i={0:"0px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",10:"40px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px"};i[1],i[2],i[4],i[6],i[8],i[12],i[1],i[2],i[4],i[6],i[8],i[12],i[1],i[2],i[4],i[6],i[8],i[12],i[12],i[16],i[20],i[24],i[4],i[6],i[20]},5547:(e,t,r)=>{r.d(t,{Il:()=>i,Wx:()=>o});let i={fonts:{primary:"'Gantari', sans-serif",secondary:"'Gantari', sans-serif",tertiary:"'Gantari', sans-serif",fallback:"system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"},size:{xs:"12px",sm:"14px",base:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px","6xl":"60px"},weight:{light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800},lineHeight:{none:"1",tight:"1.25",snug:"1.375",base:"1.4",normal:"1.5",relaxed:"1.625",loose:"2",20:"20px",21:"21px",52:"52px",60:"60px"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em","-0.5":"-0.5px"},styles:{h1:{fontSize:"48px",fontWeight:600,lineHeight:"52px",fontFamily:"'Gantari', sans-serif",letterSpacing:"-0.5px"},h2:{fontSize:"36px",fontWeight:600,lineHeight:"1.2",fontFamily:"'Gantari', sans-serif"},h3:{fontSize:"32px",fontWeight:600,lineHeight:"1.25",fontFamily:"'Gantari', sans-serif"},h4:{fontSize:"24px",fontWeight:700,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},h5:{fontSize:"20px",fontWeight:600,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},h6:{fontSize:"18px",fontWeight:500,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},bodyLarge:{fontSize:"18px",fontWeight:400,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},body:{fontSize:"16px",fontWeight:400,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},bodySmall:{fontSize:"14px",fontWeight:400,lineHeight:"20px",fontFamily:"'Gantari', sans-serif"},bodyExtraSmall:{fontSize:"12px",fontWeight:400,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},label:{fontSize:"14px",fontWeight:600,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},labelSmall:{fontSize:"12px",fontWeight:600,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},caption:{fontSize:"12px",fontWeight:400,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},button:{fontSize:"16px",fontWeight:600,lineHeight:"normal",fontFamily:"'Gantari', sans-serif"},buttonSmall:{fontSize:"14px",fontWeight:600,lineHeight:"20px",fontFamily:"'Gantari', sans-serif"},link:{fontSize:"16px",fontWeight:700,lineHeight:"normal",fontFamily:"'Gantari', sans-serif",textDecoration:"underline"}}},o=i.fonts.primary;i.fonts.secondary,i.fonts.tertiary},44794:(e,t,r)=>{r.d(t,{t0:()=>i.t0,sJ:()=>i.sJ,I8:()=>i.I8,Tj:()=>i.Tj,KQ:()=>i.KQ,Wx:()=>i.Wx,Eo:()=>i.Eo,YK:()=>i.YK,PA:()=>i.PA,Vo:()=>i.Vo,SV:()=>c,Ut:()=>d,Il:()=>i.Il,AH:()=>i.AH}),r(91780);var i=r(84577),o=r(38870),n=r(13557),a=r(5547),l=r(85103),s=r(38735);let d={h1:{fontSize:a.Il.size["5xl"],fontWeight:a.Il.weight.semibold,lineHeight:a.Il.lineHeight["52"],fontFamily:a.Il.fonts.primary,letterSpacing:a.Il.letterSpacing["-0.5"],color:o.Tj.typography.primary},h2:{fontSize:a.Il.size["4xl"],fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},h3:{fontSize:a.Il.size["2xl"],fontWeight:a.Il.weight.bold,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},h4:{fontSize:a.Il.size.xl,fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},h5:{fontSize:a.Il.size.base,fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},bodyLarge:{fontSize:a.Il.size.xl,fontWeight:a.Il.weight.regular,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},body:{fontSize:a.Il.size.base,fontWeight:a.Il.weight.regular,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},bodyMedium:{fontSize:a.Il.size.base,fontWeight:a.Il.weight.medium,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},bodySemibold:{fontSize:a.Il.size.base,fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},caption:{fontSize:a.Il.size.sm,fontWeight:a.Il.weight.regular,fontFamily:a.Il.fonts.secondary,color:o.Tj.typography.text},captionSemibold:{fontSize:a.Il.size.sm,fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.secondary,lineHeight:a.Il.lineHeight["20"],color:o.Tj.typography.text},small:{fontSize:a.Il.size.xs,fontWeight:a.Il.weight.light,fontFamily:a.Il.fonts.primary,color:o.Tj.typography["alt-offset"]},badge:{fontSize:"10px",fontWeight:a.Il.weight.bold,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography.alternate},cardTitle:{fontSize:a.Il.size["2xl"],fontWeight:a.Il.weight.bold,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography.primary},cardTitleOnDark:{fontSize:a.Il.size["2xl"],fontWeight:a.Il.weight.bold,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography["alt-offset"]},cardBody:{fontSize:a.Il.size.base,fontWeight:a.Il.weight.semibold,fontFamily:a.Il.fonts.primary,color:o.Tj.typography["alt-offset"]},cardCaption:{fontSize:a.Il.size.xs,fontWeight:a.Il.weight.light,fontFamily:a.Il.fonts.primary,color:o.Tj.typography["alt-offset"]}};n.YK[20],n.YK[20],n.YK[20],n.YK[20],n.YK[14],n.YK[14],n.YK[20],n.YK[20],l.K.container.maxContent,l.K.container.maxContentAlt,o.Tj.background.primary,o.Tj.stroke.light,s.sJ.width.thin,s.sJ.radiu
1s.xl,n.YK[3],n.YK[6],n.YK[8],n.YK[2],s.sJ.radius.sm,a.Il.size.base,a.Il.weight.semibold,a.Il.fonts.primary,n.YK[3],n.YK[3],n.YK[1.5],n.YK[1.5],n.YK[4],n.YK[4],n.YK[2.5],n.YK[2.5],n.YK[6],n.YK[6],n.YK[3],n.YK[3],o.Tj.brand.primary,o.Tj.typography.primary,o.Tj.background.alternate,o.Tj.typography.alternate,o.Tj.background.primary,o.Tj.stroke.base,s.sJ.width.thin,o.Tj.typography.primary,n.YK[1],n.YK[2],n.YK[1],n.YK[1],s.sJ.radius.lg,s.sJ.width.thin,a.Il.weight.bold,a.Il.fonts.primary,o.Tj.typography.alternate;let c={heroGreeting:{fontSize:"32px",fontWeight:a.Il.weight.semibold,lineHeight:"normal",fontFamily:a.Il.fonts.primary,color:o.Tj.typography.text,textAlign:"center"},heroImage:{width:l.K.component.logoCircle.width,height:l.K.component.logoCircle.height},sectionBadge:{backgroundColor:o.Tj.brand.primary,paddingLeft:n.YK[1],paddingRight:n.YK[3],paddingTop:n.YK[1],paddingBottom:n.YK[1],borderRadius:s.sJ.radius.lg,gap:n.YK[2.5]},sectionBadgeInner:{backgroundColor:o.Tj.brand.secondary,borderWidth:s.sJ.width.thin,borderColor:"rgba(0, 0, 0, 0.12)",borderStyle:"solid",padding:n.YK[2],borderRadius:s.sJ.radius.md,gap:n.YK[2]},quickLinksContainer:{width:l.K.container.experienceList},quickLinksInner:{width:l.K.container.experienceListInner},quickLinkCard:{width:l.K.component.cardExperience.width,height:l.K.component.cardExperience.height},signatureCard:{width:l.K.component.cardSignature.width,height:l.K.component.cardSignature.height},durationBadge:{backgroundColor:"rgba(0, 0, 0, 0.1)",backdropFilter:"blur(4px)",gap:n.YK[1],padding:n.YK[1],borderRadius:s.sJ.radius.sm},durationNumber:{width:l.K.component.durationBadgeNumber.width,backgroundColor:"rgba(241, 241, 239, 0.19)",padding:n.YK[1],borderRadius:s.sJ.radius.sm}}},84577:(e,t,r)=>{r.d(t,{AH:()=>i.AH,Eo:()=>l.E,I8:()=>i.I8,Il:()=>n.Il,KQ:()=>s.K,PA:()=>i.PA,Tj:()=>i.Tj,Vo:()=>i.Vo,Wx:()=>n.Wx,YK:()=>o.YK,sJ:()=>a.sJ,t0:()=>i.t0});var i=r(38870),o=r(13557),n=r(5547);r(91780);var a=r(38735),l=r(41573),s=r(85103);r(12421)},18019:(e,t,r)=>{r.d(t,{cn:()=>n});var i=r(34164),o=r(50856);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.QP)((0,i.$)(t))}},82899:(e,t,r)=>{r.d(t,{$:()=>n});var i=r(59836),o=r(87134);let n=(0,i.v)()((0,o.Zr)((e,t)=>({conversations:[],activeConversationId:null,createConversation:(t,r)=>{var i;let o=Date.now(),n="conv_".concat(o,"_").concat(Math.random().toString(36).substring(2,15)),a=(null==r?void 0:null===(i=r.content)||void 0===i?void 0:i.substring(0,50))||"New Chat",l={id:n,sessionId:t,messages:r?[r]:[],title:a,createdAt:o,updatedAt:o};return e(()=>({conversations:[l],activeConversationId:n})),console.log("✅ [chatScreenStore] Created new conversation (cleared old ones):",n),n},updateConversation:(t,r)=>{e(e=>{var i,o,n;let a=e.conversations.find(e=>e.id===t);if(!a)return{conversations:[{id:t,sessionId:t,messages:r,title:(null===(n=r.find(e=>"user"===e.role))||void 0===n?void 0:null===(o=n.content)||void 0===o?void 0:o.substring(0,50))||"New Chat",createdAt:Date.now(),updatedAt:Date.now()}],activeConversationId:t};let l=r.find(e=>"user"===e.role),s=(null==l?void 0:null===(i=l.content)||void 0===i?void 0:i.substring(0,50))||a.title;return{conversations:[{...a,messages:r,title:s,updatedAt:Date.now()}],activeConversationId:t}})},addMessageToConversation:(t,r)=>{e(e=>{let i=e.conversations.find(e=>e.id===t);if(!i)return e;let o=i.title;return"New Chat"===i.title&&"user"===r.role&&(o=r.content.substring(0,50)),{conversations:[{...i,messages:[...i.messages,r],title:o,updatedAt:Date.now()}],activeConversationId:t}})},deleteConversation:t=>{e(e=>e.conversations.some(e=>e.id===t)?{conversations:[],activeConversationId:null}:e)},setActiveConversation:t=>{e({activeConversationId:t})},getActiveConversation:()=>{let e=t();return e.activeConversationId&&e.conversations.find(t=>t.id===e.activeConversationId)||null},getConversation:e=>t().conversations.find(t=>t.id===e)||null,updateConversationId:(t,r)=>{e(e=>{let i=e.conversations.find(e=>e.id===t);if(!i)return console.warn("[chatScreenStore] Conversation not found: ".concat(t)),e;let o={...i,id:r,sessionId:r},n=e.activeConversationId===t?r:e.activeConversationId;return console.log("\uD83D\uDD04 [chatScreenStore] Updated conversation ID: ".concat(t," -> ").concat(r)),{conversations:[o],activeConversationId:n}})},clearActiveConversation:()=>{e({activeConversationId:null})},clearAllConversations:()=>{console.log("\uD83E\uDDF9 [chatScreenStore] Clearing all conversations"),e({conversations:[],activeConversationId:null})},cleanupOldConversations:()=>{e(e=>{if(e.conversations.length<=1)return e;let t=[...e.conversations].sort((e,t)=>
1t.updatedAt-e.updatedAt),r=(e.activeConversationId?t.find(t=>t.id===e.activeConversationId):null)||t[0];return console.log("\uD83E\uDDF9 [chatScreenStore] Cleaned up conversations: ".concat(e.conversations.length," -> 1")),{conversations:r?[r]:[],activeConversationId:(null==r?void 0:r.id)||null}})}}),{name:"chat-screen-store",storage:{getItem:e=>{if(!window.localStorage)return null;try{var t;let r;let i=localStorage.getItem(e);if(!i)return null;if("string"!=typeof i)return console.error("Expected string from localStorage, got:",typeof i,i),window.localStorage&&localStorage.removeItem(e),null;if("[object Object]"===i||i.startsWith("[object"))return console.error("Found corrupted object in localStorage, clearing..."),window.localStorage&&localStorage.removeItem(e),null;try{r=JSON.parse(i)}catch(t){return console.error("Failed to parse JSON from localStorage:",t,"Value:",i.substring(0,100)),window.localStorage&&localStorage.removeItem(e),null}if("object"!=typeof r||null===r)return console.error("Parsed value is not an object:",typeof r),window.localStorage&&localStorage.removeItem(e),null;if((null==r?void 0:null===(t=r.state)||void 0===t?void 0:t.conversations)&&Array.isArray(r.state.conversations)){let e=r.state.conversations.map(e=>{var t;return{...e,messages:(null===(t=e.messages)||void 0===t?void 0:t.map(e=>({...e,timestamp:"string"==typeof e.timestamp?new Date(e.timestamp):e.timestamp instanceof Date?e.timestamp:new Date})))||[]}}),t=r.state.activeConversationId,i=null;t&&(i=e.find(e=>e.id===t)||null),!i&&e.length>0&&(i=e.sort((e,t)=>t.updatedAt-e.updatedAt)[0]),r.state.conversations=i?[i]:[],r.state.activeConversationId=(null==i?void 0:i.id)||null,e.length>1&&console.log("\uD83E\uDDF9 [chatScreenStore] Cleaned up on load: ".concat(e.length," -> 1 conversation"))}return JSON.stringify(r)}catch(t){if(console.error("Error parsing chat screen store:",t),window.localStorage)try{localStorage.removeItem(e)}catch(e){console.error("Error clearing corrupted store:",e)}return null}},setItem:(e,t)=>{if(window.localStorage)try{let i;i="string"!=typeof t?JSON.stringify(t):t;try{localStorage.setItem(e,i)}catch(t){if(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||t.message.includes("quota"))){console.warn("⚠️ [chatScreenStore] localStorage quota exceeded, attempting cleanup...");try{var r;let t=JSON.parse(i);if(null==t?void 0:null===(r=t.state)||void 0===r?void 0:r.conversations){let r=t.state.conversations,i=t.state.activeConversationId,o=null;i&&(o=r.find(e=>e.id===i)||null),!o&&r.length>0&&(o=r.sort((e,t)=>t.updatedAt-e.updatedAt)[0]);let n=JSON.stringify({state:{conversations:o?[o]:[],activeConversationId:(null==o?void 0:o.id)||null},version:t.version||0});try{localStorage.setItem(e,n),console.log("✅ [chatScreenStore] Successfully saved after cleanup: ".concat(r.length," -> 1 conversation"))}catch(i){console.warn("⚠️ [chatScreenStore] Still quota exceeded, clearing all conversations...");let r=JSON.stringify({state:{conversations:[],activeConversationId:null},version:t.version||0});try{localStorage.setItem(e,r),console.log("✅ [chatScreenStore] Successfully saved with empty conversations")}catch(t){console.error("❌ [chatScreenStore] Failed to save even with empty conversations:",t),localStorage.removeItem(e)}}}else console.error("⚠️ [chatScreenStore] Could not parse store data, clearing..."),localStorage.removeItem(e)}catch(t){console.error("⚠️ [chatScreenStore] Error parsing store data during cleanup:",t);try{localStorage.removeItem(e)}catch(e){}}}else throw t}}catch(e){console.error("Error setting chat screen store:",e)}},removeItem:e=>{if(window.localStorage)try{localStorage.removeItem(e)}catch(e){console.error("Error removing chat screen store:",e)}}}}))},95749:(e,t,r)=>{r.d(t,{T:()=>n});var i=r(59836),o=r(87134);let n=(0,i.v)()((0,o.Zr)(e=>({redirectUrl:null,loginContext:null,setRedirectUrl:t=>{let r=n.getState();console.log("\uD83D\uDCBE [RedirectStore] Setting redirectUrl:",{newUrl:t,previousUrl:r.redirectUrl,currentLoginContext:r.loginContext,timestamp:new Date().toISOString()}),e({redirectUrl:t}),setTimeout(()=>{let e=n.getState(),r=localStorage.getItem("redirectUrl");console.log("✅ [RedirectStore] redirectUrl set verification:",{inMemory:e.redirectUrl,inStorage:r?JSON.parse(r):null,matches:e.redirectUrl===t})},0)},setLoginContext:t=>{let r=n.getState();console.log("\uD83D\uDCBE [RedirectStore] Setting loginContext:",{newContext:t,previousContext:r.loginContext,currentRedirectUrl:r.redirectUrl,timestamp:new Date().toISOString()}),e({loginContext:t}),setTimeout(()=>{var e,r;let i=n.getState(),o=localStorage.getItem("redirectUrl");console.log("✅ [RedirectStore] loginContext set verification:",{inMemory:i.loginContext,inStorage:o?null===(r=JSON.parse(o))||void 0===r?void 0:null===(e=r.state)||void 0===e?void 0:e.loginContext:null,matches:i.loginContext===t})},0)},clearRedirect:()=>{console.log("\uD83D\uDDD1️ [RedirectStore] Clearing redirect"),e(e=>(console.log("\uD83D\uDDD1️ [RedirectStore] Previous state:",{redirectUrl:e.redirectUrl,loginContext:e.loginContext,timestamp:new Date().toISOString()}),{redirectUrl:null,loginContext:null}))},hydrated:!1,setHydrated:()=>{let t=n.getState();console.log("\uD83D\uDD04 [RedirectStore] Store hydrated:",{redirectUrl:t.redirectUrl,loginContext:t.loginContext,timestamp:new Date().toISOString()}),e({hydrated:!0})}}),{name:"redirectUrl",onRehydrateStorage:()=>(console.log("\uD83D\uDD04 [RedirectStore] Starting rehydration from storage..."),e=>{e?console.log("\uD83D\uDD04 [RedirectStore] Rehydration complete:",{redirectUrl:e.redirectUrl,loginContext:e.loginContext,timestamp:new Date().toISOString(),localStorageCheck:localStorage.getItem("redirectUrl")}):console.log("⚠️ [RedirectStore] Rehydration returned null/undefined state"),null==e||e.setHydrated()})}))},80643:(e,t,r)=>{r.d(t,{Ai:()=>n,Bc:()=>a,XC:()=>l,YN:()=>s});let i="nexgo-pre-login-state";function o(e){try{let t={...n(),...e,timestamp:Date.now()};localStorage.setItem(i,JSON.stringify(t)),console.log("\uD83D\uDCBE [PreLoginState] State saved:",t)}catch(e){console.error("❌ [PreLoginState] Failed to save state:",e)}}function n(){try{let e=localStorage.getItem(i);if(!e)return null;let t=JSON.parse(e),r=Date.now()-36e5;if(t.timestamp<r)return a(),null;return t}catch(e){return console.error("❌ [PreLoginState] Failed to read state:",e),null}}function a(){try{localStorage.removeItem(i),console.log("\uD83D\uDDD1️ [PreLoginState] State cleared")}catch(e){console.error("❌ [PreLoginState] Failed to clear state:",e)}}function l(e,t,r){o({chatState:{conversationId:e,sessionId:t,activeTab:r}})}function s(e,t){o({bookingState:{experienceType:e,experienceSlug:t}})}}}]);
2//# sourceMappingURL=2657-e99a7c9f875182d7.js.map

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.