Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.128/components/Tooltip/Tooltip.es",["module","exports","require","../FormPortal/FormPortal.es","frontend-taglib-clay$clay-icon","frontend-js-web","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy","frontend-js-metal-web$metal-state","./Tooltip.soy"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("../FormPortal/FormPortal.es"),o("frontend-taglib-clay$clay-icon");var n=o("frontend-js-web"),i=_interopRequireDefault(o("frontend-js-metal-web$metal-component")),l=_interopRequireDefault(o("frontend-js-metal-web$metal-soy")),r=o("frontend-js-metal-web$metal-state"),a=_interopRequireDefault(o("./Tooltip.soy"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=["top","left","right","bottom"];class Tooltip extends i.default{created(){this._handleTooltipHovered=this._handleTooltipHovered.bind(this),this._handleTooltipRendered=this._handleTooltipRendered.bind(this)}_handleTooltipHovered(){this.showContent=!0}_handleTooltipLeaved(){this.showContent=!1}_handleTooltipRendered(){const{tooltipSource:t,tooltipTarget:o}=this.refs,{element:i}=t,l=(0,n.align)(i,o,n.ALIGN_POSITIONS.Right);this.position=e[l]}}l.default.register(Tooltip,a.default),Tooltip.STATE={icon:r.Config.string().required(),position:r.Config.string(),showContent:r.Config.bool(),spritemap:r.Config.string().required(),text:r.Config.string().required()};var d=Tooltip;t.default=d}}));
//# sourceMappingURL=Tooltip.es.js.map