{"version":3,"sources":["jsdelivr-header.js","/npm/wc-react-hook@1.0.1/dist/src/main/ts/wcHook.jsx","/npm/wc-react-hook@1.0.1/dist/src/main/ts/Greeting.jsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,mvBCFO,MAAM,yCAAY,CAAC,EAAS,KACjC,MAAM,EAAU,uBAAA,2BAAA,CAAoB,EAAS,uBAAA,cAAO,uBACpD,eAAe,OAAO,EAAM,EAAQ,ECFhC,+BAAW,EAAC,KAAE,MAAW,EAAA,wBAAA,MAAC,KAAE,C,UAAC,UAAQ,KAE3C,+BAAS,UAAY,CACnB,KAAM,uBAAA,kBAAU,OAAO,Y,IAGzB,yCAAe,yCAAU,+BAAU,gB","file":"/npm/wc-react-hook@1.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/wc-react-hook@1.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import React from \"react\"\nimport * as ReactDOM from \"react-dom/client\"\nimport reactToWebComponent from \"react-to-webcomponent\"\n\nexport const useWCHook = (element, name) => {\n  const wrapper = reactToWebComponent(element, React, ReactDOM)\n  customElements.define(name, wrapper)\n}\n\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { useWCHook } from \"./wcHook\";\n\nconst Greeting = ({ name }) => <h1>Hello, {name}</h1>\n\nGreeting.propTypes = {\n  name: PropTypes.string.isRequired,\n}\n\nexport default useWCHook(Greeting, 'web-greeting');\n"]}