1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{13095:(e,a,t)=>{t.d(a,{$t:()=>s,Am:()=>u,K$:()=>i,K2:()=>x,KI:()=>l,Mq:()=>d,SX:()=>o,YJ:()=>c,Yl:()=>n,_4:()=>p,bh:()=>r});var n=function(e){return e[e.Reserved=1]="Reserved",e[e.CompletedByGuest=2]="CompletedByGuest",e[e.CompletedBySystem=3]="CompletedBySystem",e[e.GuestCancellation=4]="GuestCancellation",e[e.TourLeaderCancellation=5]="TourLeaderCancellation",e[e.OperationCancellation=6]="OperationCancellation",e[e.OperationConfirming=9]="OperationConfirming",e}({}),s=function(e){return e[e.FromAvailability=0]="FromAvailability",e[e.Proceeding=1]="Proceeding",e[e.WaitingAccept=2]="WaitingAccept",e[e.Accepted=3]="Accepted",e[e.AcceptedDirectRequest=4]="AcceptedDirectRequest",e[e.GuestCancelled=10]="GuestCancelled",e[e.GuestCancelledAfterAccepted=11]="GuestCancelledAfterAccepted",e[e.TimeoutCancelled=12]="TimeoutCancelled",e[e.AdminCancelled=13]="AdminCancelled",e[e.Declined=14]="Declined",e[e.AdminCancelledAfterAccepted=15]="AdminCancelledAfterAccepted",e[e.DirectRequestTimeoutCancelled=16]="DirectRequestTimeoutCancelled",e}({});let r=[10,12,13,14,16];var i=function(e){return e[e.Tour=1]="Tour",e[e.Other=2]="Other",e}({}),l=function(e){return e.h="home",e.a="area",e.c="category",e.s="search",e.tl="tour-leader",e.oat="only-at-tomogo",e.hma="hotel-monday",e.dt="day-tours",e.au="about-us",e.ct="contact",e.btl="become-a-tour-leader",e.bl="blog",e.bp="blog-post",e.bc="blog-category",e.bg="blog-tag",e.dj="discover-japan",e.tls="tour-leaders",e.tlat="tour-leader-available-tours",e.letr="local-experts-top-rated",e.lesp="local-experts-staff-picks",e.ta="tomogo-autumn",e.pw="pathways",e.pwt="pathway-tour",e.ms="messages",e.msn="messages-notice",e.rsv="reservations",e.rsvd="reservation-detail",e.ge="geisha-experience",e}({}),o=function(e){return e.hn="hot-new",e.lm="last-minute",e.sp="staff-picks",e.tr="top-rated",e.ntl="new-tour-leaders",e.trtl="top-rated-tour-leaders",e.sptl="staff-picks-tour-leaders",e.nr="no-results",e.dt="day-tours",e.djh="discover-japan-hero",e.djc="discover-japan-cities",e.tah="tomogo-autumn-hero",e.taa="tomogo-autumn-areas",e.tas="tomogo-autumn-season",e.tab="tomogo-autumn-blog",e.tap="tomogo-autumn-pathways",e.geh="geisha-experience-hero",e.ges="geisha-experience-signup",e}({});let c=["English","French","Spanish","Portuguese","Tagalog"],d=[{id:"tok",n:"Tokyo"},{id:"kyo",n:"Kyoto"},{id:"osa",n:"Osaka"},{id:"hir",n:"Hiroshima"},{id:"kan",n:"Kanazawa"},{id:"fuk",n:"Fukuoka (Hakata)"},{id:"sap",n:"Sapporo"},{id:"mor",n:"Morioka"},{id:"sen",n:"Sendai"},{id:"nag",n:"Nagoya"},{id:"nao",n:"Nagano"},{id:"aka",n:"Akita"}],u={"tok-kyo":13320,"tok-osa":13870,"tok-hir":18040,"tok-kan":13850,"tok-fuk":22950,"tok-sap":27430,"tok-mor":14810,"tok-sen":11210,"tok-nag":7e3,"tok-nao":7460,"tok-aka":17350,"kyo-osa":1430,"kyo-hir":10180,"kyo-fuk":16540,"kyo-nag":5920,"osa-hir":10290,"osa-fuk":15e3,"osa-nag":6680,"osa-kan":7060,"osa-nao":7810,"hir-fuk":8230,"sen-mor":3810,"kan-kyo":7010,"kan-osa":7060},p=[{days:7,price:5e4,priceOct:53500},{days:14,price:8e4,priceOct:85600},{days:21,price:1e5,priceOct:107e3}],x=[{id:"hl",name:"Hokuriku Arch Pass",days:7,price:3e4,priceOct:32010,coverage:"Tokyo \xb7 Kanazawa \xb7 Kyoto \xb7 Osaka",bestFor:"Travelling between Tokyo and Kansai via the north-west coast"},{id:"je5",name:"JR East Pass â 5 Day",days:5,price:35e3,priceOct:37450,coverage:"Kanto \xb7 Tohoku \xb7 16 prefectures",bestFor:"Northern Japan day trips: Nikko, Kamakura, Sendai, Aomori"},{id:"je10",name:"JR East Pass â 10 Day",days:10,price:5e4,priceOct:53500,coverage:"Kanto \xb7 Tohoku \xb7 16 prefectures",bestFor:"Extended northern Japan including Hokkaido connections"},{id:"kh",name:"KansaiâHiroshima Pass",days:5,price:17e3,priceOct:18190,coverage:"Osaka \xb7 Kyoto \xb7 Nara \xb7 Hiroshima \xb7 Tottori",bestFor:"Osaka-based Kansai day trips and the Hiroshima/Miyajima route"},{id:"kjh",name:"JR Kansai Hokuriku Pass",days:7,price:19e3,priceOct:20330,coverage:"Osaka \xb7 Kyoto \xb7 Kanazawa \xb7 Okayama \xb7 Wakayama",bestFor:"Western Japan without needing Tokyo rail coverage"},{id:"jw",name:"JR West All Area Pass",days:7,price:25e3,priceOct:26750,coverage:"Osaka \xb7 Hiroshima \xb7 Fukuoka \xb7 Kanazawa \xb7 Matsue",bestFor:"Extensive western Japan including Kyushu access"}]},14734:(e,a,t)=>{t.d(a,{A:()=>l});var n=t(95155),s=t(12115),r=t(66332);async function i(e){let{text:a,targetLanguage:t,render:s}=e,i=await (0,r.s)(a,t);return(0,n.jsx)(n.Fragment,{children:s(i)})}function l(e){let{text:a,targetLanguage:t,children:r}=e,l=null!=r?r:e=>(0,n.jsx)(n.Fragment,{children:e});return a&&t&&"en"!==t&&"pseudo"!==t?(0,n.jsx)(s.Suspense,{fallback:l(a),children:(0,n.jsx)(i,{text:a,targetLanguage:t,render:l})}):(0,n.jsx)(n.Fragment,{children:l(a)})}},24033:(e,a,t)=>{t.d(a,{A:()=>n});let n=(0,t(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},34220:(e,a,t)=>{t.d(a,{x:()=>o});var n=t(95155),s=t(12115),r=t(53127),i=t(59132),l=t(94416);function o(e){let{children:a,isValidProp:t,...o}=e;t&&(0,i.D)(t),(o={...(0,s.useContext)(r.Q),...o}).isStatic=(0,l.M)(()=>o.isStatic);let c=(0,s.useMemo)(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return(0,n.jsx)(r.Q.Provider,{value:c,children:a})}},51567:(e,a,t)=>{t.d(a,{default:()=>h});var n=t(95155),s=t(12115),r=t(54710),i=t(24033),l=t(52619),o=t.n(l),c=t(27063),d=t(13095),u=t(60080),p=t(64269),x=t(95976);let m="block rounded-lg p-3 hover:bg-gray-400";function h(e){var a;let{areas:t,categories:l,fromPage:h}
1=e,[g,f]=(0,s.useState)(!1),[b,k]=(0,s.useState)(!1),j=h?null!=(a=d.KI[h])?a:h:void 0,y=(0,x.O2)(t);return(0,n.jsxs)(n.Fragment,{children:[y.length>0&&(0,n.jsxs)("li",{className:"rounded-lg",children:[(0,n.jsxs)("button",{type:"button","aria-expanded":g,onClick:()=>{f(e=>(e||(0,u.BI)("Open Search Destinations",{"Page Referrer":j}),!e))},className:(0,p.cn)(m,"flex w-full items-center justify-between"),children:[(0,n.jsx)(r.x6,{id:"7BDsZH"}),(0,n.jsx)(i.A,{className:(0,p.cn)("size-4 transition-transform duration-200",g&&"rotate-180")})]}),g&&(0,n.jsx)("ul",{className:"font-normal",children:y.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(c.kN,{asChild:!0,children:(0,n.jsx)(o(),{href:"/day-tours/area/".concat(e.slug),onClick:()=>(0,u.BI)("Tap Search Destination",{"Area ID":e.id,"Area Name":e.name,"Page Referrer":j}),className:(0,p.cn)(m,"pl-6"),children:e.name})})},e.id))})]}),l.length>0&&(0,n.jsxs)("li",{className:"rounded-lg",children:[(0,n.jsxs)("button",{type:"button","aria-expanded":b,onClick:()=>k(e=>!e),className:(0,p.cn)(m,"flex w-full items-center justify-between"),children:[(0,n.jsx)(r.x6,{id:"NUrY9o"}),(0,n.jsx)(i.A,{className:(0,p.cn)("size-4 transition-transform duration-200",b&&"rotate-180")})]}),b&&(0,n.jsx)("ul",{className:"font-normal",children:l.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(c.kN,{asChild:!0,children:(0,n.jsx)(o(),{href:"/day-tours/category/".concat(e.slug),onClick:()=>(0,u.BI)("Tap Search Category",{"Category ID":e.id,"Category Name":e.name,"Page Referrer":j}),className:(0,p.cn)(m,"pl-6"),children:e.name})})},e.id))})]})]})}},56607:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l});var n=t(95155),s=t(52619),r=t.n(s),i=t(60080);function l(e){let{hideLabel:a=!1,className:t,formClassName:s,location:l,idSuffix:o=""}=e;return(0,n.jsxs)("div",{className:t,children:[!a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"text-[14px] leading-[120%] font-bold",children:"Newsletter"}),(0,n.jsx)("p",{className:"text-[12px] leading-[120%] font-normal",children:"Sign up to be the first to hear our news and special offers."}),(0,n.jsx)("div",{className:"h-3"})]}),(0,n.jsxs)("form",{action:"https://tomogo-travel.us17.list-manage.com/subscribe/post?u=d5c5f4fc089fb0f540fbc2732&id=b1f6e041f6&f_id=00b40de1f0",method:"post",id:"mc-embedded-subscribe-form".concat(o),name:"mc-embedded-subscribe-form",target:"_self",noValidate:!0,onSubmit:()=>{(0,i.BI)("Submit Newsletter Signup",{Location:l})},className:s,children:[(0,n.jsxs)("div",{className:"border-line-default flex h-[48px] overflow-hidden rounded-[8px] border bg-white",children:[(0,n.jsx)("input",{type:"email",name:"EMAIL",id:"mce-EMAIL".concat(o),required:!0,placeholder:"Email",className:"placeholder:text-muted-foreground min-w-0 flex-1 px-3 text-[16px] outline-none"}),(0,n.jsx)("button",{type:"submit",name:"subscribe",id:"mc-embedded-subscribe".concat(o),className:"bg-primary text-primary-foreground shrink-0 cursor-pointer px-4 text-[13.36px] leading-[150%] font-extrabold uppercase",children:"Subscribe"})]}),(0,n.jsx)("div",{hidden:!0,children:(0,n.jsx)("input",{type:"hidden",name:"tags",value:"3936141"})}),(0,n.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",left:"-5000px"},children:(0,n.jsx)("input",{type:"text",name:"b_d5c5f4fc089fb0f540fbc2732_b1f6e041f6",tabIndex:-1,defaultValue:""})})]}),(0,n.jsxs)("p",{className:"text-secondary mt-3 text-[12px] leading-[120%] font-normal",children:["You agree to our"," ",(0,n.jsx)(r(),{href:"/terms",className:"underline",children:"Terms and Conditions"})," ","and our"," ",(0,n.jsx)(r(),{href:"/privacy",className:"underline",children:"Privacy Policy"})," ","when you subscribe."]})]})}},64572:(e,a,t)=>{t.d(a,{G:()=>f,default:()=>b});var n=t(95155),s=t(12115),r=t(36117),i=t.n(r),l=t(21873),o=t(26983),c=t(15239),d=t(52619),u=t.n(d),p=t(64269),x=t(67760),m=t(92412),h=t(14734);function g(){return(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M11.0839 6.41667V9.91667M11.0839 9.91667C10.4396 9.91667 9.91724 10.439 9.91724 11.0833C9.91724 11.7277 10.4396 12.25 11.0839 12.25C11.7282 12.25 12.2506 11.7277 12.2506 11.0833C12.2506 10.439 11.7282 9.91667 11.0839 9.91667ZM11.0839 7.58333H12.2506M1.16724 12.25C1.16717 11.3791 1.41082 10.5255 1.87063 9.78589C2.33043 9.04624 2.98803 8.45003 3.76905 8.06468C4.55007 7.67932 5.42334 7.52022 6.29009 7.60535C7.15683 7.69049 7.98245 8.01647 8.67357 8.54642M8.75057 4.66667C8.75057 6.2775 7.44473 7.58333 5.8339 7.58333C4.22307 7.58333 2.91724 6.2775 2.91724 4.66667C2.91724 3.05584 4.22307 1.75 5.8339 1.75C7.44473 1.75 8.75057 3.05584 8.75057 4.66667Z",stroke:"#6C7784",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})}function f(){return(0,n.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-attention",children:(0,n.jsx)("path",{d:"M5.437 0.521478C5.77931 -0.174606 6.77171 -0.174604 7.11403 0.52148L8.32736 2.98873C8.46309 3.26472 8.72593 3.45625 9.03024 3.50089L11.7508 3.90003C12.5159 4.01227 12.8213 4.95217 12.2684 5.49273L10.2969 7.42017C10.0774 7.63469 9.97732 7.94326 10.029 8.24573L10.4935 10.964C10.624 11.7279 9.82154 12.3095 9.13622 11.9478
1L6.71171 10.668C6.43876 10.5239 6.11226 10.5239 5.83931 10.668L3.4148 11.9478C2.72948 12.3095 1.927 11.7279 2.05753 10.964L2.52202 8.24573C2.5737 7.94326 2.47359 7.63469 2.25417 7.42017L0.282617 5.49273C-0.270307 4.95217 0.0351367 4.01227 0.800204 3.90003L3.52078 3.50089C3.82509 3.45625 4.08793 3.26472 4.22366 2.98873L5.437 0.521478Z",fill:"currentColor"})})}function b(e){let{id:a,className:t="",title:r,subtitle:d,price:b,rate:k,reviews:j,duration:y="",location:v="",image:N="/images/sample/tour1.jpg",lang:w="en",clickArea:C,pageReferrer:A,tourLeaderId:O,timeSalePrice:T,timeSaleStartAt:S,timeSaleEndAt:P,slug:M,variant:L="default",fluidImage:I=!1}=e,K="large"===L,F=(0,s.useMemo)(()=>{let e=new URLSearchParams;return C&&e.append("click",C),A&&e.append("ref",A),O&&e.append("tlid",O.toString()),e},[C,A,O]),R=(0,s.useMemo)(()=>"".concat((0,x.Kt)(a,M)).concat(F.toString()?"?".concat(F.toString()):""),[a,M,F]),D=(0,s.useMemo)(()=>{if(null==T||!S||!P)return!1;let e=i()().unix();return e>=S&&e<=P},[T,S,P]);return(0,n.jsxs)(u(),{href:R,className:(0,p.cn)("group flex flex-col overflow-hidden rounded-[8px] bg-white shadow-[0px_2px_12px_0px_rgba(0,0,0,0.12)] transition-transform duration-300 ease-out hover:scale-105",K?"min-h-[384.35px] w-[280px] lg:min-h-[539.67px] lg:w-full":"min-h-[288px] w-full",t),children:[(0,n.jsx)("div",{className:(0,p.cn)("relative w-full shrink-0 overflow-hidden",K?"h-[183px] lg:h-[338.67px]":I?"aspect-[280/157]":"h-[157px]"),children:(0,n.jsx)(c.default,{src:N,alt:r,fill:!0,className:"object-cover"})}),(0,n.jsxs)("div",{className:(0,p.cn)("flex flex-1 flex-col p-4",K?"gap-2 pb-8":"gap-3 p-4 pb-6"),children:[(0,n.jsxs)("div",{className:(0,p.cn)("flex flex-col",K?"gap-2":"gap-3"),children:[(0,n.jsx)("h3",{className:(0,p.cn)("text-default",K?"line-clamp-2 text-[22px] leading-[120%] font-bold tracking-[-0.22px] lg:line-clamp-none":"line-clamp-2 text-[16px] leading-[120%] font-semibold tracking-[-0.16px]"),children:(0,n.jsx)(h.A,{text:r,targetLanguage:w})}),K&&d&&(0,n.jsx)("p",{className:"text-default text-[14px] leading-[140%] font-normal tracking-[0]",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:d}),(0,n.jsxs)("div",{className:(0,p.cn)("text-secondary flex items-center overflow-hidden text-[14px] leading-[120%] tracking-[-0.14px]",K?"gap-2 lg:gap-3":"gap-3"),children:[v&&(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,n.jsx)(l.A,{className:"text-secondary size-[14px] shrink-0"}),(0,n.jsx)("span",{className:"leading-none whitespace-nowrap",children:v})]}),y&&(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,n.jsx)(o.A,{className:"text-secondary size-[14px] shrink-0"}),(0,n.jsx)("span",{className:"leading-none whitespace-nowrap",children:y})]}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,n.jsx)(g,{}),(0,n.jsx)("span",{className:"leading-none whitespace-nowrap",children:"Private Tour"})]})]})]}),(0,n.jsxs)("div",{className:"mt-auto flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,n.jsx)("span",{className:"text-secondary text-xs leading-[140%] tracking-[-0.12px]",children:"From"}),!K&&D?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.g,{className:"text-important text-xl leading-[120%] font-bold tracking-[-0.2px]",amount:null!=T?T:0}),(0,n.jsx)(m.g,{className:"text-disabled text-xs leading-[120%] font-semibold tracking-[-0.12px] line-through",amount:null!=b?b:0})]}):(0,n.jsx)(m.g,{className:(0,p.cn)("text-primary font-bold",K?"text-[22px] leading-[120%] tracking-[-0.22px]":"text-xl leading-[120%] tracking-[-0.2px]"),amount:null!=b?b:0})]}),Number(null!=k?k:0)>0&&(0,n.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,n.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,n.jsx)(f,{}),(0,n.jsx)("span",{className:(0,p.cn)("text-default leading-[120%] font-semibold",K?"text-base tracking-[-0.16px] lg:text-xl lg:tracking-[-0.2px]":"text-base tracking-[-0.16px]"),children:Number(k).toFixed(1)})]}),Number(null!=j?j:0)>5&&(0,n.jsxs)("span",{className:(0,p.cn)("text-secondary leading-[120%]",K?"text-xs leading-[140%] tracking-[-0.12px] lg:text-sm":"text-xs leading-[140%] tracking-[-0.12px]"),children:["(",j,")"]})]})]})]})]})}},66332:(e,a,t)=>{t.d(a,{s:()=>l});var n=t(33018),s=t(79902);let r=new Map;async function i(e,a){let t="".concat(s.L0,"/api/translate?target=").concat(a,"&q=").concat(encodeURIComponent(e)),n=await fetch(t,{headers:{"Content-Type":"application/json"}});if(!n.ok){var r;let e=await n.json().catch(()=>null);throw Error((null==e||null==(r=e.error)?void 0:r.message)||"Translation API failed")}let i=await n.json();if(i.error)throw Error(i.error.message||"Translation API failed");return i.translatedText}async function l(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";
1if("en"===a||"pseudo"===a||!e)return e;let t=function(e,a){let t="".concat(e,"|").concat(a);return(0,n.createHash)("md5").update(t).digest("hex")}(e,a),s=r.get(t);s||(s=i(e,a),r.set(t,s));try{return await s}catch(a){return r.get(t)===s&&r.delete(t),console.error("Translation error:",a),e}}},83952:(e,a,t)=>{t.d(a,{Cv:()=>p,UQ:()=>h,V$:()=>u,gp:()=>m,ov:()=>d});var n=t(95155),s=t(12115),r=t(34220),i=t(70669),l=t(15239);let o=(0,s.createContext)(null);function c(){let e=(0,s.useContext)(o);if(!e)throw Error("Hero motion components must be used inside <HeroReveal>");return e}function d(e){let{children:a}=e,[t,i]=(0,s.useState)(!1),l=(0,s.useCallback)(()=>i(!0),[]);return(0,s.useEffect)(()=>{if(t)return;let e=setTimeout(()=>i(!0),2500);return()=>clearTimeout(e)},[t]),(0,n.jsx)(r.x,{reducedMotion:"user",children:(0,n.jsx)(o.Provider,{value:{imageLoaded:t,markImageLoaded:l},children:a})})}function u(e){let{children:a,className:t}=e,{imageLoaded:s}=c();return(0,n.jsx)(i.P.div,{className:null!=t?t:"absolute inset-0",initial:{opacity:0}
1,animate:{opacity:+!!s},transition:{duration:.8,ease:"easeOut"},children:a})}function p(e){let{onLoad:a,...t}=e,{markImageLoaded:s}=c();return(0,n.jsx)(l.default,{...t,onLoad:e=>{s(),null==a||a(e)}})}let x={hidden:{},show:{transition:{delayChildren:.6,staggerChildren:.12}}},m={hidden:{opacity:0,y:24},show:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}};function h(e){let{children:a,className:t}=e,{imageLoaded:s}=c();return(0,n.jsx)(i.P.div,{className:t,variants:x,initial:"hidden",animate:s?"show":"hidden",children:a})}},92412:(e,a,t)=>{t.d(a,{g:()=>s});var n=t(95155);function s(e){let{amount:a,className:t}=e;return(0,n.jsx)("span",{className:t,children:"\xa5".concat(new Intl.NumberFormat("ja-JP",{style:"decimal"}).format(+a))})}},95976:(e,a,t)=>{t.d(a,{O2:()=>s,P0:()=>i,l0:()=>r});let n=["Tokyo","Kyoto","Osaka"];function s(e){return[...e].sort((e,a)=>{let t=n.findIndex(a=>e.name.includes(a)),s=n.findIndex(e=>a.name.includes(e));return(-1===t?n.length:t)-(-1===s?n.length:s)})}function r(e){var a,t;return null!=(t=null==(a=function(e){let a=null==e?void 0:e[0];if(!a)return null;let t=a.parents,n=t&&t.length>0?t[t.length-1]:null;return(null==n?void 0:n.name)?n:a}(e))?void 0:a.name)?t:""}function i(e){let a=Math.floor(e/60),t=e%60;return 0===a?"".concat(t," minute").concat(1!==t?"s":""):"".concat(a," hour").concat(1!==a?"s":"").concat(t>0?" ".concat(t," minute").concat(1!==t?"s":""):"")}},97196:(e,a,t)=>{t.d(a,{default:()=>j});var n=t(95155),s=t(12115),r=t(54710),i=t(21873),l=t(24033),o=t(15239),c=t(52619),d=t.n(c),u=t(26333),p=t(13095),x=t(19939),m=t(60080),h=t(64269),g=t(95976),f=t(13688);let b="hover:bg-surface-gray-subtle flex items-center gap-2 rounded-lg transition-colors duration-200",k="leading-ds tracking-ds text-default text-sm font-bold";function j(e){var a;let{areas:t,categories:c,solid:j,fromPage:y}=e,v=(0,x.x)(j),N=(0,s.useRef)(null),[w,C]=(0,s.useState)(!1),[A,O]=(0,s.useState)(t.length>0?"destinations":"categories"),T=y?null!=(a=p.KI[y])?a:y:void 0,S=(0,s.useCallback)(e=>{C(a=>(e&&!a&&(0,m.BI)("Open Search Destinations",{"Page Referrer":T}),e))},[T]),P=(0,s.useCallback)(()=>{N.current&&clearTimeout(N.current),S(!0)},[S]),M=(0,s.useCallback)(()=>{N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{S(!1)},400)},[S]),L=(0,g.O2)(t);return(0,n.jsxs)(u.AM,{open:w,onOpenChange:S,children:[(0,n.jsxs)(u.Wv,{className:(0,h.cn)("mr-4 hidden shrink-0 cursor-pointer items-center gap-1 rounded-lg p-2 text-[14px] font-medium whitespace-nowrap transition-colors lg:flex",v?"text-default":"text-white"),onMouseOver:P,onMouseLeave:M,children:[(0,n.jsx)(i.A,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:(0,n.jsx)(r.x6,{id:"5CAHVc"})}),(0,n.jsx)(l.A,{className:"ml-1 h-4 w-4"})]}),(0,n.jsx)(u.hl,{align:"end",onMouseOver:P,onMouseLeave:M,className:"h-[440px] w-[500px] rounded-[12px] border-none bg-[#fefefe] p-0 shadow-[0px_2px_24px_0px_rgba(0,0,0,0.12)]",children:(0,n.jsxs)("div",{className:"flex h-full flex-col px-8 pt-[31px] pb-[33px]",children:[(0,n.jsx)(f.A,{variant:"panel"}),(0,n.jsxs)("div",{className:"mt-[37px] flex min-h-0 flex-1",children:[(0,n.jsxs)("div",{role:"tablist","aria-orientation":"vertical",className:"flex w-[126px] shrink-0 flex-col items-start gap-6 pt-[3px]",children:[(0,n.jsxs)("button",{type:"button",role:"tab","aria-selected":"destinations"===A,disabled:0===L.length,onMouseEnter:()=>O("destinations"),onClick:()=>O("destinations"),className:(0,h.cn)("leading-ds tracking-ds text-default w-fit cursor-pointer text-sm font-bold",0===L.length?"opacity-40":"hover:opacity-70"),children:[(0,n.jsx)("span",{className:"block",children:(0,n.jsx)(r.x6,{id:"7BDsZH"})}),(0,n.jsx)("span",{className:(0,h.cn)("mx-auto mt-1 block h-px w-[66px]","destinations"===A?"bg-surface-black":"bg-transparent")})]}),(0,n.jsxs)("button",{type:"button",role:"tab","aria-selected":"categories"===A,disabled:0===c.length,onMouseEnter:()=>O("categories"),onClick:()=>O("categories"),className:(0,h.cn)("leading-ds tracking-ds text-default w-fit cursor-pointer text-sm font-bold",0===c.length?"opacity-40":"hover:opacity-70"),children:[(0,n.jsx)("span",{className:"block",children:(0,n.jsx)(r.x6,{id:"NUrY9o"})}),(0,n.jsx)("span",{className:(0,h.cn)("mx-auto mt-1 block h-px w-[66px]","categories"===A?"bg-surface-black":"bg-transparent")})]})]}),(0,n.jsx)("div",{className:"bg-surface-black w-px self-stretch"}),(0,n.jsx)("div",{role:"tabpanel",className:"scrollbar-chat min-h-0 flex-1 overflow-y-auto pt-[3px] pl-[37px]",children:(0,n.jsx)("div",{className:"flex flex-col gap-3",children:"destinations"===A?L.map(e=>(0,n.jsxs)(d(),{href:"/day-tours/area/".concat(e.slug),onClick:()=>{(0,m.BI)("Tap Search Destination",{"Area ID":e.id,"Area Name":e.name,"Page Referrer":T}),S(!1)},className:b,children:[(0,n.jsx)(o.default,{src:e.picture_path||"/images/default-area-icon.png",width:384,height:384,quality:100,alt:e.name,className:"h-15 w-15 shrink-0 rounded-lg object-cover"}),(0,n.jsx)("span",{className:k,children:e.name})]},e.id)):c.map(e=>(0,n.jsxs)(d(),{href:"/day-tours/category/".concat(e.slug),onClick:()=>{(0,m.BI)("Tap Search Category",{"Category ID":e.id,"Category Name":e.name,"Page Referrer":T}),S(!1)},className:b,children:[(0,n.jsx)(o.default,{src:e.picture_path||"/images/default-category-icon.png",width:384,height:384,quality:100,alt:e.name,className:"h-15 w-15 shrink-0 rounded-lg object-cover"}),(0,n.jsx)("span",{className:k,children:e.name})]},e.id))})})]})]})})]})}}}]);
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.