PageSourceSearch

https://www.travello.com/_next/static/chunks/9322.8f8f7b1048926e92.js

js travello.com collected 2026-09-24 10:09:52 UTC 7,114 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9322],{52896:(e,t,a)=>{a.d(t,{z:()=>l});let s=new Set(["japan","vietnam","thailand","cambodia","indonesia"]),l=e=>s.has(e.split("/")[1])},59322:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var s=a(37876),l=a(14232),i=a(88992);let o=async(e="",t={},a)=>(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","API-Key":a},body:JSON.stringify(t)})).json();var n=a(38248),r=a(52896),c=a(68638),d=a(59204),m=a(54849),u=a(91777),h=a(63328);let p=({label:e,isShown:t,handleDismiss:a})=>(0,s.jsxs)("div",{className:"w-fit bg-black p-4 text-white",children:[(0,s.jsxs)("span",{className:"text-lg font-black",children:[e," "]}),(0,s.jsx)("button",{className:"cursor-pointer underline",onClick:t,tabIndex:0,children:"VIEW"}),(0,s.jsx)("button",{onClick:a,className:"cursor-pointer pl-6 font-bold",tabIndex:0,children:"X"})]}),x=({isShown:e,handleDismiss:t,children:a})=>(0,s.jsx)(c.e,{appear:!0,show:e,as:l.Fragment,children:(0,s.jsxs)(d.lG,{as:"div",className:"relative z-50",open:e,onClose:t,children:[(0,s.jsx)(c._,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-md"})}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,s.jsx)(c._,{enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsxs)(d.Lj,{className:"w-full max-w-2xl transform overflow-hidden rounded-lg bg-white text-left align-middle shadow-xl transition-all",children:[a,(0,s.jsxs)("div",{className:"absolute top-32 px-16",children:[(0,s.jsx)("h4",{className:"text-shadow mb-4 text-3xl font-bold text-white md:text-4xl",children:"Thank you for joining our mailing list!"}),(0,s.jsx)("p",{className:"text-shadow text-sm text-white md:text-lg",children:"Please check your inbox to verify your email and receive your discount!"})]})]})})})})]})}),b=({iterable_key:e})=>{let[t,a]=(0,l.useState)(Boolean),[b,f]=(0,l.useState)(!1),[j,y]=(0,l.useState)(Boolean),[w,g]=(0,l.useState)(Boolean),[v,N]=(0,l.useState)({title:"Get $15 off your next adventure!",shortDesc:"Subscribe to our mailing list to be the first to know about our hottest travel deals.",buttonLabel:"$15OFF",afterLabel:"",background:`${u.sK}/uploads/content/popup-background.jpg`,classHeader:"header-image",classIcon:"modal-header",classMainButton:"mainButton-capitalize",classSecondButton:"secondary-button",alt:"Sign up now"}),[k,F]=(0,l.useState)(!1);(0,l.useEffect)(()=>{(0,r.z)(window.location.pathname)?F(!0):F(!1)},[]);let S=e=>window.location.pathname.includes(e)?(g(!0),y(!1),N({title:"Get $100 off for your next adventure*",shortDesc:"Experience more, spend less! Add your email below and score $100 to go towards your next tour or activity.",buttonLabel:"$100 OFF",afterLabel:"*Minimum spend of $1000 applies",background:`${u.sK}/uploads/content/popup-background-thailand.jpg`,classHeader:"header-imageThailand",classIcon:"modalHeader-whiteIcon",classMainButton:"mainButton-capitalize",classSecondButton:"secondary-button",alt:"Sign up now - Thailand"}),!0):(y(!0),g(!1),!1);(0,l.useEffect)(()=>{let e=S("thailand");(0,n.getCookie)("signUpForm")?(a(!1),"dismissed"==(0,n.getCookie)("signUpForm")&&(e?y(!0):y(!1))):a(!0)},[]);let C=()=>{a(!1),(0,n.setCookie)("signUpForm","minimized",{maxAge:2592e3})},T=()=>{w?y(!0):y(!1),a(!1),(0,n.setCookie)("signUpForm","dismissed")},{register:L,handleSubmit:z}=(0,i.mN)();return(0,s.jsx)(s.Fragment,{children:!k&&(0,s.jsxs)(s.Fragment,{children:[w?!j&&(0,s.jsx)(p,{isShown:()=>a(!0),handleDismiss:T,label:v.buttonLabel}):j&&(0,s.jsx)(p,{isShown:()=>a(!0),handleDismiss:T,label:v.buttonLabel}),(0,s.jsx)(c.e,{appear:!0,show:t,as:l.Fragment,children:(0,s.jsxs)(d.lG,{as:"div",className:"relative z-49",open:t,onClose:C,children:[(0,s.jsx)(c._,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-md"})}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,s.jsx)(c._,{enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsx)(d.Lj,{className:"w-full max-w-2xl transform overflow-hidden rounded-lg bg-white text-left align-middle shadow-xl transition-all",children:b?(0,s.jsx)(x,{isShown:t,handleDismiss:T,children:(0,s.jsxs)("div",{className:"signUpPopUp relative h-350px",children:[(0,s.jsx)(h.A,{src:v.background,alt:v.alt,className:"h-full w-full"}),(0,s.jsx)("button",{type:"button",onClick:C,className:"absolute right-2 top-2 flex h-10 w-10 items-center justify-center rounded-md outline-none",children:(0,s.jsx)(m.yGN,{className:"h-7 w-7 text-primary"})})]})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)(h.A,{src:v.background,alt:v.alt,className:"h-full w-full"}),(0,s.jsx)("button",{type:"button",onClick:C,className:"absolute right-2 top-2 flex h-10 w-10 items-center justify-center rounded-md outline-none",children:(0,s.jsx)(m.yGN,{className:"h-7 w-7 text-primary"})})]}),(0,s.jsxs)("div",{className:"absolute top-32 px-16",children:[(0,s.jsx)("h1",{className:"text-shadow mb-4 text-40px font-bold text-white",children:v.title}),(0,s.jsx)("p",{className:"text-shadow text-white",children:v.shortDe
1sc}),(0,s.jsx)("form",{onSubmit:z(t=>{let a=S("thailand");o("https://api.iterable.com/api/users/update",{email:t.email,dataFields:{signupSource:a?"popUpFormThailand":"popUpForm",emailVerified:!1}},e).then(e=>{"Success"==e.code&&(f(!0),(0,n.setCookie)("signUpForm","submitted"))}).catch(e=>{console.error(e)})}),children:(0,s.jsxs)("div",{children:[(0,s.jsx)("input",{...L("email"),placeholder:"Enter your email",className:"ring-theme my-2 flex h-10 w-full items-center gap-2 overflow-hidden rounded-lg bg-white px-2 text-sm shadow-box outline-primary placeholder:font-light placeholder:text-gray-500",type:"email",required:!0}),(0,s.jsxs)("div",{className:"mt-6 flex justify-between",children:[(0,s.jsx)("button",{className:"w-45% rounded-md bg-primary px-4 py-6px font-semibold capitalize text-white",type:"submit",children:"Claim Now"}),(0,s.jsx)("button",{className:"w-45% rounded-md border border-white bg-gray-200 px-4 py-6px font-semibold capitalize text-black",onClick:C,type:"button",children:"Maybe Later"})]}),w&&(0,s.jsx)("div",{className:"mt-16",children:(0,s.jsx)("span",{className:"text-sm font-medium",children:v.afterLabel})})]})})]})]})})})})})]})})]})})}}}]);

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.