(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"5qpw":function(t,o,e){"use strict";function i(t){return t in $.fn?Promise.resolve():(l||(l=new Promise(function(t){Promise.all([e.e(76),e.e("lazy-jquery-ui")]).then(function(o){e("ONnG"),t()}.bind(null,e)).catch(void 0)})),l)}function a(t){return new s(t)}var n,l,s;e.r(o),e.d(o,"LazyJqueryUI",function(){return s}),e.d(o,"lazyJqueryUI",function(){return a}),n=e("P5fv"),s=function(){function t(t){this._$elem=t}return t.prototype.draggable=function(){var t=arguments,o=this._$elem;return i("draggable").then(function(){return o.draggable.apply(o,t)})},t.prototype.resizable=function(){var t=arguments,o=this._$elem;return i("resizable").then(function(){return o.resizable.apply(o,t)})},t.prototype.sortable=function(){var t=arguments,o=this._$elem;return i("sortable").then(function(){return o.sortable.apply(o,t)})},t.prototype.datepicker=function(){var t=arguments,o=this._$elem;return i("datepicker").then(function(){return o.datepicker.apply(o,t)})},t}()},BhuR:function(t,o){t.exports=''},GAqT:function(t,o,e){"use strict";(function(o,i){var a,n=e("Hr11").max,l=e("5qpw").lazyJqueryUI,s=e("jAh7").getRootOverlapManager;e("PVgW"),a={modalDialog:null,dialogs:[],NOTIFICATION_ANIMATION_START_OFFSET:"-33px",_constrainDraggableOptionsIfNeeded:function(t){return o.enabled("constraint_dialogs_movement")&&(t.containment=".chart-page"),t},showNotice:function(t,o,e){var n,l,s,d,r,c;return"object"==typeof o&&(e=o,o=""),n=(e=e||{}).doNotCloseOnBgClick||!1,l=e.html||"",s=e.width||"400px",(d={}).noClose=e.noClose||null,d.addClass=e.modalDialogClass||null,a.createModalDialog(t,d),r=e.centerCaption?"caption-big-center":"caption-big",a.modalDialog.find("._tv-dialog").css("width",s),c=e.customButtonCaption?e.customButtonCaption:$.t("OK"),a.modalDialog.find("._tv-dialog-content").html(i.render('
{{text}}'+l+'
{{^removeOkButton}}
{{/removeOkButton}}
',{captionClassName:r,classSuffix:e.classSuffix||"",text:o,removeOkButton:e&&e.removeOkButton})),a.modalDialog.find("._tv-button.ok").on("click",function(){a.destroy(),e.onOkButtonClick&&e.onOkButtonClick()}),a.positionDialog(),a.applyHandlers(!1,{doNotCloseOnBgClickIfShadowbox:n,beforeDestroy:e.onClose}),a.modalDialog},showCustomDialog:function(t){function o(t){a.destroy(),t.preventDefault()}return a.createModalDialog(t.title||$.t("Dialog"),{addClass:""}),a.modalDialog.find("._tv-dialog").css("width",t.width||"400px"),a.modalDialog.find("._tv-dialog-content").html('
'+(t.html||$.t("Content"))+"
"),a.modalDialog.find(".ok").click(o),a.modalDialog.find("form").submit(o),a.modalDialog.find(".cancel").click(o),a.modalDialog.find("._tv-dialog-title-close").click(o),a.positionDialog(),a.applyHandlers(), a.modalDialog},createModalDialog:function(t,o){var e,i;return o=o||{},null!==a.modalDialog&&a.destroy(),a.modalDialog=$('
'+(o.noHeader?"":'
'+(o.noClose?"":'')+''+t+"
")+'
').appendTo($("body")).data("title",t),a._addMessageCloseButton(a.modalDialog.find("._tv-dialog-error")),a._addMessageCloseButton(a.modalDialog.find("._tv-dialog-message")),o.noShadowBox&&a.modalDialog.addClass("transparent"),o.addClass&&a.modalDialog.addClass(o.addClass),o.width&&a.modalDialog.find("._tv-dialog").css({width:o.width}),o.content&&a.modalDialog.find("._tv-dialog-content").html(o.content),(e=$(".fancybox-overlay")).length&&(i=e.css("z-index"),$("._tv-dialog-shadowbox").css("z-index",i+1)),o.draggable&&l(a.modalDialog).draggable(a._constrainDraggableOptionsIfNeeded({handle:a.modalDialog.find("._tv-dialog-title")})),o.zIndex&&a.modalDialog.css("z-index",o.zIndex),a.modalDialog},_addMessageCloseButton:function(t){var o=$(e("BhuR")).attr({class:"close",title:$.t("Close message")});t.append(o),$(o).on("click",function(){t.animate({marginTop:a.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0},"fast",function(){t.hide()})})},createDialog:function(t,o){var e,d,r,c,g,u;return a.isOpen(t)?((e=a.get(t)).find("._tv-dialog-content").html(""),e.data("new",!1),e):(d=(o=o||{}).ownerDocument||document,c=(r=s(d)).ensureWindow(t,{position:"relative"}),e=$(i.render('
{{^hideTitle}} {{&title}}{{/hideTitle}}{{^hideCloseCross}}{{/hideCloseCross}}
',{addClass:o.addClass||"",hideTitle:o.hideTitle,hideCloseCross:o.hideCloseCross,title:t}),d).appendTo(c),a._addMessageCloseButton(e.find("._tv-dialog-error")),a._addMessageCloseButton(e.find("._tv-dialog-message")),o.width&&e.css({width:o.width}),o.content&&e.find("._tv-dialog-content").html(o.content),g=0,g=o.zIndex?o.zIndex:a.dialogs&&a.dialogs.length?n($.map(a.dialogs,function(t){return parseInt((t.dialog||t).css("z-index"),10)}))+1:110,e.css("z-index",g),e.data("new",!0),e.data("title",t),e.data("id",a.dialogs.length+1),a.dialogs.push({title:t,dialog:e,id:a.dialogs.length+1}),e.on("mousedown touchstart",function(){r.moveToTop(t)}),u={start:function(t,o){var e,i,n=o.helper.css("z-index"),l=0,s=null;for(e=0;el&&(l=i,s=a.dialogs[e].dialog) ;o.helper.css("z-index",l),s.css("z-index",n)}},o.dragHandle?u.handle=o.dragHandle:o.hideTitle||(u.handle="._tv-dialog-title"),o.dragOptions&&$.extend(u,o.dragOptions),l(e).draggable(a._constrainDraggableOptionsIfNeeded(u)),e)},positionDialog:function(t,o,e){function i(){n.css("margin-left",-Math.round(n.outerWidth()/2)+"px"),n.css("margin-top",-Math.round(n.outerHeight()/2)+"px")}var n,l,s,d,r,c,g,u,p,f;e=e||{},o=o||e.position,t?(s=(l=t.prop("ownerDocument")).defaultView,d=t.width(),r=t.height(),c=$(s).width(),g=$(s).height(),o&&o.top&&o.left?(p=e.forcePosition?o.left:Math.max(2,Math.min(c-d-4,o.left))+"px",u=e.forcePosition?o.top:Math.max(2,Math.min(g-r-4,o.top))+"px"):o&&o.considerScroll?(f=$(l),p=Math.round((c-d)/2+f.scrollLeft())+"px",u=Math.round((g-r)/2+f.scrollTop())+"px"):(p=Math.round((c-d)/2)+"px",u=Math.round((g-r)/2)+"px"),e.fadeIn?t.css({left:p,top:u}).hide().fadeIn("fast"):e.smooth?t.animate({left:p,top:u}):t.css({left:p,top:u})):(t=a.modalDialog,n=t.find("._tv-dialog"),i(),n.resize(i))},applyHandlers:function(t,o){var e,i,n,l=!t||t===this.modalDialog;o=o||{},e=l?function(){a.destroy()}:function(){a.destroy(t.data("title"))},t=t||a.modalDialog.find("._tv-dialog"),i=t.prop("ownerDocument"),o.beforeDestroy&&t.on("destroy",o.beforeDestroy),t.find("._tv-dialog-title ._tv-dialog-title-close, .js-dialog-close").on("click",function(t){o.closeHandler&&"function"==typeof o.closeHandler?o.closeHandler(t):e()}),o.doNotCloseOnBgClick||setTimeout(function(){$(i).on("mousedown.closeDialog",function(a){var n=$(a.target).parents().andSelf();n.is(t)||o.doNotCloseOnBgClickIfShadowbox&&n.is("._tv-dialog-shadowbox, .tv-dialog__modal-wrap")||n.is(".colorpicker, .charts-popup-list, ._tv-dialog, .tvcolorpicker-popup, .symbol-edit-popup, .ui-datepicker, .clockpicker-popover, .pac-container, .context-menu-wrapper")||($(i).off("mousedown.closeDialog"),e())})},0),t.find('input[type="checkbox"]').change(function(){var t=$(this),o=t.next("._tv-dialog-checkbox-mask");o.toggleClass("disabled",t.prop("disabled")).toggleClass("_tv-dialog-checkbox-mask-active",t.is(":checked"))}),n=t.find('input[type="text"]').focus(function(){$(this).addClass("_tv-dialog-content-textactive")}).blur(function(){$(this).removeClass("_tv-dialog-content-textactive")}).first(),Modernizr.mobiletouch||o.notFocusFirst||n.focus(),t.find('input[type="password"]').focus(function(){$(this).addClass("_tv-dialog-content-textactive")}).blur(function(){$(this).removeClass("_tv-dialog-content-textactive")}),t.find("textarea").focus(function(){$(this).addClass("_tv-dialog-content-textareaactive")}).blur(function(){$(this).removeClass("_tv-dialog-content-textareaactive")}),t.find("._tv-dialog-checkbox-mask").click(function(){var t=$(this).prev();t.prop("disabled")||(t.prop("checked",!t[0].checked),t.change())}),o.doNotCloseOnEsc||$(i).bind("keyup.hideDialog",function(o){if(27===o.keyCode)return t?a.destroy(t.data("title")):a.destroy(),!1}),o.processEnterButton&&$(i).bind("keyup.confirmAndCloseDialog",function(t){ 13===t.keyCode&&"textarea"!==t.target.tagName.toLowerCase()&&(o.processEnterButton.click(),$(i).unbind("keyup.confirmAndCloseDialog"))})},showError:function(t,o,e){a.showMessage(t,o,$.extend(e||{},{isError:!0}))},showMessage:function(t,o,e){var i,n,l;o||(o=$("._tv-dialog")),i=(e=e||{}).isError?"_tv-dialog-error":"_tv-dialog-message",l=(n=o.find("."+i)).find(".message"),e.html?l.html("string"==typeof e.html?e.html:t):l.text(t),l.css("width",o.width()).toggleClass("selectable",Boolean(e.selectable)),n.toggleClass("with-close",Boolean(e.withClose)).css({marginTop:a.NOTIFICATION_ANIMATION_START_OFFSET,opacity:"0"}).show().animate({marginTop:0,opacity:1},"fast"),e.withClose||(e.hideWithoutAnimation?n.on("touchstartoutside mousedownoutside keydownoutside",function t(){n.hide(),n.off("touchstartoutside mousedownoutside keydownoutside",t)}):n.on("touchstartoutside mousedownoutside keydownoutside",function t(){n.animate({marginTop:a.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0},"fast",function(){n.hide()}),n.off("touchstartoutside mousedownoutside keydownoutside",t)}))},isOpen:function(t){for(var o=0;oi&&(a-=t-i,a=Math.max(0,a),o.height(a))}},t.exports.TVOldDialogs=a}).call(this,e("Kxc7"),e("OiQe"))},PVgW:function(t,o,e){"use strict";function i(t){return t=Math.abs(t),!Object(r.isInteger)(t)&&t>1&&(t=parseFloat(t.toString().replace(/^.+\./,"0."))),0').appendTo(s.parent()),e=$('
').html(c).appendTo(o),i=$('
').html(c).appendTo(o),o.on("mousedown",function(t){t.preventDefault(),s.focus()}),e.click(function(){s.is(":disabled")||n(s)}),i.click(function(){s.is(":disabled")||l(s)}),s.keydown(function(t){s.is(":disabled")||(38===t.keyCode?e.addClass("i-active"):40===t.keyCode&&i.addClass("i-active"))}),s.keyup(function(t){s.is(":disabled")||(38===t.keyCode?(n(s),e.removeClass("i-active")):40===t.keyCode&&(l(s),i.removeClass("i-active")))}),s.mousewheel(function(t){t.deltaY*(t.deltaFactor/100)>0?e.click():i.click()}))})}},"R4+T":function(t,o){t.exports=''},"y1L/":function(t,o,e){},zjLg:function(t,o,e){}}]);