{"version":3,"file":"Clipboard.Bc8nALRT.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/5wgs8blhVlDB156EZOzM/aFMii4LM5DezIFyyK3jN/SGgpQjqLk.js","https:/framerusercontent.com/modules/Hj20QU19p80mpYsvesiZ/EqB2oGdmJ81urPOd5L66/Clipboard.js"],"sourcesContent":["import{fontStore}from\"framer\";fontStore.loadWebFontsFromSelectors([\"FS;General Sans-medium\"]);export const fonts=[{family:\"General Sans\",moduleAsset:{localModuleIdentifier:\"local-module:css/SGgpQjqLk:default\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/3RZHWSNONLLWJK3RLPEKUZOMM56GO4LJ/BPDRY7AHVI3MCDXXVXTQQ76H3UXA63S3/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.woff2\"},style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/3RZHWSNONLLWJK3RLPEKUZOMM56GO4LJ/BPDRY7AHVI3MCDXXVXTQQ76H3UXA63S3/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.woff2\",weight:\"500\"}];export const css=['.framer-NWCoc .framer-styles-preset-1qdi2io:not(.rich-text-wrapper), .framer-NWCoc .framer-styles-preset-1qdi2io.rich-text-wrapper p { --framer-font-family: \"General Sans\", sans-serif; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-weight: 500; --framer-letter-spacing: 0px; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #2a2b2b; --framer-text-decoration: none; --framer-text-transform: none; }','@media (max-width: 809px) and (min-width: 0px) { .framer-NWCoc .framer-styles-preset-1qdi2io:not(.rich-text-wrapper), .framer-NWCoc .framer-styles-preset-1qdi2io.rich-text-wrapper p { --framer-font-family: \"General Sans\", sans-serif; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-weight: 500; --framer-letter-spacing: 0px; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #2a2b2b; --framer-text-decoration: none; --framer-text-transform: none; } }'];export const className=\"framer-NWCoc\";\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{useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{defaultEvents,usePadding,useRadius,paddingControl,borderRadiusControl,fontControls,useFontControls}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";/**\n * CLIPBOARD\n *\n * @framerIntrinsicWidth 90\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function Clipboard({label,content,fill,color,style,onClick,...props}){const{fontFamily,fontSize,fontWeight}=useFontControls(props);const borderRadius=useRadius(props);const paddingValue=usePadding(props);const handleClick=useCallback(()=>{var ref;(ref=navigator.clipboard)===null||ref===void 0?void 0:ref.writeText(content);onClick===null||onClick===void 0?void 0:onClick();},[onClick,content]);return(/*#__PURE__*/ _jsx(motion.button,{style:{border:\"none\",outline:\"none\",resize:\"none\",width:\"max-content\",wordBreak:\"break-word\",overflowWrap:\"break-word\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",letterSpacing:\"-0.2px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",background:fill,borderRadius,cursor:\"pointer\",padding:paddingValue,fontFamily,fontWeight,fontSize,color,...style},onClick:handleClick,whileHover:{opacity:0.8},whileTap:{scale:0.9},transition:{type:\"ease\",duration:0.3},...props,children:label}));};Clipboard.defaultProps={label:\"Copy to clipboard\",color:\"#fff\",fontSize:16,fontFamily:\"Inter\",fontWeight:500,padding:15,borderRadius:8};addPropertyControls(Clipboard,{content:{type:ControlType.String,title:\"Content\",displayTextArea:true,description:\"When clicked, this content will be copied to the clipboard.\"},label:{type:ControlType.String,title:\"Label\"},fill:{type:ControlType.Color,title:\"Fill\"},color:{type:ControlType.Color,title:\"Text\"},...fontControls,fontSize:{title:\"Font Size\",type:ControlType.Number,displayStepper:true,defaultValue:16},...paddingControl,...borderRadiusControl,...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Clipboard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"90\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"50\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Clipboard.map"],"mappings":"maAA8B,GAAU,0BAA0B,CAAC,yBAAyB,CAAC,CAAc,EAAM,CAAC,CAAC,OAAO,eAAe,YAAY,CAAC,sBAAsB,qCAAqC,IAAI,yKAAyK,CAAC,MAAM,SAAS,IAAI,yKAAyK,OAAO,MAAM,CAAC,CAAc,EAAI,CAAC,weAAwe,2hBAA2hB,CAAc,EAAU,kBCQnnD,SAAwB,EAAU,CAAC,QAAM,UAAQ,OAAK,QAAM,QAAM,UAAQ,GAAG,GAAO,CAAC,GAAK,CAAC,aAAW,WAAS,cAAY,EAAgB,EAAM,CAAO,EAAa,EAAU,EAAM,CAAO,EAAa,EAAW,EAAM,CAAO,EAAYA,MAAgB,CAAC,IAAI,GAAK,EAAI,EAAU,YAAa,MAA0B,EAAI,UAAU,EAAQ,CAAC,KAAiD,EAAG,CAAC,EAAQ,EAAQ,CAAC,CAAC,OAAqB,EAAK,EAAO,OAAO,CAAC,MAAM,CAAC,OAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,MAAM,cAAc,UAAU,aAAa,aAAa,aAAa,wBAAwB,mBAAmB,cAAc,SAAS,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,WAAW,EAAK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