import{u as Is,o as fa,r as i,j as e,L as k,b as A,d as ga,g as ja,m as ya}from"./vendor-BXQAQzXu.js";import{S as Q,H as va}from"./SliderFacilities-B2kFOaSk.js";import{O as ie}from"./OptimizedImage-BbLjun1q.js";import{u as Na,c as wa,g as Sa,i as ka,o as Da,j as La,S as Ca,N as Oa,a as Ma}from"./ui-CbCB892d.js";import{F as Fa}from"./Select-Buv94kiS.js";import{t as me}from"./transformUtm-9lP4nPuV.js";import{P as Bs,N as Aa}from"./FooterProp-pbXSpU5I.js";import{S as T,P as Ta}from"./PopUp-15JWPb-C.js";import{F as $a}from"./Footer-hJvbNGRP.js";import{a as Es}from"./appendURL-CIK5EvW3.js";import{D as Ba,B as Ea}from"./BookDirectSection-Dyfxvggg.js";import{A as Pa}from"./AnimatedPopUp-ClLwm94-.js";import{S as Ps}from"./SliderOffersPage-Zf1Xq_3L.js";import{T as Ia}from"./TabList-qNpk1Pqk.js";import{S as Ra}from"./section-wellness-package-C5IXtMQt.js";import"./carousel-DpsjlDe2.js";import"./svg-DmTSu4C7.js";import"./Global-CKpXTxwr.js";const _a=({adult:r,setAdult:s,child:d,setChild:b,fromValue:o,toValue:u,setFromValue:y,setToValue:X,activeIndex:U,setActiveIndex:G,selectedIndex:D,setSelectedIndex:v,options:B,optionsID:f,isSelectOpen:g,isDatePopOpen:J,setIsDatePopOpen:V,bookLink:N="https://booking.dijiwasanctuaries.com/",maxAdult:W=7,maxChild:q=1})=>{const{utm:E}=Is(),l=new Date,K=new Date(l.getFullYear(),l.getMonth()-1,l.getDate()),xe=m=>{r>=0&&r{r>0&&s(r-m)},be=m=>{d>=0&&d{d>0&&b(d-m)};fa(K,4);const[P,we]=i.useState(),[re,ne]=i.useState(!1),[le,oe]=i.useState(!1),ge=()=>{V(!J)},{refs:Se,floatingStyles:ke,context:je}=Na({placement:"bottom",strategy:"absolute",open:re,onOpenChange:ne,whileElementsMounted:ka,middleware:[Da(5),La({padding:10})]}),I=wa(je,{referencePress:!1});Sa([I]),P!=null&&P.from&&P.to&&P.to;const[ye,w]=i.useState("");i.useEffect(()=>{w(`destination?city=${f[B[D]]}&checkin=${o}&checkout=${u}&adults=${r}&children=${d}`)},[o,u,r,d,D]);const ve=i.useCallback(m=>{let L="";const R=typeof window<"u"&&sessionStorage.getItem("utmData");return R?L=me(m,JSON.parse(R)):L=me(m,E),L},[E]);return e.jsxs("div",{className:"h-[175px] border border-grayscale-3 bg-whiteBase hidden lg:block max-w-1120 p-6 px-8 shadow-drop-shadow-base mx-auto w-full",children:[e.jsxs("div",{className:"lg:flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"technicaltext",children:"Destinations"}),e.jsx(Fa,{placeholder:"Select Destination",options:B,isOpen:le,setIsOpen:oe,activeIndex:U,setActiveIndex:G,selectedIndex:D,setSelectedIndex:v,isSelectOpen:g})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"technicaltext",children:"Check-in & Check-out"}),e.jsxs("button",{onClick:ge,className:"flex justify-between items-center heading4-subheadline text-grayscale-2 capitalize px-4 lg:h-[40px] lg:w-[256px] bg-grayscale-4 hover:border hover:border-grayscale-3 focus:outline-none focus:ring-0 ease-in-out duration-300",children:[o||u?`${o} - ${u}`:"Select Date",e.jsx("img",{src:"/icon/chevron-down.svg",alt:"chevron-down",className:"h-4 w-4",width:16,height:16})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"technicaltext",children:"Adults"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("button",{className:"button-subs",onClick:()=>he(1),children:"-"}),e.jsx("input",{type:"text",className:"w-8 text-center heading4-subheadline text-grayscale-2 bg-grayscale-4 h-[40px] focus:outline-none focus:ring-0",value:r,readOnly:!0}),e.jsx("button",{className:"button-add",onClick:()=>xe(1),children:"+"})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"technicaltext",children:"Children"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("button",{className:"button-subs",onClick:()=>fe(1),children:"-"}),e.jsx("input",{type:"text",className:"w-8 text-center heading4-subheadline text-grayscale-2 bg-grayscale-4 h-[40px] focus:outline-none focus:ring-0",value:d,readOnly:!0}),e.jsx("button",{className:"button-add",onClick:()=>be(1),children:"+"})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"technicaltext",children:" "}),e.jsx("div",{className:"flex items-center",children:e.jsx("a",{href:ve(`${N}${ye}`),className:"button-primary w-[256px]",children:"Check Availability"})})]})]}),e.jsx("div",{className:"my-8",children:e.jsx("p",{className:"text-xs text-center bodytext2-leadingtrim md:bodytext1-leadingtrim",children:"As you proceed to the final stages of your booking, all prices will be converted in IDR, and any payments will be made in IDR. Prices displayed in other currencies are for illustrative purposes only and are based on the current exchange rate."})})]})},za=({listMagazine:r,assetUrl:s})=>{i.useState(null);const d=r,b=i.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"hidden md:block max-w-1120 relative",children:[e.jsx(Ca,{modules:[Oa],width:1120,slidesPerView:1,spaceBetween:30,onBeforeInit:o=>{b.current=o},children:d.map((o,u)=>e.jsx(Ma,{className:"slider-wrapper text-left w-1120 max-w-1120",children:e.jsxs("div",{className:"bg-whiteBase flex",children:[e.jsx(ie,{className:"h-[480px] w-[640px] object-cover",src:o.attributes.featuredImage.data.attributes.url,alt:o.attributes.featuredImage.data.attributes.alternativeText||o.attributes.title||"Magazine feature image",assetUrl:s,priority:u===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("span",{className:"golden-span",children:o.attributes.categoryMagazine.data.attributes.categoryName}),e.jsx(k,{to:`/magazine/${o.attributes.magazineSlug}`,children:e.jsx("h3",{className:"heading4-subheadline-leadingtrim-rev font-medium",children:o.attributes.magazineTitle})}),e.jsx("p",{className:"bodytext1-leadingtrim line-clamp-[7] pt-[2px]",children:o.attributes.shortDesc})]}),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(k,{to:`/magazine/${o.attributes.magazineSlug}`,className:"button-tertiary",children:"Read Story"})})]})]})]})},u))}),e.jsxs("div",{className:"slider-navigation justify-between items-center",children:[e.jsxs("div",{className:"flex gap-9",children:[e.jsx("button",{onClick:()=>{var o;return(o=b.current)==null?void 0:o.slidePrev()},className:"button-slider-prev"}),e.jsx("button",{onClick:()=>{var o;return(o=b.current)==null?void 0:o.slideNext()},className:"button-slider-next"})]}),e.jsx("div",{children:e.jsx(k,{to:"/magazine",className:"px-6 py-2 text-grayscale-2 rounded-md border border-grayscale-2 hover:text-midnightBlue-base hover:border-midnightBlue-base ease-in-out duration-300",children:"Browse Dijiwa Magazine"})})]})]}),e.jsx("div",{className:"block md:hidden w-full",children:e.jsxs("article",{className:"flex flex-col md:hidden gap-8 px-6",children:[d.map((o,u)=>e.jsxs("div",{className:"bg-whiteBase flex flex-col mx-auto shadow-drop-shadow-base",children:[e.jsx(ie,{className:"h-[175px] md:h-[480px] w-full object-cover",src:o.attributes.featuredImage.data.attributes.url,alt:o.attributes.featuredImage.data.attributes.alternativeText||o.attributes.title||"Magazine feature image",assetUrl:s,priority:u===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("span",{className:"golden-overline text-[12px]",children:o.attributes.categoryMagazine.data.attributes.categoryName}),e.jsx(k,{to:`/magazine/${o.attributes.magazineSlug}`,children:e.jsx("h3",{className:"heading4-subheadline font-medium max-w-[288px] line-clamp-1 capitalize",children:o.attributes.magazineTitle.toLowerCase()})}),e.jsx("p",{className:"bodytext1-leadingtrim line-clamp-3 pt-[2px]",children:o.attributes.shortDesc})]}),e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsxs("div",{className:"hidden md:flex justify-between items-center",children:[e.jsx("button",{className:"button-style3",children:"Read Story"}),e.jsxs("button",{className:"button-text text-grayscale-2 flex gap-2",children:["Visit ",o.attributes.authorDisplay,e.jsx("object",{className:"mt-[3px]",data:"/icon/link-arrow.svg",width:"12",height:"12","aria-label":"arrow link",children:" "})]})]}),e.jsxs(k,{to:`/magazine/${o.attributes.magazineSlug}`,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:" "})]})]})]})]},o.id)),e.jsx(k,{to:"/magazine",prefetch:"intent",className:"w-fit mx-auto px-6 py-2 text-grayscale-2 border border-grayscale-2 text-[16px] font-bold hover:border-midnightBlue-base hover:text-midnightBlue-base",children:"Browse Dijiwa Magazine"})]})})]})},ni=()=>[{rel:"stylesheet",href:ga}],li=({data:r})=>{var y,X,U,G,D,v,B,f,g,J,V,N,W,q,E,l;const s=r==null?void 0:r.assetUrl,d=r&&((G=(U=(X=(y=r==null?void 0:r.home)==null?void 0:y.data)==null?void 0:X.attributes)==null?void 0:U.SEO)!=null&&G.seoTitle)?r.home.data.attributes.SEO.seoTitle:"Dijiwa Sanctuaries",b=r&&((f=(B=(v=(D=r==null?void 0:r.home)==null?void 0:D.data)==null?void 0:v.attributes)==null?void 0:B.SEO)!=null&&f.seoDescription)?r.home.data.attributes.SEO.seoDescription:"Dijiwa Sanctuaries",o=r&&((N=(V=(J=(g=r==null?void 0:r.home)==null?void 0:g.data)==null?void 0:J.attributes)==null?void 0:V.SEO)!=null&&N.seoCanonical)?r.home.data.attributes.SEO.seoCanonical:`${(r==null?void 0:r.domain)||"https://dijiwasanctuaries.com"}/`,u=r&&((l=(E=(q=(W=r==null?void 0:r.home)==null?void 0:W.data)==null?void 0:q.attributes)==null?void 0:E.SEO)!=null&&l.seoRobots)?r.home.data.attributes.SEO.seoRobots:(r==null?void 0:r.robotsContent)||"index, follow";return[{title:d},{name:"description",content:b},{tagName:"link",rel:"canonical",href:o},{name:"robots",content:u},{property:"og:title",content:d},{property:"og:description",content:b},{property:"og:type",content:"website"},{property:"og:image",content:s+"/uploads/logo_dijiwa_mobile_color_5f421f9603.png"},{property:"twitter:card",content:"summary_large_image"},{property:"twitter:title",content:d},{property:"twitter:description",content:b},{property:"twitter:image",content:s+"/uploads/logo_dijiwa_mobile_color_5f421f9603.png"}]};let $=0;function oi(){var Pe,Ie,Re,_e,ze,He,Ue,Ge,Je,Ve,We,qe,Ze,Ye,Qe,Xe,Ke,et,tt,st,at,it,rt,nt,lt,ot,ct,dt,ut,pt,mt,xt,ht,bt,ft,gt,jt,yt,vt,Nt,wt,St,kt,Dt,Lt,Ct,Ot,Mt,Ft,At,Tt,$t,Bt,Et,Pt,It,Rt,_t,zt,Ht,Ut,Gt,Jt,Vt,Wt,qt,Zt,Yt,Qt,Xt,Kt,es,ts,ss,as,is,rs,ns,ls,os,cs,ds,us,ps,ms,xs,hs,bs,fs,gs,js,ys,vs,Ns,ws,Ss,ks,Ds,Ls,Cs,Os,Ms,Fs,As,Ts,$s;const{groupedProperties:r,home:s,assetUrl:d,areas:b,dataMagazine:o,dataOffersByArea:u,env:y,allAreas:X,allGroups:U,allProperties:G,allPropgroupedByArea:D,allFacilities:v,allWellnessPackages:B,globalSetting:f,utm:g}=Is(),J=((Ie=(Pe=f==null?void 0:f.data)==null?void 0:Pe.attributes)==null?void 0:Ie.maxAdult)||7,V=((_e=(Re=f==null?void 0:f.data)==null?void 0:Re.attributes)==null?void 0:_e.maxChild)||1;i.useEffect(()=>{const t=g&&Object.values(g).some(a=>a!==null&&a!=="");typeof window<"u"&&t&&sessionStorage.setItem("utmData",JSON.stringify(g))},[g]);const N=(Je=(Ge=(Ue=(He=(ze=s==null?void 0:s.data)==null?void 0:ze.attributes)==null?void 0:He.hero_video)==null?void 0:Ue.data)==null?void 0:Ge.attributes)==null?void 0:Je.url,W=((qe=(We=(Ve=s==null?void 0:s.data)==null?void 0:Ve.attributes)==null?void 0:We.hero)==null?void 0:qe.title)??"Wherever You Go, Stay with Us",q=((Qe=(Ye=(Ze=s==null?void 0:s.data)==null?void 0:Ze.attributes)==null?void 0:Ye.hero)==null?void 0:Qe.description)??"Sanctuary for the Soul",E=N!=null,l=r,K=[{value:"5266",destination:"Ubud"},{value:"5265",destination:"Seminyak"},{value:"5267",destination:"Canggu"},{value:"5269",destination:"Umalas"},{value:"5271",destination:"Amed"},{value:"368",destination:"Gili Asahan"}],xe=K.map(t=>t.destination),he=K.reduce((t,a)=>(t[a.destination]=a.value,t),{}),[be,fe]=i.useState(1),[P,we]=i.useState(0),[re,ne]=i.useState(""),[le,oe]=i.useState(""),[ge,Se]=i.useState(null),[ke,je]=i.useState(null),[I,ye]=i.useState("all"),[w,ve]=i.useState("all"),[m,L]=i.useState(!1),[R,Rs]=i.useState("all"),[_,_s]=i.useState("all"),[Z,ce]=i.useState(!1),[Y,zs]=i.useState("all"),[z,Hs]=i.useState("all"),[C,de]=i.useState(!1),[ee,Us]=i.useState("all"),[h,Gs]=i.useState(!0),[O,ue]=i.useState(!1),[H,Js]=i.useState("all"),Ne=i.useRef(null),Vs=()=>{Ne.current&&Ne.current.scrollIntoView({behavior:"smooth"})},[j,Ws]=i.useState([]),[qs,De]=i.useState(!1);async function Zs(t){if(!y.JWT_SECRET||!y.API_ENDPOINT)return{error:"API configuration not found"};const a=new Headers;a.set("Content-Type","application/json"),a.set("Authorization",`Bearer ${y.JWT_SECRET}`);try{const n=await fetch(`${y.API_ENDPOINT}${t}`,{method:"GET",headers:a});if(!n.ok)throw new Error("Failed to fetch data offers");return{data:await n.json()}}catch(n){return{error:n.message}}}const Le=async t=>{const a=`property-offers?filters[offerSlug][$eq]=${t}&populate[0]=offerFeaturedImage&populate[1]=property.propertyLogoSecondary`,{data:n,error:c}=await Zs(a);c||(Ws(n.data[0]),De(!0))},Ce=t=>{ye(t)},Oe=t=>{ve(t),L(!1)},Me=t=>{Rs(t)},Fe=t=>{_s(t),ce(!1)},Ae=t=>{zs(t)},Te=t=>{Hs(t),de(!1)},$e=t=>{Us(t)},Be=t=>{Js(t),ue(!1)},Ys=i.useMemo(()=>b.map((t,a)=>{var n,c,p,x,S,M;return((c=(n=t.attributes)==null?void 0:n.property)==null?void 0:c.data)===null||((x=(p=t.attributes)==null?void 0:p.property)==null?void 0:x.data.length)===0||((S=t.attributes)==null?void 0:S.area)==="other"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`tabitems ${I===t.attributes.area?"active":""}`,onClick:()=>{var F;return Ce((F=t.attributes)==null?void 0:F.area)},children:(M=t.attributes)==null?void 0:M.area})},a)}),[I]),Qs=i.useMemo(()=>Object.keys(l).map(t=>I===t&&e.jsx("div",{className:"tabcontent",children:l[t].properties.length>0?e.jsx(Bs,{assetUrl:d,listHotel:l[t].properties,type:"grid"}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[I]),Xs=i.useMemo(()=>b.map((t,a)=>{var n,c;return l[t.attributes.area]==null||((n=t.attributes)==null?void 0:n.area)==="other"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`${w===t.attributes.area?"active":""} `,onClick:()=>{var p;return Oe((p=t.attributes)==null?void 0:p.area)},children:(c=t.attributes)==null?void 0:c.area})},a)}),[w]),Ks=i.useMemo(()=>Object.keys(l).map(t=>w===t&&e.jsx("div",{className:"tabcontent",children:l[t].properties.length>0?e.jsx(Bs,{assetUrl:d,listHotel:l[t].properties,type:"listnov"}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[w]),ea=i.useMemo(()=>Object.keys(u).map((t,a)=>u[t].length===0||t==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`tabitems ${ee===t?"active":""}`,onClick:()=>$e(t),children:t})},a)),[ee]),ta=i.useMemo(()=>Object.keys(u).map(t=>ee===t&&e.jsx("div",{className:"animate-dissolve",children:u[t].length>0?h?e.jsx(T,{}):e.jsx(Ps,{hasMore:!0,onDetailsClick:Le,offsetNumber:0,assetUrl:d,list:u[t]}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[ee,h]),sa=i.useMemo(()=>Object.keys(u).map((t,a)=>u[t].length===0||t==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`${H===t?"active":""}`,onClick:()=>Be(t),children:t})},a)),[H]),aa=i.useMemo(()=>Object.keys(u).map(t=>H===t&&e.jsx("div",{className:"animate-dissolve",children:u[t].length>0?h?e.jsx(T,{}):e.jsx(Ps,{hasMore:!0,onDetailsClick:Le,assetUrl:d,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,list:u[t]}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[H,h]),ia=i.useMemo(()=>Object.keys(l).sort((a,n)=>a==="other"?1:n==="other"?-1:0).map(a=>{var c,p;return(((p=(c=l[a])==null?void 0:c.propertyFacilities)==null?void 0:p.filter(x=>x.attributes.categoryFacility.data.attributes.categoryName==="Restaurant"))||[]).length<1||a==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`tabitems ${Y===a?"active":""}`,onClick:()=>Me(a),children:a})},`tabRest-${a}`)}),[R]),ra=i.useMemo(()=>Object.keys(l).map(t=>R===t&&e.jsx("div",{className:"animate-dissolve",children:l[t].propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{offsetNumber:0,assetUrl:d,categoryFacility:"Restaurant",list:l[t].propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[R,h]),na=i.useMemo(()=>Object.keys(l).sort((a,n)=>a==="other"?1:n==="other"?-1:0).map(a=>{var c,p;return(((p=(c=l[a])==null?void 0:c.propertyFacilities)==null?void 0:p.filter(x=>x.attributes.categoryFacility.data.attributes.categoryName==="Restaurant"))||[]).length<1||a==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`${_===a?"active":""}`,onClick:()=>Fe(a),children:a})},`tabRest-${a}`)}),[_]),la=i.useMemo(()=>Object.keys(l).map(t=>_===t&&e.jsx("div",{className:"animate-dissolve",children:l[t].propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{assetUrl:d,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,categoryFacility:"Restaurant",list:l[t].propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[_,h]),oa=i.useMemo(()=>Object.keys(l).sort((a,n)=>a==="other"?1:n==="other"?-1:0).map(a=>{var c,p;return(((p=(c=l[a])==null?void 0:c.propertyFacilities)==null?void 0:p.filter(x=>x.attributes.categoryFacility.data.attributes.categoryName==="Spa"))||[]).length<1||a==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`tabitems ${Y===a?"active":""}`,onClick:()=>Ae(a),children:a})},`tabSpa-${a}`)}),[Y]),ca=i.useMemo(()=>Object.keys(l).map(t=>Y===t&&e.jsx("div",{className:"animate-dissolve",children:l[t].propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{offsetNumber:0,assetUrl:d,categoryFacility:"Spa",list:l[t].propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[Y,h]),da=i.useMemo(()=>Object.keys(l).sort((a,n)=>a==="other"?1:n==="other"?-1:0).map(a=>{var c,p;return(((p=(c=l[a])==null?void 0:c.propertyFacilities)==null?void 0:p.filter(x=>x.attributes.categoryFacility.data.attributes.categoryName==="Spa"))||[]).length<1||a==="all"?null:e.jsx(A.Fragment,{children:e.jsx("button",{className:`${z===a?"active":""}`,onClick:()=>Te(a),children:a})},`tabSpa-${a}`)}),[z]),ua=i.useMemo(()=>Object.keys(l).map(t=>z===t&&e.jsx("div",{className:"animate-dissolve",children:l[t].propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{assetUrl:d,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,categoryFacility:"Spa",list:l[t].propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property available"})},t)),[z,h]),pa=i.useMemo(()=>v.reduce((a,n)=>{var x,S,M,F,te,se,ae;const c=(ae=(se=(te=(F=(M=(S=(x=n.attributes)==null?void 0:x.property)==null?void 0:S.data)==null?void 0:M.attributes)==null?void 0:F.areas)==null?void 0:te.data)==null?void 0:se.attributes)!=null&&ae.area?n.attributes.property.data.attributes.areas.data.attributes.area:"No area";return n.attributes.categoryFacility.data.attributes.categoryName==="Restaurant"&&(a[c]||(a[c]=[]),a[c].push(n)),a},{}),[v]),ma=i.useMemo(()=>v.reduce((a,n)=>{var x,S,M,F,te,se,ae;const c=(ae=(se=(te=(F=(M=(S=(x=n.attributes)==null?void 0:x.property)==null?void 0:S.data)==null?void 0:M.attributes)==null?void 0:F.areas)==null?void 0:te.data)==null?void 0:se.attributes)!=null&&ae.area?n.attributes.property.data.attributes.areas.data.attributes.area:"No area";return n.attributes.categoryFacility.data.attributes.categoryName==="Spa"&&(a[c]||(a[c]=[]),a[c].push(n)),a},{}),[v]);i.useEffect(()=>{setTimeout(()=>{Gs(!1)},2e3)},[]);const[xa,ha]=i.useState(!1),[Ee,pe]=i.useState(!1);i.useEffect(()=>(m||O||C?($===0&&(document.body.classList.add("overflow-hidden"),document.body.classList.add("fixed")),$+=1):$>0&&($-=1,$===0&&(document.body.classList.remove("overflow-hidden"),document.body.classList.remove("fixed"))),()=>{$>0&&($-=1,$===0&&(document.body.classList.remove("overflow-hidden"),document.body.classList.remove("fixed")))}),[m,C,O]);const ba=i.useCallback(t=>{let a="";const n=typeof window<"u"&&sessionStorage.getItem("utmData");return n?a=me(t,JSON.parse(n)):a=me(t,g),a},[g]);return i.useEffect(()=>{var p,x;const t=(x=(p=s==null?void 0:s.data)==null?void 0:p.attributes)==null?void 0:x.schemaMarkup;if(!t)return;let a=!1,n=null;const c=document.createElement("script");try{n=JSON.parse(t),typeof n=="object"&&n!==null&&(a=!0)}catch{a=!1}return a&&(c.type="application/ld+json",c.innerHTML=t,document.head.appendChild(c)),()=>{document.head.removeChild(c)}},[s]),e.jsxs(e.Fragment,{children:[e.jsx(Aa,{listProperties:G,listGroups:U,listArea:X,listFacilities:v,groupedByArea:D,groupedRestaurant:pa,groupedSpa:ma,assetUrl:d}),e.jsxs("main",{className:"pt-[48px] md:pt-[64px]",children:[xa&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30"}),e.jsx(Ta,{isOpen:Ee,onClose:()=>pe(!1),children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"popup-wrapper",children:[e.jsxs("div",{className:"popup-header",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:()=>pe(!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(Ba,{fromValue:re,setFromValue:ne,toValue:le,setToValue:oe}),e.jsx("div",{className:"flex w-full justify-end max-w-[732px]",children:e.jsx("button",{className:"button-primary",onClick:()=>pe(!1),children:"APPLY"})})]})]})})}),e.jsx(va,{videoUrl:E?d+N:N,heading:W,subheading:q,scrollToRef:Vs,customHeightD:"md:h-[720px]",customHeightM:"h-[400px]",fallbackImage:"/mathis/bleu-mathis.webp",env:y,children:e.jsx(_a,{isDatePopOpen:Ee,setIsDatePopOpen:pe,isSelectOpen:ha,adult:be,child:P,setAdult:fe,setChild:we,fromValue:re,toValue:le,setFromValue:ne,setToValue:oe,activeIndex:ge,setActiveIndex:Se,selectedIndex:ke,setSelectedIndex:je,options:xe,optionsID:he,maxAdult:J,maxChild:V})}),e.jsx("section",{className:"section-wrapper-primary md:pt-[144px]",children:e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:((et=(Ke=(Xe=s==null?void 0:s.data)==null?void 0:Xe.attributes)==null?void 0:Ke.opening)==null?void 0:et.tag)??"Dijiwa Sanctuaries"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:((at=(st=(tt=s==null?void 0:s.data)==null?void 0:tt.attributes)==null?void 0:st.opening)==null?void 0:at.title)??"Your Escape Awaits"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:((nt=(rt=(it=s==null?void 0:s.data)==null?void 0:it.attributes)==null?void 0:rt.opening)==null?void 0:nt.description)??"Dijiwa Sanctuaries sets a new standard for luxury getaways in stunning locations. Our boutique properties combine contemporary design with local culture, creating experiences that are luxurious, exotic and romantic."})]})}),e.jsx("section",{className:"section-wrapper-secondary",id:"hotel",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:((ct=(ot=(lt=s==null?void 0:s.data)==null?void 0:lt.attributes)==null?void 0:ot.sanctuaries)==null?void 0:ct.tag)??"Hotels & Resorts"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:((pt=(ut=(dt=s==null?void 0:s.data)==null?void 0:dt.attributes)==null?void 0:ut.sanctuaries)==null?void 0:pt.title)??"Our Sanctuaries"}),((ht=(xt=(mt=s==null?void 0:s.data)==null?void 0:mt.attributes)==null?void 0:xt.sanctuaries)==null?void 0:ht.description)&&e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:(gt=(ft=(bt=s==null?void 0:s.data)==null?void 0:bt.attributes)==null?void 0:ft.sanctuaries)==null?void 0:gt.description})]}),e.jsxs("div",{className:"section-content-desktop",children:[e.jsx("div",{className:"destination-tabs tab-wrapper",children:e.jsxs(Ia,{children:[e.jsx("button",{className:`tabitems ${I==="all"?"active":""}`,onClick:()=>Ce("all"),children:"All Destinations"}),Ys]},"tablist-prop")}),e.jsx("div",{className:"section-list-wrapper",children:Qs})]}),e.jsxs("div",{className:"section-content-mobile",children:[e.jsxs("button",{className:"tabitems-mobile",onClick:()=>{L(!m)},children:[w=="all"?"All Destinations":w," ",e.jsx("img",{src:"/icon/chevron-bottom-gold.svg",className:"w-4 h-4",alt:"bottom-gold"})]}),e.jsx("div",{className:"section-list-wrapper",children:Ks})]})]})}),e.jsx("section",{className:"section-wrapper-tertiary",id:"offers",ref:Ne,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:(vt=(yt=(jt=s==null?void 0:s.data)==null?void 0:jt.attributes)==null?void 0:yt.exclusive_surprise)==null?void 0:vt.tag}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:(St=(wt=(Nt=s==null?void 0:s.data)==null?void 0:Nt.attributes)==null?void 0:wt.exclusive_surprise)==null?void 0:St.title}),((Lt=(Dt=(kt=s==null?void 0:s.data)==null?void 0:kt.attributes)==null?void 0:Dt.exclusive_surprise)==null?void 0:Lt.description)&&e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:(Mt=(Ot=(Ct=s==null?void 0:s.data)==null?void 0:Ct.attributes)==null?void 0:Ot.exclusive_surprise)==null?void 0:Mt.description})]}),e.jsxs("div",{className:"section-content-desktop",children:[e.jsx("div",{className:"destination-tabs tab-wrapper",children:e.jsxs("div",{className:"tablist justify-center",children:[e.jsx("button",{className:`tabitems ${ee==="all"?"active":""}`,onClick:()=>$e("all"),children:"All Destinations"}),ea]})}),e.jsx("div",{className:"section-slider-wrapper",children:ta})]}),e.jsxs("div",{className:"section-content-mobile",children:[e.jsxs("button",{className:"tabitems-mobile",onClick:()=>{ue(!O)},children:[H=="all"?"All Destinations":H," ",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:aa})]})]})}),e.jsx(Pa,{logo:(Pt=(Et=(Bt=($t=(Tt=(At=(Ft=j==null?void 0:j.attributes)==null?void 0:Ft.property)==null?void 0:At.data)==null?void 0:Tt.attributes)==null?void 0:$t.propertyLogoSecondary)==null?void 0:Bt.data)==null?void 0:Et.attributes)!=null&&Pt.url?Es(d,j.attributes.property.data.attributes.propertyLogoSecondary.data.attributes.url):"",header:"Offers",isOpen:qs,onClose:()=>De(!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:[((zt=(_t=(Rt=(It=j.attributes)==null?void 0:It.offerFeaturedImage)==null?void 0:Rt.data)==null?void 0:_t.attributes)==null?void 0:zt.url)&&e.jsx("img",{className:"max-h-[414px] object-cover",src:Es(d,j.attributes.offerFeaturedImage.data.attributes.url),alt:((Ht=j.attributes)==null?void 0:Ht.offerName)||"Offer image"}),e.jsx("p",{className:"popup-offers-overline",children:(Vt=(Jt=(Gt=(Ut=j.attributes)==null?void 0:Ut.property)==null?void 0:Gt.data)==null?void 0:Jt.attributes)==null?void 0:Vt.propertyDisplayName}),e.jsx("p",{className:"popup-offers-title",children:(Wt=j.attributes)==null?void 0:Wt.offerName}),e.jsx("div",{className:"popup-offers-bodytext",dangerouslySetInnerHTML:{__html:(qt=j.attributes)==null?void 0:qt.offerLongDesc}})]})}),e.jsx("div",{className:"popup-button-wrapper bg-whiteBase border-t border-[#E1DACB]",children:e.jsx("a",{href:ba((Zt=j.attributes)==null?void 0:Zt.ctaUrl),className:"button-primary",children:"Book Now"})})]})}),e.jsx(Ra,{headingTag:"h2",allWellnessPackages:B,assetUrl:d,env:y,tag:(Xt=(Qt=(Yt=s==null?void 0:s.data)==null?void 0:Yt.attributes)==null?void 0:Qt.wellness)==null?void 0:Xt.tag,title:(ts=(es=(Kt=s==null?void 0:s.data)==null?void 0:Kt.attributes)==null?void 0:es.wellness)==null?void 0:ts.title,cta_text:(is=(as=(ss=s==null?void 0:s.data)==null?void 0:ss.attributes)==null?void 0:as.wellness)==null?void 0:is.cta_text,cta_url:(ls=(ns=(rs=s==null?void 0:s.data)==null?void 0:rs.attributes)==null?void 0:ns.wellness)==null?void 0:ls.cta_url,description:(ds=(cs=(os=s==null?void 0:s.data)==null?void 0:os.attributes)==null?void 0:cs.wellness)==null?void 0:ds.description,randomList:(ms=(ps=(us=s==null?void 0:s.data)==null?void 0:us.attributes)==null?void 0:ps.wellness)==null?void 0:ms.randomList}),e.jsx(Ea,{}),e.jsx("section",{className:"section-wrapper-primary",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:"Stories to Inspire"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:"Dijiwa Experiences"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:"We're proud to offer a curated selection of unforgettable experiences that will transform your stay into an extraordinary adventure."})]}),e.jsxs("div",{className:"section-content-two-grid-responsive",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(ie,{className:"w-full object-cover",src:"/img/destination.jpg",alt:"The Destination",priority:!0}),e.jsxs("div",{className:`flex flex-col gap-4 p-6 text-center mx-auto md:py-6 md:px-0 md:text-left md:mx-0 md:max-w-full`,children:[e.jsx("h3",{className:"heading3-headline-leadingtrim",children:"The Destination"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:"The destination is at the heart of the experience and is yours to explore with the guidance of our Dijiwa team. Enhance your holiday with lifestyle activities tailored to individual interests across four themes."}),e.jsxs(k,{to:"/the-destination",className:"button-more w-fit mx-auto md:justify-start md:mx-0",children:["Discover More",e.jsx("img",{className:"mt-[3px] button-svg",src:"/icon/link-arrow-gray.svg",width:"12",height:"12",alt:"arrow icon"})]})]})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(ie,{className:"w-full object-cover",src:"/img/journey.jpg",alt:"The Journeys",priority:!0}),e.jsxs("div",{className:`flex flex-col gap-4 p-6 text-center mx-auto md:py-6 md:px-0 md:text-left md:mx-0 md:max-w-full`,children:[e.jsx("h3",{className:"heading3-headline-leadingtrim",children:"The Journeys"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:"The Journeys are a series of customized activities exclusively offered at Dijiwa Sanctuaries designed to integrate indigenous nature, traditional culture and local community for an unparalleled guest experience."}),e.jsxs(k,{to:"/the-journeys",className:"button-more w-fit mx-auto md:justify-start md:mx-0",children:["Discover More",e.jsx("img",{className:"mt-[3px] button-svg",src:"/icon/link-arrow-gray.svg",width:"12",height:"12",alt:"arrow icon"})]})]})]})]})]})}),e.jsx("section",{className:"section-wrapper-primary",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:"foods & beverages"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:"Dine with Dijiwa"}),e.jsxs("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:[" ","Our culinary offerings are a testament to this philosophy, inviting you to savor, explore, and connect with the essence of our destinations through every bite."]})]}),e.jsxs("div",{className:"section-content-desktop",children:[e.jsx("div",{className:"destination-tabs tab-wrapper mx-auto flex justify-center",children:e.jsxs("div",{className:"w-full tablist flex justify-center",children:[e.jsx("button",{className:`tabitems ${R==="all"?"active":""}`,onClick:()=>Me("all"),children:"All Destinations"}),ia]})}),e.jsx("div",{className:"section-slider-wrapper",children:ra})]}),e.jsxs("div",{className:"section-content-mobile",children:[e.jsxs("button",{className:"tabitems-mobile",onClick:()=>ce(!Z),children:[_=="all"?"All Destinations":_," ",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:la})]})]})}),e.jsx("section",{className:"section-wrapper-primary",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:((bs=(hs=(xs=s==null?void 0:s.data)==null?void 0:xs.attributes)==null?void 0:hs.spa)==null?void 0:bs.tag)??"SPA"}),e.jsx("h2",{className:"heading2-title-leadingtrim",children:((js=(gs=(fs=s==null?void 0:s.data)==null?void 0:fs.attributes)==null?void 0:gs.spa)==null?void 0:js.title)??"Dijiwa Spa"}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:((Ns=(vs=(ys=s==null?void 0:s.data)==null?void 0:ys.attributes)==null?void 0:vs.spa)==null?void 0:Ns.description)??"Escape to Dijiwa Sanctuaries and embark on a journey of wellness and renewal. Rediscover harmony and balance in our serene spa environments, where every moment is designed to enhance your well-being and bring you closer to a state of pure tranquility."})]}),e.jsxs("div",{className:"section-content-desktop",children:[e.jsx("div",{className:"destination-tabs tab-wrapper mx-auto flex justify-center",children:e.jsxs("div",{className:"w-full tablist flex justify-center",children:[e.jsx("button",{className:`tabitems ${Y==="all"?"active":""}`,onClick:()=>Ae("all"),children:"All Destinations"}),oa]})}),e.jsx("div",{className:"section-slider-wrapper",children:ca})]}),e.jsxs("div",{className:"section-content-mobile",children:[e.jsxs("button",{className:"tabitems-mobile",onClick:()=>de(!C),children:[z=="all"?"All Destinations":z," ",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:ua})]})]})}),e.jsx("section",{className:"section-wrapper-primary",children:e.jsxs("div",{className:"section-content",children:[e.jsxs("div",{className:"section-content-heading",children:[e.jsx("span",{className:"golden-overline",children:"shop & Souvenir"}),e.jsxs("h2",{className:"heading2-title-leadingtrim md:w-[588px] md:self-center",children:["Dijiwa Boutique & ",e.jsx("br",{className:"md:hidden"})," Gift Shop"]}),e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim",children:"Dijiwa Sanctuaries' collection goes beyond aesthetics by offering a selection of handicrafts, jewellery, and more that embody the soul of Bali's rich artistic traditions."})]}),e.jsx("div",{className:"section-content-desktop",children:e.jsx("div",{className:"animate-dissolve",children:l.all.propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{assetUrl:d,offsetNumber:0,slidePerView:0,categoryFacility:"Gift Shop",list:l.all.propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property available"})})}),e.jsx("div",{className:"section-content-mobile",children:e.jsx("div",{className:"animate-dissolve",children:l.all.propertyFacilities.length>0?h?e.jsx(T,{}):e.jsx(Q,{assetUrl:d,offsetNumber:0,slidePerView:0,width:256,slideSpace:16,categoryFacility:"Gift Shop",list:l.all.propertyFacilities}):e.jsx("div",{className:"text-center py-4",children:"No property 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:"Dijiwa Magazine"})]}),e.jsx(za,{assetUrl:d,listMagazine:o})]})}),e.jsxs("section",{className:"bg-midnightBlue-2 flex flex-col py-32 px-6 xl:px-40 justify-center align-middle overflow-hidden gap-12 relative",children:[e.jsx(ie,{src:"/img/bg-logo.png",alt:"",className:"absolute inset-0 w-[384px] h-[384px] object-contain mx-auto my-auto opacity-10 pointer-events-none",priority:!1}),e.jsxs("div",{className:"max-w-1120 min-h[384px] xl:px-40 flex flex-col gap-6 text-center mx-auto relative z-10",children:[e.jsx("span",{className:"golden-overline text-[12px]",children:((ks=(Ss=(ws=s==null?void 0:s.data)==null?void 0:ws.attributes)==null?void 0:Ss.about)==null?void 0:ks.tag)??"passion, Heart, and Soul"}),e.jsx("h2",{className:"heading2-title-leadingtrim text-sundanceGold-base",children:((Cs=(Ls=(Ds=s==null?void 0:s.data)==null?void 0:Ds.attributes)==null?void 0:Ls.about)==null?void 0:Cs.title)??"About Dijiwa Sanctuaries"}),(Fs=(Ms=(Os=s==null?void 0:s.data)==null?void 0:Os.attributes)==null?void 0:Ms.about)!=null&&Fs.description?e.jsx("div",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim !text-whiteBase max-w-[544px] mx-auto",dangerouslySetInnerHTML:{__html:($s=(Ts=(As=s==null?void 0:s.data)==null?void 0:As.attributes)==null?void 0:Ts.about)==null?void 0:$s.description}}):e.jsx("p",{className:"bodytext2-leadingtrim md:bodytext1-leadingtrim !text-whiteBase max-w-[544px] mx-auto",children:"Dijiwa Sanctuaries is a member of the Dijiwa Delapan Utama Hospitality boutique hotel brand, and we are managed by a skilled local and global team. Dijiwa Sanctuaries is built from a tremendous passion in promoting local culture and the destination. With a wide range of hotel brands, Dijiwa Sanctuaries aims to provide a holistic curated experience for the properties and guests through hospitality, wellness, cuisine, design, and persona who appreciate value for money experience. The brand embraces the values of dynamic, innovative, joyful, integrity, well-being, and attitude. We create, operate, and deliver well-rounded, personalized management services to our shareholders and heartfelt experiences to our guests."}),e.jsx(k,{to:"/about-us",className:"button-style3 w-fit bg-midnightBlue-2 border border-grayscale-4 text-grayscale-4 mx-auto hover:text-sundanceGold-base hover:border-sundanceGold-base ease-in-out duration-300",children:"About Dijiwa Sanctuaries"})]})]}),m&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30",onClick:()=>L(!m)}),e.jsx("div",{className:`fixed h-[400px] inset-x-0 bottom-0 transform transition-transform duration-300 ease-in-out z-30 ${m?"translate-y-0":"translate-y-full"}`,children:m&&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:()=>L(!m),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 pb-28",children:[e.jsx("button",{className:`${w==="all"?"active":""}`,onClick:()=>Oe("all"),children:"All Destinations"}),Xs]})]})}),O&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30",onClick:()=>ue(!O)}),e.jsx("div",{className:`fixed h-[400px] inset-x-0 bottom-0 transform transition-transform duration-300 ease-in-out z-30 ${O?"translate-y-0":"translate-y-full"}`,children:O&&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:()=>ue(!O),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:`${H==="all"?"active":""}`,onClick:()=>Be("all"),children:"All Destinations"}),sa]})]})}),Z&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30",onClick:()=>ce(!Z)}),e.jsx("div",{className:`fixed h-[400px] inset-x-0 bottom-0 transform transition-transform duration-300 ease-in-out z-30 ${Z?"translate-y-0":"translate-y-full"}`,children:Z&&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:()=>ce(!Z),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:`${_==="all"?"active":""}`,onClick:()=>Fe("all"),children:"All Destinations"}),na]})]})}),C&&e.jsx("div",{className:"absolute w-full h-full bg-[rgba(0,0,0,0.5)] top-0 left-0 z-30",onClick:()=>de(!C)}),e.jsx("div",{className:`fixed h-[400px] inset-x-0 bottom-0 transform transition-transform duration-300 ease-in-out z-30 ${C?"translate-y-0":"translate-y-full"}`,children:C&&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:()=>de(!C),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:`${z==="all"?"active":""}`,onClick:()=>Te("all"),children:"All Destinations"}),da]})]})})]}),e.jsx($a,{})]})}function ci(){const r=ja();return ya(r)?e.jsxs("div",{children:[e.jsxs("h1",{children:[r.status," ",r.statusText]}),e.jsx("p",{children:r.data})]}):r 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{ci as ErrorBoundary,oi as default,ni as links,li as meta};