{"version":3,"file":"FetchUrlText.fcv4E1WS.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/CeGHP324JDD30ABh1q54/XGJ0U44lMGeyqGi3rgrF/FetchUrlText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * URL Parameter Text Override for Framer with Fade-In Animation\n *\n * Prevents flashing by starting invisible and fading in after 0.2s delay\n *\n * Usage:\n * 1. Set your text layers to opacity: 0 in Framer\n * 2. Apply these overrides to automatically fade in with URL parameter text\n *\n * URL Example:\n * yoursite.com?headline=New%20Title&headline2=Second%20Title&subheadline=Description\n */// Override for main headline with fade-in\nexport function withHeadline(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const headline=urlParams.get(\"headline\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.2,ease:\"easeOut\"}}};if(headline){return{...baseOverride,text:decodeURIComponent(headline)};}return baseOverride;}// Override for secondary headline with fade-in\nexport function withHeadline2(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const headline2=urlParams.get(\"headline2\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.2,ease:\"easeOut\"}}};if(headline2){return{...baseOverride,text:decodeURIComponent(headline2)};}return baseOverride;}// Override for subheadline with fade-in\nexport function withSubheadline(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const subheadline=urlParams.get(\"subheadline\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.2,ease:\"easeOut\"}}};if(subheadline){return{...baseOverride,text:decodeURIComponent(subheadline)};}return baseOverride;}// Staggered version - each element fades in with increasing delay\nexport function withHeadlineStaggered(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const headline=urlParams.get(\"headline\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.2,ease:\"easeOut\"}}};if(headline){return{...baseOverride,text:decodeURIComponent(headline)};}return baseOverride;}export function withHeadline2Staggered(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const headline2=urlParams.get(\"headline2\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.35,ease:\"easeOut\"}}};if(headline2){return{...baseOverride,text:decodeURIComponent(headline2)};}return baseOverride;}export function withSubheadlineStaggered(){if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const subheadline=urlParams.get(\"subheadline\");const baseOverride={opacity:1,transition:{opacity:{duration:.7,delay:.5,ease:\"easeOut\"}}};if(subheadline){return{...baseOverride,text:decodeURIComponent(subheadline)};}return baseOverride;}// Custom timing version - for specific animation needs\nexport function withCustomFadeIn(props){const{parameter=\"headline\",delay=.2,duration=.7}=props||{};if(typeof window===\"undefined\"){return{opacity:0};}const urlParams=new URLSearchParams(window.location.search);const text=urlParams.get(parameter);const baseOverride={opacity:1,transition:{opacity:{duration:duration,delay:delay,ease:\"easeOut\"}}};if(text){return{...baseOverride,text:decodeURIComponent(text)};}return baseOverride;}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithHeadline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withHeadline(props)});};}withwithHeadline.displayName=\"withHeadline\";export function withwithHeadline2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withHeadline2(props)});};}withwithHeadline2.displayName=\"withHeadline2\";export function withwithSubheadline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withSubheadline(props)});};}withwithSubheadline.displayName=\"withSubheadline\";export function withwithHeadlineStaggered(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withHeadlineStaggered(props)});};}withwithHeadlineStaggered.displayName=\"withHeadlineStaggered\";export function withwithHeadline2Staggered(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withHeadline2Staggered(props)});};}withwithHeadline2Staggered.displayName=\"withHeadline2Staggered\";export function withwithSubheadlineStaggered(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withSubheadlineStaggered(props)});};}withwithSubheadlineStaggered.displayName=\"withSubheadlineStaggered\";export function withwithCustomFadeIn(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withCustomFadeIn(props)});};}withwithCustomFadeIn.displayName=\"withCustomFadeIn\";\nexport const __FramerMetadata__ = {\"exports\":{\"withSubheadline\":{\"type\":\"override\",\"name\":\"withSubheadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithHeadline\":{\"type\":\"reactHoc\",\"name\":\"withwithHeadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeadline2Staggered\":{\"type\":\"override\",\"name\":\"withHeadline2Staggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeadlineStaggered\":{\"type\":\"override\",\"name\":\"withHeadlineStaggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithHeadline2\":{\"type\":\"reactHoc\",\"name\":\"withwithHeadline2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithSubheadlineStaggered\":{\"type\":\"reactHoc\",\"name\":\"withwithSubheadlineStaggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeadline2\":{\"type\":\"override\",\"name\":\"withHeadline2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeadline\":{\"type\":\"override\",\"name\":\"withHeadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithHeadlineStaggered\":{\"type\":\"reactHoc\",\"name\":\"withwithHeadlineStaggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubheadlineStaggered\":{\"type\":\"override\",\"name\":\"withSubheadlineStaggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithSubheadline\":{\"type\":\"reactHoc\",\"name\":\"withwithSubheadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithHeadline2Staggered\":{\"type\":\"reactHoc\",\"name\":\"withwithHeadline2Staggered\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithCustomFadeIn\":{\"type\":\"reactHoc\",\"name\":\"withwithCustomFadeIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomFadeIn\":{\"type\":\"override\",\"name\":\"withCustomFadeIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FetchUrlText.map"],"mappings":"yRAYA,SAAgB,GAAc,CAAC,GAAU,IAAS,OAAa,MAAM,CAAC,QAAQ,EAAE,CAA8D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAA0B,IAAI,WAAW,CAAO,EAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,KAAK,UAAU,CAAC,CAAC,CAAyE,OAArE,EAAgB,CAAC,GAAG,EAAa,KAAK,mBAAmB,EAAS,CAAC,CAAS,EAChW,SAAgB,GAAe,CAAC,GAAU,IAAS,OAAa,MAAM,CAAC,QAAQ,EAAE,CAA8D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAA2B,IAAI,YAAY,CAAO,EAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,KAAK,UAAU,CAAC,CAAC,CAA2E,OAAvE,EAAiB,CAAC,GAAG,EAAa,KAAK,mBAAmB,EAAU,CAAC,CAAS,EACrW,SAAgB,GAAiB,CAAC,GAAU,IAAS,OAAa,MAAM,CAAC,QAAQ,EAAE,CAA8D,IAAM,EA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