import{r as a,j as e,L as me,u as Pa,n as Ia,b as Ws,d as Da,g as Aa,l as Ba,m as Fa}from"./vendor-BXQAQzXu.js";import{C as Ma,H as Ra,S as Js}from"./SliderFacilities-B2kFOaSk.js";import{B as Ga,S as qs}from"./SliderRooms-UHOf_3kv.js";import{u as $a}from"./Global-CKpXTxwr.js";import{S as T,P as za}from"./PopUp-15JWPb-C.js";import{S as Zs}from"./SliderOffers-ektnB75Y.js";import{a as ae}from"./appendURL-CIK5EvW3.js";import{D as Ua,B as _a}from"./BookDirectSection-Dyfxvggg.js";import{S as Ks}from"./SliderGallery-CW2hiUPk.js";import{S as Va,N as Ha,a as Wa}from"./ui-CbCB892d.js";import{V as Ja}from"./three-C0fP8mhw.js";import{S as ie}from"./SliderExperiencesPage-DxdKSEEF.js";import{A as $}from"./AnimatedPopUp-ClLwm94-.js";import{N as qa}from"./NotFoundProp-Ctp8IGmy.js";import{t as Qs}from"./transformUtm-9lP4nPuV.js";import{T as Za}from"./TabList-qNpk1Pqk.js";import{O as pe}from"./OptimizedImage-BbLjun1q.js";import{R as Ka}from"./running-text-DxL9Uqiy.js";import{r as Qa}from"./renderImage-C47ga_Df.js";import{S as Ya}from"./SectionWrapper-BCz5DAfi.js";import{I as Ys}from"./Icon-BPlWycCC.js";import"./carousel-DpsjlDe2.js";import"./svg-DmTSu4C7.js";import"./FooterProp-pbXSpU5I.js";function Xa({csrs:t,env:o,assetUrl:c,initialCsrSlug:d}){var k,x,E,S,C,l,j;const[i,n]=a.useState({show:!1,data:null}),u=async(m,y)=>{var O;if(m&&!y)return!1;const h=y&&await w(y),N=m&&h&&((O=h==null?void 0:h.data)!=null&&O.data)?h.data.data:null;n({show:m,data:N})};a.useEffect(()=>{if(d&&(t==null?void 0:t.length)>0){const m=t.find(y=>y.attributes.slug===d);m&&u(!0,m.id)}},[d,t]);async function w(m){const y="csrs";if(!o.JWT_SECRET||!o.API_ENDPOINT)return{error:"API configuration not found"};const h=new Headers;h.set("Content-Type","application/json"),h.set("Authorization",`Bearer ${o.JWT_SECRET}`);try{const N=await fetch(`${o.API_ENDPOINT}${y}/${m}?populate=heroImg,reasons.image,benefitImages,partners.image,titleImage`,{method:"GET",headers:h});if(!N.ok)throw new Error("Failed to fetch data areas");return{data:await N.json()}}catch(N){return{error:N.message}}}return e.jsxs(Ya,{id:"csr",bgImg:"/img/csr-section-img.webp",className:"section-wrapper-primary",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:"our program"}),(t==null?void 0:t.length)>0&&e.jsxs("div",{className:"flex flex-col items-center gap-6",children:[t[0].attributes.titleImage?e.jsx("img",{src:Qa(c,(E=(x=(k=t[0].attributes.titleImage)==null?void 0:k.data)==null?void 0:x.attributes)==null?void 0:E.url),alt:"csr-img",width:500,height:500,className:"w-48"}):e.jsx("h2",{className:"heading2-title-leadingtrim",children:((C=(S=t[0])==null?void 0:S.attributes)==null?void 0:C.title)??""}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:((j=(l=t[0])==null?void 0:l.attributes)==null?void 0:j.description)??""}),e.jsx("button",{onClick:()=>{var m;return u(!0,(m=t[0])==null?void 0:m.id)},className:"button-primary capitalize max-w-[150px]",children:"Learn More"})]})]}),e.jsx(Ma,{data:i.data,isOpen:i.show,onClose:()=>u(!1,null),assetUrl:c})]})}const ei=({image:t,height:o=300,width:c=600})=>{const d=a.useRef(null),i=a.useRef(null);return a.useEffect(()=>{if(d.current&&!i.current)return i.current=new Ja({container:d.current,panorama:t,touchmoveTwoFingers:!0,mousewheelCtrlKey:!0,navbar:["autorotate","zoom","fullscreen"]}),()=>{i.current&&(i.current.destroy(),i.current=null)}},[t]),e.jsx("div",{ref:d,style:{width:`${c}px`,height:`${o}px`,minHeight:`${o}px`},className:"mx-auto"})},Xs=({list:t,assetUrl:o,height:c=300,width:d=600})=>{a.useState(null),a.useRef(null);const i=t;return e.jsx("div",{className:"w-full h-full max-w-full mx-auto p-0 md:p-6 relative flex flex-col gap-12 overflow-y-scroll max-h-[630px]",children:i.map((n,u)=>e.jsx(ei,{image:o+n.attributes.url,width:d,height:c},`idx360-${u}`))})},ti=({listStories:t,assetUrl:o})=>{var x,E,S,C;const c=t,d=a.useRef(null),[i,n]=a.useState(null),[u,w]=a.useState(!1),k=l=>{n(l),w(!0)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"hidden md:block max-w-1120 relative",children:[e.jsx(Va,{modules:[Ha],width:1120,slidesPerView:1,spaceBetween:30,onBeforeInit:l=>{d.current=l},children:c.map((l,j)=>e.jsx(Wa,{className:"slider-wrapper text-left w-1120 max-w-1120",children:e.jsxs("div",{className:"bg-whiteBase flex",children:[e.jsx(pe,{className:"h-[480px] w-[640px] object-cover",src:l.attributes.image.data.attributes.url,alt:l.attributes.image.data.attributes.alternativeText||l.attributes.title||"Magazine feature image",assetUrl:o,priority:j===0}),e.jsxs("div",{className:"w-[480px] flex flex-col p-8 justify-center gap-12",children:[e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("div",{onClick:()=>k(l),children:e.jsx("h3",{className:"heading4-subheadline-leadingtrim font-medium capitalize",children:l.attributes.title})}),e.jsx("p",{className:"bodytext1-leadingtrim line-clamp-[7] pt-[2px]",children:l.attributes.shortDescription})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("hr",{className:"mx-0 border-grayscale-3"}),e.jsx("div",{className:"flex justify-between items-center",children:e.jsx("button",{className:"button-tertiary",onClick:()=>k(l),children:"Read Story"})})]})]})]})},j))}),(c==null?void 0:c.length)>1&&e.jsx("div",{className:"slider-navigation justify-between items-center",children:e.jsxs("div",{className:"flex gap-9",children:[e.jsx("button",{onClick:()=>{var l;return(l=d.current)==null?void 0:l.slidePrev()},className:"button-slider-prev"}),e.jsx("button",{onClick:()=>{var l;return(l=d.current)==null?void 0:l.slideNext()},className:"button-slider-next"})]})})]}),e.jsx("div",{className:"block md:hidden w-full",children:e.jsx("article",{className:"flex flex-col md:hidden gap-8 px-6",children:c.map((l,j)=>e.jsxs("div",{className:"bg-whiteBase flex flex-col mx-auto shadow-drop-shadow-base",children:[e.jsx(pe,{className:"h-[175px] md:h-[480px] w-full object-cover",src:l.attributes.image.data.attributes.url,alt:l.attributes.image.data.attributes.alternativeText||l.attributes.title||"Magazine feature image",assetUrl:o,priority:j===0}),e.jsxs("div",{className:"w-full flex flex-col px-3 py-4 justify-center gap-6 text-left",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(me,{to:`/magazine/${l.attributes.slug}`,children:e.jsx("h3",{className:"heading4-subheadline font-medium max-w-[288px] line-clamp-1 capitalize",children:l.attributes.title.toLowerCase()})}),e.jsx("p",{className:"bodytext1-leadingtrim line-clamp-3 pt-[2px]",children:l.attributes.shortDescription})]}),e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("div",{className:"hidden md:flex justify-between items-center",children:e.jsx("button",{onClick:()=>k(l),className:"button-style3",children:"Read Story"})}),e.jsxs("button",{onClick:()=>k(l),className:"button-more mx-0",children:["Read Story"," ",e.jsx("object",{data:"/icon/link-arrow.svg",width:"12",height:"12","aria-label":"arrow link",children:" "})]})]})]})]},l.id))})}),e.jsx($,{logo:"",header:"Story",isOpen:u,onClose:()=>w(!1),children:e.jsxs(e.Fragment,{children:[i&&e.jsx("div",{className:"popup-body-wrapper pb-[70px] pt-[24px]",children:e.jsxs("div",{className:"popup-body",children:[e.jsx(pe,{className:"max-h-[414px] object-cover w-full",src:i.attributes.image.data.attributes.url,alt:i.attributes.image.data.attributes.alternativeText||i.attributes.title||"Story feature image",assetUrl:o}),e.jsx("p",{className:"popup-offers-title",children:i.attributes.title}),e.jsx("div",{className:"popup-offers-bodytext",dangerouslySetInnerHTML:{__html:i.attributes.content}})]})}),((x=i==null?void 0:i.attributes)==null?void 0:x.ctaText)&&((E=i==null?void 0:i.attributes)==null?void 0:E.ctaUrl)&&e.jsx("div",{className:"popup-button-wrapper bg-whiteBase border-t border-[#E1DACB]",children:e.jsx(me,{to:`/magazine/${(S=i==null?void 0:i.attributes)==null?void 0:S.ctaUrl}`,className:"popup-button",children:(C=i==null?void 0:i.attributes)==null?void 0:C.ctaText})})]})})]})},Oi=()=>[{rel:"stylesheet",href:Da}],si=["bluekarmaseminyak","bluekarmaubud","bluekarmavillage"],Pi=({data:t,params:o})=>{var E,S,C,l,j,m,y,h,N,O,V,z,L,b,F,A,H,W,J,q;let c="at";Object.keys(o).forEach(Z=>{o[Z]&&(c+=`/${o[Z]}`)});const d=t==null?void 0:t.assetUrl,i=t&&(t!=null&&t.prop[0])&&((S=(E=t==null?void 0:t.prop[0])==null?void 0:E.attributes)!=null&&S.seo.seoTitle)?t.prop[0].attributes.seo.seoTitle:"Dijiwa Sanctuaries",n=t&&(t!=null&&t.prop[0])&&((l=(C=t==null?void 0:t.prop[0])==null?void 0:C.attributes)!=null&&l.seo.seoDescription)?t.prop[0].attributes.seo.seoDescription:"Dijiwa Sanctuaries",u=t&&((y=(m=(j=t==null?void 0:t.prop[0])==null?void 0:j.attributes)==null?void 0:m.seo)==null?void 0:y.seoCanonical)||(o!=null&&o.propSlug&&si.includes(o.propSlug)?`https://bluekarmasecrets.dijiwasanctuaries.com${c}`:`https://dijiwasanctuaries.com/${c}`),w=t!=null&&t.prop[0]&&((N=(h=t==null?void 0:t.prop[0])==null?void 0:h.attributes)!=null&&N.seo.seoRobots)?t.prop[0].attributes.seo.seoRobots:"index, follow",k=t!=null&&t.prop[0]&&((z=(V=(O=t==null?void 0:t.prop[0])==null?void 0:O.attributes)==null?void 0:V.seo)!=null&&z.keywords)?(t==null?void 0:t.prop[0])&&((F=(b=(L=t==null?void 0:t.prop[0])==null?void 0:L.attributes)==null?void 0:b.seo)==null?void 0:F.keywords):"",x=(q=(J=(W=(H=(A=t==null?void 0:t.prop[0])==null?void 0:A.attributes)==null?void 0:H.propertyLogoSecondary)==null?void 0:W.data)==null?void 0:J.attributes)!=null&&q.url?d+t.prop[0].attributes.propertyLogoSecondary.data.attributes.url:d+"/uploads/logo_dijiwa_mobile_color_5f421f9603.png";return[{title:i},{name:"description",content:n},{tagName:"link",rel:"canonical",href:u},{name:"robots",content:w},{name:"keywords",content:k},{property:"og:title",content:i},{property:"og:description",content:n},{property:"og:type",content:"website"},{property:"og:image",content:x},{property:"twitter:card",content:"summary_large_image"},{property:"twitter:title",content:i},{property:"twitter:description",content:n},{property:"twitter:image",content:x}]};let D=0;function Ii(){var Ae,Be,Fe,Me,Re,Ge,$e,ze,Ue,_e,Ve,He,We,Je,qe,Ze,Ke,Qe,Ye,Xe,et,tt,st,at,it,rt,lt,nt,ot,ct,dt,pt,mt,ut,xt,ht,ft,gt,bt,jt,yt,wt,Nt,vt,kt,St,Ct,Lt,Et,Tt,Ot,Pt,It,Dt,At,Bt,Ft,Mt,Rt,Gt,$t,zt,Ut,_t,Vt,Ht,Wt,Jt,qt,Zt,Kt,Qt,Yt,Xt,es,ts,ss,as,is,rs,ls,ns,os,cs,ds,ps,ms,us,xs,hs,fs,gs,bs,js,ys,ws,Ns,vs,ks,Ss,Cs,Ls,Es,Ts,Os,Ps,Is,Ds,As,Bs,Fs;const{prop:t,rooms:o,offers:c,facilities:d,experiences:i,assetUrl:n,env:u,csrs:w,stories:k,utm:x,csrSlug:E}=Pa(),{setImageUrl:S,setImageUrlSecoindary:C,setUrlWA:l,setFloatingBookLink:j,setIsComingSoon:m,setPropertiesGlobal:y,setMaxAdult:h,setMaxChild:N,setWaPopup:O}=$a(),V=Ia();a.useEffect(()=>{const s=x&&Object.values(x).some(r=>r!==null&&r!=="");typeof window<"u"&&s&&sessionStorage.setItem("utmData",JSON.stringify(x))},[x]);const z=(Me=(Fe=(Be=(Ae=t[0].attributes)==null?void 0:Ae.propertyLogoPrimary)==null?void 0:Be.data)==null?void 0:Fe.attributes)!=null&&Me.url?ae(n,t[0].attributes.propertyLogoPrimary.data.attributes.url):"",L=(ze=($e=(Ge=(Re=t[0].attributes)==null?void 0:Re.propertyLogoSecondary)==null?void 0:Ge.data)==null?void 0:$e.attributes)!=null&&ze.url?ae(n,t[0].attributes.propertyLogoSecondary.data.attributes.url):"";a.useEffect(()=>{var Rs,Gs,$s,zs,Us,_s,Vs,Hs;z!==""&&S(z),L!==""&&C(L);const s=(Rs=t[0].attributes)!=null&&Rs.propertyWhatsappUrl?t[0].attributes.propertyWhatsappUrl:"";l(s);const r=((Gs=t[0].attributes)==null?void 0:Gs.waPopup)!==void 0?t[0].attributes.waPopup:!0;O(r);const p=($s=t[0].attributes)!=null&&$s.isComingSoon?t[0].attributes.isComingSoon:!1;m(p),H(p);const g=(zs=t[0].attributes)!=null&&zs.propertyDisplayName?(Us=t[0].attributes)==null?void 0:Us.propertyDisplayName:"";y(g);const te=(_s=t[0].attributes)!=null&&_s.propertyBookingLink?t[0].attributes.propertyBookingLink:"https://booking.dijiwasanctuaries.com/";j(te);const se=((Vs=t[0].attributes)==null?void 0:Vs.bookingChildLimit)!==void 0&&t[0].attributes.bookingChildLimit!==null?t[0].attributes.bookingChildLimit:1,Ms=((Hs=t[0].attributes)==null?void 0:Hs.bookingAdultLimit)!==void 0&&t[0].attributes.bookingAdultLimit!==null?t[0].attributes.bookingAdultLimit:7;h(Ms),N(se)},[t,S,C,l,O,m,y,j,h,N]);const[b,F]=a.useState(!1),[A,H]=a.useState(!1),[W,J]=a.useState(1),[q,Z]=a.useState(0),[ue,xe]=a.useState(""),[he,fe]=a.useState(""),[ea,ta]=a.useState(null),[sa,aa]=a.useState(0),[f,ia]=a.useState("all");a.useState("all");const[P,K]=a.useState(!1),Q=(Ue=t[0].attributes)!=null&&Ue.propertyDisplayName?(_e=t[0].attributes)==null?void 0:_e.propertyDisplayName:"",re=(He=(Ve=t[0].attributes)==null?void 0:Ve.information)==null?void 0:He.heroVideo.data,ge=re!=null,U=(Je=(We=t[0].attributes)==null?void 0:We.information)==null?void 0:Je.heroImage,ra=(U==null?void 0:U.data)&&U.data.length>0,la=(Ze=(qe=t[0].attributes)==null?void 0:qe.information)==null?void 0:Ze.heroBigTagline,na=(Qe=(Ke=t[0].attributes)==null?void 0:Ke.information)==null?void 0:Qe.heroDescription,oa=(Xe=(Ye=t[0].attributes)==null?void 0:Ye.information)!=null&&Xe.heroSmallTagline?(tt=(et=t[0].attributes)==null?void 0:et.information)==null?void 0:tt.heroSmallTagline:Q,be=(at=(st=t[0].attributes)==null?void 0:st.information)==null?void 0:at.headingTwo,le=(rt=(it=t[0].attributes)==null?void 0:it.information)!=null&&rt.paragraphOne?(nt=(lt=t[0].attributes)==null?void 0:lt.information)==null?void 0:nt.paragraphOne:[],ne=(ct=(ot=t[0].attributes)==null?void 0:ot.information)!=null&&ct.paragraphTwo?(pt=(dt=t[0].attributes)==null?void 0:dt.information)==null?void 0:pt.paragraphTwo:[],ca=(ut=(mt=t[0].attributes)==null?void 0:mt.information)!=null&&ut.paragraphRooms?(ht=(xt=t[0].attributes)==null?void 0:xt.information)==null?void 0:ht.paragraphRooms:"Each room is thoughtfully designed to offer more than just a place to rest, it's your personal retreat, inviting you to unwind and reconnect with the calm and beauty of your surroundings.",da=(gt=(ft=t[0].attributes)==null?void 0:ft.information)!=null&>.paragraphExperiences?(jt=(bt=t[0].attributes)==null?void 0:bt.information)==null?void 0:jt.paragraphExperiences:"Explore curated experiences that connect you with the authentic spirit of your destination. From wellness and cultural discoveries to culinary adventures, each experience is designed to create meaningful moments and lasting memories.",pa=(wt=(yt=t[0].attributes)==null?void 0:yt.information)!=null&&wt.paragraphFacilities?(vt=(Nt=t[0].attributes)==null?void 0:Nt.information)==null?void 0:vt.paragraphFacilities:"Experience carefully curated facilities that blend authentic craftsmanship with modern comfort in every sanctuary. Enjoy intimate dining, rejuvenating spa treatments, beautiful pools, and cultural experiences designed to create your perfect retreat.",je=ne[0].children[0].text!=="",ye=(kt=t[0].attributes)!=null&&kt.additionalContact?(St=t[0].attributes)==null?void 0:St.additionalContact:[],ma=(Ct=t[0].attributes)!=null&&Ct.propertyBookingLink?t[0].attributes.propertyBookingLink:"https://booking.dijiwasanctuaries.com/",B=(Et=(Lt=t[0].attributes)==null?void 0:Lt.information)==null?void 0:Et.propertyGallery.data,we=B!=null,oe=(Ot=(Tt=t[0].attributes)==null?void 0:Tt.information)==null?void 0:Ot.property360Gallery.data,Ne=oe!=null,ce=a.useRef(null),[v,ua]=a.useState(!0),xa=((Pt=t[0].attributes)==null?void 0:Pt.bookingChildLimit)!==void 0&&t[0].attributes.bookingChildLimit!==null?t[0].attributes.bookingChildLimit:1,ha=((It=t[0].attributes)==null?void 0:It.bookingAdultLimit)!==void 0&&t[0].attributes.bookingAdultLimit!==null?t[0].attributes.bookingAdultLimit:7,fa=()=>{ce.current&&ce.current.scrollIntoView({behavior:"smooth"})},[ai,ve]=a.useState(!1),[ii,ke]=a.useState(!1),[M,ga]=a.useState([]),[_,ba]=a.useState([]),[ja,Se]=a.useState(!1),[ya,Ce]=a.useState(!1),[R,Le]=a.useState(""),[G,wa]=a.useState(0);a.useEffect(()=>{Le("opacity-0 animated-dissolve backward");const s=setTimeout(()=>{Le(""),wa(r=>r+1)},1e3);return()=>clearTimeout(s)},[f]);let I=(s=>{const r={};return s.forEach(p=>{const g=p.attributes.categoryExperience.data.attributes.categoryName;r[g]||(r[g]=[]),r[g].push(p)}),r})(i);async function Ee(s){if(!u.JWT_SECRET||!u.API_ENDPOINT)return{error:"API configuration not found"};const r=new Headers;r.set("Content-Type","application/json"),r.set("Authorization",`Bearer ${u.JWT_SECRET}`);try{const p=await fetch(`${u.API_ENDPOINT}${s}`,{method:"GET",headers:r});if(!p.ok)throw new Error("Failed to fetch data offers");return{data:await p.json()}}catch(p){return{error:p.message}}}const Y=async s=>{ve(!0);const r=`property-experiences?filters[experienceSlug][$eq]=${s}&populate[0]=experienceImage&populate[1]=property.propertyLogoSecondary`,{data:p,error:g}=await Ee(r);ve(!1),!g&&(ga(p.data[0]),Se(!0))},Te=async s=>{ke(!0);const r=`property-offers?filters[offerSlug][$eq]=${s}&populate[0]=offerFeaturedImage&populate[1]=property.propertyLogoSecondary`,{data:p,error:g}=await Ee(r);ke(!1),!g&&(ba(p.data[0]),Ce(!0))};a.useEffect(()=>{setTimeout(()=>{ua(!1)},2e3)},[]);const X=s=>{ia(s),K(!1)},Na=a.useMemo(()=>Object.keys(I).map((s,r)=>s?e.jsx(Ws.Fragment,{children:e.jsx("button",{className:`tabitems ${f===s?"active":""}`,onClick:()=>X(s),children:s})},r):null),[f,I,i]),va=a.useMemo(()=>f!=="all"?v?e.jsx(T,{}):e.jsx("div",{className:R,children:e.jsx(ie,{onDetailsClick:Y,assetUrl:n,list:I[f]})},G):v?e.jsx(T,{}):e.jsx("div",{className:R,children:e.jsx(ie,{onDetailsClick:Y,assetUrl:n,list:i})},G),[f,v,G,R,I,i]),ka=a.useMemo(()=>Object.keys(I).map((s,r)=>s?e.jsx(Ws.Fragment,{children:e.jsx("button",{className:`${f===s?"active":""}`,onClick:()=>X(s),children:s})},r):null),[f,I,i]),Sa=a.useMemo(()=>f!=="all"?v?e.jsx(T,{}):e.jsx("div",{className:R,children:e.jsx(ie,{onDetailsClick:Y,assetUrl:n,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,list:I[f]})},G):v?e.jsx(T,{}):e.jsx("div",{className:R,children:e.jsx(ie,{onDetailsClick:Y,assetUrl:n,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,list:i})},G),[f,v,G,R,I,i]),[Oe,ee]=a.useState(!1);a.useState(!1);const[Ca,Pe]=a.useState(!1),[La,Ie]=a.useState(!1),[Ea,De]=a.useState(!1);a.useEffect(()=>(P?(D===0&&document.body.classList.add("overflow-hidden"),D+=1):D>0&&(D-=1,D===0&&document.body.classList.remove("overflow-hidden")),()=>{D>0&&(D-=1,D===0&&document.body.classList.remove("overflow-hidden"))}),[P]);const Ta=a.useCallback(s=>{let r="";const p=typeof window<"u"&&sessionStorage.getItem("utmData");return p?r=Qs(s,JSON.parse(p)):r=Qs(s,x),r},[x]),Oa=V.pathname.startsWith("/at"),de=(Ft=(Bt=(At=(Dt=t[0])==null?void 0:Dt.attributes)==null?void 0:At.announcement)==null?void 0:Bt.data)==null?void 0:Ft.attributes;return a.useEffect(()=>{var te,se;const s=(se=(te=t[0])==null?void 0:te.attributes)==null?void 0:se.schemaMarkup;if(!s)return;let r=!1,p=null;const g=document.createElement("script");try{p=JSON.parse(s),typeof p=="object"&&p!==null&&(r=!0)}catch{r=!1}return r&&(g.type="application/ld+json",g.innerHTML=s,document.head.appendChild(g)),()=>{document.head.removeChild(g)}},[t]),e.jsx(e.Fragment,{children:e.jsxs("main",{className:"pt-[48px] md:pt-[64px] animate-dissolve",children:[e.jsx(za,{isOpen:Oe,onClose:()=>ee(!1),children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"popup-wrapper",children:[e.jsxs("div",{className:"popup-header border-b border-grayscale-3",children:[e.jsx("img",{className:"max-w-[128px] h-10 object-contain",src:"/logo/logo-dijiwa.svg"}),e.jsx("p",{className:"text-center heading5-subtitle ",children:"Select your date"}),e.jsx("button",{className:"button-close",onClick:()=>ee(!1),children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M16 2.65165L13.3483 0L8.00002 5.34833L2.65165 0L0 2.65165L5.34836 7.99998L0 13.3483L2.65165 16L8.00002 10.6517L13.3483 16L16 13.3483L10.6516 7.99998L16 2.65165Z",fill:"#312E28"})})})]}),e.jsxs("div",{className:"popup-body justify-center items-center py-12",children:[e.jsx(Ua,{fromValue:ue,setFromValue:xe,toValue:he,setToValue:fe}),e.jsx("div",{className:"flex w-full justify-end max-w-[732px]",children:e.jsx("button",{className:"button-primary",onClick:()=>ee(!1),children:"APPLY"})})]})]})})}),de&&e.jsx("div",{className:"mt-4 lg:mt-0",children:e.jsx(Ka,{title:de.title,detail:de.anouncement_details})}),e.jsx(Ra,{videoUrl:ge?n+re.attributes.url:ra?U:"",isVideo:ge,heading:la,subheading:oa,description:na,scrollToRef:fa,fallbackImage:"/mathis/bleu-mathis.webp",assetUrl:n,isAtRoute:!!Oa,awards:(Mt=t[0].attributes)==null?void 0:Mt.awards,env:u,children:!A&&e.jsx(Ga,{setIsDatePopOpen:ee,isDatePopOpen:Oe,logoUrl:L,adult:W,child:q,setAdult:J,setChild:Z,fromValue:ue,toValue:he,setFromValue:xe,setToValue:fe,activeIndex:ea,setActiveIndex:ta,selectedIndex:sa,setSelectedIndex:aa,propBookLink:ma,maxAdult:ha,maxChild:xa})}),e.jsx("section",{className:`${b?"pb-0":""} section-wrapper-primary ${A?"md:pt-[80px]":"md:pt-[144px]"}`,children:e.jsxs("div",{className:"section-content-heading items-center",children:[e.jsx("span",{className:"golden-overline",children:"WELCOME TO"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:Q}),le.slice(0,1).map((s,r)=>e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:s.children[0].text},r)),b&&le.slice(1).map((s,r)=>e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim animate-dissolve",children:s.children[0].text},r+1)),le.length>1&&e.jsx(e.Fragment,{children:!b&&e.jsxs("button",{className:"hidden md:flex w-20 h-10 px-3 bodytext2 justify-center items-center gap-1 bg-grayscale-4 rounded-default text-grayscale-2",onClick:()=>F(!b),children:[b?"":"More"," ",e.jsx("object",{className:"mt-[3px]",data:"/icon/chevron-down.png",width:"8",height:"8"})]})}),!b&&e.jsxs("button",{className:"flex w-20 h-10 px-3 md:hidden bodytext2-leadingtrim justify-center items-center gap-1 bg-grayscale-4 rounded-default text-grayscale-2",onClick:()=>F(!b),children:["More"," ",e.jsx("object",{className:"mt-[3px]",data:"/icon/chevron-down.png",width:"8",height:"8"})]})]})}),e.jsx("section",{className:`${b?"animate-slideDown flex":"animate-slideUp hidden"} section-wrapper-primary md:hidden pt-[48px]`,children:e.jsxs("div",{className:`flex flex-col gap-6 text-center max-w-full py-6 md:max-w-1120 md:gap-12 md:py-0`,children:[e.jsx("p",{className:"heading3-headline-leadingtrim",children:be}),we&&e.jsx("div",{className:"relative flex h-[240px] w-full overflow-hidden",children:e.jsx(Ks,{assetUrl:n,list:B})}),e.jsx("div",{className:`max-w-[--section-mobile] flex flex-col gap-4 mx-auto md:max-w-[736px]`,children:ne.map((s,r)=>e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:s.children[0].text},r))}),Ne&&e.jsxs("button",{className:"max-w-fit mx-auto bg-grayscale-4 px-6 py-2 text-grayscale-2 rounded-md border border-grayscale-2 flex items-center gap-2",onClick:()=>De(!0),children:["360 Photos",e.jsx("object",{className:"-mt-1",data:"/icon/gallery.svg",width:"12",height:"12",children:" "})]}),b&&e.jsxs("button",{className:" mx-auto flex w-20 h-10 px-3 md:hidden bodytext2-leadingtrim justify-center items-center gap-1 bg-grayscale-4 rounded-default text-grayscale-2",onClick:()=>F(!b),children:["Less"," ",e.jsx("object",{className:`${b?"rotate-180":""} transition-all`,data:"/icon/chevron-down.png",width:"8",height:"8"})]})]})}),e.jsx("section",{className:"hidden md:flex section-wrapper-primary",children:e.jsxs("div",{className:`flex flex-col gap-4 text-center md:max-w-1120 md:w-full md:gap-12 md:flex-row-reverse md:justify-between md:items-center`,children:[we&&e.jsxs("div",{className:`relative flex h-[360px] w-full ${je?"max-w-[640px]":"max-w-full"}`,children:[e.jsx("img",{src:n+B[0].attributes.url,alt:B[0].attributes.alternativeText?B[0].attributes.alternativeText:Q,className:"w-full object-cover"}),e.jsxs("div",{className:"flex absolute bottom-3 right-3",children:[B.length>1&&e.jsxs("button",{className:"bg-grayscale-4 px-6 py-2 text-grayscale-2 rounded-md border border-grayscale-2 flex items-center gap-2",onClick:()=>Pe(!0),children:["See All Photos",e.jsx("object",{className:"-mt-1",data:"/icon/gallery.svg",width:"12",height:"12",children:" "})]}),Ne&&e.jsxs("button",{className:"bg-grayscale-4 px-6 py-2 text-grayscale-2 rounded-md border border-grayscale-2 flex items-center gap-2",onClick:()=>Ie(!0),children:["360 Photos",e.jsx("object",{className:"-mt-1",data:"/icon/gallery.svg",width:"12",height:"12",children:" "})]})]})]}),je&&e.jsxs("div",{className:`max-w-[--section-mobile] flex flex-col gap-4 mx-auto md:max-w-[352px] md:text-left`,children:[e.jsx("h3",{className:"heading3-headline",children:be}),ne.map((s,r)=>e.jsx("p",{className:"bodytext1",children:s.children[0].text},r))]})]})}),e.jsx($,{logo:L,csutomWidth:"md:w-screen md:max-w-[1184px]",header:"Gallery",isOpen:Ca,onClose:()=>Pe(!1),children:e.jsx(e.Fragment,{children:e.jsx("div",{className:"popup-body justify-center items-center",children:e.jsx(Ks,{assetUrl:n,list:B})})})}),e.jsx($,{logo:L,customWrapper:"w-full max-w-[1140px]",csutomWidth:"md:w-full md:max-w-[90vw]",header:"Gallery 360",isOpen:La,onClose:()=>Ie(!1),children:e.jsx(e.Fragment,{children:e.jsx("div",{className:"popup-body justify-center items-center",children:e.jsx(Xs,{assetUrl:n,list:oe,width:920,height:500})})})}),e.jsx($,{logo:L,csutomWidth:"md:w-full md:max-w-[90vw]",header:"Gallery 360",isOpen:Ea,onClose:()=>De(!1),children:e.jsx(e.Fragment,{children:e.jsx("div",{className:"popup-body justify-center items-center py-[32px] md:py-0",children:e.jsx(Xs,{assetUrl:n,list:oe,width:330,height:300})})})}),!A&&e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"section-wrapper-secondary",children:e.jsxs("div",{className:"section-content-with-tabs",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:"A Space To Call Home"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:"Our Rooms"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:ca})]}),e.jsx("div",{className:"section-content-desktop",children:e.jsx("div",{className:"section-slider-wrapper",children:o.length>0?v?e.jsx(T,{}):e.jsx(qs,{assetUrl:n,offsetNumber:0,width:448,list:o}):e.jsx("div",{className:"text-center py-4",children:"No rooms available"})})}),e.jsx("div",{className:"section-content-mobile",children:e.jsx("div",{className:"section-slider-wrapper",children:o.length>0?v?e.jsx(T,{}):e.jsx(qs,{assetUrl:n,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,list:o}):e.jsx("div",{className:"text-center py-4",children:"No rooms available"})})})]})}),c.length>0&&e.jsx("section",{className:"section-wrapper-tertiary",id:"special-offers",ref:ce,children:e.jsxs("div",{className:"section-content-with-tabs",children:[e.jsxs("div",{className:"section-content-heading",children:[(($t=(Gt=(Rt=t[0].attributes)==null?void 0:Rt.information)==null?void 0:Gt.exclusiveSurprise)==null?void 0:$t.tag)&&e.jsx("span",{className:"golden-overline",children:(_t=(Ut=(zt=t[0].attributes)==null?void 0:zt.information)==null?void 0:Ut.exclusiveSurprise)==null?void 0:_t.tag}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:((Wt=(Ht=(Vt=t[0].attributes)==null?void 0:Vt.information)==null?void 0:Ht.exclusiveSurprise)==null?void 0:Wt.title)??"Exclusive Surprises"}),((Zt=(qt=(Jt=t[0].attributes)==null?void 0:Jt.information)==null?void 0:qt.exclusiveSurprise)==null?void 0:Zt.description)&&e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:(Yt=(Qt=(Kt=t[0].attributes)==null?void 0:Kt.information)==null?void 0:Qt.exclusiveSurprise)==null?void 0:Yt.description})]}),e.jsx("div",{className:"section-content-desktop",children:e.jsx("div",{className:"section-slider-wrapper",children:c.length>0?v?e.jsx(T,{}):e.jsx(Zs,{onDetailsClick:Te,hasMore:!1,assetUrl:n,listOffer:c}):e.jsx("div",{className:"text-center py-4",children:"No offers available"})})}),e.jsx("div",{className:"section-content-mobile",children:c.length>0?v?e.jsx(T,{}):e.jsx(Zs,{onDetailsClick:Te,hasMore:!1,assetUrl:n,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,listOffer:c}):e.jsx("div",{className:"text-center py-4",children:"No offers available"})})]})}),e.jsx($,{logo:L,header:"Offers",isOpen:ya,onClose:()=>Ce(!1),children:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"popup-body-wrapper pb-[70px] pt-[24px]",children:e.jsxs("div",{className:"popup-body",children:[e.jsx("img",{className:"max-h-[414px] object-cover",src:ae(n,(ss=(ts=(es=(Xt=_.attributes)==null?void 0:Xt.offerFeaturedImage)==null?void 0:es.data)==null?void 0:ts.attributes)==null?void 0:ss.url)}),e.jsx("p",{className:"popup-offers-overline",children:(ls=(rs=(is=(as=_.attributes)==null?void 0:as.property)==null?void 0:is.data)==null?void 0:rs.attributes)==null?void 0:ls.propertyDisplayName}),e.jsx("p",{className:"popup-offers-title",children:(ns=_.attributes)==null?void 0:ns.offerName}),e.jsx("div",{className:"popup-offers-bodytext",dangerouslySetInnerHTML:{__html:(os=_.attributes)==null?void 0:os.offerLongDesc}})]})}),e.jsx("div",{className:"popup-button-wrapper bg-whiteBase border-t border-[#E1DACB]",children:e.jsx("a",{href:Ta((cs=_.attributes)==null?void 0:cs.ctaUrl),className:"popup-button",children:"Book Now"})})]})},"offers"),e.jsx(_a,{}),w&&(w==null?void 0:w.length)>0&&e.jsx(Xa,{csrs:w,env:u,assetUrl:n,initialCsrSlug:E}),i.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("section",{className:" section-wrapper-primary",id:"experiences",children:e.jsxs("div",{className:"section-content-with-tabs",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:"incredible deals"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:"Experiences"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:da})]}),e.jsxs("div",{className:"section-content-desktop",children:[e.jsx("div",{className:"destination-tabs tab-wrapper justify-center",children:e.jsxs(Za,{children:[e.jsx("button",{className:`tabitems ${f==="all"?"active":""}`,onClick:()=>X("all"),children:"All Experiences"}),Na]},"tablist-prop")}),e.jsx("div",{className:"section-slider-wrapper",children:va})]}),e.jsxs("div",{className:"section-content-mobile",children:[e.jsxs("button",{className:"tabitems-mobile",onClick:()=>K(!P),children:[f=="all"?"All Experiences":f," ",e.jsx("img",{src:"/icon/chevron-bottom-gold.svg",className:"w-4 h-4",alt:"bottom-gold"})]}),e.jsx("div",{className:"section-slider-wrapper",children:Sa})]})]})}),e.jsx($,{logo:L,header:"Experiences",isOpen:ja,onClose:()=>Se(!1),children:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"popup-body-wrapper pb-[70px] pt-[24px]",children:e.jsxs("div",{className:"popup-body",children:[e.jsx("img",{className:"max-h-[414px] object-cover",src:ae(n,(us=(ms=(ps=(ds=M.attributes)==null?void 0:ds.experienceImage)==null?void 0:ps.data)==null?void 0:ms.attributes)==null?void 0:us.url)}),e.jsx("p",{className:"popup-offers-overline",children:(gs=(fs=(hs=(xs=M.attributes)==null?void 0:xs.property)==null?void 0:hs.data)==null?void 0:fs.attributes)==null?void 0:gs.propertyDisplayName}),e.jsx("p",{className:"popup-offers-title",children:(bs=M.attributes)==null?void 0:bs.experienceName}),e.jsx("div",{className:"popup-offers-bodytext",dangerouslySetInnerHTML:{__html:(js=M.attributes)==null?void 0:js.experienceAbout}})]})}),e.jsx("div",{className:"popup-button-wrapper bg-whiteBase border-t border-[#E1DACB]",children:e.jsx("a",{href:(ys=M.attributes)==null?void 0:ys.ctaUrl,className:"popup-button",children:(ws=M.attributes)==null?void 0:ws.ctaText})})]})})]}),e.jsx("section",{className:"section-wrapper-primary",id:"facilities",children:e.jsxs("div",{className:"section-content-with-tabs",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:"restaurant, spa and facilities"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:"Facilities"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:pa})]}),e.jsx("div",{className:`hidden md:flex flex-col gap-12`,children:d.length>0?v?e.jsx(T,{}):e.jsx(Js,{categoryFacility:"all",assetUrl:n,offsetNumber:0,list:d}):e.jsx("div",{className:"text-center py-4",children:"No rooms available"})}),e.jsx("div",{className:"w-full flex flex-col md:hidden gap-8",children:d.length>0?v?e.jsx(T,{}):e.jsx(Js,{categoryFacility:"all",assetUrl:n,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,list:d}):e.jsx("div",{className:"text-center py-4",children:"No rooms available"})})]})})]}),e.jsx("section",{className:"section-wrapper-tertiary",children:e.jsxs("div",{className:"section-content gap-[48px]",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline text-[12px]",children:"Our Stories"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:Q})]}),e.jsx(ti,{assetUrl:n,listStories:k})]})}),e.jsx("section",{className:"section-wrapper-tertiary py-12 md:pb-20 pt-12 md:pt-20 gap-6 p-6",id:"contact",children:e.jsxs("div",{className:`flex flex-col max-w-1120 justify-between gap-6 mx-auto w-full md:flex-row md:py-20 md:gap-0 `,children:[e.jsxs("div",{className:"flex flex-col gap-12",children:[e.jsx("h3",{className:"heading3-headline-leadingtrim text-black",children:"Hotel Information"}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("p",{className:"heading4-subheadline capitalize font-medium",children:"Contact Us"}),e.jsxs("div",{className:"flex flex-col gap-4 md:gap-0",children:[e.jsxs("a",{href:(Ns=t[0].attributes)==null?void 0:Ns.urlPhone,className:`heading4-subheadline-leadingtrim-rev font-normal bg-grayscale-3 border border-grayscale-2 py-3 px-3 text-grayscale-2 h-10 md:border-0 md:bg-[#00ffff00] md:py-0 md:px-0 md:h-10 flex gap-1 items-center`,children:[e.jsx(Ys,{icon:"phone",size:20})," ",(vs=t[0].attributes)==null?void 0:vs.displayPhone]}),ye.length>0&&e.jsx(e.Fragment,{children:ye.map((s,r)=>e.jsxs("a",{href:s.contactURL,className:`heading4-subheadline-leadingtrim capitalize font-normal bg-grayscale-3 border border-grayscale-2 py-3 px-3 text-grayscale-2 h-10 md:border-0 md:bg-[#00ffff00] md:py-0 md:px-0 md:h-10 `,children:[s.contactDesc,":"," ",e.jsx("span",{className:s.contactDesc==="E"?"lowercase":"",children:s.contactDisplay})]},r))}),e.jsxs("a",{href:"mailto:"+((ks=t[0].attributes)==null?void 0:ks.displayEmail),className:`heading4-subheadline-leadingtrim-rev font-normal bg-grayscale-3 border border-grayscale-2 py-3 px-3 text-grayscale-2 h-10 md:border-0 md:bg-[#00ffff00] md:py-0 md:px-0 md:h-10 flex gap-1 items-center`,children:[e.jsx(Ys,{icon:"mail",size:20})," ",e.jsx("span",{className:"lowercase",children:(Ss=t[0].attributes)==null?void 0:Ss.displayEmail})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-6 items-start",children:[e.jsx("p",{className:"heading4-subheadline capitalize font-medium",children:"Address"}),((Cs=t[0].attributes)==null?void 0:Cs.linkGoogleMap)&&e.jsxs(e.Fragment,{children:[e.jsx("iframe",{className:"flex md:hidden",src:t[0].attributes.embedGoogleMaps,width:"100%",height:"312",style:{border:0},allowFullScreen:!1,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",onError:s=>{s.target.style.display="none",document.getElementById("map-fallback").style.display="block"}}),e.jsx("div",{id:"map-fallback",style:{display:"none"},children:e.jsxs("p",{children:["To see the map, please"," ",e.jsx("a",{href:t[0].attributes.linkGoogleMap,target:"_blank",rel:"noopener noreferrer",children:"open it in a new tab"}),"."]})})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("p",{className:"heading4-subheadline-leadingtrim capitalize text-grayscale-1 font-medium",children:(Ls=t[0].attributes)==null?void 0:Ls.propertyDisplayName}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim max-w-[352px] text-grayscale-1",children:(Es=t[0].attributes)==null?void 0:Es.displayAddress})]}),((Ts=t[0].attributes)==null?void 0:Ts.linkGoogleMap)&&e.jsxs("a",{href:(Os=t[0].attributes)==null?void 0:Os.linkGoogleMap,className:"button-more mx-0",children:[" ","Get Direction"," ",e.jsx("object",{className:"mt-[3px]",data:"/icon/link-arrow.svg",width:"12",height:"12","aria-label":"arrow link"})]})]}),e.jsx("hr",{className:"border-sundanceGold-base w-max-[352px]"}),e.jsxs("div",{className:"flex w-full justify-start gap-6",children:[e.jsxs("a",{href:(Ps=t[0].attributes)==null?void 0:Ps.propertyIG,rel:"nofollow",target:"_blank","aria-label":"Instagram",children:[e.jsx("span",{className:"sr-only",children:"Instagram"}),e.jsx("img",{src:"/icon/instagram.svg",alt:"instagram",className:"h-10 w-10"})]}),e.jsxs("a",{href:(Is=t[0].attributes)==null?void 0:Is.propertyFB,rel:"nofollow",target:"_blank","aria-label":"Facebook",children:[e.jsx("span",{className:"sr-only",children:"Facebook"}),e.jsx("img",{src:"/icon/facebook.svg",alt:"instagram",className:"h-10 w-10"})]})]})]}),e.jsx("div",{className:"w-full max-w-[532px]",children:((Ds=t[0].attributes)==null?void 0:Ds.linkGoogleMap)&&e.jsxs(e.Fragment,{children:[e.jsx("iframe",{className:"hidden md:flex",src:t[0].attributes.embedGoogleMaps,width:"100%",height:"450",style:{border:0},allowFullScreen:!1,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",onError:s=>{s.target.style.display="none",document.getElementById("map-fallback").style.display="block"}}),e.jsx("div",{id:"map-fallback",style:{display:"none"},children:e.jsxs("p",{children:["To see the map, please"," ",e.jsx("a",{href:t[0].attributes.linkGoogleMap,target:"_blank",rel:"noopener noreferrer",children:"open it in a new tab"}),"."]})})]})})]})}),!A&&e.jsxs(e.Fragment,{children:[((Bs=(As=t[0].attributes)==null?void 0:As.faq)==null?void 0:Bs.length)>0&&e.jsx("section",{className:"section-wrapper-tertiary py-12 md:pb-20 md:pt-20 gap-6 p-6",id:"faq",children:e.jsxs("div",{className:`flex flex-col max-w-1120 justify-between gap-6 mx-auto w-full md:flex-row md:py-20 md:gap-0 `,children:[e.jsxs("div",{className:"flex flex-col gap-12 max-w-[352px]",children:[e.jsx("h3",{className:"heading3-headline-leadingtrim text-black text-[24px]",children:"FAQS"}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("p",{className:"bodytext1-leadingtrim",children:"We strive to ensure that your stay with us is as pleasant and enjoyable as possible"}),e.jsx("div",{className:"flex flex-col gap-4 md:gap-0",children:e.jsxs(me,{to:`/at/${(Fs=t[0].attributes)==null?void 0:Fs.propertySlug}/contact-us`,className:"button-more w-fit mx-0",children:["More",e.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8 0L6.93925 1.06075L9.12875 3.25H0V4.75H9.12875L6.93925 6.93925L8 8L12 4L8 0Z",fill:"#625C51"})})]})})]})]}),e.jsx("div",{className:"w-full max-w-[640px]",children:e.jsx("div",{className:"flex flex-col justify-start animate-dissolve",children:t[0].attributes.faq.length>0&&e.jsxs("section",{className:" w-full flex flex-col pb-6 justify-center align-middle",children:[e.jsx("hr",{className:"w-full border-b border-grayscale-3 mb-0 md:mb-6"}),t[0].attributes.faq.slice(0,5).map(s=>e.jsxs("div",{className:"relative overflow-hidden mb-4",children:[e.jsx("input",{type:"checkbox",className:"peer absolute top-0 inset-x-0 w-full h-14 opacity-0 z-10 cursor-pointer"}),e.jsx("div",{className:"h-12 max-w-[340px] w-full md:max-w-full md:pl-5 flex flex-col justify-center items-start gap-3",children:e.jsx("span",{className:"bodytext2-leadingtrim font-normal md:font-medium md:heading4-subheadline-leadingtrim !capitalize",children:s.faqTitle.toLowerCase()})}),e.jsx("div",{className:"absolute top-4 right-3 transition-transform duration-500 -rotate-90 peer-checked:rotate-90",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),e.jsx("div",{className:"pl-5 overflow-hidden peer-checked:overflow-visible peer-checked:animate-dissolve bg-white transition-all duration-500 max-h-0 peer-checked:max-h-full text-left",children:e.jsx("p",{className:"bodytext2-leadingtrim font-normal md:bodytext1-leadingtrim py-4 md:py-2",children:s.faqContent})}),e.jsx("hr",{className:"w-full border-b border-grayscale-3 mt-0 md:mt-6"})]},s.id))]})})})]})}),P&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30",onClick:()=>K(!P)}),e.jsx("div",{className:`fixed h-[400px] inset-x-0 bottom-0 transform transition-transform duration-300 ease-in-out z-30 ${P?"translate-y-0":"translate-y-full"}`,children:P&&e.jsxs("div",{className:"bottom-popup",children:[e.jsxs("div",{className:"header flex justify-between items-center p-2 border-b border-b-sundanceGold-base",children:[e.jsx("p",{children:"Destination"}),e.jsx("button",{className:"bg-grayscale-3 p-[6px]",onClick:()=>K(!P),children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M16 2.65165L13.3483 0L8.00002 5.34833L2.65165 0L0 2.65165L5.34836 7.99998L0 13.3483L2.65165 16L8.00002 10.6517L13.3483 16L16 13.3483L10.6516 7.99998L16 2.65165Z",fill:"#312E28"})})})]}),e.jsxs("div",{className:"bodycontent grid grid-cols-1 justify-center items-center max-h-[424px] overflow-y-auto",children:[e.jsx("button",{className:`${f==="all"?"active":""}`,onClick:()=>X("all"),children:"All Experiences"}),ka]})]})})]})]})})}function Di(){const t=Aa(),o=Ba("routes/at.$propSlug");return Fa(t)?t.status===404?e.jsx(qa,{data:o}):e.jsxs("div",{children:[e.jsxs("h1",{children:[t.status," ",t.statusText]}),e.jsx("p",{children:t.data})]}):t instanceof Error?e.jsx("section",{className:"bg-whiteBase flex flex-col py-0 md:py-12 justify-center align-middle gap-6 px-[24px]",children:e.jsxs("div",{className:"flex flex-col justify-center items-center gap-6",children:[e.jsx("h2",{className:"heading4-subheadline capitalize",children:"Something went wrong"}),e.jsxs("p",{className:"bodytext2-leadingtrim",children:["If this issues persist, you can directly sent email to"," ",e.jsx("a",{className:"hover:text-sundanceGold-base",href:"mailto:info@dijiwasanctuaries.com",children:"info@dijiwasanctuaries.com"})]}),e.jsxs("p",{className:"bodytext2-leadingtrim",children:["Return to"," ",e.jsx("a",{className:"hover:text-sundanceGold-base",href:"/",children:"Homepage"})]})]})}):e.jsx("h1",{children:"Unknown Error!"})}export{Di as ErrorBoundary,Ii as default,Oi as links,Pi as meta};