"use strict";var React=require("react"),stringUtil=require("./stringUtil-623229ca.js"),classNames=require("classnames"),ChartPreview=require("./ChartPreview-aabc088c.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(a){if(a&&a.__esModule)return a;var r=Object.create(null);return a&&Object.keys(a).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return a[e]}}))}),r.default=a,Object.freeze(r)}var React__namespace=_interopNamespace(React),classNames__default=_interopDefaultLegacy(classNames),prefixCls="dm-title-component",TitleComponent=React__namespace.memo(React__namespace.forwardRef(function(e,t){var a=e.text,r=e.show,n=e.textStyle,l=e.top,i=e.left,e=e.theme,e=void 0===e?stringUtil.getTheme():e;return r?((r=stringUtil.pick_1(n,ChartPreview.DOM_FONT_STYLE_KEYS)).color=null!==(n=ChartPreview.getAdaptiveThemeColor(stringUtil.ChartType.displayTable,e,"font",r.color.adaptive))&&void 0!==n?n:r.color.color,e=classNames__default.default(prefixCls,prefixCls+"-top-"+l,prefixCls+"-left-"+i),React__namespace.createElement("span",{"data-test":"title-component",ref:t,style:r,className:e},a)):null}));TitleComponent.whyDidYouRender=!0,TitleComponent.displayName="TitleComponent",exports.TitleComponent=TitleComponent;
