{"version":3,"file":"ResponsivePageRootFix.DPRyyV3B.mjs","names":["React.useRef","__esmMin","le","init_ssg_sandbox_shims","de","c","init_jsx_runtime","init_npm_react_18_3_1","window","useIsStaticRenderer","addPropertyControls","init_framer_BkYB2Gqq","ResponsivePageRootFix","markerRef","isStatic","viewportContent","originalMeta","createdMeta","syncViewport","tags","meta","page","previousPageAttribute","saved","frame","save","element","values","property","PROPERTIES","setImportant","value","restore","previous","apply","viewport","computed","rect","minimum","requestApply","headObserver","init_ResponsivePageRootFix"],"sources":["https:/framerusercontent.com/modules/CyFitHaBM7mGYjaIjvKB/oV4X5rfX8zuhCbQqO9C9/ResponsivePageRootFix.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,useIsStaticRenderer}from\"framer\";const PROPERTIES=[\"width\",\"max-width\",\"min-width\",\"box-sizing\",\"overflow-x\"];/**\n * Responsive Page Root Fix\n *\n * Corrects Framer pages that only have a fixed desktop breakpoint by forcing\n * oversized page ancestors to use the real browser viewport width on tablet\n * and phone. The page's existing code component can then respond normally.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ResponsivePageRootFix(){const markerRef=React.useRef(null);const isStatic=useIsStaticRenderer();React.useLayoutEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"||isStatic){return;}// Native phone/tablet breakpoints now supply the correct initial viewport.\n// Retain this fallback for legacy pages that still have only Desktop.\nconst viewportContent=\"width=device-width, initial-scale=1\";const originalMeta=new Map;let createdMeta=null;const syncViewport=()=>{const tags=Array.from(document.querySelectorAll('meta[name=\"viewport\"]'));if(!tags.length){createdMeta=document.createElement(\"meta\");createdMeta.name=\"viewport\";document.head.appendChild(createdMeta);tags.push(createdMeta);}tags.forEach(meta=>{if(!originalMeta.has(meta))originalMeta.set(meta,meta.getAttribute(\"content\"));if(meta.content!==viewportContent)meta.content=viewportContent;});};syncViewport();const page=markerRef.current?.closest(\"[data-framer-root]\");const previousPageAttribute=page?.getAttribute(\"data-cai-responsive-page\");page?.setAttribute(\"data-cai-responsive-page\",\"\");const saved=new Map;let frame=0;const save=element=>{if(saved.has(element))return;const values={};for(const property of PROPERTIES){values[property]={value:element.style.getPropertyValue(property),priority:element.style.getPropertyPriority(property)};}saved.set(element,values);};const setImportant=(element,property,value)=>{save(element);element.style.setProperty(property,value,\"important\");};const restore=()=>{saved.forEach((values,element)=>{for(const property of PROPERTIES){const previous=values[property];if(previous.value){element.style.setProperty(property,previous.value,previous.priority);}else{element.style.removeProperty(property);}}});saved.clear();};const apply=()=>{frame=0;restore();syncViewport();const viewport=Math.max(1,document.documentElement.clientWidth||window.innerWidth);if(viewport>=1200)return;let element=markerRef.current?.parentElement??null;while(element&&element!==document.body){const computed=window.getComputedStyle(element);const rect=element.getBoundingClientRect();const minimum=Number.parseFloat(computed.minWidth)||0;if(rect.width>viewport+1||minimum>viewport){setImportant(element,\"width\",\"100%\");setImportant(element,\"max-width\",\"100%\");setImportant(element,\"min-width\",\"0px\");setImportant(element,\"box-sizing\",\"border-box\");setImportant(element,\"overflow-x\",\"clip\");}element=element.parentElement;}setImportant(document.documentElement,\"max-width\",\"100%\");setImportant(document.documentElement,\"overflow-x\",\"clip\");setImportant(document.body,\"max-width\",\"100%\");setImportant(document.body,\"overflow-x\",\"clip\");};const requestApply=()=>{if(frame)return;frame=window.requestAnimationFrame(apply);};apply();requestApply();// Framer may replace head metadata on client-side navigation.\nconst headObserver=new MutationObserver(requestApply);headObserver.observe(document.head,{childList:true,subtree:true,attributes:true,attributeFilter:[\"content\"]});window.addEventListener(\"pageshow\",requestApply);window.addEventListener(\"resize\",requestApply,{passive:true});window.addEventListener(\"orientationchange\",requestApply,{passive:true});return()=>{if(frame)window.cancelAnimationFrame(frame);window.removeEventListener(\"resize\",requestApply);window.removeEventListener(\"orientationchange\",requestApply);headObserver.disconnect();window.removeEventListener(\"pageshow\",requestApply);restore();originalMeta.forEach((value,meta)=>{if(meta===createdMeta)meta.remove();else if(meta.content===viewportContent){if(value===null)meta.removeAttribute(\"content\");else meta.content=value;}});if(page){if(previousPageAttribute==null)page.removeAttribute(\"data-cai-responsive-page\");else page.setAttribute(\"data-cai-responsive-page\",previousPageAttribute);}};},[isStatic]);return /*#__PURE__*/_jsx(\"div\",{ref:markerRef,className:\"cai-responsive-page-marker\",\"aria-hidden\":\"true\",style:{position:\"absolute\",width:1,height:1,overflow:\"hidden\",opacity:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"style\",{children:`\n/* Phone and tablet headings in the native solution sections. */\n@media(max-width:1199px){\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) h1.framer-text{font-size:clamp(40px,6.5vw,72px)!important;line-height:1.05!important;overflow-wrap:break-word}\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) h2.framer-text{font-size:clamp(30px,4.8vw,52px)!important;line-height:1.12!important}\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) h3.framer-text{font-size:clamp(25px,3.8vw,38px)!important;line-height:1.15!important}\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) .framer-text{overflow-wrap:break-word}\n}\n@media(max-width:599px){\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) h1.framer-text{font-size:clamp(36px,10vw,48px)!important}\n :is([data-cai-responsive-page], [data-framer-root]:has(.cai-responsive-page-marker)) h2.framer-text{font-size:clamp(28px,8.5vw,36px)!important}\n}\n`})});}addPropertyControls(ResponsivePageRootFix,{});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ResponsivePageRootFix\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"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