{"version":3,"file":"FetchUrlText.Bmjdd8La.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,CAAE,IAAM,EAAU,IAAI,gBAAgB,EAAO,SAAS,QAAc,EAAS,EAAU,IAAI,YAAkB,EAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,KAAK,UAAU,CAAC,CAAC,CAAyE,OAArE,EAAgB,CAAC,GAAG,EAAa,KAAK,mBAAmB,GAAU,CAAS,CAAc,CAC9W,SAAgB,GAAe,CAAC,GAAU,IAAS,OAAa,MAAM,CAAC,QAAQ,EAAE,CAAE,IAAM,EAAU,IAAI,gBAAgB,EAAO,SAAS,QAAc,EAAU,EAAU,IAAI,aAAmB,EAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,KAAK,UAAU,CAAC,CAAC,CAA2E,OAAvE,EAAiB,CAAC,GAAG,EAAa,KAAK,mBAAmB,GAAW,CAAS,CAAc,CACnX,SAAgB,GAAiB,CAAC,GAAU,IAAS,OAAa,MAAM,CAAC,QAAQ,EAAE,CAAE,IAAM,EAAU,I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