Your IP : 3.15.7.20


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/chunk-QVXZUYGC.js

import{a as Nt,b as zt,c as qt,d as Ut,e as Gt,f as Ht,g as Qt}from"./chunk-3NL2COVR.js";import{a as Jt,b as Xt,c as Kt,e as Zt,g as ei,h as ti,j as ii,k as me,l as ai,m as si,n as li}from"./chunk-EWSBMFEH.js";import{a as Yt}from"./chunk-MOYBPCLQ.js";import"./chunk-LEQN3D2Q.js";import{a as ni,b as ri,c as di}from"./chunk-SQUGFZJI.js";import{a as xt}from"./chunk-O6FCMJDP.js";import"./chunk-O3MRBEHJ.js";import{c as oi,d as pi}from"./chunk-SKX3CALC.js";import{a as ge,b as ci}from"./chunk-XCB6Q7V4.js";import{a as N,b as oe,c as Vt,d as Wt,e as jt,f as Rt,g as At}from"./chunk-WDCLQCI6.js";import{a as Tt}from"./chunk-VX77VCCO.js";import"./chunk-WUJDRKKX.js";import{b as Lt,d as Et}from"./chunk-25EXV7IU.js";import{a as It,d as Dt,e as Ft,f as Bt}from"./chunk-CPXWTLES.js";import{a as vt,f as bt,k as yt}from"./chunk-KU75D4PT.js";import{d as wt,g as $t}from"./chunk-BATIAXZ4.js";import{c as Fe,d as ft}from"./chunk-KX5BXGZT.js";import{a as B,c as Be,d as We,e as je,x as Pt,z as Ot}from"./chunk-M6DH5DPB.js";import{$a as y,$b as E,Ac as kt,Bb as R,Bc as St,Ca as Oe,Cb as pe,Cc as Mt,Da as $e,Ea as Ie,H as Pe,Ia as ie,J as ct,Ka as f,L as s,La as k,M as T,Ma as M,Sa as gt,Sb as He,Ta as mt,Va as K,Vb as de,Wa as xe,Wb as Ve,X as A,Z as g,_a as b,aa as pt,ab as Te,ba as a,bb as ve,c as ke,ca as ce,cc as _e,d as ae,da as z,f as X,fa as Ue,fc as be,g as Se,gb as De,gc as ht,k as P,l as se,m as lt,ma as p,na as d,oa as C,oc as Ct,p as Me,pa as D,q as m,qa as L,qc as Z,r as u,ra as dt,sa as v,tb as ne,u as G,ub as F,va as h,vb as I,wb as Le,x as le,xa as l,xb as Ee,y as te,ya as _t,yb as ut,za as Ge}from"./chunk-SXUPRFOU.js";import{A as ye,G as O,H as Y,S as U,V as it,a as q,b as Ne,ba as nt,fa as ot,ja as rt,oa as we,p as et,qa as ze,s as tt,sa as at,t as $,ta as st,xa as J,za as qe}from"./chunk-ERDNNTNA.js";var H=(()=>{let o=class o{get tab(){return this.tabContextService.tab}constructor(e,i,r,c,_,x,w,W){this.tabContextService=e,this.actionService=i,this.tabService=r,this.apiService=c,this.appService=_,this.drawerManagerService=x,this.preloadedActionService=w,this.redirectService=W,this.doc$=this.tabContextService.doc$.pipe(U(S=>!!S)),this.blockList$=this.doc$.pipe(U(S=>!!S.block),O(S=>S.block)),this.blockPositionsLocalValue=new $(null),this.blockPositions$=Y([this.doc$,this.blockPositionsLocalValue.asObservable()]).pipe(O(([S,j])=>j||(S?.blockOrder?.$?JSON.parse(S?.blockOrder?.$):{}))),this.datepickerOpenSubject=new tt,this.openDatepickers$=this.datepickerOpenSubject.pipe(we((S,j)=>(j.datepickerOpenSubject.value?S.add(j):S.delete(j),S),new Set),O(S=>!!S.size)),this.autoUpdatingWidgets=new Map,this.tabContextService.previousAndNextTab$.pipe(Z()).subscribe(([S,j])=>{S.type==="dashboard"&&j.type==="dashboard"&&this.cancelAutoUpdate()})}handleTaskbarButton(e){(e.$form||e.$list)&&this.actionService.handleAction({func:e.$form},"new",!0),e.$top&&this.actionService.handleAction({func:e.$top},"new",!0),e.$window&&this.actionService.openNewWindow(`?func=${e.$window}&newwindow=yes`)}handleListButton({button:e,elid:i,doc:r}){let c={elidList:[i],toolbtn:e,tab:this.tab,doc:r,canRefreshTab:!1};return this.actionService.handleToolBtn(c)}handleListValueClick(e,i){let r=q({},be(`func=${e}`));i&&(r.elid=i),this.actionService.loadAndOpen({params:r})}handleListLink(e,i){if(i.link.nestedlist){this.actionService.handleNestedListLink({elid:e,blank:i.link.nestedlistBlank,child:i.link.nestedlistChild,nestedList:i.link.nestedlist,colName:i.name,colValue:i.value,tab:this.tab});return}i.link?.editform&&this.actionService.handleEditFormLink({elid:e,editform:i.link.editform,tab:this.tab})}dashboardStateSave(e,i){return this.apiService.dashboardStateSave(e.$name,i?"max":"min",e.$position).subscribe()}dashboardBlockOrderSave(e){return this.apiService.dashboardBlockOrderSave(e).subscribe()}getWidgetData(e,i){if(this.tab.id!==this.tabService.activeTab.id)return;let r={};for(let _ of e.data.params||[])r[_.$name]=_.$;let c=q({},r);return Object.assign(c,i||e.params||{}),this.apiService.getDashboard(e.data.$func,e.data.$name,c).pipe(st(_=>_.ok?this.apiService.getDashboard(e.data.$func,e.data.$name,r):ye(_)),J(_=>{e.updateDoc(_,c),e.data.$autoupdate&&parseInt(e.data.$autoupdate)&&!this.autoUpdatingWidgets.has(e.id)&&(this.autoUpdatingWidgets.set(e.id,e),this.setAutoupdate(e,i))})).subscribe()}getDesktopMessage(e){return this.appService.getDesktopMessage(e)}openDrawer(e){this.drawerManagerService.openDrawer$(q({type:"form",func:e.func},e))}handleButtonAction(e){let i=q({},be(`func=${e}`));this.actionService.loadAndOpen({params:i})}reloadTab(){this.tabContextService.reloadTab()}getMessage(e){return this.tabContextService.getMessage(e)}cancelAutoUpdate(){for(let e of this.autoUpdatingWidgets.values())clearTimeout(e.autoupdateTimeoutId);this.autoUpdatingWidgets.clear()}setAutoupdate(e,i){let r=setTimeout(()=>{r===e.autoupdateTimeoutId&&(this.autoUpdatingWidgets.delete(e.id),this.getWidgetData(e,i))},parseInt(e.data.$autoupdate)*1e3);e.autoupdateTimeoutId=r}};o.\u0275fac=function(i){return new(i||o)(X(Tt),X(Ot),X(Mt),X(_e),X(Ct),X(St),X(kt),X(Pt))},o.\u0275prov=ke({token:o,factory:o.\u0275fac});let n=o;return n})();var ue=(()=>{let o=class o{constructor(){this.api=Se(_e),this.dashboardService=Se(H),this.destroyRef=Se(le),this.update=new te}getMessage(e){return E.getMessage(e,this.doc)}getDesktopMessage(e){return this.dashboardService.getDesktopMessage(e)}getValue(e){return E.getStringValue(e,this.doc)}};o.\u0275fac=function(i){return new(i||o)},o.\u0275dir=lt({type:o,selectors:[["","ispBaseWidget",""]],inputs:{data:"data",doc:"doc"},outputs:{update:"update"}});let n=o;return n})();var Mi=["quickActions"],Pi=()=>({width:"15px",height:"15px"});function Oi(n,o){if(n&1&&C(0,"div",9),n&2){let t=l().$implicit;ce("--isp-mask-image","url("+t.$customicon+")")}}function $i(n,o){if(n&1&&C(0,"isp-svg-icon",12),n&2){let t=l(2).$implicit;a("name",t.$img)}}function Ii(n,o){if(n&1&&C(0,"isp-icon-provider",13),n&2){let t=l(2).$implicit;a("name",t.$img)("customStyle",K(3,Pi))("inSprite",!1)}}function Ti(n,o){if(n&1&&g(0,$i,1,1,"isp-svg-icon",10)(1,Ii,1,4,"isp-icon-provider",11),n&2){let t=l().$implicit;a("ngIf",t.$spritesvg),s(),a("ngIf",!t.$spritesvg)}}function Di(n,o){if(n&1){let t=v();p(0,"div",6),h("click",function(){let i=m(t).$implicit,r=l();return u(r.handleButtonAction(i))}),f(1),C(2,"div",7),g(3,Oi,1,2,"div",8)(4,Ti,2,2,"ng-template",null,1,ve),d()}if(n&2){let t=o.$implicit,e=ie(5),i=l();s(),M(" ",i.getTitle(t.$name)," "),s(2),a("ngIf",t.$customicon)("ngIfElse",e)}}function Li(n,o){if(n&1){let t=v();p(0,"div",19),h("click",function(){let i=m(t).$implicit,r=l(2);return u(r.handleButtonAction(i))}),f(1),d()}if(n&2){let t=o.$implicit,e=l(2);s(),M(" ",e.getTitle(t.$name)," ")}}function Ei(n,o){if(n&1&&(D(0),p(1,"div",14,2),C(3,"isp-svg-icon",15),d(),p(4,"isp-dropdown",16)(5,"div",17),g(6,Li,2,1,"div",18),d()(),L()),n&2){let t=o.ngIf,e=ie(2);s(4),a("anchor",e)("anchorOffset",5),s(2),a("ngForOf",t)}}var Fi=200,Bi=20,Vi=Fi+Bi,_i=(()=>{let o=class o extends ue{constructor(){super(...arguments),this.mainButtons$=new $([]),this.dropdownButtons$=new $(null)}ngOnInit(){this.observeResize()}observeResize(){new et(i=>{let r=new ResizeObserver(c=>{i.next(c[0])});return r.observe(this.quickActionsElement.nativeElement),()=>r.disconnect()}).pipe(Z(this.destroyRef)).subscribe(i=>{this.updateButtons(i.contentRect.width)})}updateButtons(e){let i=Math.floor(e/Vi),r=this.mainButtons$.value.length;i!==r&&(i<this.actions.length?(this.mainButtons$.next(this.actions.slice(0,i)),this.dropdownButtons$.next(this.actions.slice(i))):(this.mainButtons$.next(this.actions),this.dropdownButtons$.next(null)))}getTitle(e){return this.dashboardService.getMessage(`taskbar_${e}`)}handleButtonAction(e){this.dashboardService.handleTaskbarButton(e)}};o.\u0275fac=(()=>{let e;return function(r){return(e||(e=G(o)))(r||o)}})(),o.\u0275cmp=P({type:o,selectors:[["isp-quick-actions"]],viewQuery:function(i,r){if(i&1&&Oe(Mi,7),i&2){let c;$e(c=Ie())&&(r.quickActionsElement=c.first)}},inputs:{actions:"actions"},features:[A],decls:6,vars:6,consts:[["quickActions",""],["img",""],["anchor",""],[1,"quick-actions"],["class","quick-action",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"quick-action",3,"click"],[1,"quick-action__ball"],["class","quick-action__icon quick-action__custom-icon",3,"--isp-mask-image",4,"ngIf","ngIfElse"],[1,"quick-action__icon","quick-action__custom-icon"],["class","quick-action__icon",3,"name",4,"ngIf"],["class","quick-action__icon",3,"name","customStyle","inSprite",4,"ngIf"],[1,"quick-action__icon",3,"name"],[1,"quick-action__icon",3,"name","customStyle","inSprite"],[1,"quick-actions__more"],["name","meatballs_s"],["trigger","click","popupClasses","isp-quick-actions-more","direction","left",3,"anchor","anchorOffset"],[1,"quick-actions__more-list","ispui-scrollbar_gray"],["class","quick-actions__more-list-item",3,"click",4,"ngFor","ngForOf"],[1,"quick-actions__more-list-item",3,"click"]],template:function(i,r){i&1&&(p(0,"div",3,0),g(2,Di,6,3,"div",4),b(3,"async"),g(4,Ei,7,3,"ng-container",5),b(5,"async"),d()),i&2&&(s(2),a("ngForOf",y(3,2,r.mainButtons$)),s(2),a("ngIf",y(5,4,r.dropdownButtons$)))},dependencies:[F,I,B,Fe,Lt,R],styles:["[_nghost-%COMP%]{display:block}.quick-actions[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.quick-actions__more[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:25px;height:25px;margin-left:5px;border-radius:50%;cursor:pointer}.quick-actions__more[_ngcontent-%COMP%]:hover{background-color:var(--isp-dc-norilsk)}.quick-action[_ngcontent-%COMP%]{position:relative;flex:1;min-width:200px;height:100px;padding:15px 40px 20px 20px;margin-left:20px;font-weight:500;border:1px solid var(--isp-dc-charlie-chaplin);border-radius:var(--isp-border-radius-main);cursor:pointer;transition:background-color .1s,border-color .1s}.quick-action[_ngcontent-%COMP%]:first-of-type{margin-left:0}.quick-action[_ngcontent-%COMP%]:hover{background-color:var(--isp-dc-mimic);border-color:var(--isp-dc-mimic);transition:background-color .1s,border-color .1s}.quick-action__icon[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:20px}.quick-action__custom-icon[_ngcontent-%COMP%]{width:15px;height:15px;background:var(--isp-icons-main-color);-webkit-mask-image:var(--isp-mask-image);mask-image:var(--isp-mask-image);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:cover;mask-size:cover}.quick-action[_ngcontent-%COMP%]:hover   .quick-action__icon[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-c-jon-snow)}.quick-action__ball[_ngcontent-%COMP%]{position:absolute;right:27.5px;bottom:27.5px;width:0;height:0;overflow:hidden;background-color:var(--isp-c-blue-velvet);border-radius:50%;opacity:0;transition:width .3s,height .3s,opacity .3s;transition-timing-function:linear;transform:translate3d(50%,50%,0)}.quick-action[_ngcontent-%COMP%]:hover   .quick-action__ball[_ngcontent-%COMP%]{width:35px;height:35px;opacity:1;transition:width .2s ease-in,height .2s ease-in,opacity 0s}.quick-actions__more-list[_ngcontent-%COMP%]{max-height:180px;overflow-y:auto}.quick-actions__more-list-item[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;height:30px;padding:0 15px;white-space:nowrap;cursor:pointer}.quick-actions__more-list-item[_ngcontent-%COMP%]:hover{background:var(--isp-dc-cult)}"],changeDetection:0});let n=o;return n})();function Ri(n,o){if(n&1&&(C(0,"iframe",1),b(1,"async"),b(2,"async"),b(3,"trust")),n&2){let t=o.ngIf,e=l();ce("height",y(1,5,e.height$)||"150px")("pointer-events",y(2,7,e.openDatepickers$)?"none":"auto"),a("src",Te(3,9,t,"resourceUrl"),ct)}}var gi=(()=>{let o=class o{constructor(e,i,r){this.api=e,this.colorSchemeService=i,this.dashboardService=r,this.bannerToken=Math.floor(Math.random()*10**12).toString(),this.bannerUrl$=this.colorSchemeService.actualColorScheme$.pipe(nt(this.colorSchemeService.colorSchemeChangeDelay),O(c=>{if(!this.data?.url?.$)return null;let _=new URL(this.data.url.$);return _.searchParams.set("theme",c),_.searchParams.set("token",this.bannerToken),this.currentBannerUrl=_.toString(),this.currentBannerUrl}),it(()=>ye(null))),this.openDatepickers$=this.dashboardService.openDatepickers$,this.height$=new $("150px"),this.frameAdjustmentFn=this.adjustIframeHeight.bind(this),window.addEventListener("message",this.frameAdjustmentFn)}adjustIframeHeight(e){e.data.token===this.bannerToken&&this.height$.next(`${e.data.bannerHeight}px`)}ngOnDestroy(){window.removeEventListener("message",this.frameAdjustmentFn)}};o.\u0275fac=function(i){return new(i||o)(T(_e),T(xt),T(H))},o.\u0275cmp=P({type:o,selectors:[["isp-dashboard-banner"]],inputs:{data:"data"},decls:2,vars:3,consts:[["class","banner__iframe",3,"src","height","pointer-events",4,"ngIf"],[1,"banner__iframe",3,"src"]],template:function(i,r){i&1&&(g(0,Ri,4,12,"iframe",0),b(1,"async")),i&2&&a("ngIf",y(1,1,r.bannerUrl$))},dependencies:[I,R,We],styles:[".banner__iframe[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:20px;border:0;border-radius:var(--isp-border-radius-main);transition:height .3s}"],changeDetection:0});let n=o;return n})();var Ye=new Map([["(max-width: 1359.98px)",1],["(min-width: 1360px) and (max-width: 1919.98px)",2],["(min-width: 1920px)",3]]);function mi(n,o,t){let e=t[`${o}col`],i=t[`${o}col`]?.every(c=>c.every(_=>n.some(x=>x.data.$name===_)))&&t[`${o}col`]?.reduce((c,_)=>c+_.length,0)===n.length;if(!e||!i){let c=[];for(let _=o;_>0;_--)c.push(n.splice(0,Math.ceil(n.length/_)));return c}let r=n.reduce((c,_)=>(c.set(_.data.$name,_),c),new Map);return e.map(c=>c.map(_=>r.get(_)))}var fe=(()=>{let o=class o{hasActions(e){return!!e.metadata?.toolbar?.toolgrp?.length}hasLinkRow(e,i){return e.$type===Ve.Link&&i?.$nolink!=="yes"}hasLinkColumn(e,i){return(e.$nestedlist||e.$editform||e.$type===Ve.Link)&&i.$nolink!=="yes"}getCellsList(e,i,r){return r.map(c=>{let _=N(i,c.$name),x={value:_?.$||"",name:_?.$orig||"",color:_?.$color||"",func:_?.$func||"",propList:[...ii(i,c,e),...this.getPropList(i,c,e)]};return c.$view==="brackets"&&(x.bracketsCells={used:N(i,`${c.$name}_used`),total:N(i,`${c.$name}_total`)}),this.hasLinkColumn(c,_)&&(x.link={nestedlist:c.$nestedlist,nestedlistBlank:c.$nestedlist_blank,editform:c.$editform}),x})}getCellListDetail(e,i,r){let c=r.find(W=>!!W[i.$name]),_=c?N(c,i.$name):void 0,x={value:_?.$||"",name:`${i.$name}_value`,func:_?.$func||"",color:_?.$color||""};if(this.hasLinkRow(i,_)&&(x.link={editform:_.$func}),i.$type===Ve.Indicate){let W=r.find(Ce=>!!Ce[`${i.$name}_used`]),S=N(W,`${i.$name}_used`),j=N(W,`${i.$name}_total`);i.$view==="brackets"?x.bracketsCells={used:S,total:j}:x.value=`${S?.$||0} / ${j?.$||0}`}return[{value:E.getMessage(i.$name,e),name:i.$name},x]}getCellWithButtons(e,i,r){return{value:null,buttons:this.getCellButtonsList(e,i,r)}}getCellButtonsList(e,i,r){return r.filter(c=>c.$type!=="list").reduce((c,_)=>_.hide?_.show?.some(({$value:x,$name:w})=>N(i,w)?.$===x)?[...c,_]:(_.hide.some(({$value:x,$name:w})=>N(i,w)?.$===x),c):[...c,_],[]).map(c=>Ne(q({},c),{label:E.getMessage(`short_${c.$name}`,e)}))}getRowList(e,i){return E.getElemList(e).map(c=>{let _=this.getCellsList(e,c,i);return this.hasActions(e)&&_.push(this.getCellWithButtons(e,c,e.metadata?.toolbar?.toolgrp[0].toolbtn)),{cells:_,elid:N(c,e.metadata.$key)?.$}})}getRowListDetail(e,i){let r=E.getElemList(e);return i.map(c=>({cells:this.getCellListDetail(e,c,r),elid:c[e.metadata.$key]?.$}))}getHeader(e,i){let r=i.map(c=>Ne(q({},c),{titleUi:E.getMessage(c.$name,e),hasButtons:!1}));return this.hasActions(e)&&r.push({$name:"actioncolumn",titleUi:E.getMessage("actioncolumn",e),hasButtons:!0}),r}getPropList(e,i,r){return i.prop?i.prop.reduce((c,_)=>{if(!e[_.$name])return c;let x=N(e,_.$name)?.$,w={icon:_.$img,name:_.$name,hint:ti({column:_.$name,value:x,doc:r}),isDisabled:_.hide?ei(e,_.hide):!1,isInteractive:!1,isActiveHint:_.$activehint==="yes",inSprite:!1,isAnimated:!1,canShowStat:_.$stat==="yes"};return[...c,w]},[]):[]}getConvertedElementList(e){let i=Zt(e);return{rows:this.getRowList(e,i),header:this.getHeader(e,i),title:E.getMessage("title",e)}}getConvertedDetailList(e){return(e?.metadata?.rowdata?.rowgroup).map(r=>({rows:this.getRowListDetail(e,r.row),header:void 0,title:E.getMessage(r.$name,e)}))}getNameValueDetailList(e){let i=e?.metadata?.rowdata?.rowgroup,r=E.getElemList(e);return i.reduce((c,_)=>(c.splice(c.length,0,..._.row.map(x=>{let w=r.find(Ce=>!!Ce[x.$name]),S=(w?N(w,x.$name):void 0)?.$||"";return{name:E.getMessage(x.$name,e),value:S}})),c),[])}getListsData(e,i){return{elementList:e?.metadata?.coldata?.col&&this.getConvertedElementList(e),detailList:e?.metadata?.rowdata?.rowgroup&&this.getConvertedDetailList(e),listButtons:i?.filter(r=>r.$type==="list")||[],reportList:e?.reportdata&&ni(e)}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275prov=ke({token:o,factory:o.\u0275fac});let n=o;return n})();var zi=n=>({used_warning:n});function qi(n,o){if(n&1&&C(0,"isp-prop-list",6),n&2){let t=l(2);a("propList",t.cell.propList)}}function Ui(n,o){if(n&1){let t=v();p(0,"a",8),h("click",function(){let i=m(t).$implicit,r=l(3);return u(r.emitToolbtnClick(i))}),f(1),d()}if(n&2){let t=o.$implicit;s(),M(" ",t.label," ")}}function Gi(n,o){if(n&1&&(D(0),g(1,Ui,2,1,"a",7),L()),n&2){let t=l(2);s(),a("ngForOf",t.cell.buttons)}}function Hi(n,o){if(n&1){let t=v();p(0,"a",8),h("click",function(){m(t);let i=l(2);return u(i.emitFuncionExecution(i.cell.func))}),f(1),d()}if(n&2){let t=l(2);s(),k(t.cell.value)}}function Qi(n,o){if(n&1&&(D(0),g(1,qi,1,1,"isp-prop-list",3)(2,Gi,2,1,"ng-container",4)(3,Hi,2,1,"a",5),L()),n&2){let t=l();s(),a("ngIf",t.cell.propList),s(),a("ngIf",t.cell.buttons),s(),a("ngIf",t.cell.func)}}function Yi(n,o){if(n&1&&(D(0),f(1," ("),p(2,"span",12),f(3),d(),f(4,") "),L()),n&2){let t=l(4);s(2),a("ngClass",xe(2,zi,t.cell.bracketsCells.used.$color==="red")),s(),k(t.cell.bracketsCells.used.$)}}function Ji(n,o){if(n&1&&(D(0),f(1),g(2,Yi,5,4,"ng-container",4),L()),n&2){let t=l(3);s(),M(" ",t.cell.bracketsCells.total.$," "),s(),a("ngIf",t.cell.bracketsCells.used.$)}}function Xi(n,o){if(n&1&&f(0),n&2){let t=l(3);M(" ",t.cell.bracketsCells.total.$," ")}}function Ki(n,o){if(n&1&&(D(0),p(1,"span"),g(2,Ji,3,2,"ng-container",2)(3,Xi,1,1,"ng-template",null,1,ve),d(),L()),n&2){let t=ie(4),e=l(2);s(2),a("ngIf",e.cell.bracketsCells.used)("ngIfElse",t)}}function Zi(n,o){if(n&1){let t=v();D(0),p(1,"a",8),h("click",function(){m(t);let i=l(2);return u(i.emitCellValueLinkClick(i.cell))}),f(2),d(),L()}if(n&2){let t=l(2);s(2),k(t.cell.value)}}function en(n,o){if(n&1&&(D(0),C(1,"span",13),b(2,"trust"),L()),n&2){let t=l(2);s(),a("innerHTML",Te(2,1,t.cell.value,"html"),Pe)}}function tn(n,o){if(n&1&&(D(0,9),g(1,Ki,5,2,"ng-container",10)(2,Zi,3,1,"ng-container",10)(3,en,3,4,"ng-container",11),L()),n&2){let t=l();a("ngSwitch",!0),s(),a("ngSwitchCase",!!t.cell.bracketsCells),s(),a("ngSwitchCase",!!t.cell.link)}}var he=(()=>{let o=class o{constructor(){this.toolbtnClick=new te,this.funcClick=new te,this.linkClick=new te}get canShowItems(){return!!this.cell.propList?.length||!!this.cell.buttons||!!this.cell.func}emitFuncionExecution(e){this.funcClick.emit(e)}emitToolbtnClick(e){this.toolbtnClick.emit(e)}emitCellValueLinkClick(e){this.linkClick.next(e)}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=P({type:o,selectors:[["isp-list-block-cell"]],inputs:{cell:"cell"},outputs:{toolbtnClick:"toolbtnClick",funcClick:"funcClick",linkClick:"linkClick"},standalone:!0,features:[mt],decls:3,vars:2,consts:[["valueBlock",""],["noUsedBlock",""],[4,"ngIf","ngIfElse"],[3,"propList",4,"ngIf"],[4,"ngIf"],["class","isp-link",3,"click",4,"ngIf"],[3,"propList"],["class","isp-link",3,"click",4,"ngFor","ngForOf"],[1,"isp-link",3,"click"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngClass"],[3,"innerHTML"]],template:function(i,r){if(i&1&&g(0,Qi,4,3,"ng-container",2)(1,tn,4,3,"ng-template",null,0,ve),i&2){let c=ie(2);a("ngIf",r.canShowItems)("ngIfElse",c)}},dependencies:[pe,ne,F,I,Le,Ee,ut,si,ai,je,We],styles:[".used_warning[_ngcontent-%COMP%]{color:var(--isp-dc-bright-emotions)}"],changeDetection:0});let n=o;return n})();var nn=()=>({"--isp-dropdown-z-index":"var(--isp-header-dropdown-z-index)"}),on=()=>["top","bottom","right"];function rn(n,o){if(n&1&&(p(0,"span",18),f(1),d()),n&2){let t=l(2);s(),k(t.getPickedDateString())}}function an(n,o){if(n&1){let t=v();p(0,"div",19),b(1,"async"),h("click",function(){let i=m(t).$implicit,r=l(2);return u(r.choosePeriod(i))}),f(2),d()}if(n&2){let t=o.$implicit,e=l(2);z("widget__tab_active",y(1,3,e.selectedPeriodSubject)===t),s(2),M(" ",e.msgs["tab_"+t]," ")}}function sn(n,o){if(n&1){let t=v();p(0,"mat-calendar",20),h("selectedChange",function(i){m(t);let r=l(2);return u(r.pickDate(i))})("click",function(i){return m(t),u(i.stopPropagation())}),d()}if(n&2){let t=l(2);a("startAt",t.pickedRange.start)("minDate",t.minDate)("maxDate",t.maxDate)("selected",t.pickedRange)}}function ln(n,o){if(n&1){let t=v();p(0,"div",8)(1,"div",9,0),b(3,"async"),h("click",function(){m(t);let i=l();return u(i.toggleDatepicker(!i.datepickerOpenSubject.value))}),C(4,"isp-svg-icon",10),g(5,rn,2,1,"span",11),d(),g(6,an,3,5,"div",12),p(7,"isp-dropdown",13),b(8,"async"),h("update",function(i){m(t);let r=l();return u(r.updateDatepicker(i))}),p(9,"div",14),g(10,sn,1,4,"mat-calendar",15),b(11,"async"),p(12,"div",16)(13,"button",17),h("click",function(){m(t);let i=l();return u(i.applyDatepicker())}),f(14),d()()()()()}if(n&2){let t=ie(2),e=l();s(),z("widget__tab_active",y(3,15,e.selectedPeriodSubject)==="datepicker"),s(4),a("ngIf",e.getPickedDateString()),s(),a("ngForOf",e.periods),s(),a("anchor",t)("anchorOffset",5)("open",y(8,17,e.datepickerOpenSubject))("ignoreChildren",!0)("clip",!1)("cssVars",K(21,nn))("directionOrder",K(22,on))("hideOnScroll",!0),s(3),a("ngIf",y(11,19,e.datepickerOpenSubject)),s(3),a("disabled",!e.pickedRange.start),s(),M(" ",e.msgs.apply," ")}}function cn(n,o){if(n&1&&C(0,"isp-report-item",22),n&2){let t=o.$implicit,e=l(2);a("report",t)("doc",e.document)("showLists",!1)}}function pn(n,o){if(n&1&&(D(0),g(1,cn,1,3,"isp-report-item",21),L()),n&2){let t=l();s(),a("ngForOf",t.listsData==null?null:t.listsData.reportList)("ngForTrackBy",t.reportId)}}function dn(n,o){if(n&1){let t=v();p(0,"th",28)(1,"isp-sort-indicator",29),h("sortChange",function(i){m(t);let r=l(4);return u(r.handleSortEvent(i))}),d()()}if(n&2){let t=o.$implicit,e=l(4);s(),a("sortable",t.$sort)("sortField",t.$name)("sortType",e.getSortType(t))("sortNumber",e.getSortNumber(t))("columnTitle",e.getMessage(t.$name))("shrinkIcon",!1)}}function _n(n,o){if(n&1&&(p(0,"thead",25)(1,"tr",26),g(2,dn,2,6,"th",27),d()()),n&2){let t=l().ngIf;s(2),a("ngForOf",t.header)}}function gn(n,o){if(n&1){let t=v();p(0,"td",33)(1,"isp-list-block-cell",34),h("funcClick",function(i){m(t);let r=l().$implicit,c=l(4);return u(c.clickValueFunc(i,r.elid))})("toolbtnClick",function(i){m(t);let r=l().$implicit,c=l(4);return u(c.clickToolbutton(i,r.elid))})("linkClick",function(i){m(t);let r=l().$implicit,c=l(4);return u(c.clickValueLink(i,r.elid))}),d()()}if(n&2){let t=o.$implicit,e=l(5);a("ngClass",e.getClassForCell(t)),s(),a("cell",t)}}function mn(n,o){if(n&1&&(p(0,"tr",31),g(1,gn,2,2,"td",32),d()),n&2){let t=o.$implicit;s(),a("ngForOf",t.cells)}}function un(n,o){if(n&1&&(p(0,"tbody"),g(1,mn,2,1,"tr",30),d()),n&2){let t=l().ngIf;s(),a("ngForOf",t.rows)}}function fn(n,o){if(n&1&&(p(0,"table",23),g(1,_n,3,1,"thead",24)(2,un,2,1,"tbody",2),d()),n&2){let t=o.ngIf;s(),a("ngIf",t.header),s(),a("ngIf",t.rows)}}function hn(n,o){if(n&1&&(D(0),g(1,fn,3,2,"table",3),L()),n&2){let t=l();s(),a("ngIf",t.listsData==null?null:t.listsData.elementList)}}function Cn(n,o){if(n&1){let t=v();p(0,"td",33)(1,"isp-list-block-cell",36),h("funcClick",function(i){m(t);let r=l().$implicit,c=l(3);return u(c.clickValueFunc(i,r.elid))}),d()()}if(n&2){let t=o.$implicit,e=l(4);a("ngClass",e.getClassForCell(t)),s(),a("cell",t)}}function xn(n,o){if(n&1&&(p(0,"tr",31),g(1,Cn,2,2,"td",32),d()),n&2){let t=o.$implicit;s(),a("ngForOf",t.cells)}}function vn(n,o){if(n&1&&(D(0),g(1,xn,2,1,"tr",30),L()),n&2){let t=o.$implicit;s(),a("ngForOf",t.rows)}}function bn(n,o){if(n&1&&(p(0,"table",23)(1,"tbody"),g(2,vn,2,1,"ng-container",35),d()()),n&2){let t=o.ngIf;s(2),a("ngForOf",t)}}function yn(n,o){if(n&1&&(p(0,"div",37),C(1,"isp-illustration",38),p(2,"div"),f(3),d()()),n&2){let t=l();z("list-empty_loading",t.loading),s(3),k(t.getDesktopMessage("msg_empty_list"))}}function wn(n,o){if(n&1&&C(0,"isp-svg-icon",43),n&2){let t=l(3);a("customStyle",t.iconStyle)}}function kn(n,o){if(n&1){let t=v();p(0,"button",41),h("click",function(){let i=m(t).$implicit,r=l(2);return u(r.handleButtonClick(i))}),g(1,wn,1,1,"isp-svg-icon",42),p(2,"span"),f(3),d()()}if(n&2){let t=o.$implicit,e=l(2);s(),a("ngIf",t.$img),s(2),k(e.getMessage("short_"+t.$name))}}function Sn(n,o){if(n&1&&(p(0,"div",39),g(1,kn,4,2,"button",40),d()),n&2){let t=l();s(),a("ngForOf",t.listsData==null?null:t.listsData.listButtons)}}function Mn(n,o){if(n&1){let t=v();p(0,"isp-pagination",44),h("pageChange",function(i){m(t);let r=l();return u(r.changePage(i))}),d()}if(n&2){let t=l();a("length",t.elementsAmount)("pageSizeList",t.pageSizeList)("pageSize",t.elementsPerPage)("currPage",t.currentPage)("ofLabel",t.msgs==null?null:t.msgs.pagerfrom)("disableCurrentPageEdit",!0)}}var Re=24*60*60*1e3,ee=(()=>{let o=class o extends ue{get canShowPagination(){return this.elementsAmount/this.pageSizeList[0]>1}get msgs(){return this.doc&&E.getMessageSet(this.doc)}get currentPage(){return parseInt(this.doc.p_num?.$)}get elementsPerPage(){return parseInt(this.doc.p_cnt?.$)}get elementsAmount(){return parseInt(this.doc.p_elems?.$)}get document(){return this.doc}get showRangeTabs(){return!!this.doc?.period_filter_start}get minDate(){return this.doc?.period_filter_start?new Date(parseInt(E.getValue("period_filter_start",this.doc))*1e3):null}get maxDate(){return new Date}constructor(e,i){super(),this.listWidgetService=e,this.dateFnsService=i,this.datepickerOpenSubject=new $(!1),this.selectedPeriodSubject=new $("today"),this.periods=["today","week"],this.iconStyle={height:"15px",width:"15px"},this.pageSizeList=[5,10,20],this.pickedRange=new oe(null,null),this.datepickerOpenSubject.subscribe(()=>this.dashboardService.datepickerOpenSubject.next(this))}ngOnChanges(e){e.doc&&(this.listsData=this.listWidgetService.getListsData(this.doc,this.data.toolbtn))}getClassForCell(e){return["list__cell",`list__cell_color_${e.color}`]}clickValueFunc(e,i){this.dashboardService.handleListValueClick(e,i)}handleSortEvent(e){let i=Jt(e,this.doc?.metadata?.coldata?.col||[]);this.update.emit(i)}getSortType(e){return Xt(e)}getSortNumber(e){let i=this.doc?.metadata?.coldata?.col||[];return Kt(i,e)}changePage(e){let i={p_num:e.currPage.toString(),p_cnt:e.pageSize.toString()};this.doc.p_current?.$||(i.p_current=this.doc.p_current?.$||""),this.doc.p_col?.$||(i.p_col=this.doc.p_col?.$||""),this.update.emit(i)}clickToolbutton(e,i){this.dashboardService.handleListButton({button:e,elid:i,doc:this.doc}).pipe(J(()=>this.update.emit())).subscribe()}clickValueLink(e,i){this.dashboardService.handleListLink(i,e)}toggleDatepicker(e){e&&!this.datepickerOpenSubject.value&&(this.pickedRange=this.appliedRange?new oe(this.appliedRange[0],this.appliedRange[1]):new oe(null,null)),this.datepickerOpenSubject.next(e)}updateDatepicker(e){e==="close-end"&&this.datepickerOpenSubject.next(!1),e==="open-end"&&this.datepickerOpenSubject.next(!0)}pickDate(e){if(!this.pickedRange.start||this.pickedRange.end)this.pickedRange=new oe(e,void 0);else{let i=this.pickedRange.start;this.pickedRange=i.getTime()<e.getTime()?new oe(i,e):new oe(e,i)}}applyDatepicker(){this.pickedRange?.start&&(this.pickedRange.end||(this.pickedRange=new oe(this.pickedRange.start,this.pickedRange.start)),this.appliedRange=[this.pickedRange.start,this.pickedRange.end],this.datepickerOpenSubject.next(!1),this.selectedPeriodSubject.next("datepicker"),this.filterByDateRange(this.appliedRange))}choosePeriod(e){this.selectedPeriodSubject.next(e),this.filterByDateRange(this.getDateRange(e))}getPickedDateString(){return this.appliedRange?Intl.DateTimeFormat(this.dateFnsService.locale.code,{month:"long",day:"numeric",year:"numeric"}).formatRange(this.appliedRange[0],this.appliedRange[1]):""}handleButtonClick(e){this.dashboardService.handleListButton({button:e,elid:null,doc:this.doc}).pipe(J(()=>this.update.emit())).subscribe()}reportId(e){return e}getDateRange(e){let i=new Date;switch(e){case"today":return[new Date(Date.now()-Re),i];case"week":return[new Date(Date.now()-7*Re),i];case"month":return[new Date(Date.now()-30*Re),i];case"year":return[new Date(Date.now()-365*Re),i];case"datepicker":break}}filterByDateRange(e){let i=Math.floor(e[0].getTime()/1e3),r=e[1];r.setHours(23),r.setMinutes(59),r.setSeconds(59);let c=Math.floor(r.getTime()/1e3);this.update.emit({periodstart:i,periodend:c,period:"other"})}};o.\u0275fac=function(i){return new(i||o)(T(fe),T(Yt))},o.\u0275cmp=P({type:o,selectors:[["isp-list-widget"]],inputs:{loading:"loading"},features:[A,Me],decls:8,vars:7,consts:[["datepickerTab",""],["class","widget__tabs",4,"ngIf"],[4,"ngIf"],["class","list",4,"ngIf"],["class","list-empty",3,"list-empty_loading",4,"ngIf"],[1,"list-footer"],["class","list__buttons",4,"ngIf"],["class","list-footer-pagination",3,"length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit","pageChange",4,"ngIf"],[1,"widget__tabs"],[1,"widget__tab","widget__tab_datepicker",3,"click"],["name","m-scheduler"],["class","widget__tab-picked-date",4,"ngIf"],["class","widget__tab",3,"widget__tab_active","click",4,"ngFor","ngForOf"],["trigger","parameter","alignment","middle","viewportSelector","isp-dashboard","resizeSelector","isp-dashboard","scrollSelector",".dashboard","popupClasses","isp-dashboard-datepicker-popup",3,"update","anchor","anchorOffset","open","ignoreChildren","clip","cssVars","directionOrder","hideOnScroll"],[1,"list__datepicker"],[3,"startAt","minDate","maxDate","selected","selectedChange","click",4,"ngIf"],[1,"list__datepicker-footer"],["type","button",1,"list__datepicker-apply-button",3,"click","disabled"],[1,"widget__tab-picked-date"],[1,"widget__tab",3,"click"],[3,"selectedChange","click","startAt","minDate","maxDate","selected"],["class","list__report",3,"report","doc","showLists",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list__report",3,"report","doc","showLists"],[1,"list"],["class","list__header",4,"ngIf"],[1,"list__header"],[1,"list__row","list__row_header"],["class","list__cell list__cell_header",4,"ngFor","ngForOf"],[1,"list__cell","list__cell_header"],[1,"list__sort-button",3,"sortChange","sortable","sortField","sortType","sortNumber","columnTitle","shrinkIcon"],["class","list__row",4,"ngFor","ngForOf"],[1,"list__row"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"funcClick","toolbtnClick","linkClick","cell"],[4,"ngFor","ngForOf"],[3,"funcClick","cell"],[1,"list-empty"],["type","dashboard-empty-list"],[1,"list__buttons"],["type","button","class","isp-button isp-button_theme_secondary list__button",3,"click",4,"ngFor","ngForOf"],["type","button",1,"isp-button","isp-button_theme_secondary","list__button",3,"click"],["name","button.$img",3,"customStyle",4,"ngIf"],["name","button.$img",3,"customStyle"],[1,"list-footer-pagination",3,"pageChange","length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit"]],template:function(i,r){i&1&&(g(0,ln,15,23,"div",1)(1,pn,2,2,"ng-container",2)(2,hn,2,1,"ng-container",2)(3,bn,3,1,"table",3)(4,yn,4,3,"div",4),p(5,"footer",5),g(6,Sn,2,1,"div",6)(7,Mn,1,6,"isp-pagination",7),d()),i&2&&(a("ngIf",r.showRangeTabs),s(),a("ngIf",r.listsData==null?null:r.listsData.reportList),s(),a("ngIf",r.listsData==null||r.listsData.elementList==null||r.listsData.elementList.rows==null?null:r.listsData.elementList.rows.length),s(),a("ngIf",r.listsData==null?null:r.listsData.detailList),s(),a("ngIf",(!(!(r.listsData==null||r.listsData.elementList==null||r.listsData.elementList.rows==null)&&r.listsData.elementList.rows.length)&&!(r.listsData!=null&&r.listsData.detailList)&&!(r.listsData!=null&&r.listsData.reportList)||!(!(r.listsData==null||r.listsData.reportList==null)&&r.listsData.reportList.length)&&!(r.listsData!=null&&r.listsData.elementList)&&!(r.listsData!=null&&r.listsData.detailList))&&r.listsData),s(2),a("ngIf",r.listsData==null?null:r.listsData.listButtons.length),s(),a("ngIf",r.canShowPagination))},dependencies:[ne,F,I,B,Fe,me,ri,oi,he,ge,Rt,R],styles:[".widget__tabs[_ngcontent-%COMP%]{display:flex;gap:15px}.widget__tab[_ngcontent-%COMP%]{display:flex;align-items:center;height:27px;padding-top:5px;color:var(--isp-c-grey-weekdays);cursor:pointer}.widget__tab[_ngcontent-%COMP%]:hover{color:var(--isp-dc-fremen)}.widget__tab_active[_ngcontent-%COMP%]{color:var(--isp-dc-highway-star);border-bottom:var(--isp-dc-fremen) 2px solid;cursor:default}.widget__tab_active[_ngcontent-%COMP%]:hover{color:var(--isp-dc-highway-star)}.widget__tab-picked-date[_ngcontent-%COMP%]{margin-left:5px}",".list[_ngcontent-%COMP%]{width:100%;color:var(--isp-text-color-main);text-align:left;border-spacing:0;border-collapse:collapse}.list__cell[_ngcontent-%COMP%]{padding:8px 10px 8px 0;line-height:18px;color:var(--isp-dc-highway-star);border-bottom:1px var(--isp-dc-charlie-chaplin) solid}.list__cell[_ngcontent-%COMP%]:last-child{padding-right:0}.list__cell_header[_ngcontent-%COMP%]{padding:0 10px 8px 0;font-size:12px;font-weight:400;line-height:12px;color:var(--isp-c-grey-weekdays)}.list__sort-button[_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-3px}.list__row[_ngcontent-%COMP%]:last-child > .list__cell[_ngcontent-%COMP%]:not(.list__cell_header){border-bottom:none}.list__report[_ngcontent-%COMP%]{--isp-chart__width_type_pie: 195px;--isp-chart__height_type_pie: 195px;margin-top:10px}.list-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.list-empty_loading[_ngcontent-%COMP%]{opacity:0}.widget__tabs[_ngcontent-%COMP%] + .list-empty[_ngcontent-%COMP%]{padding-top:10px}.list-footer[_ngcontent-%COMP%]{display:flex;margin-top:10px}.list__buttons[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-wrap:wrap;align-content:center;justify-items:center;height:25px}.list__button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;border:none}.list__button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__button[_ngcontent-%COMP%]:first-child{margin-left:0}.list-footer-pagination[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:flex-end;height:25px}.list__datepicker[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:space-between;height:335px}.list__datepicker-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;margin-top:-10px;margin-bottom:15px}.list__datepicker-apply-button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;font-family:inherit;line-height:18px;color:var(--isp-dc-fremen);background:transparent;border:none;cursor:pointer}.list__datepicker-apply-button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__datepicker-apply-button[_ngcontent-%COMP%]:first-child{margin-left:0}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled{color:var(--isp-c-grey-weekdays);cursor:default}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled:hover{text-decoration:none}.widget__tab_datepicker[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-fremen)}.widget__tab_datepicker.widget__tab_active[_ngcontent-%COMP%]{cursor:pointer}mat-calendar[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:265px;height:290px}"],changeDetection:0});let n=o;return n})();var On=()=>[5,10,20];function $n(n,o){if(n&1){let t=v();p(0,"div",9),h("click",function(){let i=m(t).$implicit,r=l(2);return u(r.switchType(i.name))}),f(1),d()}if(n&2){let t=o.$implicit,e=l(2);z("widget__tab_active",t.name===e.currentTypeSubject.value),s(),M(" ",e.getMessage("title_"+t.name)||t.label," ")}}function In(n,o){if(n&1&&(p(0,"div",10),f(1),d()),n&2){let t=o.$implicit;s(),M(" ",t," ")}}function Tn(n,o){if(n&1&&C(0,"isp-svg-icon",15),n&2){let t=l(4);a("customStyle",t.iconStyle)}}function Dn(n,o){if(n&1){let t=v();p(0,"button",13),h("click",function(){let i=m(t).$implicit,r=l(3);return u(r.handleButtonClick(i))}),g(1,Tn,1,1,"isp-svg-icon",14),p(2,"span"),f(3),d()()}if(n&2){let t=o.$implicit,e=l(3);s(),a("ngIf",t.$img),s(2),k(e.getMessage("short_"+t.$name))}}function Ln(n,o){if(n&1&&(p(0,"div",11),g(1,Dn,4,2,"button",12),d()),n&2){let t=l(2);s(),a("ngForOf",t.listsData==null?null:t.listsData.listButtons)}}function En(n,o){if(n&1){let t=v();p(0,"isp-pagination",16),h("pageChange",function(i){m(t);let r=l(2);return u(r.paginationChange(i))}),d()}if(n&2){let t=o.ngIf,e=l(2);a("length",t.length)("pageSizeList",K(6,On))("pageSize",t.pageSize)("currPage",t.currPage)("ofLabel",e.getMessage("pagerfrom"))("disableCurrentPageEdit",!0)}}function Fn(n,o){if(n&1&&(p(0,"div",1)(1,"div",2),g(2,$n,2,3,"div",3),d(),p(3,"div",4),b(4,"async"),g(5,In,2,1,"div",5),b(6,"async"),d(),p(7,"footer",6),g(8,Ln,2,1,"div",7)(9,En,1,7,"isp-pagination",8),b(10,"async"),d()()),n&2){let t,e=l();s(2),a("ngForOf",e.entryTypes),s(),z("changelog_paginated-min-height",(t=y(4,6,e.pagination$))==null?null:t.paginatedMinHeight),s(2),a("ngForOf",y(6,8,e.changelogEntries$)),s(3),a("ngIf",e.listsData==null?null:e.listsData.listButtons.length),s(),a("ngIf",y(10,10,e.pagination$))}}var Ci={feature:4,improve:3,change:2,bugfix:1},Bn=5,Je=(()=>{let o=class o extends ee{constructor(){super(...arguments),this.currentTypeSubject=new $(""),this.paginationSubject=new $(null),this.entriesForCurrentType$=this.currentTypeSubject.pipe(O(e=>this.getChangelogEntries(e))),this.pagination$=Y([this.entriesForCurrentType$,this.paginationSubject]).pipe(at([null,null]),rt(),U(([e,i])=>i.find(Boolean)),O(([e,i])=>{let[r,c]=i,_=c?.pageSize||Bn;if(!r||r.length<=_)return null;let w=r!==e[0]?1:c?.currPage||1,W=r.length<_*w;return{length:r.length,pageSize:_,currPage:w,paginatedMinHeight:W}})),this.changelogEntries$=Y([this.entriesForCurrentType$,this.pagination$]).pipe(O(([e,i])=>i?e.slice((i.currPage-1)*i.pageSize,i.currPage*i.pageSize):e))}ngOnChanges(e){!e.doc||!this.doc||(this.elementList=this.listWidgetService.getConvertedElementList(this.doc),this.columnIndices=this.getColumnIndices(),this.entryTypes=this.getEntryTypes(),this.currentTypeSubject.next(this.entryTypes[0]?.name))}switchType(e){this.currentTypeSubject.next(e)}paginationChange(e){this.paginationSubject.next(e)}getChangelogEntries(e){return this.elementList.rows.filter(i=>i.cells[this.columnIndices.type].name===e).map(i=>i.cells[this.columnIndices.desc]?.value||"")}getColumnIndices(){return this.elementList.header.reduce((e,i,r)=>(e[i.$name]=r,e),{})}getEntryTypes(){let e=this.elementList.rows.reduce((i,r)=>{let c=r.cells[this.columnIndices.type];return i.labelsMap[c.name]||(i.keys.push(c.name),i.labelsMap[c.name]=c.value),i},{keys:[],labelsMap:{}});return e.keys.sort((i,r)=>(Ci[r]||0)-(Ci[i]||0)),e.keys.map(i=>({name:i,label:e.labelsMap[i]}))}};o.\u0275fac=(()=>{let e;return function(r){return(e||(e=G(o)))(r||o)}})(),o.\u0275cmp=P({type:o,selectors:[["isp-changelog-widget"]],features:[gt([fe]),A,Me],decls:1,vars:1,consts:[["class","changelog",4,"ngIf"],[1,"changelog"],[1,"widget__tabs"],["class","widget__tab",3,"widget__tab_active","click",4,"ngFor","ngForOf"],[1,"changelog__rows"],["class","changelog__row",4,"ngFor","ngForOf"],[1,"list__footer"],["class","list__buttons",4,"ngIf"],["class","list-footer-pagination",3,"length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit","pageChange",4,"ngIf"],[1,"widget__tab",3,"click"],[1,"changelog__row"],[1,"list__buttons"],["class","isp-button isp-button_theme_secondary list__button","type","button",3,"click",4,"ngFor","ngForOf"],["type","button",1,"isp-button","isp-button_theme_secondary","list__button",3,"click"],["name","button.$img",3,"customStyle",4,"ngIf"],["name","button.$img",3,"customStyle"],[1,"list-footer-pagination",3,"pageChange","length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit"]],template:function(i,r){i&1&&g(0,Fn,11,12,"div",0),i&2&&a("ngIf",r.elementList)},dependencies:[F,I,B,me,R],styles:[".widget__tabs[_ngcontent-%COMP%]{display:flex;gap:15px}.widget__tab[_ngcontent-%COMP%]{display:flex;align-items:center;height:27px;padding-top:5px;color:var(--isp-c-grey-weekdays);cursor:pointer}.widget__tab[_ngcontent-%COMP%]:hover{color:var(--isp-dc-fremen)}.widget__tab_active[_ngcontent-%COMP%]{color:var(--isp-dc-highway-star);border-bottom:var(--isp-dc-fremen) 2px solid;cursor:default}.widget__tab_active[_ngcontent-%COMP%]:hover{color:var(--isp-dc-highway-star)}.widget__tab-picked-date[_ngcontent-%COMP%]{margin-left:5px}",".changelog[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.changelog__rows[_ngcontent-%COMP%]{width:100%;margin:0;border-collapse:collapse}.changelog__rows.changelog_paginated-min-height[_ngcontent-%COMP%]{min-height:240px}.changelog__row[_ngcontent-%COMP%]{display:flex;padding:8px 0;line-height:18px;color:var(--isp-dc-highway-star);border-bottom:1px var(--isp-dc-charlie-chaplin) solid;border-collapse:collapse}.changelog__row[_ngcontent-%COMP%]:last-child{border-bottom:none}",".list[_ngcontent-%COMP%]{width:100%;color:var(--isp-text-color-main);text-align:left;border-spacing:0;border-collapse:collapse}.list__cell[_ngcontent-%COMP%]{padding:8px 10px 8px 0;line-height:18px;color:var(--isp-dc-highway-star);border-bottom:1px var(--isp-dc-charlie-chaplin) solid}.list__cell[_ngcontent-%COMP%]:last-child{padding-right:0}.list__cell_header[_ngcontent-%COMP%]{padding:0 10px 8px 0;font-size:12px;font-weight:400;line-height:12px;color:var(--isp-c-grey-weekdays)}.list__sort-button[_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-3px}.list__row[_ngcontent-%COMP%]:last-child > .list__cell[_ngcontent-%COMP%]:not(.list__cell_header){border-bottom:none}.list__report[_ngcontent-%COMP%]{--isp-chart__width_type_pie: 195px;--isp-chart__height_type_pie: 195px;margin-top:10px}.list-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.list-empty_loading[_ngcontent-%COMP%]{opacity:0}.widget__tabs[_ngcontent-%COMP%] + .list-empty[_ngcontent-%COMP%]{padding-top:10px}.list-footer[_ngcontent-%COMP%]{display:flex;margin-top:10px}.list__buttons[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-wrap:wrap;align-content:center;justify-items:center;height:25px}.list__button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;border:none}.list__button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__button[_ngcontent-%COMP%]:first-child{margin-left:0}.list-footer-pagination[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:flex-end;height:25px}.list__datepicker[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:space-between;height:335px}.list__datepicker-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;margin-top:-10px;margin-bottom:15px}.list__datepicker-apply-button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;font-family:inherit;line-height:18px;color:var(--isp-dc-fremen);background:transparent;border:none;cursor:pointer}.list__datepicker-apply-button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__datepicker-apply-button[_ngcontent-%COMP%]:first-child{margin-left:0}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled{color:var(--isp-c-grey-weekdays);cursor:default}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled:hover{text-decoration:none}.widget__tab_datepicker[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-fremen)}.widget__tab_datepicker.widget__tab_active[_ngcontent-%COMP%]{cursor:pointer}mat-calendar[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:265px;height:290px}"],changeDetection:0});let n=o;return n})();var Wn=()=>["","danger","warning","success","info"];function jn(n,o){if(n&1&&(p(0,"div",3)(1,"div",4),f(2),d(),p(3,"div",5),f(4),d()()),n&2){let t=l(2);s(2),k(t.getMessage("license_id")),s(2),M(" ",t.getValue("license_id")," ")}}function Rn(n,o){if(n&1&&(p(0,"div",3)(1,"div",4),f(2),d(),p(3,"div",5),f(4),d()()),n&2){let t=l(2);s(2),k(t.getMessage("license_name")),s(2),M(" ",t.getValue("license_name")," ")}}function An(n,o){if(n&1&&(p(0,"div",3)(1,"div",4),f(2),d(),p(3,"div",5),f(4),d()()),n&2){let t=l(2);s(2),k(t.getMessage("expiry_date")),s(2),M(" ",t.getValue("license_expiry_date")," ")}}function Nn(n,o){if(n&1&&(p(0,"div",3)(1,"div",4),f(2),d(),p(3,"div",5),f(4),d()()),n&2){let t=l(2);s(2),k(t.getMessage("limit_websites")),s(2),M(" ",t.hasLimit?t.getValue("limit_webdomain"):t.getMessage("infinit")," ")}}function zn(n,o){if(n&1&&(p(0,"isp-banner",13),C(1,"div",14),d()),n&2){let t=o.ngIf;a("status",K(2,Wn)[+t.$status]),s(),a("innerHTML",t.msg.$,Pe)}}function qn(n,o){if(n&1){let t=v();p(0,"button",8),h("click",function(){let i=m(t).ngIf,r=l(2);return u(r.handleClick(i))}),C(1,"isp-svg-icon",15),p(2,"span"),f(3),d()()}if(n&2){let t=l(2);s(3),k(t.getMessage("update_panel"))}}function Un(n,o){if(n&1){let t=v();D(0),p(1,"div",1),g(2,jn,5,2,"div",2)(3,Rn,5,2,"div",2)(4,An,5,2,"div",2)(5,Nn,5,2,"div",2),p(6,"div",3)(7,"div",4),f(8),d(),p(9,"div",5),f(10),d()()(),g(11,zn,2,3,"isp-banner",6),p(12,"div",7)(13,"button",8),h("click",function(){m(t);let i=l();return u(i.reloadLicense())}),C(14,"isp-svg-icon",9),p(15,"span"),f(16),d()(),g(17,qn,4,1,"button",10),p(18,"button",11),h("click",function(){m(t);let i=l();return u(i.handleClick(i.getValue("change_tariff_func")))}),C(19,"isp-svg-icon",12),p(20,"span"),f(21),d()()(),dt(22),L()}if(n&2){let t=l();s(2),a("ngIf",t.getValue("license_id")),s(),a("ngIf",t.getValue("license_name")),s(),a("ngIf",t.getValue("license_expiry_date")),s(),a("ngIf",!t.isNoLicense),s(3),k(t.getMessage("version")),s(2),M(" ",t.getValue("version")," "),s(),a("ngIf",t.doc.banner==null?null:t.doc.banner[0]),s(5),k(t.getMessage("reload_license")),s(),a("ngIf",t.getValue("update_func")),s(2),a("name",t.isNoLicense?"license_s":"replacement_s"),s(2),k(t.isNoLicense?t.getMessage("nolisence_button"):t.getMessage("change_tariff"))}}var Xe=(()=>{let o=class o extends ue{get hasLimit(){return this.getValue("limit_webdomain")!=="infinit"}get isNoLicense(){return!!this.doc.nolicense}reloadLicense(){this.update.emit(be(`func=${this.getValue("reload_license_func")}`))}handleClick(e){this.dashboardService.handleButtonAction(e)}};o.\u0275fac=(()=>{let e;return function(r){return(e||(e=G(o)))(r||o)}})(),o.\u0275cmp=P({type:o,selectors:[["isp-license-widget"]],features:[A],decls:1,vars:1,consts:[[4,"ngIf"],[1,"license__rows"],["class","license__row",4,"ngIf"],[1,"license__row"],[1,"license__row-label"],[1,"license__row-value"],["class","license__banner",3,"status",4,"ngIf"],[1,"license__buttons"],["type","button",1,"isp-button","isp-button_theme_secondary","license__button",3,"click"],["name","update_s"],["class","isp-button isp-button_theme_secondary license__button","type","button",3,"click",4,"ngIf"],["type","button",1,"isp-button","isp-button_theme_secondary","license__button","license__button_last-row",3,"click"],[3,"name"],[1,"license__banner",3,"status"],[3,"innerHTML"],["name","update_panel_s"]],template:function(i,r){i&1&&g(0,Un,23,11,"ng-container",0),i&2&&a("ngIf",r.doc)},dependencies:[I,B,wt],styles:[".license__rows[_ngcontent-%COMP%]{display:table;width:100%;margin:-9px 0;border-collapse:collapse}.license__row[_ngcontent-%COMP%]{display:table-row;height:35px;border-collapse:collapse;border-bottom:1px var(--isp-dc-charlie-chaplin) solid}.license__row[_ngcontent-%COMP%]:last-child{border-bottom:none}.license__row-label[_ngcontent-%COMP%]{display:table-cell;padding-right:10px;font-size:14px;vertical-align:middle;color:var(--isp-dc-highway-star)}.license__row-value[_ngcontent-%COMP%]{display:table-cell;width:50%;margin-right:10px;font-size:14px;vertical-align:middle;color:var(--isp-dc-highway-star)}.license__banner[_ngcontent-%COMP%]{margin-top:15px}.license__buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:5px 0;margin-top:10px}.license__button[_ngcontent-%COMP%]{display:flex;flex-basis:50%;gap:10px;justify-content:flex-start;height:20px;padding:0 10px 0 0;margin-bottom:15px;border:none}.license__button[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-lapis-lazuli);color:var(--isp-dc-lapis-lazuli)}.license__button_last-row[_ngcontent-%COMP%]{margin-bottom:0}.license__update[_ngcontent-%COMP%]{padding-left:10px;white-space:nowrap}.license__warning[_ngcontent-%COMP%]{color:var(--isp-dc-bright-emotions)}"],changeDetection:0});let n=o;return n})();function Hn(n,o){if(n&1&&(p(0,"tr",6)(1,"td",7)(2,"div",8),f(3),d(),p(4,"div",9),f(5),d()()()),n&2){let t=o.$implicit;s(3),k(t.name),s(2),k(t.value)}}function Qn(n,o){if(n&1&&(p(0,"table",4)(1,"tbody"),g(2,Hn,6,2,"tr",5),d()()),n&2){let t=o.ngIf;s(2),a("ngForOf",t)}}function Yn(n,o){if(n&1&&(p(0,"div",10),C(1,"isp-illustration",11),p(2,"div"),f(3),d()()),n&2){let t=l();s(3),k(t.getDesktopMessage("msg_empty_list"))}}function Jn(n,o){if(n&1&&C(0,"isp-svg-icon",16),n&2){let t=l(3);a("customStyle",t.iconStyle)}}function Xn(n,o){if(n&1){let t=v();p(0,"button",14),h("click",function(){let i=m(t).$implicit,r=l(2);return u(r.handleButtonClick(i))}),g(1,Jn,1,1,"isp-svg-icon",15),p(2,"span"),f(3),d()()}if(n&2){let t=o.$implicit,e=l(2);s(),a("ngIf",t.$img),s(2),k(e.getMessage("short_"+t.$name))}}function Kn(n,o){if(n&1&&(p(0,"div",12),g(1,Xn,4,2,"button",13),d()),n&2){let t=l();s(),a("ngForOf",t.listsData==null?null:t.listsData.listButtons)}}var Ke=(()=>{let o=class o extends ee{get table(){return this.doc?.metadata?.rowdata?.rowgroup&&this.listWidgetService.getNameValueDetailList(this.doc)}};o.\u0275fac=(()=>{let e;return function(r){return(e||(e=G(o)))(r||o)}})(),o.\u0275cmp=P({type:o,selectors:[["isp-software-widget"]],features:[A],decls:4,vars:3,consts:[["class","list",4,"ngIf"],["class","list-empty",4,"ngIf"],[1,"list-footer"],["class","list__buttons",4,"ngIf"],[1,"list"],["class","list__row",4,"ngFor","ngForOf"],[1,"list__row"],[1,"list__cell"],[1,"software__name"],[1,"software__value"],[1,"list-empty"],["type","dashboard-empty-list"],[1,"list__buttons"],["class","isp-button isp-button_theme_secondary list__button","type","button",3,"click",4,"ngFor","ngForOf"],["type","button",1,"isp-button","isp-button_theme_secondary","list__button",3,"click"],["name","button.$img",3,"customStyle",4,"ngIf"],["name","button.$img",3,"customStyle"]],template:function(i,r){i&1&&(g(0,Qn,3,1,"table",0)(1,Yn,4,1,"div",1),p(2,"footer",2),g(3,Kn,2,1,"div",3),d()),i&2&&(a("ngIf",r.table),s(),a("ngIf",!(r.listsData!=null&&r.listsData.detailList)&&!r.loading),s(2),a("ngIf",r.listsData==null?null:r.listsData.listButtons.length))},dependencies:[F,I,B,ge],styles:[".list[_ngcontent-%COMP%]{width:100%;color:var(--isp-text-color-main);text-align:left;border-spacing:0;border-collapse:collapse}.list__cell[_ngcontent-%COMP%]{padding:8px 10px 8px 0;line-height:18px;color:var(--isp-dc-highway-star);border-bottom:1px var(--isp-dc-charlie-chaplin) solid}.list__cell[_ngcontent-%COMP%]:last-child{padding-right:0}.list__cell_header[_ngcontent-%COMP%]{padding:0 10px 8px 0;font-size:12px;font-weight:400;line-height:12px;color:var(--isp-c-grey-weekdays)}.list__sort-button[_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-3px}.list__row[_ngcontent-%COMP%]:last-child > .list__cell[_ngcontent-%COMP%]:not(.list__cell_header){border-bottom:none}.list__report[_ngcontent-%COMP%]{--isp-chart__width_type_pie: 195px;--isp-chart__height_type_pie: 195px;margin-top:10px}.list-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.list-empty_loading[_ngcontent-%COMP%]{opacity:0}.widget__tabs[_ngcontent-%COMP%] + .list-empty[_ngcontent-%COMP%]{padding-top:10px}.list-footer[_ngcontent-%COMP%]{display:flex;margin-top:10px}.list__buttons[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-wrap:wrap;align-content:center;justify-items:center;height:25px}.list__button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;border:none}.list__button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__button[_ngcontent-%COMP%]:first-child{margin-left:0}.list-footer-pagination[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:flex-end;height:25px}.list__datepicker[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:space-between;height:335px}.list__datepicker-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;margin-top:-10px;margin-bottom:15px}.list__datepicker-apply-button[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-start;height:18px;padding:0 10px 0 0;font-family:inherit;line-height:18px;color:var(--isp-dc-fremen);background:transparent;border:none;cursor:pointer}.list__datepicker-apply-button[_ngcontent-%COMP%]:hover{color:var(--isp-dc-lapis-lazuli);text-decoration:underline}.list__datepicker-apply-button[_ngcontent-%COMP%]:first-child{margin-left:0}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled{color:var(--isp-c-grey-weekdays);cursor:default}.list__datepicker-apply-button[_ngcontent-%COMP%]:disabled:hover{text-decoration:none}.widget__tab_datepicker[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-fremen)}.widget__tab_datepicker.widget__tab_active[_ngcontent-%COMP%]{cursor:pointer}mat-calendar[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:265px;height:290px}",".software__name[_ngcontent-%COMP%]{padding-bottom:5px;font-weight:var(--isp-font-weight-bold);line-height:14px}.software__value[_ngcontent-%COMP%]{line-height:14px}"],changeDetection:0});let n=o;return n})();function eo(n,o){if(n&1){let t=v();p(0,"td",8)(1,"isp-list-block-cell",9),h("funcClick",function(i){m(t);let r=l().$implicit,c=l(2);return u(c.clickValueFunc(i,r.elid))}),d()()}if(n&2){let t=o.$implicit,e=l(3);a("ngClass",e.getClassForCell(t)),s(),a("cell",t)}}function to(n,o){if(n&1&&(p(0,"tr",6),g(1,eo,2,2,"td",7),d()),n&2){let t=o.$implicit;s(),a("ngForOf",t.cells)}}function io(n,o){if(n&1&&(p(0,"table",4)(1,"tbody"),g(2,to,2,1,"tr",5),d()()),n&2){let t=l();s(2),a("ngForOf",t.rows)}}function no(n,o){if(n&1&&(p(0,"div",10),C(1,"isp-illustration",11),p(2,"div"),f(3),d()()),n&2){let t=l();z("list-empty_loading",t.loading),s(3),k(t.getDesktopMessage("msg_empty_list"))}}function oo(n,o){if(n&1){let t=v();p(0,"isp-pagination",12),h("pageChange",function(i){m(t);let r=l();return u(r.changePage(i))}),d()}if(n&2){let t=l();a("length",t.elementsAmount)("pageSizeList",t.pageSizeList)("pageSize",t.elementsPerPage)("currPage",t.currentPage)("ofLabel",t.msgs==null?null:t.msgs.pagerfrom)("disableCurrentPageEdit",!0)}}var Ze=(()=>{let o=class o extends ee{constructor(){super(...arguments),this.pageSizeList=[5,10,20]}get currentPage(){return this.data.frontendPagination.currentPage}get elementsPerPage(){return this.data.frontendPagination.elementsPerPage}get elementsAmount(){return this.allRows?.length}get allRows(){return this.listsData?.detailList?.reduce((e,i)=>(e.splice(e.length,0,...i.rows),e),[]).sort((e,i)=>e.cells&&e.cells[1]&&e.cells[1].value.match(/^[1-9]/)?-1:i.cells&&i.cells[1]&&i.cells[1].value.match(/^[1-9]/)?1:e.cells&&e.cells[1]&&e.cells[1].value.match(/^0/)?-1:i.cells&&i.cells[1]&&i.cells[1].value.match(/^0/)?1:0)}get rows(){return this.allRows.slice((this.currentPage-1)*this.elementsPerPage,this.currentPage*this.elementsPerPage)}get canShowPagination(){return this.allRows?.length>this.pageSizeList[0]}changePage(e){let i=Math.ceil(this.allRows?.length/e.pageSize);this.data.frontendPagination.currentPage=Math.min(e.currPage,i),this.data.frontendPagination.elementsPerPage=e.pageSize}ngOnInit(){this.data.frontendPagination||(this.data.frontendPagination={currentPage:1,elementsPerPage:10})}};o.\u0275fac=(()=>{let e;return function(r){return(e||(e=G(o)))(r||o)}})(),o.\u0275cmp=P({type:o,selectors:[["isp-user-limits-widget"]],features:[A],decls:4,vars:3,consts:[["class","list",4,"ngIf"],["class","list-empty",3,"list-empty_loading",4,"ngIf"],[1,"list-footer"],["class","list-footer-pagination",3,"length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit","pageChange",4,"ngIf"],[1,"list"],["class","list__row",4,"ngFor","ngForOf"],[1,"list__row"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"funcClick","cell"],[1,"list-empty"],["type","dashboard-empty-list"],[1,"list-footer-pagination",3,"pageChange","length","pageSizeList","pageSize","currPage","ofLabel","disableCurrentPageEdit"]],template:function(i,r){i&1&&(g(0,io,3,1,"table",0)(1,no,4,3,"div",1),p(2,"footer",2),g(3,oo,1,6,"isp-pagination",3),d()),i&2&&(a("ngIf",r.rows),s(),a("ngIf",(!(r.listsData!=null&&r.listsData.detailList)||!(r.listsData!=null&&r.listsData.detailList.length))&&r.listsData),s(2),a("ngIf",r.canShowPagination))},dependencies:[ne,F,I,me,he,ge],styles:[".list[_ngcontent-%COMP%]{width:100%;color:var(--isp-text-color-main);text-align:left;border-spacing:0;border-collapse:collapse}.list__cell[_ngcontent-%COMP%]{padding:8px 10px 8px 0;line-height:18px;color:var(--isp-dc-highway-star);border-bottom:1px var(--isp-dc-charlie-chaplin) solid}.list__cell[_ngcontent-%COMP%]:last-child{padding-right:0}.list__row[_ngcontent-%COMP%]:last-child > .list__cell[_ngcontent-%COMP%]:not(.list__cell_header){border-bottom:none}.list-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.list-empty_loading[_ngcontent-%COMP%]{opacity:0}.list-footer[_ngcontent-%COMP%]{display:flex;margin-top:10px}.list-footer-pagination[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:flex-end;height:25px}",".software__name[_ngcontent-%COMP%]{padding-bottom:5px;font-weight:var(--isp-font-weight-bold);line-height:14px}.software__value[_ngcontent-%COMP%]{line-height:14px}"],changeDetection:0});let n=o;return n})();var Ae=class{constructor(o,t){this.docSubject=new $(null),this.doc$=this.docSubject.asObservable(),this.loading$=new $(!0),Object.assign(this,{type:o.$type,id:o.$name,title:t,data:o})}updateDoc(o,t){this.loading$.next(!1),this.params=t,o&&this.docSubject.next(o)}setLoading(){this.loading$.next(!0)}};var ao=["header"],so=["*",[["header"]]],lo=["*","header"],co=n=>({"form-collapse-content_hidden":n}),po=n=>({"form-collapse__header_opened":n});function _o(n,o){if(n&1){let t=v();p(0,"isp-svg-icon",8),h("click",function(i){m(t);let r=l(2);return u(r.refreshContent(i))})("keyup.enter",function(i){m(t);let r=l(2);return u(r.refreshContent(i))})("keyup.space",function(i){m(t);let r=l(2);return u(r.refreshContent(i))}),d()}if(n&2){let t=l(2);z("form_collapse__icon_is_spinning",t.isRefreshing),a("customStyle",t.retryIconStyles)("ispTooltip",t.refreshTooltipMsg)("tabIndex",0)}}function go(n,o){if(n&1){let t=v();p(0,"header",4,0),h("click",function(){m(t);let i=l();return u(i.toggleCollapse())})("keydown.space",function(){m(t);let i=l();return u(i.toggleCollapse())})("keydown.enter",function(i){m(t);let r=l();return u(r.toggleCollapse(i))}),C(2,"isp-svg-icon",5),b(3,"async"),p(4,"span",6),f(5),d(),g(6,_o,1,5,"isp-svg-icon",7),d()}if(n&2){let t=l();Ue("form-collapse__header form-collapse__header_"+t.classNameModificator),a("ngClass",xe(14,po,t.isOpened))("tabIndex",0),pt("aria-expanded",t.isOpened)("aria-controls",t.id)("aria-label",t.data.title),s(2),a("ispTooltip",y(3,12,t.headerTooltip$))("name",t.icon)("customStyle",t.iconStyles),s(3),M(" ",t.data.title," "),s(),a("ngIf",t.canRefresh)}}function mo(n,o){if(n&1){let t=v();p(0,"div",9),h("click",function(){m(t);let i=l();return u(i.toggleCollapse())}),Ge(1,1),d()}}var uo=5,xi=(()=>{let o=class o{get id(){return this._id||(this._id=`collapse-${this.data?.name||Math.floor(Math.random()*10**10)}`),this._id}get icon(){return this.isOpened?"down":"up"}get isBaseMode(){return this.data?.isBaseMode}get isDrawerMode(){return this.data?.isDrawerMode}constructor(e,i,r){this.changeDetectorRef=e,this.bus=i,this.destroyRef=r,this.isOpenedSubject=new $(!1),this.headerTooltip$=this.isOpenedSubject.pipe(O(c=>c?this.collapseTooltipMsg:this.expandTooltipMsg)),this.refresh$=null,this.classNameModificator="default",this.iconStyles={width:"10px",height:"10px"},this.toggle=new te,this.retryIconStyles={width:"15px",height:"13px"}}initPageToggle(){this.bus.on$("form-collapse-toggle").pipe(U(e=>e.payload.name===this.data.name),Z(this.destroyRef)).subscribe(e=>{this.emitCollapseEvent(e.payload.openState),setTimeout(()=>{e.response()},uo)})}initPageScroll(){this.bus.on$("form-collapse-scroll-to").pipe(U(e=>e.payload.name===this.data.name),Z(this.destroyRef)).subscribe(e=>{let i=this.header.nativeElement;switch(e.payload.scrollPosition){case"top":i.scrollIntoView({behavior:"smooth",block:"end",inline:"end"});return;case"bottom":i.scrollIntoView({behavior:"smooth",block:"start",inline:"end"});return;default:i.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"});return}})}ngOnInit(){this.isOpened=!this.collapsed||this.data&&!this.data.title.length,this.isOpenedSubject.next(this.isOpened),this.initPageToggle(),this.initPageScroll()}toggleCollapse(e){e&&(e.preventDefault(),e.stopPropagation()),this.emitCollapseEvent()}emitCollapseEvent(e=!this.isOpened){if(e===this.isOpened)return;this.isOpened=e,this.isOpenedSubject.next(this.isOpened);let i={isOpened:this.isOpened,name:this.data?.name};this.toggle.next(i),this.bus.emit("form-collapse-state",i)}refreshContent(e){e.preventDefault(),e.stopPropagation(),this.refresh$&&(this.isRefreshing=!0,this.refresh$.pipe(ot()).subscribe(()=>{this.isRefreshing=!1,this.changeDetectorRef.markForCheck()}))}};o.\u0275fac=function(i){return new(i||o)(T(De),T(ht),T(le))},o.\u0275cmp=P({type:o,selectors:[["isp-form-collapse"]],viewQuery:function(i,r){if(i&1&&Oe(ao,5),i&2){let c;$e(c=Ie())&&(r.header=c.first)}},inputs:{data:"data",collapsed:"collapsed",refresh$:"refresh$",canRefresh:"canRefresh",refreshTooltipMsg:"refreshTooltipMsg",classNameModificator:"classNameModificator",collapseTooltipMsg:"collapseTooltipMsg",expandTooltipMsg:"expandTooltipMsg"},outputs:{toggle:"toggle"},ngContentSelectors:lo,decls:4,vars:8,consts:[["header",""],["role","button",3,"class","ngClass","tabIndex","click","keydown.space","keydown.enter",4,"ngIf"],[3,"click",4,"ngIf"],[3,"id","ngClass"],["role","button",3,"click","keydown.space","keydown.enter","ngClass","tabIndex"],["ispTooltipPosition","top-start",1,"form-collapse__icon",3,"ispTooltip","name","customStyle"],[1,"form-collapse__title"],["name","update_s","class","form-collapse__icon form-collapse__icon_retry","ispTooltipPosition","top-end","role","button",3,"customStyle","form_collapse__icon_is_spinning","ispTooltip","tabIndex","click","keyup.enter","keyup.space",4,"ngIf"],["name","update_s","ispTooltipPosition","top-end","role","button",1,"form-collapse__icon","form-collapse__icon_retry",3,"click","keyup.enter","keyup.space","customStyle","ispTooltip","tabIndex"],[3,"click"]],template:function(i,r){i&1&&(_t(so),g(0,go,7,16,"header",1)(1,mo,2,0,"div",2),p(2,"div",3),Ge(3),d()),i&2&&(a("ngIf",r.data&&!r.isBaseMode&&!r.isDrawerMode&&r.data.title.length),s(),a("ngIf",!r.data),s(),Ue("form-collapse__wrap form-collapse__wrap_"+r.classNameModificator),a("id",r.id)("ngClass",xe(6,co,!r.isOpened&&!r.isBaseMode&&!r.isDrawerMode)))},dependencies:[ne,I,B,It,R],styles:[".form-collapse__wrap[_ngcontent-%COMP%]:not(:empty){margin-bottom:var(--isp-form-collapse-wrap-mb, 15px)}.form-collapse__header[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:25px;padding:0 10px;margin-bottom:var(--isp-form-collapse-header-mb, 15px);font-size:14px;line-height:14px;color:var(--isp-collapse-header-color, var(--isp-text-color-main));background-color:var(--isp-dc-made-in-heaven);border-radius:var(--isp-border-radius-main);cursor:pointer;transition:background-color .1s ease-in-out}.form-collapse__header_url[_ngcontent-%COMP%]{display:none}.form-collapse__header[_ngcontent-%COMP%]:hover{background-color:var(--isp-dc-mass-relay)}.form-collapse__header_opened[_ngcontent-%COMP%]{margin-bottom:var(--isp-form-collapse-header_opened-mb, var(--isp-form-collapse-header-mb, 15px))}.form-collapse__title[_ngcontent-%COMP%]{margin-left:10px}.form-collapse__icon[_ngcontent-%COMP%]{--isp-icons-main-color: currentColor;z-index:5;display:flex;padding:5px;color:inherit}.form-collapse__icon_retry[_ngcontent-%COMP%]{--isp-icons-fill-color: transparent;margin-right:0;margin-left:auto}.form_collapse__icon_is_spinning[_ngcontent-%COMP%]{animation:1s linear _ngcontent-%COMP%_spin infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.form-collapse-content_hidden[_ngcontent-%COMP%]{display:none}"],changeDetection:0});let n=o;return n})();function ho(n,o){n&1&&C(0,"isp-loader",18),n&2&&a("loading",!0)}function Co(n,o){if(n&1){let t=v();p(0,"isp-list-widget",23),b(1,"async"),b(2,"async"),h("update",function(i){m(t);let r=l(2).$implicit,c=l(2);return u(c.refreshWidget(null,r,i))}),d()}if(n&2){let t=l(2).$implicit;a("doc",y(1,3,t.doc$))("data",t.data)("loading",y(2,5,t.loading$))}}function xo(n,o){if(n&1){let t=v();p(0,"isp-list-widget",23),b(1,"async"),b(2,"async"),h("update",function(i){m(t);let r=l(2).$implicit,c=l(2);return u(c.refreshWidget(null,r,i))}),d()}if(n&2){let t=l(2).$implicit;a("doc",y(1,3,t.doc$))("data",t.data)("loading",y(2,5,t.loading$))}}function vo(n,o){if(n&1){let t=v();p(0,"isp-license-widget",24),b(1,"async"),h("update",function(i){m(t);let r=l(2).$implicit,c=l(2);return u(c.refreshWidget(null,r,i))}),d()}if(n&2){let t=l(2).$implicit;a("doc",y(1,2,t.doc$))("data",t.data)}}function bo(n,o){if(n&1&&(C(0,"isp-changelog-widget",25),b(1,"async")),n&2){let t=l(2).$implicit;a("doc",y(1,2,t.doc$))("data",t.data)}}function yo(n,o){if(n&1&&(C(0,"isp-software-widget",25),b(1,"async")),n&2){let t=l(2).$implicit;a("doc",y(1,2,t.doc$))("data",t.data)}}function wo(n,o){if(n&1&&(C(0,"isp-user-limits-widget",25),b(1,"async")),n&2){let t=l(2).$implicit;a("doc",y(1,2,t.doc$))("data",t.data)}}function ko(n,o){if(n&1&&(D(0,19),g(1,Co,3,7,"isp-list-widget",20)(2,xo,3,7,"isp-list-widget",20)(3,vo,2,4,"isp-license-widget",21)(4,bo,2,4,"isp-changelog-widget",22)(5,yo,2,4,"isp-software-widget",22)(6,wo,2,4,"isp-user-limits-widget",22),L()),n&2){let t=l().$implicit;a("ngSwitch",t.type),s(),a("ngSwitchCase","list"),s(),a("ngSwitchCase","report"),s(),a("ngSwitchCase","isplicense"),s(),a("ngSwitchCase","changelog"),s(),a("ngSwitchCase","software"),s(),a("ngSwitchCase","userlimits")}}function So(n,o){if(n&1){let t=v();p(0,"div",4),g(1,ho,1,1,"isp-loader",5),b(2,"async"),p(3,"isp-form-collapse",6),h("toggle",function(i){let r=m(t).$implicit,c=l(2);return u(c.saveCollapseState(i,r))}),p(4,"header",7)(5,"h3",8)(6,"span"),f(7),d(),p(8,"button",9),C(9,"isp-svg-icon",10),d()(),p(10,"div",11),h("click",function(i){return m(t),u(i.stopPropagation())}),p(11,"button",12),h("click",function(i){let r=m(t).$implicit,c=l(2);return u(c.refreshWidget(i,r))}),C(12,"isp-svg-icon",13),d(),p(13,"div",14),h("mousedown",function(){m(t);let i=l(2);return u(i.setDragging(!0))}),C(14,"isp-svg-icon",15),d()()(),p(15,"div",16),g(16,ko,7,7,"ng-container",17),b(17,"async"),d()()()}if(n&2){let t=o.$implicit,e=l(2);a("cdkDragData",t),s(),a("ngIf",y(2,6,t.loading$)),s(2),a("collapsed",e.isWidgetCollapsed(t)),s(4),k(t.title),s(2),a("name",e.isWidgetCollapsed(t)?"arrow_down_s":"arrow_up_s"),s(7),a("ngIf",y(17,8,t.doc$))}}function Mo(n,o){if(n&1){let t=v();p(0,"div",2),h("cdkDropListDropped",function(i){m(t);let r=l();return u(r.drop(i))}),g(1,So,18,10,"div",3),d()}if(n&2){let t=o.$implicit,e=o.index,i=l();a("cdkDropListData",e),s(),a("ngForOf",t)("ngForTrackBy",i.trackByWidget)}}var vi=(()=>{let o=class o{constructor(e,i,r,c){this.dashboardService=e,this.cdr=i,this.breakpointsObserver=r,this.destroyRef=c,this.widgets$=this.dashboardService.blockList$.pipe(O(_=>_.filter(x=>x.$type!==de.TaskBar&&x.$type!==de.Url).map(x=>new Ae(x,this.dashboardService.getMessage(`title_${x.$name}`)))),J(_=>_.forEach(x=>this.dashboardService.getWidgetData(x))),ze({refCount:!0,bufferSize:1})),this.drop$=new $(null),this.columnsCount$=this.breakpointsObserver.observe(Array.from(Ye.keys())).pipe(O(_=>{let x=_.breakpoints,w=Object.keys(x).find(W=>x[W]);return Ye.get(w)})),this.columns$=Y([this.columnsCount$,this.widgets$]).pipe(qe(this.dashboardService.blockPositions$),O(([[_,x],w])=>mi([...x],_,w))),this.columnsAfterDrop$=Y([this.columns$,this.drop$]).pipe(we((_,[x,w])=>!w||x!==_?x:(w.previousColumnIndex===w.columnIndex?Nt(_[w.columnIndex],w.previousIndex,w.currentIndex):zt(_[w.previousColumnIndex],_[w.columnIndex],w.previousIndex,w.currentIndex),_),null),J(()=>this.cdr.markForCheck()),ze({refCount:!0,bufferSize:1})),this.blockOrderString$=this.drop$.pipe(U(_=>!!_),qe(Y([this.columnsCount$,this.columnsAfterDrop$,this.dashboardService.blockPositions$])),O(([_,[x,w,W]])=>{let S=W?q({},W):{};return S[`${x}col`]=w.map(j=>j.map(Ce=>Ce.data.$name)),S}),J(_=>this.dashboardService.blockPositionsLocalValue.next(_)),O(_=>JSON.stringify(_))),this.blockOrderString$.pipe(Z(this.destroyRef)).subscribe(_=>this.dashboardService.dashboardBlockOrderSave(_))}ngOnDestroy(){this.drop$.complete()}drop(e){this.drop$.next({columnIndex:e.container.data,previousColumnIndex:e.previousContainer.data,previousIndex:e.previousIndex,currentIndex:e.currentIndex})}trackByWidget(e,i){return i.id}saveCollapseState({isOpened:e},{data:i}){i.$display=e?"max":"min",this.cdr.markForCheck(),this.dashboardService.dashboardStateSave(i,e)}isWidgetCollapsed({data:e}){return e.$display==="min"}refreshWidget(e,i,r){this.isWidgetCollapsed(i)||(i.setLoading(),e?.stopPropagation(),this.dashboardService.getWidgetData(i,r))}setDragging(e){e?(document.body.classList.add("dragging"),document.body.style.cursor="grabbing"):(document.body.classList.remove("dragging"),document.body.style.cursor="unset")}};o.\u0275fac=function(i){return new(i||o)(T(H),T(De),T(Bt),T(le))},o.\u0275cmp=P({type:o,selectors:[["isp-widget-grid"]],decls:4,vars:7,consts:[["cdkDropListGroup","",1,"widget-grid",3,"mouseup"],["cdkDropList","","class","widget-grid__column",3,"cdkDropListData","cdkDropListDropped",4,"ngFor","ngForOf"],["cdkDropList","",1,"widget-grid__column",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","","class","widget",3,"cdkDragData",4,"ngFor","ngForOf","ngForTrackBy"],["cdkDrag","",1,"widget",3,"cdkDragData"],["class","widget__preloader","view","overlay",3,"loading",4,"ngIfTrue","ngIf"],[3,"toggle","collapsed"],[1,"widget__header"],[1,"widget__title"],["type","button",1,"widget__button","widget__button-toggle-collapse"],[3,"name"],[1,"widget__actions",3,"click"],["type","button",1,"widget__button",3,"click"],["name","update_s"],["cdkDragHandle","",1,"widget__drag-handle",3,"mousedown"],["name","drag_s"],[1,"widget__content"],[3,"ngSwitch",4,"ngIf"],["view","overlay",1,"widget__preloader",3,"loading"],[3,"ngSwitch"],[3,"doc","data","loading","update",4,"ngSwitchCase"],[3,"doc","data","update",4,"ngSwitchCase"],[3,"doc","data",4,"ngSwitchCase"],[3,"update","doc","data","loading"],[3,"update","doc","data"],[3,"doc","data"]],template:function(i,r){i&1&&(p(0,"div",0),b(1,"async"),h("mouseup",function(){return r.setDragging(!1)}),g(2,Mo,2,3,"div",1),b(3,"async"),d()),i&2&&(ce("--isp-widget-grid-columns",y(1,3,r.columnsCount$)),s(2),a("ngForOf",y(3,5,r.columnsAfterDrop$)))},dependencies:[F,I,Le,Ee,Ht,Gt,Ut,qt,xi,B,vt,ee,Xe,Je,Ke,Ze,R],styles:[".widget-grid[_ngcontent-%COMP%]{display:flex;gap:20px}.widget-grid__column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;width:calc(100% / var(--isp-widget-grid-columns))}.widget__preloader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:grid;width:100%;height:100%}.widget__content[_ngcontent-%COMP%]{position:relative;min-height:60px}[_nghost-%COMP%]{display:block}.widget[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;padding:15px 20px 0;background-color:var(--isp-dc-monochrome);border:1px solid var(--isp-dc-charlie-chaplin);border-radius:var(--isp-border-radius-main)}.widget__placeholder[_ngcontent-%COMP%]{display:block;background-color:var(--isp-c-air);border:1px solid var(--isp-c-blue-velvet);border-radius:var(--isp-border-radius-main)}.widget__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;cursor:pointer}.widget__title[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0;font-size:18px;font-weight:500;line-height:18px;color:var(--isp-text-color-main)}.widget__button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;margin:0;background:none;border:none;border-radius:var(--isp-border-radius-main);opacity:0;cursor:pointer;transition:background-color .1s ease-in-out,opacity .1s ease-in}.widget__button[_ngcontent-%COMP%]:hover{background-color:var(--isp-dc-norilsk)}.widget__button-toggle-collapse[_ngcontent-%COMP%]{opacity:1}.widget__button-toggle-collapse[_ngcontent-%COMP%]:hover{background:inherit;cursor:inherit}.widget[_ngcontent-%COMP%]:hover   .widget__button[_ngcontent-%COMP%], .widget[_ngcontent-%COMP%]:hover   .widget__drag-handle[_ngcontent-%COMP%]{opacity:1}.widget__drag-handle[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-c-grey-weekdays);display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;margin:0;opacity:0;cursor:grab;transition:opacity .1s ease-in}.widget__drag-handle[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-fremen)}@media only screen and (hover: none) and (pointer: coarse){.widget__button[_ngcontent-%COMP%], .widget__drag-handle[_ngcontent-%COMP%]{opacity:1}}.widget.cdk-drag-preview[_ngcontent-%COMP%]   .widget__drag-handle[_ngcontent-%COMP%], .widget.cdk-drag-preview[_ngcontent-%COMP%]   .widget__button[_ngcontent-%COMP%], .widget[_ngcontent-%COMP%]:active   .widget__drag-handle[_ngcontent-%COMP%], .widget[_ngcontent-%COMP%]:active   .widget__button[_ngcontent-%COMP%]{opacity:1}.widget__actions[_ngcontent-%COMP%]{display:flex;gap:5px;margin-right:-6px}.widget.cdk-drag-placeholder[_ngcontent-%COMP%]{background-color:var(--isp-c-air);border:1px solid var(--isp-c-blue-velvet);border-radius:var(--isp-border-radius-main)}.widget.cdk-drag-placeholder[_ngcontent-%COMP%]   .widget__header[_ngcontent-%COMP%], .widget.cdk-drag-placeholder[_ngcontent-%COMP%]   .widget__content[_ngcontent-%COMP%]{opacity:0}.cdk-drag-preview[_ngcontent-%COMP%]{box-shadow:var(--isp-box-shadow)}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .15s ease-in-out}.cdk-drop-list-dragging[_ngcontent-%COMP%]   .widget[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .15s ease-in-out}"],changeDetection:0});let n=o;return n})();function Oo(n,o){if(n&1&&C(0,"isp-dashboard-banner",9),n&2){let t=o.$implicit;a("data",t)}}function $o(n,o){if(n&1&&C(0,"isp-quick-actions",10),n&2){let t=o.$implicit;a("actions",t.toolbtn)}}var bi=(()=>{let o=class o{constructor(e,i){this.dashboardService=e,this.metric=i,this.topBlockList$=this.dashboardService.blockList$.pipe(O(r=>r.filter(c=>c.$type===de.Url))),this.quickActionsBars$=this.dashboardService.blockList$.pipe(O(r=>r.filter(c=>c.$type===de.TaskBar&&c.toolbtn.length>0))),this.doc$=this.dashboardService.doc$}ngOnInit(){this.metric.append({event:"user_open_dashboard",data:{}})}ngOnDestroy(){this.dashboardService.cancelAutoUpdate()}getMsg(e){return this.dashboardService.getDesktopMessage(e)}openSettings(){this.dashboardService.openDrawer({func:"dashboard.settings"})}reloadTab(){this.dashboardService.reloadTab()}};o.\u0275fac=function(i){return new(i||o)(T(H),T(Dt))},o.\u0275cmp=P({type:o,selectors:[["isp-dashboard"]],decls:13,vars:7,consts:[["cdkScrollable","",1,"dashboard","ispui-scrollbar_gray"],[1,"dashboard-header"],[1,"isp-h1","dashboard-title",3,"click"],["type","button",3,"click"],["name","gear_s"],[1,"dashboard-banners"],[3,"data",4,"ngFor","ngForOf"],["class","dashboard__quick-actions",3,"actions",4,"ngFor","ngForOf"],[1,"dashboard__widgets-grid"],[3,"data"],[1,"dashboard__quick-actions",3,"actions"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),h("click",function(){return r.reloadTab()}),f(3),d(),p(4,"button",3),h("click",function(){return r.openSettings()}),C(5,"isp-svg-icon",4),d()(),p(6,"div",5),g(7,Oo,1,1,"isp-dashboard-banner",6),b(8,"async"),d(),g(9,$o,1,1,"isp-quick-actions",7),b(10,"async"),p(11,"div"),C(12,"isp-widget-grid",8),d()()),i&2&&(s(3),M(" ",r.getMsg("modernmenu_dashboard")," "),s(4),a("ngForOf",y(8,3,r.topBlockList$)),s(2),a("ngForOf",y(10,5,r.quickActionsBars$)))},dependencies:[F,bt,B,_i,gi,vi,R],styles:[".dashboard[_ngcontent-%COMP%]{display:block;width:100%;max-height:100%;padding:25px var(--isp-main-page__padding-right) 0 var(--isp-main-page__padding-left);overflow-x:hidden;overflow-y:auto}.dashboard-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.dashboard-title[_ngcontent-%COMP%]{cursor:pointer}.dashboard-header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;margin:0;background:none;border:none;border-radius:var(--isp-border-radius-main);cursor:pointer;transition:background-color .1s ease-in-out}.dashboard-header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:var(--isp-dc-norilsk)}.dashboard__quick-actions[_ngcontent-%COMP%]{margin-bottom:20px}.dashboard__widgets-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-height:100%;padding-bottom:20px;overflow-x:hidden;overflow-y:auto}"],changeDetection:0});let n=o;return n})();var Io=[{path:"",component:bi}],yi=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=se({type:o}),o.\u0275inj=ae({imports:[He.forChild(Io),He]});let n=o;return n})();var wi=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=se({type:o}),o.\u0275inj=ae({imports:[pe,Be,Ft]});let n=o;return n})();var us=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=se({type:o}),o.\u0275inj=ae({providers:[H,fe,Vt,{provide:Wt,useClass:jt}],imports:[pe,yi,yt,Qt,wi,Be,ft,je,li,di,pi,he,ci,At,$t,Et]});let n=o;return n})();export{us as DashboardModule};