PageSourceSearch

https://travwiz.ai/_next/static/chunks/pages/blog/itineraries/[slug]-86a3783e43c86537.js

js travwiz.ai collected 2026-10-05 13:09:05 UTC 14,618 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[262],{622:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>u,default:()=>x});var n=r(7876),i=r(7328),s=r.n(i),a=r(8230),o=r.n(a),l=r(4232),c=r(9099),m=r(4849),d=r(329),g=r(2963);let p={Amsterdam:"/preview/amsterdam/3-day",Bangkok:"/preview/bangkok/3-day",Barcelona:"/preview/barcelona/2-day","Mexico City":"/preview/mexico-city/3-day","New York City":"/preview/new-york/2-day",Paris:"/preview/paris/2-day","St. Julian's":"/preview/trips",Tokyo:"/preview/tokyo/5-day",Venice:"/preview/venice/2-day"};var u=!0;function x(e){let{postData:t,isUserAuthenticated:r,cityGuide:i=null,cityHubUrl:a=null}=e,u=(0,c.useRouter)(),[x,h]=(0,l.useState)(!1),b=(0,l.useRef)(null),[y,f]=(0,l.useState)(!1),j=t?"https://travwiz.ai/blog/itineraries/".concat(t.slug):"";if((0,l.useEffect)(()=>{var e,n;t&&(0,g.r)("page_blog_viewed",{blog_slug:t.slug,blog_title:t.title,destination:t.destination||null,num_days:t.duration?parseInt(t.duration):null,content_type:"trip-guide",view_source:function(){let e=document.referrer.toLowerCase();return e?["chat.openai.com","claude.ai","perplexity.ai","gemini.google.com"].some(t=>e.includes(t))?"ai_referrer":["facebook.com","twitter.com","linkedin.com","instagram.com"].some(t=>e.includes(t))?"social":["google.com","bing.com","yahoo.com","duckduckgo.com"].some(t=>e.includes(t))?"organic":e.includes(window.location.hostname)?"internal":"referral":"direct"}(),has_premium_content:t.hasPremiumContent||!1,is_authenticated:r,continent:null==(e=t.geography)?void 0:e.continent,city:null==(n=t.geography)?void 0:n.city})},[t,r]),(0,l.useEffect)(()=>{if(!b.current||r||y)return;let e=new IntersectionObserver(r=>{r.forEach(r=>{r.isIntersecting&&!y&&((0,g.r)("engagement_premium_cta_viewed",{blog_slug:t.slug,cta_position:"footer"}),f(!0),e.disconnect())})},{threshold:.5});return e.observe(b.current),()=>e.disconnect()},[t,r,y]),(0,l.useEffect)(()=>{window.triggerSignIn=()=>h(!0);let e=e=>{let r=e.target.closest("a");if(!r)return;let n=r.getAttribute("href");if(n&&n.includes("/system/trips/")){let e=n.match(/\/system\/trips\/([a-f0-9-]+)/);(0,g.r)("engagement_blog_to_vacation_plan",{blog_slug:null==t?void 0:t.slug,trip_id:e?e[1]:null})}};return document.addEventListener("click",e),()=>{delete window.triggerSignIn,document.removeEventListener("click",e)}},[t]),!t)return(0,n.jsx)("div",{className:"min-h-screen bg-gray-50 py-12",children:(0,n.jsxs)("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[(0,n.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Itinerary not found"}),(0,n.jsx)(o(),{href:"/blog/itineraries",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Trip Itineraries"})]})});let{title:v,description:_,date:w,author:N,tags:k,category:T,readTime:I,contentHtml:S,slug:P,seo:L={},schema:z={},destination:C,duration:E,related_destinations:F=[],related_trip_guides:A=[],geography:M}=t,B=(null==M?void 0:M.city_label)||(C?C.split(",")[0].trim():null),O=B?p[B]:null,W=new Date(w).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),G={"@context":"https://schema.org","@type":"Article",headline:v,description:_,author:{"@type":"Organization",name:N||"TravWiz"},publisher:{"@type":"Organization",name:"TravWiz",logo:{"@type":"ImageObject",url:"https://travwiz.ai/logo.png"}},datePublished:w,dateModified:w,mainEntityOfPage:{"@type":"WebPage","@id":j}};"TouristTrip"===z.type&&z.attractions&&(G.about={"@type":"TouristTrip",name:C||v,description:_,touristType:"Leisure",itinerary:{"@type":"ItemList",itemListElement:z.attractions.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"TouristAttraction",name:e.name,description:e.description}}))}},E&&(G.about.duration=E));let R=z.faqs&&z.faqs.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:z.faqs.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}:null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:[v," | TravWiz Blog"]}),(0,n.jsx)("meta",{name:"description",content:_}),(0,n.jsx)("meta",{name:"keywords",content:L.keywords||(null==k?void 0:k.join(", "))||""}),(0,n.jsx)("meta",{name:"author",content:N||"TravWiz"}),(0,n.jsx)("meta",{property:"og:type",content:"article"}),(0,n.jsx)("meta",{property:"og:url",content:j}),(0,n.jsx)("meta",{property:"og:title",content:v}),(0,n.jsx)("meta",{property:"og:description",content:_}),(0,n.jsx)("meta",{property:"og:site_name",content:"TravWiz"}),(0,n.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{property:"twitter:url",content:j}),(0,n.jsx)("meta",{property:"twitter:title",content:v}),(0,n.jsx)("meta",{property:"twitter:description",content:_}),(0,n.jsx)("link",{rel:"canonical",href:j}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(G)}}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Blog",item:"https://travwiz.ai/blog"},{"@type":"ListItem",position:2,name:"Trip Itineraries",item:"https://travwiz.ai/blog/itineraries"},{"@type":"ListItem",position:3,name:B||v,item:j}]})}}),R&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(R)}}),(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n  .blog-content h2 { font-size:2rem!important; font-weight:800!important; color:#1f2937!important; margin-top:.5rem!important; margin-bottom:1.25rem!important; line-height:1.25!important; padding-bottom:.5rem!important; border-bottom:2px solid #e5e7eb!important; }\n  .blog-content h3 { font-size:1.375rem!important; font-weight:700!important; color:#1f2937!important; margin-top:1.25rem!important; margin-bottom:.75rem!important; background:#f9fafb!important; padding:.75rem 1rem!important; border-left:4px solid #3b82f6!important; border-radius:.375rem!important; }\n  .blog-content p { color:#374151!important; margin-bottom:.75rem!important; }\n  .blog-content hr { margin-top:.75rem!important; margin-bottom:.75rem!important; border-color:#e5e7eb!important; opacity:.7!important; }\n  .blog-content strong { color:#111827!important; font-weight:600!important; }\n  .blog-content ul { margin-bottom:.75rem!important; }\n  .blog-content li { color:#374151!important; margin-bottom:.25rem!important; }\n"}})]}),(0,n.jsxs)("div",{className:"h-full w-full flex flex-col bg-white text-gray-900",children:[(0,n.jsx)(m.A,{}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,n.jsxs)("article",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12 text-gray-900",children:[(0,n.jsxs)("nav",{className:"text-sm text-gray-500 mb-2 flex flex-wrap items-center gap-1",children:[(0,n.jsx)(o(),{href:"/blog",className:"hover:text-blue-600 transition-colors",children:"Blog"}),(0,n.jsx)("span",{children:"›"}),(0,n.jsx)(o(),{href:"/blog/itineraries",className:"hover:text-blue-600 transition-colors",children:"Trip Itineraries"}),a&&B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"›"}),(0,n.jsx)(o(),{href:a,className:"hover:text-blue-600 transition-colors",children:B})]}),(0,n.jsx)("span",{children:"›"}),(0,n.jsx)("span",{className:"text-gray-900 font-medium",children:"Itinerary"})]}),a&&B&&(0,n.jsxs)("p",{className:"text-xs text-gray-400 mb-8",children:["Part of"," ",(0,n.jsxs)(o(),{href:a,className:"text-blue-500 hover:text-blue-700",children:["all ",B," guides, itineraries & activities →"]})]}),(0,n.jsxs)("header",{className:"mb-12",children:[T&&(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800",children:T})}),(0,n.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-4 leading-tight",children:v}),(0,n.jsx)("p",{className:"text-xl text-gray-600 mb-6 leading-relaxed",children:_}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center text-sm text-gray-500 gap-4",children:[(0,n.jsxs)("span",{children:["By ",N||"TravWiz AI"]}),(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsx)("time",{dateTime:w,children:W}),I&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsx)("span",{children:I})]})]}),k&&k.length>0&&(0,n.jsx)("div",{className:"mt-6 flex flex-wrap gap-2",children:k.map(e=>(0,n.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded text-sm bg-gray-100 text-gray-700",children:["#",e]},e))})]}),!r&&(0,n.jsx)("div",{className:"my-6 p-5 bg-blue-50 border border-blue-200 rounded-lg",children:(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold text-gray-900",children:B?"Planning ".concat(B,"?"):"Planning a trip?"}),(0,n.jsx)("p",{className:"text-sm text-gray-600 mt-1",children:"TravWiz builds your full itinerary — day-by-day timing, booking checklist, and budget tracker. Free to start."})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[O&&(0,n.jsx)(o(),{href:O,className:"text-blue-600 text-sm font-medium hover:text-blue-800 whitespace-nowrap",children:"See sample plan →"}),(0,n.jsx)("button",{onClick:()=>{(0,g.r)("engagement_premium_cta_clicked",{blog_slug:P,cta_position:"inline"}),h(!0)},className:"px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-lg hover:bg-blue-700 transition-colors whitespace-nowrap",children:"Plan free →"})]})]})}),(0,n.jsx)("div",{className:"blog-content space-y-4 text-gray-700",children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:S.replace(/<a href="#"><strong>Sign In to Get Both Story \+ Trip Plan Free →<\/strong><\/a>/g,r?"":'<button class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 transition-colors cursor-pointer" onclick="window.triggerSignIn()"><strong>Sign In to Get Both Story + Trip Plan Free →</strong></button>')}})}),i&&(0,n.jsxs)("section",{className:"mt-12 pt-8 border-t border-gray-200",children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:B?"".concat(B," Destination Guide"):"Destination Guide"}),(0,n.jsxs)(o(),{href:"/blog/guides/".concat(i.slug),className:"flex items-center gap-4 p-4 bg-blue-50 rounded-lg border border-blue-200 hover:bg-blue-100 transition-colors",onClick:()=>(0,g.r)("engagement_related_destination_clicked",{source_slug:P,target_slug:i.slug,source:"itinerary"}),children:[i.coverImage&&(0,n.jsx)("img",{src:i.coverImage,alt:i.title,className:"w-20 h-14 object-cover rounded flex-shrink-0"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-xs font-medium text-blue-600 mb-1",children:"Full City Guide"}),(0,n.jsx)("p",{className:"font-semibold text-gray-900 text-sm leading-snug",children:i.title})]}),(0,n.jsx)("svg",{className:"ml-auto w-4 h-4 text-blue-500 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),F.length>0&&(0,n.jsxs)("section",{className:"mt-6 pt-6 border-t border-gray-200",children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Related Destinations"}),(0,n.jsx)("div",{className:"flex flex-wrap gap-3",children:F.map(e=>{let{slug:t,name:r}=e;return(0,n.jsxs)(o(),{href:"/blog/guides/".concat(t),className:"inline-flex items-center px-4 py-2 rounded-full border border-gray-300 text-sm font-medium text-gray-700 hover:border-blue-500 hover:text-blue-600 transition-colors",onClick:()=>(0,g.r)("engagement_related_destination_clicked",{source_slug:P,target_slug:t}),children:[r," →"]},t)})})]}),A.length>0&&(0,n.jsxs)("section",{className:"mt-6",children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:B?"More ".concat(B," Itineraries"):"More Trip Itineraries"}),(0,n.jsx)("div",{className:"flex flex-wrap gap-3",children:A.map(e=>{let{slug:t,title:r}=e;return(0,n.jsxs)(o(),{href:"/blog/itineraries/".concat(t),className:"inline-flex items-center px-4 py-2 rounded-lg bg-blue-50 border border-blue-200 text-sm font-medium text-blue-700 hover:bg-blue-100 transition-colors",onClick:()=>(0,g.r)("engagement_related_trip_guide_clicked",{source_slug:P,target_slug:t}),children:[r," →"]},t)})})]}),a&&B&&(0,n.jsx)("section",{className:"mt-8",children:(0,n.jsxs)(o(),{href:a,className:"inline-flex items-center gap-1 text-blue-600 text-sm font-medium hover:text-blue-800",onClick:()=>{var e;return(0,g.r)("engagement_city_hub_clicked",{source_slug:P,city:null==(e=t.geography)?void 0:e.city})},children:["← All ",B," guides & itineraries"]})}),!r&&(0,n.jsx)("div",{ref:b,className:"mt-12 p-8 bg-blue-50 rounded-lg border border-blue-200",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:B?"Ready to Plan Your ".concat(B," Trip?"):"Ready to Plan Your Perfect Vacation?"}),(0,n.jsx)("p",{className:"text-gray-600 mb-6",children:B?"TravWiz builds a complete ".concat(B," itinerary — day-by-day timing, routing, booking checklist, and budget tracking. Free to start."):"Get personalized itineraries tailored to your interests, budget, and travel style. Free to start."}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,n.jsx)("button",{onClick:()=>{(0,g.r)("engagement_premium_cta_clicked",{blog_slug:P,cta_position:"footer"}),h(!0)},className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 transition-colors",children:B?"Plan My ".concat(B," Trip Free →"):"Plan My Trip Free →"}),O&&(0,n.jsxs)(o(),{href:O,className:"inline-flex items-center justify-center px-6 py-3 border border-blue-300 text-base font-medium rounded-md text-blue-700 bg-white hover:bg-blue-50 transition-colors",children:["See Sample ",B," Plan"]})]}),(0,n.jsx)("p",{className:"text-sm text-gray-500 mt-4",children:"Free to start \xb7 No credit card required"})]})})]})}),(0,n.jsx)(d.A,{open:x,onClose:()=>h(!1),onSignInSuccess:()=>{h(!1),u.push("/trips")},shouldRedirectAfterSignIn:!1})]})]})}},2588:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/itineraries/[slug]",function(){return r(622)}])},7328:(e,t,r)=>{e.exports=r(9269)}},e=>{e.O(0,[4849,636,6593,8792],()=>e(e.s=2588)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.