import{$ as Zo,$a as Zs,A as yo,Aa as ys,B as bo,Ba as bs,C as Ao,Ca as As,D as Oo,Da as Os,E as wo,Ea as ws,F as Ro,Fa as Rs,G as Mo,Ga as Ms,H as Po,Ha as Ps,I as No,Ia as Ns,J as Do,Ja as Ds,K as Io,Ka as Is,L as Fo,La as Fs,M as Lo,Ma as Ls,N as xo,Na as xs,O as ko,Oa as ks,P as Uo,Pa as Us,Q as Vo,Qa as Vs,R as Ho,Ra as Hs,S as Yo,Sa as Ys,T as $o,Ta as $s,U as Go,Ua as Gs,V as Bo,Va as Bs,W as zo,Wa as zs,X as jo,Xa as js,Y as Xo,Ya as Xs,Z as Wo,Za as Ws,_ as qo,_a as qs,a as Zr,aa as Jo,ab as Js,b as Jr,ba as Ko,bb as Ks,c as Kr,ca as Qo,d as Qr,da as es,e as eo,ea as ts,f as to,fa as is,g as io,ga as ns,h as no,ha as rs,i as ro,ia as os,j as oo,ja as ss,k as so,ka as as,l as ao,la as ls,m as lo,ma as cs,n as co,na as ds,o as _o,oa as _s,p as po,pa as ps,q as uo,qa as us,r as mo,ra as ms,s as ho,sa as hs,t as go,ta as gs,u as fo,ua as fs,v as Co,va as Cs,w as vo,wa as vs,x as So,xa as Ss,y as Eo,ya as Es,z as To,za as Ts}from"./chunk-YCOEOYKF.js";import{a as Ja}from"./chunk-V7R2WWB5.js";import{a as Qa}from"./chunk-6ZPQW3DX.js";import{a as Ui}from"./chunk-573NKZZD.js";import{a as Ba,b as Ct}from"./chunk-6JBHGFQG.js";import{a as Et}from"./chunk-7OYRDWZC.js";import{a as Tt}from"./chunk-J4GR7VBK.js";import{f as ta,g as Bt,h as Ei,m as ia,n as Ti,p as na,u as ra}from"./chunk-PHHHVUYB.js";import{a as Xi,b as Wi,c as zt,d as jt,e as el,f as tl,g as il}from"./chunk-URLG4N2W.js";import{a as za,b as vt,d as ja,e as Xa,f as St}from"./chunk-H2T2K6EM.js";import{a as ki}from"./chunk-OZ25E7CC.js";import{a as Wa}from"./chunk-V3MPVAIT.js";import{a as yt}from"./chunk-NHUQD2C2.js";import{a as ea,b as Ee,c as qa,d as Ka}from"./chunk-VGNQ6GX5.js";import{a as hi,c as Vr,d as j}from"./chunk-MEOEOGXB.js";import{a as Za}from"./chunk-AQXJPMKE.js";import{a as ji,i as Ga,w as ft}from"./chunk-N53NM7AZ.js";import{b as Li,c as ut,g as mt,h as Fa,i as La,j as ht,k as xa,p as ka,q as Ua,r as Va,u as xi,v as Ha,w as Ya,x as $a,y as gt}from"./chunk-BNBVQHGL.js";import{b as Z,c as Ce,d as Be,h as ve,i as Se}from"./chunk-DSI4EXW5.js";import{$a as Ma,A as qr,Aa as wi,B as Si,Ba as ga,C as Qs,D as oa,E as lt,Ea as fa,Fa as Ca,Ga as Ri,H as yi,Ha as Mi,Ia as Pi,Ja as Ni,Ka as Pe,Ma as va,N as Ge,Na as Sa,O as zi,Oa as Ea,R as sa,Ra as Ta,Sa as ya,Ta as ba,Va as Aa,Wa as Di,Xa as Ii,Ya as Oa,Za as wa,_a as Ra,a as Lr,ab as Pa,bb as pt,cb as Na,db as Da,eb as Ia,f as xr,fb as Fi,g as kr,ga as bi,h as Ur,ha as aa,i as Me,ia as Ai,j as gi,k as Hr,ka as Oi,l as Yr,m as fi,ma as ct,na as dt,o as at,p as $r,q as Gr,qa as _t,r as Br,ra as la,sa as ca,t as Ci,ta as da,u as oe,ua as _a,v as vi,va as pa,w as zr,wa as ua,x as jr,xa as ma,y as Xr,ya as ha,z as Wr}from"./chunk-IMCLO7B5.js";import{$b as Ue,A as lr,Aa as Sr,Ab as Y,Ac as B,B as Q,Ba as Er,Bb as ci,Bd as Ye,Cb as ae,Cd as Dr,D as ke,Da as be,Dd as Ir,E as ti,Ea as we,Eb as Ae,Ec as re,F as cr,Fc as Pr,Fd as $e,Gc as h,Hb as E,Hc as V,Hd as ui,I as Gi,Ia as se,Ic as N,Id as mi,Ja as si,Jc as He,Jd as fe,K as dr,Kb as Ar,L as _r,Lc as I,Ld as Fr,M as ii,Mc as F,N as pr,Nc as L,O as ur,Qa as Tr,Qb as qe,Ra as Ut,Rb as _,Rc as _e,S as mr,Sb as it,Sc as U,Tb as De,Tc as H,Uc as rt,Wb as Vt,Wc as ee,X as kt,Xc as ot,Y as Te,Yb as Ze,Yc as Gt,Z as hr,Zc as Ie,_ as $,_b as nt,_c as _i,a as rr,aa as gr,ac as Ve,bc as o,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 xe,fa as et,fb as We,fc as Yt,fd as Nr,g as or,gb as ge,gc as di,ha as q,hc as y,ia as Xe,j as ei,k as sr,kb as yr,kc as le,la as fr,lb as a,lc as ce,ma as Cr,mb as v,mc as C,nb as br,nc as ie,nd as pe,oc as ne,p as je,pc as Or,qb as li,qc as f,ra as ri,rb as tt,rc as p,sa as u,sc as wr,ta as m,tc as Rr,u as W,ua as oi,uc as de,va as Bi,vc as Je,vd as pi,w as ar,wc as $t,wd as st,xc as Mr,xd as ue,ya as vr,yc as z,zc as G}from"./chunk-QPCTCEE3.js";import{a as X,b as Ne,i as K}from"./chunk-Z6FMTJBH.js";var nl=["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 rl=["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 ol={cibCcAmex:Zr,cibCcApplePay:Jr,cibCcMastercard:Kr,cibCcPaypal:Qr,cibCcStripe:eo,cibCcVisa:to,cibFacebook:io,cibGoogle:no,cibLinkedin:ro,cibSkype:oo,cibTwitter:so,cifBr:ao,cifEs:lo,cifFr:co,cifIn:_o,cifPl:po,cifUs:uo,cilAccountLogout:mo,cilAlignCenter:ho,cilAlignLeft:go,cilAlignRight:fo,cilApplicationsSettings:Co,cilArrowBottom:vo,cilArrowRight:So,cilArrowTop:To,cilBasket:yo,cilBell:bo,cilBold:Ao,cilBookmark:Oo,cilCalculator:wo,cilCalendar:Ro,cilChart:Po,cilChartPie:Mo,cilCheck:Do,cilCheckAlt:No,cilChevronLeft:Io,cilChevronRight:Fo,cilCloud:xo,cilCloudDownload:Lo,cilCode:ko,cilCommentSquare:Uo,cilContrast:Vo,cilCreditCard:Ho,cilCursor:Yo,cilDescription:$o,cilDollar:Bo,cilDrop:zo,cilEnvelopeClosed:jo,cilEnvelopeOpen:Xo,cilFile:qo,cilGrid:Jo,cilHome:es,cilInbox:ts,cilIndentDecrease:is,cilIndentIncrease:ns,cilItalic:rs,cilJustifyCenter:os,cilLanguage:ss,cilLayers:as,cilList:cs,cilListNumbered:ls,cilLocationPin:ds,cilLockLocked:_s,cilMagnifyingGlass:ps,cilMap:us,cilMediaPlay:hs,cilMediaRecord:gs,cilMenu:Cs,cilMoon:vs,cilNotes:Ss,cilOptions:Es,cilPaperclip:ys,cilPaperPlane:Ts,cilPen:bs,cilPencil:As,cilPeople:Os,cilPrint:ws,cilPuzzle:Rs,cilReportSlash:Ps,cilSave:Ns,cilSettings:Is,cilShare:xs,cilShareAll:Fs,cilShareBoxed:Ls,cilSpeech:Vs,cilSpeedometer:Hs,cilSpreadsheet:Ys,cilStar:$s,cilSun:Gs,cilTags:Bs,cilTask:zs,cilTrash:Xs,cilUnderline:Ws,cilUser:Ks,cilUserFemale:qs,cilUserFollow:Zs,cilUserUnfollow:Js,logo:rl,signet:nl,cilDevices:Go,cilSitemap:Us,cilTransfer:js,cilHistory:Qo,cilHandshake:Ko,cilReload:Ms,cilFullscreen:Zo,cilMediaPause:ms,cilMediaStop:fs,cilShieldAlt:ks,cilArrowThickBottom:Eo,cilEqualizer:Wo,cilSend:Ds};var al=(()=>{class i{constructor(e,n,t,r){this.router=e,this.titleService=n,this.iconSetService=t,this.idleTimeoutService=r,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=X({},ol);}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(oe),v(Yr),v(Si),v(ea));};}static{this.ɵcmp=Y({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 Gl=(()=>{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 Bl(){return new ia();}function zl(i,c,e){return new ra(i,c,e);}var ll=[{provide:Ei,useFactory:Bl},{provide:Ti,useClass:Gl},{provide:li,useFactory:zl,deps:[gi,Ti,we]}],jl=[{provide:Bt,useFactory:()=>new na()},{provide:Ut,useValue:"BrowserAnimations"},...ll],Mm=[{provide:Bt,useClass:ta},{provide:Ut,useValue:"NoopAnimations"},...ll];function cl(){return si("NgEagerAnimations"),[...jl];}var Xl=()=>[];function Wl(i,c){if(i&1){let e=y();o(0,"div",9),f("click",function(){u(e);let t=p();return m(t.openChatbot());}),S(1,"input",10),o(2,"label",11),S(3,"span",12)(4,"span",13)(5,"span",14),s()();}}function ql(i,c){if(i&1){let e=y();o(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(),o(9,"div",22)(10,"span")(11,"a",23),f("click",function(){u(e);let t=p();return m(t.startOverChat());}),C(12,1),s()()()(),o(13,"main",24)(14,"div",25),S(15,"div",26),o(16,"div",27)(17,"div",28)(18,"div",29),h(19,"CrashPlan"),s(),o(20,"div",30),h(21),s()(),o(22,"div",31),C(23,2),s()()()(),o(24,"c-card")(25,"c-card-header")(26,"label",32),C(27,3),s()(),o(28,"c-card-body")(29,"form",33)(30,"div",34)(31,"input",35),L("ngModelChange",function(t){u(e);let r=p();return F(r.query,t)||(r.query=t),m(t);}),s()(),o(32,"div",36)(33,"button",37),f("click",function(){u(e);let t=p();return m(t.getChatbotResults());}),C(34,4),s()()()()()()()()()();}if(i&2){let e=p();_("showCloseIcon",!0)("closeIconAction",e.closeChatbot)("modalSize","modal-fullscreen")("modalWidth","90%")("footerButtons",U(10,Xl)),a(15),Pr("background-image: url(",e.neilLogo,")"),a(6),V(e.todaysDate),a(10),I("ngModel",e.query);}}var _l=(()=>{class i extends ha{constructor(e,n,t,r,d,l,g){super(),this.authService=e,this.router=n,this.apiService=t,this.toastr=r,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 r=n+":"+t;return r;}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 r=this.neilLogo,d=this.get(".msger-chat");T("CrashPlan",r,"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 D=l(new Date()),x="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);R=R.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let te="";P==""&&t==0?te=`
          <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">${D}</div>
              </div>
              <div class="msg-text">${R}</div>
            </div>
          </div>`:te=`
          <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">${D}</div>
              </div>
              <div class="msg-text">${R}</div>
              ${P&&P.length>0?`
              <p>
                <a href="javascript:void(0);" id="${x}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${x}-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",te),setTimeout(()=>{let J=document.getElementById(`${x}-toggle`),he=document.getElementById(`${x}-sources`);J&&he&&J.addEventListener("click",function(){let Le=he.style.display==="none";he.style.display=Le?"block":"none",J.innerText=Le?"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"),r=atob(this.sharedService.getDataByKey("userName"));g(r,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(oe),v(j),v(Ee),v(Ce),v(ve),v(Se));};}static{this.ɵcmp=Y({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 r;r="Query :";let d;return d="Send",[e,n,t,r,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,Wl,6,0,"div",5),o(1,"div",6)(2,"a",7),h(3),s()(),E(4,ql,35,11,"app-modal",8)),n&2&&(_("ngIf",t.conversationalAI&&t.userType=="admin"),a(3),N("\xA9 CrashPlan ",t.currentYear," "),a(),_("ngIf",t.displayCreateStyle));},dependencies:[gt,xa,ut,mt,Fa,ht,La,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 Zl(i,c){if(i&1){let e=y();o(0,"div",7)(1,"button",9),f("click",function(){u(e);let t=p();return m(t.navigateToSales());}),h(2,"Contact Sales"),s()();}}var pl=(()=>{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=Y({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&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row")(5,"h4",4),h(6,"Your Organization is not licensed to use the CrashPlan Endpoint Product"),s(),o(7,"p",5),h(8," Contact Sales for more information. "),s(),o(9,"div"),E(10,Zl,3,0,"div",6),o(11,"div",7)(12,"button",8),f("click",function(){return t.closeSelf();}),h(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 Ql=(i,c)=>({"col-lg-12":i,"col-lg-7":c}),ec=()=>({"col-lg-5":!0}),tc=i=>({display:i}),ic=(i,c)=>({active:i,disabled:c}),nc=()=>["Google Drive","Gmail"];function rc(i,c){if(i&1){let e=y();o(0,"a",53),f("click",function(){u(e);let t=p(2);return m(t.enableMultiSelect());}),S(1,"i",54),o(2,"span",55),C(3,1),s()();}}function oc(i,c){if(i&1){let e=y();o(0,"a",53),f("click",function(){u(e);let t=p(2);return m(t.removeAll());}),S(1,"i",56),o(2,"span",55),C(3,2),s()();}}function sc(i,c){if(i&1){let e=y();o(0,"button",57),f("click",function(){u(e);let t=p(2);return m(t.addToCartFinal());}),C(1,3),s();}}function ac(i,c){if(i&1){let e=y();o(0,"button",58),f("click",function(){u(e);let t=p(2);return m(t.onExportAsZipG());}),C(1,4),s();}}function lc(i,c){if(i&1){let e=y();o(0,"button",59),f("click",function(){u(e);let t=p(2);return m(t.onExportAsZipG());}),C(1,5),s();}if(i&2){let e=p(2);_("ngClass",rt(1,ic,e.addedElementsCount>0,e.addedElementsCount<=0));}}function cc(i,c){if(i&1){let e=y();o(0,"th",60)(1,"input",61),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.isSelectAll,t)||(r.isSelectAll=t),m(t);}),f("change",function(){u(e);let t=p(2);return m(t.toggleSelectAll());}),s()();}if(i&2){let e=p(2);a(),I("ngModel",e.isSelectAll);}}function dc(i,c){if(i&1){let e=y();o(0,"td")(1,"input",66),L("ngModelChange",function(t){u(e);let r=p().$implicit;return F(r.isChecked,t)||(r.isChecked=t),m(t);}),f("change",function(){u(e);let t=p(3);return m(t.itemSelect());}),s()();}if(i&2){let e=p().$implicit;a(),I("ngModel",e.isChecked);}}function _c(i,c){if(i&1){let e=y();o(0,"tr"),E(1,dc,2,1,"td",31),o(2,"td")(3,"div")(4,"h4"),h(5),s()(),o(6,"p",62)(7,"b"),h(8,"Found in: "),s(),h(9),s(),o(10,"p"),S(11,"span",63),s()(),o(12,"td")(13,"button",64),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.onDownload(t));}),C(14,6),s(),o(15,"button",65),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.onOpenLocation(t));}),C(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 pc(i,c){if(i&1){let e=y();o(0,"th"),h(1),o(2,"button",67),f("click",function(){u(e);let t=p(2);return m(t.removeAll());}),C(3,8),s()();}if(i&2){let e=p(2);a(),He(" ",e.addedElementsCount," out of ",e.totalCountGS," selected ");}}function uc(i,c){if(i&1&&(o(0,"th"),C(1,9),s()),i&2){let e=p(2);a(),ie(e.addedElementsCount),ne(1);}}function mc(i,c){if(i&1){let e=y();o(0,"tr")(1,"td",68)(2,"span",69),h(3),s(),o(4,"a",70),f("click",function(){let t=u(e),r=t.$implicit,d=t.index,l=p(2);return m(l.removeItem(d,r.fileName,r.fileRevisionID,r.fileName));}),S(5,"i",71),s(),o(6,"p",72)(7,"b"),C(8,10),s(),o(9,"span",73),C(10,11),s()()()();}if(i&2){let e=c.$implicit;a(3),V(e.fileName),a(7),ie(e.deviceName)(e.filePath),ne(10);}}function hc(i,c){if(i&1&&(o(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",36),E(4,rc,4,0,"a",37)(5,oc,4,0,"a",37),o(6,"span")(7,"b"),C(8,0),s()(),E(9,sc,2,0,"button",38)(10,ac,2,0,"button",39)(11,lc,2,4,"button",40),s(),o(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,cc,2,1,"th",46),o(20,"th",47),h(21,"File Name"),s(),o(22,"th",48),h(23,"Actions"),s()()(),o(24,"tbody"),E(25,_c,17,7,"tr",49),s()()()()(),o(26,"c-card",50)(27,"c-card-body")(28,"div",43)(29,"table",51)(30,"thead")(31,"tr"),E(32,pc,4,2,"th",31)(33,uc,2,1,"th",31),s()(),o(34,"tbody"),E(35,mc,11,3,"tr",52),s()()()()()()()()()),i&2){let e=p();a(4),_("ngIf",e.isMultiSelectEnabled),a(),_("ngIf",e.isMultiSelectEnabled),a(3),ie(e.totalCountGS),ne(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",rt(18,Ql,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),a(3),_("hover",!0)("responsive",!0),a(3),_("ngIf",e.isMultiSelectEnabled),a(6),_("ngForOf",e.foundFiles),a(),_("ngClass",U(21,ec))("ngStyle",H(22,tc,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 gc(i,c){i&1&&(o(0,"c-row",74)(1,"c-card",75)(2,"c-card-body")(3,"b"),C(4,12),s()()()());}function fc(i,c){if(i&1){let e=y();o(0,"a",83),f("click",function(){u(e);let t=p(2);return m(t.onNavigate(t.first));}),S(1,"i",84),s();}}function Cc(i,c){if(i&1){let e=y();o(0,"a",85),f("click",function(){u(e);let t=p(2);return m(t.onNavigate(t.previous));}),S(1,"i",86),s();}}function vc(i,c){if(i&1){let e=y();o(0,"a",87),f("click",function(){u(e);let t=p(2);return m(t.onNavigate(t.next));}),S(1,"i",88),s();}}function Sc(i,c){if(i&1){let e=y();o(0,"a",89),f("click",function(){u(e);let t=p(2);return m(t.onNavigate(t.last));}),S(1,"i",90),s();}}function Ec(i,c){if(i&1&&(o(0,"c-row",76)(1,"div",77)(2,"div",78),E(3,fc,2,0,"a",79)(4,Cc,2,0,"a",80)(5,vc,2,0,"a",81)(6,Sc,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 Tc(i,c){if(i&1){let e=y();o(0,"button",103),f("click",function(){u(e);let t=p(2);return m(t.exportCompleteSearchAsZipTriggerG());}),C(1,16),s();}}function yc(i,c){if(i&1){let e=y();o(0,"button",103),f("click",function(){u(e);let t=p(2);return m(t.exportSelectedAsZipG());}),h(1,"Proceed"),s();}}function bc(i,c){if(i&1){let e=y();o(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),C(5,13),s()(),o(6,"div",96)(7,"c-row")(8,"div",97)(9,"label",98),C(10,14),s(),o(11,"input",99),L("ngModelChange",function(t){u(e);let r=p();return F(r.zipFileNameG,t)||(r.zipFileNameG=t),m(t);}),s()()()(),o(12,"div",100)(13,"button",101),f("click",function(){u(e);let t=p();return m(t.closeZipPopupG());}),C(14,15),s(),E(15,Tc,2,0,"button",102)(16,yc,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 Ac(i,c){i&1&&(o(0,"th"),C(1,20),s());}function Oc(i,c){if(i&1&&(o(0,"span"),C(1,21),ee(2,"slice"),s()),i&2){let e=p(3);a(2),ie(Ie(2,1,e.progressG.subject,0,40)),ne(1);}}function wc(i,c){if(i&1&&(o(0,"td")(1,"span",109),h(2),ee(3,"slice"),s(),E(4,Oc,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 Rc(i,c){i&1&&(o(0,"td"),C(1,22),s());}function Mc(i,c){if(i&1&&(o(0,"td"),h(1),o(2,"div",110)(3,"div",111),h(4),ee(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(),N(" ",Gt(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ");}}function Pc(i,c){i&1&&(o(0,"td"),C(1,23),s());}function Nc(i,c){if(i&1){let e=y();o(0,"button",112),f("click",function(){u(e);let t=p(2);return m(t.cancelDownloadAsZipG());}),C(1,24),s();}}function Dc(i,c){if(i&1){let e=y();o(0,"div",104)(1,"div",105)(2,"div",93)(3,"div",94)(4,"h4",95),C(5,17),s()(),o(6,"div",96)(7,"c-card")(8,"c-card-header",106),C(9,18),s(),o(10,"c-card-body")(11,"c-row",74)(12,"table",107)(13,"thead")(14,"tr"),E(15,Ac,2,0,"th",31),o(16,"th"),C(17,19),s()()(),o(18,"tbody")(19,"tr"),E(20,wc,5,9,"td",31)(21,Rc,2,0,"td",31)(22,Mc,6,10,"td",31)(23,Pc,2,0,"td",31),s()()()()()()(),o(24,"div",100)(25,"button",101),f("click",function(){u(e);let t=p();return m(t.closeDownloadZipPopupG());}),h(26,"Close"),s(),E(27,Nc,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",!U(6,nc).includes(e.productType));}}function Ic(i,c){if(i&1){let e=y();o(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),C(5,25),s()(),o(6,"div",96)(7,"h4",95),C(8,26),s()(),o(9,"div",100)(10,"button",101),f("click",function(){u(e);let t=p();return m(t.closeDownloadZipConfirmPopupG());}),C(11,27),s(),o(12,"button",113),f("click",function(){u(e);let t=p();return m(t.cancelDownloadAsZipConfirmG());}),C(13,28),s()()()()();}}function Fc(i,c){if(i&1){let e=y();o(0,"div",91)(1,"div",92)(2,"div",93)(3,"div",94)(4,"h4",95),C(5,29),s()(),o(6,"div",96)(7,"h4",95),C(8,30),s()(),o(9,"div",100)(10,"button",101),f("click",function(){u(e);let t=p();return m(t.closeDownloadZipRunBkpPopupG());}),h(11,"Cancel"),s(),o(12,"button",112),f("click",function(){u(e);let t=p();return m(t.cancelDownloadAsZipRunBkpG());}),h(13,"Ok"),s()()()()();}}var ul=(()=>{class i{constructor(e,n,t,r,d,l,g,T,O){this.cdr=e,this.toastr=n,this.translatorService=t,this.sharedService=r,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,r){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 r=[];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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error"));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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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(oe),v(Be));};}static{this.ɵcmp=Y({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,Ka]),ri],decls:7,vars:7,consts:()=>{let e;e=""+"\uFFFD0\uFFFD"+" Search Results Found";let n;n="Enable Multiselect";let t;t="Disable Multiselect";let r;r="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 D;D="Specify Filename";let x;x="Specify Filename";let te;te="Close";let J;J="Proceed";let he;he="Restore Progress";let Le;Le="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 Ft;Ft="Ok";let Lt;Lt="Confirmation";let xt;return xt="Are you sure you wish to close this window? The restore will still continue to run in the background.",[e,n,t,r,d,l,g,T,O,w,M,R,P,D,x,te,J,he,Le,At,Ot,wt,Rt,Mt,Pt,Nt,Dt,It,Ft,Lt,xt,[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,hc,36,24,"c-row",31)(1,gc,5,0,"c-row",32)(2,Ec,7,4,"c-row",33)(3,bc,17,3,"div",34)(4,Dc,28,7,"div",35)(5,Ic,14,0,"div",34)(6,Fc,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,mt,xi,ht,fe,pi,st,ue,mi,ui,bi,dt,ct,_t,Ni,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 Lc=["deviceDropdown"],xc=["deviceDropdownCS"],kc=["contentFrame"],Uc=["userDeviceSearch"],Vc=["fileSearch"],Hc=["contentSearch"],Yc=["contentSearchMailInput"],$c=["deviceDropdownR"],Gc=["contentCalendarFrame"],Bc=["searchInput"],Fe=i=>({display:i}),zc=i=>[i],jc=i=>({"multi-select":i}),Xc=(i,c)=>({"col-lg-7":i,"col-lg-4":c}),Wc=()=>({"col-lg-3":!0}),qc=(i,c)=>({active:i,disabled:c}),Zc=i=>({"background-color":i}),Jc=i=>({required:i}),bt=()=>["Google Drive","Gmail"],ml=()=>["Gmail","Google Drive"],Kc=i=>({selected:i});function Qc(i,c){if(i&1){let e=y();o(0,"c-nav-item")(1,"button",104),f("click",function(){u(e);let t=p();return m(t.setActiveSearchTab("file",1));}),C(2,36),s()();}if(i&2){p();let e=re(13);a(),_("cTabContent",e)("tabPaneIdx",1);}}function ed(i,c){if(i&1){let e=y();o(0,"c-nav-item")(1,"button",104),f("click",function(){u(e);let t=p();return m(t.setActiveSearchTab("content",2));}),C(2,37),s()();}if(i&2){p();let e=re(13);a(),_("cTabContent",e)("tabPaneIdx",2);}}function td(i,c){if(i&1&&(o(0,"c-card"),h(1),s()),i&2){let e=p();a(),N(" ",e.noUsersFoundText," ");}}function id(i,c){if(i&1){let e=y();o(0,"c-col",176)(1,"c-card",177)(2,"c-card-body",178),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.userProfile(t.userNameEncoded));}),o(3,"div",175)(4,"div",179),S(5,"img",180),s(),o(6,"div",181)(7,"p",182)(8,"b"),C(9,38),s()()()()()()();}if(i&2){let e=c.$implicit;a(7),de("title",e.userName),a(2),ie((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":"")),ne(9);}}function nd(i,c){if(i&1&&(o(0,"c-card")(1,"c-card-header",174),h(2),s(),o(3,"c-card-body",175),Ue(4,id,10,2,"c-col",176,nt),s()()),i&2){let e=p();a(2),N("",e.foundUsers.length," User(s) found: "),a(2),Ve(e.foundUsers);}}function rd(i,c){if(i&1&&(o(0,"c-card"),h(1),s()),i&2){let e=p();a(),N(" ",e.noUsersFoundText," ");}}function od(i,c){if(i&1){let e=y();o(0,"c-col",183)(1,"c-card",177)(2,"c-card-body",178),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.userProfile(t.userNameEncoded));}),o(3,"div",175)(4,"div",179),S(5,"img",184),s(),o(6,"div",181)(7,"p",182)(8,"b"),h(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 sd(i,c){if(i&1&&(o(0,"c-card")(1,"c-card-header",174),h(2),s(),o(3,"c-card-body",175),Ue(4,od,10,2,"c-col",183,nt),s()()),i&2){let e=p();a(2),N("",e.foundSites.length," Site(s) found: "),a(2),Ve(e.foundSites);}}function ad(i,c){if(i&1&&(o(0,"c-card"),h(1),s()),i&2){let e=p();a(),N(" ",e.noDevicesFoundText," ");}}function ld(i,c){if(i&1){let e=y();o(0,"c-col",183)(1,"c-card",177)(2,"c-card-body",178),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.userAsset(t.userNameEncoded,t.deviceNameEncoded));}),o(3,"div",175)(4,"div",179),S(5,"img",185),s(),o(6,"div",181)(7,"p",182)(8,"b"),C(9,39),s()()()()()()();}if(i&2){let e=c.$implicit;a(7),de("title",e.deviceName),a(2),ie((e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":""))((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":"")),ne(9);}}function cd(i,c){if(i&1&&(o(0,"c-card")(1,"c-card-header",174),h(2),s(),o(3,"c-card-body",175),Ue(4,ld,10,3,"c-col",183,nt),s()()),i&2){let e=p();a(2),N("",e.foundDevices.length," Device(s) found: "),a(2),Ve(e.foundDevices);}}function dd(i,c){i&1&&(o(0,"option",186),C(1,40),s());}function _d(i,c){i&1&&(o(0,"option",187),C(1,41),s());}function pd(i,c){i&1&&(o(0,"option",188),C(1,42),s());}function ud(i,c){if(i&1&&(o(0,"option",118),h(1),s()),i&2){let e=p().$implicit;_("value",e.key),a(),V(e.title);}}function md(i,c){if(i&1&&E(0,ud,2,2,"option",189),i&2){let e=c.$implicit,n=p();_("ngIf",n.productsLicensed.includes(e.key));}}function hd(i,c){if(i&1){let e=y();o(0,"div",190)(1,"label"),C(2,43),s(),o(3,"select2",191),L("ngModelChange",function(t){u(e);let r=p();return F(r.selectedValue,t)||(r.selectedValue=t),m(t);}),f("search",function(t){u(e);let r=p();return m(r.onSearch(t));})("update",function(t){u(e);let r=p();return m(r.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 gd(i,c){if(i&1){let e=y();o(0,"div",190)(1,"label"),C(2,44),s(),o(3,"select2",192),L("ngModelChange",function(t){u(e);let r=p();return F(r.selectedValueSite,t)||(r.selectedValueSite=t),m(t);}),f("search",function(t){u(e);let r=p();return m(r.onSearchSite(t));})("update",function(t){u(e);let r=p();return m(r.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 fd(i,c){if(i&1&&(o(0,"option",118),h(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),N(" ",e.deviceName," ");}}function Cd(i,c){i&1&&(o(0,"option"),h(1," User has no assets configured "),s());}function vd(i,c){if(i&1&&(o(0,"div",193)(1,"label"),C(2,45),s(),o(3,"select",194,4),E(5,fd,2,2,"option",195)(6,Cd,2,0,"option",105),s(),S(7,"i",196),s()),i&2){let e=p();a(5),_("ngForOf",e.devices),a(),_("ngIf",e.devices.length==0);}}function Sd(i,c){i&1&&(o(0,"c-row")(1,"c-card",99)(2,"c-card-body")(3,"b"),C(4,46),s()()()());}function Ed(i,c){if(i&1){let e=y();o(0,"tr")(1,"td")(2,"div")(3,"h4"),h(4),s()(),o(5,"p",203),le(6,48),S(7,"b"),ce(),s()(),o(8,"td")(9,"button",204),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.downloadFile(t.fileName,t.filePath,t.fileRevisionID,t.backup,t.fileUser,t.deviceUUID,t.folder,t.size,r.productTypeFiles));}),C(10,49),s(),o(11,"button",205),f("click",function(){let t=u(e).$implicit,r=p(2);return m(r.openFileLocation(t.fileName,t.filePath,t.deviceId,r.productTypeFiles,t.backup));}),C(12,50),s()()();}if(i&2){let e=c.$implicit;a(4),V(e.fileName),a(3),ie(e.filePath),ne(6);}}function Td(i,c){if(i&1&&(o(0,"c-row",197)(1,"table",198)(2,"thead",199)(3,"tr")(4,"th",200),h(5,"File Name "),s(),o(6,"th",201),C(7,47),s()()(),o(8,"tbody"),E(9,Ed,13,2,"tr",202),s()()()),i&2){let e=p();a(),_("hover",!0)("responsive",!0),a(8),_("ngForOf",e.foundFiles);}}function yd(i,c){i&1&&(o(0,"option",206),C(1,51),s());}function bd(i,c){i&1&&(o(0,"option",187),C(1,52),s());}function Ad(i,c){i&1&&(o(0,"option",188),C(1,53),s());}function Od(i,c){i&1&&(o(0,"option",207),C(1,54),s());}function wd(i,c){if(i&1&&(o(0,"option",118),h(1),s()),i&2){let e=p().$implicit;_("value",e.key),a(),V(e.title);}}function Rd(i,c){if(i&1&&E(0,wd,2,2,"option",189),i&2){let e=c.$implicit,n=p();_("ngIf",n.checkFeatureLicensed(H(1,zc,e.key)));}}function Md(i,c){if(i&1){let e=y();o(0,"div",190)(1,"label"),h(2,"User Id"),s(),o(3,"select2",208),L("ngModelChange",function(t){u(e);let r=p();return F(r.selectedValueCS,t)||(r.selectedValueCS=t),m(t);}),f("search",function(t){u(e);let r=p();return m(r.onSearchContentSearch(t));})("update",function(t){u(e);let r=p();return m(r.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 Pd(i,c){if(i&1){let e=y();o(0,"div",190)(1,"label"),h(2,"Site"),s(),o(3,"select2",209),L("ngModelChange",function(t){u(e);let r=p();return F(r.selectedValueSiteCS,t)||(r.selectedValueSiteCS=t),m(t);}),f("search",function(t){u(e);let r=p();return m(r.onSearchSiteContentSearch(t));})("update",function(t){u(e);let r=p();return m(r.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 Nd(i,c){if(i&1&&(o(0,"option",118),h(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),N(" ",e.deviceName," ");}}function Dd(i,c){i&1&&(o(0,"option"),h(1," User has no assets configured "),s());}function Id(i,c){if(i&1){let e=y();o(0,"div",193)(1,"label"),h(2,"Asset Name"),s(),o(3,"select",210,5),f("change",function(){u(e);let t=p();return m(t.onDeviceChangeCS());}),E(5,Nd,2,2,"option",195)(6,Dd,2,0,"option",105),s(),S(7,"i",196),s();}if(i&2){let e=p();a(5),_("ngForOf",e.devicesCS),a(),_("ngIf",e.devicesCS.length==0);}}function Fd(i,c){if(i&1){let e=y();o(0,"c-row",121)(1,"div",122)(2,"c-input-group")(3,"input",211,6),L("ngModelChange",function(t){u(e);let r=p();return F(r.contentSearchText,t)||(r.contentSearchText=t),m(t);}),f("keydown.enter",function(){u(e);let t=p();return m(t.searchForContent());}),s()()(),o(5,"div",124)(6,"button",125),f("click",function(){u(e);let t=p();return m(t.searchForContent());}),h(7,"Search"),s()()();}if(i&2){let e=p();a(3),I("ngModel",e.contentSearchText);}}function Ld(i,c){if(i&1){let e=y();o(0,"div",124)(1,"a",215),f("click",function(){u(e);let t=p(2);return m(t.searchForContent());}),h(2,"Search"),s()();}}function xd(i,c){if(i&1){let e=y();o(0,"c-row",153)(1,"div",122)(2,"c-input-group",99)(3,"input",212,7),L("ngModelChange",function(t){u(e);let r=p();return F(r.contentSearchMail,t)||(r.contentSearchMail=t),m(t);}),f("keydown.enter",function(){u(e);let t=p();return m(t.searchForContent());}),s(),o(5,"button",125),f("click",function(){u(e);let t=p();return m(t.togglePanel());}),le(6,55),S(7,"i",213),ce(),s()()(),E(8,Ld,3,0,"div",214),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 kd(i,c){if(i&1){let e=y();o(0,"div",217)(1,"div",218)(2,"label",219),h(3,"From "),o(4,"a",220),S(5,"i",221),o(6,"span",222),C(7,56),s()()(),o(8,"input",223),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.fromId,t)||(r.fromId=t),m(t);}),s()(),o(9,"div",218)(10,"label",224),h(11,"To "),o(12,"a",220),S(13,"i",221),o(14,"span",222),h(15,"Use comma to separate Email addresses"),s()()(),o(16,"input",225),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.toId,t)||(r.toId=t),m(t);}),s()(),o(17,"div",218)(18,"label",226),h(19,"CC "),o(20,"a",220),S(21,"i",221),o(22,"span",222),h(23,"Use comma to separate Email addresses"),s()()(),o(24,"input",227),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.ccId,t)||(r.ccId=t),m(t);}),s()(),o(25,"div",218)(26,"label",228),h(27,"BCC "),o(28,"a",220),S(29,"i",221),o(30,"span",222),h(31,"Use comma to separate Email addresses"),s()()(),o(32,"input",229),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.bccId,t)||(r.bccId=t),m(t);}),s()(),o(33,"div",218)(34,"label",230),h(35,"Subject "),o(36,"a",220),S(37,"i",221),o(38,"span",222),C(39,57),s()()(),o(40,"input",231),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.subjectId,t)||(r.subjectId=t),m(t);}),s()(),o(41,"div",218)(42,"label",232),C(43,58),s(),o(44,"input",233),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.bodyId,t)||(r.bodyId=t),m(t);}),s()(),o(45,"div",218)(46,"label",234),C(47,59),s(),o(48,"input",235),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.keywordsId,t)||(r.keywordsId=t),m(t);}),s()(),o(49,"div",236)(50,"label",234),C(51,60),s(),o(52,"input",237),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.myDateBefore,t)||(r.myDateBefore=t),m(t);}),s(),h(53," To "),o(54,"input",237),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.myDateAfter,t)||(r.myDateAfter=t),m(t);}),s()(),o(55,"div",153)(56,"a",238),f("click",function(){u(e);let t=p(2);return m(t.searchForContent());}),h(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 Ud(i,c){if(i&1&&(o(0,"c-row",153),E(1,kd,58,11,"div",216),s()),i&2){let e=p();a(),_("ngIf",e.isExpanded);}}function Vd(i,c){i&1&&(o(0,"c-row",153)(1,"c-card",99)(2,"c-card-body")(3,"b"),h(4,"There are no results!."),s()()()());}function Hd(i,c){if(i&1){let e=y();o(0,"a",256),f("click",function(){u(e);let t=p(2);return m(t.enableMultiSelect());}),S(1,"i",257),o(2,"span",222),C(3,62),s()();}}function Yd(i,c){if(i&1){let e=y();o(0,"a",258),f("click",function(){u(e);let t=p(2);return m(t.removeAll());}),S(1,"i",259),o(2,"span",222),C(3,63),s()();}}function $d(i,c){if(i&1){let e=y();o(0,"a",260),f("click",function(){u(e);let t=p(2);return m(t.exportCompleteMailboxAsPstG());}),C(1,64),s();}}function Gd(i,c){if(i&1){let e=y();o(0,"a",261),f("click",function(){u(e);let t=p(2);return m(t.exportFolderAsPstModalG());}),C(1,65),s();}if(i&2){let e=p(2);_("ngClass",rt(1,qc,e.addedElementsCount>0,e.addedElementsCount<=0));}}function Bd(i,c){if(i&1){let e=y();o(0,"th",249)(1,"input",262),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.isSelectAll,t)||(r.isSelectAll=t),m(t);}),f("change",function(){u(e);let t=p(2);return m(t.toggleSelectAll());}),s()();}if(i&2){let e=p(2);a(),I("ngModel",e.isSelectAll);}}function zd(i,c){if(i&1){let e=y();o(0,"button",263),f("click",function(){u(e);let t=p(2);return m(t.addToCartFinal());}),C(1,66),s();}}function jd(i,c){if(i&1){let e=y();o(0,"td")(1,"input",267),L("ngModelChange",function(t){u(e);let r=p().$implicit;return F(r.isChecked,t)||(r.isChecked=t),m(t);}),f("change",function(){u(e);let t=p(4);return m(t.itemSelect());}),s()();}if(i&2){let e=p().$implicit;a(),I("ngModel",e.isChecked);}}function Xd(i,c){if(i&1&&(o(0,"td",268)(1,"span",269),h(2),s()()),i&2){let e=p().$implicit;a(),_("ngStyle",H(2,Zc,e.alphaColor)),a(),N(" ",e.showIcon," ");}}function Wd(i,c){i&1&&S(0,"i",283);}function qd(i,c){if(i&1){let e=y();o(0,"a",284),f("click",function(){u(e);let t=p(3).$implicit,r=p(3);return m(r.downloadMail(t.userName,t.backupId,t.deviceUUID,r.productTypeContentSearch));}),S(1,"i",285),s();}}function Zd(i,c){if(i&1){let e=y();o(0,"a",286),f("click",function(){u(e);let t=p(3).$implicit,r=p(3);return m(r.onRestoreClickR(t.deviceUUID,t.backupId,t.filePath,t.subject,t.userName));}),S(1,"i",287),s();}}function Jd(i,c){if(i&1&&(o(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 Kd(i,c){if(i&1&&(o(0,"a",273)(1,"span",274),h(2),s(),E(3,Wd,1,0,"i",275)(4,qd,2,0,"a",276)(5,Zd,2,0,"a",277),o(6,"p",278)(7,"span",279),h(8),s(),S(9,"span",280),s(),E(10,Jd,2,1,"p",105),o(11,"p",281)(12,"b"),C(13,67),s(),o(14,"span",282),C(15,68),s()()()),i&2){let e=p(2).$implicit,n=p(3);a(2),N(" ",(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),N(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),a(),_("innerHTML",n.renderHtml(e.sentDate),We),a(),_("ngIf",e.displayContent),a(5),ie(e.userName)(e.filePath),ne(15);}}function Qd(i,c){i&1&&S(0,"i",291);}function e_(i,c){if(i&1&&(o(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 t_(i,c){if(i&1&&(o(0,"a",289)(1,"span",274),h(2),s(),E(3,Qd,1,0,"i",290),o(4,"p",278)(5,"span",279),h(6),s(),S(7,"span",280),s(),E(8,e_,2,1,"p",105),s()),i&2){let e=p(2).$implicit,n=p(3);a(2),N(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),a(),_("ngIf",e.hasAttachments),a(3),N(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),a(),_("innerHTML",n.renderHtml(e.sentDate),We),a(),_("ngIf",e.displayContent);}}function i_(i,c){if(i&1){let e=y();o(0,"td",270),f("click",function(){u(e);let t=p().$implicit,r=p(3);return m(r.viewOutlook11(t.deviceId,t.userName,t.backupId,t,"mail"));}),o(1,"div",153)(2,"div"),E(3,Kd,16,9,"a",271)(4,t_,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 n_(i,c){if(i&1){let e=y();o(0,"td",270),f("click",function(){u(e);let t=p().$implicit,r=p(3);return m(r.viewOutlook11(t.deviceId,t.userName,t.backupId,t,"contacts"));}),o(1,"div",153)(2,"div")(3,"a",273)(4,"span",274),h(5),s()()()()();}if(i&2){let e=p().$implicit;qe("data-name",e.name),a(5),N(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ");}}function r_(i,c){if(i&1&&(o(0,"tr"),E(1,jd,2,1,"td",105)(2,Xd,3,4,"td",265)(3,i_,5,3,"td",266)(4,n_,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 o_(i,c){if(i&1&&(o(0,"tbody"),E(1,r_,5,6,"tr",264),s()),i&2){let e=p(2);a(),_("ngForOf",e.foundMailsCS);}}function s_(i,c){i&1&&(o(0,"c-card-body",292)(1,"p"),C(2,69),s()());}function a_(i,c){i&1&&(o(0,"c-card-body",292)(1,"p"),C(2,70),s()());}function l_(i,c){if(i&1&&(o(0,"div",304)(1,"b"),C(2,72),s(),h(3),o(4,"span",305),h(5),s()()),i&2){let e=p(3);a(3),N(" ",e.currentMailFrom," "),a(2),V(e.currentMailSentDate);}}function c_(i,c){if(i&1&&(o(0,"div",306)(1,"b"),C(2,73),s(),h(3),s()),i&2){let e=p(3);a(3),N(" ",e.currentMailTo,"");}}function d_(i,c){if(i&1&&(o(0,"div",307)(1,"b"),C(2,74),s(),h(3),s()),i&2){let e=p(3);a(3),N(" ",e.currentMailCc,"");}}function __(i,c){if(i&1&&(o(0,"div",308)(1,"b"),C(2,75),s(),h(3),s()),i&2){let e=p(3);a(3),N(" ",e.currentMailBcc,"");}}function p_(i,c){if(i&1&&(o(0,"span",312),h(1),s()),i&2){let e=c.$implicit;a(),N(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ");}}function u_(i,c){if(i&1&&(o(0,"div",309)(1,"div",310),E(2,p_,2,1,"span",311),h(3," \xA0 "),s()()),i&2){let e=p(3);a(2),_("ngForOf",e.currentMailAttachments);}}function m_(i,c){if(i&1){let e=y();o(0,"c-card-body")(1,"div",293),S(2,"div",294),o(3,"div",295)(4,"div",296)(5,"h3"),C(6,71),s()(),E(7,l_,6,2,"div",297)(8,c_,4,1,"div",298)(9,d_,4,1,"div",299)(10,__,4,1,"div",300)(11,u_,4,1,"div",301),S(12,"br"),o(13,"div",302)(14,"iframe",303,8),f("mouseout",function(){u(e);let t=p(2);return m(t.showHideSecurityCallout(!0));})("mouseover",function(){u(e);let t=p(2);return m(t.showHideSecurityCallout(!0));}),s()()()()();}if(i&2){let e=p(2);a(6),ie(e.currentMailSubject),ne(6),a(),_("ngIf",e.currentMailFrom!=""),a(),_("ngIf",e.currentMailTo!=""),a(),_("ngIf",e.currentMailCc!=""),a(),_("ngIf",e.currentMailBcc!=""),a(),_("ngIf",e.currentMailAttachments.length>0);}}function h_(i,c){if(i&1&&(o(0,"a",339),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactEmail);}}function g_(i,c){if(i&1&&(o(0,"a",340),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactOfficeLocation);}}function f_(i,c){if(i&1&&(o(0,"a",341),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactCompanyName);}}function C_(i,c){if(i&1&&(o(0,"a",342),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactJobTitle);}}function v_(i,c){if(i&1&&(o(0,"a",343),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactDepartment);}}function S_(i,c){if(i&1&&(o(0,"a",344),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactMobile);}}function E_(i,c){if(i&1&&(o(0,"a",345),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactHomePhones);}}function T_(i,c){if(i&1&&(o(0,"a",346),h(1," (...) "),s()),i&2){let e=p(3);de("title",e.contactBusinessPhones);}}function y_(i,c){if(i&1){let e=y();o(0,"c-card-body")(1,"div",313)(2,"div",314)(3,"div",315),S(4,"c-avatar",316),s(),o(5,"div",317)(6,"div",318)(7,"span",319),h(8),s()()()(),o(9,"div",320),S(10,"hr"),o(11,"div",321)(12,"label",279),h(13,"Email: "),s(),S(14,"br"),o(15,"span",322),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullEmail=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullEmail=!1);}),h(16),s(),E(17,h_,2,1,"a",323),s(),o(18,"div",321)(19,"label",279),h(20,"Location: "),s(),S(21,"br"),o(22,"span",324),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullLocation=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullLocation=!1);}),h(23),s(),E(24,g_,2,1,"a",325),s(),o(25,"div",321)(26,"label",279),h(27,"Company: "),s(),S(28,"br"),o(29,"span",326),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullCompanyName=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullCompanyName=!1);}),h(30),s(),E(31,f_,2,1,"a",327),s(),o(32,"div",321)(33,"label",279),h(34,"Job title: "),s(),S(35,"br"),o(36,"span",328),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullJobTitle=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullJobTitle=!1);}),h(37),s(),E(38,C_,2,1,"a",329),s(),o(39,"div",321)(40,"label",279),h(41,"Department: "),s(),S(42,"br"),o(43,"span",330),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullDepartment=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullDepartment=!1);}),h(44),s(),E(45,v_,2,1,"a",331),s(),o(46,"div",321)(47,"label",279),h(48,"Business Address: "),s(),S(49,"br"),o(50,"span",319),h(51),s()(),o(52,"div",321)(53,"label",279),h(54,"Home Address: "),s(),S(55,"br"),o(56,"span",319),h(57),s()(),o(58,"div",321)(59,"label",279),h(60,"Birthday: "),s(),S(61,"br"),o(62,"span",332),h(63),s()(),o(64,"div",321)(65,"label",279),h(66,"Mobile phone: "),s(),S(67,"br"),o(68,"span",333),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullMobile=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullMobile=!1);}),h(69),s(),E(70,S_,2,1,"a",334),s(),o(71,"div",321)(72,"label",279),h(73,"Home phone: "),s(),S(74,"br"),o(75,"span",335),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullHomePhone=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullHomePhone=!1);}),h(76),s(),E(77,E_,2,1,"a",336),s(),o(78,"div",321)(79,"label",279),h(80,"Business phone: "),s(),S(81,"br"),o(82,"span",337),f("mouseenter",function(){u(e);let t=p(2);return m(t.showFullBusinessPhone=!0);})("mouseleave",function(){u(e);let t=p(2);return m(t.showFullBusinessPhone=!1);}),h(83),s(),E(84,T_,2,1,"a",338),s()()()();}if(i&2){let e=p(2);a(4),_("size","md"),a(3),_("title",e.fullCombinedName),a(),N(" ",e.truncatedCombinedName," "),a(7),_("title",e.contactEmail.length>20?e.contactEmail:""),a(),N(" ",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(),N(" ",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(),N(" ",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(),N(" ",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(),N(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),a(),_("ngIf",e.contactDepartment.length>20),a(5),_("title",e.combinedBusinessAddress),a(),N(" ",e.truncatedBusinessAddress," "),a(5),_("title",e.combinedHomeAddress),a(),N(" ",e.truncatedHomeAddress," "),a(6),V(e.contactBirthday),a(5),_("title",e.contactMobile.length>20?e.contactMobile:""),a(),N(" ",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(),N(" ",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(),N(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),a(),_("ngIf",e.contactBusinessPhones.length>20);}}function b_(i,c){if(i&1){let e=y();o(0,"th"),h(1),o(2,"a",347),f("click",function(){u(e);let t=p(2);return m(t.removeAll());}),C(3,76),s()();}if(i&2){let e=p(2);a(),He("",e.addedElementsCount," out of ",e.totalCountGS," selected ");}}function A_(i,c){if(i&1&&(o(0,"th"),C(1,77),s()),i&2){let e=p(2);a(),ie(e.addedElementsCount),ne(1);}}function O_(i,c){if(i&1){let e=y();o(0,"tr")(1,"td",348)(2,"span",349),h(3),s(),o(4,"a",350),f("click",function(){let t=u(e),r=t.$implicit,d=t.index,l=p(2);return m(l.removeItem(d,r.subject,r.backupId,r.subject));}),S(5,"i",351),s()()();}if(i&2){let e=c.$implicit;a(3),V(e.subject);}}function w_(i,c){if(i&1&&(o(0,"c-row",239)(1,"c-card-header",240),E(2,Hd,4,0,"a",241)(3,Yd,4,0,"a",242),o(4,"span")(5,"b"),C(6,61),s()(),E(7,$d,2,0,"a",243)(8,Gd,2,4,"a",244),s(),o(9,"c-card",245)(10,"c-card-body")(11,"div",246)(12,"table",247)(13,"thead",199)(14,"tr"),E(15,Bd,2,1,"th",248),o(16,"th",249),h(17," Results "),E(18,zd,2,0,"button",250),s()()(),E(19,o_,2,1,"tbody",105),s()()()(),o(20,"c-card",251),E(21,s_,3,0,"c-card-body",252)(22,a_,3,0,"c-card-body",252)(23,m_,16,6,"c-card-body",105)(24,y_,85,32,"c-card-body",105),s(),o(25,"c-card",253)(26,"c-card-body")(27,"table",254)(28,"colgroup"),S(29,"col",255),s(),o(30,"thead")(31,"tr"),E(32,b_,4,2,"th",105)(33,A_,2,1,"th",105),s()(),o(34,"tbody"),E(35,O_,6,1,"tr",202),s()()()()()),i&2){let e=p();a(2),_("ngIf",!e.isMultiSelectEnabled),a(),_("ngIf",e.isMultiSelectEnabled),a(3),ie(e.totalCountGS),ne(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",H(22,jc,e.isMultiSelectEnabled)),a(3),_("hover",!0)("responsive",!0)("striped",!1),a(3),_("ngIf",e.isMultiSelectEnabled),a(3),_("ngIf",e.updateAddToCartButtonVisibility()),a(),_("ngIf",!e.noFilesFoundCS),a(),_("ngClass",rt(24,Xc,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),a(),_("ngIf",!e.showMailPreview),a(),_("ngIf",e.showNotAvailable),a(),_("ngIf",e.showMailView&&e.showMailPreview),a(),_("ngIf",e.showContactsView),a(),_("ngClass",U(27,Wc))("ngStyle",H(28,Fe,e.isMultiSelectEnabled?"block":"none")),a(7),_("ngIf",e.addedElementsCount>0),a(),_("ngIf",e.addedElementsCount==0),a(2),_("ngForOf",e.addedElementsUpdated);}}function R_(i,c){i&1&&(o(0,"c-row",352)(1,"c-col",353)(2,"c-callout",354),S(3,"i",355),o(4,"span"),h(5,"Security restrictions may prevent pop-ups from this embedded content. If you trust the content, please open it in a new tab or window."),s()()()());}function M_(i,c){if(i&1){let e=y();o(0,"a",362),f("click",function(){u(e);let t=p(2);return m(t.searchForContentNavigate(t.first));}),S(1,"i",363),s();}}function P_(i,c){if(i&1){let e=y();o(0,"a",364),f("click",function(){u(e);let t=p(2);return m(t.searchForContentNavigate(t.previous));}),S(1,"i",365),s();}}function N_(i,c){if(i&1){let e=y();o(0,"a",366),f("click",function(){u(e);let t=p(2);return m(t.searchForContentNavigate(t.next));}),S(1,"i",367),s();}}function D_(i,c){if(i&1){let e=y();o(0,"a",368),f("click",function(){u(e);let t=p(2);return m(t.searchForContentNavigate(t.last));}),S(1,"i",369),s();}}function I_(i,c){if(i&1&&(o(0,"c-row",108)(1,"div",356)(2,"div",357),E(3,M_,2,0,"a",358)(4,P_,2,0,"a",359)(5,N_,2,0,"a",360)(6,D_,2,0,"a",361),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&&(o(0,"small"),h(1),ee(2,"translate"),s()),i&2&&(a(),N(" ",ot(2,1,"PST name is required.")," "));}function L_(i,c){i&1&&(o(0,"small"),h(1),ee(2,"translate"),s()),i&2&&(a(),N(" ",ot(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "));}function x_(i,c){i&1&&(o(0,"small"),h(1),ee(2,"translate"),s()),i&2&&(a(),N(" ",ot(2,1,"PST name must be at least 3 characters long.")," "));}function k_(i,c){if(i&1&&(o(0,"div",370),E(1,F_,3,3,"small",105)(2,L_,3,3,"small",105)(3,x_,3,3,"small",105),s()),i&2){p();let e=re(92);a(),_("ngIf",e.errors==null?null:e.errors.required),a(),_("ngIf",e.errors&&e.errors.pattern),a(),_("ngIf",e.errors&&e.errors.minlength);}}function U_(i,c){if(i&1){let e=y();o(0,"button",371),f("click",function(){u(e);let t=p();return m(t.exportCompleteMailboxAsPstTriggerG());}),C(1,78),s();}if(i&2){p();let e=re(92);_("disabled",e.invalid);}}function V_(i,c){if(i&1){let e=y();o(0,"button",371),f("click",function(){u(e);let t=p();return m(t.exportSelectedAsPstG());}),h(1,"Proceed"),s();}if(i&2){p();let e=re(92);_("disabled",e.invalid);}}function H_(i,c){i&1&&(o(0,"th"),C(1,79),s());}function Y_(i,c){if(i&1&&(o(0,"span"),h(1),ee(2,"slice"),s()),i&2){let e=p(2);a(),N("/ ",Ie(2,1,e.progressG.subject,0,40),"");}}function $_(i,c){if(i&1&&(o(0,"td")(1,"span",372),h(2),ee(3,"slice"),s(),E(4,Y_,3,5,"span",105),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 G_(i,c){i&1&&(o(0,"td"),C(1,80),s());}function B_(i,c){if(i&1&&(o(0,"span"),h(1),s()),i&2){let e=p(2);a(),He("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore,"");}}function z_(i,c){if(i&1&&(o(0,"td"),E(1,B_,2,2,"span",105),o(2,"div",373)(3,"div",374),h(4),ee(5,"number"),s()()()),i&2){let e=p();a(),_("ngIf",e.progressG.totalNoOfFilesForRestore),a(),Je("title","",e.progressG.totalRestorePct,"%"),a(),it("width",e.progressG.totalRestorePct,"%"),a(),N(" ",Gt(5,6,e.progressG.totalRestorePct,"1.0-0"),"% ");}}function j_(i,c){i&1&&(o(0,"td"),h(1,"0"),s());}function X_(i,c){if(i&1){let e=y();o(0,"button",157),f("click",function(){u(e);let t=p();return m(t.cancelDownloadAsPstG());}),C(1,81),s();}}function W_(i,c){i&1&&(o(0,"div",396)(1,"ul",397)(2,"li",398)(3,"strong",399),h(4,"No Users found"),s(),S(5,"ul",400),s()()());}function q_(i,c){if(i&1&&(o(0,"option",118),h(1),s()),i&2){let e=c.$implicit;_("value",e.deviceUUID),a(),N(" ",e.deviceName," ");}}function Z_(i,c){if(i&1){let e=y();o(0,"div",382)(1,"span",122),C(2,88),s(),o(3,"div",383)(4,"c-form-check",384)(5,"input",401),L("ngModelChange",function(t){u(e);let r=p(2);return F(r.suspendBackupR,t)||(r.suspendBackupR=t),m(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();o(0,"c-card"),S(1,"c-card-header",152),o(2,"c-card-body")(3,"c-row")(4,"span"),h(5,"Source Path - "),o(6,"span"),h(7),s()()(),o(8,"c-row",153)(9,"p"),C(10,82),s(),o(11,"div",218)(12,"label"),h(13,"User Id"),s(),o(14,"select2",375),L("ngModelChange",function(t){u(e);let r=p();return F(r.selectedValueR,t)||(r.selectedValueR=t),m(t);}),f("search",function(t){u(e);let r=p();return m(r.onSearchR(t));})("update",function(t){u(e);let r=p();return m(r.updateR(t));}),s(),E(15,W_,6,0,"div",376),s(),o(16,"div",218)(17,"label"),h(18,"Asset Name"),s(),o(19,"select",377,9),f("change",function(){u(e);let t=re(20),r=p();return m(r.onDeviceChangeR(t.value));}),E(21,q_,2,2,"option",195),s()()(),o(22,"c-row")(23,"div",143)(24,"label",378),C(25,83),s(),o(26,"c-input-group",99)(27,"input",379),L("ngModelChange",function(t){u(e);let r=p();return F(r.destinationPathR,t)||(r.destinationPathR=t),m(t);}),s(),o(28,"button",380),f("click",function(){u(e);let t=p();return m(t.browseR());}),C(29,84),s()()()(),o(30,"c-row",153)(31,"h3"),C(32,85),s(),o(33,"div",164),E(34,Z_,6,2,"div",381),o(35,"div",382)(36,"span",122),C(37,86),s(),o(38,"div",383)(39,"c-form-check",384)(40,"input",385),L("ngModelChange",function(t){u(e);let r=p();return F(r.inplaceRestoreR,t)||(r.inplaceRestoreR=t),m(t);}),s()()()(),o(41,"div",382)(42,"span",122),C(43,87),s(),o(44,"div",383)(45,"c-form-check",384)(46,"input",386),L("ngModelChange",function(t){u(e);let r=p();return F(r.restoreDeletedFilesByRestoreR,t)||(r.restoreDeletedFilesByRestoreR=t),m(t);}),s()()()()(),o(47,"div",387)(48,"div",388)(49,"span",389),h(50,"Restore Data As Of"),s(),o(51,"div",390)(52,"c-form-check",384)(53,"input",391),L("ngModelChange",function(t){u(e);let r=p();return F(r.dateBeforeR,t)||(r.dateBeforeR=t),m(t);}),f("change",function(){u(e);let t=p();return m(t.toggleDateBeforeR());}),s()()()(),o(54,"div",392)(55,"div",393)(56,"input",394),L("ngModelChange",function(t){u(e);let r=p();return F(r.myDateBeforeR,t)||(r.myDateBeforeR=t),m(t);}),s(),o(57,"timepicker",395),L("ngModelChange",function(t){u(e);let r=p();return F(r.myTimeBeforeR,t)||(r.myTimeBeforeR=t),m(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",H(26,Jc,!e.inplaceRestoreR)),a(3),I("ngModel",e.destinationPathR),_("required",!e.inplaceRestoreR)("readonly",!0),a(7),_("ngIf",!U(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&&(o(0,"c-row")(1,"span"),le(2,89),S(3,"span"),ce(),s()()),i&2){let e=p(2);a(3),ie(e.currentFilePathR),ne(2);}}function Q_(i,c){i&1&&(o(0,"th"),h(1,"Current item being processed"),s());}function ep(i,c){i&1&&(o(0,"th"),h(1,"Source Path "),s());}function tp(i,c){if(i&1&&(o(0,"span"),C(1,90),ee(2,"slice"),s()),i&2){let e=p(3);a(2),ie(Ie(2,1,e.progressR.subject,0,40)),ne(1);}}function ip(i,c){if(i&1&&(o(0,"td")(1,"span",372),h(2),ee(3,"slice"),s(),E(4,tp,3,5,"span",105),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&&(o(0,"td")(1,"span",402),h(2),ee(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 rp(i,c){i&1&&(o(0,"td"),h(1,"-"),s());}function op(i,c){if(i&1&&(o(0,"span"),h(1),s()),i&2){let e=p(4);a(),He("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore,"");}}function sp(i,c){if(i&1&&(o(0,"td"),E(1,op,2,2,"span",105),o(2,"div",403)(3,"div",374),h(4),ee(5,"number"),s()()()),i&2){let e=p(3);a(),_("ngIf",e.progressR.totalNoOfFilesForRestore),a(),Je("title","",e.progressR.totalRestorePct,"%"),a(),it("width",e.progressR.totalRestorePct,"%"),a(),N(" ",Gt(5,6,e.progressR.totalRestorePct,"1.0-0"),"% ");}}function ap(i,c){if(i&1&&E(0,sp,6,9,"td",105),i&2){let e=p(2);_("ngIf",e.progressR.totalNoOfFilesForRestore!="");}}function lp(i,c){i&1&&(o(0,"td"),S(1,"div",404),s());}function cp(i,c){i&1&&(o(0,"td"),h(1,"0"),s());}function dp(i,c){if(i&1&&(o(0,"c-card"),S(1,"c-card-header",152),o(2,"c-card-body"),E(3,K_,4,1,"c-row",105),o(4,"c-row",153)(5,"h3"),h(6,"Currently Running Restore Statistics"),s(),o(7,"table",154)(8,"thead")(9,"tr"),E(10,Q_,2,0,"th")(11,ep,2,0,"th"),o(12,"th"),h(13,"Overall Progress"),s()()(),o(14,"tbody")(15,"tr"),E(16,ip,5,9,"td",105)(17,np,4,6,"td",105)(18,rp,2,0,"td",105)(19,ap,1,1,"td")(20,lp,2,0,"td")(21,cp,2,0,"td",105),s()()()()()()),i&2){let e=p();a(3),_("ngIf",!U(7,ml).includes(e.productTypeContentSearch)),a(7),Ze(U(8,ml).includes(e.productTypeContentSearch)?11:10),a(6),_("ngIf",!U(9,bt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),a(),_("ngIf",U(10,bt).includes(e.productTypeContentSearch)),a(),_("ngIf",!U(11,bt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),a(),Ze(!U(12,bt).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?19:20),a(2),_("ngIf",!U(13,bt).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="");}}function _p(i,c){if(i&1){let e=y();o(0,"button",405),f("click",function(){u(e);let t=p();return m(t.initiateRestoreR());}),C(1,91),s();}if(i&2){let e=p();_("disabled",!(e.selectedValueR||e.selectedValueSiteCS)||!e.selectedDeviceUUIDR||!e.inplaceRestoreR&&!e.destinationPathR.trim());}}function pp(i,c){if(i&1){let e=y();o(0,"button",406),f("click",function(){u(e);let t=p();return m(t.cancelRunningRestoreR());}),C(1,92),s();}}function up(i,c){if(i&1){let e=y();o(0,"button",407),f("click",function(){u(e);let t=p();return m(t.closeRestorePopupR());}),C(1,93),s();}}function mp(i,c){if(i&1){let e=y();o(0,"button",408),f("click",function(){u(e);let t=p();return m(t.closeRestorePopupR());}),C(1,94),s();}}function hp(i,c){i&1&&(le(0,27,1),S(1,"span"),ce());}function gp(i,c){i&1&&(le(0,27,2),S(1,"span"),ce());}function fp(i,c){if(i&1&&(le(0,27,3),S(1,"span"),ce()),i&2){let e=p();a(),ie(e.browsePathR),ne(0);}}function Cp(i,c){if(i&1){let e=y();o(0,"button",409),f("click",function(){u(e);let t=p();return m(t.backBrowseR());}),le(1,95),S(2,"i",410),ce(),s();}}function vp(i,c){i&1&&(o(0,"tr")(1,"td",411)(2,"div",412)(3,"span",413),C(4,96),s()()()());}function Sp(i,c){if(i&1){let e=y();o(0,"tr",414),f("click",function(){let t=u(e).$implicit,r=p();return m(r.onSingleClickR(t.folderName||t,t.folderId));})("dblclick",function(t){let r=u(e).$implicit,d=p();return m(d.onDoubleClickR(t,r.folderName||r,r.folderId));}),o(1,"td")(2,"span",319),h(3),s()()();}if(i&2){let e=c.$implicit,n=p();_("ngClass",H(3,Kc,n.selectedBrowseItemR===(e.folderName||e))),a(2),de("title",e.folderName||e),a(),N(" ",e.folderName||e," ");}}var gl=(()=>{class i{constructor(e,n,t,r,d,l,g,T,O,w,M,R,P,D,x){this.authService=e,this.router=n,this.apiService=t,this.toastr=r,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=D,this.assetManagementService=x,this.PRODUCTS_CONFIG=Ja,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.showSecurityCallout=!0,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 te=new Date(),J=new Date();J.setFullYear(te.getFullYear()-1),new Date().setDate(te.getDate()-14),this.bsConfigBefore={minDate:J,maxDate:te,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:J,maxDate:te,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(r=>this.inclusionLicenses.includes(r));let t=["exchange","gdrive","gmail","onedrive","sharepoint","sync"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(r=>t.some(d=>r===`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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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(r=>r.key===this.productTypeFiles||r.key2===this.productTypeFiles||r.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus();},0);break;case"content":t=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=t.find(r=>r.key===this.productTypeContentSearch||r.key2===this.productTypeContentSearch||r.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);lr([e,n,t]).subscribe(([r,d,l])=>{console.log("getUsersSearch response body:",JSON.stringify(r.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(r.headers)),console.log("getDeviceSearch response body:",JSON.stringify(d.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(d.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.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.")));},r=>{switch(console.error("Error from Api's call: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error(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: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break;}});}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"]);}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let t=document.querySelector(".header.header-sticky");t&&this.renderer.setStyle(t,"z-index","1000");let r=document.querySelector(".overlay");r&&this.renderer.setStyle(r,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"]);}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(t=>{if(t.body&&t.body.searchUserElementList){let r=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersList=[{label:"",options:r}],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 r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":this.deviceType=="mail"?r="OUTLOOK":r=this.deviceType,this.devices=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==r).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(r=>r.blocked===!1&&r.deviceType==t).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0]?.deviceUUID;}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;},n=>{console.error("Error during search: ",n);});}onChangeProductType(e){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 r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.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 r=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let 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):"",r.push(g),this.foundFiles=r,this.noFilesFound=!1,console.log("Files:",JSON.stringify(r));},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 r=t.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteList=[{label:"",options:r}],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 r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==r).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,r,d,l,g,T,O){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+t),console.log("backup : "+r),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,D=this.authService.Token,x=this.sharedService.getDataByKey("userName"),te=`${w}${M}${R}${P}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${D}&loginUserName=${x}&isSync=false+&deviceUUID=${l}&backupID=${t}&backup=${r}&userName=${this.base64Encode(d)}&moveToDownloads=false`;window.open(te,"_self");}gDriveDownloadFile(e,n,t,r=!1,d){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"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,r||t)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let 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,r||t)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let 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,r,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",r),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 r=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"},...(r||[])]}],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 r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceTypeCS=="backup"?r="BACKUP":this.deviceTypeCS=="mail"?r="OUTLOOK":this.deviceTypeCS=="Gmail"?r="Gmail":r=this.deviceTypeCS,this.devicesCS=t.body.data.devices.filter(d=>d.deviceType==r).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(r=>r.deviceType==t).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID;}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;},n=>{console.error("Error during search: ",n);});}onChangeProductTypeContentSearch(e){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 r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.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 if((this.myDateBefore!==null||this.myDateAfter!==null)&&(!this.selectedValueCS||this.selectedValueCS==="All Users")){this.isExpanded=!0,this.toastr.error(this.translatorService.getTranslation("Please select a User Id."),this.translatorService.getTranslation("Error"));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="",this.selectedDeviceIdCS=""),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 r=[];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):"",r.push(g),this.foundFilesCS=r,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(r));},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),r=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 r=t.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:"All Sites"},...(r||[])]}],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 r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceTypeCS,this.devicesCS=t.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==r).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,r,d=[],l=[],g=[],T=[],O=[],w=[],M=[];for(;(r=t.exec(n))!==null;){let P=r[1],D=r[2];if(D.startsWith("(")&&D.endsWith(")")&&(D=D.slice(1,-1)),P==="from")d.push(D.trim());else if(P==="to")l.push(D.trim());else if(P==="cc")g.push(D.trim());else if(P==="bcc")T.push(D.trim());else if(P==="subject"){let x=D.trim();O.push(x.replace(/^\(|\)$/g,""));}else if(P==="body"){let x=D.trim();w.push(x.replace(/^\(|\)$/g,""));}else M.push(D.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,r,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 selected more than the maximum allowed number of individual items for export. The current limit is ${this.maxItemsAllowedInPstExportWhileSearch}.To continue, please either refine your search to select a smaller set of items or choose to export all 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,r){this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.backupId!==t),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges();}downloadMail(e,n,t,r){if(this.product?.downloadsConfigurations?.unified){this.assetManagementService.downloadGsuite(t,n,this.sharedService.getDataByKey("userName"),"EML",r==="mail"?"OUTLOOK":r,!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,r){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"));}closePstPopupG(){this.displayPststyleG="none";}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}));}triggerGmailProgress(e,n=!1){n?this.toastr.success(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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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)));},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),r=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.toastr.error(this.translatorService.getTranslation("Download event already exists."),this.translatorService.getTranslation("Error")),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,r,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 r=t.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListR=[{label:"",options:r}],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 r="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(r=this.productTypeContentSearch),this.devicesR=t.body.data.devices.filter(d=>d.blocked===!1&&d.osType==r).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(r=>r.blocked===!1&&r.osType==t).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID;}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;},n=>{console.error("Error during search: ",n);});}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date(),this.myDateBeforeR=new Date());}browseR(){this.browsePathR==""&&this.destinationPathR&&this.product?.downloadsConfigurations?.unified&&(this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath,this.selectedBrowseItemId=this.destinationId),this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let e=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(this.selectedDeviceUUIDR,this.productTypeContentSearch,this.selectedBrowseItemId):this.assetManagementService.browseExchange(this.selectedDeviceUUIDR,this.browsePathR),n=this.deviceType;e.subscribe(t=>{this.loadingR=!1,t.body?.stringList?this.browseItemsR=t.body.stringList:Array.isArray(t.body)&&t.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=t.body:this.browseItemsR=t.body.map(r=>r.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges();},t=>{switch(this.loadingR=!1,console.error("Error from browse API:",t),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 500:case 503:console.error("Internal Server Error: ",t.message);break;default:console.error("Unknown Error: ",t.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();}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();}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.displayRestoreStyleR="none",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))):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 r=new Date(this.myDateBeforeR);r.setHours(this.myTimeBeforeR.getHours()),r.setMinutes(this.myTimeBeforeR.getMinutes()),r.setSeconds(this.myTimeBeforeR.getSeconds());let d=r.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"?r=>{this.triggerGSuiteProgress(r,!0),this.showRestoreSettingsR=!1;}:r=>{this.triggerGmailProgress(r,!0),this.showRestoreSettingsR=!1;},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=r?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(r,!0):this.triggerGmailProgress(r,!0);break;case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:console.error("Error code 417: ",r.message),this.toastr.error("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break;}});return;}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUIDR,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,t,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(r=>{console.log("res from initiateRestore : "+JSON.stringify(r)),console.log("res from initiateRestore : "+JSON.stringify(r.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.translatorService.getTranslation("Restore has been queued."),this.translatorService.getTranslation("Info"));},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error(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: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error(this.translatorService.getTranslation("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break;}});}resetContactFields(){this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-";}resetTasksFields(){this.taskSubject="-",this.taskStartDate="-",this.taskDueDate="-",this.taskReminderTime="-";}togglePanel(){this.isExpanded=!this.isExpanded,this.isExpanded?this.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 r=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),t[r].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+/),r=[],d=[],l=[],g=[],T=[],O=[],w=[];for(let R=0;R<t.length;R++){let P=t[R];if(P.startsWith("from:"))r.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 D=P.replace("subject:","").trim();for(;!(D.startsWith("(")&&D.endsWith(")"))&&R+1<t.length&&!t[R+1].startsWith("body:")&&!t[R+1].startsWith("subject:");)R++,D+=" "+t[R];T.push(D.replace(/^\(|\)$/g,""));}else if(P.startsWith("body:")){let D=P.replace("body:","").trim();for(;!(D.startsWith("(")&&D.endsWith(")"))&&R+1<t.length&&!t[R+1].startsWith("body:")&&!t[R+1].startsWith("subject:");)R++,D+=" "+t[R];O.push(D.replace(/^\(|\)$/g,""));}else w.push(P);}return console.log("fromArray : "+r.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 : : "+r.length),[`from:${r.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 r=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),t[r].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(" ");}showHideSecurityCallout(e){this.showSecurityCallout=e;}static{this.ɵfac=function(n){return new(n||i)(v(Z),v(oe),v(j),v(Ee),v(xr),v(Ce),v(tt),v(Re),v(fi),v(Be),v(yt),v(ve),v(Se),v(Et),v(Tt));};}static{this.ɵcmp=Y({type:i,selectors:[["app-search-overlay"]],viewQuery:function(n,t){if(n&1&&(z(Lc,5),z(xc,5),z(kc,5),z(Uc,5),z(Vc,5),z(Hc,5),z(Yc,5),z($c,5),z(Gc,5),z(Bc,5)),n&2){let r;G(r=B())&&(t.deviceDropdown=r.first),G(r=B())&&(t.deviceDropdownCS=r.first),G(r=B())&&(t.iframe=r.first),G(r=B())&&(t.userDeviceSearch=r.first),G(r=B())&&(t.fileSearch=r.first),G(r=B())&&(t.contentSearch=r.first),G(r=B())&&(t.contentSearchMailInput=r.first),G(r=B())&&(t.deviceDropdownR=r.first),G(r=B())&&(t.calendarIframe=r.first),G(r=B())&&(t.searchInput=r.first);}},outputs:{close:"close"},features:[_e([Z,j,Et])],decls:223,vars:96,consts:()=>{let e;e="Search Users/Assets";let n;n="Search Users/Assets";let t;t="Product Type";let r;r="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 D;D="Confirmation";let x;x="Are you sure you wish to close this window? The restore will still continue to run in the background.";let te;te="Restore Settings";let J;J="Browse path";let he;he="Current Path :"+"\uFFFD*181:1\uFFFD\uFFFD#1:1\uFFFD"+""+"[\uFFFD/#1:1\uFFFD\uFFFD/*181:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*182:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*183:3\uFFFD]"+""+"\uFFFD*182:2\uFFFD\uFFFD#1:2\uFFFD"+"/"+"[\uFFFD/#1:1\uFFFD\uFFFD/*181:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*182:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*183:3\uFFFD]"+""+"\uFFFD*183:3\uFFFD\uFFFD#1:3\uFFFD"+""+"\uFFFD0:3\uFFFD"+""+"[\uFFFD/#1:1\uFFFD\uFFFD/*181:1\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*182:2\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*183:3\uFFFD]"+"",he=Or(he);let Le;Le="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 Ft;Ft=""+"\uFFFD0\uFFFD"+"";let Lt;Lt=""+"\uFFFD0\uFFFD"+""+"\uFFFD1\uFFFD"+"\"";let xt;xt="Endpoints";let k;k="OneDrive for Business";let nn;nn="SharePoint Online";let rn;rn="User Id";let on;on="Site";let sn;sn="Asset Name";let an;an="There are no results!.";let ln;ln="Actions";let cn;cn=""+"\uFFFD#7\uFFFD"+"Found in: "+"\uFFFD/#7\uFFFD"+""+"\uFFFD0\uFFFD"+"";let dn;dn="Download";let _n;_n="Open File Location";let pn;pn="Microsoft Exchange";let un;un="OneDrive for Business";let mn;mn="SharePoint Online";let hn;hn="Gmail";let gn;gn=""+"\uFFFD#7\uFFFD"+""+"\uFFFD/#7\uFFFD"+"";let fn;fn="Use comma to separate Email addresses";let Cn;Cn="Use comma to separate multiple Subjects";let vn;vn="Body";let Sn;Sn="Keywords";let En;En="Date from";let Tn;Tn=""+"\uFFFD0\uFFFD"+" Search Results Found";let yn;yn="Enable Multiselect";let bn;bn="Disable Multiselect";let An;An="Export all items to PST";let On;On="Export selected items to PST";let wn;wn="Add Selected Items";let Rn;Rn="Found in:";let Mn;Mn=""+"\uFFFD0\uFFFD"+" : "+"\uFFFD1\uFFFD"+"";let Pn;Pn="Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.";let Nn;Nn="Item not available.";let Dn;Dn="Subject : "+"\uFFFD0\uFFFD"+"";let In;In="From :";let Fn;Fn="To :";let Ln;Ln="CC :";let xn;xn="BCC :";let kn;kn="Remove all";let Un;Un=""+"\uFFFD0\uFFFD"+" selected";let Vn;Vn="Proceed";let Hn;Hn="Current item being processed";let Yn;Yn="-";let $n;$n="Cancel Restore";let Gn;Gn="Select a destination asset:";let Bn;Bn="Select a Destination Path";let zn;zn="Browse";let jn;jn="Restore Options";let Xn;Xn="In place Restore";let Wn;Wn="Restore Deleted Mails";let qn;qn="Disallow new backups during this restore";let Zn;Zn="Source Path - "+"\uFFFD#3\uFFFD"+""+"\uFFFD0\uFFFD"+""+"\uFFFD/#3\uFFFD"+"";let Jn;Jn="/ "+"\uFFFD0\uFFFD"+"";let Kn;Kn="Initiate Restore";let Qn;Qn="Cancel Restore";let er;er="Close";let tr;tr="Close";let ir;ir=""+"\uFFFD#2\uFFFD"+""+"\uFFFD/#2\uFFFD"+" Back";let nr;return nr="Loading...",[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentFrame",""],["deviceDropdownR",""],e,n,t,r,d,l,g,T,O,w,M,R,P,D,x,te,J,he,Le,At,Ot,wt,Rt,Mt,Pt,Nt,Dt,It,Ft,Lt,xt,k,nn,rn,on,sn,an,ln,cn,dn,_n,pn,un,mn,hn,gn,fn,Cn,vn,Sn,En,Tn,yn,bn,An,On,wn,Rn,Mn,Pn,Nn,Dn,In,Fn,Ln,xn,kn,Un,Vn,Hn,Yn,$n,Gn,Bn,zn,jn,Xn,Wn,qn,Zn,Jn,Kn,Qn,er,tr,ir,nr,[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"],["class","justify-content-end",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"],[1,"col-lg-5",2,"height","50vh","overflow-y","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"],[2,"height","50vh","overflow","scroll",3,"ngClass"],["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"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],[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,"justify-content-end"],[1,"col-lg-7"],[1,"alert","align-items-center","callout"],["aria-hidden","true",1,"fa","fa-exclamation-triangle","me-2",2,"font-size","1rem","color","#856404"],[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 r=y();o(0,"div",97)(1,"div",98)(2,"c-card",99)(3,"c-card-body")(4,"a",100),f("click",function(){return u(r),m(t.closeOverlay());}),S(5,"i",101),s(),o(6,"c-nav",102)(7,"c-nav-item",103)(8,"button",104),f("click",function(){return u(r),m(t.setActiveSearchTab("default",0));}),C(9,10),s()(),E(10,Qc,3,2,"c-nav-item",105)(11,ed,3,2,"c-nav-item",105),s(),o(12,"c-tab-content",106,0)(14,"c-tab-pane",107)(15,"c-row",108)(16,"c-input-group",99)(17,"span",109),C(18,11),s(),o(19,"input",110,1),L("ngModelChange",function(l){return u(r),F(t.userAssetSearchText,l)||(t.userAssetSearchText=l),m(l);}),f("keydown.enter",function(){return u(r),m(t.searchForUsersAssets());}),s()()(),o(21,"c-row"),E(22,td,2,1,"c-card",105)(23,nd,6,1,"c-card",105),S(24,"br"),E(25,rd,2,1,"c-card",105)(26,sd,6,1,"c-card",105),S(27,"br"),E(28,ad,2,1,"c-card",105)(29,cd,6,1,"c-card",105),s()(),o(30,"c-tab-pane",107)(31,"c-row",111)(32,"div",112)(33,"label",113),C(34,12),s(),o(35,"select",114),L("ngModelChange",function(l){return u(r),F(t.productTypeFiles,l)||(t.productTypeFiles=l),m(l);}),f("change",function(l){return u(r),m(t.onChangeProductType(l));}),E(36,dd,2,0,"option",115)(37,_d,2,0,"option",116)(38,pd,2,0,"option",117),Ue(39,md,1,1,"option",118,nt),s()(),E(41,hd,4,5,"div",119)(42,gd,4,4,"div",119)(43,vd,8,2,"div",120),s(),o(44,"c-row",121)(45,"div",122)(46,"c-input-group")(47,"input",123,2),L("ngModelChange",function(l){return u(r),F(t.filesSearchText,l)||(t.filesSearchText=l),m(l);}),f("keydown.enter",function(){return u(r),m(t.searchForFiles());}),s()()(),o(49,"div",124)(50,"button",125),f("click",function(){return u(r),m(t.searchForFiles());}),h(51,"Search"),s()()(),S(52,"br"),E(53,Sd,5,0,"c-row",105)(54,Td,10,3,"c-row",126),s(),o(55,"c-tab-pane",107)(56,"c-row",111)(57,"div",112)(58,"label",127),h(59,"Product Type"),s(),o(60,"select",128),L("ngModelChange",function(l){return u(r),F(t.productTypeContentSearch,l)||(t.productTypeContentSearch=l),m(l);}),f("change",function(l){return u(r),m(t.onChangeProductTypeContentSearch(l));}),E(61,yd,2,0,"option",129)(62,bd,2,0,"option",116)(63,Ad,2,0,"option",117)(64,Od,2,0,"option",130),Ue(65,Rd,1,3,"option",118,nt),s()(),E(67,Md,4,5,"div",119)(68,Pd,4,4,"div",119)(69,Id,8,2,"div",120),s(),E(70,Fd,8,1,"c-row",131)(71,xd,9,4,"c-row",132)(72,Ud,2,1,"c-row",132),S(73,"br"),o(74,"app-document-content-search",133),f("downloadFile",function(l){return u(r),m(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(r),m(t.openFileLocation(l.fileName,l.filePath,l.deviceId,t.productTypeContentSearch,l.backup));})("navigatePage",function(l){return u(r),m(t.searchForContentNavigate(l));}),s(),E(75,Vd,5,0,"c-row",132)(76,w_,36,30,"c-row",134)(77,R_,6,0,"c-row",135),S(78,"br"),E(79,I_,7,4,"c-row",136),s()()()()()(),o(80,"div",137)(81,"div",138)(82,"div",139)(83,"div",140)(84,"h4",141),C(85,13),s()(),o(86,"div",142)(87,"c-row")(88,"div",143)(89,"label",144),C(90,14),s(),o(91,"input",145,3),L("ngModelChange",function(l){return u(r),F(t.pstFileNameG,l)||(t.pstFileNameG=l),m(l);}),s(),E(93,k_,4,3,"div",146),s()()(),o(94,"div",147)(95,"button",148),f("click",function(){return u(r),m(t.closePstPopupG());}),C(96,15),s(),E(97,U_,2,1,"button",149)(98,V_,2,1,"button",149),s()()()(),o(99,"div",150)(100,"div",151)(101,"div",139)(102,"div",140)(103,"h4",141),C(104,16),s()(),o(105,"div",142)(106,"c-card")(107,"c-card-header",152),C(108,17),s(),o(109,"c-card-body")(110,"c-row",153)(111,"table",154)(112,"thead")(113,"tr"),E(114,H_,2,0,"th",105),o(115,"th"),C(116,18),s()()(),o(117,"tbody")(118,"tr"),E(119,$_,5,9,"td",105)(120,G_,2,0,"td",105)(121,z_,6,9,"td",105)(122,j_,2,0,"td",105),s()()()()()()(),o(123,"div",147)(124,"button",148),f("click",function(){return u(r),m(t.closeDownloadPstPopupG());}),h(125,"Close"),s(),E(126,X_,2,0,"button",155),s()()()(),o(127,"div",137)(128,"div",138)(129,"div",139)(130,"div",140)(131,"h4",141),C(132,19),s()(),o(133,"div",142)(134,"h4",141),C(135,20),s()(),o(136,"div",147)(137,"button",148),f("click",function(){return u(r),m(t.closeDownloadPstConfirmPopupG());}),C(138,21),s(),o(139,"button",156),f("click",function(){return u(r),m(t.cancelDownloadAsPstConfirmG());}),C(140,22),s()()()()(),o(141,"div",137)(142,"div",138)(143,"div",139)(144,"div",140)(145,"h4",141),C(146,23),s()(),o(147,"div",142)(148,"h4",141),C(149,24),s()(),o(150,"div",147)(151,"button",148),f("click",function(){return u(r),m(t.closeDownloadPstRunBkpPopupG());}),h(152,"Cancel"),s(),o(153,"button",157),f("click",function(){return u(r),m(t.cancelDownloadAsPstRunBkpG());}),h(154,"Ok"),s()()()()(),o(155,"div",158)(156,"div",151)(157,"div",139)(158,"div",140)(159,"h4",141),C(160,25),s()(),o(161,"div",142),E(162,J_,58,29,"c-card",105)(163,dp,22,14,"c-card",105),s(),o(164,"div",147),E(165,_p,2,1,"button",159)(166,pp,2,0,"button",160)(167,up,2,0,"button",161)(168,mp,2,0,"button",162),s()()()(),o(169,"div",163)(170,"div",138)(171,"div",139)(172,"div",140)(173,"h4",141),C(174,26),s()(),o(175,"div",142)(176,"c-row",153)(177,"c-card",164)(178,"c-card-header",152)(179,"span"),le(180,27),E(181,hp,2,0,"span",105)(182,gp,2,0,"span",105)(183,fp,2,1,"span",105),ce(),s()(),o(184,"c-card-body"),E(185,Cp,3,0,"button",165),o(186,"div",166)(187,"table",167)(188,"thead")(189,"tr",168)(190,"th"),C(191,28),s()()(),o(192,"tbody"),E(193,vp,5,0,"tr",105)(194,Sp,4,5,"tr",169),s()()()()(),o(195,"c-card",164)(196,"c-card-body")(197,"div",143)(198,"label",170),C(199,29),s(),o(200,"c-input-group",99)(201,"input",171),L("ngModelChange",function(l){return u(r),F(t.newFolderR,l)||(t.newFolderR=l),m(l);}),s(),o(202,"button",172),f("click",function(){return u(r),m(t.addNewFolderR(t.newFolderR));}),C(203,30),s()()()()()()(),o(204,"div",147)(205,"button",148),f("click",function(){return u(r),m(t.closeBrowsePopupR());}),h(206,"Close"),s(),o(207,"button",173),f("click",function(){return u(r),m(t.usePathR());}),C(208,31),s()()()()(),o(209,"div",137)(210,"div",138)(211,"div",139)(212,"div",140)(213,"h4",141),C(214,32),s()(),o(215,"div",142)(216,"h4",141),C(217,33),s()(),o(218,"div",147)(219,"button",148),f("click",function(){return u(r),m(t.closeDeleteRestorePopupR());}),C(220,34),s(),o(221,"button",157),f("click",function(){return u(r),m(t.deleteRestoreEventR());}),C(222,35),s()()()()();}if(n&2){let r=re(13),d=re(92);a(7),_("ngStyle",H(80,Fe,t.userType!="user"?"block":"none")),a(),_("cTabContent",r)("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(),_("ngIf",!t.isMultiSelectEnabled&&t.foundMailsCS.length>0&&t.showSecurityCallout),a(2),_("ngIf",(t.productTypeContentSearch=="mail"||t.productTypeContentSearch=="Gmail")&&t.foundMailsCS.length>0&&!t.noFilesFoundCS),a(),_("ngStyle",H(82,Fe,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",H(84,Fe,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",H(86,Fe,t.displayDownloadPstConfirmstyleG)),a(14),_("ngStyle",H(88,Fe,t.displayDownloadPstRunBckConfirmstyleG)),a(14),_("ngStyle",H(90,Fe,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",H(92,Fe,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&&!t.browsePathR),a(2),_("ngStyle",H(94,Fe,t.displayDeleteRestoreStyleR));}},dependencies:[ya,Ta,Ai,Ye,wi,Mi,Ri,fa,Ca,ga,gt,Ua,Va,ut,Li,ka,mt,xi,Ha,Ya,$a,ht,fe,pi,st,ue,mi,ui,Da,Ia,Na,ba,bi,dt,ct,_t,Ni,Pe,pt,Me,Ct,Ba,Fi,ft,vt,za,St,ja,Xa,ul,Wa,Oi],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)}}.callout[_ngcontent-%COMP%]{margin:0 20px 0 0;padding-top:2px;padding-bottom:0}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:10%;display:inline-flex}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:90%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:5%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{width:10%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:85%;display:inline-flex}fixTableHead[_ngcontent-%COMP%]   .table-responsive[_ngcontent-%COMP%]{overflow-x:hidden!important}.progressR[_ngcontent-%COMP%]{background-color:#d3d3d3}']});}}return i;})();var Ep=(i,c)=>c.name,Tp=()=>["superAdmin"],fl=i=>({display:i}),Cl=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],yp=()=>["/mspDashboard"],bp=()=>["/dashboard"],Ap=()=>["/bluvault"],Op=()=>({placement:"bottom-start"}),wp=()=>[],Rp=i=>({label:"Close",class:"btn btn-default",action:i}),Mp=i=>[i];function Pp(i,c){if(i&1&&(o(0,"button",37),S(1,"i",38),s()),i&2){let e=p();_("cSidebarToggle",e.sidebarId);}}function Np(i,c){if(i&1){let e=y();o(0,"c-input-group",39)(1,"input",40),f("click",function(){u(e);let t=p();return m(t.openOverlay());}),s(),o(2,"span",41),S(3,"i",42),s()();}}function Dp(i,c){if(i&1){let e=y();o(0,"c-sidebar-brand",43)(1,"img",44),f("error",function(t){u(e);let r=p();return m(r.onImageError(t));}),s()();}if(i&2){let e=p();_("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&U(2,Cl).includes(e.userType)?U(3,yp):U(4,Cl).includes(e.userType)?U(5,bp):U(6,Ap)),a(),_("src",e.parabluLogo,ge);}}function Ip(i,c){if(i&1){let e=y();o(0,"app-search-overlay",45),f("close",function(){u(e);let t=p();return m(t.closeOverlay());}),s();}}function Fp(i,c){i&1&&di(0);}function Lp(i,c){i&1&&di(0);}function xp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.currentUserProfile());}),S(2,"i",55),h(3," My Account "),s()();}}function kp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.activityHistory());}),S(2,"i",56),h(3," Activity History "),s()();}}function Up(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.unusualActivityHistory());}),S(2,"i",56),h(3," Unusual Activity History "),s()();}}function Vp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.endpointsDownload());}),S(2,"i",57),h(3," Download Agent "),s()();}}function Hp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.licenseOptimizer());}),S(2,"i",58),h(3," License Optimizer "),s()();}}function Yp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.packDetails());}),S(2,"i",59),h(3," Current Packs Subscribed "),s()();}}function $p(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.navigateToDownloads());}),S(2,"i",57),h(3," Downloads "),s()();}}function Gp(i,c){i&1&&(o(0,"li"),S(1,"hr",52),s());}function Bp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.activityHistory());}),S(2,"i",60),h(3," Share Activity History "),s()();}}function zp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.unusualActivityHistory());}),S(2,"i",56),h(3," Infected Files History "),s()();}}function jp(i,c){if(i&1){let e=y();o(0,"li")(1,"a",53),f("click",function(){u(e);let t=p(3);return m(t.miniclouds());}),S(2,"i",61),h(3," MiniClouds "),s()();}}function Xp(i,c){i&1&&(o(0,"li"),S(1,"hr",52),s());}function Wp(i,c){i&1&&(o(0,"li"),S(1,"hr",52),s());}function qp(i,c){if(i&1&&(o(0,"li")(1,"a",62),C(2,4),s()()),i&2){let e=p(3);a(),_("href",e.quick_startUrl,ge);}}function Zp(i,c){if(i&1&&(o(0,"li")(1,"a",62),C(2,5),s()()),i&2){let e=p(3);a(),_("href",e.administrator_Guide_EndpointUrl,ge);}}function Jp(i,c){if(i&1&&(o(0,"li")(1,"a",63),C(2,6),s()()),i&2){let e=p(3);a(),_("href",e.quick_start_serverUrl,ge);}}function Kp(i,c){if(i&1&&(o(0,"li")(1,"a",63),C(2,7),s()()),i&2){let e=p(3);a(),_("href",e.administrator_Guide_ServerUrl,ge);}}function Qp(i,c){if(i&1&&(o(0,"li")(1,"a",63),C(2,8),s()()),i&2){let e=p(3);a(),_("href",e.userGuideUrl,ge);}}function eu(i,c){i&1&&(o(0,"li"),S(1,"hr",52),s());}function tu(i,c){i&1&&(o(0,"li")(1,"h6",64),h(2," Help & Support "),s()());}function iu(i,c){i&1&&(o(0,"li")(1,"a",62),S(2,"i",65),h(3," +971 50 158 7321 "),s()()),i&2&&(a(),_("href","https://wa.me/971501587321",ge));}function nu(i,c){if(i&1&&(o(0,"li")(1,"a",66),S(2,"i",67),h(3," Send email "),s()()),i&2){let e=p(3);a(),_("href","mailto:"+e.support_mailId,ge);}}function ru(i,c){i&1&&(o(0,"li"),S(1,"hr",52),s());}function ou(i,c){if(i&1){let e=y();o(0,"ul",50),E(1,xp,4,0,"li",51),o(2,"li"),S(3,"hr",52),s(),E(4,kp,4,0,"li",51)(5,Up,4,0,"li",51)(6,Vp,4,0,"li",51)(7,Hp,4,0,"li",51)(8,Yp,4,0,"li",51)(9,$p,4,0,"li",51)(10,Gp,2,0,"li",51)(11,Bp,4,0,"li",51)(12,zp,4,0,"li",51)(13,jp,4,0,"li",51)(14,Xp,2,0,"li",51)(15,Wp,2,0,"li",51)(16,qp,3,1,"li",51)(17,Zp,3,1,"li",51)(18,Jp,3,1,"li",51)(19,Kp,3,1,"li",51)(20,Qp,3,1,"li",51)(21,eu,2,0,"li",51)(22,tu,3,0,"li",51)(23,iu,4,1,"li",51)(24,nu,4,1,"li",51)(25,ru,2,0,"li",51),o(26,"li")(27,"a",53),f("click",function(){u(e);let t=p(2);return m(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 su(i,c){if(i&1){let e=y();o(0,"ul",50)(1,"li")(2,"a",53),f("click",function(){u(e);let t=p(2);return m(t.logout());}),le(3,9),S(4,"i",54),ce(),s()()();}}function au(i,c){if(i&1&&(o(0,"c-dropdown",46)(1,"button",47),S(2,"c-avatar",48),s(),E(3,ou,30,23,"ul",49)(4,su,5,0,"ul",49),s()),i&2){let e=p();_("popperOptions",U(5,Op)),a(),_("caret",!1),a(),_("size","md"),a(),_("ngIf",e.userType!="superAdmin"),a(),_("ngIf",e.userType=="superAdmin");}}function lu(i,c){if(i&1){let e=y();o(0,"button",74),f("click",function(){u(e);let t=p(2);return m(t.click_Crashplan_Endpoint());}),o(1,"a",75),h(2,"CrashPlan Endpoint"),s()();}if(i&2){let e=p(2);a(),_("href",e.crashplan_Endpoint_Url,ge);}}function cu(i,c){if(i&1){let e=y();o(0,"button",76),f("click",function(){let t=u(e).$implicit,r=p(2);return r.colorMode.set(t.name),m(r.applyTheme());}),oi(),S(1,"svg",77),h(2),s();}if(i&2){let e=c.$implicit,n=p(2);_("active",n.colorMode()===e.name)("routerLink",U(4,wp)),a(),_("name",e.icon),a(),N(" ",e.text," ");}}function du(i,c){if(i&1&&(E(0,lu,3,1,"button",68),o(1,"c-dropdown",69)(2,"button",70),oi(),S(3,"svg",71),s(),Bi(),o(4,"div",72),Ue(5,cu,3,5,"button",73,Ep),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 _u(i,c){i&1&&(o(0,"th",81),C(1,14),s());}function pu(i,c){i&1&&(o(0,"td",84)(1,"span"),C(2,15),s()());}function uu(i,c){if(i&1&&(o(0,"tr")(1,"td",84)(2,"div"),h(3),s()(),o(4,"td",84)(5,"div"),h(6),s()(),o(7,"td",84)(8,"div"),h(9),s()(),o(10,"td",84)(11,"div"),h(12,"-"),s()()()),i&2){let e=c.$implicit;a(3),V(e.skuCode),a(3),V(e.storageSize),a(3),V(e.minUserCount);}}function mu(i,c){if(i&1&&(o(0,"tr")(1,"td",84)(2,"div"),h(3),s()(),o(4,"td",84)(5,"div"),h(6,"-"),s()(),o(7,"td",84)(8,"div"),h(9),s()(),o(10,"td",84)(11,"div"),h(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,mu,13,3,"tr",87),Yt()),i&2){let e=p(2);a(),_("ngForOf",e.serverPacks);}}function gu(i,c){if(i&1&&(o(0,"td",84)(1,"span")(2,"b"),h(3),s()()()),i&2){let e=p(2);a(3),V(e.totalServer);}}function fu(i,c){if(i&1&&(o(0,"app-modal",78)(1,"c-row")(2,"table",79)(3,"thead",80)(4,"tr")(5,"th",81),h(6,"Pack Name "),s(),o(7,"th",81)(8,"p",82),C(9,10),s(),o(10,"p",82),C(11,11),s()(),o(12,"th",81),h(13,"Users"),s(),E(14,_u,2,0,"th",83),s()(),o(15,"tbody")(16,"tr")(17,"td",84)(18,"span")(19,"a",85),h(20),s(),S(21,"br"),o(22,"span"),C(23,12),s()()(),o(24,"td",84)(25,"span"),h(26),s()(),o(27,"td",84)(28,"span"),h(29),s()(),E(30,pu,3,0,"td",86),s(),E(31,uu,13,3,"tr",87)(32,hu,2,1,"ng-container",51),o(33,"tr",84)(34,"td",84)(35,"span")(36,"b"),C(37,13),s()()(),o(38,"td",84)(39,"span")(40,"b"),h(41),s()()(),o(42,"td",84)(43,"span")(44,"b"),h(45),s()()(),E(46,gu,4,1,"td",86),s()()()()()),i&2){let e=p();_("modalSize","modal-lg")("modalWidth","90%")("footerButtons",H(20,Mp,H(18,Rp,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(),N(" ",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 Cu(i,c){if(i&1){let e=y();o(0,"app-crashplan-nav",88),f("closeModalHandler",function(){u(e);let t=p();return m(t.close_Crashplan_Endpoint());}),s();}}var vl=(()=>{class i extends va{#t;#e;#i;constructor(e,n,t,r,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=r,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(Br),this.#e=Xe(la),this.colorMode=this.#e.colorMode,this.#i=Xe(Sr),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Nr(()=>{let D=this.colorMode();return this.colorModes.find(x=>x.name===D)?.icon??"cilSun";}),this.imageSrc=["assets/brand/header_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(_r(1),W(D=>D.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),ti(D=>["dark","light","auto"].includes(D)),$(D=>{this.colorMode.set(D);}),oa(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((r,d)=>{if(r.subscriptionActive){this.skuCode=r.skuCode,this.packModel=r.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(r.storageSize),this.totalUser=Number(r.minUserCount),this.storageSize=r.storageSize.toString(),this.minUserCount=r.minUserCount.toString(),this.customerId=r.customerId,this.referenceNumber=r.referenceNumber;let l=new Date(r.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(r.subscriptionStartDate),r.addons&&r.addons.length>0&&(this.addons=r.addons),r.addons&&r.addons.length>0&&r.addons.forEach(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;r.addons&&r.addons.length>0&&r.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 r=localStorage.getItem("showStep1Modal");if(r!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return;}if(r!=="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(oe),v(tt),v(Ce),v(j),v(Re),v(Ee),v($e),v(yt),v(ve),v(Se),v(Ui));};}static{this.ɵcmp=Y({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 r;r="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 D;return D="-",[["userDropdown",""],["themeDropdown",""],e,n,t,r,d,l,g,T,O,w,M,R,P,D,[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 r=y();Ht(0),o(1,"c-container",16),E(2,Pp,2,1,"button",17)(3,Np,4,0,"c-input-group",18)(4,Dp,2,7,"c-sidebar-brand",19)(5,Ip,1,0,"app-search-overlay",20),o(6,"c-header-nav",21),E(7,Fp,1,0,"ng-container",22)(8,Lp,1,0,"ng-container",22),s()(),Yt(),E(9,au,5,6,"ng-template",null,0,_i)(11,du,7,3,"ng-template",null,1,_i)(13,fu,47,22,"app-modal",23)(14,Cu,1,0,"app-crashplan-nav",24),o(15,"div",25)(16,"div",26)(17,"div",27)(18,"div",28)(19,"h4",29),h(20,"Step 1: Provide Consent"),s(),o(21,"a",30),S(22,"i",31),s()(),o(23,"div",32)(24,"h4"),h(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(),o(26,"c-callout",33),C(27,2),s()(),o(28,"div",34)(29,"button",35),f("click",function(){return u(r),m(t.denyConsentFlow());}),h(30,"Cancel"),s(),o(31,"button",36),f("click",function(){return u(r),m(t.proceedForConsentFlow());}),h(32,"Proceed"),s()()()()(),o(33,"div",25)(34,"div",26)(35,"div",27)(36,"div",28)(37,"h4",29),h(38,"Step 2: Configure Assets"),s()(),o(39,"div",32)(40,"h4"),h(41,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),s()(),o(42,"div",34)(43,"button",35),f("click",function(){return u(r),m(t.denyAssetConfigurationFlow());}),h(44,"Cancel"),s(),o(45,"button",36),f("click",function(){return u(r),m(t.proceedForAssetConfigurationFlow());}),h(46,"Proceed"),s()()()()();}if(n&2){let r=re(10),d=re(12);a(),_("fluid",!0),a(),_("ngIf",!t.showCenterBrandLogo),a(),_("ngIf",!t.inclusionLicenses.includes("msp_environment_enabled")&&!U(11,Tp).includes(t.userType)),a(),_("ngIf",t.showCenterBrandLogo),a(),_("ngIf",t.isOverlayVisible),a(2),_("ngTemplateOutlet",d),a(),_("ngTemplateOutlet",r),a(5),_("ngIf",t.stylePackDetails),a(),_("ngIf",t.showCrashplanEndpointLicenseModal),a(),_("ngStyle",H(12,fl,t.displayConsentRemainder)),a(18),_("ngStyle",H(14,fl,t.displayAssetConfigurationRemainder));}},dependencies:[Pi,pl,Ea,Di,Ii,Qs,Sa,vi,Dr,pa,_a,Ai,da,ua,ca,wi,Mi,Ri,gl,fe,st,ue,Ye,Me,Pe,Fi,pt,ki,Oi],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 vu=4,Su=.001,Eu=1e-7,Tu=10,Kt=11,Hi=1/(Kt-1),yu=typeof Float32Array=="function";function Sl(i,c){return 1-3*c+3*i;}function El(i,c){return 3*c-6*i;}function Tl(i){return 3*i;}function Yi(i,c,e){return((Sl(c,e)*i+El(c,e))*i+Tl(c))*i;}function yl(i,c,e){return 3*Sl(c,e)*i*i+2*El(c,e)*i+Tl(c);}function bu(i,c,e,n,t){let r,d,l=0;do d=c+(e-c)/2,r=Yi(d,n,t)-i,r>0?e=d:c=d;while(Math.abs(r)>Eu&&++l<Tu);return d;}function Au(i,c,e,n){for(let t=0;t<vu;++t){let r=yl(c,e,n);if(r===0)return c;let d=Yi(c,e,n)-i;c-=d/r;}return c;}function Ou(i){return i;}function wu(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 Ou;let t=yu?new Float32Array(Kt):new Array(Kt);for(let d=0;d<Kt;++d)t[d]=Yi(d*Hi,i,e);function r(d){let l=0,g=1,T=Kt-1;for(;g!==T&&t[g]<=d;++g)l+=Hi;--g;let O=(d-t[g])/(t[g+1]-t[g]),w=l+O*Hi,M=yl(w,i,e);return M>=Su?Au(d,w,i,e):M===0?w:bu(d,l,l+Hi,i,e);}return function(l){return l===0?0:l===1?1:Yi(r(l),c,n);};}var Ru=new et("SMOOTH_SCROLL_OPTIONS"),bl=(()=>{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):sa(e);}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new xe()).get(e);}_isFinished(e,n,t){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),t(),!1);}_interrupted(e,n){return ke(Q(e,"wheel",{passive:!0,capture:!0}),Q(e,"touchmove",{passive:!0,capture:!0}),n).pipe(dr(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 r=e.easing(t);e.currentX=e.startX+(e.x-e.startX)*r,e.currentY=e.startY+(e.y-e.startY)*r,this._scrollElement(e.scrollable,e.currentX,e.currentY),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),r={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:wu(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(d=>{je(null).pipe(pr(()=>this._step(r).pipe(hr(l=>this._isFinished(l,t,d)))),Te(this._interrupted(e,t)),ur(()=>this._destroy(e,t))).subscribe();});}scrollTo(e,n){if(Fr(this._platform)){let t=this._getElement(e),r=getComputedStyle(t).direction==="rtl",d=yi(),l=Ne(X(X({},this._defaultOptions),n),{left:n.left==null?r?n.end:n.start:n.left,right:n.right==null?r?n.start:n.end:n.right});return l.bottom!=null&&(l.top=t.scrollHeight-t.clientHeight-l.bottom),r&&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 r=this._getElement(e),d=this._getElement(n,r),l=Ne(X({},t),{left:d.offsetLeft+(t.left||0),top:d.offsetTop+(t.top||0)});return d?this.scrollTo(r,l):Promise.resolve();}static{this.ɵfac=function(n){return new(n||i)(q(pe),q(Tr),q(Ru,8));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var Pu=["scrollbarY"],Nu=["scrollbarX"],Du=["*"];function Iu(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 Fu(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,Iu,2,2,"scrollbar-x",5)(2,Fu,2,2,"scrollbar-y",5),Yt()),i&2){let e=p();a(),_("ngIf",e.state.horizontalUsed),a(),_("ngIf",e.state.verticalUsed);}}var xu=(()=>{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 Rl(i){return $(()=>{i.onselectstart=()=>!1;});}function Ml(i){return $(()=>{i.onselectstart=null;});}function ze(){return $(i=>i.stopPropagation());}function Zi(i,c){return i.clientX>=c.left&&i.clientX<=c.left+c.width&&i.clientY>=c.top&&i.clientY<=c.top+c.height;}var Ji=(()=>{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 r=Q(this.nativeElement,"mousemove",{passive:!0}),d=e?r:r.pipe(ze()),l=Q(this.nativeElement,"mouseleave",{passive:!0}).pipe(W(()=>!1));ke(d,l).pipe($(g=>t.next(g)),Te(n)).subscribe();}),this.clicked=new Qe(t=>{let r=Q(this.nativeElement,"mousedown",{passive:!0}).pipe($(l=>t.next(l))),d=Q(this.nativeElement,"mouseup",{passive:!0}).pipe($(()=>t.next(!1)));r.pipe(kt(()=>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;})(),en=(()=>{class i{get clicked(){let e=Q(this.trackElement,"mousedown",{passive:!0}).pipe(ze(),Rl(this.document)),n=Q(this.document,"mouseup",{passive:!0}).pipe(ze(),Ml(this.document),kt(()=>sr));return ke(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(r=>r[this.pageProperty]),W(r=>(r-this.offset-n/2)/this.size*t),$(r=>{this.cmp.scrollTo(Ne(X({},this.mapToScrollToOption(r)),{duration:zi(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;})(),Ki=(()=>{class i extends en{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;})(),Qi=(()=>{class i extends en{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;})(),Pl=(()=>{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,r){this.cmp=e,this.track=n,this.thumbElement=t,this.document=r,this._dragging=new xe(),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,r=je(e).pipe(Rl(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(),Ml(this.document),$(()=>this.setDragging(!1)));return r.pipe(W(g=>g[this.pageProperty]),W(g=>g-this.dragStartOffset),ar(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(en),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 Al=(()=>{class i extends Pl{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,r,d){super(e,n,t.nativeElement,r),this.cmp=e,this.track=n,this.element=t,this.document=r,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(Ki),v(se),v(pe),v(ji));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarThumbX",""]],features:[Ae]});}}return i;})(),Ol=(()=>{class i extends Pl{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,r){super(e,n,t.nativeElement,r),this.cmp=e,this.track=n,this.element=t,this.document=r;}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`;}handleDrag(e){return e;}handleDirection(e){return e;}setDragging(e){this.cmp.setDragging({verticalDragging:e});}scrollTo(e){this.cmp.viewport.scrollYTo(e);}static{this.ɵfac=function(n){return new(n||i)(v(Oe),v(Qi),v(se),v(pe));};}static{this.ɵdir=ae({type:i,selectors:[["","scrollbarThumbY",""]],features:[Ae]});}}return i;})(),Nl=(()=>{class i{constructor(e,n,t,r,d){this.el=e,this.cmp=n,this.platform=t,this.document=r,this.zone=d,this.destroyed=new xe();}activatePointerEvents(){let e,n,t;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new xe(),this.viewportThumbClicked=new xe(),this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,t=this.cmp.viewport.hovered.pipe(W(r=>r?Zi(r,this.el.getBoundingClientRect()):!1),ii(),$(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe($(r=>{r?Zi(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):Zi(r,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(r)):this.cmp.setClicked(!1);}),Te(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,t=this.hovered),ke(t.pipe($(r=>this.setHovered(r))),e.pipe(kt(r=>this.thumb.dragged(r))),n.pipe(kt(r=>this.track.onTrackClicked(r,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 ke(e,n);}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(Te(this.destroyed)).subscribe(),ke(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;})(),Vu=(()=>{class i extends Nl{get viewportScrollSize(){return this.cmp.viewport.scrollHeight;}constructor(e,n,t,r,d){super(e.nativeElement,n,t,r,d),this.cmp=n,this.platform=t,this.document=r,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=Y({type:i,selectors:[["scrollbar-y"]],viewQuery:function(n,t){if(n&1&&(z(Qi,7),z(Ol,7)),n&2){let r;G(r=B())&&(t.track=r.first),G(r=B())&&(t.thumb=r.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&&(o(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:[Qi,Ol],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;})(),Hu=(()=>{class i extends Nl{get viewportScrollSize(){return this.cmp.viewport.scrollWidth;}constructor(e,n,t,r,d){super(e.nativeElement,n,t,r,d),this.cmp=n,this.platform=t,this.document=r,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=Y({type:i,selectors:[["scrollbar-x"]],viewQuery:function(n,t){if(n&1&&(z(Ki,7),z(Al,7)),n&2){let r;G(r=B())&&(t.track=r.first),G(r=B())&&(t.thumb=r.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&&(o(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,Al],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;})(),Yu=new et("NG_SCROLLBAR_OPTIONS"),wl={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},Dl=(()=>{class i{constructor(e){this.globalOptions=e?X(X({},wl),e):wl,this.rtlScrollAxisType=yi();}static{this.ɵfac=function(n){return new(n||i)(q(Yu,8));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})(),$u=(()=>{class i{constructor(e,n,t){this.document=e,this.manager=n,this.platform=t,this._scrollbarSize=new or(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),t.isBrowser&&Q(this.document.defaultView,"resize",{passive:!0}).pipe(Gi(this.manager.globalOptions.windowResizeDebounce),W(()=>this.getNativeScrollbarSize()),ii(),$(r=>this._scrollbarSize.next(r))).subscribe();}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n;}static{this.ɵfac=function(n){return new(n||i)(q(pe),q(Dl),q(lt));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})(),Gu=(()=>{class i{constructor(e,n,t){this.renderer=n,this.hideNativeScrollbar=t,this._subscriber=rr.EMPTY,this._subscriber=t.scrollbarSize.subscribe(r=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${r}px`,yr.DashCase);});}ngOnDestroy(){this._subscriber.unsubscribe();}static{this.ɵfac=function(n){return new(n||i)(v(se),v(tt),v($u));};}static{this.ɵdir=ae({type:i,selectors:[["","hideNativeScrollbar",""]]});}}return i;})(),Bu=(()=>{class i{get debounce(){return this._debounce;}set debounce(e){this._debounce=zi(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(Gi(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;})(),Il=(()=>{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,r,d,l){this.el=e,this.zone=n,this.changeDetectorRef=t,this.dir=r,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 xe();}updateState(){let e=!1,n=!1,t=!1,r=!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")&&(r=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||r),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:t,isHorizontallyScrollable:r});}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]),mr(),ti(([t,r])=>t!==r),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(cr(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(ji),v(bl),v(Dl));};}static{this.ɵcmp=Y({type:i,selectors:[["ng-scrollbar"]],contentQueries:function(n,t,r){if(n&1&&Mr(r,Ji,7),n&2){let d;G(d=B())&&(t.customViewPort=d.first);}},viewQuery:function(n,t){if(n&1&&(z(Pu,5,se),z(Nu,5,se),z(Ji,7)),n&2){let r;G(r=B())&&(t.scrollbarY=r.first),G(r=B())&&(t.scrollbarX=r.first),G(r=B())&&(t.defaultViewPort=r.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}]),ri],ngContentSelectors:Du,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&&(wr(),o(0,"div",2)(1,"div",3),f("resizeSensor",function(){return t.update();}),o(2,"div",4)(3,"div"),Rr(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,xu,Bu,Ji,Gu,Hu,Vu],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 Fl=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 Ll=(()=>{class i{static ɵfac=function(n){return new(n||i)();};static ɵmod=ci({type:i});static ɵinj=ni({imports:[Ga]});}return i;})();function zu(i,c){i&1&&(o(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 $r?this.loadingService.loadingOn():e instanceof Gr&&this.loadingService.loadingOff();})).subscribe();}static{this.ɵfac=function(n){return new(n||i)(v(hi),v(oe));};}static{this.ɵcmp=Y({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,zu,2,0,"div",0),ee(1,"async")),n&2&&Ze(ot(1,1,t.loading$)?0:-1);},dependencies:[Ll,Ir],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 $i={provide:"httpHeaders",useFactory:i=>new Lr({"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 ju=i=>({cloudPropertyElement:i}),kl=()=>["admin","delegatedAdmin","readOnlyAdmin"],Xu=()=>["/mspDashboard"],Wu=()=>["/dashboard"],qu=()=>["/bluvault"],Zu=()=>({"pointer-events":"none",cursor:"unset"}),Ju=()=>({});function Ku(i,c){i&1&&(o(0,"c-sidebar-footer",17),S(1,"button",18),s());}function Qu(i,c){if(i&1){let e=y();o(0,"c-sidebar",11,0)(2,"c-sidebar-header",12)(3,"c-sidebar-brand",13)(4,"img",14),f("error",function(t){u(e);let r=p();return m(r.onImageError(t));}),s()()(),o(5,"ng-scrollbar",15,1),f("updated",function(){u(e);let t=re(6),r=p();return m(r.onScrollbarUpdate(t.state));}),S(7,"c-sidebar-nav",16,2),s(),E(9,Ku,2,0,"c-sidebar-footer",17),s();}if(i&2){let e=re(1),n=p();a(3),_("routerLink",n.isMspEnabled&&U(5,kl).includes(n.userType)?U(6,Xu):U(7,kl).includes(n.userType)?U(8,Wu):U(9,qu))("ngStyle",n.userType==="superAdmin"?U(10,Zu):U(11,Ju)),a(),_("src",n.parabluLogo,ge),a(3),_("navItems",n.navItems),a(2),Ze(e.narrow?-1:9);}}var Ul=(()=>{class i{constructor(e,n,t,r,d,l,g){this.cdr=e,this.router=n,this.licenseCheckService=t,this.userRoleService=r,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/header_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=Fl(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(oe),v(yt),v(Se),v(j),v(ve),v(Ee));};}static{this.ɵcmp=Y({type:i,selectors:[["app-dashboard"]],features:[_e([$i,Et,Tt,Za,Qa])],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,Qu,10,12,"c-sidebar",3),o(1,"div",4),S(2,"app-default-header",5),o(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",H(5,ju,t.cloudPropertyElement)),a(),_("detectRouteTransitions",!0),a(),_("conversationalAI",t.cloudPropertyElement==null?null:t.cloudPropertyElement.conversationalAI));},dependencies:[Aa,wa,Di,vi,Il,Ma,Ra,Ii,Oa,vl,aa,Pi,Ci,fe,ue,Ye,_l,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 Vl=(()=>{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=Y({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&&(o(0,"p"),C(1,0),s(),o(2,"button",2),f("click",function(){return t.showOnSuccess();}),C(3,1),s());},encapsulation:2});}}return i;})();var A=(()=>{class i{constructor(e,n,t,r){this.router=e,this.sharedService=n,this.authService=t,this.userRoleService=r;}canActivate(e,n){return K(this,null,function*(){let t=yield this.userRoleService.getUserRole(),r=e.data?.roles;if(r&&t&&r.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(oe),q(Ce),q(Z),q(Se));};}static{this.ɵprov=ye({token:i,factory:i.ɵfac,providedIn:"root"});}}return i;})();var em=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],tm=[import("./chunk-FMEQJVIY.js"),import("./chunk-CNOMX3BA.js"),import("./chunk-NZYDVI7L.js"),import("./chunk-7OK2SAM2.js"),import("./chunk-5DQSBSV6.js"),import("./chunk-N25TBR2D.js")],im=["/edit"],nm=[import("./chunk-TVL373X6.js")],Hl=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Ul,children:[{path:"dashboard",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NKK5AUNS.js").then(i=>i.routes)},{path:"mspDashboard",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KLWDQDHB.js").then(i=>i.routes)},{path:"licenseOptimizer",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IMD7LQGB.js").then(i=>i.routes)},{path:"bluvault",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-76B7ZKOS.js").then(i=>i.routes)},{path:"backup/files",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-2E6X3OLE.js").then(i=>i.routes)},{path:"assetRestore",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-VNEJSNHP.js").then(i=>i.routes)},{path:"manageAssets",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KKFYIIAQ.js").then(i=>i.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MNDSUSHX.js").then(i=>i.routes)},{path:"manageAssets/:productType",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-KKFYIIAQ.js").then(i=>i.routes)},{path:"pms",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PJ6PSENB.js").then(i=>i.routes)},{path:"pms/schedules",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WJXJOJ6C.js").then(i=>i.routes)},{path:"pms/noBackupWindows",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BGHZFZG2.js").then(i=>i.routes)},{path:"pms/filters",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LKSBDP6M.js").then(i=>i.routes)},...em.map((i,c)=>({path:`pms/:productKey${i}`,canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>tm[c].then(e=>e.routes)})),...im.map((i,c)=>({path:`pms/spAdmin/:productKey${i}`,canActivate:[A],data:{roles:["superAdmin"]},loadChildren:()=>nm[c].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WMLMWSHX.js").then(i=>i.routes)},{path:"settings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-QH6V6GL6.js").then(i=>i.routes)},{path:"settings/agentManager",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2UNNJHUS.js").then(i=>i.routes)},{path:"settings/globalSettings",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2ZX65EJC.js").then(i=>i.routes)},{path:"settings/aadCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-DSYXXRQ5.js").then(i=>i.routes)},{path:"settings/ssoCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-G7UNBLG3.js").then(i=>i.routes)},{path:"azure",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-DSYXXRQ5.js").then(i=>i.routes)},{path:"settings/credentials/:type",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-PXE7EHLO.js").then(i=>i.routes)},{path:"adminConsentMultiTenant",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-P2Z2TT7E.js").then(i=>i.routes)},{path:"adminConsent",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-IR3XW7IL.js").then(i=>i.routes)},{path:"adminConsentBilling",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-KIBNQZSW.js").then(i=>i.routes)},{path:"adminConsentExchange",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-5BNJ7GDT.js").then(i=>i.routes)},{path:"oneDriveC2C",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-356IPSZH.js").then(i=>i.routes)},{path:"settings/adCredentials",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-Q3JDVYOP.js").then(i=>i.routes)},{path:"settings/cloudCredentials",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-GCW3RXTF.js").then(i=>i.routes)},{path:"googleOAuth",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GCW3RXTF.js").then(i=>i.routes)},{path:"settings/proxy",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-PAPITELD.js").then(i=>i.routes)},{path:"settings/metadataProperties",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XJIVIFQF.js").then(i=>i.routes)},{path:"settings/paracloudblukrypt",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-V7DXAFXM.js").then(i=>i.routes)},{path:"settings/dataMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-QHXL354S.js").then(i=>i.routes)},{path:"settings/c2cSettings",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-356IPSZH.js").then(i=>i.routes)},{path:"settings/smtp",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NSC2L36U.js").then(i=>i.routes)},{path:"settings/siem",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BF4OFS2J.js").then(i=>i.routes)},{path:"settings/m365Settings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-A6GFXPP3.js").then(i=>i.routes)},{path:"settings/m365Consent",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-6YN5V6ER.js").then(i=>i.routes)},{path:"settings/smbConsent",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-4YY46CUN.js").then(i=>i.routes)},{path:"settings/m365BackupStorage",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-KIBNQZSW.js").then(i=>i.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-IR3XW7IL.js").then(i=>i.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-6YN5V6ER.js").then(i=>i.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-5BNJ7GDT.js").then(i=>i.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-QPJKQ4JV.js").then(i=>i.routes)},{path:"settings/keyManager",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XEWSLGZN.js").then(i=>i.routes)},{path:"userMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-2AWMMT5H.js").then(i=>i.routes)},{path:"userMigration/importUsers",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-EOZJC5LW.js").then(i=>i.routes)},{path:"report/userMigration",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-VGD3JO4R.js").then(i=>i.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NDG6K3OH.js").then(i=>i.routes)},{path:"users",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2H7LI4NA.js").then(i=>i.routes)},{path:"users/create",canActivate:[A],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JGXIRE56.js").then(i=>i.routes)},{path:"users/edit",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-3PICFTDR.js").then(i=>i.routes)},{path:"users/profile",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-I4G26AGD.js").then(i=>i.routes)},{path:"users/bulkUserOperation",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-SZ43GXVT.js").then(i=>i.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-SZ43GXVT.js").then(i=>i.routes)},{path:"activityHistory",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-FOUX4MAU.js").then(i=>i.routes)},{path:"unusualActivityHistory",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZSS3CVOT.js").then(i=>i.routes)},{path:"endpointsDownload",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-L2JOITTU.js").then(i=>i.routes)},{path:"backupSummary",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-TMWFSD24.js").then(i=>i.routes)},{path:"support",canActivate:[A],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YUKHYPAU.js").then(i=>i.routes)},{path:"support/licenseKey",canActivate:[A],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7UWNW7SM.js").then(i=>i.routes)},{path:"downloads",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-Y2HYNY35.js").then(i=>i.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZQ3N3DH7.js").then(i=>i.routes)},{path:"report/backupOverview/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MQIDURV2.js").then(i=>i.routes)},{path:"report/backupHistory/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HX7B6L3L.js").then(i=>i.routes)},{path:"report/restoreHistory/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-GCLXGNY5.js").then(i=>i.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KVHKHDFS.js").then(i=>i.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UF44FTOK.js").then(i=>i.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FXDYCJJL.js").then(i=>i.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NAAGGQ5Z.js").then(i=>i.routes)},{path:"report/assetAssigned/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FZQRTTOV.js").then(i=>i.routes)},{path:"report/capacityManagement/:productType",canActivate:[A],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VPHU2ETY.js").then(i=>i.routes)},{path:"policyConfig",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-SJHG3ESC.js").then(i=>i.routes)},{path:"manageUnusualActivities",canActivate:[A],data:{roles:["admin"]},loadChildren:()=>import("./chunk-CT3SHPYX.js").then(i=>i.routes)},{path:"sync/files",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZDXQNC7H.js").then(i=>i.routes)},{path:"sync/miniclouds",canActivate:[A],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DJFFXAU5.js").then(i=>i.routes)},{path:"pages",loadChildren:()=>import("./chunk-K4RQZABB.js").then(i=>i.routes)},{path:"fileArchivedView",loadComponent:()=>import("./chunk-YBQ62ZGO.js").then(i=>i.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-RK5S6ZOD.js").then(i=>i.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-4EVAMEZR.js").then(i=>i.OperationFailedComponent),data:{title:"Operation Failed Page"}}]},{path:"toast",component:Vl,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-I65GYHI5.js").then(i=>i.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-LRDNKQ7N.js").then(i=>i.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-QX6Y3IV7.js").then(i=>i.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-DYCWFDQW.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-DYCWFDQW.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-DYCWFDQW.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-C65W4IRO.js").then(i=>i.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-DYCWFDQW.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-DYCWFDQW.js").then(i=>i.LoginComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-6EX7QKRO.js").then(i=>i.LogoutComponent),data:{title:"Logout Page"}},{path:"register",loadComponent:()=>import("./chunk-5QE3366L.js").then(i=>i.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[A],loadComponent:()=>import("./chunk-JQM3IG7S.js").then(i=>i.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[A],loadComponent:()=>import("./chunk-J2BYUANW.js").then(i=>i.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"Google Drive/policyView",canActivate:[A],loadComponent:()=>import("./chunk-BNV2U4EP.js").then(i=>i.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[A],loadComponent:()=>import("./chunk-PDR4GPFP.js").then(i=>i.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[A],loadComponent:()=>import("./chunk-YXEV2VSX.js").then(i=>i.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[A],loadComponent:()=>import("./chunk-SSO2QD5V.js").then(i=>i.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var rm="@",om=(()=>{class i{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Xe(vr);loadingSchedulerFn=Xe(sm,{optional:!0});_engine;constructor(e,n,t,r,d){this.doc=e,this.delegate=n,this.zone=t,this.animationType=r,this.moduleImpl=d;}ngOnDestroy(){this._engine?.flush();}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-P26M5X6P.js").then(t=>t),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(t=>{throw new gr(5300,!1);}).then(({ɵcreateEngine:t,ɵAnimationRendererFactory:r})=>{this._engine=t(this.animationType,this.doc);let d=new r(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 r=new tn(t);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let l=d.createRenderer(e,n);r.use(l),this.scheduler??=this.injector.get(Er,null,{optional:!0}),this.scheduler?.notify(11);}).catch(d=>{r.use(t);}),r;}begin(){this.delegate.begin?.();}end(){this.delegate.end?.();}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve();}static ɵfac=function(n){br();};static ɵprov=ye({token:i,factory:i.ɵfac});}return i;})(),tn=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(r=>r.listen(c,e,n,t)),this.delegate.listen(c,e,n,t);}shouldReplay(c){return this.replay!==null&&c.startsWith(rm);}},sm=new et("");function Qt(i="animations"){return si("NgAsyncAnimations"),fr([{provide:li,useFactory:(c,e,n)=>new om(c,e,n,i),deps:[pe,gi,we]},{provide:Ut,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}]);}var Yl={providers:[Ur(),zr(Hl,Wr({onSameUrlNavigation:"reload"}),jr({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),Xr(),qr()),Cr(Pa,ma),Si,cl(),Qt("noop"),qa({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Qt(),Be]};var $l={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:el,Add_Exclusion_Folder:tl,Add_Exception_Folder:il},{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:Xi,Add_Exclusion_Folder:Wi},{title:"OneDrive for Business",key:"ODB",key2:"ONEDRIVE",key3:"OneDrive",licenceKey:"onedrive_backup_enabled",exclusion_keys:[],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:[],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:Xi,Add_Exclusion_Folder:Wi},{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 am(i){return()=>i.loadConfig().toPromise().then(c=>{i.setConfig(c);});}Hr(al,{providers:[...Yl.providers,hi,{provide:Ar,useFactory:am,deps:[Be],multi:!0},{provide:kr,useClass:Vr,multi:!0},$i,$l,Qt()]}).catch(i=>console.error(i));export{am as loadConfig};/**i18n:baf94ddeebe8e238ad6726a2c32767605608f8ef2ffb012a899af1d72d1eba78*/