File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/ui/install/js/ui/qrauthorization/dist/bundle.min.js
Back
this.BX=this.BX||{};(function(t,e,i,s,o){"use strict";var n,a,l,u;var r=function(){function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,t);this.title=e.title||null;this.content=e.content||null;this.helpLink=e.helpLink||null;this.popup=null;this.loader=null;this.qrNode=null;this.successNode=null;this.loadingNode=null;this.isSubscribe=false}babelHelpers.createClass(t,[{key:"createQrCodeImage",value:function t(){var i=this;e.Dom.clean(this.getQrNode());this.loading();e.ajax.runAction("mobile.deeplink.get",{data:{intent:"calendar"}}).then((function(t){var e;var s=(e=t.data)===null||e===void 0?void 0:e.link;if(s){i.clean();new QRCode(i.getQrNode(),{text:s,width:180,height:180});if(!i.isSubscribe){i.isSubscribe=true;i.subscribe()}}}))["catch"]((function(){}))}},{key:"subscribe",value:function t(){var e=this;if(o.PULL){o.PULL.subscribe({type:"BX.PullClient.SubscriptionType.Server",moduleId:"mobile",command:"onDeeplinkShouldRefresh",callback:function t(i){e.success()}})}}},{key:"getQrNode",value:function t(){if(!this.qrNode){this.qrNode=e.Tag.render(n||(n=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-qr-authorization__popup-qr"></div>\n\t\t\t'])))}return this.qrNode}},{key:"getPopup",value:function t(){if(!this.popup){var s=e.Tag.render(a||(a=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-qr-authorization__popup-wrapper">\n\t\t\t\t\t<div class="ui-qr-authorization__popup-top">\n\t\t\t\t\t\t<div class="ui-qr-authorization__popup-left ','"">\n\t\t\t\t\t\t\t',"\n\t\t\t\t\t\t\t",'\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="ui-qr-authorization__popup-right ','">\n\t\t\t\t\t\t\t','\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="ui-qr-authorization__popup-bottom">\n\t\t\t\t\t\t<div class="ui-qr-authorization__popup-bottom--title">',"</div>\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t"])),!this.title?"--flex":"",this.title?'<div class="ui-qr-authorization__popup-title">'+this.title+"</div>":"",this.content?'<div class="ui-qr-authorization__popup-text">'+this.content+"</div>":"",!this.title?"--no-margin":"",this.getQrNode(),e.Loc.getMessage("UI_QR_AUTHORIZE_TAKE_CODE"),this.helpLink?'<a href="'+this.helpLink+'" class="ui-qr-authorization__popup-bottom--link">'+e.Loc.getMessage("UI_QR_AUTHORIZE_HELP")+"</a>":"");this.popup=new i.Popup({className:"ui-qr-authorization__popup ui-qr-authorization__popup-scope",width:this.title&&this.content?710:null,content:s,closeByEsc:true,closeIcon:{top:14,right:15},padding:0,animation:"fading-slide"})}return this.popup}},{key:"success",value:function t(){this.clean();this.getQrNode().classList.add("--success");this.getQrNode().appendChild(this.getSuccessNode())}},{key:"getSuccessNode",value:function t(){if(!this.successNode){this.successNode=e.Tag.render(l||(l=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-qr-authorization__popup-qr-success"></div>\n\t\t\t'])))}return this.successNode}},{key:"loading",value:function t(){this.clean();this.getQrNode().classList.add("--loading");this.getQrNode().appendChild(this.getLoadingNode());this.showLoader()}},{key:"getLoadingNode",value:function t(){if(!this.loadingNode){this.loadingNode=e.Tag.render(u||(u=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-qr-authorization__popup-qr-loading"></div>\n\t\t\t'])))}return this.loadingNode}},{key:"getLoader",value:function t(){if(!this.loader){this.loader=new s.Loader({target:this.getLoadingNode(),size:150})}return this.loader}},{key:"showLoader",value:function t(){void this.getLoader().show()}},{key:"hideLoader",value:function t(){void this.getLoader().hide()}},{key:"clean",value:function t(){this.getQrNode().classList.remove("--loading");this.getQrNode().classList.remove("--success");e.Dom.remove(this.getLoadingNode());e.Dom.remove(this.getSuccessNode());this.hideLoader()}},{key:"show",value:function t(){if(!this.getPopup().isShown()){this.createQrCodeImage();this.loading();this.getPopup().show()}}},{key:"close",value:function t(){if(this.getPopup().isShown()){this.clean();this.getPopup().close()}}}]);return t}();t.QrAuthorization=r})(this.BX.UI=this.BX.UI||{},BX,BX.Main,BX,BX); //# sourceMappingURL=bundle.map.js
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings