{"version":3,"file":"LinkWithQueryParam.OY-TsdwK.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/IAJV5uiaRD8FZiONLiUD/TSYqZS298Fd1J9Natxjh/LinkedIn_Conversion.js","https:/framerusercontent.com/modules/jMZzSc2nwRMT14xzskT1/78QgNCkqdojrxDMWUl23/LinkWithQueryParam.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";function sendLinkedInConversion({conversionId}){if(window.lintrk){window.lintrk(\"track\",{conversion_id:conversionId});}}export function clickLPCommercant(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>sendLinkedInConversion({conversionId:18597058})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"clickLPCommercant\":{\"type\":\"reactHoc\",\"name\":\"clickLPCommercant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkedIn_Conversion.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function toLink(Component){return props=>{const[query,setQuery]=useState();useEffect(()=>{if(document){setQuery(document.location.search);}},[]);return /*#__PURE__*/_jsx(Component,{...props,link:`${props.link}${query}`});};}/** \nexport function toHref(Component): ComponentType {\n    return (props) => {\n        const queryParams = document.location.search\n\n        return <Component {...props} href={`${props.href}${queryParams}`} />\n    }\n}\n*/\nexport const __FramerMetadata__ = {\"exports\":{\"toLink\":{\"type\":\"reactHoc\",\"name\":\"toLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkWithQueryParam.map"],"mappings":"2MAA2C,SAAS,EAAuB,CAAC,gBAAc,CAAI,EAAO,QAAQ,EAAO,OAAO,QAAQ,CAAC,cAAc,EAAa,CAAC,CAAG,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,EAAuB,CAAC,aAAa,SAAS,CAAC,CAAC,CAAC,sBAA9R,ICAsC,SAAgB,EAAO,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,GAAU,CAAuE,OAAtE,MAAc,CAAI,UAAU,EAAS,SAAS,SAAS,OAAO,EAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,GAAG,EAAM,OAAO,IAAQ,CAAC,mBAAzQ,IAAsC"}