PageSourceSearch

https://mindtrip.ai/_next/static/chunks/5825-1290780025e8233b.js

js mindtrip.ai collected 2026-09-24 17:10:20 UTC 16,185 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5825],{8385:(e,t,s)=>{s.d(t,{$:()=>S});var n=s(37876),r=s(27964),a=s(14e3),i=s(74302),l=s(91830),o=s(21802),c=s(77934),h=s(18564),d=s(91183),u=s(53934),m=s(32516),f=s(39320),p=s(47115),x=s(36407),y=s(59859),g=s(24560),j=s(72602),v=s(20658),b=s(28104),_=s(11857),w=s(93797),N=s(47003);function S(e){let t,s,o,S,T,F,A,C,z,I,M,B,D,O,R,E,G,L,W,q,P,U,V,H,J,K,Q,Y,Z=(0,r.c)(51),{open:X,setOpen:ee,isAnonymous:et}=e,es=(0,h.Bd)(),en=(0,a.usePathname)(),er="/"===en,ea="/homepage2"===en,ei=(0,m.jL)();Z[0]===Symbol.for("react.memo_cache_sentinel")?(t={selectFromResult:k},Z[0]=t):t=Z[0];let{flagsSettled:el,homeEnabled:eo}=(0,d.Rd)(void 0,t),ec=!el||eo;Z[1]!==es?(s=es("mindtripHomepage"),Z[1]=es,Z[2]=s):s=Z[2];let eh=er?void 0:"transition-opacity hover:opacity-60";Z[3]!==er||Z[4]!==ee?(o=er?e=>{e.preventDefault(),ee(!1),window.scrollTo({top:0,behavior:"smooth"})}:void 0,Z[3]=er,Z[4]=ee,Z[5]=o):o=Z[5],Z[6]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(j.A,{size:32,className:"pointer-events-none"}),Z[6]=S):S=Z[6],Z[7]!==s||Z[8]!==eh||Z[9]!==o?(T=(0,n.jsx)("div",{className:"mt-4 mb-12 flex",children:(0,n.jsx)(b.N,{href:"/homepage","aria-label":s,className:eh,onClick:o,children:S})}),Z[7]=s,Z[8]=eh,Z[9]=o,Z[10]=T):T=Z[10];let ed=ea&&"text-md";return Z[11]!==ed?(F=(0,i.cn)("-mt-3 mb-5 text-lg font-medium",ed),Z[11]=ed,Z[12]=F):F=Z[12],Z[13]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)("li",{children:(0,n.jsxs)(b.N,{href:"/chat",rel:"nofollow",className:"group flex items-center gap-2.5 py-3 transition-colors hover:text-gray-11",children:[(0,n.jsx)(y.A,{className:"text-[1.5em]"}),"Start chatting"]})}),Z[13]=A):A=Z[13],Z[14]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsx)("li",{"aria-hidden":!0,children:(0,n.jsx)(_.w,{className:"my-4"})}),Z[14]=C):C=Z[14],Z[15]!==ea||Z[16]!==ec?(z=ea?l.SA.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(b.N,{href:(0,l.MI)(e.type,ec),className:"group flex items-center gap-2.5 py-3 font-normal transition-colors hover:text-gray-11",children:[(0,n.jsx)(f.C,{type:e.type,className:"-ml-1 size-7"}),e.label]})},e.type)):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:(0,n.jsxs)(b.N,{href:"/flights",className:"group flex items-center gap-2.5 py-3 transition-colors hover:text-gray-11",children:[(0,n.jsx)(x.A,{className:"text-[1.5em]"}),"Flights"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)(b.N,{href:"/stays",className:"group flex items-center gap-2.5 py-3 transition-colors hover:text-gray-11",children:[(0,n.jsx)(g.A,{className:"text-[1.5em]"}),"Stays"]})})]}),Z[15]=ea,Z[16]=ec,Z[17]=z):z=Z[17],Z[18]===Symbol.for("react.memo_cache_sentinel")?(I=(0,n.jsx)("li",{"aria-hidden":!0,children:(0,n.jsx)(_.w,{className:"my-4"})}),Z[18]=I):I=Z[18],Z[19]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.jsx)("span",{className:"font-serif lowercase italic",children:"for"}),Z[19]=M):M=Z[19],Z[20]===Symbol.for("react.memo_cache_sentinel")?(B=(0,n.jsx)("li",{children:(0,n.jsx)(b.N,{href:"/creator-program",className:"group flex py-3 transition-colors hover:text-gray-11",children:(0,n.jsxs)("span",{children:[M," ",(0,n.jsx)("span",{children:"Creators"})]})})}),Z[20]=B):B=Z[20],Z[21]===Symbol.for("react.memo_cache_sentinel")?(D=(0,n.jsx)("span",{className:"font-serif lowercase italic",children:"for"}),Z[21]=D):D=Z[21],Z[22]===Symbol.for("react.memo_cache_sentinel")?(O=(0,n.jsx)("li",{children:(0,n.jsx)(b.N,{href:"/business",className:"group flex py-3 transition-colors hover:text-gray-11",children:(0,n.jsxs)("span",{children:[D," ",(0,n.jsx)("span",{children:"Business"})]})})}),Z[22]=O):O=Z[22],Z[23]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)("li",{"aria-hidden":!0,children:(0,n.jsx)(_.w,{className:"my-4"})}),E=(0,n.jsx)("li",{children:(0,n.jsx)(b.N,{href:"https://resources.mindtrip.ai",className:"group flex py-3 transition-colors hover:text-gray-11",children:"Resources"})}),G=(0,n.jsx)("li",{children:(0,n.jsx)(b.N,{href:"https://resources.mindtrip.ai/travelers/help/traveler-faqs",className:"group flex py-3 transition-colors hover:text-gray-11",children:"Help"})}),Z[23]=R,Z[24]=E,Z[25]=G):(R=Z[23],E=Z[24],G=Z[25]),Z[26]!==z||Z[27]!==F?(L=(0,n.jsxs)("ul",{className:F,children:[A,C,z,I,B,O,R,E,G]}),Z[26]=z,Z[27]=F,Z[28]=L):L=Z[28],Z[29]!==ei||Z[30]!==et?(W=et&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.$,{variant:"outline",size:"md",block:!0,onClick:()=>{ei((0,u.xb)({callbackUrl:"/"}))},children:"Log in"}),(0,n.jsx)(N.v,{variant:"primary",size:"md",block:!0,rel:"nofollow"})]}),Z[29]=ei,Z[30]=et,Z[31]=W):W=Z[31],Z[32]!==et?(q=!et&&(0,n.jsx)(v.$,{variant:"outline",size:"md",block:!0,onPerform:$,children:"Log out"}),Z[32]=et,Z[33]=q):q=Z[33],Z[34]!==W||Z[35]!==q?(P=(0,n.jsxs)(p.i,{children:[W,q]}),Z[34]=W,Z[35]=q,Z[36]=P):P=Z[36],Z[37]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(_.w,{className:"my-4"}),Z[37]=U):U=Z[37],Z[38]===Symbol.for("react.memo_cache_sentinel")?(V=(0,n.jsx)(b.N,{href:"/privacy-policy",className:"-m-2 p-2 hover:text-foreground",children:"Privacy Policy"}),H=(0,n.jsx)(b.N,{href:"/terms-of-service",className:"-m-2 ml-2.5 p-2 hover:text-foreground",children:"Terms of Service"}),Z[38]=V,Z[39]=H):(V=Z[38],H=Z[39]),Z[40]===Symbol.for("react.memo_cache_sentinel")?(J=(0,n.jsxs)("p",{className:"flex flex-wrap gap-2.5 text-sm text-muted",children:[V,H,(0,n.jsxs)("span",{children:["\xa9 ",(0,c.O4)().year," Mindtrip, Inc."]})]}),Z[40]=J):J=Z[40],Z[41]!==P?(K=(0,n.jsxs)("div",{className:"mt-auto flex flex-col gap-2.5",children:[P,U,J]}),Z[41]=P,Z[42]=K):K=Z[42],Z[43]!==L||Z[44]!==K||Z[45]!==T?(Q=(0,n.jsx)(w.h,{size:"sm",position:"left",children:(0,n.jsxs)(w.eC,{className:"flex min-h-full flex-col",children:[T,
1L,K]})}),Z[43]=L,Z[44]=K,Z[45]=T,Z[46]=Q):Q=Z[46],Z[47]!==X||Z[48]!==ee||Z[49]!==Q?(Y=(0,n.jsx)(w.cj,{modal:!0,open:X,onOpenChange:ee,children:Q}),Z[47]=X,Z[48]=ee,Z[49]=Q,Z[50]=Y):Y=Z[50],Y}async function $(){(0,o.userInitiatedSignOut)()}function k(e){let{data:t,isError:s}=e;return{flagsSettled:!!t||s,homeEnabled:t?.includes("assistant_home")??!1}}},39320:(e,t,s)=>{s.d(t,{C:()=>c});var n=s(37876),r=s(27964),a=s(74302),i=s(91830),l=s(26073);let o={stays:"bg-plum-4",flights:"bg-blue-4",restaurants:"bg-amber-4",trip:"bg-mint-4",activity:"bg-lime-4",events:"bg-violet-4"};function c(e){let t,s,c,h,d=(0,r.c)(11),{type:u,iconSize:m,className:f}=e,p=void 0===m?18:m;d[0]!==u?(t=i.SA.find(e=>e.type===u),d[0]=u,d[1]=t):t=d[1];let x=t;if(!x)return null;let y=o[u];return d[2]!==f||d[3]!==y?(s=(0,a.cn)("flex items-center justify-center rounded-full",y,f),d[2]=f,d[3]=y,d[4]=s):s=d[4],d[5]!==p||d[6]!==x.icon?(c=(0,n.jsx)(l.I,{name:x.icon,size:p}),d[5]=p,d[6]=x.icon,d[7]=c):c=d[7],d[8]!==s||d[9]!==c?(h=(0,n.jsx)("span",{className:s,children:c}),d[8]=s,d[9]=c,d[10]=h):h=d[10],h}},45512:(e,t,s)=>{s.d(t,{s:()=>h});var n=s(27964),r=s(98269),a=s(78498),i=s(91183),l=s(29529),o=s(32516),c=s(26360);function h(e){let t,s,h,u,m=(0,n.c)(15),f=(0,o.GV)(l.l4),p=(0,o.GV)(c.zW),x=(0,o.GV)(c.tB),y=(0,o.GV)(c.OB);m[0]===Symbol.for("react.memo_cache_sentinel")?(t={selectFromResult:d},m[0]=t):t=m[0];let{flagsSettled:g,homeEnabled:j}=(0,i.Rd)(void 0,t);m[1]===Symbol.for("react.memo_cache_sentinel")?(s={source:"home",createNewChat:!0},m[1]=s):s=m[1];let{start:v,disabled:b}=(0,r.q)(s),_=e?.initialProvider,w="loading"!==f,N=!!_&&"anonymous"!==_,S=!!x.has_set_up_travel_assistant,$=!!x.has_shallow_memory;m[2]!==g||m[3]!==j||m[4]!==p||m[5]!==w||m[6]!==N||m[7]!==S||m[8]!==$||m[9]!==y?(h=function(e){let{sessionReady:t,initialIsRegistered:s,isAnonymous:n,userProfileLoaded:r,hasSetUpTravelAssistant:i,hasShallowMemory:l,flagsSettled:o,homeEnabled:c}=e;return t||s?t&&(n||r)?n||!i&&l?{state:"setup"}:o?{state:"get-started",href:(0,a.OT)(c)}:{state:"loading",reserve:"get-started"}:{state:"loading",reserve:"setup"}:{state:"setup"}}({sessionReady:w,initialIsRegistered:N,isAnonymous:p,userProfileLoaded:y,hasSetUpTravelAssistant:S,hasShallowMemory:$,flagsSettled:g,homeEnabled:j}),m[2]=g,m[3]=j,m[4]=p,m[5]=w,m[6]=N,m[7]=S,m[8]=$,m[9]=y,m[10]=h):h=m[10];let k=h;return m[11]!==k||m[12]!==b||m[13]!==v?(u={...k,onSetup:v,setupDisabled:b},m[11]=k,m[12]=b,m[13]=v,m[14]=u):u=m[14],u}function d(e){let{data:t,isError:s}=e;return{flagsSettled:!!t||s,homeEnabled:t?.includes("assistant_home")??!1}}},47003:(e,t,s)=>{s.d(t,{v:()=>o});var n=s(37876),r=s(27964),a=s(45512),i=s(74302),l=s(20658);function o(e){let t,s,o,c,h,d,u,m,f,p,x=(0,r.c)(30);x[0]!==e?({initialProvider:s,setupLabel:o,...t}=e,x[0]=e,x[1]=t,x[2]=s,x[3]=o):(t=x[1],s=x[2],o=x[3]);let y=void 0===o?"Set up your travel assistant":o;x[4]!==s?(c={initialProvider:s},x[4]=s,x[5]=c):c=x[5];let g=(0,a.s)(c),j="setup"!==g.state&&"invisible";x[6]!==j?(h=(0,i.cn)("col-start-1 row-start-1",j),x[6]=j,x[7]=h):h=x[7],x[8]!==y||x[9]!==h?(d=(0,n.jsx)("span",{className:h,children:y}),x[8]=y,x[9]=h,x[10]=d):d=x[10];let v="get-started"!==g.state&&"invisible";x[11]!==v?(u=(0,i.cn)("col-start-1 row-start-1",v),x[11]=v,x[12]=u):u=x[12],x[13]!==u?(m=(0,n.jsx)("span",{className:u,children:"Get started"}),x[13]=u,x[14]=m):m=x[14],x[15]!==d||x[16]!==m?(f=(0,n.jsxs)("span",{className:"inline-grid",children:[d,m]}),x[15]=d,x[16]=m,x[17]=f):f=x[17];let b=f;if("loading"===g.state){let e;return x[18]!==t||x[19]!==b?(e=(0,n.jsx)(l.$,{...t,loading:!0,"aria-busy":"true","aria-label":"Loading",children:b}),x[18]=t,x[19]=b,x[20]=e):e=x[20],e}if("setup"===g.state){let e;return x[21]!==t||x[22]!==g.onSetup||x[23]!==g.setupDisabled||x[24]!==b?(e=(0,n.jsx)(l.$,{...t,loading:g.setupDisabled,onClick:g.onSetup,children:b}),x[21]=t,x[22]=g.onSetup,x[23]=g.setupDisabled,x[24]=b,x[25]=e):e=x[25],e}return x[26]!==t||x[27]!==g.href||x[28]!==b?(p=(0,n.jsx)(l.$,{...t,href:g.href,children:b}),x[26]=t,x[27]=g.href,x[28]=b,x[29]=p):p=x[29],p}},80017:(e,t,s)=>{s.d(t,{$:()=>u});var n=s(37876),r=s(27964),a=s(21802),i=s(42512),l=s(32516),o=s(20658),c=s(73273),h=s(28104),d=s(94516);function u(e){let t,s,a,u,f,p,x,y,g,j=(0,r.c)(16),{user:v,permissions:b}=e,_=(0,l.GV)(i.YN);j[0]!==b?(t=b?.includes("can_access_dashboard"),j[0]=b,j[1]=t):t=j[1];let w=!!t;
1return j[2]!==_||j[3]!==v?(s=(0,n.jsx)(c.ty,{render:_?(0,n.jsx)(o.$,{variant:"ghost",size:"xs",circle:!0,children:(0,n.jsx)(d.H,{user:v,size:"2xs"})}):(0,n.jsxs)(o.$,{variant:"ghost",size:"xs",className:"min-w-0 pr-2 pl-1.5",children:[(0,n.jsx)(d.H,{user:v,size:"2xs"}),(0,n.jsx)("span",{className:"truncate",children:v.handle})]})}),j[2]=_,j[3]=v,j[4]=s):s=j[4],j[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(c._2,{render:(0,n.jsx)(h.N,{href:"/chat",children:"Chat"})}),j[5]=a):a=j[5],j[6]!==w?(u=w&&(0,n.jsx)(c._2,{render:(0,n.jsx)(h.N,{href:"/dashboard",children:"Dashboard"})}),j[6]=w,j[7]=u):u=j[7],j[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)(c._2,{render:(0,n.jsx)(h.N,{href:"/settings",children:"Settings"})}),p=(0,n.jsx)(c.mB,{}),x=(0,n.jsx)(c._2,{onClick:m,children:"Log out"}),j[8]=f,j[9]=p,j[10]=x):(f=j[8],p=j[9],x=j[10]),j[11]!==u?(y=(0,n.jsxs)(c.SQ,{children:[a,u,f,p,x]}),j[11]=u,j[12]=y):y=j[12],j[13]!==s||j[14]!==y?(g=(0,n.jsxs)(c.rI,{children:[s,y]}),j[13]=s,j[14]=y,j[15]=g):g=j[15],g}async function m(){(0,a.userInitiatedSignOut)()}},91830:(e,t,s)=>{s.d(t,{$K:()=>F,Bv:()=>v,FN:()=>h,Jk:()=>j,MI:()=>g,RJ:()=>w,SA:()=>f,bJ:()=>b,f9:()=>y,il:()=>z,kC:()=>T,kc:()=>C,r9:()=>A,ro:()=>d,s_:()=>N,u5:()=>p,v1:()=>u,zb:()=>I});var n=s(59727),r=s.n(n),a=s(78498),i=s(84525),l=s(2429),o=s(52143),c=s(32845);let h=500,d=1800,u=2e3,m=["where","when","who"],f=[{type:"stays",label:"Stays",icon:"stays",headline:"What kind of stay can I help you find?",placeholders:["A quiet boutique hotel near the beach","A cabin with a hot tub","A hip hotel walkable to restaurants"],cta:"Find stays",fields:m,dateMode:"range"},{type:"flights",label:"Flights",icon:"plane",headline:"Tell me what matters most to you for this flight.",placeholders:["Nonstop, Friday afternoon if possible","Somewhere warm under $300","Overnight so we land in the morning"],cta:"Find flights",fields:["from","to","when","who"],dateMode:"range"},{type:"restaurants",label:"Eats",icon:"food",headline:"Tell me what you’re in the mood for.",placeholders:["Birthday dinner for 10, not too expensive","Street tacos we can walk to","Somewhere with a great patio for a long lunch"],cta:"Find restaurants",fields:m,dateMode:"single"},{type:"activity",label:"Experiences",icon:"festival",headline:"What kind of experiences should I look for?",placeholders:["A pasta-making class in the afternoon","An easy hike with a view","Something locals love that isn’t touristy"],cta:"Find things to do",fields:m,dateMode:"single"},{type:"events",label:"Events",icon:"tickets",headline:"What type of events can I help you find?",placeholders:["Live music somewhere small and intimate","A food festival or night market this weekend","Something fun to take the kids to that I’ll actually like"],cta:"Find events",fields:m,dateMode:"single"},{type:"trip",label:"Trips",icon:"addTrip"}],p="search",x=["stays","flights","restaurants","activity","events"];function y(e){return e&&"trip"!==e?x.find(t=>t===e)??null:null}function g(e,t){return`${(0,a.OT)(t)}?${p}=${e}`}function j(){return{freeText:"",timeFrame:{},travelers:c.vl,travelersTouched:!1}}function v(e){let t=f.find(t=>"trip"!==t.type&&t.type===e);if(!t)throw Error(`Unknown app home search type: ${e}`);return t}function b(e){return"airport"===e.type?`${e.name} (${e.code})`:e.name}function _(e){let t=[];return e.adult_count>0&&t.push(`${e.adult_count} ${r()("adult",e.adult_count)}`),e.child_count>0&&t.push(`${e.child_count} ${r()("child",e.child_count)}`),e.infant_count>0&&t.push(`${e.infant_count} ${r()("infant",e.infant_count)}`),e.pet_count>0&&t.push(`${e.pet_count} ${r()("pet",e.pet_count)}`),t.join(", ")}function w(e){return e.stops.map(e=>e.location.entity_ref)}function N(e){return[e.freeText.trim(),function(e){let t=['Submitted via the "Trip" form; the trip has already been created with these details.'],s=function(e){if(0===e.length)return;let t=e.map(e=>{let t=S(e.location);return null!=e.days?`${t} (${e.days} ${r()("day",e.days)})`:t});return`Destination(s): ${t.join(", ")}.`}(e.stops);s&&t.push(s),e.roadtrip&&t.push("Road trip.");let n=k(e.timeFrame);if(n&&t.push(n),e.travelersTouched){let s=_(e.travelers);
1s&&t.push(`Travelers: ${s}.`)}return t.push("The customer is at the very start of planning. Give brief orientation and ask one or two clarifying questions before proposing an itinerary, unless they explicitly ask for one."),t.join(" ")}(e)].filter(Boolean).join("\n\n")}function S(e){return(0,l.im)(e,!0,!0)}function $(e){return S({...e,name:b(e)})}function k(e){if((0,o.MJ)(e))return;let{from:t,to:s}=(0,o.Z2)(e);if(t&&s&&e.duration&&e.duration>1)return`Dates: ${(0,i.j_)(t)} to ${(0,i.j_)(s)} (${e.duration} days).`;if(t)return`Date: ${(0,i.j_)(t)}.`;let n=[];if(e.duration&&n.push(`Trip length: ${e.duration} ${r()("day",e.duration)}.`),e.months&&e.months.length>0){let t=e.months.map(e=>(0,i.UN)("en-US",{year:2e3,month:e,day:1}));n.push(`Months: ${t.join(", ")}.`)}return n.length>0?n.join(" "):void 0}function T(e,t){return"flights"===e.type?[t.from,t.to].filter(e=>e?.type==="geo").map(e=>e.id):t.where?[t.where.entity_ref]:[]}function F(e,t){return[t.freeText.trim(),function(e,t){let s=[`Submitted via the "${e.label}" search form.`];"flights"===e.type?(t.from&&s.push(`Origin: ${$(t.from)}.`),t.to&&s.push(`Destination: ${$(t.to)}.`)):t.where&&s.push(`Destination: ${S(t.where)}.`);let n=k(t.timeFrame);if(n&&s.push(n),t.travelersTouched&&e.fields.includes("who")){let e=_(t.travelers);e&&s.push(`Travelers: ${e}.`)}return s.join(" ")}(e,t)].filter(Boolean).join("\n\n")}function A(e){switch(e){case"where":return"Where";case"from":return"Leaving from";case"to":return"Going to";case"when":return"When";case"who":return"Who"}}function C(e){switch(e){case"where":case"to":return"Select destination";case"from":return"Select origin";case"when":return"Select dates";case"who":return"Add people"}}function z(e){switch(e){case"where":return"Search destinations";case"from":case"to":return"City or airport"}}function I(e){return 0===(0,c.WB)(e)?C("who"):_(e)}}}]);
2//# sourceMappingURL=5825-1290780025e8233b.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.