{"version":3,"file":"Button_link.tKDl3dfA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fuhsSaFBm14KVUyLI3ED/rprMCzMK7CiXTUVoeusI/Button_link.js"],"sourcesContent":["/* eslint-disable react/display-name */import{jsx as _jsx}from\"react/jsx-runtime\";export function withRedirect(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\"},onClick:()=>{const baseURL=\"https://mybabes-hub.com/babes/create\";const urlParams=new URLSearchParams(window.location.search);let tracking=\"fw\";if(urlParams.get(\"cmp\")){tracking=urlParams.get(\"cmp\");}else if(urlParams.get(\"utm_campaign\")){tracking=urlParams.get(\"utm_campaign\");}const url=new URL(baseURL);let path=url.pathname;if(!path)path=\"/\";// Skip if already tracked (prevents double-prepending)\nif(path.startsWith(\"/r/\"))return;// Set new path: /r/<tracking><path>\nconst newPath=`/r/${tracking}${path.startsWith(\"/\")?\"\":\"/\"}${path}`;url.pathname=newPath;url.search=urlParams.toString();window.location.href=url.toString();}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirect\":{\"type\":\"reactHoc\",\"name\":\"withRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button_link.map"],"mappings":"kHAAkF,SAAgB,EAAa,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,CAAC,YAAY,CAAC,IAA2D,EAAU,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAK,EAAS,KAAQ,EAAU,IAAI,MAAM,CAAE,EAAS,EAAU,IAAI,MAAM,CAAU,EAAU,IAAI,eAAe,GAAE,EAAS,EAAU,IAAI,eAAe,EAAE,IAAM,EAAI,IAAI,IAAI,uCAAQ,CAAK,EAAK,EAAI,SAAS,AAAS,IAAK,IACjjB,GAAK,WAAW,MAAM,GAC2C,EAAI,SAA1D,MAAM,IAAW,EAAK,WAAW,IAAI,CAAC,GAAG,MAAM,IAA4B,EAAI,OAAO,EAAU,UAAU,CAAC,EAAO,SAAS,KAAK,EAAI,UAAU,GAAG,CAAC,sBAF9E"}