(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{BhuR:function(t,o){t.exports=''},GAqT:function(t,o,e){"use strict";(function(o,i){var n=e("Hr11").max,a=e("A6WY").lazyJqueryUI,s=e("jAh7").getRootOverlapManager;e("PVgW");var d={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){"object"==typeof o&&(e=o,o="");var n=(e=e||{}).doNotCloseOnBgClick||!1,a=e.html||"",s=e.width||"400px",l={};l.noClose=e.noClose||null,l.addClass=e.modalDialogClass||null,d.createModalDialog(t,l);var r=e.centerCaption?"caption-big-center":"caption-big";d.modalDialog.find("._tv-dialog").css("width",s);var c=e.customButtonCaption?e.customButtonCaption:$.t("OK");return d.modalDialog.find("._tv-dialog-content").html(i.render('
{{text}}'+a+'
{{^removeOkButton}}
{{/removeOkButton}}
',{captionClassName:r,classSuffix:e.classSuffix||"",text:o,removeOkButton:e&&e.removeOkButton})),d.modalDialog.find("._tv-button.ok").on("click",(function(){d.destroy(),e.onOkButtonClick&&e.onOkButtonClick()})),d.positionDialog(),d.applyHandlers(!1,{doNotCloseOnBgClickIfShadowbox:n,beforeDestroy:e.onClose}),d.modalDialog},showCustomDialog:function(t){function o(t){d.destroy(),t.preventDefault()}return d.createModalDialog(t.title||$.t("Dialog"),{addClass:""}),d.modalDialog.find("._tv-dialog").css("width",t.width||"400px"),d.modalDialog.find("._tv-dialog-content").html('
'+(t.html||$.t("Content"))+"
"),d.modalDialog.find(".ok").click(o),d.modalDialog.find("form").submit(o),d.modalDialog.find(".cancel").click(o),d.modalDialog.find("._tv-dialog-title-close").click(o),d.positionDialog(),d.applyHandlers(),d.modalDialog},createModalDialog:function(t,o){o=o||{},null!==d.modalDialog&&d.destroy(),d.modalDialog=$('
'+(o.noHeader?"":'
'+(o.noClose?"":'')+''+t+"
")+'
').appendTo($("body")).data("title",t),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-error")),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-message")),o.noShadowBox&&d.modalDialog.addClass("transparent"),o.addClass&&d.modalDialog.addClass(o.addClass),o.width&&d.modalDialog.find("._tv-dialog").css({width:o.width}),o.content&&d.modalDialog.find("._tv-dialog-content").html(o.content) ;var e=$(".fancybox-overlay");if(e.length){var i=e.css("z-index");$("._tv-dialog-shadowbox").css("z-index",i+1)}return o.draggable&&a(d.modalDialog).draggable(d._constrainDraggableOptionsIfNeeded({handle:d.modalDialog.find("._tv-dialog-title")})),o.zIndex&&d.modalDialog.css("z-index",o.zIndex),d.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:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0},"fast",(function(){t.hide()}))}))},createDialog:function(t,o){if(d.isOpen(t))return(c=d.get(t)).find("._tv-dialog-content").html(""),c.data("new",!1),c;var e=(o=o||{}).ownerDocument||document,l=s(e),r=l.ensureWindow(t,{position:"relative"}),c=$(i.render('
{{^hideTitle}} {{&title}}{{/hideTitle}}{{^hideCloseCross}}{{/hideCloseCross}}
',{addClass:o.addClass||"",hideTitle:o.hideTitle,hideCloseCross:o.hideCloseCross,title:t}),e).appendTo(r);d._addMessageCloseButton(c.find("._tv-dialog-error")),d._addMessageCloseButton(c.find("._tv-dialog-message")),o.width&&c.css({width:o.width}),o.content&&c.find("._tv-dialog-content").html(o.content);var g=0;g=o.zIndex?o.zIndex:d.dialogs&&d.dialogs.length?n($.map(d.dialogs,(function(t){return parseInt((t.dialog||t).css("z-index"),10)})))+1:110,c.css("z-index",g),c.data("new",!0),c.data("title",t),c.data("id",d.dialogs.length+1),d.dialogs.push({title:t,dialog:c,id:d.dialogs.length+1}),c.on("mousedown touchstart",(function(){l.moveToTop(t)}));var u={start:function(t,o){for(var e=o.helper.css("z-index"),i=0,n=null,a=0;ai&&(i=s,n=d.dialogs[a].dialog)}o.helper.css("z-index",i),n.css("z-index",e)}};return o.dragHandle?u.handle=o.dragHandle:o.hideTitle||(u.handle="._tv-dialog-title"),o.dragOptions&&$.extend(u,o.dragOptions),a(c).draggable(d._constrainDraggableOptionsIfNeeded(u)),c},positionDialog:function(t,o,e){e=e||{};function i(){h.css("margin-left",-Math.round(h.outerWidth()/2)+"px"),h.css("margin-top",-Math.round(h.outerHeight()/2)+"px")}if(o=o||e.position,t){var n,a,s=t.prop("ownerDocument"),l=s.defaultView,r=t.width(),c=t.height(),g=$(l).width(),u=$(l).height();if(o&&o.top&&o.left)a=e.forcePosition?o.left:Math.max(2,Math.min(g-r-4,o.left))+"px",n=e.forcePosition?o.top:Math.max(2,Math.min(u-c-4,o.top))+"px";else if(o&&o.considerScroll){var p=$(s);a=Math.round((g-r)/2+p.scrollLeft())+"px",n=Math.round((u-c)/2+p.scrollTop())+"px"}else a=Math.round((g-r)/2)+"px",n=Math.round((u-c)/2)+"px";e.fadeIn?t.css({left:a,top:n}).hide().fadeIn("fast"):e.smooth?t.animate({left:a,top:n}):t.css({left:a,top:n}) }else{var h=(t=d.modalDialog).find("._tv-dialog");i(),h.resize(i)}},applyHandlers:function(t,o){var e=!t||t===this.modalDialog,i=(o=o||{},e?function(){d.destroy()}:function(){d.destroy(t.data("title"))}),n=(t=t||d.modalDialog.find("._tv-dialog")).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):i()})),o.doNotCloseOnBgClick||setTimeout((function(){$(n).on("mousedown.closeDialog",(function(e){var a=$(e.target).parents().andSelf();a.is(t)||o.doNotCloseOnBgClickIfShadowbox&&a.is("._tv-dialog-shadowbox, .tv-dialog__modal-wrap")||a.is(".colorpicker, .charts-popup-list, ._tv-dialog, .tvcolorpicker-popup, .symbol-edit-popup, .ui-datepicker, .clockpicker-popover, .pac-container, .context-menu-wrapper")||($(n).off("mousedown.closeDialog"),i())}))}),0),t.find('input[type="checkbox"]').change((function(){var t=$(this);t.next("._tv-dialog-checkbox-mask").toggleClass("disabled",t.prop("disabled")).toggleClass("_tv-dialog-checkbox-mask-active",t.is(":checked"))}));var a=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||a.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||$(n).bind("keyup.hideDialog",(function(o){if(27===o.keyCode)return t?d.destroy(t.data("title")):d.destroy(),!1})),o.processEnterButton&&$(n).bind("keyup.confirmAndCloseDialog",(function(t){13===t.keyCode&&"textarea"!==t.target.tagName.toLowerCase()&&(o.processEnterButton.click(),$(n).unbind("keyup.confirmAndCloseDialog"))}))},showError:function(t,o,e){d.showMessage(t,o,$.extend(e||{},{isError:!0}))},showMessage:function(t,o,e){o||(o=$("._tv-dialog"));var i=(e=e||{}).isError?"_tv-dialog-error":"_tv-dialog-message",n=o.find("."+i),a=n.find(".message");e.html?a.html("string"==typeof e.html?e.html:t):a.text(t),a.css("width",o.width()).toggleClass("selectable",Boolean(e.selectable)),n.toggleClass("with-close",Boolean(e.withClose)).css({marginTop:d.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:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0 },"fast",(function(){n.hide()})),n.off("touchstartoutside mousedownoutside keydownoutside",t)})))},isOpen:function(t){for(var o=0;oi&&(n-=t-i,n=Math.max(0,n),o.height(n))}};t.exports.TVOldDialogs=d}).call(this,e("Kxc7"),e("nbsC"))},PVgW:function(t,o,e){"use strict";e.r(o);e("P5fv"),e("si6p");var i=e("ogJP"),n=e("R4+T");function a(t){return t=Math.abs(t),!Object(i.isInteger)(t)&&t>1&&(t=parseFloat(t.toString().replace(/^.+\./,"0."))),0').appendTo(e.parent()),s=$('
').html(n).appendTo(a),r=$('
').html(n).appendTo(a);a.on("mousedown",(function(t){t.preventDefault(),e.focus()})),s.click((function(){e.is(":disabled")||d(e)})),r.click((function(){e.is(":disabled")||l(e)})),e.keydown((function(t){e.is(":disabled")||(38===t.keyCode?s.addClass("i-active"):40===t.keyCode&&r.addClass("i-active"))})), e.keyup((function(t){e.is(":disabled")||(38===t.keyCode?(d(e),s.removeClass("i-active")):40===t.keyCode&&(l(e),r.removeClass("i-active")))})),e.mousewheel((function(t){t.deltaY*(t.deltaFactor/100)>0?s.click():r.click()}))}}))}},"R4+T":function(t,o){t.exports=''},jAh7:function(t,o,e){"use strict";e.r(o),e.d(o,"OverlapManager",(function(){return a})),e.d(o,"getRootOverlapManager",(function(){return d}));var i=e("Eyy1"),n=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter((function(o){return t!==o}))},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),a=function(){function t(t){void 0===t&&(t=document),this._storage=new n,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var o=this._container,e=null===t?this._document.createDocumentFragment():t;!function(t,o){Array.from(t.childNodes).forEach((function(t){t.nodeType===Node.ELEMENT_NODE&&o.appendChild(t)}))}(o,e),this._container=e},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,o){void 0===o&&(o={position:"fixed",direction:"normal"});var e=this._windows.get(t);if(void 0!==e)return e;this.registerWindow(t);var i=this._document.createElement("div");if(i.style.position=o.position,i.style.zIndex=this._index.toString(),i.dataset.id=t,void 0!==o.index){var n=this._container.childNodes.length;if(o.index>=n)this._container.appendChild(i);else if(o.index<=0)this._container.insertBefore(i,this._container.firstChild);else{var a=this._container.childNodes[o.index];this._container.insertBefore(i,a)}}else"reverse"===o.direction?this._container.insertBefore(i,this._container.firstChild):this._container.appendChild(i);return this._windows.set(t,i),++this._index,i},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var o=this._windows.get(t);void 0!==o&&(null!==o.parentElement&&o.parentElement.removeChild(o),this._windows.delete(t))},t.prototype.getZindex=function(t){var o=this.ensureWindow(t);return parseInt(o.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),s=new WeakMap;function d(t){void 0===t&&(t=document);var o=t.getElementById("overlap-manager-root");if(null!==o)return Object(i.ensureDefined)(s.get(o));var e=new a(t),n=function(t){var o=t.createElement("div");return o.style.position="absolute",o.style.zIndex=150..toString(),o.style.top="0px",o.style.left="0px",o.id="overlap-manager-root",o}(t);return s.set(n,e),e.setContainer(n),t.body.appendChild(n),e}}, "y1L/":function(t,o,e){},zjLg:function(t,o,e){}}]);