Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/vue3/directives/hint/dist/ |
Upload File : |
this.BX=this.BX||{};this.BX.Vue3=this.BX.Vue3||{};(function(e,t,i,n){"use strict";let o=e=>e,s;var u=babelHelpers.classPrivateFieldLooseKey("getText");class p{constructor(){Object.defineProperty(this,u,{value:r});this.popup=null;this.cursorOnPopup=false}show(e,t){var p,r;this.hide(false);const l={id:`bx-vue-hint-${Date.now()}`,bindElement:e,bindOptions:{position:t.position==="top"?"top":"bottom"},content:i.Tag.render(s||(s=o` <span class='ui-hint-content'>${0}</span> `),babelHelpers.classPrivateFieldLooseBase(this,u)[u](e,t)),darkMode:true,autoHide:true,cacheable:false,animation:"fading",...(p=t.popupOptions)!=null?p:null};this.popup=new n.Popup(l);this.popup.show();if(t.interactivity&&(r=this.popup)!=null&&r.getPopupContainer()){i.Event.bind(this.popup.getPopupContainer(),"mouseenter",(()=>{this.cursorOnPopup=true}));i.Event.bind(this.popup.getPopupContainer(),"mouseleave",(()=>{this.cursorOnPopup=false;this.hide(true)}))}}hide(e){if(e){setTimeout((()=>{if(this.popup&&this.popup.getPopupContainer()&&!this.cursorOnPopup){this.popup.close()}}),100)}else{var t;(t=this.popup)==null?void 0:t.close()}}}function r(e,t){if(i.Type.isStringFilled(t)&&i.Type.isUndefined(e.dataset.hintHtml)){return i.Text.encode(t)}return t.html||i.Text.encode(t.text)||t}const l=new p; /** * Hint Vue directive * * @package bitrix * @subpackage ui * @copyright 2001-2025 Bitrix */const a={async mounted(e,{value:t}){var n;if(!t){return}i.Event.bind(e,"mouseenter",(()=>h(e,b(t))));const o=(n=t.interactivity)!=null?n:false;i.Event.bind(e,"mouseleave",(()=>v(o)));i.Event.bind(e,"click",(()=>v()))}};let c=null;function h(e,t){var i;f();c=setTimeout((()=>d(e,t)),(i=t.timeout)!=null?i:0)}function d(e,t){f();l.show(e,t)}function v(e){f();l.hide(e)}function f(){clearTimeout(c)}function b(e){return i.Type.isFunction(e)?e():e}e.hint=a})(this.BX.Vue3.Directives=this.BX.Vue3.Directives||{},BX,BX,BX.Main); //# sourceMappingURL=hint.bundle.map.js