Your IP : 18.221.185.58
(function(){"use strict";BX.namespace("BX.UI");if(BX.UI.Hint){return}function t(t){t=t||{};if(t.attributeName){this.attributeName=t.attributeName}if(t.attributeInitName){this.attributeInitName=t.attributeInitName}if(t.content){if(!BX.type.isDomNode(t.content)){throw new Error("Parameter `content` should be a DOM Node.")}this.content=t.content}if(t.popup){if(!(t.popup instanceof BX.PopupWindow)){throw new Error("Parameter `popup` should be an instance of BX.PopupWindow.")}this.popup=t.popup}if(t.popupParameters){this.popupParameters=t.popupParameters}}t.prototype={attributeName:"data-hint",attributeInitName:"data-hint-init",className:"ui-hint",classNameIcon:"ui-hint-icon",classNameContent:"ui-hint-content",popup:null,content:null,popupParameters:null,createInstance:function(e){return new t(e)},init:function(t){t=t||document.body;var e=t.querySelectorAll("["+this.attributeName+"]");e=BX.convert.nodeListToArray(e);e.forEach(this.initNode,this)},createNode:function(t){var e=document.createElement("span");e.setAttribute(this.attributeName,t);this.initNode(e);return e},initNode:function(t){if(t.getAttribute(this.attributeInitName)){return}t.setAttribute(this.attributeInitName,"y");var e=t.getAttribute(this.attributeName);if(!BX.type.isNotEmptyString(e)){return}BX.addClass(t,this.className);t.innerHTML="";var i=document.createElement("span");BX.addClass(i,this.classNameIcon);t.appendChild(i);BX.bind(t,"mouseenter",this.show.bind(this,t,e));BX.bind(t,"mouseleave",this.hide.bind(this))},show:function(t,e){if(!this.content){this.content=document.createElement("div");BX.addClass(this.content,this.classNameContent)}if(!this.popup){var i=this.popupParameters||{};if(typeof i.zIndex==="undefined"){i.zIndex=1e3}if(typeof i.darkMode==="undefined"){i.darkMode=true}if(typeof i.animationOptions==="undefined"){i.animationOptions={show:{type:"opacity"},close:{type:"opacity"}}}if(typeof i.content==="undefined"){i.content=this.content}this.popup=new BX.PopupWindow("ui-hint-popup",t,i)}this.content.innerHTML=e;this.popup.setBindElement(t);this.popup.show()},hide:function(){if(!this.popup){return}this.popup.close()}};BX.UI.Hint=new t})();