1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8606],{58606:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(57437),i=n(2265),o=n(18735),a=n(96264),l=n(53668),d=n(71969),s=n(84454);let c={bg:"#F7F3ED",bgCard:"#FFFFFF",cream:"#F4ECD7",creamLight:"#FAF4E2",brand:"#1B3A26",brandLight:"#D6E4D0",brandBg:"#EAF0E6",brandDark:"#244832",text:"#1A1A18",textMid:"#4A4A45",textMuted:"#8A8A82",border:"#E2DDD4",borderLight:"#EFEBE2",gold:"#C6993A",goldSoft:"rgba(198,153,58,0.45)",goldFaint:"rgba(198,153,58,0.10)",errBg:"#FDE8E8",errBorder:"#F5C6C6",errText:"#9B2C2C"},p="var(--font-lora, 'Lora', Georgia, serif)",g="var(--font-dm-sans, 'DM Sans', sans-serif)";function u(e){let{onSuccess:t,onClose:n}=e,[l,d]=(0,i.useState)(""),[s]=(0,i.useState)(()=>crypto.randomUUID()),[u,m]=(0,i.useState)("main"),[h,y]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),[k,S]=(0,i.useState)(null),j=(0,o.Nq)({onSuccess:async e=>{v(!0),S(null);try{let n=document.cookie.match(/YAATHRA_UID=([^;]+)/),r=(null==n?void 0:n[1])||null;await (0,a.nSM)({accessToken:e.access_token}),r&&await (0,a.FWB)(r).catch(()=>{});let i=await (0,a.kav)();i?t(i):S("Sign-in failed. Please try again.")}catch(e){S("Google sign-in failed. Please try again.")}finally{v(!1)}},onError:()=>S("Google sign-in was cancelled.")});async function C(e){e.preventDefault(),S(null),v(!0);try{await (0,a.Qb7)(l.trim(),s),m("code")}catch(e){S("Failed to send code. Please try again.")}finally{v(!1)}}async function w(e){e.preventDefault(),S(null),v(!0);try{let e=document.cookie.match(/YAATHRA_UID=([^;]+)/),n=(null==e?void 0:e[1])||null;await (0,a.VPY)(s,h.trim()),n&&await (0,a.FWB)(n).catch(()=>{});let r=await (0,a.kav)();r?t(r):S("Sign-in failed. Please try again.")}catch(e){S("Invalid or expired code. Please try again.")}finally{v(!1)}}return(0,r.jsx)(x,{onClose:n,children:(0,r.jsxs)("div",{style:{background:c.bgCard,borderRadius:24,width:"100%",maxWidth:460,boxShadow:"0 1px 4px rgba(31,30,26,0.08), 0 32px 80px -20px rgba(31,30,26,0.30)",padding:"40px 40px 32px",textAlign:"center",position:"relative",animation:"lockPanelIn .35s ease"},onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(f,{onClose:n}),(0,r.jsx)("div",{style:{width:56,height:56,borderRadius:"50%",background:c.brandBg,color:c.brand,display:"grid",placeItems:"center",margin:"0 auto 18px",fontSize:24},children:"\uD83D\uDD12"}),(0,r.jsxs)("h2",{style:{fontFamily:p,fontWeight:500,fontSize:32,lineHeight:1.05,color:c.brand,letterSpacing:"-0.01em",marginBottom:12},children:["Sign in to ",(0,r.jsx)("em",{style:{color:c.gold,fontStyle:"italic",fontWeight:500},children:"save your trip"})]}),(0,r.jsx)("p",{style:{fontFamily:p,fontStyle:"italic",fontSize:15,color:c.textMid,marginBottom:24,lineHeight:1.5},children:"Your route is ready â sign in to lock it in and pick up the planning anywhere. Takes ten seconds."}),"main"===u&&(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:[(0,r.jsxs)("button",{onClick:()=>j(),disabled:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:10,padding:"13px 24px",border:"1px solid ".concat(c.border),borderRadius:999,background:c.bgCard,color:c.text,fontFamily:g,fontWeight:600,fontSize:14,cursor:"pointer",transition:"border-color .15s",opacity:b?.6:1},onMouseEnter:e=>{b||(e.currentTarget.style.borderColor=c.brand)},onMouseLeave:e=>{e.currentTarget.style.borderColor=c.border},children:[(0,r.jsx)("span",{style:{display:"inline-grid",placeItems:"center",width:18,height:18,background:"linear-gradient(45deg, #4285F4, #34A853)",color:"#fff",fontWeight:700,borderRadius:4,fontSize:11},children:"G"}),"Continue with Google"]}),(0,r.jsx)("button",{onClick:()=>m("email"),disabled:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:10,padding:"13px 24px",border:"1px solid ".concat(c.brand),borderRadius:999,background:c.brand,color:"#fff",fontFamily:g,fontWeight:600,fontSize:14,cursor:"pointer",transition:"background .15s"},onMouseEnter:e=>{e.currentTarget.style.background=c.brandDark},onMouseLeave:e=>{e.currentTarget.style.background=c.brand},children:"Continue with email"})]}),"email"===u&&(0,r.jsxs)("form",{onSubmit:C,style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:[(0,r.jsx)("input",{type:"email",autoFocus:!0,required:!0,value:l,onCh
1ange:e=>d(e.target.value),placeholder:"[email protected]",style:{padding:"13px 18px",border:"1px solid ".concat(c.border),borderRadius:999,fontSize:14,color:c.text,fontFamily:g,outline:"none"}}),(0,r.jsx)("button",{type:"submit",disabled:b||!l.trim(),style:{padding:"13px 24px",border:"1px solid ".concat(c.brand),borderRadius:999,background:c.brand,color:"#fff",fontFamily:g,fontWeight:600,fontSize:14,cursor:b||!l.trim()?"not-allowed":"pointer",opacity:b||!l.trim()?.6:1},children:b?"Sendingâ¦":"Send code"}),(0,r.jsx)("button",{type:"button",onClick:()=>m("main"),style:{background:"transparent",border:"none",color:c.textMuted,fontSize:13,cursor:"pointer",fontFamily:g},children:"â Back"})]}),"code"===u&&(0,r.jsxs)("form",{onSubmit:w,style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:[(0,r.jsxs)("p",{style:{fontSize:13,color:c.textMid,marginBottom:4},children:["Code sent to ",(0,r.jsx)("strong",{style:{color:c.text},children:l})]}),(0,r.jsx)("input",{type:"text",autoFocus:!0,required:!0,value:h,onChange:e=>y(e.target.value),placeholder:"6-digit code",maxLength:6,style:{padding:"13px 18px",border:"1px solid ".concat(c.border),borderRadius:999,fontSize:16,fontWeight:600,color:c.text,fontFamily:g,outline:"none",textAlign:"center",letterSpacing:"0.3em"}}),(0,r.jsx)("button",{type:"submit",disabled:b||h.trim().length<4,style:{padding:"13px 24px",border:"1px solid ".concat(c.brand),borderRadius:999,background:c.brand,color:"#fff",fontFamily:g,fontWeight:600,fontSize:14,cursor:b||h.trim().length<4?"not-allowed":"pointer",opacity:b||h.trim().length<4?.6:1},children:b?"Verifyingâ¦":"Sign in"}),(0,r.jsx)("button",{type:"button",onClick:()=>m("email"),style:{background:"transparent",border:"none",color:c.textMuted,fontSize:13,cursor:"pointer",fontFamily:g},children:"â Resend / change email"})]}),k&&(0,r.jsx)("div",{style:{background:c.errBg,border:"1px solid ".concat(c.errBorder),borderRadius:10,padding:"8px 12px",fontSize:12,color:c.errText,marginBottom:12},children:k}),(0,r.jsx)("p",{style:{fontSize:12,color:c.textMuted,fontFamily:g},children:"By continuing you agree to Yaathra's terms."})]})})}function m(e){var t,n,o,m,S,j,C,w,F;let{tripId:z,trip:T,onClose:I,onLocked:B,editMode:M=!1}=e,[R,W]=(0,i.useState)(null),[D,A]=(0,i.useState)(!0),[E,L]=(0,i.useState)(!1),[P,U]=(0,i.useState)([]),[N,_]=(0,i.useState)({id:crypto.randomUUID(),name:"",email:"",under18:!1}),[Y,H]=(0,i.useState)(!1),[G,O]=(0,i.useState)(null),[V,Z]=(0,i.useState)("idle"),q=(0,i.useRef)(!1),K=!!T.roomSetup,J=!K&&(0,l.Zn)(T.travelers),[Q,X]=(0,i.useState)({rooms:[],isComplete:!J}),$=(0,i.useCallback)(e=>X(e),[]),ee=(0,i.useMemo)(()=>{let e=T.travelers,t=null==e?void 0:e.children;if(Array.isArray(t))return t.map(e=>{var t;return Number(null!==(t=null==e?void 0:e.age)&&void 0!==t?t:0)});let n=null==e?void 0:e.children_ages;return Array.isArray(n)?n.map(e=>Number(e)||0):[]},[T.travelers]),et=(0,a.V_B)(T.travelers),en=1+P.length,er=et>0&&en>=et,ei=(null===(S=T.arc)||void 0===S?void 0:null===(m=S.segments)||void 0===m?void 0:m.length)?T.arc.segments.map(e=>e.destination_id):(null===(C=T.preview)||void 0===C?void 0:null===(j=C.segments)||void 0===j?void 0:j.length)?T.preview.segments.map(e=>e.destination_id):null!==(F=null===(w=T.where)||void 0===w?void 0:w.destinations)&&void 0!==F?F:[],eo=null!==(o=null===(t=T.when)||void 0===t?void 0:t.duration_days)&&void 0!==o?o:null,ea=eo?eo-1:null,el=ei.length;(0,i.useEffect)(()=>{(0,a.kav)().then(e=>{W(e),A(!1)})},[]),(0,i.useEffect)(()=>{M||!R||q.current||(q.current=!0,Z("locking"),(0,a.Ael)(z).then(()=>Z("locked")).catch(()=>Z("failed")))},[R,z,M]);let ed=(0,i.useRef)(!1);function es(){er||(U(e=>[...e,N]),_({id:crypto.randomUUID(),name:"",email:"",under18:!1}))}async function ec(){O(null),H(!0);try{let e=""!==N.name.trim()||""!==N.email.trim()?[...P,N]:P;if(e.length>0){let t=e.map(e=>({displayName:e.name.trim(),ageBucket:e.under18?"CHILD":"ADULT",age:void 0,email:!e.under18&&e.email.trim()?e.email.trim():void 0}));await (0,a.RL4)(z,t);let n=e.filter(e=>!e.under18&&""!==e.email.trim());n.length>0&&!M&&await Promise.allSettled(n.map(e=>
1(0,a.VBf)(z,{inviteeEmail:e.email.trim(),displayName:e.name.trim()||void 0})))}if(!K){let e=J?{rooms:Q.rooms,source:"user_set"}:{rooms:(0,l.dZ)(T.travelers).rooms,source:"default"};try{await (0,a.XGv)(z,e)}catch(e){if(e instanceof Error&&"ROOM_SETUP_LOCKED"===e.message);else{O("Couldn't save your room setup. Please try again."),H(!1);return}}}B()}catch(e){e instanceof a.NUe?O("Seat limit reached (".concat(e.currentCap," max). Email ").concat(e.supportEmail," to increase the cap.")):O("Something went wrong saving travelers. Please try again."),H(!1)}}if((0,i.useEffect)(()=>{M&&!ed.current&&(ed.current=!0,(0,a.hBG)(z).then(e=>{let t=null==R?void 0:R.userId;U((t?e.filter(e=>e.linkedUserId!==t):e).map(e=>{var t,n;return{id:e.id,name:null!==(t=e.displayName)&&void 0!==t?t:"",email:null!==(n=e.email)&&void 0!==n?n:"",under18:"CHILD"===e.ageBucket||"INFANT"===e.ageBucket}}))}).catch(()=>{}))},[M,z,null==R?void 0:R.userId]),D)return(0,r.jsx)(x,{onClose:I,children:(0,r.jsx)(h,{children:(0,r.jsx)("div",{style:{padding:"60px 40px",textAlign:"center",color:c.textMuted,fontSize:13},children:"Loadingâ¦"})})});if(!R)return(0,r.jsx)(u,{onSuccess:e=>W(e),onClose:I});let ep=(R.name||R.email||"?")[0].toUpperCase(),eg=R.name||(null===(n=R.email)||void 0===n?void 0:n.split("@")[0])||"You";return(0,r.jsx)(x,{onClose:I,children:(0,r.jsxs)(h,{children:[(0,r.jsx)(f,{onClose:I}),(0,r.jsxs)("div",{style:{textAlign:"center",padding:"40px 40px 28px",background:"linear-gradient(180deg, ".concat(c.creamLight," 0%, ").concat(c.bgCard," 100%)"),borderBottom:"1px solid ".concat(c.borderLight)},children:[(0,r.jsx)("div",{style:{width:56,height:56,borderRadius:"50%",background:c.brand,color:"#fff",display:"grid",placeItems:"center",margin:"0 auto 18px",fontSize:28,fontWeight:600,boxShadow:"0 8px 24px -8px rgba(27,58,38,0.45)",animation:"lockCheckPop .5s cubic-bezier(.34,1.56,.64,1)"},children:"failed"===V?"!":"â"}),(0,r.jsxs)("h2",{style:{fontFamily:p,fontWeight:500,fontSize:38,lineHeight:1.05,color:c.brand,letterSpacing:"-0.01em",marginBottom:14},children:["Route ",(0,r.jsx)("em",{style:{color:c.gold,fontStyle:"italic",fontWeight:500},children:M?"ready to update":"locked in"})]}),ei.length>0&&(0,r.jsx)("div",{style:{display:"inline-flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",background:c.brandBg,borderRadius:999,padding:"10px 22px",gap:6,marginBottom:12,maxWidth:"100%"},children:ei.map((e,t)=>(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,r.jsx)("span",{style:{fontFamily:p,fontSize:17,fontWeight:600,color:c.brand,textTransform:"capitalize"},children:e.replace(/-/g," ")}),t<ei.length-1&&(0,r.jsx)("span",{style:{color:c.gold,fontSize:14},children:"â"})]},"".concat(e,"-").concat(t)))}),(0,r.jsxs)("div",{style:{fontFamily:p,fontStyle:"italic",fontSize:15,color:c.textMid},children:[null!==ea&&(0,r.jsxs)("span",{children:[ea," nights"]}),null!==ea&&el>0&&(0,r.jsx)("span",{style:{color:c.goldSoft,margin:"0 6px"},children:"\xb7"}),el>0&&(0,r.jsxs)("span",{children:[el," stops"]})]}),"failed"===V&&(0,r.jsx)("div",{style:{marginTop:14,fontSize:12.5,color:c.errText,background:c.errBg,border:"1px solid ".concat(c.errBorder),borderRadius:10,padding:"8px 14px",display:"inline-block"},children:"We couldn't finalize the lock â try the button below or refresh."})]}),(0,r.jsx)("style",{children:"\n @media (max-width: 540px) {\n [data-lid-travelers] { padding: 18px 18px 16px !important; }\n [data-lid-travelers-btn] { padding: 12px 14px !important; gap: 10px !important; }\n [data-lid-travelers-helper] { display: none !important; }\n [data-lid-travelers-title] { font-size: 13.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n [data-lid-travelers-add-text] { display: none !important; }\n }\n "}),(0,r.jsxs)("div",{"data-lid-travelers":!0,style:{padding:"24px 40px 20px"},children:[E?(0,r.jsxs)("div",{style:{background:c.creamLight,border:"1px solid ".concat(c.borderLight),borderRadius:14,padding:20},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:16},children:[(0,r.jsx)("h3",{style:{fontFamily:p,fontSize:20,fontWeight:600,color:c.brand,letterSpacing:"-0.01em"},children:"Who's coming with you?"}),(0,r.jsx)("button",{type:"button",onClick:()=>L(!1),style:{background:"transparent",border:"none",color:c.textMuted,fontSize:12,cursor:"pointer",fontFamily:g,padding:"4px 8px"},children:"Hide â"})]}),(0,r.jsx)("p",{style:{fontFamily:p,fontStyle:"italic",fontSize:14,color:c.textMid,marginTop:-8,marginBottom:16},children:"They'll see the trip and can forward booking emails here. Skip and add them later if you'd rather."}),(0,r.jsx)(k,{isOwner:!0,initial:ep,name:"".concat(eg),email:R.email||void 0}),P.map(e=>(0,r.jsx)(k,{initial:(0,d.on)(P,e),name:(0,d.AO)(P,e),email:e.email||(e.under18?"Under 18 \xb7
1no email needed":void 0),onRemove:()=>{var t;return t=e.id,void U(e=>e.filter(e=>e.id!==t))}},e.id)),!er&&(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr 1fr auto auto",gap:8,alignItems:"center",padding:8,background:c.bgCard,border:"1px solid ".concat(c.border),borderRadius:12,marginBottom:12},children:[(0,r.jsx)(y,{placeholder:!0,small:!0}),(0,r.jsx)("input",{value:N.name,onChange:e=>_(t=>({...t,name:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&es()},placeholder:"Name",style:v}),(0,r.jsx)("input",{type:"email",value:N.under18?"":N.email,onChange:e=>_(t=>({...t,email:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&es()},disabled:N.under18,placeholder:N.under18?"No email needed":"Email (optional)",style:{...v,opacity:N.under18?.5:1}}),(0,r.jsxs)("label",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:12.5,color:c.textMid,whiteSpace:"nowrap",padding:"0 6px",cursor:"pointer",userSelect:"none",fontFamily:g},children:[(0,r.jsx)("input",{type:"checkbox",checked:N.under18,onChange:e=>_(t=>({...t,under18:e.target.checked})),style:{accentColor:c.gold}}),"Under 18"]}),(0,r.jsx)("button",{type:"button",onClick:es,disabled:er,style:{width:32,height:32,borderRadius:"50%",border:"none",background:er?c.cream:c.brand,color:er?c.textMuted:"#fff",fontSize:16,fontWeight:500,cursor:er?"not-allowed":"pointer",display:"grid",placeItems:"center",fontFamily:g},children:"+"})]}),(0,r.jsx)("p",{style:{fontFamily:p,fontStyle:"italic",fontSize:13,color:c.textMid,paddingLeft:8,marginBottom:4,lineHeight:1.5},children:"Names and emails are optional â guests show as âAdult 1â, âChild 1â until you fill them in."}),et>0&&en<et&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:12,padding:"8px 12px",background:c.goldFaint,borderRadius:8,fontSize:12.5,color:c.textMid,fontFamily:g},children:[(0,r.jsx)("span",{style:{display:"grid",placeItems:"center",width:18,height:18,background:c.gold,color:"#fff",borderRadius:"50%",fontSize:10,fontWeight:700,flexShrink:0},children:en}),(0,r.jsxs)("span",{children:[(0,r.jsxs)("strong",{style:{color:c.text,fontWeight:600},children:[en," traveler",1!==en?"s":""," added."]})," ","You said ",et," in Discovery â add the rest if you'd like, or finalize later in Trip Planner."]})]}),G&&(0,r.jsx)("div",{style:{marginTop:12,background:c.errBg,border:"1px solid ".concat(c.errBorder),borderRadius:10,padding:"8px 12px",fontSize:12,color:c.errText},children:G})]}):(0,r.jsxs)("button",{type:"button","data-lid-travelers-btn":!0,onClick:()=>L(!0),style:{width:"100%",textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,padding:"16px 20px",background:c.creamLight,border:"1px solid ".concat(c.borderLight),borderRadius:14,cursor:"pointer",fontFamily:g,transition:"all .15s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=c.goldSoft,e.currentTarget.style.background=c.goldFaint},onMouseLeave:e=>{e.currentTarget.style.borderColor=c.borderLight,e.currentTarget.style.background=c.creamLight},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,minWidth:0,flex:1},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(y,{initial:ep}),0===P.length?(0,r.jsx)(y,{placeholder:!0}):P.slice(0,2).map((e,t)=>(0,r.jsx)(y,{initial:(0,d.on)(P,e),offset:0===t?-6:-12},e.id))]}),(0,r.jsxs)("div",{style:{minWidth:0,flex:1},children:[(0,r.jsx)("div",{"data-lid-travelers-title":!0,style:{color:c.brand,fontWeight:600,fontSize:14,marginBottom:2},children:0===P.length?"Just you for now":"You + ".concat(P.length," other").concat(1===P.length?"":"s")}),(0,r.jsx)("div",{"data-lid-travelers-helper":!0,style:{fontFamily:p,fontStyle:"italic",fontSize:13.5,color:c.textMid},children:0===P.length?"Add travel companions â name & email are both optional":"Tap to edit \xb7 adults with email get booking notifications"})]})]}),(0,r.jsxs)("span",{style:{fontSize:13,color:c.gold,fontWeight:600,whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",gap:6,flexShrink:0},children:[(0,r.jsx)("span",{"data-lid-travelers-add-text":!0,children:0===P.length?"Add":"Edit"}),(0,r.jsx)("span",{style:{display:"inline-grid",placeItems:"center",width:20,height:20,background:c.gold,color:"#fff",borderRadius:"50%",fontSize:14,fontWeight:600},children:0===P.length?"+":"â"})]})]}),K?(0,r.jsx)(b,{trip:T}):J?(0,r.jsx)("div",{style:{padding:"0 40px"},children:(0,r.jsx)(s.Z,{travelers:T.travelers,prefillChildAges:ee,onChange:$})}):null]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,padding:"18px 40px 28px",borderTop:"1px solid ".concat(c.borderLight),background:c.bgCard},children:[(0,r.jsxs)("div",{style:{fontFamily:p,fontStyle:"italic",fontSize:14,color:c.textMid,flex:1},children:[(0,r.jsx)("strong",{style:{fontStyle:"normal",fontFamily:g,fontSize:11,letterSpacing:"0.20em",textTransform:"uppercase",color:c.gold,fontWeight:600,display:"block",marginBottom:2},children:"Next step"}),"Hotels, transport, activities, and dates"]}),(0,r.jsxs)("button",{onClick:ec,disabled:Y||J&&!Q.isComplete,onMouseEnter:e=>{Y||J&&!Q.isComplete||(e.currentTarget.style.background=c.brandDark)},onMouseLeave:e=>{e.currentTarget.style.background=c.brand},style:{background:c.brand,color:"#fff",border:"1px solid ".concat(c.brand),padding:"12px 24px",borderRadius:999,fontFamily:g,fontWeight:600,cursor:Y||J&&!Q.isComplete?"not-allowed":"pointer",opacity:Y||J&&!Q.isComplete?.55:1,display:"inline-flex",flexDirection:"column",alignItems:"center",lineHeight:1.15,transition:"background .15s"},children:[(0,r.jsx)("span",{style:{fontSize:14},children:Y?"Savingâ¦":M?"Save changes":"Open Trip Planner â"}),!M&&(0,r.jsx)("span",{style:{fontSize:10.5,fontWeight:500,opacity:.72,marginTop:2,letterSpacing:"0.06em",textTransform:"uppercase"},children:P.length>0?"".concat(P.length," added \xb7 let's go"):"let's fill in the details"})]})]})]})})}function x(e){let{children:t,onClose:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:"\n @keyframes lockBackdropIn { from { opacity: 0; } to { opacity: 1; } }\n @keyframes lockPanelIn {\n from { opacity: 0; transform: translateY(20px) scale(0.97); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n @keyframes lockCheckPop {\n from { opacity: 0; transform: scale(0.4); }\n to { opacity: 1; transform: scale(1); }\n }
1\n @keyframes lockSheetUp {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n @media (max-width: 600px) {\n .lock-backdrop { padding: 0 !important; align-items: flex-end !important; }\n .lock-panel-shell {\n border-radius: 24px 24px 0 0 !important;\n max-height: 92% !important; max-width: 100% !important;\n animation: lockSheetUp .35s ease !important;\n }\n }\n "}),(0,r.jsx)("div",{className:"lock-backdrop",onClick:n,style:{position:"fixed",inset:0,zIndex:300,background:"rgba(31,30,26,0.45)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",padding:24,animation:"lockBackdropIn .25s ease"},children:t})]})}function h(e){let{children:t}=e;return(0,r.jsx)("div",{className:"lock-panel-shell",onClick:e=>e.stopPropagation(),style:{background:c.bgCard,borderRadius:24,width:"100%",maxWidth:720,boxShadow:"0 1px 4px rgba(31,30,26,0.08), 0 32px 80px -20px rgba(31,30,26,0.30)",overflow:"hidden",position:"relative",maxHeight:"92vh",overflowY:"auto",animation:"lockPanelIn .35s ease"},children:t})}function f(e){let{onClose:t}=e;return(0,r.jsx)("button",{onClick:t,"aria-label":"Close",style:{position:"absolute",top:22,right:22,zIndex:2,width:32,height:32,borderRadius:"50%",background:"transparent",border:"none",color:c.textMuted,fontSize:18,cursor:"pointer",display:"grid",placeItems:"center",transition:"all .15s",fontFamily:g},onMouseEnter:e=>{e.currentTarget.style.background=c.cream,e.currentTarget.style.color=c.text},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.color=c.textMuted},children:"\xd7"})}function y(e){let{initial:t,placeholder:n,small:i,offset:o}=e,a=i?30:32;return(0,r.jsx)("div",{style:{width:a,height:a,borderRadius:"50%",display:"grid",placeItems:"center",flexShrink:0,marginLeft:null!=o?o:0,background:n?c.bgCard:c.brand,color:n?c.textMuted:"#fff",border:n?"1px dashed ".concat(c.textMuted):"2px solid ".concat(c.bgCard),fontSize:n?16:13,fontWeight:n?400:600,fontFamily:g},children:n?"+":t||"?"})}function b(e){let{trip:t}=e,n=(0,l.Uz)(t.roomSetup);return n?(0,r.jsx)("div",{style:{padding:"0 40px"},children:(0,r.jsxs)("div",{style:{marginTop:20,paddingTop:18,borderTop:"1px solid ".concat(c.borderLight)},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8,marginBottom:4},children:[(0,r.jsx)("h3",{style:{fontFamily:p,fontSize:17,fontWeight:700,color:c.brand,margin:0},children:"Room setup"}),(0,r.jsx)("span",{style:{fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",fontWeight:700,color:c.textMuted},children:"\uD83D\uDD12 Locked"})]}),(0,r.jsx)("div",{style:{marginTop:6,padding:"10px 14px",background:c.bg,border:"1px solid ".concat(c.borderLight),borderRadius:10,fontSize:13.5,color:c.text,fontFamily:g},children:n}),(0,r.jsx)("p",{style:{fontSize:11.5,color:c.textMuted,marginTop:6,marginBottom:0},children:"Locked in when the trip moved to planning."})]})}):null}let v={background:"transparent",border:"1px solid transparent",borderRadius:8,padding:"8px 12px",fontFamily:g,fontSize:13.5,color:c.text,outline:"none",transition:"all .15s",width:"100%"};function k(e){let{isOwner:t,initial:n,name:i,email:o,onRemove:a}=e;return(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr auto",gap:12,alignItems:"center",padding:"10px 14px",background:t?c.brandBg:c.bgCard,border:"1px solid ".concat(t?c.brandLight:c.borderLight),borderRadius:12,marginBottom:8},children:[(0,r.jsx)("div",{style:{width:34,height:34,borderRadius:"50%",background:c.brand,color:"#fff",display:"grid",placeItems:"center",fontSize:13,fontWeight:600,fontFamily:g},children:n}),(0,r.jsxs)("div",{style:{minWidth:0,display:"flex",flexDirection:"column",gap:2},children:[(0,r.jsxs)("span",{style:{fontSize:14,color:c.text,fontWeight:600,fontFamily:g,display:"inline-flex",alignItems:"center",gap:6},children:[i,t&&(0,r.jsx)("span",{style:{display:"inline-flex",alignItems:"center",background:c.goldFaint,color:c.gold,fontSize:10,fontWeight:700,padding:"2px 8px",borderRadius:999,letterSpacing:"0.06em",textTransform:"uppercase"},children:"You"})]}),o&&(0,r.jsx)("span",{style:{fontSize:12.5,color:c.textMuted,fontFamily:g},children:o})]}),a&&(0,r.jsx)("button",{onClick:a,"aria-label":"Remove",style:{width:26,height:26,borderRadius:"50%",background:"transparent",border:"1px solid ".concat(c.border),color:c.textMuted,fontSize:13,cursor:"pointer",display:"grid",placeItems:"center",fontFamily:g},onMouseEnter:e=>{e.currentTarget.style.borderColor=c.text,e.currentTarget.style.color=c.text},onMouseLeave:e=>{e.currentTarget.style.borderColor=c.border,e.currentTarget.style.color=c.textMuted},children:"\xd7"})]})}}}]);
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.