Your IP : 18.222.104.211
(function(){BX.namespace("BX.Call");if(BX.Call.SettingsPopup){return}BX.Call.SettingsPopup=function(e){e=BX.type.isPlainObject(e)?e:{};this.bindElement=e.bindElement;this.elements={root:null,input:null};this.url=e.url||"";this.popup=null;this.callbacks={onDestroy:BX.type.isFunction(e.onDestroy)?e.onDestroy:BX.DoNothing}};BX.Call.SettingsPopup.prototype={show:function(){if(!this.elements.root){this.render()}this.createPopup();this.popup.show()},close:function(){if(this.popup){this.popup.close()}},createPopup:function(){var e=this;this.popup=new BX.PopupWindow("bx-call-popup-settings",this.bindElement,{lightShadow:true,autoHide:true,closeByEsc:true,closeIcon:true,content:this.elements.root,bindOptions:{position:"top"},titleBar:BX.message("IM_CALL_SETTINGS_LINK"),angle:{position:"bottom",offset:49},contentNoPaddings:true,contentColor:"white",buttons:[new BX.PopupWindowButton({text:BX.message("IM_CALL_SETTINGS_COPY"),events:{click:function(e){this.elements.input.select();document.execCommand("copy");this.close()}.bind(this)}})],events:{onPopupClose:function(){this.destroy()},onPopupDestroy:function(){e.popup=null;e.callbacks.onDestroy()}}})},render:function(){this.elements.root=BX.create("div",{props:{className:"bx-call-settings-container"},children:[BX.create("div",{props:{className:"bx-messenger-popup-newchat-box bx-messenger-popup-newchat-dest bx-messenger-popup-newchat-dest-even"},children:[this.elements.input=BX.create("input",{props:{className:"bx-messenger-input"},attrs:{value:this.url,readonly:"readonly"}})]})]})}}})();
//# sourceMappingURL=settings_popup.map.js