{"version":3,"file":"TFNOverrides.DVccznRw.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","c","init_jsx_runtime","tfnLinkSwitcher","telParam","linkText","Component","props","tfnLabelSwitcher","PhoneNumber","init_TFNOverrides"],"sources":["https:/framerusercontent.com/modules/ySXLGANFsTBwO8JrBRE8/GKf0ANUIJhtrAzuIhr7B/TFNOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function tfnLinkSwitcher(Component){return props=>{const urlParamsTFN=new URLSearchParams(window.location.search);// choose the qstring we want the value from, like \"v\" as in /glow?v=123\nconst telParam=urlParamsTFN.get(\"fitfn\");if(telParam){let linkText=\"tel:+1\"+telParam;// swap the link with the tel number\nreturn /*#__PURE__*/_jsx(Component,{...props,href:linkText.toString()});}else{// return the same\nreturn /*#__PURE__*/_jsx(Component,{...props});}};}export function tfnLabelSwitcher(Component){return props=>{const urlParamsTFN=new URLSearchParams(window.location.search);// choose the qstring we want the value from, like \"v\" as in /glow?v=123\nconst telParam=urlParamsTFN.get(\"fitfn\");if(telParam){let PhoneNumber=telParam.slice(0,3)+\"-\"+telParam.slice(3,6)+\"-\"+telParam.slice(6,10);// swap the link with the tel number\nreturn /*#__PURE__*/_jsx(Component,{...props,text:PhoneNumber});}else{// return the same\nreturn /*#__PURE__*/_jsx(Component,{...props});}};}\nexport const __FramerMetadata__ = {\"exports\":{\"tfnLabelSwitcher\":{\"type\":\"reactHoc\",\"name\":\"tfnLabelSwitcher\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"tfnLinkSwitcher\":{\"type\":\"reactHoc\",\"name\":\"tfnLinkSwitcher\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TFNOverrides.map"],"mappings":"A,kHAA2C,SAAgBK,EAAgB,EAAU,CAAC,MAAO,IAAO,CACpG,IAAMC,EAAS,IAD6G,gBAAgBJ,EAAO,SAAS,MAClI,CAAC,CAAC,IAAI,OAAO,EAAE,GAAGI,EAAS,CAAC,IAAIC,EAAS,SAASD,EAC5E,MAAoB,gBAAKE,EAAU,CAAC,GAAGC,EAAM,KAAKF,EAAS,SAAS,CAAC,CAAC,CAAE,CACxE,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAG,CAAE,CAAC,SAAgBC,EAAiB,EAAU,CAAC,MAAO,IAAO,CAC7G,IAAMJ,EAAS,IADsH,gBAAgBJ,EAAO,SAAS,MAC3I,CAAC,CAAC,IAAI,OAAO,EAAE,GAAGI,EAAS,CAAC,IAAIK,EAAYL,EAAS,MAAM,EAAE,CAAC,EAAE,IAAIA,EAAS,MAAM,EAAE,CAAC,EAAE,IAAIA,EAAS,MAAM,EAAE,EAAE,EACzI,MAAoB,gBAAKE,EAAU,CAAC,GAAGC,EAAM,KAAKE,CAAW,CAAC,CAAE,CAChE,MAAoB,gBAAKH,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAG,CAAE,C"}