PageSourceSearch

https://assets.bookmundi.com/en/_next/static/chunks/4539.331fc32e3f2b9f25.js

js bookmundi.com collected 2026-10-02 04:55:43 UTC 22,761 bytes, 19 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4539],{48768:function(e,t,l){l.r(t),l.d(t,{default:function(){return ei}});var r=l(52044),a=l(76609),i=l(74263),s=l(36838),n=l(92873);let o=(0,n.Z)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),d=(0,n.Z)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var c=l(11639),u=l(90978),m=l(12054),h=l(39292);let x=async e=>{let t=await (0,m.tk)(e,{cache:"no-store"});if(!t.ok)throw Error(`Failed to fetch itineraries: ${t.statusText}`);let l=await t.json();return Array.isArray(l)?l:[]},g=e=>{let{productId:t,versionId:l}=e,r=new URLSearchParams;l&&r.set("version_id",l);let a=r.toString(),i=`/api/products/${t}/itineraries`;return a?`${i}?${a}`:i},f=e=>{let{productId:t,versionId:l}=e,r=t?g({productId:t,versionId:l}):null,{data:a,error:i,isLoading:s}=(0,h.ZP)(r,x);return{data:a??[],error:i,isLoading:!!t&&s}};var p=l(79211),y=l(59682),b=l(7624),v=l(13453);let w=e=>{let{featuredImage:t}=e;return(0,r.jsxs)("div",{className:"relative flex h-full w-full flex-col items-center justify-center overflow-hidden bg-neutral-lightest px-6 text-center",children:[t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{src:t,alt:"",fill:!0,className:"object-cover",sizes:"100vw"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-pure-black/50"})]}):null,(0,r.jsxs)("div",{className:"relative z-10 flex flex-col items-center gap-3",children:[(0,r.jsx)(b.Z,{height:40,width:40,className:t?"text-pure-white":"text-neutral-base"}),(0,r.jsx)("p",{className:t?"text-body-base-bold text-pure-white":"text-body-base-bold text-neutral-black",children:"Map could not be loaded"}),(0,r.jsx)("p",{className:t?"text-body-base text-pure-white":"text-body-base text-neutral-base",children:"Please try again later or refresh the page."})]})]})};class j extends c.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Google Map failed to render:",e,t)}render(){return this.state.hasError?this.props.fallback:this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}let k={width:"100%",height:"100%"},N=[{elementType:"labels.text",stylers:[{saturation:-5},{lightness:-100},{visibility:"simplified"}]},{elementType:"labels.text.fill",stylers:[{color:"#374151"},{visibility:"simplified"}]},{elementType:"labels.text.stroke",stylers:[{visibility:"simplified"}]},{featureType:"administrative",stylers:[{color:"#f2f2f2"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c5c5c5"}]},{featureType:"administrative",elementType:"labels.text",stylers:[{color:"#374151"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#374151"}]},{featureType:"landscape",stylers:[{color:"#f0e6d2"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#f0e6d2"}]},{featureType:"landscape.natural",elementType:"labels.text",stylers:[{color:"#959595"}]},{featureType:"landscape.natural",elementType:"labels.icon",stylers:[{color:"#d8d8d8"},{visibility:"simplified"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{visibility:"simplified"}]},{featureType:"water",stylers:[{color:"#ADD8E6"}]},{featureType:"water",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]}];var E=e=>{let{itineraries:t,selectedItinerary:l,selectedItineraryIndex:a,featuredImage:i}=e,{isLoaded:s,loadError:n}=(0,y.Ji)({id:"google-map-script-v2",googleMapsApiKey:p.p.google.mapApiKey||"",authReferrerPolicy:"origin"}),o=window.google,d=!!(s&&o?.maps),u=(0,c.useRef)(null),[m,h]=(0,c.useState)({lat:0,lng:0}),[x,g]=(0,c.useState)(!1),[f,b]=(0,c.useState)([]);(0,c.useEffect)(()=>{let e=window.gm_authFailure;return window.gm_authFailure=()=>{g(!0),e?.()},()=>{window.gm_authFailure=e}},[]),(0,c.useEffect)(()=>{t&&a>=0&&b(t.slice(0,a+1).map(e=>({lat:e.latitude??0,lng:e.longitude??0})))},[t,a]),(0,c.useEffect)(()=>
1{if(d&&l&&u.current&&t&&0!==t.length)try{let e=new window.google.maps.LatLngBounds;t.forEach(t=>{void 0!==t.latitude&&void 0!==t.longitude&&e.extend({lat:t.latitude,lng:t.longitude})});let l=null,r=null;return r=setTimeout(()=>{u.current&&window.google?.maps&&(u.current.fitBounds(e,{top:100,right:100,bottom:100,left:100}),l=window.google.maps.event.addListener(u.current,"bounds_changed",()=>{if(u.current&&l){let e=u.current.getZoom()||8;e&&e>12?u.current.setZoom(12):e&&e<4&&u.current.setZoom(6),window.google.maps.event.removeListener(l),l=null}}))},100),()=>{r&&clearTimeout(r),l&&window.google?.maps&&window.google.maps.event.removeListener(l)}}catch(e){console.error("Google Map bounds update failed:",e),g(!0)}},[l,a,t,d]);let v=(0,c.useCallback)(e=>{try{if(!window.google?.maps){g(!0);return}if(u.current=e,t&&t.length>0){let l=new window.google.maps.LatLngBounds;t.forEach(e=>{void 0!==e.latitude&&void 0!==e.longitude&&l.extend({lat:e.latitude,lng:e.longitude})}),e.fitBounds(l,{top:100,right:100,bottom:100,left:100});let r=window.google.maps.event.addListener(e,"bounds_changed",()=>{let t=e.getZoom()||8;t&&t>12?e.setZoom(12):t&&t<4&&e.setZoom(6),window.google.maps.event.removeListener(r)})}let l=e.getCenter();l&&h({lat:l.lat(),lng:l.lng()})}catch(e){console.error("Google Map failed to initialize:",e),g(!0)}},[t]);if(n||x||s&&!d)return(0,r.jsx)(w,{featuredImage:i});if(!s||!d||!o?.maps)return(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-neutral-lightest",children:(0,r.jsx)("div",{className:"text-body-base text-neutral-base",children:"Loading map..."})});let E=o.maps;return(0,r.jsx)(j,{fallback:(0,r.jsx)(w,{featuredImage:i}),children:(0,r.jsx)("div",{className:"relative h-full w-full overflow-hidden",children:(0,r.jsx)(y.b6,{options:{disableDefaultUI:!0,zoomControl:!0,mapTypeId:"roadmap",styles:N,gestureHandling:"greedy"},mapContainerStyle:k,center:m,zoom:8,onLoad:v,children:(0,r.jsxs)(r.Fragment,{children:[t&&t.length>1&&(0,r.jsx)(y.aH,{path:t.filter(e=>void 0!==e.latitude&&void 0!==e.longitude).map(e=>({lat:e.latitude,lng:e.longitude})),options:{strokeColor:"#9CA3AF",strokeWeight:2,strokeOpacity:.6,geodesic:!0,zIndex:1}}),f.length>1&&a>=0&&(0,r.jsx)(y.aH,{path:f,options:{strokeColor:"#3EB368",strokeWeight:3,strokeOpacity:.95,geodesic:!0,zIndex:2}}),t?.map((e,l)=>{if(void 0===e.latitude||void 0===e.longitude)return null;let i=t?.at(0),s=t?.at(t?.length-1),n=i?.latitude===s?.latitude&&i?.longitude===s?.longitude,o={lat:e.latitude,lng:e.longitude},d=l===a,c=l<a,u=a>=0,m=t?.map((e,t)=>({index:t,lat:e.latitude,lng:e.longitude})).filter(e=>void 0!==e.lat&&void 0!==e.lng&&1e-4>Math.abs(e.lat-o.lat)&&1e-4>Math.abs(e.lng-o.lng))||[],h=m.findIndex(e=>e.index===l),x=m.length>1?360/m.length*h*(Math.PI/180):0,g=m.length>1?3e-4:0,f=m.length>1?{lat:o.lat+Math.cos(x)*g,lng:o.lng+Math.sin(x)*g}:o;if(0===l){let e=u&&d?"#3EB368":u&&c?"#3EB368":"#9CA3AF";return r.jsx(y.jC,{position:f,icon:{url:`data:image/svg+xml,${encodeURIComponent(`
2                          <svg width="${d?"32":"24"}" height="${d?"32":"24"}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
3                            <circle cx="12" cy="12" r="9" fill="white" stroke="${e}" stroke-width="${d?"3":"2.5"}"/>
4                            <circle cx="12" cy="12" r="4.5" fill="${e}"/>
5                            ${d?`<circle cx="12" cy="12" r="14" fill="none" stroke="${e}" stroke-width="2" opacity="0.3"/>`:""}
6                          </svg>
7                        `)}`,scaledSize:new E.Size(d?32:24,d?32:24),anchor:new E.Point(12,12)},zIndex:d?100:10},`marker-${l}-${a}`)}if(t&&t?.length-1===l&&!n){let e=u&&d?"#F26F55":u&&c?"#F26F55":"#9CA3AF";return r.jsx(y.jC,{position:f,icon:{url:`data:image/svg+xml,${encodeURIComponent(`
8                          <svg width="${d?"32":"24"}" height="${d?"32":"24"}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
9                            <circle cx="12" cy="12" r="9" fill="white" stroke="${e}" stroke-width="${d?"3":"2.5"}"/>
10                            <circle cx="12" cy="12" r="4.5" fill="${e}"/>
11                            ${d?`<circle cx="12" cy="12" r="14" fill="none" stroke="${e}" stroke-width="2" opacity="0.3"/>`:""}
12                          </svg>
13                        `)}
13`,scaledSize:new E.Size(d?32:24,d?32:24),anchor:new E.Point(12,12)},zIndex:d?100:10},`marker-${l}-${a}`)}{let e=u&&d?"#3EB368":u&&c?"#3EB368":"#9CA3AF",t=d?20:16;return r.jsx(y.jC,{position:f,icon:{url:`data:image/svg+xml,${encodeURIComponent(`
14                          <svg width="${t}" height="${t}" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
15                            <circle cx="8" cy="8" r="6" fill="white" stroke="${e}" stroke-width="${d?"2.5":"1.5"}"/>
16                            <circle cx="8" cy="8" r="3" fill="${e}"/>
17                            ${d?`<circle cx="8" cy="8" r="12" fill="none" stroke="${e}" stroke-width="1.5" opacity="0.3"/>`:""}
18                          </svg>
19                        `)}`,scaledSize:new E.Size(t,t),anchor:new E.Point(8,8)},zIndex:d?100:c?20:10},`marker-${l}-${a}`)}})]})})})})},T=l(46135),C=l(68642),S=l(45295),L=l(39062);let $=()=>"Select day",F=()=>`V\xe6lg dag`,I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?$(e):F(e)},z=()=>"Previous itinerary",_=()=>"Forrige etape",M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?z(e):_(e)},Z=()=>"Next itinerary",A=()=>`N\xe6ste etape`,P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?Z(e):A(e)};var R=e=>{let{selectedItinerary:t,itineraries:l,selectedItineraryIndex:a,onItinerarySelect:s,previousDay:n,nextDay:o,canGoPrevious:d,canGoNext:u,onPrevious:m,onNext:h,formatDayLabel:x}=e,[g,f]=(0,c.useState)(!1),[p,y]=(0,c.useState)(0),b=(0,c.useRef)(null),v=(0,c.useRef)(null),w=(0,c.useRef)(null),j=l.filter(e=>e?.day?.toLowerCase()!=="day 0");(0,c.useEffect)(()=>{g&&w.current&&y(w.current.offsetWidth)},[g]),(0,c.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&v.current&&!v.current.contains(e.target)&&f(!1)};return g&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[g]);let k=e=>{s(e),f(!1)};return(0,r.jsxs)("div",{className:"flex h-[40vh] w-full flex-col border-neutral-light bg-pure-white md:h-auto lg:h-full lg:max-h-full lg:min-h-0 lg:w-[384px] lg:min-w-[384px]",children:[t&&(0,r.jsx)("div",{className:"sticky top-0 z-20 bg-pure-white pb-2",children:(0,r.jsx)("h3",{className:"text-body-small-bold pl-6 text-neutral-black md:text-body-base-bold",children:t?.day?.toLowerCase()!=="day 0"&&(0,r.jsxs)("div",{ref:v,className:"relative flex items-center gap-2",children:[(0,r.jsxs)("button",{ref:w,onClick:()=>{f(!g)},className:"flex items-center gap-2 transition-opacity hover:opacity-80","aria-label":I(),children:[(0,r.jsx)("span",{className:"text-body-base-bold capitalize text-neutral-black md:text-title-5",children:t.day.toLowerCase()}),(0,r.jsx)(T.Z,{height:24,width:24,className:(0,i.j)("transform text-neutral-base transition-transform duration-300",{"rotate-180":g})})]}),g&&(0,r.jsx)("div",{ref:b,className:"absolute left-0 top-full z-30 mt-1 max-h-[300px] overflow-y-auto rounded-lg border border-neutral-light bg-pure-white shadow-lg",style:{width:`${p}px`},children:j.map((e,t)=>{let s=l.findIndex(t=>t===e),n=s===a;return(0,r.jsx)("button",{onClick:()=>k(s),className:(0,i.j)("flex w-full items-center justify-center py-3 transition-colors hover:bg-neutral-lightest",{"bg-primary-lighter text-primary-default":n,"text-neutral-black":!n}),children:(0,r.jsx)("span",{className:"text-body-base-medium capitalize",children:e.day.toLowerCase()})},t)})})]})})}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pl-6 pr-2",children:t&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[t?.title&&(0,r.jsx)("span",{className:"text-body-base-medium text-neutral-black md:text-body-base-bold",dangerouslySetInnerHTML:{__html:t.title}}),t?.description&&(0,r.jsx)("p",{className:"text-body-small text-neutral-black md:text-body-base",dangerouslySetInnerHTML:{__html:t.description}})]})}),(d||u)&&(0,r.jsxs)("div",{className:(0,i.j)("flex shrink-0 items-center py-3 pl-5 pr-2",{"justify-between":d&&u,"justify-start":d&&!u,"justify-end":!d&&u}),children:[d&&(0,r.jsxs)("button",{onClick:m,className:"flex items-center gap-1 rounded-full bg-primary-lighter px-2 py-1 text-button-base text-primary-default transition-all md:text-body-small-medium hover:border-primary-default hover:text-primary-hover md:gap-2 md:px-4 md:py-3","aria-label":M(),children:[(0,r.jsx)(C.Z,{height:20,width:20,strokeWidth:2,className:"md:h-[18px] md:w-[18px]"}),(0,r.jsx)("span",{className:"inline",children:x(n)})]}),u&&(0,r.jsxs)("button",{onClick:h,className:"flex items-center gap-1 rounded-full bg-primary-lighter px-2 py-1 text-button-base text-primary-default transition-all md:text-body-small-medium hover:border-primary-default hover:text-primary-hover md:gap-2 md:px-4 md:py-3","aria-label":P(),children:[(0,r.jsx)("span",{className:"inline",children:x(o)}),(0,r.jsx)(S.Z,{height:20,width:20,strokeWidth:2,className:"md:h-[18px] md:w-[18px]"})]})]})]})};let U=()=>
19"Collapse",B=()=>"Skjul",D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?U(e):B(e)},K=()=>"Expand",W=()=>"Udvid",q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?K(e):W(e)};var G=e=>{let{selectedItinerary:t,previousDay:l,nextDay:a,canGoPrevious:i,canGoNext:s,onPrevious:n,onNext:o,formatDayLabel:d}=e,[u,m]=(0,c.useState)(!0);return(0,r.jsxs)("div",{className:"flex flex-col gap-2 rounded-t-2xl bg-pure-white pt-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"sticky top-0 z-10 bg-pure-white text-body-big-bold text-neutral-black",children:t?.day?.toLowerCase()!=="day 0"&&(0,r.jsx)("span",{className:"text-body-big-bold capitalize text-neutral-black",children:t?.day?.toLowerCase()})}),(0,r.jsx)("button",{onClick:()=>m(!u),className:"flex items-center gap-1 text-button-small active:text-primary-default",children:u?D():q()})]}),(0,r.jsx)("span",{className:"text-body-base-bold text-neutral-black",children:t?.title}),u&&(0,r.jsx)("div",{className:"flex max-h-[14.4375rem] flex-col gap-4 overflow-y-auto pr-4",children:t?.description&&(0,r.jsx)("p",{className:"text-body-small text-neutral-black",dangerouslySetInnerHTML:{__html:(e=>{if(!e)return"";let t=e.trimEnd();return t.endsWith("<br/><br/>")?t.slice(0,-5):e})(t.description)}})})]}),(i||s)&&(0,r.jsxs)("div",{className:"flex w-full items-center gap-2 border-t border-neutral-light p-4",children:[i&&(0,r.jsxs)("button",{onClick:n,className:"flex flex-1 items-center justify-center gap-1 rounded-full bg-primary-lighter px-3 py-2 text-button-base text-primary-default transition-all hover:border-primary-default hover:text-primary-hover","aria-label":M(),children:[(0,r.jsx)(C.Z,{height:20,width:20,strokeWidth:2}),(0,r.jsx)("span",{className:"inline",children:d(l)})]}),s&&(0,r.jsxs)("button",{onClick:o,className:"flex flex-1 items-center justify-center gap-1 rounded-full bg-primary-lighter px-3 py-2 text-button-base text-primary-default transition-all hover:border-primary-default hover:text-primary-hover","aria-label":P(),children:[(0,r.jsx)("span",{className:"inline",children:d(a)}),(0,r.jsx)(S.Z,{height:20,width:20,strokeWidth:2})]})]})]})},H=e=>{let{itineraries:t,selectedItineraryIndex:l,onItinerarySelect:a,onNext:i,onPrevious:s}=e,n=t[l],o=l>0,d=l<t.length-1,c=o?t[l-1]?.day:null,u=d?t[l+1]?.day:null,m=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",h=e=>Array.isArray(e)?e.join(", "):e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(R,{selectedItinerary:n,itineraries:t,selectedItineraryIndex:l,onItinerarySelect:a,previousDay:c,nextDay:u,canGoPrevious:o,canGoNext:d,onPrevious:s,onNext:i,formatDayLabel:m,formattedSleepingMode:()=>"",formatExtraInfoValue:h})}),(0,r.jsx)("div",{className:"relative bottom-0 left-0 right-0 z-10 -mt-4 block md:hidden",children:(0,r.jsx)(G,{selectedItinerary:n,previousDay:c,nextDay:u,canGoPrevious:o,canGoNext:d,onPrevious:s,onNext:i,formatDayLabel:m,formattedSleepingMode:()=>"",formatExtraInfoValue:h})})]})},V=l(14369),O=l(31706);let J=()=>"Close modal",Q=()=>"Luk vindue",X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?J(e):Q(e)},Y=()=>"Exit fullscreen",ee=()=>`Afslut fuldsk\xe6rm`,et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?Y(e):ee(e)},el=()=>"Enter fullscreen",er=()=>`Fuldsk\xe6rm`,ea=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"en-US"===(L.Ns??t.locale??(0,L.Kd)())?el(e):er(e)};var ei=e=>{let{onModalClose:t,product:l,showMapModal:n}=e,{data:m,isLoading:h}=f({productId:l._id,versionId:l.default_version_id?.toString()??void 0}),x=(0,c.useMemo)(()=>m?.filter(e=>void 0!==e.latitude&&void 0!==e.longitude&&null!==e.latitude&&null!==e.longitude)||[],[m]),g=(0,c.useRef)(null),p=(0,c.useRef)(null),[y,b]=(0,c.useState)(0),[v,w]=(0,c.useState)(!1),[j,k]=(0,c.useState)(!1);(0,V.Z)(n||!1),(0,c.useEffect)(()=>{w(!0)},[]),(0,c.useEffect)(()=>{x&&x.length>0&&y>=0&&y>=x.length&&b(0)},[x,y]),(0,a.Z)(g,t);let N=x&&x.length>0?x[y]:null,T=async()=>
19{if(p.current)try{j?document.exitFullscreen?await document.exitFullscreen():document.webkitExitFullscreen?await document.webkitExitFullscreen():document.msExitFullscreen&&await document.msExitFullscreen():p.current.requestFullscreen?await p.current.requestFullscreen():p.current.webkitRequestFullscreen?await p.current.webkitRequestFullscreen():p.current.msRequestFullscreen&&await p.current.msRequestFullscreen()}catch(e){}};(0,c.useEffect)(()=>{let e=()=>{k(!!(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement))};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("msfullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("msfullscreenchange",e)}},[]);let C=(0,r.jsx)("div",{className:"fixed inset-0 z-modal flex h-screen w-screen items-center justify-center overflow-hidden bg-pure-black/50 lg:p-4",children:(0,r.jsx)("div",{ref:g,className:(0,i.j)("relative h-screen w-screen bg-pure-white md:p-6 lg:mx-auto lg:h-[85vh] lg:w-[90vw] lg:max-w-[1158px] lg:rounded-2xl lg:shadow-2xl",{"animate-slide-in":n}),children:(0,r.jsxs)("div",{className:"flex h-full flex-col overflow-hidden md:gap-6 lg:rounded-lg",children:[(0,r.jsx)("div",{className:(0,i.j)("flex shrink-0 items-center justify-between gap-1 bg-pure-white transition-all",{hidden:j}),children:(0,r.jsxs)("div",{className:"flex w-full items-center justify-between max-md:p-4",children:[(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)("h2",{className:"text-body-base-bold text-neutral-black md:text-body-big-bold",children:l?.product_title})}),(0,r.jsx)(O.default,{onClick:t,className:"group flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-neutral-light","aria-label":X(),children:(0,r.jsx)(s.Z,{height:24,width:24,className:"text-neutral-base transition-colors group-hover:text-neutral-black"})})]})}),(0,r.jsx)("div",{ref:p,className:(0,i.j)("flex flex-1 flex-col overflow-hidden bg-pure-white md:gap-4 lg:flex-row lg:gap-0",{"h-screen":j}),children:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex h-[75vh] overflow-hidden  bg-neutral-lightest md:h-auto md:flex-1",children:(0,r.jsx)("div",{className:"animate-pulse h-full w-full bg-neutral-light"})}),!j&&(0,r.jsxs)("div",{className:"flex h-[40vh] w-full flex-col border-t border-neutral-light bg-pure-white md:h-auto lg:h-auto lg:w-[400px] lg:min-w-[400px] lg:border-l lg:border-t-0",children:[(0,r.jsx)("div",{className:"animate-pulse h-14 bg-neutral-lightest"}),(0,r.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto p-4",children:[(0,r.jsx)("div",{className:"animate-pulse h-6 w-3/4 rounded bg-neutral-light"}),(0,r.jsx)("div",{className:"animate-pulse h-4 w-full rounded bg-neutral-light"}),(0,r.jsx)("div",{className:"animate-pulse h-4 w-5/6 rounded bg-neutral-light"}),(0,r.jsx)("div",{className:"animate-pulse h-32 rounded-lg bg-neutral-lightest"})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative flex h-full overflow-hidden md:h-auto md:flex-1 md:rounded-xl",children:[(0,r.jsx)(E,{itineraries:x,selectedItinerary:N,selectedItineraryIndex:y,featuredImage:l.featured_image}),(0,r.jsx)("button",{onClick:T,className:"absolute right-4 top-4 z-10 flex items-center justify-center rounded-full bg-pure-white p-2 shadow-lg transition-colors hover:bg-neutral-lightest","aria-label":j?et():ea(),children:j?(0,r.jsx)(o,{height:20,width:20,className:"text-neutral-black"}):(0,r.jsx)(d,{height:20,width:20,className:"text-neutral-black"})})]}),x&&x.length>0&&!j&&(0,r.jsx)(H,{itineraries:x,selectedItineraryIndex:y,onItinerarySelect:e=>{b(e)},onNext:()=>{x?.length&&y<x.length-1&&b(y+1)},onPrevious:()=>{x?.length&&y>0&&b(y-1)}})]})})]})})});return v?(0,u.createPortal)(C,document.body):null}}}]);

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.