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I,mBAAmB,aAAY,CAAC,EAAO,KACpD,MAAM,UAAE,EAAS,SAAE,EAAQ,aAAE,GAAiB,QAAQ,IAAK,IAC3D,OAAuB,EAAI,mBAAmB,KAAK,EAAW,CAAE,SAAQ,IAAgB,YAAW,IAErG,KAAK,YAAc,cACnB,IAAI,aAAe","file":"/npm/@heroui/code@2.2.25/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@heroui/code@2.2.25/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","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar index_exports = {};\n__export(index_exports, {\n  Code: () => code_default,\n  useCode: () => useCode\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/code.tsx\nvar import_system_rsc2 = require(\"@heroui/system-rsc\");\n\n// src/use-code.ts\nvar import_theme = require(\"@heroui/theme\");\nvar import_system_rsc = require(\"@heroui/system-rsc\");\nvar import_react = require(\"react\");\nvar import_shared_utils = require(\"@heroui/shared-utils\");\nfunction useCode(originalProps) {\n  const [props, variantProps] = (0, import_system_rsc.mapPropsVariants)(originalProps, import_theme.code.variantKeys);\n  const { as, children, className, ...otherProps } = props;\n  const Component = as || \"code\";\n  const styles = (0, import_react.useMemo)(\n    () => (0, import_theme.code)({\n      ...variantProps,\n      className\n    }),\n    [(0, import_shared_utils.objectToDeps)(variantProps), className]\n  );\n  const getCodeProps = () => {\n    return {\n      className: styles,\n      ...otherProps\n    };\n  };\n  return { Component, children, getCodeProps };\n}\n\n// src/code.tsx\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar Code = (0, import_system_rsc2.forwardRef)((props, ref) => {\n  const { Component, children, getCodeProps } = useCode({ ...props });\n  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, ...getCodeProps(), children });\n});\nCode.displayName = \"HeroUI.Code\";\nvar code_default = Code;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  Code,\n  useCode\n});\n"]}