(window.webpackJsonp=window.webpackJsonp||[]).push([["create-dialog"],{"29gu":function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=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(o,s,a){var u,l,c;return"get"===o?u=s:(l=s,"object"===(void 0===o?"undefined":r(o))&&void 0===s?(l=o,o="init"):"string"!=typeof o&&(o="init")),"getInstance"===o?$(this).eq(0).data(t):"destroy"===o?(c=$(this).eq(0).data(t))?void("function"==typeof c.destroy?(n(c,"destroy",l),$(this).eq(0).removeData(t)):i.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"===o?(c=$(this).eq(0).data(t))?"function"==typeof c[u]?n(c,u,a):c[u]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):$(this).each((function(){var r=$(this),s=r.data(t);void 0===s&&(s=void 0===l?e(r):e(r,l),r.data(t,s)),"init"!==o&&("function"==typeof s[o]?n(s,o,l):i.logError("[Block Plugin] "+t+" does not support command "+o))}))};function n(t,e,n){return void 0===n?t[e]():t[e](n)}}},"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,v=function(){},g=function(t){return t instanceof g?t:this instanceof g?void(this._wrapped=t):new g(t)};t.exports&&(e=t.exports=g),e._=g,g.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?g.identity:g.isFunction(t)?b(t,e,n):g.isObject(t)?g.matcher(t):g.property(t)};g.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)}}g.each=g.forEach=function(t,e,n){var r,i;if(e=b(e,n),C(t))for(r=0,i=t.length;r=0},g.invoke=function(t,e){var n=l.call(arguments,2),r=g.isFunction(e);return g.map(t,(function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)}))},g.pluck=function(t,e){return g.map(t,g.property(e))},g.where=function(t,e){return g.filter(t,g.matcher(e))},g.findWhere=function(t,e){return g.find(t,g.matcher(e))},g.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=C(t)?t:g.values(t)).length;ao&&(o=r);else e=y(e,n),g.each(t,(function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o},g.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=C(t)?t:g.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),g.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}},g.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var l=g.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=g.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a}},g.wrap=function(t,e){return g.partial(e,t)},g.negate=function(t){return function(){return!t.apply(this,arguments)}},g.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}},g.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},g.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},g.once=g.partial(g.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(t,e){var n=E.length,r=t.constructor,i=g.isFunction(r)&&r.prototype||s,o="constructor";for(g.has(t,o)&&!g.contains(e,o)&&e.push(o);n--;)(o=E[n])in t&&t[o]!==i[o]&&!g.contains(e,o)&&e.push(o)}g.keys=function(t){if(!g.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)g.has(t,n)&&e.push(n);return I&&M(t,e),e},g.allKeys=function(t){if(!g.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&M(t,e),e},g.values=function(t){for(var e=g.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},L=g.invert(F),W=function(t){var e=function(e){return t[e]},n="(?:"+g.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}};g.escape=W(F),g.unescape=W(L),g.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),g.isFunction(r)?r.call(t):r};var D=0;g.uniqueId=function(t){var e=++D+"";return t?t+e:e},g.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,z=function(t){return"\\"+V[t]};g.template=function(t,e,n){!e&&n&&(e=n),e=g.defaults({},e,g.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(P,z),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,g)},u=e.variable||"obj";return a.source="function("+u+"){\n"+o+"}",a},g.chain=function(t){var e=g(t);return e._chain=!0,e};var N=function(t,e){return t._chain?g(e).chain():e};g.mixin=function(t){g.each(g.functions(t),(function(e){var n=g[e]=t[e];g.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),N(this,n.apply(g,t))}}))},g.mixin(g),g.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=o[t];g.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)}})),g.each(["concat","join","slice"],(function(t){var e=o[t];g.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}})),g.prototype.value=function(){return this._wrapped},g.prototype.valueOf=g.prototype.toJSON=g.prototype.value,g.prototype.toString=function(){return""+this._wrapped},void 0===(r=function(){return g}.apply(e,[]))||(t.exports=r)}).call(this)},IwoD:function(t,e,n){},QwKQ:function(t,e,n){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n{{#labelLeft}}{{labelLeft}}{{/labelLeft}}{{> inputWrapper }}{{#labelRight}}{{labelRight}}{{/labelRight}}{{/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:''},u=function(){function t(e){var n=e.customClass,r=void 0===n?"tv-control-checkbox":n,i=e.$checkbox,o=e.tag,a=e.id,u=e.name,l=e.checked,c=e.disabled,h=e.labelLeft,p=e.labelRight,f=e.labelAddClass,d=e.boxAddClass;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$el=null,void 0===o&&(o=h||p?"span":"label");var _=i instanceof $&&!!i.length;if(_){if(!i.is("input[type=checkbox]"))return void s.logError("`$checkbox` need to be input[type=checkbox]");if(i.hasClass("i-inited"))return;this._setInputId(i,a),this._setInputClass(i,r),this._setInputName(i,u),this._setInputChecked(i,l),this._setInputDisabled(i,c),l=!!i.prop("checked"),c=!!i.attr("disabled")}this.$el=this.render({$checkbox:i,hasCheckbox:_,customClass:r,tag:o,id:a,name:u,checked:l,disabled:c,labelLeft:h,labelRight:p,hasLabel:h||p,labelAddClass:f,boxAddClass:d}),this.$checkbox=_?i:this.$el.find("input[type=checkbox]")}return i(t,[{key:"_setInputId",value:function(t,e){void 0!==e&&t.attr("id",e)}},{key:"_setInputClass",value:function(t,e){var n=r.render(a.checkboxClass,{customClass:e});t.addClass(n)}},{key:"_setInputName",value:function(t,e){void 0!==e&&t.attr("name",e)}},{key:"_setInputChecked",value:function(t,e){void 0!==e&&t.prop("checked",!!e)}},{key:"_setInputDisabled",value:function(t,e){void 0!==e&&(e?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}},{key:"render",value:function(t){var e=t.$checkbox,n=$(r.render(a.labelWrapper,t,a));t.hasCheckbox&&(n.insertBefore(e),n.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(e.detach()),e.addClass("i-inited"));return n}},{key:"checked",set:function(t){this._setInputChecked(this.$checkbox,!!t)},get:function(){return!!this.$checkbox.prop("checked")}}]),t}();$.fn.tvControlCheckbox=(0,o.createTvBlockWithInstance)("tv-control-checkbox",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new u(TradingView.mergeObj(e,{$checkbox:t}))})),e.default=u,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){var 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-2KWBfDVB",touch:"touch-E6yQTRo_"}},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()'}}]);