{"version":3,"file":"Utilities.D_5ywCYV.mjs","names":["useState","useRef","__esmMin","init_npm_react_18_3_1","navigator","window","init_ssg_sandbox_shims","ce","init_jsx_runtime","_e","de","withConditionalDisplay","filterProjectContainer","noFilteringResults","deleteFilterElement","previousContentCount","updateStyles","cardComponents","nextDiv","observer","currentContentCount","Component","props","withScrollAnimation","scrollItems","imageGalleryContent","imageGalleryWrapper","projectsWrapper","currentActiveIndex","isUpdating","updateActiveIndex","viewportCenter","newActiveIndex","lastIndex","rect","item","itemCenter","isActive","index","lastItem","withScrollAnimationToImages","imageGallery","showAnimation","hideAnimation","onTransitionEnd","checkAndAnimate","withMaxWidthImages","contentWrapper","imageElement","img","ul","styleSheet","withReducedHeadingMargins","element","heading","currentMarginTop","reducedMarginTopValue","withDirectChildRoomLinks","projectRoomsContainers","roomDivs","projectRoomsContainer","roomNameElement","div","slug","roomUrl","withDirectChildProjectLinks","projectsContainer","projectNameElement","projectUrl","withBreadcrumbLinkUpdate","breadcrumbLinkElement","houseName","newHref","event","HandleCopyToClipboard","url","err","copyToClipboard","withScrollHighlight","activeHeadingIndex","setActiveHeadingIndex","headingsContainer","headings","checkActiveHeading","closestIndex","elementStyle","link","withTextStealAndReplace","originalContent","originalParagraph","runDropCap","interval","dropCapContainer","processDropCap","paragraphs","targetParagraph","p","textContent","htmlContent","firstLetter","firstLetterIndex","modifiedHTML","spanElement","node","resizeTimeout","handleResize","withLocationAndProjectNameReplace","locationElement","locationText","projectNameText","updatedText","withBoldReplace","boldRegex","text","match","frag","textBefore","boldElement","withShuffledAriaLabels","withAriaLabelOverrides","init_Utilities","componentRef","shuffleItems","container","items","i","j","displayFirstThreeItems","shuffledItems","applyAriaLabelStyles","textElement"],"sources":["https:/framerusercontent.com/modules/e3mbKyeVheNgjZDZ9MDP/5zAn7HoiJUsgzIYM2eEP/Utilities.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";export function withConditionalDisplay(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const filterProjectContainer=document.querySelector('[aria-label*=\"filter-project-container\"]');const noFilteringResults=document.querySelector('[aria-label*=\"no-filtering-results\"]');const deleteFilterElement=document.querySelector('[aria-label*=\"delete-filter-btn\"]');if(filterProjectContainer&&noFilteringResults){let previousContentCount=filterProjectContainer.childElementCount;const updateStyles=()=>{const cardComponents=filterProjectContainer.querySelectorAll('[aria-label*=\"project-card\"]');const nextDiv=noFilteringResults.nextElementSibling;if(cardComponents.length>0){filterProjectContainer.style.height=\"fit-content\";noFilteringResults.style.opacity=\"0\";noFilteringResults.style.height=\"0px\";deleteFilterElement.style.cursor=\"default\";if(nextDiv){nextDiv.style.height=\"fit-content\";}}else{filterProjectContainer.style.height=\"0px\";noFilteringResults.style.height=\"fit-content\";deleteFilterElement.style.cursor=\"pointer\";// Apply opacity after current execution stack\nsetTimeout(()=>{noFilteringResults.style.setProperty(\"opacity\",\"1\",\"important\");},300);if(nextDiv){nextDiv.style.height=\"0px\";}}};const observer=new MutationObserver(()=>{const currentContentCount=filterProjectContainer.childElementCount;// Ensure updateStyles is called even if there are no children\nif(currentContentCount!==previousContentCount||currentContentCount===0){previousContentCount=currentContentCount;updateStyles();}});observer.observe(filterProjectContainer,{childList:true,subtree:true,attributes:false});// Initial call to set styles\nupdateStyles();return()=>observer.disconnect();}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withScrollAnimation(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const scrollItems=document.querySelectorAll('[aria-label=\"scroll-item\"]');const imageGalleryContent=document.querySelector('[aria-label=\"image-gallery-content\"]');const imageGalleryWrapper=document.querySelector('[aria-label=\"image-gallery-wrapper\"]');const projectsWrapper=document.getElementById(\"projects-wrapper\");let currentActiveIndex=-1// Track the current active index\n;let isUpdating=false// Debounce flag to prevent multiple executions\n;// Add clip-path style to the image-gallery-wrapper\nif(imageGalleryWrapper){imageGalleryWrapper.style.clipPath=\"inset(1px 0 1px 0)\";}const updateActiveIndex=()=>{if(isUpdating)return;// Skip execution if already processing\nisUpdating=true;const viewportCenter=window.innerHeight/2;let newActiveIndex=-1// Default if no active item is found\n;const lastIndex=scrollItems.length-1;scrollItems.forEach((item,index)=>{const rect=item.getBoundingClientRect();const itemCenter=rect.top+rect.height/2;const isActive=Math.abs(viewportCenter-itemCenter)<rect.height/2;item.style.opacity=isActive?\"1\":\"0.5\";if(isActive){const subtractValue=Math.floor(index/2)// Calculate how much to subtract\n;newActiveIndex=index-subtractValue;}});// Handle beyond last item\nconst lastItem=scrollItems[lastIndex];if(lastItem){const lastItemBottom=lastItem.getBoundingClientRect().bottom;if(lastItemBottom<viewportCenter){newActiveIndex=999// Custom value for beyond last item\n;}}// Only update if the active index has changed\nif(newActiveIndex!==currentActiveIndex){currentActiveIndex=newActiveIndex;if(imageGalleryContent){imageGalleryContent.style.transform=`translate3d(0, calc((${newActiveIndex} - 1) * -100%), 0)`;imageGalleryContent.style.transition=\"transform 0.5s ease-in-out\";}if(projectsWrapper){projectsWrapper.style.setProperty(\"--index\",currentActiveIndex.toString());}}isUpdating=false// Reset debounce flag\n;};window.addEventListener(\"scroll\",()=>window.requestAnimationFrame(updateActiveIndex));updateActiveIndex()// Initial setup\n;return()=>window.removeEventListener(\"scroll\",updateActiveIndex);}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withScrollAnimationToImages(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const imageGallery=document.querySelectorAll('[aria-label=\"image-gallery\"]');const imageGalleryWrapper=document.querySelector('[aria-label=\"image-gallery-wrapper\"]');const projectsWrapper=document.getElementById(\"projects-wrapper\");if(imageGalleryWrapper&&projectsWrapper){// Function to animate showing the gallery wrapper\nconst showAnimation=()=>{// Make the wrapper visible before animating opacity\nimageGalleryWrapper.style.display=\"fixed\";imageGalleryWrapper.style.opacity=\"1\";imageGalleryWrapper.style.transition=\"opacity 0.4s ease-out\";};// Function to animate hiding the gallery wrapper\nconst hideAnimation=()=>{// Animate opacity to 0\nimageGalleryWrapper.style.opacity=\"0\";imageGalleryWrapper.style.transition=\"opacity 0.5s ease-in-out\";// Hide the element after the animation ends\nconst onTransitionEnd=()=>{imageGalleryWrapper.removeEventListener(\"transitionend\",onTransitionEnd);};imageGalleryWrapper.addEventListener(\"transitionend\",onTransitionEnd);};// Function to check and trigger animations\nconst checkAndAnimate=()=>{const index=parseInt(projectsWrapper.style.getPropertyValue(\"--index\"));if(index===1||index===imageGallery.length-1){showAnimation()// Show animation when index is 1 or the last one\n;}else if(index===999||index===-1){hideAnimation()// Hide animation when index is 999\n;}};// Add MutationObserver to watch for changes\nconst observer=new MutationObserver(checkAndAnimate);// Observe changes to the `style` attribute of `projects-wrapper`\nobserver.observe(projectsWrapper,{attributes:true,attributeFilter:[\"style\"]});// Initial check\ncheckAndAnimate();// Cleanup on unmount\nreturn()=>{observer.disconnect();};}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withWidthAndHeightImages(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const overlayBottom=document.getElementById(\"overlay-bottom\");const overlayRight=document.getElementById(\"overlay-right\");if(overlayBottom&&overlayRight){// Function to update the styles\nconst updateStyles=()=>{overlayBottom.style.height=\"40.2%\";overlayBottom.style.transition=\"height 0.4s ease-in-out\";overlayRight.style.width=\"24.25%\";overlayRight.style.transition=\"width 0.4s ease-in-out\";};// Initial style update\nupdateStyles();// Cleanup on unmount\nreturn()=>{overlayBottom.style.height=\"\"// Reset styles on unmount\n;overlayRight.style.width=\"\";};}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withMaxWidthAndLeftGap(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Get the content-wrapper-blog container\nconst contentWrapper=document.getElementById(\"content-wrapper-blog\");// Get all meta-info containers\nconst metaInfos=document.querySelectorAll(\"#meta-info, #meta-info-1, #meta-info-2\");// Apply styles to direct children of content-wrapper-blog\nif(contentWrapper){const contentChildren=contentWrapper.querySelectorAll(\":scope > *:not(img)\");contentChildren.forEach(el=>{const element=el;element.style.maxWidth=\"600px\";element.style.paddingLeft=\"40px\";element.style.marginLeft=\"31%\";});}// Apply styles to all meta-info containers\nmetaInfos.forEach(metaInfo=>{const metaInfoElement=metaInfo;metaInfoElement.style.maxWidth=\"600px\";metaInfoElement.style.paddingLeft=\"40px\";metaInfoElement.style.marginLeft=\"31%\";});}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withMaxWidthImages(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Get the content-wrapper-blog container\nconst contentWrapper=document.getElementById(\"content-wrapper-blog\");// Apply styles to direct <img> children of content-wrapper-blog\nif(contentWrapper){const images=contentWrapper.querySelectorAll(\":scope > img\")// Select only direct <img> children\n;images.forEach(img=>{const imageElement=img;// Ensure the image fills the space\nimageElement.style.width=\"100%\";imageElement.style.height=\"auto\";imageElement.style.objectFit=\"cover\"// Optional: Ensures the image covers its container without distortion\n;});// Select all <ul> direct children\nconst ulElements=contentWrapper.querySelectorAll(\":scope > ul\");ulElements.forEach(ul=>{// Select all <li> children within each <ul>\nconst liElements=ul.querySelectorAll(\":scope > li\");liElements.forEach(li=>{const styleSheet=document.styleSheets[0];// Add a CSS rule for ::before pseudo-element inside <li>\nstyleSheet.insertRule(`#content-wrapper-blog > ul > li::before {\n                                    display: table-cell;\n                                    width: 2.25ch;\n                                    box-sizing: border-box;\n                                    padding-inline-end: 0.75ch;\n                                    content: \"•\";\n                                    font-size: 12px;\n                                }`,styleSheet.cssRules.length);});});}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withReducedHeadingMargins(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Get the content-wrapper-blog container\nconst contentWrapper=document.getElementById(\"content-wrapper-blog\");if(contentWrapper){// Select all direct heading tags (h1 to h6)\nconst headings=contentWrapper.querySelectorAll(\":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6\");headings.forEach(heading=>{const element=heading;const currentMarginTop=window.getComputedStyle(element).marginTop;// Parse the current margin-top value and reduce it by 15%\nif(currentMarginTop){const currentMarginTopValue=parseFloat(currentMarginTop);const reducedMarginTopValue=currentMarginTopValue*.85;element.style.marginTop=`${reducedMarginTopValue}px`;}});}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export const withShuffledAriaLabels=Component=>{const ShuffledComponent=props=>{const componentRef=useRef(null);const shuffleItems=()=>{const container=componentRef.current;if(!container)return;const items=Array.from(container.querySelectorAll('[id*=\"card-item\"]'));// Shuffle the array\nfor(let i=items.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[items[i],items[j]]=[items[j],items[i]];}return items;};const displayFirstThreeItems=items=>{items.forEach((item,index)=>{item.style.display=index<3?\"\":\"none\";});};useEffect(()=>{const shuffledItems=shuffleItems();displayFirstThreeItems(shuffledItems);},[])// Empty dependency array ensures this runs once after initial render\n;return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};return ShuffledComponent;};export const withBlogShuffledAriaLabels=Component=>{const ShuffledBlogComponent=props=>{const componentRef=useRef(null);const shuffleItems=()=>{const container=componentRef.current;if(!container)return;const items=Array.from(container.querySelectorAll('[aria-label*=\"card-item\"]'));// Shuffle the array\nfor(let i=items.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[items[i],items[j]]=[items[j],items[i]];}return items;};const displayFirstTwentyFourItems=items=>{items.forEach((item,index)=>{item.style.display=index<24?\"\":\"none\";});};useEffect(()=>{const shuffledItems=shuffleItems();displayFirstTwentyFourItems(shuffledItems);},[])// Empty dependency array ensures this runs once after initial render\n;return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};return ShuffledBlogComponent;};export const withAriaLabelOverrides=Component=>{const OverriddenComponent=props=>{const componentRef=useRef(null);//     // Function to dynamically inject CSS into the head\n//     const injectCSS = () => {\n//         const style = document.createElement(\"style\")\n//         style.innerHTML = `\n//     /* Limit text to two lines */\n//     .two-lines {\n//       display: -webkit-box;\n//       -webkit-line-clamp: 2;\n//       -webkit-box-orient: vertical;\n//       overflow: hidden;\n//       text-overflow: ellipsis;\n//     }\n//     /* Limit text to six words per line */\n//     .six-lines {\n//        display: -webkit-box;\n//       -webkit-line-clamp: 6;\n//       -webkit-box-orient: vertical;\n//       overflow: hidden;\n//       text-overflow: ellipsis;\n//     }\n//   `\n//         document.head.appendChild(style)\n//     }\n// Function to apply styles based on the aria-label and find the p or h tags inside\nconst applyAriaLabelStyles=()=>{const container=componentRef.current;if(!container)return;// Find all elements with aria-label=\"two-lines\"\nconst twoLinesContainers=container.querySelectorAll('[aria-label=\"two-lines\"]');twoLinesContainers.forEach(container=>{// Look for p or h tags inside the container and apply the 'two-lines' class\nconst textElement=container.querySelector(\"p, h1, h2, h3, h4, h5, h6\");if(textElement){textElement.classList.add(\"two-lines\");}});// Find all elements with aria-label=\"six-lines\"\nconst sixLinesContainers=container.querySelectorAll('[aria-label=\"six-lines\"]');sixLinesContainers.forEach(container=>{// Look for p or h tags inside the container and apply the 'six-lines' class\nconst textElement=container.querySelector(\"p, h1, h2, h3, h4, h5, h6\");if(textElement){textElement.classList.add(\"six-lines\");}});};// Call the injectCSS function to inject the styles once the component mounts\nuseEffect(()=>{// injectCSS() // Inject CSS styles into the document\napplyAriaLabelStyles()// Apply the styles for elements with aria-label=\"two-lines\" or \"six-lines\"\n;},[]);return /*#__PURE__*/_jsx(Component,{ref:componentRef,...props});};return OverriddenComponent;};export function withDirectChildRoomLinks(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Select all containers with aria-label \"list-project-rooms\"\nconst projectRoomsContainers=document.querySelectorAll('[aria-label=\"list-project-rooms\"]');console.log(\"projectRoomsContainers\",projectRoomsContainers);projectRoomsContainers.forEach(projectRoomsContainer=>{// Select only direct child divs of each container\nconst roomDivs=projectRoomsContainer.querySelectorAll(\":scope > div\");console.log(\"Room Divs\",roomDivs);roomDivs.forEach(div=>{// Find the slug inside the child div (aria-label \"project-room-name\" with p tag)\nconst roomNameElement=div.querySelector('[aria-label=\"project-room-name\"] p');console.log(\"Room Name\",roomNameElement);if(roomNameElement&&roomNameElement.textContent){// Generate slug from room name\nconst slug=roomNameElement.textContent.trim();const roomUrl=`${window.location.origin}/projects/${slug.toLowerCase().replace(/:/g,\"\").replace(/\\s+/g,\"-\")}`;console.log(roomUrl);// Make the div a clickable link\ndiv.style.cursor=\"pointer\";div.onclick=()=>{window.location.href=roomUrl;};// Optionally add the link as a data attribute for debugging\ndiv.setAttribute(\"data-anchor-link\",roomUrl);}});});}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withDirectChildProjectLinks(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Find the container with aria-label \"list-projects\"\nconst projectsContainer=document.querySelector('[aria-label=\"list-projects\"]');if(projectsContainer){// Select only direct child divs of the container\nconst projectDivs=projectsContainer.querySelectorAll(\":scope > div\");projectDivs.forEach(div=>{// Find the slug inside the child div (aria-label \"project-room-name\" with p tag)\nconst projectNameElement=div.querySelector('[aria-label=\"project-name\"] p');if(projectNameElement&&projectNameElement.textContent){// Combine the house name and room name\nconst slug=projectNameElement.textContent.trim();console.log(slug);// Construct the URL for the room\nconst baseUrl=`${window.location.origin}/projects`;const projectUrl=`${baseUrl}/${slug.toLowerCase().replace(/:/g,\"\").replace(/\\s+/g,\"-\")}`;// Make the div itself a clickable link\ndiv.style.cursor=\"pointer\";div.onclick=()=>{window.location.href=projectUrl;};// Optionally add the link as a data attribute for debugging\ndiv.setAttribute(\"data-anchor-link\",projectUrl);}});}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withDynamicZIndex(Component){return props=>{useEffect(()=>{// Grab the container by its aria-label\nconst container=document.querySelector('[aria-label=\"filter-project-container\"]');if(container){// Get only direct child div elements\nconst childDivs=Array.from(container.children).filter(child=>child.tagName===\"DIV\");// Apply z-index to the first-level child divs\nchildDivs.forEach((div,index)=>{const htmlElement=div;htmlElement.style.zIndex=`${childDivs.length-index}`;// Find the first child <div> inside this div\nconst innerChildDiv=htmlElement.querySelector(\"div\");if(innerChildDiv){const innerHtmlElement=innerChildDiv;// Apply z-index to the first inner child div\ninnerHtmlElement.style.zIndex=`${childDivs.length-index}`;}});}else{console.error('No container found with aria-label \"filter-project-container\"');}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withBreadcrumbLinkUpdate(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){// Find the breadcrumb link element with aria-label \"breadcrumb-link-2\"\nconst breadcrumbLinkElement=document.querySelector('[aria-label=\"breadcrumb-link-2\"] a');const houseName=breadcrumbLinkElement?.textContent?.trim()||\"\";if(breadcrumbLinkElement){// Generate the new href using only the room-name\nconst newHref=`./${houseName.toLowerCase().replace(/\\s+/g,\"-\")}`;// Update the href of the breadcrumb link\nbreadcrumbLinkElement.setAttribute(\"href\",newHref);// Add click event to override default navigation\nbreadcrumbLinkElement.onclick=event=>{event.preventDefault();window.location.href=newHref;};}}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// Function to copy to clipboard\nfunction HandleCopyToClipboard(url){navigator.clipboard.writeText(url).then(()=>{console.log(\"URL copied to clipboard:\",url);}).catch(err=>{console.error(\"Could not copy URL: \",err);});}export function copyToClipboard(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>HandleCopyToClipboard(window.location.href)});};}export function withScrollHighlight(Component){return props=>{const[activeHeadingIndex,setActiveHeadingIndex]=useState(null);useEffect(()=>{if(typeof window!==\"undefined\"){const headingsContainer=document.querySelector(\"#content-wrapper-blog\");// if (headingsContainer) {\n//     const headings = Array.from(\n//         headingsContainer.querySelectorAll(\"h2,h3,h4,h5,h6\")\n//     )\n//     const observerOptions = {\n//         root: null,\n//         rootMargin: \"-50px 0px 0px 0px\",\n//         threshold: 0,\n//     }\n//     const observer = new IntersectionObserver((entries) => {\n//         entries.forEach((entry) => {\n//             if (entry.isIntersecting) {\n//                 // Get the position of the heading relative to the viewport\n//                 const { top } = entry.boundingClientRect\n//                 console.log(top)\n//                 // Update activeHeadingIndex only when the heading is 50px from the top\n//                 if (\n//                     top >= 50 &&\n//                     top <= 100 &&\n//                     entry.isIntersecting\n//                 ) {\n//                     setActiveHeadingIndex(\n//                         headings.indexOf(entry.target)\n//                     )\n//                 }\n//             }\n//         })\n//     }, observerOptions)\n//     headings.forEach((heading) => {\n//         observer.observe(heading)\n//     })\n//     return () => observer.disconnect()\n// }\nif(headingsContainer){const headings=Array.from(headingsContainer.querySelectorAll(\"h2, h3, h4, h5, h6\"));// Function to check which heading is closest to 70px from the top\nconst checkActiveHeading=()=>{const closestIndex=headings.findIndex(heading=>{const rect=heading.getBoundingClientRect();return rect.top>=70&&rect.top<=100;});if(closestIndex!==-1&&closestIndex!==activeHeadingIndex){setActiveHeadingIndex(closestIndex);}};// Add scroll event listener\nwindow.addEventListener(\"scroll\",checkActiveHeading);// Initial check\ncheckActiveHeading();return()=>{window.removeEventListener(\"scroll\",checkActiveHeading);};}}},[]);// Use activeHeadingIndex to highlight the corresponding heading in the table-of-content\nuseEffect(()=>{if(typeof window!==\"undefined\"&&activeHeadingIndex!==null){const tocLinks=document.querySelectorAll(\"#table-of-content p\");tocLinks.forEach((link,index)=>{const elementStyle=link.style;elementStyle.color=\"\";if(index===activeHeadingIndex){elementStyle.color=\"#231F1C\";}//                     #table-of-content p {\n//     color: #000; /* Default color */\n//     font-weight: normal; /* Default font weight */\n//     transition: color 0.3s ease, font-weight 0.3s ease; /* Smooth transition */\n// }\n// #table-of-content p.active {\n//     color: #007bff; /* Active color */\n//     font-weight: bold; /* Active font weight */\n// }\n// link.classList.remove(\"active\") // Remove active class from all links\n// if (index === activeHeadingIndex) {\n//     link.classList.add(\"active\") // Add active class to the current link\n// }\n});}},[activeHeadingIndex]);return /*#__PURE__*/_jsx(Component,{...props});};}// FUNCTION - DropCap functionality\n// export function withTextStealAndReplace(\n//     Component: ComponentType\n// ): ComponentType {\n//     return (props) => {\n//         useEffect(() => {\n//             const interval = setInterval(() => {\n//                 if (typeof window !== \"undefined\") {\n//                     // Find the container with ID \"content-wrapper-blog\"\n//                     const contentWrapper = document.querySelector(\n//                         \"#content-wrapper-blog\"\n//                     )\n//                     if (contentWrapper) {\n//                         // Find the first paragraph with actual content\n//                         const paragraphs =\n//                             contentWrapper.querySelectorAll(\":scope > p\")\n//                         let targetParagraph = null\n//                         for (let p of paragraphs) {\n//                             if (p.textContent?.trim()) {\n//                                 targetParagraph = p\n//                                 break\n//                             }\n//                         }\n//                         if (targetParagraph) {\n//                             // Get both text content and HTML content\n//                             const textContent =\n//                                 targetParagraph.textContent || \"\"\n//                             const htmlContent = targetParagraph.innerHTML || \"\"\n//                             // Find the container with ID \"blog-text-drop-cap\"\n//                             const dropCapContainer = document.querySelector(\n//                                 \"#blog-text-drop-cap p\"\n//                             )\n//                             if (\n//                                 dropCapContainer &&\n//                                 textContent &&\n//                                 htmlContent\n//                             ) {\n//                                 // Extract the first letter from text content\n//                                 const firstLetter = textContent.charAt(0)\n//                                 // Create a temporary div to manipulate the HTML\n//                                 const tempDiv = document.createElement(\"div\")\n//                                 tempDiv.innerHTML = htmlContent\n//                                 // Find the first text node and remove its first character\n//                                 const walker = document.createTreeWalker(\n//                                     tempDiv,\n//                                     NodeFilter.SHOW_TEXT,\n//                                     {\n//                                         acceptNode: function (node) {\n//                                             return node.textContent?.trim()\n//                                                 ? NodeFilter.FILTER_ACCEPT\n//                                                 : NodeFilter.FILTER_REJECT\n//                                         },\n//                                     }\n//                                 )\n//                                 const firstTextNode = walker.nextNode()\n//                                 if (\n//                                     firstTextNode &&\n//                                     firstTextNode.textContent\n//                                 ) {\n//                                     firstTextNode.textContent =\n//                                         firstTextNode.textContent.slice(1)\n//                                 }\n//                                 // Find or create the <span> element inside the dropCapContainer\n//                                 let spanElement =\n//                                     dropCapContainer.querySelector(\"span\")\n//                                 if (!spanElement) {\n//                                     spanElement = document.createElement(\"span\")\n//                                     dropCapContainer.prepend(spanElement)\n//                                 }\n//                                 // Set the first letter inside the <span>\n//                                 spanElement.textContent = firstLetter\n//                                 // Clear existing non-span content and add the HTML content\n//                                 dropCapContainer.childNodes.forEach((node) => {\n//                                     if (node !== spanElement) node.remove()\n//                                 })\n//                                 // Insert the remaining HTML content (preserving links and formatting)\n//                                 const remainingHTML = tempDiv.innerHTML.trim()\n//                                 if (remainingHTML) {\n//                                     dropCapContainer.insertAdjacentHTML(\n//                                         \"beforeend\",\n//                                         remainingHTML\n//                                     )\n//                                 }\n//                                 // Only remove the paragraph AFTER successfully transferring content\n//                                 targetParagraph.remove()\n//                             }\n//                         }\n//                         clearInterval(interval)\n//                     }\n//                 }\n//             }, 100)\n//         }, [])\n//         return <Component {...props} />\n//     }\n// }\n// FUNCTION - DropCap functionality\nexport function withTextStealAndReplace(Component){return props=>{useEffect(()=>{let originalContent=null;let originalParagraph=null;const runDropCap=()=>{const interval=setInterval(()=>{if(typeof window!==\"undefined\"){// Find the container with ID \"content-wrapper-blog\"\nconst contentWrapper=document.querySelector(\"#content-wrapper-blog\");if(contentWrapper){// Find the container with ID \"blog-text-drop-cap\"\nconst dropCapContainer=document.querySelector(\"#blog-text-drop-cap p\");if(dropCapContainer){// Check if we already have stored content\nif(originalContent&&originalParagraph){// Use stored content\nprocessDropCap(dropCapContainer,originalContent.text,originalContent.html);}else{// Find the first paragraph with actual content and store it\nconst paragraphs=contentWrapper.querySelectorAll(\":scope > p\");let targetParagraph=null;for(let p of paragraphs){if(p.textContent?.trim()){targetParagraph=p;break;}}if(targetParagraph){// Store the original content\noriginalContent={text:targetParagraph.textContent||\"\",html:targetParagraph.innerHTML||\"\"};originalParagraph=targetParagraph;// Process the drop cap\nprocessDropCap(dropCapContainer,originalContent.text,originalContent.html);// Hide the original paragraph instead of removing it\ntargetParagraph.style.display=\"none\";}}}clearInterval(interval);}}},100);};const processDropCap=(dropCapContainer,textContent,htmlContent)=>{if(dropCapContainer&&textContent&&htmlContent){// Extract the first letter from text content\nconst firstLetter=textContent.charAt(0);// Simple approach: just remove the first character from the HTML string\n// Find the first occurrence of the first letter in the HTML\nconst firstLetterIndex=htmlContent.search(/\\S/)// Find first non-whitespace character\n;let modifiedHTML=htmlContent;if(firstLetterIndex!==-1){// Remove the first non-whitespace character\nmodifiedHTML=htmlContent.substring(0,firstLetterIndex)+htmlContent.substring(firstLetterIndex+1);}// Find or create the <span> element inside the dropCapContainer\nlet spanElement=dropCapContainer.querySelector(\"span\");if(!spanElement){spanElement=document.createElement(\"span\");dropCapContainer.prepend(spanElement);}// Set the first letter inside the <span>\nspanElement.textContent=firstLetter;// Clear existing non-span content and add the HTML content\ndropCapContainer.childNodes.forEach(node=>{if(node!==spanElement)node.remove();});// Insert the remaining HTML content (preserving links and formatting)\nif(modifiedHTML.trim()){dropCapContainer.insertAdjacentHTML(\"beforeend\",modifiedHTML);}}};// Run initially\nrunDropCap();// Run again on window resize (with debounce)\nlet resizeTimeout;const handleResize=()=>{clearTimeout(resizeTimeout);resizeTimeout=setTimeout(()=>{runDropCap();},300);};window.addEventListener(\"resize\",handleResize);// Cleanup\nreturn()=>{window.removeEventListener(\"resize\",handleResize);clearTimeout(resizeTimeout);// Restore original paragraph if it exists\nif(originalParagraph){originalParagraph.style.display=\"\";}};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// FUNCTION - Replace \"(location)\" with the text content from <p id=\"location\">\nexport function withLocationAndProjectNameReplace(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){setTimeout(()=>{// Find the <p> tags with the IDs \"location\" and \"project-name\"\nconst locationElement=document.getElementById(\"location\");const projectNameElement=document.getElementById(\"project-name\");const locationText=locationElement?.textContent||\"\";const projectNameText=projectNameElement?.textContent||\"\";if(locationText||projectNameText){// Select all elements containing text nodes on the page\nconst elementsWithText=document.querySelectorAll(\"*:not(script):not(style)\");elementsWithText.forEach(element=>{element.childNodes.forEach(node=>{if(node.nodeType===Node.TEXT_NODE){let updatedText=node.nodeValue||\"\";// Replace \"(location)\" if applicable\nif(locationText&&updatedText.includes(\"(location)\")){updatedText=updatedText.replaceAll(\"(location)\",locationText);}// Replace \"(house-name)\" if applicable\nif(projectNameText&&updatedText.includes(\"(house-name)\")){updatedText=updatedText.replaceAll(\"(house-name)\",projectNameText);}// Update the text node only if there were changes\nif(updatedText!==node.nodeValue){node.nodeValue=updatedText;}}});});}},500)// Delay execution slightly\n;}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withBoldReplace(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const boldRegex=/\\[\\[(.*?)\\]\\]/g;const elementsForBold=document.querySelectorAll(\"*:not(script):not(style)\");elementsForBold.forEach(element=>{element.childNodes.forEach(node=>{if(node.nodeType===Node.TEXT_NODE&&node.nodeValue?.includes(\"[[\")){const text=node.nodeValue;let match;const frag=document.createDocumentFragment();let lastIndex=0;// Process each occurrence of [[text]]\nwhile((match=boldRegex.exec(text))!==null){// Append text before the match\nconst textBefore=text.slice(lastIndex,match.index);if(textBefore){frag.appendChild(document.createTextNode(textBefore));}// Create a <b> element for the matched text (match[1])\nconst boldElement=document.createElement(\"b\");boldElement.textContent=match[1];frag.appendChild(boldElement);lastIndex=boldRegex.lastIndex;}// Append any remaining text after the last match\nif(lastIndex<text.length){frag.appendChild(document.createTextNode(text.slice(lastIndex)));}// Replace the original text node with the new fragment\nif(frag.childNodes.length>0){node.parentNode?.replaceChild(frag,node);}}});});}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withFixedSlidehowPaginationControls(Component){return props=>{const containerRef=useRef(null);useEffect(()=>{if(!containerRef.current)return;const fieldset=containerRef.current.querySelector('fieldset[aria-label=\"Slideshow pagination controls\"]');if(!fieldset)return;console.log(fieldset);const directChildDiv=fieldset.querySelector(\":scope > div\");console.log(directChildDiv);if(directChildDiv){// directChildDiv.style.position = \"fixed\"\n// directChildDiv.style.right = \"24px\"\n// directChildDiv.style.left = \"24px\"\n}},[props.children]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,children:/*#__PURE__*/_jsx(Component,{...props})});};}// Download Button\nexport function withAutoDownloadOnSubmit(Component){return props=>{const containerRef=useRef(null);const lastTriggerTime=useRef(0);useEffect(()=>{if(!containerRef.current)return;const form=containerRef.current.querySelector(\"#form\");const downloadButton=containerRef.current.querySelector(\"#download-button\");if(!form||!downloadButton)return;const handleFormSubmit=event=>{const currentTime=Date.now();if(currentTime-lastTriggerTime.current<5e3)return;// Prevent multiple triggers within 5 seconds\nlastTriggerTime.current=currentTime;setTimeout(()=>{downloadButton.click();},1e3);};form.addEventListener(\"submit\",handleFormSubmit);return()=>{form.removeEventListener(\"submit\",handleFormSubmit);};},[props.children]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicZIndex\":{\"type\":\"reactHoc\",\"name\":\"withDynamicZIndex\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"copyToClipboard\":{\"type\":\"reactHoc\",\"name\":\"copyToClipboard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWidthAndHeightImages\":{\"type\":\"reactHoc\",\"name\":\"withWidthAndHeightImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxWidthAndLeftGap\":{\"type\":\"reactHoc\",\"name\":\"withMaxWidthAndLeftGap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBlogShuffledAriaLabels\":{\"type\":\"reactHoc\",\"name\":\"withBlogShuffledAriaLabels\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextStealAndReplace\":{\"type\":\"reactHoc\",\"name\":\"withTextStealAndReplace\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLocationAndProjectNameReplace\":{\"type\":\"reactHoc\",\"name\":\"withLocationAndProjectNameReplace\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAutoDownloadOnSubmit\":{\"type\":\"reactHoc\",\"name\":\"withAutoDownloadOnSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDirectChildProjectLinks\":{\"type\":\"reactHoc\",\"name\":\"withDirectChildProjectLinks\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollAnimation\":{\"type\":\"reactHoc\",\"name\":\"withScrollAnimation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollHighlight\":{\"type\":\"reactHoc\",\"name\":\"withScrollHighlight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withConditionalDisplay\":{\"type\":\"reactHoc\",\"name\":\"withConditionalDisplay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReducedHeadingMargins\":{\"type\":\"reactHoc\",\"name\":\"withReducedHeadingMargins\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollAnimationToImages\":{\"type\":\"reactHoc\",\"name\":\"withScrollAnimationToImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxWidthImages\":{\"type\":\"reactHoc\",\"name\":\"withMaxWidthImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFixedSlidehowPaginationControls\":{\"type\":\"reactHoc\",\"name\":\"withFixedSlidehowPaginationControls\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBoldReplace\":{\"type\":\"reactHoc\",\"name\":\"withBoldReplace\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAriaLabelOverrides\":{\"type\":\"reactHoc\",\"name\":\"withAriaLabelOverrides\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDirectChildRoomLinks\":{\"type\":\"reactHoc\",\"name\":\"withDirectChildRoomLinks\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShuffledAriaLabels\":{\"type\":\"reactHoc\",\"name\":\"withShuffledAriaLabels\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBreadcrumbLinkUpdate\":{\"type\":\"reactHoc\",\"name\":\"withBreadcrumbLinkUpdate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utilities.map"],"mappings":"A,gJAAwF,SAAgBW,EAAuB,EAA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