(window.webpackJsonp=window.webpackJsonp||[]).push([["create-dialog"],{"F/us":function(t,e,n){var r;(function(){var n=this,i=n._,o=Array.prototype,s=Object.prototype,a=Function.prototype,u=o.push,l=o.slice,c=s.toString,h=s.hasOwnProperty,p=Array.isArray,f=Object.keys,d=a.bind,_=Object.create,g=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};t.exports&&(e=t.exports=v),e._=v,v.VERSION="1.8.3";var b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},y=function(t,e,n){return null==t?v.identity:v.isFunction(t)?b(t,e,n):v.isObject(t)?v.matcher(t):v.property(t)};v.iteratee=function(t,e){return y(t,e,1/0)};var m=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i=0&&e<=x};function S(t){function e(e,n,r,i,o,s){for(;o>=0&&o0?0:a-1;return arguments.length<3&&(i=n[s?s[u]:u],u+=t),e(n,r,i,s,u,a)}}v.each=v.forEach=function(t,e,n){var r,i;if(e=b(e,n),k(t))for(r=0,i=t.length;r=0},v.invoke=function(t,e){var n=l.call(arguments,2),r=v.isFunction(e);return v.map(t,(function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)}))},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))}, v.max=function(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,u=(t=k(t)?t:v.values(t)).length;ao&&(o=r);else e=y(e,n),v.each(t,(function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o},v.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,u=(t=k(t)?t:v.values(t)).length;ar||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(l.call(r,s,a),v.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&oe?(s&&(clearTimeout(s),s=null),a=l,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,c)),o}},v.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var l=v.now()-s;l=0?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=v.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}, v.once=v.partial(v.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(t,e){var n=E.length,r=t.constructor,i=v.isFunction(r)&&r.prototype||s,o="constructor";for(v.has(t,o)&&!v.contains(e,o)&&e.push(o);n--;)(o=E[n])in t&&t[o]!==i[o]&&!v.contains(e,o)&&e.push(o)}v.keys=function(t){if(!v.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)v.has(t,n)&&e.push(n);return j&&M(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return j&&M(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},L=v.invert(F),W=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};v.escape=W(F),v.unescape=W(L),v.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),v.isFunction(r)?r.call(t):r};var D=0;v.uniqueId=function(t){var e=++D+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,P=function(t){return"\\"+V[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var r=RegExp([(e.escape||R).source,(e.interpolate||R).source,(e.evaluate||R).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,s,a){return o+=t.slice(i,a).replace(z,P),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e})),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(l){throw l.source=o,l}var a=function(t){return s.call(this,t,v)},u=e.variable||"obj";return a.source="function("+u+"){\n"+o+"}",a},v.chain=function(t){var e=v(t) ;return e._chain=!0,e};var N=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),(function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),N(this,n.apply(v,t))}}))},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=o[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],N(this,n)}})),v.each(["concat","join","slice"],(function(t){var e=o[t];v.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}})),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},void 0===(r=function(){return v}.apply(e,[]))||(t.exports=r)}).call(this)},IWoC:function(t,e,n){"use strict";const r=n("txPx").getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockPlugin=function(t){if(t)return function(e,n,r){var i,o=$(this);function s(e,n){return n?t[e](o,n):t[e](o)}return"get"===e?"function"==typeof t[i=n]?s(i,r):t[i]:t[e]?o.each((function(){return s(e,void 0)})):o}},t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(i,o,s){var a,u,l;return"get"===i?a=o:(u=o,"object"==typeof i&&void 0===o?(u=i,i="init"):"string"!=typeof i&&(i="init")),"getInstance"===i?$(this).eq(0).data(t):"destroy"===i?(l=$(this).eq(0).data(t))?void("function"==typeof l.destroy?(n(l,"destroy",u),$(this).eq(0).removeData(t)):r.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===i?(l=$(this).eq(0).data(t))?"function"==typeof l[a]?n(l,a,s):l[a]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):$(this).each((function(){var o=$(this),s=o.data(t);void 0===s&&(s=void 0===u?e(o):e(o,u),o.data(t,s)),"init"!==i&&("function"==typeof s[i]?n(s,i,u):r.logError("[Block Plugin] "+t+" does not support command "+i))}))};function n(t,e,n){return void 0===n?t[e]():t[e](n)}}},IwoD:function(t,e,n){},QwKQ:function(t,e,n){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0});var i=n("IWoC");n("b6p+");const o=n("txPx").getLogger("Ui.TvControlCheckbox"),s={labelWrapper:'{{#hasLabel}}{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}', checkbox:'',checkboxClass:"{{ customClass }}__input",box:''+n("aLUT")+"",ripple:''};class a{constructor({customClass:t="tv-control-checkbox",$checkbox:e,tag:n,id:r,name:i,checked:s,disabled:a,labelLeft:u,labelRight:l,labelAddClass:c,boxAddClass:h}){this.$el=null,void 0===n&&(n=u||l?"span":"label");const p=e instanceof $&&!!e.length;if(p){if(!e.is("input[type=checkbox]"))return void o.logError("`$checkbox` need to be input[type=checkbox]");if(e.hasClass("i-inited"))return;this._setInputId(e,r),this._setInputClass(e,t),this._setInputName(e,i),this._setInputChecked(e,s),this._setInputDisabled(e,a),s=!!e.prop("checked"),a=!!e.attr("disabled")}this.$el=this.render({$checkbox:e,hasCheckbox:p,customClass:t,tag:n,id:r,name:i,checked:s,disabled:a,labelLeft:u,labelRight:l,hasLabel:u||l,labelAddClass:c,boxAddClass:h}),this.$checkbox=p?e:this.$el.find("input[type=checkbox]")}_setInputId(t,e){void 0!==e&&t.attr("id",e)}_setInputClass(t,e){const n=r.render(s.checkboxClass,{customClass:e});t.addClass(n)}_setInputName(t,e){void 0!==e&&t.attr("name",e)}_setInputChecked(t,e){void 0!==e&&t.prop("checked",!!e)}_setInputDisabled(t,e){void 0!==e&&(e?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}render(t){const e=t.$checkbox,n=$(r.render(s.labelWrapper,t,s));if(t.hasCheckbox){n.insertBefore(e);n.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(e.detach()),e.addClass("i-inited")}return n}set checked(t){this._setInputChecked(this.$checkbox,!!t)}get checked(){return!!this.$checkbox.prop("checked")}}$.fn.tvControlCheckbox=(0,i.createTvBlockWithInstance)("tv-control-checkbox",(function(t,e={}){return new a(TradingView.mergeObj(e,{$checkbox:t}))})),e.default=a,t.exports=e.default}).call(this,n("nbsC"))},YDhE:function(t,e,n){"use strict";n.r(e),n.d(e,"createDialog",(function(){return o}));var r=n("6aJD"),i=n("tKRU");function o(t){const e=t.type||"popup";return delete t.type,"modal"===e?new r.a(t):new i.a(t)}},aLUT:function(t,e){t.exports=''},"b6p+":function(t,e,n){},nec0:function(t,e,n){},nzny:function(t,e,n){},pLUm:function(t,e,n){t.exports={wrapper:"wrapper-2eb-SI2I",touch:"touch-2eb-SI2I"}},sFgq:function(t,e,n){"use strict";(function(t){var r=n("A6WY").lazyJqueryUI;n("nzny");var i=n("pLUm");function o(e,n,r){var o=this;if(this._options=$.extend({},this._defaultOptions,r||{}),this._$wrapper=e,this._$wrapper.addClass(i.wrapper),this._$content=n,this._scroll_speed=40,this._shadow_offset=10,this._header_height=this._options.headerHeight,this._scroll_margin_top=this._options.scrollMarginTop, this.scrolled=new t,this.scrolltoend=new t,this.scrolltostart=new t,this.visibilityCallbacks=[],this._touch=Modernizr.touch,this._touch)return this._$content.css("position","relative"),void this._$wrapper.addClass(i.touch).scroll(this._onScroll.bind(this));this._$wrapper.css("overflow","hidden"),this._$wrapper.on("mouseenter.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.addClass("active"),o._onScroll())})).on("mouseleave.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.removeClass("active"),o._onScroll())})).on("mousewheel.sidebar-scroll",(function(t){if(!t.isDefaultPrevented()){var e=t.deltaY*(t.deltaFactor/100);return o.scroll(e)}})),!1!==this._options.showTopShadow&&(this._$shadowTop=$('
').appendTo(this._$wrapper)),!1!==this._options.showBottomShadow&&(this._$shadowBottom=$('
').appendTo(this._$wrapper)),this._$shadowTop&&this._header_height&&this._$shadowTop.css("top",this._header_height-this._shadow_offset);var s=this._options.additionalClass?" "+this._options.additionalClass:"",a=this._options.alwaysVisible?" active-always":"";this._$scrollBarWrapper=$('
').appendTo(this._$wrapper),this._$scrollBar=$('
').appendTo(this._$scrollBarWrapper),this._onScroll()}o.prototype.isTouch=function(){return this._touch},o.prototype.getScrollBar=function(){return this._$scrollBar},o.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},o.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return r(this._$scrollBar).draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(e,n){t.updateScroll()}}),this._dragInitialized=!0,this},o.prototype.updateScroll=function(){if(this._touch)return this;var t=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),e=this.getContainerHeightWithoutHeader(),n=this._$content.outerHeight(),r=n-e-1;return e<=0||(this._scroll_target_top=r<=0?this._header_height:Math.min(-t*n/e+this._header_height,this._header_height),t+this._$scrollBar.height()+2>=e?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll())),this},o.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper[0].getBoundingClientRect().height-this._header_height},o.prototype.getContainerHeight=function(){return this._$wrapper[0].getBoundingClientRect().height},o.prototype.getContentHeight=function(){return this._$content[0].getBoundingClientRect().height},o.prototype.updateScrollBar=function(){if(this._touch)return this ;var t=this._$content.position().top,e=this.getContentHeight(),n=this.getContainerHeight(),r=this.getContainerHeightWithoutHeader(),i=1+this._header_height,o=r-2,s=(Math.abs(t)-this._header_height)*o/e,a=n*n/e;return this.isContentShort()?(this._$scrollBar.addClass("js-hidden"),this._$wrapper.removeClass("sb-scroll-active")):(this._$scrollBar.removeClass("js-hidden").height(a).css("top",i+s),this._$wrapper.addClass("sb-scroll-active"),this.initDraggable()),this},o.prototype.scroll=function(t,e){var n=this._$content.position().top,r=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1,i=e||this._scroll_speed;return r<=0||(this._scroll_target_top=Math.max(-r+this._header_height,Math.min(this._header_height,n+t*i)),this.setContentTop(this._scroll_target_top),this._onScroll())},o.prototype.animateTo=function(t){if(this._touch)return this;var e=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scroll_target_top=Math.max(-e+this._header_height,Math.min(this._header_height,-t)),this._$content.animate({top:this._scroll_target_top},500,function(){this._onScroll()}.bind(this))},o.prototype.resize=function(){if(!this._bottomFixed){var t=this._$content.outerHeight(),e=this._$wrapper.outerHeight();!this._options.vAlignBottom&&to&&t+e.areaHeights?s-t-e.areaHeight:o-t}else"top"===e.position&&(a=o-t);return this.scroll(a,1),this._onScroll(),!1},o.prototype.scrollToEnd=function(){var t=this._$content.position().top,e=this._$content.outerHeight(),n=this._$wrapper.outerHeight(),r=e>n?t+(n-(e+t))+1:1;return this.setContentTop(r),this._onScroll(),this},o.prototype.scrollToStart=function(){return this.setContentTop(this._header_height),this._onScroll(),this},o.prototype.currentPosition=function(){return Math.round(this._$content.position().top)},o.prototype.atStart=function(){return Math.round(this._$content.position().top)>=this._header_height},o.prototype.atEnd=function(t){"number"==typeof t&&isFinite(t)||(t=0);var e=Math.round(this._$content.position().top),n=this._$content.outerHeight(),r=this._$wrapper.outerHeight();return n-Math.abs(e)-1<=r+t},o.prototype._onScroll=function(t){this._touch||this._$content.css("bottom","auto"),this.scrolled.fire(), this._dragging&&!0!==t||this.updateScrollBar();var e=this.atStart(),n=this.atEnd();return this._$shadowTop&&this._$shadowTop.toggleClass("i-invisible",!!e),this._$shadowBottom&&this._$shadowBottom.toggleClass("i-invisible",!!n),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&delete this._atStart,!this._atEnd&&n?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!n&&delete this._atEnd,this._options.vAlignBottom&&(this._stickyBottom=this._$content.outerHeight()-Math.abs(this._$content.position().top)-this._$wrapper.outerHeight()),!(!this._atStart&&!this._atEnd||("function"==typeof this._options.bubbleScrollEvent?!this._options.bubbleScrollEvent():!this._options.bubbleScrollEvent))},o.prototype.checkContentVisibility=function(){this._onContentVisible()},o.prototype.subscribeToContentVisible=function(t,e,n){this.visibilityCallbacks.push({id:t,$el:e,callback:n})},o.prototype.triggerVisibilityCallbacks=function(t){this._onContentVisible(t)},o.prototype._contentIsVisible=function(t){return t.$el.position().top>-1*this.currentPosition()},o.prototype._onContentVisible=function(t){if(this.visibilityCallbacks.length){var e=t||this._contentIsVisible.bind(this),n=[],r=this.visibilityCallbacks.filter((function(t,r){if(!$.contains(this._$content,t.$el[0]))return!1;var i=e(t);return i&&n.push(r),!i}),this);n.forEach((function(e){this.visibilityCallbacks[e].callback(!!t)}),this),delete this.visibilityCallbacks,this.visibilityCallbacks=r}},o.prototype.save=function(){return this._saved={top:this._$content.position().top,height:this._$content.outerHeight()},this},o.prototype.restore=function(){if(this._saved){if(this._saved.top===this._$content.position().top&&this._saved.height===this._$content.outerHeight())return delete this._saved,this;this._options.vAlignBottom&&(this._saved.top-=this._$content.outerHeight()-this._saved.height,this._saved.top>this._header_height&&(this._saved.top=this._header_height)),this.setContentTop(this._saved.top),delete this._saved,this._onScroll(!0)}return this},o.prototype.fixBottom=function(){if(this._bottomFixed)return this;if(this._touch){var t=this._$content.outerHeight(),e=this._$wrapper.scrollTop();this._tempIntervalID=setInterval(function(){this._$wrapper.scrollTop(e+(this._$content.outerHeight()-t))}.bind(this),0)}else this._$content.css({top:"auto",bottom:this._$wrapper.outerHeight()-this._$content.position().top-this._$content.outerHeight()});return this._bottomFixed=!0,this},o.prototype.releaseBottom=function(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):this._$content.css({top:this._$content.position().top,bottom:"auto"}),delete this._bottomFixed,this._onScroll(),this):this},o.prototype.setContentTop=function(t){return this._touch?this._options.vAlignBottom&&this._$content.outerHeight()'}}]);