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