{"version":3,"file":"ViewportSizing.DnSnWLS_.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/xZTi9qHVdVRKu1jI4edT/E6m47nObIE7XherbHynA/ViewportSizing.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";import{MotionConfig}from\"framer-motion\";// Native text effects tokenize differently when reduced motion is enabled.\n// Keep the server and first client render identical, then honour the preference.\n// MotionConfig adds no DOM element and leaves the native effect settings intact.\nexport function withHydrationSafeMotion(Component){return /*#__PURE__*/forwardRef(function HydrationSafeMotion(props,ref){const[hydrated,setHydrated]=useState(false);useEffect(()=>setHydrated(true),[]);return /*#__PURE__*/_jsx(MotionConfig,{reducedMotion:hydrated?\"user\":\"never\",children:/*#__PURE__*/_jsx(Component,{...props,ref:ref})});});}// Equal outer tracks centre text/media within the hero, including a taller ticker.\n// The native hero has equal top/bottom padding; tracks retain content minimums.\n// Use-case heroes have a stacked text/media layout on phones and tablets.\n// Keep the browser-toolbar-safe viewport as a minimum, and let short viewports\n// scroll when the content needs more room. Page instances must use Auto height.\nconst contentSafeHeroStyles=`\n.iw-content-safe-hero > [data-framer-name=\"section-container\"] {\n    display: grid;\n    grid-template-columns: minmax(0, 1fr);\n    grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);\n    align-items: start;\n    height: auto !important;\n    flex-basis: auto !important;\n    min-height: min-content;\n    row-gap: 16px;\n}\n.iw-content-safe-hero > [data-framer-name=\"section-container\"] > :last-child {\n    align-self: end;\n}\n@media (max-width: 1199.98px) {\n    .iw-content-safe-hero > [data-framer-name=\"section-container\"] > [data-framer-name=\"header-spacer\"] {\n        min-height: 92px;\n    }\n}\n@media (max-width: 809.98px) {\n    .iw-content-safe-hero > [data-framer-name=\"section-container\"] > [data-framer-name=\"header-spacer\"] {\n        min-height: 88px;\n    }\n    .iw-content-safe-hero[data-framer-name=\"phone-homepage\"] > [data-framer-name=\"section-container\"] > [data-framer-name=\"header-spacer\"] {\n        min-height: 80px;\n    }\n}\n`;export function withContentSafeHeroViewportHeight(Component){return /*#__PURE__*/forwardRef(function ContentSafeHeroViewportHeight(props,ref){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:contentSafeHeroStyles}}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,className:[props.className,\"iw-content-safe-hero\"].filter(Boolean).join(\" \"),style:{...props.style,height:\"auto\",minHeight:\"100svh\"}})]});});}// Canvas bindings retain their existing with-prefixed names.\n// These wrappers replace the legacy object-returning override format.\nexport function withSmallViewportHeight(Component){return /*#__PURE__*/forwardRef(function SmallViewport(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,height:\"100svh\",width:\"100%\",minHeight:\"100svh\"}});});}export function withDynamicViewportHeight(Component){return /*#__PURE__*/forwardRef(function DynamicViewport(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,height:\"100dvh\",width:\"100%\",minHeight:\"100dvh\"}});});}export function withHeroViewportHeight(Component){return withSmallViewportHeight(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withSmallViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withSmallViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHydrationSafeMotion\":{\"type\":\"reactHoc\",\"name\":\"withHydrationSafeMotion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withHeroViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDynamicViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withDynamicViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContentSafeHeroViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withContentSafeHeroViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewportSizing.map"],"mappings":"+LAGA,SAAgB,EAAwB,EAAU,CAAC,OAAoB,EAAW,SAA6B,EAAM,EAAI,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAsC,OAApC,MAAc,EAAY,EAAI,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAa,CAAC,cAAc,EAAS,OAAO,QAAQ,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAU,KAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,CAgCnV,SAAgB,EAAkC,EAAU,CAAC,OAAoB,EAAW,SAAuC,EAAM,EAAI,CAAC,OAAoB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAqB,CAAC,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,UAAU,CAAC,EAAM,UAAU,sBAAsB,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAE,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,UAAU,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,mBAnChY,IAAiD,IAAwC,EAQjK,EAAsB"}