import{b as ni}from"./chunk-WK75522G.js";import{$ as Vr,$a as No,A as pr,Aa as uo,B as ur,Ba as mo,C as mr,Ca as ho,D as hr,Da as go,E as gr,Ea as _o,F as _r,Fa as fo,G as fr,Ga as vo,H as vr,Ha as yo,I as yr,Ia as bo,J as br,Ja as Co,K as Cr,Ka as So,L as Sr,La as wo,M as wr,Ma as xo,N as xr,Na as ko,O as kr,Oa as Io,P as Ir,Pa as To,Q as Tr,Qa as Eo,R as Er,Ra as Po,S as Pr,Sa as Mo,T as Mr,Ta as Oo,U as Or,Ua as Do,V as Dr,Va as Ao,W as Ar,Wa as Ro,X as Rr,Xa as Uo,Y as Ur,Ya as Fo,Z as Fr,Za as Bo,_ as Br,_a as Vo,a as Nn,aa as Nr,ab as Lo,b as Ln,ba as Lr,bb as Go,c as Gn,ca as Gr,d as Hn,da as Hr,e as zn,ea as zr,f as jn,fa as jr,g as Wn,ga as Wr,h as qn,ha as qr,i as Jn,ia as Jr,j as $n,ja as $r,k as Zn,ka as Zr,l as Kn,la as Kr,m as Yn,ma as Yr,n as Qn,na as Qr,o as Xn,oa as Xr,p as er,pa as eo,q as tr,qa as to,r as ir,ra as io,s as nr,sa as no,t as rr,ta as ro,u as or,ua as oo,v as ar,va as ao,w as sr,wa as so,x as lr,xa as lo,y as cr,ya as co,z as dr,za as po}from"./chunk-S555YZ5B.js";import{d as za,f as ja,h as qa}from"./chunk-Z67MFBUU.js";import"./chunk-DSX3LQ3E.js";import{a as Wa}from"./chunk-P2ZKIPPP.js";import{a as Ga}from"./chunk-PPMYOTNF.js";import{a as Ja}from"./chunk-GN3YTA6E.js";import{a as Ci}from"./chunk-OWLE5RA7.js";import{a as Ua,b as gt}from"./chunk-B5QCT7Z7.js";import{a as vt}from"./chunk-ZFORQ56T.js";import{a as yt}from"./chunk-DPFLQZZV.js";import{k as Jo,l as Dt,m as ri,o as $o,q as oi,s as Zo,x as Ko}from"./chunk-JBKSESFV.js";import{a as Di,b as Ai,c as At,d as Rt,e as $a,f as Za,g as Ka}from"./chunk-PBPIU3FJ.js";import"./chunk-WTUYPIFF.js";import"./chunk-3CFCYTHZ.js";import{a as Fa,b as _t,d as Ba,f as Va,g as ft}from"./chunk-ONCYKR7X.js";import{a as bi}from"./chunk-MAORKWTB.js";import{a as Je}from"./chunk-IGMF7JSD.js";import{a as zo,b as ve,c as Na,d as Ha}from"./chunk-ZBFZUD3Q.js";import{a as Zt,c as In,d as q}from"./chunk-P2FS3V6A.js";import{a as La}from"./chunk-UYCUPJVX.js";import{a as Oi,b as yi,p as qe,s as ht}from"./chunk-PVBDQLVJ.js";import{c as K,d as _e,e as De,h as fe}from"./chunk-WWJO3B7F.js";import{b as fi,c as dt,g as pt,h as Ia,i as Ta,j as ut,k as Ea,p as Pa,q as Ma,r as Oa,u as vi,v as Da,w as Aa,x as Ra,y as mt}from"./chunk-M4I4CHBB.js";import{$ as Me,Ab as ct,B as nt,Bb as wa,C as Yt,Cb as xa,D as ue,Db as ka,E as Qt,Eb as _i,F as Pn,Fa as ai,G as Mn,Ga as Xo,H as Xt,Ha as si,J as rt,Ja as li,K as On,L as Dn,La as at,M as An,Ma as st,O as ei,P as te,Pa as lt,Q as ti,Qa as ea,R as Rn,Ra as ta,S as Un,Sa as ia,T as Fn,Ta as na,U as Bn,Ua as ra,V as Vn,Va as oa,W as ii,Wa as aa,X as Ho,Xa as sa,Y as jo,Z as Wo,Za as ci,_ as ie,_a as la,a as Sn,aa as qo,b as de,ba as Yo,bb as ca,c as wn,cb as da,db as di,eb as pi,fb as ui,gb as mi,h as ze,ha as ot,hb as Oe,i as xn,j as kn,ja as Mi,jb as pa,k as ge,ka as Qo,kb as ua,lb as ma,o as it,ob as ha,p as je,pb as ga,q as ee,qb as _a,sb as fa,tb as hi,u as We,ub as gi,v as Tn,vb as va,w as Kt,wb as ya,xb as ba,y as En,yb as Ca,z as pe,zb as Sa}from"./chunk-LLYDPG5N.js";import{A as Ki,Aa as cn,B as Y,Ba as dn,Bb as N,Cc as X,D as Le,Da as be,Db as se,Dc as d,E as Gt,Ea as Ee,Eb as gn,Ec as v,F as Yi,Fb as Se,Fc as T,Gc as le,Hb as S,Hc as bn,I as Ti,Ia as re,Ic as R,Jc as U,K as Qi,Kc as F,L as Xi,Lb as Pi,M as Ht,N as en,O as tn,Oc as ce,Pa as pn,Pc as B,Qa as kt,Qc as A,Rc as ke,S as nn,Sb as Re,Ta as Wt,Tb as c,Ub as we,Uc as h,Vb as Ge,Vc as g,Wc as Q,X as xt,Xb as _n,Xc as Be,Y as ye,Yb as Tt,Yc as $t,Z as rn,_ as H,_b as He,a as Wi,aa as on,ac as tt,bc as Ue,bd as Pe,c as Qe,ca as me,cc as Fe,dc as a,eb as It,ec as s,f as Ne,fa as Xe,fb as Ce,fc as b,g as qi,gb as he,gc as Et,ha as G,hc as Pt,ia as Ke,ic as Jt,id as Cn,j as Lt,jb as un,jc as x,k as Ji,la as an,lb as r,ma as zt,mb as mn,oc as y,p as Ze,pb as qt,pc as p,qb as et,qc as fn,ra as jt,rb as w,rc as vn,sa as _,sb as hn,sc as xe,t as $i,ta as f,tc as Mt,u as Z,ua as Ei,uc as Ot,va as sn,vc as yn,w as Zi,wc as $,xc as j,ya as ln,yc as W}from"./chunk-2BMUMDG3.js";import{a as J,b as Ae,i as z}from"./chunk-2AVGQ2MQ.js";var Ya=["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 Qa=["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 Xa={cibCcAmex:Nn,cibCcApplePay:Ln,cibCcMastercard:Gn,cibCcPaypal:Hn,cibCcStripe:zn,cibCcVisa:jn,cibFacebook:Wn,cibGoogle:qn,cibLinkedin:Jn,cibSkype:$n,cibTwitter:Zn,cifBr:Kn,cifEs:Yn,cifFr:Qn,cifIn:Xn,cifPl:er,cifUs:tr,cilAccountLogout:ir,cilAlignCenter:nr,cilAlignLeft:rr,cilAlignRight:or,cilApplicationsSettings:ar,cilArrowBottom:sr,cilArrowRight:lr,cilArrowTop:dr,cilBasket:pr,cilBell:ur,cilBold:mr,cilBookmark:hr,cilCalculator:gr,cilCalendar:_r,cilChart:vr,cilChartPie:fr,cilCheck:br,cilCheckAlt:yr,cilChevronLeft:Cr,cilChevronRight:Sr,cilCloud:xr,cilCloudDownload:wr,cilCode:kr,cilCommentSquare:Ir,cilContrast:Tr,cilCreditCard:Er,cilCursor:Pr,cilDescription:Mr,cilDollar:Dr,cilDrop:Ar,cilEnvelopeClosed:Rr,cilEnvelopeOpen:Ur,cilFile:Br,cilGrid:Nr,cilHome:Hr,cilInbox:zr,cilIndentDecrease:jr,cilIndentIncrease:Wr,cilItalic:qr,cilJustifyCenter:Jr,cilLanguage:$r,cilLayers:Zr,cilList:Yr,cilListNumbered:Kr,cilLocationPin:Qr,cilLockLocked:Xr,cilMagnifyingGlass:eo,cilMap:to,cilMediaPlay:no,cilMediaRecord:ro,cilMenu:ao,cilMoon:so,cilNotes:lo,cilOptions:co,cilPaperclip:uo,cilPaperPlane:po,cilPen:mo,cilPencil:ho,cilPeople:go,cilPrint:_o,cilPuzzle:fo,cilReportSlash:yo,cilSave:bo,cilSettings:So,cilShare:ko,cilShareAll:wo,cilShareBoxed:xo,cilSpeech:Eo,cilSpeedometer:Po,cilSpreadsheet:Mo,cilStar:Oo,cilSun:Do,cilTags:Ao,cilTask:Ro,cilTrash:Fo,cilUnderline:Bo,cilUser:Go,cilUserFemale:Vo,cilUserFollow:No,cilUserUnfollow:Lo,logo:Qa,signet:Ya,cilDevices:Or,cilSitemap:To,cilTransfer:Uo,cilHistory:Gr,cilHandshake:Lr,cilReload:vo,cilFullscreen:Vr,cilMediaPause:io,cilMediaStop:oo,cilShieldAlt:Io,cilArrowThickBottom:cr,cilEqualizer:Fr,cilSend:Co};var ts=(()=>{class t{constructor(e,n,i,o,m,u){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=o,this.TranslateService=m,this.uploadManager=u,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=J({},Xa)}ngOnInit(){return z(this,null,function*(){this.router.events.subscribe(e=>{e instanceof rt})})}beforeUnloadHandler(e){this.uploadManager.hasFiles()&&(e.preventDefault(),e.returnValue="")}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)(w(te),w(Mn),w(ii),w(zo),w(ie),w(ni))}}static{this.\u0275cmp=N({type:t,selectors:[["app-root"]],hostBindings:function(n,i){n&1&&y("beforeunload",function(m){return i.beforeUnloadHandler(m)},!1,un)},decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[ei],encapsulation:2})}}return t})();var js=(()=>{class t extends oi{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(G(de),G(Dt),G(ri))};static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();function Ws(){return new $o}function qs(t,l,e){return new Ko(t,l,e)}var is=[{provide:ri,useFactory:Ws},{provide:oi,useClass:js},{provide:qt,useFactory:qs,deps:[Qt,oi,Ee]}],qm=[{provide:Dt,useClass:Jo},{provide:kt,useValue:"NoopAnimations"},...is],Js=[{provide:Dt,useFactory:()=>new Zo},{provide:kt,useFactory:()=>"BrowserAnimations"},...is];function ns(){return Wt("NgEagerAnimations"),[...Js]}var $s=()=>[];function Zs(t,l){if(t&1){let e=x();a(0,"div",4),y("click",function(){_(e);let i=p();return f(i.openChatbot())}),b(1,"input",5),a(2,"label",6),b(3,"span",7)(4,"span",8)(5,"span",9),s()()}}function Ks(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),b(7,"i",16),d(8),h(9,"translate"),s(),a(10,"div",17)(11,"span")(12,"a",18),y("click",function(){_(e);let i=p();return f(i.startOverChat())}),d(13),h(14,"translate"),s()()()(),a(15,"main",19)(16,"div",20),b(17,"div",21),a(18,"div",22)(19,"div",23)(20,"div",24),d(21),h(22,"translate"),s(),a(23,"div",25),d(24),s()(),a(25,"div",26),d(26),h(27,"translate"),s()()()(),a(28,"c-card")(29,"c-card-header")(30,"label",27),d(31),h(32,"translate"),s()(),a(33,"c-card-body")(34,"form",28)(35,"div",29)(36,"input",30),h(37,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.query,i)||(o.query=i),f(i)}),s()(),a(38,"div",31)(39,"button",32),y("click",function(){_(e);let i=p();return f(i.getChatbotResults())}),d(40),h(41,"translate"),s()()()()()()()()()()}if(t&2){let e=p();c("showCloseIcon",!0)("closeIconAction",e.closeChatbot)("modalSize","modal-fullscreen")("modalWidth","90%")("footerButtons",B(30,$s)),r(8),T(" ",g(9,16,"Ask CrashPlan!"),""),r(5),v(g(14,18,"Start Over")),r(4),we("background-image","url("+e.neilLogo+")"),r(4),v(g(22,20,"CrashPlan")),r(3),v(e.todaysDate),r(2),v(g(27,22,"Hello ! Ask me anything about CrashPlan Software")),r(5),v(g(32,24,"Query :")),r(5),R("ngModel",e.query),c("placeholder",g(37,26,"Ask a question here...")),r(4),v(g(41,28,"Send"))}}var os=(()=>{class t extends sa{constructor(e,n,i,o,m,u,C){super(),this.authService=e,this.router=n,this.apiService=i,this.toastr=o,this.sharedService=m,this.TranslateService=u,this.userRoleService=C,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.conversationalAI=!1,this.currentYear=new Date().getFullYear(),this.displayCreateStyle=!1,this.neilLogo="",this.userLogo="",this.aiLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.answer="",this.sourcesLinks=[],this.session_id="",this.index=0,this.userType="",this.closeChatbot=()=>{this.displayCreateStyle=!1},this.collapses=[!1,!1,!1,!1],this.neilLogo=this.imageSrc[3],this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.init()}init(){return z(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var o=n+":"+i;return o}onImageError(e){let n=e.target;n.src=this.imageSrc[1]}openChatbot(){this.displayCreateStyle=!0}addChatEntry(e,n){this.chatHistory.push([e,n])}getChatHistory(){return this.chatHistory}startOverChat(){this.session_id="";let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.createChatLayoutBot(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 o=this.neilLogo,m=this.get(".msger-chat");k("CrashPlan",o,"left",e,n);function u(E){var P="0"+E.getHours(),O="0"+E.getMinutes();P=P.slice(-2),O=O.slice(-2);var M=P+":"+O;return M}function C(E,P){return Math.floor(Math.random()*(P-E)+E)}function k(E,P,O,M,D){let V=u(new Date),oe="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);M=M.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let Te="";D==""&&i==0?Te=`
          <div class="msg ${O}-msg">
            <div class="msg-img" style="background-image: url('${P}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${E}</div>
                <div class="msg-info-time">${V}</div>
              </div>
              <div class="msg-text">${M}</div>
            </div>
          </div>`:Te=`
          <div class="msg ${O}-msg">
            <div class="msg-img" style="background-image: url('${P}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${E}</div>
                <div class="msg-info-time">${V}</div>
              </div>
              <div class="msg-text">${M}</div>
              ${D&&D.length>0?`
              <p>
                <a href="javascript:void(0);" id="${oe}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${oe}-sources" class="sources-container" style="display: none;">
                ${D.map(ae=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${ae.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${ae.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${ae.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,m.insertAdjacentHTML("beforeend",Te),setTimeout(()=>{let ae=document.getElementById(`${oe}-toggle`),L=document.getElementById(`${oe}-sources`);ae&&L&&ae.addEventListener("click",function(){let wt=L.style.display==="none";L.style.display=wt?"block":"none",ae.innerText=wt?"Hide sources":"Show sources"})},0),m.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"),o=atob(this.sharedService.getDataByKey("userName"));C(o,n,"right",e);function m(k){var E="0"+k.getHours(),P="0"+k.getMinutes();E=E.slice(-2),P=P.slice(-2);var O=E+":"+P;return O}function u(k,E){return Math.floor(Math.random()*(E-k)+k)}function C(k,E,P,O){var M=m(new Date);let D='<div class="msg '+P+'-msg"><div class="msg-img" style="background-image: url('+E+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+k+'</div><div class="msg-info-time">'+M+'</div></div><div class="msg-text">'+O+"</div></div></div>";i.insertAdjacentHTML("beforeend",D),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)(w(K),w(te),w(q),w(ve),w(_e),w(ie),w(fe))}}static{this.\u0275cmp=N({type:t,selectors:[["app-default-footer"]],inputs:{conversationalAI:"conversationalAI"},features:[ce([K,q]),Se],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&&(S(0,Zs,6,0,"div",0),a(1,"div",1)(2,"a",2),d(3),s()(),S(4,Ks,42,31,"app-modal",3)),n&2&&(c("ngIf",i.conversationalAI&&i.userType=="admin"),r(3),T("\xA9 CrashPlan ",i.currentYear," "),r(),c("ngIf",i.displayCreateStyle))},dependencies:[mt,Ea,dt,pt,Ia,ut,Ta,ue,ee,Oe,ge,gt,ht,_t,ft,st,at,lt,bi,Me],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 Ys(t,l){if(t&1){let e=x();a(0,"div",7)(1,"button",9),y("click",function(){_(e);let i=p();return f(i.navigateToSales())}),d(2,"Contact Sales"),s()()}}var as=(()=>{class t{constructor(e,n){this.sharedService=e,this.userRoleService=n,this.closeModalHandler=new be,this.userType=""}ngOnInit(){return z(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)(w(_e),w(fe))}}static{this.\u0275cmp=N({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ce([pe,K,q])],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"),S(10,Ys,3,0,"div",6),a(11,"div",7)(12,"button",8),y("click",function(){return i.closeSelf()}),d(13,"Back to Dashboard"),s()()()()()()()()),n&2&&(r(10),c("ngIf",i.userType==="admin"))},dependencies:[ue,ee,ge,Oe],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 ss=(()=>{class t{transform(e,n=",",i){if(!e)return"";let o=e.split(n);return i!==void 0?o[i]:o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=gn({name:"split",type:t,pure:!0})}}return t})();var Xs=t=>({totalCountGS:t}),el=(t,l)=>({"col-lg-12":t,"col-lg-7":l}),tl=()=>({"col-lg-5":!0}),il=t=>({display:t}),nl=(t,l)=>({active:t,disabled:l}),rl=(t,l)=>({addedElementsCount:t,totalCountGS:l}),ol=()=>["Google Drive","Gmail"];function al(t,l){if(t&1){let e=x();a(0,"a",22),y("click",function(){_(e);let i=p(2);return f(i.enableMultiSelect())}),b(1,"i",23),a(2,"span",24),d(3),h(4,"translate"),s()()}t&2&&(r(3),v(g(4,1,"Enable Multiselect")))}function sl(t,l){if(t&1){let e=x();a(0,"a",22),y("click",function(){_(e);let i=p(2);return f(i.removeAll())}),b(1,"i",25),a(2,"span",24),d(3),h(4,"translate"),s()()}t&2&&(r(3),v(g(4,1,"Disable Multiselect")))}function ll(t,l){if(t&1){let e=x();a(0,"button",26),y("click",function(){_(e);let i=p(2);return f(i.addToCartFinal())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Add Selected Items")))}function cl(t,l){if(t&1){let e=x();a(0,"button",27),y("click",function(){_(e);let i=p(2);return f(i.onExportAsZipG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Export all items to Zip")))}function dl(t,l){if(t&1){let e=x();a(0,"button",28),y("click",function(){_(e);let i=p(2);return f(i.onExportAsZipG())}),d(1," Export selected items to Zip "),s()}if(t&2){let e=p(2);c("ngClass",ke(1,nl,e.addedElementsCount>0,e.addedElementsCount<=0))}}function pl(t,l){if(t&1){let e=x();a(0,"th",29)(1,"input",30),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.isSelectAll,i)||(o.isSelectAll=i),f(i)}),y("change",function(){_(e);let i=p(2);return f(i.toggleSelectAll())}),s()()}if(t&2){let e=p(2);r(),R("ngModel",e.isSelectAll)}}function ul(t,l){if(t&1){let e=x();a(0,"td")(1,"input",35),F("ngModelChange",function(i){_(e);let o=p().$implicit;return U(o.isChecked,i)||(o.isChecked=i),f(i)}),y("change",function(){_(e);let i=p(3);return f(i.itemSelect())}),s()()}if(t&2){let e=p().$implicit;r(),R("ngModel",e.isChecked)}}function ml(t,l){if(t&1){let e=x();a(0,"tr"),S(1,ul,2,1,"td",0),a(2,"td")(3,"div")(4,"h4"),d(5),s()(),a(6,"p",31)(7,"b"),d(8,"Found in: "),s(),d(9),s(),a(10,"p"),b(11,"span",32),s()(),a(12,"td")(13,"button",33),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.onDownload(i))}),d(14),h(15,"translate"),s(),a(16,"button",34),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.onOpenLocation(i))}),d(17),h(18,"translate"),s()()()}if(t&2){let e=l.$implicit,n=p(2);Ge("selected-rowMail",n.isSelected(e)),r(),c("ngIf",n.isMultiSelectEnabled),r(4),v(e.fileName),r(4),le("",e.deviceName," : ",e.filePath,""),r(2),c("innerHTML",n.renderHtml(e.content),Ce),r(3),v(g(15,9,"Download")),r(3),v(g(18,11,"Open File Location"))}}function hl(t,l){if(t&1){let e=x();a(0,"th"),d(1),h(2,"translate"),a(3,"button",36),y("click",function(){_(e);let i=p(2);return f(i.removeAll())}),d(4),h(5,"translate"),s()()}if(t&2){let e=p(2);r(),T(" ",Q(2,2,"addedElementsCountoutoftotalCountGSelected",ke(7,rl,e.addedElementsCount,e.totalCountGS))," "),r(3),v(g(5,5,"Remove all"))}}function gl(t,l){if(t&1&&(a(0,"th"),d(1),h(2,"translate"),s()),t&2){let e=p(2);r(),le(" ",e.addedElementsCount," ",g(2,2,"selected"),"")}}function _l(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",37)(2,"span",38),d(3),s(),a(4,"a",39),y("click",function(){let i=_(e),o=i.$implicit,m=i.index,u=p(2);return f(u.removeItem(m,o.fileName,o.fileRevisionID,o.fileName))}),b(5,"i",40),s(),a(6,"p",41)(7,"b"),d(8),h(9,"translate"),s(),a(10,"span",42),d(11),s()()()()}if(t&2){let e=l.$implicit;r(3),v(e.fileName),r(5),v(g(9,4,"Found in:")),r(3),le("",e.deviceName," : ",e.filePath,"")}}function fl(t,l){if(t&1&&(a(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",5),S(4,al,5,3,"a",6)(5,sl,5,3,"a",6),a(6,"span")(7,"b"),d(8),h(9,"translate"),s()(),S(10,ll,3,3,"button",7)(11,cl,3,3,"button",8)(12,dl,2,4,"button",9),s(),a(13,"c-card-body",10)(14,"c-card",11)(15,"c-card-body")(16,"div",12)(17,"table",13)(18,"thead",14)(19,"tr"),S(20,pl,2,1,"th",15),a(21,"th",16),d(22,"File Name"),s(),a(23,"th",17),d(24,"Actions"),s()()(),a(25,"tbody"),S(26,ml,19,13,"tr",18),s()()()()(),a(27,"c-card",19)(28,"c-card-body")(29,"div",12)(30,"table",20)(31,"thead")(32,"tr"),S(33,hl,6,10,"th",0)(34,gl,3,4,"th",0),s()(),a(35,"tbody"),S(36,_l,12,6,"tr",21),s()()()()()()()()()),t&2){let e=p();r(4),c("ngIf",e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),v(Q(9,18,"{{ totalCountGS }} Search Results Found",A(21,Xs,e.totalCountGS))),r(2),c("ngIf",e.updateAddToCartButtonVisibility()),r(),c("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"&&e.productType!=="Gmail"&&e.productType!=="mail"),r(),c("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"),r(2),c("ngClass",ke(23,el,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),r(3),c("hover",!0)("responsive",!0),r(3),c("ngIf",e.isMultiSelectEnabled),r(6),c("ngForOf",e.foundFiles),r(),c("ngClass",B(26,tl))("ngStyle",A(27,il,e.isMultiSelectEnabled?"block":"none")),r(3),c("hover",!0)("responsive",!0),r(3),c("ngIf",e.addedElementsCount>0),r(),c("ngIf",e.addedElementsCount==0),r(2),c("ngForOf",e.addedElementsUpdated)}}function vl(t,l){t&1&&(a(0,"c-row",43)(1,"c-card",44)(2,"c-card-body")(3,"b"),d(4),h(5,"translate"),s()()()()),t&2&&(r(4),v(g(5,1,"There are no results!.")))}function yl(t,l){if(t&1){let e=x();a(0,"a",52),y("click",function(){_(e);let i=p(2);return f(i.onNavigate(i.first))}),b(1,"i",53),s()}}function bl(t,l){if(t&1){let e=x();a(0,"a",54),y("click",function(){_(e);let i=p(2);return f(i.onNavigate(i.previous))}),b(1,"i",55),s()}}function Cl(t,l){if(t&1){let e=x();a(0,"a",56),y("click",function(){_(e);let i=p(2);return f(i.onNavigate(i.next))}),b(1,"i",57),s()}}function Sl(t,l){if(t&1){let e=x();a(0,"a",58),y("click",function(){_(e);let i=p(2);return f(i.onNavigate(i.last))}),b(1,"i",59),s()}}function wl(t,l){if(t&1&&(a(0,"c-row",45)(1,"div",46)(2,"div",47),S(3,yl,2,0,"a",48)(4,bl,2,0,"a",49)(5,Cl,2,0,"a",50)(6,Sl,2,0,"a",51),s()()()),t&2){let e=p();r(3),c("ngIf",e.first),r(),c("ngIf",e.previous),r(),c("ngIf",e.next),r(),c("ngIf",e.last)}}function xl(t,l){if(t&1){let e=x();a(0,"button",72),y("click",function(){_(e);let i=p(2);return f(i.exportCompleteSearchAsZipTriggerG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Proceed")))}function kl(t,l){if(t&1){let e=x();a(0,"button",72),y("click",function(){_(e);let i=p(2);return f(i.exportSelectedAsZipG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Proceed")))}function Il(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),d(5),h(6,"translate"),s()(),a(7,"div",65)(8,"c-row")(9,"div",66)(10,"label",67),d(11),h(12,"translate"),s(),a(13,"input",68),F("ngModelChange",function(i){_(e);let o=p();return U(o.zipFileNameG,i)||(o.zipFileNameG=i),f(i)}),s()()()(),a(14,"div",69)(15,"button",70),y("click",function(){_(e);let i=p();return f(i.closeZipPopupG())}),d(16),h(17,"translate"),s(),S(18,xl,3,3,"button",71)(19,kl,3,3,"button",71),s()()()()}if(t&2){let e=p();r(5),v(g(6,6,"Specify Filename")),r(6),v(g(12,8,"Specify Filename")),r(2),R("ngModel",e.zipFileNameG),r(3),v(g(17,10,"Close")),r(2),c("ngIf",e.exportCompleteSearchG),r(),c("ngIf",!e.exportCompleteSearchG)}}function Tl(t,l){t&1&&(a(0,"th"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Current item being processed")))}function El(t,l){if(t&1&&(a(0,"span"),d(1),h(2,"slice"),s()),t&2){let e=p(3);r(),T("/ ",Be(2,1,e.progressG.subject,0,40),"")}}function Pl(t,l){if(t&1&&(a(0,"td")(1,"span",78),d(2),h(3,"slice"),s(),S(4,El,3,5,"span",0),s()),t&2){let e=p(2);r(),Ot("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),v(Be(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function Ml(t,l){t&1&&(a(0,"td"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"-")))}function Ol(t,l){if(t&1&&(a(0,"td"),d(1),a(2,"div",79)(3,"div",80),d(4),h(5,"number"),s()()()),t&2){let e=p(2);r(),le("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),r(),Mt("title","",e.progressG.totalRestorePct,"%"),r(),we("width",e.progressG.totalRestorePct,"%"),r(),T(" ",Q(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Dl(t,l){t&1&&(a(0,"td"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"0")))}function Al(t,l){if(t&1){let e=x();a(0,"button",81),y("click",function(){_(e);let i=p(2);return f(i.cancelDownloadAsZipG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Cancel Restore")))}function Rl(t,l){if(t&1){let e=x();a(0,"div",73)(1,"div",74)(2,"div",62)(3,"div",63)(4,"h4",64),d(5),h(6,"translate"),s()(),a(7,"div",65)(8,"c-card")(9,"c-card-header",75),d(10),h(11,"translate"),s(),a(12,"c-card-body")(13,"c-row",43)(14,"table",76)(15,"thead")(16,"tr"),S(17,Tl,3,3,"th",0),a(18,"th"),d(19),h(20,"translate"),s()()(),a(21,"tbody")(22,"tr"),S(23,Pl,5,9,"td",0)(24,Ml,3,3,"td",0)(25,Ol,6,10,"td",0)(26,Dl,3,3,"td",0),s()()()()()()(),a(27,"div",69)(28,"button",70),y("click",function(){_(e);let i=p();return f(i.closeDownloadZipPopupG())}),d(29,"Close"),s(),S(30,Al,3,3,"button",77),s()()()()}if(t&2){let e=p();r(5),v(g(6,9,"Restore Progress")),r(5),v(g(11,11,"Currently Running Restore Statistics")),r(7),c("ngIf",e.productType!="Gmail"&&e.productType!="Google Drive"),r(2),v(g(20,13,"Overall Progress")),r(4),c("ngIf",e.progressG.currentFolderPath!=""&&e.productType!="Gmail"&&e.productType!="Google Drive"),r(),c("ngIf",e.progressG.currentFolderPath==""&&e.productType!="Gmail"&&e.productType!="Google Drive"),r(),c("ngIf",e.progressG.totalNoOfFilesForRestore!=""),r(),c("ngIf",e.progressG.totalNoOfFilesForRestore==""),r(4),c("ngIf",!B(15,ol).includes(e.productType))}}function Ul(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),d(5),h(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),d(9),h(10,"translate"),s()(),a(11,"div",69)(12,"button",70),y("click",function(){_(e);let i=p();return f(i.closeDownloadZipConfirmPopupG())}),d(13),h(14,"translate"),s(),a(15,"button",82),y("click",function(){_(e);let i=p();return f(i.cancelDownloadAsZipConfirmG())}),d(16),h(17,"translate"),s()()()()()}t&2&&(r(5),v(g(6,4,"Restore Cancel Confirmation")),r(4),v(g(10,6,"Are you sure you wish to cancel the restore?")),r(4),v(g(14,8,"Cancel")),r(3),v(g(17,10,"Ok")))}function Fl(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),d(5),h(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),d(9),h(10,"translate"),s()(),a(11,"div",69)(12,"button",70),y("click",function(){_(e);let i=p();return f(i.closeDownloadZipRunBkpPopupG())}),d(13),h(14,"translate"),s(),a(15,"button",81),y("click",function(){_(e);let i=p();return f(i.cancelDownloadAsZipRunBkpG())}),d(16),h(17,"translate"),s()()()()()}t&2&&(r(5),v(g(6,4,"Confirmation")),r(4),v(g(10,6,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),r(4),v(g(14,8,"Cancel")),r(3),v(g(17,10,"Ok")))}var cs=(()=>{class t{constructor(e,n,i,o,m,u,C,k,E){this.cdr=e,this.toastr=n,this.TranslateService=i,this.sharedService=o,this.sanitizer=m,this.apiService=u,this.assetManagementService=C,this.router=k,this.configService=E,this.foundFiles=[],this.noFilesFound=!1,this.productType="",this.contentSearchText="",this.totalCountGS="",this.userType="",this.currentDeviceUUID="",this.first="",this.previous="",this.next="",this.last="",this.downloadFile=new be,this.openFileLocation=new be,this.navigatePage=new be,this.isMultiSelectEnabled=!1,this.isSelectAll=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.displayZipstyleG=!1,this.exportCompleteSearchG=!1,this.zipFileNameG="",this.selectedUsers=new Set,this.selectedValueCS=null,this.deviceId="",this.devicesCS=[],this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1,this.categoryContentSearch="mail"}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(It.HTML,e)||"")}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundFiles.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(m=>!this.isBackupIdExists(m.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(m=>m.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,o){console.log("inside itemselect child component : "+i),console.log("addedElementsUpdated child component : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated=this.addedElementsUpdated.filter(m=>m.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,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let o=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","","",!1,this.batchIdG).subscribe(m=>{console.log("res from initiateRestore : "+JSON.stringify(m)),console.log("res from initiateRestore : "+JSON.stringify(m.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()},m=>{switch(console.error("Error from initiateRestore: ",m),console.error("Error status: ",m.status),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.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: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 412:console.error("Error code 412: ",m.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error"));break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.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.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.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.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.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,this.product.dataManagementKey||this.product.key||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)(w(Pe),w(ve),w(ie),w(_e),w(Xt),w(q),w(yt),w(te),w(De))}}static{this.\u0275cmp=N({type:t,selectors:[["app-document-content-search"]],inputs:{foundFiles:"foundFiles",noFilesFound:"noFilesFound",productType:"productType",contentSearchText:"contentSearchText",totalCountGS:"totalCountGS",userType:"userType",currentDeviceUUID:"currentDeviceUUID",product:"product",first:"first",previous:"previous",next:"next",last:"last"},outputs:{downloadFile:"downloadFile",openFileLocation:"openFileLocation",navigatePage:"navigatePage"},features:[ce([pe,q,Ha]),jt],decls:7,vars:7,consts:[[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&&S(0,fl,37,29,"c-row",0)(1,vl,6,3,"c-row",1)(2,wl,7,4,"c-row",2)(3,Il,20,12,"div",3)(4,Rl,31,16,"div",4)(5,Ul,18,12,"div",3)(6,Fl,18,12,"div",3),n&2&&(c("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.displayZipstyleG),r(),c("ngIf",i.displayDownloadZipstyleG),r(),c("ngIf",i.displayDownloadZipConfirmstyleG),r(),c("ngIf",i.displayDownloadZipRunBckConfirmstyleG))},dependencies:[We,mt,dt,fi,pt,vi,ut,ue,it,je,ee,Yt,nt,ai,st,at,lt,mi,Oe,ct,ge,gt,ht,_t,ft,Me],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 Nl=["deviceDropdown"],Ll=["deviceDropdownCS"],Gl=["contentFrame"],Hl=["userDeviceSearch"],zl=["fileSearch"],jl=["contentSearch"],Wl=["contentSearchMailInput"],ql=["deviceDropdownR"],Jl=["contentCalendarFrame"],$l=["searchInput"],Ve=t=>({display:t}),Zl=t=>[t],Kl=t=>({totalCountGS:t}),Yl=t=>({"multi-select":t}),Ql=()=>({"col-lg-3":!0}),Xl=(t,l)=>({active:t,disabled:l}),us=t=>({"background-color":t}),ec=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),tc=t=>({currentMailSubject:t}),ic=t=>({addedElementsCount:t}),nc=t=>({required:t}),St=()=>["Google Drive","Gmail"],ds=()=>["Gmail","Google Drive"],rc=t=>({selected:t});function oc(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",18),y("click",function(){_(e);let i=p();return f(i.setActiveSearchTab("file",1))}),d(2),h(3,"translate"),s()()}if(t&2){p();let e=X(14);r(),c("cTabContent",e)("tabPaneIdx",1),r(),v(g(3,3,"Search by file/folder names"))}}function ac(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",18),y("click",function(){_(e);let i=p();return f(i.setActiveSearchTab("content",2))}),d(2),h(3,"translate"),s()()}if(t&2){p();let e=X(14);r(),c("cTabContent",e)("tabPaneIdx",2),r(),v(g(3,3,"Full text search"))}}function sc(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=p();r(),T(" ",e.noUsersFoundText," ")}}function lc(t,l){if(t&1){let e=x();a(0,"c-col",91)(1,"c-card",92)(2,"c-card-body",93),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.userProfile(i.userNameEncoded))}),a(3,"div",90)(4,"div",94),b(5,"img",95),s(),a(6,"div",96)(7,"p",97)(8,"b"),d(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),xe("title",e.userName),r(2),v((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function cc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),d(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,lc,10,2,"c-col",91,tt),s()()),t&2){let e=p();r(2),le("",e.foundUsers.length," ",g(3,2,"User(s) found:")," "),r(3),Fe(e.foundUsers)}}function dc(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=p();r(),T(" ",e.noUsersFoundText," ")}}function pc(t,l){if(t&1){let e=x();a(0,"c-col",98)(1,"c-card",92)(2,"c-card-body",93),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.userProfile(i.userNameEncoded))}),a(3,"div",90)(4,"div",94),b(5,"img",99),s(),a(6,"div",96)(7,"p",97)(8,"b"),d(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),xe("title",e.userName),r(2),v((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function uc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),d(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,pc,10,2,"c-col",98,tt),s()()),t&2){let e=p();r(2),le("",e.foundSites.length," ",g(3,2,"Site(s) found:")," "),r(3),Fe(e.foundSites)}}function mc(t,l){if(t&1&&(a(0,"c-card"),d(1),s()),t&2){let e=p();r(),T(" ",e.noDevicesFoundText," ")}}function hc(t,l){if(t&1){let e=x();a(0,"c-col",98)(1,"c-card",92)(2,"c-card-body",93),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),a(3,"div",90)(4,"div",94),b(5,"img",100),s(),a(6,"div",96)(7,"p",97)(8,"b"),d(9),h(10,"translate"),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),xe("title",e.deviceName),r(2),bn("",(e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":"")," ",g(10,4,"of user"),' "',(e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""),'"')}}function gc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),d(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,hc,11,6,"c-col",98,tt),s()()),t&2){let e=p();r(2),le("",e.foundDevices.length," ",g(3,2,"Device(s) found:")," "),r(3),Fe(e.foundDevices)}}function _c(t,l){t&1&&(a(0,"option",101),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"BluVault")))}function fc(t,l){t&1&&(a(0,"option",102),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"OneDriveforBusiness")))}function vc(t,l){t&1&&(a(0,"option",103),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"SharePoint Online")))}function yc(t,l){if(t&1&&(a(0,"option",32),d(1),s()),t&2){let e=p().$implicit;c("value",e.key),r(),v(e.title)}}function bc(t,l){if(t&1&&S(0,yc,2,2,"option",104),t&2){let e=l.$implicit,n=p();c("ngIf",n.productsLicensed.includes(e.key))}}function Cc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select2",106),h(5,"translate"),h(6,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.selectedValue,i)||(o.selectedValue=i),f(i)}),y("search",function(i){_(e);let o=p();return f(o.onSearch(i))})("update",function(i){_(e);let o=p();return f(o.update(i))}),s()()}if(t&2){let e=p();r(2),v(g(3,8,"User Id")),r(2),c("placeholder",g(5,10,"Select User"))("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("noResultMessage",g(6,12,"No Users found"))("disabled",e.userType==="user"),R("ngModel",e.selectedValue)}}function Sc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select2",107),h(5,"translate"),h(6,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.selectedValueSite,i)||(o.selectedValueSite=i),f(i)}),y("search",function(i){_(e);let o=p();return f(o.onSearchSite(i))})("update",function(i){_(e);let o=p();return f(o.updateSite(i))}),s()()}if(t&2){let e=p();r(2),v(g(3,7,"Site")),r(2),c("placeholder",g(5,9,"Select Site"))("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite)("noResultMessage",g(6,11,"No Sites found")),R("ngModel",e.selectedValueSite)}}function wc(t,l){if(t&1&&(a(0,"option",32),d(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),r(),T(" ",e.deviceName," ")}}function xc(t,l){t&1&&(a(0,"option"),d(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function kc(t,l){if(t&1&&(a(0,"div",108)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select",109,4),S(6,wc,2,2,"option",110)(7,xc,3,3,"option",19),s(),b(8,"i",111),s()),t&2){let e=p();r(2),v(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devices),r(),c("ngIf",e.devices.length==0)}}function Ic(t,l){t&1&&(a(0,"c-row")(1,"c-card",13)(2,"c-card-body")(3,"b"),d(4),h(5,"translate"),s()()()()),t&2&&(r(4),v(g(5,1,"There are no results!.")))}function Tc(t,l){if(t&1){let e=x();a(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),s()(),a(5,"p",118)(6,"b"),d(7),h(8,"translate"),s(),d(9),s()(),a(10,"td")(11,"button",119),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,o.productTypeFiles))}),d(12),h(13,"translate"),s(),a(14,"button",120),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.openFileLocation(i.fileName,i.filePath,i.deviceId,o.productTypeFiles,i.backup))}),d(15),h(16,"translate"),s()()()}if(t&2){let e=l.$implicit;r(4),v(e.fileName),r(3),T("",g(8,5,"Found in"),": "),r(2),v(e.filePath),r(3),v(g(13,7,"Download")),r(3),v(g(16,9," Open File Location"))}}function Ec(t,l){if(t&1&&(a(0,"c-row",112)(1,"table",113)(2,"thead",114)(3,"tr")(4,"th",115),d(5,"File Name "),s(),a(6,"th",116),d(7),h(8,"translate"),s()()(),a(9,"tbody"),S(10,Tc,17,11,"tr",117),s()()()),t&2){let e=p();r(),c("hover",!0)("responsive",!0),r(6),v(g(8,4,"Actions")),r(3),c("ngForOf",e.foundFiles)}}function Pc(t,l){t&1&&(a(0,"option",121),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Microsoft Exchange")))}function Mc(t,l){t&1&&(a(0,"option",102),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"OneDrive for Business")))}function Oc(t,l){t&1&&(a(0,"option",103),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"SharePoint Online")))}function Dc(t,l){t&1&&(a(0,"option",122),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Gmail")))}function Ac(t,l){if(t&1&&(a(0,"option",32),d(1),s()),t&2){let e=p().$implicit;c("value",e.key),r(),v(e.title)}}function Rc(t,l){if(t&1&&S(0,Ac,2,2,"option",104),t&2){let e=l.$implicit,n=p();c("ngIf",n.checkFeatureLicensed(A(1,Zl,e.key)))}}function Uc(t,l){if(t&1){let e=x();a(0,"div",26)(1,"label",123),d(2),h(3,"translate"),s(),a(4,"select",124),F("ngModelChange",function(i){_(e);let o=p();return U(o.categoryContentSearch,i)||(o.categoryContentSearch=i),f(i)}),y("change",function(i){_(e);let o=p();return f(o.onChangeCategoryContentSearch(i))}),a(5,"option",121),d(6),h(7,"translate"),s(),a(8,"option",125),d(9),h(10,"translate"),s(),a(11,"option",126),d(12),h(13,"translate"),s(),a(14,"option",127),d(15),h(16,"translate"),s()()()}if(t&2){let e=p();r(2),v(g(3,6,"Category")),r(2),R("ngModel",e.categoryContentSearch),r(2),v(g(7,8,"Mails")),r(3),v(g(10,10,"Contacts")),r(3),v(g(13,12,"To Do")),r(3),v(g(16,14,"Calendar"))}}function Fc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select2",128),h(5,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.selectedValueCS,i)||(o.selectedValueCS=i),f(i)}),y("search",function(i){_(e);let o=p();return f(o.onSearchContentSearch(i))})("update",function(i){_(e);let o=p();return f(o.updateContentSearch(i))}),s()()}if(t&2){let e=p();r(2),v(g(3,7,"User Id")),r(2),c("placeholder",g(5,9,"Select Users"))("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),R("ngModel",e.selectedValueCS)}}function Bc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select2",129),F("ngModelChange",function(i){_(e);let o=p();return U(o.selectedValueSiteCS,i)||(o.selectedValueSiteCS=i),f(i)}),y("search",function(i){_(e);let o=p();return f(o.onSearchSiteContentSearch(i))})("update",function(i){_(e);let o=p();return f(o.updateSiteContentSearch(i))}),s()()}if(t&2){let e=p();r(2),v(g(3,5,"Site")),r(2),c("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),R("ngModel",e.selectedValueSiteCS)}}function Vc(t,l){if(t&1&&(a(0,"option",32),d(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),Re("id",e.deviceId),r(),T(" ",e.deviceName," ")}}function Nc(t,l){t&1&&(a(0,"option"),d(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function Lc(t,l){if(t&1){let e=x();a(0,"div",108)(1,"label"),d(2),h(3,"translate"),s(),a(4,"select",130,5),y("change",function(i){_(e);let o=p();return f(o.onDeviceChangeCS(i))}),S(6,Vc,2,3,"option",110)(7,Nc,3,3,"option",19),s(),b(8,"i",111),s()}if(t&2){let e=p();r(2),v(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devicesCS),r(),c("ngIf",e.devicesCS.length==0)}}function Gc(t,l){if(t&1){let e=x();a(0,"c-row",35)(1,"div",36)(2,"c-input-group")(3,"input",131,6),h(5,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.contentSearchText,i)||(o.contentSearchText=i),f(i)}),y("keydown.enter",function(){_(e);let i=p();return f(i.searchForContent())}),s()()(),a(6,"div",38)(7,"button",39),y("click",function(){_(e);let i=p();return f(i.searchForContent())}),d(8),h(9,"translate"),s()()()}if(t&2){let e=p();r(3),R("ngModel",e.contentSearchText),c("placeholder",g(5,3,"Search..")),r(5),v(g(9,5,"Search"))}}function Hc(t,l){if(t&1){let e=x();a(0,"button",39),y("click",function(){_(e);let i=p(2);return f(i.togglePanel())}),b(1,"i",135),s()}if(t&2){let e=p(2);r(),c("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down")}}function zc(t,l){if(t&1){let e=x();a(0,"div",38)(1,"a",136),y("click",function(){_(e);let i=p(2);return f(i.searchForContent())}),d(2),h(3,"translate"),s()()}t&2&&(r(2),v(g(3,1,"Search")))}function jc(t,l){if(t&1){let e=x();a(0,"c-row",68)(1,"div",36)(2,"c-input-group",13)(3,"input",132,7),F("ngModelChange",function(i){_(e);let o=p();return U(o.contentSearchMail,i)||(o.contentSearchMail=i),f(i)}),y("keydown.enter",function(){_(e);let i=p();return f(i.searchForContent())}),s(),S(5,Hc,2,1,"button",133),s()(),S(6,zc,4,3,"div",134),s()}if(t&2){let e=p();r(3),R("ngModel",e.contentSearchMail),c("disabled",e.isExpanded),r(2),c("ngIf",e.categoryContentSearch=="mail"),r(),c("ngIf",!e.isExpanded)}}function Wc(t,l){if(t&1){let e=x();a(0,"div",138)(1,"div",139)(2,"label",140),d(3,"From "),a(4,"a",141),b(5,"i",142),a(6,"span",143),d(7),h(8,"translate"),s()()(),a(9,"input",144),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.fromId,i)||(o.fromId=i),f(i)}),s()(),a(10,"div",139)(11,"label",145),d(12,"To "),a(13,"a",141),b(14,"i",142),a(15,"span",143),d(16),h(17,"translate"),s()()(),a(18,"input",146),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.toId,i)||(o.toId=i),f(i)}),s()(),a(19,"div",139)(20,"label",147),d(21,"CC "),a(22,"a",141),b(23,"i",142),a(24,"span",143),d(25),h(26,"translate"),s()()(),a(27,"input",148),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.ccId,i)||(o.ccId=i),f(i)}),s()(),a(28,"div",139)(29,"label",149),d(30,"BCC "),a(31,"a",141),b(32,"i",142),a(33,"span",143),d(34),h(35,"translate"),s()()(),a(36,"input",150),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.bccId,i)||(o.bccId=i),f(i)}),s()(),a(37,"div",139)(38,"label",151),d(39),h(40,"translate"),a(41,"a",141),b(42,"i",142),a(43,"span",143),d(44),h(45,"translate"),s()()(),a(46,"input",152),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.subjectId,i)||(o.subjectId=i),f(i)}),s()(),a(47,"div",139)(48,"label",153),d(49),h(50,"translate"),s(),a(51,"input",154),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.bodyId,i)||(o.bodyId=i),f(i)}),s()(),a(52,"div",139)(53,"label",155),d(54),h(55,"translate"),s(),a(56,"input",156),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.keywordsId,i)||(o.keywordsId=i),f(i)}),s()(),a(57,"div",157)(58,"label",155),d(59),h(60,"translate"),s(),a(61,"input",158),y("click",function(i){return _(e),f(i.preventDefault())})("keydown",function(i){return _(e),f(i.preventDefault())}),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.myDateBefore,i)||(o.myDateBefore=i),f(i)}),s(),d(62),h(63,"translate"),a(64,"input",158),y("click",function(i){return _(e),f(i.preventDefault())})("keydown",function(i){return _(e),f(i.preventDefault())}),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.myDateAfter,i)||(o.myDateAfter=i),f(i)}),s()(),a(65,"div",68)(66,"a",159),y("click",function(){_(e);let i=p(2);return f(i.searchForContent())}),d(67),h(68,"translate"),s()()()}if(t&2){let e=p(2);r(7),v(g(8,24,"Use comma to separate Email addresses")),r(2),R("ngModel",e.fromId),r(7),v(g(17,26,"Use comma to separate Email addresses")),r(2),R("ngModel",e.toId),r(7),v(g(26,28,"Use comma to separate Email addresses")),r(2),R("ngModel",e.ccId),r(7),v(g(35,30,"Use comma to separate Email addresses")),r(2),R("ngModel",e.bccId),r(3),T("",g(40,32,"Subject")," "),r(5),v(g(45,34,"Use comma to separate multiple Subjects")),r(2),R("ngModel",e.subjectId),r(3),v(g(50,36,"Body")),r(2),R("ngModel",e.bodyId),r(3),v(g(55,38,"Keywords")),r(2),R("ngModel",e.keywordsId),r(3),v(g(60,40,"Date from")),r(2),c("readonly",!0),R("ngModel",e.myDateBefore),c("bsConfig",e.bsConfigBefore),r(),T(" ",g(63,42,"To")," "),r(2),c("readonly",!0),R("ngModel",e.myDateAfter),c("bsConfig",e.bsConfigAfter),r(3),v(g(68,44,"Search"))}}function qc(t,l){if(t&1&&(a(0,"c-row",68),S(1,Wc,69,46,"div",137),s()),t&2){let e=p();r(),c("ngIf",e.isExpanded)}}function Jc(t,l){t&1&&(a(0,"c-row",68)(1,"c-card",13)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),s()()()())}function $c(t,l){if(t&1){let e=x();a(0,"a",177),y("click",function(){_(e);let i=p(2);return f(i.enableMultiSelect())}),b(1,"i",178),a(2,"span",143),d(3),h(4,"translate"),s()()}t&2&&(r(3),v(g(4,1,"Enable Multiselect")))}function Zc(t,l){if(t&1){let e=x();a(0,"a",179),y("click",function(){_(e);let i=p(2);return f(i.removeAll())}),b(1,"i",180),a(2,"span",143),d(3),h(4,"translate"),s()()}t&2&&(r(3),v(g(4,1,"Disable Multiselect")))}function Kc(t,l){if(t&1){let e=x();a(0,"a",181),y("click",function(){_(e);let i=p(2);return f(i.exportCompleteMailboxAsPstG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Export all items to PST")))}function Yc(t,l){if(t&1){let e=x();a(0,"a",182),y("click",function(){_(e);let i=p(2);return f(i.exportFolderAsPstModalG())}),d(1),h(2,"translate"),s()}if(t&2){let e=p(2);c("ngClass",ke(4,Xl,e.addedElementsCount>0,e.addedElementsCount<=0)),r(),v(g(2,2,"Export selected items to PST"))}}function Qc(t,l){if(t&1){let e=x();a(0,"th",170)(1,"input",183),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.isSelectAll,i)||(o.isSelectAll=i),f(i)}),y("change",function(){_(e);let i=p(2);return f(i.toggleSelectAll())}),s()()}if(t&2){let e=p(2);r(),R("ngModel",e.isSelectAll)}}function Xc(t,l){if(t&1){let e=x();a(0,"button",184),y("click",function(){_(e);let i=p(2);return f(i.addToCartFinal())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Add Selected Items")))}function ed(t,l){if(t&1){let e=x();a(0,"td")(1,"input",188),F("ngModelChange",function(i){_(e);let o=p().$implicit;return U(o.isChecked,i)||(o.isChecked=i),f(i)}),y("change",function(){_(e);let i=p(4);return f(i.itemSelect())}),s()()}if(t&2){let e=p().$implicit;r(),R("ngModel",e.isChecked)}}function td(t,l){if(t&1&&(a(0,"td",189)(1,"span",190),d(2),s()()),t&2){let e=p().$implicit;r(),c("ngStyle",A(2,us,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function id(t,l){t&1&&b(0,"i",204)}function nd(t,l){if(t&1){let e=x();a(0,"a",205),y("click",function(){_(e);let i=p(3).$implicit,o=p(3);return f(o.downloadMail(i.userName,i.backupId,i.deviceUUID))}),b(1,"i",206),s()}}function rd(t,l){if(t&1){let e=x();a(0,"a",207),y("click",function(){_(e);let i=p(3).$implicit,o=p(3);return f(o.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),b(1,"i",208),s()}}function od(t,l){if(t&1&&(a(0,"p"),b(1,"span",209),s()),t&2){let e=p(3).$implicit,n=p(3);r(),c("innerHTML",n.renderHtml(e.displayContent),Ce)}}function ad(t,l){if(t&1&&(a(0,"a",194)(1,"span",195),d(2),s(),S(3,id,1,0,"i",196)(4,nd,2,0,"a",197)(5,rd,2,0,"a",198),a(6,"p",199)(7,"span",200),d(8),s(),b(9,"span",201),s(),S(10,od,2,1,"p",19),a(11,"p",202)(12,"b"),d(13),h(14,"translate"),s(),a(15,"span",203),d(16),s()()()),t&2){let e=p(2).$implicit,n=p(3);r(2),T(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),r(),c("ngIf",e.hasAttachments),r(),c("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),r(),c("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),r(3),T(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),r(),c("innerHTML",n.renderHtml(e.sentDate),Ce),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),le("",e.userName," : ",e.filePath,"")}}function sd(t,l){t&1&&b(0,"i",212)}function ld(t,l){if(t&1&&(a(0,"p"),b(1,"span",209),s()),t&2){let e=p(3).$implicit,n=p(3);r(),c("innerHTML",n.renderHtml(e.displayContent),Ce)}}function cd(t,l){if(t&1&&(a(0,"a",210)(1,"span",195),d(2),s(),S(3,sd,1,0,"i",211),a(4,"p",199)(5,"span",200),d(6),s(),b(7,"span",201),s(),S(8,ld,2,1,"p",19),s()),t&2){let e=p(2).$implicit,n=p(3);r(2),T(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),r(),c("ngIf",e.hasAttachments),r(3),T(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),r(),c("innerHTML",n.renderHtml(e.sentDate),Ce),r(),c("ngIf",e.displayContent)}}function dd(t,l){if(t&1){let e=x();a(0,"td",191),y("click",function(){_(e);let i=p().$implicit,o=p(3);return f(o.viewOutlook11(i.deviceId,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div"),S(3,ad,17,12,"a",192)(4,cd,9,5,"a",193),s()()()}if(t&2){let e=p().$implicit;Re("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function pd(t,l){t&1&&(a(0,"td",189),b(1,"i",213),s())}function ud(t,l){if(t&1){let e=x();a(0,"td",191),y("click",function(){_(e);let i=p().$implicit,o=p(3);return f(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div")(3,"a",214)(4,"span",195),d(5),s()()()()()}if(t&2){let e=p().$implicit;Re("data-name",e.name),r(5),T(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function md(t,l){t&1&&(a(0,"td",189),b(1,"i",215),s())}function hd(t,l){if(t&1){let e=x();a(0,"td",191),y("click",function(){_(e);let i=p().$implicit,o=p(3);return f(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,"to_do"))}),a(1,"div",68)(2,"div")(3,"a",214)(4,"span",195),d(5),s()()()()()}if(t&2){let e=p().$implicit;Re("data-name",e.name),r(5),T(" ",(e.taskSubject||"").slice(0,40)+(e.taskSubject&&e.taskSubject.length>40?"...":"")," ")}}function gd(t,l){if(t&1&&(a(0,"td",189)(1,"span",190),d(2),s()()),t&2){let e=p().$implicit;r(),c("ngStyle",A(2,us,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function _d(t,l){t&1&&b(0,"i",204)}function fd(t,l){if(t&1){let e=x();a(0,"a",205),y("click",function(){_(e);let i=p(3).$implicit,o=p(3);return f(o.downloadMail(i.userName,i.backupId,i.deviceUUID))}),b(1,"i",206),s()}}function vd(t,l){if(t&1){let e=x();a(0,"a",207),y("click",function(){_(e);let i=p(3).$implicit,o=p(3);return f(o.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),b(1,"i",208),s()}}function yd(t,l){if(t&1&&(a(0,"p"),b(1,"span",209),s()),t&2){let e=p(3).$implicit,n=p(3);r(),c("innerHTML",n.renderHtml(e.displayContent),Ce)}}function bd(t,l){if(t&1&&(a(0,"a",194)(1,"span",195),d(2),s(),S(3,_d,1,0,"i",196)(4,fd,2,0,"a",197)(5,vd,2,0,"a",198),a(6,"p",199)(7,"span",200),d(8),s(),b(9,"span",201),s(),S(10,yd,2,1,"p",19),a(11,"p",202)(12,"b"),d(13),h(14,"translate"),s(),a(15,"span",203),d(16),s()()()),t&2){let e=p(2).$implicit,n=p(3);r(2),T(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),r(),c("ngIf",e.hasAttachments),r(),c("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),r(),c("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),r(3),T(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),r(),c("innerHTML",n.renderHtml(e.sentDate),Ce),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),le("",e.userName," : ",e.filePath,"")}}function Cd(t,l){t&1&&b(0,"i",212)}function Sd(t,l){if(t&1&&(a(0,"p"),b(1,"span",209),s()),t&2){let e=p(3).$implicit,n=p(3);r(),c("innerHTML",n.renderHtml(e.displayContent),Ce)}}function wd(t,l){if(t&1&&(a(0,"a",210)(1,"span",195),d(2),s(),S(3,Cd,1,0,"i",211),a(4,"p",199)(5,"span",200),d(6),s(),b(7,"span",201),s(),S(8,Sd,2,1,"p",19),s()),t&2){let e=p(2).$implicit,n=p(3);r(2),T(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),r(),c("ngIf",e.hasAttachments),r(3),T(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),r(),c("innerHTML",n.renderHtml(e.sentDate),Ce),r(),c("ngIf",e.displayContent)}}function xd(t,l){if(t&1){let e=x();a(0,"td",191),y("click",function(){_(e);let i=p().$implicit,o=p(3);return f(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div"),S(3,bd,17,12,"a",192)(4,wd,9,5,"a",193),s()()()}if(t&2){let e=p().$implicit;Re("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function kd(t,l){if(t&1&&(a(0,"tr"),S(1,ed,2,1,"td",19)(2,td,3,4,"td",186)(3,dd,5,3,"td",187)(4,pd,2,0,"td",186)(5,ud,6,2,"td",187)(6,md,2,0,"td",186)(7,hd,6,2,"td",187)(8,gd,3,4,"td",186)(9,xd,5,3,"td",187),s()),t&2){let e=l.$implicit,n=p(3);Ge("selected-rowMail",n.isSelected(e)),r(),c("ngIf",n.isMultiSelectEnabled&&n.categoryContentSearch=="mail"),r(),c("ngIf",e.type=="File"&&n.categoryContentSearch=="mail"),r(),c("ngIf",e.type=="File"&&(n.categoryContentSearch=="mail"||n.categoryContentSearch=="calendar")),r(),c("ngIf",n.categoryContentSearch=="contacts"),r(),c("ngIf",n.categoryContentSearch=="contacts"),r(),c("ngIf",n.categoryContentSearch=="todo"),r(),c("ngIf",n.categoryContentSearch=="todo"),r(),c("ngIf",e.type=="File"&&n.categoryContentSearch=="calendar"),r(),c("ngIf",e.type=="File"&&n.categoryContentSearch=="calendar")}}function Id(t,l){if(t&1&&(a(0,"tbody"),S(1,kd,10,11,"tr",185),s()),t&2){let e=p(2);r(),c("ngForOf",e.foundMailsCS)}}function Td(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"app-calendar-layout",218),h(2,"split"),y("navigator",function(i){_(e);let o=p(3);return f(o.calenderNavigate(i))}),s()()}if(t&2){let e=p(3);r(),c("metaData",e.selectedUsers)("calenderEvents",e.foundMailsCS)("calendarView",e.calendarView)("breadcrumbItems",Q(2,4,e.selectedPathCS,"/"))}}function Ed(t,l){if(t&1&&(a(0,"div",233)(1,"b"),d(2),h(3,"translate"),s(),d(4),a(5,"span",234),d(6),h(7,"date"),s()()),t&2){let e=p(4);r(2),v(g(3,3,"Organizer :")),r(2),T(" ",e.currentCalendarFrom," "),r(2),v(g(7,5,e.currentCalendarSentDate))}}function Pd(t,l){if(t&1&&(a(0,"div",235)(1,"b"),d(2),h(3,"translate"),s(),d(4),s()),t&2){let e=p(4);r(2),v(g(3,2,"Attendees :")),r(2),T(" ",e.currentCalendarTo,"")}}function Md(t,l){if(t&1&&(a(0,"div",236)(1,"b"),d(2,"CC :"),s(),d(3),s()),t&2){let e=p(4);r(3),T(" ",e.currentCalendarCc,"")}}function Od(t,l){if(t&1&&(a(0,"div",237)(1,"b"),d(2,"BCC :"),s(),d(3),s()),t&2){let e=p(4);r(3),T(" ",e.currentCalendarBcc,"")}}function Dd(t,l){if(t&1&&(a(0,"span",241),d(1),s()),t&2){let e=l.$implicit;r(),T(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ")}}function Ad(t,l){if(t&1&&(a(0,"div",238)(1,"div",239),S(2,Dd,2,1,"span",240),d(3," \xA0 "),s()()),t&2){let e=p(4);r(2),c("ngForOf",e.currentCalendarAttachments)}}function Rd(t,l){if(t&1&&(a(0,"div",242)(1,"b"),b(2,"i",243),s(),d(3),s()),t&2){let e=p(4);r(3),T(" ",e.calendarDuration,"")}}function Ud(t,l){t&1&&(a(0,"c-callout",244),b(1,"i",245),a(2,"span"),d(3),h(4,"translate"),s()()),t&2&&(r(3),v(g(4,1,"Security restrictions may prevent pop-ups from this embedded content. If you trust the content, please open it in a new tab or window.")))}function Fd(t,l){if(t&1){let e=x();a(0,"c-card-body",219)(1,"div",220),b(2,"div",221),a(3,"div",222)(4,"div",223)(5,"h3"),d(6),s()(),S(7,Ed,8,7,"div",224)(8,Pd,5,4,"div",225)(9,Md,4,1,"div",226)(10,Od,4,1,"div",227)(11,Ad,4,1,"div",228)(12,Rd,4,1,"div",229),b(13,"br"),a(14,"div",230)(15,"iframe",231,8),y("mouseout",function(){_(e);let i=p(3);return f(i.showHideSecurityCallout(!0))})("mouseover",function(){_(e);let i=p(3);return f(i.showHideSecurityCallout(!0))}),s()()()(),S(17,Ud,5,3,"c-callout",232),s()}if(t&2){let e=p(3);c("ngClass",e.showCalendarView?"calendar-view":""),r(6),v(e.currentCalendarSubject),r(),c("ngIf",e.currentCalendarFrom!=""),r(),c("ngIf",e.currentCalendarTo!=""),r(),c("ngIf",e.currentCalendarCc!=""),r(),c("ngIf",e.currentCalendarBcc!=""),r(),c("ngIf",e.currentCalendarAttachments.length>0),r(),c("ngIf",e.calendarDuration),r(5),c("ngIf",e.showSecurityCallout)}}function Bd(t,l){t&1&&(a(0,"c-card-body",246)(1,"p"),d(2),h(3,"translate"),s()()),t&2&&(r(2),v(g(3,1,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.")))}function Vd(t,l){t&1&&(a(0,"c-card-body",246)(1,"p"),d(2),h(3,"translate"),s()()),t&2&&(r(2),v(g(3,1,"Item not available.")))}function Nd(t,l){if(t&1&&(a(0,"div",233)(1,"b"),d(2),h(3,"translate"),s(),d(4),a(5,"span",234),d(6),h(7,"translate"),s()()),t&2){let e=p(4);r(2),v(g(3,3,"From :")),r(2),T(" ",e.currentMailFrom," "),r(2),v(g(7,5,e.currentMailSentDate))}}function Ld(t,l){if(t&1&&(a(0,"div",235)(1,"b"),d(2),h(3,"translate"),s(),d(4),s()),t&2){let e=p(4);r(2),v(g(3,2,"To :")),r(2),T(" ",e.currentMailTo,"")}}function Gd(t,l){if(t&1&&(a(0,"div",236)(1,"b"),d(2),h(3,"translate"),s(),d(4),s()),t&2){let e=p(4);r(2),v(g(3,2,"CC :")),r(2),T(" ",e.currentMailCc,"")}}function Hd(t,l){if(t&1&&(a(0,"div",237)(1,"b"),d(2),h(3,"translate"),s(),d(4),s()),t&2){let e=p(4);r(2),v(g(3,2,"BCC :")),r(2),T(" ",e.currentMailBcc,"")}}function zd(t,l){if(t&1&&(a(0,"span",241),d(1),s()),t&2){let e=l.$implicit;r(),T(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ")}}function jd(t,l){if(t&1&&(a(0,"div",238)(1,"div",239),S(2,zd,2,1,"span",240),d(3," \xA0 "),s()()),t&2){let e=p(4);r(2),c("ngForOf",e.currentMailAttachments)}}function Wd(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"div",247),b(2,"div",221),a(3,"div",248)(4,"div",249)(5,"h3"),d(6),h(7,"translate"),s()(),S(8,Nd,8,7,"div",224)(9,Ld,5,4,"div",225)(10,Gd,5,4,"div",226)(11,Hd,5,4,"div",227)(12,jd,4,1,"div",228),b(13,"br"),a(14,"div",250)(15,"iframe",251,9),y("mouseout",function(){_(e);let i=p(3);return f(i.showHideSecurityCallout(!0))})("mouseover",function(){_(e);let i=p(3);return f(i.showHideSecurityCallout(!0))}),s()()()()()}if(t&2){let e=p(3);r(6),v(Q(7,6,"SubjectcurrentMailSubject",A(9,tc,e.currentMailSubject))),r(2),c("ngIf",e.currentMailFrom!=""),r(),c("ngIf",e.currentMailTo!=""),r(),c("ngIf",e.currentMailCc!=""),r(),c("ngIf",e.currentMailBcc!=""),r(),c("ngIf",e.currentMailAttachments.length>0)}}function qd(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.fullCombinedName,"Name"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.fullCombinedName)}}function Jd(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(5);return f(i.copyToClipboard(i.contactEmail,"Email: "+i.contactEmail))}),b(1,"i",275),s()}if(t&2){let e=p(5);c("title",e.contactEmail)}}function $d(t,l){if(t&1&&(a(0,"span",276),d(1),S(2,Jd,2,1,"a",259),s()),t&2){let e=p(4);c("title",e.contactEmail.length>20?e.contactEmail:""),r(),T(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),r(),c("ngIf",e.splitContactEmails.length===1&&e.contactEmail.length>20)}}function Zd(t,l){if(t&1){let e=x();a(0,"li"),d(1),a(2,"a",274),y("click",function(){let i=_(e).$implicit,o=p(5);return f(o.copyToClipboard(i,"Email: "+i))}),b(3,"i",275),s()()}if(t&2){let e=l.$implicit;r(),v(e),r(),c("title",e)}}function Kd(t,l){if(t&1&&(a(0,"ul",277),S(1,Zd,4,2,"li",117),s()),t&2){let e=p(4);r(),c("ngForOf",e.splitContactEmails)}}function Yd(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactOfficeLocation,"Location"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactOfficeLocation)}}function Qd(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactCompanyName,"Company"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactCompanyName)}}function Xd(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactJobTitle,"Job title"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactJobTitle)}}function ep(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactDepartment,"Department"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactDepartment)}}function tp(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactMobile,"Mobile phone"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactMobile)}}function ip(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactHomePhones,"Home phone"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactHomePhones)}}function np(t,l){if(t&1){let e=x();a(0,"a",274),y("click",function(){_(e);let i=p(4);return f(i.copyToClipboard(i.contactBusinessPhones,"Business phone"))}),b(1,"i",275),s()}if(t&2){let e=p(4);c("title",e.contactBusinessPhones)}}function rp(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"div",252)(2,"div",253)(3,"div",254),b(4,"c-avatar",255),s(),a(5,"div",256)(6,"div",257)(7,"span",258),d(8),s(),S(9,qd,2,1,"a",259),s(),a(10,"div",260)(11,"span",261),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullJobTitle=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullJobTitle=!1)}),d(12),s(),a(13,"span",262),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullDepartment=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullDepartment=!1)}),d(14),s()()()(),a(15,"div",263),b(16,"hr"),a(17,"div",264),y("mouseenter",function(){_(e);let i=p(3);return f(i.showHideField(!0))})("mouseleave",function(){_(e);let i=p(3);return f(i.showHideField(!1))}),a(18,"label",200),d(19,"Email: "),s(),b(20,"br"),S(21,$d,3,3,"span",265)(22,Kd,2,1,"ul",266),s(),a(23,"div",267)(24,"label",200),d(25,"Location: "),s(),b(26,"br"),a(27,"span",268),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullLocation=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullLocation=!1)}),d(28),s(),S(29,Yd,2,1,"a",259),s(),a(30,"div",267)(31,"label",200),d(32,"Company: "),s(),b(33,"br"),a(34,"span",269),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullCompanyName=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullCompanyName=!1)}),d(35),s(),S(36,Qd,2,1,"a",259),s(),a(37,"div",267)(38,"label",200),d(39,"Job title: "),s(),b(40,"br"),a(41,"span",261),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullJobTitle=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullJobTitle=!1)}),d(42),s(),S(43,Xd,2,1,"a",259),s(),a(44,"div",267)(45,"label",200),d(46,"Department: "),s(),b(47,"br"),a(48,"span",262),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullDepartment=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullDepartment=!1)}),d(49),s(),S(50,ep,2,1,"a",259),s(),a(51,"div",267)(52,"label",200),d(53),h(54,"translate"),s(),b(55,"br"),a(56,"span",258),d(57),s()(),a(58,"div",267)(59,"label",200),d(60,"Home Address: "),s(),b(61,"br"),a(62,"span",258),d(63),s()(),a(64,"div",267)(65,"label",200),d(66),h(67,"translate"),s(),b(68,"br"),a(69,"span",270),d(70),s()(),a(71,"div",267)(72,"label",200),d(73,"Mobile phone: "),s(),b(74,"br"),a(75,"span",271),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullMobile=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullMobile=!1)}),d(76),s(),S(77,tp,2,1,"a",259),s(),a(78,"div",267)(79,"label",200),d(80,"Home phone: "),s(),b(81,"br"),a(82,"span",272),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullHomePhone=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullHomePhone=!1)}),d(83),s(),S(84,ip,2,1,"a",259),s(),a(85,"div",267)(86,"label",200),d(87,"Business phone: "),s(),b(88,"br"),a(89,"span",273),y("mouseenter",function(){_(e);let i=p(3);return f(i.showFullBusinessPhone=!0)})("mouseleave",function(){_(e);let i=p(3);return f(i.showFullBusinessPhone=!1)}),d(90),s(),S(91,np,2,1,"a",259),s()()()()}if(t&2){let e=p(3);r(4),c("size","md")("src",e.profileImage||"./assets/images/avatars/default.jpg"),r(3),c("title",e.fullCombinedName),r(),T(" ",e.truncatedCombinedName," "),r(),c("ngIf",e.fullCombinedName.length>20),r(2),c("title",e.contactJobTitle.length>20?e.contactJobTitle:""),r(),T(" ",e.contactJobTitle.length>20&&e.showFullJobTitle?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),r(),c("title",e.contactDepartment.length>20?e.contactDepartment:""),r(),T(" ",e.contactDepartment.length>20&&e.showFullDepartment?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),r(7),c("ngIf",!e.showFullEmail),r(),c("ngIf",e.showFullEmail),r(5),c("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),r(),T(" ",e.contactOfficeLocation.length>20&&e.showFullLocation?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),r(),c("ngIf",e.contactOfficeLocation.length>20),r(5),c("title",e.contactCompanyName.length>20?e.contactCompanyName:""),r(),T(" ",e.contactCompanyName.length>20&&e.showFullCompanyName?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),r(),c("ngIf",e.contactCompanyName.length>20),r(5),c("title",e.contactJobTitle.length>20?e.contactJobTitle:""),r(),T(" ",e.contactJobTitle.length>20&&e.showFullJobTitle?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),r(),c("ngIf",e.contactJobTitle.length>20),r(5),c("title",e.contactDepartment.length>20?e.contactDepartment:""),r(),T(" ",e.contactDepartment.length>20&&e.showFullDepartment?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),r(),c("ngIf",e.contactDepartment.length>20),r(3),T("",g(54,39,"Business Address"),": "),r(3),c("title",e.combinedBusinessAddress),r(),T(" ",e.truncatedBusinessAddress," "),r(5),c("title",e.combinedHomeAddress),r(),T(" ",e.truncatedHomeAddress," "),r(3),T("",g(67,41,"Birthday"),": "),r(4),v(e.contactBirthday),r(5),c("title",e.contactMobile.length>20?e.contactMobile:""),r(),T(" ",e.contactMobile.length>20&&e.showFullMobile?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),r(),c("ngIf",e.contactMobile.length>20),r(5),c("title",e.contactHomePhones.length>20?e.contactHomePhones:""),r(),T(" ",e.contactHomePhones.length>20&&e.showFullHomePhone?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),r(),c("ngIf",e.contactHomePhones.length>20),r(5),c("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),r(),T(" ",e.contactBusinessPhones.length>20&&e.showFullBusinessPhone?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),r(),c("ngIf",e.contactBusinessPhones.length>20)}}function op(t,l){if(t&1&&(a(0,"c-card-body")(1,"div",278)(2,"p")(3,"b"),d(4),h(5,"translate"),s(),d(6),s(),a(7,"p")(8,"b"),d(9),h(10,"translate"),s(),d(11),h(12,"date"),s(),a(13,"p")(14,"b"),d(15),h(16,"translate"),s(),d(17),h(18,"date"),s(),a(19,"p")(20,"b"),d(21),h(22,"translate"),s(),d(23),h(24,"date"),s()()()),t&2){let e=p(3);r(4),v(g(5,8,"Subject:")),r(2),T(" ",e.taskSubject||"NA",""),r(3),v(g(10,10,"Task Created On:")),r(2),T(" ",e.taskStartDate!=="NA"?g(12,12,e.taskStartDate):e.taskStartDate,""),r(4),v(g(16,14,"Task Due Date:")),r(2),T(" ",e.taskDueDate!=="NA"?g(18,16,e.taskDueDate):e.taskDueDate,""),r(4),v(g(22,18,"Task Reminder Time:")),r(2),T(" ",e.taskReminderTime!=="NA"?g(24,20,e.taskReminderTime):e.taskReminderTime,"")}}function ap(t,l){if(t&1&&(a(0,"c-card",172),S(1,Td,3,7,"c-card-body",19)(2,Fd,18,9,"c-card-body",216)(3,Bd,4,3,"c-card-body",217)(4,Vd,4,3,"c-card-body",217)(5,Wd,17,11,"c-card-body",19)(6,rp,92,43,"c-card-body",19)(7,op,25,22,"c-card-body",19),s()),t&2){let e=p(2);c("ngClass",ke(8,ec,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),r(),c("ngIf",e.showCalendarLayoutView),r(),c("ngIf",e.showCalendarView),r(),c("ngIf",!e.showMailPreview),r(),c("ngIf",e.showNotAvailable),r(),c("ngIf",e.showMailView&&e.showMailPreview),r(),c("ngIf",e.showContactsView),r(),c("ngIf",e.showTasksView)}}function sp(t,l){t&1&&(a(0,"c-card",173)(1,"c-card-body",246)(2,"div",279),b(3,"div",280),s()()())}function lp(t,l){if(t&1){let e=x();a(0,"th"),d(1),a(2,"a",281),y("click",function(){_(e);let i=p(2);return f(i.removeAll())}),d(3),h(4,"translate"),s()()}if(t&2){let e=p(2);r(),le("",e.addedElementsCount," out of ",e.totalCountGS," selected "),r(2),v(g(4,3,"Remove all"))}}function cp(t,l){if(t&1&&(a(0,"th"),d(1),h(2,"translate"),s()),t&2){let e=p(2);r(),v(Q(2,1,"{{ addedElementsCount }} selected",A(4,ic,e.addedElementsCount)))}}function dp(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",282)(2,"span",283),d(3),s(),a(4,"a",284),y("click",function(){let i=_(e),o=i.$implicit,m=i.index,u=p(2);return f(u.removeItem(m,o.subject,o.backupId,o.subject))}),b(5,"i",285),s()()()}if(t&2){let e=l.$implicit;r(3),v(e.subject)}}function pp(t,l){if(t&1&&(a(0,"c-row",160)(1,"c-card-header",161),S(2,$c,5,3,"a",162)(3,Zc,5,3,"a",163),a(4,"span")(5,"b"),d(6),h(7,"translate"),s()(),S(8,Kc,3,3,"a",164)(9,Yc,3,7,"a",165),s(),a(10,"c-card",166)(11,"c-card-body")(12,"div",167)(13,"table",168)(14,"thead",114)(15,"tr"),S(16,Qc,2,1,"th",169),a(17,"th",170),d(18," Results "),S(19,Xc,3,3,"button",171),s()()(),S(20,Id,2,1,"tbody",19),s()()()(),S(21,ap,8,11,"c-card",172)(22,sp,4,0,"c-card",173),a(23,"c-card",174)(24,"c-card-body")(25,"table",175)(26,"colgroup"),b(27,"col",176),s(),a(28,"thead")(29,"tr"),S(30,lp,5,5,"th",19)(31,cp,3,6,"th",19),s()(),a(32,"tbody"),S(33,dp,6,1,"tr",117),s()()()()()),t&2){let e=p();r(2),c("ngIf",!e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),v(Q(7,18,"totalCountGSSearchResultsFound",A(21,Kl,e.totalCountGS))),r(2),c("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&(e.product==null||e.product.downloadsConfigurations==null||e.product.downloadsConfigurations.search==null?null:e.product.downloadsConfigurations.search.allResultsToPST)),r(),c("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),r(),c("ngClass",A(23,Yl,e.isMultiSelectEnabled)),r(3),c("hover",!0)("responsive",!0)("striped",!1),r(3),c("ngIf",e.isMultiSelectEnabled),r(3),c("ngIf",e.updateAddToCartButtonVisibility()),r(),c("ngIf",!e.noFilesFoundCS),r(),He(e.showloaderAtPreview?22:21),r(2),c("ngClass",B(25,Ql))("ngStyle",A(26,Ve,e.isMultiSelectEnabled?"block":"none")),r(7),c("ngIf",e.addedElementsCount>0),r(),c("ngIf",e.addedElementsCount==0),r(2),c("ngForOf",e.addedElementsUpdated)}}function up(t,l){t&1&&(a(0,"c-row",286)(1,"c-col",173)(2,"c-callout",244),b(3,"i",245),a(4,"span"),d(5),h(6,"translate"),s()()()()),t&2&&(r(5),v(g(6,1,"Security restrictions may prevent pop-ups from this embedded content. If you trust the content, please open it in a new tab or window.")))}function mp(t,l){if(t&1){let e=x();a(0,"a",293),y("click",function(){_(e);let i=p(2);return f(i.searchForContentNavigate(i.first))}),b(1,"i",294),s()}}function hp(t,l){if(t&1){let e=x();a(0,"a",295),y("click",function(){_(e);let i=p(2);return f(i.searchForContentNavigate(i.previous))}),b(1,"i",296),s()}}function gp(t,l){if(t&1){let e=x();a(0,"a",297),y("click",function(){_(e);let i=p(2);return f(i.searchForContentNavigate(i.next))}),b(1,"i",298),s()}}function _p(t,l){if(t&1){let e=x();a(0,"a",299),y("click",function(){_(e);let i=p(2);return f(i.searchForContentNavigate(i.last))}),b(1,"i",300),s()}}function fp(t,l){if(t&1&&(a(0,"c-row",22)(1,"div",287)(2,"div",288),S(3,mp,2,0,"a",289)(4,hp,2,0,"a",290)(5,gp,2,0,"a",291)(6,_p,2,0,"a",292),s()()()),t&2){let e=p();r(3),c("ngIf",e.first!=""),r(),c("ngIf",e.previous!=""),r(),c("ngIf",e.next!=""),r(),c("ngIf",e.last!="")}}function vp(t,l){t&1&&(a(0,"small"),d(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name is required.")," "))}function yp(t,l){t&1&&(a(0,"small"),d(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "))}function bp(t,l){t&1&&(a(0,"small"),d(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name must be at least 3 characters long.")," "))}function Cp(t,l){if(t&1&&(a(0,"div",301),S(1,vp,3,3,"small",19)(2,yp,3,3,"small",19)(3,bp,3,3,"small",19),s()),t&2){p();let e=X(102);r(),c("ngIf",e.errors==null?null:e.errors.required),r(),c("ngIf",e.errors&&e.errors.pattern),r(),c("ngIf",e.errors&&e.errors.minlength)}}function Sp(t,l){if(t&1){let e=x();a(0,"button",302),y("click",function(){_(e);let i=p();return f(i.exportCompleteMailboxAsPstTriggerG())}),d(1),h(2,"translate"),s()}if(t&2){p();let e=X(102);c("disabled",e.invalid),r(),v(g(2,2,"Proceed"))}}function wp(t,l){if(t&1){let e=x();a(0,"button",302),y("click",function(){_(e);let i=p();return f(i.exportSelectedAsPstG())}),d(1),h(2,"translate"),s()}if(t&2){p();let e=X(102);c("disabled",e.invalid),r(),v(g(2,2,"Proceed"))}}function xp(t,l){t&1&&(a(0,"th"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Current item being processed")))}function kp(t,l){if(t&1&&(a(0,"span"),d(1),h(2,"slice"),s()),t&2){let e=p(2);r(),T("/ ",Be(2,1,e.progressG.subject,0,40),"")}}function Ip(t,l){if(t&1&&(a(0,"td")(1,"span",303),d(2),h(3,"slice"),s(),S(4,kp,3,5,"span",19),s()),t&2){let e=p();r(),Ot("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),v(Be(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function Tp(t,l){t&1&&(a(0,"td"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"-")))}function Ep(t,l){if(t&1&&(a(0,"span"),d(1),s()),t&2){let e=p(2);r(),le("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore,"")}}function Pp(t,l){if(t&1&&(a(0,"td"),S(1,Ep,2,2,"span",19),a(2,"div",304)(3,"div",305),d(4),h(5,"number"),s()()()),t&2){let e=p();r(),c("ngIf",e.progressG.totalNoOfFilesForRestore),r(),Mt("title","",e.progressG.totalRestorePct,"%"),r(),we("width",e.progressG.totalRestorePct,"%"),r(),T(" ",Q(5,6,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Mp(t,l){t&1&&(a(0,"td"),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"0")))}function Op(t,l){if(t&1){let e=x();a(0,"button",72),y("click",function(){_(e);let i=p();return f(i.cancelDownloadAsPstG())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Cancel Restore")))}function Dp(t,l){t&1&&(a(0,"div",327)(1,"ul",328)(2,"li",329)(3,"strong",330),d(4,"No Users found"),s(),b(5,"ul",331),s()()())}function Ap(t,l){if(t&1&&(a(0,"option",32),d(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),r(),T(" ",e.deviceName," ")}}function Rp(t,l){if(t&1){let e=x();a(0,"div",313)(1,"span",36),d(2),h(3,"translate"),s(),a(4,"div",314)(5,"c-form-check",315)(6,"input",332),F("ngModelChange",function(i){_(e);let o=p(2);return U(o.suspendBackupR,i)||(o.suspendBackupR=i),f(i)}),s()()()()}if(t&2){let e=p(2);r(2),v(g(3,3,"Disallow new backups during this restore")),r(3),c("switch",!0),r(),R("ngModel",e.suspendBackupR)}}function Up(t,l){if(t&1){let e=x();a(0,"c-card"),b(1,"c-card-header",67),a(2,"c-card-body")(3,"c-row")(4,"span"),d(5,"Source Path - "),a(6,"span"),d(7),s()()(),a(8,"c-row",68)(9,"p"),d(10),h(11,"translate"),s(),a(12,"div",139)(13,"label"),d(14,"User Id"),s(),a(15,"select2",306),h(16,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.selectedValueR,i)||(o.selectedValueR=i),f(i)}),y("search",function(i){_(e);let o=p();return f(o.onSearchR(i))})("update",function(i){_(e);let o=p();return f(o.updateR(i))}),s(),S(17,Dp,6,0,"div",307),s(),a(18,"div",139)(19,"label"),d(20,"Asset Name"),s(),a(21,"select",308,10),y("change",function(){_(e);let i=X(22),o=p();return f(o.onDeviceChangeR(i.value))}),S(23,Ap,2,2,"option",110),s()()(),a(24,"c-row")(25,"div",58)(26,"label",309),d(27),h(28,"translate"),s(),a(29,"c-input-group",13)(30,"input",310),h(31,"translate"),F("ngModelChange",function(i){_(e);let o=p();return U(o.destinationPathR,i)||(o.destinationPathR=i),f(i)}),s(),a(32,"button",311),y("click",function(){_(e);let i=p();return f(i.browseR())}),d(33),h(34,"translate"),s()()()(),a(35,"c-row",68)(36,"h3"),d(37),h(38,"translate"),s(),a(39,"div",79),S(40,Rp,7,5,"div",312),a(41,"div",313)(42,"span",36),d(43),h(44,"translate"),s(),a(45,"div",314)(46,"c-form-check",315)(47,"input",316),F("ngModelChange",function(i){_(e);let o=p();return U(o.inplaceRestoreR,i)||(o.inplaceRestoreR=i),f(i)}),s()()()(),a(48,"div",313)(49,"span",36),d(50),h(51,"translate"),s(),a(52,"div",314)(53,"c-form-check",315)(54,"input",317),F("ngModelChange",function(i){_(e);let o=p();return U(o.restoreDeletedFilesByRestoreR,i)||(o.restoreDeletedFilesByRestoreR=i),f(i)}),s()()()()(),a(55,"div",318)(56,"div",319)(57,"span",320),d(58,"Restore Data As Of"),s(),a(59,"div",321)(60,"c-form-check",315)(61,"input",322),F("ngModelChange",function(i){_(e);let o=p();return U(o.dateBeforeR,i)||(o.dateBeforeR=i),f(i)}),y("change",function(){_(e);let i=p();return f(i.toggleDateBeforeR())}),s()()()(),a(62,"div",323)(63,"div",324)(64,"input",325),F("ngModelChange",function(i){_(e);let o=p();return U(o.myDateBeforeR,i)||(o.myDateBeforeR=i),f(i)}),s(),a(65,"timepicker",326),F("ngModelChange",function(i){_(e);let o=p();return U(o.myTimeBeforeR,i)||(o.myTimeBeforeR=i),f(i)}),s()()()()()()()}if(t&2){let e=p();r(7),v(e.currentFilePathR),r(3),v(g(11,34,"Select a destination asset:")),r(5),c("placeholder",g(16,36,"Select Users"))("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),R("ngModel",e.selectedValueR),r(2),c("ngIf",e.deviceUsersListR.length===0),r(6),c("ngForOf",e.devicesR),r(3),c("ngClass",A(50,nc,!e.inplaceRestoreR)),r(),v(g(28,38,"Select a Destination Path")),r(3),R("ngModel",e.destinationPathR),c("required",!e.inplaceRestoreR)("placeholder",g(31,40,"Enter Destination Path"))("readonly",!0),r(3),v(g(34,42,"Browse")),r(4),v(g(38,44,"Restore Options")),r(3),c("ngIf",!B(52,St).includes(e.productTypeContentSearch)),r(3),v(g(44,46,"In place Restore")),r(3),c("switch",!0),r(),R("ngModel",e.inplaceRestoreR),r(3),v(g(51,48,"Restore Deleted Mails")),r(3),c("switch",!0),r(),R("ngModel",e.restoreDeletedFilesByRestoreR),r(6),c("switch",!0),r(),R("ngModel",e.dateBeforeR),r(3),R("ngModel",e.myDateBeforeR),c("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),r(),R("ngModel",e.myTimeBeforeR),c("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function Fp(t,l){if(t&1&&(a(0,"c-row")(1,"span"),d(2),h(3,"translate"),a(4,"span"),d(5),s()()()),t&2){let e=p(2);r(2),T("",g(3,2,"Source Path")," - "),r(3),v(e.currentFilePathR)}}function Bp(t,l){t&1&&(a(0,"th"),d(1,"Current item being processed"),s())}function Vp(t,l){t&1&&(a(0,"th"),d(1),h(2,"translate"),s()),t&2&&(r(),T("",g(2,1,"Source Path")," "))}function Np(t,l){if(t&1&&(a(0,"span"),d(1),h(2,"slice"),s()),t&2){let e=p(3);r(),T("/ ",Be(2,1,e.progressR.subject,0,40),"")}}function Lp(t,l){if(t&1&&(a(0,"td")(1,"span",303),d(2),h(3,"slice"),s(),S(4,Np,3,5,"span",19),s()),t&2){let e=p(2);r(),Ot("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),r(),v(Be(3,5,e.progressR.currentFolderPath,0,20)),r(2),c("ngIf",e.progressR.subject)}}function Gp(t,l){if(t&1&&(a(0,"td")(1,"span",333),d(2),h(3,"slice"),s()()),t&2){let e=p(2);r(),xe("title",e.progressR.folderName),r(),v(Be(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function Hp(t,l){t&1&&(a(0,"td"),d(1,"-"),s())}function zp(t,l){if(t&1&&(a(0,"span"),d(1),s()),t&2){let e=p(4);r(),le("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore,"")}}function jp(t,l){if(t&1&&(a(0,"td"),S(1,zp,2,2,"span",19),a(2,"div",334)(3,"div",305),d(4),h(5,"number"),s()()()),t&2){let e=p(3);r(),c("ngIf",e.progressR.totalNoOfFilesForRestore),r(),Mt("title","",e.progressR.totalRestorePct,"%"),r(),we("width",e.progressR.totalRestorePct,"%"),r(),T(" ",Q(5,6,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function Wp(t,l){if(t&1&&S(0,jp,6,9,"td",19),t&2){let e=p(2);c("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function qp(t,l){t&1&&(a(0,"td"),b(1,"div",335),s())}function Jp(t,l){t&1&&(a(0,"td"),d(1,"0"),s())}function $p(t,l){if(t&1&&(a(0,"c-card"),b(1,"c-card-header",67),a(2,"c-card-body"),S(3,Fp,6,4,"c-row",19),a(4,"c-row",68)(5,"h3"),d(6),h(7,"translate"),s(),a(8,"table",69)(9,"thead")(10,"tr"),S(11,Bp,2,0,"th")(12,Vp,3,3,"th"),a(13,"th"),d(14),h(15,"translate"),s()()(),a(16,"tbody")(17,"tr"),S(18,Lp,5,9,"td",19)(19,Gp,4,6,"td",19)(20,Hp,2,0,"td",19)(21,Wp,1,1,"td")(22,qp,2,0,"td")(23,Jp,2,0,"td",19),s()()()()()()),t&2){let e=p();r(3),c("ngIf",!B(13,ds).includes(e.productTypeContentSearch)),r(3),v(g(7,9,"Currently Running Restore Statistics")),r(5),He(B(14,ds).includes(e.productTypeContentSearch)?12:11),r(3),v(g(15,11,"Overall Progress")),r(4),c("ngIf",!B(15,St).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),r(),c("ngIf",B(16,St).includes(e.productTypeContentSearch)),r(),c("ngIf",!B(17,St).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),r(),He(!B(18,St).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?21:22),r(2),c("ngIf",!B(19,St).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function Zp(t,l){if(t&1){let e=x();a(0,"button",336),y("click",function(){_(e);let i=p();return f(i.initiateRestoreR())}),d(1),h(2,"translate"),s()}if(t&2){let e=p();c("disabled",!e.selectedValueR||!e.selectedDeviceUUIDR||!e.inplaceRestoreR&&!e.destinationPathR.trim()),r(),v(g(2,2,"Initiate Restore"))}}function Kp(t,l){if(t&1){let e=x();a(0,"button",337),y("click",function(){_(e);let i=p();return f(i.cancelRunningRestoreR())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Cancel Restore")))}function Yp(t,l){if(t&1){let e=x();a(0,"button",338),y("click",function(){_(e);let i=p();return f(i.closeRestorePopupR())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Close")))}function Qp(t,l){if(t&1){let e=x();a(0,"button",339),y("click",function(){_(e);let i=p();return f(i.closeRestorePopupR())}),d(1),h(2,"translate"),s()}t&2&&(r(),v(g(2,1,"Close")))}function Xp(t,l){t&1&&(a(0,"span"),d(1,"My Drive/"),s())}function e0(t,l){t&1&&(a(0,"span"),d(1,"/"),s())}function t0(t,l){if(t&1&&(a(0,"span"),d(1),s()),t&2){let e=p();r(),v(e.browsePathR)}}function i0(t,l){if(t&1){let e=x();a(0,"button",340),y("click",function(){_(e);let i=p();return f(i.backBrowseR())}),b(1,"i",341),d(2),h(3,"translate"),s()}t&2&&(r(2),T(" ",g(3,1,"Back"),""))}function n0(t,l){t&1&&(a(0,"tr")(1,"td",342)(2,"div",343)(3,"span",344),d(4),h(5,"translate"),s()()()()),t&2&&(r(4),v(g(5,1,"Loading...")))}function r0(t,l){if(t&1){let e=x();a(0,"tr",345),y("click",function(){let i=_(e).$implicit,o=p();return f(o.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(i){let o=_(e).$implicit,m=p();return f(m.onDoubleClickR(i,o.folderName||o,o.folderId))}),a(1,"td")(2,"span",258),d(3),s()()()}if(t&2){let e=l.$implicit,n=p();c("ngClass",A(3,rc,n.selectedBrowseItemR===(e.folderName||e))),r(2),xe("title",e.folderName||e),r(),T(" ",e.folderName||e," ")}}var ms=(()=>{class t{constructor(e,n,i,o,m,u,C,k,E,P,O,M,D,V,oe,Te){this.authService=e,this.datePipe=n,this.router=i,this.apiService=o,this.toastr=m,this.http=u,this.sharedService=C,this.renderer=k,this.cdr=E,this.sanitizer=P,this.configService=O,this.licenseCheckService=M,this.TranslateService=D,this.userRoleService=V,this.userManagementService=oe,this.assetManagementService=Te,this.PRODUCTS_CONFIG=Ga,this.userAssetSearchText="",this.showCalendarLayoutView=!1,this.calendarView=za.None,this.showCalendarView=!1,this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.showSecurityCallout=!0,this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.product=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.selectedPathCS="",this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!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.profileImage="",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.splitContactEmails=[],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.calendarDuration="",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.categoryContentSearch="mail",this.showloaderAtPreview=!1,this.txtFile="",this.isViewFile=!1,this.close=new be,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let ae=new Date,L=new Date;L.setFullYear(ae.getFullYear()-1),new Date().setDate(ae.getDate()-14),this.bsConfigBefore={minDate:L,maxDate:ae,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:L,maxDate:ae,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 z(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:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedValueSiteCS="All Sites",this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")}]}];yield this.initializeEnvDetails(),this.getCloudProperties()})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy hh:mm:ss")||""}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","gdrive_backup_enabled"].some(o=>this.inclusionLicenses.includes(o));let i=["exchange","gdrive","gmail","onedrive","sharepoint","sync"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(o=>i.some(m=>o===`contentsearchenabledfor${m}`)),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("sharepoint_backup_enabled")?this.productTypeFiles="SHAREPOINT":this.inclusionLicenses.includes("gdrive_backup_enabled")?this.productTypeFiles="Google Drive":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.inclusionLicenses.includes("gdrive_backup_enabled")?this.productTypeContentSearch="Google Drive":this.productTypeContentSearch=""}checkFeatureLicensed(e){return this.featureLicensedFlags.find(n=>e.includes(n))}getSignedURLFromId(e=!1,n=""){this.assetManagementService.getSignedURLFromId(this.downloadId).subscribe(i=>{console.log("res from getSignedURLFromId : "+JSON.stringify(i)),console.log("res from getSignedURLFromId : "+JSON.stringify(i.body)),this.intervalId&&clearInterval(this.intervalId),this.cdr.detectChanges()},i=>{if(i.status===404)return;this.intervalId&&(this.downloadId="",clearInterval(this.intervalId)),console.error("Error from getSignedURLFromId: ",i),console.error("Error status: ",i.status),console.error("Error status: ",i.error.text);let o=i.error.text;if(this.isViewFile){if(this.selectedUsers.size===1){let k=Array.from(this.selectedUsers)[0];if(console.log("filesize : "+k.rawSize),parseFloat(k.rawSize)>=51200){console.log(`filesize is more than ${50}MB `);return}}let m=/\/chunk\/([^/]+)/,u=o,C="";if(u){let k=u.match(m);k&&(console.log(k[1]),C=k[1])}this.executeNextCodeUnified(this.categoryContentSearch,C,o);return}else window.open(o,"_self");switch(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 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",i.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: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}executeNextCodeUnified(e,n,i){let o=this.sanitizer.sanitize(It.URL,i)||"";this.getJsonFromUrl(o,e)}getJsonFromUrl(e,n){this.txtFile=e,this.http.get(this.txtFile,{responseType:"json"}).subscribe(i=>{console.log("data : "+i),this.renderPrevious(i,n)},i=>{console.error("File does not exist or could not be loaded:",i)})}copyToClipboard(e,n){let i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.toastr.success(n+" copied to clipboard!")}showHideField(e){this.splitContactEmails.length>1&&(this.showFullEmail=e)}renderPrevious(e,n){if(n==="contacts"||this.categoryContentSearch=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=e.contact.displayName,this.contactTitle=e.contact.title,this.contactFirstName=e.contact.firstName,this.contactMiddleName=e.contact.middleName,this.contactLastName=e.contact.surname,this.contactSuffix=e.contact.suffix,this.contactEmail=e.contact.emailAddresses.map(m=>m.address||m.name).join(","),this.splitContactEmails=e.contact.emailAddresses.map(m=>m.address||m.name),this.contactMobile=e.contact.mobilePhone,this.contactAddrStreet=e.contact.homeAddress.street,this.contactAddrCity=e.contact.homeAddress.city,this.contactAddrState=e.contact.homeAddress.state,this.contactAddrCountry=e.contact.homeAddress.countryOrRegion,this.contactAddrPostalCode=e.contact.homeAddress.postalCode,this.contactBusiAddrStreet=e.contact.businessAddress.street,this.contactBusiAddrCity=e.contact.businessAddress.city,this.contactBusiAddrState=e.contact.businessAddress.state,this.contactBusiAddrCountry=e.contact.businessAddress.countryOrRegion,this.contactBusiAddrPostalCode=e.contact.businessAddress.postalCode,this.contactOfficeLocation=e.contact.businessPhones[0]&&e.contact.businessPhones[0]!==""?e.contact.contactOfficeLocation[0]:"-",this.contactCompanyName=e.contact.yomiCompanyName&&e.contact.yomiCompanyName!==""?e.contact.yomiCompanyName:"-",this.contactJobTitle=e.contact.jobTitle&&e.contact.jobTitle!==""?e.contact.jobTitle:"-",this.contactDepartment=e.contact.department&&e.contact.department!==""?e.contact.department:"-",this.contactBirthday=e.contact.birthday&&e.contact.birthday!==""?e.contact.birthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=e.contact.homePhones[0]&&e.contact.homePhones[0]!==""?e.contact.homePhones[0]:"-",this.contactBusinessPhones=e.contact.businessPhones[0]&&e.contact.businessPhones[0]!==""?e.contact.businessPhones[0]:"-",this.contactWebSite=e.contact.businessHomePage&&e.contact.businessHomePage!==""?e.contact.businessHomePage:"-",this.profileImage=e.photo?`data:image/jpg;base64,${e.photo}`:"./assets/images/avatars/default.jpg";let i=[this.contactBusiAddrStreet,this.contactBusiAddrCity,this.contactBusiAddrState,this.contactBusiAddrCountry,this.contactBusiAddrPostalCode];this.combinedBusinessAddress=i.filter(m=>m&&m.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let o=[this.contactAddrStreet,this.contactAddrCity,this.contactAddrState,this.contactAddrCountry,this.contactAddrPostalCode];this.combinedHomeAddress=o.filter(m=>m&&m.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress,this.truncatedCombinedName=this.contactName.length>20?this.contactName.substring(0,20)+"...":this.contactName}else n==="to_do"||this.categoryContentSearch=="todo"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,console.log("its a task..."),this.resetTasksFields(),this.taskSubject=e.title||"NA",this.taskStartDate=e?.completedDateTime?.dateTime?e?.completedDateTime?.dateTime+"Z":"NA",this.taskDueDate=e?.dueDateTime?.dateTime?e?.dueDateTime?.dateTim+"Z":"NA",this.taskReminderTime=e?.reminderDateTime?.dateTime?e?.reminderDateTime?.dateTime+"Z":"NA",console.log("its a todo...",e)):(n==="calendar"||this.categoryContentSearch=="calendar")&&(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,console.log("its a calendar..."),this.currentCalendarSubject=e.subject||"",this.currentFileName=e.subject||"",this.currentCalendarFrom=e.organizer.emailAddress.address||"",this.currentCalendarSentDate=e.createdDateTime||"",this.currentCalendarTo=e.attendees.map(i=>i.emailAddress.address).join(",")||"",this.currentCalendarCc=e.ccRecipients||"",this.currentCalendarBcc=e.bccRecipients||"",this.currentCalendarAttachments=e.attachments||[],this.currentCalendarBody=e.body.content||"",this.calendarDuration=e?.start?.dateTime&&e?.end?.dateTime?`${this.getFormattedDate(e.start.dateTime+"Z")} - ${this.getFormattedDate(e.end.dateTime+"Z")}`:"",this.currentCalendarBody=this.currentCalendarBody,this.showloaderAtPreview=!1,setTimeout(()=>{let i=this.calendarIframe.nativeElement,o=i.contentDocument||i.contentWindow?.document;o&&(o.open(),o.write(this.currentCalendarBody),o.close())}));this.showloaderAtPreview=!1}setActiveSearchTab(e,n){return z(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(o=>o.key===this.productTypeFiles||o.dataManagementKey===this.productTypeFiles||o.key2===this.productTypeFiles||o.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(o=>o.key===this.productTypeContentSearch||o.dataManagementKey===this.productTypeContentSearch||o.key2===this.productTypeContentSearch||o.key3===this.productTypeContentSearch),setTimeout(()=>{this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?this.contentSearchMailInput.nativeElement.focus():this.contentSearch.nativeElement.focus()},0);break;default:setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break}typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath)})}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(It.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):Ze(null);Ki([e,n,i]).subscribe(([o,m,u])=>{console.log("getUsersSearch response body:",JSON.stringify(o.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(o.headers)),console.log("getDeviceSearch response body:",JSON.stringify(m.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(m.headers)),o.body.data&&o.body.data.users?(this.noUsersFoundText="",this.foundUsers=o.body.data.users.map(C=>Ae(J({},C),{userNameEncoded:btoa(C.userName)}))):(this.foundUsers=[],this.noUsersFoundText=this.TranslateService.instant("No Users found.")),m.body.data&&m.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=m.body.data.devices.map(C=>Ae(J({},C),{userNameEncoded:btoa(C.userName),deviceNameEncoded:btoa(C.deviceName)}))):(this.noDevicesFoundText=this.TranslateService.instant("No Devices found"),this.foundDevices=[]),u&&(console.log("getSitesSearch response body:",JSON.stringify(u.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(u.headers)),u.body.data&&u.body.data.users?(this.noSitesFoundText="",this.foundSites=u.body.data.users.map(C=>Ae(J({},C),{userNameEncoded:btoa(C.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.TranslateService.instant("No Sites found.")))},o=>{switch(console.error("Error from Api's call: ",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let i=document.querySelector(".header.header-sticky");i&&this.renderer.setStyle(i,"z-index","1000");let o=document.querySelector(".overlay");o&&this.renderer.setStyle(o,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let o=i.body.searchUserElementList.map(m=>({value:m.userName,label:m.userName}));this.deviceUsersList=[{label:"",options:o}],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 o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":this.deviceType=="mail"?o="OUTLOOK":o=this.deviceType,this.devices=i.body.data.devices.filter(m=>m.blocked===!1&&m.deviceType==o).map(m=>({deviceName:m.deviceName,deviceUUID:m.deviceUUID,deviceId:m.deviceId,osType:m.osType,decoupled:m.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},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(o=>o.blocked===!1&&o.deviceType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0]?.deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){return z(this,null,function*(){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let m={value:this.selectedValue};this.update(m)}this.devices=[];let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(m=>m.key===i||m.dataManagementKey===i||m.key2===i||m.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 o=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let m=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(u=>{let C={exists:u.present?u.present.toString():"",backup:"true",deviceUUID:u.deviceUUID?u.deviceUUID.toString():"",fileName:u.fileName?u.fileName.toString():"",filePath:u.fileCompletePath?u.fileCompletePath.toString():"",fileUser:u.fileUserOwner?btoa(u.fileUserOwner):"",folder:u.folder?"true":"false",fileRevisionID:u.backupId?u.backupId.toString():"",content:u.metaData?u.metaData.toString():"",modifiedTimestamp:u.lastModifiedTimestamp?parseInt(u.lastModifiedTimestamp,10):0,size:u.size?parseInt(u.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(C.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,P=E.osType.substring(0,3).toLowerCase(),O="Windows",M="Windows";P==="win"?(O="Windows",M="Windows"):P==="mac"?(O="Mac",M="Mac"):P==="one"?(O="ONEDRIVE",M="ONEDRIVE"):P==="out"?(O="OUTLOOK",M="OUTLOOK"):P==="sha"&&(O="SHAREPOINT",M="SHAREPOINT"),C.deviceType=O,C.deviceOs=M,C.deviceId=E.deviceId?E.deviceId.toString():"",C.blocked="active",C.deviceName=E.deviceName?E.deviceName.toString():"",C.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",C.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",o.push(C),this.foundFiles=o,this.noFilesFound=!1,console.log("Files:",JSON.stringify(o))},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 o=i.body.stringElementList.map(m=>({value:m.name,label:m.name}));this.siteList=[{label:"",options:o}],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 o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceType,this.devices=i.body.data.devices.filter(m=>m.blocked===!1&&m.deviceType==o).map(m=>({deviceName:m.deviceName,deviceUUID:m.deviceUUID,deviceId:m.deviceId,osType:m.osType,decoupled:m.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,o,m,u,C,k,E){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+o),console.log("fileUser : "+m),console.log("deviceUUID : "+u),console.log("folder : "+C),console.log("token : "+this.sharedService.getDataByKey("authToken")),["OUTLOOK","Gmail","mail"].includes(E)){this.downloadMail(m,i,u);return}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(i,u,parseFloat((k/1024).toFixed(2))>=10,C==="true",this.product.dataManagementKey||this.product.key||E);return}let P="https://",O=this.configService.baseFolder,M="/BluKryptBuilder/cloud/",D=this.configService.cloudName,V=this.authService.Token,oe=this.sharedService.getDataByKey("userName"),Te=`${P}${O}${M}${D}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${V}&loginUserName=${oe}&isSync=false+&deviceUUID=${u}&backupID=${i}&backup=${o}&userName=${this.base64Encode(m)}&moveToDownloads=false`;window.open(Te,"_self")}gDriveDownloadFile(e,n,i,o=!1,m){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),o?"FOLDER":i?"LARGE_FILE":this.isViewFile?"VIEW":"SMALL_FILE",m,this.restoreDeletedFilesByRestoreR).subscribe(u=>{if(console.log("res from downloadGsuite : "+JSON.stringify(u)),console.log("res from downloadGsuite : "+JSON.stringify(u.body)),this.downloadId=u?.body?.downloadId,o||i)o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let C=0,k=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),C++,C>=k&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}this.cdr.detectChanges()},u=>{switch(console.error("Error from downloadGsuite: ",u),console.error("Error status: ",u.status),console.log("ID : "+u?.error?.text),u.status){case 200:if(console.error("Bad Request: ",u.message),this.downloadId=u?.error?.text,o||i)o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info");else{let C=0,k=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),C++,C>=k&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}break;case 400:console.error("Bad Request: ",u.message);break;case 401:console.error("Unauthorized: ",u.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",u.message);break;case 404:console.error("Not Found: ",u.message);break;case 412:console.error("Error code 412: ",u.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: ",u.message);break;case 503:console.error("Internal Server Error: ",u.message);break;default:console.error("Unknown Error: ",u.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,o,m){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",m),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",o),this.isOverlayVisible=!1;let u=document.querySelector(".header.header-sticky");u&&this.renderer.setStyle(u,"z-index","1000");let C=document.querySelector(".overlay");C&&this.renderer.setStyle(C,"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:this.TranslateService.instant("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 o=i.body.searchUserElementList.map(m=>({value:m.userName,label:m.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")},...o||[]]}],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 o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceTypeCS=="backup"?o="BACKUP":this.deviceTypeCS=="mail"?o="OUTLOOK":this.deviceTypeCS=="Gmail"?o="Gmail":o=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(m=>m.deviceType==o).map(m=>({deviceName:m.deviceName,deviceUUID:m.deviceUUID,deviceId:m.deviceId,osType:m.osType,decoupled:m.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:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},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(o=>o.deviceType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){return z(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:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:"All Assets",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.cdr.detectChanges();else{let m={value:this.selectedValueCS};this.updateContentSearch(m)}let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(m=>m.key===i||m.dataManagementKey===i||m.key2===i||m.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)})}onChangeCategoryContentSearch(e){return z(this,null,function*(){this.categoryContentSearch!="mail"&&(this.isExpanded=!1),this.foundMailsCS=[],this.foundFilesCS=[],this.contentSearchText=""})}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 criteria."));return}else if((this.myDateBefore!==null||this.myDateAfter!==null)&&(!this.selectedValueCS||this.selectedValueCS==="All Users")){this.isExpanded=!0,this.toastr.error(this.TranslateService.instant("Please select a User Id."),this.TranslateService.instant("Error"));return}else this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error(this.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="",this.selectedDeviceIdCS=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let o=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let m=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&(e.body.data.fileElementList.forEach(u=>{let C={exists:u.present?u.present.toString():"",backup:"true",deviceUUID:u.deviceUUID?u.deviceUUID.toString():"",fileName:u.fileName?u.fileName.toString():"",filePath:u.fileCompletePath?u.fileCompletePath.toString():"",fileUser:u.fileUserOwner?btoa(u.fileUserOwner):"",folder:u.folder?"true":"false",fileRevisionID:u.fileRevisionId?u.fileRevisionId.toString():"",content:u.metaData?u.metaData.toString():"",modifiedTimestamp:u.lastModifiedTimestamp?parseInt(u.lastModifiedTimestamp,10):0,size:u.size?parseInt(u.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(C.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,P=E.osType.substring(0,3).toLowerCase(),O="Windows",M="Windows";P==="win"?(O="Windows",M="Windows"):P==="mac"?(O="Mac",M="Mac"):P==="one"?(O="ONEDRIVE",M="ONEDRIVE"):P==="out"?(O="OUTLOOK",M="OUTLOOK"):P==="sha"&&(O="SHAREPOINT",M="SHAREPOINT"),C.deviceType=O,C.deviceOs=M,C.deviceId=E.deviceId?E.deviceId.toString():"",C.blocked="active",C.deviceName=E.deviceName?E.deviceName.toString():"",C.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",C.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",o.push(C),this.foundFilesCS=o,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(o))},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(u=>{let C={backupId:u.fileRevisionId,userName:u.fileUserOwner,deviceUUID:u.deviceUUID,subject:u.subject?u.subject:"<empty>",contactName:u.fileName?u.fileName:"-",taskSubject:u.subject?u.subject:"",present:u.exists.toString(),showIcon:u.from?u.from.charAt(0):"E",alphaColor:this.colorGen(),from:u.from?u.from:"<empty>",to:u.toRecipients?u.toRecipients:"",cc:u.ccRecipients?u.ccRecipients:"",bcc:u.bccRecipients?u.bccRecipients:"",sentDate:u.sentDate?new Date(u.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:u.metaData?u.metaData:"",bodyContent:u.bodyContent?u.bodyContent:"",bodyContent1:u.bodyContent?u.bodyContent.length>100?u.bodyContent.substring(0,100)+"...":u.bodyContent:"",hasAttachments:u.hasAttachments,attachments:u.attachments?u.attachments:"",name:u.subject?u.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:u.subject?u.subject:"<empty>",filePath:u.fileCompletePath,deviceId:u.deviceId};this.foundMailsCS.push(C)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,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,this.categoryContentSearch).subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);let m=[];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 u=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&(n.body.data.fileElementList.forEach(C=>{let k={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(k.deviceUUID).subscribe(E=>{let P=E.body.BSDeviceInfoElement,O=P.osType.substring(0,3).toLowerCase(),M="Windows",D="Windows";O==="win"?(M="Windows",D="Windows"):O==="mac"?(M="Mac",D="Mac"):O==="one"?(M="ONEDRIVE",D="ONEDRIVE"):O==="out"?(M="OUTLOOK",D="OUTLOOK"):O==="sha"&&(M="SHAREPOINT",D="SHAREPOINT"),k.deviceType=M,k.deviceOs=D,k.deviceId=P.deviceId?P.deviceId.toString():"",k.blocked="active",k.deviceName=P.deviceName?P.deviceName.toString():"",k.deviceNameNew=P.deviceName?P.deviceName.replace(/ /g,"_PB_"):"",k.deviceNameEnc=P.deviceName?btoa(P.deviceName):"",m.push(k),this.foundFilesCS=m,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(m))},E=>{switch(console.error("Error from getDeviceInfo:",E),E.status){case 400:console.error("Bad Request:",E.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:",E.message);break;case 404:console.error("Not Found:",E.message);break;case 500:case 503:console.error("Internal Server Error:",E.message);break;default:console.error("Unknown Error:",E.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(C=>{let k={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(k)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,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=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:this.TranslateService.instant("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 o=i.body.stringElementList.map(m=>({value:m.name,label:m.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")},...o||[]]}],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 o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(m=>m.blocked===!1&&m.deviceType==o).map(m=>({deviceName:m.deviceName,deviceUUID:m.deviceUUID,deviceId:m.deviceId,osType:m.osType,decoupled:m.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},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,o,m=[],u=[],C=[],k=[],E=[],P=[],O=[];for(;(o=i.exec(n))!==null;){let D=o[1],V=o[2];if(V.startsWith("(")&&V.endsWith(")")&&(V=V.slice(1,-1)),D==="from")m.push(V.trim());else if(D==="to")u.push(V.trim());else if(D==="cc")C.push(V.trim());else if(D==="bcc")k.push(V.trim());else if(D==="subject"){let oe=V.trim();E.push(oe.replace(/^\(|\)$/g,""))}else if(D==="body"){let oe=V.trim();P.push(oe.replace(/^\(|\)$/g,""))}else O.push(V.trim())}return O.push(n.replace(i,"").trim()),[`from:${m.join(",")}`,`to:${u.join(",")}`,`bcc:${k.join(",")}`,`cc:${C.join(",")}`,`subject:${E.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${O.join(" ")}`,`body:${P.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}selectUser(e){console.log("inside selectUser"),this.selectedPathCS=e.filePath,this.selectedUsers.add(e),console.log("selectedUsers : "+JSON.stringify(Array.from(this.selectedUsers)))}viewOutlook11(e,n,i,o,m){if(console.log("from viewOutlook11 : "+m),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.selectUser(o),this.isViewFile=!1,this.product?.downloadsConfigurations?.unified&&(m=="contacts"||m=="to_do"||m=="calendar")){this.showloaderAtPreview=!0,this.isViewFile=!0,this.gDriveDownloadFile(i,e,!1,!1,"OUTLOOK");return}this.assetManagementService.viewMail(e,i).subscribe(u=>{if(u.body){this.showNotAvailable=!1;var C=JSON.stringify(u.body.mailElement),k=JSON.parse(C);if(console.log("mailElement : "+JSON.stringify(u.body.mailElement)),console.log("subject : "+u.body.mailElement.subject),console.log("from : "+u.body.mailElement.from),console.log("ccRecipients : "+u.body.mailElement.ccRecipients),console.log("toRecipients : "+u.body.mailElement.toRecipients),m=="mail"||m=="Gmail"){this.currentMailSubject=u.body.mailElement.subject,this.currentFileName=u.body.mailElement.subject,this.currentMailFrom=u.body.mailElement.from,this.currentMailSentDate=u.body.mailElement.sentDate,this.currentMailTo=u.body.mailElement.toRecipients,this.currentMailCc=u.body.mailElement.ccRecipients,this.currentMailBcc=u.body.mailElement.bccRecipients,this.currentMailAttachments=u.body.mailElement.attachments,this.currentMailBody=u.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let E=this.iframe.nativeElement,P=E.contentDocument||E.contentWindow?.document;P&&(P.open(),P.write(this.currentMailBody),P.close()),console.log("body : "+this.currentMailBody)}if(m=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=u.body.mailElement.fileName,this.contactTitle=u.body.mailElement.contactTitle,this.contactFirstName=u.body.mailElement.contactFirstName,this.contactMiddleName=u.body.mailElement.contactMiddleName,this.contactLastName=u.body.mailElement.contactLastName,this.contactSuffix=u.body.mailElement.contactSuffix,this.contactEmail=u.body.mailElement.contactEmail,this.contactMobile=u.body.mailElement.contactMobile,this.contactAddrStreet=u.body.mailElement.contactAddrStreet,this.contactAddrCity=u.body.mailElement.contactAddrCity,this.contactAddrState=u.body.mailElement.contactAddrState,this.contactAddrCountry=u.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=u.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=u.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=u.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=u.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=u.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=u.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=u.body.mailElement.contactOfficeLocation&&u.body.mailElement.contactOfficeLocation!==""?u.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=u.body.mailElement.contactCompanyName&&u.body.mailElement.contactCompanyName!==""?u.body.mailElement.contactCompanyName:"-",this.contactJobTitle=u.body.mailElement.contactJobTitle&&u.body.mailElement.contactJobTitle!==""?u.body.mailElement.contactJobTitle:"-",this.contactDepartment=u.body.mailElement.contactDepartment&&u.body.mailElement.contactDepartment!==""?u.body.mailElement.contactDepartment:"-",this.contactBirthday=u.body.mailElement.contactBirthday&&u.body.mailElement.contactBirthday!==""?u.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=u.body.mailElement.contactHomePhones&&u.body.mailElement.contactHomePhones!==""?u.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=u.body.mailElement.contactBusinessPhones&&u.body.mailElement.contactBusinessPhones!==""?u.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=u.body.mailElement.contactWebSite&&u.body.mailElement.contactWebSite!==""?u.body.mailElement.contactWebSite:"-";let E=[u.body.mailElement.contactBusiAddrStreet,u.body.mailElement.contactBusiAddrCity,u.body.mailElement.contactBusiAddrState,u.body.mailElement.contactBusiAddrCountry,u.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=E.filter(M=>M&&M.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let P=[u.body.mailElement.contactAddrStreet,u.body.mailElement.contactAddrCity,u.body.mailElement.contactAddrState,u.body.mailElement.contactAddrCountry,u.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=P.filter(M=>M&&M.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let O=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(M=>M&&M.trim()!=="");this.fullCombinedName=O.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},u=>{switch(console.error("Error from viewOutlook11: ",u),u.status){case 400:console.error("Bad Request: ",u.message);break;case 401:console.error("Unauthorized: ",u.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: ",u.message);break;case 404:console.error("Not Found: ",u.message);break;case 500:console.error("Internal Server Error: ",u.message);break;case 503:console.error("Internal Server Error: ",u.message);break;default:console.error("Unknown Error: ",u.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(m=>m.isChecked),n=e.filter(m=>!this.isBackupIdExists(m.backupId));if(this.addedElementsUpdated.length+n.length>this.maxItemsAllowedInPstExportWhileSearch){this.toastr.error(this.TranslateService.instant("You have selected more than the maximum allowed number of individual items for export. The current limit is {{maxItemsAllowedInPstExportWhileSearch}}.To continue, please either refine your search to select a smaller set of items or choose to export all search results.",{maxItemsAllowedInPstExportWhileSearch:this.maxItemsAllowedInPstExportWhileSearch}),this.TranslateService.instant("Error"));return}if(e.length>0){let m=e.filter(u=>!this.isBackupIdExists(u.backupId));if(m.length>0){this.addedElementsUpdated.push(...m);let u=m.map(C=>C.subject);this.addedElements=u,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,o){this.addedElementsUpdated=this.addedElementsUpdated.filter(m=>m.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i){if(this.product?.downloadsConfigurations?.unified){this.assetManagementService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML",this.product.dataManagementKey||this.product.key,!1).subscribe(o=>{console.log("res from downloadGmail : "+JSON.stringify(o)),console.log("res from downloadGmail : "+JSON.stringify(o.body)),this.cdr.detectChanges()},o=>{switch(console.error("Error from downloadGsuite: ",o),console.error("Error status: ",o.status),console.log("ID : "+o.error.text),o.status){case 200:console.error("Bad Request: ",o.message),this.downloadId=o.error.text;let m=0,u=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),m++,m>=u&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.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: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error(this.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: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}});return}this.apiService.downloadMail(e,n).subscribe(o=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},o=>{if(console.error("Error from downloadMail++++++: ",o.status),o.status=="200"){let m="https://",u=this.configService.baseFolder,C="/BluKryptBuilder/cloud/",k=this.configService.cloudName,E=this.authService.Token,P=this.sharedService.getDataByKey("userName"),O=`${m}${u}${C}${k}/portal/download/files/?token=${E}&loginUserName=${P}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(O,"_self")}switch(o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.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: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,o){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}closePstPopupG(){this.displayPststyleG="none"}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.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.product.dataManagementKey||this.product.key||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(this.product.dataManagementKey||this.product.key||this.productTypeContentSearch,n)},1e4),this.cdr.detectChanges()}getDownloadPstEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID||"Global_Search_Microsoft Exchange",this.downloadId,this.product.dataManagementKey||this.product.key||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"||i.status=="204")&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.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.trim()==""){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.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()).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.trim(),"","",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.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.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.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),(e.status=="202"||e.status=="204")&&(this.displayDownloadPststyleG="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.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(e){let n=e.target,i=n.selectedOptions[0],o=n.value,m=i.id;this.selectedDeviceIdCS=m}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.trim()==""){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.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()):this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName,this.categoryContentSearch)).subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);let m=[];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.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(u=>{console.log("res from initiateRestore : "+JSON.stringify(u)),console.log("res from initiateRestore : "+JSON.stringify(u.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()},u=>{switch(console.error("Error from initiateRestore: ",u),console.error("Error status: ",u.status),u.status){case 400:console.error("Bad Request: ",u.message);break;case 401:console.error("Unauthorized: ",u.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: ",u.message);break;case 404:console.error("Not Found: ",u.message);break;case 412:console.error("Error code 412: ",u.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",u.message);break;case 500:console.error("Internal Server Error: ",u.message);break;case 503:console.error("Internal Server Error: ",u.message);break;default:console.error("Unknown Error: ",u.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,o,m=""){this.displayRestoreStyleR="block";let u=[{label:"",options:[{value:this.currentMailUser||m,label:this.currentMailUser||m}]}];this.deviceUsersListR=u,this.selectedValueR=this.currentMailUser||m,this.value18R=this.currentMailUser||m,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 o=i.body.searchUserElementList.map(m=>({value:m.userName,label:m.userName}));this.deviceUsersListR=[{label:"",options:o}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){console.log("value : "+e.value);let n=e.value;this.selectedDeviceUUIDR="",this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let o="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(o=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(m=>m.blocked===!1&&m.osType==o).map(m=>({deviceName:m.deviceName,deviceUUID:m.deviceUUID,deviceId:m.deviceId,osType:m.osType,decoupled:m.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:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},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(o=>o.blocked===!1&&o.osType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e=!1){if(this.browsePathR==""&&this.destinationPathR&&this.product?.downloadsConfigurations?.unified&&!e){this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath;let o=this.browsePathId?.split("/")||[];this.selectedBrowseItemId=this.destinationId||o.length&&o[o.length-1]||""}this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(this.selectedDeviceUUIDR,this.product.dataManagementKey||this.product.key,this.selectedBrowseItemId):this.assetManagementService.browseExchange(this.selectedDeviceUUIDR,this.browsePathR),i=this.deviceType;n.subscribe(o=>{this.loadingR=!1,o.body?.stringList?this.browseItemsR=o.body.stringList:Array.isArray(o.body)&&o.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=o.body:this.browseItemsR=o.body.map(m=>m.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},o=>{switch(this.loadingR=!1,console.error("Error from browse API:",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.displayBrowseStyleR="none"}usePathR(){this.newFolderR="",this.displayBrowseStyleR="none",this.productTypeContentSearch=="Gmail"&&this.selectedBrowseItemR?(this.destinationPathR=this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.productTypeContentSearch=="Google Drive"&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR="My Drive/"+this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.product?.downloadsConfigurations?.unified&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR=this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):this.selectedBrowseItemR!=""?(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR,this.destinationIdPath=this.browsePathId),this.destinationId=this.selectedBrowseItemId}addNewFolderR(e){e&&e.trim()!==""?(this.browseItemsR.push(e),this.selectedBrowseItemR=e,this.newFolderR="",this.cdr.detectChanges(),console.log("New folder added: ",e),console.log("Selected folder: ",this.selectedBrowseItemR)):this.toastr.info(this.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,i){if(!this.product?.downloadsConfigurations?.restore?.browsePathHeirarchyWithoutFolderId&&typeof i>"u"){this.onSingleClickR(n),e.currentTarget.classList.add("double-click-not-allowed");return}n!=="No path available"&&(i&&(this.selectedBrowseItemId=i),this.addToCombinedValueR(n,i),this.selectedBrowseItemR="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root")}addToCombinedValueR(e,n){this.browsePathR?(this.browsePathR+=`/${e}`,this.browsePathId+=`/${n}`):(this.browsePathR=e,this.browsePathId=n),console.log("Combined value:",this.browsePathR),this.browseR()}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.product?.downloadsConfigurations?.restore?.rootBrowsePath:"root",this.browsePathId=n.join("/")):(typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(!0)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR)}getRestoreEventsProgressR(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),(e.status=="202"||e.status=="204")&&(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.toastr.success(this.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))):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 o=new Date(this.myDateBeforeR);o.setHours(this.myTimeBeforeR.getHours()),o.setMinutes(this.myTimeBeforeR.getMinutes()),o.setSeconds(this.myTimeBeforeR.getSeconds());let m=o.getTime();this.restoreDataBeforeR=m.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.product.dataManagementKey||this.product.key,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"?o=>{this.triggerGSuiteProgress(o,!0),this.showRestoreSettingsR=!1}:o=>{this.triggerGmailProgress(o,!0),this.showRestoreSettingsR=!1},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=o?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(o,!0):this.triggerGmailProgress(o,!0);break;case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:console.error("Error code 417: ",o.message),this.toastr.error("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}});return}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUIDR,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(o=>{console.log("res from initiateRestore : "+JSON.stringify(o)),console.log("res from initiateRestore : "+JSON.stringify(o.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info"))},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}resetContactFields(){this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-"}resetTasksFields(){this.taskSubject="-",this.taskStartDate="-",this.taskDueDate="-",this.taskReminderTime="-"}togglePanel(){this.isExpanded=!this.isExpanded,this.isExpanded?this.product?.downloadsConfigurations?.unified?this.parseContentSearchMailUnified():this.parseContentSearchMail():this.product?.downloadsConfigurations?.unified?this.reconstructContentSearchMailUnified():this.reconstructContentSearchMail()}parseContentSearchMailUnified(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let o=n[1],m=n[2];m.startsWith("(")&&m.endsWith(")")&&(m=m.slice(1,-1)),i[o].push(m)}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+/),o=[],m=[],u=[],C=[],k=[],E=[],P=[];for(let M=0;M<i.length;M++){let D=i[M];if(D.startsWith("from:"))o.push(D.replace("from:","").trim());else if(D.startsWith("to:"))m.push(D.replace("to:","").trim());else if(D.startsWith("cc:"))u.push(D.replace("cc:","").trim());else if(D.startsWith("bcc:"))C.push(D.replace("bcc:","").trim());else if(D.startsWith("subject:")){let V=D.replace("subject:","").trim();for(;!(V.startsWith("(")&&V.endsWith(")"))&&M+1<i.length&&!i[M+1].startsWith("body:")&&!i[M+1].startsWith("subject:");)M++,V+=" "+i[M];k.push(V.replace(/^\(|\)$/g,""))}else if(D.startsWith("body:")){let V=D.replace("body:","").trim();for(;!(V.startsWith("(")&&V.endsWith(")"))&&M+1<i.length&&!i[M+1].startsWith("body:")&&!i[M+1].startsWith("subject:");)M++,V+=" "+i[M];E.push(V.replace(/^\(|\)$/g,""))}else P.push(D)}return console.log("fromArray : "+o.join(",")),console.log("toArray : "+m.join(",")),console.log("ccArray : "+u.join(",")),console.log("bccArray : "+C.join(",")),console.log("subjectArray : "+k.join(",")),console.log("bodyArray : "+E.join(",")),console.log("keywordsArray : "+P.join("")),console.log("fromArray length : : "+o.length),[`from:${o.join(",")}`,`to:${m.join(",")}`,`bcc:${C.join(",")}`,`cc:${u.join(",")}`,`subject:${k.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${P.join(" ")}`,`body:${E.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 o=n[1],m=n[2];m.startsWith("(")&&m.endsWith(")")&&(m=m.slice(1,-1)),i[o].push(m)}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(" ")}showHideSecurityCallout(e){this.showSecurityCallout=e}calenderNavigate(e){e.type}closeCalenderEventDetails(){this.showCalendarView=!1,this.cdr.detectChanges()}static{this.\u0275fac=function(n){return new(n||t)(w(K),w(pe),w(te),w(q),w(ve),w(ze),w(_e),w(et),w(Pe),w(Xt),w(De),w(Je),w(ie),w(fe),w(vt),w(yt))}}static{this.\u0275cmp=N({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&($(Nl,5),$(Ll,5),$(Gl,5),$(Hl,5),$(zl,5),$(jl,5),$(Wl,5),$(ql,5),$(Jl,5),$($l,5)),n&2){let o;j(o=W())&&(i.deviceDropdown=o.first),j(o=W())&&(i.deviceDropdownCS=o.first),j(o=W())&&(i.iframe=o.first),j(o=W())&&(i.userDeviceSearch=o.first),j(o=W())&&(i.fileSearch=o.first),j(o=W())&&(i.contentSearch=o.first),j(o=W())&&(i.contentSearchMailInput=o.first),j(o=W())&&(i.deviceDropdownR=o.first),j(o=W())&&(i.calendarIframe=o.first),j(o=W())&&(i.searchInput=o.first)}},outputs:{close:"close"},features:[ce([K,q,vt,pe])],decls:255,vars:191,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentCalendarFrame",""],["contentFrame",""],["deviceDropdownR",""],[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","","autofocus","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[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","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[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","form-group col-lg-2",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","product","foundFiles","noFilesFound","totalCountGS","productType","userType","contentSearchText","currentDeviceUUID","first","previous","next","last"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["class","justify-content-end",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","name","pstFileNameG","id","pstFileNameG","minlength","3","maxlength","64","pattern","^[a-zA-Z0-9@.\\(\\)\\-_]*$","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["class","text-danger",4,"ngIf"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"disabled","click",4,"ngIf"],["id","downloadAsPstG","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"col-lg-12"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["id","restoremodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"disabled","click",4,"ngIf"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click",4,"ngIf"],["id","browsemodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],[1,"col-lg-6"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[2,"max-height","400px","overflow-y","auto"],[1,"table","table-hover","table-bordered"],["id","left"],["class","text-left",3,"ngClass","click","dblclick",4,"ngFor","ngForOf"],["for","policyName"],["aria-describedby","newFolderR","name","newFolderR","id","newFolderR","aria-label","Enter folder name","cFormControl","","placeholder","Enter folder name","required","",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","addNewFolderBtnR","type","button","variant","outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","disabled","ngModel"],["id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","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"],["for","categoryContentSearch"],["cSelect","","name","categoryContentSearch","id","categoryContentSearch","title","Select Product Type",1,"form-control","categoryContentSearch",3,"ngModelChange","change","ngModel"],["value","contacts"],["value","todo"],["value","calendar"],["noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","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","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["aria-describedby","contentSearchMail","name","contentSearchMail","id","contentSearchMail","aria-label","Default Folders to Backup","cFormControl","","placeholder","Search",3,"ngModelChange","keydown.enter","ngModel","disabled"],["type","button","class","btn btn-small btn-primary",3,"click",4,"ngIf"],["class","col-lg-2",4,"ngIf"],[1,"fa",3,"ngClass"],[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,"click","keydown","ngModelChange","readonly","ngModel","bsConfig"],[1,"btn","btn-small","btn-primary","pull-right",3,"click"],[1,"col-lg-12",2,"height","60vh","overflow","scroll"],[1,"header-container",2,"display","block"],["class","downloadAsPstGSearchll hover-link","style","margin-right: 10px; margin-left:22px; cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","removeAllGlobal hover-link","style","margin-right: 10px;margin-left:22px;cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearch","style","margin-right: 3%;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearchll11","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[1,"col-lg-5",2,"height","50vh","overflow-y","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[2,"border-top","0px solid #f1f1f1 !important"],["class","btn btn-small btn-primary addToCart",3,"click",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"col-lg-7"],[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,"fa","fa-id-card",2,"font-size","21px"],[1,"folder",2,"cursor","pointer","text-decoration","none"],[1,"fa-solid","fa-check"],[3,"ngClass",4,"ngIf"],["class","card-body-center",4,"ngIf"],[3,"navigator","metaData","calenderEvents","calendarView","breadcrumbItems"],[3,"ngClass"],[1,"panel",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],[1,"panel-body"],[1,"calendarSubject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],["class","calender",4,"ngIf"],[1,"contentCalendarOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentCalendarOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],["class","alert align-items-center callout",4,"ngIf"],[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,"calender"],[1,"fa","fa-clock-o"],[1,"alert","align-items-center","callout"],["aria-hidden","true",1,"fa","fa-exclamation-triangle","me-2",2,"font-size","1rem","color","#856404"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],[1,"contentOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],[1,"phone-notch-box","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","textColor","primary","alt","User avatar",3,"size","src"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D","font-weight","bold"],[2,"cursor","pointer",3,"title"],["class","copy-icon",3,"title","click",4,"ngIf"],[2,"font-size","14px","color","#062D4D"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4",3,"mouseenter","mouseleave"],["class","contactEmail",3,"title",4,"ngIf"],["class","contactEmailList",4,"ngIf"],[1,"form-group","col-lg-4"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],[1,"copy-icon",3,"click","title"],[1,"fa","fa-clipboard"],[1,"contactEmail",3,"title"],[1,"contactEmailList"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"local-spinner-container"],[1,"local-spinner"],[1,"btn","btn-small","btn-primary","removeFromCart","pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"justify-content-end"],[1,"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"],["noResultMessage","No users found","id","selec2-18R","customSearchEnabled","","required","",3,"ngModelChange","search","update","placeholder","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["required","",1,"form-control",3,"change"],["for","destinationPathR",3,"ngClass"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","required","",3,"ngModelChange","ngModel","required","placeholder","readonly"],["cButton","","color","secondary","id","destinationPathBrowseBtnR","type","button","variant","outline",3,"click"],["class","col-lg-12 row form-group",4,"ngIf"],[1,"col-lg-12","row","form-group"],[1,"col-lg-4"],[3,"switch"],["cFormCheckInput","","id","inplaceRestoreR","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","restoreDeletedFilesByRestoreR","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-lg-3",2,"border","1px solid #062D4D","border-radius","10px","padding","10px","width","fit-content"],[1,"row","form-group"],[1,"col-6",2,"margin-top","10px"],[1,"col-4",2,"margin-top","10px"],["cFormCheckInput","","id","dateBeforeR","type","checkbox",3,"ngModelChange","change","ngModel"],[1,"row","align-items-center"],[1,"col-12","d-flex","flex-wrap"],["type","text","bsDatepicker","",1,"form-control","mx-2",2,"flex","1","min-width","150px",3,"ngModelChange","ngModel","bsConfig","disabled"],[2,"flex","1","min-width","100px",3,"ngModelChange","ngModel","minuteStep","showMeridian","disabled"],[1,"select2-results"],["role","tree","tabindex","-1","infinitescroll","","ng-reflect-infinite-scroll-disabled","false","ng-reflect-infinite-scroll-distance","1.5","ng-reflect-infinite-scroll-throttle","150","ng-reflect-infinite-scroll-container","[object HTMLUListElement]",1,"select2-results__options",2,"max-height","200px"],["role","group",1,"select2-results__option"],[1,"select2-results__group"],[1,"select2-results__options","select2-results__options--nested"],["cFormCheckInput","","id","suspendBackupR","type","checkbox",3,"ngModelChange","ngModel"],[1,"ellipsis-path",3,"title"],[1,"progressR",3,"title"],[1,"spinner"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click","disabled"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-arrow-left"],["colspan","1",1,"text-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"text-left",3,"click","dblclick","ngClass"]],template:function(n,i){if(n&1){let o=x();a(0,"div",11)(1,"div",12)(2,"c-card",13)(3,"c-card-body")(4,"a",14),y("click",function(){return _(o),f(i.closeOverlay())}),b(5,"i",15),s(),a(6,"c-nav",16)(7,"c-nav-item",17)(8,"button",18),y("click",function(){return _(o),f(i.setActiveSearchTab("default",0))}),d(9),h(10,"translate"),s()(),S(11,oc,4,5,"c-nav-item",19)(12,ac,4,5,"c-nav-item",19),s(),a(13,"c-tab-content",20,0)(15,"c-tab-pane",21)(16,"c-row",22)(17,"c-input-group",13)(18,"span",23),d(19),h(20,"translate"),s(),a(21,"input",24,1),h(23,"translate"),F("ngModelChange",function(u){return _(o),U(i.userAssetSearchText,u)||(i.userAssetSearchText=u),f(u)}),y("keydown.enter",function(){return _(o),f(i.searchForUsersAssets())}),s()()(),a(24,"c-row"),S(25,sc,2,1,"c-card",19)(26,cc,7,4,"c-card",19),b(27,"br"),S(28,dc,2,1,"c-card",19)(29,uc,7,4,"c-card",19),b(30,"br"),S(31,mc,2,1,"c-card",19)(32,gc,7,4,"c-card",19),s()(),a(33,"c-tab-pane",21)(34,"c-row",25)(35,"div",26)(36,"label",27),d(37),h(38,"translate"),s(),a(39,"select",28),F("ngModelChange",function(u){return _(o),U(i.productTypeFiles,u)||(i.productTypeFiles=u),f(u)}),y("change",function(u){return _(o),f(i.onChangeProductType(u))}),S(40,_c,3,3,"option",29)(41,fc,3,3,"option",30)(42,vc,3,3,"option",31),Ue(43,bc,1,1,"option",32,tt),s()(),S(45,Cc,7,14,"div",33)(46,Sc,7,13,"div",33)(47,kc,9,5,"div",34),s(),a(48,"c-row",35)(49,"div",36)(50,"c-input-group")(51,"input",37,2),h(53,"translate"),F("ngModelChange",function(u){return _(o),U(i.filesSearchText,u)||(i.filesSearchText=u),f(u)}),y("keydown.enter",function(){return _(o),f(i.searchForFiles())}),s()()(),a(54,"div",38)(55,"button",39),y("click",function(){return _(o),f(i.searchForFiles())}),d(56),h(57,"translate"),s()()(),b(58,"br"),S(59,Ic,6,3,"c-row",19)(60,Ec,11,6,"c-row",40),s(),a(61,"c-tab-pane",21)(62,"c-row",25)(63,"div",26)(64,"label",41),d(65),h(66,"translate"),s(),a(67,"select",42),F("ngModelChange",function(u){return _(o),U(i.productTypeContentSearch,u)||(i.productTypeContentSearch=u),f(u)}),y("change",function(u){return _(o),f(i.onChangeProductTypeContentSearch(u))}),S(68,Pc,3,3,"option",43)(69,Mc,3,3,"option",30)(70,Oc,3,3,"option",31)(71,Dc,3,3,"option",44),Ue(72,Rc,1,3,"option",32,tt),s()(),S(74,Uc,17,16,"div",45)(75,Fc,6,11,"div",33)(76,Bc,5,7,"div",33)(77,Lc,9,5,"div",34),s(),S(78,Gc,10,7,"c-row",46)(79,jc,7,4,"c-row",47)(80,qc,2,1,"c-row",47),b(81,"br"),a(82,"app-document-content-search",48),y("downloadFile",function(u){return _(o),f(i.downloadFile(u.fileName,u.filePath,u.fileRevisionID,u.backup,u.fileUser,u.deviceUUID,u.folder,u.size,i.productTypeContentSearch))})("openFileLocation",function(u){return _(o),f(i.openFileLocation(u.fileName,u.filePath,u.deviceId,i.productTypeContentSearch,u.backup))})("navigatePage",function(u){return _(o),f(i.searchForContentNavigate(u))}),s(),S(83,Jc,5,0,"c-row",47)(84,pp,34,28,"c-row",49)(85,up,7,3,"c-row",50),b(86,"br"),S(87,fp,7,4,"c-row",51),s()()()()()(),a(88,"div",52)(89,"div",53)(90,"div",54)(91,"div",55)(92,"h4",56),d(93),h(94,"translate"),s()(),a(95,"div",57)(96,"c-row")(97,"div",58)(98,"label",59),d(99),h(100,"translate"),s(),a(101,"input",60,3),h(103,"translate"),F("ngModelChange",function(u){return _(o),U(i.pstFileNameG,u)||(i.pstFileNameG=u),f(u)}),s(),S(104,Cp,4,3,"div",61),s()()(),a(105,"div",62)(106,"button",63),y("click",function(){return _(o),f(i.closePstPopupG())}),d(107),h(108,"translate"),s(),S(109,Sp,3,4,"button",64)(110,wp,3,4,"button",64),s()()()(),a(111,"div",65)(112,"div",66)(113,"div",54)(114,"div",55)(115,"h4",56),d(116),h(117,"translate"),s()(),a(118,"div",57)(119,"c-card")(120,"c-card-header",67),d(121),h(122,"translate"),s(),a(123,"c-card-body")(124,"c-row",68)(125,"table",69)(126,"thead")(127,"tr"),S(128,xp,3,3,"th",19),a(129,"th"),d(130),h(131,"translate"),s()()(),a(132,"tbody")(133,"tr"),S(134,Ip,5,9,"td",19)(135,Tp,3,3,"td",19)(136,Pp,6,9,"td",19)(137,Mp,3,3,"td",19),s()()()()()()(),a(138,"div",62)(139,"button",63),y("click",function(){return _(o),f(i.closeDownloadPstPopupG())}),d(140,"Close"),s(),S(141,Op,3,3,"button",70),s()()()(),a(142,"div",52)(143,"div",53)(144,"div",54)(145,"div",55)(146,"h4",56),d(147),h(148,"translate"),s()(),a(149,"div",57)(150,"h4",56),d(151),h(152,"translate"),s()(),a(153,"div",62)(154,"button",63),y("click",function(){return _(o),f(i.closeDownloadPstConfirmPopupG())}),d(155),h(156,"translate"),s(),a(157,"button",71),y("click",function(){return _(o),f(i.cancelDownloadAsPstConfirmG())}),d(158),h(159,"translate"),s()()()()(),a(160,"div",52)(161,"div",53)(162,"div",54)(163,"div",55)(164,"h4",56),d(165),h(166,"translate"),s()(),a(167,"div",57)(168,"h4",56),d(169),h(170,"translate"),s()(),a(171,"div",62)(172,"button",63),y("click",function(){return _(o),f(i.closeDownloadPstRunBkpPopupG())}),d(173,"Cancel"),s(),a(174,"button",72),y("click",function(){return _(o),f(i.cancelDownloadAsPstRunBkpG())}),d(175,"Ok"),s()()()()(),a(176,"div",73)(177,"div",66)(178,"div",54)(179,"div",55)(180,"h4",56),d(181),h(182,"translate"),s()(),a(183,"div",57),S(184,Up,66,53,"c-card",19)(185,$p,24,20,"c-card",19),s(),a(186,"div",62),S(187,Zp,3,4,"button",74)(188,Kp,3,3,"button",75)(189,Yp,3,3,"button",76)(190,Qp,3,3,"button",77),s()()()(),a(191,"div",78)(192,"div",53)(193,"div",54)(194,"div",55)(195,"h4",56),d(196),h(197,"translate"),s()(),a(198,"div",57)(199,"c-row",68)(200,"c-card",79)(201,"c-card-header",67)(202,"span"),d(203),h(204,"translate"),S(205,Xp,2,0,"span",19)(206,e0,2,0,"span",19)(207,t0,2,1,"span",19),s()(),a(208,"c-card-body"),S(209,i0,4,3,"button",80),a(210,"div",81)(211,"table",82)(212,"thead")(213,"tr",83)(214,"th"),d(215),h(216,"translate"),s()()(),a(217,"tbody"),S(218,n0,6,3,"tr",19)(219,r0,4,5,"tr",84),s()()()()(),a(220,"c-card",79)(221,"c-card-body")(222,"div",58)(223,"label",85),d(224),h(225,"translate"),s(),a(226,"c-input-group",13)(227,"input",86),F("ngModelChange",function(u){return _(o),U(i.newFolderR,u)||(i.newFolderR=u),f(u)}),s(),a(228,"button",87),y("click",function(){return _(o),f(i.addNewFolderR(i.newFolderR))}),d(229),h(230,"translate"),s()()()()()()(),a(231,"div",62)(232,"button",63),y("click",function(){return _(o),f(i.closeBrowsePopupR())}),d(233,"Close"),s(),a(234,"button",88),y("click",function(){return _(o),f(i.usePathR())}),d(235),h(236,"translate"),s()()()()(),a(237,"div",52)(238,"div",53)(239,"div",54)(240,"div",55)(241,"h4",56),d(242),h(243,"translate"),s()(),a(244,"div",57)(245,"h4",56),d(246),h(247,"translate"),s()(),a(248,"div",62)(249,"button",63),y("click",function(){return _(o),f(i.closeDeleteRestorePopupR())}),d(250),h(251,"translate"),s(),a(252,"button",72),y("click",function(){return _(o),f(i.deleteRestoreEventR())}),d(253),h(254,"translate"),s()()()()()}if(n&2){let o=X(14),m=X(102);r(7),c("ngStyle",A(175,Ve,i.userType!="user"?"block":"none")),r(),c("cTabContent",o)("tabPaneIdx",0),r(),T(" ",g(10,113,"Search Users/Assets"),""),r(2),c("ngIf",i.hasBackupLicense),r(),c("ngIf",i.hasContentSearchLicense),r(),c("activeTabPaneIdx",i.activeTabIndex),r(6),v(g(20,115,"Search Users/Assets")),r(2),R("ngModel",i.userAssetSearchText),c("placeholder",g(23,117,"Search ..")),r(4),c("ngIf",i.noUsersFoundText!=""),r(),c("ngIf",i.foundUsers.length>0),r(2),c("ngIf",i.noSitesFoundText!=""),r(),c("ngIf",i.foundSites.length>0),r(2),c("ngIf",i.noDevicesFoundText!=""),r(),c("ngIf",i.foundDevices.length>0),r(5),v(g(38,119,"Product Type")),r(2),R("ngModel",i.productTypeFiles),r(),c("ngIf",i.inclusionLicenses.includes("backup_enabled")),r(),c("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),r(),c("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),r(),Fe(i.PRODUCTS_CONFIG),r(2),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles=="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(4),R("ngModel",i.filesSearchText),c("placeholder",g(53,121,"Search for files/folders ..")),r(5),v(g(57,123,"Search")),r(3),c("ngIf",i.noFilesFound),r(),c("ngIf",i.foundFiles.length>0&&!i.noFilesFound),r(5),v(g(66,125,"Product Type")),r(2),R("ngModel",i.productTypeContentSearch),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),r(),Fe(i.PRODUCTS_CONFIG),r(2),c("ngIf",(i.product==null||i.product.downloadsConfigurations==null?null:i.product.downloadsConfigurations.unified)&&i.productTypeContentSearch=="mail"),r(),c("ngIf",i.productTypeContentSearch!="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch=="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch!="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),r(),c("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),r(),c("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),r(2),c("product",i.product)("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),r(),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),r(),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),r(),c("ngIf",!i.isMultiSelectEnabled&&i.foundMailsCS.length>0&&i.showSecurityCallout),r(2),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),r(),c("ngStyle",A(177,Ve,i.displayPststyleG)),r(5),v(g(94,127,"Specify Filename")),r(6),v(g(100,129,"Specify pst filename")),r(2),xe("placeholder",g(103,131,"Enter PST File Name")),R("ngModel",i.pstFileNameG),r(3),c("ngIf",m.invalid&&(m.dirty||m.touched)),r(3),v(g(108,133,"Close")),r(2),c("ngIf",i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),r(),c("ngIf",!i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),r(),c("ngStyle",A(179,Ve,i.displayDownloadPststyleG)),r(5),v(g(117,135,"Restore Progress")),r(5),v(g(122,137,"Currently Running Restore Statistics")),r(7),c("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),r(2),v(g(131,139,"Overall Progress")),r(4),c("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),r(),c("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),r(),c("ngIf",i.progressG.totalNoOfFilesForRestore!==""),r(),c("ngIf",i.progressG.totalNoOfFilesForRestore===""),r(4),c("ngIf",i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop),r(),c("ngStyle",A(181,Ve,i.displayDownloadPstConfirmstyleG)),r(5),v(g(148,141,"Restore Cancel Confirmation")),r(4),v(g(152,143,"Are you sure you wish to cancel the restore?")),r(4),v(g(156,145,"Cancel")),r(3),v(g(159,147,"Ok")),r(2),c("ngStyle",A(183,Ve,i.displayDownloadPstRunBckConfirmstyleG)),r(5),v(g(166,149,"Confirmation")),r(4),v(g(170,151,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),r(7),c("ngStyle",A(185,Ve,i.displayRestoreStyleR)),r(5),v(g(182,153,"Restore Settings")),r(3),c("ngIf",i.showRestoreSettingsR),r(),c("ngIf",!i.showRestoreSettingsR),r(2),c("ngIf",i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),r(),c("ngIf",!i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop)),r(),c("ngIf",i.showRestoreSettingsR),r(),c("ngIf",!i.showRestoreSettingsR),r(),c("ngStyle",A(187,Ve,i.displayBrowseStyleR)),r(5),v(g(197,155,"Browse path")),r(7),T("",g(204,157,"Current Path")," :"),r(2),c("ngIf",i.productTypeContentSearch==="Google Drive"),r(),c("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),r(),c("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),r(2),c("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),r(6),v(g(216,159,"Items")),r(3),c("ngIf",i.loadingR),r(),c("ngForOf",i.browseItemsR),r(5),v(g(225,161,"Create new folder")),r(3),R("ngModel",i.newFolderR),r(2),v(g(230,163,"Create")),r(5),c("disabled",!i.selectedBrowseItemR&&!i.browsePathR),r(),v(g(236,165,"Use Path")),r(2),c("ngStyle",A(189,Ve,i.displayDeleteRestoreStyleR)),r(5),v(g(243,167,"Restore Cancel Confirmation")),r(4),v(g(247,169,"Are you sure you wish to cancel the restore?")),r(4),v(g(251,171,"Close")),r(3),v(g(254,173,"Delete"))}},dependencies:[ss,ga,ha,si,We,ci,pi,di,ca,da,la,mt,Ma,Oa,dt,fi,Pa,pt,vi,Da,Aa,Ra,ut,ue,it,je,ee,Yt,nt,pe,xa,ka,wa,_a,ai,st,at,lt,mi,Oe,ct,ge,gt,Ua,_i,ht,_t,Fa,ft,Ba,Va,cs,Me,li,ja],styles:['.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:10px;width:100%;height:100%;overflow-y:auto}.button-group[_ngcontent-%COMP%]{margin-top:20px}button[_ngcontent-%COMP%]{margin:0 10px}.card-hover[_ngcontent-%COMP%]{transition:background-color .3s ease-in-out}.card-hover[_ngcontent-%COMP%]:hover{background-color:#35b7f4;cursor:pointer}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}.selected-rowMail[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8;color:#fff}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}.selected[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8}.disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.spinner[_ngcontent-%COMP%]{width:25px;margin:auto;height:25px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/2.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 2.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(6)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}.callout[_ngcontent-%COMP%]{margin:0 20px 0 0;padding-top:2px;padding-bottom:0}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:10%;display:inline-flex}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:90%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:5%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{width:10%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:85%;display:inline-flex}fixTableHead[_ngcontent-%COMP%]   .table-responsive[_ngcontent-%COMP%]{overflow-x:hidden!important}.progressR[_ngcontent-%COMP%]{background-color:#d3d3d3}.local-spinner-container[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#00000052;z-index:1000}.local-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-local-d3o0rx 1s infinite steps(12)}.local-spinner[_ngcontent-%COMP%]:before, .local-spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.local-spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-local-d3o0rx{to{transform:rotate(1turn)}}.phone-notch-box[_ngcontent-%COMP%]{position:relative;align-items:center;border:1px solid #062D4D;border-radius:10px;padding:20px;background:#fff}.phone-notch-box[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-1px;left:50%;transform:translate(-50%);width:80px;height:20px;background:#000;border-radius:0 0 12px 12px}.calendar-view[_ngcontent-%COMP%]{position:absolute;top:5%;left:5%;width:fit-content;z-index:99;background:#fff;height:fit-content;border:1px solid lightgrey;max-width:90%;max-height:90%;overflow:auto}.calendar-view[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:auto;padding-bottom:30px}.close-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:auto;right:-15px;position:absolute;top:-16px;border:2px solid lightgrey;border-radius:220px;padding:0 4px;background-color:#fff}.margin-auto[_ngcontent-%COMP%]{margin:auto}']})}}return t})();var o0=t=>({"bg-danger":t}),a0=()=>["queued","uploading","paused","failed"];function s0(t,l){if(t&1&&(a(0,"span"),d(1),h(2,"number"),s()),t&2){let e=p().$implicit;r(),T("",Q(2,1,e.progress,"1.0-0"),"%")}}function l0(t,l){t&1&&(a(0,"span",19),d(1,"Error"),s())}function c0(t,l){if(t&1){let e=x();a(0,"button",20),y("click",function(){_(e);let i=p().$implicit,o=p(2);return f(o.resumeFile(i.id))}),d(1,"Resume"),s()}}function d0(t,l){if(t&1){let e=x();a(0,"button",21),y("click",function(){_(e);let i=p().$implicit,o=p(2);return f(o.pauseFile(i.id))}),d(1,"Pause"),s()}}function p0(t,l){if(t&1){let e=x();a(0,"button",22),y("click",function(){_(e);let i=p().$implicit,o=p(2);return f(o.cancelFile(i.id))}),d(1,"Cancel"),s()}}function u0(t,l){if(t&1&&(a(0,"small",23),d(1),s()),t&2){let e=p().$implicit;r(),v(e.error)}}function m0(t,l){if(t&1&&(a(0,"div",5)(1,"div",6)(2,"small",7),d(3),s(),a(4,"small",8),S(5,s0,3,4,"span",9)(6,l0,2,0,"span",10),s()(),a(7,"div",6)(8,"small",11),d(9),s()(),a(10,"div",12),b(11,"div",13),s(),a(12,"div",14),S(13,c0,2,0,"button",15)(14,d0,2,0,"button",16)(15,p0,2,0,"button",17),s(),S(16,u0,2,1,"small",18),s()),t&2){let e=l.$implicit,n=p(2);r(2),c("title",e.name),r(),v(e.name),r(2),c("ngIf",e.status!=="failed"),r(),c("ngIf",e.status==="failed"),r(3),v(n.formatFileSize(e.file.size||0)),r(2),we("width",e.progress,"%"),c("ngClass",A(12,o0,e.status==="failed")),r(2),c("ngIf",e.status==="paused"),r(),c("ngIf",e.status==="uploading"),r(),c("ngIf",B(14,a0).includes(e.status)),r(),c("ngIf",e.error)}}function h0(t,l){if(t&1&&(a(0,"div",1)(1,"div",2)(2,"h6",3),d(3,"Uploads"),s()(),S(4,m0,17,15,"div",4),h(5,"async"),s()),t&2){let e=p();r(4),c("ngForOf",g(5,1,e.files$))}}var hs=(()=>{class t{constructor(e){this.uploadManager=e,this.files$=this.uploadManager.files$}pauseFile(e){this.uploadManager.pauseFile(e)}resumeFile(e){this.uploadManager.resumeFile(e)}cancelFile(e){this.uploadManager.cancelFile(e)}formatFileSize(e){if(e===0)return"0 B";let n=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,i)).toFixed(2)} ${n[i]}`}static{this.\u0275fac=function(n){return new(n||t)(w(ni))}}static{this.\u0275cmp=N({type:t,selectors:[["app-upload-panel"]],decls:1,vars:1,consts:[["class","upload-panel position-fixed bottom-0 end-0 m-3 shadow-lg bg-white rounded p-3","style","width: 320px; z-index: 1055;",4,"ngIf"],[1,"upload-panel","position-fixed","bottom-0","end-0","m-3","shadow-lg","bg-white","rounded","p-3",2,"width","320px","z-index","1055"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"mb-0"],["class","mb-2",4,"ngFor","ngForOf"],[1,"mb-2"],[1,"d-flex","justify-content-between","align-items-center"],[1,"file-name","text-truncate",3,"title"],[1,"text-nowrap","ms-2"],[4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"text-muted"],[1,"progress","mt-1",2,"height","6px"],["role","progressbar",1,"progress-bar",3,"ngClass"],[1,"mt-1","d-flex","gap-2"],["class","btn btn-sm btn-warning",3,"click",4,"ngIf"],["class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["class","btn btn-sm btn-danger",3,"click",4,"ngIf"],["class","text-danger d-block mt-1",4,"ngIf"],[1,"text-danger"],[1,"btn","btn-sm","btn-warning",3,"click"],[1,"btn","btn-sm","btn-primary",3,"click"],[1,"btn","btn-sm","btn-danger",3,"click"],[1,"text-danger","d-block","mt-1"]],template:function(n,i){n&1&&S(0,h0,6,3,"div",0),n&2&&c("ngIf",i.uploadManager.hasFiles())},dependencies:[ue,it,je,ee,Kt,nt],styles:[".upload-panel[_ngcontent-%COMP%]{width:320px;z-index:1055;background-color:#fff;border-radius:.5rem;box-shadow:0 .5rem 1rem #0003;padding:1rem;position:fixed;bottom:1rem;right:1rem;font-family:Segoe UI,sans-serif}.upload-panel[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;margin-bottom:.5rem}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto;margin-top:.5rem;padding-right:.25rem}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#0003;border-radius:3px}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]{margin-bottom:.75rem;padding:.25rem .5rem;border-radius:.375rem;transition:background-color .2s}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]:hover{background-color:#007bff0d}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.25rem}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-header[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{max-width:180px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-header[_ngcontent-%COMP%]   .file-progress-text[_ngcontent-%COMP%]{font-size:.75rem;color:#495057}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{height:6px;background-color:#e9ecef;border-radius:3px;overflow:hidden}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{background-color:#0d6efd;transition:width .3s ease}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.5rem}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:.75rem;padding:.25rem .5rem;cursor:pointer;border-radius:.25rem;border:1px solid transparent;transition:background-color .2s,border-color .2s}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-warning[_ngcontent-%COMP%]{background-color:#ffc107;border-color:#ffc107;color:#212529}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-warning[_ngcontent-%COMP%]:hover{background-color:#e0a800;border-color:#d39e00}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-primary[_ngcontent-%COMP%]{background-color:#0d6efd;border-color:#0d6efd;color:#fff}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-primary[_ngcontent-%COMP%]:hover{background-color:#0b5ed7;border-color:#0a58ca}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-danger[_ngcontent-%COMP%]{background-color:#dc3545;border-color:#dc3545;color:#fff}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-actions[_ngcontent-%COMP%]   button.btn-danger[_ngcontent-%COMP%]:hover{background-color:#bb2d3b;border-color:#b02a37}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-status[_ngcontent-%COMP%]{margin-top:.25rem;font-size:.75rem;font-style:italic;color:#6c757d}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-status.completed[_ngcontent-%COMP%]{color:#198754}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-status.failed[_ngcontent-%COMP%]{color:#dc3545}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-status.paused[_ngcontent-%COMP%]{color:#ffc107}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-status.uploading[_ngcontent-%COMP%]{color:#0d6efd}@media (max-width: 576px){.upload-panel[_ngcontent-%COMP%]{width:90%;right:5%;bottom:1rem;padding:.75rem}.upload-panel[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-header[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{max-width:120px}}"]})}}return t})();var g0=()=>["superAdmin"],gs=t=>({display:t}),_s=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],_0=()=>["/mspDashboard"],f0=()=>["/dashboard"],v0=()=>["/bluvault"],y0=()=>({placement:"bottom-start"}),b0=t=>({lastLoggedInTime:t}),C0=t=>({active:t}),S0=()=>[],w0=t=>({label:"Close",class:"btn btn-default",action:t}),x0=t=>[t],k0=t=>({subscriptionStartDate:t}),Fi=t=>({label:"Cancel",class:"btn btn-default",action:t}),Bi=t=>({label:"Ok",class:"btn btn-primary",action:t}),Vi=(t,l)=>[t,l],I0=(t,l)=>l.key,T0=(t,l)=>l.name;function E0(t,l){if(t&1&&(a(0,"button",25),b(1,"i",26),s()),t&2){let e=p();c("cSidebarToggle",e.sidebarId)}}function P0(t,l){if(t&1){let e=x();a(0,"c-input-group",27)(1,"input",28),h(2,"translate"),y("click",function(){_(e);let i=p();return f(i.openOverlay())}),s(),a(3,"span",29),b(4,"i",30),s()()}t&2&&(r(),c("placeholder",g(2,1,"Search")))}function M0(t,l){if(t&1){let e=x();a(0,"c-sidebar-brand",31)(1,"img",32),y("error",function(i){_(e);let o=p();return f(o.onImageError(i))}),s()()}if(t&2){let e=p();c("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&B(2,_s).includes(e.userType)?B(3,_0):B(4,_s).includes(e.userType)?B(5,f0):B(6,v0)),r(),c("src",e.parabluLogo,he)}}function O0(t,l){if(t&1){let e=x();a(0,"app-search-overlay",33),y("close",function(){_(e);let i=p();return f(i.closeOverlay())}),s()}}function D0(t,l){t&1&&Jt(0)}function A0(t,l){t&1&&Jt(0)}function R0(t,l){t&1&&Jt(0)}function U0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.currentUserProfile())}),b(2,"i",46),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"My Account")))}function F0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",47),y("click",function(){_(e);let i=p(3);return f(i.userType==="user"?i.currentUserProfile():null)}),b(2,"i",46),a(3,"span",45),d(4),s()()()}if(t&2){let e=p(3);r(),we("cursor",e.userType==="user"?"pointer":"default"),r(3),v(e.currentUser)}}function B0(t,l){t&1&&(a(0,"span",45),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Administrator")))}function V0(t,l){t&1&&(a(0,"span",45),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"User")))}function N0(t,l){if(t&1&&(a(0,"li",48)(1,"a",49),b(2,"i",46),S(3,B0,3,3,"span",50)(4,V0,3,3,"span",50),s()()),t&2){let e=p(3);r(3),c("ngIf",e.userType=="delegatedAdmin"),r(),c("ngIf",e.userType=="user")}}function L0(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function G0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.redirectPaddleConsent())}),b(2,"i",51),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Manage Subscription")))}function H0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.redirectProductConsent())}),b(2,"i",52),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Add Product")))}function z0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.activityHistory())}),b(2,"i",53),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Activity History")))}function j0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.unusualActivityHistory())}),b(2,"i",53),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Unusual Activity History")))}function W0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.endpointsDownload())}),b(2,"i",54),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Download Agent")))}function q0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.licenseOptimizer())}),b(2,"i",55),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"License Optimizer")))}function J0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.packDetails())}),b(2,"i",51),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Current Packs Subscribed")))}function $0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.navigateToDownloads())}),b(2,"i",54),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Downloads")))}function Z0(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function K0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.shareActivityHistory())}),b(2,"i",56),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Share Activity History")))}function Y0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.sharedByMe())}),b(2,"i",56),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Files Shared By Me")))}function Q0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.sharedWithMe())}),b(2,"i",56),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Files Shared With Me")))}function X0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.unusualActivityHistory())}),b(2,"i",53),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Infected Files History")))}function eu(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.miniclouds())}),b(2,"i",57),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"MiniClouds")))}function tu(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function iu(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function nu(t,l){if(t&1&&(a(0,"li")(1,"a",58),d(2),h(3,"translate"),s()()),t&2){let e=p(3);r(),c("href",e.quick_startUrl,he),r(),v(g(3,2,"Quick Start Guide"))}}function ru(t,l){if(t&1&&(a(0,"li")(1,"a",58),d(2),h(3,"translate"),s()()),t&2){let e=p(3);r(),c("href",e.administrator_Guide_EndpointUrl,he),r(),v(g(3,2,"Administrator Guide"))}}function ou(t,l){if(t&1&&(a(0,"li")(1,"a",59),d(2),h(3,"translate"),s()()),t&2){let e=p(3);r(),c("href",e.quick_start_serverUrl,he),r(),v(g(3,2,"Quick Start Guide (Servers)"))}}function au(t,l){if(t&1&&(a(0,"li")(1,"a",59),d(2),h(3,"translate"),s()()),t&2){let e=p(3);r(),c("href",e.administrator_Guide_ServerUrl,he),r(),v(g(3,2,"Administrator Guide (Servers)"))}}function su(t,l){if(t&1&&(a(0,"li")(1,"a",59),d(2),h(3,"translate"),s()()),t&2){let e=p(3);r(),c("href",e.userGuideUrl,he),r(),v(g(3,2,"User Guide"))}}function lu(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function cu(t,l){t&1&&(a(0,"li")(1,"h6",60),d(2),h(3,"translate"),s()()),t&2&&(r(2),v(g(3,1,"Help & Support")))}function du(t,l){if(t&1){let e=x();a(0,"li")(1,"a",43),y("click",function(){_(e);let i=p(3);return f(i.redirectConsent())}),b(2,"i",61),a(3,"span",45),d(4),h(5,"translate"),s()()()}t&2&&(r(4),v(g(5,1,"Create Support Ticket")))}function pu(t,l){t&1&&(a(0,"li")(1,"a",58),b(2,"i",62),a(3,"span",45),d(4,"+971 50 158 7321"),s()()()),t&2&&(r(),c("href","https://wa.me/971501587321",he))}function uu(t,l){if(t&1&&(a(0,"li")(1,"a",63),b(2,"i",64),a(3,"span",45),d(4),h(5,"translate"),s()()()),t&2){let e=p(3);r(),c("href","mailto:"+e.support_mailId,he),r(3),v(g(5,2,"Send email"))}}function mu(t,l){t&1&&(a(0,"li"),b(1,"hr",41),s())}function hu(t,l){if(t&1){let e=x();a(0,"ul",38),S(1,U0,6,3,"li",39)(2,F0,5,3,"li",39)(3,N0,5,2,"li",40),a(4,"li"),b(5,"hr",41),s(),a(6,"li")(7,"span",42),d(8),h(9,"translate"),s()(),a(10,"li",42),d(11),h(12,"translate"),h(13,"translate"),s(),S(14,L0,2,0,"li",39)(15,G0,6,3,"li",39)(16,H0,6,3,"li",39),a(17,"li"),b(18,"hr",41),s(),S(19,z0,6,3,"li",39)(20,j0,6,3,"li",39)(21,W0,6,3,"li",39)(22,q0,6,3,"li",39)(23,J0,6,3,"li",39)(24,$0,6,3,"li",39)(25,Z0,2,0,"li",39)(26,K0,6,3,"li",39)(27,Y0,6,3,"li",39)(28,Q0,6,3,"li",39)(29,X0,6,3,"li",39)(30,eu,6,3,"li",39)(31,tu,2,0,"li",39)(32,iu,2,0,"li",39)(33,nu,4,4,"li",39)(34,ru,4,4,"li",39)(35,ou,4,4,"li",39)(36,au,4,4,"li",39)(37,su,4,4,"li",39)(38,lu,2,0,"li",39)(39,cu,4,3,"li",39)(40,du,6,3,"li",39)(41,pu,5,1,"li",39)(42,uu,6,4,"li",39)(43,mu,2,0,"li",39),a(44,"li")(45,"a",43),y("click",function(){_(e);let i=p(2);return f(i.logout())}),b(46,"i",44),a(47,"span",45),d(48),h(49,"translate"),s()()()()}if(t&2){let e=p(2);r(),c("ngIf",!e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),r(5),v(g(9,34,"PRODUCT")),r(3),T(" ",e.inclusionLicenses.includes("issmblicenseenabled")?g(12,36,"CrashPlan"):g(13,38,"CrashPlan Platform")," "),r(3),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),r(3),c("ngIf",!e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user")),r(),c("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),r(),c("ngIf",e.inclusionLicenses.includes("backup_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("sync_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType!="user"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType!="user"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.userType!="user"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.userType!="user"),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(),c("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),r(5),v(g(49,40,"Logout"))}}function gu(t,l){if(t&1){let e=x();a(0,"ul",38)(1,"li")(2,"a",43),y("click",function(){_(e);let i=p(2);return f(i.logout())}),b(3,"i",44),a(4,"span",45),d(5),h(6,"translate"),s()()()()}t&2&&(r(5),v(g(6,1,"Logout")))}function _u(t,l){if(t&1&&(a(0,"c-dropdown",34)(1,"button",35),b(2,"c-avatar",36),h(3,"date"),h(4,"translate"),h(5,"translate"),s(),S(6,hu,50,42,"ul",37)(7,gu,7,3,"ul",37),s()),t&2){let e=p();c("popperOptions",B(14,y0)),r(),c("caret",!1),r(),c("cTooltip",e.lastLoggedInTime?Q(4,9,"LastLoginTime",A(15,b0,Q(3,6,e.lastLoggedInTime,"medium"))):g(5,12,"No login recorded"))("size","md"),r(4),c("ngIf",e.userType!="superAdmin"),r(),c("ngIf",e.userType=="superAdmin")}}function fu(t,l){if(t&1){let e=x();a(0,"button",47),y("click",function(){let i=_(e).$implicit,o=p(2);return f(o.changeLanguage(i.key))}),d(1),s()}if(t&2){let e=l.$implicit,n=p(2);_n(A(3,C0,e.key===n.currentLocale)),r(),T(" ",e.name," ")}}function vu(t,l){if(t&1&&(a(0,"c-dropdown",65)(1,"button",66),b(2,"i",67),a(3,"span",68),d(4),s()(),a(5,"div",69),Ue(6,fu,2,5,"button",70,I0),s()()),t&2){let e=p();r(),c("caret",!1),r(3),v(e.showLangName),r(2),Fe(e.SupportedLocales)}}function yu(t,l){if(t&1){let e=x();a(0,"button",75),y("click",function(){_(e);let i=p(2);return f(i.click_Crashplan_Endpoint())}),a(1,"a",76),d(2),h(3,"translate"),s()()}if(t&2){let e=p(2);r(),c("href",e.crashplan_Endpoint_Url,he),r(),v(g(3,2,"CrashPlan Endpoint"))}}function bu(t,l){if(t&1){let e=x();a(0,"button",77),y("click",function(){let i=_(e).$implicit,o=p(2);return o.colorMode.set(i.name),f(o.applyTheme())}),Ei(),b(1,"svg",78),d(2),h(3,"translate"),s()}if(t&2){let e=l.$implicit,n=p(2);c("active",n.colorMode()===e.name)("routerLink",B(6,S0)),r(),c("name",e.icon),r(),T(" ",g(3,4,e.text)," ")}}function Cu(t,l){if(t&1&&(S(0,yu,4,4,"button",71),a(1,"c-dropdown",65)(2,"button",72),Ei(),b(3,"svg",73),s(),sn(),a(4,"div",69),Ue(5,bu,4,7,"button",74,T0),s()()),t&2){let e=p();c("ngIf",e.crashplan_Endpoint_Url),r(2),c("caret",!1),r(),c("name",e.icons()),r(2),Fe(e.colorModes)}}function Su(t,l){t&1&&(a(0,"th",82),d(1),h(2,"translate"),s()),t&2&&(r(),v(g(2,1,"Servers")))}function wu(t,l){t&1&&(a(0,"td",85)(1,"span"),d(2),h(3,"translate"),s()()),t&2&&(r(2),v(g(3,1,"-")))}function xu(t,l){if(t&1&&(a(0,"tr")(1,"td",85)(2,"div"),d(3),s()(),a(4,"td",85)(5,"div"),d(6),s()(),a(7,"td",85)(8,"div"),d(9),s()(),a(10,"td",85)(11,"div"),d(12,"-"),s()()()),t&2){let e=l.$implicit;r(3),v(e.skuCode),r(3),v(e.storageSize),r(3),v(e.minUserCount)}}function ku(t,l){if(t&1&&(a(0,"tr")(1,"td",85)(2,"div"),d(3),s()(),a(4,"td",85)(5,"div"),d(6,"-"),s()(),a(7,"td",85)(8,"div"),d(9),s()(),a(10,"td",85)(11,"div"),d(12),s()()()),t&2){let e=l.$implicit;r(3),v(e.skuCode),r(6),v(e.storageSize),r(3),v(e.minUserCount)}}function Iu(t,l){if(t&1&&(Et(0),S(1,ku,13,3,"tr",88),Pt()),t&2){let e=p(2);r(),c("ngForOf",e.serverPacks)}}function Tu(t,l){if(t&1&&(a(0,"td",85)(1,"span")(2,"b"),d(3),s()()()),t&2){let e=p(2);r(3),v(e.totalServer)}}function Eu(t,l){if(t&1&&(a(0,"app-modal",79)(1,"c-row")(2,"table",80)(3,"thead",81)(4,"tr")(5,"th",82),d(6,"Pack Name "),s(),a(7,"th",82)(8,"p",83),d(9),h(10,"translate"),s(),a(11,"p",83),d(12),h(13,"translate"),s()(),a(14,"th",82),d(15,"Users"),s(),S(16,Su,3,3,"th",84),s()(),a(17,"tbody")(18,"tr")(19,"td",85)(20,"span")(21,"a",86),h(22,"date"),h(23,"translate"),d(24),s(),b(25,"br"),a(26,"span"),d(27),h(28,"translate"),s()()(),a(29,"td",85)(30,"span"),d(31),s()(),a(32,"td",85)(33,"span"),d(34),s()(),S(35,wu,4,3,"td",87),s(),S(36,xu,13,3,"tr",88)(37,Iu,2,1,"ng-container",39),a(38,"tr",85)(39,"td",85)(40,"span")(41,"b"),d(42),h(43,"translate"),s()()(),a(44,"td",85)(45,"span")(46,"b"),d(47),s()()(),a(48,"td",85)(49,"span")(50,"b"),d(51),s()()(),S(52,Tu,4,1,"td",87),s()()()()()),t&2){let e=p();c("modalSize","modal-lg")("modalWidth","90%")("footerButtons",A(36,x0,A(34,w0,e.closePackDetails))),r(2),c("hover",!0)("responsive",!0)("striped",!0),r(7),v(g(10,21,"Managed Data")),r(3),v(g(13,23,"(GB)")),r(4),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),r(5),c("cTooltip",Q(23,27,"SubscribedOn",A(38,k0,g(22,25,e.subscriptionStartDate)))),r(3),T(" ",e.skuCode," "),r(3),v(g(28,30,"(Base Pack)")),r(4),v(e.storageSize),r(3),v(e.minUserCount),r(),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),r(),c("ngForOf",e.userPacks),r(),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),r(5),v(g(43,32,"Total")),r(5),v(e.totalStorage),r(4),v(e.totalUser),r(),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true")}}function Pu(t,l){if(t&1){let e=x();a(0,"app-crashplan-nav",89),y("closeModalHandler",function(){_(e);let i=p();return f(i.close_Crashplan_Endpoint())}),s()}}function Mu(t,l){if(t&1&&(b(0,"app-modal",90),h(1,"translate")),t&2){let e=p();xe("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),c("footerButtons",ke(8,Vi,A(4,Fi,e.cancelRedirectConsent),A(6,Bi,e.confirmRedirectConsent)))}}function Ou(t,l){if(t&1&&(b(0,"app-modal",90),h(1,"translate")),t&2){let e=p();xe("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),c("footerButtons",ke(8,Vi,A(4,Fi,e.cancelPaddleRedirectConsent),A(6,Bi,e.confirmPaddleRedirectConsent)))}}function Du(t,l){if(t&1&&(b(0,"app-modal",90),h(1,"translate")),t&2){let e=p();xe("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),c("footerButtons",ke(8,Vi,A(4,Fi,e.cancelProductRedirectConsent),A(6,Bi,e.confirmProductRedirectConsent)))}}var fs=(()=>{class t extends pa{#t;#e;#i;constructor(e,n,i,o,m,u,C,k,E,P,O,M,D,V,oe){let Te=e.Token;(!Te||Te.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=o,this.apiService=m,this.cdr=u,this.toastr=C,this.datePipe=k,this.licenseCheckService=E,this.TranslateService=P,this.userRoleService=O,this.dashboardService=M,this.configService=D,this.http=V,this.paddleService=oe,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.showServerTab="false",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/cpassets/doc/",this.inclusionLicenses=[],this.exclusionLicenses=[],this.crashplan_Endpoint_Url="",this.#t=Ke(An),this.#e=Ke(ea),this.colorMode=this.#e.colorMode,this.#i=Ke(cn),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Cn(()=>{let L=this.colorMode();return this.colorModes.find(wt=>wt.name===L)?.icon??"cilSun"}),this.imageSrc=["assets/brand/header_logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.guideUrlSrc=[this.commonAssetUrl+"Quick_start.pdf",this.commonAssetUrl+"Administrator_Guide_Endpoint.pdf",this.commonAssetUrl+"Quick_start_server.pdf",this.commonAssetUrl+"Administrator_Guide_Server.pdf",this.commonAssetUrl+"User_Guide.pdf"],this.isMsAppConsented=!1,this.isEwsAppConsented=!1,this.ssoAppConsented=!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.redirectConsentStyle=!1,this.supportUrl="",this.currentUser="",this.lastLoggedInTime=0,this.redirectPaddleConsentStyle=!1,this.paddleUrl="https://customer-portal.paddle.com/login/cpl_01hdh0x7ercd1p8g4qxgeqcesn",this.redirectProductConsentStyle=!1,this.productUrl="https://support.crashplan.com/hc/en-us/requests/new",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.cancelPaddleRedirectConsent=()=>{this.redirectPaddleConsentStyle=!1},this.confirmPaddleRedirectConsent=()=>{this.redirectPaddleConsentStyle=!1,window.open(this.paddleUrl,"_blank")},this.cancelProductRedirectConsent=()=>{this.redirectProductConsentStyle=!1},this.confirmProductRedirectConsent=()=>{this.redirectProductConsentStyle=!1,window.open(this.productUrl,"_blank")},this.closePackDetails=()=>{this.stylePackDetails=!1},this.cancelRedirectConsent=()=>{this.redirectConsentStyle=!1},this.confirmRedirectConsent=()=>{this.redirectConsentStyle=!1,window.open(this.supportUrl,"_blank")},this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(Xi(1),Z(L=>L.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),Gt(L=>["dark","light","auto"].includes(L)),H(L=>{this.colorMode.set(L)}),Yo(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];let ae=this.configService.commonUrl;this.http.get(ae).subscribe(L=>{typeof L=="object"&&L!==null?Object.keys(L).length>0&&(this.supportUrl=L.support_url):console.error("Unexpected response format:",L)},L=>{console.error("Error fetching data:",L)})}ngOnInit(){return z(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.currentUser=atob(this.sharedService.getDataByKey("userName")),this.lastLoggedInTime=parseInt(this.sharedService.getDataByKey("lastLoginTime")),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"&&(this.showCenterBrandLogo=!0);let e=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets/Exchange","/manageAssets/ODB","/manageAssets/Sharepoint"];this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(this.paddleUrl=yield this.paddleService.fetchAndSetPaddlePortalSession(),e.includes(this.router.url.toString())||this.checkWizardStatus()),this.router.events.subscribe(n=>{n instanceof rt&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus())}),this.inclusionLicenses.includes("iscpgendpointenabled")&&(this.crashplan_Endpoint_Url="http://console.console-stage.crashplan.com/")})}setBrandLogo(){return z(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}changeLanguage(e){return z(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"])}shareActivityHistory(){this.router.navigate(["sync/shareActivityHistory"])}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"])}sharedByMe(){this.router.navigate(["sync/myShares"])}sharedWithMe(){this.router.navigate(["sync/sharedWithMe"])}redirectPaddleConsent(){this.redirectPaddleConsentStyle=!0}redirectProductConsent(){this.redirectProductConsentStyle=!0}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.userPacks=[],this.serverPacks=[],this.totalStorage=0,this.totalServer=0,this.totalUser=0,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((o,m)=>{if(o.subscriptionActive){this.skuCode=o.skuCode,this.packModel=o.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(o.storageSize),this.totalUser=Number(o.minUserCount),this.storageSize=o.storageSize.toString(),this.minUserCount=o.minUserCount.toString(),this.customerId=o.customerId,this.referenceNumber=o.referenceNumber;let u=new Date(o.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(o.subscriptionStartDate),o.addons&&o.addons.length>0&&(this.addons=o.addons),o.addons&&o.addons.length>0&&o.addons.forEach(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 C=0;o.addons&&o.addons.length>0&&o.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.showServerTab=this.inclusionLicenses.includes("windows_server_backup_enabled")&&this.totalServer!=0?"true":"false"}}),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(){let e=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets"];for(let n=0;n<e.length;n++)if(this.router.url.startsWith(e[n]))return;console.log(".... smbConsent from header...."),this.apiService.checkWizardStatus().subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);this.isMsAppConsented=n.body.msAppConsented,this.isEwsAppConsented=n.body.ewsAppConsented,this.ssoAppConsented=n.body.ssoAppConsented,this.assetsConfigured=n.body.assetsConfigured;let m=localStorage.getItem("showStep1Modal");if(m!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return}if(m!=="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"])}redirectConsent(){this.redirectConsentStyle=!0}static{this.\u0275fac=function(n){return new(n||t)(w(K),w(te),w(et),w(_e),w(q),w(Pe),w(ve),w(pe),w(Je),w(ie),w(fe),w(Ci),w(De),w(ze),w(Wa))}}static{this.\u0275cmp=N({type:t,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[ce([pe,K,q,Ci]),Se],decls:60,vars:38,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"],["headerH4","Redirection Consent",3,"footerButtons","bodyH4",4,"ngIf"],["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","",3,"click","placeholder"],["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","cTooltipPlacement","left","src","./assets/images/avatars/default.jpg","status","success","textColor","primary","alt","User avatar",3,"cTooltip","size"],["cDropdownMenu","","class","pt-0 w-auto",4,"ngIf"],["cDropdownMenu","",1,"pt-0","w-auto"],[4,"ngIf"],["style","margin-left: 5px;",4,"ngIf"],["cDropdownDivider",""],[2,"margin-left","15px"],["cDropdownItem","",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-right-from-bracket","fa-rotate-180"],[2,"padding","5px"],[1,"fa-solid","fa-user"],["cDropdownItem","",3,"click"],[2,"margin-left","5px"],["cDropdownItem",""],["style","padding: 5px;",4,"ngIf"],[1,"fa-solid","fa-cart-shopping"],[1,"fa-solid","fa-plus"],[1,"fa-solid","fa-clock-rotate-left"],[1,"fa-solid","fa-arrow-down"],[1,"fa-solid","fa-sliders"],[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-solid","fa-ticket"],[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"],["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,"text-decoration","underline","cursor","pointer",3,"cTooltip"],["class","text-center",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"closeModalHandler"],["headerH4","Redirection Consent",3,"footerButtons","bodyH4"]],template:function(n,i){if(n&1){let o=x();Et(0),a(1,"c-container",3),S(2,E0,2,1,"button",4)(3,P0,5,3,"c-input-group",5)(4,M0,2,7,"c-sidebar-brand",6)(5,O0,1,0,"app-search-overlay",7),a(6,"c-header-nav",8),S(7,D0,1,0,"ng-container",9)(8,A0,1,0,"ng-container",9)(9,R0,1,0,"ng-container",9),s()(),Pt(),S(10,_u,8,17,"ng-template",null,0,$t)(12,vu,8,2,"ng-template",null,1,$t)(14,Cu,7,3,"ng-template",null,2,$t)(16,Eu,53,40,"app-modal",10)(17,Pu,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),b(25,"i",18),s()(),a(26,"div",19)(27,"h4"),d(28),h(29,"translate"),s(),a(30,"c-callout",20),d(31),h(32,"translate"),s()(),a(33,"div",21)(34,"button",22),y("click",function(){return _(o),f(i.denyConsentFlow())}),d(35,"Cancel"),s(),a(36,"button",23),y("click",function(){return _(o),f(i.proceedForConsentFlow())}),d(37,"Proceed"),s()()()()(),a(38,"div",12)(39,"div",13)(40,"div",14)(41,"div",15)(42,"h4",16),d(43),h(44,"translate"),s()(),a(45,"div",19)(46,"h4"),d(47),h(48,"translate"),s()(),a(49,"div",21)(50,"button",22),y("click",function(){return _(o),f(i.denyAssetConfigurationFlow())}),d(51),h(52,"translate"),s(),a(53,"button",23),y("click",function(){return _(o),f(i.proceedForAssetConfigurationFlow())}),d(54),h(55,"translate"),s()()()()(),b(56,"app-upload-panel"),S(57,Mu,2,11,"app-modal",24)(58,Ou,2,11,"app-modal",24)(59,Du,2,11,"app-modal",24)}if(n&2){let o=X(11),m=X(13),u=X(15);r(),c("fluid",!0),r(),c("ngIf",!i.showCenterBrandLogo),r(),c("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")&&!B(33,g0).includes(i.userType)),r(),c("ngIf",i.showCenterBrandLogo),r(),c("ngIf",i.isOverlayVisible),r(2),c("ngTemplateOutlet",m),r(),c("ngTemplateOutlet",u),r(),c("ngTemplateOutlet",o),r(7),c("ngIf",i.stylePackDetails),r(),c("ngIf",i.showCrashplanEndpointLicenseModal),r(),c("ngStyle",A(34,gs,i.displayConsentRemainder)),r(10),v(g(29,21,"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.")),r(3),v(g(32,23,"Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.")),r(7),c("ngStyle",A(36,gs,i.displayAssetConfigurationRemainder)),r(5),v(g(44,25,"Step 2: Configure Assets")),r(4),T(" ",g(48,27,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),""),r(4),v(g(52,29,"Cancel")),r(3),v(g(55,31,"Proceed")),r(3),c("ngIf",i.redirectConsentStyle),r(),c("ngIf",i.redirectPaddleConsentStyle),r(),c("ngIf",i.redirectProductConsentStyle)}},dependencies:[ui,as,ma,hi,gi,Ho,ua,ti,Tn,ra,na,si,ia,oa,ta,ci,pi,di,ms,ue,je,ee,We,pe,ge,Oe,_i,ct,bi,li,Me,hs],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 Au=4,Ru=.001,Uu=1e-7,Fu=10,Vt=11,wi=1/(Vt-1),Bu=typeof Float32Array=="function";function vs(t,l){return 1-3*l+3*t}function ys(t,l){return 3*l-6*t}function bs(t){return 3*t}function xi(t,l,e){return((vs(l,e)*t+ys(l,e))*t+bs(l))*t}function Cs(t,l,e){return 3*vs(l,e)*t*t+2*ys(l,e)*t+bs(l)}function Vu(t,l,e,n,i){let o,m,u=0;do m=l+(e-l)/2,o=xi(m,n,i)-t,o>0?e=m:l=m;while(Math.abs(o)>Uu&&++u<Fu);return m}function Nu(t,l,e,n){for(let i=0;i<Au;++i){let o=Cs(l,e,n);if(o===0)return l;let m=xi(l,e,n)-t;l-=m/o}return l}function Lu(t){return t}function Gu(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 Lu;let i=Bu?new Float32Array(Vt):new Array(Vt);for(let m=0;m<Vt;++m)i[m]=xi(m*wi,t,e);function o(m){let u=0,C=1,k=Vt-1;for(;C!==k&&i[C]<=m;++C)u+=wi;--C;let E=(m-i[C])/(i[C+1]-i[C]),P=u+E*wi,O=Cs(P,t,e);return O>=Ru?Nu(m,P,t,e):O===0?P:Vu(m,u,u+wi,t,e)}return function(u){return u===0?0:u===1?1:xi(o(u),l,n)}}var Hu=new Xe("SMOOTH_SCROLL_OPTIONS"),Ss=(()=>{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=J({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 Ne).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return Le(Y(e,"wheel",{passive:!0,capture:!0}),Y(e,"touchmove",{passive:!0,capture:!0}),n).pipe(Qi(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new Qe(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let o=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*o,e.currentY=e.startY+(e.y-e.startY)*o,this._scrollElement(e.scrollable,e.currentX,e.currentY),Lt.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),o={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:Gu(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(m=>{Ze(null).pipe(en(()=>this._step(o).pipe(rn(u=>this._isFinished(u,i,m)))),ye(this._interrupted(e,i)),tn(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(Sn(this._platform)){let i=this._getElement(e),o=getComputedStyle(i).direction==="rtl",m=yi(),u=Ae(J(J({},this._defaultOptions),n),{left:n.left==null?o?n.end:n.start:n.left,right:n.right==null?o?n.start:n.end:n.right});return u.bottom!=null&&(u.top=i.scrollHeight-i.clientHeight-u.bottom),o&&m!==0?(u.left!=null&&(u.right=i.scrollWidth-i.clientWidth-u.left),m===2?u.left=u.right:m===1&&(u.left=u.right?-u.right:u.right)):u.right!=null&&(u.left=i.scrollWidth-i.clientWidth-u.right),this._applyScrollToOptions(i,u)}return Promise.resolve()}scrollToElement(e,n,i={}){let o=this._getElement(e),m=this._getElement(n,o),u=Ae(J({},i),{left:m.offsetLeft+(i.left||0),top:m.offsetTop+(i.top||0)});return m?this.scrollTo(o,u):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(G(de),G(pn),G(Hu,8))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ju=["scrollbarY"],Wu=["scrollbarX"],qu=["*"];function Ju(t,l){if(t&1&&b(0,"scrollbar-x",null,0),t&2){let e=p(2);Re("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function $u(t,l){if(t&1&&b(0,"scrollbar-y",null,1),t&2){let e=p(2);Re("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Zu(t,l){if(t&1&&(Et(0),S(1,Ju,2,2,"scrollbar-x",5)(2,$u,2,2,"scrollbar-y",5),Pt()),t&2){let e=p();r(),c("ngIf",e.state.horizontalUsed),r(),c("ngIf",e.state.verticalUsed)}}var Ku=(()=>{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)(w(re))}}static{this.\u0275dir=se({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Is(t){return H(()=>{t.onselectstart=()=>!1})}function Ts(t){return H(()=>{t.onselectstart=null})}function $e(){return H(t=>t.stopPropagation())}function Ni(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var Li=(()=>{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 Qe(i=>{let o=Y(this.nativeElement,"mousemove",{passive:!0}),m=e?o:o.pipe($e()),u=Y(this.nativeElement,"mouseleave",{passive:!0}).pipe(Z(()=>!1));Le(m,u).pipe(H(C=>i.next(C)),ye(n)).subscribe()}),this.clicked=new Qe(i=>{let o=Y(this.nativeElement,"mousedown",{passive:!0}).pipe(H(u=>i.next(u))),m=Y(this.nativeElement,"mouseup",{passive:!0}).pipe(H(()=>i.next(!1)));o.pipe(xt(()=>m),ye(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)(w(re))}}static{this.\u0275dir=se({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),Ie=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=se({type:t,standalone:!1})}}return t})(),zi=(()=>{class t{get clicked(){let e=Y(this.trackElement,"mousedown",{passive:!0}).pipe($e(),Is(this.document)),n=Y(this.document,"mouseup",{passive:!0}).pipe($e(),Ts(this.document),xt(()=>Ji));return Le(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 Ze(e).pipe(Z(o=>o[this.pageProperty]),Z(o=>(o-this.offset-n/2)/this.size*i),H(o=>{this.cmp.scrollTo(Ae(J({},this.mapToScrollToOption(o)),{duration:Mi(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(w(Ie),w(HTMLElement),w(Document))}}static{this.\u0275dir=se({type:t,standalone:!1})}}return t})(),Gi=(()=>{class t extends zi{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)(w(Ie),w(re),w(de))}}static{this.\u0275dir=se({type:t,selectors:[["","scrollbarTrackX",""]],features:[Se]})}}return t})(),Hi=(()=>{class t extends zi{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)(w(Ie),w(re),w(de))}}static{this.\u0275dir=se({type:t,selectors:[["","scrollbarTrackY",""]],features:[Se]})}}return t})(),Es=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return Y(this.thumbElement,"mousedown",{passive:!0}).pipe($e())}constructor(e,n,i,o){this.cmp=e,this.track=n,this.thumbElement=i,this.document=o,this._dragging=new Ne,this.dragging=this._dragging.pipe(Ht())}update(){let e=Yu(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=Qu(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);Lt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,o=Ze(e).pipe(Is(this.document),H(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),m=Y(this.document,"mousemove",{capture:!0,passive:!0}).pipe($e()),u=Y(this.document,"mouseup",{capture:!0}).pipe($e(),Ts(this.document),H(()=>this.setDragging(!1)));return o.pipe(Z(C=>C[this.pageProperty]),Z(C=>C-this.dragStartOffset),Zi(C=>m.pipe(Z(k=>k[this.clientProperty]),Z(k=>k-this.track.offset),Z(k=>i*(k-C)/n),Z(k=>this.handleDrag(k,i)),H(k=>this.scrollTo(k)),ye(u))))}static{this.\u0275fac=function(n){return new(n||t)(w(Ie),w(zi),w(HTMLElement),w(Document))}}static{this.\u0275dir=se({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function Yu(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function Qu(t,l,e){return t*e/l}var ws=(()=>{class t extends Es{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,o,m){super(e,n,i.nativeElement,o),this.cmp=e,this.track=n,this.element=i,this.document=o,this.dir=m}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)(w(Ie),w(Gi),w(re),w(de),w(Oi))}}static{this.\u0275dir=se({type:t,selectors:[["","scrollbarThumbX",""]],features:[Se]})}}return t})(),xs=(()=>{class t extends Es{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,o){super(e,n,i.nativeElement,o),this.cmp=e,this.track=n,this.element=i,this.document=o}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`}handleDrag(e){return e}handleDirection(e){return e}setDragging(e){this.cmp.setDragging({verticalDragging:e})}scrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=function(n){return new(n||t)(w(Ie),w(Hi),w(re),w(de))}}static{this.\u0275dir=se({type:t,selectors:[["","scrollbarThumbY",""]],features:[Se]})}}return t})(),Ps=(()=>{class t{constructor(e,n,i,o,m){this.el=e,this.cmp=n,this.platform=i,this.document=o,this.zone=m,this.destroyed=new Ne}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new Ne,this.viewportThumbClicked=new Ne,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(Z(o=>o?Ni(o,this.el.getBoundingClientRect()):!1),Ht(),H(o=>this.document.onselectstart=o?()=>!1:null)),this.cmp.viewport.clicked.pipe(H(o=>{o?Ni(o,this.thumb.clientRect)?this.viewportThumbClicked.next(o):Ni(o,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(o)):this.cmp.setClicked(!1)}),ye(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),Le(i.pipe(H(o=>this.setHovered(o))),e.pipe(xt(o=>this.thumb.dragged(o))),n.pipe(xt(o=>this.track.onTrackClicked(o,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=Y(this.el,"mouseenter",{passive:!0}).pipe($e(),Z(()=>!0)),n=Y(this.el,"mouseleave",{passive:!0}).pipe($e(),Z(()=>!1));return Le(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(ye(this.destroyed)).subscribe(),Le(this.cmp.scrolled,this.cmp.updated).pipe(H(()=>this.thumb?.update()),ye(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)(w(HTMLElement),w(Ie),w(ot),w(Document),w(Ee))}}static{this.\u0275dir=se({type:t,standalone:!1})}}return t})(),Xu=(()=>{class t extends Ps{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,o,m){super(e.nativeElement,n,i,o,m),this.cmp=n,this.platform=i,this.document=o,this.zone=m}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(w(re),w(Ie),w(ot),w(de),w(Ee))}}static{this.\u0275cmp=N({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&($(Hi,7),$(xs,7)),n&2){let o;j(o=W())&&(i.track=o.first),j(o=W())&&(i.thumb=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("scrollbar-control",!0)},features:[Se],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(a(0,"div",0),b(1,"div",1),s()),n&2&&(Tt("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Tt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Hi,xs],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})(),em=(()=>{class t extends Ps{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,o,m){super(e.nativeElement,n,i,o,m),this.cmp=n,this.platform=i,this.document=o,this.zone=m}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(w(re),w(Ie),w(ot),w(de),w(Ee))}}static{this.\u0275cmp=N({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&($(Gi,7),$(ws,7)),n&2){let o;j(o=W())&&(i.track=o.first),j(o=W())&&(i.thumb=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("scrollbar-control",!0)},features:[Se],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(a(0,"div",0),b(1,"div",1),s()),n&2&&(Tt("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Tt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Gi,ws],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})(),tm=new Xe("NG_SCROLLBAR_OPTIONS"),ks={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},Ms=(()=>{class t{constructor(e){this.globalOptions=e?J(J({},ks),e):ks,this.rtlScrollAxisType=yi()}static{this.\u0275fac=function(n){return new(n||t)(G(tm,8))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),im=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new qi(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&Y(this.document.defaultView,"resize",{passive:!0}).pipe(Ti(this.manager.globalOptions.windowResizeDebounce),Z(()=>this.getNativeScrollbarSize()),Ht(),H(o=>this._scrollbarSize.next(o))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n}static{this.\u0275fac=function(n){return new(n||t)(G(de),G(Ms),G(ot))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),nm=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=Wi.EMPTY,this._subscriber=i.scrollbarSize.subscribe(o=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${o}px`,mn.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(w(re),w(et),w(im))}}static{this.\u0275dir=se({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),rm=(()=>{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=qe(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 be,!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 Qe(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(Ti(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(w(Ee),w(ot),w(Ie))}}static{this.\u0275dir=se({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),Os=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=qe(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=qe(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=qe(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=qe(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=qe(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=qe(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,o,m,u){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=o,this.smoothScroll=m,this.manager=u,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new be,this.state={},this.destroyed=new Ne}updateState(){let e=!1,n=!1,i=!1,o=!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")&&(o=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||o),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:i,isHorizontallyScrollable:o})}setState(e){this.state=J(J({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(H(i=>n=i),Z(i=>i.target[e]),nn(),Gt(([i,o])=>i!==o),Z(()=>n))}setHovered(e){this.zone.run(()=>this.setState(J({},e)))}setDragging(e){this.zone.run(()=>this.setState(J({},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=Y(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(Yi(this.scrollAuditTime)):e,this.scrolled=e.pipe(ye(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(H(()=>this.update()),ye(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)(w(re),w(Ee),w(Pe),w(Oi),w(Ss),w(Ms))}}static{this.\u0275cmp=N({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,o){if(n&1&&yn(o,Li,7),n&2){let m;j(m=W())&&(i.customViewPort=m.first)}},viewQuery:function(n,i){if(n&1&&($(ju,5,re),$(Wu,5,re),$(Li,7)),n&2){let o;j(o=W())&&(i.scrollbarY=o.first),j(o=W())&&(i.scrollbarX=o.first),j(o=W())&&(i.defaultViewPort=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("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:[ce([{provide:Ie,useExisting:t}]),jt],ngContentSelectors:qu,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&&(fn(),a(0,"div",2)(1,"div",3),y("resizeSensor",function(){return i.update()}),a(2,"div",4)(3,"div"),vn(4),s()()(),S(5,Zu,3,2,"ng-container",5),s()),n&2&&(c("ngAttr",i.state),r(),c("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),r(4),c("ngIf",!i.disabled))},dependencies:[ee,Ku,rm,Li,nm,em,Xu],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0})}}return t})();var Ds=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("My Files"),url:"/sync/files",icon:"fa-solid fa-file",visible:!0,key:"My BluSync"},{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"}];function om(t,l){t&1&&(a(0,"div",0),b(1,"div",1),s())}var As=(()=>{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(H(e=>{e instanceof On?this.loadingService.loadingOn():e instanceof Dn&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(w(Zt),w(te))}}static{this.\u0275cmp=N({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(S(0,om,2,0,"div",0),h(1,"async")),n&2&&He(g(1,1,i.loading$)?0:-1)},dependencies:[qa,Kt],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 ki={provide:"httpHeaders",useFactory:t=>new wn({"Content-Type":"application/json",Accept:"application/json",token:t.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[K]};var am=t=>({cloudPropertyElement:t}),Rs=()=>["admin","delegatedAdmin","readOnlyAdmin"],sm=()=>["/mspDashboard"],lm=()=>["/dashboard"],cm=()=>["/bluvault"],dm=()=>({"pointer-events":"none",cursor:"unset"}),pm=()=>({});function um(t,l){t&1&&(a(0,"c-sidebar-footer",17),b(1,"button",18),s())}function mm(t,l){if(t&1){let e=x();a(0,"c-sidebar",11,0)(2,"c-sidebar-header",12)(3,"c-sidebar-brand",13)(4,"img",14),y("error",function(i){_(e);let o=p();return f(o.onImageError(i))}),s()()(),a(5,"ng-scrollbar",15,1),y("updated",function(){_(e);let i=X(6),o=p();return f(o.onScrollbarUpdate(i.state))}),b(7,"c-sidebar-nav",16,2),s(),S(9,um,2,0,"c-sidebar-footer",17),s()}if(t&2){let e=X(1),n=p();r(3),c("routerLink",n.isMspEnabled&&B(5,Rs).includes(n.userType)?B(6,sm):B(7,Rs).includes(n.userType)?B(8,lm):B(9,cm))("ngStyle",n.userType==="superAdmin"?B(10,dm):B(11,pm)),r(),c("src",n.parabluLogo,he),r(3),c("navItems",n.navItems),r(2),He(e.narrow?-1:9)}}var Us=(()=>{class t{constructor(e,n,i,o,m,u,C){this.cdr=e,this.router=n,this.licenseCheckService=i,this.userRoleService=o,this.apiService=m,this.TranslateService=u,this.toastr=C,this.navItems=[],this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.cloudPropertyElement=null,this.userLicenses={},this.imageSrc=["assets/brand/header_logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"];let k=localStorage.getItem("theme-default"),E=k||localStorage.setItem("theme-default",'"light"');this.parabluLogo=E==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return z(this,null,function*(){this.navItems=Ds(this.TranslateService),this.userType=yield this.userRoleService.getUserRole(),this.userLicenses=yield this.userRoleService.getUserFlags(),this.navItems=yield this.getFilteredNavItems(),this.router.events.subscribe(e=>{e instanceof rt&&this.getCloudProperties()}),this.getCloudProperties()})}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.cloudPropertyElement=i.cloudPropertyElement,this.cdr.detectChanges()})}onScrollbarUpdate(e){}getFilteredNavItems(){return z(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==="My BluSync"||e.key==="Downloads"||e.key=="Policy Management"||e.key=="Unusual Activity Dashboard"||e.key=="User Migration")&&(e.visible=!1):(e.key==="Downloads"?this.userLicenses.userBackupEnabled=="true"||this.userLicenses.userOnedriveBkpEnabled=="true"||this.userLicenses.userExchangeBkpEnabledEnabled=="true"||this.userLicenses.userSharePointBkpEnabled=="true"||this.userLicenses.userGmailBkpEnabled=="true"||this.userLicenses.userGdriveBkpEnabled=="true"?e.visible=!0:e.visible=!1: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.key==="My BluSync"?e.visible=!1:e.visible=this.shouldShowSettings(),e.key==="My BluVault"&&(this.userLicenses.userBackupEnabled=="true"||this.userLicenses.userOnedriveBkpEnabled=="true"||this.userLicenses.userExchangeBkpEnabledEnabled=="true"||this.userLicenses.userSharePointBkpEnabled=="true"||this.userLicenses.userGmailBkpEnabled=="true"||this.userLicenses.userGdriveBkpEnabled=="true")&&(e.visible=!0),e.key==="My BluSync"&&this.inclusionLicenses.includes("sync_enabled")&&this.userLicenses.userSyncEnabled=="true"&&(e.visible=!0)),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)(w(Pe),w(te),w(Je),w(fe),w(q),w(ie),w(ve))}}static{this.\u0275cmp=N({type:t,selectors:[["app-dashboard"]],features:[ce([ki,vt,yt,La,Ja])],decls:8,vars:7,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],["class","d-print-none sidebar sidebar-fixed border-end","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll"],[1,"body","flex-grow-1"],["breakpoint","lg",1,"h-auto","px-4"],[3,"routerOutletData"],[3,"detectRouteTransitions"],[3,"conversationalAI"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink","ngStyle"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],["pointerEventsMethod","scrollbar","visibility","hover",1,"overflow",3,"updated"],["dropdownMode","close","compact","",3,"navItems"],["cSidebarToggle","sidebar1","toggle","unfoldable",1,"border-top","d-none","d-lg-flex",2,"cursor","pointer"],["cSidebarToggler","","aria-label","Toggle sidebar fold"]],template:function(n,i){n&1&&(S(0,mm,10,12,"c-sidebar",3),a(1,"div",4),b(2,"app-default-header",5),a(3,"div",6)(4,"c-container",7),b(5,"router-outlet",8),s()(),b(6,"loading-indicator",9)(7,"app-default-footer",10),s()),n&2&&(c("ngIf",i.showSideBar),r(2),c("cShadowOnScroll","sm"),r(3),c("routerOutletData",A(5,am,i.cloudPropertyElement)),r(),c("detectRouteTransitions",!0),r(),c("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI))},dependencies:[fa,ya,hi,ti,Os,Ca,ba,gi,va,fs,Xo,ui,ei,ue,ee,We,os,As],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 Fs=(()=>{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)(w(ve),w(ie))}}static{this.\u0275cmp=N({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),h(2,"translate"),s(),a(3,"button",0),y("click",function(){return i.showOnSuccess()}),d(4),h(5,"translate"),s()),n&2&&(r(),v(g(2,2,"toastalert works!")),r(3),v(g(5,4,"Add toast")))},dependencies:[Me],encapsulation:2})}}return t})();var I=(()=>{class t{constructor(e,n,i,o,m){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=o,this.licenseCheckService=m}canActivate(e,n){return z(this,null,function*(){let i=yield this.userRoleService.getUserRole(),o=e.data?.roles,m=e.data?.licenses;if(o&&i&&o.includes(i)){if(!m||m.length===0)return!0;let C=yield this.licenseCheckService.getInclusionLicensesNew(),k=yield this.userRoleService.getUserFlags(),E={backup_enabled:"userBackupEnabled",sync_enabled:"userSyncEnabled",onedrive_backup_enabled:"userOnedriveBkpEnabled",exchange_backup_enabled:"userExchangeBkpEnabledEnabled",sharepoint_backup_enabled:"userSharePointBkpEnabled",gmail_backup_enabled:"userGmailBkpEnabled",gdrive_backup_enabled:"userGdriveBkpEnabled"},P=i==="admin"||i==="superAdmin"||i==="readOnlyAdmin"||i==="delegatedAdmin";if(m.some(M=>{if(!C.includes(M))return!1;if(P)return!0;let V=E[M];return V?k[V]==="true":!1}))return!0}let u=this.authService.Token;return!u||u.trim()===""||i==="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1})}static{this.\u0275fac=function(n){return new(n||t)(G(te),G(_e),G(K),G(fe),G(Je))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hm=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],gm=[import("./chunk-PSQDXHY2.js"),import("./chunk-4WZF3OY3.js"),import("./chunk-TRJX37CO.js"),import("./chunk-66TWVME3.js"),import("./chunk-2R6IO357.js"),import("./chunk-R5SYNRHZ.js")],_m=["/edit"],fm=[import("./chunk-LE5IG2VZ.js")],Bs=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Us,children:[{path:"dashboard",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","sync_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-NEQL4VYE.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-N2MZZMRV.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QN6AXLGG.js").then(t=>t.routes)},{path:"bluvault",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-IXCR36WK.js").then(t=>t.routes)},{path:"backup/files",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-24Q24LYQ.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-32VWNIOF.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-X7RIWF34.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-7HGWNDMA.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[I],data:{roles:["admin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-X7RIWF34.js").then(t=>t.routes)},{path:"pms",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-563JVGBT.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZQOYXHRC.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WJKSH2CG.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IPDW7EEL.js").then(t=>t.routes)},...hm.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>gm[l].then(e=>e.routes)})),..._m.map((t,l)=>({path:`pms/spAdmin/:productKey${t}`,canActivate:[I],data:{roles:["superAdmin"]},loadChildren:()=>fm[l].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Z37YT7LB.js").then(t=>t.routes)},{path:"settings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-4K6SRKP7.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-SN7MGY4G.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XE3SP5WY.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-OC7L4VP4.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-6VXEK743.js").then(t=>t.routes)},{path:"azure",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-OC7L4VP4.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-EDZN6GME.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-RZ4K5BZ3.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-PHDAFNRV.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-4PH5J3Z4.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-X675IP3N.js").then(t=>t.routes)},{path:"ssoConsent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XWLMITLS.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-AAARIND2.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JLCD4CA3.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JXLHY3EG.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JXLHY3EG.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-WXODAYWF.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JSENI2KX.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-IN5PO3IC.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-TRBUXTSH.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-AAARIND2.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-67N3CNVO.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-5N5AZEDX.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-E5ON7VO6.js").then(t=>t.routes)},{path:"settings/m365Consent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZARDLTSO.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3AVCPJJ6.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-4PH5J3Z4.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-PHDAFNRV.js").then(t=>t.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-ZARDLTSO.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-X675IP3N.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-J7BRV7X5.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-42AIC4DE.js").then(t=>t.routes)},{path:"userMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-P2NIPSA2.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-7LEEG72T.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HFQ57FYA.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BLRTUTAU.js").then(t=>t.routes)},{path:"users",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XEX2XIHR.js").then(t=>t.routes)},{path:"users/create",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-W4PN5MEL.js").then(t=>t.routes)},{path:"users/edit",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RHXLKHEO.js").then(t=>t.routes)},{path:"users/profile",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RIYJDJUX.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BXNCTGPD.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BXNCTGPD.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-A3XRGTV5.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-6IXDSN6A.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-J4KV42S4.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-BYH5JVE3.js").then(t=>t.routes)},{path:"support",canActivate:[I],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VTPI52DK.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-TND6ISUP.js").then(t=>t.routes)},{path:"downloads",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-GPRJY447.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BSABNHWA.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XWEKPQUE.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-S7HC3OAQ.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JL7FG63R.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FW423W7R.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YAKD7XES.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-T2G6LN37.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XCNW4ZAL.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4IBX2J2E.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-56OQYYQU.js").then(t=>t.routes)},{path:"report/syncOverview",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JYZS4GNW.js").then(t=>t.routes)},{path:"report/minicloudActivity",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-47JY233D.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-4JVM7GSA.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-IDMP3THP.js").then(t=>t.routes)},{path:"sync/files",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-QO2IYNMZ.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-NJIIM3BI.js").then(t=>t.routes)},{path:"sync/myShares",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-I6MGELRV.js").then(t=>t.routes)},{path:"sync/sharedWithMe",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-TLLCCF6J.js").then(t=>t.routes)},{path:"sync/shareActivityHistory",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-RQN4YEHJ.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-PL4VLNEX.js").then(t=>t.routes)},{path:"fileArchivedView",loadComponent:()=>import("./chunk-6WGSIEKP.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-GVI43JVY.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-XNGTUOVN.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}}]},{path:"toast",component:Fs,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-IIOFDWAE.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-RD72TJ34.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-RACVOL2J.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-ACLE2G5L.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-ACLE2G5L.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-ACLE2G5L.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-OV3PX42K.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-ACLE2G5L.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-ACLE2G5L.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"share/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-3HJDMMGQ.js").then(t=>t.ShareComponent),data:{title:"Share Page"}},{path:"logout",loadComponent:()=>import("./chunk-CR6HI3WK.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"register",loadComponent:()=>import("./chunk-TDGCGVB6.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[I],loadComponent:()=>import("./chunk-3A757JBJ.js").then(t=>t.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"syncPolicyView",canActivate:[I],loadComponent:()=>import("./chunk-VLBHYQ47.js").then(t=>t.SyncPolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[I],loadComponent:()=>import("./chunk-B7VXDHPS.js").then(t=>t.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"Google Drive/policyView",canActivate:[I],loadComponent:()=>import("./chunk-HIBCHWPA.js").then(t=>t.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[I],loadComponent:()=>import("./chunk-3SFL73G2.js").then(t=>t.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[I],loadComponent:()=>import("./chunk-QAWXXDRQ.js").then(t=>t.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[I],loadComponent:()=>import("./chunk-3ZHREIPK.js").then(t=>t.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var vm="@",ym=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Ke(ln);loadingSchedulerFn=Ke(bm,{optional:!0});_engine;constructor(e,n,i,o,m){this.doc=e,this.delegate=n,this.zone=i,this.animationType=o,this.moduleImpl=m}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-AYLMBAH4.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new on(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:o})=>{this._engine=i(this.animationType,this.doc);let m=new o(this.delegate,this._engine,this.zone);return this.delegate=m,m})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let o=new ji(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(m=>{let u=m.createRenderer(e,n);o.use(u),this.scheduler??=this.injector.get(dn,null,{optional:!0}),this.scheduler?.notify(10)}).catch(m=>{o.use(i)}),o}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){hn()};static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})(),ji=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(o=>o.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith(vm)}},bm=new Xe("");function Nt(t="animations"){return Wt("NgAsyncAnimations"),an([{provide:qt,useFactory:(l,e,n)=>new ym(l,e,n,t),deps:[de,Qt,Ee]},{provide:kt,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Vs={providers:[kn(),Rn(Bs,Bn({onSameUrlNavigation:"reload"}),Un({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),Fn(),Vn()),zt(Sa,aa),ii,ns(),Nt("noop"),Na({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Nt(),De]};var Ns={provide:"PRODUCTS_FACTORY",useFactory:()=>[{title:"BluVault",key:"backup",dataManagementKey:"BACKUP",key3:"Backup",keyRegex:/Lin|Win|Mac/,exclusion_keys:["linux","mac","win"],licenceKey:"backup_enabled",featureLicenceKey:{issqlbkpenabled:"issqlbkpenabled",rwdetectionenabled:"rwdetectionenabled"},showFilter:!0,showSchedule:!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:$a,Add_Exclusion_Folder:Za,Add_Exception_Folder:Ka},{title:"Servers",key:"server",licenceKey:"windows_server_backup_enabled",showFilter:!0,showSchedule:!0,noBackupWindows:!0,showBulkMapping:!0,policyConfigurations:null,routes:{policy:null},dashboard:null},{title:"Microsoft Exchange",key:"Exchange",dataManagementKey:"OUTLOOK",key3:"mail",exclusion_keys:["exchange"],licenceKey:"exchange_backup_enabled",showSchedule:!0,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:Di,Add_Exclusion_Folder:Ai},{title:"OneDrive for Business",key:"ODB",shortTitle:"OneDrive",dataManagementKey:"ONEDRIVE",key2:"oneDrive",key3:"OneDrive",licenceKey:"onedrive_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!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:At,Add_Exclusion_Folder:Rt},{title:"SharePoint Online",key:"Sharepoint",shortTitle:"SharePoint",dataManagementKey:"SHAREPOINT",licenceKey:"sharepoint_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!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:At,Add_Exclusion_Folder:Rt},{title:"Gmail",key:"Gmail",exclusion_keys:["Gmail"],licenceKey:"gmail_backup_enabled",showSchedule:!0,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:Di,Add_Exclusion_Folder:Ai},{title:"Google Drive",key:"Google Drive",licenceKey:"gdrive_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!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:At,Add_Exclusion_Folder:Rt},{title:"Managed File Transfer",key:"BluSync",key2:"sync",key3:"SYNC",licenceKey:"sync_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,showSchedule:!1,showBulkMapping:!0,featureLicenceKey:{contentSearch:"contentsearchenabledforsync"},policyConfigurations:null,routes:{policy:"syncPolicy",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} / %{noOfMiniCloudsAllowed}"},{key:"storageDetails",passProduct:!1,noRoute:!1,title:"Storage Details",template:"%{spaceUsed}"},{key:"validity",noRoute:!0,title:"CrashPlan Installation valid Until",template:"%{noOfBackupUsersConnected}"}],reports:[{title:"Managed File Transfer Overview",route:"report/syncOverview"},{title:"MiniCloud Activity History",route:"report/minicloudActivity"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!1,cancel:!1}},Add_Folder:At,Add_Exclusion_Folder:Rt}]};var Ls=(()=>{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(ze),G(String),G(String))};static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Ii=class{handle(l){if(l.interpolateParams){let e=l.key.match(/\{\{ *[^} ]+ *\}\}/),n=l.key,i=l.interpolateParams;return e?.forEach(o=>{let m=o.replace(/\{\{|\}\}| */g,"");n=n.replace(o,i[m]||"")}),n}return l.key}};var Cm=window.btoa,Sm=window.atob;window.atob=t=>{let l=Sm(t),e=Uint8Array.from(l,n=>n.charCodeAt(0));return new TextDecoder().decode(e)};window.btoa=t=>{let l=new TextEncoder().encode(t),e=String.fromCodePoint(...l);return Cm(e)};function wm(t,l){return new Ls(t,"./assets/i18n/",".json")}function xm(t){return()=>{let l=document.cookie.match(/LANG=([a-z]{2})/)?.[1]||["en","it","fr","de","pl","pt","nl","es"].find(e=>e===navigator.language.split(/[^a-z]/i)[0].toLowerCase())||navigator.languages.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 km(t){return()=>$i(t.loadConfig()).then(l=>t.setConfig(l)).catch(l=>(console.error("Config load failed:",l),(l.status===404||l.status===403)&&(window.location.href="/404.html"),Promise.resolve()))}Pn(ts,{providers:[ge,zt(qo.forRoot({loader:{provide:jo,useFactory:wm,deps:[ze]},missingTranslationHandler:{provide:Wo,useClass:Ii},defaultLanguage:"en"})),{provide:Pi,useFactory:xm,deps:[ie],multi:!0},{provide:En,useValue:{dateFormat:"dd-MMM-yyyy HH:mm:ss"}},...Vs.providers,Zt,{provide:Pi,useFactory:km,deps:[De],multi:!0},{provide:xn,useClass:In,multi:!0},ki,Ns,Nt()]}).catch(t=>console.error(t));export{wm as HttpLoaderFactory,km as loadConfig,xm as setupTranslateFactory};
