{"version":3,"file":"RetreatMedia.DIOft6Pf.mjs","names":["useMemo","useEffect","_jsx","useRef","useState","useMemo","useCallback","startTransition","useEffect","_jsx","_jsxs","__esmMin","ne","init_npm_react_18_3_1","te","pe","window","ce","init_jsx_runtime","p","_e","de","init_ssg_sandbox_shims","RenderTarget","addPropertyControls","init_framer_BWzg2IRg","ControlType","RetreatInquiryController","props","enabled","targetHashes","modalEl","backdropEl","isOpen","listenersBound","previouslyFocused","bodyOverflowBeforeOpen","accommodationInputEl","focusableSelector","getHashFromAnchor","anchor","rawHref","ensureAccommodationInputWithDatalist","originalInput","node","datalistId","dataListEl","value","option","initializeBaseModalStyleOnce","ensureDialogA11y","heading","closeModal","trapFocus","event","focusables","first","last","active","openModal","onKeyDown","onDocumentClick","target","hash","wireModalIfPresent","bindGlobalListeners","unbindGlobalListeners","found","observer","init_RetreatInquiryController","getYouTubeEmbedURL","input","parsed","host","videoId","RetreatMedia","mode","youtubeURL","videoFile","images","background","style","viewportRef","containerWidth","setContainerWidth","currentIndex","setCurrentIndex","embedURL","hasVideoFile","normalizedImages","item","index","visibleCount","galleryItems","_","totalItems","itemWidth","totalGap","width","scrollByOne","direction","viewport","onPrev","onNext","onScroll","step","nextIndex","clamped","updateWidth","entries","entry","maxIndex","isPlaceholder","init_RetreatMedia"],"sources":["https:/framerusercontent.com/modules/t3quZy8CksBFXRVZGWAM/lPD45LigQ4R2aMajJ4o5/RetreatInquiryController.js","https:/framerusercontent.com/modules/8WmPUu8S0S6gAQs9OuPd/IqxtWygdefhREg2NDf03/RetreatMedia.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RetreatInquiryController(props){const{enabled}=props;const targetHashes=useMemo(()=>({open:\"#retreat-inquiry\",close:\"#close-retreat-inquiry\"}),[]);useEffect(()=>{if(!enabled)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;let modalEl=null;let backdropEl=null;let isOpen=false;let listenersBound=false;let previouslyFocused=null;let bodyOverflowBeforeOpen=\"\";let accommodationInputEl=null;const focusableSelector='a[href], area[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';const getHashFromAnchor=anchor=>{const rawHref=anchor.getAttribute(\"href\");if(!rawHref)return\"\";try{return new URL(rawHref,window.location.href).hash;}catch(error){return\"\";}};const ensureAccommodationInputWithDatalist=()=>{if(!modalEl)return;const originalInput=modalEl.querySelector('input[name=\"Accommodation preference\"]');if(!originalInput)return;accommodationInputEl=originalInput;accommodationInputEl.style.display=\"\";accommodationInputEl.placeholder=\"Single or Double\";const staleSelects=modalEl.querySelectorAll('select[data-accommodation-choice=\"true\"], select[name=\"accommodation-choice\"]');staleSelects.forEach(node=>node.remove());const datalistId=\"retreat-accommodation-options\";let dataListEl=modalEl.querySelector(`#${datalistId}`);if(!dataListEl){dataListEl=document.createElement(\"datalist\");dataListEl.id=datalistId;const options=[\"Single\",\"Double\",\"Not sure yet\"];options.forEach(value=>{const option=document.createElement(\"option\");option.value=value;dataListEl?.appendChild(option);});modalEl.appendChild(dataListEl);}accommodationInputEl.setAttribute(\"list\",datalistId);};const initializeBaseModalStyleOnce=()=>{if(!modalEl)return;if(modalEl.dataset.retreatInquiryBaseStyled===\"true\")return;modalEl.dataset.retreatInquiryBaseStyled=\"true\";modalEl.style.position=\"absolute\";modalEl.style.left=\"-10000px\";modalEl.style.top=\"0\";modalEl.style.right=\"auto\";modalEl.style.bottom=\"auto\";modalEl.style.display=\"none\";};const ensureDialogA11y=()=>{if(!modalEl)return;modalEl.setAttribute(\"role\",\"dialog\");modalEl.setAttribute(\"aria-modal\",\"true\");if(!modalEl.hasAttribute(\"aria-labelledby\")){const heading=modalEl.querySelector(\"h1, h2, h3, [data-modal-title], [id]\");if(heading){if(!heading.id)heading.id=\"retreat-inquiry-modal-title\";modalEl.setAttribute(\"aria-labelledby\",heading.id);}}if(!modalEl.hasAttribute(\"tabindex\"))modalEl.setAttribute(\"tabindex\",\"-1\");};const closeModal=()=>{if(!modalEl||!isOpen)return;isOpen=false;modalEl.style.display=\"none\";modalEl.style.position=\"absolute\";modalEl.style.left=\"-10000px\";modalEl.style.top=\"0\";modalEl.style.right=\"auto\";modalEl.style.bottom=\"auto\";modalEl.style.transform=\"none\";if(backdropEl?.parentNode)backdropEl.parentNode.removeChild(backdropEl);backdropEl=null;document.body.style.overflow=bodyOverflowBeforeOpen;if(previouslyFocused)previouslyFocused.focus();};const trapFocus=event=>{if(!isOpen||!modalEl||event.key!==\"Tab\")return;const focusables=Array.from(modalEl.querySelectorAll(focusableSelector)).filter(node=>node.tabIndex!==-1&&!node.hasAttribute(\"disabled\"));if(focusables.length===0){event.preventDefault();modalEl.focus();return;}const first=focusables[0];const last=focusables[focusables.length-1];const active=document.activeElement;if(event.shiftKey&&(active===first||active===modalEl)){event.preventDefault();last.focus();}else if(!event.shiftKey&&active===last){event.preventDefault();first.focus();}};const openModal=()=>{if(!modalEl||isOpen)return;ensureDialogA11y();ensureAccommodationInputWithDatalist();previouslyFocused=document.activeElement;bodyOverflowBeforeOpen=document.body.style.overflow;backdropEl=document.createElement(\"div\");backdropEl.style.position=\"fixed\";backdropEl.style.inset=\"0\";backdropEl.style.background=\"rgba(0, 0, 0, 0.52)\";backdropEl.style.zIndex=\"10000\";backdropEl.setAttribute(\"aria-hidden\",\"true\");backdropEl.addEventListener(\"click\",closeModal);document.body.appendChild(backdropEl);modalEl.style.display=\"flex\";modalEl.style.position=\"fixed\";modalEl.style.top=\"50%\";modalEl.style.left=\"50%\";modalEl.style.transform=\"translate(-50%, -50%)\";modalEl.style.right=\"auto\";modalEl.style.bottom=\"auto\";modalEl.style.zIndex=\"10001\";modalEl.style.width=\"min(640px, calc(100vw - 32px))\";modalEl.style.maxHeight=\"85dvh\";modalEl.style.overflow=\"auto\";document.body.style.overflow=\"hidden\";isOpen=true;const focusables=Array.from(modalEl.querySelectorAll(focusableSelector));if(focusables.length>0)focusables[0].focus();else modalEl.focus();};const onKeyDown=event=>{if(!isOpen)return;if(event.key===\"Escape\"){event.preventDefault();closeModal();return;}trapFocus(event);};const onDocumentClick=event=>{const target=event.target;if(!target)return;const anchor=target.closest(\"a[href]\");if(!anchor)return;const hash=getHashFromAnchor(anchor);if(hash!==targetHashes.open&&hash!==targetHashes.close)return;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();if(hash===targetHashes.close){closeModal();return;}wireModalIfPresent();openModal();};const bindGlobalListeners=()=>{if(listenersBound)return;document.addEventListener(\"click\",onDocumentClick,true);document.addEventListener(\"keydown\",onKeyDown);listenersBound=true;};const unbindGlobalListeners=()=>{if(!listenersBound)return;document.removeEventListener(\"click\",onDocumentClick,true);document.removeEventListener(\"keydown\",onKeyDown);listenersBound=false;};const wireModalIfPresent=()=>{const found=document.getElementById(\"retreat-inquiry-modal\");if(!found)return false;modalEl=found;initializeBaseModalStyleOnce();ensureDialogA11y();ensureAccommodationInputWithDatalist();return true;};bindGlobalListeners();wireModalIfPresent();const observer=new MutationObserver(()=>{wireModalIfPresent();if(isOpen)ensureAccommodationInputWithDatalist();});observer.observe(document.body,{childList:true,subtree:true});return()=>{observer.disconnect();closeModal();unbindGlobalListeners();};},[enabled,targetHashes]);if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,opacity:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\"});}return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,opacity:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\"});}addPropertyControls(RetreatInquiryController,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RetreatInquiryController\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RetreatInquiryController.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function getYouTubeEmbedURL(input){if(!input||!input.trim())return null;try{const parsed=new URL(input.trim());const host=parsed.hostname.toLowerCase();const isYouTubeHost=host===\"youtube.com\"||host===\"www.youtube.com\"||host===\"m.youtube.com\"||host===\"youtu.be\"||host.endsWith(\".youtube.com\");if(!isYouTubeHost)return null;let videoId=\"\";if(host===\"youtu.be\"){videoId=parsed.pathname.replace(\"/\",\"\").trim();}else{videoId=parsed.searchParams.get(\"v\")?.trim()??\"\";if(!videoId&&parsed.pathname.startsWith(\"/embed/\")){videoId=parsed.pathname.replace(\"/embed/\",\"\").trim();}if(!videoId&&parsed.pathname.startsWith(\"/shorts/\")){videoId=parsed.pathname.replace(\"/shorts/\",\"\").trim();}}if(!videoId)return null;return`https://www.youtube-nocookie.com/embed/${encodeURIComponent(videoId)}?rel=0`;}catch(error){return null;}}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function RetreatMedia(props){const{mode,youtubeURL,videoFile=\"\",images=[],background,style}=props;const viewportRef=useRef(null);const[containerWidth,setContainerWidth]=useState(1200);const[currentIndex,setCurrentIndex]=useState(0);const embedURL=useMemo(()=>getYouTubeEmbedURL(youtubeURL),[youtubeURL]);const hasVideoFile=useMemo(()=>Boolean(videoFile&&videoFile.trim().length>0),[videoFile]);const normalizedImages=useMemo(()=>{return images.map((item,index)=>{if(typeof item===\"string\"){return{src:item,alt:`Retreat gallery image ${index+1}`};}return{src:item?.src??\"\",srcSet:item?.srcSet,alt:item?.alt||`Retreat gallery image ${index+1}`};}).filter(item=>Boolean(item.src));},[images]);const visibleCount=useMemo(()=>{if(containerWidth<700)return 1;if(containerWidth<1024)return 2;return 4;},[containerWidth]);const galleryItems=useMemo(()=>{if(normalizedImages.length>0)return normalizedImages;return Array.from({length:6}).map((_,index)=>({placeholder:true,number:index+1}));},[normalizedImages]);const totalItems=galleryItems.length;const gap=16;const itemWidth=useMemo(()=>{const totalGap=gap*Math.max(visibleCount-1,0);const width=(containerWidth-totalGap)/visibleCount;return Math.max(140,width);},[containerWidth,visibleCount]);const scrollByOne=useCallback(direction=>{const viewport=viewportRef.current;if(!viewport)return;viewport.scrollBy({left:direction*(itemWidth+gap),behavior:\"smooth\"});},[itemWidth]);const onPrev=useCallback(()=>{scrollByOne(-1);},[scrollByOne]);const onNext=useCallback(()=>{scrollByOne(1);},[scrollByOne]);const onScroll=useCallback(()=>{const viewport=viewportRef.current;if(!viewport)return;const step=itemWidth+gap;if(step<=0)return;const nextIndex=Math.round(viewport.scrollLeft/step);const clamped=Math.max(0,Math.min(totalItems-1,nextIndex));startTransition(()=>setCurrentIndex(clamped));},[gap,itemWidth,totalItems]);useEffect(()=>{if(typeof window===\"undefined\")return;const target=viewportRef.current;if(!target)return;const updateWidth=width=>{startTransition(()=>setContainerWidth(width));};if(typeof ResizeObserver!==\"undefined\"){const observer=new ResizeObserver(entries=>{const entry=entries[0];if(!entry)return;updateWidth(entry.contentRect.width);});observer.observe(target);return()=>observer.disconnect();}updateWidth(target.clientWidth||window.innerWidth||1200);return;},[]);useEffect(()=>{const maxIndex=Math.max(0,totalItems-1);if(currentIndex>maxIndex){startTransition(()=>setCurrentIndex(maxIndex));}},[currentIndex,totalItems]);return /*#__PURE__*/_jsx(\"section\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background,color:\"#29241E\",fontFamily:\"General Sans, sans-serif\",boxSizing:\"border-box\",...style},\"aria-label\":\"Retreat media\",children:mode===\"video\"?/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",borderRadius:16},children:embedURL?/*#__PURE__*/_jsx(\"iframe\",{title:\"Retreat film\",src:embedURL,style:{width:\"100%\",height:\"100%\",border:\"none\",borderRadius:16},allow:\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",referrerPolicy:\"strict-origin-when-cross-origin\",allowFullScreen:true}):hasVideoFile?/*#__PURE__*/_jsx(\"video\",{src:videoFile,controls:true,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:16}}):/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",padding:24,gap:14},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:88,height:88,borderRadius:\"50%\",border:\"2px solid #B7522B\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"30\",height:\"30\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 6V18L18 12L8 6Z\",stroke:\"#B7522B\",strokeWidth:\"1.8\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:24,fontWeight:500,lineHeight:1.1},children:\"Retreat film\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:16,lineHeight:1.45,maxWidth:520},children:\"Add your YouTube link or upload a video in the right sidebar.\"})]})}):/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"space-between\",gap:16,padding:4,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:viewportRef,onScroll:onScroll,style:{flex:1,overflowX:\"auto\",overflowY:\"hidden\",WebkitOverflowScrolling:\"touch\",scrollSnapType:\"x mandatory\",scrollbarWidth:\"none\",msOverflowStyle:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap,height:\"100%\",alignItems:\"stretch\",width:\"max-content\",paddingBottom:2},children:galleryItems.map((item,index)=>{const isPlaceholder=\"placeholder\"in item;return /*#__PURE__*/_jsx(\"div\",{style:{width:itemWidth,minWidth:itemWidth,height:\"100%\",borderRadius:16,overflow:\"hidden\",background:isPlaceholder?\"#DDD1C1\":\"#DCCFBF\",scrollSnapAlign:\"start\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:isPlaceholder?/*#__PURE__*/_jsx(\"span\",{style:{fontSize:30,color:\"#B09D88\",fontWeight:500},children:item.number}):/*#__PURE__*/_jsx(\"img\",{src:item.src,srcSet:item.srcSet,alt:item.alt||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})},`retreat-item-${index}`);})})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:onPrev,\"aria-label\":\"Previous image\",style:{width:38,height:38,borderRadius:\"50%\",border:\"1px solid #B7522B\",background:\"transparent\",color:\"#B7522B\",cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:\"←\"})}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1,fontWeight:500,minWidth:64,textAlign:\"center\"},children:[Math.min(currentIndex+1,totalItems),\" of \",totalItems]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:onNext,\"aria-label\":\"Next image\",style:{width:38,height:38,borderRadius:\"50%\",border:\"1px solid #B7522B\",background:\"transparent\",color:\"#B7522B\",cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:\"→\"})})]})]})});}addPropertyControls(RetreatMedia,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"video\",\"gallery\"],optionTitles:[\"Video\",\"Gallery\"],defaultValue:\"video\",displaySegmentedControl:true},youtubeURL:{type:ControlType.String,title:\"YouTube URL\",defaultValue:\"\",placeholder:\"https://youtube.com/watch?v=...\"},videoFile:{type:ControlType.File,title:\"Video File\",allowedFileTypes:[\"mp4\"]},images:{type:ControlType.Array,title:\"Images\",maxCount:12,defaultValue:[],control:{type:ControlType.ResponsiveImage}},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#E9DFD0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RetreatMedia\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RetreatMedia.map"],"mappings":"A,0OAGG,SAAwB2B,EAAyBC,EAAM,CAAC,GAAK,CAACC,WAASD,EAAYE,EAAa9B,OAAa,CAAC,KAAK,mBAAmB,MAAM,wBAAwB,GAAG,CAAC,CAAC,EAAs9L,OAAp9LC,MAAc,CAAyF,GAArF,CAAC4B,GAAyBb,IAAS,QAAa,OAAO,SAAW,KAAsBO,EAAa,QAAQ,IAAIA,EAAa,OAAO,OAAO,IAAIQ,EAAQ,KAASC,EAAW,KAASC,EAAO,GAAUC,EAAe,GAAUC,EAAkB,KAASC,EAAuB,GAAOC,EAAqB,KAAWC,EAAkB,wJAA8JC,EAAkBC,GAAQ,CAAC,IAAMC,EAAQD,EAAO,aAAa,MAAM,EAAE,GAAG,CAACC,EAAQ,MAAM,GAAG,GAAG,CAAC,OAAO,IAAI,IAAIA,EAAQzB,EAAO,SAAS,IAAI,CAAC,CAAC,IAAK,MAAa,CAAC,MAAM,EAAG,CAAC,EAAQ0B,M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