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AQ,GAAE,EAAG,QAAO,QAAO,UAAS,eACtE,MAAM,EAAgB,gBAAgB,GAChC,EAAY,GAAS,WAAW,KAChC,EAA8B,GAAS,IAAU,KAAY,EAAQ,WAAW,MAAQ,EAAM,MAAM,SAAS,SAAS,gBAC5H,OAAO,yBAAyB,GAAG;OAC/B,EAAI,yBAAyB,IAAI,SAAS,GAAiB;;;;MAI3D,GAAS,IAAU,KAAY,eAAe;;;MAG9C,GAAY,GAAa,yBAAyB,GAAG;;;;;;;;;;;;;;;;SAgBnD,EAAI,yBAAyB,IAAI,SAAS;QAC1C,yBAAyB;;;MAG3B,GAA+B,yBAAyB,GAAG;;;;;;MAM3D,yBAAyB;GAC5B,IAIC,UAAY,CACd,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,cAAe,OACf,cAAe,QAEb,OAAQ,EAAI,cAAc,aAC5B,EAAG,KAAI,WAAU,aAAY,QAAO,UAAU,KAAM,cAAa,GAAQ,KACvE,MAAM,EAAU,GAAM,UAAU,GAC1B,EAAY,EAAK,WAAa,GACpC,OAAuB,aAAa,QAAQ,cAC1C,KACA,CACE,GAAI,EACJ,cAAe,EACf,QACA,MACA,UACA,cACG,EACH,UAAW,GAAG,cAEhB,EACD,IAGL,MAAM,YAAc","file":"/npm/@welcome-ui/text@6.2.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@welcome-ui/text@6.2.0/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 client\"\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __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.tsx\nvar src_exports = {};\n__export(src_exports, {\n  Text: () => Text2\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_system = require(\"@welcome-ui/system\");\n\n// src/styles.ts\nvar import_styled_components = __toESM(require(\"@xstyled/styled-components\"));\nvar MOBILE_VARIANTS = {\n  h0: \"h1\",\n  h1: \"h2\",\n  h2: \"h3\",\n  h3: \"h4\",\n  h4: \"h5\",\n  h5: \"h6\",\n  h6: \"h6\"\n};\nvar getBlockHeight = (lines) => import_styled_components.css`\n  /* stylelint-disable-next-line value-no-vendor-prefix */\n  display: -webkit-box;\n  /* stylelint-disable-next-line property-no-vendor-prefix */\n  -webkit-box-orient: vertical;\n  /* stylelint-disable-next-line property-no-vendor-prefix */\n  -webkit-line-clamp: ${lines || \"none\"};\n  line-height: normal;\n  overflow: hidden;\n  word-break: ${lines === 1 ? \"break-all\" : null};\n`;\nvar Text = import_styled_components.default.p(({ lines, theme, variant, withDash }) => {\n  const mobileVariant = MOBILE_VARIANTS[variant];\n  const isHeading = variant?.startsWith(\"h\");\n  const shouldFixHeadingsLineHeight = lines && lines !== Infinity && variant.startsWith(\"h\") && theme.fonts.headings.includes(\"welcome-font\");\n  return import_styled_components.css`\n    ${(0, import_styled_components.th)(`texts.${mobileVariant || variant}`)};\n\n    /* Start fallback for non-webkit */\n    display: block;\n    ${lines && lines !== Infinity && getBlockHeight(lines)};\n    /* End fallback for non-webkit */\n\n    ${withDash && isHeading && import_styled_components.css`\n      display: flex;\n\n      &:before {\n        content: '';\n        width: 16;\n        height: 4;\n        display: flex;\n        align-self: center;\n        flex-shrink: 0;\n        background-color: primary-40;\n        margin-right: md;\n      }\n    `}\n\n    @media (min-width: lg) {\n      ${(0, import_styled_components.th)(`texts.${variant}`)};\n      ${import_styled_components.system};\n    }\n\n    ${shouldFixHeadingsLineHeight && import_styled_components.css`\n      & {\n        line-height: 1.4;\n      }\n    `}\n\n    ${import_styled_components.system};\n  `;\n});\n\n// src/index.tsx\nvar TAG_NAMES = {\n  h0: \"h1\",\n  h1: \"h1\",\n  h2: \"h2\",\n  h3: \"h3\",\n  h4: \"h4\",\n  h5: \"h5\",\n  h6: \"h6\",\n  lg: \"p\",\n  md: \"p\",\n  sm: \"p\",\n  xs: \"p\",\n  \"subtitle-md\": \"span\",\n  \"subtitle-sm\": \"span\"\n};\nvar Text2 = (0, import_system.forwardRef)(\n  ({ as, children, dataTestId, lines, variant = \"md\", withDash, ...rest }, ref) => {\n    const tagName = as || TAG_NAMES[variant];\n    const className = rest.className || \"\";\n    return /* @__PURE__ */ import_react.default.createElement(\n      Text,\n      {\n        as: tagName,\n        \"data-testid\": dataTestId,\n        lines,\n        ref,\n        variant,\n        withDash,\n        ...rest,\n        className: `${className} wui-text`\n      },\n      children\n    );\n  }\n);\nText2.displayName = \"Text\";\n"]}