import{$ as Jr,$a as Js,A as br,Aa as bs,B as Ar,Ba as As,C as Or,Ca as Os,D as wr,Da as ws,E as Rr,Ea as Rs,F as Mr,Fa as Ms,G as Pr,Ga as Ps,H as Nr,Ha as Ns,I as Dr,Ia as Ds,J as Ir,Ja as Is,K as Lr,Ka as Ls,L as Fr,La as Fs,M as kr,Ma as ks,N as Ur,Na as Us,O as xr,Oa as xs,P as Vr,Pa as Vs,Q as Hr,Qa as Hs,R as Yr,Ra as Ys,S as $r,Sa as $s,T as Gr,Ta as Gs,U as Br,Ua as Bs,V as zr,Va as zs,W as jr,Wa as js,X as Xr,Xa as Xs,Y as Wr,Ya as Ws,Z as qr,Za as qs,_ as Zr,_a as Zs,a as Ko,aa as Kr,ab as Ks,b as Qo,ba as Qr,bb as Qs,c as er,ca as es,d as tr,da as ts,e as ir,ea as is,f as nr,fa as ns,g as or,ga as os,h as rr,ha as rs,i as sr,ia as ss,j as ar,ja as as,k as lr,ka as ls,l as cr,la as cs,m as dr,ma as ds,n as _r,na as _s,o as pr,oa as ps,p as ur,pa as us,q as hr,qa as hs,r as mr,ra as ms,s as gr,sa as gs,t as fr,ta as fs,u as Cr,ua as Cs,v as vr,va as vs,w as Sr,wa as Ss,x as Er,xa as Es,y as Tr,ya as Ts,z as yr,za as ys}from"./chunk-4OG65NEJ.js";import{a as Qa}from"./chunk-GSBBLOQI.js";import{a as tl}from"./chunk-QL2JQ2KR.js";import{a as ja,b as Ct}from"./chunk-KPTK7WDI.js";import{a as Ui}from"./chunk-SF26BGO7.js";import{a as Et}from"./chunk-5HV7OYO3.js";import{a as Tt}from"./chunk-XTL5AFEF.js";import{f as ia,g as Bt,h as Ei,m as na,n as Ti,p as oa,u as ra}from"./chunk-IKIQUC4S.js";import{a as ji,b as Xi,c as zt,d as jt,e as il,f as nl,g as ol}from"./chunk-WDZHAEG6.js";import{a as Xa,b as vt,d as Wa,e as qa,f as St}from"./chunk-2MULI75A.js";import{a as ki}from"./chunk-LK4XL3A4.js";import{a as Za}from"./chunk-HB7CXGHA.js";import{a as yt}from"./chunk-UDVOUXE3.js";import{a as Ka}from"./chunk-HDWTITT2.js";import{a as ta,b as Ee,c as Ja,d as el}from"./chunk-UFH3PPO3.js";import{a as mi,c as Yo,d as j}from"./chunk-HFZMJE75.js";import{a as zi,i as za,t as ft}from"./chunk-RFBAGCTV.js";import{b as Z,c as Ce,d as Be,h as ve,i as Se}from"./chunk-7GWZLTP7.js";import{b as Li,c as ut,g as ht,h as ka,i as Ua,j as mt,k as xa,p as Va,q as Ha,r as Ya,u as Fi,v as $a,w as Ga,x as Ba,y as gt}from"./chunk-RUXJW6JR.js";import{$a as Na,A as Jo,Aa as Oi,B as Si,Ba as Ca,C as ea,D as sa,E as lt,Ea as va,Fa as Sa,Ga as wi,H as yi,Ha as Ri,Ia as Mi,Ja as Pi,Ka as Pe,Ma as Ea,N as Ge,Na as Ta,O as Bi,Oa as ya,R as aa,Ra as ba,Sa as Aa,Ta as Oa,Va as wa,Wa as Ni,Xa as Di,Ya as Ra,Za as Ma,_a as Pa,a as Uo,ab as Da,bb as pt,cb as Ia,db as La,eb as Fa,f as xo,fb as Ii,g as Vo,ga as bi,h as Ho,ha as la,i as Me,ia as Ai,j as gi,k as $o,ka as ca,l as Go,m as fi,ma as ct,na as dt,o as at,p as Bo,q as zo,qa as _t,r as jo,ra as da,sa as _a,t as Ci,ta as pa,u as re,ua,v as vi,va as ha,w as Xo,wa as ma,x as Wo,xa as ga,y as qo,ya as fa,z as Zo}from"./chunk-SU3V5RM4.js";import{$b as xe,A as co,Aa as To,Ab as H,Ac as B,B as Q,Ba as yo,Bb as ci,Bd as Ye,Cb as ae,Cd as Lo,D as Ue,Da as be,Dd as Fo,E as ti,Ea as we,Eb as Ae,Ec as ie,F as _o,Fc as Do,Fd as $e,Gc as m,Hb as E,Hc as V,Hd as ui,I as $i,Ia as se,Ic as D,Id as hi,Ja as si,Jc as He,Jd as fe,K as po,Kb as wo,L as uo,Lc as I,Ld as ko,M as ii,Mc as L,N as ho,Nc as F,O as mo,Qa as bo,Qb as qe,Ra as xt,Rb as _,Rc as _e,S as go,Sb as it,Sc as x,Tb as De,Tc as Y,Uc as ot,Wb as Vt,Wc as ne,X as Ut,Xc as rt,Y as Te,Yb as Ze,Yc as Gt,Z as fo,Zc as Ie,_ as $,_b as nt,_c as _i,a as ro,aa as Co,ac as Ve,bc as r,bd as Re,c as Qe,ca as ye,cc as s,da as ni,dc as S,eb as ai,ec as Ht,f as ke,fa as et,fb as We,fc as Yt,fd as Io,g as so,gb as ge,gc as di,ha as q,hc as y,ia as Xe,j as ei,k as ao,kb as Ao,kc as le,la as vo,lb as a,lc as ce,ma as So,mb as v,mc as f,nb as Oo,nc as ee,nd as pe,oc as te,p as je,pc as Ro,qb as li,qc as C,ra as oi,rb as tt,rc as p,sa as u,sc as Mo,ta as h,tc as Po,u as W,ua as ri,uc as de,va as Gi,vc as Je,vd as pi,w as lo,wc as $t,wd as st,xc as No,xd as ue,ya as Eo,yc as z,zc as G}from"./chunk-SZVMDCYU.js";import{a as X,b as Ne,i as K}from"./chunk-OPK6FLFO.js";var rl=["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 sl=["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 al={cibCcAmex:Ko,cibCcApplePay:Qo,cibCcMastercard:er,cibCcPaypal:tr,cibCcStripe:ir,cibCcVisa:nr,cibFacebook:or,cibGoogle:rr,cibLinkedin:sr,cibSkype:ar,cibTwitter:lr,cifBr:cr,cifEs:dr,cifFr:_r,cifIn:pr,cifPl:ur,cifUs:hr,cilAccountLogout:mr,cilAlignCenter:gr,cilAlignLeft:fr,cilAlignRight:Cr,cilApplicationsSettings:vr,cilArrowBottom:Sr,cilArrowRight:Er,cilArrowTop:yr,cilBasket:br,cilBell:Ar,cilBold:Or,cilBookmark:wr,cilCalculator:Rr,cilCalendar:Mr,cilChart:Nr,cilChartPie:Pr,cilCheck:Ir,cilCheckAlt:Dr,cilChevronLeft:Lr,cilChevronRight:Fr,cilCloud:Ur,cilCloudDownload:kr,cilCode:xr,cilCommentSquare:Vr,cilContrast:Hr,cilCreditCard:Yr,cilCursor:$r,cilDescription:Gr,cilDollar:zr,cilDrop:jr,cilEnvelopeClosed:Xr,cilEnvelopeOpen:Wr,cilFile:Zr,cilGrid:Kr,cilHome:ts,cilInbox:is,cilIndentDecrease:ns,cilIndentIncrease:os,cilItalic:rs,cilJustifyCenter:ss,cilLanguage:as,cilLayers:ls,cilList:ds,cilListNumbered:cs,cilLocationPin:_s,cilLockLocked:ps,cilMagnifyingGlass:us,cilMap:hs,cilMediaPlay:gs,cilMediaRecord:fs,cilMenu:vs,cilMoon:Ss,cilNotes:Es,cilOptions:Ts,cilPaperclip:bs,cilPaperPlane:ys,cilPen:As,cilPencil:Os,cilPeople:ws,cilPrint:Rs,cilPuzzle:Ms,cilReportSlash:Ns,cilSave:Ds,cilSettings:Ls,cilShare:Us,cilShareAll:Fs,cilShareBoxed:ks,cilSpeech:Hs,cilSpeedometer:Ys,cilSpreadsheet:$s,cilStar:Gs,cilSun:Bs,cilTags:zs,cilTask:js,cilTrash:Ws,cilUnderline:qs,cilUser:Qs,cilUserFemale:Zs,cilUserFollow:Js,cilUserUnfollow:Ks,logo:sl,signet:rl,cilDevices:Br,cilSitemap:Vs,cilTransfer:Xs,cilHistory:es,cilHandshake:Qr,cilReload:Ps,cilFullscreen:Jr,cilMediaPause:ms,cilMediaStop:Cs,cilShieldAlt:xs,cilArrowThickBottom:Tr,cilEqualizer:qr,cilSend:Is};var cl=(()=>{class i{constructor(e,n,t,o){this.router=e,this.titleService=n,this.iconSetService=t,this.idleTimeoutService=o,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=X({},al);}ngOnInit(){this.router.events.subscribe(e=>{e instanceof at;});}updateTimeout(){let e=this.timeoutInSeconds*1e3;this.idleTimeoutService.setTimeoutDuration(e),alert(`Timeout updated to ${this.timeoutInSeconds} seconds.`);}static{this.ɵfac=function(n){return new(n||i)(v(re),v(Go),v(Si),v(ta));};}static{this.ɵcmp=H({type:i,selectors:[["app-root"]],decls:1,vars:0,template:function(n,t){n&1&&S(0,"router-outlet");},dependencies:[Ci],encapsulation:2});}}return i;})();var zl=(()=>{class i extends Ti{constructor(e,n,t){super(e,n,t);}ngOnDestroy(){this.flush();}static ɵfac=function(n){return new(n||i)(q(pe),q(Bt),q(Ei));};static ɵprov=ye({token:i,factory:i.ɵfac});}return i;})();function jl(){return new na();}function Xl(i,c,e){return new ra(i,c,e);}var dl=[{provide:Ei,useFactory:jl},{provide:Ti,useClass:zl},{provide:li,useFactory:Xl,deps:[gi,Ti,we]}],Wl=[{provide:Bt,useFactory:()=>new oa()},{provide:xt,useValue:"BrowserAnimations"},...dl],Rh=[{provide:Bt,useClass:ia},{provide:xt,useValue:"NoopAnimations"},...dl];function _l(){return si("NgEagerAnimations"),[...Wl];}var ql=()=>[];function Zl(i,c){if(i&1){let e=y();r(0,"div",9),C("click",function(){u(e);let t=p();return h(t.openChatbot());}),S(1,"input",10),r(2,"label",11),S(3,"span",12)(4,"span",13)(5,"span",14),s()();}}function Jl(i,c){if(i&1){let e=y();r(0,"app-modal",15)(1,"c-row")(2,"div",16)(3,"div",17)(4,"section",18)(5,"header",19)(6,"div",20),le(7,0),S(8,"i",21),ce(),s(),r(9,"div",22)(10,"span")(11,"a",23),C("click",function(){u(e);let t=p();return h(t.startOverChat());}),f(12,1),s()()()(),r(13,"main",24)(14,"div",25),S(15,"div",26),r(16,"div",27)(17,"div",28)(18,"div",29),m(19,"CrashPlan"),s(),r(20,"div",30),m(21),s()(),r(22,"div",31),f(23,2),s()()()(),r(24,"c-card")(25,"c-card-header")(26,"label",32),f(27,3),s()(),r(28,"c-card-body")(29,"form",33)(30,"div",34)(31,"input",35),F("ngModelChange",function(t){u(e);let o=p();return L(o.query,t)||(o.query=t),h(t);}),s()(),r(32,"div",36)(33,"button",37),C("click",function(){u(e);let t=p();return h(t.getChatbotResults());}),f(34,4),s()()()()()()()()()();}if(i&2){let e=p();_("showCloseIcon",!0)("closeIconAction",e.closeChatbot)("modalSize","modal-fullscreen")("modalWidth","90%")("footerButtons",x(10,ql)),a(15),Do("background-image: url(",e.neilLogo,")"),a(6),V(e.todaysDate),a(10),I("ngModel",e.query);}}var ul=(()=>{class i extends fa{constructor(e,n,t,o,d,l,g){super(),this.authService=e,this.router=n,this.apiService=t,this.toastr=o,this.sharedService=d,this.translatorService=l,this.userRoleService=g,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.conversationalAI=!1,this.currentYear=new Date().getFullYear(),this.displayCreateStyle=!1,this.neilLogo="",this.userLogo="",this.aiLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.answer="",this.sourcesLinks=[],this.session_id="",this.index=0,this.userType="",this.closeChatbot=()=>{this.displayCreateStyle=!1;},this.collapses=[!1,!1,!1,!1],this.neilLogo=this.imageSrc[3],this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date()),this.init();}init(){return K(this,null,function*(){this.userType=yield this.userRoleService.getUserRole();});}formatDate(e){var n="0"+e.getHours(),t="0"+e.getMinutes();n=n.slice(-2),t=t.slice(-2);var o=n+":"+t;return o;}onImageError(e){let n=e.target;n.src=this.imageSrc[1];}openChatbot(){this.displayCreateStyle=!0;}addChatEntry(e,n){this.chatHistory.push([e,n]);}getChatHistory(){return this.chatHistory;}startOverChat(){this.session_id="";let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.createChatLayoutBot("Hello ! Ask me anything about CrashPlan Software","",0),this.apiService.startOverChat().subscribe(n=>{this.session_id=n.body.session_id;},n=>{switch(this.query="",n.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;}});}get(e,n=document){return n.querySelector(e);}toggleCollapse(e){this.collapses[e]=!this.collapses[e];}createChatLayoutBot(e,n,t){let o=this.neilLogo,d=this.get(".msger-chat");T("CrashPlan",o,"left",e,n);function l(O){var w="0"+O.getHours(),M="0"+O.getMinutes();w=w.slice(-2),M=M.slice(-2);var R=w+":"+M;return R;}function g(O,w){return Math.floor(Math.random()*(w-O)+O);}function T(O,w,M,R,P){let N=l(new Date()),k="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);R=R.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let oe="";P==""&&t==0?oe=`
          <div class="msg ${M}-msg">
            <div class="msg-img" style="background-image: url('${w}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${O}</div>
                <div class="msg-info-time">${N}</div>
              </div>
              <div class="msg-text">${R}</div>
            </div>
          </div>`:oe=`
          <div class="msg ${M}-msg">
            <div class="msg-img" style="background-image: url('${w}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${O}</div>
                <div class="msg-info-time">${N}</div>
              </div>
              <div class="msg-text">${R}</div>
              ${P&&P.length>0?`
              <p>
                <a href="javascript:void(0);" id="${k}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${k}-sources" class="sources-container" style="display: none;">
                ${P.map(J=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${J.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${J.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${J.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,d.insertAdjacentHTML("beforeend",oe),setTimeout(()=>{let J=document.getElementById(`${k}-toggle`),me=document.getElementById(`${k}-sources`);J&&me&&J.addEventListener("click",function(){let Fe=me.style.display==="none";me.style.display=Fe?"block":"none",J.innerText=Fe?"Hide sources":"Show sources";});},0),d.scrollTop+=500;}}showSources(e){let n=document.getElementById(`sources-${e}`);n&&(n.style.display=n.style.display==="none"?"block":"none");}createChatLayoutUser(e){let n=this.userLogo,t=this.get(".msger-chat"),o=atob(this.sharedService.getDataByKey("userName"));g(o,n,"right",e);function d(T){var O="0"+T.getHours(),w="0"+T.getMinutes();O=O.slice(-2),w=w.slice(-2);var M=O+":"+w;return M;}function l(T,O){return Math.floor(Math.random()*(O-T)+T);}function g(T,O,w,M){var R=d(new Date());let P='<div class="msg '+w+'-msg"><div class="msg-img" style="background-image: url('+O+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+T+'</div><div class="msg-info-time">'+R+'</div></div><div class="msg-text">'+M+"</div></div></div>";t.insertAdjacentHTML("beforeend",P),t.scrollTop+=500;}}getChatbotResults(){if(!this.query){this.toastr.info("Please specify a question.","Info");return;}this.chatHistory=this.getChatHistory(),this.index=this.index+1,this.createChatLayoutUser(this.query),this.apiService.getChatbotResults(this.query,this.session_id).subscribe(e=>{this.query="",this.answer=e.body.answer,this.sourcesLinks=e.body.sources,this.session_id=e.body.session_id,this.createChatLayoutBot(this.answer,this.sourcesLinks,this.index);},e=>{switch(this.query="",this.createChatLayoutBot("Something went wrong, Please try after some time.","",this.index),e.status){case 400:break;case 401:this.toastr.info(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break;}});}static{this.ɵfac=function(n){return new(n||i)(v(Z),v(re),v(j),v(Ee),v(Ce),v(ve),v(Se));};}static{this.ɵcmp=H({type:i,selectors:[["app-default-footer"]],inputs:{conversationalAI:"conversationalAI"},features:[_e([Z,j]),Ae],decls:5,vars:3,consts:()=>{let e;e=""+"\uFFFD#8\uFFFD"+""+"\uFFFD/#8\uFFFD"+" Ask CrashPlan!\xA0";let n;n="Start Over";let t;t="Hello ! Ask me anything about CrashPlan Software";let o;o="Query :";let d;return d="Send",[e,n,t,o,d,["class","fab-wrapper",3,"click",4,"ngIf"],[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"],["headerH4","CrashPlan Copilot",3,"showCloseIcon","closeIconAction","modalSize","modalWidth","footerButtons",4,"ngIf"],[1,"fab-wrapper",3,"click"],["id","fabCheckbox","type","checkbox",1,"fab-checkbox",2,"cursor","pointer"],["for","fabCheckbox","cTooltip","CrashPlan Copilot","cTooltipPlacement","right",1,"fab",2,"cursor","pointer"],[1,"fab-dots","fab-dots-1"],[1,"fab-dots","fab-dots-2"],[1,"fab-dots","fab-dots-3"],["headerH4","CrashPlan Copilot",3,"showCloseIcon","closeIconAction","modalSize","modalWidth","footerButtons"],[1,"col-lg-12","row"],[1,"chat","col-lg-12",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","cursor","pointer",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-info-time"],[1,"msg-text"],["for","query"],["ng-submit","getChat()"],[1,"col-lg-12"],["type","text","name","query","id","query","placeholder","'Ask a question here...'| translate","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,t){n&1&&(E(0,Zl,6,0,"div",5),r(1,"div",6)(2,"a",7),m(3),s()(),E(4,Jl,35,11,"app-modal",8)),n&2&&(_("ngIf",t.conversationalAI&&t.userType=="admin"),a(3),D("\xA9 CrashPlan ",t.currentYear," "),a(),_("ngIf",t.displayCreateStyle));},dependencies:[gt,xa,ut,ht,ka,mt,Ua,fe,ue,Pe,Me,Ct,ft,vt,St,dt,ct,_t,ki],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 i;})();function Kl(i,c){if(i&1){let e=y();r(0,"div",7)(1,"button",9),C("click",function(){u(e);let t=p();return h(t.navigateToSales());}),m(2,"Contact Sales"),s()();}}var hl=(()=>{class i{constructor(e,n){this.sharedService=e,this.userRoleService=n,this.closeModalHandler=new be(),this.userType="";}ngOnInit(){return K(this,null,function*(){this.userType=yield this.userRoleService.getUserRole();});}closeSelf(){this.closeModalHandler.emit();}navigateToSales(){window.open("https://www.crashplan.com/contact-sales/","_blank"),this.closeSelf();}static{this.ɵfac=function(n){return new(n||i)(v(Ce),v(Se));};}static{this.ɵcmp=H({type:i,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[_e([$e,Z,j])],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,t){n&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row")(5,"h4",4),m(6,"Your Organization is not licensed to use the CrashPlan Endpoint Product"),s(),r(7,"p",5),m(8," Contact Sales for more information. "),s(),r(9,"div"),E(10,Kl,3,0,"div",6),r(11,"div",7)(12,"button",8),C("click",function(){return t.closeSelf();}),m(13,"Back to Dashboard"),s()()()()()()()()),n&2&&(a(10),_("ngIf",t.userType==="admin"));},dependencies:[fe,ue,Me,Pe],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}a[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:#fff!important}"]});}}return i;})();var tc=(i,c)=>({"col-lg-12":i,"col-lg-7":c}),ic=()=>({"col-lg-5":!0}),nc=i=>({display:i}),oc=(i,c)=>({active:i,disabled:c}),rc=()=>["Google Drive","Gmail"];function sc(i,c){if(i&1){let e=y();r(0,"a",53),C("click",function(){u(e);let t=p(2);return h(t.enableMultiSelect());}),S(1,"i",54),r(2,"span",55),f(3,1),s()();}}function ac(i,c){if(i&1){let e=y();r(0,"a",53),C("click",function(){u(e);let t=p(2);return h(t.removeAll());}),S(1,"i",56),r(2,"span",55),f(3,2),s()();}}function lc(i,c){if(i&1){let e=y();r(0,"button",57),C("click",function(){u(e);let t=p(2);return h(t.addToCartFinal());}),f(1,3),s();}}function cc(i,c){if(i&1){let e=y();r(0,"button",58),C("click",function(){u(e);let t=p(2);return h(t.onExportAsZipG());}),f(1,4),s();}}function dc(i,c){if(i&1){let e=y();r(0,"button",59),C("click",function(){u(e);let t=p(2);return h(t.onExportAsZipG());}),f(1,5),s();}if(i&2){let e=p(2);_("ngClass",ot(1,oc,e.addedElementsCount>0,e.addedElementsCount<=0));}}function _c(i,c){if(i&1){let e=y();r(0,"th",60)(1,"input",61),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.isSelectAll,t)||(o.isSelectAll=t),h(t);}),C("change",function(){u(e);let t=p(2);return h(t.toggleSelectAll());}),s()();}if(i&2){let e=p(2);a(),I("ngModel",e.isSelectAll);}}function pc(i,c){if(i&1){let e=y();r(0,"td")(1,"input",66),F("ngModelChange",function(t){u(e);let o=p().$implicit;return L(o.isChecked,t)||(o.isChecked=t),h(t);}),C("change",function(){u(e);let t=p(3);return h(t.itemSelect());}),s()();}if(i&2){let e=p().$implicit;a(),I("ngModel",e.isChecked);}}function uc(i,c){if(i&1){let e=y();r(0,"tr"),E(1,pc,2,1,"td",31),r(2,"td")(3,"div")(4,"h4"),m(5),s()(),r(6,"p",62)(7,"b"),m(8,"Found in: "),s(),m(9),s(),r(10,"p"),S(11,"span",63),s()(),r(12,"td")(13,"button",64),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.onDownload(t));}),f(14,6),s(),r(15,"button",65),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.onOpenLocation(t));}),f(16,7),s()()();}if(i&2){let e=c.$implicit,n=p(2);De("selected-rowMail",n.isSelected(e)),a(),_("ngIf",n.isMultiSelectEnabled),a(4),V(e.fileName),a(4),He("",e.deviceName," : ",e.filePath,""),a(2),_("innerHTML",n.renderHtml(e.content),We);}}function hc(i,c){if(i&1){let e=y();r(0,"th"),m(1),r(2,"button",67),C("click",function(){u(e);let t=p(2);return h(t.removeAll());}),f(3,8),s()();}if(i&2){let e=p(2);a(),He(" ",e.addedElementsCount," out of ",e.totalCountGS," selected ");}}function mc(i,c){if(i&1&&(r(0,"th"),f(1,9),s()),i&2){let e=p(2);a(),ee(e.addedElementsCount),te(1);}}function gc(i,c){if(i&1){let e=y();r(0,"tr")(1,"td",68)(2,"span",69),m(3),s(),r(4,"a",70),C("click",function(){let t=u(e),o=t.$implicit,d=t.index,l=p(2);return h(l.removeItem(d,o.fileName,o.fileRevisionID,o.fileName));}),S(5,"i",71),s(),r(6,"p",72)(7,"b"),f(8,10),s(),r(9,"span",73),f(10,11),s()()()();}if(i&2){let e=c.$implicit;a(3),V(e.fileName),a(7),ee(e.deviceName)(e.filePath),te(10);}}function fc(i,c){if(i&1&&(r(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",36),E(4,sc,4,0,"a",37)(5,ac,4,0,"a",37),r(6,"span")(7,"b"),f(8,0),s()(),E(9,lc,2,0,"button",38)(10,cc,2,0,"button",39)(11,dc,2,4,"button",40),s(),r(12,"c-card-body",41)(13,"c-card",42)(14,"c-card-body")(15,"div",43)(16,"table",44)(17,"thead",45)(18,"tr"),E(19,_c,2,1,"th",46),r(20,"th",47),m(21,"File Name"),s(),r(22,"th",48),m(23,"Actions"),s()()(),r(24,"tbody"),E(25,uc,17,7,"tr",49),s()()()()(),r(26,"c-card",50)(27,"c-card-body")(28,"div",43)(29,"table",51)(30,"thead")(31,"tr"),E(32,hc,4,2,"th",31)(33,mc,2,1,"th",31),s()(),r(34,"tbody"),E(35,gc,11,3,"tr",52),s()()()()()()()()()),i&2){let e=p();a(4),_("ngIf",e.isMultiSelectEnabled),a(),_("ngIf",e.isMultiSelectEnabled),a(3),ee(e.totalCountGS),te(8),a(),_("ngIf",e.updateAddToCartButtonVisibility()),a(),_("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"&&e.productType!=="Gmail"&&e.productType!=="mail"),a(),_("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"),a(2),_("ngClass",ot(18,tc,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),a(3),_("hover",!0)("responsive",!0),a(3),_("ngIf",e.isMultiSelectEnabled),a(6),_("ngForOf",e.foundFiles),a(),_("ngClass",x(21,ic))("ngStyle",Y(22,nc,e.isMultiSelectEnabled?"block":"none")),a(3),_("hover",!0)("responsive",!0),a(3),_("ngIf",e.addedElementsCount>0),a(),_("ngIf",e.addedElementsCount==0),a(2),_("ngForOf",e.addedElementsUpdated);}}function Cc(i,c){i&1&&(r(0,"c-row",74)(1,"c-card",75)(2,"c-card-body")(3,"b"),f(4,12),s()()()());}function vc(i,c){if(i&1){let e=y();r(0,"a",83),C("click",function(){u(e);let t=p(2);return h(t.onNavigate(t.first));}),S(1,"i",84),s();}}function Sc(i,c){if(i&1){let e=y();r(0,"a",85),C("click",function(){u(e);let t=p(2);return h(t.onNavigate(t.previous));}),S(1,"i",86),s();}}function Ec(i,c){if(i&1){let e=y();r(0,"a",87),C("click",function(){u(e);let t=p(2);return h(t.onNavigate(t.next));}),S(1,"i",88),s();}}function Tc(i,c){if(i&1){let e=y();r(0,"a",89),C("click",function(){u(e);let t=p(2);return h(t.onNavigate(t.last));}),S(1,"i",90),s();}}function yc(i,c){if(i&1&&(r(0,"c-row",76)(1,"div",77)(2,"div",78),E(3,vc,2,0,"a",79)(4,Sc,2,0,"a",80)(5,Ec,2,0,"a",81)(6,Tc,2,0,"a",82),s()()()),i&2){let e=p();a(3),_("ngIf",e.first),a(),_("ngIf",e.previous),a(),_("ngIf",e.next),a(),_("ngIf",e.last);}}function bc(i,c){if(i&1){let e=y();r(0,"button",103),C("click",function(){u(e);let t=p(2);return h(t.exportCompleteSearchAsZipTriggerG());}),f(1,16),s();}}function Ac(i,c){if(i&1){let e=y();r(0,"button",103),C("click",function(){u(e);let t=p(2);return h(t.exportSelectedAsZipG());}),m(1,"Proceed"),s();}}function Oc(i,c){if(i&1){let e=y();r(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),f(5,13),s()(),r(6,"div",96)(7,"c-row")(8,"div",97)(9,"label",98),f(10,14),s(),r(11,"input",99),F("ngModelChange",function(t){u(e);let o=p();return L(o.zipFileNameG,t)||(o.zipFileNameG=t),h(t);}),s()()()(),r(12,"div",100)(13,"button",101),C("click",function(){u(e);let t=p();return h(t.closeZipPopupG());}),f(14,15),s(),E(15,bc,2,0,"button",102)(16,Ac,2,0,"button",102),s()()()();}if(i&2){let e=p();a(11),I("ngModel",e.zipFileNameG),a(4),_("ngIf",e.exportCompleteSearchG),a(),_("ngIf",!e.exportCompleteSearchG);}}function wc(i,c){i&1&&(r(0,"th"),f(1,20),s());}function Rc(i,c){if(i&1&&(r(0,"span"),f(1,21),ne(2,"slice"),s()),i&2){let e=p(3);a(2),ee(Ie(2,1,e.progressG.subject,0,40)),te(1);}}function Mc(i,c){if(i&1&&(r(0,"td")(1,"span",109),m(2),ne(3,"slice"),s(),E(4,Rc,3,5,"span",31),s()),i&2){let e=p(2);a(),$t("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),a(),V(Ie(3,5,e.progressG.currentFolderPath,0,20)),a(2),_("ngIf",e.progressG.subject);}}function Pc(i,c){i&1&&(r(0,"td"),f(1,22),s());}function Nc(i,c){if(i&1&&(r(0,"td"),m(1),r(2,"div",110)(3,"div",111),m(4),ne(5,"number"),s()()()),i&2){let e=p(2);a(),He("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),a(),Je("title","",e.progressG.totalRestorePct,"%"),a(),it("width",e.progressG.totalRestorePct,"%"),a(),D(" ",Gt(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ");}}function Dc(i,c){i&1&&(r(0,"td"),f(1,23),s());}function Ic(i,c){if(i&1){let e=y();r(0,"button",112),C("click",function(){u(e);let t=p(2);return h(t.cancelDownloadAsZipG());}),f(1,24),s();}}function Lc(i,c){if(i&1){let e=y();r(0,"div",104)(1,"div",105)(2,"div",93)(3,"div",94)(4,"h4",95),f(5,17),s()(),r(6,"div",96)(7,"c-card")(8,"c-card-header",106),f(9,18),s(),r(10,"c-card-body")(11,"c-row",74)(12,"table",107)(13,"thead")(14,"tr"),E(15,wc,2,0,"th",31),r(16,"th"),f(17,19),s()()(),r(18,"tbody")(19,"tr"),E(20,Mc,5,9,"td",31)(21,Pc,2,0,"td",31)(22,Nc,6,10,"td",31)(23,Dc,2,0,"td",31),s()()()()()()(),r(24,"div",100)(25,"button",101),C("click",function(){u(e);let t=p();return h(t.closeDownloadZipPopupG());}),m(26,"Close"),s(),E(27,Ic,2,0,"button",108),s()()()();}if(i&2){let e=p();a(15),_("ngIf",e.productType!="Gmail"&&e.productType!="Google Drive"),a(5),_("ngIf",e.progressG.currentFolderPath!=""&&e.productType!="Gmail"&&e.productType!="Google Drive"),a(),_("ngIf",e.progressG.currentFolderPath==""&&e.productType!="Gmail"&&e.productType!="Google Drive"),a(),_("ngIf",e.progressG.totalNoOfFilesForRestore!=""),a(),_("ngIf",e.progressG.totalNoOfFilesForRestore==""),a(4),_("ngIf",!x(6,rc).includes(e.productType));}}function Fc(i,c){if(i&1){let e=y();r(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),f(5,25),s()(),r(6,"div",96)(7,"h4",95),f(8,26),s()(),r(9,"div",100)(10,"button",101),C("click",function(){u(e);let t=p();return h(t.closeDownloadZipConfirmPopupG());}),f(11,27),s(),r(12,"button",113),C("click",function(){u(e);let t=p();return h(t.cancelDownloadAsZipConfirmG());}),f(13,28),s()()()()();}}function kc(i,c){if(i&1){let e=y();r(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),f(5,29),s()(),r(6,"div",96)(7,"h4",95),f(8,30),s()(),r(9,"div",100)(10,"button",101),C("click",function(){u(e);let t=p();return h(t.closeDownloadZipRunBkpPopupG());}),m(11,"Cancel"),s(),r(12,"button",112),C("click",function(){u(e);let t=p();return h(t.cancelDownloadAsZipRunBkpG());}),m(13,"Ok"),s()()()()();}}var ml=(()=>{class i{constructor(e,n,t,o,d,l,g,T,O){this.cdr=e,this.toastr=n,this.translatorService=t,this.sharedService=o,this.sanitizer=d,this.apiService=l,this.assetManagementService=g,this.router=T,this.configService=O,this.foundFiles=[],this.noFilesFound=!1,this.productType="",this.contentSearchText="",this.totalCountGS="",this.userType="",this.currentDeviceUUID="",this.first="",this.previous="",this.next="",this.last="",this.downloadFile=new be(),this.openFileLocation=new be(),this.navigatePage=new be(),this.isMultiSelectEnabled=!1,this.isSelectAll=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.displayZipstyleG=!1,this.exportCompleteSearchG=!1,this.zipFileNameG="",this.selectedUsers=new Set(),this.selectedValueCS=null,this.deviceId="",this.devicesCS=[],this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1;}ngOnChanges(e){e.noFilesFound&&e.noFilesFound.currentValue===!0&&this.removeAll();}getFormattedData(e){return atob(e)||"";}onDownload(e){this.downloadFile.emit(e);}onOpenLocation(e){this.openFileLocation.emit(e);}onNavigate(e){this.navigatePage.emit(e);}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(ai.HTML,e)||"");}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled;}addToCartFinal(){let e=this.foundFiles.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(d=>!this.isBackupIdExists(d.fileRevisionID));if(this.addedElementsUpdated.length+n.length>500){this.toastr.error(this.translatorService.getTranslation("You can add a maximum of 500 items."),this.translatorService.getTranslation("Limit Exceeded")),this.clearSelection(),this.isSelectAll=!1;return;}n.length>0?(this.addedElementsUpdated.push(...n),this.addedElements=this.addedElementsUpdated.map(d=>d.fileName),this.addedElementsCount=this.addedElementsUpdated.length):this.toastr.error(this.translatorService.getTranslation("Item(s) already added."),this.translatorService.getTranslation("Error")),this.clearSelection(),this.isSelectAll=!1,this.updateAddToCartButtonVisibility();}}clearSelection(){this.isSelectAll=!1,this.foundFiles.forEach(e=>e.isChecked=!1),this.cdr.detectChanges();}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.fileRevisionID===e);}toggleSelectAll(){this.foundFiles.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll);}),this.updateAddToCartButtonVisibility();}updateAddToCartButtonVisibility(){return this.foundFiles.some(e=>e.isChecked);}itemSelect(){let e=this.foundFiles.length,n=this.foundFiles.filter(t=>t.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility();}removeAll(){this.foundFiles.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!1;}removeItem(e,n,t,o){console.log("inside itemselect child component : "+t),console.log("addedElementsUpdated child component : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.fileRevisionID!==t),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges();}exportFolderAsZipModalG(){this.displayZipstyleG=!0,this.exportCompleteSearchG=!1,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"));}isSelected(e){return this.selectedUsers.has(e);}exportCompleteMailboxAsZipG(){this.displayZipstyleG=!0,this.exportCompleteSearchG=!1,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"));}onExportAsZipG(){this.displayZipstyleG=!0,this.isMultiSelectEnabled?this.exportCompleteSearchG=!1:this.exportCompleteSearchG=!0,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"));}closeZipPopupG(){this.displayZipstyleG=!1;}getZipBatchDetailElements(){return console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}));}exportCompleteSearchAsZipTriggerG(){if(console.log("exportCompleteSearchAsZipTriggerG!!!!!"),this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.translatorService.getTranslation("Please specify a ZIP name."),this.translatorService.getTranslation("Fail!!!"));return;}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("zipFileNameG : "+this.zipFileNameG),console.log("contentSearchText : "+this.contentSearchText),this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId),this.apiService.getContentSearch(this.productType,this.foundFiles[0].userName,this.foundFiles[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);let o=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","","",!1,this.batchIdG).subscribe(d=>{console.log("res from initiateRestore : "+JSON.stringify(d)),console.log("res from initiateRestore : "+JSON.stringify(d.body)),this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")),this.displayDownloadZipstyleG=!1,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG();},5e3),this.cdr.detectChanges();},d=>{switch(console.error("Error from initiateRestore: ",d),console.error("Error status: ",d.status),d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG();},5e3),console.error("Not Found: ",d.message);break;case 500:console.error("Internal Server Error: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("No Meta data Configuration found."),this.translatorService.getTranslation("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;}});}exportSelectedAsZipG(){if(this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.translatorService.getTranslation("Please specify a ZIP name."),this.translatorService.getTranslation("Fail!!!"));return;}if(["mail","OUTLOOK","Gmail"].includes(this.productType)){let e=this.getZipBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.assetManagementService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.productType==="mail"?"OUTLOOK":this.productType,!1,this.zipFileNameG).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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("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.assetManagementService.exportSelectedAsPstG(this.getZipBatchDetailElements()).subscribe(e=>{this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")),this.displayDownloadZipstyleG=!0,console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","",this.foundFiles[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(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")),this.displayDownloadZipstyleG=!0,this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG();},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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG();},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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG();},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;}});}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")):(this.displayDownloadZipstyleG=!0,this.toastr.success(this.translatorService.getTranslation("Your request has been queued. Please check Downloads page to get the file after some time."),this.translatorService.getTranslation("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressGmail(this.productType==="mail"?"OUTLOOK":this.productType,n);},1e4),this.cdr.detectChanges();}getDownloadZipEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(this.currentDeviceUUID,this.downloadId,e).subscribe(t=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(t.body)),t&&t.body&&([200,206].includes(t.status)&&t.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=t.body.restoreProgressEventsElement.batchId,this.progressG=t.body.restoreProgressEventsElement),t.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.translatorService.getTranslation("Please check Downloads page to get the file"),this.translatorService.getTranslation("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)));},t=>{switch(console.error("Error from getDownloadZipEventsProgress: ",t),console.error("Error status: ",t.status),t.status){case 400:console.error("Bad Request: ",t.message);break;case 401:console.error("Unauthorized: ",t.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",t.message);break;case 404:console.error("Not Found: ",t.message);break;case 412:console.error("Error code 412: ",t.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("Info"));break;case 500:console.error("Internal Server Error: ",t.message);break;case 503:console.error("Internal Server Error: ",t.message);break;default:console.error("Unknown Error: ",t.message);break;}});}getDownloadZipEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadZipEventsProgress : "+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.displayDownloadZipstyleG=!1,this.toastr.success(this.translatorService.getTranslation("Restore completed successfully."),this.translatorService.getTranslation("Success")),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)));},e=>{switch(console.error("Error from getDownloadZipEventsProgress: ",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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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;}});}cancelDownloadAsZipRunBkpG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1,this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges();}closeDownloadZipRunBkpPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!1;}cancelDownloadAsZipConfirmG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsZip : "+JSON.stringify(e)),console.log("res from cancelDownloadAsZip : "+JSON.stringify(e.body)),this.toastr.success(this.translatorService.getTranslation("Queued Restore has been removed."),this.translatorService.getTranslation("Info")),this.intervalIdG&&clearInterval(this.intervalIdG);},e=>{switch(console.error("Error from cancelDownloadAsZip: ",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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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;}});}closeDownloadZipConfirmPopupG(){this.displayDownloadZipConfirmstyleG=!1;}cancelDownloadAsZipG(){this.displayDownloadZipConfirmstyleG=!0;}closeDownloadZipPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!0;}static{this.ɵfac=function(n){return new(n||i)(v(Re),v(Ee),v(ve),v(Ce),v(fi),v(j),v(Tt),v(re),v(Be));};}static{this.ɵcmp=H({type:i,selectors:[["app-document-content-search"]],inputs:{foundFiles:"foundFiles",noFilesFound:"noFilesFound",productType:"productType",contentSearchText:"contentSearchText",totalCountGS:"totalCountGS",userType:"userType",currentDeviceUUID:"currentDeviceUUID",first:"first",previous:"previous",next:"next",last:"last"},outputs:{downloadFile:"downloadFile",openFileLocation:"openFileLocation",navigatePage:"navigatePage"},features:[_e([$e,j,el]),oi],decls:7,vars:7,consts:()=>{let e;e=""+"\uFFFD0\uFFFD"+" Search Results Found";let n;n="Enable Multiselect";let t;t="Disable Multiselect";let o;o="Add Selected Items";let d;d="Export all items to ZIP";let l;l="Export selected items to ZIP";let g;g="Download";let T;T="Open File Location";let O;O="Remove all";let w;w=""+"\uFFFD0\uFFFD"+" selected";let M;M="Found in:";let R;R=""+"\uFFFD0\uFFFD"+" : "+"\uFFFD1\uFFFD"+"";let P;P="There are no results!.";let N;N="Specify Filename";let k;k="Specify Filename";let oe;oe="Close";let J;J="Proceed";let me;me="Restore Progress";let Fe;Fe="Currently Running Restore Statistics";let At;At="Overall Progress";let Ot;Ot="Current item being processed";let wt;wt="/ "+"\uFFFD0\uFFFD"+"";let Rt;Rt="-";let Mt;Mt="0";let Pt;Pt="Cancel Restore";let Nt;Nt="Restore Cancel Confirmation";let Dt;Dt="Are you sure you wish to cancel the restore?";let It;It="Cancel";let Lt;Lt="Ok";let Ft;Ft="Confirmation";let kt;return kt="Are you sure you wish to close this window? The restore will still continue to run in the background.",[e,n,t,o,d,l,g,T,O,w,M,R,P,N,k,oe,J,me,Fe,At,Ot,wt,Rt,Mt,Pt,Nt,Dt,It,Lt,Ft,kt,[4,"ngIf"],["class","col-lg-12",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["class","modal","tabindex","-1","role","dialog","style","--cui-modal-width: 30% !important;display: block;",4,"ngIf"],["class","modal","tabindex","-1","role","dialog","style","--cui-modal-width: 40% !important;display: block;",4,"ngIf"],[1,"header-container",2,"display","block"],["class","hover-link","style","margin: 0 10px 0 22px; cursor:pointer; color: #062D4D;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","style","margin-left: 3%;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","class","pull-right","style","margin-right: 3%;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","class","pull-right","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[1,"row"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"fixTableHead"],["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"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[1,"bg-body-tertiary","clickable-header","col-lg-8"],[1,"bg-body-tertiary","col-lg-4"],[3,"selected-rowMail",4,"ngFor","ngForOf"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],["bordered","","align","middle","cTable","",1,"mb-0","border",2,"background","white",3,"hover","responsive"],[4,"ngFor","ngForOf"],[1,"hover-link",2,"margin","0 10px 0 22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"note"],[1,"fa","fa-reorder"],["cButton","","color","primary","size","sm",2,"margin-left","3%",3,"click"],["cButton","","color","primary","size","sm",1,"pull-right",2,"margin-right","3%",3,"click"],["cButton","","color","primary","size","sm",1,"pull-right",2,"margin-right","3%",3,"click","ngClass"],[2,"border-top","0px solid #f1f1f1 !important"],["type","checkbox","title","Select all",3,"ngModelChange","change","ngModel"],[1,"found-in"],[3,"innerHTML"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",3,"click"],["type","checkbox",3,"ngModelChange","change","ngModel"],["cButton","","color","primary","size","sm",1,"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,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"col-lg-12"],[1,"mb-3"],[2,"margin-top","20px"],[1,"pagination"],[1,"col-lg-12","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"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important","display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","zipFileNameG"],["type","text","name","zipFileNameG","id","zipFileNameG","placeholder","Enter ZIP File Name","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer"],[1,"btn","btn-default",3,"click"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success",3,"click"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important","display","block"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],[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"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"]];},template:function(n,t){n&1&&E(0,fc,36,24,"c-row",31)(1,Cc,5,0,"c-row",32)(2,yc,7,4,"c-row",33)(3,Oc,17,3,"div",34)(4,Lc,28,7,"div",35)(5,Fc,14,0,"div",34)(6,kc,14,0,"div",34),n&2&&(_("ngIf",t.foundFiles.length>0&&!t.noFilesFound&&t.productType!=="mail"&&t.productType!=="Gmail"),a(),_("ngIf",t.noFilesFound&&t.productType!=="mail"&&t.productType!=="Gmail"),a(),_("ngIf",t.foundFiles.length>0&&!t.noFilesFound&&t.productType!=="mail"&&t.productType!=="Gmail"),a(),_("ngIf",t.displayZipstyleG),a(),_("ngIf",t.displayDownloadZipstyleG),a(),_("ngIf",t.displayDownloadZipConfirmstyleG),a(),_("ngIf",t.displayDownloadZipRunBckConfirmstyleG));},dependencies:[Ye,gt,ut,Li,ht,Fi,mt,fe,pi,st,ue,hi,ui,bi,dt,ct,_t,Pi,Pe,pt,Me,Ct,ft,vt,St],styles:[".disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.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}.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}"]});}}return i;})();var Uc=["deviceDropdown"],xc=["deviceDropdownCS"],Vc=["contentFrame"],Hc=["userDeviceSearch"],Yc=["fileSearch"],$c=["contentSearch"],Gc=["contentSearchMailInput"],Bc=["deviceDropdownR"],zc=["contentCalendarFrame"],jc=["searchInput"],Le=i=>({display:i}),Xc=i=>[i],Wc=()=>({"col-lg-5":!0}),qc=(i,c)=>({"col-lg-7":i,"col-lg-4":c}),Zc=()=>({"col-lg-3":!0}),Jc=(i,c)=>({active:i,disabled:c}),Kc=i=>({"background-color":i}),Qc=i=>({required:i}),bt=()=>["Google Drive","Gmail"],gl=()=>["Gmail","Google Drive"],ed=i=>({selected:i});function td(i,c){if(i&1){let e=y();r(0,"c-nav-item")(1,"button",106),C("click",function(){u(e);let t=p();return h(t.setActiveSearchTab("file",1));}),f(2,36),s()();}if(i&2){p();let e=ie(13);a(),_("cTabContent",e)("tabPaneIdx",1);}}function id(i,c){if(i&1){let e=y();r(0,"c-nav-item")(1,"button",106),C("click",function(){u(e);let t=p();return h(t.setActiveSearchTab("content",2));}),f(2,37),s()();}if(i&2){p();let e=ie(13);a(),_("cTabContent",e)("tabPaneIdx",2);}}function nd(i,c){if(i&1&&(r(0,"c-card"),m(1),s()),i&2){let e=p();a(),D(" ",e.noUsersFoundText," ");}}function od(i,c){if(i&1){let e=y();r(0,"c-col",177)(1,"c-card",178)(2,"c-card-body",179),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.userProfile(t.userNameEncoded));}),r(3,"div",176)(4,"div",180),S(5,"img",181),s(),r(6,"div",182)(7,"p",183)(8,"b"),f(9,38),s()()()()()()();}if(i&2){let e=c.$implicit;a(7),de("title",e.userName),a(2),ee((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":"")),te(9);}}function rd(i,c){if(i&1&&(r(0,"c-card")(1,"c-card-header",175),m(2),s(),r(3,"c-card-body",176),xe(4,od,10,2,"c-col",177,nt),s()()),i&2){let e=p();a(2),D("",e.foundUsers.length," User(s) found: "),a(2),Ve(e.foundUsers);}}function sd(i,c){if(i&1&&(r(0,"c-card"),m(1),s()),i&2){let e=p();a(),D(" ",e.noUsersFoundText," ");}}function ad(i,c){if(i&1){let e=y();r(0,"c-col",184)(1,"c-card",178)(2,"c-card-body",179),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.userProfile(t.userNameEncoded));}),r(3,"div",176)(4,"div",180),S(5,"img",185),s(),r(6,"div",182)(7,"p",183)(8,"b"),m(9),s()()()()()()();}if(i&2){let e=c.$implicit;a(7),de("title",e.userName),a(2),V((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""));}}function ld(i,c){if(i&1&&(r(0,"c-card")(1,"c-card-header",175),m(2),s(),r(3,"c-card-body",176),xe(4,ad,10,2,"c-col",184,nt),s()()),i&2){let e=p();a(2),D("",e.foundSites.length," Site(s) found: "),a(2),Ve(e.foundSites);}}function cd(i,c){if(i&1&&(r(0,"c-card"),m(1),s()),i&2){let e=p();a(),D(" ",e.noDevicesFoundText," ");}}function dd(i,c){if(i&1){let e=y();r(0,"c-col",184)(1,"c-card",178)(2,"c-card-body",179),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.userAsset(t.userNameEncoded,t.deviceNameEncoded));}),r(3,"div",176)(4,"div",180),S(5,"img",186),s(),r(6,"div",182)(7,"p",183)(8,"b"),f(9,39),s()()()()()()();}if(i&2){let e=c.$implicit;a(7),de("title",e.deviceName),a(2),ee((e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":""))((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":"")),te(9);}}function _d(i,c){if(i&1&&(r(0,"c-card")(1,"c-card-header",175),m(2),s(),r(3,"c-card-body",176),xe(4,dd,10,3,"c-col",184,nt),s()()),i&2){let e=p();a(2),D("",e.foundDevices.length," Device(s) found: "),a(2),Ve(e.foundDevices);}}function pd(i,c){i&1&&(r(0,"option",187),f(1,40),s());}function ud(i,c){i&1&&(r(0,"option",188),f(1,41),s());}function hd(i,c){i&1&&(r(0,"option",189),f(1,42),s());}function md(i,c){if(i&1&&(r(0,"option",120),m(1),s()),i&2){let e=p().$implicit;_("value",e.key),a(),V(e.title);}}function gd(i,c){if(i&1&&E(0,md,2,2,"option",190),i&2){let e=c.$implicit,n=p();_("ngIf",n.productsLicensed.includes(e.key));}}function fd(i,c){if(i&1){let e=y();r(0,"div",191)(1,"label"),f(2,43),s(),r(3,"select2",192),F("ngModelChange",function(t){u(e);let o=p();return L(o.selectedValue,t)||(o.selectedValue=t),h(t);}),C("search",function(t){u(e);let o=p();return h(o.onSearch(t));})("update",function(t){u(e);let o=p();return h(o.update(t));}),s()();}if(i&2){let e=p();a(3),_("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("disabled",e.userType==="user"),I("ngModel",e.selectedValue);}}function Cd(i,c){if(i&1){let e=y();r(0,"div",191)(1,"label"),f(2,44),s(),r(3,"select2",193),F("ngModelChange",function(t){u(e);let o=p();return L(o.selectedValueSite,t)||(o.selectedValueSite=t),h(t);}),C("search",function(t){u(e);let o=p();return h(o.onSearchSite(t));})("update",function(t){u(e);let o=p();return h(o.updateSite(t));}),s()();}if(i&2){let e=p();a(3),_("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite),I("ngModel",e.selectedValueSite);}}function vd(i,c){if(i&1&&(r(0,"option",120),m(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),D(" ",e.deviceName," ");}}function Sd(i,c){i&1&&(r(0,"option"),m(1," User has no assets configured "),s());}function Ed(i,c){if(i&1&&(r(0,"div",194)(1,"label"),f(2,45),s(),r(3,"select",195,4),E(5,vd,2,2,"option",196)(6,Sd,2,0,"option",107),s(),S(7,"i",197),s()),i&2){let e=p();a(5),_("ngForOf",e.devices),a(),_("ngIf",e.devices.length==0);}}function Td(i,c){i&1&&(r(0,"c-row")(1,"c-card",101)(2,"c-card-body")(3,"b"),f(4,46),s()()()());}function yd(i,c){if(i&1){let e=y();r(0,"tr")(1,"td")(2,"div")(3,"h4"),m(4),s()(),r(5,"p",204),le(6,48),S(7,"b"),ce(),s()(),r(8,"td")(9,"button",205),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.downloadFile(t.fileName,t.filePath,t.fileRevisionID,t.backup,t.fileUser,t.deviceUUID,t.folder,t.size,o.productTypeFiles));}),f(10,49),s(),r(11,"button",206),C("click",function(){let t=u(e).$implicit,o=p(2);return h(o.openFileLocation(t.fileName,t.filePath,t.deviceId,o.productTypeFiles,t.backup));}),f(12,50),s()()();}if(i&2){let e=c.$implicit;a(4),V(e.fileName),a(3),ee(e.filePath),te(6);}}function bd(i,c){if(i&1&&(r(0,"c-row",198)(1,"table",199)(2,"thead",200)(3,"tr")(4,"th",201),m(5,"File Name "),s(),r(6,"th",202),f(7,47),s()()(),r(8,"tbody"),E(9,yd,13,2,"tr",203),s()()()),i&2){let e=p();a(),_("hover",!0)("responsive",!0),a(8),_("ngForOf",e.foundFiles);}}function Ad(i,c){i&1&&(r(0,"option",207),f(1,51),s());}function Od(i,c){i&1&&(r(0,"option",188),f(1,52),s());}function wd(i,c){i&1&&(r(0,"option",189),f(1,53),s());}function Rd(i,c){i&1&&(r(0,"option",208),f(1,54),s());}function Md(i,c){if(i&1&&(r(0,"option",120),m(1),s()),i&2){let e=p().$implicit;_("value",e.key),a(),V(e.title);}}function Pd(i,c){if(i&1&&E(0,Md,2,2,"option",190),i&2){let e=c.$implicit,n=p();_("ngIf",n.checkFeatureLicensed(Y(1,Xc,e.key)));}}function Nd(i,c){if(i&1){let e=y();r(0,"div",191)(1,"label"),m(2,"User Id"),s(),r(3,"select2",209),F("ngModelChange",function(t){u(e);let o=p();return L(o.selectedValueCS,t)||(o.selectedValueCS=t),h(t);}),C("search",function(t){u(e);let o=p();return h(o.onSearchContentSearch(t));})("update",function(t){u(e);let o=p();return h(o.updateContentSearch(t));}),s()();}if(i&2){let e=p();a(3),_("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),I("ngModel",e.selectedValueCS);}}function Dd(i,c){if(i&1){let e=y();r(0,"div",191)(1,"label"),m(2,"Site"),s(),r(3,"select2",210),F("ngModelChange",function(t){u(e);let o=p();return L(o.selectedValueSiteCS,t)||(o.selectedValueSiteCS=t),h(t);}),C("search",function(t){u(e);let o=p();return h(o.onSearchSiteContentSearch(t));})("update",function(t){u(e);let o=p();return h(o.updateSiteContentSearch(t));}),s()();}if(i&2){let e=p();a(3),_("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),I("ngModel",e.selectedValueSiteCS);}}function Id(i,c){if(i&1&&(r(0,"option",120),m(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),D(" ",e.deviceName," ");}}function Ld(i,c){i&1&&(r(0,"option"),m(1," User has no assets configured "),s());}function Fd(i,c){if(i&1){let e=y();r(0,"div",194)(1,"label"),m(2,"Asset Name"),s(),r(3,"select",211,5),C("change",function(){u(e);let t=p();return h(t.onDeviceChangeCS());}),E(5,Id,2,2,"option",196)(6,Ld,2,0,"option",107),s(),S(7,"i",197),s();}if(i&2){let e=p();a(5),_("ngForOf",e.devicesCS),a(),_("ngIf",e.devicesCS.length==0);}}function kd(i,c){if(i&1){let e=y();r(0,"c-row",123)(1,"div",124)(2,"c-input-group")(3,"input",212,6),F("ngModelChange",function(t){u(e);let o=p();return L(o.contentSearchText,t)||(o.contentSearchText=t),h(t);}),C("keydown.enter",function(){u(e);let t=p();return h(t.searchForContent());}),s()()(),r(5,"div",126)(6,"button",127),C("click",function(){u(e);let t=p();return h(t.searchForContent());}),m(7,"Search"),s()()();}if(i&2){let e=p();a(3),I("ngModel",e.contentSearchText);}}function Ud(i,c){if(i&1){let e=y();r(0,"div",126)(1,"a",216),C("click",function(){u(e);let t=p(2);return h(t.searchForContent());}),m(2,"Search"),s()();}}function xd(i,c){if(i&1){let e=y();r(0,"c-row",154)(1,"div",124)(2,"c-input-group",101)(3,"input",213,7),F("ngModelChange",function(t){u(e);let o=p();return L(o.contentSearchMail,t)||(o.contentSearchMail=t),h(t);}),C("keydown.enter",function(){u(e);let t=p();return h(t.searchForContent());}),s(),r(5,"button",127),C("click",function(){u(e);let t=p();return h(t.togglePanel());}),le(6,55),S(7,"i",214),ce(),s()()(),E(8,Ud,3,0,"div",215),s();}if(i&2){let e=p();a(3),I("ngModel",e.contentSearchMail),_("disabled",e.isExpanded),a(4),_("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down"),a(),_("ngIf",!e.isExpanded);}}function Vd(i,c){if(i&1){let e=y();r(0,"div",218)(1,"div",219)(2,"label",220),m(3,"From "),r(4,"a",221),S(5,"i",222),r(6,"span",223),f(7,56),s()()(),r(8,"input",224),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.fromId,t)||(o.fromId=t),h(t);}),s()(),r(9,"div",219)(10,"label",225),m(11,"To "),r(12,"a",221),S(13,"i",222),r(14,"span",223),m(15,"Use comma to separate Email addresses"),s()()(),r(16,"input",226),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.toId,t)||(o.toId=t),h(t);}),s()(),r(17,"div",219)(18,"label",227),m(19,"CC "),r(20,"a",221),S(21,"i",222),r(22,"span",223),m(23,"Use comma to separate Email addresses"),s()()(),r(24,"input",228),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.ccId,t)||(o.ccId=t),h(t);}),s()(),r(25,"div",219)(26,"label",229),m(27,"BCC "),r(28,"a",221),S(29,"i",222),r(30,"span",223),m(31,"Use comma to separate Email addresses"),s()()(),r(32,"input",230),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.bccId,t)||(o.bccId=t),h(t);}),s()(),r(33,"div",219)(34,"label",231),m(35,"Subject "),r(36,"a",221),S(37,"i",222),r(38,"span",223),f(39,57),s()()(),r(40,"input",232),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.subjectId,t)||(o.subjectId=t),h(t);}),s()(),r(41,"div",219)(42,"label",233),f(43,58),s(),r(44,"input",234),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.bodyId,t)||(o.bodyId=t),h(t);}),s()(),r(45,"div",219)(46,"label",235),f(47,59),s(),r(48,"input",236),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.keywordsId,t)||(o.keywordsId=t),h(t);}),s()(),r(49,"div",237)(50,"label",235),f(51,60),s(),r(52,"input",238),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.myDateBefore,t)||(o.myDateBefore=t),h(t);}),s(),m(53," To "),r(54,"input",238),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.myDateAfter,t)||(o.myDateAfter=t),h(t);}),s()(),r(55,"div",154)(56,"a",239),C("click",function(){u(e);let t=p(2);return h(t.searchForContent());}),m(57,"Search"),s()()();}if(i&2){let e=p(2);a(8),I("ngModel",e.fromId),a(8),I("ngModel",e.toId),a(8),I("ngModel",e.ccId),a(8),I("ngModel",e.bccId),a(8),I("ngModel",e.subjectId),a(4),I("ngModel",e.bodyId),a(4),I("ngModel",e.keywordsId),a(4),I("ngModel",e.myDateBefore),_("bsConfig",e.bsConfigBefore),a(2),I("ngModel",e.myDateAfter),_("bsConfig",e.bsConfigAfter);}}function Hd(i,c){if(i&1&&(r(0,"c-row",154),E(1,Vd,58,11,"div",217),s()),i&2){let e=p();a(),_("ngIf",e.isExpanded);}}function Yd(i,c){i&1&&(r(0,"c-row",154)(1,"c-card",101)(2,"c-card-body")(3,"b"),m(4,"There are no results!."),s()()()());}function $d(i,c){if(i&1){let e=y();r(0,"a",256),C("click",function(){u(e);let t=p(2);return h(t.enableMultiSelect());}),S(1,"i",257),r(2,"span",223),f(3,62),s()();}}function Gd(i,c){if(i&1){let e=y();r(0,"a",258),C("click",function(){u(e);let t=p(2);return h(t.removeAll());}),S(1,"i",259),r(2,"span",223),f(3,63),s()();}}function Bd(i,c){if(i&1){let e=y();r(0,"a",260),C("click",function(){u(e);let t=p(2);return h(t.exportCompleteMailboxAsPstG());}),f(1,64),s();}}function zd(i,c){if(i&1){let e=y();r(0,"a",261),C("click",function(){u(e);let t=p(2);return h(t.exportFolderAsPstModalG());}),f(1,65),s();}if(i&2){let e=p(2);_("ngClass",ot(1,Jc,e.addedElementsCount>0,e.addedElementsCount<=0));}}function jd(i,c){if(i&1){let e=y();r(0,"th",250)(1,"input",262),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.isSelectAll,t)||(o.isSelectAll=t),h(t);}),C("change",function(){u(e);let t=p(2);return h(t.toggleSelectAll());}),s()();}if(i&2){let e=p(2);a(),I("ngModel",e.isSelectAll);}}function Xd(i,c){if(i&1){let e=y();r(0,"button",263),C("click",function(){u(e);let t=p(2);return h(t.addToCartFinal());}),f(1,66),s();}}function Wd(i,c){if(i&1){let e=y();r(0,"td")(1,"input",267),F("ngModelChange",function(t){u(e);let o=p().$implicit;return L(o.isChecked,t)||(o.isChecked=t),h(t);}),C("change",function(){u(e);let t=p(4);return h(t.itemSelect());}),s()();}if(i&2){let e=p().$implicit;a(),I("ngModel",e.isChecked);}}function qd(i,c){if(i&1&&(r(0,"td",268)(1,"span",269),m(2),s()()),i&2){let e=p().$implicit;a(),_("ngStyle",Y(2,Kc,e.alphaColor)),a(),D(" ",e.showIcon," ");}}function Zd(i,c){i&1&&S(0,"i",283);}function Jd(i,c){if(i&1){let e=y();r(0,"a",284),C("click",function(){u(e);let t=p(3).$implicit,o=p(3);return h(o.downloadMail(t.userName,t.backupId,t.deviceUUID,o.productTypeContentSearch));}),S(1,"i",285),s();}}function Kd(i,c){if(i&1){let e=y();r(0,"a",286),C("click",function(){u(e);let t=p(3).$implicit,o=p(3);return h(o.onRestoreClickR(t.deviceUUID,t.backupId,t.filePath,t.subject,t.userName));}),S(1,"i",287),s();}}function Qd(i,c){if(i&1&&(r(0,"p"),S(1,"span",288),s()),i&2){let e=p(3).$implicit,n=p(3);a(),_("innerHTML",n.renderHtml(e.displayContent),We);}}function e_(i,c){if(i&1&&(r(0,"a",273)(1,"span",274),m(2),s(),E(3,Zd,1,0,"i",275)(4,Jd,2,0,"a",276)(5,Kd,2,0,"a",277),r(6,"p",278)(7,"span",279),m(8),s(),S(9,"span",280),s(),E(10,Qd,2,1,"p",107),r(11,"p",281)(12,"b"),f(13,67),s(),r(14,"span",282),f(15,68),s()()()),i&2){let e=p(2).$implicit,n=p(3);a(2),D(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),a(),_("ngIf",e.hasAttachments),a(),_("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),a(),_("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),a(3),D(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),a(),_("innerHTML",n.renderHtml(e.sentDate),We),a(),_("ngIf",e.displayContent),a(5),ee(e.userName)(e.filePath),te(15);}}function t_(i,c){i&1&&S(0,"i",291);}function i_(i,c){if(i&1&&(r(0,"p"),S(1,"span",288),s()),i&2){let e=p(3).$implicit,n=p(3);a(),_("innerHTML",n.renderHtml(e.displayContent),We);}}function n_(i,c){if(i&1&&(r(0,"a",289)(1,"span",274),m(2),s(),E(3,t_,1,0,"i",290),r(4,"p",278)(5,"span",279),m(6),s(),S(7,"span",280),s(),E(8,i_,2,1,"p",107),s()),i&2){let e=p(2).$implicit,n=p(3);a(2),D(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),a(),_("ngIf",e.hasAttachments),a(3),D(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),a(),_("innerHTML",n.renderHtml(e.sentDate),We),a(),_("ngIf",e.displayContent);}}function o_(i,c){if(i&1){let e=y();r(0,"td",270),C("click",function(){u(e);let t=p().$implicit,o=p(3);return h(o.viewOutlook11(t.deviceId,t.userName,t.backupId,t,"mail"));}),r(1,"div",154)(2,"div"),E(3,e_,16,9,"a",271)(4,n_,9,5,"a",272),s()()();}if(i&2){let e=p().$implicit;qe("data-name",e.name),a(3),_("ngIf",e.present=="true"),a(),_("ngIf",e.present=="false");}}function r_(i,c){if(i&1){let e=y();r(0,"td",270),C("click",function(){u(e);let t=p().$implicit,o=p(3);return h(o.viewOutlook11(t.deviceId,t.userName,t.backupId,t,"contacts"));}),r(1,"div",154)(2,"div")(3,"a",273)(4,"span",274),m(5),s()()()()();}if(i&2){let e=p().$implicit;qe("data-name",e.name),a(5),D(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ");}}function s_(i,c){if(i&1&&(r(0,"tr"),E(1,Wd,2,1,"td",107)(2,qd,3,4,"td",265)(3,o_,5,3,"td",266)(4,r_,6,2,"td",266),s()),i&2){let e=c.$implicit,n=p(3);De("selected-rowMail",n.isSelected(e)),a(),_("ngIf",n.isMultiSelectEnabled),a(),_("ngIf",e.type=="File"),a(),_("ngIf",e.type==="File"&&e.filePath!=="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO"),a(),_("ngIf",e.type==="File"&&e.filePath==="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO");}}function a_(i,c){if(i&1&&(r(0,"tbody"),E(1,s_,5,6,"tr",264),s()),i&2){let e=p(2);a(),_("ngForOf",e.foundMailsCS);}}function l_(i,c){i&1&&(r(0,"c-card-body",292)(1,"p"),f(2,69),s()());}function c_(i,c){i&1&&(r(0,"c-card-body",292)(1,"p"),f(2,70),s()());}function d_(i,c){if(i&1&&(r(0,"div",304)(1,"b"),f(2,72),s(),m(3),r(4,"span",305),m(5),s()()),i&2){let e=p(3);a(3),D(" ",e.currentMailFrom," "),a(2),V(e.currentMailSentDate);}}function __(i,c){if(i&1&&(r(0,"div",306)(1,"b"),f(2,73),s(),m(3),s()),i&2){let e=p(3);a(3),D(" ",e.currentMailTo,"");}}function p_(i,c){if(i&1&&(r(0,"div",307)(1,"b"),f(2,74),s(),m(3),s()),i&2){let e=p(3);a(3),D(" ",e.currentMailCc,"");}}function u_(i,c){if(i&1&&(r(0,"div",308)(1,"b"),f(2,75),s(),m(3),s()),i&2){let e=p(3);a(3),D(" ",e.currentMailBcc,"");}}function h_(i,c){if(i&1&&(r(0,"span",312),m(1),s()),i&2){let e=c.$implicit;a(),D(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ");}}function m_(i,c){if(i&1&&(r(0,"div",309)(1,"div",310),E(2,h_,2,1,"span",311),m(3," \xA0 "),s()()),i&2){let e=p(3);a(2),_("ngForOf",e.currentMailAttachments);}}function g_(i,c){if(i&1&&(r(0,"c-card-body")(1,"div",293),S(2,"div",294),r(3,"div",295)(4,"div",296)(5,"h3"),f(6,71),s()(),E(7,d_,6,2,"div",297)(8,__,4,1,"div",298)(9,p_,4,1,"div",299)(10,u_,4,1,"div",300)(11,m_,4,1,"div",301),S(12,"br"),r(13,"div",302),S(14,"iframe",303,8),s()()()()),i&2){let e=p(2);a(6),ee(e.currentMailSubject),te(6),a(),_("ngIf",e.currentMailFrom!=""),a(),_("ngIf",e.currentMailTo!=""),a(),_("ngIf",e.currentMailCc!=""),a(),_("ngIf",e.currentMailBcc!=""),a(),_("ngIf",e.currentMailAttachments.length>0);}}function f_(i,c){if(i&1&&(r(0,"a",339),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactEmail);}}function C_(i,c){if(i&1&&(r(0,"a",340),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactOfficeLocation);}}function v_(i,c){if(i&1&&(r(0,"a",341),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactCompanyName);}}function S_(i,c){if(i&1&&(r(0,"a",342),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactJobTitle);}}function E_(i,c){if(i&1&&(r(0,"a",343),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactDepartment);}}function T_(i,c){if(i&1&&(r(0,"a",344),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactMobile);}}function y_(i,c){if(i&1&&(r(0,"a",345),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactHomePhones);}}function b_(i,c){if(i&1&&(r(0,"a",346),m(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactBusinessPhones);}}function A_(i,c){if(i&1){let e=y();r(0,"c-card-body")(1,"div",313)(2,"div",314)(3,"div",315),S(4,"c-avatar",316),s(),r(5,"div",317)(6,"div",318)(7,"span",319),m(8),s()()()(),r(9,"div",320),S(10,"hr"),r(11,"div",321)(12,"label",279),m(13,"Email: "),s(),S(14,"br"),r(15,"span",322),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullEmail=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullEmail=!1);}),m(16),s(),E(17,f_,2,1,"a",323),s(),r(18,"div",321)(19,"label",279),m(20,"Location: "),s(),S(21,"br"),r(22,"span",324),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullLocation=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullLocation=!1);}),m(23),s(),E(24,C_,2,1,"a",325),s(),r(25,"div",321)(26,"label",279),m(27,"Company: "),s(),S(28,"br"),r(29,"span",326),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullCompanyName=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullCompanyName=!1);}),m(30),s(),E(31,v_,2,1,"a",327),s(),r(32,"div",321)(33,"label",279),m(34,"Job title: "),s(),S(35,"br"),r(36,"span",328),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullJobTitle=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullJobTitle=!1);}),m(37),s(),E(38,S_,2,1,"a",329),s(),r(39,"div",321)(40,"label",279),m(41,"Department: "),s(),S(42,"br"),r(43,"span",330),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullDepartment=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullDepartment=!1);}),m(44),s(),E(45,E_,2,1,"a",331),s(),r(46,"div",321)(47,"label",279),m(48,"Business Address: "),s(),S(49,"br"),r(50,"span",319),m(51),s()(),r(52,"div",321)(53,"label",279),m(54,"Home Address: "),s(),S(55,"br"),r(56,"span",319),m(57),s()(),r(58,"div",321)(59,"label",279),m(60,"Birthday: "),s(),S(61,"br"),r(62,"span",332),m(63),s()(),r(64,"div",321)(65,"label",279),m(66,"Mobile phone: "),s(),S(67,"br"),r(68,"span",333),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullMobile=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullMobile=!1);}),m(69),s(),E(70,T_,2,1,"a",334),s(),r(71,"div",321)(72,"label",279),m(73,"Home phone: "),s(),S(74,"br"),r(75,"span",335),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullHomePhone=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullHomePhone=!1);}),m(76),s(),E(77,y_,2,1,"a",336),s(),r(78,"div",321)(79,"label",279),m(80,"Business phone: "),s(),S(81,"br"),r(82,"span",337),C("mouseenter",function(){u(e);let t=p(2);return h(t.showFullBusinessPhone=!0);})("mouseleave",function(){u(e);let t=p(2);return h(t.showFullBusinessPhone=!1);}),m(83),s(),E(84,b_,2,1,"a",338),s()()()();}if(i&2){let e=p(2);a(4),_("size","md"),a(3),_("title",e.fullCombinedName),a(),D(" ",e.truncatedCombinedName," "),a(7),_("title",e.contactEmail.length>20?e.contactEmail:""),a(),D(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),a(),_("ngIf",e.contactEmail.length>20),a(5),_("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),a(),D(" ",e.contactOfficeLocation.length>20?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),a(),_("ngIf",e.contactOfficeLocation.length>20),a(5),_("title",e.contactCompanyName.length>20?e.contactCompanyName:""),a(),D(" ",e.contactCompanyName.length>20?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),a(),_("ngIf",e.contactCompanyName.length>20),a(5),_("title",e.contactJobTitle.length>20?e.contactJobTitle:""),a(),D(" ",e.contactJobTitle.length>20?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),a(),_("ngIf",e.contactJobTitle.length>20),a(5),_("title",e.contactDepartment.length>20?e.contactDepartment:""),a(),D(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),a(),_("ngIf",e.contactDepartment.length>20),a(5),_("title",e.combinedBusinessAddress),a(),D(" ",e.truncatedBusinessAddress," "),a(5),_("title",e.combinedHomeAddress),a(),D(" ",e.truncatedHomeAddress," "),a(6),V(e.contactBirthday),a(5),_("title",e.contactMobile.length>20?e.contactMobile:""),a(),D(" ",e.contactMobile.length>20?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),a(),_("ngIf",e.contactMobile.length>20),a(5),_("title",e.contactHomePhones.length>20?e.contactHomePhones:""),a(),D(" ",e.contactHomePhones.length>20?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),a(),_("ngIf",e.contactHomePhones.length>20),a(5),_("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),a(),D(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),a(),_("ngIf",e.contactBusinessPhones.length>20);}}function O_(i,c){if(i&1){let e=y();r(0,"th"),m(1),r(2,"a",347),C("click",function(){u(e);let t=p(2);return h(t.removeAll());}),f(3,76),s()();}if(i&2){let e=p(2);a(),He("",e.addedElementsCount," out of ",e.totalCountGS," selected ");}}function w_(i,c){if(i&1&&(r(0,"th"),f(1,77),s()),i&2){let e=p(2);a(),ee(e.addedElementsCount),te(1);}}function R_(i,c){if(i&1){let e=y();r(0,"tr")(1,"td",348)(2,"span",349),m(3),s(),r(4,"a",350),C("click",function(){let t=u(e),o=t.$implicit,d=t.index,l=p(2);return h(l.removeItem(d,o.subject,o.backupId,o.subject));}),S(5,"i",351),s()()();}if(i&2){let e=c.$implicit;a(3),V(e.subject);}}function M_(i,c){if(i&1&&(r(0,"c-row",240)(1,"c-card-header",241),E(2,$d,4,0,"a",242)(3,Gd,4,0,"a",243),r(4,"span")(5,"b"),f(6,61),s()(),E(7,Bd,2,0,"a",244)(8,zd,2,4,"a",245),s(),r(9,"c-card",246)(10,"c-card-body")(11,"div",247)(12,"table",248)(13,"thead",200)(14,"tr"),E(15,jd,2,1,"th",249),r(16,"th",250),m(17," Results "),E(18,Xd,2,0,"button",251),s()()(),E(19,a_,2,1,"tbody",107),s()()()(),r(20,"c-card",246),E(21,l_,3,0,"c-card-body",252)(22,c_,3,0,"c-card-body",252)(23,g_,16,6,"c-card-body",107)(24,A_,85,32,"c-card-body",107),s(),r(25,"c-card",253)(26,"c-card-body")(27,"table",254)(28,"colgroup"),S(29,"col",255),s(),r(30,"thead")(31,"tr"),E(32,O_,4,2,"th",107)(33,w_,2,1,"th",107),s()(),r(34,"tbody"),E(35,R_,6,1,"tr",203),s()()()()()),i&2){let e=p();a(2),_("ngIf",!e.isMultiSelectEnabled),a(),_("ngIf",e.isMultiSelectEnabled),a(3),ee(e.totalCountGS),te(6),a(),_("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&(e.product==null||e.product.downloadsConfigurations==null||e.product.downloadsConfigurations.search==null?null:e.product.downloadsConfigurations.search.allResultsToPST)),a(),_("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),a(),_("ngClass",x(22,Wc)),a(3),_("hover",!0)("responsive",!0)("striped",!1),a(3),_("ngIf",e.isMultiSelectEnabled),a(3),_("ngIf",e.updateAddToCartButtonVisibility()),a(),_("ngIf",!e.noFilesFoundCS),a(),_("ngClass",ot(23,qc,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),a(),_("ngIf",!e.showMailPreview),a(),_("ngIf",e.showNotAvailable),a(),_("ngIf",e.showMailView&&e.showMailPreview),a(),_("ngIf",e.showContactsView),a(),_("ngClass",x(26,Zc))("ngStyle",Y(27,Le,e.isMultiSelectEnabled?"block":"none")),a(7),_("ngIf",e.addedElementsCount>0),a(),_("ngIf",e.addedElementsCount==0),a(2),_("ngForOf",e.addedElementsUpdated);}}function P_(i,c){if(i&1){let e=y();r(0,"a",358),C("click",function(){u(e);let t=p(2);return h(t.searchForContentNavigate(t.first));}),S(1,"i",359),s();}}function N_(i,c){if(i&1){let e=y();r(0,"a",360),C("click",function(){u(e);let t=p(2);return h(t.searchForContentNavigate(t.previous));}),S(1,"i",361),s();}}function D_(i,c){if(i&1){let e=y();r(0,"a",362),C("click",function(){u(e);let t=p(2);return h(t.searchForContentNavigate(t.next));}),S(1,"i",363),s();}}function I_(i,c){if(i&1){let e=y();r(0,"a",364),C("click",function(){u(e);let t=p(2);return h(t.searchForContentNavigate(t.last));}),S(1,"i",365),s();}}function L_(i,c){if(i&1&&(r(0,"c-row",110)(1,"div",352)(2,"div",353),E(3,P_,2,0,"a",354)(4,N_,2,0,"a",355)(5,D_,2,0,"a",356)(6,I_,2,0,"a",357),s()()()),i&2){let e=p();a(3),_("ngIf",e.first!=""),a(),_("ngIf",e.previous!=""),a(),_("ngIf",e.next!=""),a(),_("ngIf",e.last!="");}}function F_(i,c){i&1&&(r(0,"small"),m(1),ne(2,"translate"),s()),i&2&&(a(),D(" ",rt(2,1,"PST name is required.")," "));}function k_(i,c){i&1&&(r(0,"small"),m(1),ne(2,"translate"),s()),i&2&&(a(),D(" ",rt(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "));}function U_(i,c){i&1&&(r(0,"small"),m(1),ne(2,"translate"),s()),i&2&&(a(),D(" ",rt(2,1,"PST name must be at least 3 characters long.")," "));}function x_(i,c){if(i&1&&(r(0,"div",366),E(1,F_,3,3,"small",107)(2,k_,3,3,"small",107)(3,U_,3,3,"small",107),s()),i&2){p();let e=ie(91);a(),_("ngIf",e.errors==null?null:e.errors.required),a(),_("ngIf",e.errors&&e.errors.pattern),a(),_("ngIf",e.errors&&e.errors.minlength);}}function V_(i,c){if(i&1){let e=y();r(0,"button",367),C("click",function(){u(e);let t=p();return h(t.exportCompleteMailboxAsPstTriggerG());}),f(1,78),s();}if(i&2){p();let e=ie(91);_("disabled",e.invalid);}}function H_(i,c){if(i&1){let e=y();r(0,"button",367),C("click",function(){u(e);let t=p();return h(t.exportSelectedAsPstG());}),m(1,"Proceed"),s();}if(i&2){p();let e=ie(91);_("disabled",e.invalid);}}function Y_(i,c){i&1&&(r(0,"th"),f(1,79),s());}function $_(i,c){if(i&1&&(r(0,"span"),f(1,80),ne(2,"slice"),s()),i&2){let e=p(2);a(2),ee(Ie(2,1,e.progressG.subject,0,40)),te(1);}}function G_(i,c){if(i&1&&(r(0,"td")(1,"span",368),m(2),ne(3,"slice"),s(),E(4,$_,3,5,"span",107),s()),i&2){let e=p();a(),$t("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),a(),V(Ie(3,5,e.progressG.currentFolderPath,0,20)),a(2),_("ngIf",e.progressG.subject);}}function B_(i,c){i&1&&(r(0,"td"),f(1,81),s());}function z_(i,c){if(i&1&&(r(0,"td"),m(1),r(2,"div",369)(3,"div",370),m(4),ne(5,"number"),s()()()),i&2){let e=p();a(),He("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),a(),Je("title","",e.progressG.totalRestorePct,"%"),a(),it("width",e.progressG.totalRestorePct,"%"),a(),D(" ",Gt(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ");}}function j_(i,c){i&1&&(r(0,"td"),f(1,82),s());}function X_(i,c){if(i&1){let e=y();r(0,"button",158),C("click",function(){u(e);let t=p();return h(t.cancelDownloadAsPstG());}),f(1,83),s();}}function W_(i,c){i&1&&(r(0,"div",392)(1,"ul",393)(2,"li",394)(3,"strong",395),m(4,"No Users found"),s(),S(5,"ul",396),s()()());}function q_(i,c){if(i&1&&(r(0,"option",120),m(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),D(" ",e.deviceName," ");}}function Z_(i,c){if(i&1){let e=y();r(0,"div",378)(1,"span",124),f(2,90),s(),r(3,"div",379)(4,"c-form-check",380)(5,"input",397),F("ngModelChange",function(t){u(e);let o=p(2);return L(o.suspendBackupR,t)||(o.suspendBackupR=t),h(t);}),s()()()();}if(i&2){let e=p(2);a(4),_("switch",!0),a(),I("ngModel",e.suspendBackupR);}}function J_(i,c){if(i&1){let e=y();r(0,"c-card"),S(1,"c-card-header",153),r(2,"c-card-body")(3,"c-row")(4,"span"),m(5,"Source Path - "),r(6,"span"),m(7),s()()(),r(8,"c-row",154)(9,"p"),f(10,84),s(),r(11,"div",219)(12,"label"),m(13,"User Id"),s(),r(14,"select2",371),F("ngModelChange",function(t){u(e);let o=p();return L(o.selectedValueR,t)||(o.selectedValueR=t),h(t);}),C("search",function(t){u(e);let o=p();return h(o.onSearchR(t));})("update",function(t){u(e);let o=p();return h(o.updateR(t));}),s(),E(15,W_,6,0,"div",372),s(),r(16,"div",219)(17,"label"),m(18,"Asset Name"),s(),r(19,"select",373,9),C("change",function(){u(e);let t=ie(20),o=p();return h(o.onDeviceChangeR(t.value));}),E(21,q_,2,2,"option",196),s()()(),r(22,"c-row")(23,"div",144)(24,"label",374),f(25,85),s(),r(26,"c-input-group",101)(27,"input",375),F("ngModelChange",function(t){u(e);let o=p();return L(o.destinationPathR,t)||(o.destinationPathR=t),h(t);}),s(),r(28,"button",376),C("click",function(){u(e);let t=ie(20),o=p();return h(o.browseR(t.value));}),f(29,86),s()()()(),r(30,"c-row",154)(31,"h3"),f(32,87),s(),r(33,"div",165),E(34,Z_,6,2,"div",377),r(35,"div",378)(36,"span",124),f(37,88),s(),r(38,"div",379)(39,"c-form-check",380)(40,"input",381),F("ngModelChange",function(t){u(e);let o=p();return L(o.inplaceRestoreR,t)||(o.inplaceRestoreR=t),h(t);}),s()()()(),r(41,"div",378)(42,"span",124),f(43,89),s(),r(44,"div",379)(45,"c-form-check",380)(46,"input",382),F("ngModelChange",function(t){u(e);let o=p();return L(o.restoreDeletedFilesByRestoreR,t)||(o.restoreDeletedFilesByRestoreR=t),h(t);}),s()()()()(),r(47,"div",383)(48,"div",384)(49,"span",385),m(50,"Restore Data As Of"),s(),r(51,"div",386)(52,"c-form-check",380)(53,"input",387),F("ngModelChange",function(t){u(e);let o=p();return L(o.dateBeforeR,t)||(o.dateBeforeR=t),h(t);}),C("change",function(){u(e);let t=p();return h(t.toggleDateBeforeR());}),s()()()(),r(54,"div",388)(55,"div",389)(56,"input",390),F("ngModelChange",function(t){u(e);let o=p();return L(o.myDateBeforeR,t)||(o.myDateBeforeR=t),h(t);}),s(),r(57,"timepicker",391),F("ngModelChange",function(t){u(e);let o=p();return L(o.myTimeBeforeR,t)||(o.myTimeBeforeR=t),h(t);}),s()()()()()()();}if(i&2){let e=p();a(7),V(e.currentFilePathR),a(7),_("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),I("ngModel",e.selectedValueR),a(),_("ngIf",e.deviceUsersListR.length===0),a(6),_("ngForOf",e.devicesR),a(3),_("ngClass",Y(26,Qc,!e.inplaceRestoreR)),a(3),I("ngModel",e.destinationPathR),_("required",!e.inplaceRestoreR)("readonly",!0),a(7),_("ngIf",!x(28,bt).includes(e.productTypeContentSearch)),a(5),_("switch",!0),a(),I("ngModel",e.inplaceRestoreR),a(5),_("switch",!0),a(),I("ngModel",e.restoreDeletedFilesByRestoreR),a(6),_("switch",!0),a(),I("ngModel",e.dateBeforeR),a(3),I("ngModel",e.myDateBeforeR),_("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),a(),I("ngModel",e.myTimeBeforeR),_("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR);}}function K_(i,c){if(i&1&&(r(0,"c-row")(1,"span"),le(2,91),S(3,"span"),ce(),s()()),i&2){let e=p(2);a(3),ee(e.currentFilePathR),te(2);}}function Q_(i,c){i&1&&(r(0,"th"),m(1,"Current item being processed"),s());}function ep(i,c){i&1&&(r(0,"th"),m(1,"Source Path "),s());}function tp(i,c){if(i&1&&(r(0,"span"),f(1,92),ne(2,"slice"),s()),i&2){let e=p(3);a(2),ee(Ie(2,1,e.progressR.subject,0,40)),te(1);}}function ip(i,c){if(i&1&&(r(0,"td")(1,"span",368),m(2),ne(3,"slice"),s(),E(4,tp,3,5,"span",107),s()),i&2){let e=p(2);a(),$t("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),a(),V(Ie(3,5,e.progressR.currentFolderPath,0,20)),a(2),_("ngIf",e.progressR.subject);}}function np(i,c){if(i&1&&(r(0,"td")(1,"span",398),m(2),ne(3,"slice"),s()()),i&2){let e=p(2);a(),de("title",e.progressR.folderName),a(),V(Ie(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60));}}function op(i,c){i&1&&(r(0,"td"),m(1,"-"),s());}function rp(i,c){if(i&1&&(r(0,"td"),m(1),r(2,"div",399)(3,"div",370),m(4),ne(5,"number"),s()()()),i&2){let e=p(3);a(),He("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore," "),a(),Je("title","",e.progressR.totalRestorePct,"%"),a(),it("width",e.progressR.totalRestorePct,"%"),a(),D(" ",Gt(5,7,e.progressR.totalRestorePct,"1.0-0"),"% ");}}function sp(i,c){if(i&1&&E(0,rp,6,10,"td",107),i&2){let e=p(2);_("ngIf",e.progressR.totalNoOfFilesForRestore!="");}}function ap(i,c){i&1&&(r(0,"td"),S(1,"div",400),s());}function lp(i,c){i&1&&(r(0,"td"),m(1,"0"),s());}function cp(i,c){if(i&1&&(r(0,"c-card"),S(1,"c-card-header",153),r(2,"c-card-body"),E(3,K_,4,1,"c-row",107),r(4,"c-row",154)(5,"h3"),m(6,"Currently Running Restore Statistics"),s(),r(7,"table",155)(8,"thead")(9,"tr"),E(10,Q_,2,0,"th")(11,ep,2,0,"th"),r(12,"th"),m(13,"Overall Progress"),s()()(),r(14,"tbody")(15,"tr"),E(16,ip,5,9,"td",107)(17,np,4,6,"td",107)(18,op,2,0,"td",107)(19,sp,1,1,"td")(20,ap,2,0,"td")(21,lp,2,0,"td",107),s()()()()()()),i&2){let e=p();a(3),_("ngIf",!x(7,gl).includes(e.productTypeContentSearch)),a(7),Ze(x(8,gl).includes(e.productTypeContentSearch)?11:10),a(6),_("ngIf",!x(9,bt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),a(),_("ngIf",x(10,bt).includes(e.productTypeContentSearch)),a(),_("ngIf",!x(11,bt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),a(),Ze(!x(12,bt).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?19:20),a(2),_("ngIf",!x(13,bt).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="");}}function dp(i,c){if(i&1){let e=y();r(0,"button",401),C("click",function(){u(e);let t=p();return h(t.initiateRestoreR());}),f(1,93),s();}if(i&2){let e=p();_("disabled",!e.selectedValueR||!e.selectedDeviceUUIDR||!e.inplaceRestoreR&&!e.destinationPathR.trim());}}function _p(i,c){if(i&1){let e=y();r(0,"button",402),C("click",function(){u(e);let t=p();return h(t.cancelRunningRestoreR());}),f(1,94),s();}}function pp(i,c){if(i&1){let e=y();r(0,"button",403),C("click",function(){u(e);let t=p();return h(t.closeRestorePopupR());}),f(1,95),s();}}function up(i,c){if(i&1){let e=y();r(0,"button",404),C("click",function(){u(e);let t=p();return h(t.closeRestorePopupR());}),f(1,96),s();}}function hp(i,c){i&1&&(le(0,27,1),S(1,"span"),ce());}function mp(i,c){i&1&&(le(0,27,2),S(1,"span"),ce());}function gp(i,c){if(i&1&&(le(0,27,3),S(1,"span"),ce()),i&2){let e=p();a(),ee(e.browsePathR),te(0);}}function fp(i,c){if(i&1){let e=y();r(0,"button",405),C("click",function(){u(e);let t=p();return h(t.backBrowseR());}),le(1,97),S(2,"i",406),ce(),s();}}function Cp(i,c){i&1&&(r(0,"tr")(1,"td",407)(2,"div",408)(3,"span",409),f(4,98),s()()()());}function vp(i,c){if(i&1){let e=y();r(0,"tr",410),C("click",function(){let t=u(e).$implicit,o=p();return h(o.onSingleClickR(t.folderName||t,t.folderId));})("dblclick",function(t){let o=u(e).$implicit,d=p();return h(d.onDoubleClickR(t,o.folderName||o,o.folderId));}),r(1,"td")(2,"span",319),m(3),s()()();}if(i&2){let e=c.$implicit,n=p();_("ngClass",Y(3,ed,n.selectedBrowseItemR===(e.folderName||e))),a(2),de("title",e.folderName||e),a(),D(" ",e.folderName||e," ");}}var Cl=(()=>{class i{constructor(e,n,t,o,d,l,g,T,O,w,M,R,P,N,k){this.authService=e,this.router=n,this.apiService=t,this.toastr=o,this.http=d,this.sharedService=l,this.renderer=g,this.cdr=T,this.sanitizer=O,this.configService=w,this.licenseCheckService=M,this.translatorService=R,this.userRoleService=P,this.userManagementService=N,this.assetManagementService=k,this.PRODUCTS_CONFIG=Qa,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.product=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.zipFileNameG="",this.displayPststyleG="none",this.displayZipstyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.exportCompleteSearchG=!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.hasBackupLicense=!1,this.hasContentSearchLicense=!1,this.maxItemsAllowedInPstExportWhileSearch=0,this.close=new be(),setTimeout(()=>{this.userDeviceSearch.nativeElement.focus();},0);let oe=new Date(),J=new Date();J.setFullYear(oe.getFullYear()-1),new Date().setDate(oe.getDate()-14),this.bsConfigBefore={minDate:J,maxDate:oe,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:J,maxDate:oe,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 K(this,null,function*(){if(this.userType=yield this.userRoleService.getUserRole(),this.userType==="user"){let e=this.sharedService.getDataByKey("userName"),n=atob(e),t={value:n};this.deviceUsersList=[{label:"",options:[{value:n,label:n}]}],this.selectedValue=n,this.update(t),this.deviceUsersListCS=[{label:"",options:[{value:n,label:n}]}],this.selectedValueCS=n,this.updateContentSearch(t),this.deviceUsersListR=[{label:"",options:[{value:n,label:n}]}],this.cdr.detectChanges();}else this.setActiveSearchTab("default",0),this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"}]}],this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedValueSiteCS="All Sites",this.siteListCS=[{label:"",options:[{value:"All Sites",label:"All Sites"}]}];yield this.initializeEnvDetails(),this.getCloudProperties();});}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);this.maxItemsAllowedInPstExportWhileSearch=t.cloudPropertyElement.maxItemsAllowedInPstExportWhileSearch;});}initializeEnvDetails(){return new Promise(e=>{let n=this.licenseCheckService.getEnvDetails();if(!n||Object.keys(n).length===0)this.licenseCheckService.checkLicense().subscribe({next:t=>{this.handleLicenseResponse(t.headers),e();},error:t=>{console.error("License check failed:",t),this.handleLicenseResponse(t.headers),e();}});else{this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.hasBackupLicense=["backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","Google Drive"].some(o=>this.inclusionLicenses.includes(o));let t=["exchange","gdrive","gmail","onedrive","sharepoint","sync"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(o=>t.some(d=>o===`contentsearchenabledfor${d}`)),this.applyEnvDetails(n),e();}});}handleLicenseResponse(e){let n={};e?.keys().forEach(t=>{n[t.toLowerCase()]=e.get(t)||"";}),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(t=>{e[t]=="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.assetManagementService.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===404)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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Info")),this.intervalId=setInterval(()=>{this.getDownloadPstEventsProgressG();},5e3),console.error("Not Found: ",e.message);break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("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){return K(this,null,function*(){this.activeTabIndex=n;let t;switch(e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus();},0);break;case"file":t=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=t.find(o=>o.key===this.productTypeFiles||o.key2===this.productTypeFiles||o.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus();},0);break;case"content":t=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=t.find(o=>o.key===this.productTypeContentSearch||o.key2===this.productTypeContentSearch||o.key3===this.productTypeContentSearch),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;}typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath);});}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(ai.HTML,e)||"");}logout(){console.log("Logout clicked 154"),this.authService.logout(),console.log("Token after logout"+this.authService.Token),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.userManagementService.getUsersSearch(this.userAssetSearchText),n=this.apiService.getDeviceSearch(this.userAssetSearchText),t=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):je(null);co([e,n,t]).subscribe(([o,d,l])=>{console.log("getUsersSearch response body:",JSON.stringify(o.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(o.headers)),console.log("getDeviceSearch response body:",JSON.stringify(d.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(d.headers)),o.body.data&&o.body.data.users?(this.noUsersFoundText="",this.foundUsers=o.body.data.users.map(g=>Ne(X({},g),{userNameEncoded:btoa(g.userName)}))):(this.foundUsers=[],this.noUsersFoundText=this.translatorService.getTranslation("No Users found.")),d.body.data&&d.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=d.body.data.devices.map(g=>Ne(X({},g),{userNameEncoded:btoa(g.userName),deviceNameEncoded:btoa(g.deviceName)}))):(this.noDevicesFoundText=this.translatorService.getTranslation("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(g=>Ne(X({},g),{userNameEncoded:btoa(g.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.translatorService.getTranslation("No Sites found.")));},o=>{switch(console.error("Error from Api's call: ",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.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 t=document.querySelector(".header.header-sticky");t&&this.renderer.setStyle(t,"z-index","1000");let o=document.querySelector(".overlay");o&&this.renderer.setStyle(o,"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.assetManagementService.getUserWithDevice(e.search).subscribe(t=>{if(t.body&&t.body.searchUserElementList){let o=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersList=[{label:"",options:o}],this.cdr.detectChanges();}else this.deviceUsersList=[];},t=>{});}update(e){this.searched=!0,console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(t=>{if(t.body?.data?.devices){this.deviceType=this.productTypeFiles;let o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":this.deviceType=="mail"?o="OUTLOOK":o=this.deviceType,this.devices=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.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;},t=>{console.error("Error during search: ",t);});}updateNow(e){this.searched=!0,this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){this.deviceType=this.productTypeContentSearch;let t="";this.deviceType=="ODB"?t="ONEDRIVE":this.deviceType=="backup"?t="BACKUP":this.deviceType=="mail"?t="OUTLOOK":t=this.deviceType,this.devicesR=n.body.data.devices.filter(o=>o.blocked===!1&&o.deviceType==t).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.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){return K(this,null,function*(){let t=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let d={value:this.selectedValue};this.update(d);}this.devices=[];let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(d=>d.key===t||d.key2===t||d.key3===t),typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath);});}searchForFiles(){if((this.productTypeFiles=="backup"||this.productTypeFiles=="oneDrive"||this.productTypeFiles=="Google Drive")&&(this.selectedValue==""||this.selectedValue==null)){this.toastr.error(this.translatorService.getTranslation("Please select a User Id."));return;}if(this.productTypeFiles=="SHAREPOINT"){if(this.selectedValueSite==""||this.selectedValueSite==null){this.toastr.error(this.translatorService.getTranslation("Please select a SharePoint Site."));return;}this.selectedValue=this.selectedValueSite,this.selectedDeviceName=this.selectedValue+" (Microsoft SharePoint)";}if(this.filesSearchText==""){this.toastr.error(this.translatorService.getTranslation("Please enter file name to search."));return;}this.apiService.getFilesSearch(this.productTypeFiles,this.selectedValue,this.selectedDeviceName,this.filesSearchText).subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);let o=[];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 d=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 g={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.assetManagementService.getDeviceInfo(g.deviceUUID).subscribe(T=>{let O=T.body.BSDeviceInfoElement,w=O.osType.substring(0,3).toLowerCase(),M="Windows",R="Windows";w==="win"?(M="Windows",R="Windows"):w==="mac"?(M="Mac",R="Mac"):w==="one"?(M="ONEDRIVE",R="ONEDRIVE"):w==="out"?(M="OUTLOOK",R="OUTLOOK"):w==="sha"&&(M="SHAREPOINT",R="SHAREPOINT"),g.deviceType=M,g.deviceOs=R,g.deviceId=O.deviceId?O.deviceId.toString():"",g.blocked="active",g.deviceName=O.deviceName?O.deviceName.toString():"",g.deviceNameNew=O.deviceName?O.deviceName.replace(/ /g,"_PB_"):"",g.deviceNameEnc=O.deviceName?btoa(O.deviceName):"",o.push(g),this.foundFiles=o,this.noFilesFound=!1,console.log("Files:",JSON.stringify(o));},T=>{switch(console.error("Error from getDeviceInfo:",T),T.status){case 400:console.error("Bad Request:",T.message);break;case 401:this.toastr.info(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden:",T.message);break;case 404:console.error("Not Found:",T.message);break;case 500:case 503:console.error("Internal Server Error:",T.message);break;default:console.error("Unknown Error:",T.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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("No Meta data Configuration found."),this.translatorService.getTranslation("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.assetManagementService.searchSite(e.search).subscribe(t=>{if(t.body&&t.body.stringElementList){let o=t.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteList=[{label:"",options:o}],this.cdr.detectChanges();}else this.siteList=[];},t=>{});}updateSite(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(t=>{if(t.body?.data?.devices){this.deviceType=this.productTypeFiles;let o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceType,this.devices=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.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;},t=>{console.error("Error during search: ",t);});}downloadFile(e,n,t,o,d,l,g,T,O){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+t),console.log("backup : "+o),console.log("fileUser : "+d),console.log("deviceUUID : "+l),console.log("folder : "+g),console.log("token : "+this.sharedService.getDataByKey("authToken")),["OUTLOOK","Gmail","mail"].includes(O)){this.downloadMail(d,t,l,O==="mail"?"OUTLOOK":O);return;}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(t,l,parseFloat((T/1024).toFixed(2))>=10,g==="true",O);return;}let w="https://",M=this.configService.baseFolder,R="/BluKryptBuilder/cloud/",P=this.configService.cloudName,N=this.authService.Token,k=this.sharedService.getDataByKey("userName"),oe=`${w}${M}${R}${P}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${N}&loginUserName=${k}&isSync=false+&deviceUUID=${l}&backupID=${t}&backup=${o}&userName=${this.base64Encode(d)}&moveToDownloads=false`;window.open(oe,"_self");}gDriveDownloadFile(e,n,t,o=!1,d){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),o?"FOLDER":t?"LARGE_FILE":"SMALL_FILE",d,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,o||t)o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let g=0,T=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),g++,g>=T&&(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,o||t)o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let g=0,T=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),g++,g>=T&&(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,t,o,d){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",d),this.sharedService.setData("currentDeviceId",t),this.sharedService.setData("currentDeviceType",o),this.isOverlayVisible=!1;let l=document.querySelector(".header.header-sticky");l&&this.renderer.setStyle(l,"z-index","1000");let g=document.querySelector(".overlay");g&&this.renderer.setStyle(g,"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;if(n=="all"||n=="All"){this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"}]}],this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";return;}this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueCS=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(t=>{if(t.body&&t.body.searchUserElementList){let o=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"},...(o||[])]}],this.cdr.detectChanges();}else this.deviceUsersListCS=[];},t=>{});}updateContentSearch(e){console.log("value : "+e.value);let n=e.value;if(n.length<3){this.showMinCharMessage=!0;return;}else this.showMinCharMessage=!1;this.assetManagementService.getUserDevice(n).subscribe(t=>{if(t.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceTypeCS=="backup"?o="BACKUP":this.deviceTypeCS=="mail"?o="OUTLOOK":this.deviceTypeCS=="Gmail"?o="Gmail":o=this.deviceTypeCS,this.devicesCS=t.body.data.devices.filter(d=>d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.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;},t=>{console.error("Error during search: ",t),this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}];});}updateNowContentSearch(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let t="";this.deviceTypeCS=="ODB"?t="ONEDRIVE":this.deviceTypeCS=="backup"?t="BACKUP":this.deviceTypeCS=="mail"?t="OUTLOOK":this.deviceTypeCS=="Gmail"?t="Gmail":t=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(o=>o.deviceType==t).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.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){return K(this,null,function*(){this.foundMailsCS=[],this.foundFiles=[],this.foundFilesCS=[],this.noFilesFound=!1,this.noFilesFoundCS=!1;let t=e.target.value;if(this.contentSearchText="",this.userType!=="user")this.deviceUsersListCS=[],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="",this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"}]}],this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.cdr.detectChanges();else{let d={value:this.selectedValueCS};this.updateContentSearch(d);}let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(d=>d.key===t||d.key2===t||d.key3===t),typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),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=[],this.foundFilesCS=[],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(this.translatorService.getTranslation("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(this.translatorService.getTranslation("Please specify a search string."));return;}else this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error(this.translatorService.getTranslation("Please enter file name to search."));return;}if((this.myDateAfter!=null||this.myDateBefore!=null)&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error(this.translatorService.getTranslation("Please select a username."));return;}this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS=""),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),t=JSON.parse(n);let o=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let d=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&(e.body.data.fileElementList.forEach(l=>{let g={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.fileRevisionId?l.fileRevisionId.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.assetManagementService.getDeviceInfo(g.deviceUUID).subscribe(T=>{let O=T.body.BSDeviceInfoElement,w=O.osType.substring(0,3).toLowerCase(),M="Windows",R="Windows";w==="win"?(M="Windows",R="Windows"):w==="mac"?(M="Mac",R="Mac"):w==="one"?(M="ONEDRIVE",R="ONEDRIVE"):w==="out"?(M="OUTLOOK",R="OUTLOOK"):w==="sha"&&(M="SHAREPOINT",R="SHAREPOINT"),g.deviceType=M,g.deviceOs=R,g.deviceId=O.deviceId?O.deviceId.toString():"",g.blocked="active",g.deviceName=O.deviceName?O.deviceName.toString():"",g.deviceNameNew=O.deviceName?O.deviceName.replace(/ /g,"_PB_"):"",g.deviceNameEnc=O.deviceName?btoa(O.deviceName):"",o.push(g),this.foundFilesCS=o,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(o));},T=>{switch(console.error("Error from getDeviceInfo:",T),T.status){case 400:console.error("Bad Request:",T.message);break;case 401:this.toastr.info(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden:",T.message);break;case 404:console.error("Not Found:",T.message);break;case 500:case 503:console.error("Internal Server Error:",T.message);break;default:console.error("Unknown Error:",T.message);break;}});}),e.body.metadata&&(this.totalCountGS=e.body.data.totalNoofFiles,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)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(l=>{let g={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(g);}),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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("No Meta data Configuration found."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Please select a User Id."));return;}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error(this.translatorService.getTranslation("Please enter file name to search."));return;}this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),(this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")&&(this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail)),this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS=""),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 t=JSON.stringify(n.body),o=JSON.parse(t);let d=[];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(g=>{let T={exists:g.present?g.present.toString():"",backup:"true",deviceUUID:g.deviceUUID?g.deviceUUID.toString():"",fileName:g.fileName?g.fileName.toString():"",filePath:g.fileCompletePath?g.fileCompletePath.toString():"",fileUser:g.fileUserOwner?btoa(g.fileUserOwner):"",folder:g.folder?"true":"false",fileRevisionID:g.fileRevisionId?g.fileRevisionId.toString():"",content:g.metaData?g.metaData.toString():"",modifiedTimestamp:g.lastModifiedTimestamp?parseInt(g.lastModifiedTimestamp,10):0,size:g.size?parseInt(g.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(T.deviceUUID).subscribe(O=>{let w=O.body.BSDeviceInfoElement,M=w.osType.substring(0,3).toLowerCase(),R="Windows",P="Windows";M==="win"?(R="Windows",P="Windows"):M==="mac"?(R="Mac",P="Mac"):M==="one"?(R="ONEDRIVE",P="ONEDRIVE"):M==="out"?(R="OUTLOOK",P="OUTLOOK"):M==="sha"&&(R="SHAREPOINT",P="SHAREPOINT"),T.deviceType=R,T.deviceOs=P,T.deviceId=w.deviceId?w.deviceId.toString():"",T.blocked="active",T.deviceName=w.deviceName?w.deviceName.toString():"",T.deviceNameNew=w.deviceName?w.deviceName.replace(/ /g,"_PB_"):"",T.deviceNameEnc=w.deviceName?btoa(w.deviceName):"",d.push(T),this.foundFilesCS=d,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(d));},O=>{switch(console.error("Error from getDeviceInfo:",O),O.status){case 400:console.error("Bad Request:",O.message);break;case 401:this.toastr.info(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden:",O.message);break;case 404:console.error("Not Found:",O.message);break;case 500:case 503:console.error("Internal Server Error:",O.message);break;default:console.error("Unknown Error:",O.message);break;}});}),n.body.metadata&&(this.totalCountGS=n.body.data.totalNoofFiles,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)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(g=>{let T={backupId:g.fileRevisionId,userName:g.fileUserOwner,deviceUUID:g.deviceUUID,subject:g.subject?g.subject:"<empty>",contactName:g.fileName?g.fileName:"-",taskSubject:g.subject?g.subject:"",present:g.exists.toString(),showIcon:g.from?g.from.charAt(0):"E",alphaColor:this.colorGen(),from:g.from?g.from:"<empty>",to:g.toRecipients?g.toRecipients:"",cc:g.ccRecipients?g.ccRecipients:"",bcc:g.bccRecipients?g.bccRecipients:"",sentDate:g.sentDate?new Date(g.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:g.metaData?g.metaData:"",bodyContent:g.bodyContent?g.bodyContent:"",bodyContent1:g.bodyContent?g.bodyContent.length>100?g.bodyContent.substring(0,100)+"...":g.bodyContent:"",hasAttachments:g.hasAttachments,attachments:g.attachments?g.attachments:"",name:g.subject?g.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:g.subject?g.subject:"<empty>",filePath:g.fileCompletePath,deviceId:g.deviceId};this.foundMailsCS.push(T);}),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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("No Meta data Configuration found."),this.translatorService.getTranslation("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||"";if(console.log("searchTerm : "+n),n=="all"||n=="All"){this.siteListCS=[{label:"",options:[{value:"All Sites",label:"All Sites"}]}],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";return;}this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueSiteCS=null,this.assetManagementService.searchSite(e.search).subscribe(t=>{if(t.body&&t.body.stringElementList){let o=t.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:"All Sites"},...(o||[])]}],this.cdr.detectChanges();}else this.siteListCS=[];},t=>{});}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(t=>{if(t.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceTypeCS,this.devicesCS=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.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;},t=>{console.error("Error during search: ",t),this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";});}parseEmailStringUnified(e){let n=e,t=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,o,d=[],l=[],g=[],T=[],O=[],w=[],M=[];for(;(o=t.exec(n))!==null;){let P=o[1],N=o[2];if(N.startsWith("(")&&N.endsWith(")")&&(N=N.slice(1,-1)),P==="from")d.push(N.trim());else if(P==="to")l.push(N.trim());else if(P==="cc")g.push(N.trim());else if(P==="bcc")T.push(N.trim());else if(P==="subject"){let k=N.trim();O.push(k.replace(/^\(|\)$/g,""));}else if(P==="body"){let k=N.trim();w.push(k.replace(/^\(|\)$/g,""));}else M.push(N.trim());}return M.push(n.replace(t,"").trim()),[`from:${d.join(",")}`,`to:${l.join(",")}`,`bcc:${T.join(",")}`,`cc:${g.join(",")}`,`subject:${O.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${M.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,t,o,d){console.log("from viewOutlook11 : "+d),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set(),this.assetManagementService.viewMail(e,t).subscribe(l=>{if(l.body){this.showNotAvailable=!1;var g=JSON.stringify(l.body.mailElement),T=JSON.parse(g);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),d=="mail"||d=="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 O=this.iframe.nativeElement,w=O.contentDocument||O.contentWindow?.document;w&&(w.open(),w.write(this.currentMailBody),w.close()),console.log("body : "+this.currentMailBody);}if(d=="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 O=[l.body.mailElement.contactBusiAddrStreet,l.body.mailElement.contactBusiAddrCity,l.body.mailElement.contactBusiAddrState,l.body.mailElement.contactBusiAddrCountry,l.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=O.filter(R=>R&&R.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let w=[l.body.mailElement.contactAddrStreet,l.body.mailElement.contactAddrCity,l.body.mailElement.contactAddrState,l.body.mailElement.contactAddrCountry,l.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=w.filter(R=>R&&R.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let M=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(R=>R&&R.trim()!=="");this.fullCombinedName=M.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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(d=>d.isChecked),n=e.filter(d=>!this.isBackupIdExists(d.backupId));if(this.addedElementsUpdated.length+n.length>this.maxItemsAllowedInPstExportWhileSearch){this.toastr.error(this.translatorService.getTranslation("You have exceeded the number of individual items you can select for export. You may try refining your search or choose to export all the search results."),this.translatorService.getTranslation("Error"));return;}if(e.length>0){let d=e.filter(l=>!this.isBackupIdExists(l.backupId));if(d.length>0){this.addedElementsUpdated.push(...d);let l=d.map(g=>g.subject);this.addedElements=l,this.addedElementsCount=this.addedElementsUpdated.length;}else this.toastr.error(this.translatorService.getTranslation("Item(s) already added."),this.translatorService.getTranslation("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(t=>t.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,t,o){this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.backupId!==t),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges();}downloadMail(e,n,t,o){if(this.product?.downloadsConfigurations?.unified){this.assetManagementService.downloadGsuite(t,n,this.sharedService.getDataByKey("userName"),"EML",o==="mail"?"OUTLOOK":o,!1).subscribe(d=>{console.log("res from downloadGmail : "+JSON.stringify(d)),console.log("res from downloadGmail : "+JSON.stringify(d.body)),this.cdr.detectChanges();},d=>{switch(console.error("Error from downloadGsuite: ",d),console.error("Error status: ",d.status),console.log("ID : "+d.error.text),d.status){case 200:console.error("Bad Request: ",d.message),this.downloadId=d.error.text;let l=0,g=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),l++,l>=g&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"));},2e3);break;case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("Info"));break;case 500:console.error("Internal Server Error: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break;}});return;}this.apiService.downloadMail(e,n).subscribe(d=>{console.log("came inside success block+++++"),this.cdr.detectChanges();},d=>{if(console.error("Error from downloadMail++++++: ",d.status),d.status=="200"){let l="https://",g=this.configService.baseFolder,T="/BluKryptBuilder/cloud/",O=this.configService.cloudName,w=this.authService.Token,M=this.sharedService.getDataByKey("userName"),R=`${l}${g}${T}${O}/portal/download/files/?token=${w}&loginUserName=${M}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(R,"_self");}switch(d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 500:case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break;}});}initiateRestoreForOutlookSearchFileModalGS(e,n,t,o){}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(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")):(this.displayDownloadPststyleG="block",this.toastr.success(this.translatorService.getTranslation("Your request has been queued. Please check Downloads page to get the file after some time."),this.translatorService.getTranslation("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail(this.productTypeContentSearch==="mail"?"OUTLOOK":this.productTypeContentSearch,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.assetManagementService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID||"Global_Search_Microsoft Exchange",this.downloadId,e).subscribe(t=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(t.body)),t&&t.body&&([200,206].includes(t.status)&&t.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=t.body.restoreProgressEventsElement.batchId,this.progressG=t.body.restoreProgressEventsElement),(t.status=="202"||t.status=="204")&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.translatorService.getTranslation("Restore completed successfully."),this.translatorService.getTranslation("Success"))):(this.displayDownloadPststyleG="none",this.toastr.success(this.translatorService.getTranslation("Please check Downloads page to get the file"),this.translatorService.getTranslation("Success"))),this.intervalIdG&&clearInterval(this.intervalIdG)));},t=>{switch(console.error("Error from getDownloadPstEventsProgress: ",t),console.error("Error status: ",t.status),t.status){case 400:console.error("Bad Request: ",t.message);break;case 401:console.error("Unauthorized: ",t.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",t.message);break;case 404:console.error("Not Found: ",t.message);break;case 412:console.error("Error code 412: ",t.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("Info"));break;case 500:console.error("Internal Server Error: ",t.message);break;case 503:console.error("Internal Server Error: ",t.message);break;default:console.error("Unknown Error: ",t.message);break;}});}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error(this.translatorService.getTranslation("Please specify a PST name."),this.translatorService.getTranslation("Fail!!!"));return;}if(this.product?.downloadsConfigurations?.unified){let e=this.getPstBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.assetManagementService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch==="mail"?"OUTLOOK":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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.translatorService.getTranslation("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.translatorService.getTranslation("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.assetManagementService.exportSelectedAsPstG(this.getPstBatchDetailElements()).subscribe(e=>{this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")),this.displayDownloadPststyleG="block",console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.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(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("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.assetManagementService.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"||e.status=="204")&&(this.displayDownloadPststyleG="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.translatorService.getTranslation("Restore completed successfully."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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.assetManagementService.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(this.translatorService.getTranslation("Queued Restore has been removed."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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(this.translatorService.getTranslation("Please specify a PST name."),this.translatorService.getTranslation("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((n,t)=>{this.backupIdsListG.push(n.backupId);}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,console.log("backupIdsList : "+this.backupIdsListG),this.selectedValueCS==""||this.selectedValueCS==="All Users"||this.selectedValueCS==null?(this.deviceId="",this.currentDeviceUUID=""):(this.deviceId=this.devicesCS[0].deviceId,this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID),this.currentDeviceUUID=this.product?.downloadsConfigurations?.unified?this.currentDeviceUUID:this.foundMailsCS[0].deviceUUID,console.log("deviceId : "+this.deviceId),(this.product?.downloadsConfigurations?.unified?this.assetManagementService.getContentSearchUnified(this.currentDeviceUUID,this.contentSearchText,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch==="mail"?"OUTLOOK":this.productTypeContentSearch,!1,this.pstFileNameG):this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName)).subscribe(n=>{var t=JSON.stringify(n.body),o=JSON.parse(t);let d=[];this.batchIdG=n.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG,"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(l=>{console.log("res from initiateRestore : "+JSON.stringify(l)),console.log("res from initiateRestore : "+JSON.stringify(l.body)),this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info")),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG();},5e3),this.cdr.detectChanges();},l=>{switch(console.error("Error from initiateRestore: ",l),console.error("Error status: ",l.status),l.status){case 400:console.error("Bad Request: ",l.message);break;case 401:console.error("Unauthorized: ",l.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG();},5e3),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;}});},n=>{switch(console.error("Error from getFilesSearch: ",n),n.status){case 200: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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("No Meta data Configuration found."),this.translatorService.getTranslation("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;}});}onRestoreClickR(e,n,t,o,d=""){this.displayRestoreStyleR="block";let l=[{label:"",options:[{value:this.currentMailUser||d,label:this.currentMailUser||d}]}];this.deviceUsersListR=l,this.selectedValueR=this.currentMailUser||d,this.value18R=this.currentMailUser||d,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=t,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!this.product?.downloadsConfigurations?.unified&&(this.getRestoreEventsProgressR(),this.intervalIdR=setInterval(()=>{this.getRestoreEventsProgressR();},5e3),this.cdr.detectChanges());}closeRestorePopupR(){this.displayRestoreStyleR="none",this.destinationIdPath="",this.destinationId="",this.destinationPathR="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),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.assetManagementService.getUserWithDevice(e.search).subscribe(t=>{if(t.body&&t.body.searchUserElementList){let o=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListR=[{label:"",options:o}],this.cdr.detectChanges();}else this.deviceUsersListR=[];},t=>{});}updateR(e){console.log("value : "+e.value);let n=e.value;this.selectedDeviceUUIDR="",this.assetManagementService.getUserDevice(n).subscribe(t=>{if(t.body?.data?.devices){let o="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(o=this.productTypeContentSearch),this.devicesR=t.body.data.devices.filter(d=>d.blocked===!1&&d.osType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.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;},t=>{console.error("Error during search: ",t);});}updateNowR(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let t="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(t=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(o=>o.blocked===!1&&o.osType==t).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.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=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(e,this.productTypeContentSearch,this.selectedBrowseItemId):this.assetManagementService.browseExchange(e,this.browsePathR),t=this.deviceType;n.subscribe(o=>{this.loadingR=!1,o.body?.stringList?this.browseItemsR=o.body.stringList:Array.isArray(o.body)&&o.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=o.body:this.browseItemsR=o.body.map(d=>d.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges();},o=>{switch(this.loadingR=!1,console.error("Error from browse API:",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break;}});}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath: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.product?.downloadsConfigurations?.unified&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR=this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+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(this.translatorService.getTranslation("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,t){if(!this.product?.downloadsConfigurations?.restore?.browsePathHeirarchyWithoutFolderId&&typeof t>"u"){this.onSingleClickR(n),e.currentTarget.classList.add("double-click-not-allowed");return;}n!=="No path available"&&(t&&(this.selectedBrowseItemId=t),this.addToCombinedValueR(n,t),this.selectedBrowseItemR="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath: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]:typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.product?.downloadsConfigurations?.restore?.rootBrowsePath:"root",this.browsePathId=n.join("/")):(typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(this.selectedDeviceUUID);}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR);}getRestoreEventsProgressR(){this.assetManagementService.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"||e.status=="204")&&(this.showRestoreSettingsR=!0,this.toastr.success(this.translatorService.getTranslation("Restore completed successfully."),this.translatorService.getTranslation("Success")),this.destinationPathR="",this.destinationId="",this.destinationIdPath="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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.assetManagementService.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(this.translatorService.getTranslation("Queued Restore has been removed."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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(this.translatorService.getTranslation("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 o=new Date(this.myDateBeforeR);o.setHours(this.myTimeBeforeR.getHours()),o.setMinutes(this.myTimeBeforeR.getMinutes()),o.setSeconds(this.myTimeBeforeR.getSeconds());let d=o.getTime();this.restoreDataBeforeR=d.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR);}let t=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error(this.translatorService.getTranslation("Please select a Destination Device."),this.translatorService.getTranslation("Fail!!!"));return;}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error(this.translatorService.getTranslation("Inplace restore cannot be enabled for other destination assets."),this.translatorService.getTranslation("Fail!!!"));return;}}else if(this.destinationPathR==""){this.toastr.error(this.translatorService.getTranslation("Please select a Destination Path."),this.translatorService.getTranslation("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 : "+t),console.log("inplaceRestore : "+this.inplaceRestoreR),console.log("restoreDataBefore : "+this.restoreDataBeforeR),console.log("restoreDeletedFilesByRestore : "+this.restoreDeletedFilesByRestoreR),this.product?.downloadsConfigurations?.unified){this.assetManagementService.initiateRestoreGsuite(this.currentDeviceUUIDCS,this.currentFileBackupIdR,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch==="mail"?"OUTLOOK":this.productTypeContentSearch,this.selectedDeviceUUIDR,this.destinationPathR,this.destinationId,t,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,this.currentFilePathR,this.currentFileName).subscribe(this.productTypeContentSearch==="Google Drive"?o=>{this.triggerGSuiteProgress(o,!0),this.showRestoreSettingsR=!1;}:o=>{this.triggerGmailProgress(o,!0),this.showRestoreSettingsR=!1;},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=o?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(o,!0):this.triggerGmailProgress(o,!0);break;case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.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: ",o.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: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break;}});return;}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUID,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,t,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(o=>{console.log("res from initiateRestore : "+JSON.stringify(o)),console.log("res from initiateRestore : "+JSON.stringify(o.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info"));},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.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.product?.downloadsConfigurations?.unified?this.parseContentSearchMailUnified():this.parseContentSearchMail():this.product?.downloadsConfigurations?.unified?this.reconstructContentSearchMailUnified():this.reconstructContentSearchMail();}parseContentSearchMailUnified(){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 t={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let o=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),t[o].push(d);}this.fromId=t.from.join(", "),this.toId=t.to.join(", "),this.ccId=t.cc.join(", "),this.bccId=t.bcc.join(", "),this.subjectId=t.subject.join(", "),this.bodyId=t.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim();}reconstructContentSearchMailUnified(){let e=[];if(this.fromId){let n=this.fromId.split(",");e.push(`from:${n.length>1?"(":""}${n.map(t=>t.trim()).join(",")}${n.length>1?"=)":""}`);}if(this.toId){let n=this.toId.split(",");e.push(`to:${n.length>1?"(":""}${n.map(t=>t.trim()).join(",")}${n.length>1?"=)":""}`);}if(this.ccId){let n=this.ccId.split(",");e.push(`cc:${n.length>1?"(":""}${n.map(t=>t.trim()).join(",")}${n.length>1?"=)":""}`);}if(this.bccId){let n=this.bccId.split(",");e.push(`bcc:${n.length>1?"(":""}${n.map(t=>t.trim()).join(",")}${n.length>1?")":""}`);}this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ");}parseEmailString(e){let t=e.split(/\s+/),o=[],d=[],l=[],g=[],T=[],O=[],w=[];for(let R=0;R<t.length;R++){let P=t[R];if(P.startsWith("from:"))o.push(P.replace("from:","").trim());else if(P.startsWith("to:"))d.push(P.replace("to:","").trim());else if(P.startsWith("cc:"))l.push(P.replace("cc:","").trim());else if(P.startsWith("bcc:"))g.push(P.replace("bcc:","").trim());else if(P.startsWith("subject:")){let N=P.replace("subject:","").trim();for(;!(N.startsWith("(")&&N.endsWith(")"))&&R+1<t.length&&!t[R+1].startsWith("body:")&&!t[R+1].startsWith("subject:");)R++,N+=" "+t[R];T.push(N.replace(/^\(|\)$/g,""));}else if(P.startsWith("body:")){let N=P.replace("body:","").trim();for(;!(N.startsWith("(")&&N.endsWith(")"))&&R+1<t.length&&!t[R+1].startsWith("body:")&&!t[R+1].startsWith("subject:");)R++,N+=" "+t[R];O.push(N.replace(/^\(|\)$/g,""));}else w.push(P);}return console.log("fromArray : "+o.join(",")),console.log("toArray : "+d.join(",")),console.log("ccArray : "+l.join(",")),console.log("bccArray : "+g.join(",")),console.log("subjectArray : "+T.join(",")),console.log("bodyArray : "+O.join(",")),console.log("keywordsArray : "+w.join("")),console.log("fromArray length : : "+o.length),[`from:${o.join(",")}`,`to:${d.join(",")}`,`bcc:${g.join(",")}`,`cc:${l.join(",")}`,`subject:${T.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${w.join(" ")}`,`body:${O.join(",")}`].join("#*#");}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 t={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let o=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),t[o].push(d);}this.fromId=t.from.join(", "),this.toId=t.to.join(", "),this.ccId=t.cc.join(", "),this.bccId=t.bcc.join(", "),this.subjectId=t.subject.join(", "),this.bodyId=t.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.ɵfac=function(n){return new(n||i)(v(Z),v(re),v(j),v(Ee),v(xo),v(Ce),v(tt),v(Re),v(fi),v(Be),v(yt),v(ve),v(Se),v(Et),v(Tt));};}static{this.ɵcmp=H({type:i,selectors:[["app-search-overlay"]],viewQuery:function(n,t){if(n&1&&(z(Uc,5),z(xc,5),z(Vc,5),z(Hc,5),z(Yc,5),z($c,5),z(Gc,5),z(Bc,5),z(zc,5),z(jc,5)),n&2){let o;G(o=B())&&(t.deviceDropdown=o.first),G(o=B())&&(t.deviceDropdownCS=o.first),G(o=B())&&(t.iframe=o.first),G(o=B())&&(t.userDeviceSearch=o.first),G(o=B())&&(t.fileSearch=o.first),G(o=B())&&(t.contentSearch=o.first),G(o=B())&&(t.contentSearchMailInput=o.first),G(o=B())&&(t.deviceDropdownR=o.first),G(o=B())&&(t.calendarIframe=o.first),G(o=B())&&(t.searchInput=o.first);}},outputs:{close:"close"},features:[_e([Z,j,Et])],decls:222,vars:95,consts:()=>{let e;e="Search Users/Assets";let n;n="Search Users/Assets";let t;t="Product Type";let o;o="Specify Filename";let d;d="Specify Filename";let l;l="Close";let g;g="Restore Progress";let T;T="Currently Running Restore Statistics";let O;O="Overall Progress";let w;w="Restore Cancel Confirmation";let M;M="Are you sure you wish to cancel the restore?";let R;R="Cancel";let P;P="Ok";let N;N="Confirmation";let k;k="Are you sure you wish to close this window? The restore will still continue to run in the background.";let oe;oe="Restore Settings";let J;J="Browse path";let me;me="Current Path :"+"\uFFFD*180:1\uFFFD\uFFFD#1:1\uFFFD"+""+"[\uFFFD/#1:1\uFFFD\uFFFD/*180:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*181:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*182:3\uFFFD]"+""+"\uFFFD*181:2\uFFFD\uFFFD#1:2\uFFFD"+"/"+"[\uFFFD/#1:1\uFFFD\uFFFD/*180:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*181:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*182:3\uFFFD]"+""+"\uFFFD*182:3\uFFFD\uFFFD#1:3\uFFFD"+""+"\uFFFD0:3\uFFFD"+""+"[\uFFFD/#1:1\uFFFD\uFFFD/*180:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*181:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*182:3\uFFFD]"+"",me=Ro(me);let Fe;Fe="Items";let At;At="Create new folder";let Ot;Ot="Create";let wt;wt="Use Path";let Rt;Rt="Restore Cancel Confirmation";let Mt;Mt="Are you sure you wish to cancel the restore?";let Pt;Pt="Close";let Nt;Nt="Delete";let Dt;Dt="Search by file/folder names";let It;It="Full text search";let Lt;Lt=""+"\uFFFD0\uFFFD"+"";let Ft;Ft=""+"\uFFFD0\uFFFD"+""+"\uFFFD1\uFFFD"+"\"";let kt;kt="Endpoints";let U;U="OneDrive for Business";let tn;tn="SharePoint Online";let nn;nn="User Id";let on;on="Site";let rn;rn="Asset Name";let sn;sn="There are no results!.";let an;an="Actions";let ln;ln=""+"\uFFFD#7\uFFFD"+"Found in: "+"\uFFFD/#7\uFFFD"+""+"\uFFFD0\uFFFD"+"";let cn;cn="Download";let dn;dn="Open File Location";let _n;_n="Microsoft Exchange";let pn;pn="OneDrive for Business";let un;un="SharePoint Online";let hn;hn="Gmail";let mn;mn=""+"\uFFFD#7\uFFFD"+""+"\uFFFD/#7\uFFFD"+"";let gn;gn="Use comma to separate Email addresses";let fn;fn="Use comma to separate multiple Subjects";let Cn;Cn="Body";let vn;vn="Keywords";let Sn;Sn="Date from";let En;En=""+"\uFFFD0\uFFFD"+" Search Results Found";let Tn;Tn="Enable Multiselect";let yn;yn="Disable Multiselect";let bn;bn="Export all items to PST";let An;An="Export selected items to PST";let On;On="Add Selected Items";let wn;wn="Found in:";let Rn;Rn=""+"\uFFFD0\uFFFD"+" : "+"\uFFFD1\uFFFD"+"";let Mn;Mn="Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.";let Pn;Pn="Item not available.";let Nn;Nn="Subject : "+"\uFFFD0\uFFFD"+"";let Dn;Dn="From :";let In;In="To :";let Ln;Ln="CC :";let Fn;Fn="BCC :";let kn;kn="Remove all";let Un;Un=""+"\uFFFD0\uFFFD"+" selected";let xn;xn="Proceed";let Vn;Vn="Current item being processed";let Hn;Hn="/ "+"\uFFFD0\uFFFD"+"";let Yn;Yn="-";let $n;$n="0";let Gn;Gn="Cancel Restore";let Bn;Bn="Select a destination asset:";let zn;zn="Select a Destination Path";let jn;jn="Browse";let Xn;Xn="Restore Options";let Wn;Wn="In place Restore";let qn;qn="Restore Deleted Mails";let Zn;Zn="Disallow new backups during this restore";let Jn;Jn="Source Path - "+"\uFFFD#3\uFFFD"+""+"\uFFFD0\uFFFD"+""+"\uFFFD/#3\uFFFD"+"";let Kn;Kn="/ "+"\uFFFD0\uFFFD"+"";let Qn;Qn="Initiate Restore";let eo;eo="Cancel Restore";let to;to="Close";let io;io="Close";let no;no=""+"\uFFFD#2\uFFFD"+""+"\uFFFD/#2\uFFFD"+" Back";let oo;return oo="Loading...",[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentFrame",""],["deviceDropdownR",""],e,n,t,o,d,l,g,T,O,w,M,R,P,N,k,oe,J,me,Fe,At,Ot,wt,Rt,Mt,Pt,Nt,Dt,It,Lt,Ft,kt,U,tn,nn,on,rn,sn,an,ln,cn,dn,_n,pn,un,hn,mn,gn,fn,Cn,vn,Sn,En,Tn,yn,bn,An,On,wn,Rn,Mn,Pn,Nn,Dn,In,Ln,Fn,kn,Un,xn,Vn,Hn,Yn,$n,Gn,Bn,zn,jn,Xn,Wn,qn,Zn,Jn,Kn,Qn,eo,to,io,no,oo,[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",3,"click"],[1,"fa","fa-times-circle",2,"font-size","25px","cursor","pointer"],["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"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],["class","form-group col-lg-3 custom-select-wrapper",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"],["value","Gmail",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],[3,"downloadFile","openFileLocation","navigatePage","foundFiles","noFilesFound","totalCountGS","productType","userType","contentSearchText","currentDeviceUUID","first","previous","next","last"],["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","minlength","3","maxlength","64","pattern","^[a-zA-Z0-9@.\\(\\)\\-_]*$","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"disabled","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,"disabled","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"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[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"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["placeholder","Select User","noResultMessage","No users found","id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Site","noResultMessage","No sites found","id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-group","col-lg-3","custom-select-wrapper"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[1,"fa-solid","fa-chevron-down","dropdown-icon"],[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"],["value","Gmail"],["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,"col-lg-12",2,"height","60vh","overflow","scroll"],[1,"header-container",2,"display","block"],["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"],[3,"innerHTML"],[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"],[1,"text-danger"],["type","button",1,"btn","btn-success",3,"click","disabled"],[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","","required","",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["required","",1,"form-control",3,"change"],["for","destinationPathR",3,"ngClass"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","placeholder","Enter Destination Path","required","",3,"ngModelChange","ngModel","required","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","width","fit-content"],[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","disabled"],["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,t){if(n&1){let o=y();r(0,"div",99)(1,"div",100)(2,"c-card",101)(3,"c-card-body")(4,"a",102),C("click",function(){return u(o),h(t.closeOverlay());}),S(5,"i",103),s(),r(6,"c-nav",104)(7,"c-nav-item",105)(8,"button",106),C("click",function(){return u(o),h(t.setActiveSearchTab("default",0));}),f(9,10),s()(),E(10,td,3,2,"c-nav-item",107)(11,id,3,2,"c-nav-item",107),s(),r(12,"c-tab-content",108,0)(14,"c-tab-pane",109)(15,"c-row",110)(16,"c-input-group",101)(17,"span",111),f(18,11),s(),r(19,"input",112,1),F("ngModelChange",function(l){return u(o),L(t.userAssetSearchText,l)||(t.userAssetSearchText=l),h(l);}),C("keydown.enter",function(){return u(o),h(t.searchForUsersAssets());}),s()()(),r(21,"c-row"),E(22,nd,2,1,"c-card",107)(23,rd,6,1,"c-card",107),S(24,"br"),E(25,sd,2,1,"c-card",107)(26,ld,6,1,"c-card",107),S(27,"br"),E(28,cd,2,1,"c-card",107)(29,_d,6,1,"c-card",107),s()(),r(30,"c-tab-pane",109)(31,"c-row",113)(32,"div",114)(33,"label",115),f(34,12),s(),r(35,"select",116),F("ngModelChange",function(l){return u(o),L(t.productTypeFiles,l)||(t.productTypeFiles=l),h(l);}),C("change",function(l){return u(o),h(t.onChangeProductType(l));}),E(36,pd,2,0,"option",117)(37,ud,2,0,"option",118)(38,hd,2,0,"option",119),xe(39,gd,1,1,"option",120,nt),s()(),E(41,fd,4,5,"div",121)(42,Cd,4,4,"div",121)(43,Ed,8,2,"div",122),s(),r(44,"c-row",123)(45,"div",124)(46,"c-input-group")(47,"input",125,2),F("ngModelChange",function(l){return u(o),L(t.filesSearchText,l)||(t.filesSearchText=l),h(l);}),C("keydown.enter",function(){return u(o),h(t.searchForFiles());}),s()()(),r(49,"div",126)(50,"button",127),C("click",function(){return u(o),h(t.searchForFiles());}),m(51,"Search"),s()()(),S(52,"br"),E(53,Td,5,0,"c-row",107)(54,bd,10,3,"c-row",128),s(),r(55,"c-tab-pane",109)(56,"c-row",113)(57,"div",114)(58,"label",129),m(59,"Product Type"),s(),r(60,"select",130),F("ngModelChange",function(l){return u(o),L(t.productTypeContentSearch,l)||(t.productTypeContentSearch=l),h(l);}),C("change",function(l){return u(o),h(t.onChangeProductTypeContentSearch(l));}),E(61,Ad,2,0,"option",131)(62,Od,2,0,"option",118)(63,wd,2,0,"option",119)(64,Rd,2,0,"option",132),xe(65,Pd,1,3,"option",120,nt),s()(),E(67,Nd,4,5,"div",121)(68,Dd,4,4,"div",121)(69,Fd,8,2,"div",122),s(),E(70,kd,8,1,"c-row",133)(71,xd,9,4,"c-row",134)(72,Hd,2,1,"c-row",134),S(73,"br"),r(74,"app-document-content-search",135),C("downloadFile",function(l){return u(o),h(t.downloadFile(l.fileName,l.filePath,l.fileRevisionID,l.backup,l.fileUser,l.deviceUUID,l.folder,l.size,t.productTypeContentSearch));})("openFileLocation",function(l){return u(o),h(t.openFileLocation(l.fileName,l.filePath,l.deviceId,t.productTypeContentSearch,l.backup));})("navigatePage",function(l){return u(o),h(t.searchForContentNavigate(l));}),s(),E(75,Yd,5,0,"c-row",134)(76,M_,36,29,"c-row",136),S(77,"br"),E(78,L_,7,4,"c-row",137),s()()()()()(),r(79,"div",138)(80,"div",139)(81,"div",140)(82,"div",141)(83,"h4",142),f(84,13),s()(),r(85,"div",143)(86,"c-row")(87,"div",144)(88,"label",145),f(89,14),s(),r(90,"input",146,3),F("ngModelChange",function(l){return u(o),L(t.pstFileNameG,l)||(t.pstFileNameG=l),h(l);}),s(),E(92,x_,4,3,"div",147),s()()(),r(93,"div",148)(94,"button",149),C("click",function(){return u(o),h(t.closePstPopupG());}),f(95,15),s(),E(96,V_,2,1,"button",150)(97,H_,2,1,"button",150),s()()()(),r(98,"div",151)(99,"div",152)(100,"div",140)(101,"div",141)(102,"h4",142),f(103,16),s()(),r(104,"div",143)(105,"c-card")(106,"c-card-header",153),f(107,17),s(),r(108,"c-card-body")(109,"c-row",154)(110,"table",155)(111,"thead")(112,"tr"),E(113,Y_,2,0,"th",107),r(114,"th"),f(115,18),s()()(),r(116,"tbody")(117,"tr"),E(118,G_,5,9,"td",107)(119,B_,2,0,"td",107)(120,z_,6,10,"td",107)(121,j_,2,0,"td",107),s()()()()()()(),r(122,"div",148)(123,"button",149),C("click",function(){return u(o),h(t.closeDownloadPstPopupG());}),m(124,"Close"),s(),E(125,X_,2,0,"button",156),s()()()(),r(126,"div",138)(127,"div",139)(128,"div",140)(129,"div",141)(130,"h4",142),f(131,19),s()(),r(132,"div",143)(133,"h4",142),f(134,20),s()(),r(135,"div",148)(136,"button",149),C("click",function(){return u(o),h(t.closeDownloadPstConfirmPopupG());}),f(137,21),s(),r(138,"button",157),C("click",function(){return u(o),h(t.cancelDownloadAsPstConfirmG());}),f(139,22),s()()()()(),r(140,"div",138)(141,"div",139)(142,"div",140)(143,"div",141)(144,"h4",142),f(145,23),s()(),r(146,"div",143)(147,"h4",142),f(148,24),s()(),r(149,"div",148)(150,"button",149),C("click",function(){return u(o),h(t.closeDownloadPstRunBkpPopupG());}),m(151,"Cancel"),s(),r(152,"button",158),C("click",function(){return u(o),h(t.cancelDownloadAsPstRunBkpG());}),m(153,"Ok"),s()()()()(),r(154,"div",159)(155,"div",152)(156,"div",140)(157,"div",141)(158,"h4",142),f(159,25),s()(),r(160,"div",143),E(161,J_,58,29,"c-card",107)(162,cp,22,14,"c-card",107),s(),r(163,"div",148),E(164,dp,2,1,"button",160)(165,_p,2,0,"button",161)(166,pp,2,0,"button",162)(167,up,2,0,"button",163),s()()()(),r(168,"div",164)(169,"div",139)(170,"div",140)(171,"div",141)(172,"h4",142),f(173,26),s()(),r(174,"div",143)(175,"c-row",154)(176,"c-card",165)(177,"c-card-header",153)(178,"span"),le(179,27),E(180,hp,2,0,"span",107)(181,mp,2,0,"span",107)(182,gp,2,1,"span",107),ce(),s()(),r(183,"c-card-body"),E(184,fp,3,0,"button",166),r(185,"div",167)(186,"table",168)(187,"thead")(188,"tr",169)(189,"th"),f(190,28),s()()(),r(191,"tbody"),E(192,Cp,5,0,"tr",107)(193,vp,4,5,"tr",170),s()()()()(),r(194,"c-card",165)(195,"c-card-body")(196,"div",144)(197,"label",171),f(198,29),s(),r(199,"c-input-group",101)(200,"input",172),F("ngModelChange",function(l){return u(o),L(t.newFolderR,l)||(t.newFolderR=l),h(l);}),s(),r(201,"button",173),C("click",function(){return u(o),h(t.addNewFolderR(t.newFolderR));}),f(202,30),s()()()()()()(),r(203,"div",148)(204,"button",149),C("click",function(){return u(o),h(t.closeBrowsePopupR());}),m(205,"Close"),s(),r(206,"button",174),C("click",function(){return u(o),h(t.usePathR());}),f(207,31),s()()()()(),r(208,"div",138)(209,"div",139)(210,"div",140)(211,"div",141)(212,"h4",142),f(213,32),s()(),r(214,"div",143)(215,"h4",142),f(216,33),s()(),r(217,"div",148)(218,"button",149),C("click",function(){return u(o),h(t.closeDeleteRestorePopupR());}),f(219,34),s(),r(220,"button",158),C("click",function(){return u(o),h(t.deleteRestoreEventR());}),f(221,35),s()()()()();}if(n&2){let o=ie(13),d=ie(91);a(7),_("ngStyle",Y(79,Le,t.userType!="user"?"block":"none")),a(),_("cTabContent",o)("tabPaneIdx",0),a(2),_("ngIf",t.hasBackupLicense),a(),_("ngIf",t.hasContentSearchLicense),a(),_("activeTabPaneIdx",t.activeTabIndex),a(7),I("ngModel",t.userAssetSearchText),a(3),_("ngIf",t.noUsersFoundText!=""),a(),_("ngIf",t.foundUsers.length>0),a(2),_("ngIf",t.noSitesFoundText!=""),a(),_("ngIf",t.foundSites.length>0),a(2),_("ngIf",t.noDevicesFoundText!=""),a(),_("ngIf",t.foundDevices.length>0),a(6),I("ngModel",t.productTypeFiles),a(),_("ngIf",t.inclusionLicenses.includes("backup_enabled")),a(),_("ngIf",t.inclusionLicenses.includes("onedrive_backup_enabled")),a(),_("ngIf",t.inclusionLicenses.includes("sharepoint_backup_enabled")),a(),Ve(t.PRODUCTS_CONFIG),a(2),_("ngIf",t.productTypeFiles!="SHAREPOINT"),a(),_("ngIf",t.productTypeFiles=="SHAREPOINT"),a(),_("ngIf",t.productTypeFiles!="SHAREPOINT"),a(4),I("ngModel",t.filesSearchText),a(6),_("ngIf",t.noFilesFound),a(),_("ngIf",t.foundFiles.length>0&&!t.noFilesFound),a(6),I("ngModel",t.productTypeContentSearch),a(),_("ngIf",t.inclusionLicenses.includes("contentsearchenabledforexchange")),a(),_("ngIf",t.inclusionLicenses.includes("contentsearchenabledforonedrive")),a(),_("ngIf",t.inclusionLicenses.includes("contentsearchenabledforsharepoint")),a(),_("ngIf",t.inclusionLicenses.includes("contentsearchenabledforgmail")),a(),Ve(t.PRODUCTS_CONFIG),a(2),_("ngIf",t.productTypeContentSearch!="SHAREPOINT"),a(),_("ngIf",t.productTypeContentSearch=="SHAREPOINT"),a(),_("ngIf",t.productTypeContentSearch!="SHAREPOINT"),a(),_("ngIf",t.productTypeContentSearch!="mail"&&t.productTypeContentSearch!="Gmail"),a(),_("ngIf",t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail"),a(),_("ngIf",t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail"),a(2),_("foundFiles",t.foundFilesCS)("noFilesFound",t.noFilesFoundCS)("totalCountGS",t.totalCountGS)("productType",t.productTypeContentSearch)("userType",t.userType)("contentSearchText",t.contentSearchText)("currentDeviceUUID",t.currentDeviceUUID)("first",t.first)("previous",t.previous)("next",t.next)("last",t.last),a(),_("ngIf",(t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail")&&t.foundMailsCS.length==0&&t.noFilesFoundCS),a(),_("ngIf",(t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail")&&t.foundMailsCS.length>0),a(2),_("ngIf",(t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail")&&t.foundMailsCS.length>0&&!t.noFilesFoundCS),a(),_("ngStyle",Y(81,Le,t.displayPststyleG)),a(11),I("ngModel",t.pstFileNameG),a(2),_("ngIf",d.invalid&&(d.dirty||d.touched)),a(4),_("ngIf",t.exportCompleteMailboxG&&(t.product==null||t.product.downloadsConfigurations==null||t.product.downloadsConfigurations.restore==null?null:t.product.downloadsConfigurations.restore.start)),a(),_("ngIf",!t.exportCompleteMailboxG&&(t.product==null||t.product.downloadsConfigurations==null||t.product.downloadsConfigurations.restore==null?null:t.product.downloadsConfigurations.restore.start)),a(),_("ngStyle",Y(83,Le,t.displayDownloadPststyleG)),a(15),_("ngIf",t.productTypeContentSearch!="Gmail"&&t.productTypeContentSearch!="Google Drive"),a(5),_("ngIf",t.progressG.currentFolderPath!=""&&t.productTypeContentSearch!="Gmail"&&t.productTypeContentSearch!="Google Drive"),a(),_("ngIf",t.progressG.currentFolderPath==""&&t.productTypeContentSearch!="Gmail"&&t.productTypeContentSearch!="Google Drive"),a(),_("ngIf",t.progressG.totalNoOfFilesForRestore!=""),a(),_("ngIf",t.progressG.totalNoOfFilesForRestore==""),a(4),_("ngIf",t.product==null||t.product.downloadsConfigurations==null||t.product.downloadsConfigurations.restore==null?null:t.product.downloadsConfigurations.restore.stop),a(),_("ngStyle",Y(85,Le,t.displayDownloadPstConfirmstyleG)),a(14),_("ngStyle",Y(87,Le,t.displayDownloadPstRunBckConfirmstyleG)),a(14),_("ngStyle",Y(89,Le,t.displayRestoreStyleR)),a(7),_("ngIf",t.showRestoreSettingsR),a(),_("ngIf",!t.showRestoreSettingsR),a(2),_("ngIf",t.showRestoreSettingsR&&(t.product==null||t.product.downloadsConfigurations==null||t.product.downloadsConfigurations.restore==null?null:t.product.downloadsConfigurations.restore.start)),a(),_("ngIf",!t.showRestoreSettingsR&&(t.product==null||t.product.downloadsConfigurations==null||t.product.downloadsConfigurations.restore==null?null:t.product.downloadsConfigurations.restore.stop)),a(),_("ngIf",t.showRestoreSettingsR),a(),_("ngIf",!t.showRestoreSettingsR),a(),_("ngStyle",Y(91,Le,t.displayBrowseStyleR)),a(12),_("ngIf",t.productTypeContentSearch==="Google Drive"),a(),_("ngIf",t.browsePathR==""&&t.productTypeContentSearch!=="Google Drive"||t.productTypeContentSearch==="Gmail"),a(),_("ngIf",t.browsePathR!=""&&t.productTypeContentSearch!=="Gmail"),a(2),_("ngIf",t.browsePathR!=""&&t.productTypeContentSearch!=="Gmail"),a(8),_("ngIf",t.loadingR),a(),_("ngForOf",t.browseItemsR),a(7),I("ngModel",t.newFolderR),a(6),_("disabled",!t.selectedBrowseItemR),a(2),_("ngStyle",Y(93,Le,t.displayDeleteRestoreStyleR));}},dependencies:[Aa,ba,Ai,Ye,Oi,Ri,wi,va,Sa,Ca,gt,Ha,Ya,ut,Li,Va,ht,Fi,$a,Ga,Ba,mt,fe,pi,st,ue,hi,ui,La,Fa,Ia,Oa,bi,dt,ct,_t,Pi,Pe,pt,Me,Ct,ja,Ii,ft,vt,Xa,St,Wa,qa,ml,Za],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%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-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 i;})();var Sp=(i,c)=>c.name,Ep=()=>["superAdmin"],vl=i=>({display:i}),Sl=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],Tp=()=>["/mspDashboard"],yp=()=>["/dashboard"],bp=()=>["/bluvault"],Ap=()=>({placement:"bottom-start"}),Op=()=>[],wp=i=>({label:"Close",class:"btn btn-default",action:i}),Rp=i=>[i];function Mp(i,c){if(i&1&&(r(0,"button",37),S(1,"i",38),s()),i&2){let e=p();_("cSidebarToggle",e.sidebarId);}}function Pp(i,c){if(i&1){let e=y();r(0,"c-input-group",39)(1,"input",40),C("click",function(){u(e);let t=p();return h(t.openOverlay());}),s(),r(2,"span",41),S(3,"i",42),s()();}}function Np(i,c){if(i&1){let e=y();r(0,"c-sidebar-brand",43)(1,"img",44),C("error",function(t){u(e);let o=p();return h(o.onImageError(t));}),s()();}if(i&2){let e=p();_("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&x(2,Sl).includes(e.userType)?x(3,Tp):x(4,Sl).includes(e.userType)?x(5,yp):x(6,bp)),a(),_("src",e.parabluLogo,ge);}}function Dp(i,c){if(i&1){let e=y();r(0,"app-search-overlay",45),C("close",function(){u(e);let t=p();return h(t.closeOverlay());}),s();}}function Ip(i,c){i&1&&di(0);}function Lp(i,c){i&1&&di(0);}function Fp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.currentUserProfile());}),S(2,"i",55),m(3," My Account "),s()();}}function kp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.activityHistory());}),S(2,"i",56),m(3," Activity History "),s()();}}function Up(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.unusualActivityHistory());}),S(2,"i",56),m(3," Unusual Activity History "),s()();}}function xp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.endpointsDownload());}),S(2,"i",57),m(3," Download Agent "),s()();}}function Vp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.licenseOptimizer());}),S(2,"i",58),m(3," License Optimizer "),s()();}}function Hp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.packDetails());}),S(2,"i",59),m(3," Current Packs Subscribed "),s()();}}function Yp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.navigateToDownloads());}),S(2,"i",57),m(3," Downloads "),s()();}}function $p(i,c){i&1&&(r(0,"li"),S(1,"hr",52),s());}function Gp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.activityHistory());}),S(2,"i",60),m(3," Share Activity History "),s()();}}function Bp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.unusualActivityHistory());}),S(2,"i",56),m(3," Infected Files History "),s()();}}function zp(i,c){if(i&1){let e=y();r(0,"li")(1,"a",53),C("click",function(){u(e);let t=p(3);return h(t.miniclouds());}),S(2,"i",61),m(3," MiniClouds "),s()();}}function jp(i,c){i&1&&(r(0,"li"),S(1,"hr",52),s());}function Xp(i,c){i&1&&(r(0,"li"),S(1,"hr",52),s());}function Wp(i,c){if(i&1&&(r(0,"li")(1,"a",62),f(2,4),s()()),i&2){let e=p(3);a(),_("href",e.quick_startUrl,ge);}}function qp(i,c){if(i&1&&(r(0,"li")(1,"a",62),f(2,5),s()()),i&2){let e=p(3);a(),_("href",e.administrator_Guide_EndpointUrl,ge);}}function Zp(i,c){if(i&1&&(r(0,"li")(1,"a",63),f(2,6),s()()),i&2){let e=p(3);a(),_("href",e.quick_start_serverUrl,ge);}}function Jp(i,c){if(i&1&&(r(0,"li")(1,"a",63),f(2,7),s()()),i&2){let e=p(3);a(),_("href",e.administrator_Guide_ServerUrl,ge);}}function Kp(i,c){if(i&1&&(r(0,"li")(1,"a",63),f(2,8),s()()),i&2){let e=p(3);a(),_("href",e.userGuideUrl,ge);}}function Qp(i,c){i&1&&(r(0,"li"),S(1,"hr",52),s());}function eu(i,c){i&1&&(r(0,"li")(1,"h6",64),m(2," Help & Support "),s()());}function tu(i,c){i&1&&(r(0,"li")(1,"a",62),S(2,"i",65),m(3," +971 50 158 7321 "),s()()),i&2&&(a(),_("href","https://wa.me/971501587321",ge));}function iu(i,c){if(i&1&&(r(0,"li")(1,"a",66),S(2,"i",67),m(3," Send email "),s()()),i&2){let e=p(3);a(),_("href","mailto:"+e.support_mailId,ge);}}function nu(i,c){i&1&&(r(0,"li"),S(1,"hr",52),s());}function ou(i,c){if(i&1){let e=y();r(0,"ul",50),E(1,Fp,4,0,"li",51),r(2,"li"),S(3,"hr",52),s(),E(4,kp,4,0,"li",51)(5,Up,4,0,"li",51)(6,xp,4,0,"li",51)(7,Vp,4,0,"li",51)(8,Hp,4,0,"li",51)(9,Yp,4,0,"li",51)(10,$p,2,0,"li",51)(11,Gp,4,0,"li",51)(12,Bp,4,0,"li",51)(13,zp,4,0,"li",51)(14,jp,2,0,"li",51)(15,Xp,2,0,"li",51)(16,Wp,3,1,"li",51)(17,qp,3,1,"li",51)(18,Zp,3,1,"li",51)(19,Jp,3,1,"li",51)(20,Kp,3,1,"li",51)(21,Qp,2,0,"li",51)(22,eu,3,0,"li",51)(23,tu,4,1,"li",51)(24,iu,4,1,"li",51)(25,nu,2,0,"li",51),r(26,"li")(27,"a",53),C("click",function(){u(e);let t=p(2);return h(t.logout());}),le(28,3),S(29,"i",54),ce(),s()()();}if(i&2){let e=p(2);a(),_("ngIf",!(e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin")),a(3),_("ngIf",e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user"),a(),_("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),a(),_("ngIf",e.inclusionLicenses.includes("backup_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),a(),_("ngIf",e.inclusionLicenses.includes("sync_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("sync_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("sync_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("sync_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("sync_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),a(),_("ngIf",e.inclusionLicenses.includes("msp_environment_enabled"));}}function ru(i,c){if(i&1){let e=y();r(0,"ul",50)(1,"li")(2,"a",53),C("click",function(){u(e);let t=p(2);return h(t.logout());}),le(3,9),S(4,"i",54),ce(),s()()();}}function su(i,c){if(i&1&&(r(0,"c-dropdown",46)(1,"button",47),S(2,"c-avatar",48),s(),E(3,ou,30,23,"ul",49)(4,ru,5,0,"ul",49),s()),i&2){let e=p();_("popperOptions",x(5,Ap)),a(),_("caret",!1),a(),_("size","md"),a(),_("ngIf",e.userType!="superAdmin"),a(),_("ngIf",e.userType=="superAdmin");}}function au(i,c){if(i&1){let e=y();r(0,"button",74),C("click",function(){u(e);let t=p(2);return h(t.click_Crashplan_Endpoint());}),r(1,"a",75),m(2,"CrashPlan Endpoint"),s()();}if(i&2){let e=p(2);a(),_("href",e.crashplan_Endpoint_Url,ge);}}function lu(i,c){if(i&1){let e=y();r(0,"button",76),C("click",function(){let t=u(e).$implicit,o=p(2);return o.colorMode.set(t.name),h(o.applyTheme());}),ri(),S(1,"svg",77),m(2),s();}if(i&2){let e=c.$implicit,n=p(2);_("active",n.colorMode()===e.name)("routerLink",x(4,Op)),a(),_("name",e.icon),a(),D(" ",e.text," ");}}function cu(i,c){if(i&1&&(E(0,au,3,1,"button",68),r(1,"c-dropdown",69)(2,"button",70),ri(),S(3,"svg",71),s(),Gi(),r(4,"div",72),xe(5,lu,3,5,"button",73,Sp),s()()),i&2){let e=p();_("ngIf",e.crashplan_Endpoint_Url),a(2),_("caret",!1),a(),_("name",e.icons()),a(2),Ve(e.colorModes);}}function du(i,c){i&1&&(r(0,"th",81),f(1,14),s());}function _u(i,c){i&1&&(r(0,"td",84)(1,"span"),f(2,15),s()());}function pu(i,c){if(i&1&&(r(0,"tr")(1,"td",84)(2,"div"),m(3),s()(),r(4,"td",84)(5,"div"),m(6),s()(),r(7,"td",84)(8,"div"),m(9),s()(),r(10,"td",84)(11,"div"),m(12,"-"),s()()()),i&2){let e=c.$implicit;a(3),V(e.skuCode),a(3),V(e.storageSize),a(3),V(e.minUserCount);}}function uu(i,c){if(i&1&&(r(0,"tr")(1,"td",84)(2,"div"),m(3),s()(),r(4,"td",84)(5,"div"),m(6,"-"),s()(),r(7,"td",84)(8,"div"),m(9),s()(),r(10,"td",84)(11,"div"),m(12),s()()()),i&2){let e=c.$implicit;a(3),V(e.skuCode),a(6),V(e.storageSize),a(3),V(e.minUserCount);}}function hu(i,c){if(i&1&&(Ht(0),E(1,uu,13,3,"tr",87),Yt()),i&2){let e=p(2);a(),_("ngForOf",e.serverPacks);}}function mu(i,c){if(i&1&&(r(0,"td",84)(1,"span")(2,"b"),m(3),s()()()),i&2){let e=p(2);a(3),V(e.totalServer);}}function gu(i,c){if(i&1&&(r(0,"app-modal",78)(1,"c-row")(2,"table",79)(3,"thead",80)(4,"tr")(5,"th",81),m(6,"Pack Name "),s(),r(7,"th",81)(8,"p",82),f(9,10),s(),r(10,"p",82),f(11,11),s()(),r(12,"th",81),m(13,"Users"),s(),E(14,du,2,0,"th",83),s()(),r(15,"tbody")(16,"tr")(17,"td",84)(18,"span")(19,"a",85),m(20),s(),S(21,"br"),r(22,"span"),f(23,12),s()()(),r(24,"td",84)(25,"span"),m(26),s()(),r(27,"td",84)(28,"span"),m(29),s()(),E(30,_u,3,0,"td",86),s(),E(31,pu,13,3,"tr",87)(32,hu,2,1,"ng-container",51),r(33,"tr",84)(34,"td",84)(35,"span")(36,"b"),f(37,13),s()()(),r(38,"td",84)(39,"span")(40,"b"),m(41),s()()(),r(42,"td",84)(43,"span")(44,"b"),m(45),s()()(),E(46,mu,4,1,"td",86),s()()()()()),i&2){let e=p();_("modalSize","modal-lg")("modalWidth","90%")("footerButtons",Y(20,Rp,Y(18,wp,e.closePackDetails))),a(2),_("hover",!0)("responsive",!0)("striped",!0),a(12),_("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),a(5),Je("cTooltip","(Subscribed On : ",e.getFormattedDate(e.subscriptionStartDate)," )"),a(),D(" ",e.skuCode,""),a(6),V(e.storageSize),a(3),V(e.minUserCount),a(),_("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),a(),_("ngForOf",e.userPacks),a(),_("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),a(9),V(e.totalStorage),a(4),V(e.totalUser),a(),_("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled"));}}function fu(i,c){if(i&1){let e=y();r(0,"app-crashplan-nav",88),C("closeModalHandler",function(){u(e);let t=p();return h(t.close_Crashplan_Endpoint());}),s();}}var El=(()=>{class i extends Ea{#t;#e;#i;constructor(e,n,t,o,d,l,g,T,O,w,M,R){let P=e.Token;(!P||P.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"]);},1e3),super(),this.authService=e,this.router=n,this.renderer=t,this.sharedService=o,this.apiService=d,this.cdr=l,this.toastr=g,this.datePipe=T,this.licenseCheckService=O,this.translatorService=w,this.userRoleService=M,this.dashboardService=R,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=!1,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=Xe(jo),this.#e=Xe(da),this.colorMode=this.#e.colorMode,this.#i=Xe(To),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Io(()=>{let N=this.colorMode();return this.colorModes.find(k=>k.name===N)?.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.isMsAppConsented=!1,this.isEwsAppConsented=!1,this.assetsConfigured=!1,this.displayConsentRemainder="none",this.displayAssetConfigurationRemainder="none",this.isFirstLogin="false",this.isLocalUser="false",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.closePackDetails=()=>{this.stylePackDetails=!1;},this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(uo(1),W(N=>N.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),ti(N=>["dark","light","auto"].includes(N)),$(N=>{this.colorMode.set(N);}),sa(this.#i)).subscribe(),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 K(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.isFirstLogin=yield this.userRoleService.getFirstLogin(),this.isLocalUser=yield this.userRoleService.getLocalUser(),this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"&&(this.showCenterBrandLogo=!0);let e=["/dashboard","/adminConsentExchange","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets/Exchange","/manageAssets/ODB","/manageAssets/Sharepoint"];this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus()),this.router.events.subscribe(n=>{n instanceof at&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus());});});}setBrandLogo(){return K(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=>{let n=localStorage.getItem("theme-default");this.authService.clearToken(),localStorage.clear(),n&&localStorage.setItem("theme-default",n),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.dashboardService.overviewBackup().subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);this.statistics=e.body.MSPCloudOverviewElement,e.body.MSPCloudOverviewElement?.packs&&e.body.MSPCloudOverviewElement.packs.length>0&&e.body.MSPCloudOverviewElement.packs.forEach((o,d)=>{if(o.subscriptionActive){this.skuCode=o.skuCode,this.packModel=o.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(o.storageSize),this.totalUser=Number(o.minUserCount),this.storageSize=o.storageSize.toString(),this.minUserCount=o.minUserCount.toString(),this.customerId=o.customerId,this.referenceNumber=o.referenceNumber;let l=new Date(o.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(o.subscriptionStartDate),o.addons&&o.addons.length>0&&(this.addons=o.addons),o.addons&&o.addons.length>0&&o.addons.forEach(T=>{T.subscriptionActive&&!T.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:T.skuCode,minUserCount:Number(T.minUserCount)||0,storageSize:Number(T.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(T.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(T.storageSize));});let g=0;o.addons&&o.addons.length>0&&o.addons.forEach(T=>{T.skuCode.startsWith("ADSER")&&T.subscriptionActive&&(this.serverPacks.push({skuCode:T.skuCode,minUserCount:Number(T.minUserCount)||0,storageSize:Number(T.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(T.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(T.storageSize));});}}),this.cdr.detectChanges();},e=>{switch(e.status){case 400:break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("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=!0,this.updateStatistics();}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();}checkWizardStatus(){console.log(".... smbConsent from header...."),this.apiService.checkWizardStatus().subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);this.isMsAppConsented=e.body.msAppConsented,this.isEwsAppConsented=e.body.ewsAppConsented,this.assetsConfigured=e.body.assetsConfigured;let o=localStorage.getItem("showStep1Modal");if(o!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return;}if(o!=="No"&&!this.isEwsAppConsented){this.displayConsentRemainder="block";return;}if(localStorage.getItem("showStep2Modal")!=="No"&&!this.assetsConfigured){this.displayAssetConfigurationRemainder="block";return;}});}denyConsentFlow(){this.displayConsentRemainder="none",localStorage.setItem("showStep1Modal","No"),localStorage.setItem("showStep2Modal","No");}proceedForConsentFlow(){this.displayConsentRemainder="none",this.router.navigate(["/settings/smbConsent"]);}denyAssetConfigurationFlow(){this.displayAssetConfigurationRemainder="none",localStorage.setItem("showStep2Modal","No");}proceedForAssetConfigurationFlow(){if(this.displayAssetConfigurationRemainder="none",this.inclusionLicenses.includes("exchange_backup_enabled")){this.router.navigate(["/manageAssets/Exchange"]);return;}this.inclusionLicenses.includes("onedrive_backup_enabled")&&this.router.navigate(["/manageAssets/ODB"]),this.inclusionLicenses.includes("sharepoint_backup_enabled")&&this.router.navigate(["/manageAssets/Sharepoint"]);}static{this.ɵfac=function(n){return new(n||i)(v(Z),v(re),v(tt),v(Ce),v(j),v(Re),v(Ee),v($e),v(yt),v(ve),v(Se),v(Ui));};}static{this.ɵcmp=H({type:i,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[_e([$e,Z,j,Ui]),Ae],decls:47,vars:16,consts:()=>{let e;e="Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.";let n;n=""+"\uFFFD#29\uFFFD"+""+"\uFFFD/#29\uFFFD"+" Logout ";let t;t="Quick Start Guide";let o;o="Administrator Guide";let d;d="Quick Start Guide (Servers)";let l;l="Administrator Guide (Servers)";let g;g="User Guide";let T;T=""+"\uFFFD#4\uFFFD"+""+"\uFFFD/#4\uFFFD"+" Logout ";let O;O="Managed Data";let w;w="(GB)";let M;M="(Base Pack)";let R;R="Total";let P;P="Servers";let N;return N="-",[["userDropdown",""],["themeDropdown",""],e,n,t,o,d,l,g,T,O,w,M,R,P,N,[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"],["headerH4","Current Packs Subscribed",3,"modalSize","modalWidth","footerButtons",4,"ngIf"],[3,"closeModalHandler",4,"ngIf"],["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"],["cTooltip","Consents are needed to grant necessary access permissions for this step.","cTooltipPlacement","right",2,"color","#062D4D","cursor","pointer","margin-left","5px"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"modal-body"],["color","warning"],[1,"modal-footer"],["type","button",1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"btn",2,"margin-inline-start","-14px",3,"cSidebarToggle"],[1,"fa-solid","fa-bars"],[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"],[1,"fa-solid","fa-magnifying-glass"],[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","","class","pt-0 w-auto",4,"ngIf"],["cDropdownMenu","",1,"pt-0","w-auto"],[4,"ngIf"],["cDropdownDivider",""],["cDropdownItem","",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-right-from-bracket","fa-rotate-180"],[1,"fa-solid","fa-user"],[1,"fa-solid","fa-clock-rotate-left"],[1,"fa-solid","fa-arrow-down"],[1,"fa-solid","fa-sliders"],[1,"fa-solid","fa-cart-shopping"],[1,"fa-solid","fa-share-from-square"],[1,"fa-solid","fa-cloud"],["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"],[1,"fa-regular","fa-paper-plane"],["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"],["cDropdownItem","",1,"d-flex","align-items-center",3,"click","active","routerLink"],["cIcon","","size","lg",1,"me-2",3,"name"],["headerH4","Current Packs Subscribed",3,"modalSize","modalWidth","footerButtons"],["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"],[3,"closeModalHandler"]];},template:function(n,t){if(n&1){let o=y();Ht(0),r(1,"c-container",16),E(2,Mp,2,1,"button",17)(3,Pp,4,0,"c-input-group",18)(4,Np,2,7,"c-sidebar-brand",19)(5,Dp,1,0,"app-search-overlay",20),r(6,"c-header-nav",21),E(7,Ip,1,0,"ng-container",22)(8,Lp,1,0,"ng-container",22),s()(),Yt(),E(9,su,5,6,"ng-template",null,0,_i)(11,cu,7,3,"ng-template",null,1,_i)(13,gu,47,22,"app-modal",23)(14,fu,1,0,"app-crashplan-nav",24),r(15,"div",25)(16,"div",26)(17,"div",27)(18,"div",28)(19,"h4",29),m(20,"Step 1: Provide Consent"),s(),r(21,"a",30),S(22,"i",31),s()(),r(23,"div",32)(24,"h4"),m(25,"For CrashPlan to be able to backup your Microsoft 365 assets, we will require your consent to read and write data from your Microsoft 365 tenant. To go ahead with the step of providing consent, please click on the Proceed button below."),s(),r(26,"c-callout",33),f(27,2),s()(),r(28,"div",34)(29,"button",35),C("click",function(){return u(o),h(t.denyConsentFlow());}),m(30,"Cancel"),s(),r(31,"button",36),C("click",function(){return u(o),h(t.proceedForConsentFlow());}),m(32,"Proceed"),s()()()()(),r(33,"div",25)(34,"div",26)(35,"div",27)(36,"div",28)(37,"h4",29),m(38,"Step 2: Configure Assets"),s()(),r(39,"div",32)(40,"h4"),m(41,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),s()(),r(42,"div",34)(43,"button",35),C("click",function(){return u(o),h(t.denyAssetConfigurationFlow());}),m(44,"Cancel"),s(),r(45,"button",36),C("click",function(){return u(o),h(t.proceedForAssetConfigurationFlow());}),m(46,"Proceed"),s()()()()();}if(n&2){let o=ie(10),d=ie(12);a(),_("fluid",!0),a(),_("ngIf",!t.showCenterBrandLogo),a(),_("ngIf",!t.inclusionLicenses.includes("msp_environment_enabled")&&!x(11,Ep).includes(t.userType)),a(),_("ngIf",t.showCenterBrandLogo),a(),_("ngIf",t.isOverlayVisible),a(2),_("ngTemplateOutlet",d),a(),_("ngTemplateOutlet",o),a(5),_("ngIf",t.stylePackDetails),a(),_("ngIf",t.showCrashplanEndpointLicenseModal),a(),_("ngStyle",Y(12,vl,t.displayConsentRemainder)),a(18),_("ngStyle",Y(14,vl,t.displayAssetConfigurationRemainder));}},dependencies:[Mi,hl,ya,Ni,Di,ea,Ta,vi,Lo,ha,ua,Ai,pa,ma,_a,Oi,Ri,wi,Cl,fe,st,ue,Ye,Me,Pe,Ii,pt,ki,ca],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 i;})();var Cu=4,vu=.001,Su=1e-7,Eu=10,Kt=11,Vi=1/(Kt-1),Tu=typeof Float32Array=="function";function Tl(i,c){return 1-3*c+3*i;}function yl(i,c){return 3*c-6*i;}function bl(i){return 3*i;}function Hi(i,c,e){return((Tl(c,e)*i+yl(c,e))*i+bl(c))*i;}function Al(i,c,e){return 3*Tl(c,e)*i*i+2*yl(c,e)*i+bl(c);}function yu(i,c,e,n,t){let o,d,l=0;do d=c+(e-c)/2,o=Hi(d,n,t)-i,o>0?e=d:c=d;while(Math.abs(o)>Su&&++l<Eu);return d;}function bu(i,c,e,n){for(let t=0;t<Cu;++t){let o=Al(c,e,n);if(o===0)return c;let d=Hi(c,e,n)-i;c-=d/o;}return c;}function Au(i){return i;}function Ou(i,c,e,n){if(!(0<=i&&i<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(i===c&&e===n)return Au;let t=Tu?new Float32Array(Kt):new Array(Kt);for(let d=0;d<Kt;++d)t[d]=Hi(d*Vi,i,e);function o(d){let l=0,g=1,T=Kt-1;for(;g!==T&&t[g]<=d;++g)l+=Vi;--g;let O=(d-t[g])/(t[g+1]-t[g]),w=l+O*Vi,M=Al(w,i,e);return M>=vu?bu(d,w,i,e):M===0?w:yu(d,l,l+Vi,i,e);}return function(l){return l===0?0:l===1?1:Hi(o(l),c,n);};}var wu=new et("SMOOTH_SCROLL_OPTIONS"),Ol=(()=>{class i{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,t){this._document=e,this._platform=n,this._onGoingScrolls=new Map(),this._defaultOptions=X({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},t);}_scrollElement(e,n,t){e.scrollLeft=n,e.scrollTop=t;}_getElement(e,n){return typeof e=="string"?(n||this._document).querySelector(e):aa(e);}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new ke()).get(e);}_isFinished(e,n,t){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),t(),!1);}_interrupted(e,n){return Ue(Q(e,"wheel",{passive:!0,capture:!0}),Q(e,"touchmove",{passive:!0,capture:!0}),n).pipe(po(1));}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e);}_step(e){return new Qe(n=>{let t=(this._now()-e.startTime)/e.duration;t=t>1?1:t;let o=e.easing(t);e.currentX=e.startX+(e.x-e.startX)*o,e.currentY=e.startY+(e.y-e.startY)*o,this._scrollElement(e.scrollable,e.currentX,e.currentY),ei.schedule(()=>n.next(e));});}_applyScrollToOptions(e,n){if(!n.duration)return this._scrollElement(e,n.left,n.top),Promise.resolve();let t=this._initSmoothScroll(e),o={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:Ou(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(d=>{je(null).pipe(ho(()=>this._step(o).pipe(fo(l=>this._isFinished(l,t,d)))),Te(this._interrupted(e,t)),mo(()=>this._destroy(e,t))).subscribe();});}scrollTo(e,n){if(ko(this._platform)){let t=this._getElement(e),o=getComputedStyle(t).direction==="rtl",d=yi(),l=Ne(X(X({},this._defaultOptions),n),{left:n.left==null?o?n.end:n.start:n.left,right:n.right==null?o?n.start:n.end:n.right});return l.bottom!=null&&(l.top=t.scrollHeight-t.clientHeight-l.bottom),o&&d!==0?(l.left!=null&&(l.right=t.scrollWidth-t.clientWidth-l.left),d===2?l.left=l.right:d===1&&(l.left=l.right?-l.right:l.right)):l.right!=null&&(l.left=t.scrollWidth-t.clientWidth-l.right),this._applyScrollToOptions(t,l);}return Promise.resolve();}scrollToElement(e,n,t={}){let o=this._getElement(e),d=this._getElement(n,o),l=Ne(X({},t),{left:d.offsetLeft+(t.left||0),top:d.offsetTop+(t.top||0)});return d?this.scrollTo(o,l):Promise.resolve();}static{this.ɵfac=function(n){return new(n||i)(q(pe),q(bo),q(wu,8));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Mu=["scrollbarY"],Pu=["scrollbarX"],Nu=["*"];function Du(i,c){if(i&1&&S(0,"scrollbar-x",null,0),i&2){let e=p(2);qe("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed);}}function Iu(i,c){if(i&1&&S(0,"scrollbar-y",null,1),i&2){let e=p(2);qe("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed);}}function Lu(i,c){if(i&1&&(Ht(0),E(1,Du,2,2,"scrollbar-x",5)(2,Iu,2,2,"scrollbar-y",5),Yt()),i&2){let e=p();a(),_("ngIf",e.state.horizontalUsed),a(),_("ngIf",e.state.verticalUsed);}}var Fu=(()=>{class i{constructor(e){this.el=e;}set ngAttr(e){for(let[n,t]of Object.entries(e))this.el.nativeElement.setAttribute(n,t);}static{this.ɵfac=function(n){return new(n||i)(v(se));};}static{this.ɵdir=ae({type:i,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}});}}return i;})();function Pl(i){return $(()=>{i.onselectstart=()=>!1;});}function Nl(i){return $(()=>{i.onselectstart=null;});}function ze(){return $(i=>i.stopPropagation());}function qi(i,c){return i.clientX>=c.left&&i.clientX<=c.left+c.width&&i.clientY>=c.top&&i.clientY<=c.top+c.height;}var Zi=(()=>{class i{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 Qe(t=>{let o=Q(this.nativeElement,"mousemove",{passive:!0}),d=e?o:o.pipe(ze()),l=Q(this.nativeElement,"mouseleave",{passive:!0}).pipe(W(()=>!1));Ue(d,l).pipe($(g=>t.next(g)),Te(n)).subscribe();}),this.clicked=new Qe(t=>{let o=Q(this.nativeElement,"mousedown",{passive:!0}).pipe($(l=>t.next(l))),d=Q(this.nativeElement,"mouseup",{passive:!0}).pipe($(()=>t.next(!1)));o.pipe(Ut(()=>d),Te(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.ɵfac=function(n){return new(n||i)(v(se));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollViewport",""]]});}}return i;})(),Oe=(()=>{class i{static{this.ɵfac=function(n){return new(n||i)();};}static{this.ɵdir=ae({type:i,standalone:!1});}}return i;})(),Qi=(()=>{class i{get clicked(){let e=Q(this.trackElement,"mousedown",{passive:!0}).pipe(ze(),Pl(this.document)),n=Q(this.document,"mouseup",{passive:!0}).pipe(ze(),Nl(this.document),Ut(()=>ao));return Ue(e,n);}get clientRect(){return this.trackElement.getBoundingClientRect();}constructor(e,n,t){this.cmp=e,this.trackElement=n,this.document=t;}onTrackClicked(e,n,t){return je(e).pipe(W(o=>o[this.pageProperty]),W(o=>(o-this.offset-n/2)/this.size*t),$(o=>{this.cmp.scrollTo(Ne(X({},this.mapToScrollToOption(o)),{duration:Bi(this.cmp.trackClickScrollDuration)}));}));}static{this.ɵfac=function(n){return new(n||i)(v(Oe),v(HTMLElement),v(Document));};}static{this.ɵdir=ae({type:i,standalone:!1});}}return i;})(),Ji=(()=>{class i extends Qi{get pageProperty(){return"pageX";}get offset(){return this.clientRect.left;}get size(){return this.trackElement.clientWidth;}constructor(e,n,t){super(e,n.nativeElement,t),this.cmp=e,this.document=t;}mapToScrollToOption(e){return{left:e};}static{this.ɵfac=function(n){return new(n||i)(v(Oe),v(se),v(pe));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarTrackX",""]],features:[Ae]});}}return i;})(),Ki=(()=>{class i extends Qi{get pageProperty(){return"pageY";}get offset(){return this.clientRect.top;}get size(){return this.trackElement.clientHeight;}constructor(e,n,t){super(e,n.nativeElement,t),this.cmp=e,this.document=t;}mapToScrollToOption(e){return{top:e};}static{this.ɵfac=function(n){return new(n||i)(v(Oe),v(se),v(pe));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarTrackY",""]],features:[Ae]});}}return i;})(),Dl=(()=>{class i{get trackMax(){return this.track.size-this.size;}get clientRect(){return this.thumbElement.getBoundingClientRect();}get clicked(){return Q(this.thumbElement,"mousedown",{passive:!0}).pipe(ze());}constructor(e,n,t,o){this.cmp=e,this.track=n,this.thumbElement=t,this.document=o,this._dragging=new ke(),this.dragging=this._dragging.pipe(ii());}update(){let e=ku(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=Uu(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ei.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e));}dragged(e){let n,t,o=je(e).pipe(Pl(this.document),$(()=>{n=this.trackMax,t=this.viewportScrollMax,this.setDragging(!0);})),d=Q(this.document,"mousemove",{capture:!0,passive:!0}).pipe(ze()),l=Q(this.document,"mouseup",{capture:!0}).pipe(ze(),Nl(this.document),$(()=>this.setDragging(!1)));return o.pipe(W(g=>g[this.pageProperty]),W(g=>g-this.dragStartOffset),lo(g=>d.pipe(W(T=>T[this.clientProperty]),W(T=>T-this.track.offset),W(T=>t*(T-g)/n),W(T=>this.handleDrag(T,t)),$(T=>this.scrollTo(T)),Te(l))));}static{this.ɵfac=function(n){return new(n||i)(v(Oe),v(Qi),v(HTMLElement),v(Document));};}static{this.ɵdir=ae({type:i,outputs:{dragging:"dragging"},standalone:!1});}}return i;})();function ku(i,c,e){let t=i/c*i;return Math.max(~~t,e);}function Uu(i,c,e){return i*e/c;}var wl=(()=>{class i extends Dl{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,t,o,d){super(e,n,t.nativeElement,o),this.cmp=e,this.track=n,this.element=t,this.document=o,this.dir=d;}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.ɵfac=function(n){return new(n||i)(v(Oe),v(Ji),v(se),v(pe),v(zi));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarThumbX",""]],features:[Ae]});}}return i;})(),Rl=(()=>{class i extends Dl{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,t,o){super(e,n,t.nativeElement,o),this.cmp=e,this.track=n,this.element=t,this.document=o;}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.ɵfac=function(n){return new(n||i)(v(Oe),v(Ki),v(se),v(pe));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarThumbY",""]],features:[Ae]});}}return i;})(),Il=(()=>{class i{constructor(e,n,t,o,d){this.el=e,this.cmp=n,this.platform=t,this.document=o,this.zone=d,this.destroyed=new ke();}activatePointerEvents(){let e,n,t;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new ke(),this.viewportThumbClicked=new ke(),this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,t=this.cmp.viewport.hovered.pipe(W(o=>o?qi(o,this.el.getBoundingClientRect()):!1),ii(),$(o=>this.document.onselectstart=o?()=>!1:null)),this.cmp.viewport.clicked.pipe($(o=>{o?qi(o,this.thumb.clientRect)?this.viewportThumbClicked.next(o):qi(o,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(o)):this.cmp.setClicked(!1);}),Te(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,t=this.hovered),Ue(t.pipe($(o=>this.setHovered(o))),e.pipe(Ut(o=>this.thumb.dragged(o))),n.pipe(Ut(o=>this.track.onTrackClicked(o,this.thumb.size,this.viewportScrollSize))));}get hovered(){let e=Q(this.el,"mouseenter",{passive:!0}).pipe(ze(),W(()=>!0)),n=Q(this.el,"mouseleave",{passive:!0}).pipe(ze(),W(()=>!1));return Ue(e,n);}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(Te(this.destroyed)).subscribe(),Ue(this.cmp.scrolled,this.cmp.updated).pipe($(()=>this.thumb?.update()),Te(this.destroyed)).subscribe();});}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete());}static{this.ɵfac=function(n){return new(n||i)(v(HTMLElement),v(Oe),v(lt),v(Document),v(we));};}static{this.ɵdir=ae({type:i,standalone:!1});}}return i;})(),xu=(()=>{class i extends Il{get viewportScrollSize(){return this.cmp.viewport.scrollHeight;}constructor(e,n,t,o,d){super(e.nativeElement,n,t,o,d),this.cmp=n,this.platform=t,this.document=o,this.zone=d;}setHovered(e){this.cmp.setHovered({verticalHovered:e});}static{this.ɵfac=function(n){return new(n||i)(v(se),v(Oe),v(lt),v(pe),v(we));};}static{this.ɵcmp=H({type:i,selectors:[["scrollbar-y"]],viewQuery:function(n,t){if(n&1&&(z(Ki,7),z(Rl,7)),n&2){let o;G(o=B())&&(t.track=o.first),G(o=B())&&(t.thumb=o.first);}},hostVars:2,hostBindings:function(n,t){n&2&&De("scrollbar-control",!0);},features:[Ae],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,t){n&1&&(r(0,"div",0),S(1,"div",1),s()),n&2&&(Vt("ng-scrollbar-track ",t.cmp.trackClass,""),a(),Vt("ng-scrollbar-thumb ",t.cmp.thumbClass,""));},dependencies:[Ki,Rl],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 i;})(),Vu=(()=>{class i extends Il{get viewportScrollSize(){return this.cmp.viewport.scrollWidth;}constructor(e,n,t,o,d){super(e.nativeElement,n,t,o,d),this.cmp=n,this.platform=t,this.document=o,this.zone=d;}setHovered(e){this.cmp.setHovered({horizontalHovered:e});}static{this.ɵfac=function(n){return new(n||i)(v(se),v(Oe),v(lt),v(pe),v(we));};}static{this.ɵcmp=H({type:i,selectors:[["scrollbar-x"]],viewQuery:function(n,t){if(n&1&&(z(Ji,7),z(wl,7)),n&2){let o;G(o=B())&&(t.track=o.first),G(o=B())&&(t.thumb=o.first);}},hostVars:2,hostBindings:function(n,t){n&2&&De("scrollbar-control",!0);},features:[Ae],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,t){n&1&&(r(0,"div",0),S(1,"div",1),s()),n&2&&(Vt("ng-scrollbar-track ",t.cmp.trackClass,""),a(),Vt("ng-scrollbar-thumb ",t.cmp.thumbClass,""));},dependencies:[Ji,wl],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 i;})(),Hu=new et("NG_SCROLLBAR_OPTIONS"),Ml={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},Ll=(()=>{class i{constructor(e){this.globalOptions=e?X(X({},Ml),e):Ml,this.rtlScrollAxisType=yi();}static{this.ɵfac=function(n){return new(n||i)(q(Hu,8));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})(),Yu=(()=>{class i{constructor(e,n,t){this.document=e,this.manager=n,this.platform=t,this._scrollbarSize=new so(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),t.isBrowser&&Q(this.document.defaultView,"resize",{passive:!0}).pipe($i(this.manager.globalOptions.windowResizeDebounce),W(()=>this.getNativeScrollbarSize()),ii(),$(o=>this._scrollbarSize.next(o))).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.ɵfac=function(n){return new(n||i)(q(pe),q(Ll),q(lt));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})(),$u=(()=>{class i{constructor(e,n,t){this.renderer=n,this.hideNativeScrollbar=t,this._subscriber=ro.EMPTY,this._subscriber=t.scrollbarSize.subscribe(o=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${o}px`,Ao.DashCase);});}ngOnDestroy(){this._subscriber.unsubscribe();}static{this.ɵfac=function(n){return new(n||i)(v(se),v(tt),v(Yu));};}static{this.ɵdir=ae({type:i,selectors:[["","hideNativeScrollbar",""]]});}}return i;})(),Gu=(()=>{class i{get debounce(){return this._debounce;}set debounce(e){this._debounce=Bi(e),this._subscribe();}get disabled(){return this._disabled;}set disabled(e){this._disabled=Ge(e),this._disabled?this._unsubscribe():this._subscribe();}constructor(e,n,t){if(this.zone=e,this.platform=n,this.scrollbar=t,this._disabled=!1,this._currentSubscription=null,this.event=new be(),!t)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 Qe(n=>{this._resizeObserver=new ResizeObserver(t=>n.next(t)),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($i(this._debounce)):e).subscribe(this.event);});}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe();}static{this.ɵfac=function(n){return new(n||i)(v(we),v(lt),v(Oe));};}static{this.ɵdir=ae({type:i,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}});}}return i;})(),Fl=(()=>{class i{get disabled(){return this._disabled;}set disabled(e){this._disabled=Ge(e);}get sensorDisabled(){return this._sensorDisabled;}set sensorDisabled(e){this._sensorDisabled=Ge(e);}get pointerEventsDisabled(){return this._pointerEventsDisabled;}set pointerEventsDisabled(e){this._pointerEventsDisabled=Ge(e);}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove;}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=Ge(e);}get autoHeightDisabled(){return this._autoHeightDisabled;}set autoHeightDisabled(e){this._autoHeightDisabled=Ge(e);}get autoWidthDisabled(){return this._autoWidthDisabled;}set autoWidthDisabled(e){this._autoWidthDisabled=Ge(e);}get nativeElement(){return this.el.nativeElement;}constructor(e,n,t,o,d,l){this.el=e,this.zone=n,this.changeDetectorRef=t,this.dir=o,this.smoothScroll=d,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 be(),this.state={},this.destroyed=new ke();}updateState(){let e=!1,n=!1,t=!1,o=!1;(this.track==="all"||this.track==="vertical")&&(t=this.viewport.scrollHeight>this.viewport.clientHeight,e=this.visibility==="always"||t),(this.track==="all"||this.track==="horizontal")&&(o=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||o),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:t,isHorizontallyScrollable:o});}setState(e){this.state=X(X({},this.state),e),this.changeDetectorRef.detectChanges();}getScrolledByDirection(e){let n;return this.scrolled.pipe($(t=>n=t),W(t=>t.target[e]),go(),ti(([t,o])=>t!==o),W(()=>n));}setHovered(e){this.zone.run(()=>this.setState(X({},e)));}setDragging(e){this.zone.run(()=>this.setState(X({},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=Q(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(_o(this.scrollAuditTime)):e,this.scrolled=e.pipe(Te(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($(()=>this.update()),Te(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.ɵfac=function(n){return new(n||i)(v(se),v(we),v(Re),v(zi),v(Ol),v(Ll));};}static{this.ɵcmp=H({type:i,selectors:[["ng-scrollbar"]],contentQueries:function(n,t,o){if(n&1&&No(o,Zi,7),n&2){let d;G(d=B())&&(t.customViewPort=d.first);}},viewQuery:function(n,t){if(n&1&&(z(Mu,5,se),z(Pu,5,se),z(Zi,7)),n&2){let o;G(o=B())&&(t.scrollbarY=o.first),G(o=B())&&(t.scrollbarX=o.first),G(o=B())&&(t.defaultViewPort=o.first);}},hostVars:2,hostBindings:function(n,t){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:[_e([{provide:Oe,useExisting:i}]),oi],ngContentSelectors:Nu,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,t){n&1&&(Mo(),r(0,"div",2)(1,"div",3),C("resizeSensor",function(){return t.update();}),r(2,"div",4)(3,"div"),Po(4),s()()(),E(5,Lu,3,2,"ng-container",5),s()),n&2&&(_("ngAttr",t.state),a(),_("sensorDebounce",t.sensorDebounce)("sensorDisabled",t.sensorDisabled),a(4),_("ngIf",!t.disabled));},dependencies:[ue,Fu,Gu,Zi,$u,Vu,xu],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 i;})();var kl=i=>[{name:i.getTranslation("Dashboard"),url:"/dashboard",icon:"fa-solid fa-house",visible:!0,key:"Dashboard"},{name:i.getTranslation("My BluVault"),url:"/bluvault",icon:"fa-solid fa-database",visible:!0,key:"My BluVault"},{name:i.getTranslation("Settings"),url:"/settings",icon:"fa-solid fa-gears",visible:!0,key:"Settings"},{name:i.getTranslation("Manage assets"),url:"/manageAssets",icon:"fa-solid fa-cubes",visible:!0,key:"Manage assets"},{name:i.getTranslation("Policy Management"),url:"/pms",icon:"fa-regular fa-file-lines",visible:!0,key:"Policy Management"},{name:i.getTranslation("User Migration"),url:"/userMigration",icon:"fa-solid fa-arrow-right-arrow-left",visible:!0,key:"User Migration"},{name:i.getTranslation("Users"),url:"/users",icon:"fa-solid fa-users",visible:!0,key:"Users"},{name:i.getTranslation("Unusual Activity Dashboard"),url:"/manageUnusualActivities",icon:"fa-solid fa-shield",visible:!0,key:"Unusual Activity Dashboard"},{name:i.getTranslation("Support"),url:"/support",icon:"fa-solid fa-headset",visible:!0,key:"Support"},{name:i.getTranslation("Downloads"),url:"/downloads",icon:"fa-solid fa-cloud-arrow-down",visible:!0,key:"Downloads"}];var Ul=(()=>{class i{static ɵfac=function(n){return new(n||i)();};static ɵmod=ci({type:i});static ɵinj=ni({imports:[za]});}return i;})();function Bu(i,c){i&1&&(r(0,"div",0),S(1,"div",1),s());}var xl=(()=>{class i{constructor(e,n){this.loadingService=e,this.router=n,this.detectRouteTransitions=!1,this.loading$=this.loadingService.loading$;}ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe($(e=>{e instanceof Bo?this.loadingService.loadingOn():e instanceof zo&&this.loadingService.loadingOff();})).subscribe();}static{this.ɵfac=function(n){return new(n||i)(v(mi),v(re));};}static{this.ɵcmp=H({type:i,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,t){n&1&&(E(0,Bu,2,0,"div",0),ne(1,"async")),n&2&&Ze(rt(1,1,t.loading$)?0:-1);},dependencies:[Ul,Fo],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%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-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 i;})();var Yi={provide:"httpHeaders",useFactory:i=>new Uo({"Content-Type":"application/json",Accept:"application/json",token:i.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[Z]};var zu=i=>({cloudPropertyElement:i}),Vl=()=>["admin","delegatedAdmin","readOnlyAdmin"],ju=()=>["/mspDashboard"],Xu=()=>["/dashboard"],Wu=()=>["/bluvault"],qu=()=>({"pointer-events":"none",cursor:"unset"}),Zu=()=>({});function Ju(i,c){i&1&&(r(0,"c-sidebar-footer",17),S(1,"button",18),s());}function Ku(i,c){if(i&1){let e=y();r(0,"c-sidebar",11,0)(2,"c-sidebar-header",12)(3,"c-sidebar-brand",13)(4,"img",14),C("error",function(t){u(e);let o=p();return h(o.onImageError(t));}),s()()(),r(5,"ng-scrollbar",15,1),C("updated",function(){u(e);let t=ie(6),o=p();return h(o.onScrollbarUpdate(t.state));}),S(7,"c-sidebar-nav",16,2),s(),E(9,Ju,2,0,"c-sidebar-footer",17),s();}if(i&2){let e=ie(1),n=p();a(3),_("routerLink",n.isMspEnabled&&x(5,Vl).includes(n.userType)?x(6,ju):x(7,Vl).includes(n.userType)?x(8,Xu):x(9,Wu))("ngStyle",n.userType==="superAdmin"?x(10,qu):x(11,Zu)),a(),_("src",n.parabluLogo,ge),a(3),_("navItems",n.navItems),a(2),Ze(e.narrow?-1:9);}}var Hl=(()=>{class i{constructor(e,n,t,o,d,l,g){this.cdr=e,this.router=n,this.licenseCheckService=t,this.userRoleService=o,this.apiService=d,this.translatorService=l,this.toastr=g,this.navItems=[],this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.cloudPropertyElement=null,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"];let T=localStorage.getItem("theme-default"),O=T||localStorage.setItem("theme-default",'"light"');this.parabluLogo=O==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1];}ngOnInit(){return K(this,null,function*(){this.navItems=kl(this.translatorService),this.userType=yield this.userRoleService.getUserRole(),this.navItems=yield this.getFilteredNavItems(),this.router.events.subscribe(e=>{e instanceof at&&this.getCloudProperties();}),this.getCloudProperties();});}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),t=JSON.parse(n);this.cloudPropertyElement=t.cloudPropertyElement,this.cdr.detectChanges();});}onScrollbarUpdate(e){}getFilteredNavItems(){return K(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,this.navItems.map(e=>(this.inclusionLicenses.includes("msp_environment_enabled")&&(this.userType=="admin"||this.userType=="readOnlyAdmin")?(e.key==="My BluVault"||e.key==="Downloads"||e.key=="Policy Management"||e.key=="Unusual Activity Dashboard"||e.key=="User Migration")&&(e.visible=!1):e.key==="My BluVault"||e.key==="Downloads"?e.visible=!0:e.key=="Unusual Activity Dashboard"?this.inclusionLicenses.includes("rwdetectionenabled")&&(this.userType=="admin"||this.userType=="superAdmin")?e.visible=this.shouldShowSettings():e.visible=!1:e.key=="Settings"&&(this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")||e.key=="User Migration"&&(this.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.key=="User Migration"&&(e.visible=!1),e.key=="User Migration"&&!(this.userType=="admin"||this.userType=="superAdmin")&&(e.visible=!1),this.userType=="superAdmin"&&e.key!="Dashboard"&&e.key!="Settings"&&e.key!="Support"&&e.key!="Policy Management"&&(e.visible=!1),e)).filter(e=>e.visible);});}shouldShowSettings(){return this.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.ɵfac=function(n){return new(n||i)(v(Re),v(re),v(yt),v(Se),v(j),v(ve),v(Ee));};}static{this.ɵcmp=H({type:i,selectors:[["app-dashboard"]],features:[_e([Yi,Et,Tt,Ka,tl])],decls:8,vars:7,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,"routerOutletData"],[3,"detectRouteTransitions"],[3,"conversationalAI"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink","ngStyle"],["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,t){n&1&&(E(0,Ku,10,12,"c-sidebar",3),r(1,"div",4),S(2,"app-default-header",5),r(3,"div",6)(4,"c-container",7),S(5,"router-outlet",8),s()(),S(6,"loading-indicator",9)(7,"app-default-footer",10),s()),n&2&&(_("ngIf",t.showSideBar),a(2),_("cShadowOnScroll","sm"),a(3),_("routerOutletData",Y(5,zu,t.cloudPropertyElement)),a(),_("detectRouteTransitions",!0),a(),_("conversationalAI",t.cloudPropertyElement==null?null:t.cloudPropertyElement.conversationalAI));},dependencies:[wa,Ma,Ni,vi,Fl,Na,Pa,Di,Ra,El,la,Mi,Ci,fe,ue,Ye,ul,xl],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 i;})();var Yl=(()=>{class i{constructor(e,n){this.toastr=e,this.translatorService=n;}showOnSuccess(){this.toastr.success(this.translatorService.getTranslation("Successfully Added...."),this.translatorService.getTranslation("Success"));}static{this.ɵfac=function(n){return new(n||i)(v(Ee),v(ve));};}static{this.ɵcmp=H({type:i,selectors:[["app-toastalert"]],decls:4,vars:0,consts:()=>{let e;e="toastalert works!";let n;return n="Add toast",[e,n,["cButton","","color","success",1,"m-1",3,"click"]];},template:function(n,t){n&1&&(r(0,"p"),f(1,0),s(),r(2,"button",2),C("click",function(){return t.showOnSuccess();}),f(3,1),s());},encapsulation:2});}}return i;})();var A=(()=>{class i{constructor(e,n,t,o){this.router=e,this.sharedService=n,this.authService=t,this.userRoleService=o;}canActivate(e,n){return K(this,null,function*(){let t=yield this.userRoleService.getUserRole(),o=e.data?.roles;if(o&&t&&o.includes(t))return!0;let d=this.authService.Token;return!d||d.trim()===""||t=="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1;});}static{this.ɵfac=function(n){return new(n||i)(q(re),q(Ce),q(Z),q(Se));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Qu=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],eh=[import("./chunk-NMFCCHUW.js"),import("./chunk-QJVR3RPR.js"),import("./chunk-K7CUTSST.js"),import("./chunk-DIY3BUQI.js"),import("./chunk-JZ7J2PIF.js"),import("./chunk-G7BJ5YHJ.js")],th=["/edit"],ih=[import("./chunk-WHW2PDSL.js")],$l=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Hl,children:[{path:"dashboard",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7K6AZL4B.js").then(i=>i.routes)},{path:"mspDashboard",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HPWRVJH6.js").then(i=>i.routes)},{path:"licenseOptimizer",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-N4E6T5VZ.js").then(i=>i.routes)},{path:"bluvault",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EPNSST5F.js").then(i=>i.routes)},{path:"backup/files",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-7XKCKW2B.js").then(i=>i.routes)},{path:"assetRestore",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-QDMKTASF.js").then(i=>i.routes)},{path:"manageAssets",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PPGDQ3JJ.js").then(i=>i.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2APPCFC5.js").then(i=>i.routes)},{path:"manageAssets/:productType",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-PPGDQ3JJ.js").then(i=>i.routes)},{path:"pms",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5YXLZXNL.js").then(i=>i.routes)},{path:"pms/schedules",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7A67BKWH.js").then(i=>i.routes)},{path:"pms/noBackupWindows",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VR53J33I.js").then(i=>i.routes)},{path:"pms/filters",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HCRXZNMZ.js").then(i=>i.routes)},...Qu.map((i,c)=>({path:`pms/:productKey${i}`,canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>eh[c].then(e=>e.routes)})),...th.map((i,c)=>({path:`pms/spAdmin/:productKey${i}`,canActivate:[A],data:{roles:["superAdmin"]},loadChildren:()=>ih[c].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZGP2WB6A.js").then(i=>i.routes)},{path:"settings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-AZMUUFNG.js").then(i=>i.routes)},{path:"settings/agentManager",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HCQL32FE.js").then(i=>i.routes)},{path:"settings/globalSettings",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5IRAFHAZ.js").then(i=>i.routes)},{path:"settings/aadCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-22EKF4PK.js").then(i=>i.routes)},{path:"settings/ssoCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-37WGNYTH.js").then(i=>i.routes)},{path:"azure",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-22EKF4PK.js").then(i=>i.routes)},{path:"settings/credentials/:type",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-7SN5HZBK.js").then(i=>i.routes)},{path:"adminConsentMultiTenant",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-IDRRDNG7.js").then(i=>i.routes)},{path:"adminConsent",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HVJQG4B6.js").then(i=>i.routes)},{path:"adminConsentBilling",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NRPCOT5Q.js").then(i=>i.routes)},{path:"adminConsentExchange",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YZKS7EFI.js").then(i=>i.routes)},{path:"oneDriveC2C",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XQJXQZ5U.js").then(i=>i.routes)},{path:"settings/adCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-L6NRCLKQ.js").then(i=>i.routes)},{path:"settings/cloudCredentials",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-GCMUJY7Q.js").then(i=>i.routes)},{path:"googleOAuth",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GCMUJY7Q.js").then(i=>i.routes)},{path:"settings/proxy",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-KWMOQY4U.js").then(i=>i.routes)},{path:"settings/metadataProperties",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YHUYJQVU.js").then(i=>i.routes)},{path:"settings/paracloudblukrypt",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-S2VGZLLP.js").then(i=>i.routes)},{path:"settings/dataMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-QUH43BLY.js").then(i=>i.routes)},{path:"settings/c2cSettings",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XQJXQZ5U.js").then(i=>i.routes)},{path:"settings/smtp",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZTO4NQFO.js").then(i=>i.routes)},{path:"settings/siem",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-UIL4M5R2.js").then(i=>i.routes)},{path:"settings/m365Settings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-GNISIMXN.js").then(i=>i.routes)},{path:"settings/m365Consent",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-TAMQREZJ.js").then(i=>i.routes)},{path:"settings/smbConsent",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-IFUZPXSU.js").then(i=>i.routes)},{path:"settings/m365BackupStorage",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NRPCOT5Q.js").then(i=>i.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HVJQG4B6.js").then(i=>i.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-TAMQREZJ.js").then(i=>i.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YZKS7EFI.js").then(i=>i.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-L3LV3DPC.js").then(i=>i.routes)},{path:"settings/keyManager",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YLBJ2Y7A.js").then(i=>i.routes)},{path:"userMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-C4ZIQVDB.js").then(i=>i.routes)},{path:"userMigration/importUsers",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-IQGC753E.js").then(i=>i.routes)},{path:"report/userMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-H7XVGAAJ.js").then(i=>i.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FCAX7LWZ.js").then(i=>i.routes)},{path:"users",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BKTAYE5A.js").then(i=>i.routes)},{path:"users/create",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6LRVBLVH.js").then(i=>i.routes)},{path:"users/edit",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EH2S25Y2.js").then(i=>i.routes)},{path:"users/profile",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-5CKLTRS2.js").then(i=>i.routes)},{path:"users/bulkUserOperation",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-SOROA76U.js").then(i=>i.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-SOROA76U.js").then(i=>i.routes)},{path:"activityHistory",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-T66YHPYJ.js").then(i=>i.routes)},{path:"unusualActivityHistory",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-55E7VJSK.js").then(i=>i.routes)},{path:"endpointsDownload",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-ARQBNRJ6.js").then(i=>i.routes)},{path:"backupSummary",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-TF2OUGXU.js").then(i=>i.routes)},{path:"support",canActivate:[A],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-TGZFUGUS.js").then(i=>i.routes)},{path:"support/licenseKey",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YGHRAPAF.js").then(i=>i.routes)},{path:"downloads",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EE62JYZR.js").then(i=>i.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OJMHJI4Y.js").then(i=>i.routes)},{path:"report/backupOverview/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HQPJZTSF.js").then(i=>i.routes)},{path:"report/backupHistory/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NJTIZNOG.js").then(i=>i.routes)},{path:"report/restoreHistory/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NQVWZYQM.js").then(i=>i.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HLIL4CTV.js").then(i=>i.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-W324ARXA.js").then(i=>i.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DKL5KHJH.js").then(i=>i.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-V5MBKIGY.js").then(i=>i.routes)},{path:"report/assetAssigned/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4NVEJHNN.js").then(i=>i.routes)},{path:"report/capacityManagement/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-SALCIIBJ.js").then(i=>i.routes)},{path:"policyConfig",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-OXGIFSGU.js").then(i=>i.routes)},{path:"manageUnusualActivities",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-V6NCPARF.js").then(i=>i.routes)},{path:"sync/files",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-POZKNAVR.js").then(i=>i.routes)},{path:"sync/miniclouds",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NJ6MOC5V.js").then(i=>i.routes)},{path:"pages",loadChildren:()=>import("./chunk-5FWQJRQB.js").then(i=>i.routes)}]},{path:"toast",component:Yl,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-7GOFUV6R.js").then(i=>i.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-2O6HWGNR.js").then(i=>i.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-DIYM75KL.js").then(i=>i.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-Q5YEWWAQ.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-Q5YEWWAQ.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-Q5YEWWAQ.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-R56FA56E.js").then(i=>i.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-Q5YEWWAQ.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-Q5YEWWAQ.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"fileArchivedView",loadComponent:()=>import("./chunk-XYH6CP2W.js").then(i=>i.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-RBNB2WWJ.js").then(i=>i.LogoutComponent),data:{title:"Logout Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-26IW6FNL.js").then(i=>i.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-GLQUE7PO.js").then(i=>i.OperationFailedComponent),data:{title:"Operation Failed Page"}},{path:"register",loadComponent:()=>import("./chunk-63T4YRPS.js").then(i=>i.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[A],loadComponent:()=>import("./chunk-MRNPE5TM.js").then(i=>i.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[A],loadComponent:()=>import("./chunk-36TFAHPL.js").then(i=>i.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"Google Drive/policyView",canActivate:[A],loadComponent:()=>import("./chunk-77UEGNNV.js").then(i=>i.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[A],loadComponent:()=>import("./chunk-DLWTN7Q3.js").then(i=>i.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[A],loadComponent:()=>import("./chunk-A7UNNFMR.js").then(i=>i.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[A],loadComponent:()=>import("./chunk-2AUYSZJL.js").then(i=>i.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var nh="@",oh=(()=>{class i{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Xe(Eo);loadingSchedulerFn=Xe(rh,{optional:!0});_engine;constructor(e,n,t,o,d){this.doc=e,this.delegate=n,this.zone=t,this.animationType=o,this.moduleImpl=d;}ngOnDestroy(){this._engine?.flush();}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-55SVGH3W.js").then(t=>t),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(t=>{throw new Co(5300,!1);}).then(({ɵcreateEngine:t,ɵAnimationRendererFactory:o})=>{this._engine=t(this.animationType,this.doc);let d=new o(this.delegate,this._engine,this.zone);return this.delegate=d,d;});}createRenderer(e,n){let t=this.delegate.createRenderer(e,n);if(t.ɵtype===0)return t;typeof t.throwOnSyntheticProps=="boolean"&&(t.throwOnSyntheticProps=!1);let o=new en(t);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let l=d.createRenderer(e,n);o.use(l),this.scheduler??=this.injector.get(yo,null,{optional:!0}),this.scheduler?.notify(11);}).catch(d=>{o.use(t);}),o;}begin(){this.delegate.begin?.();}end(){this.delegate.end?.();}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve();}static ɵfac=function(n){Oo();};static ɵprov=ye({token:i,factory:i.ɵfac});}return i;})(),en=class{delegate;replay=[];ɵtype=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,t){this.delegate.insertBefore(c,e,n,t);}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,t){this.delegate.setAttribute(c,e,n,t);}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,t){this.delegate.setStyle(c,e,n,t);}removeStyle(c,e,n){this.delegate.removeStyle(c,e,n);}setProperty(c,e,n){this.shouldReplay(e)&&this.replay.push(t=>t.setProperty(c,e,n)),this.delegate.setProperty(c,e,n);}setValue(c,e){this.delegate.setValue(c,e);}listen(c,e,n,t){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(c,e,n,t)),this.delegate.listen(c,e,n,t);}shouldReplay(c){return this.replay!==null&&c.startsWith(nh);}},rh=new et("");function Qt(i="animations"){return si("NgAsyncAnimations"),vo([{provide:li,useFactory:(c,e,n)=>new oh(c,e,n,i),deps:[pe,gi,we]},{provide:xt,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}]);}var Gl={providers:[Ho(),Xo($l,Zo({onSameUrlNavigation:"reload"}),Wo({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),qo(),Jo()),So(Da,ga),Si,_l(),Qt("noop"),Ja({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Qt(),Be]};var Bl={provide:"PRODUCTS_FACTORY",useFactory:()=>[{title:"BluVault",key:"backup",key2:"BACKUP",key3:"Backup",keyRegex:/Lin|Win|Mac/,exclusion_keys:["linux","mac","win"],licenceKey:"backup_enabled",featureLicenceKey:{issqlbkpenabled:"issqlbkpenabled",rwdetectionenabled:"rwdetectionenabled"},showFilter:!0,noBackupWindows:!0,showBulkMapping:!0,policyConfigurations:null,routes:{policy:"policy",viewPolicy:"policyView"},dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTile",show:"activeUsers"},default:{flip:!1,show:!0},title:"Active Users",template:"%{activeBackupUsers} / %{noOfBackupUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedBackupUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTile",show:"activeDevices"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackups",show:"totalCompletedBackups"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,modal:{flip:"flipNotProtectedTile",show:{tile8ReportType:{$neq:"usersWithSystemsNotProtected"}}},default:{flip:!1,show:!0},title:"Assets not protected",template:"%{noOfDevicesNotProtected}",flip:{title:"Users without any assets protected",template:"%{noOfUsersProtected}"}},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilized",show:"totalActualStorageUtilized"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Backup",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Backup",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Backup",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Backup",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Users without any assets protected",route:"report/usersWithoutAssetsProtected/Backup",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Backup",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Heartbeat Report",route:"report/assetHeartbeat/Backup",cloudPropertyElementFlag:"showDeviceHeartbeatReport"},{title:"Asset Assignment Report",route:"report/assetAssigned/Backup"}]},downloadsConfigurations:null,Add_Folder:il,Add_Exclusion_Folder:nl,Add_Exception_Folder:ol},{title:"Servers",key:"server",licenceKey:"windows_server_backup_enabled",showFilter:!0,noBackupWindows:!0,showBulkMapping:!0,policyConfigurations:null,routes:{policy:null},dashboard:null},{title:"BluSync",key:"BluSync",licenceKey:"sync_enabled",showFilter:!0,showBulkMapping:!0,routes:{policy:"syncPolicy"},policyConfigurations:null,dashboard:null},{title:"Microsoft Exchange",key:"Exchange",key2:"OUTLOOK",key3:"mail",exclusion_keys:["exchange"],licenceKey:"exchange_backup_enabled",showBulkMapping:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",contentSearch:"contentsearchenabledforexchange",inplacearchivebackupenabled:"inplacearchivebackupenabled",mailarchivingenabled:"mailarchivingenabled"},routes:{policy:"exchangePolicy",viewPolicy:"exchangePolicyView"},downloads:{unified:!0},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileExchange",show:"activeUsersExchange"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveExchangeUsers} / %{noOfExchangeUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedExchangeUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileExchange",show:"activeDevicesExchange"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsExchange",show:"totalCompletedBackupsExchange"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedExchange",show:"totalActualStorageUtilizedExchange"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Exchange",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Exchange",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Exchange",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Exchange",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Exchange",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Exchange"},{title:"Capacity Savings",route:"report/capacityManagement/Exchange",requiresLicense:"mailarchivingenabled"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!0,cancel:!0}},Add_Folder:ji,Add_Exclusion_Folder:Xi},{title:"OneDrive for Business",key:"ODB",key2:"ONEDRIVE",key3:"OneDrive",licenceKey:"onedrive_backup_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,showBulkMapping:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"onedrivearchivingenabled",contentSearch:"contentsearchenabledforonedrive"},routes:{policy:"oneDrivePolicy",viewPolicy:"onedrivePolicyView"},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileOnedrive",show:"activeUsersOnedrive"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveOneDriveUsers} / %{noOfOneDriveUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedOneDriveUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileOnedrive",show:"activeDevicesOnedrive"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsOnedrive",show:"totalCompletedBackupsOnedrive"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedOnedrive",show:"totalActualStorageUtilizedOnedrive"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/ODB",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/ODB",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/ODB",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/ODB",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/ODB",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/ODB"},{title:"Capacity Savings",route:"report/capacityManagement/ODB",requiresLicense:"onedrivearchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:zt,Add_Exclusion_Folder:jt},{title:"SharePoint Online",key:"Sharepoint",key2:"SHAREPOINT",licenceKey:"sharepoint_backup_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"sparchivingenabled",contentSearch:"contentsearchenabledforsharepoint"},policyConfigurations:null,routes:{policy:"sharepointPolicy",policyMapping:"/policyMapping",viewPolicy:"sharepointPolicyView"},dashboard:{tiles:[{key:"devices",passProduct:!1,noRoute:!1,title:"Active Sites",template:"%{noOfActiveSPSites} / %{noOfSPSitesAllowed}"},{key:"devices",passProduct:!1,noRoute:!1,title:"Blocked Sites",template:"%{noOfBlockedSPSites}"},{key:"backupHistory",passProduct:!0,noRoute:!1,title:"Active Sites with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedSharepoint",show:"totalActualStorageUtilizedSharepoint"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Sharepoint",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Sharepoint",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Sharepoint",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Sharepoint",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Sharepoint",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Capacity Savings",route:"report/capacityManagement/Sharepoint",requiresLicense:"sparchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:zt,Add_Exclusion_Folder:jt},{title:"Gmail",key:"Gmail",exclusion_keys:["Gmail"],licenceKey:"gmail_backup_enabled",showBulkMapping:!0,routes:{policy:"gmailPolicy",viewPolicy:"gmailPolicyView"},downloads:{unified:!0},featureLicenceKey:{contentSearch:"contentsearchenabledforgmail"},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileGmail",show:"activeUsersGmail"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveUsers} / %{noOfUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileGmail",show:"activeDevicesGmail"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsGmail",show:"totalCompletedBackupsGmail"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",modal:{flip:"flipTotalActualStorageUtilizedGmail",show:"totalActualStorageUtilizedGmail"},default:{flip:!1,show:!0},flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Gmail",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Gmail",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Gmail",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Gmail",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Gmail",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Gmail"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!0,cancel:!1}},Add_Folder:ji,Add_Exclusion_Folder:Xi},{title:"Google Drive",key:"Google Drive",licenceKey:"gdrive_backup_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,showBulkMapping:!0,featureLicenceKey:{archiving:"gdrivearchivingenabled",contentSearch:"contentsearchenabledforgdrive"},routes:{policy:"gdrive",viewPolicy:"Google%20Drive/policyView"},downloads:{unified:!0},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileGdrive",show:"activeUsersGdrive"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveUsers} / %{noOfUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileGdrive",show:"activeDevicesGdrive"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsGdrive",show:"totalCompletedBackupsGdrive"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedGdrive",show:"totalActualStorageUtilizedGdrive"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:" Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Google Drive",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Google Drive",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Google Drive",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Google Drive",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Google Drive",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Google Drive"}]},downloadsConfigurations:{restore:{stop:!1,start:!0,rootBrowsePath:"root"},backup:{stop:!1,pause:!1,start:!0,cancel:!1}},Add_Folder:zt,Add_Exclusion_Folder:jt},{title:"BluSync",key:"sync",licenceKey:"sync_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,featureLicenceKey:{contentSearch:"contentsearchenabledforsync"},policyConfigurations:null,routes:{policy:"syncPolicy",policyMapping:"/policyMapping",viewPolicy:"syncPolicyView"},dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,title:"Active Users",template:"%{noOfSyncUsersConnected} / %{noOfUsersConnected}"},{key:"miniClouds",passProduct:!1,noRoute:!1,title:"MiniClouds",template:"%{noOfMyClouds}"},{key:"storageDetails",passProduct:!0,noRoute:!1,title:"Storage Details",template:"%{spaceUsed}"},{key:"validity",noRoute:!0,title:"Parablu Installation valid Until",template:"%{noOfBackupUsersConnected}"}],reports:[{title:"BluSync Overview",route:"report/userBackupSummary"},{title:"MiniCloud Activity History",route:"report/overview"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!1,cancel:!1}},Add_Folder:zt,Add_Exclusion_Folder:jt}]};function sh(i){return()=>i.loadConfig().toPromise().then(c=>{i.setConfig(c);});}$o(cl,{providers:[...Gl.providers,mi,{provide:wo,useFactory:sh,deps:[Be],multi:!0},{provide:Vo,useClass:Yo,multi:!0},Yi,Bl,Qt()]}).catch(i=>console.error(i));export{sh as loadConfig};/**i18n:557364621938d8343d66734722390263df08d9a6046a2573ce83f95c485272f3*/