Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.145/components/Tooltip/Tooltip.soy",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.templates=t.Tooltip=void 0;var n,i=_interopRequireDefault(o("frontend-js-metal-web$metal-component")),a=_interopRequireDefault(o("frontend-js-metal-web$metal-soy"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.templates=n,goog.loadModule((function(e){var t=goog.require("soy");goog.require("soydata"),goog.module("Tooltip.incrementaldom"),goog.require("goog.soy.data.SanitizedContent");var o=goog.require("incrementaldom");goog.require("soy.asserts");var i=goog.require("soy.idom"),s=a.default.getTemplate("FormPortal.incrementaldom","render");function $render(e,n,i){n=i||n;var a=t.asserts.assertType(goog.isString(e.icon)||e.icon instanceof goog.soy.data.SanitizedContent,"icon",e.icon,"!goog.soy.data.SanitizedContent|string"),r=e._handleTooltipHovered,l=e._handleTooltipLeaved,d=e._handleTooltipRendered;t.asserts.assertType(null==e.position||goog.isString(e.position)||e.position instanceof goog.soy.data.SanitizedContent,"position",e.position,"!goog.soy.data.SanitizedContent|null|string|undefined");var p=t.asserts.assertType(null==e.showContent||goog.isBoolean(e.showContent)||1===e.showContent||0===e.showContent,"showContent",e.showContent,"boolean|null|undefined"),g=t.asserts.assertType(null==e.spritemap||goog.isString(e.spritemap)||e.spritemap instanceof goog.soy.data.SanitizedContent,"spritemap",e.spritemap,"!goog.soy.data.SanitizedContent|null|string|undefined");t.asserts.assertType(null==e.text||goog.isString(e.text)||e.text instanceof goog.soy.data.SanitizedContent,"text",e.text,"!goog.soy.data.SanitizedContent|null|string|undefined"),o.elementOpenStart("div"),o.attr("class","ddm-tooltip"),o.elementOpenEnd(),o.elementOpenStart("div"),o.attr("data-onmouseleave",l),o.attr("data-onmouseover",r),o.attr("ref","tooltipTarget"),o.elementOpenEnd(),o.elementOpenStart("svg"),o.attr("aria-hidden","true"),o.attr("class","lexicon-icon lexicon-icon-"+a),o.elementOpenEnd(),o.elementOpenStart("use"),o.attr("xlink:href",g+"#"+a),o.elementOpenEnd(),o.elementClose("use"),o.elementClose("svg"),o.elementClose("div");if(p){s({contentRenderer:function param264(){!function content__soy253(){$content(e,null,n)}()},ref:"tooltipSource",portalElement:"#clay_dropdown_portal",events:{rendered:d}},null,n)}o.elementClose("div")}function $content(e,n,a){n=a||n,e=e||{};var s=t.asserts.assertType(null==e.position||goog.isString(e.position)||e.position instanceof goog.soy.data.SanitizedContent,"position",e.position,"!goog.soy.data.SanitizedContent|null|string|undefined"),r=t.asserts.assertType(null==e.text||goog.isString(e.text)||e.text instanceof goog.soy.data.SanitizedContent,"text",e.text,"!goog.soy.data.SanitizedContent|null|string|undefined");o.elementOpenStart("div"),o.attr("class","clay-tooltip-"+s+" ddm-tooltip-container tooltip"),o.attr("role","tooltip"),o.elementOpenEnd(),o.elementOpenStart("div"),o.attr("class","arrow"),o.elementOpenEnd(),o.elementClose("div"),o.elementOpenStart("div"),o.attr("class","tooltip-inner"),o.elementOpenEnd(),o.elementOpenStart("div"),o.attr("class","ddm-tooltip-text"),o.elementOpenEnd(),i.print(r),o.elementClose("div"),o.elementClose("div"),o.elementClose("div")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="Tooltip.render"),e.content=$content,$content.Params,goog.DEBUG&&($content.soyTemplateName="Tooltip.content"),e.render.params=["icon","_handleTooltipHovered","_handleTooltipLeaved","_handleTooltipRendered","position","showContent","spritemap","text"],e.render.types={icon:"string",_handleTooltipHovered:"any",_handleTooltipLeaved:"any",_handleTooltipRendered:"any",position:"string",showContent:"bool",spritemap:"string",text:"string"},e.content.params=["position","text"],e.content.types={position:"string",text:"string"},e.templates=n=e,e}));class Tooltip extends i.default{}t.Tooltip=Tooltip,a.default.register(Tooltip,n);var s=n;t.default=s}}));
//# sourceMappingURL=Tooltip.soy.js.map