"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../style/operationUnit.js");require("../../theme/internal.js");const o=require("./mixins.js"),t=require("../../theme/util/genComponentStyleHook.js"),a=e=>{const{componentCls:r,sizeMarginHeadingVerticalStart:i}=e;return{[r]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success`]:{color:e.colorSuccess},[`&${r}-warning`]:{color:e.colorWarning},[`&${r}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"},...o.getTitleStyles(e),[`
      & + h1${r},
      & + h2${r},
      & + h3${r},
      & + h4${r},
      & + h5${r}
      `]:{marginTop:i},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:i}},...o.getResetStyles(),...o.getLinkStyles(e),[`
        ${r}-expand,
        ${r}-edit,
        ${r}-copy
      `]:{...l.operationUnit(e),marginInlineStart:e.marginXXS},...o.getEditableStyles(e),...o.getCopiableStyles(e),...o.getEllipsisStyles(),"&-rtl":{direction:"rtl"}}}},c=t.default("Typography",e=>[a(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"});exports.default=c;
