import{$ as Ar,$a as Uo,A as sr,Aa as so,B as lr,Ba as lo,C as cr,Ca as co,D as dr,Da as po,E as pr,Ea as uo,F as ur,Fa as mo,G as mr,Ga as ho,H as hr,Ha as go,I as gr,Ia as fo,J as fr,Ja as vo,K as vr,Ka as _o,L as _r,La as yo,M as yr,Ma as bo,N as br,Na as Co,O as Cr,Oa as So,P as Sr,Pa as wo,Q as wr,Qa as xo,R as xr,Ra as ko,S as kr,Sa as To,T as Tr,Ta as Io,U as Ir,Ua as Eo,V as Er,Va as Po,W as Pr,Wa as Mo,X as Mr,Xa as Do,Y as Dr,Ya as Oo,Z as Or,Za as Ro,_ as Rr,_a as Ao,a as Un,aa as Ur,ab as Fo,b as Fn,ba as Fr,bb as Bo,c as Bn,ca as Br,d as Nn,da as Nr,e as Vn,ea as Vr,f as Ln,fa as Lr,g as Gn,ga as Gr,h as zn,ha as zr,i as Hn,ia as Hr,j as jn,ja as jr,k as Wn,ka as Wr,l as qn,la as qr,m as Zn,ma as Zr,n as Yn,na as Yr,o as $n,oa as $r,p as Jn,pa as Jr,q as Kn,qa as Kr,r as Qn,ra as Qr,s as Xn,sa as Xr,t as er,ta as eo,u as tr,ua as to,v as ir,va as io,w as nr,wa as no,x as rr,xa as ro,y as or,ya as oo,z as ar,za as ao}from"./chunk-S555YZ5B.js";import{a as Ba}from"./chunk-6PVOOS7U.js";import{a as Va}from"./chunk-7FGHFEGA.js";import{a as Da,b as ut}from"./chunk-KQGOXDZJ.js";import{a as bi}from"./chunk-T2IQNRSN.js";import{a as gt}from"./chunk-23B7DIRQ.js";import{a as ft}from"./chunk-LDIQZDUY.js";import{k as Go,l as Mt,m as ri,o as zo,q as oi,s as Ho,x as jo}from"./chunk-6DM22NHU.js";import{a as Oi,b as Ri,c as Dt,d as Ot,e as La,f as Ga,g as za}from"./chunk-CJPLN2MR.js";import{a as Oa,b as mt,d as Ra,e as Aa,f as ht}from"./chunk-JF7QP3VI.js";import{a as yi}from"./chunk-NO54G66E.js";import{a as vt}from"./chunk-DLMZRMGT.js";import{a as Fa}from"./chunk-WJQGMYNS.js";import{a as Vo,b as we,c as Ua,d as Na}from"./chunk-4ZPFE5LZ.js";import{a as $t,c as Cn,d as J}from"./chunk-WRGPHU2N.js";import{a as Di,b as _i,i as Ne,j as Ma,l as pt}from"./chunk-PHOFQETE.js";import{b as $,c as le,d as Ve,g as me}from"./chunk-OSIMEBN6.js";import{b as fi,c as st,g as lt,h as Ca,i as Sa,j as ct,k as wa,p as xa,q as ka,r as Ta,u as vi,v as Ia,w as Ea,x as Pa,y as dt}from"./chunk-UMB4XTPE.js";import{$ as Wo,$a as di,Aa as ai,B as Kt,Ba as Zo,C as Qt,Ca as si,D as ue,E as Xt,Ea as Yo,F as kn,G as Tn,Ga as nt,H as ei,Ha as rt,J as tt,K as In,Ka as ot,L as En,La as $o,M as Pn,Ma as Jo,N as ti,Na as Ko,O as se,Oa as Qo,P as ii,Pa as Xo,Q as Mn,Qa as ea,R as Dn,Ra as ta,S as On,Sa as ia,T as Rn,U as An,Ua as li,V as ni,Va as na,W as No,X as Pi,Y as Q,Ya as ra,Z as Ce,Za as oa,_ as Lo,_a as ci,a as vn,ab as pi,b as oe,bb as ui,c as _n,cb as Se,ea as it,eb as aa,fb as sa,ga as Mi,gb as la,h as Ye,ha as qo,i as yn,j as bn,jb as ca,k as pe,kb as da,lb as pa,nb as ua,o as Jt,ob as mi,p as et,pb as hi,q as ae,qb as ma,rb as ha,sb as ga,tb as fa,u as Fe,ub as va,v as Sn,vb as at,w as wn,wb as _a,xb as ya,y as xn,yb as ba,z as Be,zb as gi}from"./chunk-CMTPQJ7E.js";import{$b as Ie,A as Zi,Ab as ie,Ac as H,B as K,Ba as fe,Ca as be,Cb as ve,D as Re,E as Vt,Eb as w,Ec as Y,F as Yi,Fc as d,Ga as X,Gc as f,Hc as M,I as ki,Ib as Ii,Ic as Ee,Jc as gn,K as $i,Kc as R,L as Ji,Lc as A,M as Lt,Mc as U,N as Ki,Na as sn,O as Qi,Oa as wt,Pb as je,Qb as u,Qc as re,Ra as Wt,Rb as Ae,Rc as B,S as Xi,Sb as ke,Sc as N,Tc as Ze,Ub as Ei,Vb as xt,Vc as v,Wc as _,X as St,Xb as We,Xc as Pe,Y as ge,Yc as Me,Z as en,Zb as Qe,Zc as Pt,_ as L,_b as Te,a as Hi,aa as tn,ac as a,bc as s,c as $e,ca as ce,cb as qt,cc as S,cd as Ue,da as Gt,db as He,dc as kt,eb as de,ec as Tt,f as Oe,fa as Je,fc as It,g as ji,gc as x,ha as G,ia as ze,ib as o,j as Nt,ja as nn,jb as ln,jd as fn,k as Wi,ka as zt,mb as Zt,nb as Ke,nc as Xe,ob as C,oc as dn,p as Ge,pa as Ht,pb as cn,pc as pn,qa as h,qc as b,ra as g,rc as m,sa as jt,sc as un,ta as Ti,tc as mn,u as Z,uc as ne,vc as qe,w as qi,wa as rn,wc as Et,xc as hn,ya as on,yb as V,yc as W,za as an,zb as Yt,zc as z}from"./chunk-AWE6TXVF.js";import{a as q,b as xe,i as j}from"./chunk-2AVGQ2MQ.js";var Ha=["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 ja=["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 Wa={cibCcAmex:Un,cibCcApplePay:Fn,cibCcMastercard:Bn,cibCcPaypal:Nn,cibCcStripe:Vn,cibCcVisa:Ln,cibFacebook:Gn,cibGoogle:zn,cibLinkedin:Hn,cibSkype:jn,cibTwitter:Wn,cifBr:qn,cifEs:Zn,cifFr:Yn,cifIn:$n,cifPl:Jn,cifUs:Kn,cilAccountLogout:Qn,cilAlignCenter:Xn,cilAlignLeft:er,cilAlignRight:tr,cilApplicationsSettings:ir,cilArrowBottom:nr,cilArrowRight:rr,cilArrowTop:ar,cilBasket:sr,cilBell:lr,cilBold:cr,cilBookmark:dr,cilCalculator:pr,cilCalendar:ur,cilChart:hr,cilChartPie:mr,cilCheck:fr,cilCheckAlt:gr,cilChevronLeft:vr,cilChevronRight:_r,cilCloud:br,cilCloudDownload:yr,cilCode:Cr,cilCommentSquare:Sr,cilContrast:wr,cilCreditCard:xr,cilCursor:kr,cilDescription:Tr,cilDollar:Er,cilDrop:Pr,cilEnvelopeClosed:Mr,cilEnvelopeOpen:Dr,cilFile:Rr,cilGrid:Ur,cilHome:Nr,cilInbox:Vr,cilIndentDecrease:Lr,cilIndentIncrease:Gr,cilItalic:zr,cilJustifyCenter:Hr,cilLanguage:jr,cilLayers:Wr,cilList:Zr,cilListNumbered:qr,cilLocationPin:Yr,cilLockLocked:$r,cilMagnifyingGlass:Jr,cilMap:Kr,cilMediaPlay:Xr,cilMediaRecord:eo,cilMenu:io,cilMoon:no,cilNotes:ro,cilOptions:oo,cilPaperclip:so,cilPaperPlane:ao,cilPen:lo,cilPencil:co,cilPeople:po,cilPrint:uo,cilPuzzle:mo,cilReportSlash:go,cilSave:fo,cilSettings:_o,cilShare:Co,cilShareAll:yo,cilShareBoxed:bo,cilSpeech:xo,cilSpeedometer:ko,cilSpreadsheet:To,cilStar:Io,cilSun:Eo,cilTags:Po,cilTask:Mo,cilTrash:Oo,cilUnderline:Ro,cilUser:Bo,cilUserFemale:Ao,cilUserFollow:Uo,cilUserUnfollow:Fo,logo:ja,signet:Ha,cilDevices:Ir,cilSitemap:wo,cilTransfer:Do,cilHistory:Br,cilHandshake:Fr,cilReload:ho,cilFullscreen:Ar,cilMediaPause:Qr,cilMediaStop:to,cilShieldAlt:So,cilArrowThickBottom:or,cilEqualizer:Or,cilSend:vo};var Za=(()=>{class t{constructor(e,n,i,r,p){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=r,this.TranslateService=p,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=q({},Wa)}ngOnInit(){return j(this,null,function*(){this.router.events.subscribe(e=>{e instanceof tt})})}updateTimeout(){let e=this.timeoutInSeconds*1e3;this.idleTimeoutService.setTimeoutDuration(e),alert(`Timeout updated to ${this.timeoutInSeconds} seconds.`)}static{this.\u0275fac=function(n){return new(n||t)(C(se),C(Tn),C(ni),C(Vo),C(Q))}}static{this.\u0275cmp=V({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,i){n&1&&S(0,"router-outlet")},dependencies:[ti],encapsulation:2})}}return t})();var Ds=(()=>{class t extends oi{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(G(oe),G(Mt),G(ri))};static \u0275prov=ce({token:t,factory:t.\u0275fac})}return t})();function Os(){return new zo}function Rs(t,l,e){return new jo(t,l,e)}var Ya=[{provide:ri,useFactory:Os},{provide:oi,useClass:Ds},{provide:Zt,useFactory:Rs,deps:[Xt,oi,be]}],Su=[{provide:Mt,useClass:Go},{provide:wt,useValue:"NoopAnimations"},...Ya],As=[{provide:Mt,useFactory:()=>new Ho},{provide:wt,useFactory:()=>"BrowserAnimations"},...Ya];function $a(){return Wt("NgEagerAnimations"),[...As]}var Us=()=>[];function Fs(t,l){if(t&1){let e=x();a(0,"div",4),b("click",function(){h(e);let i=m();return g(i.openChatbot())}),S(1,"input",5),a(2,"label",6),S(3,"span",7)(4,"span",8)(5,"span",9),s()()}}function Bs(t,l){if(t&1){let e=x();a(0,"app-modal",10)(1,"c-row")(2,"div",11)(3,"div",12)(4,"section",13)(5,"header",14)(6,"div",15),S(7,"i",16),d(8),v(9,"translate"),s(),a(10,"div",17)(11,"span")(12,"a",18),b("click",function(){h(e);let i=m();return g(i.startOverChat())}),d(13),v(14,"translate"),s()()()(),a(15,"main",19)(16,"div",20),S(17,"div",21),a(18,"div",22)(19,"div",23)(20,"div",24),d(21),v(22,"translate"),s(),a(23,"div",25),d(24),s()(),a(25,"div",26),d(26),v(27,"translate"),s()()()(),a(28,"c-card")(29,"c-card-header")(30,"label",27),d(31),v(32,"translate"),s()(),a(33,"c-card-body")(34,"form",28)(35,"div",29)(36,"input",30),v(37,"translate"),U("ngModelChange",function(i){h(e);let r=m();return A(r.query,i)||(r.query=i),g(i)}),s()(),a(38,"div",31)(39,"button",32),b("click",function(){h(e);let i=m();return g(i.getChatbotResults())}),d(40),v(41,"translate"),s()()()()()()()()()()}if(t&2){let e=m();u("showCloseIcon",!0)("closeIconAction",e.closeChatbot)("modalSize","modal-fullscreen")("modalWidth","90%")("footerButtons",B(30,Us)),o(8),M(" ",_(9,16,"Ask CrashPlan!"),""),o(5),f(_(14,18,"Start Over")),o(4),Ae("background-image","url("+e.neilLogo+")"),o(4),f(_(22,20,"CrashPlan")),o(3),f(e.todaysDate),o(2),f(_(27,22,"Hello ! Ask me anything about CrashPlan Software ")),o(5),f(_(32,24,"Query :")),o(5),R("ngModel",e.query),u("placeholder",_(37,26,"Ask a question here...")),o(4),f(_(41,28,"Send"))}}var Ka=(()=>{class t extends ia{constructor(e,n,i,r,p,c,y){super(),this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.sharedService=p,this.TranslateService=c,this.userRoleService=y,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],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.enableCopilot="no",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.router.events.subscribe(k=>{k instanceof tt&&this.getCloudProperties()}),this.init()}init(){return j(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.enableCopilot=i.cloudPropertyElement.conversationalAI?"yes":"no"})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var r=n+":"+i;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(this.TranslateService.instant("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,i){let r=this.neilLogo,p=this.get(".msger-chat");k("CrashPlan",r,"left",e,n);function c(I){var E="0"+I.getHours(),D="0"+I.getMinutes();E=E.slice(-2),D=D.slice(-2);var P=E+":"+D;return P}function y(I,E){return Math.floor(Math.random()*(E-I)+I)}function k(I,E,D,P,O){let F=c(new Date),te="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);P=P.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let ye="";O==""&&i==0?ye=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${E}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${I}</div>
                <div class="msg-info-time">${F}</div>
              </div>
              <div class="msg-text">${P}</div>
            </div>
          </div>`:ye=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${E}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${I}</div>
                <div class="msg-info-time">${F}</div>
              </div>
              <div class="msg-text">${P}</div>
              ${O&&O.length>0?`
              <p>
                <a href="javascript:void(0);" id="${te}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${te}-sources" class="sources-container" style="display: none;">
                ${O.map(he=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${he.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${he.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${he.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,p.insertAdjacentHTML("beforeend",ye),setTimeout(()=>{let he=document.getElementById(`${te}-toggle`),Bt=document.getElementById(`${te}-sources`);he&&Bt&&he.addEventListener("click",function(){let zi=Bt.style.display==="none";Bt.style.display=zi?"block":"none",he.innerText=zi?"Hide sources":"Show sources"})},0),p.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,i=this.get(".msger-chat"),r=atob(this.sharedService.getDataByKey("userName"));y(r,n,"right",e);function p(k){var I="0"+k.getHours(),E="0"+k.getMinutes();I=I.slice(-2),E=E.slice(-2);var D=I+":"+E;return D}function c(k,I){return Math.floor(Math.random()*(I-k)+k)}function y(k,I,E,D){var P=p(new Date);let O='<div class="msg '+E+'-msg"><div class="msg-img" style="background-image: url('+I+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+k+'</div><div class="msg-info-time">'+P+'</div></div><div class="msg-text">'+D+"</div></div></div>";i.insertAdjacentHTML("beforeend",O),i.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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break}})}static{this.\u0275fac=function(n){return new(n||t)(C($),C(se),C(J),C(we),C(le),C(Q),C(me))}}static{this.\u0275cmp=V({type:t,selectors:[["app-default-footer"]],features:[re([$,J]),ve],decls:5,vars:3,consts:[["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","autocomplete","off","autofocus","",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"col-lg-12",2,"margin","10px 0px 10px 0px"],["id","submitChat",1,"btn","btn-primary","pull-right",3,"click"]],template:function(n,i){n&1&&(w(0,Fs,6,0,"div",0),a(1,"div",1)(2,"a",2),d(3),s()(),w(4,Bs,42,31,"app-modal",3)),n&2&&(u("ngIf",i.enableCopilot=="yes"&&i.userType=="admin"),o(3),M("\xA9 CrashPlan ",i.currentYear," "),o(),u("ngIf",i.displayCreateStyle))},dependencies:[dt,wa,st,lt,Ca,ct,Sa,ue,ae,Se,pe,ut,pt,mt,ht,rt,nt,ot,yi,Ce],styles:['.fab-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:3rem;right:3rem}.fab-checkbox[_ngcontent-%COMP%]{display:none}.fab[_ngcontent-%COMP%]{position:absolute;bottom:-1rem;right:-1rem;width:4rem;height:4rem;border-radius:50% 50% 6px;background:#062d4d!important;box-shadow:0 5px 20px #062d4d!important;transition:all .3s ease;z-index:1;border:1px solid #062D4D!important}.fab[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:100%;left:0;top:0;border-radius:50%;background-color:#ffffff1a}.fab-checkbox[_ngcontent-%COMP%]:checked ~ .fab[_ngcontent-%COMP%]:before{width:90%;height:90%;left:5%;top:5%;background-color:#fff3}.fab[_ngcontent-%COMP%]:hover{background:#062d4d!important;box-shadow:0 5px 20px 5px #062d4d!important}.fab-dots[_ngcontent-%COMP%]{position:absolute;height:8px;width:8px;background-color:#fff;border-radius:50%;top:50%;transform:translate(0) translateY(-50%) rotate(0);opacity:1;animation:_ngcontent-%COMP%_blink 1s ease infinite;transition:all .3s ease}.fab-dots-1[_ngcontent-%COMP%]{left:15px;animation-delay:0s}.fab-dots-2[_ngcontent-%COMP%]{left:50%;transform:translate(-50%) translateY(-50%);animation-delay:.4s}.fab-dots-3[_ngcontent-%COMP%]{right:15px;animation-delay:.8s}.fab[_ngcontent-%COMP%]   .fab-dots-2[_ngcontent-%COMP%]{transform:translate(-50%) translateY(-50%) rotate(0)}@keyframes _ngcontent-%COMP%_blink{50%{opacity:.25}}.fab-action[_ngcontent-%COMP%]{position:absolute;background:#0f1941;width:3rem;height:3rem;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff!important;box-shadow:0 .1rem 1rem #18429ad1;transition:all 1s ease;opacity:0}.fab-action[_ngcontent-%COMP%]:hover{background-color:#f16100}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}']})}}return t})();function Ns(t,l){if(t&1){let e=x();a(0,"div",7)(1,"button",9),b("click",function(){h(e);let i=m();return g(i.navigateToSales())}),d(2,"Contact Sales"),s()()}}var Qa=(()=>{class t{constructor(e,n){this.sharedService=e,this.userRoleService=n,this.closeModalHandler=new fe,this.userType=""}ngOnInit(){return j(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.\u0275fac=function(n){return new(n||t)(C(le),C(me))}}static{this.\u0275cmp=V({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[re([Be,$,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,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row")(5,"h4",4),d(6,"Your Organization is not licensed to use the CrashPlan Endpoint Product"),s(),a(7,"p",5),d(8," Contact Sales for more information. "),s(),a(9,"div"),w(10,Ns,3,0,"div",6),a(11,"div",7)(12,"button",8),b("click",function(){return i.closeSelf()}),d(13,"Back to Dashboard"),s()()()()()()()()),n&2&&(o(10),u("ngIf",i.userType==="admin"))},dependencies:[ue,ae,pe,Se],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}a[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:#fff!important}"]})}}return t})();var Gs=t=>({totalCountGS:t}),zs=(t,l)=>({"col-lg-12":t,"col-lg-7":l}),Hs=()=>({"col-lg-5":!0}),js=t=>({display:t}),Ws=(t,l)=>({active:t,disabled:l}),qs=(t,l)=>({addedElementsCount:t,totalCountGS:l}),Zs=()=>["Google Drive","Gmail"];function Ys(t,l){if(t&1){let e=x();a(0,"a",23),b("click",function(){h(e);let i=m(2);return g(i.enableMultiSelect())}),S(1,"i",24),a(2,"span",25),d(3),v(4,"translate"),s()()}t&2&&(o(3),f(_(4,1,"Enable Multiselect")))}function $s(t,l){if(t&1){let e=x();a(0,"a",23),b("click",function(){h(e);let i=m(2);return g(i.removeAll())}),S(1,"i",26),a(2,"span",25),d(3),v(4,"translate"),s()()}t&2&&(o(3),f(_(4,1,"Disable Multiselect")))}function Js(t,l){if(t&1){let e=x();a(0,"button",27),b("click",function(){h(e);let i=m(2);return g(i.addToCartFinal())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Add Selected Items")))}function Ks(t,l){if(t&1){let e=x();a(0,"button",28),b("click",function(){h(e);let i=m(2);return g(i.onExportAsZipG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Export all items to Zip")))}function Qs(t,l){if(t&1){let e=x();a(0,"button",29),b("click",function(){h(e);let i=m(2);return g(i.onExportAsZipG())}),Xe(1,0),s()}if(t&2){let e=m(2);u("ngClass",Ze(1,Ws,e.addedElementsCount>0,e.addedElementsCount<=0))}}function Xs(t,l){if(t&1){let e=x();a(0,"th",30)(1,"input",31),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.isSelectAll,i)||(r.isSelectAll=i),g(i)}),b("change",function(){h(e);let i=m(2);return g(i.toggleSelectAll())}),s()()}if(t&2){let e=m(2);o(),R("ngModel",e.isSelectAll)}}function el(t,l){if(t&1){let e=x();a(0,"td")(1,"input",36),U("ngModelChange",function(i){h(e);let r=m().$implicit;return A(r.isChecked,i)||(r.isChecked=i),g(i)}),b("change",function(){h(e);let i=m(3);return g(i.itemSelect())}),s()()}if(t&2){let e=m().$implicit;o(),R("ngModel",e.isChecked)}}function tl(t,l){if(t&1){let e=x();a(0,"tr"),w(1,el,2,1,"td",1),a(2,"td")(3,"div")(4,"h4"),d(5),s()(),a(6,"p",32)(7,"b"),d(8,"Found in: "),s(),d(9),s(),a(10,"p"),S(11,"span",33),s()(),a(12,"td")(13,"button",34),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.onDownload(i))}),d(14),v(15,"translate"),s(),a(16,"button",35),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.onOpenLocation(i))}),d(17),v(18,"translate"),s()()()}if(t&2){let e=l.$implicit,n=m(2);ke("selected-rowMail",n.isSelected(e)),o(),u("ngIf",n.isMultiSelectEnabled),o(4),f(e.fileName),o(4),Ee("",e.deviceName," : ",e.filePath,""),o(2),u("innerHTML",n.renderHtml(e.content),He),o(3),f(_(15,9,"Download")),o(3),f(_(18,11,"Open File Location"))}}function il(t,l){if(t&1){let e=x();a(0,"th"),d(1),v(2,"translate"),a(3,"button",37),b("click",function(){h(e);let i=m(2);return g(i.removeAll())}),d(4),v(5,"translate"),s()()}if(t&2){let e=m(2);o(),M(" ",Pe(2,2,"addedElementsCountoutoftotalCountGSelected",Ze(7,qs,e.addedElementsCount,e.totalCountGS))," "),o(3),f(_(5,5,"Remove all"))}}function nl(t,l){if(t&1&&(a(0,"th"),d(1),v(2,"translate"),s()),t&2){let e=m(2);o(),Ee(" ",e.addedElementsCount," ",_(2,2,"selected"),"")}}function rl(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",38)(2,"span",39),d(3),s(),a(4,"a",40),b("click",function(){let i=h(e),r=i.$implicit,p=i.index,c=m(2);return g(c.removeItem(p,r.fileName,r.fileRevisionID,r.fileName))}),S(5,"i",41),s(),a(6,"p",42)(7,"b"),d(8),v(9,"translate"),s(),a(10,"span",43),d(11),s()()()()}if(t&2){let e=l.$implicit;o(3),f(e.fileName),o(5),f(_(9,4,"Found in:")),o(3),Ee("",e.deviceName," : ",e.filePath,"")}}function ol(t,l){if(t&1&&(a(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",6),w(4,Ys,5,3,"a",7)(5,$s,5,3,"a",7),a(6,"span")(7,"b"),d(8),v(9,"translate"),s()(),w(10,Js,3,3,"button",8)(11,Ks,3,3,"button",9)(12,Qs,2,4,"button",10),s(),a(13,"c-card-body",11)(14,"c-card",12)(15,"c-card-body")(16,"div",13)(17,"table",14)(18,"thead",15)(19,"tr"),w(20,Xs,2,1,"th",16),a(21,"th",17),d(22,"File Name"),s(),a(23,"th",18),d(24,"Actions"),s()()(),a(25,"tbody"),w(26,tl,19,13,"tr",19),s()()()()(),a(27,"c-card",20)(28,"c-card-body")(29,"div",13)(30,"table",21)(31,"thead")(32,"tr"),w(33,il,6,10,"th",1)(34,nl,3,4,"th",1),s()(),a(35,"tbody"),w(36,rl,12,6,"tr",22),s()()()()()()()()()),t&2){let e=m();o(4),u("ngIf",e.isMultiSelectEnabled),o(),u("ngIf",e.isMultiSelectEnabled),o(3),f(Pe(9,18,"{{ totalCountGS }} Search Results Found",N(21,Gs,e.totalCountGS))),o(2),u("ngIf",e.updateAddToCartButtonVisibility()),o(),u("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"&&e.productType!=="Gmail"&&e.productType!=="mail"),o(),u("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"),o(2),u("ngClass",Ze(23,zs,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),o(3),u("hover",!0)("responsive",!0),o(3),u("ngIf",e.isMultiSelectEnabled),o(6),u("ngForOf",e.foundFiles),o(),u("ngClass",B(26,Hs))("ngStyle",N(27,js,e.isMultiSelectEnabled?"block":"none")),o(3),u("hover",!0)("responsive",!0),o(3),u("ngIf",e.addedElementsCount>0),o(),u("ngIf",e.addedElementsCount==0),o(2),u("ngForOf",e.addedElementsUpdated)}}function al(t,l){t&1&&(a(0,"c-row",44)(1,"c-card",45)(2,"c-card-body")(3,"b"),d(4),v(5,"translate"),s()()()()),t&2&&(o(4),f(_(5,1,"There are no results!.")))}function sl(t,l){if(t&1){let e=x();a(0,"a",53),b("click",function(){h(e);let i=m(2);return g(i.onNavigate(i.first))}),S(1,"i",54),s()}}function ll(t,l){if(t&1){let e=x();a(0,"a",55),b("click",function(){h(e);let i=m(2);return g(i.onNavigate(i.previous))}),S(1,"i",56),s()}}function cl(t,l){if(t&1){let e=x();a(0,"a",57),b("click",function(){h(e);let i=m(2);return g(i.onNavigate(i.next))}),S(1,"i",58),s()}}function dl(t,l){if(t&1){let e=x();a(0,"a",59),b("click",function(){h(e);let i=m(2);return g(i.onNavigate(i.last))}),S(1,"i",60),s()}}function pl(t,l){if(t&1&&(a(0,"c-row",46)(1,"div",47)(2,"div",48),w(3,sl,2,0,"a",49)(4,ll,2,0,"a",50)(5,cl,2,0,"a",51)(6,dl,2,0,"a",52),s()()()),t&2){let e=m();o(3),u("ngIf",e.first),o(),u("ngIf",e.previous),o(),u("ngIf",e.next),o(),u("ngIf",e.last)}}function ul(t,l){if(t&1){let e=x();a(0,"button",73),b("click",function(){h(e);let i=m(2);return g(i.exportCompleteSearchAsZipTriggerG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Proceed")))}function ml(t,l){if(t&1){let e=x();a(0,"button",73),b("click",function(){h(e);let i=m(2);return g(i.exportSelectedAsZipG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Proceed")))}function hl(t,l){if(t&1){let e=x();a(0,"div",61)(1,"div",62)(2,"div",63)(3,"div",64)(4,"h4",65),d(5),v(6,"translate"),s()(),a(7,"div",66)(8,"c-row")(9,"div",67)(10,"label",68),d(11),v(12,"translate"),s(),a(13,"input",69),U("ngModelChange",function(i){h(e);let r=m();return A(r.zipFileNameG,i)||(r.zipFileNameG=i),g(i)}),s()()()(),a(14,"div",70)(15,"button",71),b("click",function(){h(e);let i=m();return g(i.closeZipPopupG())}),d(16),v(17,"translate"),s(),w(18,ul,3,3,"button",72)(19,ml,3,3,"button",72),s()()()()}if(t&2){let e=m();o(5),f(_(6,6,"Specify Filename")),o(6),f(_(12,8,"Specify Filename")),o(2),R("ngModel",e.zipFileNameG),o(3),f(_(17,10,"Close")),o(2),u("ngIf",e.exportCompleteSearchG),o(),u("ngIf",!e.exportCompleteSearchG)}}function gl(t,l){t&1&&(a(0,"th"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"Current item being processed")))}function fl(t,l){if(t&1&&(a(0,"span"),d(1),v(2,"slice"),s()),t&2){let e=m(3);o(),M("/ ",Me(2,1,e.progressG.subject,0,40),"")}}function vl(t,l){if(t&1&&(a(0,"td")(1,"span",79),d(2),v(3,"slice"),s(),w(4,fl,3,5,"span",1),s()),t&2){let e=m(2);o(),Et("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),o(),f(Me(3,5,e.progressG.currentFolderPath,0,20)),o(2),u("ngIf",e.progressG.subject)}}function _l(t,l){t&1&&(a(0,"td"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"-")))}function yl(t,l){if(t&1&&(a(0,"td"),d(1),a(2,"div",80)(3,"div",81),d(4),v(5,"number"),s()()()),t&2){let e=m(2);o(),Ee("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),o(),qe("title","",e.progressG.totalRestorePct,"%"),o(),Ae("width",e.progressG.totalRestorePct,"%"),o(),M(" ",Pe(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function bl(t,l){t&1&&(a(0,"td"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"0")))}function Cl(t,l){if(t&1){let e=x();a(0,"button",82),b("click",function(){h(e);let i=m(2);return g(i.cancelDownloadAsZipG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Cancel Restore")))}function Sl(t,l){if(t&1){let e=x();a(0,"div",74)(1,"div",75)(2,"div",63)(3,"div",64)(4,"h4",65),d(5),v(6,"translate"),s()(),a(7,"div",66)(8,"c-card")(9,"c-card-header",76),d(10),v(11,"translate"),s(),a(12,"c-card-body")(13,"c-row",44)(14,"table",77)(15,"thead")(16,"tr"),w(17,gl,3,3,"th",1),a(18,"th"),d(19),v(20,"translate"),s()()(),a(21,"tbody")(22,"tr"),w(23,vl,5,9,"td",1)(24,_l,3,3,"td",1)(25,yl,6,10,"td",1)(26,bl,3,3,"td",1),s()()()()()()(),a(27,"div",70)(28,"button",71),b("click",function(){h(e);let i=m();return g(i.closeDownloadZipPopupG())}),d(29,"Close"),s(),w(30,Cl,3,3,"button",78),s()()()()}if(t&2){let e=m();o(5),f(_(6,9,"Restore Progress")),o(5),f(_(11,11,"Currently Running Restore Statistics")),o(7),u("ngIf",e.productType!="Gmail"&&e.productType!="Google Drive"),o(2),f(_(20,13,"Overall Progress")),o(4),u("ngIf",e.progressG.currentFolderPath!=""&&e.productType!="Gmail"&&e.productType!="Google Drive"),o(),u("ngIf",e.progressG.currentFolderPath==""&&e.productType!="Gmail"&&e.productType!="Google Drive"),o(),u("ngIf",e.progressG.totalNoOfFilesForRestore!=""),o(),u("ngIf",e.progressG.totalNoOfFilesForRestore==""),o(4),u("ngIf",!B(15,Zs).includes(e.productType))}}function wl(t,l){if(t&1){let e=x();a(0,"div",61)(1,"div",62)(2,"div",63)(3,"div",64)(4,"h4",65),d(5),v(6,"translate"),s()(),a(7,"div",66)(8,"h4",65),d(9),v(10,"translate"),s()(),a(11,"div",70)(12,"button",71),b("click",function(){h(e);let i=m();return g(i.closeDownloadZipConfirmPopupG())}),d(13),v(14,"translate"),s(),a(15,"button",83),b("click",function(){h(e);let i=m();return g(i.cancelDownloadAsZipConfirmG())}),d(16),v(17,"translate"),s()()()()()}t&2&&(o(5),f(_(6,4,"Restore Cancel Confirmation")),o(4),f(_(10,6,"Are you sure you wish to cancel the restore?")),o(4),f(_(14,8,"Cancel")),o(3),f(_(17,10,"Ok")))}function xl(t,l){if(t&1){let e=x();a(0,"div",61)(1,"div",62)(2,"div",63)(3,"div",64)(4,"h4",65),d(5),v(6,"translate"),s()(),a(7,"div",66)(8,"h4",65),d(9),v(10,"translate"),s()(),a(11,"div",70)(12,"button",71),b("click",function(){h(e);let i=m();return g(i.closeDownloadZipRunBkpPopupG())}),d(13),v(14,"translate"),s(),a(15,"button",82),b("click",function(){h(e);let i=m();return g(i.cancelDownloadAsZipRunBkpG())}),d(16),v(17,"translate"),s()()()()()}t&2&&(o(5),f(_(6,4,"Confirmation")),o(4),f(_(10,6,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),o(4),f(_(14,8,"Cancel")),o(3),f(_(17,10,"Ok")))}var Xa=(()=>{class t{constructor(e,n,i,r,p,c,y,k,I){this.cdr=e,this.toastr=n,this.TranslateService=i,this.sharedService=r,this.sanitizer=p,this.apiService=c,this.assetManagementService=y,this.router=k,this.configService=I,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 fe,this.openFileLocation=new fe,this.navigatePage=new fe,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(qt.HTML,e)||"")}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundFiles.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(p=>!this.isBackupIdExists(p.fileRevisionID));if(this.addedElementsUpdated.length+n.length>500){this.toastr.error(this.TranslateService.instant("You can add a maximum of 500 items."),this.TranslateService.instant("Limit Exceeded")),this.clearSelection(),this.isSelectAll=!1;return}n.length>0?(this.addedElementsUpdated.push(...n),this.addedElements=this.addedElementsUpdated.map(p=>p.fileName),this.addedElementsCount=this.addedElementsUpdated.length):this.toastr.error(this.TranslateService.instant("Item(s) already added."),this.TranslateService.instant("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(i=>i.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,i,r){console.log("inside itemselect child component : "+i),console.log("addedElementsUpdated child component : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated=this.addedElementsUpdated.filter(p=>p.fileRevisionID!==i),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.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("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),i=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(p=>{console.log("res from initiateRestore : "+JSON.stringify(p)),console.log("res from initiateRestore : "+JSON.stringify(p.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!1,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),this.cdr.detectChanges()},p=>{switch(console.error("Error from initiateRestore: ",p),console.error("Error status: ",p.status),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("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.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("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.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadZipstyleG=!0,this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadZipstyleG=!0,this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("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(i=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadZipEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}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.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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.\u0275fac=function(n){return new(n||t)(C(Ue),C(we),C(Q),C(le),C(ei),C(J),C(ft),C(se),C(Ve))}}static{this.\u0275cmp=V({type:t,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:[re([Be,J,Na]),Ht],decls:7,vars:7,consts:()=>{let e;return e=$localize`:@@ExportselecteditemstoZip: Export selected items to Zip `,[e,[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,i){n&1&&w(0,ol,37,29,"c-row",1)(1,al,6,3,"c-row",2)(2,pl,7,4,"c-row",3)(3,hl,20,12,"div",4)(4,Sl,31,16,"div",5)(5,wl,18,12,"div",4)(6,xl,18,12,"div",4),n&2&&(u("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),u("ngIf",i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),u("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),u("ngIf",i.displayZipstyleG),o(),u("ngIf",i.displayDownloadZipstyleG),o(),u("ngIf",i.displayDownloadZipConfirmstyleG),o(),u("ngIf",i.displayDownloadZipRunBckConfirmstyleG))},dependencies:[Fe,dt,st,fi,lt,vi,ct,ue,Jt,et,ae,Qt,Kt,ai,rt,nt,ot,ui,Se,at,pe,ut,pt,mt,ht,Ce],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 t})();var Tl=["deviceDropdown"],Il=["deviceDropdownCS"],El=["contentFrame"],Pl=["userDeviceSearch"],Ml=["fileSearch"],Dl=["contentSearch"],Ol=["contentSearchMailInput"],Rl=["deviceDropdownR"],Al=["contentCalendarFrame"],Ul=["searchInput"],De=t=>({display:t}),Fl=t=>[t],Bl=t=>({totalCountGS:t}),Nl=()=>({"col-lg-5":!0}),Vl=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),Ll=()=>({"col-lg-3":!0}),Gl=(t,l)=>({active:t,disabled:l}),zl=t=>({"background-color":t}),Hl=t=>({currentMailSubject:t}),Ct=()=>["Google Drive","Gmail"],es=()=>["Gmail","Google Drive"],jl=t=>({selected:t});function Wl(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",20),b("click",function(){h(e);let i=m();return g(i.setActiveSearchTab("file",1))}),d(2),v(3,"translate"),s()()}if(t&2){m();let e=Y(14);o(),u("cTabContent",e)("tabPaneIdx",1),o(),f(_(3,3,"Search by file/folder names"))}}function ql(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",20),b("click",function(){h(e);let i=m();return g(i.setActiveSearchTab("content",2))}),d(2),v(3,"translate"),s()()}if(t&2){m();let e=Y(14);o(),u("cTabContent",e)("tabPaneIdx",2),o(),f(_(3,3,"Full text search"))}}function Zl(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=m();o(),M(" ",e.noUsersFoundText," ")}}function Yl(t,l){if(t&1){let e=x();a(0,"c-col",92)(1,"c-card",93)(2,"c-card-body",94),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.userProfile(i.userNameEncoded))}),a(3,"div",91)(4,"div",95),S(5,"img",96),s(),a(6,"div",97)(7,"p",98)(8,"b"),d(9),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),ne("title",e.userName),o(2),f((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function $l(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",90),d(2),s(),a(3,"c-card-body",91),Te(4,Yl,10,2,"c-col",92,Qe),s()()),t&2){let e=m();o(2),M("",e.foundUsers.length," User(s) found: "),o(2),Ie(e.foundUsers)}}function Jl(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=m();o(),M(" ",e.noUsersFoundText," ")}}function Kl(t,l){if(t&1){let e=x();a(0,"c-col",99)(1,"c-card",93)(2,"c-card-body",94),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.userProfile(i.userNameEncoded))}),a(3,"div",91)(4,"div",95),S(5,"img",100),s(),a(6,"div",97)(7,"p",98)(8,"b"),d(9),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),ne("title",e.userName),o(2),f((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Ql(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",90),d(2),s(),a(3,"c-card-body",91),Te(4,Kl,10,2,"c-col",99,Qe),s()()),t&2){let e=m();o(2),M("",e.foundSites.length," Site(s) found: "),o(2),Ie(e.foundSites)}}function Xl(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=m();o(),M(" ",e.noDevicesFoundText," ")}}function ec(t,l){if(t&1){let e=x();a(0,"c-col",99)(1,"c-card",93)(2,"c-card-body",94),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),a(3,"div",91)(4,"div",95),S(5,"img",101),s(),a(6,"div",97)(7,"p",98)(8,"b"),d(9),v(10,"translate"),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),ne("title",e.deviceName),o(2),gn("",(e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":"")," ",_(10,4,"of user"),' "',(e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""),'"')}}function tc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",90),d(2),s(),a(3,"c-card-body",91),Te(4,ec,11,6,"c-col",99,Qe),s()()),t&2){let e=m();o(2),M("",e.foundDevices.length," Device(s) found: "),o(2),Ie(e.foundDevices)}}function ic(t,l){t&1&&(a(0,"option",102),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"BluVault")))}function nc(t,l){t&1&&(a(0,"option",103),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"OneDriveforBusiness")))}function rc(t,l){t&1&&(a(0,"option",104),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"SharePoint Online")))}function oc(t,l){if(t&1&&(a(0,"option",34),d(1),s()),t&2){let e=m().$implicit;u("value",e.key),o(),f(e.title)}}function ac(t,l){if(t&1&&w(0,oc,2,2,"option",105),t&2){let e=l.$implicit,n=m();u("ngIf",n.productsLicensed.includes(e.key))}}function sc(t,l){if(t&1){let e=x();a(0,"div",106)(1,"label"),d(2),v(3,"translate"),s(),a(4,"select2",107),U("ngModelChange",function(i){h(e);let r=m();return A(r.selectedValue,i)||(r.selectedValue=i),g(i)}),b("search",function(i){h(e);let r=m();return g(r.onSearch(i))})("update",function(i){h(e);let r=m();return g(r.update(i))}),s()()}if(t&2){let e=m();o(2),f(_(3,6,"User Id")),o(2),u("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("disabled",e.userType==="user"),R("ngModel",e.selectedValue)}}function lc(t,l){if(t&1){let e=x();a(0,"div",106)(1,"label"),d(2),v(3,"translate"),s(),a(4,"select2",108),U("ngModelChange",function(i){h(e);let r=m();return A(r.selectedValueSite,i)||(r.selectedValueSite=i),g(i)}),b("search",function(i){h(e);let r=m();return g(r.onSearchSite(i))})("update",function(i){h(e);let r=m();return g(r.updateSite(i))}),s()()}if(t&2){let e=m();o(2),f(_(3,5,"Site")),o(2),u("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite),R("ngModel",e.selectedValueSite)}}function cc(t,l){if(t&1&&(a(0,"option",34),d(1),s()),t&2){let e=l.$implicit;u("value",e.deviceUUID),o(),M(" ",e.deviceName," ")}}function dc(t,l){t&1&&(a(0,"option"),d(1," User has no assets configured "),s())}function pc(t,l){if(t&1&&(a(0,"div",109)(1,"label"),d(2),v(3,"translate"),s(),a(4,"select",110,4),w(6,cc,2,2,"option",111)(7,dc,2,0,"option",21),s(),S(8,"i",112),s()),t&2){let e=m();o(2),f(_(3,3,"Asset Name")),o(4),u("ngForOf",e.devices),o(),u("ngIf",e.devices.length==0)}}function uc(t,l){t&1&&(a(0,"c-row")(1,"c-card",15)(2,"c-card-body")(3,"b"),d(4),v(5,"translate"),s()()()()),t&2&&(o(4),f(_(5,1,"There are no results!.")))}function mc(t,l){if(t&1){let e=x();a(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),s()(),a(5,"p",119)(6,"b"),d(7),v(8,"translate"),s(),d(9),s()(),a(10,"td")(11,"button",120),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeFiles))}),d(12),v(13,"translate"),s(),a(14,"button",121),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeFiles,i.backup))}),d(15),v(16,"translate"),s()()()}if(t&2){let e=l.$implicit;o(4),f(e.fileName),o(3),M("",_(8,5,"Found in"),": "),o(2),f(e.filePath),o(3),f(_(13,7," Download")),o(3),f(_(16,9," Open File Location"))}}function hc(t,l){if(t&1&&(a(0,"c-row",113)(1,"table",114)(2,"thead",115)(3,"tr")(4,"th",116),d(5,"File Name "),s(),a(6,"th",117),d(7),v(8,"translate"),s()()(),a(9,"tbody"),w(10,mc,17,11,"tr",118),s()()()),t&2){let e=m();o(),u("hover",!0)("responsive",!0),o(6),f(_(8,4,"Actions")),o(3),u("ngForOf",e.foundFiles)}}function gc(t,l){t&1&&(a(0,"option",122),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"Microsoft Exchange")))}function fc(t,l){t&1&&(a(0,"option",103),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"OneDrive for Business")))}function vc(t,l){t&1&&(a(0,"option",104),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"SharePoint Online")))}function _c(t,l){t&1&&(a(0,"option",123),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"Gmail")))}function yc(t,l){if(t&1&&(a(0,"option",34),d(1),s()),t&2){let e=m().$implicit;u("value",e.key),o(),f(e.title)}}function bc(t,l){if(t&1&&w(0,yc,2,2,"option",105),t&2){let e=l.$implicit,n=m();u("ngIf",n.checkFeatureLicensed(N(1,Fl,e.key)))}}function Cc(t,l){if(t&1){let e=x();a(0,"div",106)(1,"label"),d(2,"User Id"),s(),a(3,"select2",124),U("ngModelChange",function(i){h(e);let r=m();return A(r.selectedValueCS,i)||(r.selectedValueCS=i),g(i)}),b("search",function(i){h(e);let r=m();return g(r.onSearchContentSearch(i))})("update",function(i){h(e);let r=m();return g(r.updateContentSearch(i))}),s()()}if(t&2){let e=m();o(3),u("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),R("ngModel",e.selectedValueCS)}}function Sc(t,l){if(t&1){let e=x();a(0,"div",106)(1,"label"),d(2,"Site"),s(),a(3,"select2",125),U("ngModelChange",function(i){h(e);let r=m();return A(r.selectedValueSiteCS,i)||(r.selectedValueSiteCS=i),g(i)}),b("search",function(i){h(e);let r=m();return g(r.onSearchSiteContentSearch(i))})("update",function(i){h(e);let r=m();return g(r.updateSiteContentSearch(i))}),s()()}if(t&2){let e=m();o(3),u("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),R("ngModel",e.selectedValueSiteCS)}}function wc(t,l){if(t&1&&(a(0,"option",34),d(1),s()),t&2){let e=l.$implicit;u("value",e.deviceUUID),o(),M(" ",e.deviceName," ")}}function xc(t,l){t&1&&(a(0,"option"),d(1," User has no assets configured "),s())}function kc(t,l){if(t&1){let e=x();a(0,"div",109)(1,"label"),d(2,"Asset Name"),s(),a(3,"select",126,5),b("change",function(){h(e);let i=m();return g(i.onDeviceChangeCS())}),w(5,wc,2,2,"option",111)(6,xc,2,0,"option",21),s(),S(7,"i",112),s()}if(t&2){let e=m();o(5),u("ngForOf",e.devicesCS),o(),u("ngIf",e.devicesCS.length==0)}}function Tc(t,l){if(t&1){let e=x();a(0,"c-row",37)(1,"div",38)(2,"c-input-group")(3,"input",127,6),U("ngModelChange",function(i){h(e);let r=m();return A(r.contentSearchText,i)||(r.contentSearchText=i),g(i)}),b("keydown.enter",function(){h(e);let i=m();return g(i.searchForContent())}),s()()(),a(5,"div",40)(6,"button",41),b("click",function(){h(e);let i=m();return g(i.searchForContent())}),d(7,"Search"),s()()()}if(t&2){let e=m();o(3),R("ngModel",e.contentSearchText)}}function Ic(t,l){if(t&1){let e=x();a(0,"div",40)(1,"a",131),b("click",function(){h(e);let i=m(2);return g(i.searchForContent())}),d(2,"Search"),s()()}}function Ec(t,l){if(t&1){let e=x();a(0,"c-row",69)(1,"div",38)(2,"c-input-group",15)(3,"input",128,7),U("ngModelChange",function(i){h(e);let r=m();return A(r.contentSearchMail,i)||(r.contentSearchMail=i),g(i)}),b("keydown.enter",function(){h(e);let i=m();return g(i.searchForContent())}),s(),a(5,"button",41),b("click",function(){h(e);let i=m();return g(i.togglePanel())}),S(6,"i",129),s()()(),w(7,Ic,3,0,"div",130),s()}if(t&2){let e=m();o(3),R("ngModel",e.contentSearchMail),u("disabled",e.isExpanded),o(3),u("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down"),o(),u("ngIf",!e.isExpanded)}}function Pc(t,l){if(t&1){let e=x();a(0,"div",133)(1,"div",134)(2,"label",135),d(3,"From "),a(4,"a",136),S(5,"i",137),a(6,"span",138),d(7),v(8,"translate"),s()()(),a(9,"input",139),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.fromId,i)||(r.fromId=i),g(i)}),s()(),a(10,"div",134)(11,"label",140),d(12,"To "),a(13,"a",136),S(14,"i",137),a(15,"span",138),d(16,"Use comma to separate Email addresses"),s()()(),a(17,"input",141),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.toId,i)||(r.toId=i),g(i)}),s()(),a(18,"div",134)(19,"label",142),d(20,"CC "),a(21,"a",136),S(22,"i",137),a(23,"span",138),d(24,"Use comma to separate Email addresses"),s()()(),a(25,"input",143),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.ccId,i)||(r.ccId=i),g(i)}),s()(),a(26,"div",134)(27,"label",144),d(28,"BCC "),a(29,"a",136),S(30,"i",137),a(31,"span",138),d(32,"Use comma to separate Email addresses"),s()()(),a(33,"input",145),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.bccId,i)||(r.bccId=i),g(i)}),s()(),a(34,"div",134)(35,"label",146),d(36,"Subject "),a(37,"a",136),S(38,"i",137),a(39,"span",138),d(40),v(41,"translate"),s()()(),a(42,"input",147),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.subjectId,i)||(r.subjectId=i),g(i)}),s()(),a(43,"div",134)(44,"label",148),d(45),v(46,"translate"),s(),a(47,"input",149),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.bodyId,i)||(r.bodyId=i),g(i)}),s()(),a(48,"div",134)(49,"label",150),d(50),v(51,"translate"),s(),a(52,"input",151),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.keywordsId,i)||(r.keywordsId=i),g(i)}),s()(),a(53,"div",152)(54,"label",150),d(55),v(56,"translate"),s(),a(57,"input",153),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.myDateBefore,i)||(r.myDateBefore=i),g(i)}),s(),d(58," To "),a(59,"input",153),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.myDateAfter,i)||(r.myDateAfter=i),g(i)}),s()(),a(60,"div",69)(61,"a",154),b("click",function(){h(e);let i=m(2);return g(i.searchForContent())}),d(62,"Search"),s()()()}if(t&2){let e=m(2);o(7),f(_(8,16,"Use comma to separate Email addresses")),o(2),R("ngModel",e.fromId),o(8),R("ngModel",e.toId),o(8),R("ngModel",e.ccId),o(8),R("ngModel",e.bccId),o(7),f(_(41,18,"Use comma to separate multiple Subjects")),o(2),R("ngModel",e.subjectId),o(3),f(_(46,20,"Body")),o(2),R("ngModel",e.bodyId),o(3),f(_(51,22,"Keywords")),o(2),R("ngModel",e.keywordsId),o(3),f(_(56,24,"Date from")),o(2),R("ngModel",e.myDateBefore),u("bsConfig",e.bsConfigBefore),o(2),R("ngModel",e.myDateAfter),u("bsConfig",e.bsConfigAfter)}}function Mc(t,l){if(t&1&&(a(0,"c-row",69),w(1,Pc,63,26,"div",132),s()),t&2){let e=m();o(),u("ngIf",e.isExpanded)}}function Dc(t,l){t&1&&(a(0,"c-row",69)(1,"c-card",15)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),s()()()())}function Oc(t,l){if(t&1){let e=x();a(0,"a",171),b("click",function(){h(e);let i=m(2);return g(i.enableMultiSelect())}),S(1,"i",172),a(2,"span",138),d(3),v(4,"translate"),s()()}t&2&&(o(3),f(_(4,1,"Enable Multiselect")))}function Rc(t,l){if(t&1){let e=x();a(0,"a",173),b("click",function(){h(e);let i=m(2);return g(i.removeAll())}),S(1,"i",174),a(2,"span",138),d(3),v(4,"translate"),s()()}t&2&&(o(3),f(_(4,1,"Disable Multiselect")))}function Ac(t,l){if(t&1){let e=x();a(0,"a",175),b("click",function(){h(e);let i=m(2);return g(i.exportCompleteMailboxAsPstG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Export all items to PST")))}function Uc(t,l){if(t&1){let e=x();a(0,"a",176),b("click",function(){h(e);let i=m(2);return g(i.exportFolderAsPstModalG())}),Xe(1,11),s()}if(t&2){let e=m(2);u("ngClass",Ze(1,Gl,e.addedElementsCount>0,e.addedElementsCount<=0))}}function Fc(t,l){if(t&1){let e=x();a(0,"th",165)(1,"input",177),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.isSelectAll,i)||(r.isSelectAll=i),g(i)}),b("change",function(){h(e);let i=m(2);return g(i.toggleSelectAll())}),s()()}if(t&2){let e=m(2);o(),R("ngModel",e.isSelectAll)}}function Bc(t,l){if(t&1){let e=x();a(0,"button",178),b("click",function(){h(e);let i=m(2);return g(i.addToCartFinal())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Add Selected Items")))}function Nc(t,l){if(t&1){let e=x();a(0,"td")(1,"input",182),U("ngModelChange",function(i){h(e);let r=m().$implicit;return A(r.isChecked,i)||(r.isChecked=i),g(i)}),b("change",function(){h(e);let i=m(4);return g(i.itemSelect())}),s()()}if(t&2){let e=m().$implicit;o(),R("ngModel",e.isChecked)}}function Vc(t,l){if(t&1&&(a(0,"td",183)(1,"span",184),d(2),s()()),t&2){let e=m().$implicit;o(),u("ngStyle",N(2,zl,e.alphaColor)),o(),M(" ",e.showIcon," ")}}function Lc(t,l){t&1&&S(0,"i",198)}function Gc(t,l){if(t&1){let e=x();a(0,"a",199),b("click",function(){h(e);let i=m(3).$implicit,r=m(3);return g(r.downloadMail(i.userName,i.backupId,i.deviceUUID,r.productTypeContentSearch))}),S(1,"i",200),s()}}function zc(t,l){if(t&1){let e=x();a(0,"a",201),b("click",function(){h(e);let i=m(3).$implicit,r=m(3);return g(r.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),S(1,"i",202),s()}}function Hc(t,l){if(t&1&&(a(0,"p"),S(1,"span",203),s()),t&2){let e=m(3).$implicit,n=m(3);o(),u("innerHTML",n.renderHtml(e.displayContent),He)}}function jc(t,l){if(t&1&&(a(0,"a",188)(1,"span",189),d(2),s(),w(3,Lc,1,0,"i",190)(4,Gc,2,0,"a",191)(5,zc,2,0,"a",192),a(6,"p",193)(7,"span",194),d(8),s(),S(9,"span",195),s(),w(10,Hc,2,1,"p",21),a(11,"p",196)(12,"b"),d(13),v(14,"translate"),s(),a(15,"span",197),d(16),v(17,"translate"),s()()()),t&2){let e=m(2).$implicit,n=m(3);o(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),u("ngIf",e.hasAttachments),o(),u("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(),u("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(3),M(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),o(),u("innerHTML",n.renderHtml(e.sentDate),He),o(),u("ngIf",e.displayContent),o(3),M("",_(14,9,"Found in"),":"),o(3),f(_(17,11,"{{value.userName}} : {{value.filePath}}"))}}function Wc(t,l){t&1&&S(0,"i",206)}function qc(t,l){if(t&1&&(a(0,"p"),S(1,"span",203),s()),t&2){let e=m(3).$implicit,n=m(3);o(),u("innerHTML",n.renderHtml(e.displayContent),He)}}function Zc(t,l){if(t&1&&(a(0,"a",204)(1,"span",189),d(2),s(),w(3,Wc,1,0,"i",205),a(4,"p",193)(5,"span",194),d(6),s(),S(7,"span",195),s(),w(8,qc,2,1,"p",21),s()),t&2){let e=m(2).$implicit,n=m(3);o(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),u("ngIf",e.hasAttachments),o(3),M(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),o(),u("innerHTML",n.renderHtml(e.sentDate),He),o(),u("ngIf",e.displayContent)}}function Yc(t,l){if(t&1){let e=x();a(0,"td",185),b("click",function(){h(e);let i=m().$implicit,r=m(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"mail"))}),a(1,"div",69)(2,"div"),w(3,jc,18,13,"a",186)(4,Zc,9,5,"a",187),s()()()}if(t&2){let e=m().$implicit;je("data-name",e.name),o(3),u("ngIf",e.present=="true"),o(),u("ngIf",e.present=="false")}}function $c(t,l){if(t&1){let e=x();a(0,"td",185),b("click",function(){h(e);let i=m().$implicit,r=m(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"contacts"))}),a(1,"div",69)(2,"div")(3,"a",188)(4,"span",189),d(5),s()()()()()}if(t&2){let e=m().$implicit;je("data-name",e.name),o(5),M(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function Jc(t,l){if(t&1&&(a(0,"tr"),w(1,Nc,2,1,"td",21)(2,Vc,3,4,"td",180)(3,Yc,5,3,"td",181)(4,$c,6,2,"td",181),s()),t&2){let e=l.$implicit,n=m(3);ke("selected-rowMail",n.isSelected(e)),o(),u("ngIf",n.isMultiSelectEnabled),o(),u("ngIf",e.type=="File"),o(),u("ngIf",e.type==="File"&&e.filePath!=="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO"),o(),u("ngIf",e.type==="File"&&e.filePath==="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO")}}function Kc(t,l){if(t&1&&(a(0,"tbody"),w(1,Jc,5,6,"tr",179),s()),t&2){let e=m(2);o(),u("ngForOf",e.foundMailsCS)}}function Qc(t,l){t&1&&(a(0,"c-card-body",207)(1,"p"),d(2),v(3,"translate"),s()()),t&2&&(o(2),f(_(3,1,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.")))}function Xc(t,l){t&1&&(a(0,"c-card-body",207)(1,"p"),d(2),v(3,"translate"),s()()),t&2&&(o(2),f(_(3,1,"Item not available.")))}function ed(t,l){if(t&1&&(a(0,"div",219)(1,"b"),d(2),v(3,"translate"),s(),d(4),a(5,"span",220),d(6),v(7,"translate"),s()()),t&2){let e=m(3);o(2),f(_(3,3,"From :")),o(2),M(" ",e.currentMailFrom," "),o(2),f(_(7,5,e.currentMailSentDate))}}function td(t,l){if(t&1&&(a(0,"div",221)(1,"b"),d(2),v(3,"translate"),s(),d(4),s()),t&2){let e=m(3);o(2),f(_(3,2,"To :")),o(2),M(" ",e.currentMailTo,"")}}function id(t,l){if(t&1&&(a(0,"div",222)(1,"b"),d(2),v(3,"translate"),s(),d(4),s()),t&2){let e=m(3);o(2),f(_(3,2,"CC :")),o(2),M(" ",e.currentMailCc,"")}}function nd(t,l){if(t&1&&(a(0,"div",223)(1,"b"),d(2),v(3,"translate"),s(),d(4),s()),t&2){let e=m(3);o(2),f(_(3,2,"BCC :")),o(2),M(" ",e.currentMailBcc,"")}}function rd(t,l){if(t&1&&(a(0,"span",227),d(1),s()),t&2){let e=l.$implicit;o(),M(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ")}}function od(t,l){if(t&1&&(a(0,"div",224)(1,"div",225),w(2,rd,2,1,"span",226),d(3," \xA0 "),s()()),t&2){let e=m(3);o(2),u("ngForOf",e.currentMailAttachments)}}function ad(t,l){if(t&1&&(a(0,"c-card-body")(1,"div",208),S(2,"div",209),a(3,"div",210)(4,"div",211)(5,"h3"),d(6),v(7,"translate"),s()(),w(8,ed,8,7,"div",212)(9,td,5,4,"div",213)(10,id,5,4,"div",214)(11,nd,5,4,"div",215)(12,od,4,1,"div",216),S(13,"br"),a(14,"div",217),S(15,"iframe",218,8),s()()()()),t&2){let e=m(2);o(6),f(Pe(7,6,"SubjectcurrentMailSubject",N(9,Hl,e.currentMailSubject))),o(2),u("ngIf",e.currentMailFrom!=""),o(),u("ngIf",e.currentMailTo!=""),o(),u("ngIf",e.currentMailCc!=""),o(),u("ngIf",e.currentMailBcc!=""),o(),u("ngIf",e.currentMailAttachments.length>0)}}function sd(t,l){if(t&1&&(a(0,"a",254),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactEmail)}}function ld(t,l){if(t&1&&(a(0,"a",255),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactOfficeLocation)}}function cd(t,l){if(t&1&&(a(0,"a",256),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactCompanyName)}}function dd(t,l){if(t&1&&(a(0,"a",257),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactJobTitle)}}function pd(t,l){if(t&1&&(a(0,"a",258),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactDepartment)}}function ud(t,l){if(t&1&&(a(0,"a",259),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactMobile)}}function md(t,l){if(t&1&&(a(0,"a",260),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactHomePhones)}}function hd(t,l){if(t&1&&(a(0,"a",261),d(1," (...) "),s()),t&2){let e=m(3);ne("title",e.contactBusinessPhones)}}function gd(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"div",228)(2,"div",229)(3,"div",230),S(4,"c-avatar",231),s(),a(5,"div",232)(6,"div",233)(7,"span",234),d(8),s()()()(),a(9,"div",235),S(10,"hr"),a(11,"div",236)(12,"label",194),d(13,"Email: "),s(),S(14,"br"),a(15,"span",237),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullEmail=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullEmail=!1)}),d(16),s(),w(17,sd,2,1,"a",238),s(),a(18,"div",236)(19,"label",194),d(20,"Location: "),s(),S(21,"br"),a(22,"span",239),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullLocation=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullLocation=!1)}),d(23),s(),w(24,ld,2,1,"a",240),s(),a(25,"div",236)(26,"label",194),d(27,"Company: "),s(),S(28,"br"),a(29,"span",241),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullCompanyName=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullCompanyName=!1)}),d(30),s(),w(31,cd,2,1,"a",242),s(),a(32,"div",236)(33,"label",194),d(34,"Job title: "),s(),S(35,"br"),a(36,"span",243),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullJobTitle=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullJobTitle=!1)}),d(37),s(),w(38,dd,2,1,"a",244),s(),a(39,"div",236)(40,"label",194),d(41,"Department: "),s(),S(42,"br"),a(43,"span",245),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullDepartment=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullDepartment=!1)}),d(44),s(),w(45,pd,2,1,"a",246),s(),a(46,"div",236)(47,"label",194),d(48,"Business Address: "),s(),S(49,"br"),a(50,"span",234),d(51),s()(),a(52,"div",236)(53,"label",194),d(54,"Home Address: "),s(),S(55,"br"),a(56,"span",234),d(57),s()(),a(58,"div",236)(59,"label",194),d(60),v(61,"translate"),s(),S(62,"br"),a(63,"span",247),d(64),s()(),a(65,"div",236)(66,"label",194),d(67,"Mobile phone: "),s(),S(68,"br"),a(69,"span",248),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullMobile=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullMobile=!1)}),d(70),s(),w(71,ud,2,1,"a",249),s(),a(72,"div",236)(73,"label",194),d(74,"Home phone: "),s(),S(75,"br"),a(76,"span",250),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullHomePhone=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullHomePhone=!1)}),d(77),s(),w(78,md,2,1,"a",251),s(),a(79,"div",236)(80,"label",194),d(81,"Business phone: "),s(),S(82,"br"),a(83,"span",252),b("mouseenter",function(){h(e);let i=m(2);return g(i.showFullBusinessPhone=!0)})("mouseleave",function(){h(e);let i=m(2);return g(i.showFullBusinessPhone=!1)}),d(84),s(),w(85,hd,2,1,"a",253),s()()()()}if(t&2){let e=m(2);o(4),u("size","md"),o(3),u("title",e.fullCombinedName),o(),M(" ",e.truncatedCombinedName," "),o(7),u("title",e.contactEmail.length>20?e.contactEmail:""),o(),M(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),o(),u("ngIf",e.contactEmail.length>20),o(5),u("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),o(),M(" ",e.contactOfficeLocation.length>20?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),o(),u("ngIf",e.contactOfficeLocation.length>20),o(5),u("title",e.contactCompanyName.length>20?e.contactCompanyName:""),o(),M(" ",e.contactCompanyName.length>20?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),o(),u("ngIf",e.contactCompanyName.length>20),o(5),u("title",e.contactJobTitle.length>20?e.contactJobTitle:""),o(),M(" ",e.contactJobTitle.length>20?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),o(),u("ngIf",e.contactJobTitle.length>20),o(5),u("title",e.contactDepartment.length>20?e.contactDepartment:""),o(),M(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),o(),u("ngIf",e.contactDepartment.length>20),o(5),u("title",e.combinedBusinessAddress),o(),M(" ",e.truncatedBusinessAddress," "),o(5),u("title",e.combinedHomeAddress),o(),M(" ",e.truncatedHomeAddress," "),o(3),M("",_(61,33,"Birthday"),": "),o(4),f(e.contactBirthday),o(5),u("title",e.contactMobile.length>20?e.contactMobile:""),o(),M(" ",e.contactMobile.length>20?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),o(),u("ngIf",e.contactMobile.length>20),o(5),u("title",e.contactHomePhones.length>20?e.contactHomePhones:""),o(),M(" ",e.contactHomePhones.length>20?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),o(),u("ngIf",e.contactHomePhones.length>20),o(5),u("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),o(),M(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),o(),u("ngIf",e.contactBusinessPhones.length>20)}}function fd(t,l){if(t&1){let e=x();a(0,"th"),d(1),a(2,"a",262),b("click",function(){h(e);let i=m(2);return g(i.removeAll())}),d(3),v(4,"translate"),s()()}if(t&2){let e=m(2);o(),Ee("",e.addedElementsCount," out of ",e.totalCountGS," selected "),o(2),f(_(4,3,"Remove all"))}}function vd(t,l){t&1&&(a(0,"th"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"{{ addedElementsCount }} selected")))}function _d(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",263)(2,"span",264),d(3),s(),a(4,"a",265),b("click",function(){let i=h(e),r=i.$implicit,p=i.index,c=m(2);return g(c.removeItem(p,r.subject,r.backupId,r.subject))}),S(5,"i",266),s()()()}if(t&2){let e=l.$implicit;o(3),f(e.subject)}}function yd(t,l){if(t&1&&(a(0,"c-row",155)(1,"c-card-header",156),w(2,Oc,5,3,"a",157)(3,Rc,5,3,"a",158),a(4,"span")(5,"b"),d(6),v(7,"translate"),s()(),w(8,Ac,3,3,"a",159)(9,Uc,2,4,"a",160),s(),a(10,"c-card",161)(11,"c-card-body")(12,"div",162)(13,"table",163)(14,"thead",115)(15,"tr"),w(16,Fc,2,1,"th",164),a(17,"th",165),d(18," Results "),w(19,Bc,3,3,"button",166),s()()(),w(20,Kc,2,1,"tbody",21),s()()()(),a(21,"c-card",161),w(22,Qc,4,3,"c-card-body",167)(23,Xc,4,3,"c-card-body",167)(24,ad,17,11,"c-card-body",21)(25,gd,86,35,"c-card-body",21),s(),a(26,"c-card",168)(27,"c-card-body")(28,"table",169)(29,"colgroup"),S(30,"col",170),s(),a(31,"thead")(32,"tr"),w(33,fd,5,5,"th",21)(34,vd,3,3,"th",21),s()(),a(35,"tbody"),w(36,_d,6,1,"tr",118),s()()()()()),t&2){let e=m();o(2),u("ngIf",!e.isMultiSelectEnabled),o(),u("ngIf",e.isMultiSelectEnabled),o(3),f(Pe(7,22,"totalCountGSSearchResultsFound",N(25,Bl,e.totalCountGS))),o(2),u("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&(e.product==null||e.product.downloadsConfigurations==null||e.product.downloadsConfigurations.search==null?null:e.product.downloadsConfigurations.search.allResultsToPST)),o(),u("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),o(),u("ngClass",B(27,Nl)),o(3),u("hover",!0)("responsive",!0)("striped",!1),o(3),u("ngIf",e.isMultiSelectEnabled),o(3),u("ngIf",e.updateAddToCartButtonVisibility()),o(),u("ngIf",!e.noFilesFoundCS),o(),u("ngClass",Ze(28,Vl,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),o(),u("ngIf",!e.showMailPreview),o(),u("ngIf",e.showNotAvailable),o(),u("ngIf",e.showMailView&&e.showMailPreview),o(),u("ngIf",e.showContactsView),o(),u("ngClass",B(31,Ll))("ngStyle",N(32,De,e.isMultiSelectEnabled?"block":"none")),o(7),u("ngIf",e.addedElementsCount>0),o(),u("ngIf",e.addedElementsCount==0),o(2),u("ngForOf",e.addedElementsUpdated)}}function bd(t,l){if(t&1){let e=x();a(0,"a",273),b("click",function(){h(e);let i=m(2);return g(i.searchForContentNavigate(i.first))}),S(1,"i",274),s()}}function Cd(t,l){if(t&1){let e=x();a(0,"a",275),b("click",function(){h(e);let i=m(2);return g(i.searchForContentNavigate(i.previous))}),S(1,"i",276),s()}}function Sd(t,l){if(t&1){let e=x();a(0,"a",277),b("click",function(){h(e);let i=m(2);return g(i.searchForContentNavigate(i.next))}),S(1,"i",278),s()}}function wd(t,l){if(t&1){let e=x();a(0,"a",279),b("click",function(){h(e);let i=m(2);return g(i.searchForContentNavigate(i.last))}),S(1,"i",280),s()}}function xd(t,l){if(t&1&&(a(0,"c-row",24)(1,"div",267)(2,"div",268),w(3,bd,2,0,"a",269)(4,Cd,2,0,"a",270)(5,Sd,2,0,"a",271)(6,wd,2,0,"a",272),s()()()),t&2){let e=m();o(3),u("ngIf",e.first!=""),o(),u("ngIf",e.previous!=""),o(),u("ngIf",e.next!=""),o(),u("ngIf",e.last!="")}}function kd(t,l){t&1&&(a(0,"small"),d(1),v(2,"translate"),s()),t&2&&(o(),M(" ",_(2,1,"PST name is required.")," "))}function Td(t,l){t&1&&(a(0,"small"),d(1),v(2,"translate"),s()),t&2&&(o(),M(" ",_(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "))}function Id(t,l){t&1&&(a(0,"small"),d(1),v(2,"translate"),s()),t&2&&(o(),M(" ",_(2,1,"PST name must be at least 3 characters long.")," "))}function Ed(t,l){if(t&1&&(a(0,"div",281),w(1,kd,3,3,"small",21)(2,Td,3,3,"small",21)(3,Id,3,3,"small",21),s()),t&2){m();let e=Y(96);o(),u("ngIf",e.errors==null?null:e.errors.required),o(),u("ngIf",e.errors&&e.errors.pattern),o(),u("ngIf",e.errors&&e.errors.minlength)}}function Pd(t,l){if(t&1){let e=x();a(0,"button",282),b("click",function(){h(e);let i=m();return g(i.exportCompleteMailboxAsPstTriggerG())}),d(1),v(2,"translate"),s()}if(t&2){m();let e=Y(96);u("disabled",e.invalid),o(),f(_(2,2,"Proceed"))}}function Md(t,l){if(t&1){let e=x();a(0,"button",282),b("click",function(){h(e);let i=m();return g(i.exportSelectedAsPstG())}),d(1),v(2,"translate"),s()}if(t&2){m();let e=Y(96);u("disabled",e.invalid),o(),f(_(2,2,"Proceed"))}}function Dd(t,l){t&1&&(a(0,"th"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"Current item being processed")))}function Od(t,l){if(t&1&&(a(0,"span"),d(1),v(2,"slice"),s()),t&2){let e=m(2);o(),M("/ ",Me(2,1,e.progressG.subject,0,40),"")}}function Rd(t,l){if(t&1&&(a(0,"td")(1,"span",283),d(2),v(3,"slice"),s(),w(4,Od,3,5,"span",21),s()),t&2){let e=m();o(),Et("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),o(),f(Me(3,5,e.progressG.currentFolderPath,0,20)),o(2),u("ngIf",e.progressG.subject)}}function Ad(t,l){t&1&&(a(0,"td"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"-")))}function Ud(t,l){if(t&1&&(a(0,"td"),d(1),a(2,"div",284)(3,"div",285),d(4),v(5,"number"),s()()()),t&2){let e=m();o(),Ee("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),o(),qe("title","",e.progressG.totalRestorePct,"%"),o(),Ae("width",e.progressG.totalRestorePct,"%"),o(),M(" ",Pe(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Fd(t,l){t&1&&(a(0,"td"),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"0")))}function Bd(t,l){if(t&1){let e=x();a(0,"button",73),b("click",function(){h(e);let i=m();return g(i.cancelDownloadAsPstG())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Cancel Restore")))}function Nd(t,l){t&1&&(a(0,"div",306)(1,"ul",307)(2,"li",308)(3,"strong",309),d(4,"No Users found"),s(),S(5,"ul",310),s()()())}function Vd(t,l){if(t&1&&(a(0,"option",34),d(1),s()),t&2){let e=l.$implicit;u("value",e.deviceUUID),o(),M(" ",e.deviceName," ")}}function Ld(t,l){if(t&1){let e=x();a(0,"div",292)(1,"span",38),d(2),v(3,"translate"),s(),a(4,"div",293)(5,"c-form-check",294)(6,"input",311),U("ngModelChange",function(i){h(e);let r=m(2);return A(r.suspendBackupR,i)||(r.suspendBackupR=i),g(i)}),s()()()()}if(t&2){let e=m(2);o(2),f(_(3,3,"Disallow new backups during this restore")),o(3),u("switch",!0),o(),R("ngModel",e.suspendBackupR)}}function Gd(t,l){if(t&1){let e=x();a(0,"c-card"),S(1,"c-card-header",68),a(2,"c-card-body")(3,"c-row")(4,"span"),d(5,"Source Path - "),a(6,"span"),d(7),s()()(),a(8,"c-row",69)(9,"p"),d(10),v(11,"translate"),s(),a(12,"div",134)(13,"label"),d(14,"User Id"),s(),a(15,"select2",286),U("ngModelChange",function(i){h(e);let r=m();return A(r.selectedValueR,i)||(r.selectedValueR=i),g(i)}),b("search",function(i){h(e);let r=m();return g(r.onSearchR(i))})("update",function(i){h(e);let r=m();return g(r.updateR(i))}),s(),w(16,Nd,6,0,"div",287),s(),a(17,"div",134)(18,"label"),d(19,"Asset Name"),s(),a(20,"select",126,9),b("change",function(){h(e);let i=Y(21),r=m();return g(r.onDeviceChangeR(i.value))}),w(22,Vd,2,2,"option",111),s()()(),a(23,"c-row")(24,"div",58)(25,"label",288),d(26),v(27,"translate"),s(),a(28,"c-input-group",15)(29,"input",289),U("ngModelChange",function(i){h(e);let r=m();return A(r.destinationPathR,i)||(r.destinationPathR=i),g(i)}),s(),a(30,"button",290),b("click",function(){h(e);let i=Y(21),r=m();return g(r.browseR(i.value))}),d(31),v(32,"translate"),s()()()(),a(33,"c-row",69)(34,"h3"),d(35),v(36,"translate"),s(),a(37,"div",80),w(38,Ld,7,5,"div",291),a(39,"div",292)(40,"span",38),d(41),v(42,"translate"),s(),a(43,"div",293)(44,"c-form-check",294)(45,"input",295),U("ngModelChange",function(i){h(e);let r=m();return A(r.inplaceRestoreR,i)||(r.inplaceRestoreR=i),g(i)}),s()()()(),a(46,"div",292)(47,"span",38),d(48),v(49,"translate"),s(),a(50,"div",293)(51,"c-form-check",294)(52,"input",296),U("ngModelChange",function(i){h(e);let r=m();return A(r.restoreDeletedFilesByRestoreR,i)||(r.restoreDeletedFilesByRestoreR=i),g(i)}),s()()()()(),a(53,"div",297)(54,"div",298)(55,"span",299),d(56,"Restore Data As Of"),s(),a(57,"div",300)(58,"c-form-check",294)(59,"input",301),U("ngModelChange",function(i){h(e);let r=m();return A(r.dateBeforeR,i)||(r.dateBeforeR=i),g(i)}),b("change",function(){h(e);let i=m();return g(i.toggleDateBeforeR())}),s()()()(),a(60,"div",302)(61,"div",303)(62,"input",304),U("ngModelChange",function(i){h(e);let r=m();return A(r.myDateBeforeR,i)||(r.myDateBeforeR=i),g(i)}),s(),a(63,"timepicker",305),U("ngModelChange",function(i){h(e);let r=m();return A(r.myTimeBeforeR,i)||(r.myTimeBeforeR=i),g(i)}),s()()()()()()()}if(t&2){let e=m();o(7),f(e.currentFilePathR),o(3),f(_(11,30,"Select a destination asset:")),o(5),u("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),R("ngModel",e.selectedValueR),o(),u("ngIf",e.deviceUsersListR.length===0),o(6),u("ngForOf",e.devicesR),o(4),f(_(27,32,"Select a Destination Path")),o(3),R("ngModel",e.destinationPathR),u("readonly",!0),o(2),f(_(32,34,"Browse")),o(4),f(_(36,36,"Restore Options")),o(3),u("ngIf",!B(42,Ct).includes(e.productTypeContentSearch)),o(3),f(_(42,38,"In place Restore")),o(3),u("switch",!0),o(),R("ngModel",e.inplaceRestoreR),o(3),f(_(49,40,"Restore Deleted Mails")),o(3),u("switch",!0),o(),R("ngModel",e.restoreDeletedFilesByRestoreR),o(6),u("switch",!0),o(),R("ngModel",e.dateBeforeR),o(3),R("ngModel",e.myDateBeforeR),u("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),o(),R("ngModel",e.myTimeBeforeR),u("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function zd(t,l){if(t&1&&(a(0,"c-row")(1,"span"),d(2),v(3,"translate"),a(4,"span"),d(5),s()()()),t&2){let e=m(2);o(2),M("",_(3,2,"Source Path")," - "),o(3),f(e.currentFilePathR)}}function Hd(t,l){t&1&&(a(0,"th"),d(1,"Current item being processed"),s())}function jd(t,l){t&1&&(a(0,"th"),d(1,"Source Path "),s())}function Wd(t,l){if(t&1&&(a(0,"span"),Xe(1,12),v(2,"slice"),s()),t&2){let e=m(3);o(2),dn(Me(2,1,e.progressR.subject,0,40)),pn(1)}}function qd(t,l){if(t&1&&(a(0,"td")(1,"span",283),d(2),v(3,"slice"),s(),w(4,Wd,3,5,"span",21),s()),t&2){let e=m(2);o(),Et("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),o(),f(Me(3,5,e.progressR.currentFolderPath,0,20)),o(2),u("ngIf",e.progressR.subject)}}function Zd(t,l){if(t&1&&(a(0,"td")(1,"span",312),d(2),v(3,"slice"),s()()),t&2){let e=m(2);o(),ne("title",e.progressR.folderName),o(),f(Me(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function Yd(t,l){t&1&&(a(0,"td"),d(1,"-"),s())}function $d(t,l){if(t&1&&(a(0,"td"),d(1),a(2,"div",313)(3,"div",285),d(4),v(5,"number"),s()()()),t&2){let e=m(3);o(),Ee("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore," "),o(),qe("title","",e.progressR.totalRestorePct,"%"),o(),Ae("width",e.progressR.totalRestorePct,"%"),o(),M(" ",Pe(5,7,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function Jd(t,l){if(t&1&&w(0,$d,6,10,"td",21),t&2){let e=m(2);u("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function Kd(t,l){t&1&&(a(0,"td"),S(1,"div",314),s())}function Qd(t,l){t&1&&(a(0,"td"),d(1,"0"),s())}function Xd(t,l){if(t&1&&(a(0,"c-card"),S(1,"c-card-header",68),a(2,"c-card-body"),w(3,zd,6,4,"c-row",21),a(4,"c-row",69)(5,"h3"),d(6),v(7,"translate"),s(),a(8,"table",70)(9,"thead")(10,"tr"),w(11,Hd,2,0,"th")(12,jd,2,0,"th"),a(13,"th"),d(14,"Overall Progress"),s()()(),a(15,"tbody")(16,"tr"),w(17,qd,5,9,"td",21)(18,Zd,4,6,"td",21)(19,Yd,2,0,"td",21)(20,Jd,1,1,"td")(21,Kd,2,0,"td")(22,Qd,2,0,"td",21),s()()()()()()),t&2){let e=m();o(3),u("ngIf",!B(10,es).includes(e.productTypeContentSearch)),o(3),f(_(7,8,"Currently Running Restore Statistics")),o(5),We(B(11,es).includes(e.productTypeContentSearch)?12:11),o(6),u("ngIf",!B(12,Ct).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),o(),u("ngIf",B(13,Ct).includes(e.productTypeContentSearch)),o(),u("ngIf",!B(14,Ct).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),o(),We(!B(15,Ct).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?20:21),o(2),u("ngIf",!B(16,Ct).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function ep(t,l){if(t&1){let e=x();a(0,"button",315),b("click",function(){h(e);let i=m();return g(i.initiateRestoreR())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Initiate Restore")))}function tp(t,l){if(t&1){let e=x();a(0,"button",316),b("click",function(){h(e);let i=m();return g(i.cancelRunningRestoreR())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Cancel Restore")))}function ip(t,l){if(t&1){let e=x();a(0,"button",317),b("click",function(){h(e);let i=m();return g(i.closeRestorePopupR())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Close")))}function np(t,l){if(t&1){let e=x();a(0,"button",318),b("click",function(){h(e);let i=m();return g(i.closeRestorePopupR())}),d(1),v(2,"translate"),s()}t&2&&(o(),f(_(2,1,"Close")))}function rp(t,l){t&1&&(a(0,"span"),d(1,"My Drive/"),s())}function op(t,l){t&1&&(a(0,"span"),d(1,"/"),s())}function ap(t,l){if(t&1&&(a(0,"span"),d(1),s()),t&2){let e=m();o(),f(e.browsePathR)}}function sp(t,l){if(t&1){let e=x();a(0,"button",319),b("click",function(){h(e);let i=m();return g(i.backBrowseR())}),S(1,"i",320),d(2),v(3,"translate"),s()}t&2&&(o(2),M(" ",_(3,1,"Back"),""))}function lp(t,l){t&1&&(a(0,"tr")(1,"td",321)(2,"div",322)(3,"span",323),d(4),v(5,"translate"),s()()()()),t&2&&(o(4),f(_(5,1,"Loading...")))}function cp(t,l){if(t&1){let e=x();a(0,"tr",324),b("click",function(){let i=h(e).$implicit,r=m();return g(r.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(){let i=h(e).$implicit,r=m();return g(r.onDoubleClickR(i.folderName||i,i.folderId))}),a(1,"td")(2,"span",234),d(3),s()()()}if(t&2){let e=l.$implicit,n=m();u("ngClass",N(3,jl,n.selectedBrowseItemR===(e.folderName||e))),o(2),ne("title",e.folderName||e),o(),M(" ",e.folderName||e," ")}}var is=(()=>{class t{constructor(e,n,i,r,p,c,y,k,I,E,D,P,O,F,te){this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.http=p,this.sharedService=c,this.renderer=y,this.cdr=k,this.sanitizer=I,this.configService=E,this.licenseCheckService=D,this.TranslateService=P,this.userRoleService=O,this.userManagementService=F,this.assetManagementService=te,this.PRODUCTS_CONFIG=Ba,this.userAssetSearchText="",this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.product=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!1,this.showCalendarView=!1,this.currentMailSubject="",this.currentMailFrom="",this.currentMailSentDate="",this.currentMailTo="",this.currentMailCc="",this.currentMailBcc="",this.currentMailAttachments=[],this.currentMailBody="",this.currentFileName="",this.currentMailPath="",this.currentMailBackupId="",this.currentMailUser="",this.isSelectAll=!1,this.isMultiSelectEnabled=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.selectItems=[],this.totalCountGS="",this.previous="",this.next="",this.last="",this.first="",this.activeTabIndex=1,this.pstFileNameG="",this.zipFileNameG="",this.displayPststyleG="none",this.displayZipstyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.exportCompleteSearchG=!1,this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayRestoreStyleR="none",this.destinationPathR="",this.value18R="",this.overlayR=!1,this.selectedValueR=null,this.deviceUsersListR=[],this.devicesR=[],this.inplaceRestoreR=!1,this.suspendBackupR=!1,this.restoreDeletedFilesByRestoreR=!1,this.restoreDataBeforeR="",this.dateBeforeR=!1,this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date,this.selectedDeviceUUIDR="",this.browsePathR="",this.browseItemsR=[],this.displayBrowseStyleR="none",this.newFolderR="",this.selectedBrowseItemR=null,this.combinedBrowseValueR="",this.loadingR=!1,this.gotResultForRestoreR=!1,this.displayRestoreSizeStyleR="none",this.batchIdR="",this.showRestoreSettingsR=!0,this.progressR=[],this.displayDeleteRestoreStyleR="none",this.restoreDataBefore="",this.currentFilePathR="",this.currentFileBackupIdR="",this.restoreAllVersionsR=!1,this.restoreLinksR=!1,this.contactName="",this.contactTitle="",this.contactFirstName="",this.contactMiddleName="",this.contactLastName="",this.contactSuffix="",this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-",this.combinedBusinessAddress="-",this.truncatedBusinessAddress="-",this.combinedHomeAddress="-",this.truncatedHomeAddress="-",this.fullCombinedName="-",this.truncatedCombinedName="-",this.showFullEmail=!1,this.showFullLocation=!1,this.showFullCompanyName=!1,this.showFullJobTitle=!1,this.showFullDepartment=!1,this.showFullMobile=!1,this.showFullHomePhone=!1,this.showFullBusinessPhone=!1,this.taskSubject="NA",this.taskStartDate="NA",this.taskDueDate="NA",this.taskReminderTime="NA",this.currentCalendarSubject="",this.currentCalendarFrom="",this.currentCalendarSentDate="",this.currentCalendarTo="",this.currentCalendarCc="",this.currentCalendarBcc="",this.currentCalendarAttachments=[],this.currentCalendarBody="",this.productsLicensed=[],this.featureLicensedFlags=[],this.showNotAvailable=!1,this.searched=!1,this.showMinCharMessage=!0,this.deviceId="",this.inclusionLicenses=[],this.exclusionLicenses=[],this.hasBackupLicense=!1,this.hasContentSearchLicense=!1,this.maxItemsAllowedInPstExportWhileSearch=0,this.close=new fe,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let ye=new Date,he=new Date;he.setFullYear(ye.getFullYear()-1),new Date().setDate(ye.getDate()-14),this.bsConfigBefore={minDate:he,maxDate:ye,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:he,maxDate:ye,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 j(this,null,function*(){if(this.userType=yield this.userRoleService.getUserRole(),this.userType==="user"){let e=this.sharedService.getDataByKey("userName"),n=atob(e),i={value:n};this.deviceUsersList=[{label:"",options:[{value:n,label:n}]}],this.selectedValue=n,this.update(i),this.deviceUsersListCS=[{label:"",options:[{value:n,label:n}]}],this.selectedValueCS=n,this.updateContentSearch(i),this.deviceUsersListR=[{label:"",options:[{value:n,label:n}]}],this.cdr.detectChanges()}else this.setActiveSearchTab("default",0),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),i=JSON.parse(n);this.maxItemsAllowedInPstExportWhileSearch=i.cloudPropertyElement.maxItemsAllowedInPstExportWhileSearch})}initializeEnvDetails(){return new Promise(e=>{let n=this.licenseCheckService.getEnvDetails();if(!n||Object.keys(n).length===0)this.licenseCheckService.checkLicense().subscribe({next:i=>{this.handleLicenseResponse(i.headers),e()},error:i=>{console.error("License check failed:",i),this.handleLicenseResponse(i.headers),e()}});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 i=["exchange","gdrive","gmail","onedrive","sharepoint","sync"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(r=>i.some(p=>r===`contentsearchenabledfor${p}`)),this.applyEnvDetails(n),e()}})}handleLicenseResponse(e){let n={};e?.keys().forEach(i=>{n[i.toLowerCase()]=e.get(i)||""}),this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n)}applyEnvDetails(e){this.PRODUCTS_CONFIG.forEach(n=>{e[n.licenceFlag]=="true"&&this.productsLicensed.push(n.key)}),this.PRODUCTS_CONFIG.forEach(n=>{n.licencedFeaturesFlags.forEach(i=>{e[i]=="true"&&this.featureLicensedFlags.push(n.key)})}),this.inclusionLicenses.includes("backup_enabled")?this.productTypeFiles="backup":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeFiles="oneDrive":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeFiles="Gmail":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeFiles="SHAREPOINT":this.productTypeFiles="",this.inclusionLicenses.includes("exchange_backup_enabled")?this.productTypeContentSearch="mail":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeContentSearch="Gmail":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeContentSearch="oneDrive":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeContentSearch="SHAREPOINT":this.productTypeContentSearch=""}checkFeatureLicensed(e){return this.featureLicensedFlags.find(n=>e.includes(n))}getSignedURLFromId(){this.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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalId=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("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 j(this,null,function*(){this.activeTabIndex=n;let i;switch(e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break;case"file":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(r=>r.key===this.productTypeFiles||r.key2===this.productTypeFiles||r.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.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(qt.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),i=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):Ge(null);Zi([e,n,i]).subscribe(([r,p,c])=>{console.log("getUsersSearch response body:",JSON.stringify(r.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(r.headers)),console.log("getDeviceSearch response body:",JSON.stringify(p.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(p.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.body.data.users.map(y=>xe(q({},y),{userNameEncoded:btoa(y.userName)}))):(this.foundUsers=[],this.noUsersFoundText=this.TranslateService.instant("No Users found.")),p.body.data&&p.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=p.body.data.devices.map(y=>xe(q({},y),{userNameEncoded:btoa(y.userName),deviceNameEncoded:btoa(y.deviceName)}))):(this.noDevicesFoundText=this.TranslateService.instant("No Devices found"),this.foundDevices=[]),c&&(console.log("getSitesSearch response body:",JSON.stringify(c.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(c.headers)),c.body.data&&c.body.data.users?(this.noSitesFoundText="",this.foundSites=c.body.data.users.map(y=>xe(q({},y),{userNameEncoded:btoa(y.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let i=document.querySelector(".header.header-sticky");i&&this.renderer.setStyle(i,"z-index","1000");let r=document.querySelector(".overlay");r&&this.renderer.setStyle(r,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersList=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersList=[]},i=>{})}update(e){this.searched=!0,console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":this.deviceType=="mail"?r="OUTLOOK":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNow(e){this.searched=!0,this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){this.deviceType=this.productTypeContentSearch;let i="";this.deviceType=="ODB"?i="ONEDRIVE":this.deviceType=="backup"?i="BACKUP":this.deviceType=="mail"?i="OUTLOOK":i=this.deviceType,this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0]?.deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){return j(this,null,function*(){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let p={value:this.selectedValue};this.update(p)}this.devices=[];let r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.find(p=>p.key===i||p.key2===i||p.key3===i),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.TranslateService.instant("Please select a User Id."));return}if(this.productTypeFiles=="SHAREPOINT"){if(this.selectedValueSite==""||this.selectedValueSite==null){this.toastr.error(this.TranslateService.instant("Please select a SharePoint Site."));return}this.selectedValue=this.selectedValueSite,this.selectedDeviceName=this.selectedValue+" (Microsoft SharePoint)"}if(this.filesSearchText==""){this.toastr.error(this.TranslateService.instant("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),i=JSON.parse(n);let r=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(c=>{let y={exists:c.present?c.present.toString():"",backup:"true",deviceUUID:c.deviceUUID?c.deviceUUID.toString():"",fileName:c.fileName?c.fileName.toString():"",filePath:c.fileCompletePath?c.fileCompletePath.toString():"",fileUser:c.fileUserOwner?btoa(c.fileUserOwner):"",folder:c.folder?"true":"false",fileRevisionID:c.backupId?c.backupId.toString():"",content:c.metaData?c.metaData.toString():"",modifiedTimestamp:c.lastModifiedTimestamp?parseInt(c.lastModifiedTimestamp,10):0,size:c.size?parseInt(c.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(y.deviceUUID).subscribe(k=>{let I=k.body.BSDeviceInfoElement,E=I.osType.substring(0,3).toLowerCase(),D="Windows",P="Windows";E==="win"?(D="Windows",P="Windows"):E==="mac"?(D="Mac",P="Mac"):E==="one"?(D="ONEDRIVE",P="ONEDRIVE"):E==="out"?(D="OUTLOOK",P="OUTLOOK"):E==="sha"&&(D="SHAREPOINT",P="SHAREPOINT"),y.deviceType=D,y.deviceOs=P,y.deviceId=I.deviceId?I.deviceId.toString():"",y.blocked="active",y.deviceName=I.deviceName?I.deviceName.toString():"",y.deviceNameNew=I.deviceName?I.deviceName.replace(/ /g,"_PB_"):"",y.deviceNameEnc=I.deviceName?btoa(I.deviceName):"",r.push(y),this.foundFiles=r,this.noFilesFound=!1,console.log("Files:",JSON.stringify(r))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("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(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteList=[{label:"",options:r}],this.cdr.detectChanges()}else this.siteList=[]},i=>{})}updateSite(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,r,p,c,y,k,I){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+r),console.log("fileUser : "+p),console.log("deviceUUID : "+c),console.log("folder : "+y),console.log("token : "+this.sharedService.getDataByKey("authToken")),["OUTLOOK","Gmail","mail"].includes(I)){this.downloadMail(p,i,c,I==="mail"?"OUTLOOK":I);return}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(i,c,parseFloat((k/1024).toFixed(2))>=10,y==="true",I);return}let E="https://",D=this.configService.baseFolder,P="/BluKryptBuilder/cloud/",O=this.configService.cloudName,F=this.authService.Token,te=this.sharedService.getDataByKey("userName"),ye=`${E}${D}${P}${O}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${F}&loginUserName=${te}&isSync=false+&deviceUUID=${c}&backupID=${i}&backup=${r}&userName=${this.base64Encode(p)}&moveToDownloads=false`;window.open(ye,"_self")}gDriveDownloadFile(e,n,i,r=!1,p){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"FOLDER":i?"LARGE_FILE":"SMALL_FILE",p,this.restoreDeletedFilesByRestoreR).subscribe(c=>{if(console.log("res from downloadGsuite : "+JSON.stringify(c)),console.log("res from downloadGsuite : "+JSON.stringify(c.body)),this.downloadId=c?.body?.downloadId,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let y=0,k=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),y++,y>=k&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}this.cdr.detectChanges()},c=>{switch(console.error("Error from downloadGsuite: ",c),console.error("Error status: ",c.status),console.log("ID : "+c?.error?.text),c.status){case 200:if(console.error("Bad Request: ",c.message),this.downloadId=c?.error?.text,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let y=0,k=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),y++,y>=k&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}break;case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 412:console.error("Error code 412: ",c.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: ",c.message);break;case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,r,p){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",p),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",r),this.isOverlayVisible=!1;let c=document.querySelector(".header.header-sticky");c&&this.renderer.setStyle(c,"z-index","1000");let y=document.querySelector(".overlay");y&&this.renderer.setStyle(y,"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(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:"All Users"},...r||[]]}],this.cdr.detectChanges()}else this.deviceUsersListCS=[]},i=>{})}updateContentSearch(e){console.log("value : "+e.value);let n=e.value;if(n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceTypeCS=="backup"?r="BACKUP":this.deviceTypeCS=="mail"?r="OUTLOOK":this.deviceTypeCS=="Gmail"?r="Gmail":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i),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 i="";this.deviceTypeCS=="ODB"?i="ONEDRIVE":this.deviceTypeCS=="backup"?i="BACKUP":this.deviceTypeCS=="mail"?i="OUTLOOK":this.deviceTypeCS=="Gmail"?i="Gmail":i=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(r=>r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){return j(this,null,function*(){this.foundMailsCS=[],this.foundFiles=[],this.foundFilesCS=[],this.noFilesFound=!1,this.noFilesFoundCS=!1;let i=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 p={value:this.selectedValueCS};this.updateContentSearch(p)}let r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.find(p=>p.key===i||p.key2===i||p.key3===i),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.TranslateService.instant("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.TranslateService.instant("Please specify a search string."));return}else this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}if((this.myDateAfter!=null||this.myDateBefore!=null)&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error(this.TranslateService.instant("Please select a username."));return}this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&(e.body.data.fileElementList.forEach(c=>{let y={exists:c.present?c.present.toString():"",backup:"true",deviceUUID:c.deviceUUID?c.deviceUUID.toString():"",fileName:c.fileName?c.fileName.toString():"",filePath:c.fileCompletePath?c.fileCompletePath.toString():"",fileUser:c.fileUserOwner?btoa(c.fileUserOwner):"",folder:c.folder?"true":"false",fileRevisionID:c.fileRevisionId?c.fileRevisionId.toString():"",content:c.metaData?c.metaData.toString():"",modifiedTimestamp:c.lastModifiedTimestamp?parseInt(c.lastModifiedTimestamp,10):0,size:c.size?parseInt(c.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(y.deviceUUID).subscribe(k=>{let I=k.body.BSDeviceInfoElement,E=I.osType.substring(0,3).toLowerCase(),D="Windows",P="Windows";E==="win"?(D="Windows",P="Windows"):E==="mac"?(D="Mac",P="Mac"):E==="one"?(D="ONEDRIVE",P="ONEDRIVE"):E==="out"?(D="OUTLOOK",P="OUTLOOK"):E==="sha"&&(D="SHAREPOINT",P="SHAREPOINT"),y.deviceType=D,y.deviceOs=P,y.deviceId=I.deviceId?I.deviceId.toString():"",y.blocked="active",y.deviceName=I.deviceName?I.deviceName.toString():"",y.deviceNameNew=I.deviceName?I.deviceName.replace(/ /g,"_PB_"):"",y.deviceNameEnc=I.deviceName?btoa(I.deviceName):"",r.push(y),this.foundFilesCS=r,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(r))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.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(c=>{let y={backupId:c.fileRevisionId,userName:c.fileUserOwner,deviceUUID:c.deviceUUID,subject:c.subject?c.subject:"<empty>",contactName:c.fileName?c.fileName:"-",taskSubject:c.subject?c.subject:"",present:c.exists.toString(),showIcon:c.from?c.from.charAt(0):"E",alphaColor:this.colorGen(),from:c.from?c.from:"<empty>",to:c.toRecipients?c.toRecipients:"",cc:c.ccRecipients?c.ccRecipients:"",bcc:c.bccRecipients?c.bccRecipients:"",sentDate:c.sentDate?new Date(c.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:c.metaData?c.metaData:"",bodyContent:c.bodyContent?c.bodyContent:"",bodyContent1:c.bodyContent?c.bodyContent.length>100?c.bodyContent.substring(0,100)+"...":c.bodyContent:"",hasAttachments:c.hasAttachments,attachments:c.attachments?c.attachments:"",name:c.subject?c.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:c.subject?c.subject:"<empty>",filePath:c.fileCompletePath,deviceId:c.deviceId};this.foundMailsCS.push(y)}),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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("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.TranslateService.instant("Please select a User Id."));return}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error(this.TranslateService.instant("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 i=JSON.stringify(n.body),r=JSON.parse(i);let p=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(n.body.data.fileElementList));let c=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&(n.body.data.fileElementList.forEach(y=>{let k={exists:y.present?y.present.toString():"",backup:"true",deviceUUID:y.deviceUUID?y.deviceUUID.toString():"",fileName:y.fileName?y.fileName.toString():"",filePath:y.fileCompletePath?y.fileCompletePath.toString():"",fileUser:y.fileUserOwner?btoa(y.fileUserOwner):"",folder:y.folder?"true":"false",fileRevisionID:y.fileRevisionId?y.fileRevisionId.toString():"",content:y.metaData?y.metaData.toString():"",modifiedTimestamp:y.lastModifiedTimestamp?parseInt(y.lastModifiedTimestamp,10):0,size:y.size?parseInt(y.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(k.deviceUUID).subscribe(I=>{let E=I.body.BSDeviceInfoElement,D=E.osType.substring(0,3).toLowerCase(),P="Windows",O="Windows";D==="win"?(P="Windows",O="Windows"):D==="mac"?(P="Mac",O="Mac"):D==="one"?(P="ONEDRIVE",O="ONEDRIVE"):D==="out"?(P="OUTLOOK",O="OUTLOOK"):D==="sha"&&(P="SHAREPOINT",O="SHAREPOINT"),k.deviceType=P,k.deviceOs=O,k.deviceId=E.deviceId?E.deviceId.toString():"",k.blocked="active",k.deviceName=E.deviceName?E.deviceName.toString():"",k.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",k.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",p.push(k),this.foundFilesCS=p,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(p))},I=>{switch(console.error("Error from getDeviceInfo:",I),I.status){case 400:console.error("Bad Request:",I.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",I.message);break;case 404:console.error("Not Found:",I.message);break;case 500:case 503:console.error("Internal Server Error:",I.message);break;default:console.error("Unknown Error:",I.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(y=>{let k={backupId:y.fileRevisionId,userName:y.fileUserOwner,deviceUUID:y.deviceUUID,subject:y.subject?y.subject:"<empty>",contactName:y.fileName?y.fileName:"-",taskSubject:y.subject?y.subject:"",present:y.exists.toString(),showIcon:y.from?y.from.charAt(0):"E",alphaColor:this.colorGen(),from:y.from?y.from:"<empty>",to:y.toRecipients?y.toRecipients:"",cc:y.ccRecipients?y.ccRecipients:"",bcc:y.bccRecipients?y.bccRecipients:"",sentDate:y.sentDate?new Date(y.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:y.metaData?y.metaData:"",bodyContent:y.bodyContent?y.bodyContent:"",bodyContent1:y.bodyContent?y.bodyContent.length>100?y.bodyContent.substring(0,100)+"...":y.bodyContent:"",hasAttachments:y.hasAttachments,attachments:y.attachments?y.attachments:"",name:y.subject?y.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:y.subject?y.subject:"<empty>",filePath:y.fileCompletePath,deviceId:y.deviceId};this.foundMailsCS.push(k)}),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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("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(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:"All Sites"},...r||[]]}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i),this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS=""})}parseEmailStringUnified(e){let n=e,i=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,r,p=[],c=[],y=[],k=[],I=[],E=[],D=[];for(;(r=i.exec(n))!==null;){let O=r[1],F=r[2];if(F.startsWith("(")&&F.endsWith(")")&&(F=F.slice(1,-1)),O==="from")p.push(F.trim());else if(O==="to")c.push(F.trim());else if(O==="cc")y.push(F.trim());else if(O==="bcc")k.push(F.trim());else if(O==="subject"){let te=F.trim();I.push(te.replace(/^\(|\)$/g,""))}else if(O==="body"){let te=F.trim();E.push(te.replace(/^\(|\)$/g,""))}else D.push(F.trim())}return D.push(n.replace(i,"").trim()),[`from:${p.join(",")}`,`to:${c.join(",")}`,`bcc:${k.join(",")}`,`cc:${y.join(",")}`,`subject:${I.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${D.join(" ")}`,`body:${E.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}viewOutlook11(e,n,i,r,p){console.log("from viewOutlook11 : "+p),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.assetManagementService.viewMail(e,i).subscribe(c=>{if(c.body){this.showNotAvailable=!1;var y=JSON.stringify(c.body.mailElement),k=JSON.parse(y);if(console.log("mailElement : "+JSON.stringify(c.body.mailElement)),console.log("subject : "+c.body.mailElement.subject),console.log("from : "+c.body.mailElement.from),console.log("ccRecipients : "+c.body.mailElement.ccRecipients),console.log("toRecipients : "+c.body.mailElement.toRecipients),p=="mail"||p=="Gmail"){this.currentMailSubject=c.body.mailElement.subject,this.currentFileName=c.body.mailElement.subject,this.currentMailFrom=c.body.mailElement.from,this.currentMailSentDate=c.body.mailElement.sentDate,this.currentMailTo=c.body.mailElement.toRecipients,this.currentMailCc=c.body.mailElement.ccRecipients,this.currentMailBcc=c.body.mailElement.bccRecipients,this.currentMailAttachments=c.body.mailElement.attachments,this.currentMailBody=c.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let I=this.iframe.nativeElement,E=I.contentDocument||I.contentWindow?.document;E&&(E.open(),E.write(this.currentMailBody),E.close()),console.log("body : "+this.currentMailBody)}if(p=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=c.body.mailElement.fileName,this.contactTitle=c.body.mailElement.contactTitle,this.contactFirstName=c.body.mailElement.contactFirstName,this.contactMiddleName=c.body.mailElement.contactMiddleName,this.contactLastName=c.body.mailElement.contactLastName,this.contactSuffix=c.body.mailElement.contactSuffix,this.contactEmail=c.body.mailElement.contactEmail,this.contactMobile=c.body.mailElement.contactMobile,this.contactAddrStreet=c.body.mailElement.contactAddrStreet,this.contactAddrCity=c.body.mailElement.contactAddrCity,this.contactAddrState=c.body.mailElement.contactAddrState,this.contactAddrCountry=c.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=c.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=c.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=c.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=c.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=c.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=c.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=c.body.mailElement.contactOfficeLocation&&c.body.mailElement.contactOfficeLocation!==""?c.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=c.body.mailElement.contactCompanyName&&c.body.mailElement.contactCompanyName!==""?c.body.mailElement.contactCompanyName:"-",this.contactJobTitle=c.body.mailElement.contactJobTitle&&c.body.mailElement.contactJobTitle!==""?c.body.mailElement.contactJobTitle:"-",this.contactDepartment=c.body.mailElement.contactDepartment&&c.body.mailElement.contactDepartment!==""?c.body.mailElement.contactDepartment:"-",this.contactBirthday=c.body.mailElement.contactBirthday&&c.body.mailElement.contactBirthday!==""?c.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=c.body.mailElement.contactHomePhones&&c.body.mailElement.contactHomePhones!==""?c.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=c.body.mailElement.contactBusinessPhones&&c.body.mailElement.contactBusinessPhones!==""?c.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=c.body.mailElement.contactWebSite&&c.body.mailElement.contactWebSite!==""?c.body.mailElement.contactWebSite:"-";let I=[c.body.mailElement.contactBusiAddrStreet,c.body.mailElement.contactBusiAddrCity,c.body.mailElement.contactBusiAddrState,c.body.mailElement.contactBusiAddrCountry,c.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=I.filter(P=>P&&P.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let E=[c.body.mailElement.contactAddrStreet,c.body.mailElement.contactAddrCity,c.body.mailElement.contactAddrState,c.body.mailElement.contactAddrCountry,c.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=E.filter(P=>P&&P.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let D=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(P=>P&&P.trim()!=="");this.fullCombinedName=D.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},c=>{switch(console.error("Error from viewOutlook11: ",c),c.status){case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 500:console.error("Internal Server Error: ",c.message);break;case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(p=>p.isChecked),n=e.filter(p=>!this.isBackupIdExists(p.backupId));if(this.addedElementsUpdated.length+n.length>this.maxItemsAllowedInPstExportWhileSearch){this.toastr.error(this.TranslateService.instant("You have exceeded the number of individual items you can select for export. You may try refining your search or choose to export all the search results."),this.TranslateService.instant("Error"));return}if(e.length>0){let p=e.filter(c=>!this.isBackupIdExists(c.backupId));if(p.length>0){this.addedElementsUpdated.push(...p);let c=p.map(y=>y.subject);this.addedElements=c,this.addedElementsCount=this.addedElementsUpdated.length}else this.toastr.error(this.TranslateService.instant("Item(s) already added."),this.TranslateService.instant("Error"));this.clearSelection(),this.isSelectAll=!1,console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundMailsCS.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.backupId===e)}toggleSelectAll(){this.foundMailsCS.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundMailsCS.some(n=>n.isChecked)}itemSelect(){let e=this.foundMailsCS.length,n=this.foundMailsCS.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundMailsCS.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!this.isMultiSelectEnabled}removeItem(e,n,i,r){this.addedElementsUpdated=this.addedElementsUpdated.filter(p=>p.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,r){if(this.product?.downloadsConfigurations?.unified){this.assetManagementService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML",r==="mail"?"OUTLOOK":r,!1).subscribe(p=>{console.log("res from downloadGmail : "+JSON.stringify(p)),console.log("res from downloadGmail : "+JSON.stringify(p.body)),this.cdr.detectChanges()},p=>{switch(console.error("Error from downloadGsuite: ",p),console.error("Error status: ",p.status),console.log("ID : "+p.error.text),p.status){case 200:console.error("Bad Request: ",p.message),this.downloadId=p.error.text;let c=0,y=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),c++,c>=y&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}});return}this.apiService.downloadMail(e,n).subscribe(p=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},p=>{if(console.error("Error from downloadMail++++++: ",p.status),p.status=="200"){let c="https://",y=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",I=this.configService.cloudName,E=this.authService.Token,D=this.sharedService.getDataByKey("userName"),P=`${c}${y}${k}${I}/portal/download/files/?token=${E}&loginUserName=${D}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(P,"_self")}switch(p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,r){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}closePstPopupG(){this.displayPststyleG="none"}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadPststyleG="block",this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("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(i=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success"))):(this.displayDownloadPststyleG="none",this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success"))),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadPstEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("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.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),e.status=="202"&&(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.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("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,i)=>{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 i=JSON.stringify(n.body),r=JSON.parse(i);let p=[];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(c=>{console.log("res from initiateRestore : "+JSON.stringify(c)),console.log("res from initiateRestore : "+JSON.stringify(c.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},c=>{switch(console.error("Error from initiateRestore: ",c),console.error("Error status: ",c.status),c.status){case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 412:console.error("Error code 412: ",c.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.displayDownloadPststyleG="block",this.toastr.info(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Info")),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",c.message);break;case 500:console.error("Internal Server Error: ",c.message);break;case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("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,i,r,p=""){this.displayRestoreStyleR="block";let c=[{label:"",options:[{value:this.currentMailUser||p,label:this.currentMailUser||p}]}];this.deviceUsersListR=c,this.selectedValueR=this.currentMailUser||p,this.value18R=this.currentMailUser||p,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!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(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListR=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let r="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(r=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(p=>p.blocked===!1&&p.osType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNowR(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.osType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e){this.browsePathR==""&&this.destinationPathR&&(this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath,this.selectedBrowseItemId=this.destinationId),this.selectedDeviceUUID=e,this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(e,this.productTypeContentSearch,this.selectedBrowseItemId):this.assetManagementService.browseExchange(e,this.browsePathR),i=this.deviceType;n.subscribe(r=>{this.loadingR=!1,r.body?.stringList?this.browseItemsR=r.body.stringList:Array.isArray(r.body)&&r.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=r.body:this.browseItemsR=r.body.map(p=>p.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},r=>{switch(this.loadingR=!1,console.error("Error from browse API:",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",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.TranslateService.instant("Folder name cannot be empty."))}onSingleClickR(e,n){e!=="No path available"&&(this.selectedBrowseItemR=e,n&&(this.selectedBrowseItemId=n),console.log("Selected item:",this.selectedBrowseItemR)),console.log("Selected item:",this.selectedBrowseItemR)}onDoubleClickR(e,n){if(this.productTypeContentSearch=="Gmail"){this.onSingleClickR(e);return}e!=="No path available"&&(n&&(this.selectedBrowseItemId=n),this.addToCombinedValueR(e,n),this.selectedBrowseItemR="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root")}addToCombinedValueR(e,n){this.browsePathR?(this.browsePathR+=`/${e}`,this.browsePathId+=`/${n}`):(this.browsePathR=e,this.browsePathId=n),console.log("Combined value:",this.browsePathR),this.browseR(this.selectedDeviceUUID)}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.product?.downloadsConfigurations?.restore?.rootBrowsePath:"root",this.browsePathId=n.join("/")):(typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(this.selectedDeviceUUID)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR)}getRestoreEventsProgressR(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),e.status=="202"&&(this.showRestoreSettingsR=!0,this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.destinationPathR="",this.destinationId="",this.destinationIdPath="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR),setTimeout(()=>{location.reload()},3e3))):this.showRestoreSettingsR=!0},e=>{switch(console.error("Error from getRestoreEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}initiateRestoreR(){let n=new Date(this.myDateBeforeR).getTime();if(this.restoreDataBeforeR=n.toString(),this.dateBeforeR){let r=new Date(this.myDateBeforeR);r.setHours(this.myTimeBeforeR.getHours()),r.setMinutes(this.myTimeBeforeR.getMinutes()),r.setSeconds(this.myTimeBeforeR.getSeconds());let p=r.getTime();this.restoreDataBeforeR=p.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR)}let i=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Device."),this.TranslateService.instant("Fail!!!"));return}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error(this.TranslateService.instant("Inplace restore cannot be enabled for other destination assets."),this.TranslateService.instant("Fail!!!"));return}}else if(this.destinationPathR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Path."),this.TranslateService.instant("Fail!!!"));return}if(console.log("currentDeviceUUID : "+this.currentDeviceUUIDCS),console.log("selectedDeviceUUID : "+this.selectedDeviceUUID),console.log("destinationPath : "+this.destinationPathR),console.log("currentFilePath : "+this.currentFilePathR),console.log("currentFileBackupId : "+this.currentFileBackupIdR),console.log("isFolder : "+i),console.log("inplaceRestore : "+this.inplaceRestoreR),console.log("restoreDataBefore : "+this.restoreDataBeforeR),console.log("restoreDeletedFilesByRestore : "+this.restoreDeletedFilesByRestoreR),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,i,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,this.currentFilePathR,this.currentFileName).subscribe(this.productTypeContentSearch==="Google Drive"?r=>{this.triggerGSuiteProgress(r,!0),this.showRestoreSettingsR=!1}:r=>{this.triggerGmailProgress(r,!0),this.showRestoreSettingsR=!1},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=r?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(r,!0):this.triggerGmailProgress(r,!0);break;case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.showRestoreSettingsR=!1,this.intervalId=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),console.error("Error code 417: ",r.message),this.toastr.info("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}});return}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUID,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(r=>{console.log("res from initiateRestore : "+JSON.stringify(r)),console.log("res from initiateRestore : "+JSON.stringify(r.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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.TranslateService.instant("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 i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],p=n[2];p.startsWith("(")&&p.endsWith(")")&&(p=p.slice(1,-1)),i[r].push(p)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMailUnified(){let e=[];if(this.fromId){let n=this.fromId.split(",");e.push(`from:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?"=)":""}`)}if(this.toId){let n=this.toId.split(",");e.push(`to:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?"=)":""}`)}if(this.ccId){let n=this.ccId.split(",");e.push(`cc:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?"=)":""}`)}if(this.bccId){let n=this.bccId.split(",");e.push(`bcc:${n.length>1?"(":""}${n.map(i=>i.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 i=e.split(/\s+/),r=[],p=[],c=[],y=[],k=[],I=[],E=[];for(let P=0;P<i.length;P++){let O=i[P];if(O.startsWith("from:"))r.push(O.replace("from:","").trim());else if(O.startsWith("to:"))p.push(O.replace("to:","").trim());else if(O.startsWith("cc:"))c.push(O.replace("cc:","").trim());else if(O.startsWith("bcc:"))y.push(O.replace("bcc:","").trim());else if(O.startsWith("subject:")){let F=O.replace("subject:","").trim();for(;!(F.startsWith("(")&&F.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,F+=" "+i[P];k.push(F.replace(/^\(|\)$/g,""))}else if(O.startsWith("body:")){let F=O.replace("body:","").trim();for(;!(F.startsWith("(")&&F.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,F+=" "+i[P];I.push(F.replace(/^\(|\)$/g,""))}else E.push(O)}return console.log("fromArray : "+r.join(",")),console.log("toArray : "+p.join(",")),console.log("ccArray : "+c.join(",")),console.log("bccArray : "+y.join(",")),console.log("subjectArray : "+k.join(",")),console.log("bodyArray : "+I.join(",")),console.log("keywordsArray : "+E.join("")),console.log("fromArray length : : "+r.length),[`from:${r.join(",")}`,`to:${p.join(",")}`,`bcc:${y.join(",")}`,`cc:${c.join(",")}`,`subject:${k.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${E.join(" ")}`,`body:${I.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 i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],p=n[2];p.startsWith("(")&&p.endsWith(")")&&(p=p.slice(1,-1)),i[r].push(p)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMail(){let e=[];this.fromId&&e.push(`from:${this.fromId.split(",").map(n=>n.trim()).join(",")}`),this.toId&&e.push(`to:${this.toId.split(",").map(n=>n.trim()).join(",")}`),this.ccId&&e.push(`cc:${this.ccId.split(",").map(n=>n.trim()).join(",")}`),this.bccId&&e.push(`bcc:${this.bccId.split(",").map(n=>n.trim()).join(",")}`),this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}static{this.\u0275fac=function(n){return new(n||t)(C($),C(se),C(J),C(we),C(Ye),C(le),C(Ke),C(Ue),C(ei),C(Ve),C(vt),C(Q),C(me),C(gt),C(ft))}}static{this.\u0275cmp=V({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(W(Tl,5),W(Il,5),W(El,5),W(Pl,5),W(Ml,5),W(Dl,5),W(Ol,5),W(Rl,5),W(Al,5),W(Ul,5)),n&2){let r;z(r=H())&&(i.deviceDropdown=r.first),z(r=H())&&(i.deviceDropdownCS=r.first),z(r=H())&&(i.iframe=r.first),z(r=H())&&(i.userDeviceSearch=r.first),z(r=H())&&(i.fileSearch=r.first),z(r=H())&&(i.contentSearch=r.first),z(r=H())&&(i.contentSearchMailInput=r.first),z(r=H())&&(i.deviceDropdownR=r.first),z(r=H())&&(i.calendarIframe=r.first),z(r=H())&&(i.searchInput=r.first)}},outputs:{close:"close"},features:[re([$,J,gt])],decls:251,vars:174,consts:()=>{let e;e=$localize`:@@Close:Close`;let n;n=$localize`:@@ExportselecteditemstoPST:Export selected items to PST`;let i;return i=$localize`:@@/{{progressR.subject|slice\:0\:40}}:/ ${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentFrame",""],["deviceDropdownR",""],e,n,i,[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",3,"click"],[1,"fa","fa-times-circle",2,"font-size","25px","cursor","pointer"],["variant","tabs","role","tablist"],[3,"ngStyle"],["cNavLink","",3,"click","cTabContent","tabPaneIdx"],[4,"ngIf"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[2,"margin-top","20px"],["cInputGroupText",""],["aria-describedby","userAssetSearchText","aria-label","userAssetSearchText","name","userAssetSearchText","cFormControl","","placeholder","Search ..","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-12",2,"align-items","center","margin-top","20px"],[1,"form-group","col-lg-2"],["for","productTypeFiles"],["cSelect","","name","productTypeFiles","id","productTypeFiles","title","Select Product Type",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel"],["value","backup",4,"ngIf"],["value","oneDrive",4,"ngIf"],["value","SHAREPOINT",4,"ngIf"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],["class","form-group col-lg-3 custom-select-wrapper",4,"ngIf"],[1,"col-lg-12",2,"align-items","center","margin-top","10px"],[1,"col-lg-8"],["aria-describedby","filesSearchText","aria-label","filesSearchText","name","filesSearchText","cFormControl","","placeholder","Search for files/folders ..",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-2"],["type","button",1,"btn","btn-small","btn-primary",3,"click"],["style","overflow: scroll;height: 500px;",4,"ngIf"],["for","productTypeContentSearch"],["cSelect","","name","productTypeContentSearch","id","productTypeContentSearch","title","Select Product Type",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel"],["value","mail",4,"ngIf"],["value","Gmail",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],[3,"downloadFile","openFileLocation","navigatePage","foundFiles","noFilesFound","totalCountGS","productType","userType","contentSearchText","currentDeviceUUID","first","previous","next","last"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","name","pstFileNameG","id","pstFileNameG","placeholder","Enter PST File Name","minlength","3","maxlength","64","pattern","^[a-zA-Z0-9@.\\(\\)\\-_]*$","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["type","text","name","pstFileNameG","id","pstFileNameG","placeholder","Enter PST File Name","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"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,"click",4,"ngIf"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click",4,"ngIf"],["id","browsemodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],[1,"col-lg-6"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[2,"max-height","400px","overflow-y","auto"],[1,"table","table-hover","table-bordered"],["id","left"],["class","text-left",3,"ngClass","click","dblclick",4,"ngFor","ngForOf"],["for","policyName"],["aria-describedby","newFolderR","name","newFolderR","id","newFolderR","aria-label","Enter folder name","cFormControl","","placeholder","Enter folder name","required","",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","addNewFolderBtnR","type","button","variant","outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["placeholder","Select User","noResultMessage","No users found","id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Site","noResultMessage","No sites found","id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-group","col-lg-3","custom-select-wrapper"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[1,"fa-solid","fa-chevron-down","dropdown-icon"],[2,"overflow","scroll","height","500px"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],[1,"bg-body-tertiary","clickable-header"],[1,"bg-body-tertiary"],[4,"ngFor","ngForOf"],[1,"found-in"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],["value","mail"],["value","Gmail"],["placeholder","Select Users","noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Sites","noResultMessage","No sites found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-control",3,"change"],["aria-describedby","contentSearchText","aria-label","contentSearchText","name","contentSearchText","cFormControl","","placeholder","Search..",3,"ngModelChange","keydown.enter","ngModel"],["aria-describedby","contentSearchMail","name","contentSearchMail","id","contentSearchMail","aria-label","Default Folders to Backup","cFormControl","","placeholder","Search",3,"ngModelChange","keydown.enter","ngModel","disabled"],[1,"fa",3,"ngClass"],["class","col-lg-2",4,"ngIf"],[1,"btn","btn-small","btn-primary",3,"click"],["class","row col-lg-12","style","border: 1px solid #062D4D;border-radius: 10px;",4,"ngIf"],[1,"row","col-lg-12",2,"border","1px solid #062D4D","border-radius","10px"],[1,"form-group","col-lg-6"],["for","fromId"],["href","#",1,"hover-link",2,"color","#062D4D","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"note"],["type","text","id","fromId","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["for","toId"],["type","text","id","toId","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],["for","ccId"],["type","text","id","ccId","placeholder","CC",1,"form-control",3,"ngModelChange","ngModel"],["for","bccId"],["type","text","id","bccId","placeholder","BCC",1,"form-control",3,"ngModelChange","ngModel"],["for","subjectId"],["type","text","id","subjectId","placeholder","Subject",1,"form-control",3,"ngModelChange","ngModel"],["for","bodyId"],["type","text","id","bodyId","placeholder","Body",1,"form-control",3,"ngModelChange","ngModel"],["for","keywordsId"],["type","text","id","keywordsId","placeholder","Keywords",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-lg-6","align-items-center","d-flex"],["type","text","bsDatepicker","","placement","top",1,"form-control","mx-2",2,"width","auto",3,"ngModelChange","ngModel","bsConfig"],[1,"btn","btn-small","btn-primary","pull-right",3,"click"],[1,"col-lg-12",2,"height","60vh","overflow","scroll"],[1,"header-container",2,"display","block"],["class","downloadAsPstGSearchll hover-link","style","margin-right: 10px; margin-left:22px; cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","removeAllGlobal hover-link","style","margin-right: 10px;margin-left:22px;cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearch","style","margin-right: 3%;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearchll11","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[2,"border-top","0px solid #f1f1f1 !important"],["class","btn btn-small btn-primary addToCart",3,"click",4,"ngIf"],["class","card-body-center",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],[1,"table","table-hover",2,"background","white"],[1,"col-lg-10"],[1,"downloadAsPstGSearchll","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"removeAllGlobal","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-reorder"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearch",2,"margin-right","3%",3,"click"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearchll11",2,"margin-right","3%",3,"click","ngClass"],["type","checkbox","title","Select all",3,"ngModelChange","change","ngModel"],[1,"btn","btn-small","btn-primary","addToCart",3,"click"],[3,"selected-rowMail",4,"ngFor","ngForOf"],["style","border-right: none;",4,"ngIf"],["class","col-lg-12","style","font-size:14px !important;border-left: none;",3,"click",4,"ngIf"],["type","checkbox",3,"ngModelChange","change","ngModel"],[2,"border-right","none"],[1,"aplhaC",2,"line-height","28px","text-align","center","display","inline-block","height","28px","width","28px","border-radius","50%","opacity","0.5",3,"ngStyle"],[1,"col-lg-12",2,"font-size","14px !important","border-left","none",3,"click"],["class","folder","style","cursor: pointer; color: #000 !important;text-decoration: none;",4,"ngIf"],["class","folder","style","cursor: pointer; color: #c5bcbc !important; font-style:italic;text-decoration: none;",4,"ngIf"],[1,"folder",2,"cursor","pointer","color","#000 !important","text-decoration","none"],[2,"font-weight","bold"],["class","fa fa-paperclip fa-1x pull-right","style","color: #000 !important; cursor:default;",4,"ngIf"],["class","pull-right","title","Download","style","cursor:pointer;",3,"click",4,"ngIf"],["class","pull-right","title","Restore file","style","margin-right:10px;cursor:pointer;",3,"click",4,"ngIf"],[1,"folder"],[2,"color","#062D4D"],[2,"float","right","color","grey",3,"innerHTML"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#000 !important","cursor","default"],["title","Download",1,"pull-right",2,"cursor","pointer",3,"click"],[1,"fa","fa-download"],["title","Restore file",1,"pull-right",2,"margin-right","10px","cursor","pointer",3,"click"],[1,"fa","fa-history"],[3,"innerHTML"],[1,"folder",2,"cursor","pointer","color","#c5bcbc !important","font-style","italic","text-decoration","none"],["class","fa fa-paperclip fa-1x pull-right","style","color: #c5bcbc !important;",4,"ngIf"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#c5bcbc !important"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],[1,"contentOutlook1Div"],["frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px"],[1,"from1"],[2,"float","right"],[1,"to1"],[1,"cc1"],[1,"bcc1"],[1,"attachments1"],[1,"dataa1"],["style","margin-right:5px; border: 1px solid #062D4D; padding:2px; border-radius:5px;",4,"ngFor","ngForOf"],[2,"margin-right","5px","border","1px solid #062D4D","padding","2px","border-radius","5px"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"row","col-lg-12",2,"margin-bottom","10px"],[1,"col-lg-3"],["shape","rounded-1","src","./assets/images/avatars/default.jpg","textColor","primary","alt","User avatar",3,"size"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D"],[2,"cursor","pointer",3,"title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4"],[1,"contactEmail",3,"mouseenter","mouseleave","title"],["class","contactEmailTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],["class","contactOfficeLocationTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],["class","contactCompanyNameTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],["class","contactJobTitleTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],["class","contactDepartmentTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],["class","contactMobileTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],["class","contactHomePhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],["class","contactBusinessPhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactEmailTitle",2,"cursor","pointer",3,"title"],[1,"contactOfficeLocationTitle",2,"cursor","pointer",3,"title"],[1,"contactCompanyNameTitle",2,"cursor","pointer",3,"title"],[1,"contactJobTitleTitle",2,"cursor","pointer",3,"title"],[1,"contactDepartmentTitle",2,"cursor","pointer",3,"title"],[1,"contactMobileTitle",2,"cursor","pointer",3,"title"],[1,"contactHomePhonesTitle",2,"cursor","pointer",3,"title"],[1,"contactBusinessPhonesTitle",2,"cursor","pointer",3,"title"],[1,"btn","btn-small","btn-primary","removeFromCart","pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"paginationOutlook"],[1,"col-lg-4","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],[1,"text-danger"],["type","button",1,"btn","btn-success",3,"click","disabled"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],["placeholder","Select Users","noResultMessage","No users found","id","selec2-18R","customSearchEnabled","",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["for","destinationPathR"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","placeholder","Enter Destination Path","required","",3,"ngModelChange","ngModel","readonly"],["cButton","","color","secondary","id","destinationPathBrowseBtnR","type","button","variant","outline",3,"click"],["class","col-lg-12 row form-group",4,"ngIf"],[1,"col-lg-12","row","form-group"],[1,"col-lg-4"],[3,"switch"],["cFormCheckInput","","id","inplaceRestoreR","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","restoreDeletedFilesByRestoreR","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-lg-3",2,"border","1px solid #062D4D","border-radius","10px","padding","10px","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"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-arrow-left"],["colspan","1",1,"text-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"text-left",3,"click","dblclick","ngClass"]]},template:function(n,i){if(n&1){let r=x();a(0,"div",13)(1,"div",14)(2,"c-card",15)(3,"c-card-body")(4,"a",16),b("click",function(){return h(r),g(i.closeOverlay())}),S(5,"i",17),s(),a(6,"c-nav",18)(7,"c-nav-item",19)(8,"button",20),b("click",function(){return h(r),g(i.setActiveSearchTab("default",0))}),d(9),v(10,"translate"),s()(),w(11,Wl,4,5,"c-nav-item",21)(12,ql,4,5,"c-nav-item",21),s(),a(13,"c-tab-content",22,0)(15,"c-tab-pane",23)(16,"c-row",24)(17,"c-input-group",15)(18,"span",25),d(19),v(20,"translate"),s(),a(21,"input",26,1),U("ngModelChange",function(c){return h(r),A(i.userAssetSearchText,c)||(i.userAssetSearchText=c),g(c)}),b("keydown.enter",function(){return h(r),g(i.searchForUsersAssets())}),s()()(),a(23,"c-row"),w(24,Zl,2,1,"c-card",21)(25,$l,6,1,"c-card",21),S(26,"br"),w(27,Jl,2,1,"c-card",21)(28,Ql,6,1,"c-card",21),S(29,"br"),w(30,Xl,2,1,"c-card",21)(31,tc,6,1,"c-card",21),s()(),a(32,"c-tab-pane",23)(33,"c-row",27)(34,"div",28)(35,"label",29),d(36),v(37,"translate"),s(),a(38,"select",30),U("ngModelChange",function(c){return h(r),A(i.productTypeFiles,c)||(i.productTypeFiles=c),g(c)}),b("change",function(c){return h(r),g(i.onChangeProductType(c))}),w(39,ic,3,3,"option",31)(40,nc,3,3,"option",32)(41,rc,3,3,"option",33),Te(42,ac,1,1,"option",34,Qe),s()(),w(44,sc,5,8,"div",35)(45,lc,5,7,"div",35)(46,pc,9,5,"div",36),s(),a(47,"c-row",37)(48,"div",38)(49,"c-input-group")(50,"input",39,2),U("ngModelChange",function(c){return h(r),A(i.filesSearchText,c)||(i.filesSearchText=c),g(c)}),b("keydown.enter",function(){return h(r),g(i.searchForFiles())}),s()()(),a(52,"div",40)(53,"button",41),b("click",function(){return h(r),g(i.searchForFiles())}),d(54,"Search"),s()()(),S(55,"br"),w(56,uc,6,3,"c-row",21)(57,hc,11,6,"c-row",42),s(),a(58,"c-tab-pane",23)(59,"c-row",27)(60,"div",28)(61,"label",43),d(62,"Product Type"),s(),a(63,"select",44),U("ngModelChange",function(c){return h(r),A(i.productTypeContentSearch,c)||(i.productTypeContentSearch=c),g(c)}),b("change",function(c){return h(r),g(i.onChangeProductTypeContentSearch(c))}),w(64,gc,3,3,"option",45)(65,fc,3,3,"option",32)(66,vc,3,3,"option",33)(67,_c,3,3,"option",46),Te(68,bc,1,3,"option",34,Qe),s()(),w(70,Cc,4,5,"div",35)(71,Sc,4,4,"div",35)(72,kc,8,2,"div",36),s(),w(73,Tc,8,1,"c-row",47)(74,Ec,8,4,"c-row",48)(75,Mc,2,1,"c-row",48),S(76,"br"),a(77,"app-document-content-search",49),b("downloadFile",function(c){return h(r),g(i.downloadFile(c.fileName,c.filePath,c.fileRevisionID,c.backup,c.fileUser,c.deviceUUID,c.folder,c.size,i.productTypeContentSearch))})("openFileLocation",function(c){return h(r),g(i.openFileLocation(c.fileName,c.filePath,c.deviceId,i.productTypeContentSearch,c.backup))})("navigatePage",function(c){return h(r),g(i.searchForContentNavigate(c))}),s(),w(78,Dc,5,0,"c-row",48)(79,yd,37,34,"c-row",50),S(80,"br"),w(81,xd,7,4,"c-row",51),s()()()()()(),a(82,"div",52)(83,"div",53)(84,"div",54)(85,"div",55)(86,"h4",56),d(87),v(88,"translate"),s()(),a(89,"div",57)(90,"c-row")(91,"div",58)(92,"label",59),d(93),v(94,"translate"),s(),a(95,"input",60,3),U("ngModelChange",function(c){return h(r),A(i.pstFileNameG,c)||(i.pstFileNameG=c),g(c)}),s(),w(97,Ed,4,3,"div",61),a(98,"label",59),d(99),v(100,"translate"),s(),a(101,"input",62),U("ngModelChange",function(c){return h(r),A(i.pstFileNameG,c)||(i.pstFileNameG=c),g(c)}),s()()()(),a(102,"div",63)(103,"button",64),b("click",function(){return h(r),g(i.closePstPopupG())}),Xe(104,10),s(),w(105,Pd,3,4,"button",65)(106,Md,3,4,"button",65),s()()()(),a(107,"div",66)(108,"div",67)(109,"div",54)(110,"div",55)(111,"h4",56),d(112),v(113,"translate"),s()(),a(114,"div",57)(115,"c-card")(116,"c-card-header",68),d(117),v(118,"translate"),s(),a(119,"c-card-body")(120,"c-row",69)(121,"table",70)(122,"thead")(123,"tr"),w(124,Dd,3,3,"th",21),a(125,"th"),d(126),v(127,"translate"),s()()(),a(128,"tbody")(129,"tr"),w(130,Rd,5,9,"td",21)(131,Ad,3,3,"td",21)(132,Ud,6,10,"td",21)(133,Fd,3,3,"td",21),s()()()()()()(),a(134,"div",63)(135,"button",64),b("click",function(){return h(r),g(i.closeDownloadPstPopupG())}),d(136,"Close"),s(),w(137,Bd,3,3,"button",71),s()()()(),a(138,"div",52)(139,"div",53)(140,"div",54)(141,"div",55)(142,"h4",56),d(143),v(144,"translate"),s()(),a(145,"div",57)(146,"h4",56),d(147),v(148,"translate"),s()(),a(149,"div",63)(150,"button",64),b("click",function(){return h(r),g(i.closeDownloadPstConfirmPopupG())}),d(151),v(152,"translate"),s(),a(153,"button",72),b("click",function(){return h(r),g(i.cancelDownloadAsPstConfirmG())}),d(154),v(155,"translate"),s()()()()(),a(156,"div",52)(157,"div",53)(158,"div",54)(159,"div",55)(160,"h4",56),d(161),v(162,"translate"),s()(),a(163,"div",57)(164,"h4",56),d(165),v(166,"translate"),s()(),a(167,"div",63)(168,"button",64),b("click",function(){return h(r),g(i.closeDownloadPstRunBkpPopupG())}),d(169,"Cancel"),s(),a(170,"button",73),b("click",function(){return h(r),g(i.cancelDownloadAsPstRunBkpG())}),d(171,"Ok"),s()()()()(),a(172,"div",74)(173,"div",67)(174,"div",54)(175,"div",55)(176,"h4",56),d(177),v(178,"translate"),s()(),a(179,"div",57),w(180,Gd,64,43,"c-card",21)(181,Xd,23,17,"c-card",21),s(),a(182,"div",63),w(183,ep,3,3,"button",75)(184,tp,3,3,"button",76)(185,ip,3,3,"button",77)(186,np,3,3,"button",78),s()()()(),a(187,"div",79)(188,"div",53)(189,"div",54)(190,"div",55)(191,"h4",56),d(192),v(193,"translate"),s()(),a(194,"div",57)(195,"c-row",69)(196,"c-card",80)(197,"c-card-header",68)(198,"span"),d(199),v(200,"translate"),w(201,rp,2,0,"span",21)(202,op,2,0,"span",21)(203,ap,2,1,"span",21),s()(),a(204,"c-card-body"),w(205,sp,4,3,"button",81),a(206,"div",82)(207,"table",83)(208,"thead")(209,"tr",84)(210,"th"),d(211),v(212,"translate"),s()()(),a(213,"tbody"),w(214,lp,6,3,"tr",21)(215,cp,4,5,"tr",85),s()()()()(),a(216,"c-card",80)(217,"c-card-body")(218,"div",58)(219,"label",86),d(220),v(221,"translate"),s(),a(222,"c-input-group",15)(223,"input",87),U("ngModelChange",function(c){return h(r),A(i.newFolderR,c)||(i.newFolderR=c),g(c)}),s(),a(224,"button",88),b("click",function(){return h(r),g(i.addNewFolderR(i.newFolderR))}),d(225),v(226,"translate"),s()()()()()()(),a(227,"div",63)(228,"button",64),b("click",function(){return h(r),g(i.closeBrowsePopupR())}),d(229,"Close"),s(),a(230,"button",89),b("click",function(){return h(r),g(i.usePathR())}),d(231),v(232,"translate"),s()()()()(),a(233,"div",52)(234,"div",53)(235,"div",54)(236,"div",55)(237,"h4",56),d(238),v(239,"translate"),s()(),a(240,"div",57)(241,"h4",56),d(242),v(243,"translate"),s()(),a(244,"div",63)(245,"button",64),b("click",function(){return h(r),g(i.closeDeleteRestorePopupR())}),d(246),v(247,"translate"),s(),a(248,"button",73),b("click",function(){return h(r),g(i.deleteRestoreEventR())}),d(249),v(250,"translate"),s()()()()()}if(n&2){let r=Y(14),p=Y(96);o(7),u("ngStyle",N(158,De,i.userType!="user"?"block":"none")),o(),u("cTabContent",r)("tabPaneIdx",0),o(),M(" ",_(10,106,"Search Users/Assets"),""),o(2),u("ngIf",i.hasBackupLicense),o(),u("ngIf",i.hasContentSearchLicense),o(),u("activeTabPaneIdx",i.activeTabIndex),o(6),f(_(20,108,"Search Users/Assets")),o(2),R("ngModel",i.userAssetSearchText),o(3),u("ngIf",i.noUsersFoundText!=""),o(),u("ngIf",i.foundUsers.length>0),o(2),u("ngIf",i.noSitesFoundText!=""),o(),u("ngIf",i.foundSites.length>0),o(2),u("ngIf",i.noDevicesFoundText!=""),o(),u("ngIf",i.foundDevices.length>0),o(5),f(_(37,110,"Product Type")),o(2),R("ngModel",i.productTypeFiles),o(),u("ngIf",i.inclusionLicenses.includes("backup_enabled")),o(),u("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),o(),u("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),o(),Ie(i.PRODUCTS_CONFIG),o(2),u("ngIf",i.productTypeFiles!="SHAREPOINT"),o(),u("ngIf",i.productTypeFiles=="SHAREPOINT"),o(),u("ngIf",i.productTypeFiles!="SHAREPOINT"),o(4),R("ngModel",i.filesSearchText),o(6),u("ngIf",i.noFilesFound),o(),u("ngIf",i.foundFiles.length>0&&!i.noFilesFound),o(6),R("ngModel",i.productTypeContentSearch),o(),u("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),o(),u("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),o(),u("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),o(),u("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),o(),Ie(i.PRODUCTS_CONFIG),o(2),u("ngIf",i.productTypeContentSearch!="SHAREPOINT"),o(),u("ngIf",i.productTypeContentSearch=="SHAREPOINT"),o(),u("ngIf",i.productTypeContentSearch!="SHAREPOINT"),o(),u("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),o(),u("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),o(),u("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),o(2),u("foundFiles",i.foundFilesCS)("noFilesFound",i.noFilesFoundCS)("totalCountGS",i.totalCountGS)("productType",i.productTypeContentSearch)("userType",i.userType)("contentSearchText",i.contentSearchText)("currentDeviceUUID",i.currentDeviceUUID)("first",i.first)("previous",i.previous)("next",i.next)("last",i.last),o(),u("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),o(),u("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),o(2),u("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),o(),u("ngStyle",N(160,De,i.displayPststyleG)),o(5),f(_(88,112,"Specify Filename")),o(6),f(_(94,114,"Specify pst filename")),o(2),R("ngModel",i.pstFileNameG),o(2),u("ngIf",p.invalid&&(p.dirty||p.touched)),o(2),f(_(100,116,"Specify pst filename")),o(2),R("ngModel",i.pstFileNameG),o(4),u("ngIf",i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),o(),u("ngIf",!i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),o(),u("ngStyle",N(162,De,i.displayDownloadPststyleG)),o(5),f(_(113,118,"Restore Progress")),o(5),f(_(118,120,"Currently Running Restore Statistics")),o(7),u("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(2),f(_(127,122,"Overall Progress")),o(4),u("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(),u("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(),u("ngIf",i.progressG.totalNoOfFilesForRestore!=""),o(),u("ngIf",i.progressG.totalNoOfFilesForRestore==""),o(4),u("ngIf",i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop),o(),u("ngStyle",N(164,De,i.displayDownloadPstConfirmstyleG)),o(5),f(_(144,124,"Restore Cancel Confirmation")),o(4),f(_(148,126,"Are you sure you wish to cancel the restore?")),o(4),f(_(152,128,"Cancel")),o(3),f(_(155,130,"Ok")),o(2),u("ngStyle",N(166,De,i.displayDownloadPstRunBckConfirmstyleG)),o(5),f(_(162,132,"Confirmation")),o(4),f(_(166,134,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),o(7),u("ngStyle",N(168,De,i.displayRestoreStyleR)),o(5),f(_(178,136,"Restore Settings")),o(3),u("ngIf",i.showRestoreSettingsR),o(),u("ngIf",!i.showRestoreSettingsR),o(2),u("ngIf",i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),o(),u("ngIf",!i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop)),o(),u("ngIf",i.showRestoreSettingsR),o(),u("ngIf",!i.showRestoreSettingsR),o(),u("ngStyle",N(170,De,i.displayBrowseStyleR)),o(5),f(_(193,138,"Browse path")),o(7),M("",_(200,140,"Current Path")," :"),o(2),u("ngIf",i.productTypeContentSearch==="Google Drive"),o(),u("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),o(),u("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),o(2),u("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),o(6),f(_(212,142,"Items")),o(3),u("ngIf",i.loadingR),o(),u("ngForOf",i.browseItemsR),o(5),f(_(221,144,"Create new folder")),o(3),R("ngModel",i.newFolderR),o(2),f(_(226,146,"Create")),o(5),u("disabled",!i.selectedBrowseItemR),o(),f(_(232,148,"Use Path")),o(2),u("ngStyle",N(172,De,i.displayDeleteRestoreStyleR)),o(5),f(_(239,150,"Restore Cancel Confirmation")),o(4),f(_(243,152,"Are you sure you wish to cancel the restore?")),o(4),f(_(247,154,"Close")),o(3),f(_(250,156,"Delete"))}},dependencies:[da,ca,si,Fe,li,di,ci,ra,oa,na,dt,ka,Ta,st,fi,xa,lt,vi,Ia,Ea,Pa,ct,ue,Jt,et,ae,Qt,Kt,ya,ba,_a,pa,ai,rt,nt,ot,ui,Se,at,pe,ut,Da,gi,pt,mt,Oa,ht,Ra,Aa,Xa,Ce],styles:['.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:10px;width:100%;height:100%;overflow-y:auto}.button-group[_ngcontent-%COMP%]{margin-top:20px}button[_ngcontent-%COMP%]{margin:0 10px}.card-hover[_ngcontent-%COMP%]{transition:background-color .3s ease-in-out}.card-hover[_ngcontent-%COMP%]:hover{background-color:#35b7f4;cursor:pointer}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}.selected-rowMail[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8;color:#fff}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}.selected[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8}.disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.spinner[_ngcontent-%COMP%]{width:25px;margin:auto;height:25px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/2.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 2.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(6)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var dp=()=>["superAdmin"],ns=t=>({display:t}),rs=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],pp=()=>["/mspDashboard"],up=()=>["/dashboard"],mp=()=>["/bluvault"],hp=()=>({placement:"bottom-start"}),gp=t=>({active:t}),fp=()=>[],vp=t=>({label:"Close",class:"btn btn-default",action:t}),_p=t=>[t],yp=(t,l)=>l.key,bp=(t,l)=>l.name;function Cp(t,l){if(t&1&&(a(0,"button",24),S(1,"i",25),s()),t&2){let e=m();u("cSidebarToggle",e.sidebarId)}}function Sp(t,l){if(t&1){let e=x();a(0,"c-input-group",26)(1,"input",27),b("click",function(){h(e);let i=m();return g(i.openOverlay())}),s(),a(2,"span",28),S(3,"i",29),s()()}}function wp(t,l){if(t&1){let e=x();a(0,"c-sidebar-brand",30)(1,"img",31),b("error",function(i){h(e);let r=m();return g(r.onImageError(i))}),s()()}if(t&2){let e=m();u("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&B(2,rs).includes(e.userType)?B(3,pp):B(4,rs).includes(e.userType)?B(5,up):B(6,mp)),o(),u("src",e.parabluLogo,de)}}function xp(t,l){if(t&1){let e=x();a(0,"app-search-overlay",32),b("close",function(){h(e);let i=m();return g(i.closeOverlay())}),s()}}function kp(t,l){t&1&&It(0)}function Tp(t,l){t&1&&It(0)}function Ip(t,l){t&1&&It(0)}function Ep(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.currentUserProfile())}),S(2,"i",42),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"My Account")))}function Pp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.activityHistory())}),S(2,"i",43),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Activity History")))}function Mp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.unusualActivityHistory())}),S(2,"i",43),d(3," Unusual Activity History "),s()()}}function Dp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.endpointsDownload())}),S(2,"i",44),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Download Agent")))}function Op(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.licenseOptimizer())}),S(2,"i",45),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"License Optimizer")))}function Rp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.packDetails())}),S(2,"i",46),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Current Packs Subscribed")))}function Ap(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.navigateToDownloads())}),S(2,"i",44),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Downloads")))}function Up(t,l){t&1&&(a(0,"li"),S(1,"hr",39),s())}function Fp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.activityHistory())}),S(2,"i",47),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Share Activity History")))}function Bp(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.unusualActivityHistory())}),S(2,"i",43),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Infected Files History")))}function Np(t,l){if(t&1){let e=x();a(0,"li")(1,"a",40),b("click",function(){h(e);let i=m(3);return g(i.miniclouds())}),S(2,"i",48),a(3,"span"),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"MiniClouds")))}function Vp(t,l){t&1&&(a(0,"li"),S(1,"hr",39),s())}function Lp(t,l){t&1&&(a(0,"li"),S(1,"hr",39),s())}function Gp(t,l){if(t&1&&(a(0,"li")(1,"a",49),d(2),v(3,"translate"),s()()),t&2){let e=m(3);o(),u("href",e.quick_startUrl,de),o(),f(_(3,2,"Quick Start Guide"))}}function zp(t,l){if(t&1&&(a(0,"li")(1,"a",49),d(2),v(3,"translate"),s()()),t&2){let e=m(3);o(),u("href",e.administrator_Guide_EndpointUrl,de),o(),f(_(3,2,"Administrator Guide"))}}function Hp(t,l){if(t&1&&(a(0,"li")(1,"a",50),d(2),v(3,"translate"),s()()),t&2){let e=m(3);o(),u("href",e.quick_start_serverUrl,de),o(),f(_(3,2,"Quick Start Guide (Servers)"))}}function jp(t,l){if(t&1&&(a(0,"li")(1,"a",50),d(2),v(3,"translate"),s()()),t&2){let e=m(3);o(),u("href",e.administrator_Guide_ServerUrl,de),o(),f(_(3,2,"Administrator Guide (Servers)"))}}function Wp(t,l){if(t&1&&(a(0,"li")(1,"a",50),d(2),v(3,"translate"),s()()),t&2){let e=m(3);o(),u("href",e.userGuideUrl,de),o(),f(_(3,2,"User Guide"))}}function qp(t,l){t&1&&(a(0,"li"),S(1,"hr",39),s())}function Zp(t,l){t&1&&(a(0,"li")(1,"h6",51),d(2),v(3,"translate"),s()()),t&2&&(o(2),f(_(3,1,"Help & Support")))}function Yp(t,l){t&1&&(a(0,"li")(1,"a",49),S(2,"i",52),d(3," +971 50 158 7321 "),s()()),t&2&&(o(),u("href","https://wa.me/971501587321",de))}function $p(t,l){if(t&1&&(a(0,"li")(1,"a",53),S(2,"i",54),a(3,"span"),d(4),v(5,"translate"),s()()()),t&2){let e=m(3);o(),u("href","mailto:"+e.support_mailId,de),o(3),f(_(5,2,"Send email"))}}function Jp(t,l){t&1&&(a(0,"li"),S(1,"hr",39),s())}function Kp(t,l){if(t&1){let e=x();a(0,"ul",37),w(1,Ep,6,3,"li",38),a(2,"li"),S(3,"hr",39),s(),w(4,Pp,6,3,"li",38)(5,Mp,4,0,"li",38)(6,Dp,6,3,"li",38)(7,Op,6,3,"li",38)(8,Rp,6,3,"li",38)(9,Ap,6,3,"li",38)(10,Up,2,0,"li",38)(11,Fp,6,3,"li",38)(12,Bp,6,3,"li",38)(13,Np,6,3,"li",38)(14,Vp,2,0,"li",38)(15,Lp,2,0,"li",38)(16,Gp,4,4,"li",38)(17,zp,4,4,"li",38)(18,Hp,4,4,"li",38)(19,jp,4,4,"li",38)(20,Wp,4,4,"li",38)(21,qp,2,0,"li",38)(22,Zp,4,3,"li",38)(23,Yp,4,1,"li",38)(24,$p,6,4,"li",38)(25,Jp,2,0,"li",38),a(26,"li")(27,"a",40),b("click",function(){h(e);let i=m(2);return g(i.logout())}),S(28,"i",41),d(29),v(30,"translate"),s()()()}if(t&2){let e=m(2);o(),u("ngIf",!(e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin")),o(3),u("ngIf",e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user"),o(),u("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),o(),u("ngIf",e.inclusionLicenses.includes("backup_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),u("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),u("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(4),f(_(30,24,"Logout"))}}function Qp(t,l){if(t&1){let e=x();a(0,"ul",37)(1,"li")(2,"a",40),b("click",function(){h(e);let i=m(2);return g(i.logout())}),S(3,"i",41),d(4),v(5,"translate"),s()()()}t&2&&(o(4),f(_(5,1,"Logout")))}function Xp(t,l){if(t&1&&(a(0,"c-dropdown",33)(1,"button",34),S(2,"c-avatar",35),s(),w(3,Kp,31,26,"ul",36)(4,Qp,6,3,"ul",36),s()),t&2){let e=m();u("popperOptions",B(5,hp)),o(),u("caret",!1),o(),u("size","md"),o(),u("ngIf",e.userType!="superAdmin"),o(),u("ngIf",e.userType=="superAdmin")}}function e0(t,l){if(t&1){let e=x();a(0,"button",61),b("click",function(){let i=h(e).$implicit,r=m(2);return g(r.changeLanguage(i.key))}),d(1),s()}if(t&2){let e=l.$implicit,n=m(2);Ei(N(3,gp,e.key===n.currentLocale)),o(),M(" ",e.name," ")}}function t0(t,l){if(t&1&&(a(0,"c-dropdown",55)(1,"button",56),S(2,"i",57),a(3,"span",58),d(4),s()(),a(5,"div",59),Te(6,e0,2,5,"button",60,yp),s()()),t&2){let e=m();o(),u("caret",!1),o(3),f(e.showLangName),o(2),Ie(e.SupportedLocales)}}function i0(t,l){if(t&1){let e=x();a(0,"button",66),b("click",function(){h(e);let i=m(2);return g(i.click_Crashplan_Endpoint())}),a(1,"a",67),d(2,"CrashPlan Endpoint"),s()()}if(t&2){let e=m(2);o(),u("href",e.crashplan_Endpoint_Url,de)}}function n0(t,l){if(t&1){let e=x();a(0,"button",68),b("click",function(){let i=h(e).$implicit,r=m(2);return r.colorMode.set(i.name),g(r.applyTheme())}),jt(),S(1,"svg",69),d(2),s()}if(t&2){let e=l.$implicit,n=m(2);u("active",n.colorMode()===e.name)("routerLink",B(4,fp)),o(),u("name",e.icon),o(),M(" ",e.text," ")}}function r0(t,l){if(t&1&&(w(0,i0,3,1,"button",62),a(1,"c-dropdown",55)(2,"button",63),jt(),S(3,"svg",64),s(),Ti(),a(4,"div",59),Te(5,n0,3,5,"button",65,bp),s()()),t&2){let e=m();u("ngIf",e.crashplan_Endpoint_Url),o(2),u("caret",!1),o(),u("name",e.icons()),o(2),Ie(e.colorModes)}}function o0(t,l){t&1&&(a(0,"th",73),d(1),v(2,"translate"),s()),t&2&&(o(),f(_(2,1,"Servers")))}function a0(t,l){t&1&&(a(0,"td",76)(1,"span"),d(2),v(3,"translate"),s()()),t&2&&(o(2),f(_(3,1,"-")))}function s0(t,l){if(t&1&&(a(0,"tr")(1,"td",76)(2,"div"),d(3),s()(),a(4,"td",76)(5,"div"),d(6),s()(),a(7,"td",76)(8,"div"),d(9),s()(),a(10,"td",76)(11,"div"),d(12,"-"),s()()()),t&2){let e=l.$implicit;o(3),f(e.skuCode),o(3),f(e.storageSize),o(3),f(e.minUserCount)}}function l0(t,l){if(t&1&&(a(0,"tr")(1,"td",76)(2,"div"),d(3),s()(),a(4,"td",76)(5,"div"),d(6,"-"),s()(),a(7,"td",76)(8,"div"),d(9),s()(),a(10,"td",76)(11,"div"),d(12),s()()()),t&2){let e=l.$implicit;o(3),f(e.skuCode),o(6),f(e.storageSize),o(3),f(e.minUserCount)}}function c0(t,l){if(t&1&&(kt(0),w(1,l0,13,3,"tr",79),Tt()),t&2){let e=m(2);o(),u("ngForOf",e.serverPacks)}}function d0(t,l){if(t&1&&(a(0,"td",76)(1,"span")(2,"b"),d(3),s()()()),t&2){let e=m(2);o(3),f(e.totalServer)}}function p0(t,l){if(t&1&&(a(0,"app-modal",70)(1,"c-row")(2,"table",71)(3,"thead",72)(4,"tr")(5,"th",73),d(6,"Pack Name "),s(),a(7,"th",73)(8,"p",74),d(9),v(10,"translate"),s(),a(11,"p",74),d(12),v(13,"translate"),s()(),a(14,"th",73),d(15,"Users"),s(),w(16,o0,3,3,"th",75),s()(),a(17,"tbody")(18,"tr")(19,"td",76)(20,"span")(21,"a",77),d(22),s(),S(23,"br"),a(24,"span"),d(25),v(26,"translate"),s()()(),a(27,"td",76)(28,"span"),d(29),s()(),a(30,"td",76)(31,"span"),d(32),s()(),w(33,a0,4,3,"td",78),s(),w(34,s0,13,3,"tr",79)(35,c0,2,1,"ng-container",38),a(36,"tr",76)(37,"td",76)(38,"span")(39,"b"),d(40),v(41,"translate"),s()()(),a(42,"td",76)(43,"span")(44,"b"),d(45),s()()(),a(46,"td",76)(47,"span")(48,"b"),d(49),s()()(),w(50,d0,4,1,"td",78),s()()()()()),t&2){let e=m();u("modalSize","modal-lg")("modalWidth","90%")("footerButtons",N(32,_p,N(30,vp,e.closePackDetails))),o(2),u("hover",!0)("responsive",!0)("striped",!0),o(7),f(_(10,22,"Managed Data")),o(3),f(_(13,24,"(GB)")),o(4),u("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),o(5),qe("cTooltip","(Subscribed On : ",e.getFormattedDate(e.subscriptionStartDate)," )"),o(),M(" ",e.skuCode,""),o(3),f(_(26,26,"(Base Pack)")),o(4),f(e.storageSize),o(3),f(e.minUserCount),o(),u("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),o(),u("ngForOf",e.userPacks),o(),u("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")),o(5),f(_(41,28,"Total")),o(5),f(e.totalStorage),o(4),f(e.totalUser),o(),u("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled"))}}function u0(t,l){if(t&1){let e=x();a(0,"app-crashplan-nav",80),b("closeModalHandler",function(){h(e);let i=m();return g(i.close_Crashplan_Endpoint())}),s()}}var os=(()=>{class t extends aa{#t;#e;#i;constructor(e,n,i,r,p,c,y,k,I,E,D,P){let O=e.Token;(!O||O.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=r,this.apiService=p,this.cdr=c,this.toastr=y,this.datePipe=k,this.licenseCheckService=I,this.TranslateService=E,this.userRoleService=D,this.dashboardService=P,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=ze(Pn),this.#e=ze($o),this.colorMode=this.#e.colorMode,this.#i=ze(on),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=fn(()=>{let F=this.colorMode();return this.colorModes.find(te=>te.name===F)?.icon??"cilSun"}),this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.guideUrlSrc=[this.commonAssetUrl+"Quick_start.pdf",this.commonAssetUrl+"Administrator_Guide_Endpoint.pdf",this.commonAssetUrl+"Quick_start_server.pdf",this.commonAssetUrl+"Administrator_Guide_Server.pdf",this.commonAssetUrl+"User_Guide.pdf"],this.isMsAppConsented=!1,this.isEwsAppConsented=!1,this.assetsConfigured=!1,this.displayConsentRemainder="none",this.displayAssetConfigurationRemainder="none",this.isFirstLogin="false",this.isLocalUser="false",this.currentLocale="en",this.showLangName="English",this.SupportedLocales=[{key:"en",name:"English"},{key:"fr",name:"Fran\xE7ais"},{key:"de",name:"Deutsch"},{key:"pt",name:"Portugu\xEAs"},{key:"pl",name:"Polski"},{key:"nl",name:"Nederlands"},{key:"it",name:"Italiano"},{key:"es",name:"Espa\xF1ol (Espa\xF1a)"}],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(Ji(1),Z(F=>F.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),Vt(F=>["dark","light","auto"].includes(F)),L(F=>{this.colorMode.set(F)}),Wo(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 j(this,null,function*(){this.currentLocale=this.TranslateService.currentLang,this.showLangName=this.SupportedLocales.find(n=>this.currentLocale===n.key)?.name||"English",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 tt&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus())})})}setBrandLogo(){return j(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}changeLanguage(e){return j(this,null,function*(){document.cookie="LANG="+e+"; path=/; SameSite=Lax; Secure",this.TranslateService.use(e),this.currentLocale=e,this.showLangName=this.SupportedLocales.find(n=>this.currentLocale===n.key)?.name||"English",window.location.reload()})}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),i=JSON.parse(n);this.statistics=e.body.MSPCloudOverviewElement,e.body.MSPCloudOverviewElement?.packs&&e.body.MSPCloudOverviewElement.packs.length>0&&e.body.MSPCloudOverviewElement.packs.forEach((r,p)=>{if(r.subscriptionActive){this.skuCode=r.skuCode,this.packModel=r.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(r.storageSize),this.totalUser=Number(r.minUserCount),this.storageSize=r.storageSize.toString(),this.minUserCount=r.minUserCount.toString(),this.customerId=r.customerId,this.referenceNumber=r.referenceNumber;let c=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(k=>{k.subscriptionActive&&!k.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))});let y=0;r.addons&&r.addons.length>0&&r.addons.forEach(k=>{k.skuCode.startsWith("ADSER")&&k.subscriptionActive&&(this.serverPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))})}}),this.cdr.detectChanges()},e=>{switch(e.status){case 400:break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("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),i=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.\u0275fac=function(n){return new(n||t)(C($),C(se),C(Ke),C(le),C(J),C(Ue),C(we),C(Be),C(vt),C(Q),C(me),C(bi))}}static{this.\u0275cmp=V({type:t,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[re([Be,$,J,bi]),ve],decls:56,vars:35,consts:[["userDropdown",""],["localeDropdown",""],["themeDropdown",""],[1,"px-4",3,"fluid"],["cHeaderToggler","","class","btn","toggle","visible","style","margin-inline-start: -14px;","aria-label","Toggle sidebar navigation",3,"cSidebarToggle",4,"ngIf"],["class","col-lg-3","style","width: 30% !important;",4,"ngIf"],["style","max-width: 12%;cursor: pointer;",3,"routerLink",4,"ngIf"],[3,"close",4,"ngIf"],[1,"mx-0"],[4,"ngTemplateOutlet"],["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"],["alignment","end","variant","nav-item"],["cDropdownToggle","","aria-label","Open locale picker",3,"caret"],[1,"fa","fa-language"],[1,"selected-lang"],["cDropdownMenu",""],["cDropdownItem","",3,"class"],["cDropdownItem","",3,"click"],["class","endpoint-btn",3,"click",4,"ngIf"],["cDropdownToggle","","aria-label","Open theme picker",3,"caret"],["cIcon","","size","lg",3,"name"],["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,i){if(n&1){let r=x();kt(0),a(1,"c-container",3),w(2,Cp,2,1,"button",4)(3,Sp,4,0,"c-input-group",5)(4,wp,2,7,"c-sidebar-brand",6)(5,xp,1,0,"app-search-overlay",7),a(6,"c-header-nav",8),w(7,kp,1,0,"ng-container",9)(8,Tp,1,0,"ng-container",9)(9,Ip,1,0,"ng-container",9),s()(),Tt(),w(10,Xp,5,6,"ng-template",null,0,Pt)(12,t0,8,2,"ng-template",null,1,Pt)(14,r0,7,3,"ng-template",null,2,Pt)(16,p0,51,34,"app-modal",10)(17,u0,1,0,"app-crashplan-nav",11),a(18,"div",12)(19,"div",13)(20,"div",14)(21,"div",15)(22,"h4",16),d(23,"Step 1: Provide Consent"),s(),a(24,"a",17),S(25,"i",18),s()(),a(26,"div",19)(27,"h4"),d(28),v(29,"translate"),s(),a(30,"c-callout",20),d(31),v(32,"translate"),s()(),a(33,"div",21)(34,"button",22),b("click",function(){return h(r),g(i.denyConsentFlow())}),d(35,"Cancel"),s(),a(36,"button",23),b("click",function(){return h(r),g(i.proceedForConsentFlow())}),d(37,"Proceed"),s()()()()(),a(38,"div",12)(39,"div",13)(40,"div",14)(41,"div",15)(42,"h4",16),d(43),v(44,"translate"),s()(),a(45,"div",19)(46,"h4"),d(47),v(48,"translate"),s()(),a(49,"div",21)(50,"button",22),b("click",function(){return h(r),g(i.denyAssetConfigurationFlow())}),d(51),v(52,"translate"),s(),a(53,"button",23),b("click",function(){return h(r),g(i.proceedForAssetConfigurationFlow())}),d(54),v(55,"translate"),s()()()()()}if(n&2){let r=Y(11),p=Y(13),c=Y(15);o(),u("fluid",!0),o(),u("ngIf",!i.showCenterBrandLogo),o(),u("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")&&!B(30,dp).includes(i.userType)),o(),u("ngIf",i.showCenterBrandLogo),o(),u("ngIf",i.isOverlayVisible),o(2),u("ngTemplateOutlet",p),o(),u("ngTemplateOutlet",c),o(),u("ngTemplateOutlet",r),o(7),u("ngIf",i.stylePackDetails),o(),u("ngIf",i.showCrashplanEndpointLicenseModal),o(),u("ngStyle",N(31,ns,i.displayConsentRemainder)),o(10),f(_(29,18,"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.")),o(3),f(_(32,20,"Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.")),o(7),u("ngStyle",N(33,ns,i.displayAssetConfigurationRemainder)),o(5),f(_(44,22,"Step 2: Configure Assets")),o(4),M(" ",_(48,24,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with assetconfiguration?"),""),o(4),f(_(52,26,"Cancel")),o(3),f(_(55,28,"Proceed"))}},dependencies:[pi,Qa,la,mi,hi,No,sa,ii,Sn,Xo,Qo,si,Ko,ea,Jo,li,di,ci,is,ue,et,ae,Fe,pe,Se,gi,at,yi,Yo,Ce],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}.selected-lang[_ngcontent-%COMP%]{font-size:.8em;border-radius:4px;padding:3px;background:#d3d3d3;margin:2px}"]})}}return t})();var m0=4,h0=.001,g0=1e-7,f0=10,Ut=11,Si=1/(Ut-1),v0=typeof Float32Array=="function";function as(t,l){return 1-3*l+3*t}function ss(t,l){return 3*l-6*t}function ls(t){return 3*t}function wi(t,l,e){return((as(l,e)*t+ss(l,e))*t+ls(l))*t}function cs(t,l,e){return 3*as(l,e)*t*t+2*ss(l,e)*t+ls(l)}function _0(t,l,e,n,i){let r,p,c=0;do p=l+(e-l)/2,r=wi(p,n,i)-t,r>0?e=p:l=p;while(Math.abs(r)>g0&&++c<f0);return p}function y0(t,l,e,n){for(let i=0;i<m0;++i){let r=cs(l,e,n);if(r===0)return l;let p=wi(l,e,n)-t;l-=p/r}return l}function b0(t){return t}function C0(t,l,e,n){if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===l&&e===n)return b0;let i=v0?new Float32Array(Ut):new Array(Ut);for(let p=0;p<Ut;++p)i[p]=wi(p*Si,t,e);function r(p){let c=0,y=1,k=Ut-1;for(;y!==k&&i[y]<=p;++y)c+=Si;--y;let I=(p-i[y])/(i[y+1]-i[y]),E=c+I*Si,D=cs(E,t,e);return D>=h0?y0(p,E,t,e):D===0?E:_0(p,c,c+Si,t,e)}return function(c){return c===0?0:c===1?1:wi(r(c),l,n)}}var S0=new Je("SMOOTH_SCROLL_OPTIONS"),ds=(()=>{class t{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(e,n,i){this._document=e,this._platform=n,this._onGoingScrolls=new Map,this._defaultOptions=q({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},i)}_scrollElement(e,n,i){e.scrollLeft=n,e.scrollTop=i}_getElement(e,n){return typeof e=="string"?(n||this._document).querySelector(e):qo(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new Oe).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return Re(K(e,"wheel",{passive:!0,capture:!0}),K(e,"touchmove",{passive:!0,capture:!0}),n).pipe($i(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new $e(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let r=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*r,e.currentY=e.startY+(e.y-e.startY)*r,this._scrollElement(e.scrollable,e.currentX,e.currentY),Nt.schedule(()=>n.next(e))})}_applyScrollToOptions(e,n){if(!n.duration)return this._scrollElement(e,n.left,n.top),Promise.resolve();let i=this._initSmoothScroll(e),r={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:C0(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(p=>{Ge(null).pipe(Ki(()=>this._step(r).pipe(en(c=>this._isFinished(c,i,p)))),ge(this._interrupted(e,i)),Qi(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(vn(this._platform)){let i=this._getElement(e),r=getComputedStyle(i).direction==="rtl",p=_i(),c=xe(q(q({},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 c.bottom!=null&&(c.top=i.scrollHeight-i.clientHeight-c.bottom),r&&p!==0?(c.left!=null&&(c.right=i.scrollWidth-i.clientWidth-c.left),p===2?c.left=c.right:p===1&&(c.left=c.right?-c.right:c.right)):c.right!=null&&(c.left=i.scrollWidth-i.clientWidth-c.right),this._applyScrollToOptions(i,c)}return Promise.resolve()}scrollToElement(e,n,i={}){let r=this._getElement(e),p=this._getElement(n,r),c=xe(q({},i),{left:p.offsetLeft+(i.left||0),top:p.offsetTop+(i.top||0)});return p?this.scrollTo(r,c):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(G(oe),G(sn),G(S0,8))}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var x0=["scrollbarY"],k0=["scrollbarX"],T0=["*"];function I0(t,l){if(t&1&&S(0,"scrollbar-x",null,0),t&2){let e=m(2);je("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function E0(t,l){if(t&1&&S(0,"scrollbar-y",null,1),t&2){let e=m(2);je("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function P0(t,l){if(t&1&&(kt(0),w(1,I0,2,2,"scrollbar-x",5)(2,E0,2,2,"scrollbar-y",5),Tt()),t&2){let e=m();o(),u("ngIf",e.state.horizontalUsed),o(),u("ngIf",e.state.verticalUsed)}}var M0=(()=>{class t{constructor(e){this.el=e}set ngAttr(e){for(let[n,i]of Object.entries(e))this.el.nativeElement.setAttribute(n,i)}static{this.\u0275fac=function(n){return new(n||t)(C(X))}}static{this.\u0275dir=ie({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function hs(t){return L(()=>{t.onselectstart=()=>!1})}function gs(t){return L(()=>{t.onselectstart=null})}function Le(){return L(t=>t.stopPropagation())}function Fi(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var Bi=(()=>{class t{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(e){this.viewPort=e,this.nativeElement=e.nativeElement}activatePointerEvents(e,n){this.hovered=new $e(i=>{let r=K(this.nativeElement,"mousemove",{passive:!0}),p=e?r:r.pipe(Le()),c=K(this.nativeElement,"mouseleave",{passive:!0}).pipe(Z(()=>!1));Re(p,c).pipe(L(y=>i.next(y)),ge(n)).subscribe()}),this.clicked=new $e(i=>{let r=K(this.nativeElement,"mousedown",{passive:!0}).pipe(L(c=>i.next(c))),p=K(this.nativeElement,"mouseup",{passive:!0}).pipe(L(()=>i.next(!1)));r.pipe(St(()=>p),ge(n)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(e){this.nativeElement.className+=` ng-native-scrollbar-hider ng-scroll-viewport ${e}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(e){this.nativeElement.scrollTop=e}scrollXTo(e){this.nativeElement.scrollLeft=e}static{this.\u0275fac=function(n){return new(n||t)(C(X))}}static{this.\u0275dir=ie({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),_e=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=ie({type:t,standalone:!1})}}return t})(),Li=(()=>{class t{get clicked(){let e=K(this.trackElement,"mousedown",{passive:!0}).pipe(Le(),hs(this.document)),n=K(this.document,"mouseup",{passive:!0}).pipe(Le(),gs(this.document),St(()=>Wi));return Re(e,n)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(e,n,i){this.cmp=e,this.trackElement=n,this.document=i}onTrackClicked(e,n,i){return Ge(e).pipe(Z(r=>r[this.pageProperty]),Z(r=>(r-this.offset-n/2)/this.size*i),L(r=>{this.cmp.scrollTo(xe(q({},this.mapToScrollToOption(r)),{duration:Mi(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(HTMLElement),C(Document))}}static{this.\u0275dir=ie({type:t,standalone:!1})}}return t})(),Ni=(()=>{class t extends Li{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{left:e}}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(X),C(oe))}}static{this.\u0275dir=ie({type:t,selectors:[["","scrollbarTrackX",""]],features:[ve]})}}return t})(),Vi=(()=>{class t extends Li{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{top:e}}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(X),C(oe))}}static{this.\u0275dir=ie({type:t,selectors:[["","scrollbarTrackY",""]],features:[ve]})}}return t})(),fs=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return K(this.thumbElement,"mousedown",{passive:!0}).pipe(Le())}constructor(e,n,i,r){this.cmp=e,this.track=n,this.thumbElement=i,this.document=r,this._dragging=new Oe,this.dragging=this._dragging.pipe(Lt())}update(){let e=D0(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=O0(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);Nt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,r=Ge(e).pipe(hs(this.document),L(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),p=K(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Le()),c=K(this.document,"mouseup",{capture:!0}).pipe(Le(),gs(this.document),L(()=>this.setDragging(!1)));return r.pipe(Z(y=>y[this.pageProperty]),Z(y=>y-this.dragStartOffset),qi(y=>p.pipe(Z(k=>k[this.clientProperty]),Z(k=>k-this.track.offset),Z(k=>i*(k-y)/n),Z(k=>this.handleDrag(k,i)),L(k=>this.scrollTo(k)),ge(c))))}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(Li),C(HTMLElement),C(Document))}}static{this.\u0275dir=ie({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function D0(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function O0(t,l,e){return t*e/l}var ps=(()=>{class t extends fs{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(e,n,i,r,p){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r,this.dir=p}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(Ni),C(X),C(oe),C(Di))}}static{this.\u0275dir=ie({type:t,selectors:[["","scrollbarThumbX",""]],features:[ve]})}}return t})(),us=(()=>{class t extends fs{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(e,n,i,r){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`}handleDrag(e){return e}handleDirection(e){return e}setDragging(e){this.cmp.setDragging({verticalDragging:e})}scrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=function(n){return new(n||t)(C(_e),C(Vi),C(X),C(oe))}}static{this.\u0275dir=ie({type:t,selectors:[["","scrollbarThumbY",""]],features:[ve]})}}return t})(),vs=(()=>{class t{constructor(e,n,i,r,p){this.el=e,this.cmp=n,this.platform=i,this.document=r,this.zone=p,this.destroyed=new Oe}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new Oe,this.viewportThumbClicked=new Oe,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(Z(r=>r?Fi(r,this.el.getBoundingClientRect()):!1),Lt(),L(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe(L(r=>{r?Fi(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):Fi(r,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(r)):this.cmp.setClicked(!1)}),ge(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),Re(i.pipe(L(r=>this.setHovered(r))),e.pipe(St(r=>this.thumb.dragged(r))),n.pipe(St(r=>this.track.onTrackClicked(r,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=K(this.el,"mouseenter",{passive:!0}).pipe(Le(),Z(()=>!0)),n=K(this.el,"mouseleave",{passive:!0}).pipe(Le(),Z(()=>!1));return Re(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(ge(this.destroyed)).subscribe(),Re(this.cmp.scrolled,this.cmp.updated).pipe(L(()=>this.thumb?.update()),ge(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}static{this.\u0275fac=function(n){return new(n||t)(C(HTMLElement),C(_e),C(it),C(Document),C(be))}}static{this.\u0275dir=ie({type:t,standalone:!1})}}return t})(),R0=(()=>{class t extends vs{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(C(X),C(_e),C(it),C(oe),C(be))}}static{this.\u0275cmp=V({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(W(Vi,7),W(us,7)),n&2){let r;z(r=H())&&(i.track=r.first),z(r=H())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&ke("scrollbar-control",!0)},features:[ve],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(a(0,"div",0),S(1,"div",1),s()),n&2&&(xt("ng-scrollbar-track ",i.cmp.trackClass,""),o(),xt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Vi,us],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%}  .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:unset;right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0})}}return t})(),A0=(()=>{class t extends vs{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(C(X),C(_e),C(it),C(oe),C(be))}}static{this.\u0275cmp=V({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(W(Ni,7),W(ps,7)),n&2){let r;z(r=H())&&(i.track=r.first),z(r=H())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&ke("scrollbar-control",!0)},features:[ve],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(a(0,"div",0),S(1,"div",1),s()),n&2&&(xt("ng-scrollbar-track ",i.cmp.trackClass,""),o(),xt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Ni,ps],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%}  .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset}  .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0})}}return t})(),U0=new Je("NG_SCROLLBAR_OPTIONS"),ms={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},_s=(()=>{class t{constructor(e){this.globalOptions=e?q(q({},ms),e):ms,this.rtlScrollAxisType=_i()}static{this.\u0275fac=function(n){return new(n||t)(G(U0,8))}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),F0=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new ji(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&K(this.document.defaultView,"resize",{passive:!0}).pipe(ki(this.manager.globalOptions.windowResizeDebounce),Z(()=>this.getNativeScrollbarSize()),Lt(),L(r=>this._scrollbarSize.next(r))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n}static{this.\u0275fac=function(n){return new(n||t)(G(oe),G(_s),G(it))}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),B0=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=Hi.EMPTY,this._subscriber=i.scrollbarSize.subscribe(r=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${r}px`,ln.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(C(X),C(Ke),C(F0))}}static{this.\u0275dir=ie({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),N0=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=Mi(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ne(e),this._disabled?this._unsubscribe():this._subscribe()}constructor(e,n,i){if(this.zone=e,this.platform=n,this.scrollbar=i,this._disabled=!1,this._currentSubscription=null,this.event=new fe,!i)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){let e=new $e(n=>{this._resizeObserver=new ResizeObserver(i=>n.next(i)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?e.pipe(ki(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(C(be),C(it),C(_e))}}static{this.\u0275dir=ie({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),ys=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ne(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=Ne(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=Ne(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=Ne(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=Ne(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=Ne(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,r,p,c){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=r,this.smoothScroll=p,this.manager=c,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 fe,this.state={},this.destroyed=new Oe}updateState(){let e=!1,n=!1,i=!1,r=!1;(this.track==="all"||this.track==="vertical")&&(i=this.viewport.scrollHeight>this.viewport.clientHeight,e=this.visibility==="always"||i),(this.track==="all"||this.track==="horizontal")&&(r=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||r),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:i,isHorizontallyScrollable:r})}setState(e){this.state=q(q({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(L(i=>n=i),Z(i=>i.target[e]),Xi(),Vt(([i,r])=>i!==r),Z(()=>n))}setHovered(e){this.zone.run(()=>this.setState(q({},e)))}setDragging(e){this.zone.run(()=>this.setState(q({},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=K(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(Yi(this.scrollAuditTime)):e,this.scrolled=e.pipe(ge(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(L(()=>this.update()),ge(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(e){return this.smoothScroll.scrollTo(this.viewport.nativeElement,e)}scrollToElement(e,n){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,e,n)}updateHeight(){this.appearance==="standard"&&this.scrollbarX?this.nativeElement.style.height=`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:this.nativeElement.style.height=`${this.viewport.contentHeight}px`}updateWidth(){this.appearance==="standard"&&this.scrollbarY?this.nativeElement.style.width=`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:this.nativeElement.style.width=`${this.viewport.contentWidth}px`}static{this.\u0275fac=function(n){return new(n||t)(C(X),C(be),C(Ue),C(Di),C(ds),C(_s))}}static{this.\u0275cmp=V({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,r){if(n&1&&hn(r,Bi,7),n&2){let p;z(p=H())&&(i.customViewPort=p.first)}},viewQuery:function(n,i){if(n&1&&(W(x0,5,X),W(k0,5,X),W(Bi,7)),n&2){let r;z(r=H())&&(i.scrollbarY=r.first),z(r=H())&&(i.scrollbarX=r.first),z(r=H())&&(i.defaultViewPort=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&ke("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:[re([{provide:_e,useExisting:t}]),Ht],ngContentSelectors:T0,decls:6,vars:4,consts:[["scrollbarX",""],["scrollbarY",""],[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"resizeSensor","sensorDebounce","sensorDisabled"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"]],template:function(n,i){n&1&&(un(),a(0,"div",2)(1,"div",3),b("resizeSensor",function(){return i.update()}),a(2,"div",4)(3,"div"),mn(4),s()()(),w(5,P0,3,2,"ng-container",5),s()),n&2&&(u("ngAttr",i.state),o(),u("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),o(4),u("ngIf",!i.disabled))},dependencies:[ae,M0,N0,Bi,B0,A0,R0],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0})}}return t})();var bs=t=>[{name:t.instant("Dashboard"),url:"/dashboard",icon:"fa-solid fa-house",visible:!0,key:"Dashboard"},{name:t.instant("My BluVault"),url:"/bluvault",icon:"fa-solid fa-database",visible:!0,key:"My BluVault"},{name:t.instant("Settings"),url:"/settings",icon:"fa-solid fa-gears",visible:!0,key:"Settings"},{name:t.instant("Manage assets"),url:"/manageAssets",icon:"fa-solid fa-cubes",visible:!0,key:"Manage assets"},{name:t.instant("Policy Management"),url:"/pms",icon:"fa-regular fa-file-lines",visible:!0,key:"Policy Management"},{name:t.instant("User Migration"),url:"/userMigration",icon:"fa-solid fa-arrow-right-arrow-left",visible:!0,key:"User Migration"},{name:t.instant("Users"),url:"/users",icon:"fa-solid fa-users",visible:!0,key:"Users"},{name:t.instant("Unusual Activity Dashboard"),url:"/manageUnusualActivities",icon:"fa-solid fa-shield",visible:!0,key:"Unusual Activity Dashboard"},{name:t.instant("Support"),url:"/support",icon:"fa-solid fa-headset",visible:!0,key:"Support"},{name:t.instant("Downloads"),url:"/downloads",icon:"fa-solid fa-cloud-arrow-down",visible:!0,key:"Downloads"}];var Cs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Yt({type:t});static \u0275inj=Gt({imports:[Ma]})}return t})();function V0(t,l){t&1&&(a(0,"div",0),S(1,"div",1),s())}var Ss=(()=>{class t{constructor(e,n){this.loadingService=e,this.router=n,this.detectRouteTransitions=!1,this.loading$=this.loadingService.loading$}ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe(L(e=>{e instanceof In?this.loadingService.loadingOn():e instanceof En&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(C($t),C(se))}}static{this.\u0275cmp=V({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(w(0,V0,2,0,"div",0),v(1,"async")),n&2&&We(_(1,1,i.loading$)?0:-1)},dependencies:[Cs,wn],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 t})();var xi={provide:"httpHeaders",useFactory:t=>new _n({"Content-Type":"application/json",Accept:"application/json",token:t.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[$]};var ws=()=>["admin","delegatedAdmin","readOnlyAdmin"],L0=()=>["/mspDashboard"],G0=()=>["/dashboard"],z0=()=>["/bluvault"],H0=()=>({"pointer-events":"none",cursor:"unset"}),j0=()=>({});function W0(t,l){t&1&&(a(0,"c-sidebar-footer",15),S(1,"button",16),s())}function q0(t,l){if(t&1){let e=x();a(0,"c-sidebar",9,0)(2,"c-sidebar-header",10)(3,"c-sidebar-brand",11)(4,"img",12),b("error",function(i){h(e);let r=m();return g(r.onImageError(i))}),s()()(),a(5,"ng-scrollbar",13,1),b("updated",function(){h(e);let i=Y(6),r=m();return g(r.onScrollbarUpdate(i.state))}),S(7,"c-sidebar-nav",14,2),s(),w(9,W0,2,0,"c-sidebar-footer",15),s()}if(t&2){let e=Y(1),n=m();o(3),u("routerLink",n.isMspEnabled&&B(5,ws).includes(n.userType)?B(6,L0):B(7,ws).includes(n.userType)?B(8,G0):B(9,z0))("ngStyle",n.userType==="superAdmin"?B(10,H0):B(11,j0)),o(),u("src",n.parabluLogo,de),o(3),u("navItems",n.navItems),o(2),We(e.narrow?-1:9)}}var xs=(()=>{class t{constructor(e,n,i,r){this.sharedService=e,this.licenseCheckService=n,this.userRoleService=i,this.TranslateService=r,this.navItems=[],this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"];let p=localStorage.getItem("theme-default"),c=p||localStorage.setItem("theme-default",'"light"');this.parabluLogo=c==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return j(this,null,function*(){this.navItems=bs(this.TranslateService),this.userType=yield this.userRoleService.getUserRole(),this.navItems=yield this.getFilteredNavItems()})}onScrollbarUpdate(e){}getFilteredNavItems(){return j(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.\u0275fac=function(n){return new(n||t)(C(le),C(vt),C(me),C(Q))}}static{this.\u0275cmp=V({type:t,selectors:[["app-dashboard"]],features:[re([xi,gt,ft,Fa,Va])],decls:8,vars:3,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],["class","d-print-none sidebar sidebar-fixed border-end","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll"],[1,"body","flex-grow-1"],["breakpoint","lg",1,"h-auto","px-4"],[3,"detectRouteTransitions"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink","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,i){n&1&&(w(0,q0,10,12,"c-sidebar",3),a(1,"div",4),S(2,"app-default-header",5),a(3,"div",6)(4,"c-container",7),S(5,"router-outlet"),s()(),S(6,"loading-indicator",8)(7,"app-default-footer"),s()),n&2&&(u("ngIf",i.showSideBar),o(2),u("cShadowOnScroll","sm"),o(4),u("detectRouteTransitions",!0))},dependencies:[ua,ha,mi,ii,ys,fa,ga,hi,ma,os,Zo,pi,ti,ue,ae,Fe,Ka,Ss],styles:["[_nghost-%COMP%]   .ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-padding: 1px;--scrollbar-size: 5px;--scrollbar-thumb-color: var(--cui-gray-500, #999);--scrollbar-thumb-hover-color: var(--cui-gray-400, #999);--scrollbar-hover-size: calc(var(--scrollbar-size) * 1.5)}"]})}}return t})();var ks=(()=>{class t{constructor(e,n){this.toastr=e,this.TranslateService=n}showOnSuccess(){this.toastr.success(this.TranslateService.instant("Successfully Added...."),this.TranslateService.instant("Success"))}static{this.\u0275fac=function(n){return new(n||t)(C(we),C(Q))}}static{this.\u0275cmp=V({type:t,selectors:[["app-toastalert"]],decls:6,vars:6,consts:[["cButton","","color","success",1,"m-1",3,"click"]],template:function(n,i){n&1&&(a(0,"p"),d(1),v(2,"translate"),s(),a(3,"button",0),b("click",function(){return i.showOnSuccess()}),d(4),v(5,"translate"),s()),n&2&&(o(),f(_(2,2,"toastalert works!")),o(3),f(_(5,4,"Add toast")))},dependencies:[Ce],encapsulation:2})}}return t})();var T=(()=>{class t{constructor(e,n,i,r){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=r}canActivate(e,n){return j(this,null,function*(){let i=yield this.userRoleService.getUserRole(),r=e.data?.roles;if(r&&i&&r.includes(i))return!0;let p=this.authService.Token;return!p||p.trim()===""||i=="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1})}static{this.\u0275fac=function(n){return new(n||t)(G(se),G(le),G($),G(me))}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Z0=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],Y0=[import("./chunk-IGNFG6C7.js"),import("./chunk-CK66JI4Y.js"),import("./chunk-GZDAO5LC.js"),import("./chunk-7ZIOL554.js"),import("./chunk-3L2HMT2S.js"),import("./chunk-PDPS6APY.js")],$0=["/edit"],J0=[import("./chunk-DP5KKTH4.js")],Ts=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:xs,children:[{path:"dashboard",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HL3GGIJU.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LNH3IXTT.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NHHGO3EU.js").then(t=>t.routes)},{path:"bluvault",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-FRB7LQU6.js").then(t=>t.routes)},{path:"backup/files",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-CYO6EIUM.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-XXH6HEO2.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YIVVLC4Q.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZFN3IR2A.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YIVVLC4Q.js").then(t=>t.routes)},{path:"pms",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NM2XYMEY.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WLZROFOU.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-R57Y37AK.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HQGVNTG6.js").then(t=>t.routes)},...Z0.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>Y0[l].then(e=>e.routes)})),...$0.map((t,l)=>({path:`pms/spAdmin/:productKey${t}`,canActivate:[T],data:{roles:["superAdmin"]},loadChildren:()=>J0[l].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UND6OXLV.js").then(t=>t.routes)},{path:"settings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DBDMODJW.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MBBUUVUS.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Z7CE3VGB.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-G5XV3EHA.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-5V5GMFDB.js").then(t=>t.routes)},{path:"azure",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-G5XV3EHA.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-SXPBG7Q7.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BCXJMZT4.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JBOJCEKR.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FPOS42ZY.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-TQNFGIH4.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YSIOT5ZB.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZI4EJSEQ.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KLHNJAHC.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-KLHNJAHC.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FX77HOKO.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-WJYHGZCQ.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-RLTVIEYX.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-QVFWNGPN.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YSIOT5ZB.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-OZRBUNTK.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-DWUP5XA7.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JDSHSP3A.js").then(t=>t.routes)},{path:"settings/m365Consent",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-Q7BI2BWK.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-DADOZONE.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FPOS42ZY.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JBOJCEKR.js").then(t=>t.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-Q7BI2BWK.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-TQNFGIH4.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YUSBEQH3.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-RNQ7PGQD.js").then(t=>t.routes)},{path:"userMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-7WQ567SV.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-EURNBPD2.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GIDC7DED.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HVO7IO4G.js").then(t=>t.routes)},{path:"users",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-O7DCMQFP.js").then(t=>t.routes)},{path:"users/create",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-H4VKIYQY.js").then(t=>t.routes)},{path:"users/edit",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-KUSVOXNO.js").then(t=>t.routes)},{path:"users/profile",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-BB7ANCBN.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GTMV4OVH.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GTMV4OVH.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-W2EKFJS4.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XLSEGG42.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-R2CGL4YV.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-D2W3RNS6.js").then(t=>t.routes)},{path:"support",canActivate:[T],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-F22U2J63.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-Z3STK42Y.js").then(t=>t.routes)},{path:"downloads",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RFYDVVH5.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZFTYTNXZ.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DWXMCQF3.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KMYVWMMN.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5U2INTZR.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HI7PWSQY.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-SH5BFH3E.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6BXW5HUJ.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MPCNZTEU.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VPMSXJY6.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3E4DDSVA.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-OLNFP5TC.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-INNMKJI5.js").then(t=>t.routes)},{path:"sync/files",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NPFQAZ5I.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2C3WHD4Y.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-VIYORF5O.js").then(t=>t.routes)}]},{path:"toast",component:ks,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-BHXHAIGE.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-OM3SXQQ6.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-MW63YQYF.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-DCLOCCF6.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-DCLOCCF6.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-DCLOCCF6.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-IRQBQZNQ.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-DCLOCCF6.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-DCLOCCF6.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"fileArchivedView",loadComponent:()=>import("./chunk-T4FNDM6K.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-DX4KT6QW.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-HW42WSXS.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-UE5OHNS4.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}},{path:"register",loadComponent:()=>import("./chunk-ABV6AAIT.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[T],loadComponent:()=>import("./chunk-RZUSYXMP.js").then(t=>t.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[T],loadComponent:()=>import("./chunk-EJ3BLWUC.js").then(t=>t.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"Google Drive/policyView",canActivate:[T],loadComponent:()=>import("./chunk-XGAISVGF.js").then(t=>t.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[T],loadComponent:()=>import("./chunk-MTOZ3ECJ.js").then(t=>t.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[T],loadComponent:()=>import("./chunk-F4ECZ2CP.js").then(t=>t.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[T],loadComponent:()=>import("./chunk-N4BONSRM.js").then(t=>t.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var K0="@",Q0=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=ze(rn);loadingSchedulerFn=ze(X0,{optional:!0});_engine;constructor(e,n,i,r,p){this.doc=e,this.delegate=n,this.zone=i,this.animationType=r,this.moduleImpl=p}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-RXBGNB5H.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new tn(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc);let p=new r(this.delegate,this._engine,this.zone);return this.delegate=p,p})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let r=new Gi(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(p=>{let c=p.createRenderer(e,n);r.use(c),this.scheduler??=this.injector.get(an,null,{optional:!0}),this.scheduler?.notify(10)}).catch(p=>{r.use(i)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(n){cn()};static \u0275prov=ce({token:t,factory:t.\u0275fac})}return t})(),Gi=class{delegate;replay=[];\u0275type=1;constructor(l){this.delegate=l}use(l){if(this.delegate=l,this.replay!==null){for(let e of this.replay)e(l);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(l,e){return this.delegate.createElement(l,e)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}get destroyNode(){return this.delegate.destroyNode}appendChild(l,e){this.delegate.appendChild(l,e)}insertBefore(l,e,n,i){this.delegate.insertBefore(l,e,n,i)}removeChild(l,e,n){this.delegate.removeChild(l,e,n)}selectRootElement(l,e){return this.delegate.selectRootElement(l,e)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,e,n,i){this.delegate.setAttribute(l,e,n,i)}removeAttribute(l,e,n){this.delegate.removeAttribute(l,e,n)}addClass(l,e){this.delegate.addClass(l,e)}removeClass(l,e){this.delegate.removeClass(l,e)}setStyle(l,e,n,i){this.delegate.setStyle(l,e,n,i)}removeStyle(l,e,n){this.delegate.removeStyle(l,e,n)}setProperty(l,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(l,e,n)),this.delegate.setProperty(l,e,n)}setValue(l,e){this.delegate.setValue(l,e)}listen(l,e,n,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith(K0)}},X0=new Je("");function Ft(t="animations"){return Wt("NgAsyncAnimations"),nn([{provide:Zt,useFactory:(l,e,n)=>new Q0(l,e,n,t),deps:[oe,Xt,be]},{provide:wt,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Is={providers:[bn(),Mn(Ts,Rn({onSameUrlNavigation:"reload"}),Dn({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),On(),An()),zt(va,ta),ni,$a(),Ft("noop"),Ua({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Ft(),Ve]};var Es={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:La,Add_Exclusion_Folder:Ga,Add_Exception_Folder:za},{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:Oi,Add_Exclusion_Folder:Ri},{title:"OneDriveforBusiness",key:"ODB",key2:"ONEDRIVE",key3:"OneDrive",licenceKey:"onedrive_backup_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,showBulkMapping:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"onedrivearchivingenabled",contentSearch:"contentsearchenabledforonedrive"},routes:{policy:"oneDrivePolicy",viewPolicy:"onedrivePolicyView"},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileOnedrive",show:"activeUsersOnedrive"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveOneDriveUsers} / %{noOfOneDriveUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedOneDriveUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileOnedrive",show:"activeDevicesOnedrive"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsOnedrive",show:"totalCompletedBackupsOnedrive"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedOnedrive",show:"totalActualStorageUtilizedOnedrive"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/ODB",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/ODB",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/ODB",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/ODB",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/ODB",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/ODB"},{title:"Capacity Savings",route:"report/capacityManagement/ODB",requiresLicense:"onedrivearchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:Dt,Add_Exclusion_Folder:Ot},{title:"SharePoint Online",key:"Sharepoint",key2:"SHAREPOINT",licenceKey:"sharepoint_backup_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"sparchivingenabled",contentSearch:"contentsearchenabledforsharepoint"},policyConfigurations:null,routes:{policy:"sharepointPolicy",policyMapping:"/policyMapping",viewPolicy:"sharepointPolicyView"},dashboard:{tiles:[{key:"devices",passProduct:!1,noRoute:!1,title:"Active Sites",template:"%{noOfActiveSPSites} / %{noOfSPSitesAllowed}"},{key:"devices",passProduct:!1,noRoute:!1,title:"Blocked Sites",template:"%{noOfBlockedSPSites}"},{key:"backupHistory",passProduct:!0,noRoute:!1,title:"Active Sites with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedSharepoint",show:"totalActualStorageUtilizedSharepoint"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Sharepoint",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Sharepoint",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Sharepoint",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Sharepoint",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Sharepoint",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Capacity Savings",route:"report/capacityManagement/Sharepoint",requiresLicense:"sparchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:Dt,Add_Exclusion_Folder:Ot},{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:Oi,Add_Exclusion_Folder:Ri},{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:Dt,Add_Exclusion_Folder:Ot},{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:Dt,Add_Exclusion_Folder:Ot}]};var Ps=(()=>{class t{http;prefix;suffix;constructor(e,n="/assets/i18n/",i=".json"){this.http=e,this.prefix=n,this.suffix=i}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}static \u0275fac=function(n){return new(n||t)(G(Ye),G(String),G(String))};static \u0275prov=ce({token:t,factory:t.\u0275fac})}return t})();function Ms(t,l){return new Ps(t,"./assets/i18n/",".json")}function eu(t){return()=>{let l=document.cookie.match(/LANG=([a-z]{2})/)?.[1]||navigator.language.split("-").filter(e=>["en","it","fr","de","pl","pt","nl","es"].includes(e.split(/[^a-z]/i)[0].toLocaleLowerCase()))[0]||"en";return t.setDefaultLang("en"),t.use(l).toPromise()}}function tu(t){return()=>t.loadConfig().toPromise().then(l=>{t.setConfig(l)})}kn(Za,{providers:[pe,zt(Lo.forRoot({loader:{provide:Pi,useFactory:Ms,deps:[Ye]},defaultLanguage:"en"})),{provide:Pi,useFactory:Ms,deps:[Ye]},{provide:Ii,useFactory:eu,deps:[Q],multi:!0},{provide:xn,useValue:{dateFormat:"dd-MMM-yyyy HH:mm:ss"}},...Is.providers,$t,{provide:Ii,useFactory:tu,deps:[Ve],multi:!0},{provide:yn,useClass:Cn,multi:!0},xi,Es,Ft()]}).catch(t=>console.error(t));export{Ms as HttpLoaderFactory,tu as loadConfig,eu as setupTranslateFactory};
