import{a as lo}from"./chunk-HTK7ASND.js";import{$ as ir,$a as io,A as En,Aa as Er,B as Dn,Ba as Dr,C as Pn,Ca as Pr,D as On,Da as Or,E as An,Ea as Ar,F as Rn,Fa as Rr,G as Un,Ga as Ur,H as Nn,Ha as Nr,I as Fn,Ia as Fr,J as Vn,Ja as Vr,K as Bn,Ka as Br,L as Ln,La as Lr,M as Gn,Ma as Gr,N as zn,Na as zr,O as Hn,Oa as Hr,P as jn,Pa as jr,Q as Wn,Qa as Wr,R as qn,Ra as qr,S as Jn,Sa as Jr,T as Yn,Ta as Yr,U as Qn,Ua as Qr,V as Kn,Va as Kr,W as $n,Wa as $r,X as Zn,Xa as Zr,Y as Xn,Ya as Xr,Z as er,Za as eo,_ as tr,_a as to,a as on,aa as nr,ab as no,b as an,ba as rr,bb as ro,c as sn,ca as or,cb as oo,d as ln,da as ar,db as ao,e as cn,ea as sr,f as dn,fa as lr,g as pn,ga as cr,h as mn,ha as dr,i as hn,ia as pr,j as un,ja as mr,k as gn,ka as hr,la as ur,m as vn,ma as gr,n as fn,na as vr,o as _n,oa as fr,p as yn,pa as _r,q as bn,qa as yr,r as Cn,ra as br,sa as Cr,t as Sn,ta as Sr,u as wn,ua as wr,v as xn,va as xr,w as kn,wa as kr,x as In,xa as Ir,y as Tn,ya as Tr,z as Mn,za as Mr}from"./chunk-YMPBRAMJ.js";import{a as ea,b as Lt}from"./chunk-ET22LPR2.js";import{f as co,g as $e,h as bt,m as po,n as Ct,p as mo,u as ho}from"./chunk-XMTEKAZT.js";import{a as ta,b as Gt,d as ia,e as na,f as zt}from"./chunk-Q7H2D3EK.js";import{a as je}from"./chunk-3QM6O57J.js";import"./chunk-Q7NEU37N.js";import{a as oa}from"./chunk-32IRILNI.js";import{a as we,b as ra}from"./chunk-PMLGCQK5.js";import{a as Kt,i as Xo,t as Bt}from"./chunk-FNARCYSS.js";import{a as gt,b as Wi,d as q,e as re,f as He,g as X}from"./chunk-QO3I7KTG.js";import{D as Vt,b as Yo,c as Ot,g as At,h as Qo,j as Ko,l as Rt,m as $o,t as Ut,u as Nt,v as Ft,y as Zo}from"./chunk-EZUMFAMZ.js";import{$a as Eo,$b as Jo,A as so,Aa as yo,B as uo,C as ze,Da as bo,F as St,Ja as Co,L as Ce,M as Qt,Nb as Bo,Ob as Mt,P as go,Pb as Et,Qa as So,Qb as Lo,Rb as Go,Sa as wo,Sb as zo,Ta as xo,Tb as Ho,Ua as ko,Ub as jo,Va as Io,Wa as To,Xa as Mo,Yb as Dt,Zb as Wo,_a as xt,_b as qo,cb as Do,db as Po,e as zi,eb as kt,f as Hi,fc as Pt,g as ji,gb as It,h as be,ha as vo,hb as Tt,i as vt,j as qi,jb as Oo,k as Ji,kb as Se,l as Yi,mb as Ao,n as Qi,nb as Ro,o as Ki,oa as fo,ob as Uo,p as $i,q as Zi,qa as wt,r as ft,rb as No,s as ne,sb as Fo,t as _t,tb as Vo,u as Xi,v as en,w as tn,x as nn,y as rn,z as yt,za as _o}from"./chunk-VA2ZAQUO.js";import{A as pi,Aa as wi,Ad as Vi,B as H,Bc as te,Bd as Ge,Ca as xi,Cb as N,Cc as Ai,D as fe,Da as ki,Db as dt,Dc as d,Dd as Bi,E as rt,Eb as K,Ec as A,Ed as Li,F as mi,Fa as Me,Fc as M,Fd as me,Ga as ce,Gb as se,Gc as Fe,Hd as Gi,I as Wt,Jb as C,Jc as E,K as hi,Ka as J,Kc as D,L as ui,La as lt,Lc as P,M as ot,Mb as Ei,N as gi,O as vi,Pc as ie,Qc as R,Rc as W,S as fi,Sa as Ii,Sb as Ee,Sc as Jt,Ta as qe,Tb as m,Tc as de,Ub as pt,Uc as Ri,Vb as De,Vc as Yt,Wc as Ve,X as We,Xc as ht,Y as oe,Yb as Je,Z as _i,_ as U,_b as Pe,_c as Be,a as si,ac as Ne,bc as _e,c as Oe,ca as yi,cc as ye,cd as Ui,dc as o,ea as ae,ec as a,f as ve,fa as at,fc as y,g as li,gc as Ye,ha as Ae,hb as Re,hc as Qe,ib as Q,ic as mt,j as nt,ja as j,jc as x,k as ci,ka as Te,kd as Z,mb as Ti,mc as _,na as bi,nb as s,oa as Ci,ob as b,oc as h,p as Ie,pb as Mi,pc as Di,qc as Pi,rc as $,sb as ct,sc as Ke,sd as Ni,ta as Si,tb as Ue,tc as qt,td as ut,u as G,ua as u,uc as Oi,ud as pe,va as g,vc as B,w as di,wa as z,wc as F,xa as st,xc as V,yd as Le,zd as Fi}from"./chunk-F5OOQG77.js";import{a as L,b as he,i as ge}from"./chunk-2AVGQ2MQ.js";var aa=["102 115",`<g style="fill: currentColor">
    <path d="M96 24.124 57 1.608a12 12 0 0 0-12 0L6 24.124a12.034 12.034 0 0 0-6 10.393V79.55a12.033 12.033 0 0 0 6 10.392l39 22.517a12 12 0 0 0 12 0l39-22.517a12.033 12.033 0 0 0 6-10.392V34.517a12.034 12.034 0 0 0-6-10.393ZM94 79.55a4 4 0 0 1-2 3.464l-39 22.517a4 4 0 0 1-4 0L10 83.014a4 4 0 0 1-2-3.464V34.517a4 4 0 0 1 2-3.464L49 8.536a4 4 0 0 1 4 0l39 22.517a4 4 0 0 1 2 3.464V79.55Z"/>
    <path d="M74.022 70.071h-2.866a4 4 0 0 0-1.925.494L51.95 80.05 32 68.531V45.554l19.95-11.519 17.29 9.455a4 4 0 0 0 1.919.49h2.863a2 2 0 0 0 2-2v-2.71a2 2 0 0 0-1.04-1.756L55.793 27.02a8.04 8.04 0 0 0-7.843.09L28 38.626a8.025 8.025 0 0 0-4 6.929V68.53a8 8 0 0 0 4 6.928l19.95 11.519a8.043 8.043 0 0 0 7.843.088l19.19-10.532a2 2 0 0 0 1.038-1.753v-2.71a2 2 0 0 0-2-2Z"/>
  </g>`];var sa=["685 116",`<g>
    <g style="fill:#cf2f4c" transform="translate(0 -10)">
      <path d="M399.5024,45.8636h1.2164a.5659.5659,0,0,1,.64.64v43.52a.5658.5658,0,0,1-.64.6406h-1.4083a.7517.7517,0,0,1-.768-.4482L379.2144,51.6234c-.086-.085-.16-.1172-.2242-.0967-.0634.0225-.0957.0967-.0957.2246l.064,38.2715a.5662.5662,0,0,1-.64.6406h-1.2159a.5656.5656,0,0,1-.64-.6406V46.5033a.5657.5657,0,0,1,.64-.64h1.3438a.7524.7524,0,0,1,.7681.4473l19.3281,38.4639c.0849.0869.16.1181.2241.0966s.0957-.0966.0957-.2246V46.5033A.5657.5657,0,0,1,399.5024,45.8636Z"/>
      <path d="M360.418,90.1507l-2.4317-8.832a.2965.2965,0,0,0-.32-.1914H340.8984a.2951.2951,0,0,0-.32.1914L338.21,90.0873a.6584.6584,0,0,1-.7037.5761H336.29a.5863.5863,0,0,1-.48-.1923.58.58,0,0,1-.0961-.5118l12.0317-43.5839a.6436.6436,0,0,1,.7041-.5118h1.6a.6442.6442,0,0,1,.7041.5118l12.16,43.5839.0644.1914c0,.3428-.2139.5127-.64.5127h-1.2163A.6426.6426,0,0,1,360.418,90.1507ZM341.3145,78.9193a.3057.3057,0,0,0,.2236.0957h15.4883a.3076.3076,0,0,0,.2236-.0957c.0645-.0645.0742-.1172.0322-.16L349.41,49.8314c-.043-.085-.086-.1279-.128-.1279s-.0859.0429-.1279.1279l-7.8721,28.9277C341.2393,78.8021,341.25,78.8548,341.3145,78.9193Z"/>
      <path d="M419.8223,87.9427a11.2812,11.2812,0,0,1-3.3282-8.48v-22.4a11.2857,11.2857,0,0,1,3.3282-8.48,13.69,13.69,0,0,1,17.6318-.0323,11.0472,11.0472,0,0,1,3.36,8.3838v1.92a.566.566,0,0,1-.64.6407H438.958a.5654.5654,0,0,1-.64-.6407v-1.92a9.019,9.019,0,0,0-2.6563-6.7519,10.7705,10.7705,0,0,0-14.0161,0,9.0946,9.0946,0,0,0-2.6558,6.8164V79.5267a9.0367,9.0367,0,0,0,2.6875,6.8164,9.7141,9.7141,0,0,0,7.04,2.5918,9.5618,9.5618,0,0,0,6.9765-2.5595,8.9655,8.9655,0,0,0,2.6241-6.72v-8.32a.2268.2268,0,0,0-.2564-.2558h-8.3843a.5654.5654,0,0,1-.64-.6407V69.4154a.5662.5662,0,0,1,.64-.6406h10.4961a.5667.5667,0,0,1,.64.6406v9.9834a11.3465,11.3465,0,0,1-3.3277,8.5762,13.7344,13.7344,0,0,1-17.664-.0323Z"/>
      <path d="M461.3838,89.5755a10.9043,10.9043,0,0,1-4.3525-4.5439,14.4642,14.4642,0,0,1-1.5357-6.7842V46.5033a.5657.5657,0,0,1,.64-.64h1.2159a.5659.5659,0,0,1,.64.64v32a10.543,10.543,0,0,0,2.7207,7.5517,10.36,10.36,0,0,0,14.336,0,10.5506,10.5506,0,0,0,2.72-7.5517v-32a.5655.5655,0,0,1,.64-.64h1.2163a.5661.5661,0,0,1,.64.64V78.2474a13.0121,13.0121,0,0,1-3.3921,9.376,11.8983,11.8983,0,0,1-9.0239,3.5518A12.8539,12.8539,0,0,1,461.3838,89.5755Z"/>
      <path d="M495.9048,90.0228V46.5033a.5657.5657,0,0,1,.64-.64h1.2158a.5663.5663,0,0,1,.64.64v41.664a.2259.2259,0,0,0,.2558.2559h19.2a.5665.5665,0,0,1,.6407.64v.96a.5663.5663,0,0,1-.6407.6406H496.5449A.5656.5656,0,0,1,495.9048,90.0228Z"/>
      <path d="M554.6436,90.1507l-2.4322-8.832a.2959.2959,0,0,0-.32-.1914H535.123a.2939.2939,0,0,0-.3193.1914l-2.3682,8.7686a.659.659,0,0,1-.7041.5761h-1.2158a.5888.5888,0,0,1-.48-.1923.5824.5824,0,0,1-.0957-.5118l12.0322-43.5839a.643.643,0,0,1,.7036-.5118h1.6a.6442.6442,0,0,1,.7041.5118l12.16,43.5839.0635.1914c0,.3428-.2138.5127-.64.5127h-1.2158A.6423.6423,0,0,1,554.6436,90.1507ZM535.5391,78.9193a.31.31,0,0,0,.2246.0957h15.4878a.31.31,0,0,0,.2241-.0957c.0635-.0645.0737-.1172.0317-.16l-7.8716-28.9277c-.0434-.085-.0864-.1279-.1284-.1279s-.0859.0429-.1279.1279l-7.8721,28.9277C535.4644,78.8021,535.4756,78.8548,535.5391,78.9193Z"/>
      <path d="M592.4473,90.1507,583.68,69.4154a.2515.2515,0,0,0-.2559-.1924H573.44a.2263.2263,0,0,0-.2559.2559V90.0228a.566.566,0,0,1-.64.6406h-1.2164a.5654.5654,0,0,1-.64-.6406V46.5033a.5655.5655,0,0,1,.64-.64h12.5445a9.9783,9.9783,0,0,1,7.7436,3.2315A12.2019,12.2019,0,0,1,594.56,57.639a12.4342,12.4342,0,0,1-2.24,7.584,9.3626,9.3626,0,0,1-6.08,3.7442q-.2563.1288-.128.32l8.7041,20.6074.064.2558c0,.3428-.1919.5127-.5757.5127h-1.1523A.7027.7027,0,0,1,592.4473,90.1507ZM573.1836,48.3588v18.496a.2267.2267,0,0,0,.2559.2569h10.3037a7.6688,7.6688,0,0,0,6.0166-2.5928,9.878,9.878,0,0,0,2.3037-6.8154,10.2885,10.2885,0,0,0-2.272-6.9766,7.6035,7.6035,0,0,0-6.0483-2.624H573.44A.2263.2263,0,0,0,573.1836,48.3588Z"/>
    </g>
    <g style="fill:currentColor;">
      <g>
        <path d="m96.835 25.058-39-22.517a12 12 0 0 0-12 0l-39 22.517a12.034 12.034 0 0 0-6 10.392v45.033a12.033 12.033 0 0 0 6 10.393l39 22.516a12 12 0 0 0 12 0l39-22.516a12.033 12.033 0 0 0 6-10.393V35.45a12.033 12.033 0 0 0-6-10.392Zm-2 55.425a4 4 0 0 1-2 3.464l-39 22.517a4 4 0 0 1-4 0l-39-22.517a4 4 0 0 1-2-3.464V35.45a4 4 0 0 1 2-3.464l39-22.517a4 4 0 0 1 4 0l39 22.517a4 4 0 0 1 2 3.464v45.033Z"/>
        <path d="M74.857 71.005H71.99a4 4 0 0 0-1.925.493l-17.28 9.485-19.951-11.518V46.487l19.95-11.518 17.29 9.455a4 4 0 0 0 1.918.49h2.864a2 2 0 0 0 2-2v-2.712a2 2 0 0 0-1.04-1.754L56.628 27.952a8.04 8.04 0 0 0-7.843.09L28.835 39.56a8.025 8.025 0 0 0-4 6.929v22.976a8 8 0 0 0 4 6.928l19.95 11.519a8.043 8.043 0 0 0 7.843.087l19.19-10.53a2 2 0 0 0 1.038-1.754v-2.71a2 2 0 0 0-2-2Z"/>
      </g>
      <g transform="translate(118 34)">
         <path d="M51.58.362c-8.28.009-14.99 6.719-15 15v17.277c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15V15.36c-.01-8.28-6.72-14.99-15-15Zm7 32.277a7 7 0 0 1-14 0V15.36a7 7 0 0 1 14 0V32.64ZM14.914 8.421a7.01 7.01 0 0 1 7.868 6.075.99.99 0 0 0 .984.865h6.03a1.01 1.01 0 0 0 .999-1.097C30.189 6.14 23.216-.02 15.079.381 6.996.932.748 7.696.835 15.796v16.407C.748 40.305 6.996 47.068 15.079 47.62c8.138.401 15.111-5.76 15.716-13.884a1.01 1.01 0 0 0-.998-1.097h-6.03a.99.99 0 0 0-.985.865 7.01 7.01 0 0 1-7.867 6.075 7.164 7.164 0 0 1-6.08-7.184v-16.79a7.164 7.164 0 0 1 6.079-7.184ZM97.757 27.928a12.159 12.159 0 0 0 7.184-11.077v-3.702A12.15 12.15 0 0 0 92.793 1H75.835a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V29h6.622l7.915 17.414a1 1 0 0 0 .91.586h6.591a1 1 0 0 0 .91-1.414l-8.026-17.658Zm-.816-11.077A4.154 4.154 0 0 1 92.794 21H82.94V9h9.852a4.154 4.154 0 0 1 4.148 4.15v3.7ZM139.835 1h-26a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-19V27h13a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-13V9h19a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1ZM177.835 1h-6a1 1 0 0 0-1 1v22.648a7.007 7.007 0 1 1-14 0V2a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v22.648a15.003 15.003 0 1 0 30 0V2a1 1 0 0 0-1-1Z"/>
         <rect width="8" height="38" x="186.835" y="1" rx="1"/>
      </g>
    </g>
  </g>`];var la={cibCcAmex:on,cibCcApplePay:an,cibCcMastercard:sn,cibCcPaypal:ln,cibCcStripe:cn,cibCcVisa:dn,cibFacebook:pn,cibGoogle:mn,cibLinkedin:hn,cibSkype:un,cibTwitter:gn,cifBr:vn,cifEs:fn,cifFr:_n,cifIn:yn,cifPl:bn,cifUs:Cn,cilAccountLogout:Sn,cilAlignCenter:wn,cilAlignLeft:xn,cilAlignRight:kn,cilApplicationsSettings:In,cilArrowBottom:Tn,cilArrowRight:Mn,cilArrowTop:Dn,cilBasket:Pn,cilBell:On,cilBold:An,cilBookmark:Rn,cilCalculator:Un,cilCalendar:Nn,cilChart:Vn,cilChartPie:Fn,cilCheck:Ln,cilCheckAlt:Bn,cilChevronLeft:Gn,cilChevronRight:zn,cilCloud:jn,cilCloudDownload:Hn,cilCode:Wn,cilCommentSquare:qn,cilContrast:Jn,cilCreditCard:Yn,cilCursor:Qn,cilDescription:Kn,cilDollar:Zn,cilDrop:Xn,cilEnvelopeClosed:er,cilEnvelopeOpen:tr,cilFile:nr,cilGrid:or,cilHome:lr,cilInbox:cr,cilIndentDecrease:dr,cilIndentIncrease:pr,cilItalic:mr,cilJustifyCenter:hr,cilLanguage:ur,cilLayers:gr,cilList:fr,cilListNumbered:vr,cilLocationPin:_r,cilLockLocked:yr,cilMagnifyingGlass:br,cilMap:Cr,cilMediaPlay:wr,cilMediaRecord:xr,cilMenu:Ir,cilMoon:Tr,cilNotes:Mr,cilOptions:Er,cilPaperclip:Pr,cilPaperPlane:Dr,cilPen:Or,cilPencil:Ar,cilPeople:Rr,cilPrint:Ur,cilPuzzle:Nr,cilReportSlash:Vr,cilSave:Br,cilSettings:Gr,cilShare:jr,cilShareAll:zr,cilShareBoxed:Hr,cilSpeech:Jr,cilSpeedometer:Yr,cilSpreadsheet:Qr,cilStar:Kr,cilSun:$r,cilTags:Zr,cilTask:Xr,cilTrash:to,cilUnderline:io,cilUser:ao,cilUserFemale:no,cilUserFollow:ro,cilUserUnfollow:oo,logo:sa,signet:aa,cilDevices:$n,cilSitemap:qr,cilTransfer:eo,cilHistory:sr,cilHandshake:ar,cilReload:Fr,cilFullscreen:rr,cilMediaPause:Sr,cilMediaStop:kr,cilShieldAlt:Wr,cilArrowThickBottom:En,cilEqualizer:ir,cilSend:Lr};var ca=(()=>{class t{constructor(e,n,i,r){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=r,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=L({},la)}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Qi})}updateTimeout(){let e=this.timeoutInSeconds*1e3;this.idleTimeoutService.setTimeoutDuration(e),alert(`Timeout updated to ${this.timeoutInSeconds} seconds.`)}static{this.\u0275fac=function(n){return new(n||t)(b(ne),b(Ji),b(yt),b(lo))}}static{this.\u0275cmp=N({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,i){n&1&&y(0,"router-outlet")},dependencies:[ft],encapsulation:2})}}return t})();var Ha=(()=>{class t extends Ct{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(j(Z),j($e),j(bt))};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();function ja(){return new po}function Wa(t,c,e){return new ho(t,c,e)}var da=[{provide:bt,useFactory:ja},{provide:Ct,useClass:Ha},{provide:ct,useFactory:Wa,deps:[vt,Ct,ce]}],qa=[{provide:$e,useFactory:()=>new mo},{provide:qe,useValue:"BrowserAnimations"},...da],Ep=[{provide:$e,useClass:co},{provide:qe,useValue:"NoopAnimations"},...da];function pa(){return lt("NgEagerAnimations"),[...qa]}var Ya=t=>({display:t}),ha=(()=>{class t extends Mo{constructor(e,n,i,r,p){super(),this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.sharedService=p,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/default_profile.jpg"],this.currentYear=new Date().getFullYear(),this.displayCreateStyle="none",this.neilLogo="",this.userLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.neilLogo=this.imageSrc[0],this.userLogo=this.imageSrc[2]}onImageError(e){let n=e.target;n.src=this.imageSrc[1]}openChatbot(){this.displayCreateStyle="block"}closeChatbot(){this.displayCreateStyle="none"}addChatEntry(e,n){this.chatHistory.push([e,n])}getChatHistory(){return this.chatHistory}startOverChat(){let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.createChatLayoutBot("Hello ! Ask me anything about CrashPlan Software","","")}get(e,n=document){return n.querySelector(e)}createChatLayoutBot(e,n,i){let r=this.neilLogo,p=this.get(".msger-chat");S("Neil",r,"left",e,n);function l(w){var k="0"+w.getHours(),T="0"+w.getMinutes();k=k.slice(-2),T=T.slice(-2);var I=k+":"+T;return I}function v(w,k){return Math.floor(Math.random()*(k-w)+w)}function S(w,k,T,I,O){var Y=l(new Date);if(O==""&&i=="")var it='<div class="msg '+T+'-msg"><div class="msg-img" style="background-image: url('+k+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+w+'</div><div class="msg-info-time">'+Y+'</div></div><div class="msg-text">'+I+"</div></div></div>";else var it='<div class="msg '+T+'-msg"><div class="msg-img" style="background-image: url('+k+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+w+'</div></div><div class="msg-text">'+I+'</div><p><a data-toggle="collapse" data-target="#collapseExample'+i+'" role="button" aria-expanded="false" aria-controls="collapseExample'+i+'" style="color: black;text-decoration: underline;padding: 0;font-size: 14px;">Show sources</a></p><div class="collapse" id="collapseExample'+i+'"><div class="card card-body">'+O+"</div></div></div></div>";p.insertAdjacentHTML("beforeend",it),p.scrollTop+=500}}createChatLayoutUser(e){let n=this.userLogo,i=this.get(".msger-chat"),r=atob(this.sharedService.getDataByKey("userName"));v(r,n,"right",e);function p(S){var w="0"+S.getHours(),k="0"+S.getMinutes();w=w.slice(-2),k=k.slice(-2);var T=w+":"+k;return T}function l(S,w){return Math.floor(Math.random()*(w-S)+S)}function v(S,w,k,T){var I=p(new Date);let O='<div class="msg '+k+'-msg"><div class="msg-img" style="background-image: url('+w+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+S+'</div></div><div class="msg-text">'+T+"</div></div></div>";i.insertAdjacentHTML("beforeend",O),i.scrollTop+=500}}getChatbotResults(){this.chatHistory=this.getChatHistory(),this.createChatLayoutUser(this.query),this.apiService.getChatbotResults(this.backupIndex,this.query,this.chatHistory).subscribe(e=>{},e=>{switch(e.status){case 400:break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break}})}static{this.\u0275fac=function(n){return new(n||t)(b(q),b(ne),b(X),b(we),b(re))}}static{this.\u0275cmp=N({type:t,selectors:[["app-default-footer"]],features:[ie([q,X]),se],decls:57,vars:10,consts:[[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["role","document",1,"modal-dialog","modal-fullscreen"],[1,"modal-content"],[1,"modal-header","header-container"],[1,"modal-title"],[2,"cursor","pointer",3,"click"],[1,"fa","fa-close"],[1,"modal-body"],[1,"col-lg-12","row"],[1,"col-lg-3","d-flex","align-items-center","justify-content-center",2,"height","100%","overflow","hidden"],["alt","Loaded Image","loading","lazy",1,"img-fluid",2,"max-width","100%","max-height","100%","object-fit","contain",3,"error","src"],[1,"col-lg-3","hide"],["for","backupIndex"],["name","backupIndex","id","backupIndex",1,"form-control",2,"color","#ee5421 !important",3,"ngModelChange","ngModel"],["value","04-may-2023","selected",""],["value","11-Aug-2023"],["value","12-Aug-2023"],["value","13-Aug-2023"],["value","14-Aug-2023"],[1,"chat","col-lg-9",2,"height","80vh","overflow-y","auto"],[1,"msger"],[1,"msger-header"],[1,"msger-header-title"],[1,"fas","fa-comment-alt"],[1,"msger-header-options"],[1,"chatStart",2,"font-size","14px","text-decoration","underline",3,"click"],[1,"msger-chat",2,"height","550px","overflow","scroll"],[1,"msg","left-msg"],[1,"msg-img"],[1,"msg-bubble"],[1,"msg-info"],[1,"msg-info-name"],[1,"msg-text"],["ng-submit","getChat()"],[1,"col-lg-12"],["for","query"],["type","text","name","query","id","query","placeholder","Ask a question here...","autocomplete","off","autofocus","",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-lg-12",2,"margin","10px 0px 10px 0px"],["id","submitChat",1,"btn","btn-primary","pull-right",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"a",1),d(2),a()(),o(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h4",6),d(8,"CrashPlan Copilot"),a(),o(9,"a",7),_("click",function(){return i.closeChatbot()}),y(10,"i",8),a()(),o(11,"div",9)(12,"c-row")(13,"div",10)(14,"div",11)(15,"img",12),_("error",function(p){return i.onImageError(p)}),a()(),o(16,"div",13)(17,"label",14),d(18,"Backup Index"),a(),o(19,"select",15),P("ngModelChange",function(p){return D(i.backupIndex,p)||(i.backupIndex=p),p}),o(20,"option",16),d(21,"technote"),a(),o(22,"option",17),d(23,"11-Aug-2023"),a(),o(24,"option",18),d(25,"12-Aug-2023"),a(),o(26,"option",19),d(27,"13-Aug-2023"),a(),o(28,"option",20),d(29,"14-Aug-2023"),a()()(),o(30,"div",21)(31,"section",22)(32,"header",23)(33,"div",24),y(34,"i",25),d(35," Ask Neil! "),a(),o(36,"div",26)(37,"span")(38,"a",27),_("click",function(){return i.startOverChat()}),d(39,"Start Over "),a()()()(),o(40,"main",28)(41,"div",29),y(42,"div",30),o(43,"div",31)(44,"div",32)(45,"div",33),d(46,"Neil"),a()(),o(47,"div",34),d(48,"Hello ! Ask me anything about CrashPlan Software "),a()()()(),o(49,"form",35)(50,"div",36)(51,"label",37),d(52,"Query :"),a(),o(53,"input",38),P("ngModelChange",function(p){return D(i.query,p)||(i.query=p),p}),a()(),o(54,"div",39)(55,"button",40),_("click",function(){return i.getChatbotResults()}),d(56,"Send"),a()()()()()()()()()()()),n&2&&(s(2),M("\xA9 CrashPlan ",i.currentYear," "),s(),m("ngStyle",W(8,Ya,i.displayCreateStyle)),s(12),m("src",i.neilLogo,Q),s(4),E("ngModel",i.backupIndex),s(23),Ai("background-image: url(",i.neilLogo,")"),s(11),E("ngModel",i.query))},dependencies:[Le,Vt,$o,Nt,Ft,Ot,Ut,At,Qo,Rt,Ko,me,Se,be,Lt,Bt,Gt,zt],styles:['.fab-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:3rem;right:3rem}.fab-checkbox[_ngcontent-%COMP%]{display:none}.fab[_ngcontent-%COMP%]{position:absolute;bottom:-1rem;right:-1rem;width:4rem;height:4rem;border-radius:50% 50% 6px;background:#062d4d!important;box-shadow:0 5px 20px #062d4d!important;transition:all .3s ease;z-index:1;border:1px solid #062D4D!important}.fab[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:100%;left:0;top:0;border-radius:50%;background-color:#ffffff1a}.fab-checkbox[_ngcontent-%COMP%]:checked ~ .fab[_ngcontent-%COMP%]:before{width:90%;height:90%;left:5%;top:5%;background-color:#fff3}.fab[_ngcontent-%COMP%]:hover{background:#062d4d!important;box-shadow:0 5px 20px 5px #062d4d!important}.fab-dots[_ngcontent-%COMP%]{position:absolute;height:8px;width:8px;background-color:#fff;border-radius:50%;top:50%;transform:translate(0) translateY(-50%) rotate(0);opacity:1;animation:_ngcontent-%COMP%_blink 1s ease infinite;transition:all .3s ease}.fab-dots-1[_ngcontent-%COMP%]{left:15px;animation-delay:0s}.fab-dots-2[_ngcontent-%COMP%]{left:50%;transform:translate(-50%) translateY(-50%);animation-delay:.4s}.fab-dots-3[_ngcontent-%COMP%]{right:15px;animation-delay:.8s}.fab[_ngcontent-%COMP%]   .fab-dots-2[_ngcontent-%COMP%]{transform:translate(-50%) translateY(-50%) rotate(0)}@keyframes _ngcontent-%COMP%_blink{50%{opacity:.25}}.fab-action[_ngcontent-%COMP%]{position:absolute;background:#0f1941;width:3rem;height:3rem;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff!important;box-shadow:0 .1rem 1rem #18429ad1;transition:all 1s ease;opacity:0}.fab-action[_ngcontent-%COMP%]:hover{background-color:#f16100}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}']})}}return t})();function Qa(t,c){if(t&1){let e=x();o(0,"div",7)(1,"button",9),_("click",function(){u(e);let i=h();return g(i.navigateToSales())}),d(2,"Contact Sales"),a()()}}var ua=(()=>{class t{constructor(e){this.sharedService=e,this.closeModalHandler=new Me,this.userType="",this.userType=this.sharedService.getDataByKey("userType")}closeSelf(){this.closeModalHandler.emit()}navigateToSales(){window.open("https://www.crashplan.com/contact-sales/","_blank"),this.closeSelf()}static{this.\u0275fac=function(n){return new(n||t)(b(re))}}static{this.\u0275cmp=N({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ie([Ge,q,X])],decls:14,vars:1,consts:[["tabindex","-1","role","dialog",1,"modal",2,"display","block"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-body",2,"text-align","center","padding","2em 4em"],[1,"modal-title",2,"margin-bottom",".3em"],[2,"margin-bottom","1em"],["style","display: inline-flex; margin:.5em;font-weight: bold;",4,"ngIf"],[2,"display","inline-flex","margin",".5em","font-weight","bold"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row")(5,"h4",4),d(6,"Your Organization is not licensed to use the CrashPlan Endpoint product"),a(),o(7,"p",5),d(8," Contact Sales for more information. "),a(),o(9,"div"),C(10,Qa,3,0,"div",6),o(11,"div",7)(12,"button",8),_("click",function(){return i.closeSelf()}),d(13,"Back to Dashboard"),a()()()()()()()()),n&2&&(s(10),m("ngIf",i.userType==="admin"))},dependencies:[me,pe,be,Se],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}a[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:#fff!important}"]})}}return t})();var Ka=["deviceDropdown"],$a=["deviceDropdownCS"],Za=["contentFrame"],Xa=["userDeviceSearch"],es=["fileSearch"],ts=["contentSearch"],is=["contentSearchMailInput"],ns=["deviceDropdownR"],rs=["contentCalendarFrame"],os=["searchInput"],ue=t=>({display:t}),xe=()=>["Google Drive","Gmail"],as=t=>[t],ss=()=>({"col-lg-5":!0}),ls=(t,c)=>({"col-lg-7":t,"col-lg-4":c}),cs=()=>({"col-lg-3":!0}),ds=(t,c)=>({active:t,disabled:c}),ps=t=>({"background-color":t}),ga=()=>["Gmail","Google Drive"],ms=t=>({selected:t});function hs(t,c){if(t&1){let e=x();o(0,"c-nav-item")(1,"button",16),_("click",function(){u(e);let i=h();return g(i.setActiveSearchTab("content",2))}),d(2," Full text search "),a()()}if(t&2){h();let e=te(15);s(),m("cTabContent",e)("tabPaneIdx",2)}}function us(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noUsersFoundText," ")}}function gs(t,c){if(t&1){let e=x();o(0,"c-col",83)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userProfile(i.userNameEncoded))}),o(3,"div",82)(4,"div",86),y(5,"img",87),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),$("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function vs(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,gs,10,2,"c-col",83,Ne),a()()),t&2){let e=h();s(2),M("",e.foundUsers.length," User(s) found: "),s(2),ye(e.foundUsers)}}function fs(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noUsersFoundText," ")}}function _s(t,c){if(t&1){let e=x();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userProfile(i.userNameEncoded))}),o(3,"div",82)(4,"div",86),y(5,"img",91),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),$("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function ys(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,_s,10,2,"c-col",90,Ne),a()()),t&2){let e=h();s(2),M("",e.foundSites.length," Site(s) found: "),s(2),ye(e.foundSites)}}function bs(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noDevicesFoundText," ")}}function Cs(t,c){if(t&1){let e=x();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),o(3,"div",82)(4,"div",86),y(5,"img",92),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),$("title",e.deviceName),s(2),Fe("",(e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":""),' of user "',(e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""),'"')}}function Ss(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,Cs,10,3,"c-col",90,Ne),a()()),t&2){let e=h();s(2),M("",e.foundDevices.length," Device(s) found: "),s(2),ye(e.foundDevices)}}function ws(t,c){t&1&&(o(0,"option",93),d(1,"BluVault"),a())}function xs(t,c){t&1&&(o(0,"option",94),d(1,"OneDrive for Business"),a())}function ks(t,c){t&1&&(o(0,"option",95),d(1,"SharePoint Online"),a())}function Is(t,c){t&1&&(o(0,"option",96),d(1,"Gmail"),a())}function Ts(t,c){if(t&1&&(o(0,"option",31),d(1),a()),t&2){let e=h().$implicit;m("value",e.key),s(),A(e.title)}}function Ms(t,c){if(t&1&&C(0,Ts,2,2,"option",97),t&2){let e=c.$implicit,n=h();m("ngIf",n.productsLicensed.includes(e.key))}}function Es(t,c){if(t&1){let e=x();o(0,"div",98)(1,"label"),d(2,"User Id"),a(),o(3,"select2",99),P("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValue,i)||(r.selectedValue=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearch(i))})("update",function(i){u(e);let r=h();return g(r.update(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("disabled",e.userType==="user"),E("ngModel",e.selectedValue)}}function Ds(t,c){if(t&1){let e=x();o(0,"div",98)(1,"label"),d(2,"Site"),a(),o(3,"select2",100),P("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueSite,i)||(r.selectedValueSite=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchSite(i))})("update",function(i){u(e);let r=h();return g(r.updateSite(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite),E("ngModel",e.selectedValueSite)}}function Ps(t,c){if(t&1&&(o(0,"option",31),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function Os(t,c){t&1&&(o(0,"option"),d(1," User has no assets configured "),a())}function As(t,c){if(t&1&&(o(0,"div",98)(1,"label"),d(2,"Asset Name"),a(),o(3,"select",101,3),C(5,Ps,2,2,"option",102)(6,Os,2,0,"option",17),a()()),t&2){let e=h();s(5),m("ngForOf",e.devices),s(),m("ngIf",e.devices.length==0)}}function Rs(t,c){t&1&&(o(0,"c-row")(1,"c-card",11)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),a()()()())}function Us(t,c){if(t&1){let e=x();o(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),a()(),o(5,"p",109)(6,"b"),d(7,"Found in: "),a(),d(8),a()(),o(9,"td")(10,"button",110),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeFiles))}),d(11," Download"),a(),o(12,"button",111),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeFiles))}),d(13," Open File Location"),a()()()}if(t&2){let e=c.$implicit;s(4),A(e.fileName),s(4),A(e.filePath)}}function Ns(t,c){if(t&1&&(o(0,"c-row",103)(1,"table",104)(2,"thead",105)(3,"tr")(4,"th",106),d(5,"File Name "),a(),o(6,"th",107),d(7,"Actions"),a()()(),o(8,"tbody"),C(9,Us,14,2,"tr",108),a()()()),t&2){let e=h();s(),m("hover",!0)("responsive",!0),s(8),m("ngForOf",e.foundFiles)}}function Fs(t,c){t&1&&(o(0,"option",112),d(1,"Microsoft Exchange"),a())}function Vs(t,c){t&1&&(o(0,"option",94),d(1,"OneDrive for Business"),a())}function Bs(t,c){t&1&&(o(0,"option",95),d(1,"SharePoint Online"),a())}function Ls(t,c){t&1&&(o(0,"option",96),d(1,"Gmail"),a())}function Gs(t,c){if(t&1&&(o(0,"option",31),d(1),a()),t&2){let e=h().$implicit;m("value",e.key),s(),A(e.title)}}function zs(t,c){if(t&1&&C(0,Gs,2,2,"option",97),t&2){let e=c.$implicit,n=h();m("ngIf",n.checkFeatureLicensed(W(1,as,e.key)))}}function Hs(t,c){if(t&1){let e=x();o(0,"div",98)(1,"label"),d(2,"User Id"),a(),o(3,"select2",113),P("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueCS,i)||(r.selectedValueCS=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchContentSearch(i))})("update",function(i){u(e);let r=h();return g(r.updateContentSearch(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),E("ngModel",e.selectedValueCS)}}function js(t,c){if(t&1){let e=x();o(0,"div",98)(1,"label"),d(2,"Site"),a(),o(3,"select2",114),P("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueSiteCS,i)||(r.selectedValueSiteCS=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchSiteContentSearch(i))})("update",function(i){u(e);let r=h();return g(r.updateSiteContentSearch(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),E("ngModel",e.selectedValueSiteCS)}}function Ws(t,c){if(t&1&&(o(0,"option",31),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function qs(t,c){t&1&&(o(0,"option"),d(1," User has no assets configured "),a())}function Js(t,c){if(t&1){let e=x();o(0,"div",98)(1,"label"),d(2,"Asset Name"),a(),o(3,"select",115,4),_("change",function(){u(e);let i=h();return g(i.onDeviceChangeCS())}),C(5,Ws,2,2,"option",102)(6,qs,2,0,"option",17),a()()}if(t&2){let e=h();s(5),m("ngForOf",e.devicesCS),s(),m("ngIf",e.devicesCS.length==0)}}function Ys(t,c){if(t&1){let e=x();o(0,"c-row",33)(1,"div",34)(2,"c-input-group")(3,"input",116,5),P("ngModelChange",function(i){u(e);let r=h();return D(r.contentSearchText,i)||(r.contentSearchText=i),g(i)}),_("keydown.enter",function(){u(e);let i=h();return g(i.searchForContent())}),a()()(),o(5,"div",36)(6,"button",37),_("click",function(){u(e);let i=h();return g(i.searchForContent())}),d(7,"Search"),a()()()}if(t&2){let e=h();s(3),E("ngModel",e.contentSearchText)}}function Qs(t,c){if(t&1){let e=x();o(0,"div",36)(1,"a",120),_("click",function(){u(e);let i=h(2);return g(i.searchForContent())}),d(2,"Search"),a()()}}function Ks(t,c){if(t&1){let e=x();o(0,"c-row",61)(1,"div",34)(2,"c-input-group",11)(3,"input",117,6),P("ngModelChange",function(i){u(e);let r=h();return D(r.contentSearchMail,i)||(r.contentSearchMail=i),g(i)}),_("keydown.enter",function(){u(e);let i=h();return g(i.searchForContent())}),a(),o(5,"button",37),_("click",function(){u(e);let i=h();return g(i.togglePanel())}),y(6,"i",118),a()()(),C(7,Qs,3,0,"div",119),a()}if(t&2){let e=h();s(3),E("ngModel",e.contentSearchMail),m("disabled",e.isExpanded),s(3),m("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down"),s(),m("ngIf",!e.isExpanded)}}function $s(t,c){if(t&1){let e=x();o(0,"div",122)(1,"div",123)(2,"label",124),d(3,"From "),o(4,"a",125),y(5,"i",126),o(6,"span",127),d(7,"Use comma to separate Email addresses"),a()()(),o(8,"input",128),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.fromId,i)||(r.fromId=i),g(i)}),a()(),o(9,"div",123)(10,"label",129),d(11,"To "),o(12,"a",125),y(13,"i",126),o(14,"span",127),d(15,"Use comma to separate Email addresses"),a()()(),o(16,"input",130),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.toId,i)||(r.toId=i),g(i)}),a()(),o(17,"div",123)(18,"label",131),d(19,"CC "),o(20,"a",125),y(21,"i",126),o(22,"span",127),d(23,"Use comma to separate Email addresses"),a()()(),o(24,"input",132),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.ccId,i)||(r.ccId=i),g(i)}),a()(),o(25,"div",123)(26,"label",133),d(27,"BCC "),o(28,"a",125),y(29,"i",126),o(30,"span",127),d(31,"Use comma to separate Email addresses"),a()()(),o(32,"input",134),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.bccId,i)||(r.bccId=i),g(i)}),a()(),o(33,"div",123)(34,"label",135),d(35,"Subject "),o(36,"a",125),y(37,"i",126),o(38,"span",127),d(39,"Use comma to separate multiple Subjects"),a()()(),o(40,"input",136),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.subjectId,i)||(r.subjectId=i),g(i)}),a()(),o(41,"div",123)(42,"label",137),d(43,"Body"),a(),o(44,"input",138),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.bodyId,i)||(r.bodyId=i),g(i)}),a()(),o(45,"div",123)(46,"label",139),d(47,"Keywords"),a(),o(48,"input",140),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.keywordsId,i)||(r.keywordsId=i),g(i)}),a()(),o(49,"div",141)(50,"label",139),d(51,"Date from"),a(),o(52,"input",142),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.myDateBefore,i)||(r.myDateBefore=i),g(i)}),a(),d(53," To "),o(54,"input",142),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.myDateAfter,i)||(r.myDateAfter=i),g(i)}),a()(),o(55,"div",61)(56,"a",143),_("click",function(){u(e);let i=h(2);return g(i.searchForContent())}),d(57,"Search"),a()()()}if(t&2){let e=h(2);s(8),E("ngModel",e.fromId),s(8),E("ngModel",e.toId),s(8),E("ngModel",e.ccId),s(8),E("ngModel",e.bccId),s(8),E("ngModel",e.subjectId),s(4),E("ngModel",e.bodyId),s(4),E("ngModel",e.keywordsId),s(4),E("ngModel",e.myDateBefore),m("bsConfig",e.bsConfigBefore),s(2),E("ngModel",e.myDateAfter),m("bsConfig",e.bsConfigAfter)}}function Zs(t,c){if(t&1&&(o(0,"c-row",61),C(1,$s,58,11,"div",121),a()),t&2){let e=h();s(),m("ngIf",e.isExpanded)}}function Xs(t,c){if(t&1){let e=x();o(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),a()(),o(5,"p",109)(6,"b"),d(7,"Found in: "),a(),d(8),a(),o(9,"p"),y(10,"span",146),a()(),o(11,"td")(12,"button",110),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeContentSearch))}),d(13," Download"),a(),o(14,"button",111),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeContentSearch))}),d(15," Open File Location"),a()()()}if(t&2){let e=c.$implicit,n=h(2);s(4),A(e.fileName),s(4),A(e.filePath),s(2),m("innerHTML",n.renderHtml(e.content),Re)}}function el(t,c){if(t&1&&(o(0,"c-row",103)(1,"table",104)(2,"thead",105)(3,"tr")(4,"th",144),d(5,"File Name "),a(),o(6,"th",145),d(7,"Actions"),a()()(),o(8,"tbody"),C(9,Xs,16,3,"tr",108),a()()()),t&2){let e=h();s(),m("hover",!0)("responsive",!0),s(8),m("ngForOf",e.foundFilesCS)}}function tl(t,c){t&1&&(o(0,"c-row",61)(1,"c-card",11)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),a()()()())}function il(t,c){if(t&1){let e=x();o(0,"a",162),_("click",function(){u(e);let i=h(2);return g(i.enableMultiSelect())}),y(1,"i",163),o(2,"span",127),d(3,"Enable Multiselect"),a()()}}function nl(t,c){if(t&1){let e=x();o(0,"a",164),_("click",function(){u(e);let i=h(2);return g(i.removeAll())}),y(1,"i",165),o(2,"span",127),d(3,"Disable Multiselect"),a()()}}function rl(t,c){if(t&1){let e=x();o(0,"a",166),_("click",function(){u(e);let i=h(2);return g(i.exportCompleteMailboxAsPstG())}),d(1,"Export all items to PST"),a()}}function ol(t,c){if(t&1){let e=x();o(0,"a",167),_("click",function(){u(e);let i=h(2);return g(i.exportFolderAsPstModalG())}),d(1,"Export selected items to PST"),a()}if(t&2){let e=h(2);m("ngClass",Jt(1,ds,e.addedElementsCount>0,e.addedElementsCount<=0))}}function al(t,c){if(t&1){let e=x();o(0,"th",156)(1,"input",168),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.isSelectAll,i)||(r.isSelectAll=i),g(i)}),_("change",function(){u(e);let i=h(2);return g(i.toggleSelectAll())}),a()()}if(t&2){let e=h(2);s(),E("ngModel",e.isSelectAll)}}function sl(t,c){if(t&1){let e=x();o(0,"button",169),_("click",function(){u(e);let i=h(2);return g(i.addToCartFinal())}),d(1," Add Selected Items "),a()}}function ll(t,c){if(t&1){let e=x();o(0,"td")(1,"input",173),P("ngModelChange",function(i){u(e);let r=h().$implicit;return D(r.isChecked,i)||(r.isChecked=i),g(i)}),_("change",function(){u(e);let i=h(4);return g(i.itemSelect())}),a()()}if(t&2){let e=h().$implicit;s(),E("ngModel",e.isChecked)}}function cl(t,c){if(t&1&&(o(0,"td",174)(1,"span",175),d(2),a()()),t&2){let e=h().$implicit;s(),m("ngStyle",W(2,ps,e.alphaColor)),s(),M(" ",e.showIcon," ")}}function dl(t,c){t&1&&y(0,"i",189)}function pl(t,c){if(t&1){let e=x();o(0,"a",190),_("click",function(){u(e);let i=h(3).$implicit,r=h(3);return g(r.downloadMail(i.userName,i.backupId,i.deviceUUID,r.productTypeContentSearch))}),y(1,"i",191),a()}}function ml(t,c){if(t&1){let e=x();o(0,"a",192),_("click",function(){u(e);let i=h(3).$implicit,r=h(3);return g(r.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),y(1,"i",193),a()}}function hl(t,c){if(t&1&&(o(0,"p"),y(1,"span",146),a()),t&2){let e=h(3).$implicit;s(),m("innerHTML",e.displayContent,Re)}}function ul(t,c){if(t&1&&(o(0,"a",179)(1,"span",180),d(2),a(),C(3,dl,1,0,"i",181)(4,pl,2,0,"a",182)(5,ml,2,0,"a",183),o(6,"p",184)(7,"span",185),d(8),a(),y(9,"span",186),a(),C(10,hl,2,1,"p",17),o(11,"p",187)(12,"b"),d(13,"Found in:"),a(),o(14,"span",188),d(15),a()()()),t&2){let e=h(2).$implicit,n=h(3);s(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),m("ngIf",e.hasAttachments),s(),m("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(),m("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(3),M(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),s(),m("innerHTML",e.sentDate,Re),s(),m("ngIf",e.displayContent),s(5),Fe("",e.userName," : ",e.filePath,"")}}function gl(t,c){t&1&&y(0,"i",196)}function vl(t,c){if(t&1&&(o(0,"p"),y(1,"span",146),a()),t&2){let e=h(3).$implicit;s(),m("innerHTML",e.displayContent,Re)}}function fl(t,c){if(t&1&&(o(0,"a",194)(1,"span",180),d(2),a(),C(3,gl,1,0,"i",195),o(4,"p",184)(5,"span",185),d(6),a(),y(7,"span",186),a(),C(8,vl,2,1,"p",17),a()),t&2){let e=h(2).$implicit;s(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),m("ngIf",e.hasAttachments),s(3),M(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),s(),m("innerHTML",e.sentDate,Re),s(),m("ngIf",e.displayContent)}}function _l(t,c){if(t&1){let e=x();o(0,"td",176),_("click",function(){u(e);let i=h().$implicit,r=h(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"mail"))}),o(1,"div",61)(2,"div"),C(3,ul,16,9,"a",177)(4,fl,9,5,"a",178),a()()()}if(t&2){let e=h().$implicit;Ee("data-name",e.name),s(3),m("ngIf",e.present=="true"),s(),m("ngIf",e.present=="false")}}function yl(t,c){if(t&1){let e=x();o(0,"td",176),_("click",function(){u(e);let i=h().$implicit,r=h(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"contacts"))}),o(1,"div",61)(2,"div")(3,"a",179)(4,"span",180),d(5),a()()()()()}if(t&2){let e=h().$implicit;Ee("data-name",e.name),s(5),M(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function bl(t,c){if(t&1&&(o(0,"tr"),C(1,ll,2,1,"td",17)(2,cl,3,4,"td",171)(3,_l,5,3,"td",172)(4,yl,6,2,"td",172),a()),t&2){let e=c.$implicit,n=h(3);De("selected-rowMail",n.isSelected(e)),s(),m("ngIf",n.isMultiSelectEnabled),s(),m("ngIf",e.type=="File"),s(),m("ngIf",e.type==="File"&&e.filePath!=="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO"),s(),m("ngIf",e.type==="File"&&e.filePath==="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO")}}function Cl(t,c){if(t&1&&(o(0,"tbody"),C(1,bl,5,6,"tr",170),a()),t&2){let e=h(2);s(),m("ngForOf",e.foundMailsCS)}}function Sl(t,c){t&1&&(o(0,"c-card-body",197)(1,"p"),d(2,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator."),a()())}function wl(t,c){t&1&&(o(0,"c-card-body",197)(1,"p"),d(2,"Item not available."),a()())}function xl(t,c){if(t&1&&(o(0,"div",209)(1,"b"),d(2,"From :"),a(),d(3),o(4,"span",210),d(5),a()()),t&2){let e=h(3);s(3),M(" ",e.currentMailFrom," "),s(2),A(e.currentMailSentDate)}}function kl(t,c){if(t&1&&(o(0,"div",211)(1,"b"),d(2,"To :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailTo,"")}}function Il(t,c){if(t&1&&(o(0,"div",212)(1,"b"),d(2,"CC :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailCc,"")}}function Tl(t,c){if(t&1&&(o(0,"div",213)(1,"b"),d(2,"BCC :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailBcc,"")}}function Ml(t,c){if(t&1&&(o(0,"span",217),d(1),a()),t&2){let e=c.$implicit;s(),M(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ")}}function El(t,c){if(t&1&&(o(0,"div",214)(1,"div",215),C(2,Ml,2,1,"span",216),d(3," \xA0 "),a()()),t&2){let e=h(3);s(2),m("ngForOf",e.currentMailAttachments)}}function Dl(t,c){if(t&1&&(o(0,"c-card-body")(1,"div",198),y(2,"div",199),o(3,"div",200)(4,"div",201)(5,"h3"),d(6),a()(),C(7,xl,6,2,"div",202)(8,kl,4,1,"div",203)(9,Il,4,1,"div",204)(10,Tl,4,1,"div",205)(11,El,4,1,"div",206),y(12,"br"),o(13,"div",207),y(14,"iframe",208,7),a()()()()),t&2){let e=h(2);s(6),M("Subject : ",e.currentMailSubject,""),s(),m("ngIf",e.currentMailFrom!=""),s(),m("ngIf",e.currentMailTo!=""),s(),m("ngIf",e.currentMailCc!=""),s(),m("ngIf",e.currentMailBcc!=""),s(),m("ngIf",e.currentMailAttachments.length>0)}}function Pl(t,c){if(t&1&&(o(0,"a",244),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactEmail)}}function Ol(t,c){if(t&1&&(o(0,"a",245),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactOfficeLocation)}}function Al(t,c){if(t&1&&(o(0,"a",246),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactCompanyName)}}function Rl(t,c){if(t&1&&(o(0,"a",247),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactJobTitle)}}function Ul(t,c){if(t&1&&(o(0,"a",248),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactDepartment)}}function Nl(t,c){if(t&1&&(o(0,"a",249),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactMobile)}}function Fl(t,c){if(t&1&&(o(0,"a",250),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactHomePhones)}}function Vl(t,c){if(t&1&&(o(0,"a",251),d(1," (...) "),a()),t&2){let e=h(3);$("title",e.contactBusinessPhones)}}function Bl(t,c){if(t&1){let e=x();o(0,"c-card-body")(1,"div",218)(2,"div",219)(3,"div",220),y(4,"c-avatar",221),a(),o(5,"div",222)(6,"div",223)(7,"span",224),d(8),a()()()(),o(9,"div",225),y(10,"hr"),o(11,"div",226)(12,"label",185),d(13,"Email: "),a(),y(14,"br"),o(15,"span",227),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullEmail=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullEmail=!1)}),d(16),a(),C(17,Pl,2,1,"a",228),a(),o(18,"div",226)(19,"label",185),d(20,"Location: "),a(),y(21,"br"),o(22,"span",229),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullLocation=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullLocation=!1)}),d(23),a(),C(24,Ol,2,1,"a",230),a(),o(25,"div",226)(26,"label",185),d(27,"Company: "),a(),y(28,"br"),o(29,"span",231),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullCompanyName=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullCompanyName=!1)}),d(30),a(),C(31,Al,2,1,"a",232),a(),o(32,"div",226)(33,"label",185),d(34,"Job title: "),a(),y(35,"br"),o(36,"span",233),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullJobTitle=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullJobTitle=!1)}),d(37),a(),C(38,Rl,2,1,"a",234),a(),o(39,"div",226)(40,"label",185),d(41,"Department: "),a(),y(42,"br"),o(43,"span",235),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullDepartment=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullDepartment=!1)}),d(44),a(),C(45,Ul,2,1,"a",236),a(),o(46,"div",226)(47,"label",185),d(48,"Business Address: "),a(),y(49,"br"),o(50,"span",224),d(51),a()(),o(52,"div",226)(53,"label",185),d(54,"Home Address: "),a(),y(55,"br"),o(56,"span",224),d(57),a()(),o(58,"div",226)(59,"label",185),d(60,"Birthday: "),a(),y(61,"br"),o(62,"span",237),d(63),a()(),o(64,"div",226)(65,"label",185),d(66,"Mobile phone: "),a(),y(67,"br"),o(68,"span",238),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullMobile=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullMobile=!1)}),d(69),a(),C(70,Nl,2,1,"a",239),a(),o(71,"div",226)(72,"label",185),d(73,"Home phone: "),a(),y(74,"br"),o(75,"span",240),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullHomePhone=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullHomePhone=!1)}),d(76),a(),C(77,Fl,2,1,"a",241),a(),o(78,"div",226)(79,"label",185),d(80,"Business phone: "),a(),y(81,"br"),o(82,"span",242),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullBusinessPhone=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullBusinessPhone=!1)}),d(83),a(),C(84,Vl,2,1,"a",243),a()()()()}if(t&2){let e=h(2);s(4),m("size","md"),s(3),m("title",e.fullCombinedName),s(),M(" ",e.truncatedCombinedName," "),s(7),m("title",e.contactEmail.length>20?e.contactEmail:""),s(),M(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),s(),m("ngIf",e.contactEmail.length>20),s(5),m("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),s(),M(" ",e.contactOfficeLocation.length>20?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),s(),m("ngIf",e.contactOfficeLocation.length>20),s(5),m("title",e.contactCompanyName.length>20?e.contactCompanyName:""),s(),M(" ",e.contactCompanyName.length>20?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),s(),m("ngIf",e.contactCompanyName.length>20),s(5),m("title",e.contactJobTitle.length>20?e.contactJobTitle:""),s(),M(" ",e.contactJobTitle.length>20?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),s(),m("ngIf",e.contactJobTitle.length>20),s(5),m("title",e.contactDepartment.length>20?e.contactDepartment:""),s(),M(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),s(),m("ngIf",e.contactDepartment.length>20),s(5),m("title",e.combinedBusinessAddress),s(),M(" ",e.truncatedBusinessAddress," "),s(5),m("title",e.combinedHomeAddress),s(),M(" ",e.truncatedHomeAddress," "),s(6),A(e.contactBirthday),s(5),m("title",e.contactMobile.length>20?e.contactMobile:""),s(),M(" ",e.contactMobile.length>20?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),s(),m("ngIf",e.contactMobile.length>20),s(5),m("title",e.contactHomePhones.length>20?e.contactHomePhones:""),s(),M(" ",e.contactHomePhones.length>20?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),s(),m("ngIf",e.contactHomePhones.length>20),s(5),m("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),s(),M(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),s(),m("ngIf",e.contactBusinessPhones.length>20)}}function Ll(t,c){if(t&1){let e=x();o(0,"th"),d(1),o(2,"a",252),_("click",function(){u(e);let i=h(2);return g(i.removeAll())}),d(3,"Remove all"),a()()}if(t&2){let e=h(2);s(),Fe("",e.addedElementsCount," out of ",e.totalCountGS," selected ")}}function Gl(t,c){if(t&1&&(o(0,"th"),d(1),a()),t&2){let e=h(2);s(),M("",e.addedElementsCount," selected")}}function zl(t,c){if(t&1){let e=x();o(0,"tr")(1,"td",253)(2,"span",254),d(3),a(),o(4,"a",255),_("click",function(){let i=u(e),r=i.$implicit,p=i.index,l=h(2);return g(l.removeItem(p,r.subject,r.backupId,r.subject))}),y(5,"i",256),a()()()}if(t&2){let e=c.$implicit;s(3),A(e.subject)}}function Hl(t,c){if(t&1&&(o(0,"c-row",147)(1,"c-card-header",60),C(2,il,4,0,"a",148)(3,nl,4,0,"a",149),o(4,"span")(5,"b"),d(6),a()(),C(7,rl,2,0,"a",150)(8,ol,2,4,"a",151),a(),o(9,"c-card",152)(10,"c-card-body")(11,"div",153)(12,"table",154)(13,"thead",105)(14,"tr"),C(15,al,2,1,"th",155),o(16,"th",156),d(17," Results "),C(18,sl,2,0,"button",157),a()()(),C(19,Cl,2,1,"tbody",17),a()()()(),o(20,"c-card",152),C(21,Sl,3,0,"c-card-body",158)(22,wl,3,0,"c-card-body",158)(23,Dl,16,6,"c-card-body",17)(24,Bl,85,32,"c-card-body",17),a(),o(25,"c-card",159)(26,"c-card-body")(27,"table",160)(28,"colgroup"),y(29,"col",161),a(),o(30,"thead")(31,"tr"),C(32,Ll,4,2,"th",17)(33,Gl,2,1,"th",17),a()(),o(34,"tbody"),C(35,zl,6,1,"tr",108),a()()()()()),t&2){let e=h();s(2),m("ngIf",!e.isMultiSelectEnabled),s(),m("ngIf",e.isMultiSelectEnabled),s(3),M("",e.totalCountGS," Search Results Found"),s(),m("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&e.productTypeContentSearch!=="Gmail"),s(),m("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),s(),m("ngClass",R(22,ss)),s(3),m("hover",!0)("responsive",!0)("striped",!1),s(3),m("ngIf",e.isMultiSelectEnabled),s(3),m("ngIf",e.updateAddToCartButtonVisibility()),s(),m("ngIf",!e.noFilesFoundCS),s(),m("ngClass",Jt(23,ls,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),s(),m("ngIf",!e.showMailPreview),s(),m("ngIf",e.showNotAvailable),s(),m("ngIf",e.showMailView&&e.showMailPreview),s(),m("ngIf",e.showContactsView),s(),m("ngClass",R(26,cs))("ngStyle",W(27,ue,e.isMultiSelectEnabled?"block":"none")),s(7),m("ngIf",e.addedElementsCount>0),s(),m("ngIf",e.addedElementsCount==0),s(2),m("ngForOf",e.addedElementsUpdated)}}function jl(t,c){if(t&1){let e=x();o(0,"a",263),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.first))}),y(1,"i",264),a()}}function Wl(t,c){if(t&1){let e=x();o(0,"a",265),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.previous))}),y(1,"i",266),a()}}function ql(t,c){if(t&1){let e=x();o(0,"a",267),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.next))}),y(1,"i",268),a()}}function Jl(t,c){if(t&1){let e=x();o(0,"a",269),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.last))}),y(1,"i",270),a()}}function Yl(t,c){if(t&1&&(o(0,"c-row",20)(1,"div",257)(2,"div",258),C(3,jl,2,0,"a",259)(4,Wl,2,0,"a",260)(5,ql,2,0,"a",261)(6,Jl,2,0,"a",262),a()()()),t&2){let e=h();s(3),m("ngIf",e.first!=""),s(),m("ngIf",e.previous!=""),s(),m("ngIf",e.next!=""),s(),m("ngIf",e.last!="")}}function Ql(t,c){if(t&1){let e=x();o(0,"button",271),_("click",function(){u(e);let i=h();return g(i.exportCompleteMailboxAsPstTriggerG())}),d(1,"Proceed"),a()}}function Kl(t,c){if(t&1){let e=x();o(0,"button",271),_("click",function(){u(e);let i=h();return g(i.exportSelectedAsPstG())}),d(1,"Proceed"),a()}}function $l(t,c){t&1&&(o(0,"th"),d(1,"Current item being processed"),a())}function Zl(t,c){if(t&1&&(o(0,"span"),d(1),de(2,"slice"),a()),t&2){let e=h(2);s(),M("/ ",Ve(2,1,e.progressG.subject,0,40),"")}}function Xl(t,c){if(t&1&&(o(0,"td")(1,"span",272),d(2),de(3,"slice"),a(),C(4,Zl,3,5,"span",17),a()),t&2){let e=h();s(),qt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),s(),A(Ve(3,5,e.progressG.currentFolderPath,0,20)),s(2),m("ngIf",e.progressG.subject)}}function ec(t,c){t&1&&(o(0,"td"),d(1,"-"),a())}function tc(t,c){if(t&1&&(o(0,"td"),d(1),o(2,"div",273)(3,"div",274),d(4),de(5,"number"),a()()()),t&2){let e=h();s(),Fe("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),s(),Ke("title","",e.progressG.totalRestorePct,"%"),s(),pt("width",e.progressG.totalRestorePct,"%"),s(),M(" ",Yt(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function ic(t,c){t&1&&(o(0,"td"),d(1,"0"),a())}function nc(t,c){if(t&1){let e=x();o(0,"button",65),_("click",function(){u(e);let i=h();return g(i.cancelDownloadAsPstG())}),d(1,"Cancel Restore"),a()}}function rc(t,c){t&1&&(o(0,"div",295)(1,"ul",296)(2,"li",297)(3,"strong",298),d(4,"No Users found"),a(),y(5,"ul",299),a()()())}function oc(t,c){if(t&1&&(o(0,"option",31),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function ac(t,c){if(t&1){let e=x();o(0,"div",281)(1,"span",34),d(2,"Disallow new backups during this restore"),a(),o(3,"div",282)(4,"c-form-check",283)(5,"input",300),P("ngModelChange",function(i){u(e);let r=h(2);return D(r.suspendBackupR,i)||(r.suspendBackupR=i),g(i)}),a()()()()}if(t&2){let e=h(2);s(4),m("switch",!0),s(),E("ngModel",e.suspendBackupR)}}function sc(t,c){if(t&1){let e=x();o(0,"c-card"),y(1,"c-card-header",60),o(2,"c-card-body")(3,"c-row")(4,"span"),d(5,"Source Path - "),o(6,"span"),d(7),a()()(),o(8,"c-row",61)(9,"p"),d(10,"Select a destination asset:"),a(),o(11,"div",123)(12,"label"),d(13,"User Id"),a(),o(14,"select2",275),P("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueR,i)||(r.selectedValueR=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchR(i))})("update",function(i){u(e);let r=h();return g(r.updateR(i))}),a(),C(15,rc,6,0,"div",276),a(),o(16,"div",123)(17,"label"),d(18,"Asset Name"),a(),o(19,"select",115,8),_("change",function(){u(e);let i=te(20),r=h();return g(r.onDeviceChangeR(i.value))}),C(21,oc,2,2,"option",102),a()()(),o(22,"c-row")(23,"div",52)(24,"label",277),d(25,"Select a Destination Path"),a(),o(26,"c-input-group",11)(27,"input",278),P("ngModelChange",function(i){u(e);let r=h();return D(r.destinationPathR,i)||(r.destinationPathR=i),g(i)}),a(),o(28,"button",279),_("click",function(){u(e);let i=te(20),r=h();return g(r.browseR(i.value))}),d(29,"Browse"),a()()()(),o(30,"c-row",61)(31,"h3"),d(32,"Restore Options"),a(),o(33,"div",72),C(34,ac,6,2,"div",280),o(35,"div",281)(36,"span",34),d(37,"In place Restore"),a(),o(38,"div",282)(39,"c-form-check",283)(40,"input",284),P("ngModelChange",function(i){u(e);let r=h();return D(r.inplaceRestoreR,i)||(r.inplaceRestoreR=i),g(i)}),a()()()(),o(41,"div",281)(42,"span",34),d(43,"Restore Deleted Mails"),a(),o(44,"div",282)(45,"c-form-check",283)(46,"input",285),P("ngModelChange",function(i){u(e);let r=h();return D(r.restoreDeletedFilesByRestoreR,i)||(r.restoreDeletedFilesByRestoreR=i),g(i)}),a()()()()(),o(47,"div",286)(48,"div",287)(49,"span",288),d(50,"Restore Data As Of"),a(),o(51,"div",289)(52,"c-form-check",283)(53,"input",290),P("ngModelChange",function(i){u(e);let r=h();return D(r.dateBeforeR,i)||(r.dateBeforeR=i),g(i)}),_("change",function(){u(e);let i=h();return g(i.toggleDateBeforeR())}),a()()()(),o(54,"div",291)(55,"div",292)(56,"input",293),P("ngModelChange",function(i){u(e);let r=h();return D(r.myDateBeforeR,i)||(r.myDateBeforeR=i),g(i)}),a(),o(57,"timepicker",294),P("ngModelChange",function(i){u(e);let r=h();return D(r.myTimeBeforeR,i)||(r.myTimeBeforeR=i),g(i)}),a()()()()()()()}if(t&2){let e=h();s(7),A(e.currentFilePathR),s(7),m("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),E("ngModel",e.selectedValueR),s(),m("ngIf",e.deviceUsersListR.length===0),s(6),m("ngForOf",e.devicesR),s(6),E("ngModel",e.destinationPathR),m("readonly",!0),s(7),m("ngIf",!R(24,xe).includes(e.productTypeContentSearch)),s(5),m("switch",!0),s(),E("ngModel",e.inplaceRestoreR),s(5),m("switch",!0),s(),E("ngModel",e.restoreDeletedFilesByRestoreR),s(6),m("switch",!0),s(),E("ngModel",e.dateBeforeR),s(3),E("ngModel",e.myDateBeforeR),m("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),s(),E("ngModel",e.myTimeBeforeR),m("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function lc(t,c){if(t&1&&(o(0,"c-row")(1,"span"),d(2,"Source Path - "),o(3,"span"),d(4),a()()()),t&2){let e=h(2);s(4),A(e.currentFilePathR)}}function cc(t,c){t&1&&(o(0,"th"),d(1,"Current item being processed"),a())}function dc(t,c){t&1&&(o(0,"th"),d(1,"Source Path "),a())}function pc(t,c){if(t&1&&(o(0,"span"),d(1),de(2,"slice"),a()),t&2){let e=h(3);s(),M("/ ",Ve(2,1,e.progressR.subject,0,40),"")}}function mc(t,c){if(t&1&&(o(0,"td")(1,"span",272),d(2),de(3,"slice"),a(),C(4,pc,3,5,"span",17),a()),t&2){let e=h(2);s(),qt("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),s(),A(Ve(3,5,e.progressR.currentFolderPath,0,20)),s(2),m("ngIf",e.progressR.subject)}}function hc(t,c){if(t&1&&(o(0,"td")(1,"span",301),d(2),de(3,"slice"),a()()),t&2){let e=h(2);s(),$("title",e.progressR.folderName),s(),A(Ve(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function uc(t,c){t&1&&(o(0,"td"),d(1,"-"),a())}function gc(t,c){if(t&1&&(o(0,"td"),d(1),o(2,"div",302)(3,"div",274),d(4),de(5,"number"),a()()()),t&2){let e=h(3);s(),Fe("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore," "),s(),Ke("title","",e.progressR.totalRestorePct,"%"),s(),pt("width",e.progressR.totalRestorePct,"%"),s(),M(" ",Yt(5,7,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function vc(t,c){if(t&1&&C(0,gc,6,10,"td",17),t&2){let e=h(2);m("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function fc(t,c){t&1&&(o(0,"td"),y(1,"div",303),a())}function _c(t,c){t&1&&(o(0,"td"),d(1,"0"),a())}function yc(t,c){if(t&1&&(o(0,"c-card"),y(1,"c-card-header",60),o(2,"c-card-body"),C(3,lc,5,1,"c-row",17),o(4,"c-row",61)(5,"h3"),d(6,"Currently Running Restore Statistics"),a(),o(7,"table",62)(8,"thead")(9,"tr"),C(10,cc,2,0,"th")(11,dc,2,0,"th"),o(12,"th"),d(13,"Overall Progress"),a()()(),o(14,"tbody")(15,"tr"),C(16,mc,5,9,"td",17)(17,hc,4,6,"td",17)(18,uc,2,0,"td",17)(19,vc,1,1,"td")(20,fc,2,0,"td")(21,_c,2,0,"td",17),a()()()()()()),t&2){let e=h();s(3),m("ngIf",!R(7,ga).includes(e.productTypeContentSearch)),s(7),Pe(R(8,ga).includes(e.productTypeContentSearch)?11:10),s(6),m("ngIf",!R(9,xe).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),s(),m("ngIf",R(10,xe).includes(e.productTypeContentSearch)),s(),m("ngIf",!R(11,xe).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),s(),Pe(!R(12,xe).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?19:20),s(2),m("ngIf",!R(13,xe).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function bc(t,c){if(t&1){let e=x();o(0,"button",304),_("click",function(){u(e);let i=h();return g(i.initiateRestoreR())}),d(1,"Initiate Restore"),a()}}function Cc(t,c){if(t&1){let e=x();o(0,"button",305),_("click",function(){u(e);let i=h();return g(i.cancelRunningRestoreR())}),d(1,"Cancel Restore"),a()}}function Sc(t,c){if(t&1){let e=x();o(0,"button",306),_("click",function(){u(e);let i=h();return g(i.closeRestorePopupR())}),d(1,"Close"),a()}}function wc(t,c){if(t&1){let e=x();o(0,"button",307),_("click",function(){u(e);let i=h();return g(i.closeRestorePopupR())}),d(1,"Close"),a()}}function xc(t,c){t&1&&(o(0,"span"),d(1,"My Drive/"),a())}function kc(t,c){t&1&&(o(0,"span"),d(1,"/"),a())}function Ic(t,c){if(t&1&&(o(0,"span"),d(1),a()),t&2){let e=h();s(),A(e.browsePathR)}}function Tc(t,c){if(t&1){let e=x();o(0,"button",308),_("click",function(){u(e);let i=h();return g(i.backBrowseR())}),y(1,"i",309),d(2," Back"),a()}}function Mc(t,c){t&1&&(o(0,"tr")(1,"td",310)(2,"div",311)(3,"span",312),d(4,"Loading..."),a()()()())}function Ec(t,c){if(t&1){let e=x();o(0,"tr",313),_("click",function(){let i=u(e).$implicit,r=h();return g(r.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(){let i=u(e).$implicit,r=h();return g(r.onDoubleClickR(i.folderName||i,i.folderId))}),o(1,"td")(2,"span",224),d(3),a()()()}if(t&2){let e=c.$implicit,n=h();m("ngClass",W(3,ms,n.selectedBrowseItemR===(e.folderName||e))),s(2),$("title",e.folderName||e),s(),M(" ",e.folderName||e," ")}}var fa=(()=>{class t{constructor(e,n,i,r,p,l,v,S,w,k,T){this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.http=p,this.sharedService=l,this.renderer=v,this.cdr=S,this.sanitizer=w,this.configService=k,this.licenseCheckService=T,this.PRODUCTS_CONFIG=oa,this.userAssetSearchText="",this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!1,this.showCalendarView=!1,this.currentMailSubject="",this.currentMailFrom="",this.currentMailSentDate="",this.currentMailTo="",this.currentMailCc="",this.currentMailBcc="",this.currentMailAttachments=[],this.currentMailBody="",this.currentFileName="",this.currentMailPath="",this.currentMailBackupId="",this.currentMailUser="",this.isSelectAll=!1,this.isMultiSelectEnabled=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.selectItems=[],this.totalCountGS="",this.previous="",this.next="",this.last="",this.first="",this.activeTabIndex=1,this.pstFileNameG="",this.displayPststyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayRestoreStyleR="none",this.destinationPathR="",this.value18R="",this.overlayR=!1,this.selectedValueR=null,this.deviceUsersListR=[],this.devicesR=[],this.inplaceRestoreR=!1,this.suspendBackupR=!1,this.restoreDeletedFilesByRestoreR=!1,this.restoreDataBeforeR="",this.dateBeforeR=!1,this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date,this.selectedDeviceUUIDR="",this.browsePathR="",this.browseItemsR=[],this.displayBrowseStyleR="none",this.newFolderR="",this.selectedBrowseItemR=null,this.combinedBrowseValueR="",this.loadingR=!1,this.gotResultForRestoreR=!1,this.displayRestoreSizeStyleR="none",this.batchIdR="",this.showRestoreSettingsR=!0,this.progressR=[],this.displayDeleteRestoreStyleR="none",this.restoreDataBefore="",this.currentFilePathR="",this.currentFileBackupIdR="",this.restoreAllVersionsR=!1,this.restoreLinksR=!1,this.contactName="",this.contactTitle="",this.contactFirstName="",this.contactMiddleName="",this.contactLastName="",this.contactSuffix="",this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-",this.combinedBusinessAddress="-",this.truncatedBusinessAddress="-",this.combinedHomeAddress="-",this.truncatedHomeAddress="-",this.fullCombinedName="-",this.truncatedCombinedName="-",this.showFullEmail=!1,this.showFullLocation=!1,this.showFullCompanyName=!1,this.showFullJobTitle=!1,this.showFullDepartment=!1,this.showFullMobile=!1,this.showFullHomePhone=!1,this.showFullBusinessPhone=!1,this.taskSubject="NA",this.taskStartDate="NA",this.taskDueDate="NA",this.taskReminderTime="NA",this.currentCalendarSubject="",this.currentCalendarFrom="",this.currentCalendarSentDate="",this.currentCalendarTo="",this.currentCalendarCc="",this.currentCalendarBcc="",this.currentCalendarAttachments=[],this.currentCalendarBody="",this.productsLicensed=[],this.featureLicensedFlags=[],this.showNotAvailable=!1,this.searched=!1,this.showMinCharMessage=!0,this.deviceId="",this.inclusionLicenses=[],this.exclusionLicenses=[],this.close=new Me,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let I=new Date,O=new Date;O.setFullYear(I.getFullYear()-1),new Date().setDate(I.getDate()-14),this.bsConfigBefore={minDate:O,maxDate:I,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:O,maxDate:I,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigR={dateInputFormat:"DD-MMM-YYYY",maxDate:new Date,adaptivePosition:!0},this.myDateBefore=null,this.myDateAfter=null}ngOnInit(){return ge(this,null,function*(){if(this.userType=this.sharedService.getDataByKey("userType"),this.userType==="user"){let e=this.sharedService.getDataByKey("userName"),n=atob(e),i={value:n};this.deviceUsersList=[{label:"",options:[{value:n,label:n}]}],this.selectedValue=n,this.update(i),this.deviceUsersListCS=[{label:"",options:[{value:n,label:n}]}],this.selectedValueCS=n,this.updateContentSearch(i),this.deviceUsersListR=[{label:"",options:[{value:n,label:n}]}],this.cdr.detectChanges()}else this.setActiveSearchTab("default",0);yield this.initializeEnvDetails()})}initializeEnvDetails(){return new Promise(e=>{let n=this.licenseCheckService.getEnvDetails();!n||Object.keys(n).length===0?this.licenseCheckService.checkLicense().subscribe({next:i=>{this.handleLicenseResponse(i.headers),e()},error:i=>{console.error("License check failed:",i),this.handleLicenseResponse(i.headers),e()}}):(this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n),e())})}handleLicenseResponse(e){let n={};e?.keys().forEach(i=>{n[i.toLowerCase()]=e.get(i)||""}),this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n)}applyEnvDetails(e){this.PRODUCTS_CONFIG.forEach(n=>{e[n.licenceFlag]=="true"&&this.productsLicensed.push(n.key)}),this.PRODUCTS_CONFIG.forEach(n=>{n.licencedFeaturesFlags.forEach(i=>{e[i]=="true"&&this.featureLicensedFlags.push(n.key)})}),this.inclusionLicenses.includes("backup_enabled")?this.productTypeFiles="backup":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeFiles="oneDrive":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeFiles="Gmail":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeFiles="SHAREPOINT":this.productTypeFiles="",this.inclusionLicenses.includes("exchange_backup_enabled")?this.productTypeContentSearch="mail":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeContentSearch="Gmail":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeContentSearch="oneDrive":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeContentSearch="SHAREPOINT":this.productTypeContentSearch=""}checkFeatureLicensed(e){return this.featureLicensedFlags.find(n=>e.includes(n))}getSignedURLFromId(){this.apiService.getSignedURLFromId(this.downloadId).subscribe(e=>{console.log("res from getSignedURLFromId : "+JSON.stringify(e)),console.log("res from getSignedURLFromId : "+JSON.stringify(e.body)),this.intervalId&&clearInterval(this.intervalId),this.cdr.detectChanges()},e=>{if(e.status===500)return;this.intervalId&&(this.downloadId="",clearInterval(this.intervalId)),console.error("Error from getSignedURLFromId: ",e),console.error("Error status: ",e.status),console.error("Error status: ",e.error.text);let n=e.error.text;switch(window.open(n,"_self"),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalId=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}setActiveSearchTab(e,n){switch(this.activeTabIndex=n,e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break;case"file":setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":setTimeout(()=>{this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?this.contentSearchMailInput.nativeElement.focus():this.contentSearch.nativeElement.focus()},0);break;default:setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break}}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(e)}logout(){console.log("Logout clicked 154"),this.authService.logout(),console.log("Token after logout"+this.authService.getToken()),this.router.navigate(["logout"])}activityHistory(){console.log("activityHistory clicked"),this.router.navigate(["activityHistory"])}onKeydown(e){e.key==="Enter"&&this.searchForUsersAssets()}searchForUsersAssets(){console.log("inside users/asset search : "+this.userAssetSearchText),this.userAssetSearchText!=""&&this.callApis()}closeOverlay(){this.close.emit()}callApis(){let e=this.apiService.getUsersSearch(this.userAssetSearchText),n=this.apiService.getDeviceSearch(this.userAssetSearchText),i=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):Ie(null);pi([e,n,i]).subscribe(([r,p,l])=>{console.log("getUsersSearch response body:",JSON.stringify(r.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(r.headers)),console.log("getDeviceSearch response body:",JSON.stringify(p.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(p.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.body.data.users.map(v=>he(L({},v),{userNameEncoded:btoa(v.userName)}))):(this.foundUsers=[],this.noUsersFoundText="No Users found."),p.body.data&&p.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=p.body.data.devices.map(v=>he(L({},v),{userNameEncoded:btoa(v.userName),deviceNameEncoded:btoa(v.deviceName)}))):(this.noDevicesFoundText="No Devices found",this.foundDevices=[]),l&&(console.log("getSitesSearch response body:",JSON.stringify(l.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(l.headers)),l.body.data&&l.body.data.users?(this.noSitesFoundText="",this.foundSites=l.body.data.users.map(v=>he(L({},v),{userNameEncoded:btoa(v.userName)}))):(this.foundSites=[],this.noSitesFoundText="No Sites found."))},r=>{switch(console.error("Error from Api's call: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let i=document.querySelector(".header.header-sticky");i&&this.renderer.setStyle(i,"z-index","1000");let r=document.querySelector(".overlay");r&&this.renderer.setStyle(r,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersList=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersList=[]},i=>{})}update(e){this.searched=!0,console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNow(e){this.searched=!0,this.apiService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){this.deviceType=this.productTypeContentSearch;let i="";this.deviceType=="ODB"?i="ONEDRIVE":this.deviceType=="backup"?i="BACKUP":i=this.deviceType,this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let r={value:this.selectedValue};this.update(r)}this.devices=[]}searchForFiles(){if((this.productTypeFiles=="backup"||this.productTypeFiles=="oneDrive"||this.productTypeFiles=="Google Drive")&&(this.selectedValue==""||this.selectedValue==null)){this.toastr.error("Please select a User Id.");return}if(this.filesSearchText==""){this.toastr.error("Please enter file name to search.");return}this.productTypeFiles=="SHAREPOINT"&&(this.selectedValue=this.selectedValueSite,this.selectedDeviceName=this.selectedValue+" (Microsoft SharePoint)"),this.apiService.getFilesSearch(this.productTypeFiles,this.selectedValue,this.selectedDeviceName,this.filesSearchText).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(l=>{let v={exists:l.present?l.present.toString():"",backup:"true",deviceUUID:l.deviceUUID?l.deviceUUID.toString():"",fileName:l.fileName?l.fileName.toString():"",filePath:l.fileCompletePath?l.fileCompletePath.toString():"",fileUser:l.fileUserOwner?btoa(l.fileUserOwner):"",folder:l.folder?"true":"false",fileRevisionID:l.backupId?l.backupId.toString():"",content:l.metaData?l.metaData.toString():"",modifiedTimestamp:l.lastModifiedTimestamp?parseInt(l.lastModifiedTimestamp,10):0,size:l.size?parseInt(l.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(v.deviceUUID).subscribe(S=>{let w=S.body.BSDeviceInfoElement,k=w.osType.substring(0,3).toLowerCase(),T="Windows",I="Windows";k==="win"?(T="Windows",I="Windows"):k==="mac"?(T="Mac",I="Mac"):k==="one"?(T="ONEDRIVE",I="ONEDRIVE"):k==="out"?(T="OUTLOOK",I="OUTLOOK"):k==="sha"&&(T="SHAREPOINT",I="SHAREPOINT"),v.deviceType=T,v.deviceOs=I,v.deviceId=w.deviceId?w.deviceId.toString():"",v.blocked="active",v.deviceName=w.deviceName?w.deviceName.toString():"",v.deviceNameNew=w.deviceName?w.deviceName.replace(/ /g,"_PB_"):"",v.deviceNameEnc=w.deviceName?btoa(w.deviceName):"",r.push(v),this.foundFiles=r,this.noFilesFound=!1,console.log("Files:",JSON.stringify(r))},S=>{switch(console.error("Error from getDeviceInfo:",S),S.status){case 400:console.error("Bad Request:",S.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",S.message);break;case 404:console.error("Not Found:",S.message);break;case 500:case 503:console.error("Internal Server Error:",S.message);break;default:console.error("Unknown Error:",S.message);break}})})}else this.noFilesFound=!0;this.cdr.detectChanges()},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info("No Meta data Configuration found.","Info");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onSearchSite(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.apiService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteList=[{label:"",options:r}],this.cdr.detectChanges()}else this.siteList=[]},i=>{})}updateSite(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,r,p,l,v,S,w){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+r),console.log("fileUser : "+p),console.log("deviceUUID : "+l),console.log("folder : "+v),console.log("token : "+this.sharedService.getDataByKey("authToken")),w==="Gmail"){this.downloadMail(p,i,l,w);return}else if(w==="Google Drive"){this.gDriveDownloadFile(i,l,parseFloat((S/1024).toFixed(2))>=10,v==="true",w);return}let k="https://",T=this.configService.baseFolder,I="/BluKryptBuilder/cloud/",O=this.configService.cloudName,Y=this.authService.getToken(),it=this.sharedService.getDataByKey("userName"),Ga=`${k}${T}${I}${O}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${Y}&loginUserName=${it}&isSync=false+&deviceUUID=${l}&backupID=${i}&backup=${r}&userName=${this.base64Encode(p)}&moveToDownloads=false`;window.open(Ga,"_self")}gDriveDownloadFile(e,n,i,r=!1,p){this.currentDeviceUUID=n,this.apiService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"FOLDER":i?"LARGE_FILE":"SMALL_FILE",p,this.restoreDeletedFilesByRestoreR).subscribe(l=>{if(console.log("res from downloadGsuite : "+JSON.stringify(l)),console.log("res from downloadGsuite : "+JSON.stringify(l.body)),this.downloadId=l?.body?.downloadId,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info");else{let v=0,S=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),v++,v>=S&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}this.cdr.detectChanges()},l=>{switch(console.error("Error from downloadGsuite: ",l),console.error("Error status: ",l.status),console.log("ID : "+l?.error?.text),l.status){case 200:if(console.error("Bad Request: ",l.message),this.downloadId=l?.error?.text,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info");else{let v=0,S=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),v++,v>=S&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}break;case 400:console.error("Bad Request: ",l.message);break;case 401:console.error("Unauthorized: ",l.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",l.message);break;case 404:console.error("Not Found: ",l.message);break;case 412:console.error("Error code 412: ",l.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",l.message);break;case 503:console.error("Internal Server Error: ",l.message);break;default:console.error("Unknown Error: ",l.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,r){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",r),this.isOverlayVisible=!1;let p=document.querySelector(".header.header-sticky");p&&this.renderer.setStyle(p,"z-index","1000");let l=document.querySelector(".overlay");l&&this.renderer.setStyle(l,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["backup/files"])}onSearchContentSearch(e){let n=e.search||"";if(console.log("searchTerm : "+n),n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueCS=null,this.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListCS=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersListCS=[]},i=>{})}updateContentSearch(e){console.log("value : "+e.value);let n=e.value;if(n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceTypeCS=="backup"?r="BACKUP":this.deviceTypeCS=="mail"?r="OUTLOOK":this.deviceTypeCS=="Gmail"?r="Gmail":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i)})}updateNowContentSearch(e){this.apiService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="";this.deviceTypeCS=="ODB"?i="ONEDRIVE":this.deviceTypeCS=="backup"?i="BACKUP":this.deviceTypeCS=="mail"?i="OUTLOOK":this.deviceTypeCS=="Gmail"?i="Gmail":i=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(r=>r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){let i=e.target.value;if(this.contentSearchText="",this.userType!=="user")this.deviceUsersListCS=[];else{let r={value:this.selectedValueCS};this.updateContentSearch(r)}this.devicesCS=[],this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?setTimeout(()=>{this.contentSearchMailInput.nativeElement.focus()},0):setTimeout(()=>{this.contentSearch.nativeElement.focus()},0)}formatDateFromDateObject(e){return e?`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}/${e.getFullYear()}`:""}searchForContent(){if(this.foundMailsCS=[],console.log("vvvv : "+this.selectedValueCS),console.log("input : "+this.contentSearchMail),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"&&this.productTypeContentSearch!="Google Drive"){this.toastr.error("Please enter file name to search.");return}if(this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")if(console.log("fromId : "+this.fromId),console.log("toId : "+this.toId),console.log("ccId : "+this.ccId),console.log("bccId : "+this.bccId),console.log("subjectId : "+this.subjectId),console.log("bodyId : "+this.bodyId),console.log("keywordsId : "+this.keywordsId),console.log("myDateBefore : "+this.formatDateFromDateObject(this.myDateBefore)),console.log("myDateAfter : "+this.formatDateFromDateObject(this.myDateAfter)),this.togglePanel(),this.isExpanded=!1,this.contentSearchMail==""&&this.fromId==""&&this.toId==""&&this.ccId==""&&this.bccId==""&&this.subjectId==""&&this.bodyId==""&&this.keywordsId==""&&this.myDateBefore==null&&this.myDateAfter==null){this.toastr.error("Please specify a search string.");return}else this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error("Please enter file name to search.");return}if((this.myDateAfter!=null||this.myDateBefore!=null)&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error("Please select a username.");return}console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&e.body.data.fileElementList.forEach(l=>{let v={exists:l.present?l.present.toString():"",backup:"true",deviceUUID:l.deviceUUID?l.deviceUUID.toString():"",fileName:l.fileName?l.fileName.toString():"",filePath:l.fileCompletePath?l.fileCompletePath.toString():"",fileUser:l.fileUserOwner?btoa(l.fileUserOwner):"",folder:l.folder?"true":"false",fileRevisionID:l.backupId?l.backupId.toString():"",content:l.metaData?l.metaData.toString():"",modifiedTimestamp:l.lastModifiedTimestamp?parseInt(l.lastModifiedTimestamp,10):0,size:l.size?parseInt(l.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(v.deviceUUID).subscribe(S=>{let w=S.body.BSDeviceInfoElement,k=w.osType.substring(0,3).toLowerCase(),T="Windows",I="Windows";k==="win"?(T="Windows",I="Windows"):k==="mac"?(T="Mac",I="Mac"):k==="one"?(T="ONEDRIVE",I="ONEDRIVE"):k==="out"?(T="OUTLOOK",I="OUTLOOK"):k==="sha"&&(T="SHAREPOINT",I="SHAREPOINT"),v.deviceType=T,v.deviceOs=I,v.deviceId=w.deviceId?w.deviceId.toString():"",v.blocked="active",v.deviceName=w.deviceName?w.deviceName.toString():"",v.deviceNameNew=w.deviceName?w.deviceName.replace(/ /g,"_PB_"):"",v.deviceNameEnc=w.deviceName?btoa(w.deviceName):"",r.push(v),this.foundFilesCS=r,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(r))},S=>{switch(console.error("Error from getDeviceInfo:",S),S.status){case 400:console.error("Bad Request:",S.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",S.message);break;case 404:console.error("Not Found:",S.message);break;case 500:case 503:console.error("Internal Server Error:",S.message);break;default:console.error("Unknown Error:",S.message);break}})}),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(l=>{let v={backupId:l.fileRevisionId,userName:l.fileUserOwner,deviceUUID:l.deviceUUID,subject:l.subject?l.subject:"<empty>",contactName:l.fileName?l.fileName:"-",taskSubject:l.subject?l.subject:"",present:l.exists.toString(),showIcon:l.from?l.from.charAt(0):"E",alphaColor:this.colorGen(),from:l.from?l.from:"<empty>",to:l.toRecipients?l.toRecipients:"",cc:l.ccRecipients?l.ccRecipients:"",bcc:l.bccRecipients?l.bccRecipients:"",sentDate:l.sentDate?new Date(l.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:l.metaData?l.metaData:"",bodyContent:l.bodyContent?l.bodyContent:"",bodyContent1:l.bodyContent?l.bodyContent.length>100?l.bodyContent.substring(0,100)+"...":l.bodyContent:"",hasAttachments:l.hasAttachments,attachments:l.attachments?l.attachments:"",name:l.subject?l.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:l.subject?l.subject:"<empty>",filePath:l.fileCompletePath,deviceId:l.deviceId};this.foundMailsCS.push(v)}),this.foundMailsCS.length>0&&(console.log("fileCompletePath : "+this.foundMailsCS[0].filePath),this.foundMailsCS[0].filePath=="Contacts"?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=e.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(e.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,e.body.metadata&&(console.log("metadata : "+JSON.stringify(e.body.metadata)),this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},e=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info("No Meta data Configuration found.","Info");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}searchForContentNavigate(e){if(this.foundMailsCS=[],this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="oneDrive"&&this.productTypeContentSearch!="Gmail"&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error("Please select a User Id.");return}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error("Please enter file name to search.");return}this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),(this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")&&(this.contentSearchText=this.parseEmailString(this.contentSearchMail)),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearchNavigate(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",e,this.configService.componentName).subscribe(n=>{var i=JSON.stringify(n.body),r=JSON.parse(i);let p=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(n.body.data.fileElementList));let l=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&n.body.data.fileElementList.forEach(v=>{let S={exists:v.present?v.present.toString():"",backup:"true",deviceUUID:v.deviceUUID?v.deviceUUID.toString():"",fileName:v.fileName?v.fileName.toString():"",filePath:v.fileCompletePath?v.fileCompletePath.toString():"",fileUser:v.fileUserOwner?btoa(v.fileUserOwner):"",folder:v.folder?"true":"false",fileRevisionID:v.backupId?v.backupId.toString():"",content:v.metaData?v.metaData.toString():"",modifiedTimestamp:v.lastModifiedTimestamp?parseInt(v.lastModifiedTimestamp,10):0,size:v.size?parseInt(v.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(S.deviceUUID).subscribe(w=>{let k=w.body.BSDeviceInfoElement,T=k.osType.substring(0,3).toLowerCase(),I="Windows",O="Windows";T==="win"?(I="Windows",O="Windows"):T==="mac"?(I="Mac",O="Mac"):T==="one"?(I="ONEDRIVE",O="ONEDRIVE"):T==="out"?(I="OUTLOOK",O="OUTLOOK"):T==="sha"&&(I="SHAREPOINT",O="SHAREPOINT"),S.deviceType=I,S.deviceOs=O,S.deviceId=k.deviceId?k.deviceId.toString():"",S.blocked="active",S.deviceName=k.deviceName?k.deviceName.toString():"",S.deviceNameNew=k.deviceName?k.deviceName.replace(/ /g,"_PB_"):"",S.deviceNameEnc=k.deviceName?btoa(k.deviceName):"",p.push(S),this.foundFilesCS=p,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(p))},w=>{switch(console.error("Error from getDeviceInfo:",w),w.status){case 400:console.error("Bad Request:",w.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",w.message);break;case 404:console.error("Not Found:",w.message);break;case 500:case 503:console.error("Internal Server Error:",w.message);break;default:console.error("Unknown Error:",w.message);break}})}),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(v=>{let S={backupId:v.fileRevisionId,userName:v.fileUserOwner,deviceUUID:v.deviceUUID,subject:v.subject?v.subject:"<empty>",contactName:v.fileName?v.fileName:"-",taskSubject:v.subject?v.subject:"",present:v.exists.toString(),showIcon:v.from?v.from.charAt(0):"E",alphaColor:this.colorGen(),from:v.from?v.from:"<empty>",to:v.toRecipients?v.toRecipients:"",cc:v.ccRecipients?v.ccRecipients:"",bcc:v.bccRecipients?v.bccRecipients:"",sentDate:v.sentDate?new Date(v.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:v.metaData?v.metaData:"",bodyContent:v.bodyContent?v.bodyContent:"",bodyContent1:v.bodyContent?v.bodyContent.length>100?v.bodyContent.substring(0,100)+"...":v.bodyContent:"",hasAttachments:v.hasAttachments,attachments:v.attachments?v.attachments:"",name:v.subject?v.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:v.subject?v.subject:"<empty>",filePath:v.fileCompletePath,deviceId:v.deviceId};this.foundMailsCS.push(S)}),this.foundMailsCS.length>0&&(console.log("fileCompletePath : "+this.foundMailsCS[0].filePath),this.foundMailsCS[0].filePath=="Contacts"?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"mail"))),this.totalCountGS=n.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(n.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,n.body.metadata&&(console.log("metadata : "+JSON.stringify(n.body.metadata)),this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},n=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",n),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message),this.toastr.info("No Meta data Configuration found.","Info");break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}onSearchSiteContentSearch(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueSiteCS=null,this.apiService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteListCS=[{label:"",options:r}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i)})}parseEmailString(e){let i=e.split(/\s+/),r=[],p=[],l=[],v=[],S=[],w=[],k=[];for(let I=0;I<i.length;I++){let O=i[I];if(O.startsWith("from:"))r.push(O.replace("from:","").trim());else if(O.startsWith("to:"))p.push(O.replace("to:","").trim());else if(O.startsWith("cc:"))l.push(O.replace("cc:","").trim());else if(O.startsWith("bcc:"))v.push(O.replace("bcc:","").trim());else if(O.startsWith("subject:")){let Y=O.replace("subject:","").trim();for(;!(Y.startsWith("(")&&Y.endsWith(")"))&&I+1<i.length&&!i[I+1].startsWith("body:")&&!i[I+1].startsWith("subject:");)I++,Y+=" "+i[I];S.push(Y.replace(/^\(|\)$/g,""))}else if(O.startsWith("body:")){let Y=O.replace("body:","").trim();for(;!(Y.startsWith("(")&&Y.endsWith(")"))&&I+1<i.length&&!i[I+1].startsWith("body:")&&!i[I+1].startsWith("subject:");)I++,Y+=" "+i[I];w.push(Y.replace(/^\(|\)$/g,""))}else k.push(O)}return console.log("fromArray : "+r.join(",")),console.log("toArray : "+p.join(",")),console.log("ccArray : "+l.join(",")),console.log("bccArray : "+v.join(",")),console.log("subjectArray : "+S.join(",")),console.log("bodyArray : "+w.join(",")),console.log("keywordsArray : "+k.join("")),console.log("fromArray length : : "+r.length),[`from:${r.join(",")}`,`to:${p.join(",")}`,`bcc:${v.join(",")}`,`cc:${l.join(",")}`,`subject:${S.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${k.join(" ")}`,`body:${w.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}viewOutlook11(e,n,i,r,p){console.log("from viewOutlook11 : "+p),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.apiService.viewMail(e,i).subscribe(l=>{if(l.body){this.showNotAvailable=!1;var v=JSON.stringify(l.body.mailElement),S=JSON.parse(v);if(console.log("mailElement : "+JSON.stringify(l.body.mailElement)),console.log("subject : "+l.body.mailElement.subject),console.log("from : "+l.body.mailElement.from),console.log("ccRecipients : "+l.body.mailElement.ccRecipients),console.log("toRecipients : "+l.body.mailElement.toRecipients),p=="mail"||p=="Gmail"){this.currentMailSubject=l.body.mailElement.subject,this.currentFileName=l.body.mailElement.subject,this.currentMailFrom=l.body.mailElement.from,this.currentMailSentDate=l.body.mailElement.sentDate,this.currentMailTo=l.body.mailElement.toRecipients,this.currentMailCc=l.body.mailElement.ccRecipients,this.currentMailBcc=l.body.mailElement.bccRecipients,this.currentMailAttachments=l.body.mailElement.attachments,this.currentMailBody=l.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let w=this.iframe.nativeElement,k=w.contentDocument||w.contentWindow?.document;k&&(k.open(),k.write(this.currentMailBody),k.close()),console.log("body : "+this.currentMailBody)}if(p=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=l.body.mailElement.fileName,this.contactTitle=l.body.mailElement.contactTitle,this.contactFirstName=l.body.mailElement.contactFirstName,this.contactMiddleName=l.body.mailElement.contactMiddleName,this.contactLastName=l.body.mailElement.contactLastName,this.contactSuffix=l.body.mailElement.contactSuffix,this.contactEmail=l.body.mailElement.contactEmail,this.contactMobile=l.body.mailElement.contactMobile,this.contactAddrStreet=l.body.mailElement.contactAddrStreet,this.contactAddrCity=l.body.mailElement.contactAddrCity,this.contactAddrState=l.body.mailElement.contactAddrState,this.contactAddrCountry=l.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=l.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=l.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=l.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=l.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=l.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=l.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=l.body.mailElement.contactOfficeLocation&&l.body.mailElement.contactOfficeLocation!==""?l.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=l.body.mailElement.contactCompanyName&&l.body.mailElement.contactCompanyName!==""?l.body.mailElement.contactCompanyName:"-",this.contactJobTitle=l.body.mailElement.contactJobTitle&&l.body.mailElement.contactJobTitle!==""?l.body.mailElement.contactJobTitle:"-",this.contactDepartment=l.body.mailElement.contactDepartment&&l.body.mailElement.contactDepartment!==""?l.body.mailElement.contactDepartment:"-",this.contactBirthday=l.body.mailElement.contactBirthday&&l.body.mailElement.contactBirthday!==""?l.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=l.body.mailElement.contactHomePhones&&l.body.mailElement.contactHomePhones!==""?l.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=l.body.mailElement.contactBusinessPhones&&l.body.mailElement.contactBusinessPhones!==""?l.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=l.body.mailElement.contactWebSite&&l.body.mailElement.contactWebSite!==""?l.body.mailElement.contactWebSite:"-";let w=[l.body.mailElement.contactBusiAddrStreet,l.body.mailElement.contactBusiAddrCity,l.body.mailElement.contactBusiAddrState,l.body.mailElement.contactBusiAddrCountry,l.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=w.filter(I=>I&&I.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let k=[l.body.mailElement.contactAddrStreet,l.body.mailElement.contactAddrCity,l.body.mailElement.contactAddrState,l.body.mailElement.contactAddrCountry,l.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=k.filter(I=>I&&I.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let T=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(I=>I&&I.trim()!=="");this.fullCombinedName=T.join(" "),this.truncatedCombinedName=this.fullCombinedName.length>20?this.fullCombinedName.substring(0,20)+"...":this.fullCombinedName}this.cdr.detectChanges()}else this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1},l=>{switch(console.error("Error from viewOutlook11: ",l),l.status){case 400:console.error("Bad Request: ",l.message);break;case 401:console.error("Unauthorized: ",l.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",l.message);break;case 404:console.error("Not Found: ",l.message);break;case 500:console.error("Internal Server Error: ",l.message);break;case 503:console.error("Internal Server Error: ",l.message);break;default:console.error("Unknown Error: ",l.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(i=>!this.isBackupIdExists(i.backupId));if(n.length>0){this.addedElementsUpdated.push(...n);let i=n.map(r=>r.subject);this.addedElements=i,this.addedElementsCount=this.addedElementsUpdated.length}else this.toastr.error("Item(s) already added.","Error");this.clearSelection(),this.isSelectAll=!1,console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundMailsCS.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.backupId===e)}toggleSelectAll(){this.foundMailsCS.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundMailsCS.some(n=>n.isChecked)}itemSelect(){let e=this.foundMailsCS.length,n=this.foundMailsCS.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundMailsCS.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!this.isMultiSelectEnabled}removeItem(e,n,i,r){this.addedElementsUpdated=this.addedElementsUpdated.filter(p=>p.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,r){if(r==="Gmail"){this.apiService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML","Gmail",!1).subscribe(p=>{console.log("res from downloadGsuite : "+JSON.stringify(p)),console.log("res from downloadGsuite : "+JSON.stringify(p.body)),this.cdr.detectChanges()},p=>{switch(console.error("Error from downloadGsuite: ",p),console.error("Error status: ",p.status),console.log("ID : "+p.error.text),p.status){case 200:console.error("Bad Request: ",p.message),this.downloadId=p.error.text;let l=0,v=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),l++,l>=v&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}});return}this.apiService.downloadMail(e,n).subscribe(p=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},p=>{if(console.error("Error from downloadMail++++++: ",p.status),p.status=="200"){let l="https://",v=this.configService.baseFolder,S="/BluKryptBuilder/cloud/",w=this.configService.cloudName,k=this.authService.getToken(),T=this.sharedService.getDataByKey("userName"),I=`${l}${v}${S}${w}/portal/download/files/?token=${k}&loginUserName=${T}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(I,"_self")}switch(p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,r){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}closePstPopupG(){this.displayPststyleG="none"}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}triggerGmailProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.displayDownloadPststyleG="block",this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info")),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail("Gmail",n)},1e4),this.cdr.detectChanges()}triggerGSuiteProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info"),this.displayDownloadPststyleG="block"),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail("Google Drive",n)},1e4),this.cdr.detectChanges()}getDownloadPstEventsProgressGmail(e,n=!1){this.apiService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID,this.downloadId,e).subscribe(i=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.toastr.success("Restore completed successfully.","Success")):(this.displayDownloadPststyleG="none",this.toastr.success("Please check Downloads page to get the file","Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadPstEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error("Please specify a PST name.","Fail!!!");return}if(this.productTypeContentSearch==="Gmail"){let e=this.getPstBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.apiService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch,!1,this.pstFileNameG).subscribe(n=>this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.apiService.exportSelectedAsPstG(this.getPstBatchDetailElements()).subscribe(e=>{this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.apiService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG,"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},n=>{switch(console.error("Error from initiateRestore: ",n),console.error("Error status: ",n.status),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.apiService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),e.status=="202"&&(this.displayDownloadPststyleG="none",this.toastr.success("Restore completed successfully.","Success"),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}closeDownloadPstPopupG(){this.displayDownloadPstRunBckConfirmstyleG="block"}cancelDownloadAsPstG(){this.displayDownloadPstConfirmstyleG="block"}closeDownloadPstConfirmPopupG(){this.displayDownloadPstConfirmstyleG="none"}closeDownloadPstRunBkpPopupG(){this.displayDownloadPstRunBckConfirmstyleG="none"}cancelDownloadAsPstRunBkpG(){this.displayDownloadPststyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges()}cancelDownloadAsPstConfirmG(){this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.apiService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsPst : "+JSON.stringify(e)),console.log("res from cancelDownloadAsPst : "+JSON.stringify(e.body)),this.toastr.success("Queued Restore has been removed.","Info"),this.intervalIdG&&clearInterval(this.intervalIdG)},e=>{switch(console.error("Error from cancelDownloadAsPst: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onDeviceChangeCS(){this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId)}onDeviceChangeR(e){this.selectedDeviceUUIDR=e}exportCompleteMailboxAsPstG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!0,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}exportCompleteMailboxAsPstTriggerG(){if(console.log("exportCompleteMailboxAsPst!!!!!"),this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error("Please specify a PST name.","Fail!!!");return}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("pstFileName : "+this.pstFileNameG),console.log("currentMailBackupId : "+this.currentMailBackupId),console.log("currentMailUser : "+this.foundMailsCS[0].user),console.log("contentSearchText : "+this.contentSearchText),this.items.forEach((e,n)=>{this.backupIdsListG.push(e.backupId)}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,console.log("backupIdsList : "+this.backupIdsListG),this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId),this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.apiService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG,"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(p=>{console.log("res from initiateRestore : "+JSON.stringify(p)),console.log("res from initiateRestore : "+JSON.stringify(p.body)),this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},p=>{switch(console.error("Error from initiateRestore: ",p),console.error("Error status: ",p.status),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info("No Meta data Configuration found.","Info");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onRestoreClickR(e,n,i,r,p=""){this.displayRestoreStyleR="block";let l=[{label:"",options:[{value:this.currentMailUser||p,label:this.currentMailUser||p}]}];this.deviceUsersListR=l,this.selectedValueR=this.currentMailUser||p,this.value18R=this.currentMailUser||p,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!["Google Drive","Gmail"].includes(this.productTypeContentSearch)&&(this.getRestoreEventsProgressR(),this.intervalIdR=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),this.cdr.detectChanges())}closeRestorePopupR(){this.displayRestoreStyleR="none",this.destinationIdPath="",this.destinationId="",this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.intervalIdR&&clearInterval(this.intervalIdR),this.cdr.detectChanges()}onSearchR(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersListR=[{label:"",options:[]}],this.selectedValue=null,this.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListR=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let r="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(r=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(p=>p.blocked===!1&&p.osType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNowR(e){this.apiService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.osType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e){this.browsePathR==""&&this.destinationPathR&&(this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath,this.selectedBrowseItemId=this.destinationId),this.selectedDeviceUUID=e,this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=["Gmail","Google Drive"].includes(this.productTypeContentSearch)?this.apiService.getBrowsePathGsuite(e,this.productTypeContentSearch,this.selectedBrowseItemId):this.apiService.browseExchange(e,this.browsePathR),i=this.deviceType;n.subscribe(r=>{this.loadingR=!1,r.body?.stringList?this.browseItemsR=r.body.stringList:Array.isArray(r.body)&&r.body.length>0?this.productTypeContentSearch=="Google Drive"?this.browseItemsR=r.body:this.browseItemsR=r.body.map(p=>p.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},r=>{switch(this.loadingR=!1,console.error("Error from browse API:",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",this.selectedBrowseItemId="root",this.displayBrowseStyleR="none"}usePathR(){this.newFolderR="",this.displayBrowseStyleR="none",this.productTypeContentSearch=="Gmail"&&this.selectedBrowseItemR?(this.destinationPathR=this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.productTypeContentSearch=="Google Drive"&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR="My Drive/"+this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.selectedBrowseItemR!=""?(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR,this.destinationIdPath=this.browsePathId),this.destinationId=this.selectedBrowseItemId}addNewFolderR(e){e&&e.trim()!==""?(this.browseItemsR.push(e),this.selectedBrowseItemR=e,this.newFolderR="",this.cdr.detectChanges(),console.log("New folder added: ",e),console.log("Selected folder: ",this.selectedBrowseItemR)):this.toastr.info("Folder name cannot be empty.")}onSingleClickR(e,n){e!=="No path available"&&(this.selectedBrowseItemR=e,n&&(this.selectedBrowseItemId=n),console.log("Selected item:",this.selectedBrowseItemR)),console.log("Selected item:",this.selectedBrowseItemR)}onDoubleClickR(e,n){if(this.productTypeContentSearch=="Gmail"){this.onSingleClickR(e);return}e!=="No path available"&&(n&&(this.selectedBrowseItemId=n),this.addToCombinedValueR(e,n),this.selectedBrowseItemR="",this.selectedBrowseItemId="root")}addToCombinedValueR(e,n){this.browsePathR?(this.browsePathR+=`/${e}`,this.browsePathId+=`/${n}`):(this.browsePathR=e,this.browsePathId=n),console.log("Combined value:",this.browsePathR),this.browseR(this.selectedDeviceUUID)}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:"root",this.browsePathId=n.join("/")):(this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(this.selectedDeviceUUID)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.intervalIdR&&clearInterval(this.intervalIdR)}getRestoreEventsProgressR(){this.apiService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),e.status=="202"&&(this.showRestoreSettingsR=!0,this.toastr.success("Restore completed successfully.","Success"),this.destinationPathR="",this.destinationId="",this.intervalIdR&&clearInterval(this.intervalIdR),setTimeout(()=>{location.reload()},3e3))):this.showRestoreSettingsR=!0},e=>{switch(console.error("Error from getRestoreEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}cancelRunningRestoreR(){this.displayDeleteRestoreStyleR="block"}closeDeleteRestorePopupR(){this.displayDeleteRestoreStyleR="none"}deleteRestoreEventR(){this.displayDeleteRestoreStyleR="none",this.apiService.deleteRestoreEvent(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from deleteRestoreEvent : "+JSON.stringify(e)),console.log("res from deleteRestoreEvent : "+JSON.stringify(e.body)),this.showRestoreSettingsR=!0,this.toastr.success("Queued Restore has been removed.","Info"),this.intervalIdR&&clearInterval(this.intervalIdR)},e=>{switch(console.error("Error from deleteRestoreEvent: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}initiateRestoreR(){let n=new Date(this.myDateBeforeR).getTime();if(this.restoreDataBeforeR=n.toString(),this.dateBeforeR){let r=new Date(this.myDateBeforeR);r.setHours(this.myTimeBeforeR.getHours()),r.setMinutes(this.myTimeBeforeR.getMinutes()),r.setSeconds(this.myTimeBeforeR.getSeconds());let p=r.getTime();this.restoreDataBeforeR=p.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR)}let i=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error("Please select a Destination Device.","Fail!!!");return}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error("Inplace restore cannot be enabled for other destination assets.","Fail!!!");return}}else if(this.destinationPathR==""){this.toastr.error("Please select a Destination Path.","Fail!!!");return}if(console.log("currentDeviceUUID : "+this.currentDeviceUUIDCS),console.log("selectedDeviceUUID : "+this.selectedDeviceUUID),console.log("destinationPath : "+this.destinationPathR),console.log("currentFilePath : "+this.currentFilePathR),console.log("currentFileBackupId : "+this.currentFileBackupIdR),console.log("isFolder : "+i),console.log("inplaceRestore : "+this.inplaceRestoreR),console.log("restoreDataBefore : "+this.restoreDataBeforeR),console.log("restoreDeletedFilesByRestore : "+this.restoreDeletedFilesByRestoreR),["Gmail","Google Drive"].includes(this.productTypeContentSearch)){this.apiService.initiateRestoreGsuite(this.currentDeviceUUIDCS,this.currentFileBackupIdR,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch,this.selectedDeviceUUIDR,this.destinationPathR,this.destinationId,i,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,`${this.currentFilePathR}/${this.currentFileName}`).subscribe(this.productTypeContentSearch==="Google Drive"?r=>{this.triggerGSuiteProgress(r,!0),this.showRestoreSettingsR=!1}:r=>{this.triggerGmailProgress(r,!0),this.showRestoreSettingsR=!1},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=r?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(r,!0):this.triggerGmailProgress(r,!0);break;case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.showRestoreSettingsR=!1,this.intervalId=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),console.error("Error code 417: ",r.message),this.toastr.info("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}});return}this.apiService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUID,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(r=>{console.log("res from initiateRestore : "+JSON.stringify(r)),console.log("res from initiateRestore : "+JSON.stringify(r.body)),this.showRestoreSettingsR=!1,this.toastr.success("Restore has been queued.","Info")},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}resetContactFields(){this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-"}resetTasksFields(){this.taskSubject="-",this.taskStartDate="-",this.taskDueDate="-",this.taskReminderTime="-"}togglePanel(){this.isExpanded=!this.isExpanded,this.isExpanded?this.parseContentSearchMail():this.reconstructContentSearchMail()}parseContentSearchMail(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],p=n[2];p.startsWith("(")&&p.endsWith(")")&&(p=p.slice(1,-1)),i[r].push(p)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMail(){let e=[];this.fromId&&e.push(`from:${this.fromId.split(",").map(n=>n.trim()).join(",")}`),this.toId&&e.push(`to:${this.toId.split(",").map(n=>n.trim()).join(",")}`),this.ccId&&e.push(`cc:${this.ccId.split(",").map(n=>n.trim()).join(",")}`),this.bccId&&e.push(`bcc:${this.bccId.split(",").map(n=>n.trim()).join(",")}`),this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}static{this.\u0275fac=function(n){return new(n||t)(b(q),b(ne),b(X),b(we),b(zi),b(re),b(Ue),b(Be),b(Yi),b(He),b(je))}}static{this.\u0275cmp=N({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(B(Ka,5),B($a,5),B(Za,5),B(Xa,5),B(es,5),B(ts,5),B(is,5),B(ns,5),B(rs,5),B(os,5)),n&2){let r;F(r=V())&&(i.deviceDropdown=r.first),F(r=V())&&(i.deviceDropdownCS=r.first),F(r=V())&&(i.iframe=r.first),F(r=V())&&(i.userDeviceSearch=r.first),F(r=V())&&(i.fileSearch=r.first),F(r=V())&&(i.contentSearch=r.first),F(r=V())&&(i.contentSearchMailInput=r.first),F(r=V())&&(i.deviceDropdownR=r.first),F(r=V())&&(i.calendarIframe=r.first),F(r=V())&&(i.searchInput=r.first)}},outputs:{close:"close"},features:[ie([q,X])],decls:223,vars:87,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentFrame",""],["deviceDropdownR",""],[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",2,"font-size","30px","cursor","pointer",3,"click"],[1,"fa","fa-times-circle"],["variant","tabs","role","tablist"],[3,"ngStyle"],["cNavLink","",3,"click","cTabContent","tabPaneIdx"],[4,"ngIf"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[2,"margin-top","20px"],["cInputGroupText",""],["aria-describedby","userAssetSearchText","aria-label","userAssetSearchText","name","userAssetSearchText","cFormControl","","placeholder","Search ..","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-12",2,"align-items","center","margin-top","20px"],[1,"form-group","col-lg-2"],["for","productTypeFiles"],["cSelect","","name","productTypeFiles","id","productTypeFiles","title","Select Product Type",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel"],["value","backup",4,"ngIf"],["value","oneDrive",4,"ngIf"],["value","SHAREPOINT",4,"ngIf"],["value","Gmail",4,"ngIf"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],[1,"col-lg-12",2,"align-items","center","margin-top","10px"],[1,"col-lg-8"],["aria-describedby","filesSearchText","aria-label","filesSearchText","name","filesSearchText","cFormControl","","placeholder","Search for files/folders ..",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-2"],["type","button",1,"btn","btn-small","btn-primary",3,"click"],["style","overflow: scroll;height: 500px;",4,"ngIf"],["for","productTypeContentSearch"],["cSelect","","name","productTypeContentSearch","id","productTypeContentSearch","title","Select Product Type",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel"],["value","mail",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","name","pstFileNameG","id","pstFileNameG","placeholder","Enter PST File Name","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],["id","downloadAsPstG","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"col-lg-12"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["id","restoremodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click",4,"ngIf"],["id","browsemodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],[1,"col-lg-6"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[2,"max-height","400px","overflow-y","auto"],[1,"table","table-hover","table-bordered"],["id","left"],["class","text-left",3,"ngClass","click","dblclick",4,"ngFor","ngForOf"],["for","policyName"],["aria-describedby","newFolderR","name","newFolderR","id","newFolderR","aria-label","Enter folder name","cFormControl","","placeholder","Enter folder name","required","",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","addNewFolderBtnR","type","button","variant","outline",3,"click"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],["value","Gmail"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["placeholder","Select Users","noResultMessage","No users found","id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Sites","noResultMessage","No sites found","id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[2,"overflow","scroll","height","500px"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],[1,"bg-body-tertiary","clickable-header"],[1,"bg-body-tertiary"],[4,"ngFor","ngForOf"],[1,"found-in"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],["value","mail"],["placeholder","Select Users","noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Sites","noResultMessage","No sites found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-control",3,"change"],["aria-describedby","contentSearchText","aria-label","contentSearchText","name","contentSearchText","cFormControl","","placeholder","Search..",3,"ngModelChange","keydown.enter","ngModel"],["aria-describedby","contentSearchMail","name","contentSearchMail","id","contentSearchMail","aria-label","Default Folders to Backup","cFormControl","","placeholder","Search",3,"ngModelChange","keydown.enter","ngModel","disabled"],[1,"fa",3,"ngClass"],["class","col-lg-2",4,"ngIf"],[1,"btn","btn-small","btn-primary",3,"click"],["class","row col-lg-12","style","border: 1px solid #062D4D;border-radius: 10px;",4,"ngIf"],[1,"row","col-lg-12",2,"border","1px solid #062D4D","border-radius","10px"],[1,"form-group","col-lg-6"],["for","fromId"],["href","#",1,"hover-link",2,"color","#062D4D","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"note"],["type","text","id","fromId","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["for","toId"],["type","text","id","toId","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],["for","ccId"],["type","text","id","ccId","placeholder","CC",1,"form-control",3,"ngModelChange","ngModel"],["for","bccId"],["type","text","id","bccId","placeholder","BCC",1,"form-control",3,"ngModelChange","ngModel"],["for","subjectId"],["type","text","id","subjectId","placeholder","Subject",1,"form-control",3,"ngModelChange","ngModel"],["for","bodyId"],["type","text","id","bodyId","placeholder","Body",1,"form-control",3,"ngModelChange","ngModel"],["for","keywordsId"],["type","text","id","keywordsId","placeholder","Keywords",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-lg-6","align-items-center","d-flex"],["type","text","bsDatepicker","","placement","top",1,"form-control","mx-2",2,"width","auto",3,"ngModelChange","ngModel","bsConfig"],[1,"btn","btn-small","btn-primary","pull-right",3,"click"],[1,"bg-body-tertiary","clickable-header","col-lg-10"],[1,"bg-body-tertiary","col-lg-2"],[3,"innerHTML"],[1,"col-lg-12",2,"height","60vh","overflow","scroll"],["class","downloadAsPstGSearchll hover-link","style","margin-right: 10px; margin-left:22px; cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","removeAllGlobal hover-link","style","margin-right: 10px;margin-left:22px;cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearch","style","margin-right: 3%;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearchll11","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[2,"border-top","0px solid #f1f1f1 !important"],["class","btn btn-small btn-primary addToCart",3,"click",4,"ngIf"],["class","card-body-center",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],[1,"table","table-hover",2,"background","white"],[1,"col-lg-10"],[1,"downloadAsPstGSearchll","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"removeAllGlobal","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-reorder"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearch",2,"margin-right","3%",3,"click"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearchll11",2,"margin-right","3%",3,"click","ngClass"],["type","checkbox","title","Select all",3,"ngModelChange","change","ngModel"],[1,"btn","btn-small","btn-primary","addToCart",3,"click"],[3,"selected-rowMail",4,"ngFor","ngForOf"],["style","border-right: none;",4,"ngIf"],["class","col-lg-12","style","font-size:14px !important;border-left: none;",3,"click",4,"ngIf"],["type","checkbox",3,"ngModelChange","change","ngModel"],[2,"border-right","none"],[1,"aplhaC",2,"line-height","28px","text-align","center","display","inline-block","height","28px","width","28px","border-radius","50%","opacity","0.5",3,"ngStyle"],[1,"col-lg-12",2,"font-size","14px !important","border-left","none",3,"click"],["class","folder","style","cursor: pointer; color: #000 !important;text-decoration: none;",4,"ngIf"],["class","folder","style","cursor: pointer; color: #c5bcbc !important; font-style:italic;text-decoration: none;",4,"ngIf"],[1,"folder",2,"cursor","pointer","color","#000 !important","text-decoration","none"],[2,"font-weight","bold"],["class","fa fa-paperclip fa-1x pull-right","style","color: #000 !important; cursor:default;",4,"ngIf"],["class","pull-right","title","Download","style","cursor:pointer;",3,"click",4,"ngIf"],["class","pull-right","title","Restore file","style","margin-right:10px;cursor:pointer;",3,"click",4,"ngIf"],[1,"folder"],[2,"color","#062D4D"],[2,"float","right","color","grey",3,"innerHTML"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#000 !important","cursor","default"],["title","Download",1,"pull-right",2,"cursor","pointer",3,"click"],[1,"fa","fa-download"],["title","Restore file",1,"pull-right",2,"margin-right","10px","cursor","pointer",3,"click"],[1,"fa","fa-history"],[1,"folder",2,"cursor","pointer","color","#c5bcbc !important","font-style","italic","text-decoration","none"],["class","fa fa-paperclip fa-1x pull-right","style","color: #c5bcbc !important;",4,"ngIf"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#c5bcbc !important"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],[1,"contentOutlook1Div"],["frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px"],[1,"from1"],[2,"float","right"],[1,"to1"],[1,"cc1"],[1,"bcc1"],[1,"attachments1"],[1,"dataa1"],["style","margin-right:5px; border: 1px solid #062D4D; padding:2px; border-radius:5px;",4,"ngFor","ngForOf"],[2,"margin-right","5px","border","1px solid #062D4D","padding","2px","border-radius","5px"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"row","col-lg-12",2,"margin-bottom","10px"],[1,"col-lg-3"],["shape","rounded-1","src","./assets/images/avatars/default.jpg","textColor","primary","alt","User avatar",3,"size"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D"],[2,"cursor","pointer",3,"title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4"],[1,"contactEmail",3,"mouseenter","mouseleave","title"],["class","contactEmailTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],["class","contactOfficeLocationTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],["class","contactCompanyNameTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],["class","contactJobTitleTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],["class","contactDepartmentTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],["class","contactMobileTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],["class","contactHomePhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],["class","contactBusinessPhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactEmailTitle",2,"cursor","pointer",3,"title"],[1,"contactOfficeLocationTitle",2,"cursor","pointer",3,"title"],[1,"contactCompanyNameTitle",2,"cursor","pointer",3,"title"],[1,"contactJobTitleTitle",2,"cursor","pointer",3,"title"],[1,"contactDepartmentTitle",2,"cursor","pointer",3,"title"],[1,"contactMobileTitle",2,"cursor","pointer",3,"title"],[1,"contactHomePhonesTitle",2,"cursor","pointer",3,"title"],[1,"contactBusinessPhonesTitle",2,"cursor","pointer",3,"title"],[1,"btn","btn-small","btn-primary","removeFromCart","pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"paginationOutlook"],[1,"col-lg-4","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],["type","button",1,"btn","btn-success",3,"click"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],["placeholder","Select Users","noResultMessage","No users found","id","selec2-18R","customSearchEnabled","",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["for","destinationPathR"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","placeholder","Enter Destination Path","required","",3,"ngModelChange","ngModel","readonly"],["cButton","","color","secondary","id","destinationPathBrowseBtnR","type","button","variant","outline",3,"click"],["class","col-lg-12 row form-group",4,"ngIf"],[1,"col-lg-12","row","form-group"],[1,"col-lg-4"],[3,"switch"],["cFormCheckInput","","id","inplaceRestoreR","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","restoreDeletedFilesByRestoreR","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-lg-3",2,"border","1px solid #062D4D","border-radius","10px","padding","10px"],[1,"row","form-group"],[1,"col-6",2,"margin-top","10px"],[1,"col-4",2,"margin-top","10px"],["cFormCheckInput","","id","dateBeforeR","type","checkbox",3,"ngModelChange","change","ngModel"],[1,"row","align-items-center"],[1,"col-12","d-flex","flex-wrap"],["type","text","bsDatepicker","",1,"form-control","mx-2",2,"flex","1","min-width","150px",3,"ngModelChange","ngModel","bsConfig","disabled"],[2,"flex","1","min-width","100px",3,"ngModelChange","ngModel","minuteStep","showMeridian","disabled"],[1,"select2-results"],["role","tree","tabindex","-1","infinitescroll","","ng-reflect-infinite-scroll-disabled","false","ng-reflect-infinite-scroll-distance","1.5","ng-reflect-infinite-scroll-throttle","150","ng-reflect-infinite-scroll-container","[object HTMLUListElement]",1,"select2-results__options",2,"max-height","200px"],["role","group",1,"select2-results__option"],[1,"select2-results__group"],[1,"select2-results__options","select2-results__options--nested"],["cFormCheckInput","","id","suspendBackupR","type","checkbox",3,"ngModelChange","ngModel"],[1,"ellipsis-path",3,"title"],[1,"progressR",3,"title"],[1,"spinner"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-arrow-left"],["colspan","1",1,"text-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"text-left",3,"click","dblclick","ngClass"]],template:function(n,i){if(n&1){let r=x();o(0,"div",9)(1,"div",10)(2,"c-card",11)(3,"c-card-body")(4,"a",12),_("click",function(){return u(r),g(i.closeOverlay())}),y(5,"i",13),a(),o(6,"c-nav",14)(7,"c-nav-item",15)(8,"button",16),_("click",function(){return u(r),g(i.setActiveSearchTab("default",0))}),d(9," Search Users/Assets "),a()(),o(10,"c-nav-item")(11,"button",16),_("click",function(){return u(r),g(i.setActiveSearchTab("file",1))}),d(12," Search by file/folder names "),a()(),C(13,hs,3,2,"c-nav-item",17),a(),o(14,"c-tab-content",18,0)(16,"c-tab-pane",19)(17,"c-row",20)(18,"c-input-group",11)(19,"span",21),d(20,"Search Users/Assets"),a(),o(21,"input",22,1),P("ngModelChange",function(l){return u(r),D(i.userAssetSearchText,l)||(i.userAssetSearchText=l),g(l)}),_("keydown.enter",function(){return u(r),g(i.searchForUsersAssets())}),a()()(),o(23,"c-row"),C(24,us,2,1,"c-card",17)(25,vs,6,1,"c-card",17),y(26,"br"),C(27,fs,2,1,"c-card",17)(28,ys,6,1,"c-card",17),y(29,"br"),C(30,bs,2,1,"c-card",17)(31,Ss,6,1,"c-card",17),a()(),o(32,"c-tab-pane",19)(33,"c-row",23)(34,"div",24)(35,"label",25),d(36,"Product Type"),a(),o(37,"select",26),P("ngModelChange",function(l){return u(r),D(i.productTypeFiles,l)||(i.productTypeFiles=l),g(l)}),_("change",function(l){return u(r),g(i.onChangeProductType(l))}),C(38,ws,2,0,"option",27)(39,xs,2,0,"option",28)(40,ks,2,0,"option",29)(41,Is,2,0,"option",30),_e(42,Ms,1,1,"option",31,Ne),a()(),C(44,Es,4,5,"div",32)(45,Ds,4,4,"div",32)(46,As,7,2,"div",32),a(),o(47,"c-row",33)(48,"div",34)(49,"c-input-group")(50,"input",35,2),P("ngModelChange",function(l){return u(r),D(i.filesSearchText,l)||(i.filesSearchText=l),g(l)}),_("keydown.enter",function(){return u(r),g(i.searchForFiles())}),a()()(),o(52,"div",36)(53,"button",37),_("click",function(){return u(r),g(i.searchForFiles())}),d(54,"Search"),a()()(),y(55,"br"),C(56,Rs,5,0,"c-row",17)(57,Ns,10,3,"c-row",38),a(),o(58,"c-tab-pane",19)(59,"c-row",23)(60,"div",24)(61,"label",39),d(62,"Product Type"),a(),o(63,"select",40),P("ngModelChange",function(l){return u(r),D(i.productTypeContentSearch,l)||(i.productTypeContentSearch=l),g(l)}),_("change",function(l){return u(r),g(i.onChangeProductTypeContentSearch(l))}),C(64,Fs,2,0,"option",41)(65,Vs,2,0,"option",28)(66,Bs,2,0,"option",29)(67,Ls,2,0,"option",30),_e(68,zs,1,3,"option",31,Ne),a()(),C(70,Hs,4,5,"div",32)(71,js,4,4,"div",32)(72,Js,7,2,"div",32),a(),C(73,Ys,8,1,"c-row",42)(74,Ks,8,4,"c-row",43)(75,Zs,2,1,"c-row",43),y(76,"br"),C(77,el,10,3,"c-row",38)(78,tl,5,0,"c-row",43)(79,Hl,36,29,"c-row",44),y(80,"br"),C(81,Yl,7,4,"c-row",45),a()()()()()(),o(82,"div",46)(83,"div",47)(84,"div",48)(85,"div",49)(86,"h4",50),d(87,"Specify Filename"),a()(),o(88,"div",51)(89,"c-row")(90,"div",52)(91,"label",53),d(92,"Specify pst filename"),a(),o(93,"input",54),P("ngModelChange",function(l){return u(r),D(i.pstFileNameG,l)||(i.pstFileNameG=l),g(l)}),a()()()(),o(94,"div",55)(95,"button",56),_("click",function(){return u(r),g(i.closePstPopupG())}),d(96,"Close"),a(),C(97,Ql,2,0,"button",57)(98,Kl,2,0,"button",57),a()()()(),o(99,"div",58)(100,"div",59)(101,"div",48)(102,"div",49)(103,"h4",50),d(104,"Restore Progress"),a()(),o(105,"div",51)(106,"c-card")(107,"c-card-header",60),d(108,"Currently Running Restore Statistics"),a(),o(109,"c-card-body")(110,"c-row",61)(111,"table",62)(112,"thead")(113,"tr"),C(114,$l,2,0,"th",17),o(115,"th"),d(116,"Overall Progress"),a()()(),o(117,"tbody")(118,"tr"),C(119,Xl,5,9,"td",17)(120,ec,2,0,"td",17)(121,tc,6,10,"td",17)(122,ic,2,0,"td",17),a()()()()()()(),o(123,"div",55)(124,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstPopupG())}),d(125,"Close"),a(),C(126,nc,2,0,"button",63),a()()()(),o(127,"div",46)(128,"div",47)(129,"div",48)(130,"div",49)(131,"h4",50),d(132,"Restore Cancel Confirmation"),a()(),o(133,"div",51)(134,"h4",50),d(135,"Are you sure you wish to cancel the restore?"),a()(),o(136,"div",55)(137,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstConfirmPopupG())}),d(138,"Cancel"),a(),o(139,"button",64),_("click",function(){return u(r),g(i.cancelDownloadAsPstConfirmG())}),d(140,"Ok"),a()()()()(),o(141,"div",46)(142,"div",47)(143,"div",48)(144,"div",49)(145,"h4",50),d(146,"Confirmation"),a()(),o(147,"div",51)(148,"h4",50),d(149,"Are you sure you wish to close this window? The restore will still continue to run in the background."),a()(),o(150,"div",55)(151,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstRunBkpPopupG())}),d(152,"Cancel"),a(),o(153,"button",65),_("click",function(){return u(r),g(i.cancelDownloadAsPstRunBkpG())}),d(154,"Ok"),a()()()()(),o(155,"div",66)(156,"div",59)(157,"div",48)(158,"div",49)(159,"h4",50),d(160,"Restore Settings"),a()(),o(161,"div",51),C(162,sc,58,25,"c-card",17)(163,yc,22,14,"c-card",17),a(),o(164,"div",55),C(165,bc,2,0,"button",67)(166,Cc,2,0,"button",68)(167,Sc,2,0,"button",69)(168,wc,2,0,"button",70),a()()()(),o(169,"div",71)(170,"div",47)(171,"div",48)(172,"div",49)(173,"h4",50),d(174,"Browse path"),a()(),o(175,"div",51)(176,"c-row",61)(177,"c-card",72)(178,"c-card-header",60)(179,"span"),d(180,"Current Path :"),C(181,xc,2,0,"span",17)(182,kc,2,0,"span",17)(183,Ic,2,1,"span",17),a()(),o(184,"c-card-body"),C(185,Tc,3,0,"button",73),o(186,"div",74)(187,"table",75)(188,"thead")(189,"tr",76)(190,"th"),d(191,"Items"),a()()(),o(192,"tbody"),C(193,Mc,5,0,"tr",17)(194,Ec,4,5,"tr",77),a()()()()(),o(195,"c-card",72)(196,"c-card-body")(197,"div",52)(198,"label",78),d(199,"Create new folder"),a(),o(200,"c-input-group",11)(201,"input",79),P("ngModelChange",function(l){return u(r),D(i.newFolderR,l)||(i.newFolderR=l),g(l)}),a(),o(202,"button",80),_("click",function(){return u(r),g(i.addNewFolderR(i.newFolderR))}),d(203,"Create"),a()()()()()()(),o(204,"div",55)(205,"button",56),_("click",function(){return u(r),g(i.closeBrowsePopupR())}),d(206,"Close"),a(),o(207,"button",65),_("click",function(){return u(r),g(i.usePathR())}),d(208,"Use Path"),a()()()()(),o(209,"div",46)(210,"div",47)(211,"div",48)(212,"div",49)(213,"h4",50),d(214,"Restore Cancel Confirmation"),a()(),o(215,"div",51)(216,"h4",50),d(217,"Are you sure you wish to cancel the restore?"),a()(),o(218,"div",55)(219,"button",56),_("click",function(){return u(r),g(i.closeDeleteRestorePopupR())}),d(220,"Close"),a(),o(221,"button",65),_("click",function(){return u(r),g(i.deleteRestoreEventR())}),d(222,"Delete"),a()()()()()}if(n&2){let r=te(15);s(7),m("ngStyle",W(69,ue,i.userType!="user"?"block":"none")),s(),m("cTabContent",r)("tabPaneIdx",0),s(3),m("cTabContent",r)("tabPaneIdx",1),s(2),m("ngIf",i.inclusionLicenses.includes("contentsearchenabled")),s(),m("activeTabPaneIdx",i.activeTabIndex),s(7),E("ngModel",i.userAssetSearchText),s(3),m("ngIf",i.noUsersFoundText!=""),s(),m("ngIf",i.foundUsers.length>0),s(2),m("ngIf",i.noSitesFoundText!=""),s(),m("ngIf",i.foundSites.length>0),s(2),m("ngIf",i.noDevicesFoundText!=""),s(),m("ngIf",i.foundDevices.length>0),s(6),E("ngModel",i.productTypeFiles),s(),m("ngIf",i.inclusionLicenses.includes("backup_enabled")),s(),m("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),s(),m("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),s(),m("ngIf",i.inclusionLicenses.includes("gmail_backup_enabled")),s(),ye(i.PRODUCTS_CONFIG),s(2),m("ngIf",i.productTypeFiles!="SHAREPOINT"),s(),m("ngIf",i.productTypeFiles=="SHAREPOINT"),s(),m("ngIf",i.productTypeFiles!="SHAREPOINT"),s(4),E("ngModel",i.filesSearchText),s(6),m("ngIf",i.noFilesFound),s(),m("ngIf",i.foundFiles.length>0&&!i.noFilesFound),s(6),E("ngModel",i.productTypeContentSearch),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),s(),ye(i.PRODUCTS_CONFIG),s(2),m("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch=="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),m("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(),m("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(2),m("ngIf",i.foundFilesCS.length>0&&!i.noFilesFoundCS&&i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),s(),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),s(2),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),s(),m("ngStyle",W(71,ue,i.displayPststyleG)),s(11),E("ngModel",i.pstFileNameG),s(4),m("ngIf",i.exportCompleteMailboxG),s(),m("ngIf",!i.exportCompleteMailboxG),s(),m("ngStyle",W(73,ue,i.displayDownloadPststyleG)),s(15),m("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(5),m("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),m("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),m("ngIf",i.progressG.totalNoOfFilesForRestore!=""),s(),m("ngIf",i.progressG.totalNoOfFilesForRestore==""),s(4),m("ngIf",!R(75,xe).includes(i.productTypeContentSearch)),s(),m("ngStyle",W(76,ue,i.displayDownloadPstConfirmstyleG)),s(14),m("ngStyle",W(78,ue,i.displayDownloadPstRunBckConfirmstyleG)),s(14),m("ngStyle",W(80,ue,i.displayRestoreStyleR)),s(7),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR),s(2),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR&&!R(82,xe).includes(i.productTypeContentSearch)),s(),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR),s(),m("ngStyle",W(83,ue,i.displayBrowseStyleR)),s(12),m("ngIf",i.productTypeContentSearch==="Google Drive"),s(),m("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),s(),m("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(2),m("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(8),m("ngIf",i.loadingR),s(),m("ngForOf",i.browseItemsR),s(7),E("ngModel",i.newFolderR),s(8),m("ngStyle",W(85,ue,i.displayDeleteRestoreStyleR))}},dependencies:[Fo,No,wt,Le,xt,It,kt,Do,Po,Eo,Vt,Nt,Ft,Ot,Yo,Ut,At,Zo,Rt,me,Ni,ut,pe,Li,Bi,qo,Jo,Wo,Vo,vo,yo,_o,bo,Oo,Se,Dt,be,Lt,ea,Pt,Bt,Gt,ta,zt,ia,na],styles:['.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:10px;width:100%;height:100%;overflow-y:auto}.button-group[_ngcontent-%COMP%]{margin-top:20px}button[_ngcontent-%COMP%]{margin:0 10px}.card-hover[_ngcontent-%COMP%]{transition:background-color .3s ease-in-out}.card-hover[_ngcontent-%COMP%]:hover{background-color:#35b7f4;cursor:pointer}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}.selected-rowMail[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8;color:#fff}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}.selected[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8}.disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.spinner[_ngcontent-%COMP%]{width:25px;margin:auto;height:25px;display:grid;border-radius:50%;-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/2.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 2.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(6)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var Dc=(t,c)=>c.name,Pc=t=>({display:t}),_a=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],Oc=()=>["/mspDashboard"],Ac=()=>["/dashboard"],Rc=()=>["/bluvault"],Uc=()=>({placement:"bottom-start"}),Nc=()=>[];function Fc(t,c){if(t&1&&(o(0,"button",28),z(),y(1,"svg",29),a()),t&2){let e=h();m("cSidebarToggle",e.sidebarId)}}function Vc(t,c){if(t&1){let e=x();o(0,"c-input-group",30)(1,"input",31),_("click",function(){u(e);let i=h();return g(i.openOverlay())}),a(),o(2,"span",32),z(),y(3,"svg",33),a()()}}function Bc(t,c){if(t&1){let e=x();o(0,"c-sidebar-brand",34)(1,"img",35),_("error",function(i){u(e);let r=h();return g(r.onImageError(i))}),a()()}if(t&2){let e=h();m("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&R(2,_a).includes(e.userType)?R(3,Oc):R(4,_a).includes(e.userType)?R(5,Ac):R(6,Rc)),s(),m("src",e.parabluLogo,Q)}}function Lc(t,c){if(t&1){let e=x();o(0,"app-search-overlay",36),_("close",function(){u(e);let i=h();return g(i.closeOverlay())}),a()}}function Gc(t,c){t&1&&mt(0)}function zc(t,c){t&1&&mt(0)}function Hc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.currentUserProfile())}),z(),y(2,"svg",45),d(3," My Account "),a()()}}function jc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.activityHistory())}),z(),y(2,"svg",46),d(3," Activity History "),a()()}}function Wc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.unusualActivityHistory())}),z(),y(2,"svg",46),d(3," Unusual Activity History "),a()()}}function qc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.licenseOptimizer())}),z(),y(2,"svg",47),d(3," License Optimizer "),a()()}}function Jc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.packDetails())}),z(),y(2,"svg",47),d(3," Current Packs Subscribed "),a()()}}function Yc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.navigateToDownloads())}),z(),y(2,"svg",48),d(3," Downloads "),a()()}}function Qc(t,c){t&1&&(o(0,"li"),y(1,"hr",41),a())}function Kc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.activityHistory())}),z(),y(2,"svg",49),d(3," Share Activity History "),a()()}}function $c(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.unusualActivityHistory())}),z(),y(2,"svg",46),d(3," Infected Files History "),a()()}}function Zc(t,c){if(t&1){let e=x();o(0,"li")(1,"a",42),_("click",function(){u(e);let i=h(2);return g(i.miniclouds())}),z(),y(2,"svg",50),d(3," MiniClouds "),a()()}}function Xc(t,c){t&1&&(o(0,"li"),y(1,"hr",41),a())}function ed(t,c){t&1&&(o(0,"li"),y(1,"hr",41),a())}function td(t,c){if(t&1&&(o(0,"li")(1,"a",51),d(2,"Quick Start Guide"),a()()),t&2){let e=h(2);s(),m("href",e.quick_startUrl,Q)}}function id(t,c){if(t&1&&(o(0,"li")(1,"a",51),d(2,"Administrator Guide"),a()()),t&2){let e=h(2);s(),m("href",e.administrator_Guide_EndpointUrl,Q)}}function nd(t,c){if(t&1&&(o(0,"li")(1,"a",52),d(2,"Quick Start Guide (Servers)"),a()()),t&2){let e=h(2);s(),m("href",e.quick_start_serverUrl,Q)}}function rd(t,c){if(t&1&&(o(0,"li")(1,"a",52),d(2,"Administrator Guide (Servers)"),a()()),t&2){let e=h(2);s(),m("href",e.administrator_Guide_ServerUrl,Q)}}function od(t,c){if(t&1&&(o(0,"li")(1,"a",52),d(2,"User Guide"),a()()),t&2){let e=h(2);s(),m("href",e.userGuideUrl,Q)}}function ad(t,c){t&1&&(o(0,"li"),y(1,"hr",41),a())}function sd(t,c){t&1&&(o(0,"li")(1,"h6",53),d(2," Help & Support "),a()())}function ld(t,c){t&1&&(o(0,"li")(1,"a",51),y(2,"i",54),d(3," +971 50 158 7321 "),a()()),t&2&&(s(),m("href","https://wa.me/971501587321",Q))}function cd(t,c){if(t&1&&(o(0,"li")(1,"a",55),z(),y(2,"svg",56),d(3," Send email "),a()()),t&2){let e=h(2);s(),m("href","mailto:"+e.support_mailId,Q)}}function dd(t,c){t&1&&(o(0,"li"),y(1,"hr",41),a())}function pd(t,c){if(t&1){let e=x();o(0,"c-dropdown",37)(1,"button",38),y(2,"c-avatar",39),a(),o(3,"ul",40),C(4,Hc,4,0,"li",24),o(5,"li"),y(6,"hr",41),a(),C(7,jc,4,0,"li",24)(8,Wc,4,0,"li",24),o(9,"li")(10,"a",42),_("click",function(){u(e);let i=h();return g(i.endpointsDownload())}),z(),y(11,"svg",43),d(12," Download Agent "),a()(),C(13,qc,4,0,"li",24)(14,Jc,4,0,"li",24)(15,Yc,4,0,"li",24)(16,Qc,2,0,"li",24)(17,Kc,4,0,"li",24)(18,$c,4,0,"li",24)(19,Zc,4,0,"li",24)(20,Xc,2,0,"li",24)(21,ed,2,0,"li",24)(22,td,3,1,"li",24)(23,id,3,1,"li",24)(24,nd,3,1,"li",24)(25,rd,3,1,"li",24)(26,od,3,1,"li",24)(27,ad,2,0,"li",24)(28,sd,3,0,"li",24)(29,ld,4,1,"li",24)(30,cd,4,1,"li",24)(31,dd,2,0,"li",24),st(),o(32,"li")(33,"a",42),_("click",function(){u(e);let i=h();return g(i.logout())}),z(),y(34,"svg",44),d(35," Logout "),a()()()()}if(t&2){let e=h();m("popperOptions",R(25,Uc)),s(),m("caret",!1),s(),m("size","md"),s(2),m("ngIf",!(e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin")),s(3),m("ngIf",e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user"),s(),m("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),s(5),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled"))}}function md(t,c){if(t&1&&(o(0,"a",65),d(1,"CrashPlan Endpoint"),a()),t&2){let e=h(3);m("href",e.crashplan_Endpoint_Url,Q)}}function hd(t,c){t&1&&(o(0,"span"),d(1,"Crashplan Endpoint"),a())}function ud(t,c){if(t&1){let e=x();o(0,"button",63),_("click",function(){u(e);let i=h(2);return g(i.click_Crashplan_Endpoint())}),C(1,md,2,1,"a",64)(2,hd,2,0,"span",24),a()}if(t&2){let e=h(2);s(),m("ngIf",e.crashplan_Endpoint_Url),s(),m("ngIf",!e.crashplan_Endpoint_Url)}}function gd(t,c){if(t&1){let e=x();o(0,"button",66),_("click",function(){let i=u(e).$implicit,r=h(2);return r.colorMode.set(i.name),g(r.applyTheme())}),z(),y(1,"svg",67),d(2),a()}if(t&2){let e=c.$implicit,n=h(2);m("active",n.colorMode()===e.name)("routerLink",R(4,Nc)),s(),m("name",e.icon),s(),M(" ",e.text," ")}}function vd(t,c){if(t&1&&(C(0,ud,3,2,"button",57),o(1,"c-dropdown",58)(2,"button",59),z(),y(3,"svg",60),a(),st(),o(4,"div",61),_e(5,gd,3,5,"button",62,Dc),a()()),t&2){let e=h();m("ngIf",!e.inclusionLicenses.includes("backup_enabled")),s(2),m("caret",!1),s(),m("name",e.icons()),s(2),ye(e.colorModes)}}function fd(t,c){t&1&&(o(0,"th",17),d(1,"Servers"),a())}function _d(t,c){t&1&&(o(0,"td",20)(1,"span"),d(2,"-"),a()())}function yd(t,c){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),d(3),a()(),o(4,"td",20)(5,"div"),d(6),a()(),o(7,"td",20)(8,"div"),d(9),a()(),o(10,"td",20)(11,"div"),d(12,"-"),a()()()),t&2){let e=c.$implicit;s(3),A(e.skuCode),s(3),A(e.storageSize),s(3),A(e.minUserCount)}}function bd(t,c){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),d(3),a()(),o(4,"td",20)(5,"div"),d(6,"-"),a()(),o(7,"td",20)(8,"div"),d(9),a()(),o(10,"td",20)(11,"div"),d(12),a()()()),t&2){let e=c.$implicit;s(3),A(e.skuCode),s(6),A(e.storageSize),s(3),A(e.minUserCount)}}function Cd(t,c){if(t&1&&(Ye(0),C(1,bd,13,3,"tr",23),Qe()),t&2){let e=h();s(),m("ngForOf",e.serverPacks)}}function Sd(t,c){if(t&1&&(o(0,"td",20)(1,"span")(2,"b"),d(3),a()()()),t&2){let e=h();s(3),A(e.totalServer)}}function wd(t,c){if(t&1){let e=x();o(0,"app-crashplan-nav",68),_("closeModalHandler",function(){u(e);let i=h();return g(i.close_Crashplan_Endpoint())}),a()}}var ya=(()=>{class t extends Ao{#t;#e;#i;constructor(e,n,i,r,p,l,v,S,w){let k=e.getToken();(!k||k.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=r,this.apiService=p,this.cdr=l,this.toastr=v,this.datePipe=S,this.licenseCheckService=w,this.isOverlayVisible=!1,this.parabluLogo="",this.crashplanLogo="",this.userType="",this.ransomewareSuit=!1,this.syncEnabled="false",this.isMspEnabled="false",this.support_mailId="support@parablu.com",this.stylePackDetails="none",this.statistics={},this.skuCode="",this.packModel="",this.totalStorage=0,this.totalUser=0,this.totalServer=0,this.storageSize="",this.minUserCount="-",this.customerId="-",this.referenceNumber="-",this.subscriptionStartDate=0,this.serverMgmt=!1,this.addons=[],this.userPacks=[],this.serverPacks=[],this.showCenterBrandLogo=!1,this.quick_startUrl="",this.administrator_Guide_EndpointUrl="",this.quick_start_serverUrl="",this.administrator_Guide_ServerUrl="",this.userGuideUrl="",this.showCrashplanEndpointLicenseModal=!1,this.commonAssetUrl="https://dns.parablu.com/pbassets/doc/",this.inclusionLicenses=[],this.exclusionLicenses=[],this.crashplan_Endpoint_Url="",this.#t=Te(Zi),this.#e=Te(Co),this.colorMode=this.#e.colorMode,this.#i=Te(xi),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Ui(()=>{let T=this.colorMode();return this.colorModes.find(I=>I.name===T)?.icon??"cilSun"}),this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.guideUrlSrc=[this.commonAssetUrl+"Quick_start.pdf",this.commonAssetUrl+"Administrator_Guide_Endpoint.pdf",this.commonAssetUrl+"Quick_start_server.pdf",this.commonAssetUrl+"Administrator_Guide_Server.pdf",this.commonAssetUrl+"User_Guide.pdf"],this.sidebarId="sidebar1",this.newMessages=[{id:0,from:"Jessica Williams",avatar:"7.jpg",status:"success",title:"Urgent: System Maintenance Tonight",time:"Just now",link:"apps/email/inbox/message",message:"Attention team, we'll be conducting critical system maintenance tonight from 10 PM to 2 AM. Plan accordingly..."},{id:1,from:"Richard Johnson",avatar:"6.jpg",status:"warning",title:"Project Update: Milestone Achieved",time:"5 minutes ago",link:"apps/email/inbox/message",message:"Kudos on hitting sales targets last quarter! Let's keep the momentum. New goals, new victories ahead..."},{id:2,from:"Angela Rodriguez",avatar:"5.jpg",status:"danger",title:"Social Media Campaign Launch",time:"1:52 PM",link:"apps/email/inbox/message",message:"Exciting news! Our new social media campaign goes live tomorrow. Brace yourselves for engagement..."},{id:3,from:"Jane Lewis",avatar:"4.jpg",status:"info",title:"Inventory Checkpoint",time:"4:03 AM",link:"apps/email/inbox/message",message:"Team, it's time for our monthly inventory check. Accurate counts ensure smooth operations. Let's nail it..."},{id:3,from:"Ryan Miller",avatar:"4.jpg",status:"info",title:"Customer Feedback Results",time:"3 days ago",link:"apps/email/inbox/message",message:"Our latest customer feedback is in. Let's analyze and discuss improvements for an even better service..."}],this.newNotifications=[{id:0,title:"New user registered",icon:"cilUserFollow",color:"success"},{id:1,title:"User deleted",icon:"cilUserUnfollow",color:"danger"},{id:2,title:"Sales report is ready",icon:"cilChartPie",color:"info"},{id:3,title:"New client",icon:"cilBasket",color:"primary"},{id:4,title:"Server overloaded",icon:"cilSpeedometer",color:"warning"}],this.newStatus=[{id:0,title:"CPU Usage",value:25,color:"info",details:"348 Processes. 1/4 Cores."},{id:1,title:"Memory Usage",value:70,color:"warning",details:"11444GB/16384MB"},{id:2,title:"SSD 1 Usage",value:90,color:"danger",details:"243GB/256GB"}],this.newTasks=[{id:0,title:"Upgrade NPM",value:0,color:"info"},{id:1,title:"ReactJS Version",value:25,color:"danger"},{id:2,title:"VueJS Version",value:50,color:"warning"},{id:3,title:"Add new layouts",value:75,color:"info"},{id:4,title:"Angular Version",value:100,color:"success"}],this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(ui(1),G(T=>T.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),rt(T=>["dark","light","auto"].includes(T)),U(T=>{this.colorMode.set(T)}),uo(this.#i)).subscribe(),this.userType=this.sharedService.getDataByKey("userType"),this.crashplan_Endpoint_Url=atob(this.sharedService.getDataByKey("cp_endpoint")||""),localStorage.getItem("theme-default")=='"dark"'?this.parabluLogo=this.imageSrc[4]:this.parabluLogo=this.imageSrc[0],this.crashplanLogo=this.imageSrc[1],this.quick_startUrl=this.guideUrlSrc[0],this.administrator_Guide_EndpointUrl=this.guideUrlSrc[1],this.quick_start_serverUrl=this.guideUrlSrc[2],this.administrator_Guide_ServerUrl=this.guideUrlSrc[3],this.userGuideUrl=this.guideUrlSrc[4]}ngOnInit(){return ge(this,null,function*(){this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"&&(this.showCenterBrandLogo=!0)})}setBrandLogo(){return ge(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}click_Crashplan_Endpoint(){this.showCrashplanEndpointLicenseModal=!this.crashplan_Endpoint_Url,this.cdr.detectChanges()}close_Crashplan_Endpoint(){this.showCrashplanEndpointLicenseModal=!1,this.cdr.detectChanges()}logout(){this.apiService.logout().subscribe(e=>{this.authService.clearToken(),localStorage.clear(),this.router.navigate(["logout"])},e=>{switch(e.status){case 500:break;case 503:break;default:break}})}currentUserProfile(){let e=this.sharedService.getDataByKey("userName");this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}activityHistory(){this.router.navigate(["activityHistory"])}unusualActivityHistory(){this.router.navigate(["unusualActivityHistory"])}endpointsDownload(){this.router.navigate(["endpointsDownload"])}licenseOptimizer(){this.router.navigate(["licenseOptimizer"])}navigateToDownloads(){this.router.navigate(["/downloads"])}miniclouds(){this.router.navigate(["sync/miniclouds"])}navigateTo(e){switch(e){case"quick":this.router.navigate(["sync/miniclouds"]);break;case"administrator":this.router.navigate(["sync/miniclouds"]);break;case"user":this.router.navigate(["sync/miniclouds"]);break;default:this.router.navigate(["sync/miniclouds"]);break}}updateStatistics(){this.apiService.overviewBackup().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.statistics=e.body.MSPCloudOverviewElement,e.body.MSPCloudOverviewElement?.packs&&e.body.MSPCloudOverviewElement.packs.length>0&&e.body.MSPCloudOverviewElement.packs.forEach((r,p)=>{if(r.subscriptionActive){this.skuCode=r.skuCode,this.packModel=r.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(r.storageSize),this.totalUser=Number(r.minUserCount),this.storageSize=r.storageSize.toString(),this.minUserCount=r.minUserCount.toString(),this.customerId=r.customerId,this.referenceNumber=r.referenceNumber;let l=new Date(r.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(r.subscriptionStartDate),r.addons&&r.addons.length>0&&(this.addons=r.addons),r.addons&&r.addons.length>0&&r.addons.forEach(S=>{S.subscriptionActive&&!S.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:S.skuCode,minUserCount:Number(S.minUserCount)||0,storageSize:Number(S.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(S.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(S.storageSize))});let v=0;r.addons&&r.addons.length>0&&r.addons.forEach(S=>{S.skuCode.startsWith("ADSER")&&S.subscriptionActive&&(this.serverPacks.push({skuCode:S.skuCode,minUserCount:Number(S.minUserCount)||0,storageSize:Number(S.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(S.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(S.storageSize))})}}),this.cdr.detectChanges()},e=>{switch(e.status){case 400:break;case 401:this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:break;case 503:break;default:break}})}packDetails(){this.stylePackDetails="block",this.updateStatistics()}closePackDetails(){this.stylePackDetails="none"}openOverlay(){this.isOverlayVisible=!0;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","2000");let n=document.querySelector(".overlay");n&&this.renderer.setStyle(n,"display","block")}closeOverlay(){this.isOverlayVisible=!1;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","1000")}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}applyTheme(){location.reload()}static{this.\u0275fac=function(n){return new(n||t)(b(q),b(ne),b(Ue),b(re),b(X),b(Be),b(we),b(Ge),b(je))}}static{this.\u0275cmp=N({type:t,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[ie([Ge,q,X]),se],decls:70,vars:26,consts:[["userDropdown",""],["themeDropdown",""],[1,"px-4",3,"fluid"],["cHeaderToggler","","class","btn","toggle","visible","style","margin-inline-start: -14px;","aria-label","Toggle sidebar navigation",3,"cSidebarToggle",4,"ngIf"],["class","col-lg-3","style","width: 30% !important;",4,"ngIf"],["style","max-width: 12%;cursor: pointer;",3,"routerLink",4,"ngIf"],[3,"close",4,"ngIf"],[1,"mx-0"],[4,"ngTemplateOutlet"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],[1,"text-nowrap","text-truncate"],[1,"bg-body-tertiary","text-center"],[2,"margin","0 0 0px"],["class","bg-body-tertiary text-center",4,"ngIf"],[1,"text-center"],["cTooltipPlacement","left",2,"font-size","12px","text-decoration","underline","cursor","pointer",3,"cTooltip"],["class","text-center",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-default",3,"click"],[3,"closeModalHandler",4,"ngIf"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"btn",2,"margin-inline-start","-14px",3,"cSidebarToggle"],["cIcon","","name","cilMenu","size","lg"],[1,"col-lg-3",2,"width","30% !important"],["aria-describedby","basic-addon2","name","search","aria-label","Search","cFormControl","","placeholder","Search",3,"click"],["cInputGroupText","","id","basic-addon2"],["cIcon","","name","cilMagnifyingGlass"],[2,"max-width","12%","cursor","pointer",3,"routerLink"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],[3,"close"],["variant","nav-item",3,"popperOptions"],["cDropdownToggle","","aria-label","Open user menu",1,"py-0","pe-0",3,"caret"],["shape","rounded-1","src","./assets/images/avatars/default.jpg","status","success","textColor","primary","alt","User avatar",3,"size"],["cDropdownMenu","",1,"pt-0","w-auto"],["cDropdownDivider",""],["cDropdownItem","",2,"cursor","pointer",3,"click"],["cIcon","","name","cilArrowThickBottom",1,"me-2"],["cIcon","","name","cilAccountLogout",1,"me-2"],["cIcon","","name","cilUser",1,"me-2"],["cIcon","","name","cilHistory",1,"me-2"],["cIcon","","name","cilEqualizer",1,"me-2"],["cIcon","","name","cilCloudDownload",1,"me-2"],["cIcon","","name","cilShareBoxed",1,"me-2"],["cIcon","","name","cilCloud",1,"me-2"],["cDropdownItem","","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownItem","","target","_blank","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownHeader","",1,"bg-body-secondary","text-body-secondary","fw-semibold","py-2",2,"padding","10px"],[1,"fa","fa-whatsapp"],["cDropdownItem","",2,"cursor","pointer",3,"href"],["cIcon","","name","cilSend",1,"me-2"],["class","endpoint-btn",3,"click",4,"ngIf"],["alignment","end","variant","nav-item"],["cDropdownToggle","","aria-label","Open theme picker",3,"caret"],["cIcon","","size","lg",3,"name"],["cDropdownMenu",""],["cDropdownItem","",1,"d-flex","align-items-center",3,"active","routerLink"],[1,"endpoint-btn",3,"click"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["cDropdownItem","",1,"d-flex","align-items-center",3,"click","active","routerLink"],["cIcon","","size","lg",1,"me-2",3,"name"],[3,"closeModalHandler"]],template:function(n,i){if(n&1){let r=x();Ye(0),o(1,"c-container",2),C(2,Fc,2,1,"button",3)(3,Vc,4,0,"c-input-group",4)(4,Bc,2,7,"c-sidebar-brand",5)(5,Lc,1,0,"app-search-overlay",6),o(6,"c-header-nav",7),C(7,Gc,1,0,"ng-container",8)(8,zc,1,0,"ng-container",8),a()(),Qe(),C(9,pd,36,26,"ng-template",null,0,ht)(11,vd,7,3,"ng-template",null,1,ht),o(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"h4",13),d(18,"Current Packs Subscribed"),a()(),o(19,"div",14)(20,"c-row")(21,"table",15)(22,"thead",16)(23,"tr")(24,"th",17),d(25,"Pack Name "),a(),o(26,"th",17)(27,"p",18),d(28,"Managed Data"),a(),o(29,"p",18),d(30,"(GB)"),a()(),o(31,"th",17),d(32,"Users"),a(),C(33,fd,2,0,"th",19),a()(),o(34,"tbody")(35,"tr")(36,"td",20)(37,"span")(38,"a",21),d(39),a(),y(40,"br"),o(41,"span"),d(42,"(Base Pack)"),a()()(),o(43,"td",20)(44,"span"),d(45),a()(),o(46,"td",20)(47,"span"),d(48),a()(),C(49,_d,3,0,"td",22),a(),C(50,yd,13,3,"tr",23)(51,Cd,2,1,"ng-container",24),o(52,"tr",20)(53,"td",20)(54,"span")(55,"b"),d(56,"Total"),a()()(),o(57,"td",20)(58,"span")(59,"b"),d(60),a()()(),o(61,"td",20)(62,"span")(63,"b"),d(64),a()()(),C(65,Sd,4,1,"td",22),a()()()()(),o(66,"div",25)(67,"button",26),_("click",function(){return u(r),g(i.closePackDetails())}),d(68,"Close"),a()()()()(),C(69,wd,1,0,"app-crashplan-nav",27)}if(n&2){let r=te(10),p=te(12);s(),m("fluid",!0),s(),m("ngIf",!i.showCenterBrandLogo),s(),m("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",i.showCenterBrandLogo),s(),m("ngIf",i.isOverlayVisible),s(2),m("ngTemplateOutlet",p),s(),m("ngTemplateOutlet",r),s(5),m("ngStyle",W(24,Pc,i.stylePackDetails)),s(8),m("hover",!0)("responsive",!0)("striped",!0),s(12),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(5),Ke("cTooltip","(Subscribed On : ",i.getFormattedDate(i.subscriptionStartDate)," )"),s(),M(" ",i.skuCode,""),s(6),A(i.storageSize),s(3),A(i.minUserCount),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(),m("ngForOf",i.userPacks),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(9),A(i.totalStorage),s(4),A(i.totalUser),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(4),m("ngIf",i.showCrashplanEndpointLicenseModal)}},dependencies:[Tt,ua,Uo,Mt,Et,so,Ro,_t,Fi,ko,xo,wt,wo,Io,So,xt,It,kt,fa,me,ut,pe,Le,be,Se,Pt,Dt],styles:[".endpoint-btn[_ngcontent-%COMP%]{background-color:#f2f9fc!important;border-radius:5px;padding:0 1em;font-weight:700;color:#062d4d!important;border-color:#062d4d}.endpoint-btn[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}"]})}}return t})();var xd=4,kd=.001,Id=1e-7,Td=10,et=11,Ht=1/(et-1),Md=typeof Float32Array=="function";function ba(t,c){return 1-3*c+3*t}function Ca(t,c){return 3*c-6*t}function Sa(t){return 3*t}function jt(t,c,e){return((ba(c,e)*t+Ca(c,e))*t+Sa(c))*t}function wa(t,c,e){return 3*ba(c,e)*t*t+2*Ca(c,e)*t+Sa(c)}function Ed(t,c,e,n,i){let r,p,l=0;do p=c+(e-c)/2,r=jt(p,n,i)-t,r>0?e=p:c=p;while(Math.abs(r)>Id&&++l<Td);return p}function Dd(t,c,e,n){for(let i=0;i<xd;++i){let r=wa(c,e,n);if(r===0)return c;let p=jt(c,e,n)-t;c-=p/r}return c}function Pd(t){return t}function Od(t,c,e,n){if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===c&&e===n)return Pd;let i=Md?new Float32Array(et):new Array(et);for(let p=0;p<et;++p)i[p]=jt(p*Ht,t,e);function r(p){let l=0,v=1,S=et-1;for(;v!==S&&i[v]<=p;++v)l+=Ht;--v;let w=(p-i[v])/(i[v+1]-i[v]),k=l+w*Ht,T=wa(k,t,e);return T>=kd?Dd(p,k,t,e):T===0?k:Ed(p,l,l+Ht,t,e)}return function(l){return l===0?0:l===1?1:jt(r(l),c,n)}}var Ad=new Ae("SMOOTH_SCROLL_OPTIONS"),xa=(()=>{class t{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(e,n,i){this._document=e,this._platform=n,this._onGoingScrolls=new Map,this._defaultOptions=L({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},i)}_scrollElement(e,n,i){e.scrollLeft=n,e.scrollTop=i}_getElement(e,n){return typeof e=="string"?(n||this._document).querySelector(e):go(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new ve).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return fe(H(e,"wheel",{passive:!0,capture:!0}),H(e,"touchmove",{passive:!0,capture:!0}),n).pipe(hi(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new Oe(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let r=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*r,e.currentY=e.startY+(e.y-e.startY)*r,this._scrollElement(e.scrollable,e.currentX,e.currentY),nt.schedule(()=>n.next(e))})}_applyScrollToOptions(e,n){if(!n.duration)return this._scrollElement(e,n.left,n.top),Promise.resolve();let i=this._initSmoothScroll(e),r={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:Od(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(p=>{Ie(null).pipe(gi(()=>this._step(r).pipe(_i(l=>this._isFinished(l,i,p)))),oe(this._interrupted(e,i)),vi(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(Gi(this._platform)){let i=this._getElement(e),r=getComputedStyle(i).direction==="rtl",p=St(),l=he(L(L({},this._defaultOptions),n),{left:n.left==null?r?n.end:n.start:n.left,right:n.right==null?r?n.start:n.end:n.right});return l.bottom!=null&&(l.top=i.scrollHeight-i.clientHeight-l.bottom),r&&p!==0?(l.left!=null&&(l.right=i.scrollWidth-i.clientWidth-l.left),p===2?l.left=l.right:p===1&&(l.left=l.right?-l.right:l.right)):l.right!=null&&(l.left=i.scrollWidth-i.clientWidth-l.right),this._applyScrollToOptions(i,l)}return Promise.resolve()}scrollToElement(e,n,i={}){let r=this._getElement(e),p=this._getElement(n,r),l=he(L({},i),{left:p.offsetLeft+(i.left||0),top:p.offsetTop+(i.top||0)});return p?this.scrollTo(r,l):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(j(Z),j(Ii),j(Ad,8))}}static{this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ud=["scrollbarY"],Nd=["scrollbarX"],Fd=["*"];function Vd(t,c){if(t&1&&y(0,"scrollbar-x",null,0),t&2){let e=h(2);Ee("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function Bd(t,c){if(t&1&&y(0,"scrollbar-y",null,1),t&2){let e=h(2);Ee("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Ld(t,c){if(t&1&&(Ye(0),C(1,Vd,2,2,"scrollbar-x",5)(2,Bd,2,2,"scrollbar-y",5),Qe()),t&2){let e=h();s(),m("ngIf",e.state.horizontalUsed),s(),m("ngIf",e.state.verticalUsed)}}var Gd=(()=>{class t{constructor(e){this.el=e}set ngAttr(e){for(let[n,i]of Object.entries(e))this.el.nativeElement.setAttribute(n,i)}static{this.\u0275fac=function(n){return new(n||t)(b(J))}}static{this.\u0275dir=K({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Ma(t){return U(()=>{t.onselectstart=()=>!1})}function Ea(t){return U(()=>{t.onselectstart=null})}function ke(){return U(t=>t.stopPropagation())}function ei(t,c){return t.clientX>=c.left&&t.clientX<=c.left+c.width&&t.clientY>=c.top&&t.clientY<=c.top+c.height}var ti=(()=>{class t{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(e){this.viewPort=e,this.nativeElement=e.nativeElement}activatePointerEvents(e,n){this.hovered=new Oe(i=>{let r=H(this.nativeElement,"mousemove",{passive:!0}),p=e?r:r.pipe(ke()),l=H(this.nativeElement,"mouseleave",{passive:!0}).pipe(G(()=>!1));fe(p,l).pipe(U(v=>i.next(v)),oe(n)).subscribe()}),this.clicked=new Oe(i=>{let r=H(this.nativeElement,"mousedown",{passive:!0}).pipe(U(l=>i.next(l))),p=H(this.nativeElement,"mouseup",{passive:!0}).pipe(U(()=>i.next(!1)));r.pipe(We(()=>p),oe(n)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(e){this.nativeElement.className+=` ng-native-scrollbar-hider ng-scroll-viewport ${e}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(e){this.nativeElement.scrollTop=e}scrollXTo(e){this.nativeElement.scrollLeft=e}static{this.\u0275fac=function(n){return new(n||t)(b(J))}}static{this.\u0275dir=K({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),le=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=K({type:t,standalone:!1})}}return t})(),ri=(()=>{class t{get clicked(){let e=H(this.trackElement,"mousedown",{passive:!0}).pipe(ke(),Ma(this.document)),n=H(this.document,"mouseup",{passive:!0}).pipe(ke(),Ea(this.document),We(()=>ci));return fe(e,n)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(e,n,i){this.cmp=e,this.trackElement=n,this.document=i}onTrackClicked(e,n,i){return Ie(e).pipe(G(r=>r[this.pageProperty]),G(r=>(r-this.offset-n/2)/this.size*i),U(r=>{this.cmp.scrollTo(he(L({},this.mapToScrollToOption(r)),{duration:Qt(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(HTMLElement),b(Document))}}static{this.\u0275dir=K({type:t,standalone:!1})}}return t})(),ii=(()=>{class t extends ri{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{left:e}}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(J),b(Z))}}static{this.\u0275dir=K({type:t,selectors:[["","scrollbarTrackX",""]],features:[se]})}}return t})(),ni=(()=>{class t extends ri{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{top:e}}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(J),b(Z))}}static{this.\u0275dir=K({type:t,selectors:[["","scrollbarTrackY",""]],features:[se]})}}return t})(),Da=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return H(this.thumbElement,"mousedown",{passive:!0}).pipe(ke())}constructor(e,n,i,r){this.cmp=e,this.track=n,this.thumbElement=i,this.document=r,this._dragging=new ve,this.dragging=this._dragging.pipe(ot())}update(){let e=zd(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=Hd(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);nt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,r=Ie(e).pipe(Ma(this.document),U(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),p=H(this.document,"mousemove",{capture:!0,passive:!0}).pipe(ke()),l=H(this.document,"mouseup",{capture:!0}).pipe(ke(),Ea(this.document),U(()=>this.setDragging(!1)));return r.pipe(G(v=>v[this.pageProperty]),G(v=>v-this.dragStartOffset),di(v=>p.pipe(G(S=>S[this.clientProperty]),G(S=>S-this.track.offset),G(S=>i*(S-v)/n),G(S=>this.handleDrag(S,i)),U(S=>this.scrollTo(S)),oe(l))))}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(ri),b(HTMLElement),b(Document))}}static{this.\u0275dir=K({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function zd(t,c,e){let i=t/c*t;return Math.max(~~i,e)}function Hd(t,c,e){return t*e/c}var ka=(()=>{class t extends Da{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(e,n,i,r,p){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r,this.dir=p}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(ii),b(J),b(Z),b(Kt))}}static{this.\u0275dir=K({type:t,selectors:[["","scrollbarThumbX",""]],features:[se]})}}return t})(),Ia=(()=>{class t extends Da{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(e,n,i,r){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`}handleDrag(e){return e}handleDirection(e){return e}setDragging(e){this.cmp.setDragging({verticalDragging:e})}scrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=function(n){return new(n||t)(b(le),b(ni),b(J),b(Z))}}static{this.\u0275dir=K({type:t,selectors:[["","scrollbarThumbY",""]],features:[se]})}}return t})(),Pa=(()=>{class t{constructor(e,n,i,r,p){this.el=e,this.cmp=n,this.platform=i,this.document=r,this.zone=p,this.destroyed=new ve}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new ve,this.viewportThumbClicked=new ve,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(G(r=>r?ei(r,this.el.getBoundingClientRect()):!1),ot(),U(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe(U(r=>{r?ei(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):ei(r,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(r)):this.cmp.setClicked(!1)}),oe(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),fe(i.pipe(U(r=>this.setHovered(r))),e.pipe(We(r=>this.thumb.dragged(r))),n.pipe(We(r=>this.track.onTrackClicked(r,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=H(this.el,"mouseenter",{passive:!0}).pipe(ke(),G(()=>!0)),n=H(this.el,"mouseleave",{passive:!0}).pipe(ke(),G(()=>!1));return fe(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(oe(this.destroyed)).subscribe(),fe(this.cmp.scrolled,this.cmp.updated).pipe(U(()=>this.thumb?.update()),oe(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}static{this.\u0275fac=function(n){return new(n||t)(b(HTMLElement),b(le),b(ze),b(Document),b(ce))}}static{this.\u0275dir=K({type:t,standalone:!1})}}return t})(),jd=(()=>{class t extends Pa{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(b(J),b(le),b(ze),b(Z),b(ce))}}static{this.\u0275cmp=N({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(B(ni,7),B(Ia,7)),n&2){let r;F(r=V())&&(i.track=r.first),F(r=V())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&De("scrollbar-control",!0)},features:[se],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(o(0,"div",0),y(1,"div",1),a()),n&2&&(Je("ng-scrollbar-track ",i.cmp.trackClass,""),s(),Je("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[ni,Ia],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%}  .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:unset;right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0})}}return t})(),Wd=(()=>{class t extends Pa{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(b(J),b(le),b(ze),b(Z),b(ce))}}static{this.\u0275cmp=N({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(B(ii,7),B(ka,7)),n&2){let r;F(r=V())&&(i.track=r.first),F(r=V())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&De("scrollbar-control",!0)},features:[se],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(o(0,"div",0),y(1,"div",1),a()),n&2&&(Je("ng-scrollbar-track ",i.cmp.trackClass,""),s(),Je("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[ii,ka],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%}  .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset}  .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0})}}return t})(),qd=new Ae("NG_SCROLLBAR_OPTIONS"),Ta={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1},Oa=(()=>{class t{constructor(e){this.globalOptions=e?L(L({},Ta),e):Ta,this.rtlScrollAxisType=St()}static{this.\u0275fac=function(n){return new(n||t)(j(qd,8))}}static{this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Jd=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new li(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&H(this.document.defaultView,"resize",{passive:!0}).pipe(Wt(this.manager.globalOptions.windowResizeDebounce),G(()=>this.getNativeScrollbarSize()),ot(),U(r=>this._scrollbarSize.next(r))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n}static{this.\u0275fac=function(n){return new(n||t)(j(Z),j(Oa),j(ze))}}static{this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yd=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=si.EMPTY,this._subscriber=i.scrollbarSize.subscribe(r=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${r}px`,Ti.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(J),b(Ue),b(Jd))}}static{this.\u0275dir=K({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),Qd=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ce(e),this._disabled?this._unsubscribe():this._subscribe()}constructor(e,n,i){if(this.zone=e,this.platform=n,this.scrollbar=i,this._disabled=!1,this._currentSubscription=null,this.event=new Me,!i)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){let e=new Oe(n=>{this._resizeObserver=new ResizeObserver(i=>n.next(i)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?e.pipe(Wt(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(ce),b(ze),b(le))}}static{this.\u0275dir=K({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),Aa=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ce(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=Ce(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=Ce(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=Ce(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=Ce(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=Ce(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,r,p,l){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=r,this.smoothScroll=p,this.manager=l,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Me,this.state={},this.destroyed=new ve}updateState(){let e=!1,n=!1,i=!1,r=!1;(this.track==="all"||this.track==="vertical")&&(i=this.viewport.scrollHeight>this.viewport.clientHeight,e=this.visibility==="always"||i),(this.track==="all"||this.track==="horizontal")&&(r=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||r),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:i,isHorizontallyScrollable:r})}setState(e){this.state=L(L({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(U(i=>n=i),G(i=>i.target[e]),fi(),rt(([i,r])=>i!==r),G(()=>n))}setHovered(e){this.zone.run(()=>this.setState(L({},e)))}setDragging(e){this.zone.run(()=>this.setState(L({},e)))}setClicked(e){this.zone.run(()=>this.setState({scrollbarClicked:e}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let e=H(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(mi(this.scrollAuditTime)):e,this.scrolled=e.pipe(oe(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(e){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe(U(()=>this.update()),oe(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(e){return this.smoothScroll.scrollTo(this.viewport.nativeElement,e)}scrollToElement(e,n){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,e,n)}updateHeight(){this.appearance==="standard"&&this.scrollbarX?this.nativeElement.style.height=`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:this.nativeElement.style.height=`${this.viewport.contentHeight}px`}updateWidth(){this.appearance==="standard"&&this.scrollbarY?this.nativeElement.style.width=`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:this.nativeElement.style.width=`${this.viewport.contentWidth}px`}static{this.\u0275fac=function(n){return new(n||t)(b(J),b(ce),b(Be),b(Kt),b(xa),b(Oa))}}static{this.\u0275cmp=N({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,r){if(n&1&&Oi(r,ti,7),n&2){let p;F(p=V())&&(i.customViewPort=p.first)}},viewQuery:function(n,i){if(n&1&&(B(Ud,5,J),B(Nd,5,J),B(ti,7)),n&2){let r;F(r=V())&&(i.scrollbarY=r.first),F(r=V())&&(i.scrollbarX=r.first),F(r=V())&&(i.defaultViewPort=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&De("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[ie([{provide:le,useExisting:t}]),Si],ngContentSelectors:Fd,decls:6,vars:4,consts:[["scrollbarX",""],["scrollbarY",""],[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"resizeSensor","sensorDebounce","sensorDisabled"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"]],template:function(n,i){n&1&&(Di(),o(0,"div",2)(1,"div",3),_("resizeSensor",function(){return i.update()}),o(2,"div",4)(3,"div"),Pi(4),a()()(),C(5,Ld,3,2,"ng-container",5),a()),n&2&&(m("ngAttr",i.state),s(),m("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),s(4),m("ngIf",!i.disabled))},dependencies:[pe,Gd,Qd,ti,Yd,Wd,jd],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0})}}return t})();var oi=[{name:"Dashboard",url:"/dashboard",iconComponent:{name:"cilSpeedometer"},visible:!0},{name:"My BluVault",url:"/bluvault",iconComponent:{name:"cilLayers"},visible:!0},{name:"Settings",url:"/settings",iconComponent:{name:"cilSettings"},visible:!0},{name:"Manage assets",url:"/manageAssets",iconComponent:{name:"cilSitemap"},visible:!0},{name:"Policy Management",url:"/pms",iconComponent:{name:"cilDescription"},visible:!0},{name:"User Migration",url:"/userMigration",iconComponent:{name:"cilTransfer"},visible:!0},{name:"Users",url:"/users",iconComponent:{name:"cilPeople"},visible:!0},{name:"Unusual Activity Dashboard",url:"/manageUnusualActivities",iconComponent:{name:"cilShieldAlt"},visible:!0},{name:"Support",url:"/support",iconComponent:{name:"cilHandshake"},visible:!0},{name:"Downloads",url:"/downloads",iconComponent:{name:"cilCloudDownload"},visible:!0}];var Ra=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=dt({type:t});static \u0275inj=at({imports:[Xo]})}return t})();function Kd(t,c){t&1&&(o(0,"div",0),y(1,"div",1),a())}var Ua=(()=>{class t{constructor(e,n){this.loadingService=e,this.router=n,this.detectRouteTransitions=!1,this.loading$=this.loadingService.loading$}ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe(U(e=>{e instanceof Ki?this.loadingService.loadingOn():e instanceof $i&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(gt),b(ne))}}static{this.\u0275cmp=N({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(C(0,Kd,2,0,"div",0),de(1,"async")),n&2&&Pe(Ri(1,1,i.loading$)?0:-1)},dependencies:[Ra,Vi],styles:['.spinner-container[_ngcontent-%COMP%]{position:fixed;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#00000052;z-index:2000}.spinner[_ngcontent-%COMP%]{width:60px;height:56px;display:grid;border-radius:50%;-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/4.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 4.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(12)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var Na=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],$d=()=>["/mspDashboard"],Zd=()=>["/dashboard"],Xd=()=>["/bluvault"];function ep(t,c){t&1&&(o(0,"c-sidebar-footer",15),y(1,"button",16),a())}function tp(t,c){if(t&1){let e=x();o(0,"c-sidebar",9,0)(2,"c-sidebar-header",10)(3,"c-sidebar-brand",11)(4,"img",12),_("error",function(i){u(e);let r=h();return g(r.onImageError(i))}),a()()(),o(5,"ng-scrollbar",13,1),_("updated",function(){u(e);let i=te(6),r=h();return g(r.onScrollbarUpdate(i.state))}),y(7,"c-sidebar-nav",14,2),a(),C(9,ep,2,0,"c-sidebar-footer",15),a()}if(t&2){let e=te(1),n=h();s(3),m("routerLink",n.isMspEnabled&&R(4,Na).includes(n.userType)?R(5,$d):R(6,Na).includes(n.userType)?R(7,Zd):R(8,Xd)),s(),m("src",n.parabluLogo,Q),s(3),m("navItems",n.navItems),s(2),Pe(e.narrow?-1:9)}}var Fa=(()=>{class t{constructor(e,n){this.sharedService=e,this.licenseCheckService=n,this.navItems=oi,this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.userType=this.sharedService.getDataByKey("userType");let i=localStorage.getItem("theme-default"),r=i||localStorage.setItem("theme-default",'"light"');this.parabluLogo=r==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return ge(this,null,function*(){this.navItems=yield this.getFilteredNavItems()})}onScrollbarUpdate(e){}getFilteredNavItems(){return ge(this,null,function*(){return this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"?this.showSideBar=!1:this.showSideBar=!0,oi.map(e=>(this.inclusionLicenses.includes("msp_environment_enabled")&&(this.sharedService.getDataByKey("userType")=="admin"||this.sharedService.getDataByKey("userType")=="readOnlyAdmin")?(e.name==="My BluVault"||e.name==="Downloads"||e.name=="Policy Management"||e.name=="Unusual Activity Dashboard"||e.name=="User Migration")&&(e.visible=!1):e.name==="My BluVault"||e.name==="Downloads"?e.visible=!0:e.name=="Unusual Activity Dashboard"?this.inclusionLicenses.includes("rwdetectionenabled")&&(this.userType=="admin"||this.userType=="superAdmin")?e.visible=this.shouldShowSettings():e.visible=!1:e.name=="Settings"&&(this.sharedService.getDataByKey("userType")=="delegatedAdmin"||this.sharedService.getDataByKey("userType")=="readOnlyAdmin")||e.name=="User Migration"&&(this.sharedService.getDataByKey("userType")=="readOnlyAdmin"||this.inclusionLicenses.includes("gmail_backup_enabled")||this.inclusionLicenses.includes("gdrive_backup_enabled"))?e.visible=!1:e.visible=this.shouldShowSettings(),this.inclusionLicenses.includes("issmblicenseenabled")&&e.name=="User Migration"&&(e.visible=!1),e.name=="User Migration"&&!(this.userType=="admin"||this.userType=="superAdmin")&&(e.visible=!1),e)).filter(e=>e.visible)})}shouldShowSettings(){return this.sharedService.getDataByKey("userType")!="user"}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}static{this.\u0275fac=function(n){return new(n||t)(b(re),b(je))}}static{this.\u0275cmp=N({type:t,selectors:[["app-dashboard"]],features:[ie([])],decls:8,vars:3,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],["class","d-print-none sidebar sidebar-fixed border-end","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll"],[1,"body","flex-grow-1"],["breakpoint","lg",1,"h-auto","px-4"],[3,"detectRouteTransitions"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],["pointerEventsMethod","scrollbar","visibility","hover",1,"overflow",3,"updated"],["dropdownMode","close","compact","",3,"navItems"],["cSidebarToggle","sidebar1","toggle","unfoldable",1,"border-top","d-none","d-lg-flex",2,"cursor","pointer"],["cSidebarToggler","","aria-label","Toggle sidebar fold"]],template:function(n,i){n&1&&(C(0,tp,10,9,"c-sidebar",3),o(1,"div",4),y(2,"app-default-header",5),o(3,"div",6)(4,"c-container",7),y(5,"router-outlet"),a()(),y(6,"loading-indicator",8)(7,"app-default-footer"),a()),n&2&&(m("ngIf",i.showSideBar),s(2),m("cShadowOnScroll","sm"),s(4),m("detectRouteTransitions",!0))},dependencies:[Bo,Go,Mt,_t,Aa,Ho,zo,Et,Lo,ya,fo,Tt,ft,me,pe,ha,Ua],styles:["[_nghost-%COMP%]   .ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-padding: 1px;--scrollbar-size: 5px;--scrollbar-thumb-color: var(--cui-gray-500, #999);--scrollbar-thumb-hover-color: var(--cui-gray-400, #999);--scrollbar-hover-size: calc(var(--scrollbar-size) * 1.5)}"]})}}return t})();var Va=(()=>{class t{constructor(e){this.toastr=e}showOnSuccess(){this.toastr.success("Successfully Added....","Success")}static{this.\u0275fac=function(n){return new(n||t)(b(we))}}static{this.\u0275cmp=N({type:t,selectors:[["app-toastalert"]],decls:4,vars:0,consts:[["cButton","","color","success",1,"m-1",3,"click"]],template:function(n,i){n&1&&(o(0,"p"),d(1,"toastalert works!"),a(),o(2,"button",0),_("click",function(){return i.showOnSuccess()}),d(3," Add toast "),a())},encapsulation:2})}}return t})();var f=(()=>{class t{constructor(e,n,i){this.router=e,this.sharedService=n,this.authService=i}canActivate(e,n){let i=this.sharedService.getDataByKey("userType"),r=e.data?.roles;if(r&&i&&r.includes(i))return!0;let p=this.authService.getToken();return!p||p.trim()===""?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1}static{this.\u0275fac=function(n){return new(n||t)(j(ne),j(re),j(q))}}static{this.\u0275prov=ae({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ip=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],np=[import("./chunk-EZ6576UK.js"),import("./chunk-GURPZP5E.js"),import("./chunk-ZRJEIMDV.js"),import("./chunk-KDFUK4NP.js"),import("./chunk-OAXGBRPF.js"),import("./chunk-GMCRDYVR.js")],Ba=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Fa,children:[{path:"dashboard",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3NMBRRTM.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[f],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-EFUE5FGQ.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[f],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-C7PQHB3T.js").then(t=>t.routes)},{path:"bluvault",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-MDKT5B2O.js").then(t=>t.routes)},{path:"backup/files",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-SGZE65H3.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-SVCC6OZL.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XSN6ECIM.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XSN6ECIM.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5PUXORKA.js").then(t=>t.routes)},{path:"pms",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-L6EOCRGR.js").then(t=>t.routes)},{path:"pms/policy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4G35JZI6.js").then(t=>t.routes)},{path:"pms/policy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YRF2Y64L.js").then(t=>t.routes)},{path:"pms/policy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NYCIUMZH.js").then(t=>t.routes)},{path:"pms/policy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HUZXKFIG.js").then(t=>t.routes)},{path:"pms/policy/singlePolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Q4FWXR5G.js").then(t=>t.routes)},{path:"pms/policy/bulkPolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2ALKQL7N.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NPXTQ6K3.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MY5MLO7W.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OKQZSYRQ.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-TL6YDVUE.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/singlePolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XJN6W5XO.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/bulkPolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-AT2GTZP4.js").then(t=>t.routes)},{path:"pms/exchangePolicy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4N4BW7OB.js").then(t=>t.routes)},{path:"pms/exchangePolicy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JJA5F3I3.js").then(t=>t.routes)},{path:"pms/exchangePolicy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3HD2BCEI.js").then(t=>t.routes)},{path:"pms/exchangePolicy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KS5VWEP3.js").then(t=>t.routes)},{path:"pms/exchangePolicy/singlePolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2ZJNHLQB.js").then(t=>t.routes)},{path:"pms/exchangePolicy/bulkPolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QMOTUDXO.js").then(t=>t.routes)},{path:"pms/sharepointPolicy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-U45TZV7P.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-62LFIH2R.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IQVELXFA.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VMY72RAU.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/policyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UBRCEZOW.js").then(t=>t.routes)},{path:"pms/gmailPolicy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4IPMCFZ2.js").then(t=>t.routes)},{path:"pms/gmailPolicy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HRQ7YB2G.js").then(t=>t.routes)},{path:"pms/gmailPolicy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6RENN6IY.js").then(t=>t.routes)},{path:"pms/gmailPolicy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-65Y52YMA.js").then(t=>t.routes)},{path:"pms/gmailPolicy/singlePolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4IDPIT4I.js").then(t=>t.routes)},{path:"pms/gmailPolicy/bulkPolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NYQMO5RL.js").then(t=>t.routes)},{path:"pms/syncPolicy",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OPGPB2NF.js").then(t=>t.routes)},{path:"pms/syncPolicy/create",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NE3ARCPV.js").then(t=>t.routes)},{path:"pms/syncPolicy/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6HWORW73.js").then(t=>t.routes)},{path:"pms/syncPolicy/clone",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-GUEWZ2K5.js").then(t=>t.routes)},{path:"pms/syncPolicy/singlePolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4PRYXOQC.js").then(t=>t.routes)},{path:"pms/syncPolicy/bulkPolicyMapping",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XLP7FKM2.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LPM42ILH.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MNUDYBB2.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-D62LCAMX.js").then(t=>t.routes)},...ip.map((t,c)=>({path:`pms/:productKey${t}`,canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>np[c].then(e=>e.routes)})),{path:"settings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-CQ4O5DBB.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-H5LIXYOS.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ITIYRKCY.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-P3IUSLXU.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KFV72DMQ.js").then(t=>t.routes)},{path:"azure",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-P3IUSLXU.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KWO6JBD6.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-WSVKOVEJ.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-UZX4KUX4.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-A6PPBVWY.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-ZQTVG2KC.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-VOMPPETP.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KPMY6NBM.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KPMY6NBM.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-6BPIPL7Q.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-BGNYQMWY.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HW6MHAIH.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-WNHFH4Z6.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-ZQTVG2KC.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-F7J6TNBY.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LOEHOQ2A.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YZEZT7PO.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-C475JWDE.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-UZX4KUX4.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-A6PPBVWY.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-OTYUIGJP.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-OI5BXONV.js").then(t=>t.routes)},{path:"userMigration",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O36D6YB7.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-6WEG52X4.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-F7DDNH5P.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZVMNFFAQ.js").then(t=>t.routes)},{path:"users",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YNMYRH6J.js").then(t=>t.routes)},{path:"users/create",canActivate:[f],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ENLRYNIO.js").then(t=>t.routes)},{path:"users/edit",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-XGENRLG5.js").then(t=>t.routes)},{path:"users/profile",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-ZNXQSIAU.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-MAXQL356.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-MAXQL356.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-ZUMUFRGV.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-B4CMMFWV.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-HVDMTXNA.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-QMQM725I.js").then(t=>t.routes)},{path:"support",canActivate:[f],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LGKYMEXR.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-OVI5AWXD.js").then(t=>t.routes)},{path:"downloads",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-VZVIBWHJ.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MPYQEXEO.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-K6K3JIHO.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-F3RCQKM3.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VRP5NESW.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JFWBON4J.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OSVYOSY4.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-K5MEDPH3.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PPMA7CCL.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-74ML2HIQ.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DKYL4KVB.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-B2QCULSO.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[f],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-AD2Q4Y3D.js").then(t=>t.routes)},{path:"sync/files",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NMPOV2J3.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[f],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VN734YLT.js").then(t=>t.routes)},{path:"theme",loadChildren:()=>import("./chunk-EJKCRZ2Q.js").then(t=>t.routes)},{path:"base",loadChildren:()=>import("./chunk-MJMFC3MT.js").then(t=>t.routes)},{path:"buttons",loadChildren:()=>import("./chunk-WTINV6KT.js").then(t=>t.routes)},{path:"forms",loadChildren:()=>import("./chunk-KLV47B4S.js").then(t=>t.routes)},{path:"icons",loadChildren:()=>import("./chunk-UF56SWQW.js").then(t=>t.routes)},{path:"notifications",loadChildren:()=>import("./chunk-476X7BMI.js").then(t=>t.routes)},{path:"widgets",loadChildren:()=>import("./chunk-U23WNNJX.js").then(t=>t.routes)},{path:"charts",loadChildren:()=>import("./chunk-E26PSDBA.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-XRBMS553.js").then(t=>t.routes)}]},{path:"pms/policy/create",loadComponent:()=>import("./chunk-NDZ4OYBN.js").then(t=>t.CreateComponent),data:{title:"Policy Create"}},{path:"toast",component:Va,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-XUHHBFFP.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-BTXDLXNK.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-R6EC4RWG.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-CFXJKP3T.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-CFXJKP3T.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-CFXJKP3T.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-VKN24LQH.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-CFXJKP3T.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-CFXJKP3T.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"fileArchivedView",loadComponent:()=>import("./chunk-IZNPYOT3.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-OF36T2ZG.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-6SUHH6A2.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-T4KRL4AQ.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}},{path:"register",loadComponent:()=>import("./chunk-J3MHYGXD.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[f],loadComponent:()=>import("./chunk-735QK5WV.js").then(t=>t.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[f],loadComponent:()=>import("./chunk-VXAB5FHK.js").then(t=>t.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:":productKey/PolicyView",canActivate:[f],loadComponent:()=>import("./chunk-FJRDZFIJ.js").then(t=>t.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[f],loadComponent:()=>import("./chunk-65NIAMGM.js").then(t=>t.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[f],loadComponent:()=>import("./chunk-YBAKH5I3.js").then(t=>t.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[f],loadComponent:()=>import("./chunk-EA6LEUI7.js").then(t=>t.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var rp="@",op=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Te(wi);loadingSchedulerFn=Te(ap,{optional:!0});_engine;constructor(e,n,i,r,p){this.doc=e,this.delegate=n,this.zone=i,this.animationType=r,this.moduleImpl=p}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-DOJGWSV4.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new yi(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc);let p=new r(this.delegate,this._engine,this.zone);return this.delegate=p,p})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let r=new ai(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(p=>{let l=p.createRenderer(e,n);r.use(l),this.scheduler??=this.injector.get(ki,null,{optional:!0}),this.scheduler?.notify(11)}).catch(p=>{r.use(i)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(n){Mi()};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),ai=class{delegate;replay=[];\u0275type=1;constructor(c){this.delegate=c}use(c){if(this.delegate=c,this.replay!==null){for(let e of this.replay)e(c);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(c,e){return this.delegate.createElement(c,e)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}get destroyNode(){return this.delegate.destroyNode}appendChild(c,e){this.delegate.appendChild(c,e)}insertBefore(c,e,n,i){this.delegate.insertBefore(c,e,n,i)}removeChild(c,e,n){this.delegate.removeChild(c,e,n)}selectRootElement(c,e){return this.delegate.selectRootElement(c,e)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,e,n,i){this.delegate.setAttribute(c,e,n,i)}removeAttribute(c,e,n){this.delegate.removeAttribute(c,e,n)}addClass(c,e){this.delegate.addClass(c,e)}removeClass(c,e){this.delegate.removeClass(c,e)}setStyle(c,e,n,i){this.delegate.setStyle(c,e,n,i)}removeStyle(c,e,n){this.delegate.removeStyle(c,e,n)}setProperty(c,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(c,e,n)),this.delegate.setProperty(c,e,n)}setValue(c,e){this.delegate.setValue(c,e)}listen(c,e,n,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(c,e,n,i)),this.delegate.listen(c,e,n,i)}shouldReplay(c){return this.replay!==null&&c.startsWith(rp)}},ap=new Ae("");function tt(t="animations"){return lt("NgAsyncAnimations"),bi([{provide:ct,useFactory:(c,e,n)=>new op(c,e,n,t),deps:[Z,vt,ce]},{provide:qe,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var La={providers:[ji(),Xi(Ba,nn({onSameUrlNavigation:"reload"}),en({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),tn(),rn()),Ci(jo,To),yt,pa(),tt("noop"),ra({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),tt(),He]};function sp(t){return()=>t.loadConfig().toPromise().then(c=>{t.setConfig(c)})}qi(ca,{providers:[...La.providers,gt,{provide:Ei,useFactory:sp,deps:[He],multi:!0},{provide:Hi,useClass:Wi,multi:!0},tt()]}).catch(t=>console.error(t));export{sp as loadConfig};
