{"version":3,"file":"Copy_text_sercotel.ipVmGOPb.mjs","names":["withCopyText","useState","TEXT_TO_COPY","useState"],"sources":["https:/framerusercontent.com/modules/nbZSv13ZUSMVCCtFxKP3/YMMNRjYCg0NTPVrnGZ0w/yt5jWbo1E.js","https:/framerusercontent.com/modules/Sp8IJd7xAn8aWZogsHjB/xttuiJUVCbDtUQFEUbcE/Copy_text_sercotel_1.js","https:/framerusercontent.com/modules/RR9F31oGApFSpOVJUTpx/Bv1f4SWrT1Di9wlDjDMo/Copy_text_sercotel.js"],"sourcesContent":["// Generated by Framer (77cb752)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-yOPGH .framer-styles-preset-1c8s8kg:not(.rich-text-wrapper), .framer-yOPGH .framer-styles-preset-1c8s8kg.rich-text-wrapper a { --framer-link-hover-text-color: var(--token-de99530f-c879-4553-b2d3-f51a218739dc, #85805b); --framer-link-text-color: var(--token-651f6c2a-6ec2-4669-93ed-3b9826e937c8, #676032); }\"];export const className=\"framer-yOPGH\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";// Change this to the actual plain text you want to copy\nconst TEXT_TO_COPY=\"SONIAYDAVID27\";export function withCopyText(Component){return props=>{const[copied,setCopied]=useState(false);const handleCopy=async()=>{try{await navigator.clipboard.writeText(TEXT_TO_COPY);setCopied(true);// Resets back to normal after 2 seconds\nsetTimeout(()=>setCopied(false),2e3);}catch(err){console.error(\"Failed to copy text: \",err);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleCopy,// Optional: Changes the button text visually if your layer supports a \"text\" prop\ntext:copied?\"Copiado!\":props.text,style:{...props.style,cursor:\"pointer\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCopyText\":{\"type\":\"reactHoc\",\"name\":\"withCopyText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Copy_text_sercotel_1.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";// Change this to the actual plain text you want to copy\nconst TEXT_TO_COPY=\"BODADAVIDSONIA27\";export function withCopyText(Component){return props=>{const[copied,setCopied]=useState(false);const handleCopy=async()=>{try{await navigator.clipboard.writeText(TEXT_TO_COPY);setCopied(true);// Resets back to normal after 2 seconds\nsetTimeout(()=>setCopied(false),2e3);}catch(err){console.error(\"Failed to copy text: \",err);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleCopy,// Optional: Changes the button text visually if your layer supports a \"text\" prop\ntext:copied?\"Copiado!\":props.text,style:{...props.style,cursor:\"pointer\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCopyText\":{\"type\":\"reactHoc\",\"name\":\"withCopyText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Copy_text_sercotel.map"],"mappings":"uMAC6B,EAAC,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,4TAA4T,EAAe,EAAU,kBCA7a,SAAgBA,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAO,GAAWC,EAAS,EAAK,EAAQ,EAAW,SAAS,CAAC,GAAG,CAAC,MAAM,EAAU,UAAU,UAAUC,CAAY,EAAE,EAAU,EAAI,EACjO,eAAe,EAAU,EAAK,EAAE,GAAG,CAAE,OAAO,EAAI,CAAC,QAAQ,MAAM,wBAAwB,CAAG,CAAE,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EACpJ,KAAK,EAAO,WAAW,EAAM,KAAK,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,SAAS,CAAC,CAAC,CAAE,CAAE,uBAHpC,IAA4B,EAChEA,EAAa,mBCAmB,SAAgB,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAO,GAAWC,EAAS,EAAK,EAAQ,EAAW,SAAS,CAAC,GAAG,CAAC,MAAM,EAAU,UAAU,UAAU,CAAY,EAAE,EAAU,EAAI,EACpO,eAAe,EAAU,EAAK,EAAE,GAAG,CAAE,OAAO,EAAI,CAAC,QAAQ,MAAM,wBAAwB,CAAG,CAAE,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EACpJ,KAAK,EAAO,WAAW,EAAM,KAAK,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,SAAS,CAAC,CAAC,CAAE,CAAE,uBAHpC,IAA4B,EAChE,EAAa"}