Your IP : 172.70.80.239


Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/vue/components/hint/dist/
Upload File :
Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/vue/components/hint/dist/hint.bundle.min.js

(function(e,i,t,n,p){"use strict";var o;p.BitrixVue.directive("bx-hint",{bind:function e(t,n){i.Event.bind(t,"mouseenter",(function(){return u.show(t,n)}));i.Event.bind(t,"mouseleave",(function(){return u.hide()}))}});var s=function(){function e(){babelHelpers.classCallCheck(this,e);this.popup=null;this.elements}babelHelpers.createClass(e,[{key:"show",value:function e(n){var p=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.popup){this.popup.close()}var s={};var u;if(i.Type.isObject(p.value)){if(p.value.text){u=i.Text.encode(p.value.text)}else if(p.value.html){u=p.value.html}if(i.Type.isObject(p.value.popupOptions)){s=p.value.popupOptions}if(p.value.position==="top"){if(!i.Type.isObject(s.bindOptions)){s.bindOptions={}}s.bindOptions.position="top"}}else{u=p.value;if(i.Type.isUndefined(n.dataset.hintHtml)){u=i.Text.encode(u)}}s.bindElement=n;if(i.Type.isUndefined(s.id)){s.id="bx-vue-hint"}if(i.Type.isUndefined(s.darkMode)){s.darkMode=true}if(i.Type.isUndefined(s.content)){var a=i.Tag.render(o||(o=babelHelpers.taggedTemplateLiteral(["<span class='ui-hint-content'></span>"])));a.innerHTML=u;s.content=a}if(i.Type.isUndefined(s.autoHide)){s.autoHide=true}if(!i.Type.isObject(s.bindOptions)){s.bindOptions={}}if(i.Type.isUndefined(s.bindOptions.position)){s.bindOptions.position="bottom"}s.cacheable=false;this.popup=new t.Popup(s);this.popup.show()}},{key:"hide",value:function e(){if(this.popup){this.popup.close()}}}]);return e}();var u=new s;p.BitrixVue.component("bx-hint",{props:{text:{default:""},html:{default:""},position:{default:"bottom"},popupOptions:{default:function e(){return{}}}},template:'\n\t\t<span class="ui-hint" v-bx-hint="{text, html, position, popupOptions}" data-hint-init="vue">\n\t\t\t<span class="ui-hint-icon"/>\n\t\t</span>\n\t'})})(this.window=this.window||{},BX,BX.Main,BX,BX);
//# sourceMappingURL=hint.bundle.map.js