"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs38.js"),j=require("react"),c=require("./index.cjs40.js"),t=require("./index.cjs75.js"),f=require("./index.cjs47.js"),y=require("./index.cjs9.js"),h=j.forwardRef(({variant:s="h2",size:l,color:x,anchorId:a,children:n,className:r,id:p,...i},o)=>{const u=p??a,m=!!a,d=e.jsxRuntimeExports.jsx(y.Typography,{variant:s,size:l,color:x,as:"span",children:n});if(m)return e.jsxRuntimeExports.jsxs("a",{ref:o,href:`#${a}`,id:u,"data-atme-ui":!0,"data-heading-anchor":!0,className:c(t.default.heading,t.default.headingAnchor,r),"aria-label":`Ссылка на раздел: ${typeof n=="string"?n:a}`,...i,children:[e.jsxRuntimeExports.jsx("span",{className:t.default.headingText,children:d}),e.jsxRuntimeExports.jsx("span",{className:t.default.hashIcon,"data-hash-icon-wrapper":!0,"aria-hidden":!0,children:e.jsxRuntimeExports.jsx(f.HashIcon,{decorative:!0})})]});const g=s.startsWith("h")?s:"h2";return e.jsxRuntimeExports.jsx(g,{ref:o,id:u,"data-atme-ui":!0,className:c(t.default.heading,r),...i,children:d})});h.displayName="Heading";exports.Heading=h;
//# sourceMappingURL=index.cjs10.js.map
