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/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@react-email/preview@0.0.13/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 __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n  var target = {};\n  for (var prop in source)\n    if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n      target[prop] = source[prop];\n  if (source != null && __getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(source)) {\n      if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n        target[prop] = source[prop];\n    }\n  return target;\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n  // If the importer is in node compatibility mode or this is not an ESM\n  // file that has been converted to a CommonJS file using a Babel-\n  // compatible transform (i.e. \"__esModule\" has not been set), then set\n  // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n  isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n  mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar index_exports = {};\n__export(index_exports, {\n  Preview: () => Preview,\n  renderWhiteSpace: () => renderWhiteSpace\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/preview.tsx\nvar React = __toESM(require(\"react\"));\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar PREVIEW_MAX_LENGTH = 150;\nvar Preview = React.forwardRef(\n  (_a, ref) => {\n    var _b = _a, { children = \"\" } = _b, props = __objRest(_b, [\"children\"]);\n    const text = (Array.isArray(children) ? children.join(\"\") : children).substring(0, PREVIEW_MAX_LENGTH);\n    return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(\n      \"div\",\n      __spreadProps(__spreadValues({\n        style: {\n          display: \"none\",\n          overflow: \"hidden\",\n          lineHeight: \"1px\",\n          opacity: 0,\n          maxHeight: 0,\n          maxWidth: 0\n        },\n        \"data-skip-in-text\": true\n      }, props), {\n        ref,\n        children: [\n          text,\n          renderWhiteSpace(text)\n        ]\n      })\n    );\n  }\n);\nPreview.displayName = \"Preview\";\nvar whiteSpaceCodes = \"\\xA0\\u200C\\u200B\\u200D\\u200E\\u200F\\uFEFF\";\nvar renderWhiteSpace = (text) => {\n  if (text.length >= PREVIEW_MAX_LENGTH) {\n    return null;\n  }\n  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"div\", { children: whiteSpaceCodes.repeat(PREVIEW_MAX_LENGTH - text.length) });\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  Preview,\n  renderWhiteSpace\n});\n"]}