{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/LJrioRIy1YCEaw8KNkm5/YhIkEMPIWURWS7U2X12l/Copy.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nimport { useCallback } from \"react\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport Button from \"https://framerusercontent.com/modules/2nmrDJ4nSMfNmjcn5OS7/VzS08N5HUKB1dUiIoHvs/q1aiEnLAP.js\"; // import { useModulePagesAPI } from \"./ModulePagesAPI.ts\"\n/**\n * CLIPBOARD\n *\n * @framerIntrinsicWidth 90\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */\nexport default function Clipboard({\n  content,\n  ...props\n}) {\n  const [isCopied, setIsCopied] = React.useState(false); // const api = useModulePagesAPI()\n  const handleClick = useCallback(() => {\n    var ref;\n    (ref = navigator.clipboard) === null || ref === void 0 ? void 0 : ref.writeText(content);\n    setIsCopied(true);\n    setTimeout(() => {\n      setIsCopied(false);\n    }, 8e3);\n  }, [content]);\n  return /*#__PURE__*/_jsx(\"div\", {\n    ...props,\n    children: /*#__PURE__*/_jsx(Button, {\n      transition: {\n        layout: false\n      },\n      onClick: handleClick,\n      variant: \"White\",\n      label: isCopied ? \"Done! Paste in Framer\" : \"Copy to clipboard\",\n      style: {\n        pointerEvents: isCopied ? \"none\" : \"auto\",\n        opacity: isCopied ? .5 : 1\n      }\n    })\n  });\n}\n;\naddPropertyControls(Clipboard, {\n  content: {\n    type: ControlType.String,\n    title: \"Content\",\n    displayTextArea: true,\n    description: \"When clicked, this content will be copied to the clipboard.\"\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Clipboard\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutWidth\": \"any\",\n        \"framerSupportedLayoutHeight\": \"any\",\n        \"framerContractVersion\": \"1\",\n        \"framerIntrinsicWidth\": \"90\",\n        \"framerIntrinsicHeight\": \"50\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};"],
  "mappings": "0MAAAA,IAce,SAARC,EAA2B,CAChC,QAAAC,EACA,GAAGC,CACL,EAAG,CACD,GAAM,CAACC,EAAUC,CAAW,EAAUC,EAAS,EAAK,EAC9CC,EAAcC,EAAY,IAAM,CACpC,IAAIC,GACHA,EAAM,UAAU,aAAe,MAAQA,IAAQ,QAAkBA,EAAI,UAAUP,CAAO,EACvFG,EAAY,EAAI,EAChB,WAAW,IAAM,CACfA,EAAY,EAAK,CACnB,EAAG,GAAG,CACR,EAAG,CAACH,CAAO,CAAC,EACZ,OAAoBQ,EAAK,MAAO,CAC9B,GAAGP,EACH,SAAuBO,EAAKC,EAAQ,CAClC,WAAY,CACV,OAAQ,EACV,EACA,QAASJ,EACT,QAAS,QACT,MAAOH,EAAW,wBAA0B,oBAC5C,MAAO,CACL,cAAeA,EAAW,OAAS,OACnC,QAASA,EAAW,GAAK,CAC3B,CACF,CAAC,CACH,CAAC,CACH,CAEAQ,EAAoBX,EAAW,CAC7B,QAAS,CACP,KAAMY,EAAY,OAClB,MAAO,UACP,gBAAiB,GACjB,YAAa,6DACf,CACF,CAAC",
  "names": ["init_shims", "Clipboard", "content", "props", "isCopied", "setIsCopied", "ye", "handleClick", "te", "ref", "p", "q1aiEnLAP_default", "addPropertyControls", "ControlType"]
}
