import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t}from"react/jsx-runtime";import i from"classnames";import{forwardRef as o}from"react";import c from"./Text.scss.js";var s=["children","size","weight","color","italic","tagName","className","testId"];function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function a(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}var l={36:c.size_36,32:c.size_32,24:c.size_24,20:c.size_20,18:c.size_18,16:c.size_16,14:c.size_14,12:c.size_12,10:c.size_10,inherit:c.size_inherit},m={bold:c.bold,medium:c.medium,regular:c.regular},p={T1:c.color_t1,T6:c.color_t6,T7:c.color_t7,T8:c.color_t8,T9:c.color_t9,inherit:c.color_inherit},u=o((function(e,o){var n=e.children,u=e.size,b=void 0===u?16:u,f=e.weight,d=void 0===f?"regular":f,O=e.color,h=void 0===O?"T1":O,_=e.italic,g=void 0!==_&&_,j=e.tagName,v=void 0===j?"span":j,y=e.className,z=e.testId,P=r(e,s);return t(v,a(a({ref:o,className:i(c.root,l[b],m[d],p[h],g&&c.italic,y),"data-testid":z},P),{},{children:n}))}));export{u as Text};
//# sourceMappingURL=Text.js.map
