1import{z as D,g as z,r,b as s,j as e,F,c as T,N as B,I as E,d as $,f as A,S as I}from"./index-fc782dd6.js";import{a as v}from"./axios-4a70c6fc.js";import{P as R,D as V,T as W}from"./IntroContainer-d30b1e33.js";const Z={7:{imageSrc:"/aba-1.webp"},8:{imageSrc:"/ant8.webp"},69:{imageSrc:"/ant69.webp"},98:{imageSrc:"/ant98.webp"},17:{imageSrc:"/bze17.webp"},19:{imageSrc:"/bze19.webp"},9:{imageSrc:"/bvi-1.webp"},62:{imageSrc:"/pan-1.webp"},78:{imageSrc:"/pan-1.webp"},4:{imageSrc:"/sxm4.webp"},11:{imageSrc:"/sxm11.webp"},71:{imageSrc:"/sxm71.webp"},65:{imageSrc:"/beq-1.webp"},66:{imageSrc:"/beq-1.webp"},3:{imageSrc:"/svg-1.webp"},83:{imageSrc:"/svg83.webp"},84:{imageSrc:"/svg84.webp"},96:{imageSrc:"/svg96.webp"},97:{imageSrc:"/svg97.webp"},85:{imageSrc:"/svg-1.webp"},56:{imageSrc:"/cnu-1.webp"},61:{imageSrc:"/cnu-1.webp"},44:{imageSrc:"/cnu-1.webp"},20:{imageSrc:"/may-1.webp"},33:{imageSrc:"/fji-1.webp"},32:{imageSrc:"/fpo-1.webp"},67:{imageSrc:"/fpo-1.webp"},22:{imageSrc:"/vav22.webp"},75:{imageSrc:"/vav75.webp"},59:{imageSrc:"/mal-1.webp"},60:{imageSrc:"/syl-1.webp"},87:{imageSrc:"/gda87.webp"},88:{imageSrc:"/gda88.webp"},93:{imageSrc:"/gda93.webp"},48:{imageSrc:"/nov-1.webp"},14:{imageSrc:"/grc-1.webp"},24:{imageSrc:"/cha-1.webp"}},O=()=>{const{uri:l}=D(),d=z(),m=r.useRef(null),[S,y]=r.useState(""),[N,j]=r.useState([]),[C,_]=r.useState(""),[k,P]=r.useState({}),[M,f]=r.useState(!0),p=()=>{if(m.current){const t=m.current.getBoundingClientRect().top+window.pageYOffset;window.scroll({top:t,behavior:"smooth"})}};r.useEffect(()=>{window.scrollTo(0,0),v.get("https://api.trade-winds.com/www_tmp/get_destination.php",{params:{destination_url:l}}).then(t=>{var x,g;const i=t.data,a=i.products||[];if(a.length===1){d(`/products/${l}/${a[0].product_id}`,{replace:!0});return}y(i.name||""),j(a),(g=(x=i.sections)==null?void 0:x[1])!=null&&g[0]&&_(i.sections[1][0].body),Promise.all(a.map(n=>v.get("https://api.trade-winds.com/www_tmp/get_destination.php",{params:{destination_url:l,product_id:n.product_id}}).then(o=>{var c,w,u,h,b;return{product_id:n.product_id,statement:((b=(h=(u=(w=(c=o.data)==null?void 0:c.product)==null?void 0:w.sections)==null?void 0:u[10])==null?void 0:h[0])==null?void 0:b.body)||""}}))).then(n=>{const o={};n.forEach(c=>{o[c.product_id]=c.statement}),P(o)}),f(!1)}).catch(t=>{console.error("Error fetching destination data:",t),f(!1)})},[l]);const L=t=>{d(`/products/${l}/${t}`)};return M?s("div",{role:"status",style:{width:"100%",height:"100vh"},className:"flex justify-center items-center",children:[s("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-cyan-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e("span",{className:"sr-only",children:"Loading..."})]}):e(F,{children:s("div",{className:"bg-white-A700 flex flex-col font-montserrat items-center justify-center w-full",children:[e("a",{href:"#",className:"fixed bottom-3 right-4 p-2 bg-cyan-500 text-white rounded-full shadow-lg z-20",onClick:t=>{t.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})},children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M12 19V5M5 12l7-7 7 7"})})}),e(R,{scrollToContact:p,className:"bg-white-A700 flex flex-col items-center justify-start max-w-[1440px] w-full z-10"}),e(V,{destinationUri:l}),e("div",{className:"w-full bg-white flex justify-center",children:s("div",{className:"w-full max-w-[1280px] px-8 py-16",children:[s("h2",{className:"text-5xl sm:text-3xl font-bold font-montserrat text-gray-900 leading-[60px] mb-16",children:["Discover ",S]}),e(W,{content:C})]})}),e("div",{className:"w-full max-w-[1440px] bg-[#f7f7f7] py-24 flex justify-center",children:s("div",{className:"w-full max-w-[1280px] px-8",children:[s("div",{className:"mb-16",children:[e("p",{className:"text-[#006c75] text-lg uppercase font-montserrat font-normal pb-3",children:"Various products available"}),e("h2",{className:"text-5xl font-bold font-montserrat text-[#282828] leading-[60px]",children:"Your choices"}),e("p",{className:"text-neutral-600 text-xl font-opensans font-normal leading-[30px] mt-8 max-w-[590px]",children:"We offer various fantastic experiences in this destination. Please click one to learn more."})]}),e("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-4",children:N.map(t=>{var a;const i=((a=Z[t.product_id])==null?void 0:a.imageSrc)||"/svg-1.webp";return s("div",{onClick:()=>L(t.product_id),className:"group self-stretch pb-6 bg-white rounded-xl shadow-[0px_4px_6px_-2px_rgba(16,24,40,0.06),0px_12px_16px_
1-4px_rgba(16,24,40,0.12)] inline-flex flex-col justify-start items-start gap-6 cursor-pointer hover:shadow-xl transition-shadow duration-200 overflow-hidden",children:[e("div",{className:"self-stretch h-[185px] rounded-tl-xl rounded-tr-xl flex flex-col justify-center items-center overflow-hidden",children:e("div",{className:"self-stretch flex-1 rounded-tl-xl rounded-tr-xl flex flex-col justify-center items-center gap-2.5 overflow-hidden",children:e("img",{src:i,alt:t.label,className:"self-stretch h-[185px] object-cover rounded-tl-xl rounded-tr-xl transition-transform duration-500 group-hover:scale-105"})})}),e("div",{className:"self-stretch px-6 flex flex-col justify-start items-start gap-6",children:s("div",{className:"self-stretch flex flex-col justify-start items-start gap-4",children:[s("div",{className:"self-stretch inline-flex justify-start items-start gap-4",children:[e("h3",{className:"flex-1 text-[#282828] text-3xl font-bold font-montserrat leading-[38px]",children:t.label}),e("div",{className:"pt-1 inline-flex flex-col justify-start items-start flex-shrink-0",children:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"#282828",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e("p",{className:"self-stretch text-neutral-600 text-lg font-normal font-opensans leading-7",children:k[t.product_id]})]})})]},t.product_id)})})]})}),s("div",{className:"flex flex-col font-montserrat items-center justify-center w-full",children:[e(T,{ref:m,className:"bg-cyan-900 flex flex-col font-opensans md:gap-10 gap-16 items-center justify-start max-w-[1440px] py-16 w-full sm:py-10 md:py-10"}),e("footer",{className:"bg-white-A700 flex font-montserrat items-center justify-center pb-12 w-full",children:s("div",{className:"flex flex-col gap-12 items-center justify-center w-full",children:[e(B,{}),s("div",{className:"flex flex-col gap-8 items-center justify-start w-[89%] md:w-full",children:[e("div",{className:"flex flex-col items-start justify-start max-w-7xl sm:px-0 px-8 w-full",children:e("div",{className:"flex md:flex-col flex-row gap-8 items-start justify-start w-full",children:s("div",{className:"flex flex-1 flex-col gap-8 items-start sm:items-center md:items-center justify-center w-full",children:[e("div",{className:"flex flex-col items-start sm:items-center md:items-center justify-center w-80",children:e(E,{className:"h-[67px] w-[110px]",src:"/img_logo.svg",alt:"logo"})}),e($,{scrollToContact:p,className:"flex flex-col h-9 sm:h-auto items-start sm:items-center md:items-center justify-start max-w-[1280px] w-full sm:px-16"})]})})}),e("div",{className:"flex flex-col items-start justify-start max-w-[1275px] sm:px-0 px-8 w-full",children:s("div",{className:"border-blue_gray-50 border-solid border-t flex sm:flex-col-reverse md:flex-col flex-row gap-8 sm:items-center sm:justify-center md:items-center md:justify-center items-start justify-start pt-8 w-full",children:[e(A,{className:"flex flex-1 flex-col h-9 md:flex-col sm:items-start items-center justify-start max-w-[903px] w-full"}),e(I,{})]})})]})]})})]})]})})};export{O as default};
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.