"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7739],{26438:function(e,t){t.Z={rus:"ru",eng:"en",pol:"pl",ita:"it",deu:"de",esp:"es",chn:"zh",ukr:"ua",fra:"fr"}},67014:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(70821),a={class:"mx-input-wrapper"},i=["name","disabled","readonly","value","placeholder"],o=(0,r.createElementVNode)("i",{class:"mx-input-icon mx-clear-icon"},null,-1),s={class:"mx-input-append"},l={xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 200 200",class:"mx-calendar-icon"},c=(0,r.createElementVNode)("rect",{x:"13",y:"29",rx:"14",ry:"14",width:"174",height:"158",fill:"transparent"},null,-1),d=(0,r.createElementVNode)("line",{x1:"46",x2:"46",y1:"8",y2:"50"},null,-1),u=(0,r.createElementVNode)("line",{x1:"154",x2:"154",y1:"8",y2:"50"},null,-1),h=(0,r.createElementVNode)("line",{x1:"13",x2:"187",y1:"70",y2:"70"},null,-1),p={x:"50%",y:"135","font-size":"90","stroke-width":"1","text-anchor":"middle","dominant-baseline":"middle"},m={key:0,class:"mx-shortcuts-wrapper"},f=["onClick"],g={key:1,class:"mx-range-wrapper"},v={key:0,class:"mx-datepicker-footer"};n(9653),n(92222),n(74916),n(73210),n(15306),n(41539),n(21249),n(96649),n(96078),n(82526),n(41817),n(47941),n(57327),n(38880),n(54747),n(49337),n(32165),n(66992),n(78783),n(33948);var y=n(19432);function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return e instanceof Date}function _(e){return null!=e&&!isNaN(new Date(e).getTime())}function w(e){var t=(e||"").split(":");return t.length>=2?{hours:parseInt(t[0],10),minutes:parseInt(t[1],10)}:null}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"24",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a",r=e.hours,a=(r=(r="24"===t?r:r%12||12)<10?"0"+r:r)+":"+(e.minutes<10?"0"+e.minutes:e.minutes);if("12"===t){var i=e.hours>=12?"pm":"am";"A"===n&&(i=i.toUpperCase()),a="".concat(a," ").concat(i)}return a}function E(e,t){if(!e)return"";try{return y.ZP.format(new Date(e),t)}catch(e){return""}}var D={date:{value2date:function(e){return _(e)?new Date(e):null},date2value:function(e){return e}},timestamp:{value2date:function(e){return _(e)?new Date(e):null},date2value:function(e){return e&&new Date(e).getTime()}}},S={class:"mx-calendar-header"},B={class:"mx-calendar-content"};n(68309);var C={zh:{days:["日","一","二","三","四","五","六"],months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pickers:["未来7天","未来30天","最近7天","最近30天"],placeholder:{date:"请选择日期",dateRange:"请选择日期范围"}},en:{days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pickers:["next 7 days","next 30 days","previous 7 days","previous 30 days"],placeholder:{date:"Select Date",dateRange:"Select Date Range"}},ro:{days:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],months:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],pickers:["urmatoarele 7 zile","urmatoarele 30 zile","ultimele 7 zile","ultimele 30 zile"],placeholder:{date:"Selectați Data",dateRange:"Selectați Intervalul De Date"}},fr:{days:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Jan","Fev","Mar","Avr","Mai","Juin","Juil","Aout","Sep","Oct","Nov","Dec"],pickers:["7 jours suivants","30 jours suivants","7 jours précédents","30 jours précédents"],placeholder:{date:"Sélectionnez une date",dateRange:"Sélectionnez une période"}},es:{days:["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],months:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],pickers:["próximos 7 días","próximos 30 días","7 días anteriores","30 días anteriores"],placeholder:{date:"Seleccionar fecha",dateRange:"Seleccionar un rango de fechas"}},"pt-br":{days:["Dom","Seg","Ter","Qua","Quin","Sex","Sáb"],months:["Jan","Fev","Mar","Abr","Maio","Jun","Jul","Ago","Set","Out","Nov","Dez"],pickers:["próximos 7 dias","próximos 30 dias","7 dias anteriores"," 30 dias anteriores"],placeholder:{date:"Selecione uma data",dateRange:"Selecione um período"}},ru:{days:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],pickers:["след. 7 дней","след. 30 дней","прош. 7 дней","прош. 30 дней"],placeholder:{date:"Выберите дату",dateRange:"Выберите период"}},de:{days:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],pickers:["nächsten 7 Tage","nächsten 30 Tage","vorigen 7 Tage","vorigen 30 Tage"],placeholder:{date:"Datum auswählen",dateRange:"Zeitraum auswählen"}},it:{days:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pickers:["successivi 7 giorni","successivi 30 giorni","precedenti 7 giorni","precedenti 30 giorni"],placeholder:{date:"Seleziona una data",dateRange:"Seleziona un intervallo date"}},cs:{days:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob"],months:["Led","Úno","Bře","Dub","Kvě","Čer","Čerc","Srp","Zář","Říj","Lis","Pro"],pickers:["příštích 7 dní","příštích 30 dní","předchozích 7 dní","předchozích 30 dní"],placeholder:{date:"Vyberte datum",dateRange:"Vyberte časové rozmezí"}},sl:{days:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],months:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],pickers:["naslednjih 7 dni","naslednjih 30 dni","prejšnjih 7 dni","prejšnjih 30 dni"],placeholder:{date:"Izberite datum",dateRange:"Izberite razpon med 2 datumoma"}}},T=C.zh,L={methods:{t:function(e){for(var t=this,n=t.$options.name;t&&(!n||"DatePicker"!==n);)(t=t.$parent)&&(n=t.$options.name);for(var r,a=t&&t.language||T,i=e.split("."),o=a,s=0,l=i.length;ss&&(e.scrollTop=i-e.clientHeight)}else e.scrollTop=0}n(47042),n(69600);var V={class:"mx-panel mx-panel-date"},M=["data-year","data-month","title","onClick"];var F={name:"panelDate",mixins:[L],props:{value:null,startAt:null,endAt:null,dateFormat:{type:String,default:"YYYY-MM-DD"},calendarMonth:{default:(new Date).getMonth()},calendarYear:{default:(new Date).getFullYear()},firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},disabledDate:{type:Function,default:function(){return!1}}},methods:{selectDate:function(e){var t=e.year,n=e.month,r=e.day,a=new Date(t,n,r);this.disabledDate(a)||this.$emit("select",a)},getDays:function(e){var t=this.t("days"),n=parseInt(e,10);return t.concat(t).slice(n,n+7)},getDates:function(e,t,n){var r=[],a=new Date(e,t);a.setDate(0);for(var i=(a.getDay()+7-n)%7+1,o=a.getDate()-(i-1),s=0;sthis.calendarMonth?a.push("next-month"):a.push("cur-month"),i===o&&a.push("today"),this.disabledDate(i)&&a.push("disabled"),s&&(i===s?a.push("actived"):(l&&i<=s||c&&i>=s)&&a.push("inrange")),a},getCellTitle:function(e){var t=e.year,n=e.month,r=e.day;return E(new Date(t,n,r),this.dateFormat)}}},I=n(83744);const A=(0,I.Z)(F,[["render",function(e,t,n,a,i,o){var s=this;return(0,r.openBlock)(),(0,r.createElementBlock)("table",V,[(0,r.createElementVNode)("thead",null,[(0,r.createElementVNode)("tr",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.getDays(this.firstDayOfWeek),(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("th",null,(0,r.toDisplayString)(e),1)})),256))])]),(0,r.createElementVNode)("tbody",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(Array.apply(null,{length:6}),(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("tr",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.getDates(s.calendarYear,s.calendarMonth,s.firstDayOfWeek).slice(7*t,7*t+7),(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("td",{class:(0,r.normalizeClass)(["cell",o.getCellClasses(e).join(" ")]),"data-year":e.year,"data-month":e.month,title:o.getCellTitle(e),onClick:function(t){return o.selectDate(e)}},(0,r.toDisplayString)(e.day),11,M)})),256))])})),256))])])}]]);var H=A,P={class:"mx-panel mx-panel-year"},O=["onClick"];var $={name:"panelYear",props:{value:null,firstYear:Number,disabledYear:Function},methods:{isDisabled:function(e){return!("function"!=typeof this.disabledYear||!this.disabledYear(e))},selectYear:function(e){this.isDisabled(e)||this.$emit("select",e)}}};var j=(0,I.Z)($,[["render",function(e,t,n,a,i,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",P,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(Array.apply(null,{length:10}),(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)({cell:!0,actived:(n.value&&new Date(n.value).getFullYear())===10*Math.floor(n.firstYear/10)+t,disabled:o.isDisabled(10*Math.floor(n.firstYear/10)+t)}),onClick:function(e){return o.selectYear(10*Math.floor(n.firstYear/10)+t)}},(0,r.toDisplayString)(10*Math.floor(n.firstYear/10)+t),11,O)})),256))])}]]),z={class:"mx-panel mx-panel-month"},G=["onClick"];var R={name:"panelMonth",mixins:[L],props:{value:null,calendarYear:{default:(new Date).getFullYear()},disabledMonth:Function},methods:{isDisabled:function(e){return!("function"!=typeof this.disabledMonth||!this.disabledMonth(e))},selectMonth:function(e){this.isDisabled(e)||this.$emit("select",e)}}};var Z=(0,I.Z)(R,[["render",function(e,t,n,a,i,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",z,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.t("months"),(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)({cell:!0,actived:(n.value&&new Date(n.value).getFullYear())===n.calendarYear&&(n.value&&new Date(n.value).getMonth())===t,disabled:o.isDisabled(t)}),onClick:function(e){return o.selectMonth(t)}},(0,r.toDisplayString)(e),11,G)})),256))])}]]),Y={key:0,class:"mx-panel mx-panel-time"},W={class:"mx-time-list"},q=["onClick"],U={key:1,class:"mx-panel mx-panel-time"},J=["onClick"],K=["onClick"],X=["onClick"];n(91038);function Q(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&e<=60}},value:null,timeType:{type:Array,default:function(){return["24","a"]}},disabledTime:Function},computed:{currentHours:function(){return this.value?new Date(this.value).getHours():0},currentMinutes:function(){return this.value?new Date(this.value).getMinutes():0},currentSeconds:function(){return this.value?new Date(this.value).getSeconds():0},dateComp:function(){return this.value?new Date(this.value):(new Date).setHours(0,0,0,0)},disabledTimeComp:function(){return"function"==typeof this.disabledTime&&this.disabledTime},columns:function(){var e=this.minuteStep||1,t=parseInt(60/e),n={hours:Array.apply(null,{length:24}).map((function(e,t){return t})),minutes:Array.apply(null,{length:t}).map((function(t,n){return n*e})),seconds:0===this.minuteStep?Array.apply(null,{length:60}).map((function(e,t){return t})):[]};return this.timeSelectOptions&&"object"===ae(this.timeSelectOptions)&&(n=ne(ne({},n),this.timeSelectOptions)),n}},methods:{stringifyText:function(e){return("00"+e).slice(String(e).length)},selectTime:function(e){"function"==typeof this.disabledTime&&this.disabledTime(e)||this.$emit("select",new Date(e))},pickTime:function(e){"function"==typeof this.disabledTime&&this.disabledTime(e)||this.$emit("pick",new Date(e))},getTimePickerOptions:function(){var e=[],t=this.timePickerOptions;if(!t)return[];if("function"==typeof t)return t()||[];var n=w(t.start),r=w(t.end),a=w(t.step);if(n&&r&&a)for(var i=n.minutes+60*n.hours,o=r.minutes+60*r.hours,s=a.minutes+60*a.hours,l=Math.floor((o-i)/s),c=0;c<=l;c++){var d=i+c*s,u={hours:Math.floor(d/60),minutes:d%60};e.push({value:u,label:x.apply(void 0,[u].concat(Q(this.timeType)))})}return e},getTime:function(e,t){return new Date(this.dateComp).setHours(e,t,0)}}};var oe={name:"CalendarPanel",components:{PanelDate:H,PanelYear:j,PanelMonth:Z,PanelTime:(0,I.Z)(ie,[["render",function(e,t,n,a,i,o){var s=this;return Array.isArray(o.getTimePickerOptions())&&o.getTimePickerOptions().length?((0,r.openBlock)(),(0,r.createElementBlock)("div",Y,[(0,r.createElementVNode)("ul",W,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.getTimePickerOptions(),(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)({"mx-time-picker-item":!0,cell:!0,actived:e.value.hours===o.currentHours&&e.value.minutes===o.currentMinutes,disabled:n.disabledTime&&n.disabledTime(o.getTime(e.value.hours,e.value.minutes))}),onClick:function(t){return o.pickTime(o.getTime(e.value.hours,e.value.minutes))}},(0,r.toDisplayString)(e.label),11,q)})),256))])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",U,[o.columns.hours.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,class:"mx-time-list",style:(0,r.normalizeStyle)({width:100/[o.columns.hours,o.columns.minutes,o.columns.seconds].filter((function(e){return e.length>0})).length+"%"})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.columns.hours,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)({cell:!0,actived:e===o.currentHours,disabled:o.disabledTimeComp&&o.disabledTimeComp(new Date(s.dateComp).setHours(e))}),onClick:function(t){return o.selectTime(new Date(s.dateComp).setHours(e))}},(0,r.toDisplayString)(o.stringifyText(e)),11,J)})),256))],4)):(0,r.createCommentVNode)("",!0),o.columns.minutes.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:1,class:"mx-time-list",style:(0,r.normalizeStyle)({width:100/[o.columns.hours,o.columns.minutes,o.columns.seconds].filter((function(e){return e.length>0})).length+"%"})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.columns.minutes,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)({cell:!0,actived:e===o.currentMinutes,disabled:o.disabledTimeComp&&o.disabledTimeComp(new Date(s.dateComp).setMinutes(e))}),onClick:function(t){return o.selectTime(new Date(s.dateComp).setMinutes(e))}},(0,r.toDisplayString)(o.stringifyText(e)),11,K)})),256))],4)):(0,r.createCommentVNode)("",!0),o.columns.seconds.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:2,class:"mx-time-list",style:(0,r.normalizeStyle)({width:100/[o.columns.hours,o.columns.minutes,o.columns.seconds].filter((function(e){return e.length>0})).length+"%"})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.columns.seconds,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)({cell:!0,actived:e===o.currentSeconds,disabled:o.disabledTimeComp&&o.disabledTimeComp(new Date(s.dateComp).setSeconds(e))}),onClick:function(t){return o.selectTime(new Date(s.dateComp).setSeconds(e))}},(0,r.toDisplayString)(o.stringifyText(e)),11,X)})),256))],4)):(0,r.createCommentVNode)("",!0)]))}]])},mixins:[L,{methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,a=r.$options.name;r&&(!a||a!==e);)(r=r.$parent)&&(a=r.$options.name);a&&a===e&&(r=r||this).$emit.apply(r,[t].concat(n))}}}],props:{value:{default:null,validator:function(e){return null===e||_(e)}},startAt:null,endAt:null,visible:{type:Boolean,default:!1},type:{type:String,default:"date"},dateFormat:{type:String,default:"YYYY-MM-DD"},index:Number,defaultValue:{validator:function(e){return _(e)}},firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},notBefore:{default:null,validator:function(e){return!e||_(e)}},notAfter:{default:null,validator:function(e){return!e||_(e)}},disabledDays:{type:[Array,Function],default:function(){return[]}},minuteStep:{type:Number,default:0,validator:function(e){return e>=0&&e<=60}},timeSelectOptions:{type:Object,default:function(){return null}},timePickerOptions:{type:[Object,Function],default:function(){return null}}},data:function(){var e=this.getNow(this.value),t=e.getFullYear();return{panel:"NONE",dates:[],calendarMonth:e.getMonth(),calendarYear:t,firstYear:10*Math.floor(t/10)}},computed:{now:{get:function(){return new Date(this.calendarYear,this.calendarMonth).getTime()},set:function(e){var t=new Date(e);this.calendarYear=t.getFullYear(),this.calendarMonth=t.getMonth()}},timeType:function(){return[/h+/.test(this.$parent.format)?"12":"24",/A/.test(this.$parent.format)?"A":"a"]},timeHeader:function(){return"time"===this.type?this.$parent.format:this.value&&E(this.value,this.dateFormat)},yearHeader:function(){return this.firstYear+" ~ "+(this.firstYear+9)},months:function(){return this.t("months")},notBeforeTime:function(){return this.getCriticalTime(this.notBefore)},notAfterTime:function(){return this.getCriticalTime(this.notAfter)}},watch:{value:{immediate:!0,handler:"updateNow"},defaultValue:{handler:"updateNow"},visible:{immediate:!0,handler:"init"},panel:{handler:"handelPanelChange"}},methods:{handelPanelChange:function(e,t){var n=this;this.dispatch("DatePicker","panel-change",[e,t]),"YEAR"===e?this.firstYear=10*Math.floor(this.calendarYear/10):"TIME"===e&&this.$nextTick((function(){for(var e=n.$el.querySelectorAll(".mx-panel-time .mx-time-list"),t=0,r=e.length;tthis.notAfterTime||t&&e>this.getCriticalTime(t)},inDisabledDays:function(e){var t=this;return Array.isArray(this.disabledDays)?this.disabledDays.some((function(n){return t.getCriticalTime(n)===e})):"function"==typeof this.disabledDays&&this.disabledDays(new Date(e))},isDisabledYear:function(e){var t=new Date(e,0).getTime(),n=new Date(e+1,0).getTime()-1;return this.inBefore(n)||this.inAfter(t)||"year"===this.type&&this.inDisabledDays(t)},isDisabledMonth:function(e){var t=new Date(this.calendarYear,e).getTime(),n=new Date(this.calendarYear,e+1).getTime()-1;return this.inBefore(n)||this.inAfter(t)||"month"===this.type&&this.inDisabledDays(t)},isDisabledDate:function(e){var t=new Date(e).getTime(),n=new Date(e).setHours(23,59,59,999);return this.inBefore(n)||this.inAfter(t)||this.inDisabledDays(t)},isDisabledTime:function(e,t,n){var r=new Date(e).getTime();return this.inBefore(r,t)||this.inAfter(r,n)||this.inDisabledDays(r)},selectDate:function(e){if("datetime"===this.type){var t=new Date(e);return k(this.value)&&t.setHours(this.value.getHours(),this.value.getMinutes(),this.value.getSeconds()),this.isDisabledTime(t)&&(t.setHours(0,0,0,0),this.notBefore&&t.getTime()=n?o():a=setTimeout(o,n)}}),window.addEventListener("resize",this._displayPopup),window.addEventListener("scroll",this._displayPopup)},beforeUnmount:function(){this.popupElm&&this.popupElm.parentNode===document.body&&document.body.removeChild(this.popupElm),document.removeEventListener(this._startEvt,this._bindDocmentMousedown),document.removeEventListener(this._endEvt,this._bindDocumentMouseup),window.removeEventListener("resize",this._displayPopup),window.removeEventListener("scroll",this._displayPopup)},methods:{initCalendar:function(){this.handleValueChange(this.modelValue),this.displayPopup()},stringify:function(e){return b(this.format)&&"function"==typeof this.format.stringify?this.format.stringify(e):E(e,this.format)},parse:function(e){return b(this.format)&&"function"==typeof this.format.parse?this.format.parse(e):function(e,t){try{return y.ZP.parse(e,t)||null}catch(e){return null}}(e,this.format)},isValidValue:function(e){return _((0,this.transform.value2date)(e))},isValidRangeValue:function(e){var t=this.transform.value2date;return Array.isArray(e)&&2===e.length&&this.isValidValue(e[0])&&this.isValidValue(e[1])&&t(e[1]).getTime()>=t(e[0]).getTime()},dateEqual:function(e,t){return k(e)&&k(t)&&e.getTime()===t.getTime()},rangeEqual:function(e,t){var n=this;return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((function(e,r){return n.dateEqual(e,t[r])}))},selectRange:function(e){"function"==typeof e.onClick?!1!==e.onClick(this)&&this.closePopup():(this.currentValue=[new Date(e.start),new Date(e.end)],this.updateDate(!0),this.closePopup())},clearDate:function(){var e=this.range?[null,null]:null;this.currentValue=e,this.updateDate(!0),this.$emit("clear")},confirmDate:function(){var e=this.range?function(e){return Array.isArray(e)&&2===e.length&&_(e[0])&&_(e[1])&&new Date(e[1]).getTime()>=new Date(e[0]).getTime()}(this.currentValue):_(this.currentValue);e&&this.updateDate(!0),this.emitDate("confirm"),this.closePopup()},updateDate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(this.confirm&&!e||this.disabled)&&(!(this.range?this.rangeEqual(this.modelValue,this.currentValue):this.dateEqual(this.modelValue,this.currentValue))&&(this.emitDate("update:modelValue"),this.emitDate("change"),!0))},emitDate:function(e){var t=this.transform.date2value,n=this.range?this.currentValue.map(t):t(this.currentValue);this.$emit(e,n)},handleValueChange:function(e){var t=this.transform.value2date;this.range?this.currentValue=this.isValidRangeValue(e)?e.map(t):[null,null]:this.currentValue=this.isValidValue(e)?t(e):null},selectDate:function(e){this.currentValue=e,this.updateDate()&&this.closePopup()},selectStartDate:function(e){this.currentValue[0]=e,this.currentValue[1]&&this.updateDate()},selectEndDate:function(e){this.currentValue[1]=e,this.currentValue[0]&&this.updateDate()},selectTime:function(e,t){this.currentValue=e,this.updateDate()&&t&&this.closePopup()},selectStartTime:function(e){this.selectStartDate(e)},selectEndTime:function(e){this.selectEndDate(e)},showPopup:function(){this.disabled||(this.popupVisible=!0)},closePopup:function(){this.popupVisible=!1},getPopupSize:function(e){var t=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var r=window.getComputedStyle(e),a={width:e.offsetWidth+parseInt(r.marginLeft)+parseInt(r.marginRight),height:e.offsetHeight+parseInt(r.marginTop)+parseInt(r.marginBottom)};return e.style.display=t,e.style.visibility=n,a},displayPopup:function(){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight,n=this.$el.getBoundingClientRect(),r=this._popupRect||(this._popupRect=this.getPopupSize(this.$refs.calendar)),a={},i=0,o=0;this.appendToBody&&(i=window.pageXOffset+n.left,o=window.pageYOffset+n.top),e-n.left=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function V(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){V(i,r,a,o,s,"next",e)}function s(e){V(i,r,a,o,s,"throw",e)}o(void 0)}))}}function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function I(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){if(this.index_holding_calc.data.length<50)return this.index_holding_calc.data;var e=(this.indexHoldingsPage-1)*this.indexHoldingsLimit,t=this.indexHoldingsPage*this.indexHoldingsLimit;return this.index_holding_calc.data.slice(e,t)}},indexHoldingsTotal:function(){return this.index_holding_calc.data.length},stockIndexHoldingsNotLastDate:function(){if(0==this.stockIndexHoldingsDisabledDates.ranges.length)return!0;var e=new Date(this.stockIndexHoldingsDisabledDates.ranges[this.stockIndexHoldingsDisabledDates.ranges.length-1].from),t=new Date(this.indexHoldingCalculationDate);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),e.getTime()!==t.getTime()},linkToIndexSearch:function(){var e="/stocks/?",t=encodeList([this.indexId],[this.indexId]);return t.length>0&&(e+="index_type_id="+t+"&"),e},indexAccessOpen:function(){return this.userAuth},xLastValueDate:{get:function(){return this.lastValueDate?this.indexesTimeZoneConvert(this.lastValueDate):""},set:function(e){this.lastValueDate=(0,y.Z)(new Date(e),"yyyy-MM-dd")}},exportStartDate:{get:function(){return this.periodFirstDate},set:function(e){this.periodFirstDate=e,this.beginDateExport=new Date(e).toJSON(),this.excelStartDate=e}},exportEndDate:{get:function(){return this.periodSecondDate},set:function(e){this.periodSecondDate=e,this.endDateExport=new Date(e).toJSON(),this.excelEndDate=e,(0,y.Z)(new Date(this.excelEndDate),"yyyy-MM-dd")>this.lastValueDate&&(this.excelEndDate=new Date(this.lastValueDate))}},graphStartDate:{get:function(){return this.indexesTimeZoneConvert(this.excelStartDate)},set:function(e){if(this.graphRenderErrorMsg="",e){var t=new Date(e),n=new Date,r=60*(60*n.getHours()+n.getMinutes())*1e3,a=new Date(t.getTime()+60*t.getTimezoneOffset()*1e3+r),i=new Date(t.getTime()+60*t.getTimezoneOffset()*1e3+r);a.setFullYear(a.getFullYear()+10),new Date(this.excelEndDate)>a&&(this.excelEndDate=this.dateToStr(a)),e=this.dateToStr(i),this.exportStartDate=i}this.selectBeginDate(e)}},graphEndDate:{get:function(){return this.indexesTimeZoneConvert(this.excelEndDate)},set:function(e){if(this.graphRenderErrorMsg="",e){var t=new Date(e),n=new Date,r=60*(60*n.getHours()+n.getMinutes())*1e3,a=new Date(t.getTime()+60*t.getTimezoneOffset()*1e3+r),i=new Date(t.getTime()+60*t.getTimezoneOffset()*1e3+r);i.setFullYear(i.getFullYear()-10),new Date(this.excelStartDate)0}},created:function(){var e=this;return M(N().mark((function t(){var n,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setLabels();case 2:return t.next=4,e.setLabelsAlias(e.aliasesForLabels);case 4:for(n in e.labelsLoaded=!0,e.list_save=[{class:"jpeg_file",ttl:"Картинкой jpeg",url:"",type:"jpeg"},{class:"excel_file",ttl:e.labels.toExcel,url:"",type:"excel"},{class:"pdf_file",ttl:"В pdf",url:"",type:"pdf"}],e.tabs_graph_view=[{id:0,ttl:'',class:"active"},{id:2,ttl:' ',class:""},{id:1,ttl:e.labels.mpq_archive?e.labels.mpq_archive:"Archive",class:""}],e.isRealtime||(e.graphEndDate=e.lastValueDate),e.$eventHub.on("autoCmplSelect",e.compare),e.$eventHub.on("selectTab",e.selectTab),e.$clearArbitraryPeriod.on("clearArbitraryPeriod",e.clearArbitraryPeriod),e.$eventHub.on("changeGraphPeriod",(function(t){if("graphContainer"===t.graphId){e.graphStartDate=e.excelStartDate=t.startDate,e.graphEndDate=e.excelEndDate=t.endDate,e.period=null;var n={periodId:null,endDate:e.dateToStr(e.timeZoneConvert(e.excelEndDate)),beginDate:e.dateToStr(e.timeZoneConvert(e.excelStartDate))};e.compareData.length&&(n.compareIndexes=e.compareData.map((function(e){return e.index_id}))),e.loadAllGraphIndexes(n,!0),e.$clearAllTabs.emit("clearAllTabs","chartPeriod")}})),e.$eventHub.on("removeCompareIndex",(function(t){e.removeCompareIndex(t.id,!0)})),addMonth&&e.tabs_graph.push({id:4,ttl:"3"+(e.labels.m?e.labels.m:"M"),class:""}),e.tabs_graph.push({id:0,ttl:"1"+(e.labels.y?e.labels.y:"Y"),class:"active"}),e.tabs_graph.push({id:1,ttl:"5"+(e.labels.year_short?e.labels.year_short:"Y"),class:""}),e.tabs_graph.push({id:2,ttl:"10"+(e.labels.year_short?e.labels.year_short:"Y"),class:""}),e.tabs_graph)e.activeTabId==e.tabs_graph[n].id?e.tabs_graph[n].class="active":e.tabs_graph[n].class="";e.isRealtime&&(e.activeTabId=99,e.period=99,e.tabs_graph.forEach((function(e){e.class=""})),e.tabs_graph.unshift({id:99,ttl:e.getLabel("today"),class:"active"})),void 0!==e.indexInfo.uncheckTabs&&e.tabs_graph.forEach((function(e){e.class=""})),e.setChartPeriods(e.graphEndDate),e.exportStartDate=e.graphStartDate,e.exportEndDate=e.graphEndDate,e.graphDataLength>0&&e.$nextTick((function(){e.drawGraph()})),r=(new Date).getFullYear(),e.loadAvailabledDatePickerDates(r),chartExportErrorNum&&e.showChartExportError(chartExportErrorNum),window.addEventListener("resize",e.resize),e.resize(),e.getQuotesMarket(),e.getHoldingsDates(),e.getStockIndexesHoldingsDates(),e.$nextTick((function(){e.$resizeTable.emit("refreshTable")})),e.$eventHub.on("setPage",(function(t){e.indexHoldingsPage=t}));case 34:case"end":return t.stop()}}),t)})))()},methods:{switchTrIndexHoldings:function(e){this.indexHoldingsShowPagination=e},getQuotesMarket:function(){var e=this;i().get("/api/indexes/get-quotes-market/",{params:{indexId:indexId,measure:measure,precision:indPrecision}}).then((function(t){var n=t.data;e.quotes_market=n}))},getHoldingsDates:function(){var e=this;i().get("/api/indexes/get-index-calculation/",{params:{indexId:indexId}}).then((function(t){var n=t.data,r=e.holdingsDates=n.holdingDates;if(e.listOfSecurities=n.listOfSecurities,r[0]&&r[0].text)if(/^\d{4}-\d{2}-\d{2}/.test(r[0].text)){var a=r[0].text.split("-");e.indexCalculationDate=new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]))}else{a=r[0].text.replace(/\//g,".").split(".");e.indexCalculationDate=new Date(parseInt(a[2]),parseInt(a[1])-1,parseInt(a[0]))}else e.indexCalculationDate=new Date;var i=[],o=[],s=r.length-1;r.forEach((function(e){if(/^\d{4}-\d{2}-\d{2}/.test(e.text)){var t=e.text.split("-");i.push(new Date(parseInt(t[0]),parseInt(t[1])-1,parseInt(t[2])))}else{t=e.text.replace(/\//g,".").split(".");i.push(new Date(parseInt(t[2]),parseInt(t[1])-1,parseInt(t[0])))}}));for(var l=s;l>0;--l)if(/^\d{4}-\d{2}-\d{2}/.test(r[l].text)){var c=r[l].text.split("-"),d=r[l-1].text.split("-");o.push({from:new Date(parseInt(c[0]),parseInt(c[1])-1,parseInt(c[2])),to:new Date(parseInt(d[0]),parseInt(d[1])-1,parseInt(d[2]))})}else{var u=r[l].text.replace(/\//g,".").split("."),h=r[l-1].text.replace(/\//g,".").split(".");o.push({from:new Date(parseInt(u[2]),parseInt(u[1])-1,parseInt(u[0])),to:new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]))})}a&&(r[0]&&r[0].text&&/^\d{4}-\d{2}-\d{2}/.test(r[0].text)?o.push({from:new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2])),to:new Date(9999,11,1)}):o.push({from:new Date(parseInt(a[2]),parseInt(a[1])-1,parseInt(a[0])),to:new Date(9999,11,1)})),e.highlighted.dates=i,e.disabledDates.ranges=o,e.eloquentDate("holdingsDates","indexCalculationDate","eloquentDateFlag"),e.generateTable(e.listOfSecurities,"index_calc")}))},getStockIndexesHoldingsDates:function(){var e=this;i().get("/api/indexes/get-stock-index-holdings-calculation/",{params:{indexId:indexId}}).then((function(t){var n=t.data,r=e.stockIndexHoldingsDates=n.holdingDates;if(e.stockIndexHoldings=n.stockIndexHoldings.stocks,e.stockIndexHoldingsLargeResult=n.stockIndexHoldings.largeResult,r[0]&&r[0]["date.numeric"])var a=e.indexHoldingCalculationDate=new Date(1e3*r[0]["date.numeric"]);else e.indexHoldingCalculationDate=new Date;var i=[],o=[],s=r.length-1;r.forEach((function(e){i.push(new Date(1e3*e["date.numeric"]))}));for(var l=s;l>0;--l)o.push({from:new Date(1e3*r[l]["date.numeric"]),to:new Date(1e3*r[l-1]["date.numeric"])}),l==s&&o.push({from:new Date("1970-01-01"),to:new Date(1e3*r[l]["date.numeric"])});a&&o.push({from:a,to:new Date(9999,11,1)}),e.stockIndexHoldingsHighlighted.dates=i,e.stockIndexHoldingsDisabledDates.ranges=o,e.eloquentDate("stockIndexHoldingsDates","indexHoldingCalculationDate","eloquentDateIndexHoldingFlag"),e.generateTable(e.stockIndexHoldings,"index_holding_calc")}))},resize:function(){window.innerWidth<=680?this.mobile=!0:this.mobile=!1},eloquentDate:function(e,t,n){if(void 0!==this[e][0]&&void 0!==this[e][0].text){var r,a,i=null;if(["eng","ita","deu","esp"].includes(lang))i="/";else{if(!["rus","ukr"].includes(lang))return void(this[n]=(0,y.Z)(new Date(this[t]),"ddMMyyyy")===(0,y.Z)(new Date(this[e][0].text),"ddMMyyyy"));i="."}var o=("0"+(r=this[e][0].text.split(i))[1]).slice(-2),s=("0"+r[0]).slice(-2);a="".concat(r[2],"-").concat(o,"-").concat(s),this[n]=(0,y.Z)(new Date(this[t]),"ddMMyyyy")===(0,y.Z)(new Date(a),"ddMMyyyy")}},exportListOfSecuritiesToExcel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"exportListOfSecuritiesToExcelMsg";if(!this.userAuth)return this[t]=this.labels.request_auth_error_msg;if(1077!==this.userLevel)return this[t]=this.labels.need_get_access+' '+this.labels.access+" ";var n=this.indexLink+e+"/";window.location.href=n},loadLastValueDate:function(e){var t=this;e&&i().get("/api/indexes/".concat(indexId,"/").concat(e,"/getValue/")).then((function(n){if(n.data.CbondsIndexValue&&"***"!==n.data.CbondsIndexValue){var r=new Intl.NumberFormat(locale,{maximumFractionDigits:t.indPrecision});t.lastValue=r.format(n.data["CbondsIndexValue.numeric"]),t.formatDateDef=formatDateDef;var a=(0,y.Z)(new Date(1e3*n.data["datetime.numeric"]),"HH:mm");e===(0,y.Z)(new Date,"yyyy-MM-dd")&&"00:00"!==a?(t.datePickerTime=a,t.showTime=!0):(t.datePickerTime="",t.showTime=!1)}})).catch((function(e){console.log(e)}))},getIndexPageLink:function(e){return this.indexesPageUrl.replace("%temp%",e)},calendarChange:function(e,t){var n=new Date(e).getFullYear();n&&Number.isInteger(n)&&!this.valuesYears.includes(n)&&this.loadAvailabledDatePickerDates(n)},loadAvailabledDatePickerDates:function(e){var t=this;this.valuesYearsInProcess.push(e),i().get("/api/indexes/".concat(this.indexId,"/").concat(e,"/getNotEmptyValuesOnYear/")).then((function(n){var r=n.data;if(r.dates.length){var a;(a=t.valuesDates).push.apply(a,L(r.dates)),t.valuesYears.push(e);var i=r.datesFmt[r.datesFmt.length-1];t.loadLastValueDate(i)}}))},disableValuesDays:function(e){var t=this,n=new Date(e),r=n.getTime()/1e3;if(180!=n.getTimezoneOffset()||240!=n.getTimezoneOffset()){var a=180;n2)return this.selectedGraphType=2,void(this.compareAlert=this.labels.compare_max_measures_alert);this.compareGraphType=this.selectedGraphType,this.renderGraphic(this.graphData,this.graphType,this.selectedGraphType)},inCompare:function(e){return this.compareData.some((function(t){return t.index_id===e}))},removeCompareIndex:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.compareAlert&&(this.compareAlert=""),this.indexId!==e&&this.inCompare(e)){var n=this.compareData.findIndex((function(t){return t.index_id===e}));n>-1&&(this.compareData.splice(n,1),this.clearLineColor(e),this.renderGraphic(this.graphData,this.graphType,this.selectedGraphType,t),this.setAllCompareMeasures())}},setAllCompareMeasures:function(){var e=[];e.push(this.measureId);var t,n=F(this.compareData);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.includes(r.measure_id)||e.push(r.measure_id)}}catch(e){n.e(e)}finally{n.f()}this.compareMeasures=e},showChartExportError:function(e){this.selectTab({name:"switchTable",value:1}),this.tabs_graph_view[0].class="",this.tabs_graph_view[1].class="active",500100===e&&(this.chartExportErrorText=this.labels.lbl_max_records);var t=window.location.href.replace(window.location.search,"").replace(window.location.origin,"");window.history.replaceState({},document.title,t)},chartExportToExcel:function(e){var t=this;if(this.inBlackList)this.exportInBlackList=!0;else if(e&&e.preventDefault(),this.userAuth)if(1077!==this.userLevel)this.getaccess=!0;else if(this.excelExportAccess){if(this.exportTotal=0,this.exportErrorMsg="",this.beginDateExport===this.endDateExport&&(0,y.Z)(new Date(this.beginDateExport),"yyyy/MM/dd")===(0,y.Z)(new Date,"yyyy/MM/dd")?this.period=99:this.period=0,0==this.tableGraphData.length)return;var n={indexId:this.indexId,beginDate:this.beginDateExport,endDate:this.endDateExport,exportChart:"xls",onlyTotal:!0,isRealtime:99==this.period?1:0};i().post("/exportToExcel/indexChart/",n).then((function(e){e.data?(t.exportTotal=e.data.total,t.exportTotal<2500?document.getElementById("excel_export_send").click():t.exportErrorMsg=t.getLabel("many_points")):document.getElementById("excel_export_send").click()}))}else this.exportErrorMsg=this.getLabel("access_denied_auth");else this.notauth=!0},getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t},generateTable:function(e,t){var n=[];void 0!==e[0]&&(n=Object.keys(e[0]));var r,a=[],i=F(e);try{for(i.s();!(r=i.n()).done;){var o,s=r.value,l={},c=F(n);try{for(c.s();!(o=c.n()).done;){var d=o.value;l[d]=s[d]}}catch(e){c.e(e)}finally{c.f()}Object.keys(l).length&&a.push(l)}}catch(e){i.e(e)}finally{i.f()}if(a.length){if(this.mobile){var u=[],h=!1;n.forEach((function(e){"isin"!=e?u.push(e):h=!0})),h&&u.push("isin"),this[t].fields=u}else this[t].fields=n;this[t].data=a}this.$resizeTable.emit("refreshTable")},disableDaysIndexHoldings:function(e){return this.disableDays(e,"stockIndexHoldingsDisabledDates")},disableDays:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"disabledDates",n=!1,r=new Date,a=60*(60*r.getHours()+r.getMinutes())*1e3,i=new Date(e);return i=new Date(i.getTime()+60*i.getTimezoneOffset()*1e3+a).valueOf(),this[t].ranges.forEach((function(e){var t=new Date(e.from),r=new Date(t.getTime()+60*t.getTimezoneOffset()*1e3+a).valueOf(),o=new Date(e.to),s=new Date(o.getTime()+60*o.getTimezoneOffset()*1e3+a).valueOf();i>r&&i=9)){n.next=11;break}return t.compareAlert=t.labels.compare_max_count_alert,n.abrupt("return");case 11:if(!(Object.keys(a).length>0)){n.next=22;break}if(a.name=e.name,t.$eventHub.emit("clearAll"),2===t.compareGraphType||2!==t.compareMeasures.length||t.compareMeasures.includes(a.measure_id)){n.next=17;break}return t.compareAlert=t.labels.compare_max_measures_alert,n.abrupt("return");case 17:1===a.graph_type&&(a.graph_data=t.fillCompareGraphDataByDates(a.graph_data,a.previous_point,a.next_point)),t.compareData.push(a),t.getCompareLineColor(e.id),t.renderGraphic(t.graphData,t.graphType,t.selectedGraphType),t.setAllCompareMeasures();case 22:case"end":return n.stop()}}),n)})))()},drawGraph:function(){var e={periodId:this.period,endDate:this.dateToStr(this.timeZoneConvert(this.excelEndDate)),beginDate:this.dateToStr(this.timeZoneConvert(this.excelStartDate))};if(this.compareData.length&&(e.compareIndexes=this.compareData.map((function(e){return e.index_id}))),!this.isBeginDateMoreThanEndDate(e)){this.chartLoading=!0;var t=this;i().post("/api/indexes/".concat(this.indexId,"/getGraphicData/"),e).then((function(e){for(var n in t.graphData=e.data.data?e.data.data:{},1*e.data.graph_type==1&&(t.graphData=t.fillCompareGraphDataByDates(t.graphData,e.data.previous_point,e.data.next_point)),t.tableGraphData=e.data.table_graph_data?e.data.table_graph_data:[],t.compareData=e.data.compare_data?e.data.compare_data:[],t.compareData)1===t.compareData[n].graph_type&&(t.compareData[n].graph_data=t.fillCompareGraphDataByDates(t.compareData[n].graph_data,t.compareData[n].previous_point,t.compareData[n].next_point));t.renderGraphic(t.graphData,t.graphType,t.selectedGraphType),t.chartLoading=!1}))}},selectTab:function(e){var t=e.name,n=e.value;if(n=parseInt(n),"switchTable"===t&&(this.viewTable=1==n,!this.viewTable)){if(this.showHistogram=2==n,null===this.period)return void this.drawGraph();n=this.period}if(!this.viewTable){this.excelEndDate=new Date(this.lastValueDate);var r=this.indexesTimeZoneConvert(this.excelEndDate);switch(n){case 0:this.excelStartDate=new Date(r.setFullYear(r.getFullYear()-1));break;case 1:this.excelStartDate=new Date(r.setFullYear(r.getFullYear()-5));break;case 2:this.excelStartDate=new Date(r.setFullYear(r.getFullYear()-10));break;case 4:this.excelStartDate=new Date(r.setMonth(r.getMonth()-3));break;case 99:this.excelStartDate=new Date(this.indexesTimeZoneConvert(new Date))}this.period=n,this.exportStartDate=this.excelStartDate,this.exportEndDate=this.excelEndDate;var a={periodId:n,endDate:99!=n?this.dateToStr(this.timeZoneConvert(this.excelEndDate)):null,beginDate:99!=n?this.dateToStr(this.timeZoneConvert(this.excelStartDate)):null};this.compareData.length&&(a.compareIndexes=this.compareData.map((function(e){return e.index_id}))),this.loadAllGraphIndexes(a,!0)}},loadAllGraphIndexes:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBeginDateMoreThanEndDate(e)||(this.chartLoading=!0,i().post("/api/indexes/".concat(this.indexId,"/getGraphicData/"),e).then((function(e){for(var r in t.graphData=e.data.data?e.data.data:{},1*e.data.graph_type==1&&(t.graphData=t.fillCompareGraphDataByDates(t.graphData,e.data.previous_point,e.data.next_point)),t.tableGraphData=e.data.table_graph_data?e.data.table_graph_data:[],t.compareData=e.data.compare_data?e.data.compare_data:[],t.compareData)1===t.compareData[r].graph_type&&(t.compareData[r].graph_data=t.fillCompareGraphDataByDates(t.compareData[r].graph_data,t.compareData[r].previous_point,t.compareData[r].next_point));t.compareAlert="",t.renderGraphic(t.graphData,t.graphType,t.selectedGraphType,!1,n),t.chartLoading=!1})))},showMessageAuth:function(){this.userAuth?1077!=this.userLevel?this.getaccess=!0:this.show_calc=!this.show_calc:this.notauth=!0},selectedIndexCalculationDate:function(){var e=this;i().post("/api/getIndexHoldings/",{indexId:this.indexId,value:this.indexCalculationDate}).then((function(t){t.data.result||(e.index_calc.data=[],e.index_calc.fields=[]),e.generateTable(t.data.data,"index_calc")}))},selectedIndexHoldingCalculationDate:function(){var e=this;i().post("/api/indexes/get-stock-index-holdings/",{indexId:this.indexId,value:this.indexHoldingCalculationDate,notLastDate:this.stockIndexHoldingsNotLastDate}).then((function(t){t.data.result||(e.index_holding_calc.data=[],e.index_holding_calc.fields=[]),e.widthIsOpenInExport=t.data.data.widthIsOpenInExport,e.generateTable(t.data.data.stocks,"index_holding_calc")}))},exportStart:function(e){if(this.userAuth)if(1077!=this.userLevel)this.getaccess_2=!0;else{var t=new Date(this.$root.excelStartDate),n=new Date(this.$root.excelEndDate),r={beginDate:t=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2),endDate:n=n.getFullYear()+"-"+("0"+(n.getMonth()+1)).slice(-2)+"-"+("0"+n.getDate()).slice(-2),indexName:this.$root.indexName,indexId:this.$root.indexId};i()({method:"post",url:"/exportToExcel/indexes/",responseType:"blob",data:r}).then((function(e){if(e.data.size&&(!e.data.size||"text/html"!=e.data.type)){var t=new Blob([e.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=window.URL.createObjectURL(t),a=document.createElement("a");a.href=n,a.setAttribute("download",r.indexName+"_"+r.beginDate+"_"+r.endDate),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)}}))}else this.notauth_2=!0},cancelCompareIndex:function(){var e=this;this.index_comparison=!1,this.compareData.forEach((function(t){e.removeCompareIndex(t.index_id,!0)}))},compare:function(e){this.compareAlert="",this.compareMeasureAlert=!1,this.compareFlag=!0,this.compareId=e.id,this.drawCompareGraph(e)},indexComparisonClick:function(e){this.userAuth&&1077==this.userLevel?this.index_comparison=!this.index_comparison:(this.userLevel>0?this.getaccess=!0:this.notauth=!0,this.setShowItem("indexComparisonWarn"))},renderGraphic:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this,s=[],l=JSON.parse(JSON.stringify(this.compareData)),c=l.length,d=this.indexName,u=!1;if(n>0&&(u=!0),this.minDateFromMinDates=null,this.minDates=[],2===r&&c>0){var h=null;Object.keys(e).length>0&&e.forEach((function(e){(null===h||h>e["date.numeric"])&&(h=e["date.numeric"])})),null!==h&&this.minDates.push(h);var p=function(){if(l[m].graph_data){var e=null;l[m].graph_data.forEach((function(t){(null===e||e>t["date.numeric"])&&(e=t["date.numeric"])})),null!==e&&t.minDates.push(e)}};for(var m in l)p();var f=this.changeSeriesDataByMinFromDate(e,l);if(e=f.data,c=(l=f.compareData).length,0===Object.keys(e).length)for(var g in l)delete l[g].graph_data}c>0&&(c=(l=this.removeEmptySeriesFromComparison(l,i)).length),d.length||(d=this.labels.index_value);var v="";2===r&&c>0?v=this.getLabel("change_perc"):this.measure.length>0&&("%"===this.measure&&(v=this.getLabel("change_perc")),v+=v?", ".concat(this.measure):this.measure);var y=!1,b=0;for(var w in e){var x=1e3*parseInt(e[w]["date.numeric"]),E=parseFloat(e[w].value),D={x:x,y:E,xTitle:e[w].date};s.push(D),y=E,b=x}var S=this.excelEndDate?1e3*(0,k.Z)(new Date(this.excelEndDate)):1e3*(0,k.Z)((0,_.Z)(new Date));u&&!1!==y&&(S-b)/1e3/60/60>=24&&s.push({x:S,y:y});var B=Object.keys(e).length,C=1===B;for(var T in l)l[T].graph_data&&(B+=l[T].graph_data.length);var L=[],N="";1077==userAccessLevel||1032===this.providerId&&[1,2,3].includes(this.categoryId)?(L=[{title:{text:this.indexName,style:{color:"#000000",fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:-5},labels:{format:"{value}",formatter:function(){return o.mobile?P(this.value):2===r&&!1===a?P(this.value)+"%":P(this.value)},style:{color:"#000000",fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},opposite:!1,x:this.isMobile?20:-8},lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF"}],N=' {series.name}: {point.y}

',this.compareFlag&&2==this.compareGraphType&&!1===a&&(N=' {series.name}: {point.yValue} ({point.change}%)

')):(L=[{title:{text:"",style:{fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:-5},labels:{format:"",style:{fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:this.isMobile?20:-8},opposite:!1,visible:!1,lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF"}],N=' {series.name}

');var V=[];s.length>0&&V.push({yAxis:0,name:d,type:this.showHistogram?"column":"line",step:u,data:this.compareFlag&&2==this.compareGraphType?this.calcChangePriceForGraphInNormalizedValues(s):s,tooltip:{valueSuffix:" "+this.measure},color:"#3DB378",marker:{lineWidth:0,enabled:C,radius:C?8:2},entity:{id:this.indexId,tgId:this.indexId,model:"index",name:d,tgName:""}});var M={scrollbar:{enabled:!1},chart:{type:o.showHistogram?"column":"line",spacingTop:12,spacingBottom:8,zoomType:"x",height:640,events:{load:function(){if(!B){var e=o.getLabel("no_graph_data");o.excelStartDate>o.excelEndDate&&(e=o.getLabel("graph_period_start_incorrect")),this.renderer.text(e,400,140).css({fontSize:"18px"}).add()}o.$eventHub.emit("isLoadGraph")}}},title:{text:""},subtitle:{text:""},navigator:{enabled:!this.mobile,height:30,maskFill:"rgba(102,133,194,0.1)"},navigation:{buttonOptions:{height:38,width:38,symbolSize:18,symbolX:20,symbolY:20,x:-46,y:-12,symbolStrokeWidth:2,theme:{"stroke-width":1,stroke:"#e8e8e8",r:0,states:{hover:{stroke:"#9ba0b2"},select:{fill:"#d1e9e8"}}}}},time:{useUTC:!1},xAxis:[{labels:{xDateFormat:"%d.%m.%Y",style:{color:"#000000",fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"}},lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF",crosshair:{color:"#000000"}}],rangeSelector:{enabled:!1},credits:{enabled:!1},yAxis:L,tooltip:{split:!1,shared:!0,xDateFormat:"%A, %d %b %Y",headerFormat:this.isMobile?'%replace%
':'%replace%

',crosshairs:!0,borderColor:"none",borderRadius:8,shadow:!1,backgroundColor:"#000000",pointFormat:N,formatter:function(e){var t="";void 0!==this.points[0].point.xTitle?t=this.points[0].point.xTitle:(t=(t=o.timeZoneConvert(new Date(this.x))).toLocaleString(locale,{year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"2-digit",minute:"2-digit"}),99!=o.period&&(t=t.replace(/00:00$/,"").replace(/03:00$/,"").replace(/12:00\sAM$/,"").replace(/,\s*$/,"")));var n=e.defaultFormatter.call(this,e);return n[0]&&(n[0]=n[0].replace("%replace%",t)),n},style:{color:"#FFFFFF",fontFamily:"'Roboto', sans-serif"}},legend:{symbolRadius:6,enabled:!1,align:"center",padding:12,symbolPadding:4,layout:"horizontal",borderColor:"transparent",itemStyle:{color:"#000000","font-weight":"500","font-family":"'Roboto', sans-serif"}},plotOptions:{series:{showInNavigator:!0,marker:{lineWidth:0},dataGrouping:{enabled:!1},turboThreshold:0},column:{groupPadding:0,pointPadding:0,borderWidth:1}},exporting:{chartOptions:{navigator:{enabled:!1},navigation:{buttonOptions:{height:38,width:38,symbolSize:18,symbolX:20,symbolY:20,x:0,y:-10,symbolStrokeWidth:2,theme:{"stroke-width":1,stroke:"#e8e8e8",r:0,states:{hover:{stroke:"#9ba0b2"},select:{fill:"#d1e9e8"}}}}}},enabled:!0,sourceWidth:document.querySelector("#graphContainer").clientWidth,sourceHeight:850,buttons:{contextButton:{menuItems:["printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}}},series:V};if(c){var I=[];I.push(this.measureId);var A=[];A[this.measureId]=0;var H,O=F(l);try{for(O.s();!(H=O.n()).done;){var $=H.value;if($&&$.graph_data&&Object.keys($.graph_data).length){var j=$.name,z=$.name;c>=2&&(z="");var G=$.measure?$.measure:"";G&&(z+=z?", ".concat(G):G);var R=!1;$.graph_type&&(R=!0);var Z=!1,Y=[];for(var W in $.graph_data){var q=1e3*parseInt($.graph_data[W]["date.numeric"]),U=parseFloat($.graph_data[W].value),J={x:q,y:U,xTitle:$.graph_data[W].date};Y.push(J),b=q,Z=U}R&&!1!==Z&&Y.push({x:S,y:Z}),2!==this.compareGraphType&&I.length<2&&$.measure_id!==this.measureId&&(I.push($.measure_id),A[$.measure_id]=1,L.push({title:{text:this.mobile?null:z,style:{fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:-5},labels:{format:"{value}",formatter:function(){return P(this.value)},style:{fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:this.isMobile?-8:5},opposite:!0,lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF"}));var K=1===Object.keys($.graph_data).length;M.series.push({yAxis:A[$.measure_id],name:j,type:this.showHistogram?"column":"line",step:R,data:this.compareFlag&&2==this.compareGraphType?this.calcChangePriceForGraphInNormalizedValues(Y):Y,tooltip:{valueSuffix:" "+G},color:this.getCompareLineColor($.index_id),marker:{lineWidth:0,enabled:K,radius:K?8:2},entity:{id:$.index_id,tgId:$.index_id,model:"index",name:j,tgName:"",emitForRemove:"removeCompareIndex"}})}}}catch(e){O.e(e)}finally{O.f()}2!==this.compareGraphType?1===I.length&&c>=1&&(L[0].title.text=this.mobile?null:this.measure):L[0].title.text=this.mobile?null:this.labels.change_perc}M.yAxis[0].opposite=!1,this.chartData=M,this.chartGraphType="stockChart"},clearLineColor:function(e){var t=this.compareColors.findIndex((function(t){return t.index_id===e}));t>-1&&this.compareColors.splice(t,1)},getCompareLineColor:function(e){var t=this.compareColors.find((function(t){return t.index_id===e}));if(t)return t.color;var n=this.freeCompareLineColor;return n&&this.compareColors.push({index_id:e,color:n}),n},indexesTimeZoneConvert:function(e){var t=new Date(e);return this.timeZoneConvert(t)},dateToStr:function(e){var t=new Date(e);return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)},addIndexToWL:function(){var e=this;this.isWL||i().post("/cb/watchlist/indexes_append/global/json/".concat(this.indexId,"/")).then((function(t){e.isWL=1,e.$eventHub.emit("message",{message:e.getLabel("success_add_to_wl")})}))},excelExportDatePick:function(){this.indexAccessOpen||(this.notauth=!0)},holdingsDatePick:function(){this.indexAccessOpen||(this.holdingsnotauth=!0)},indexHoldingsDatePick:function(){this.indexAccessOpen?1077!==this.userLevel&&(this.exportListOfIndexHoldingsToExcelMsg=this.getLabel("need_get_access")+' '+this.getLabel("access")+""):this.exportListOfIndexHoldingsToExcelMsg=this.getLabel("need_auth")},fillCompareGraphDataByDates:function(e,t,n){if(e.length>0){var r=(0,k.Z)((0,_.Z)(new Date(this.excelStartDate)));r!==e[0]["date.numeric"]&&null!==t&&e.unshift({"date.numeric":r,value:t["value.numeric"],"value.numeric":t["value.numeric"]});var a=(0,k.Z)((0,_.Z)(new Date(this.excelEndDate)));a!==e[e.length-1]["date.numeric"]&&null!==n&&e.push({"date.numeric":a,value:e[e.length-1]["value.numeric"],"value.numeric":e[e.length-1]["value.numeric"]})}return e},isBeginDateMoreThanEndDate:function(e){return(0,k.Z)(new Date(e.beginDate))>(0,k.Z)(new Date(e.endDate))&&(this.graphData={},this.tableGraphData=[],this.compareData=[],this.renderGraphic(this.graphData,this.graphType,this.selectedGraphType),!0)},changeSeriesDataByMinFromDate:function(e,t){var n=this;if(this.minDateFromMinDates=this.getMinDateFromMinDates(),this.minDates=[],null!==this.minDateFromMinDates){if(Object.keys(e).length>0){e=e.filter((function(e){return e["date.numeric"]>=n.minDateFromMinDates}));var r=null;e.forEach((function(e){(null===r||r>e["date.numeric"])&&(r=e["date.numeric"])})),null!==r&&this.minDates.push(r)}var a=function(){if(t[i].graph_data){t[i].graph_data=t[i].graph_data.filter((function(e){return e["date.numeric"]>=n.minDateFromMinDates}));var e=null;t[i].graph_data.forEach((function(t){(null===e||e>t["date.numeric"])&&(e=t["date.numeric"])})),null!==e&&n.minDates.push(e)}};for(var i in t)a();var o=this.getMinDateFromMinDates();if(this.minDateFromMinDates!==o){var s=this.changeSeriesDataByMinFromDate(e,t);e=s.data,t=s.compareData}}return{data:e,compareData:t}},getMinDateFromMinDates:function(){var e,t=null,n=F(this.minDates);try{for(n.s();!(e=n.n()).done;){var r=e.value;(null===t||t1&&void 0!==arguments[1]&&arguments[1];for(var n in e)if(void 0!==e[n].graph_data&&0===e[n].graph_data.length){var r=e[n].name;this.removeCompareIndex(e[n].index_id),t||(this.$eventHub.emit("fillSearchString",{searchString:r}),this.compareAlert=this.getLabel("null_compare_data"))}return e.filter((function(e){return void 0!==e.graph_data&&e.graph_data.length>0}))},changeExportStartDate:function(e){this.selectBeginDate(e)},changeExportEndDate:function(e){this.selectEndDate(e)},calcChangePriceForGraphInNormalizedValues:function(e){var t=[];return e.forEach((function(n,r){var a=0;r>0&&(0===e[0].y?n.y>0?a=100:n.y<0&&(a=-100):a=(n.y-e[0].y)/e[0].y*100),a=Math.round(100*(a+Number.EPSILON))/100;var i=JSON.parse(JSON.stringify(n));i.change=a,i.y=a,i.yValue=n.y,t.push(i)})),t},setChartPeriods:function(e){var t={};t[99]=e,t[4]=(0,y.Z)((0,w.Z)(new Date(e),3),"yyyy-MM-dd"),t[0]=(0,y.Z)((0,w.Z)(new Date(e),12),"yyyy-MM-dd"),t[1]=(0,y.Z)((0,w.Z)(new Date(e),60),"yyyy-MM-dd"),t[2]=(0,y.Z)((0,w.Z)(new Date(e),120),"yyyy-MM-dd"),this.tabs_graph.forEach((function(n){n.start_date=t[n.id]?t[n.id]:t[0],n.end_date=(0,y.Z)(new Date(e),"yyyy-MM-dd")}))}},setup:function(){return{cookies:(0,C.fP)().cookies}}});function P(e){for(var t=(e+"").split("."),n=t[0],r=n.length,a="",i=r-1;i>=0;)a=n.charAt(i)+a,(r-i)%3==0&&i>0&&(a=" "+a),--i;return t.length>1&&(a+="."+t[1]),a}H.config.compilerOptions.whitespace="preserve",H.config.globalProperties.$clearAllFilter=S.Z,H.config.globalProperties.$clearAllTabs=S.Z,H.config.globalProperties.$clearArbitraryPeriod=S.Z,H.config.globalProperties.$clearCurrentFilter=S.Z,H.config.globalProperties.$clearCurrentFilterRange=S.Z,H.config.globalProperties.$eventHub=S.Z,H.config.globalProperties.$getActiveFilters=S.Z,H.config.globalProperties.$openActiveFilter=S.Z,H.config.globalProperties.$openDialogWindow=S.Z,H.config.globalProperties.$resizeTable=S.Z,H.config.globalProperties.$sendDeleteToServer=S.Z,H.config.globalProperties.$switchCoincidence=S.Z,H.config.globalProperties.$switchMenu=S.Z,H.directive("click-outside",B.Z),H.use(g),H.mount("#app")},62602:function(e,t,n){n.d(t,{f:function(){return r}});var r={data:function(){return{userAuth:userAuth,userLevel:userAccessLevel,notauth:!0}},mounted:function(){},computed:{getAccess:function(){return this.isAuthorized&&this.paidAccess},isAuthorized:function(){return!!this.userAuth||(this.notauth=!0,!1)},paidAccess:function(){return!this.userAuth||1077==this.userLevel||(this.getaccess=!0,!1)}}}},42038:function(e,t,n){n.d(t,{Z:function(){return oe}});n(41539),n(54747),n(57327),n(66992),n(78783),n(33948),n(41637),n(74916),n(64765),n(29254),n(26699),n(32023),n(40561),n(39714),n(82526),n(41817),n(32165),n(47042),n(68309),n(91038),n(88674),n(72443),n(39341),n(73706),n(10408),n(30489);var r=n(9669),a=n.n(r),i=n(70821),o={class:"cookie_panel_wrapper"},s=["innerHTML"],l=(0,i.createElementVNode)("div",{class:"classifier_list"},null,-1);var c={name:"AppCookie",data:function(){return{cookie:!0,catfish:!1,message:cookie_message||"Этот веб-сайт использует файлы cookie для обеспечения удобного и персонализированного просмотра. Файлы cookie хранят полезную информацию на вашем компьютере для того, чтобы мы могли улучшить оперативность и точность нашего сайта для вашей работы. В некоторых случаях файлы cookie необходимы для обеспечения корректной работы сайта. Заходя на данный сайт, вы соглашаетесь на использование файлов cookie."}},mounted:function(){var e=this;this.$nextTick((function(){setTimeout((function(){e.catfish=e.$store.state.catfish}),3e3)}))},created:function(){void 0!==localStorage.cookieinfo&&"ok"==localStorage.cookieinfo?this.cookie=!1:this.cookie=!0},methods:{setCookieInfo:function(){this.cookie=!1,localStorage.cookieinfo="ok"}}},d=n(83744);const u=(0,d.Z)(c,[["render",function(e,t,n,r,a,c){return e.cookie?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,class:(0,i.normalizeClass)(["cookie_panel",{catfishBottom:e.catfish}])},[(0,i.createElementVNode)("div",o,[(0,i.createElementVNode)("span",{innerHTML:e.message},null,8,s),l,(0,i.createElementVNode)("a",{href:"javascript:void(0);",class:"cookie_panel_success",onClick:t[0]||(t[0]=function(){return c.setCookieInfo&&c.setCookieInfo.apply(c,arguments)})},"Ок")])],2)):(0,i.createCommentVNode)("",!0)}]]);var h=u,p={id:"bottomPanelCatfish",class:"bottomPanel"},m={class:"wrapper"},f=["id"],g=["id"];var v=n(22665),y={name:"AppCatfish",props:{catfish_screen_id:"",catfish_mobile_id:"",lang:"",test:""},data:function(){return{screen:!1,mobile:!1}},created:function(){},mounted:function(){var e=this;switch(window.addEventListener("resize",e.refreshBanner),e.refreshBanner(),e.lang){case"rus":"undefined"!=typeof adriver?(new adriver("adriver_banner_64373654",{sid:221291,bt:52,bn:2}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"})),new adriver("adriver_banner_131609457",{sid:221339,bt:52,bn:2}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"}))):document.getElementById("bottomPanelCatfish").style.display="none";break;case"eng":"undefined"!=typeof adriver?(new adriver("adriver_banner_511478644",{sid:221339,bt:52,bn:4}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"})),new adriver("adriver_banner_1366224987",{sid:221291,bt:52,bn:5}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"}))):document.getElementById("bottomPanelCatfish").style.display="none";break;case"pol":case"deu":case"esp":case"chn":case"ukr":default:break;case"ita":"undefined"!=typeof adriver?(new adriver("adriver_banner_1981288673",{sid:221291,bt:52,bn:11}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"})),new adriver("adriver_banner_1267234681",{sid:221339,bt:52,bn:8}).onLoadComplete((function(){this.reply.adid?document.cookie.indexOf("cookiecatfish")>-1?document.getElementById("bottomPanelCatfish").style.display="none":(document.getElementById("catfishBottomFooter").style.marginBottom="80px",null!=document.getElementById("resultButtonCntrl")&&(document.getElementById("resultButtonCntrl").style.bottom="100px")):document.getElementById("bottomPanelCatfish").style.display="none"}))):document.getElementById("bottomPanelCatfish").style.display="none"}},methods:{refreshBanner:function(){window.innerWidth=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function te(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){te(i,r,a,o,s,"next",e)}function s(e){te(i,r,a,o,s,"throw",e)}o(void 0)}))}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)a().get("/api/user/settings/").then((function(t){e.globalSettings=t.data}));else{var t=this.cookies.get("globalSettings");t?this.globalSettings=JSON.parse(t):this.globalSettings.hints=!0}},getDirectory:function(e){var t={ttl:"",param:"",obj:!1,link:!1};if(+this.showLabels)return t;if(e&&-1!=e.indexOf("[")){t.obj=!0;var n=e.substring(0,e.length-1).split("[");t.ttl=n[0],t.param=n[1],t.param&&-1!==t.param.indexOf("http")&&(t.link=!0)}return t},closeCatfishVideo:function(){this.catfish_video=!1,localStorage.cookiecatfishvideo="close",this.cookies.set("cookiecatfishvideo","close",1)},hintsClose:function(){this.globalSettings.hints=!1,this.setSitesUsersSettings("globals",this.globalSettings)},hintsOpen:function(){this.globalSettings.hints=!0,this.open_support_symbol=!1,this.setSitesUsersSettings("globals",this.globalSettings)},setSitesUsersSettings:function(e,t){userAccessLevel>0?a().post("/api/user/set-settings/",{sid:e,settings:{settings:t}}):this.cookies.set("globalSettings",JSON.stringify(t))},scrollPage:function(){null!==document.getElementById("forGetAccessTop")&&(document.getElementById("forGetAccessTop").getBoundingClientRect().top<=0?this.fixed_top_message=!0:this.fixed_top_message=!1)},showAlertMessage:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.alertText=e,this.showAlert=!0,n&&setTimeout((function(){t.showAlert=!1}),3e3)},closeGetAccess:function(){this.get_access=!1;var e=new Date;this.cookies.set("expires",e.getDate()+"."+e.getMonth()+"."+e.getFullYear())},getMenegmentAccess:function(e,t){var n=this;a().post("/api/profile/pa/subscr_send_request/",{tariff:e,contactPersonId:t}).then((function(e){n.paStatusConfirm=0}))},getMenegmentApprove:function(){},getMenegmentApproveAdd:function(e){var t=this;a().post("/api/profile/pa/subscr_expand_request/",{tariff:e}).then((function(e){t.paSendExpand=1}))},closeRespected:function(){this.cookies.set("respected",!0),this.get_respected=!1},initAuthTimer:function(){this.seconds=30,this.timer=!0,this.startAuthTimer()},startAuthTimer:function(){if(this.seconds>0){var e=this;setTimeout((function(){e.seconds--,e.startAuthTimer()}),1e3)}else this.timer=!1,this.codeSent=!1},ajaxSendCode:function(){a().get("/?action=ajaxSendCode"),this.codeSent=!0,this.initAuthTimer()},submitCode:function(e){return this.authCodeEmpty=!this.authCode,!!this.authCode||(e.preventDefault(),!1)},submitPhone:function(e){var t=this;if(!this.userMobileNew)return!1;a().post("/api/profile/update_mob/",{phone:this.userMobileNew}).then((function(e){e.data.messages.length||(a().get("/?action=ajaxSendCode"),t.userMobileExists=!0,t.codeSent=!0,t.initAuthTimer())}))},switchMenu:function(){this.$switchMenu.emit("switchMenu")},timeZoneConvert:function(e){var t=(e=new Date(e)).getTimezoneOffset()+180,n=e.getTime()+60*t*1e3;return new Date(n)},loadTickets:function(){var e=this;this.supportLoading=!0,a().get("/api/profile/support/tickets/").then((function(t){e.supportLoading=!1,e.supportHistoryItem=t.data}))},hoverMenu:function(e){this.menuScreen=e},leaveMenu:function(e){this.menuScreen=e},getLabel:function(e){var t="{{"+e+"}}";return void 0!==labels[e]&&(t=labels[e]),t},gL:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t},isShowItem:function(e){return this.showItems.includes(e)},isHideItem:function(e){return!this.showItems.includes(e)},toggleShowItem:function(e){var t=this.showItems.indexOf(e);-1!==t?this.showItems.splice(t,1):this.showItems.push(e)},setShowItem:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.showItems.indexOf(e);-1!==n&&!1===t?this.showItems.splice(n,1):!0===t&&this.showItems.push(e)},tempShowItem:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;this.setShowItem(e,!0),setTimeout((function(){t.setShowItem(e,!1)}),n)},axios:function(){return a()},console:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return console})),window:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return window})),getFirstItemTitleInArray:function(e,t){if("object"==ie(e)&&"object"==ie(e[0]))return e[0][t]},processingUrlVariables:function(){var e=window.location.search.substring(1).split("&");for(var t in e){var n=re(e[t].split("="),2),r=n[0],a=n[1];if(void 0!==r&&void 0!==a)switch(r){case"from_ads":this.setCookieInArray("fromAds",a);break;case"click_id":this.cookies.set("click_id",a);break;case"exante":this.setCookieInArray("fromAds","exante")}}},setCookieInArray:function(e,t){var n=this.cookies.get(e);n?(n=n.split(","),-1===_.indexOf(n,t)&&n.push(t)):n=[t],this.cookies.set(e,n,"5D")},getIsCheckBlockCountBefore:function(){return 0},showAsterisksMess:function(){this.showAllAsterisks=!0},closeAsterisksMess:function(){this.showAllAsterisks=!1},setLabels:function(){var e=this;return ne(ee().mark((function t(){var n,r;return ee().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=+e.showLabels?"?show_labels=".concat(showLabels):"",r="/api/labels/"+e.labelsModule+"/",e.labelsRepository&&(r+=e.labelsRepository+"/"),t.next=5,a().get(r+n).then((function(t){var n=t.data;return e.labels=n}));case 5:e.$store.dispatch("initLabels",e.labels);case 6:case"end":return t.stop()}}),t)})))()},setLabelsAlias:function(e){var t=this;return ne(ee().mark((function n(){var r;return ee().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(r in e)void 0!==t.labels[r]&&(t.labels[e[r]]=t.labels[r]);case 1:case"end":return n.stop()}}),n)})))()},resetTimer:function(){this.inactivityTime=0},goMouse:function(){!this.isShowRegBanner&&this.bannerShow&&null==this.cookies.get("reg_banner")&&(this.showRegBanner(),this.bannerShow=!1)},getScroll:function(){window.pageYOffset>this.heightWindow&&!this.isShowRegBanner&&this.bannerShow&&null==this.cookies.get("reg_banner")&&(this.showRegBanner(),this.bannerShow=!1)},closeBunner:function(){this.regBanner1=!1,this.regBanner2=!1,this.bannerShow=!1,this.setRegBannerCookie()},setRegBannerCookie:function(){this.cookies.set("reg_banner",!0,{expires:"24h"})},showRegBanner:function(){var e=this;this.bannerShow&&(this.regBanner1=!1,this.regBanner2=!1,(new Date).getSeconds()%2?(this.regBanner1=!0,this.bannerShow=!1):(this.regBanner2=!0,this.bannerShow=!1),setTimeout((function(){e.isShowRegBanner=!0}),500))},scrollSmoothToElement:function(e){null!==document.getElementById(e)&&document.getElementById(e).scrollIntoView({behavior:"smooth"})}},setup:function(){return{cookies:(0,v.fP)().cookies}}}},56453:function(e,t,n){n.d(t,{b:function(){return r}});var r={props:{labels:{type:Object,default:function(){return{}}}},computed:{allLabels:function(){var e=this.$store.state.labels;for(var t in this.labels)e[t]=this.labels[t];return e}},methods:{getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.allLabels[e]&&(t=this.allLabels[e]),t}}}},7829:function(e,t,n){n.d(t,{e:function(){return r}});n(34553);var r={data:function(){return{table_columns:[]}},props:{default_table_columns:{type:Array,default:function(){return[]}},needToAddCrossToMainColumn:{type:Boolean,default:!1}},created:function(){this.default_table_columns.length&&(this.table_columns=this.default_table_columns)},watch:{default_table_columns:function(){this.default_table_columns.length&&(this.table_columns=this.default_table_columns)}},computed:{checkIfNeedToAddCross:function(){return void 0!==this.table_columns&&this.table_columns.length>0}},methods:{hideColumn:function(e){var t=this.table_columns.findIndex((function(t){return t.id==e}));if(void 0!==this.table_columns[t]&&void 0===this.table_columns[t].dontHide)return this.table_columns[t].check=!this.table_columns[t].check,this.$emit("input",this.table_columns),this.$eventHub.emit("idToHide",e),this.$eventHub.emit("changeSelectedFields",this.table_columns),void this.$resizeTable.emit("refreshTable",!1);this.$eventHub.emit("idToHide",e)},labelToHideColumn:function(e){var t=this.table_columns.findIndex((function(t){return t.id==e}));return void 0!==this.table_columns[t]&&void 0!==this.table_columns[t].textHideLabel?this.getLabel(this.table_columns[t].textHideLabel):this.label_hide}}}},9568:function(e,t,n){n.d(t,{r:function(){return r}});var r={data:function(){return{lang:lang||"eng",isCbnData:isCbnData||0}},methods:{getDataServerUrl:function(){var e="https://data.cbonds.com/";return"rus"===this.lang&&(e="https://data.cbonds.info/"),this.isCbnData&&(e="https://data.cbn-data.com/"),e},getWatermarkUrl:function(){return this.isCbnData?"/img/watermarkGraphWithBg_cbn.png":"/img/watermarkGraphWithBg.png"}}}},27592:function(e,t,n){var r=(0,n(59391).Z)();t.Z=r},47130:function(e,t,n){var r;n(41539),n(54747);t.Z={beforeMount:function(e,t,n){r=function(r){r.stopPropagation();var a=t.value,i=a.handler,o=a.exclude,s=!1;o.forEach((function(e){if(!s){var t=n.ctx.refs[e];s=t.contains(r.target)}})),e.contains(r.target)||s||n.ctx.ctx[i]()},document.addEventListener("click",r),document.addEventListener("touchstart",r)},unmounted:function(){document.removeEventListener("click",r),document.removeEventListener("touchstart",r)}}},61449:function(e,t){t.Z={decimalPoint:".",thousandsSep:" ",loading:"Обработка данных...",noData:"Нет данных",months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],rangeSelectorFrom:"с",rangeSelectorTo:"до",rangeSelectorZoom:"За период:",weekdays:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],range:{month1:"1 месяц",month3:"3 месяца",month6:"6 месяцев",year1:"1 год",year3:"3 года"},downloadPNG:"Загрузить в формате PNG",downloadJPEG:"Загрузить в формате JPEG",downloadPDF:"Загрузить в формате PDF",downloadSVG:"Загрузить в формате SVG",downloadXLS:"Загрузить в формате XLS",downloadCSV:"Загрузить в формате CSV",contextButtonTitle:"Контекстное меню",printChart:"Распечатать график",drillUpText:"◁ Назад к {series.name}"}},97962:function(e,t,n){var r=n(23645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'@charset "UTF-8";.mx-datepicker{color:#73879c;display:inline-block;font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;position:relative;width:210px}.mx-datepicker *{box-sizing:border-box}.mx-datepicker.disabled{cursor:not-allowed;opacity:.7}.mx-datepicker-range{width:320px}.mx-datepicker-popup{background-color:#fff;border:1px solid #d9d9d9;box-shadow:0 6px 12px rgba(0,0,0,.175);margin-bottom:1px;margin-top:1px;position:absolute;z-index:1000}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-clear-wrapper{display:none}.mx-input-wrapper:hover .mx-clear-wrapper{display:block}.mx-input-wrapper:hover .mx-clear-wrapper+.mx-input-append{display:none}.mx-input{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);color:#555;display:inline-block;font-size:14px;height:34px;line-height:1.4;padding:6px 30px 6px 10px;width:100%}.mx-input.disabled,.mx-input:disabled{cursor:not-allowed;opacity:.7}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-input-append{height:100%;padding:6px;position:absolute;right:0;top:0;width:30px}.mx-input-icon{cursor:pointer;display:inline-block;font-style:normal;text-align:center}.mx-calendar-icon,.mx-input-icon{color:#555;height:100%;width:100%}.mx-calendar-icon{stroke-width:8px;stroke:currentColor;fill:currentColor}.mx-clear-icon:before{content:"✖";display:inline-block;vertical-align:middle}.mx-clear-icon:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.mx-range-wrapper{overflow:hidden;width:496px}.mx-shortcuts-wrapper{border-bottom:1px solid rgba(0,0,0,.05);line-height:34px;padding:0 12px;text-align:left}.mx-shortcuts-wrapper .mx-shortcuts{background:none;border:0;color:#48576a;cursor:pointer;margin:0;outline:none;padding:0;white-space:nowrap}.mx-shortcuts-wrapper .mx-shortcuts:hover{color:#419dec}.mx-shortcuts-wrapper .mx-shortcuts:after{color:#48576a;content:"|";margin:0 10px}.mx-shortcuts-wrapper .mx-shortcuts:last-child:after{display:none}.mx-datepicker-footer{border-top:1px solid rgba(0,0,0,.05);clear:both;padding:4px;text-align:right}.mx-datepicker-btn{background-color:transparent;border:none;border-radius:3px;cursor:pointer;font-size:12px;line-height:1;margin:0 5px;outline:none;padding:7px 15px}.mx-datepicker-btn-confirm{border:1px solid rgba(0,0,0,.1);color:#73879c}.mx-datepicker-btn-confirm:hover{border-color:#1284e7;color:#1284e7}.mx-calendar{color:#73879c;float:left;font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;padding:6px 12px}.mx-calendar *{box-sizing:border-box}.mx-calendar-header{height:34px;line-height:34px;overflow:hidden;padding:0 4px;text-align:center}.mx-calendar-header>a{color:inherit;cursor:pointer;text-decoration:none}.mx-calendar-header>a:hover{color:#419dec}.mx-icon-last-month,.mx-icon-last-year,.mx-icon-next-month,.mx-icon-next-year{font-size:20px;line-height:30px;padding:0 6px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mx-icon-last-month,.mx-icon-last-year{float:left}.mx-icon-next-month,.mx-icon-next-year{float:right}.mx-calendar-content{height:224px;width:224px}.mx-calendar-content .cell{cursor:pointer;vertical-align:middle}.mx-calendar-content .cell:hover{background-color:#eaf8fe}.mx-calendar-content .cell.actived{background-color:#1284e7;color:#fff}.mx-calendar-content .cell.inrange{background-color:#eaf8fe}.mx-calendar-content .cell.disabled{background-color:#f3f3f3;color:#ccc;cursor:not-allowed}.mx-panel{height:100%;text-align:center;width:100%}.mx-panel-date{border-collapse:collapse;border-spacing:0;table-layout:fixed}.mx-panel-date td,.mx-panel-date th{font-size:12px;height:32px;overflow:hidden;padding:0;text-align:center;width:32px}.mx-panel-date td.today{color:#2a90e9}.mx-panel-date td.last-month,.mx-panel-date td.next-month{color:#ddd}.mx-panel-year{padding:7px 0}.mx-panel-year .cell{display:inline-block;line-height:40px;margin:1px 5%;width:40%}.mx-panel-month .cell{display:inline-block;line-height:40px;margin:8px 1.5%;width:30%}.mx-time-list{border-left:1px solid rgba(0,0,0,.05);border-top:1px solid rgba(0,0,0,.05);float:left;height:100%;list-style:none;margin:0;overflow-y:auto;padding:0;position:relative;width:100%}.mx-time-list .mx-time-picker-item{display:block;padding-left:10px;text-align:left}.mx-time-list:first-child{border-left:0}.mx-time-list .cell{font-size:12px;height:30px;line-height:30px;width:100%}.mx-time-list::-webkit-scrollbar{height:8px;width:8px}.mx-time-list::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.05);border-radius:10px;box-shadow:inset 1px 1px 0 rgba(0,0,0,.1)}.mx-time-list:hover::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2)}',""]),t.Z=a},11752:function(e,t,n){var r=n(23645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,"#app_download[data-v-d9491f6a]{background:#fff;left:0;opacity:.9;position:fixed;top:0;width:100%;z-index:99999}.app_download__wrapper[data-v-d9491f6a]{position:relative}.app_download__close[data-v-d9491f6a]{background:none;border:none;color:#000;font-size:30px;position:absolute;right:0;top:0;z-index:10}.app_download__row[data-v-d9491f6a]{align-items:center;display:flex;padding:5px}.app_download__col[data-v-d9491f6a]{color:#000;font-size:.9em;margin-left:5%;padding:5px;width:50%}.app_download__img[data-v-d9491f6a]{float:left;max-height:38px}",""]),t.Z=a},2526:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(70821),a={key:0,src:"/img/arrow_bottom_blue.svg"},i=["href"],o=["href"],s=(0,r.createElementVNode)("img",{src:"/img/icons/lock_white.svg"},null,-1),l=["innerHTML"];n(29254);var c=n(62602),d={name:"AppAsterisks",props:{message:"",arrow:{default:!1,type:Boolean}},mixins:[c.f],data:function(){return{show:!1,link:"",seoLinkToReg:"undefined"!=typeof seoLinkToRegForAsterisks?seoLinkToRegForAsterisks:""}},computed:{labels:function(){return this.$store.state.labels},asterisks:function(){var e="Log in to access";if(0==userAccessLevel?void 0!==this.labels.asterisks&&(e=this.labels.asterisks):void 0!==this.labels.asterisks_auth&&(e=this.labels.asterisks_auth),this.message&&(e=void 0!==this.labels[this.message]?this.labels[this.message]:this.message),e&&-1!=e.indexOf("[")){var t=e.split("[");e=t[0],this.link=t[1].substring(0,t[1].length-1)}return e},asterisks_go:function(){return void 0!==this.labels.asterisks_auth_go?this.labels.asterisks_auth_go:"Go"}},methods:{showAsterisks:function(){this.show=!0},hideAsterisks:function(){this.show=!1},getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t}}};const u=(0,n(83744).Z)(d,[["render",function(e,t,n,c,d,u){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:"asterisks",onMouseover:t[0]||(t[0]=function(){return u.showAsterisks&&u.showAsterisks.apply(u,arguments)}),onMouseleave:t[1]||(t[1]=function(){return u.hideAsterisks&&u.hideAsterisks.apply(u,arguments)}),onTouchstart:t[2]||(t[2]=function(){return u.showAsterisks&&u.showAsterisks.apply(u,arguments)})},[n.arrow?((0,r.openBlock)(),(0,r.createElementBlock)("img",a)):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,href:d.seoLinkToReg},"***",8,i)),d.show?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:2,href:d.seoLinkToReg,class:"getAuthBlock"},[s,(0,r.createElementVNode)("span",{innerHTML:u.getLabel("full_version"),class:"t"},null,8,l)],8,o)):(0,r.createCommentVNode)("",!0)],32)}]]);var h=u},68462:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(70821),a={class:"comparisonSearch tags-input"},i={class:"check_box inner_compare",id:"chart_compare_index"},o=(0,r.createElementVNode)("input",{type:"checkbox",class:"elem js_check_elem"},null,-1),s={key:1,class:"legend_line_compare"},l={class:"wrpSearch autocompleteComponent"},c=["placeholder"],d={key:0,src:"/img/ui-anim_basic_16x16.gif",class:"loader"},u=(0,r.createElementVNode)("div",{class:"clear"},null,-1),h=(0,r.createElementVNode)("div",{class:"clear"},null,-1),p={key:0,class:"alertRed top_10"},m={key:1,class:"alertRed top_10"},f={href:"/profile_access/",class:"lnk",target:"_blank"},g={key:2,class:"list"},v={key:0,class:"swtchTab"},y=["onClick"],b={href:"javascript:void(0);",class:"item"},k=["innerHTML"],_={class:"count"},w=(0,r.createElementVNode)("div",{class:"clear"},null,-1),x=["onClick"],E=["innerHTML"],D=(0,r.createElementVNode)("br",null,null,-1),S={class:"old"},B=(0,r.createElementVNode)("br",null,null,-1),C={class:"old"},T={key:0},L={key:1},N=(0,r.createElementVNode)("div",{class:"clear"},null,-1);n(68309),n(73210),n(41539),n(88674),n(74916),n(64765),n(66992),n(78783),n(33948),n(21249),n(26699),n(32023),n(15306),n(4723),n(24603),n(39714),n(54747),n(69600),n(23123),n(82526),n(41817),n(32165),n(72443),n(39341),n(73706),n(10408),n(30489),n(47042);var V=n(96486),M=n(9669),F=n.n(M);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function A(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ A=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),s=new D(a||[]);return r(o,"_invoke",{value:_(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function h(){}function p(){}function m(){}var f={};l(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,i)&&(f=v);var y=m.prototype=h.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(r,i,o,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==I(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){a("next",e,o,s)}),(function(e){a("throw",e,o,s)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return B()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var a=d(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function H(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){H(i,r,a,o,s,"next",e)}function s(e){H(i,r,a,o,s,"throw",e)}o(void 0)}))}}var O={name:"AppAutocompleteSearch",props:{placeholder:String,url:{type:[String,Array],required:!0},tabs:{type:Array,default:function(){return[]}},clearBntText:String,numberOfMatches:String,compareWithStock:String,tooManyResults:{type:String,default:""},inputClass:{type:String,default:""},color:{type:String,default:""},clearButDoNotCancel:{type:Boolean,default:!1},clearAfterSelect:{type:Boolean,default:!1},types:{type:Array,default:function(){return[]}},needauth:{type:String,default:"need to log in"},needaccess:{type:String,default:"need to get access"}},data:function(){return{term:"",cancel:null,nullResult:!1,bigResult:!1,clearBtnShow:!1,autoCompleteSearchResultShow:!1,autoCompleteSearchResult:[],loader:!1,multiSearch:!1,showList:[!0],searchUrl:[],errors:[],userAuth:userAuth,userLevel:userAccessLevel,notauth:!1,getaccess:!1}},created:function(){var e=this;this.$eventHub.on("clearAll",this.clear),this.$eventHub.on("fillSearchString",(function(t){e.term=t.searchString})),this.searchDebounce=(0,V.debounce)(this.searchEvent,300),Array.isArray(this.url)&&this.url.length>1?(this.multiSearch=!0,this.searchUrl=this.url):this.searchUrl=[this.url]},methods:{checkAuth:function(){return this.userAuth?!this.userAuth||1077==this.userLevel||(this.getaccess=!0,!1):(this.notauth=!0,!1)},activateList:function(e){for(var t=0;t0){var a=e.type;this.$eventHub.emit("compare",{id:t,tgId:r,name:n,type:a})}else this.$eventHub.emit("autoCmplSelect",e);this.clearAfterSelect&&this.clear()},clear:function(e){var t=!0;(e&&e.onlyClearInput||this.clearButDoNotCancel)&&(t=!1),this.clearBtnShow=!1,this.term="",this.errors=[],t&&this.$eventHub.emit("cancelCompare"),this.$eventHub.emit("autoCmplCancel")},inputSearchItem:function(){this.checkAuth()&&(this.errors=[],this.loader=!0,this.clearBtnShow=!1,this.term.trim().length>2?this.searchDebounce():this.loader=!1,this.$eventHub.emit("autocompleteKeyUp"))},searchEvent:function(){var e=this;return P(A().mark((function t(){var n,r,a,i,o,s,l;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.autoCompleteSearchResult=[],e.loader=!0,n=function(t){return new Promise((function(n){n(e.search(t))}))},t.next=5,Promise.all(e.searchUrl.map(n));case 5:if((r=t.sent).length>0){for(a=[],i=0;ia[0])&&(a[0]=l,a[1]=i)):(e.autoCompleteSearchResult.push([]),e.errors[i]=s||"nullResult");a[1]?e.showList[a[1]]=!0:e.showList[0]=!0}e.autoCompleteSearchResultShow=!0,e.loader=!1;case 9:case"end":return t.stop()}}),t)})))()},search:function(e){var t=this;return P(A().mark((function n(){var r,a,i,o,s,l,c,d,u;return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r={data:[],error:""},!(t.term.length>2)){n.next=36;break}a="",n.t0=A().keys(t.types);case 4:if((n.t1=n.t0()).done){n.next=11;break}if(i=n.t1.value,!e.includes(t.types[i])){n.next=9;break}return a=t.types[i],n.abrupt("break",11);case 9:n.next=4;break;case 11:return o=encodeURIComponent(t.term),s=o.toLowerCase(),n.prev=13,n.next=16,F().post(e.replace("%term%",o,{cancelToken:new(F().CancelToken)((function(e){t.cancel=e}))}));case 16:if(l=n.sent,0===(c=l.data).error.err_no){n.next=23;break}console.error(c.error.err_str),100200==c.error.err_no||500100==c.error.err_no&&(r.error="bigResult"),n.next=31;break;case 23:if(!(c.response.items.length>0)){n.next=31;break}d=A().mark((function e(){var n,i,o,l,d,h,p,m,f,g,v;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=c.response.items[u]).trading_grounds){e.next=11;break}i=A().mark((function e(){var t,i,l,c;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.trading_grounds[o],i=n.name.replace(/<\/?[^>]+>/g,""),null!=(l=i.match(new RegExp(s,"ig")))&&l.forEach((function(e){i=i.replace(e,''+e+"")})),(c={}).emissionId=n["id.numeric"],c.emissionName=n.name,c.emissionNameWithTg=n.name+" - "+t.name,c.emissionNameHighlighting=i,c.emissionNameHighlightingWithTg=i+" - "+t.name,c.isin=n.isin,c.ticker=t.ticker,c.tradingGroundsId=t["id.numeric"],c.tradingGroundsName=t.name,c.type=a,r.data.push(c);case 16:case"end":return e.stop()}}),e)})),e.t0=A().keys(n.trading_grounds);case 4:if((e.t1=e.t0()).done){e.next=9;break}return o=e.t1.value,e.delegateYield(i(),"t2",7);case 7:e.next=4;break;case 9:e.next=12;break;case 11:n.document?(l=n.document.replace(/<\/?[^>]+>/g,""),null!=(d=l.match(new RegExp(s,"ig")))&&d.forEach((function(e){l=l.replace(e,''.concat(e,""))})),(h={}).emissionId=n["id.numeric"],h.emissionName=n.document,h.emissionNameWithTg=n.document,h.emissionNameHighlighting=l,h.emissionNameHighlightingWithTg=l,h.isin=n.isin,h.tradingGroundsId=0,h.type=a,r.data.push(h)):n.name&&(p={},m=n.name.replace(/<\/?[^>]+>/g,""),f=decodeURIComponent(s),f=t.replaceAllCustom(f," ","\\s"),f=t.replaceAllCustom(f,"-","\\-"),f=t.replaceAllCustom(f,"/","\\/"),f=t.replaceAllCustom(f,"(","\\("),f=t.replaceAllCustom(f,")","\\)"),g="/[".concat(f,"]/"),null!=(v=m.match(new RegExp(g,"ig")))&&v.forEach((function(e){m=m.replace(e,''.concat(e,""))})),p.emissionId=n["id.numeric"],p.emissionName=n.name,p.emissionNameWithTg=n.name,p.emissionNameHighlighting=m,p.emissionNameHighlightingWithTg=m,p.isin="",p.tradingGroundsId=0,p.measure_id=n["measure_id.numeric"]?n["measure_id.numeric"]:0,p.type=a,r.data.push(p));case 12:case"end":return e.stop()}}),e)})),n.t2=A().keys(c.response.items);case 26:if((n.t3=n.t2()).done){n.next=31;break}return u=n.t3.value,n.delegateYield(d(),"t4",29);case 29:n.next=26;break;case 31:n.next=36;break;case 33:n.prev=33,n.t5=n.catch(13),console.error("error: ",n.t5.message);case 36:return n.abrupt("return",r);case 37:case"end":return n.stop()}}),n,null,[[13,33]])})))()},closeSearchResult:function(){this.autoCompleteSearchResultShow=!1,this.nullResult=!1},outsideClick:function(){this.closeSearchResult()},replaceAllCustom:function(e,t,n){return e.split(t).join(n)}}};const $=(0,n(83744).Z)(O,[["render",function(e,t,n,V,M,F){var I=(0,r.resolveDirective)("click-outside");return(0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("label",i,[o,n.color?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)({background:n.color,height:"2px",display:"block"})}," ",4)):((0,r.openBlock)(),(0,r.createElementBlock)("span",s," "))]),(0,r.createElementVNode)("div",l,[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref:"input",type:"text",name:"searchString",id:"searchString",class:(0,r.normalizeClass)(["input autocompl",n.inputClass]),"onUpdate:modelValue":t[0]||(t[0]=function(e){return M.term=e}),onKeyup:t[1]||(t[1]=function(){return F.inputSearchItem&&F.inputSearchItem.apply(F,arguments)}),placeholder:n.placeholder,autocomplete:"off"},null,42,c),[[r.vModelText,M.term]]),M.loader?((0,r.openBlock)(),(0,r.createElementBlock)("img",d)):(0,r.createCommentVNode)("",!0),u,M.notauth||M.getaccess?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[h,M.notauth?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,(0,r.toDisplayString)(n.needauth),1)):(0,r.createCommentVNode)("",!0),M.getaccess?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.createElementVNode)("a",f,(0,r.toDisplayString)(n.needaccess),1)])):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0),M.autoCompleteSearchResult.length>0&&M.autoCompleteSearchResultShow?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[M.multiSearch?((0,r.openBlock)(),(0,r.createElementBlock)("ul",v,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tabs,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)({activeTab:!0===M.showList[t]}),onClick:(0,r.withModifiers)((function(e){return F.activateList(t)}),["prevent"])},[(0,r.createElementVNode)("a",b,[(0,r.createElementVNode)("span",{innerHTML:e},null,8,k),(0,r.createTextVNode)(),(0,r.createElementVNode)("sup",_,(0,r.toDisplayString)(M.autoCompleteSearchResult[t]?M.autoCompleteSearchResult[t].length:0),1)])],10,y)})),256))])):(0,r.createCommentVNode)("",!0),w,((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(M.autoCompleteSearchResult,(function(e,t){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:t},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{onClick:function(t){return F.compare(e)}},[(0,r.createElementVNode)("span",{innerHTML:e.emissionNameHighlightingWithTg},null,8,E),e.isin||e.ticker?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[D,(0,r.createElementVNode)("span",S,"ISIN - "+(0,r.toDisplayString)(e.isin),1),B,(0,r.createElementVNode)("span",C,"Ticker - "+(0,r.toDisplayString)(e.ticker),1)],64)):(0,r.createCommentVNode)("",!0)],8,x)})),256)),M.errors[t]?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},["nullResult"===M.errors[t]?((0,r.openBlock)(),(0,r.createElementBlock)("li",T,(0,r.toDisplayString)(n.numberOfMatches)+": 0 ",1)):(0,r.createCommentVNode)("",!0),"bigResult"===M.errors[t]?((0,r.openBlock)(),(0,r.createElementBlock)("li",L,(0,r.toDisplayString)(n.tooManyResults),1)):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)])),[[r.vShow,!0===M.showList[t]]])})),128))])),[[I,{exclude:["input"],handler:"outsideClick"}]]):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:t[2]||(t[2]=function(){return F.clear&&F.clear.apply(F,arguments)}),class:"clearStock"},"×",512),[[r.vShow,M.clearBtnShow]])]),(0,r.renderSlot)(e.$slots,"addition"),N])}]]);var j=$},38741:function(e,t,n){n.d(t,{Z:function(){return de}});n(82526),n(41817);var r=n(70821),a={class:"forPeriod"},i=["value"],o=["value"],s={key:0,class:"forDeleteButton"},l=["innerHTML"],c={class:"icon"},d=(0,r.createElementVNode)("div",{class:"clear"},null,-1),u={class:"periodNew"},h={key:0,class:"graphPeriodNew"},p={class:"itemBlock"},m={id:"cb_arbitrary_period_w4",class:"tab_text"},f={class:"datepicker datepicker_input_sm"},g={class:"itemBlock"},v={id:"cb_datepicker_input_sm_to",class:"tab_text"},y={class:"datepicker datepicker_input_sm"},b=(0,r.createElementVNode)("div",{class:"clear"},null,-1),k=(0,r.createElementVNode)("div",{class:"clear"},null,-1),_={key:0,id:"cb_datepicker_description",class:"green top_10"},w=(0,r.createElementVNode)("div",{class:"clear"},null,-1),x=(0,r.createElementVNode)("div",{class:"clear"},null,-1),E=(0,r.createElementVNode)("div",{class:"clear"},null,-1),D={key:2,id:"cb_view_graph_delete",class:"top_10 bottom_10"},S={key:3,id:"cb_view_type_chart_map"},B=(0,r.createElementVNode)("div",{id:"graphForPdf",class:"hidden"},null,-1),C=["id"],T=["id"],L=["src"],N={class:"graphOverturn"},V=["id"],M=(0,r.createElementVNode)("div",{class:"clear"},null,-1),F={key:4,class:"top_20"},I=["innerHTML"],A={key:5,class:"item checkbox showLogo"},H={class:"ttl"};n(41539),n(54747),n(68309),n(47941),n(39714),n(74916),n(15306),n(57327),n(92222),n(26699),n(32023);var P=n(9669),O=n.n(P),$=n(9568),j=n(1490),z=n(67014),G=n(26438),R=n(95384),Z=n.n(R),Y=n(18393),W=n(61449),q={class:"customLegend"},U=["id"],J=["href","innerHTML"],K=["innerHTML"],X=["onClick","title"],Q=["onClick","title"];var ee={name:"AppGraphCustomLegend",props:{disableToggleSeries:{type:Boolean,default:!1},labels:{},isOverturn:{type:Boolean,default:!1},legendData:{type:Array,default:function(){return[]}}},created:function(){this.legendData.forEach((function(e){void 0===e.visible&&(e.visible=!0)}))},methods:{getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t},callEmitForRemove:function(e){this.$eventHub.emit(e.emitForRemove,e)},callEmitForToggleSeries:function(e){this.$eventHub.emit("toggleSeriesInLegend",{isOverturn:this.isOverturn,item:e})}},watch:{legendData:function(){this.legendData.forEach((function(e){void 0===e.visible&&(e.visible=!0)}))}}},te=n(83744);var ne=(0,te.Z)(ee,[["render",function(e,t,n,a,i,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",q,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.legendData,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"item",id:"customLegendItem"+t},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["symbol",{hiddenCurve:!e.visible}]),style:(0,r.normalizeStyle)({"background-color":e.color})},null,6),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["seriesName",{hiddenCurve:!e.visible}])},[""!==e.pageLink&&e.entity&&e.entity.emitForRemove?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.pageLink,target:"_blank",innerHTML:e.seriesName},null,8,J)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,innerHTML:e.seriesName},null,8,K))],2),e.entity&&!n.disableToggleSeries?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"toggle",onClick:function(t){e.visible=!e.visible,o.callEmitForToggleSeries(e)},title:e.visible?o.getLabel("hide"):o.getLabel("show_more")},null,8,X)):(0,r.createCommentVNode)("",!0),e.entity&&e.entity.emitForRemove?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:"close",onClick:function(t){return o.callEmitForRemove(e.entity)},title:o.getLabel("remove")}," × ",8,Q)):(0,r.createCommentVNode)("",!0)],8,U)})),256))])}]]),re=n(68607),ae=n.n(re),ie=n(46926),oe=n.n(ie),se=n(84730);Y(Z()),"rus"===lang&&Z().setOptions({lang:W.Z});var le={name:"AppGraphNew",components:{"app-tabs":j.Z,"date-picker":z.Z,"app-graph-custom-legend":ne},props:{id:{type:String,default:"graph"},idOverturn:{type:String,default:"graphOverturn"},custom_class:{type:String,default:""},date_format:{type:String,default:"DD.MM.YYYY"},description:{type:String,default:""},tabs_graph:{type:Array,default:function(){return[]}},labels:{type:Object,default:function(){return{}}},chartcolor:{type:String,default:"#FFFFFF"},chart_name:"",data_url:"",data_name:"",data_color:"",data_chart:{type:Object,default:function(){return{}}},data_chart_overturn_series:{type:Array,default:function(){return[]}},type_chart:{type:String,default:""},data_prepared:{type:Object,default:function(){return{}}},allow_delete_points:!1,allow_label_points:!1,show_y_title:!1,remote_control_period:!1,compare_flag:!1,page_link:{type:Object,default:function(){return{}}},useCustomDatepicker:!1,hideShowLogoBtn:!1,hideGraphElementsClassesProp:{type:Array,default:function(){return[]}},series_type:{type:String,default:"line"},show_period:{type:Boolean,default:!0},customToltipFormatter:{type:Function,default:function(e){return!1}},customLegendDisableToggleSeries:{type:Boolean,default:!1}},mixins:[$.r],data:function(){return{arbitraryPeriod:!1,startDate:"",endDate:"",graphRenderErrorMsg:"",datepickerLang:G.Z[lang],formatter:new Intl.NumberFormat(locale),noData:!1,chart:null,chartOverturn:null,viewGraphDelete:!1,deletePoint:0,mapLabels:!1,showLogo:!0,customLegendData:[],customLegendDataOverturn:[],currentPeriodId:null,isShowLogo:!0,isElementFullscreen:!1,isMobile:isMobile,isEmptyOverturn:!1,hideGraphElementsClasses:["highcharts-exporting-group","toggleFullscreenBtn","resetGraph","highcharts-navigator","highcharts-navigator-series","highcharts-navigator-xaxis","highcharts-navigator-yaxis","hiddenCurve","toggle","close","graphOverturn"],hideGraphElementsDisplayValues:{}}},computed:{graphStartDate:{get:function(){if(!this.startDate)return"";var e=new Date(this.startDate);return e.getTime()+60*e.getTimezoneOffset()*1e3},set:function(e){if(this.graphRenderErrorMsg="",e){var t=new Date(e),n=new Date(e);n.setFullYear(n.getFullYear()+10),new Date(this.endDate)>n&&(this.endDate=new Date(n.getTime()-60*n.getTimezoneOffset()*1e3).toISOString().substring(0,10)),e=new Date(t.getTime()-60*t.getTimezoneOffset()*1e3).toISOString().substring(0,10),this.startDate=e}this.selectBeginDate(e)}},graphEndDate:{get:function(){if(!this.endDate)return"";var e=new Date(this.endDate);return e.getTime()+60*e.getTimezoneOffset()*1e3},set:function(e){if(this.graphRenderErrorMsg="",e){var t=new Date(e),n=new Date(e);n.setFullYear(n.getFullYear()-10),new Date(this.startDate)0},watermarkTop:function(){if(null!==this.chart){var e=this.chart.chartHeight;return this.chart.options.legend.enabled?e-=50:e-=5,this.chart.options.navigator.enabled&&(e=this.chart.navigator.top+this.chart.navigator.height+5),"".concat(e,"px")}return"600px"}},watch:{data_chart:function(){this.drawGraph()},data_prepared:function(){this.drawGraph()},data_url:function(){this.drawGraph()},type_chart:function(){this.drawGraph()}},mounted:function(){var e=this;this.$eventHub.on("selectTab",(function(t){if(t.name==="chartPeriod_"+e.id){e.arbitraryPeriod=!1;var n=e.getPeriodById(t.value);e.startDate=e.tabs_graph[n].start_date,e.endDate=e.tabs_graph[n].end_date,(e.data_url||Object.keys(e.data_prepared).length)&&e.$nextTick((function(){e.drawGraph()}))}})),this.$eventHub.on("changeDate",(function(t){e.arbitraryPeriod=!1,e.startDate=t.start_date,e.endDate=t.end_date})),this.$eventHub.on("selectTabNoDraw",(function(t){if(t.name==="chartPeriod_"+e.id){e.arbitraryPeriod=!1;var n=e.getPeriodById(t.value);e.startDate=e.tabs_graph[n].start_date,e.endDate=e.tabs_graph[n].end_date}})),this.$eventHub.on("clearDeleteMode",(function(){e.viewGraphDelete=!1,null!=e.chart&&e.chart.getSelectedPoints().forEach((function(e){e.setState(),e.select(!1)})),e.deletePoint=0})),this.$eventHub.on("isLoadGraph",(function(){e.createGraphForPdf(3e3)})),this.$eventHub.on("elementFullscreenChange",(function(t){e.isElementFullscreen=t.isElementFullscreen})),this.$eventHub.on("toggleSeriesInLegend",(function(t){t.isOverturn?e.chartOverturn.series.forEach((function(e){void 0!==e.options.entity&&1*e.options.entity.id==1*t.item.entity.id&&1*e.options.entity.tgId==1*t.item.entity.tgId&&e.options.entity.model===t.item.entity.model&&e.color===t.item.color&&(void 0===e.options.yAxisVisibleDefault&&(e.options.yAxisVisibleDefault=e.yAxis.visible),e.setVisible(t.item.visible),e.yAxis.update({visible:e.yAxis.hasVisibleSeries&&e.options.yAxisVisibleDefault}))})):e.chart.series.forEach((function(e){void 0!==e.options.entity&&1*e.options.entity.id==1*t.item.entity.id&&1*e.options.entity.tgId==1*t.item.entity.tgId&&e.options.entity.model===t.item.entity.model&&e.color===t.item.color&&(void 0===e.options.yAxisVisibleDefault&&(e.options.yAxisVisibleDefault=e.yAxis.visible),e.setVisible(t.item.visible),e.yAxis.update({visible:e.yAxis.hasVisibleSeries&&e.options.yAxisVisibleDefault}))}))}))},created:function(){var e=this;this.tabs_graph&&this.tabs_graph.forEach((function(t){"active"===t.class&&(e.startDate=t.start_date,e.endDate=t.end_date)})),this.$nextTick((function(){e.drawGraph(!0)}))},methods:{getLabel:function(e){return this.labels[e]?this.labels[e]:"{{"+e+"}}"},openArbitraryPeriod:function(){this.arbitraryPeriod=!0,this.$clearAllTabs.emit("clearAllTabs","chartPeriod"),this.change_graph_period=!1,this.arbitraryPeriod=!0,this.currentPeriodId=null},getPeriodById:function(e){var t=0;return this.tabs_graph.forEach((function(n,r){n.id.toString()===e.toString()&&(t=r)})),t},selectBeginDate:function(e){document.querySelector(".selectPeriod a.item.active")&&(document.querySelector(".selectPeriod a.item.active").className=document.querySelector(".selectPeriod a.item.active").className.replace("active","")),this.startDate=e,this.reloadGraph()},selectEndDate:function(e){document.querySelector(".selectPeriod a.item.active")&&(document.querySelector(".selectPeriod a.item.active").className=document.querySelector(".selectPeriod a.item.active").className.replace("active","")),this.endDate=e,this.reloadGraph()},reloadGraph:function(){this.data_url||Object.keys(this.data_prepared).length?this.drawGraph():this.$eventHub.emit("changeGraphPeriod",{graphId:this.id,startDate:this.startDate,endDate:this.endDate})},drawGraph:function(e){var t=0;this.tabs_graph.forEach((function(e,n){"active"===e.class&&(t=n)})),!this.period&&this.tabs_graph.length&&(this.period=this.tabs_graph[t].id),!this.startDate&&this.tabs_graph.length&&(this.startDate=this.tabs_graph[t].start_date),!this.endDate&&this.tabs_graph.length&&(this.endDate=this.tabs_graph[t].end_date);var n={periodId:this.period,endDate:this.endDate,beginDate:this.startDate};if(this.data_url){var r=this;O().post(this.data_url,n).then((function(t){var n=0;if(t.data.data&&(n=Object.keys(t.data.data).length),t.data.series&&(n=t.data.series.length),n||!e){var a=t.data.data?t.data.data:[],i=t.data.series?t.data.series:[],o=t.data.graph_type?t.data.graph_type:0,s=t.data.measure?t.data.measure:"";r.renderGraphic(a,o,s,i)}else r.noData=!0}))}else if(Object.keys(this.data_prepared).length){var a=this.data_prepared.data?this.data_prepared.data:this.data_prepared,i=this.data_prepared.series?this.data_prepared.series:[],o=this.data_prepared.graph_type?this.data_prepared.graph_type:0,s=this.data_prepared.measure?this.data_prepared.measure:"",l=0;if(this.data_prepared.data&&(l=Object.keys(this.data_prepared.data).length),this.data_prepared.series&&(l=this.data_prepared.series.length),!l&&e)return void(this.noData=!0);this.renderGraphic(a,o,s,i)}else if(Object.keys(this.data_chart).length){var c="";if(this.data_chart.yAxis.length&&(void 0!==this.data_chart.yAxis[0].title&&void 0!==this.data_chart.yAxis[0].title.text&&(c=this.data_chart.yAxis[0].title.text,this.data_chart.yAxis[0].title.text=""),this.data_chart.title={align:"left",text:self.isMobile||""==c?"TEXT":c,style:{color:self.isMobile||""==c?"#FFFFFF":"#000000",fontSize:"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"}}),this.callHighCharts(this.data_chart),this.isOverturn){for(var d in this.data_chart_overturn_series)this.isEmptyOverturn=0===this.data_chart_overturn_series[d].data.filter((function(e){return 0!==e.y})).length;this.isEmptyOverturn?this.renderGraphic([],0,"",[],!0):this.renderGraphic([],0,"",this.data_chart_overturn_series,!0)}}},renderGraphic:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=this,l=[],c=!1,d=this.data_name,u=!1;r>0&&(u=!0);var h=d;a.length>0&&(h+=", "+a);var p=0;if(i.length)i.forEach((function(e){e.data&&(p+=e.data.length)}));else{var m=this.endDate?this.timeZoneConvert(new Date(this.endDate)).getTime():this.timeZoneConvert(new Date).getTime(),f=!1;for(var g in e){var v=1e3*parseInt(e[g]["date.numeric"]),y=parseFloat(e[g].value),b={x:v,y:y,xTitle:e[g].date};l.push(b),f=y,m=v}u&&!1!==f&&(l.push({x:m,y:f}),l.push(undefined)),c=1===(p=Object.keys(e).length)}1077!=("undefined"!=typeof userAccessLevel?userAccessLevel:1077)?(t=[{title:{text:this.show_y_title?h:"",style:{color:"#000000",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:-5},labels:{format:"",style:{color:"#000000",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:s.isMobile?20:-8},opposite:!1,visible:!1,lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF"}],n=' {series.name}

'):(t=[{title:{text:this.show_y_title?h:"",style:{color:"#000000",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:-5},labels:{format:"{value}",formatter:function(){var e=1*this.value;return e>=1e5?(e=(e/=1e6).toLocaleString(),e+=" "+s.labels.mln):e=e.toLocaleString(),e},style:{color:"#000000",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:s.isMobile?20:-8},opposite:!1,lineColor:"#E8E8E8",lineWidth:1,gridLineColor:"#b0b1b9",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,tickColor:"#FFFFFF"}],n=' {series.name}: {point.y}

',this.compareFlag&&2==this.compareGraphType&&(n=' {series.name}: {point.y} ({point.change}%)

'));var k={scrollbar:{enabled:!1},chart:{type:this.series_type,zoomType:"x",resetZoomButton:{position:{x:-50,y:-45},theme:{height:25,padding:3}},spacingTop:12,spacingBottom:8,height:600,backgroundColor:this.chartcolor,events:{load:function(){if(!p){var e=s.getLabel("no_graph_data");s.startDate>s.endDate&&(e=s.getLabel("graph_period_start_incorrect")),this.renderer.text(e,400,140).css({fontSize:"18px"}).add()}s.$eventHub.emit("isLoadGraph")}}},title:{text:s.chart_name?s.chart_name:"TEXT",style:{color:s.chart_name?"#000000":"#FFFFFF",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"}},subtitle:{text:""},navigator:{enabled:!1,height:30,maskFill:"rgba(102,133,194,0.1)"},navigation:{buttonOptions:{height:38,width:38,symbolSize:18,symbolX:20,symbolY:20,x:-46,y:-12,symbolStrokeWidth:2,theme:{"stroke-width":1,stroke:"#e8e8e8",r:0,states:{hover:{stroke:"#9ba0b2"},select:{fill:"#d1e9e8"}}}}},time:{useUTC:!1},xAxis:[{labels:{xDateFormat:"%d.%m.%Y",style:{color:"#000000",fontSize:s.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},x:s.isMobile?20:-8},lineColor:"#FFFFFF",tickColor:"#FFFFFF",gridLineColor:"#e8e8e8",gridLineDashStyle:"Dash",gridLineWidth:1,gridZIndex:1,crosshair:{color:"#000000"}}],rangeSelector:{enabled:!1},credits:{enabled:!1},yAxis:t,tooltip:{split:!1,shared:!0,xDateFormat:"%A, %d %b %Y",crosshairs:!0,borderRadius:8,borderColor:"none",shadow:!1,backgroundColor:"#000000",pointFormat:n,style:{color:"#FFFFFF",fontFamily:"'Roboto', sans-serif",fontSize:"15px"},headerFormat:s.isMobile?'%replace%
':'
%replace%

',formatter:function(e){var t=s.customToltipFormatter(e,this);if(!1!==t)return t;var n="",r="",a="00:00";void 0!==this.points[0].point.xTitle?r=this.points[0].point.xTitle:(r=(n=s.timeZoneConvert(new Date(this.x))).toLocaleString(locale,{year:"numeric",month:"long",day:"numeric",weekday:"long"}),a=n.toLocaleTimeString(locale,{timeStyle:"short"}));var i=e.defaultFormatter.call(this,e);return i[0]&&("00:00"!==a&&(r+=" "+a),i[0]=i[0].replace("%replace%",r)),i}},legend:{symbolRadius:6,enabled:!1,align:"center",padding:12,symbolPadding:4,layout:"horizontal",borderColor:"transparent",itemStyle:{color:"#000000","font-weight":"500","font-family":"'Roboto', sans-serif"}},plotOptions:{series:{showInNavigator:!0,marker:{lineWidth:0},dataGrouping:{enabled:!1},turboThreshold:0}},exporting:{chartOptions:{navigator:{enabled:!1}},enabled:!1,sourceHeight:800},series:[]};i.length?k.series=i:k.series=[{name:d,type:this.series_type,step:u,data:l,tooltip:{valueSuffix:" "+a},color:this.data_color?this.data_color:"#5eb5e2",marker:{lineWidth:0,enabled:c,radius:c?8:2}}],o?this.callHighChartsOverturn(k):this.callHighCharts(k)},callHighCharts:function(e){if(void 0!==e.chart.type&&"column"===e.chart.type?e.xAxis.length?e.xAxis[0].ordinal=!0:e.xAxis.ordinal=!0:e.xAxis.length?e.xAxis[0].ordinal=!1:e.xAxis.ordinal=!1,(void 0===e.exporting||void 0===e.exporting.enabled||e.exporting.enabled)&&(void 0===e.exporting&&(e.exporting={}),e.exporting=this.getExportingOptions(e.exporting)),"map"===this.type_chart||"chart"===this.type_chart){if("map"===this.type_chart&&this.allow_delete_points)for(var t in e.series)void 0!==e.series[t].point&&e.series[t].point.events&&(e.series[t].point.events={select:this.selectGraphEvent,unselect:this.unselectGraphEvent});"map"===this.type_chart&&this.allow_label_points&&(e.plotOptions.scatter.dataLabels.enabled=this.mapLabels),this.chart=Z().chart(this.id,e)}else this.chart=Z().stockChart(this.id,e);this.chart.legend.display?this.customLegendData=[]:this.customLegendData=this.addCustomLegend(this.chart)},selectGraphEvent:function(e){this.viewGraphDelete||window.open(e.target.lnk),this.deletePoint=this.getSelectedPoints()},unselectGraphEvent:function(){this.deletePoint--},getSelectedPoints:function(){return this.chart.getSelectedPoints().length},removePoint:function(){this.chart.getSelectedPoints().forEach((function(e){e.remove()})),this.deletePoint=0},toggleMapLabels:function(){for(var e in this.mapLabels=!this.mapLabels,this.chart.update({plotOptions:{scatter:{dataLabels:{enabled:this.mapLabels}}}}),this.chart.series)this.chart.series[e].update()},timeZoneConvert:function(e){var t=e.getTimezoneOffset()+180,n=e.getTime()+60*t*1e3;return new Date(n)},addCustomLegend:function(e){var t=[];if("line"===e.options.chart.type||"column"===e.options.chart.type)for(var n in e.options.series){var r="";if(void 0!==e.options.series[n].customLegendData)for(var a in e.options.series[n].customLegendData)e.options.series[n].customLegendData[a].pageLink=e.options.series[n].customLegendData[a].entity&&0!==e.options.series[n].customLegendData[a].entity.id?this.getPageLink(e.options.series[n].customLegendData[a].entity):"",t.push(e.options.series[n].customLegendData[a]);else{var i,o;if(!e.options.series[n].entity)continue;if(void 0!==e.options.series[n].entity.name&&"spread"===e.options.series[n].entity.name)r=this.getLabel("spread");else{var s="";void 0!==e.options.series[n].entity.tgName&&""!==e.options.series[n].entity.tgName&&(s="(".concat(e.options.series[n].entity.tgName,")")),r=void 0!==e.options.series[n].entity.name&&""!==e.options.series[n].entity.name?this.compare_flag?"".concat(e.options.series[n].entity.name," ").concat(s):""!==e.options.series[n].name&&e.options.series[n].entity.name!==e.options.series[n].name?"".concat(e.options.series[n].entity.name," ").concat(s," - ").concat(e.options.series[n].name):"".concat(e.options.series[n].entity.name," ").concat(s):e.options.series[n].name}t.push({seriesName:r,pageLink:e.options.series[n].entity&&0!==e.options.series[n].entity.id?this.getPageLink(e.options.series[n].entity):"",entity:e.options.series[n].entity,color:null!==(i=e.options.series[n].color)&&void 0!==i?i:e.series[n].color,visible:null===(o=e.options.series[n].visible)||void 0===o||o})}}return t},getPageLink:function(e){if(void 0!==this.page_link[e.model]){var t=this.page_link[e.model].replace("%temp%",e.id);return t.includes(window.location.origin)?t:window.location.origin+t}return""},callHighChartsOverturn:function(e){e.xAxis.length?e.xAxis[0].ordinal=!0:e.xAxis.ordinal=!0,e.stockTools={gui:{enabled:!1}},e.chart.height=200,e.title={align:"left",text:e.series.length?e.series[0].name:"",style:{color:"#000000",fontSize:"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"}},e.yAxis[0].labels.style={color:"#000000",fontSize:this.isMobile?"12px":"15px",fontWeight:"600",fontFamily:"'Roboto', sans-serif"},e.yAxis[0].labels.x=this.isMobile?54:-8,this.chartOverturn=Z().stockChart(this.idOverturn,e),this.chartOverturn.legend.display?this.customLegendDataOverturn=[]:this.customLegendDataOverturn=this.addCustomLegend(this.chartOverturn)},createGraphForPdf:function(){var e=this;setTimeout((function(){var t=document.getElementById(e.id+"Container");oe().toPng(t,{bgcolor:"#FFFFFF",style:{padding:"0 10px"},width:t.offsetWidth+10,height:t.offsetHeight+10}).then((function(e){var t=new Image;t.src=e,document.getElementById("graphForPdf").innerHTML="",document.getElementById("graphForPdf").appendChild(t)}))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3)},exportCharts:function(e){var t=this;this.hideGraphElements();var n=document.getElementById(this.id+"Container");switch(e){case"print":oe().toPng(n,{bgcolor:"#FFFFFF",style:{padding:"0 10px",transform:"scale(0.8)","transform-origin":"top left"},width:n.offsetWidth+10,height:n.offsetHeight+20}).then((function(e){t.showGraphElements(),ae()({printable:e,type:"image",style:"@page { margin: 0; padding: 0; }"}),setTimeout((function(){t.isElementFullscreen&&(t.chart||t.chartOverturn)&&(t.chart&&t.chart.reflow(!1),t.chartOverturn&&t.chartOverturn.reflow(!1))}),1e3)}));break;case"png":oe().toPng(n,{bgcolor:"#FFFFFF",height:n.offsetHeight+20,style:{padding:"0 10px"},width:n.offsetWidth+10}).then((function(e){t.showGraphElements();var n=document.createElement("a");n.download="chart.png",n.href=e,n.click()}));break;case"jpeg":oe().toJpeg(n,{bgcolor:"#FFFFFF",height:n.offsetHeight+20,style:{padding:"0 10px"},width:n.offsetWidth+10}).then((function(e){t.showGraphElements();var n=document.createElement("a");n.download="chart.jpeg",n.href=e,n.click()}));break;case"pdf":oe().toCanvas(n,{bgcolor:"#FFFFFF",height:n.offsetHeight+20,style:{padding:"0 10px"},width:n.offsetWidth+10}).then((function(e){t.showGraphElements();var n=e.width/1.5,r=e.height/1.5,a=e.toDataURL("image/png"),i=new se.kH({format:[n,r],orientation:t.isMobile&&window.matchMedia("(orientation: portrait)").matches?"p":"l",unit:"pt"});i.addImage(a,"PNG",0,0,n,r),i.save("chart.pdf")}));break;case"svg":oe().toSvg(n,{bgcolor:"#FFFFFF",height:n.offsetHeight+20,style:{padding:"0 10px",transform:"scale(0.8)","transform-origin":"top left"},width:n.offsetWidth+10}).then((function(e){t.showGraphElements();var n=document.createElement("a");n.download="chart.svg",n.href=e,n.click()}))}},getExportingOptions:function(e){var t=this;return e.menuItemDefinitions={printChart:{onclick:function(){t.exportCharts("print")}},downloadPNG:{onclick:function(){t.exportCharts("png")}},downloadJPEG:{onclick:function(){t.exportCharts("jpeg")}},downloadPDF:{onclick:function(){t.exportCharts("pdf")}},downloadSVG:{onclick:function(){t.exportCharts("svg")}}},e},toggleGraphLogo:function(){this.isShowLogo=!this.isShowLogo,this.createGraphForPdf()},hideGraphElements:function(){var e=this.hideGraphElementsClasses.concat(this.hideGraphElementsClassesProp);for(var t in e){for(var n=document.getElementsByClassName(e[t]),r=0;r0){var a=document.getElementById(this.id);void 0!==this.chart.navigator?a.style.height="".concat(this.chart.chartHeight-this.chart.navigator.height-35,"px"):a.style.height="".concat(this.chart.chartHeight,"px")}}},showGraphElements:function(){var e=this.hideGraphElementsClasses.concat(this.hideGraphElementsClassesProp);for(var t in e){for(var n=document.getElementsByClassName(e[t]),r=0;r0)document.getElementById(this.id).style.height="".concat(this.chart.chartHeight,"px")}}}};const ce=(0,te.Z)(le,[["render",function(e,t,n,P,O,$){var j=(0,r.resolveComponent)("date-picker"),z=(0,r.resolveComponent)("app-tabs"),G=(0,r.resolveComponent)("app-graph-custom-legend");return O.noData?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(n.custom_class)},[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"points_panel",{},(function(){return["map"===n.type_chart?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[n.allow_label_points?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[O.mapLabels?((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:0,id:"cb_map_toggle_map_labels_hide",class:"btn_border_active_green mapLabels left",value:$.getLabel("toggle_map_labels_hide"),type:"button",onClick:t[0]||(t[0]=function(){return $.toggleMapLabels&&$.toggleMapLabels.apply($,arguments)})},null,8,i)):(0,r.createCommentVNode)("",!0),O.mapLabels?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:1,id:"cb_map_toggle_map_labels",class:"btn_border_action mapLabels left",value:$.getLabel("toggle_map_labels"),type:"button",onClick:t[1]||(t[1]=function(){return $.toggleMapLabels&&$.toggleMapLabels.apply($,arguments)})},null,8,o))],64)):(0,r.createCommentVNode)("",!0),n.allow_delete_points?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[O.viewGraphDelete?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("a",{href:"javascript:void(0)",class:"btn_red left",id:"removePoint",onClick:t[2]||(t[2]=function(){return $.removePoint&&$.removePoint.apply($,arguments)})},[(0,r.createTextVNode)((0,r.toDisplayString)($.getLabel("search_graph_remove_points"))+" — ",1),(0,r.createElementVNode)("span",{id:"selectedPoints",innerHTML:O.deletePoint},null,8,l)]),(0,r.createElementVNode)("a",{id:"cb_map_search_graph_remove_points_close",href:"javascript:void(0)",onClick:t[3]||(t[3]=function(e){return O.viewGraphDelete=!1}),class:"cross_lnk left"},[(0,r.createElementVNode)("span",c,(0,r.toDisplayString)($.getLabel("close")),1)])])):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,id:"cb_map_search_graph_delete_point",href:"javascript:void(0)",onClick:t[4]||(t[4]=function(e){return O.viewGraphDelete=!0}),class:(0,r.normalizeClass)(["left deletePoint",{btn_border_action:!O.viewGraphDelete,btn_border_active:O.viewGraphDelete}])},(0,r.toDisplayString)($.getLabel("search_graph_delete_mode")),3))],64)):(0,r.createCommentVNode)("",!0),d],64)):(0,r.createCommentVNode)("",!0)]})),(0,r.withDirectives)((0,r.createElementVNode)("div",u,[n.useCustomDatepicker?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",m,(0,r.toDisplayString)($.getLabel("from")),1),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(j,{id:"cb_datepicker_input_sm",name:"graph_start_date",modelValue:$.graphStartDate,"onUpdate:modelValue":t[5]||(t[5]=function(e){return $.graphStartDate=e}),format:n.date_format,"input-class":"",clearable:!1,lang:O.datepickerLang,"first-day-of-week":1},null,8,["modelValue","format","lang"])])]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("div",v,(0,r.toDisplayString)($.getLabel("to")),1),(0,r.createElementVNode)("div",y,[(0,r.createVNode)(j,{id:"cb_graph_end_date",name:"graph_end_date",modelValue:$.graphEndDate,"onUpdate:modelValue":t[6]||(t[6]=function(e){return $.graphEndDate=e}),format:n.date_format,"input-class":"datepicker_input_sm",clearable:!1,lang:O.datepickerLang,"first-day-of-week":1},null,8,["modelValue","format","lang"])])])])),n.tabs_graph.length?((0,r.openBlock)(),(0,r.createBlock)(z,{key:1,id:"cb_chart_period",tabs:n.tabs_graph,name:"chartPeriod_"+n.id,class_value:"selectPeriodNew"},null,8,["tabs","name"])):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,n.show_period&&"map"!==n.type_chart]]),b]),(0,r.renderSlot)(e.$slots,"panel"),k,n.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",_,(0,r.toDisplayString)(n.description),1)):(0,r.createCommentVNode)("",!0),w,(0,r.renderSlot)(e.$slots,"message"),x,"map"!==n.type_chart?(0,r.renderSlot)(e.$slots,"comparsion",{key:1}):(0,r.createCommentVNode)("",!0),E,O.viewGraphDelete?((0,r.openBlock)(),(0,r.createElementBlock)("div",D,(0,r.toDisplayString)($.getLabel("search_graph_ctrl")),1)):(0,r.createCommentVNode)("",!0),"map"===n.type_chart?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,(0,r.toDisplayString)($.getLabel("select_section")),1)):(0,r.createCommentVNode)("",!0),B,(0,r.createElementVNode)("div",{id:n.id+"Container",class:"graphContainer"},[(0,r.renderSlot)(e.$slots,"guides"),(0,r.renderSlot)(e.$slots,"clear"),(0,r.renderSlot)(e.$slots,"fullscreen"),(0,r.createElementVNode)("div",{id:n.id},null,8,T),O.isShowLogo&&!n.hideShowLogoBtn?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:e.getWatermarkUrl(),class:"watermarkGraph",style:(0,r.normalizeStyle)({top:$.watermarkTop})},null,12,L)):(0,r.createCommentVNode)("",!0),O.customLegendData.length?((0,r.openBlock)(),(0,r.createBlock)(G,{key:1,"disable-toggle-series":n.customLegendDisableToggleSeries,labels:n.labels,"is-overturn":!1,"legend-data":O.customLegendData},null,8,["disable-toggle-series","labels","legend-data"])):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("div",N,[(0,r.createElementVNode)("div",{id:n.idOverturn},null,8,V),O.customLegendDataOverturn.length?((0,r.openBlock)(),(0,r.createBlock)(G,{key:0,"disable-toggle-series":n.customLegendDisableToggleSeries,labels:n.labels,"is-overturn":!0,"legend-data":O.customLegendDataOverturn},null,8,["disable-toggle-series","labels","legend-data"])):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,$.isOverturn&&!O.isEmptyOverturn]])],8,C),M,O.graphRenderErrorMsg?((0,r.openBlock)(),(0,r.createElementBlock)("div",F,[(0,r.createElementVNode)("span",{id:"cb_graph_render_error_msg",class:"left_10 alertRed",innerHTML:O.graphRenderErrorMsg},null,8,I)])):(0,r.createCommentVNode)("",!0),n.hideShowLogoBtn?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("label",A,[(0,r.createElementVNode)("input",{type:"checkbox",onClick:t[7]||(t[7]=function(e){return $.toggleGraphLogo()})}),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)([{active:O.isShowLogo},"check"])},null,2),(0,r.createElementVNode)("span",H,(0,r.toDisplayString)($.getLabel("show_logo")),1)]))],2))}]]);var de=ce},57681:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(70821),a=["innerHTML"],i={key:0,class:"load_data_wrapper"},o=["href","target"],s=["innerHTML"],l=["innerHTML"],c=["href"],d=(0,r.createElementVNode)("img",{src:"/img/icons/lock_white.svg"},null,-1),u=["innerHTML"];n(74916),n(15306),n(47042),n(66992),n(41539),n(78783),n(33948),n(60285),n(41637);var h=n(9669),p=n.n(h),m=(n(62602),{name:"AppLoadData",props:{list:"",class_value:"",ttl:"",target:{default:"_self",type:String}},data:function(){return{show:!1,userAuth:userAuth,userLevel:userAccessLevel,seoLinkToReg:"undefined"!=typeof seoLinkToRegForAsterisks?seoLinkToRegForAsterisks:""}},computed:{labels:function(){return this.$store.state.labels},labelClose:function(){return this.$store.state.labels.close?this.$store.state.labels.close:"{{close}}"}},methods:{replaceInPhone:function(e){return e.replace(",",",
")},ShowList:function(){this.show=!this.show},getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t},exportStart:function(e){if(1077!=this.userLevel);else if("excel"==e){var t=new Date(this.$root.excelStartDate),n=new Date(this.$root.excelEndDate),r={beginDate:t=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2),endDate:n=n.getFullYear()+"-"+("0"+(n.getMonth()+1)).slice(-2)+"-"+("0"+n.getDate()).slice(-2),indexName:this.$root.indexName,indexId:this.$root.indexId};p()({method:"post",url:"/exportToExcel/indexes/",responseType:"blob",data:r}).then((function(e){if(e.data.size&&(!e.data.size||"text/html"!=e.data.type)){var t=new Blob([e.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=window.URL.createObjectURL(t),a=document.createElement("a");a.href=n,a.setAttribute("download",r.indexName+"_"+r.beginDate+"_"+r.endDate),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)}}))}},hideAsterisks:function(){this.show=!1},showAsterisks:function(){this.show=!0}}});const f=(0,n(83744).Z)(m,[["render",function(e,t,n,h,p,m){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["load_data",n.class_value])},[(0,r.createElementVNode)("div",{class:"swtch",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(){return m.ShowList&&m.ShowList.apply(m,arguments)}),["prevent"])),innerHTML:n.ttl},null,8,a),e.userAuth?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("ul",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.list,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",null,[""!=e.url?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.url,target:n.target,class:"item"},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.class),innerHTML:m.replaceInPhone(e.ttl)},null,10,s)],8,o)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,class:"item_txt",innerHTML:m.replaceInPhone(e.ttl)},null,8,l))])})),256)),(0,r.createElementVNode)("li",{onClick:t[1]||(t[1]=(0,r.withModifiers)((function(){return m.ShowList&&m.ShowList.apply(m,arguments)}),["prevent"])),class:"cross_lnk"},(0,r.toDisplayString)(m.labelClose),1)],512)),[[r.vShow,e.show]]):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,href:e.seoLinkToReg,class:"getAuthBlock",onMouseover:t[2]||(t[2]=function(){return m.showAsterisks&&m.showAsterisks.apply(m,arguments)}),onMouseleave:t[3]||(t[3]=function(){return m.hideAsterisks&&m.hideAsterisks.apply(m,arguments)}),onTouchstart:t[4]||(t[4]=function(){return m.showAsterisks&&m.showAsterisks.apply(m,arguments)})},[d,(0,r.createElementVNode)("span",{innerHTML:m.getLabel("full_version")},null,8,u)],40,c)),[[r.vShow,e.show]])],2)}]]);var g=f},22086:function(e,t,n){n.d(t,{Z:function(){return J}});var r=n(70821),a={key:0,src:"/img/ui-anim_basic_16x16.gif",class:"loader"},i=["placeholder"],o={class:"swtchTab"},s={key:0},l=["innerHTML"],c={class:"count"},d={key:1},u=["innerHTML"],h={class:"count"},p={key:2},m=["innerHTML"],f={class:"count"},g={key:3},v=["innerHTML"],y={class:"count"},b={key:4},k=["innerHTML"],_={class:"count"},w=(0,r.createElementVNode)("div",{class:"clear"},null,-1),x=(0,r.createElementVNode)("div",{class:"clear"},null,-1);n(41539),n(54747),n(74916),n(15306),n(4723),n(24603),n(39714),n(73210),n(64765),n(66992),n(88674),n(78783),n(33948),n(82526),n(41817),n(32165),n(72443),n(39341),n(73706),n(10408),n(30489),n(68309),n(47042);var E=n(9669),D=n.n(E),S=(n(29254),{class:"list"}),B=["href","onClick"],C=["innerHTML"],T=(0,r.createElementVNode)("br",null,null,-1),L=["innerHTML"],N=(0,r.createElementVNode)("span",null,null,-1),V={class:"status"},M={key:1},F=["innerHTML"],I=(0,r.createElementVNode)("div",{class:"bottom_20"},null,-1);n(9653);var A={name:"AutocompleteListElement",props:{list:{type:Array,function:function(){return{}}},type:{type:String,default:""},redirectToEntity:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},link:{type:String,default:""},count:{type:Number,default:0},error:{type:String,default:""},label_not_found:{type:String,default:""}},computed:{errorMessage:function(){return 0==this.count?this.label_not_found?this.label_not_found:this.$store.state.labels._autocomplete_not_found:""!=this.error&&0!=this.count?this.error:void 0}},methods:{selectItem:function(e,t){this.redirectToEntity?window.location.href=this.link+t.id+"/":this.$emit("selectItem",e,t)}}},H=n(83744);var P=(0,H.Z)(A,[["render",function(e,t,n,a,i,o){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("ul",S,[n.list.length>0?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.list,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e.id},[(0,r.createElementVNode)("a",{href:n.link+e.id+"/",onClick:(0,r.withModifiers)((function(t){return o.selectItem(n.type,e)}),["prevent"]),class:"item"},[(0,r.createElementVNode)("span",{innerHTML:e.ttl},null,8,C),T,void 0!==e.ticker?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(e.ticker,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("span",{class:"status",innerHTML:e},null,8,L),N])})),256)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",V,(0,r.toDisplayString)(e.status),1)],8,B)])})),128)):o.errorMessage?((0,r.openBlock)(),(0,r.createElementBlock)("li",M,[(0,r.createElementVNode)("p",{style:{"padding-left":"20px"},class:"mainAutocompleteErrorMsg",innerHTML:o.errorMessage},null,8,F)])):(0,r.createCommentVNode)("",!0)]),I],512)),[[r.vShow,n.visible]])}]]);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function $(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ $=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),s=new D(a||[]);return r(o,"_invoke",{value:_(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function h(){}function p(){}function m(){}var f={};l(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,i)&&(f=v);var y=m.prototype=h.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(r,i,o,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==O(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){a("next",e,o,s)}),(function(e){a("throw",e,o,s)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return B()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var a=d(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function j(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){j(i,r,a,o,s,"next",e)}function s(e){j(i,r,a,o,s,"throw",e)}o(void 0)}))}}var G=D().CancelToken,R=null,Z=null,Y=null,W=null,q={name:"AppMainAutocomplete",components:{AutocompleteListElement:P},props:{class_prefix:{type:String,default:""},search_hint:{type:String,default:""},search_bonds:{type:Boolean,default:!0},search_stocks:{type:Boolean,default:!0},search_etf:{type:Boolean,default:!0},search_indexes:{type:Boolean,default:!0},search_company:{type:Boolean,default:!0},redirect_to_entity:{type:Boolean,default:!0},clear_btn_show:{type:Boolean,default:!1},label_not_found:{type:String,default:""},show_empty_field:{type:Boolean,default:!0},target_search:{type:String,default:""}},data:function(){return{bondSearchError:"",stockSearchError:"",indexSearchError:"",companySearchError:"",etfSearchError:"",countBond:0,countStock:0,countEtf:0,countIndex:0,countCompanies:0,lengthBond:0,lengthStock:0,lengthEtf:0,lengthIndex:0,lengthCompanies:0,bondList:!0,stockList:!1,etfList:!1,indexList:!1,companyList:!1,bond:[],stock:[],etf:[],index:[],company:[],resultSearch:!1,searchTtl:"",emptyResult:!1,hoverAutocompl:!1,loader:!1,timeout:null}},computed:{labels:function(){return this.$store.state.labels}},mounted:function(){window.addEventListener("click",this.openActive)},methods:{activeList:function(e){this.bondList=!1,this.stockList=!1,this.indexList=!1,this.companyList=!1,this.etfList=!1,this[e]=!0},wrapperText:function(e){var t=this;e.forEach((function(e){if(e.ttl=t.coincidence(e.ttl),void 0!==e.ticker&&e.ticker.length>0){var n=[];e.ticker.forEach((function(e){n.push(t.coincidence(e))})),e.ticker=n}}))},coincidence:function(e){var t=this.searchTtl.toLowerCase(),n=e.replace(/<\/?[^>\\(]+>/g,""),r=n.match(new RegExp(t.replace(/\(/g,"\\("),"ig"));return null!=r&&r.forEach((function(e){n=n.replace(e,''+e+"")})),n=""+n+""},inputSearchItem:function(){var e=this;null!==e.timeout&&clearTimeout(e.timeout),e.searchTtl.trim().length>2?(e.loader=!0,Z&&Z(),Y&&Y(),R&&R(),W&&W(),e.timeout=setTimeout((function(){e.search()}),300)):(e.resultSearch=!1,e.loader=!1),this.$emit("update:modelValue",this.searchTtl)},openActive:function(){this.hoverAutocompl?this.resultSearch=!0:this.resultSearch=!1},requestSuggests:function(){var e=this;return z($().mark((function t(){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.bondsSuggest(e.searchTtl),e.stocksSuggest(e.searchTtl),e.etfSuggest(e.searchTtl),e.indexesSuggest(e.searchTtl),e.companySuggest(e.searchTtl)]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()},search:function(){var e=this;return z($().mark((function t(){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.show_empty_field||(e.resultSearch=!1),!(e.searchTtl.length>2)){t.next=9;break}return t.next=4,e.requestSuggests();case 4:e.countBond?e.activeList("bondList"):e.countStock?e.activeList("stockList"):e.countIndex?e.activeList("indexList"):e.countCompanies?e.activeList("companyList"):e.countEtf?e.activeList("etfList"):e.emptyResult=!0,e.target_search&&!e.show_empty_field&&e["length"+e.target_search]>0&&(e.resultSearch=!0),e.loader=!1,t.next=16;break;case 9:e.resultSearch=!1,e.emptyResult=!1,e.bond.forEach((function(e){e.ttl=e.ttl.replace(/<\/?[^>]+>/g,"")})),e.stock.forEach((function(e){e.ttl=e.ttl.replace(/<\/?[^>]+>/g,"")})),e.index.forEach((function(e){e.ttl=e.ttl.replace(/<\/?[^>]+>/g,"")})),e.company.forEach((function(e){e.ttl=e.ttl.replace(/<\/?[^>]+>/g,"")})),e.etf.forEach((function(e){e.ttl=e.ttl.replace(/<\/?[^>]+>/g,"")}));case 16:case"end":return t.stop()}}),t)})))()},bondsSuggest:function(e){var t=this;return z($().mark((function n(){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.bond=[],t.countBond=t.lengthBond=0,n.next=4,D().post("/api/suggest/bonds/",encodeURIComponent(e),{cancelToken:new G((function(e){R=e}))}).then((function(e){if(void 0!==e.data.items){t.show_empty_field&&(t.resultSearch=!0),t.emptyResult=!1;var n=e.data.items.length;if(t.lengthBond=n,e.data.counter_title?t.countBond=e.data.counter_title:n&&(t.countBond=n),n)return t.bond=e.data.items,t.wrapperText(t.bond),t.activeList("bondList"),!0;e.data.search_error&&(t.bondSearchError=e.data.search_error)}})).catch((function(e){}));case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n)})))()},indexesSuggest:function(e){var t=this;return z($().mark((function n(){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.index=[],t.countIndex=t.lengthIndex=0,n.next=4,D().post("/api/suggest/indexes/",encodeURIComponent(e),{cancelToken:new G((function(e){Z=e}))}).then((function(e){if(void 0!==e.data.items){t.show_empty_field&&(t.resultSearch=!0),t.emptyResult=!1;var n=e.data.items.length;if(t.lengthIndex=n,e.data.counter_title?t.countIndex=e.data.counter_title:n&&(t.countIndex=n),n)return t.index=e.data.items,t.wrapperText(t.index),t.indexList=!1,!0;e.data.search_error&&(t.indexSearchError=e.data.search_error,t.indexList=!0)}})).catch((function(e){}));case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n)})))()},companySuggest:function(e){var t=this;return z($().mark((function n(){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.company=[],t.countCompanies=t.lengthCompanies=0,n.next=4,D().post("/api/suggest/companies/",encodeURIComponent(e),{cancelToken:new G((function(e){W=e}))}).then((function(e){if(void 0!==e.data.items){t.show_empty_field&&(t.resultSearch=!0),t.emptyResult=!1;var n=e.data.items.length;if(t.lengthCompanies=n,e.data.counter_title?t.countCompanies=e.data.counter_title:n&&(t.countCompanies=n),n)return t.company=e.data.items,t.wrapperText(t.company),t.companyList=!1,!0;e.data.search_error&&(t.companySearchError=e.data.search_error,t.companyList=!0)}})).catch((function(e){}));case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n)})))()},stocksSuggest:function(e){var t=this;return z($().mark((function n(){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.stock=[],t.countStock=t.lengthStock=0,n.next=4,D().post("/api/suggest/stocks/",encodeURIComponent(e),{cancelToken:new G((function(e){Y=e}))}).then((function(e){if(void 0!==e.data.items){t.show_empty_field&&(t.resultSearch=!0),t.emptyResult=!1;var n=e.data.items.length;if(t.lengthStock=n,e.data.counter_title?t.countStock=e.data.counter_title:n&&(t.countStock=n),n)return t.stock=e.data.items,t.wrapperText(t.stock),t.stockList=!1,!0;""!==e.data.search_error&&(t.stockSearchError=e.data.search_error,t.stockList=!0)}})).catch((function(e){}));case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n)})))()},etfSuggest:function(e){var t=this;return z($().mark((function n(){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.etf=[],t.countEtf=t.lengthEtf=0,n.next=4,D().post("/api/suggest/etf/",encodeURIComponent(e),{cancelToken:new G((function(e){Y=e}))}).then((function(e){if(void 0!==e.data.items){t.show_empty_field&&(t.resultSearch=!0),t.emptyResult=!1;var n=e.data.items.length;if(t.lengthEtf=n,e.data.counter_title?t.countEtf=e.data.counter_title:n&&(t.countEtf=n),n)return t.etf=e.data.items,t.wrapperText(t.etf),t.etfList=!1,!0;""!==e.data.search_error&&(t.etfSearchError=e.data.search_error,t.etfList=!0)}})).catch((function(e){}));case 4:return n.abrupt("return",!1);case 5:case"end":return n.stop()}}),n)})))()},selectItem:function(e,t){Z&&Z(),Y&&Y(),R&&R(),W&&W(),this.$eventHub.emit("MainAutocmplSelect",{type:e,id:t.id,ttl:t.ttl}),this.hoverAutocompl=!1,this.searchTtl=t.ttl.replace(/<\/?[^>]+(>|$)/g,"")},clear:function(e){this.searchTtl="",this.inputSearchItem()}}};const U=(0,H.Z)(q,[["render",function(e,t,n,E,D,S){var B=(0,r.resolveComponent)("autocomplete-list-element");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["mainAutocomplete",n.class_prefix?n.class_prefix+"Main":""])},[D.loader?((0,r.openBlock)(),(0,r.createElementBlock)("img",a)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",placeholder:n.search_hint?n.search_hint:S.labels._search_hint,class:(0,r.normalizeClass)(["main_search",n.class_prefix?n.class_prefix+"Input":""]),"onUpdate:modelValue":t[0]||(t[0]=function(e){return D.searchTtl=e}),id:"mainSearch",onKeyup:t[1]||(t[1]=function(){return S.inputSearchItem&&S.inputSearchItem.apply(S,arguments)})},null,42,i),[[r.vModelText,D.searchTtl]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:t[2]||(t[2]=function(){return S.clear&&S.clear.apply(S,arguments)}),class:"clearStock"},"×",512),[[r.vShow,n.clear_btn_show&&D.searchTtl.length]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"result",onMouseover:t[8]||(t[8]=function(e){return D.hoverAutocompl=!0}),onMouseleave:t[9]||(t[9]=function(e){return D.hoverAutocompl=!1})},[(0,r.createElementVNode)("ul",o,[n.search_bonds?((0,r.openBlock)(),(0,r.createElementBlock)("li",s,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:(0,r.normalizeClass)(["item",{active:D.bondList}]),onClick:t[3]||(t[3]=(0,r.withModifiers)((function(e){return S.activeList("bondList")}),["prevent"]))},[(0,r.createElementVNode)("span",{innerHTML:S.labels._bonds_item},null,8,l),(0,r.createElementVNode)("sup",c,(0,r.toDisplayString)(D.countBond),1)],2)])):(0,r.createCommentVNode)("",!0),n.search_stocks?((0,r.openBlock)(),(0,r.createElementBlock)("li",d,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:(0,r.normalizeClass)(["item",{active:D.stockList||!n.search_bonds}]),onClick:t[4]||(t[4]=(0,r.withModifiers)((function(e){return S.activeList("stockList")}),["prevent"]))},[(0,r.createElementVNode)("span",{innerHTML:S.labels._stocks_item},null,8,u),(0,r.createElementVNode)("sup",h,(0,r.toDisplayString)(D.countStock),1)],2)])):(0,r.createCommentVNode)("",!0),n.search_indexes?((0,r.openBlock)(),(0,r.createElementBlock)("li",p,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:(0,r.normalizeClass)(["item",{active:D.indexList||!n.search_stocks&&!n.search_bonds}]),onClick:t[5]||(t[5]=(0,r.withModifiers)((function(e){return S.activeList("indexList")}),["prevent"]))},[(0,r.createElementVNode)("span",{innerHTML:S.labels._indexes_item},null,8,m),(0,r.createElementVNode)("sup",f,(0,r.toDisplayString)(D.countIndex),1)],2)])):(0,r.createCommentVNode)("",!0),n.search_company?((0,r.openBlock)(),(0,r.createElementBlock)("li",g,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:(0,r.normalizeClass)(["item",{active:D.companyList||!n.search_stocks&&!n.search_bonds&&!n.search_indexes}]),onClick:t[6]||(t[6]=(0,r.withModifiers)((function(e){return S.activeList("companyList")}),["prevent"]))},[(0,r.createElementVNode)("span",{innerHTML:S.labels._companies_item},null,8,v),(0,r.createElementVNode)("sup",y,(0,r.toDisplayString)(D.countCompanies),1)],2)])):(0,r.createCommentVNode)("",!0),n.search_etf?((0,r.openBlock)(),(0,r.createElementBlock)("li",b,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:(0,r.normalizeClass)(["item",{active:D.etfList||!n.search_stocks&&!n.search_bonds&&!n.search_indexes&&!n.search_company}]),onClick:t[7]||(t[7]=(0,r.withModifiers)((function(e){return S.activeList("etfList")}),["prevent"]))},[(0,r.createElementVNode)("span",{innerHTML:S.labels._etfs_item},null,8,k),(0,r.createElementVNode)("sup",_,(0,r.toDisplayString)(D.countEtf),1)],2)])):(0,r.createCommentVNode)("",!0)]),w,n.search_bonds?((0,r.openBlock)(),(0,r.createBlock)(B,{key:0,type:"bond",link:"/bonds/",list:D.bond,visible:D.bondList,count:parseInt(D.countBond,10),error:D.bondSearchError,onSelectItem:S.selectItem,"redirect-to-entity":n.redirect_to_entity,label_not_found:n.label_not_found},null,8,["list","visible","count","error","onSelectItem","redirect-to-entity","label_not_found"])):(0,r.createCommentVNode)("",!0),n.search_stocks?((0,r.openBlock)(),(0,r.createBlock)(B,{key:1,type:"stock",link:"/stocks/",list:D.stock,visible:D.stockList||!n.search_bonds,count:parseInt(D.countStock,10),error:D.stockSearchError,onSelectItem:S.selectItem,"redirect-to-entity":n.redirect_to_entity,label_not_found:n.label_not_found},null,8,["list","visible","count","error","onSelectItem","redirect-to-entity","label_not_found"])):(0,r.createCommentVNode)("",!0),n.search_indexes?((0,r.openBlock)(),(0,r.createBlock)(B,{key:2,type:"index",link:"/indexes/",list:D.index,visible:D.indexList||!n.search_stocks&&!n.search_bonds,count:parseInt(D.countIndex,10),error:D.indexSearchError,onSelectItem:S.selectItem,"redirect-to-entity":n.redirect_to_entity,label_not_found:n.label_not_found},null,8,["list","visible","count","error","onSelectItem","redirect-to-entity","label_not_found"])):(0,r.createCommentVNode)("",!0),n.search_company?((0,r.openBlock)(),(0,r.createBlock)(B,{key:3,type:"company",link:"/company/",list:D.company,visible:D.companyList||!n.search_stocks&&!n.search_bonds&&!n.search_indexes,error:D.companySearchError,onSelectItem:S.selectItem,"redirect-to-entity":n.redirect_to_entity,count:parseInt(D.countCompanies,10),label_not_found:n.label_not_found},null,8,["list","visible","error","onSelectItem","redirect-to-entity","count","label_not_found"])):(0,r.createCommentVNode)("",!0),n.search_etf?((0,r.openBlock)(),(0,r.createBlock)(B,{key:4,type:"etf",link:"/etf/",list:D.etf,visible:D.etfList||!n.search_stocks&&!n.search_bonds&&!n.search_indexes&&!n.search_company,error:D.etfSearchError,onSelectItem:S.selectItem,"redirect-to-entity":n.redirect_to_entity,count:parseInt(D.countEtf,10),label_not_found:n.label_not_found},null,8,["list","visible","error","onSelectItem","redirect-to-entity","count","label_not_found"])):(0,r.createCommentVNode)("",!0),x],544),[[r.vShow,D.resultSearch]])],2)}]]);var J=U},26407:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(70821),a=["id","innerHTML"];var i={name:"AppMessage",props:{id:{type:String,default:""},identif:{type:String,default:""}},data:function(){return{message:"",type:"",timeout:3e3,show:!1}},created:function(){this.$eventHub.on("message",this.activate)},methods:{activate:function(e){var t=e.id?e.id:"";if(this.id==t){this.message=e.message,this.type=e.type?e.type:"alertGreen",this.timeout=e.timeout?e.timeout:3e3;var n=this;n.show=!0,setTimeout((function(){n.show=!1}),n.timeout)}}}};var o=(0,n(83744).Z)(i,[["render",function(e,t,n,i,o,s){return e.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:n.identif,class:(0,r.normalizeClass)(e.type),innerHTML:e.message},null,10,a)):(0,r.createCommentVNode)("",!0)}]])},48417:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(70821),a={key:0,class:"paging"},i={key:0},o={key:1},s={key:2},l=[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item"},"...",-1)],c={key:3},d={key:4},u={href:"javascript:void(0);",class:"item active"},h={key:5},p={key:6},m={key:7},f=[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item"},"...",-1)],g={key:8},v={key:9};n(9653),n(68309);var y={name:"AppPaging",props:{page:{type:Number,required:!0,default:1},total:{type:Number,required:!0,default:0},limit:{type:Number,required:!1,default:30},name:{type:String,required:!1,default:""}},data:function(){return{}},computed:{lastPage:function(){return Math.floor(this.xTotal/this.limit)+1},xTotal:function(){return 0===this.total?1:this.total-1}},methods:{setPage:function(e){""===this.name?this.$eventHub.emit("setPage",e):this.$eventHub.emit("setPage",{page:e,name:this.name})}}};var b=(0,n(83744).Z)(y,[["render",function(e,t,n,y,b,k){return 1!=k.lastPage&&n.total>0?((0,r.openBlock)(),(0,r.createElementBlock)("ul",a,[n.page>1?((0,r.openBlock)(),(0,r.createElementBlock)("li",i,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(e){return k.setPage(1)}),["prevent"]))},"«")])):(0,r.createCommentVNode)("",!0),n.page>3?((0,r.openBlock)(),(0,r.createElementBlock)("li",o,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item",onClick:t[1]||(t[1]=(0,r.withModifiers)((function(e){return k.setPage(1)}),["prevent"]))},"1")])):(0,r.createCommentVNode)("",!0),n.page>4?((0,r.openBlock)(),(0,r.createElementBlock)("li",s,l)):(0,r.createCommentVNode)("",!0),n.page>2?((0,r.openBlock)(),(0,r.createElementBlock)("li",c,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item",onClick:t[2]||(t[2]=(0,r.withModifiers)((function(e){return k.setPage(n.page-2)}),["prevent"]))},(0,r.toDisplayString)(n.page-2),1)])):(0,r.createCommentVNode)("",!0),n.page>1?((0,r.openBlock)(),(0,r.createElementBlock)("li",d,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"item",onClick:t[3]||(t[3]=(0,r.withModifiers)((function(e){return k.setPage(n.page-1)}),["prevent"]))},(0,r.toDisplayString)(n.page-1),1)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("li",null,[(0,r.createElementVNode)("a",u,(0,r.toDisplayString)(n.page),1)]),n.page0?this.limit:this.data.filter((function(e){return!e.hidden})).length,this.show_tr=!1)},deep:!0},sort:function(e){this.sort_field=e},order:function(e){this.sort_order=e}},computed:{label_show_more:function(){return void 0!==this.$store.state.labels.show_more?this.$store.state.labels.show_more:"Show more"},label_hide:function(){return void 0!==this.$store.state.labels.hide?this.$store.state.labels.hide:"Hide"},isSubstringTableType:function(){return this.substrings.length>0},isPrestringTableType:function(){return this.prestrings.length>0},header:function(){if(Object.keys(this.fields_labels).length)return this.fields_labels;var e={};for(var t in this.columns)e[this.columns[t]]=this.getFieldLabel(this.columns[t]);return e},columns:function(){if(this.log("columns start"),this.colspan=this.fields.length,this.fields){if(this.no_hidden_empty_cols)return this.log("columns finish no_hidden_empty_cols"),this.fields;var e={};for(var t in this.body)for(var n in this.fields){var r=this.body[t].data[this.fields[n]];(this.never_hidden_empty_cols_list.length>0&&this.never_hidden_empty_cols_list.includes(this.fields[n])||r&&"0"!==r)&&(e[n]=this.fields[n])}var a=Object.values(e);return this.colspan=a.length,this.checkbox&&++this.colspan,this.group&&(this.arrow_adaptive||this.arrow_screen)&&this.substrings.length>0&&++this.colspan,a}return this.log("columns finish"),this.fields},body:function(){this.log("body start");var e=this,t=[];for(var n in e.data_ext.length?t=e.data_ext:e.data.filter((function(e){return!e.hidden})).length&&(t=e.data.filter((function(e){return!e.hidden})).map((function(e){var t={data:e};return e.class&&(t.class=e.class),e.show&&(t.show=e.show),e.colspan&&(t.colspan=e.colspan),t}))),t)for(var r in t[n].data)/\.numeric$/.test(r)||(t[n].data[r]=e.field_customize(r,t[n].data));return this.log("body finish"),t},heightH:function(){return this.heightHead},heightB:function(){return this.heightBody},heightBGPr:function(){return this.heightBodyGroupPr},heightBGNx:function(){return this.heightBodyGroupNx},width:function(){return""==this.widthDiv?"":this.widthDiv+"px"},widthScreen:function(){return""==this.widthTd?"":this.widthTd+"px"},widthFull:function(){return this.widthTable},prev:function(){for(var e in this.body)if(this.body[e].show&&"prev"==this.body[e].show)return!0;return!1},next:function(){for(var e in this.body)if(this.body[e].show&&"next"==this.body[e].show)return!0;return!1},heightBP:function(){return this.heightBPrestring}},mounted:function(){this.log("mounted start");var e=this;window.addEventListener("resize",e.getWindowWidth),window.addEventListener("scroll",e.scrollPage),e.$refs.table_wrapper.addEventListener("scroll",e.scrollTable),e.$nextTick((function(){e.getWindowWidth()})),e.limit>0?e.innerLimit=e.limit:e.innerLimit=this.data.length,this.log("mounted finish")},created:function(){this.timer=(new Date).getTime()/1e3,this.log("created start"),this.collapse&&this.body.forEach((function(e){e.show_group=!0})),this.widthOld=window.innerWidth,this.$resizeTable.on("refreshTable",this.getWindowWidth,scroll),this.colspan=this.columns.length,this.checkbox&&++this.colspan,this.log("created finish")},methods:{setActiveColor:function(e){this.activeClickRow=e},getTitle:function(e){return this.cell_title?"object"===ft(e)&&null!=e?void 0!==e.ttl?e.ttl:e:/app-asterisks/.test(e)?"":String(e).replace(/( |<([^>]+)>)/gi," "):""},setFullDescrTableMobile:function(e){this.textFullDescrTableMobile=e,this.showFullDescrTableMobile=!0},scrollTable:function(){this.$refs.fixedHeadTableRight.scrollLeft=this.$refs.table_wrapper.scrollLeft},switchGroupList:function(e){for(var t=this,n="",r=0;rthis.tableHB?(this.fixedThead=!0,this.$refs.fixedHeadTableRight.scrollLeft=this.$refs.table_wrapper.scrollLeft):this.fixedThead=!1},startScrollR:function(){this.stopScroll();var e=this,t=e.$refs.table_wrapper,n=e.$refs.fixedHeadTableRight,r=t.scrollLeft;e.arrow_screen_left=!0,this.timerRight=setInterval((function(){if((r+=5)>e.maxScrollTable)return e.arrow_screen_right=!1,t.scrollLeft=e.maxScrollTable,n.scrollLeft=e.maxScrollTable,void clearTimeout(e.timerRight);t.scrollLeft=r,e.fixedThead&&(n.scrollLeft=r)}),1)},startScrollL:function(){this.stopScroll();var e=this,t=e.$refs.table_wrapper,n=e.$refs.fixedHeadTableRight,r=t.scrollLeft;e.arrow_screen_right=!0,this.timerLeft=setInterval((function(){if((r-=5)<5)return e.arrow_screen_left=!1,t.scrollLeft=0,n.scrollLeft=0,void clearTimeout(e.timerLeft);t.scrollLeft=r,e.fixedThead&&(n.scrollLeft=r)}),1)},stopScroll:function(){clearTimeout(this.timerLeft),clearTimeout(this.timerRight)},scrollTableRight:function(){this.index1&&(this.index--,this.indent=this.indent+this.widthTd)},getWindowWidth:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.no_resize_rows){this.log("getWindowWidth start");var t=this;this.height_body=0,this.heightHead="",this.heightBody=[],this.heightBPrestring=[],this.heightBodyGroupPr="",this.heightBodyGroupNx="",this.arrow_adaptive=!1,this.forFixedTh=[],this.forFixedTh.push(0),this.$refs.fixedHeadTableRight.scrollLeft=0,this.$refs.table_wrapper.scrollLeft=0,t.widthOld===window.innerWidth&&!1!==e||(t.index=1,t.indent=0,t.widthOld=window.innerWidth),window.innerWidth<=680?(t.arrow_screen=!1,t.arrow_adaptive=!0,t.widthTd=parseInt(t.$refs.tableCntrl.clientWidth/2),t.widthDiv=this.widthTd-10,t.heightHead=t.headScroll.clientHeight-10+"px"):(t.index=1,t.indent=0,t.widthTd="",t.widthDiv="",t.widthTable="",t.$refs.table_scroll.clientWidth>t.$refs.table_wrapper.clientWidth?(t.arrow_screen=!0,t.arrow_screen_right=!0):(t.arrow_screen=!1,t.arrow_screen_right=!1)),this.log("getWindowWidth finish"),this.$nextTick((function(){this.log("getWindowWidth nextTick start"),t.headScroll=t.$refs.trScrollHead,t.bodyScroll=t.$refs.trScrollBody,t.tableHB=-1*t.$refs.table_wrapper.clientHeight,t.lengthRow=t.bodyScroll?t.bodyScroll.length:0,t.countActiveColumn=t.$refs.width_th_scroll?t.$refs.width_th_scroll.length:0,t.forFixedThN=t.$refs.width_th_scroll_number?t.$refs.width_th_scroll_number.clientWidth-10+"px":"",t.forFixedThF=t.$refs.width_th_scroll_first?t.$refs.width_th_scroll_first.clientWidth-10+"px":"",t.forFixedThG=t.$refs.width_th_scroll_group?t.$refs.width_th_scroll_group.clientWidth-10+"px":"",t.heightBodyGroupNx=t.$refs.trFixedBodyGroupNx?t.$refs.trFixedBodyGroupNx.clientHeight-16+"px":"",t.maxScrollTable=t.$refs.table_scroll.clientWidth-t.$refs.table_wrapper.clientWidth,t.$refs.table_scroll.clientWidth>t.$refs.tableCntrl.clientWidth?t.widthTable=t.widthTd*t.countActiveColumn+"px":(t.arrow_screen=t.$refs.table_scroll.clientWidth>t.$refs.table_wrapper.clientWidth,t.arrow_screen_right=t.arrow_screen),t.group&&(t.countActiveColumn=t.countActiveColumn+1,0===t.substrings.length&&(t.countActiveColumn=t.countActiveColumn-1));for(var e=0;ewindow.innerHeight,t.heightHead=t.headScroll.clientHeight-t.indentth+"px",t.widthFixedHeadTableRight=t.$refs.table_wrapper.clientWidth+"px",t.maxScrollTable=t.$refs.table_scroll.clientWidth-t.$refs.table_wrapper.clientWidth,this.log("getWindowWidth nextTick finish")}))}},getOdd:function(e){return e%2==0?"odd":"even"},showTr:function(e){return"prev"==e?this.prevInner:"next"==e?this.nextInner:"hide"!=e||this.showHidden},showPrev:function(){this.prevInner=!this.prevInner,this.getWindowWidth()},showNext:function(){this.nextInner=!this.nextInner,this.getWindowWidth()},getFieldLabel:function(e){return this.fields_labels[e]?this.fields_labels[e]:this.getLabel(this.fields_labels_prefix+e)},getLabel:function(e){var t="{{"+e+"}}";return void 0!==this.labels[e]&&(t=this.labels[e]),t},sortByField:function(e){e==this.sort_field&&"asc"==this.sort_order?this.sort_order="desc":e==this.sort_field&&"desc"==this.sort_order?(this.sort_field="",this.sort_order=""):(this.sort_field=e,this.sort_order="asc"),this.$eventHub.emit("sortChange",{field:this.sort_field,order:this.sort_order})},filterLength:function(e,t){return null==e?"":"comment"!=t&&this.reduction?null!=e?"string"==typeof e&&e.replace(/<\/?[^>]+>/gi,"").length>80?"undefined"!=typeof restDebug?e.replace(/<\/?[^>]+>/gi,""):e.replace(/<\/?[^>]+>/gi,"").substring(0,80)+"...":e:"":e},getAsterisks:function(e){return null!=ft(e)&&-1!=String(e).indexOf("asterisks")},getAsterisksMessage:function(e){if(null!=ft(e)){if(String(e).includes("forbidden_request"))return"forbidden_request_label";if(String(e).includes("already_send_request"))return"already_send_request_label";if(String(e).includes("send_request"))return"send_request_label"}return""},toggleChecked:function(e){e.data.checked=!e.data.checked,this.$emit("toggle-checked",e),this.getWindowWidth()},log:function(e){if(this.logging){var t=(new Date).getTime()/1e3;Math.round(1e3*(t-this.timer))}}},updated:function(){this.$nextTick((function(){this.log("updated")}))},unmounted:function(){this.$resizeTable.off("refreshTable",this.getWindowWidth,scroll),window.removeEventListener("resize",this.getWindowWidth),window.removeEventListener("scroll",this.scrollPage)}};const vt=(0,n(83744).Z)(gt,[["render",function(e,t,n,pt,mt,ft){var gt=(0,r.resolveComponent)("app-asterisks");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([[n.table_class,{partTable:e.arrow_adaptive},{leftColumn:e.arrow_screen}],"table_cntrl2"]),ref:"tableCntrl"},[(0,r.createElementVNode)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("div",o,[e.arrow_screen||e.arrow_adaptive?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("table",l,[(0,r.createElementVNode)("thead",null,[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("th",{id:"cb_"+n.table_name+"fixhead_first"},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({for_number:n.number})},[n.checkbox?((0,r.openBlock)(),(0,r.createElementBlock)("label",d)):(0,r.createCommentVNode)("",!0),n.number?((0,r.openBlock)(),(0,r.createElementBlock)("span",u,"№")):(0,r.createCommentVNode)("",!0),-1!=n.sort_fields.indexOf(ft.columns[0])?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:2,href:"javascript:void(0);",class:"sortable",onClick:t[0]||(t[0]=function(e){return ft.sortByField(ft.columns[0])})},[(0,r.renderSlot)(e.$slots,"header",{field:ft.columns[0],value:ft.header[ft.columns[0]],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[ft.columns[0]]},null,8,h)]})),ft.columns[0]==e.sort_field&&"asc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,"▲")):(0,r.createCommentVNode)("",!0),ft.columns[0]==e.sort_field&&"desc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,"▼")):(0,r.createCommentVNode)("",!0)])):(0,r.renderSlot)(e.$slots,"header",{key:3,field:ft.columns[0],value:ft.header[ft.columns[0]],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[ft.columns[0]]},null,8,f)]}))],2)],8,c)])])])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref:"fixedHeadTableRight",class:"fixedHeadTableRight",style:(0,r.normalizeStyle)({width:e.widthFixedHeadTableRight})},[e.index>1?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"javascript:void(0);",class:"arrow_left adaptive",onClick:t[1]||(t[1]=function(e){return ft.scrollTableLeft()})})):(0,r.createCommentVNode)("",!0),e.index0?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:0,class:(0,r.normalizeClass)(["field_"+t])},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({width:e.forFixedTh[a]})},[-1!=n.sort_fields.indexOf(t)?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,id:"cb_"+n.table_name+"fixhead_item_"+a,href:"javascript:void(0);",class:"sortable",onClick:function(e){return ft.sortByField(t)}},[(0,r.renderSlot)(e.$slots,"header",{field:t,value:ft.header[t],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[t]},null,8,E)]})),t==e.sort_field&&"asc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",D,"▲")):(0,r.createCommentVNode)("",!0),t==e.sort_field&&"desc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",S,"▼")):(0,r.createCommentVNode)("",!0)],8,x)):(0,r.renderSlot)(e.$slots,"header",{key:1,field:t,value:ft.header[t],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{id:"cb_"+n.table_name+"fixhead_item_"+a,innerHTML:ft.header[t]},null,8,B)]})),e.checkIfNeedToAddCross?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:"table_header_cross",onClick:function(n){return e.hideColumn(t)},innerHTML:e.labelToHideColumn(t)},null,8,C)):(0,r.createCommentVNode)("",!0)],4)],2)):(0,r.createCommentVNode)("",!0)],64)})),256)),n.group&&n.prestrings[e.index]?((0,r.openBlock)(),(0,r.createElementBlock)("th",T,[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({width:e.forFixedThG})}," ",4)])):(0,r.createCommentVNode)("",!0)])])],4)],4)],512),[[r.vShow,e.fixedThead]]),e.arrow_screen||e.arrow_adaptive?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,ref:"theadLeftBlock",class:"table_adaptive",style:(0,r.normalizeStyle)({width:ft.widthScreen})},[(0,r.createElementVNode)("table",L,[(0,r.createElementVNode)("thead",null,[(0,r.createElementVNode)("tr",N,[(0,r.createElementVNode)("th",{id:"cb_"+n.table_name+"fixleft_first"},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({height:ft.heightH}),class:(0,r.normalizeClass)({for_number:n.number,displayBlock:e.checkIfNeedToAddCross&&e.needToAddCrossToMainColumn})},[n.checkbox?((0,r.openBlock)(),(0,r.createElementBlock)("label",M)):(0,r.createCommentVNode)("",!0),n.number?((0,r.openBlock)(),(0,r.createElementBlock)("span",F,"№")):(0,r.createCommentVNode)("",!0),-1!=n.sort_fields.indexOf(ft.columns[0])?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:2,id:"cb_"+n.table_name+"_first",href:"javascript:void(0);",class:"sortable",onClick:t[5]||(t[5]=function(e){return ft.sortByField(ft.columns[0])})},[(0,r.renderSlot)(e.$slots,"header",{field:ft.columns[0],value:ft.header[ft.columns[0]],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[ft.columns[0]]},null,8,A)]})),ft.columns[0]==e.sort_field&&"asc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",H,"▲")):(0,r.createCommentVNode)("",!0),ft.columns[0]==e.sort_field&&"desc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",P,"▼")):(0,r.createCommentVNode)("",!0)],8,I)):(0,r.renderSlot)(e.$slots,"header",{key:3,field:ft.columns[0],value:ft.header[ft.columns[0]],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{id:"cb_"+n.table_name+"_first",innerHTML:ft.header[ft.columns[0]]},null,8,O)]})),e.checkIfNeedToAddCross&&e.needToAddCrossToMainColumn?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:4,class:"table_header_cross",onClick:t[6]||(t[6]=function(t){return e.hideColumn(ft.columns[0])}),innerHTML:e.labelToHideColumn(ft.columns[0])},null,8,$)):(0,r.createCommentVNode)("",!0)],6)],8,V)],512)]),(0,r.createElementVNode)("tbody",null,[ft.prev?((0,r.openBlock)(),(0,r.createElementBlock)("tr",j,[(0,r.createElementVNode)("td",null,[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({height:ft.heightBGNx})},[(0,r.createElementVNode)("a",{id:"cb_"+n.table_name+"_prev",href:"javascript:void(0);",onClick:t[7]||(t[7]=function(){return ft.showPrev&&ft.showPrev.apply(ft,arguments)}),class:(0,r.normalizeClass)({show_hide_block:e.prevInner,hide_hide_block:!e.prevInner})},[e.prevInner?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("link_show_prevs")),1)],64)),e.prevInner?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("hide")),1)],64)):(0,r.createCommentVNode)("",!0)],10,z)],4)])],512)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(ft.body,(function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[i1?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:3,href:"javascript:void(0);",class:"arrow_left",onClick:t[19]||(t[19]=function(){return ft.scrollTableLeft&&ft.scrollTableLeft.apply(ft,arguments)})})):(0,r.createCommentVNode)("",!0),e.arrow_adaptive&&e.index0?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:0,id:"cb_"+n.table_name+"_scroll_head_"+a,ref_for:!0,ref:"width_th_scroll",class:(0,r.normalizeClass)(["field_"+t])},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({width:ft.width})},[-1!=n.sort_fields.indexOf(t)?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"javascript:void(0);",class:"sortable",onClick:function(e){return ft.sortByField(t)}},[(0,r.renderSlot)(e.$slots,"header",{field:t,value:ft.header[t],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[t]},null,8,fe)]})),t==e.sort_field&&"asc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",ge,"▲")):(0,r.createCommentVNode)("",!0),t==e.sort_field&&"desc"==e.sort_order?((0,r.openBlock)(),(0,r.createElementBlock)("span",ve,"▼")):(0,r.createCommentVNode)("",!0)],8,me)):(0,r.renderSlot)(e.$slots,"header",{key:1,field:t,value:ft.header[t],row:ft.header},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.header[t]},null,8,ye)]})),e.checkIfNeedToAddCross?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:"table_header_cross",onClick:function(n){return e.hideColumn(t)},innerHTML:e.labelToHideColumn(t)},null,8,be)):(0,r.createCommentVNode)("",!0)],4)],10,pe)):(0,r.createCommentVNode)("",!0)],64)})),256)),n.group&&(e.arrow_adaptive||e.arrow_screen)&&n.substrings.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("th",ke,[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({width:ft.width})}," ",4)],512)):(0,r.createCommentVNode)("",!0)],512)]),(0,r.createElementVNode)("tbody",null,[ft.prev?((0,r.openBlock)(),(0,r.createElementBlock)("tr",_e,[(0,r.createElementVNode)("td",{colspan:e.colspan,ref:"trFixedBodyGroupNx"},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{id:"cb_"+n.table_name+"_show_prev",href:"javascript:void(0);",onClick:t[23]||(t[23]=function(){return ft.showPrev&&ft.showPrev.apply(ft,arguments)}),class:(0,r.normalizeClass)({show_hide_block:e.prevInner,hide_hide_block:!e.prevInner})},[e.prevInner?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("link_show_prevs")),1)],64)),e.prevInner?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("hide")),1)],64)):(0,r.createCommentVNode)("",!0)],10,xe)])],8,we)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(ft.body,(function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[i0?((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:0,id:"cb_"+n.table_name+"_scroll_item_"+i+"_"+s,class:(0,r.normalizeClass)(["field_"+o])},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({width:ft.width}),title:ft.getTitle(t.data[o])},[t.data[o]&&"object"===a(t.data[o])?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[t.data[o].lnk?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:t.data[o].lnk,target:"_blank",innerHTML:t.data[o].ttl},null,8,Re)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[ft.getAsterisks(t.data[o].ttl)?((0,r.openBlock)(),(0,r.createBlock)(gt,{key:0})):(0,r.renderSlot)(e.$slots,"field",{key:1,field:o,value:t.data[o].ttl,row:t.data},(function(){return[(0,r.createElementVNode)("span",{innerHTML:t.data[o].ttl},null,8,Ze)]}))],64)),t.data[o].info?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:2,class:"small",innerHTML:t.data[o].info},null,8,Ye)):(0,r.createCommentVNode)("",!0)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[ft.getAsterisks(t.data[o])?((0,r.openBlock)(),(0,r.createBlock)(gt,{key:0,message:ft.getAsterisksMessage(t.data[o])},null,8,["message"])):(0,r.renderSlot)(e.$slots,"field",{key:1,field:o,value:ft.filterLength(t.data[o],o),row:t.data},(function(){return[(0,r.createElementVNode)("span",{innerHTML:ft.filterLength(t.data[o],o)},null,8,We)]}))],64)),ft.filterLength(t.data[o],o).length>80&&e.arrow_adaptive?((0,r.openBlock)(),(0,r.createElementBlock)("div",qe,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"small",onClick:(0,r.withModifiers)((function(e){return ft.setFullDescrTableMobile(t.data[o])}),["prevent"])},(0,r.toDisplayString)(ft.label_show_more),9,Ue)])):(0,r.createCommentVNode)("",!0)],12,Ge)],10,ze)):(0,r.createCommentVNode)("",!0)],64)})),256)),n.group&&(e.arrow_adaptive||e.arrow_screen)&&n.substrings.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[""!=n.substrings[i]?((0,r.openBlock)(),(0,r.createElementBlock)("td",Je,[ft.getAsterisks(n.substrings[i])?((0,r.openBlock)(),(0,r.createBlock)(gt,{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,innerHTML:n.substrings[i]},null,8,Ke))])):((0,r.openBlock)(),(0,r.createElementBlock)("td",Xe,Qe))],64)):(0,r.createCommentVNode)("",!0)],10,Te)),[[r.vShow,ft.showTr(t.show)&&(!n.collapse||t.show_group)&&!t.data.hidden]]):(0,r.createCommentVNode)("",!0),n.group&&!e.arrow_adaptive&&!e.arrow_screen&&ft.showPreviousElements(i)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:2,class:(0,r.normalizeClass)([t.class,ft.getOdd(i),{click_color:e.activeClickRow==t}]),ref_for:!0,ref:"trScrollBody",onClick:function(e){return ft.setActiveColor(t)}},[ft.getAsterisks(n.substrings[i])?((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:0,id:"cb_"+n.table_name+"_scroll_prestrings_"+i,colspan:e.colspan,class:"small_txt"},[(0,r.createVNode)(gt)],8,tt)):((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:1,id:"cb_"+n.table_name+"_scroll_prestrings_"+i,colspan:e.colspan,class:"small_txt",innerHTML:n.substrings[i]},null,8,nt))],10,et)),[[r.vShow,ft.showTr(t.show)]]):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)],64)})),256)),ft.next?((0,r.openBlock)(),(0,r.createElementBlock)("tr",rt,[(0,r.createElementVNode)("td",{colspan:e.colspan},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("a",{id:"cb_"+n.table_name+"_show_next",href:"javascript:void(0);",onClick:t[24]||(t[24]=function(){return ft.showNext&&ft.showNext.apply(ft,arguments)}),class:(0,r.normalizeClass)({show_hide_block:!e.nextInner,hide_hide_block:e.nextInner})},[e.nextInner?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("link_show_nexts")),1)],64)),e.nextInner?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.getLabel("hide")),1)],64)):(0,r.createCommentVNode)("",!0)],10,it)])],8,at)])):(0,r.createCommentVNode)("",!0)])],6)],512)]),ot,n.limit>0&&n.limit0&&n.btnShowHidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",ct,[(0,r.renderSlot)(e.$slots,"buttonShowPrefix"),(0,r.createElementVNode)("a",{id:"cb_"+n.table_name+"_show",href:"javascript:void(0);",onClick:t[26]||(t[26]=function(){return ft.switchTr2&&ft.switchTr2.apply(ft,arguments)}),class:(0,r.normalizeClass)([e.showHidden?"hide_hide_block":"show_hide_block"])},[e.showHidden?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.label_hide),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(ft.label_show_more),1)],64))],10,dt)])):(0,r.createCommentVNode)("",!0),e.showFullDescrTableMobile?((0,r.openBlock)(),(0,r.createElementBlock)("div",ut,[(0,r.createElementVNode)("a",{href:"javascript:void(0);",class:"close",onClick:t[27]||(t[27]=(0,r.withModifiers)((function(t){return e.showFullDescrTableMobile=!1}),["prevent"]))},(0,r.toDisplayString)(ft.label_hide),1),(0,r.createElementVNode)("div",{innerHTML:e.textFullDescrTableMobile},null,8,ht)])):(0,r.createCommentVNode)("",!0)],2)}]]);var yt=vt},1490:function(e,t,n){n.d(t,{Z:function(){return o}});n(68309);var r=n(70821),a=["id","onClick","data-id","innerHTML"];n(41539),n(54747),n(57327);var i={name:"AppTabs",props:{tabs:"",class_value:"",name:{default:"AppTabs",type:String}},created:function(){this.$clearAllTabs.on("clearAllTabs",this.clearAllTabs)},methods:{activate:function(e){this.tabs.forEach((function(e){e.class=""})),e.class="active",this.$eventHub.emit("selectTab",{name:this.name,value:e.id}),this.$clearArbitraryPeriod.emit("clearArbitraryPeriod")},clearAllTabs:function(e){e&&-1==this.name.indexOf(e)||this.tabs.forEach((function(e){e.class=""}))}},unmounted:function(){this.$clearAllTabs.off("clearAllTabs",this.clearAllTabs)},computed:{tabsNotHidden:function(){return this.tabs.filter((function(e){return void 0===e.hidden&&void 0===e.show||void 0!==e.hidden&&!1===e.hidden||void 0!==e.show&&!0===e.show}))}}};var o=(0,n(83744).Z)(i,[["render",function(e,t,n,i,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",{class:(0,r.normalizeClass)(["tabs",n.class_value])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.tabsNotHidden,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:(0,r.normalizeClass)(e.classAction)},[(0,r.createElementVNode)("a",{id:n.name+"_"+e.id,href:"",onClick:(0,r.withModifiers)((function(t){return s.activate(e)}),["prevent"]),class:(0,r.normalizeClass)(["item",e.class]),"data-id":e.id,innerHTML:e.ttl},null,10,a)],2)})),256))],2)}]])},29053:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(70821),a=["title"],i=["title"];var o=n(22665),s={name:"AppToggleElementFullscreen",props:{elementId:{type:String,default:""},labels:{type:Object,default:function(){return{}}}},data:function(){return{cookieName:"isElementFullscreen_"+this.elementId,isElementFullscreen:!1}},mounted:function(){"true"===this.cookies.get(this.cookieName)&&(this.isElementFullscreen=!0),this.onElementFullscreenChange()},methods:{getLabel:function(e){return this.labels[e]?this.labels[e]:"{{"+e+"}}"},onElementFullscreenChange:function(){var e=this;"onfullscreenchange"in document&&document.addEventListener("fullscreenchange",(function(){e.isElementFullscreen=!e.isElementFullscreen,e.$eventHub.emit("elementFullscreenChange",{isElementFullscreen:e.isElementFullscreen})})),"onmozfullscreenchange"in document&&document.addEventListener("mozfullscreenchange",(function(){e.isElementFullscreen=!e.isElementFullscreen,e.$eventHub.emit("elementFullscreenChange",{isElementFullscreen:e.isElementFullscreen})})),"onwebkitfullscreenchange"in document&&document.addEventListener("webkitfullscreenchange",(function(){e.isElementFullscreen=!e.isElementFullscreen,e.$eventHub.emit("elementFullscreenChange",{isElementFullscreen:e.isElementFullscreen})})),"onmsfullscreenchange"in document&&(document.onmsfullscreenchange=function(){e.isElementFullscreen=!e.isElementFullscreen,e.$eventHub.emit("elementFullscreenChange",{isElementFullscreen:e.isElementFullscreen})})},toggleElementFullscreen:function(){if(this.isElementFullscreen)document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen();else{var e=document.getElementById(this.elementId);null!==e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen())}}},setup:function(){return{cookies:(0,o.fP)().cookies}},watch:{isElementFullscreen:function(e){this.cookies.set(this.cookieName,e)}}};var l=(0,n(83744).Z)(s,[["render",function(e,t,n,o,s,l){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{style:{cursor:"pointer"},onClick:t[0]||(t[0]=function(e){return l.toggleElementFullscreen()})},[s.isElementFullscreen?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,alt:"Full screen",src:"/img/fullscreen_icon.svg",style:{height:"36px"},title:l.getLabel("full_screen")},null,8,a)),s.isElementFullscreen?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,alt:"Exit full screen",src:"/img/exit_fullscreen_icon.svg",style:{height:"36px"},title:l.getLabel("exit_full_screen")},null,8,i)):(0,r.createCommentVNode)("",!0)])}]])},90115:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(70821),a=["innerHTML"];var i={name:"ShowHideBtn",props:["block"],data:function(){return{hidden_start_element:!1}},methods:{showElements:function(){this.hidden_start_element=!this.hidden_start_element,this.$eventHub.emit("showElements")}},computed:{label_show:function(){return this.hidden_start_element?labels.hide?labels.hide:"Hide":labels.hide?labels.show_more:"Show all"}}};const o=(0,n(83744).Z)(i,[["render",function(e,t,n,i,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{href:"",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(){return s.showElements&&s.showElements.apply(s,arguments)}),["prevent"])),innerHTML:s.label_show,class:(0,r.normalizeClass)({show_hide_block:!e.hidden_start_element,hide_hide_block:e.hidden_start_element})},null,10,a)}]]);var s=o}},function(e){e.O(0,[8898],(function(){return t=58779,e(e.s=t);var t}));e.O()}]);