(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1662],{80208:(t,e,i)=>{"use strict";i.r(e),i.d(e,{showAlertsPushDialog:()=>r});var o=i(28353),s=(i(94419),i(89725)),n=i(82595);const a='

'+(0,o.t)("Install TradingView Mobile App")+"

"+(0,o.t)("To get notified about an alert on your phone you need to do the following:")+"

";function r(){const t={width:480,closeOnOutsideClick:!1,destroyOnClose:!0,closeButton:!1,focusFirstControl:!1,type:"modal",contentWrapTemplate:'
',actionsWrapTemplate:'
',content:a,actions:[{name:"confirm",type:"primary",text:(0,o.t)("Got it"),method:"close",key:[13,32]},{name:"do-not-show",type:"checkbox",text:(0,o.t)("Do not show this message again"),addClass:"tv-control-checkbox tv-control-checkbox--in-actions i-align_left i-float_left"}]};return new Promise(e=>{let i=!1;const o=(0,s.createDialog)(t);o.on("action:do-not-show",(t,e)=>{i=e}),o.on("destroy",()=>{e(i)}),o.open()})}},89725:(t,e,i)=>{"use strict";i.r(e),i.d(e,{createDialog:()=>n});var o=i(976),s=i(77544);function n(t){const e=t.type||"popup";return delete t.type,"modal"===e?new o.TVModal(t):new s.TVPopup(t)}},976:(t,e,i)=>{"use strict";i.d(e,{TVModal:()=>v});var o=i(28353),s=i(68587),n=i(49483),a=i(43989),r=i(51536),d=i(4185),l=i(85739),h=i(25760),c=i(23127),p=i(25977);let g=[];const u={ajax:{},closingDuration:s.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,o.t)("Error")}
`};class v extends r.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=c(this.options.overlayTemplate), this.$modalWrap=c(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{g.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||c.noop,e=this.options.ajax.success||!1,i=this.options.ajax.error||c.noop;c.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(e?e(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,e)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),c(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=c.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&l.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),g=p.without(g,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),g.length>0&&g[g.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*s.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){ return this.spinner=new d.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},43989:(t,e,i)=>{"use strict";i.d(e,{setFixedBodyState:()=>a});var o=i(68722);let s=0,n=!1;function a(t){const{body:e}=document,i=e.querySelector(".widgetbar-wrap");if(t&&1==++s){const t=(0,o.getCSSProperty)(e,"overflow"),s=(0,o.getCSSPropertyNumericValue)(e,"padding-right");"hidden"!==t.toLowerCase()&&e.scrollHeight>e.offsetHeight&&((0,o.setStyle)(i,"right",(0,o.getScrollbarWidth)()+"px"),e.style.paddingRight=s+(0,o.getScrollbarWidth)()+"px",n=!0),e.classList.add("i-no-scroll")}else if(!t&&s>0&&0==--s&&(e.classList.remove("i-no-scroll"),n)){(0,o.setStyle)(i,"right","0px");let t=0;0,e.scrollHeight<=e.clientHeight&&(t-=(0,o.getScrollbarWidth)()),e.style.paddingRight=(t<0?0:t)+"px",n=!1}}},82595:t=>{t.exports=''}}]);