Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.108/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=s(o("frontend-js-metal-web$metal-component")),a=s(o("frontend-js-metal-web$metal-soy"));function s(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 l(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"),l=e._handleTooltipHovered,d=e._handleTooltipLeaved,p=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 g=t.asserts.assertType(null==e.showContent||goog.isBoolean(e.showContent)||1===e.showContent||0===e.showContent,"showContent",e.showContent,"boolean|null|undefined"),m=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",d),o.attr("data-onmouseover",l),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",m+"#"+a),o.elementOpenEnd(),o.elementClose("use"),o.elementClose("svg"),o.elementClose("div");if(g){s({contentRenderer:function(){r(e,null,n)},ref:"tooltipSource",portalElement:"#clay_dropdown_portal",events:{rendered:p}},null,n)}o.elementClose("div")}function r(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"),l=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(l),o.elementClose("div"),o.elementClose("div"),o.elementClose("div")}return e.render=l,l.Params,goog.DEBUG&&(l.soyTemplateName="Tooltip.render"),e.content=r,r.Params,goog.DEBUG&&(r.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 e extends i.default{}t.Tooltip=e,a.default.register(e,n);var l=n;t.default=l}}));
//# sourceMappingURL=Tooltip.soy.js.map