PageSourceSearch

https://nxvoytrips.ai/_next/static/chunks/99382-bc70db4ac6810ae1.js

js nxvoytrips.ai collected 2026-10-05 12:22:01 UTC 15,030 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99382],{99382:(e,t,l)=>{l.r(t),l.d(t,{default:()=>_});var r=l(95155),s=l(12115),n=l(15239),a=l(52619),i=l.n(a),o=l(77890),c=l(65102),d=l(90368),x=l(27937),p=l(26497),u=l(46176),h=l(31053),m=l(92558),f=l(20063),g=l(56392);let b="#7C3AED",v=[{id:"feel-alive",label:"Adventure",icon:"⚡",tagline:"Adrenaline, altitude & moments you'll never forget"},{id:"feel-connected",label:"Together",icon:"\uD83E\uDD1D",tagline:"Stories shared, bonds deepened, cultures discovered"},{id:"feel-peace",label:"Peace",icon:"\uD83E\uDDD8",tagline:"Breathe deep, let go, find your calm"},{id:"feel-indulgent",label:"Luxury",icon:"✨",tagline:"Quiet luxury and extraordinary experiences"},{id:"feel-wonder",label:"Wonder",icon:"\uD83C\uDF0C",tagline:"Jaw-dropping, eye-opening, life-changing"},{id:"feel-liberated",label:"Freedom",icon:"\uD83E\uDD85",tagline:"Break free, go wild, discover yourself"}],y={trails:[],hasMore:!0,offset:0,loading:!1,loadingMore:!1,error:null},j={INR:"en-IN",GBP:"en-GB",USD:"en-US",EUR:"de-DE"},w={couple:"2 people",family:"4 people",solo:"1 person"},N={luxury:"Luxury Experience",honeymoon:"Honeymoon Retreat",family:"Family Adventure",adventure:"Adventure Trip",cultural:"Cultural Journey",budget:"Budget-Friendly",solo:"Solo Journey","city-break":"City Break",nature:"Nature Escape",foodie:"Foodie Trail",spiritual:"Spiritual Journey",romantic:"Romantic Escape"};function F(e){var t,l,s,a;let{trail:i,onClick:o}=e,c=Math.max(0,(i.duration_days||1)-1);return(0,r.jsxs)("article",{onClick:o,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},className:"group relative flex-shrink-0 snap-start cursor-pointer overflow-hidden rounded-[22px] border border-[#E2E8F0]/80 bg-white shadow-[0_8px_28px_rgba(15,23,42,0.06)] hover:shadow-[0_18px_44px_rgba(15,23,42,0.12)] transition-[box-shadow] duration-[400ms] ease-[cubic-bezier(0.22,1,0.36,1)] flex flex-col",style:{width:"min(360px, 80vw)"},children:[(0,r.jsxs)("div",{className:"relative aspect-[16/10] bg-[#F1F5F9] overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 z-20 pointer-events-none overflow-hidden",children:(0,r.jsx)("div",{className:"absolute inset-y-0 w-1/3 bg-gradient-to-r from-transparent via-white/[0.18] to-transparent -translate-x-full group-hover:translate-x-[400%] transition-transform duration-[1000ms] ease-in-out"})}),i.hero_image&&(0,r.jsx)(n.default,{src:i.hero_image,alt:i.title,fill:!0,sizes:"(max-width: 768px) 80vw, 360px",loading:"lazy",className:"object-cover transition-transform duration-[700ms] ease-out group-hover:scale-[1.06]"}),(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-[400ms]",style:{background:"linear-gradient(0deg, rgba(0,0,0,0.18) 0%, transparent 60%)"}}),(0,r.jsx)(g.A,{item:i,tone:"overlay",compact:!0,className:"absolute left-3 top-3 z-30 max-w-[58%]"}),i.rating>0&&(0,r.jsxs)("div",{className:"absolute top-3 right-3 z-30 flex items-center gap-1 bg-white/95 backdrop-blur-md px-2.5 py-1 rounded-full shadow-sm",children:[(0,r.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"#F59E0B",children:(0,r.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})}),(0,r.jsx)("span",{className:"text-[12px] font-bold text-[#0F172A]",children:i.rating.toFixed(1)}),i.review_count>0&&(0,r.jsxs)("span",{className:"text-[12px] sm:text-[11px] text-[#64748B]",children:["(",i.review_count,")"]})]})]}),(0,r.jsxs)("div",{className:"p-5 space-y-3",children:[(0,r.jsx)("div",{className:"text-[12px] font-semibold uppercase tracking-[0.06em] text-[#EC0FAC]",children:(s=i.category_tag)?N[s]||s.charAt(0).toUpperCase()+s.slice(1):"Curated Trip"}),(0,r.jsx)("h3",{className:"text-[18px] sm:text-[19px] font-bold text-[#0F172A] leading-tight line-clamp-2",children:i.title}),(null==(t=i.cities)?void 0:t.length)>0&&(0,r.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[i.cities.slice(0,4).map(e=>(0,r.jsx)("span",{className:"text-[12px] font-medium text-[#475569] bg-[#F1F5F9] px-3 py-1 rounded-full",children:e},e)),i.cities.length>4&&(0,r.jsxs)("span",{className:"text-[12px] font-medium text-[#94A3B8] bg-[#F1F5F9] px-3 py-1 rounded-full",children:["+",i.cities.length-4]})]}),(null==(l=i.inclusions)?void 0:l.length)>0&&(0,r.jsx)("ul",{className:"space-y-1 text-[13px] text-[#475569]",children:i.inclusions.slice(0,4).map((e,t)=>(0,r.jsxs)("li",{className:"flex items-center gap-2",children:[(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#10B981",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,r.jsx)("span",{className:"line-clamp-1",children:e})]},"".concat(e,"-").concat(t)))}),(0,r.jsxs)("div",{className:"flex items-center gap-4 pt-2 border-t border-[#F1F5F9] text-[12px] text-[#64748B]",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,r.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),c," nights"]}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,r.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,r.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,r.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),w[a=i.pax_bucket]||a]})]}),(0,r.jsxs)("div",{className:"flex items-end justify-between gap-3 pt-2",children:[(0,r.jsx)("div",{className:"min-w-0",children:i.price_per_person?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-[22px] sm:text-[24px] font-black text-[#0F172A] tabular-nums leading-none",children:function(e,t){if(null==e||!Number.isFinite(e))return"-";let l=(t||"GBP").toUpperCase(),r=j[l]||"en-US";try{return new Intl.NumberFormat(r,{style:"currency",currency:l,maximumFractionDigits:0}).format(Math.round(e))}catch(t){return"".concat(l," ").concat(Math.round(e).toLocaleStr
1ing(r))}}(i.price_per_person,i.currency||"GBP")}),(0,r.jsx)("div",{className:"text-[12px] sm:text-[11px] text-[#94A3B8] mt-1",children:"per person \xb7 from"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-[20px] sm:text-[22px] font-black text-[#0F172A] leading-none",children:"On enquiry"}),(0,r.jsx)("div",{className:"text-[12px] sm:text-[11px] text-[#94A3B8] mt-1",children:"expert tailors & prices"})]})}),(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),o()},"aria-label":"View this trip",className:"shrink-0 w-11 h-11 sm:w-10 sm:h-10 rounded-full bg-[#0F172A] flex items-center justify-center shadow-[0_2px_8px_rgba(15,23,42,0.18)] transition-all duration-300 hover:bg-[#1F2024] hover:scale-105 hover:shadow-[0_6px_18px_rgba(15,23,42,0.28)] active:scale-95",children:(0,r.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",children:(0,r.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]})]})}function k(){return(0,r.jsxs)("div",{className:"flex-shrink-0 rounded-[22px] border border-[#E2E8F0]/60 bg-white overflow-hidden",style:{width:"min(360px, 80vw)"},children:[(0,r.jsx)("div",{className:"aspect-[16/10] bg-[#F1F5F9] animate-pulse"}),(0,r.jsxs)("div",{className:"p-5 space-y-3",children:[(0,r.jsx)("div",{className:"h-3 w-24 bg-[#F1F5F9] rounded animate-pulse"}),(0,r.jsx)("div",{className:"h-5 w-3/4 bg-[#F1F5F9] rounded animate-pulse"}),(0,r.jsx)("div",{className:"h-4 w-1/2 bg-[#F1F5F9] rounded animate-pulse"}),(0,r.jsx)("div",{className:"h-10 w-full bg-[#F1F5F9] rounded animate-pulse mt-3"})]})]})}function _(){var e;let t=(0,f.useRouter)(),{userCurrency:l}=(0,h.useCurrencyStore)(),n="GBP"===l?"GBP":"INR"===l?"INR":"USD",[a,g]=(0,s.useState)("feel-alive"),[j,w]=(0,s.useState)({}),N=(0,s.useRef)(null),_=(0,s.useRef)(null),B=(0,s.useRef)(null),C=v.find(e=>e.id===a),A=null!=(e=j[a])?e:y,E=(0,s.useCallback)(async(e,t)=>{var l,r,s,a,i,o;let c=null!=(r=j[e])?r:y;if(t.append&&(!c.hasMore||c.loadingMore||c.trails.length>=60))return;null==(l=N.current)||l.abort();let d=new AbortController;N.current=d,w(l=>{var r;return{...l,[e]:{...null!=(r=l[e])?r:y,loading:!t.append,loadingMore:t.append,error:null}}});try{let l=await (0,m.getAuthHeaders)(),r=t.append?c.offset:0,x=new URLSearchParams({complete_only:"true",limit:String(12),offset:String(r),currency:n,passport:"IND"}),p="".concat("/api/reco","/collections/").concat(e,"?").concat(x.toString()),u=await fetch(p,{headers:l,signal:d.signal});if(!u.ok)throw Error("HTTP ".concat(u.status));let h=await u.json(),f=null!=(o=null!=(i=null!=(a=null==h||null==(s=h.detail)?void 0:s.data)?a:null==h?void 0:h.data)?i:h)?o:{trails:[]},g=f.trails||[];w(l=>{var s;let n=null!=(s=l[e])?s:y,a=t.append?[...n.trails,...g]:g;return{...l,[e]:{trails:a,hasMore:!!f.has_more&&a.length<60,offset:r+g.length,loading:!1,loadingMore:!1,error:null}}})}catch(t){if((null==t?void 0:t.name)==="AbortError")return;w(l=>{var r;return{...l,[e]:{...null!=(r=l[e])?r:y,loading:!1,loadingMore:!1,error:(null==t?void 0:t.message)||"Failed to load"}}})}},[n,j]);(0,s.useEffect)(()=>{let e=j[a];if(e&&e.trails.length>0){var t;null==(t=_.current)||t.scrollTo({left:0,behavior:"instant"});return}E(a,{append:!1})},[a,n]),(0,s.useEffect)(()=>{let e=B.current,t=_.current;if(!e||!t)return;let l=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&E(a,{append:!0})},{root:t,rootMargin:"0px 400px 0px 0px",threshold:.1});return l.observe(e),()=>l.disconnect()},[a,E]);let M=e=>{var t;null==(t=_.current)||t.scrollBy({left:380*e,behavior:"smooth"})};return(0,r.jsxs)("section",{className:"flex w-full flex-col items-center px-5 sm:px-10 py-12 md:py-[60px] bg-white",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 mb-8 max-w-[700px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center rounded-full px-5 py-2",style:{background:"#FAF5FF",border:"0.91px solid #E9D4FF"},children:(0,r.jsx)("span",{className:"text-[14px] font-semibold",style:{color:b},children:"Feel-First Travel"})}),(0,r.jsxs)("h2",{className:"text-center text-[28px] md:text-[46px] font-black leading-tight",style:{color:"#0F172B"},children:["Most apps ask where."," ",(0,r.jsx)("br",{"aria-hidden":"true"}),"We ask how."]}),(0,r.jsx)("p",{className:"text-center text-[15px] md:text-[17px]",style:{color:"#45556C"},children:"Choose the feeling, and we'll craft the perfect journey"})]}),(0,r.jsx)("div",{className:"w-full mb-6",children:(0,r.jsx)("div",{className:"flex overflow-x-auto items-center md:justify-center gap-3 px-3 py-2",style:{scrollbarWidth:"none"},children:v.map(e=>{let t=a===e.id;return(0,r.jsx)("button",{type:"button",onClick:()=>{g(e.id),(0,o.u)(c.s.Home.SectionViewed,{section_type:"emotion_collections",emotion_id:e.id,emotion_label:e.label})},className:"group/tab relative rounded-full shrink-0 h-[48px] px-5 transition-all duration-500 ease-out ".concat(t?"bg-[#1F2024] shadow-[0_8px_24px_rgba(15,23,42,0.25)] scale-[1.04]":"bg-white border border-[#
1E2E8F0] shadow-none scale-100 hover:border-[#94A3B8] hover:shadow-sm"),children:(0,r.jsxs)("span",{className:"text-[14px] font-semibold whitespace-nowrap flex items-center gap-2 transition-colors duration-500 ".concat(t?"text-white":"text-[#314158]"),children:[e.icon," ",e.label]})},e.id)})})}),(0,r.jsxs)("div",{className:"animate-[fadeUp_0.5s_ease-out] mb-6 flex flex-col items-center gap-2",children:[(0,r.jsx)("p",{className:"text-center text-[18px] md:text-[22px] font-medium",style:{color:"#0F172B"},children:C.tagline}),(0,r.jsxs)(i(),{href:"/explore/collection/".concat(a),className:"inline-flex items-center min-h-[44px] sm:min-h-0 text-[13px] font-semibold transition-colors hover:underline",style:{color:b},children:["View all ",C.label," packages →"]})]},a),(0,r.jsx)("style",{children:"\n        @keyframes fadeUp {\n          from { opacity: 0; transform: translateY(8px); }\n          to { opacity: 1; transform: translateY(0); }\n        }\n      "}),(0,r.jsxs)("div",{className:"w-full max-w-[1400px] mx-auto hidden sm:flex items-center justify-end gap-2 px-2 mb-3",children:[(0,r.jsx)("button",{onClick:()=>M(-1),"aria-label":"Scroll left",className:"w-10 h-10 rounded-full flex items-center justify-center transition-colors border border-[#E2E8F0] text-[#64748B] hover:bg-[#F1F5F9]",children:(0,r.jsx)(d.A,{className:"w-4 h-4",strokeWidth:2.5})}),(0,r.jsx)("button",{onClick:()=>M(1),"aria-label":"Scroll right",className:"w-10 h-10 rounded-full flex items-center justify-center transition-colors border border-[#E2E8F0] text-[#64748B] hover:bg-[#F1F5F9]",children:(0,r.jsx)(x.A,{className:"w-4 h-4",strokeWidth:2.5})})]}),(0,r.jsx)("div",{className:"w-full overflow-hidden",children:(0,r.jsx)(p.N,{mode:"wait",initial:!1,children:(0,r.jsxs)(u.P.div,{ref:_,initial:{opacity:0,y:14},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.35,ease:[.22,1,.36,1]},className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory pl-1 sm:pl-2",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[(0,r.jsx)("style",{children:"section div::-webkit-scrollbar{display:none}"}),A.loading&&0===A.trails.length&&(0,r.jsx)(r.Fragment,{children:[0,1,2,3].map(e=>(0,r.jsx)(k,{},e))}),(function(e){let t=new Map;for(let s of e){var l,r;if(!(null==s?void 0:s.trail_slug))continue;let e=(s.cities||[]).slice().sort().join("|"),n="".concat(e,"__").concat(s.duration_days||0),a=t.get(n);if(!a){t.set(n,s);continue}let i=null!=(l=a.price_per_person)?l:1/0;(null!=(r=s.price_per_person)?r:1/0)<i&&t.set(n,s)}return Array.from(t.values())})(A.trails).map(e=>(0,r.jsx)(F,{trail:e,onClick:()=>{(0,o.u)(c.s.Home.DestinationCardClicked,{trail_slug:e.trail_slug,title:e.title,cities:e.cities,emotion_id:a,position:"emotion_".concat(a)}),t.push("/packages/".concat(e.trail_slug))}},e.trail_slug)),!A.loading&&0===A.trails.length&&(0,r.jsx)("div",{className:"flex-shrink-0 flex flex-col items-center justify-center text-center",style:{width:"min(360px, 80vw)",height:540},children:(0,r.jsx)("p",{className:"text-[15px] text-[#94A3B8] px-6",children:A.error?"Couldn't load packages right now. Try another feeling.":"No packages curated for this feeling yet - coming soon."})}),A.hasMore&&A.trails.length>0&&(0,r.jsx)("div",{ref:B,className:"flex-shrink-0 flex items-center justify-center",style:{width:280},children:A.loadingMore?(0,r.jsx)("div",{className:"rounded-full border-[3px] border-t-transparent animate-spin",style:{width:36,height:36,borderColor:b,borderTopColor:"transparent"}}):(0,r.jsx)("span",{className:"text-[13px] text-[#94A3B8]",children:"Loading more…"})}),(0,r.jsx)("div",{className:"flex-shrink-0 w-2 sm:w-4"})]},a)})})]})}}}]);

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.