{"version":3,"file":"UtilityFunctions.CLMLiGT5.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/L7QoflBM8xrn1Tj80HcD/zTgSW9IrfmO0In9olkh9/UtilityFunctions.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useRef,useMemo}from\"react\";import{v4 as uuidv4}from\"uuid\";import styled from\"styled-components\";export function withAspectRatioSquare(Component){const StyledComponent=styled(Component)`\n        width: 100%;\n        aspect-ratio: 1/1;\n        min-height: fit-contnet;\n        height: auto !important\";\n    `;return props=>{return /*#__PURE__*/_jsx(StyledComponent,{...props});};}export function withFillParent(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{width:\"100%\",aspectRatio:\"1/1\",height:\"auto !important\"}});};}export function withNavReload(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{}});};}export function withNavBlur(Component){return props=>{const compRef=useRef(null);const uuid=useMemo(()=>uuidv4(),[]);const getSiblings=()=>{if(!compRef.current)return;const parent=compRef.current.closest(\"nav\");return parent?.querySelectorAll(`*[data-blur-uuid]:not([data-blur-uuid=\"${uuid}\"])`);};const handleMouseEnter=ev=>{if(!compRef.current)return;const siblings=getSiblings();siblings?.forEach(el=>{el.style.filter=\"blur(1px)\";});compRef.current.style.removeProperty(\"filter\");};const handleMouseLeave=ev=>{if(!compRef.current)return;const siblings=getSiblings();compRef.current.style.removeProperty(\"filter\");siblings?.forEach(el=>{el.style.removeProperty(\"filter\");});};return /*#__PURE__*/_jsx(Component,{...props,ref:compRef,\"data-blur-uuid\":uuid,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,style:{...props.style,transition:\"filter 0.3s linear\"}});};}export function withOverlayNavBlur(Component){return props=>{const compRef=useRef(null);const uuid=useMemo(()=>uuidv4(),[]);const getSiblings=()=>{if(!compRef.current)return;const parent=compRef.current.parentNode.parentNode;return parent?.querySelectorAll(`*[data-blur-uuid]:not([data-blur-uuid=\"${uuid}\"])`);};const handleMouseEnter=ev=>{if(!compRef.current||compRef.current.tagName!==\"A\")return;const siblings=getSiblings();siblings?.forEach(el=>{el.style.filter=\"blur(1px)\";});compRef.current.style.removeProperty(\"filter\");};const handleMouseLeave=ev=>{if(!compRef.current||compRef.current.tagName!==\"A\")return;const siblings=getSiblings();compRef.current.style.removeProperty(\"filter\");siblings.forEach(el=>{el.style.removeProperty(\"filter\");});};return /*#__PURE__*/_jsx(Component,{...props,ref:compRef,\"data-blur-uuid\":uuid,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,style:{...props.style,transition:\"filter 0.3s linear\"}});};}export function withOverlayBlur(Component){return props=>{const compRef=useRef(null);const getNavigationItems=()=>{const navigation=document.querySelector(\"nav\");return navigation?.querySelectorAll(`*[data-blur-uuid]:not(button)`);};const handleMouseEnter=ev=>{if(!compRef.current)return;const navItems=getNavigationItems();navItems?.forEach(el=>{el.style.filter=\"blur(1px)\";});};const handleMouseLeave=ev=>{if(!compRef.current)return;const navItems=getNavigationItems();navItems.forEach(el=>{el.style.removeProperty(\"filter\");});};return /*#__PURE__*/_jsx(Component,{...props,ref:compRef,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave});};}export function navigationScrollHidden(Component){return props=>{const compRef=useRef(null);const toggleOverflow=()=>{const navigation=compRef.current.closest(\"nav\");document.body.style.overflow=navigation.dataset.framerName===\"Phone\"?\"hidden\":\"auto\";};return /*#__PURE__*/_jsx(Component,{...props,onClick:toggleOverflow,ref:compRef});};}export function withDynamicCollectionGrid(Component){return props=>{/*\n        const DynamicCollectionGrid = styled(Component)`\n                > a {\n                    grid-column: auto / span 3 !important;\n                }\n\n                > a:nth-child(3),\n                > a:nth-child(4),\n                > a:nth-child(6n + 3), > a:nth-child(6n + 4) {\n                    grid-column: auto / span 6 !important;\n                }\n\n                > a:nth-child(3) img, \n                > a:nth-child(4) img,\n                > a:nth-child(6n + 3) img, > a:nth-child(6n + 4) img {\n                    aspect-ratio: 2.03/1 !important;\n                }\n        `\n        return <DynamicCollectionGrid {...props} />*/const className=(props.className??\"\").split(\" \")[0];return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                            .${className} > div:not([class$=\"-container\"]) {\n                                grid-column: auto / span 3 !important;\n                            }\n\n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(3),\n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(4),\n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(6n + 3), \n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(6n + 4) {\n                                grid-column: auto / span 6 !important;\n                            }\n\n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(3) img, \n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(4) img,\n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(6n + 3) img, \n                            .${className} > div:not([class$=\"-container\"]):nth-of-type(6n + 4) img {\n                                aspect-ratio: 2.03/1 !important;\n                            }\n                        `}}),/*#__PURE__*/_jsx(Component,{...props})]});};}export function withArticleContentStyles(Component){return props=>{/*\n        const StyledArticleContent = styled(Component)`\n            align-items: center;\n\n            > *:not(:is(div, img)) {\n                width: 75%;\n            }\n        `\n\n        return <StyledArticleContent {...props} />*/// @ts-ignore\nconst{className=\"\"}=props;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                        .${className.replaceAll(\" \",\".\")} {\n                            align-items: center;\n                        }\n\n                        .${className.replaceAll(\" \",\".\")} > *:not(:is(div, img)) {\n                            width: 75%;\n                            max-width: 670px;\n                        }\n                    `}}),/*#__PURE__*/_jsx(Component,{...props})]});};}export function withArticleIntroductionStyles(Component){return props=>{/*\n        const StyledArticleContent = styled(Component)`\n            align-items: center;\n\n            > *:not(:is(div, img)) {\n                width: 75%;\n            }\n        `\n\n        return <StyledArticleContent {...props} />*/// @ts-ignore\nconst{className=\"\"}=props;console.log(\"className\",className,className.replaceAll(\" \",\".\"));return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                        .${className.replaceAll(\" \",\".\")} > *:not(:is(div, img)) {\n                            font-size: 48px !important;\n                            letter-spacing: -0.96px !important;\n                            line-height: 1.15 !important;   \n                        }\n\n                        @media (max-width: 1199px) {\n                            .${className.replaceAll(\" \",\".\")} > *:not(:is(div, img)) {\n                                font-size: 32px !important;\n                                letter-spacing: -0.64px !important;\n                                line-height: 1.15 !important;\n                            }\n                        }\n                    `}}),/*#__PURE__*/_jsx(Component,{...props})]});};}export function withOverrideWrappingTag(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(\"span\",{...props,children:children});};}export function withAriaHidden(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"aria-hidden\":true});};}export function withCustomClass(Component){return props=>{props.className+=\" custom\";return /*#__PURE__*/_jsx(Component,{...props});};}export function withTranslated3d(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transform:\"translate3d(0, 0, 0)\"}});};}export function withInformationContainerId(Component){return props=>{return /*#__PURE__*/_jsx(Component,{id:\"information-container\",...props});};}export function withOverlayBlurAndCloseOverlay(Component){return props=>{const compRef=useRef(null);const getNavigationItems=()=>{const navigation=document.querySelector(\"nav\");return navigation?.querySelectorAll(`*[data-blur-uuid]:not(button)`);};const handleMouseEnter=ev=>{if(!compRef.current)return;const navItems=getNavigationItems();navItems?.forEach(el=>{el.style.filter=\"blur(1px)\";});};const handleMouseLeave=ev=>{if(!compRef.current)return;const navItems=getNavigationItems();navItems.forEach(el=>{el.style.removeProperty(\"filter\");});};const handleCloseOverlay=ev=>{const navigation=document.querySelector(\"nav\");compRef.current.style.display=\"none\";navigation.click();};return /*#__PURE__*/_jsx(Component,{...props,ref:compRef,onClick:handleCloseOverlay,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave});};}export function withTextCenter(Component){return props=>{const StyledComponent=styled(Component)`\n            text-align: center;\n\n            .framer-text {\n                --framer-text-alignment: center !important;\n            }\n        `;return /*#__PURE__*/_jsx(StyledComponent,{...props});};}export function withViewportWidth80(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style??{},width:\"83vw\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withNavReload\":{\"type\":\"reactHoc\",\"name\":\"withNavReload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOverlayBlurAndCloseOverlay\":{\"type\":\"reactHoc\",\"name\":\"withOverlayBlurAndCloseOverlay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withArticleIntroductionStyles\":{\"type\":\"reactHoc\",\"name\":\"withArticleIntroductionStyles\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTranslated3d\":{\"type\":\"reactHoc\",\"name\":\"withTranslated3d\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOverlayBlur\":{\"type\":\"reactHoc\",\"name\":\"withOverlayBlur\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAspectRatioSquare\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatioSquare\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDynamicCollectionGrid\":{\"type\":\"reactHoc\",\"name\":\"withDynamicCollectionGrid\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOverrideWrappingTag\":{\"type\":\"reactHoc\",\"name\":\"withOverrideWrappingTag\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewportWidth80\":{\"type\":\"reactHoc\",\"name\":\"withViewportWidth80\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextCenter\":{\"type\":\"reactHoc\",\"name\":\"withTextCenter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withArticleContentStyles\":{\"type\":\"reactHoc\",\"name\":\"withArticleContentStyles\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNavBlur\":{\"type\":\"reactHoc\",\"name\":\"withNavBlur\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomClass\":{\"type\":\"reactHoc\",\"name\":\"withCustomClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"navigationScrollHidden\":{\"type\":\"reactHoc\",\"name\":\"navigationScrollHidden\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOverlayNavBlur\":{\"type\":\"reactHoc\",\"name\":\"withOverlayNavBlur\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAriaHidden\":{\"type\":\"reactHoc\",\"name\":\"withAriaHidden\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFillParent\":{\"type\":\"reactHoc\",\"name\":\"withFillParent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInformationContainerId\":{\"type\":\"reactHoc\",\"name\":\"withInformationContainerId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UtilityFunctions.map"],"mappings":"4KAKsnG,SAAgB,EAA0B,EAAU,CAAC,MAAO,IAAO,CAkBpoG,IAAM,GAAW,EAAM,WAAW,GAAA,CAAI,MAAM,GAAG,CAAC,CAAC,GAAG,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO;+BACpL,EAAU;;;;+BAIV,EAAU;+BACV,EAAU;+BACV,EAAU;+BACV,EAAU;;;;+BAIV,EAAU;+BACV,EAAU;+BACV,EAAU;+BACV,EAAU;;;yBAGhB,CAAC,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,SAAgB,EAAyB,EAAU,CAAC,MAAO,IAAO,CAU7I,GAAK,CAAC,YAAU,IAAI,EAAM,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO;2BACzG,EAAU,WAAW,IAAI,GAAG,EAAE;;;;2BAI9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