import{a as as}from"./chunk-EITGGB4K.js";import{a as di}from"./chunk-7I4TSGR5.js";import{$ as Kr,$a as Ka,A as wr,Aa as wa,B as xr,Ba as xa,C as kr,Ca as ka,D as Tr,Da as Ta,E as Ir,Ea as Ia,F as Er,Fa as Ea,G as Mr,Ga as Ma,H as Pr,Ha as Pa,I as Dr,Ia as Da,J as Or,Ja as Oa,K as Ar,Ka as Aa,L as Ur,La as Ua,M as Fr,Ma as Fa,N as Br,Na as Ba,O as Rr,Oa as Ra,P as Vr,Pa as Va,Q as Nr,Qa as Na,R as Lr,Ra as La,S as Hr,Sa as Ha,T as Gr,Ta as Ga,U as zr,Ua as za,V as jr,Va as ja,W as Wr,Wa,X as qr,Xa as qa,Y as $r,Ya as $a,Z as Zr,Za,_ as Yr,_a as Ya,a as Jn,aa as Jr,ab as Ja,b as Qn,ba as Qr,bb as Qa,c as Xn,ca as Xr,d as er,da as ea,e as tr,ea as ta,f as ir,fa as ia,g as nr,ga as na,h as rr,ha as ra,i as ar,ia as aa,j as or,ja as oa,k as sr,ka as sa,l as lr,la,m as cr,ma as ca,n as dr,na as da,o as pr,oa as pa,p as ur,pa as ua,q as hr,qa as ha,r as mr,ra as ma,s as gr,sa as ga,t as _r,ta as _a,u as fr,ua as fa,v as vr,va,w as br,wa as ba,x as yr,xa as ya,y as Cr,ya as Ca,z as Sr,za as Sa}from"./chunk-S555YZ5B.js";import{a as es,c as ts,d as is}from"./chunk-7KSRIAKO.js";import{j as os}from"./chunk-UIJ5Q76O.js";import{a as Qo}from"./chunk-GHZ7FPE3.js";import{a as ss}from"./chunk-SPVICL35.js";import{a as Ei}from"./chunk-5W4UGGVE.js";import{a as rs}from"./chunk-GFF7FTSQ.js";import{a as Zo,b as $e}from"./chunk-VKD6JXAF.js";import{a as St}from"./chunk-KTQ4QK4Z.js";import{a as wt}from"./chunk-GF25VSD4.js";import{k as so,l as Ft,m as pi,o as lo,q as ui,s as co,x as po}from"./chunk-XZJYTELN.js";import{a as oo}from"./chunk-AGS2J6BT.js";import{a as Gi,b as zi,c as Bt,d as Rt,e as ls,f as cs,g as ds}from"./chunk-PYY625QS.js";import"./chunk-GE5YP3GH.js";import"./chunk-T34EOX3I.js";import"./chunk-XVJUP6QV.js";import{b as Ze,d as Yo,f as Ko,g as Ye}from"./chunk-QF2QAJQE.js";import{a as ns}from"./chunk-RXTW7JPU.js";import{a as Pe}from"./chunk-HTOXJ5ZW.js";import{a as ro,b as Xo}from"./chunk-SVWFWYVN.js";import{a as ai,b as Xa,c as eo,d as to,e as ut,f as io,g as be,h as Wo,i as qo,j as $o,k as W}from"./chunk-LCT7LWZZ.js";import{a as Jo}from"./chunk-TUCKC6PJ.js";import{a as Hi,b as Ii,p as We,s as qe}from"./chunk-OHFY4SW6.js";import{b as ki,c as bt,g as yt,h as Bo,i as Ro,j as Ct,k as Vo,p as No,q as Lo,r as Ho,u as Ti,v as Go,w as zo,x as jo,y as je}from"./chunk-GTIDDZQJ.js";import{c as ye,f as Z,i as fe}from"./chunk-ERPQLX3P.js";import{a as _e}from"./chunk-H4HM5ZJD.js";import{$ as ao,$a as _i,Ab as wi,Bb as vt,Cb as Ao,D as Me,Db as Uo,E as Rn,Eb as Fo,F as Vn,Fb as xi,G as Nn,H as me,Ha as hi,I as Ln,Ia as mo,J as ri,Ja as mi,K as Hn,L as pt,La as gi,M as Gn,N as zn,Na as mt,O as jn,Oa as gt,Q as oi,R as re,Ra as _t,S as Wn,Sa as go,T as qn,Ta as _o,U as $n,Ua as fo,V as Zn,Va as vo,W as Yn,Wa as bo,X as Kn,Xa as yo,Y as si,Ya as Co,Z as no,Za as So,_ as li,a as ue,aa as ae,ab as wo,ba as ge,ca as ci,da as uo,e as He,f as Ge,fb as fi,g as ie,gb as vi,hb as bi,ib as yi,ja as ht,jb as ze,k as ct,l as Pn,la as Li,lb as xo,m as ti,ma as ho,mb as ko,n as Dn,nb as Ci,o as On,p as he,q as dt,qb as To,r as ii,rb as Io,s as ne,sb as Eo,t as An,u as ni,ub as Si,v as Un,vb as Mo,w as Fn,wb as ft,xb as Po,yb as Do,z as Bn,zb as Oo}from"./chunk-MLI5PH7P.js";import{A as on,Aa as vn,B as Q,Ba as bn,Bb as L,Cc as pe,D as Ne,Da as Se,Db as de,Dc as p,E as jt,Ea as Ie,Eb as wn,Ec as _,F as sn,Fa as $t,Fb as xe,Fc as T,Gc as X,Hb as x,Hc as En,I as Vi,Ia as le,Jc as B,K as ln,Kc as R,L as cn,Lb as Dt,Lc as V,M as Wt,N as dn,O as pn,Pa as yn,Pc as ee,Qa as Pt,Qc as $,Rc as A,S as un,Sb as Ue,Sc as ke,Ta as Zt,Tb as c,Ub as ce,Vb as Le,Vc as m,Wc as g,X as Et,Xb as xn,Xc as te,Y as Ce,Yb as Ot,Yc as lt,Z as hn,Zc as ei,_ as G,_b as Kt,a as tn,aa as mn,ac as st,bc as Fe,c as nt,ca as se,cc as Be,cd as Ee,dc as o,eb as at,ec as s,f as Ve,fa as rt,fb as ve,fc as C,g as nn,gb as we,gc as At,ha as H,hc as Ut,ia as Xe,ic as Jt,j as Gt,jb as et,jc as w,jd as Mn,k as rn,la as gn,lb as r,ma as Mt,mb as Cn,oc as y,p as Qe,pb as Yt,pc as h,qb as ot,qc as kn,ra as qt,rb as S,rc as Tn,sa as f,sb as Sn,sc as Re,t as zt,ta as v,tc as Qt,u as K,ua as Ni,uc as Xt,va as _n,vc as In,w as an,wc as q,xc as z,ya as fn,yc as j}from"./chunk-42LKD4JQ.js";import{a as Y,b as Ae,i as N}from"./chunk-2AVGQ2MQ.js";var ps=["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 us=["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 hs={cibCcAmex:Jn,cibCcApplePay:Qn,cibCcMastercard:Xn,cibCcPaypal:er,cibCcStripe:tr,cibCcVisa:ir,cibFacebook:nr,cibGoogle:rr,cibLinkedin:ar,cibSkype:or,cibTwitter:sr,cifBr:lr,cifEs:cr,cifFr:dr,cifIn:pr,cifPl:ur,cifUs:hr,cilAccountLogout:mr,cilAlignCenter:gr,cilAlignLeft:_r,cilAlignRight:fr,cilApplicationsSettings:vr,cilArrowBottom:br,cilArrowRight:yr,cilArrowTop:Sr,cilBasket:wr,cilBell:xr,cilBold:kr,cilBookmark:Tr,cilCalculator:Ir,cilCalendar:Er,cilChart:Pr,cilChartPie:Mr,cilCheck:Or,cilCheckAlt:Dr,cilChevronLeft:Ar,cilChevronRight:Ur,cilCloud:Br,cilCloudDownload:Fr,cilCode:Rr,cilCommentSquare:Vr,cilContrast:Nr,cilCreditCard:Lr,cilCursor:Hr,cilDescription:Gr,cilDollar:jr,cilDrop:Wr,cilEnvelopeClosed:qr,cilEnvelopeOpen:$r,cilFile:Yr,cilGrid:Jr,cilHome:ea,cilInbox:ta,cilIndentDecrease:ia,cilIndentIncrease:na,cilItalic:ra,cilJustifyCenter:aa,cilLanguage:oa,cilLayers:sa,cilList:ca,cilListNumbered:la,cilLocationPin:da,cilLockLocked:pa,cilMagnifyingGlass:ua,cilMap:ha,cilMediaPlay:ga,cilMediaRecord:_a,cilMenu:va,cilMoon:ba,cilNotes:ya,cilOptions:Ca,cilPaperclip:wa,cilPaperPlane:Sa,cilPen:xa,cilPencil:ka,cilPeople:Ta,cilPrint:Ia,cilPuzzle:Ea,cilReportSlash:Pa,cilSave:Da,cilSettings:Aa,cilShare:Ba,cilShareAll:Ua,cilShareBoxed:Fa,cilSpeech:Na,cilSpeedometer:La,cilSpreadsheet:Ha,cilStar:Ga,cilSun:za,cilTags:ja,cilTask:Wa,cilTrash:$a,cilUnderline:Za,cilUser:Qa,cilUserFemale:Ya,cilUserFollow:Ka,cilUserUnfollow:Ja,logo:us,signet:ps,cilDevices:zr,cilSitemap:Va,cilTransfer:qa,cilHistory:Xr,cilHandshake:Qr,cilReload:Ma,cilFullscreen:Kr,cilMediaPause:ma,cilMediaStop:fa,cilShieldAlt:Ra,cilArrowThickBottom:Cr,cilEqualizer:Zr,cilSend:Oa};var gs=(()=>{class t{constructor(e,n,i,a,d,u,b){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=a,this.TranslateService=d,this.uploadManager=u,this.downloadManager=b,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.lastUrl=null,this.navStartTime=null,this.titleService.setTitle(this.title),this.iconSetService.icons=Y({},hs)}ngOnInit(){return N(this,null,function*(){this.router.events.subscribe(e=>{if(e instanceof Hn)this.navStartTime=performance.now?.()??Date.now();else if(e instanceof pt){let n=performance.now?.()??Date.now(),i=this.navStartTime?Math.round(n-this.navStartTime):void 0,a=e.urlAfterRedirects||e.url,d=this.lastUrl??window.location.pathname;io.captureMessage("route:navigation","info",{from:d,to:a,durationMs:i}),this.lastUrl=a,this.navStartTime=null;return}})})}beforeUnloadHandler(e){if(this.uploadManager.hasFiles())return e.preventDefault(),e.returnValue=this.TranslateService.instant("You have active uploads. Are you sure you want to leave?"),this.TranslateService.instant("You have active uploads. Are you sure you want to leave?");if(this.downloadManager.hasFiles())return e.preventDefault(),e.returnValue=this.TranslateService.instant("You have active downloads. Are you sure you want to leave?"),this.TranslateService.instant("You have active downloads. Are you sure you want to leave?")}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)(S(re),S(Ln),S(si),S(ro),S(ae),S(di),S(oo))}}static{this.\u0275cmp=L({type:t,selectors:[["app-root"]],hostBindings:function(n,i){n&1&&y("beforeunload",function(d){return i.beforeUnloadHandler(d)},!1,et)},decls:1,vars:0,template:function(n,i){n&1&&C(0,"router-outlet")},dependencies:[oi],encapsulation:2})}}return t})();var ol=(()=>{class t extends ui{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(H(ue),H(Ft),H(pi))};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})();function sl(){return new lo}function ll(t,l,e){return new po(t,l,e)}var _s=[{provide:pi,useFactory:sl},{provide:ui,useClass:ol},{provide:Yt,useFactory:ll,deps:[ni,ui,Ie]}],Oh=[{provide:Ft,useClass:so},{provide:Pt,useValue:"NoopAnimations"},..._s],cl=[{provide:Ft,useFactory:()=>new co},{provide:Pt,useFactory:()=>"BrowserAnimations"},..._s];function fs(){return Zt("NgEagerAnimations"),[...cl]}var vs=(()=>{class t extends So{constructor(e){super(),this.userRoleService=e,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.neilLogo="",this.userLogo="",this.query="",this.answer="",this.session_id="",this.index=0,this.userType="",this.neilLogo=this.imageSrc[3],this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.init()}init(){return N(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 a=n+":"+i;return a}static{this.\u0275fac=function(n){return new(n||t)(S(fe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-footer"]],inputs:{conversationalAI:"conversationalAI"},features:[ee([Z,W]),xe],decls:3,vars:1,consts:[[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"a",1),p(2),s()()),n&2&&(r(2),T("\xA9 CrashPlan ",i.currentYear," "))},dependencies:[je,ne,me,$e,qe,Ze,Ye],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 dl(t,l){t&1&&(o(0,"h4",9),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Your Organization is not licensed to use the CrashPlan Endpoint Product")))}function pl(t,l){t&1&&(o(0,"h4",9),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Contact support to add a product to your existing plan")))}function ul(t,l){t&1&&(o(0,"p",10),p(1),m(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"Contact Sales for more information.")," "))}function hl(t,l){if(t&1){let e=w();o(0,"button",12),y("click",function(){f(e);let i=h(2);return v(i.navigateToSales())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Contact Sales")))}function ml(t,l){if(t&1){let e=w();o(0,"button",12),y("click",function(){f(e);let i=h(2);return v(i.navigateToSales())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Contact Support")))}function gl(t,l){if(t&1&&(o(0,"div",7),x(1,hl,3,3,"button",11)(2,ml,3,3,"button",11),s()),t&2){let e=h();r(),c("ngIf",!e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled"))}}var bs=(()=>{class t{constructor(e,n,i){this.sharedService=e,this.userRoleService=n,this.licenseCheckService=i,this.closeModalHandler=new Se,this.userType="",this.inclusionLicenses=[]}ngOnInit(){return N(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew()})}closeSelf(){this.closeModalHandler.emit()}navigateToSales(){this.inclusionLicenses.includes("issmblicenseenabled")?window.open("https://support.crashplan.com/hc/en-us/requests/new","_blank"):window.open("https://www.crashplan.com/contact-sales/","_blank"),this.closeSelf()}static{this.\u0275fac=function(n){return new(n||t)(S(ye),S(fe),S(Pe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ee([he,Z,W])],decls:14,vars:7,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"],["class","modal-title","style","margin-bottom: .3em;",4,"ngIf"],["style","margin-bottom: 1em;",4,"ngIf"],["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"],[1,"modal-title",2,"margin-bottom",".3em"],[2,"margin-bottom","1em"],["type","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row"),x(5,dl,3,3,"h4",4)(6,pl,3,3,"h4",4)(7,ul,3,3,"p",5),o(8,"div"),x(9,gl,3,2,"div",6),o(10,"div",7)(11,"button",8),y("click",function(){return i.closeSelf()}),p(12),m(13,"translate"),s()()()()()()()()),n&2&&(r(5),c("ngIf",!i.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",i.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",!i.inclusionLicenses.includes("issmblicenseenabled")),r(2),c("ngIf",i.userType==="admin"),r(3),_(g(13,5,"Back to Dashboard")))},dependencies:[ne,ie,me,ze,ge],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 ys=(()=>{class t{transform(e,n=",",i){if(!e)return"";let a=e.split(n);return i!==void 0?a[i]:a}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wn({name:"split",type:t,pure:!0})}}return t})();var fl=t=>({totalCountGS:t}),vl=(t,l)=>({"col-lg-12":t,"col-lg-7":l}),bl=()=>({"col-lg-5":!0}),yl=t=>({display:t}),Cl=(t,l)=>({active:t,disabled:l}),Sl=(t,l)=>({addedElementsCount:t,totalCountGS:l}),wl=()=>["Google Drive","Gmail"];function xl(t,l){if(t&1){let e=w();o(0,"a",22),y("click",function(){f(e);let i=h(2);return v(i.enableMultiSelect())}),C(1,"i",23),o(2,"span",24),p(3),m(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Enable Multiselect")))}function kl(t,l){if(t&1){let e=w();o(0,"a",22),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),C(1,"i",25),o(2,"span",24),p(3),m(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Disable Multiselect")))}function Tl(t,l){if(t&1){let e=w();o(0,"button",26),y("click",function(){f(e);let i=h(2);return v(i.addToCartFinal())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Add Selected Items")))}function Il(t,l){if(t&1){let e=w();o(0,"button",27),y("click",function(){f(e);let i=h(2);return v(i.onExportAsZipG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Export all items to Zip")))}function El(t,l){if(t&1){let e=w();o(0,"button",28),y("click",function(){f(e);let i=h(2);return v(i.onExportAsZipG())}),p(1," Export selected items to Zip "),s()}if(t&2){let e=h(2);c("ngClass",ke(1,Cl,e.addedElementsCount>0,e.addedElementsCount<=0))}}function Ml(t,l){if(t&1){let e=w();o(0,"th",29)(1,"input",30),m(2,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.isSelectAll,i)||(a.isSelectAll=i),v(i)}),y("change",function(){f(e);let i=h(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=h(2);r(),c("title",g(2,2,"Select all")),B("ngModel",e.isSelectAll)}}function Pl(t,l){if(t&1){let e=w();o(0,"td")(1,"input",35),V("ngModelChange",function(i){f(e);let a=h().$implicit;return R(a.isChecked,i)||(a.isChecked=i),v(i)}),y("change",function(){f(e);let i=h(3);return v(i.itemSelect())}),s()()}if(t&2){let e=h().$implicit;r(),B("ngModel",e.isChecked)}}function Dl(t,l){if(t&1){let e=w();o(0,"tr"),x(1,Pl,2,1,"td",0),o(2,"td")(3,"div")(4,"h4"),p(5),s()(),o(6,"p",31)(7,"b"),p(8,"Found in: "),s(),p(9),s(),o(10,"p"),C(11,"span",32),s()(),o(12,"td")(13,"button",33),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.onDownload(i))}),p(14),m(15,"translate"),s(),o(16,"button",34),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.onOpenLocation(i))}),p(17),m(18,"translate"),s()()()}if(t&2){let e=l.$implicit,n=h(2);Le("selected-rowMail",n.isSelected(e)),r(),c("ngIf",n.isMultiSelectEnabled),r(4),_(e.fileName),r(4),X("",e.deviceName," : ",e.filePath,""),r(2),c("innerHTML",n.renderHtml(e.content),ve),r(3),_(g(15,9,"Download")),r(3),_(g(18,11,"Open File Location"))}}function Ol(t,l){if(t&1){let e=w();o(0,"th"),p(1),m(2,"translate"),o(3,"button",36),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),p(4),m(5,"translate"),s()()}if(t&2){let e=h(2);r(),T(" ",te(2,2,"addedElementsCountoutoftotalCountGSelected",ke(7,Sl,e.addedElementsCount,e.totalCountGS))," "),r(3),_(g(5,5,"Remove all"))}}function Al(t,l){if(t&1&&(o(0,"th"),p(1),m(2,"translate"),s()),t&2){let e=h(2);r(),X(" ",e.addedElementsCount," ",g(2,2,"selected"),"")}}function Ul(t,l){if(t&1){let e=w();o(0,"tr")(1,"td",37)(2,"span",38),p(3),s(),o(4,"a",39),y("click",function(){let i=f(e),a=i.$implicit,d=i.index,u=h(2);return v(u.removeItem(d,a.fileName,a.fileRevisionID,a.fileName))}),C(5,"i",40),s(),o(6,"p",41)(7,"b"),p(8),m(9,"translate"),s(),o(10,"span",42),p(11),s()()()()}if(t&2){let e=l.$implicit;r(3),_(e.fileName),r(5),_(g(9,4,"Found in:")),r(3),X("",e.deviceName," : ",e.filePath,"")}}function Fl(t,l){if(t&1&&(o(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",5),x(4,xl,5,3,"a",6)(5,kl,5,3,"a",6),o(6,"span")(7,"b"),p(8),m(9,"translate"),s()(),x(10,Tl,3,3,"button",7)(11,Il,3,3,"button",8)(12,El,2,4,"button",9),s(),o(13,"c-card-body",10)(14,"c-card",11)(15,"c-card-body")(16,"div",12)(17,"table",13)(18,"thead",14)(19,"tr"),x(20,Ml,3,4,"th",15),o(21,"th",16),p(22,"File Name"),s(),o(23,"th",17),p(24,"Actions"),s()()(),o(25,"tbody"),x(26,Dl,19,13,"tr",18),s()()()()(),o(27,"c-card",19)(28,"c-card-body")(29,"div",12)(30,"table",20)(31,"thead")(32,"tr"),x(33,Ol,6,10,"th",0)(34,Al,3,4,"th",0),s()(),o(35,"tbody"),x(36,Ul,12,6,"tr",21),s()()()()()()()()()),t&2){let e=h();r(4),c("ngIf",e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),_(te(9,18,"{{ totalCountGS }} Search Results Found",A(21,fl,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,vl,!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",$(26,bl))("ngStyle",A(27,yl,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 Bl(t,l){t&1&&(o(0,"c-row",43)(1,"c-card",44)(2,"c-card-body")(3,"b"),p(4),m(5,"translate"),s()()()()),t&2&&(r(4),_(g(5,1,"There are no results!.")))}function Rl(t,l){if(t&1){let e=w();o(0,"a",52),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.first))}),C(1,"i",53),s()}}function Vl(t,l){if(t&1){let e=w();o(0,"a",54),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.previous))}),C(1,"i",55),s()}}function Nl(t,l){if(t&1){let e=w();o(0,"a",56),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.next))}),C(1,"i",57),s()}}function Ll(t,l){if(t&1){let e=w();o(0,"a",58),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.last))}),C(1,"i",59),s()}}function Hl(t,l){if(t&1&&(o(0,"c-row",45)(1,"div",46)(2,"div",47),x(3,Rl,2,0,"a",48)(4,Vl,2,0,"a",49)(5,Nl,2,0,"a",50)(6,Ll,2,0,"a",51),s()()()),t&2){let e=h();r(3),c("ngIf",e.first),r(),c("ngIf",e.previous),r(),c("ngIf",e.next),r(),c("ngIf",e.last)}}function Gl(t,l){if(t&1){let e=w();o(0,"button",72),y("click",function(){f(e);let i=h(2);return v(i.exportCompleteSearchAsZipTriggerG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Proceed")))}function zl(t,l){if(t&1){let e=w();o(0,"button",72),y("click",function(){f(e);let i=h(2);return v(i.exportSelectedAsZipG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Proceed")))}function jl(t,l){if(t&1){let e=w();o(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),m(6,"translate"),s()(),o(7,"div",65)(8,"c-row")(9,"div",66)(10,"label",67),p(11),m(12,"translate"),s(),o(13,"input",68),m(14,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.zipFileNameG,i)||(a.zipFileNameG=i),v(i)}),s()()()(),o(15,"div",69)(16,"button",70),y("click",function(){f(e);let i=h();return v(i.closeZipPopupG())}),p(17),m(18,"translate"),s(),x(19,Gl,3,3,"button",71)(20,zl,3,3,"button",71),s()()()()}if(t&2){let e=h();r(5),_(g(6,7,"Specify Filename")),r(6),_(g(12,9,"Specify Filename")),r(2),B("ngModel",e.zipFileNameG),c("placeholder",g(14,11,"Enter ZIP File Name")),r(4),_(g(18,13,"Close")),r(2),c("ngIf",e.exportCompleteSearchG),r(),c("ngIf",!e.exportCompleteSearchG)}}function Wl(t,l){t&1&&(o(0,"th"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Current item being processed")))}function ql(t,l){if(t&1&&(o(0,"span"),p(1),m(2,"slice"),s()),t&2){let e=h(3);r(),T("/ ",lt(2,1,e.progressG.subject,0,40),"")}}function $l(t,l){if(t&1&&(o(0,"td")(1,"span",78),p(2),m(3,"slice"),s(),x(4,ql,3,5,"span",0),s()),t&2){let e=h(2);r(),Xt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),_(lt(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function Zl(t,l){t&1&&(o(0,"td"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"-")))}function Yl(t,l){if(t&1&&(o(0,"td"),p(1),o(2,"div",79)(3,"div",80),p(4),m(5,"number"),s()()()),t&2){let e=h(2);r(),X("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),r(),Qt("title","",e.progressG.totalRestorePct,"%"),r(),ce("width",e.progressG.totalRestorePct,"%"),r(),T(" ",te(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Kl(t,l){t&1&&(o(0,"td"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"0")))}function Jl(t,l){if(t&1){let e=w();o(0,"button",81),y("click",function(){f(e);let i=h(2);return v(i.cancelDownloadAsZipG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Cancel Restore")))}function Ql(t,l){if(t&1){let e=w();o(0,"div",73)(1,"div",74)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),m(6,"translate"),s()(),o(7,"div",65)(8,"c-card")(9,"c-card-header",75),p(10),m(11,"translate"),s(),o(12,"c-card-body")(13,"c-row",43)(14,"table",76)(15,"thead")(16,"tr"),x(17,Wl,3,3,"th",0),o(18,"th"),p(19),m(20,"translate"),s()()(),o(21,"tbody")(22,"tr"),x(23,$l,5,9,"td",0)(24,Zl,3,3,"td",0)(25,Yl,6,10,"td",0)(26,Kl,3,3,"td",0),s()()()()()()(),o(27,"div",69)(28,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipPopupG())}),p(29,"Close"),s(),x(30,Jl,3,3,"button",77),s()()()()}if(t&2){let e=h();r(5),_(g(6,9,"Restore Progress")),r(5),_(g(11,11,"Currently Running Restore Statistics")),r(7),c("ngIf",e.productType!="Gmail"&&e.productType!="Google Drive"),r(2),_(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",!$(15,wl).includes(e.productType))}}function Xl(t,l){if(t&1){let e=w();o(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),m(6,"translate"),s()(),o(7,"div",65)(8,"h4",64),p(9),m(10,"translate"),s()(),o(11,"div",69)(12,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipConfirmPopupG())}),p(13),m(14,"translate"),s(),o(15,"button",82),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsZipConfirmG())}),p(16),m(17,"translate"),s()()()()()}t&2&&(r(5),_(g(6,4,"Restore Cancel Confirmation")),r(4),_(g(10,6,"Are you sure you wish to cancel the restore?")),r(4),_(g(14,8,"Cancel")),r(3),_(g(17,10,"Ok")))}function ec(t,l){if(t&1){let e=w();o(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),m(6,"translate"),s()(),o(7,"div",65)(8,"h4",64),p(9),m(10,"translate"),s()(),o(11,"div",69)(12,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipRunBkpPopupG())}),p(13),m(14,"translate"),s(),o(15,"button",81),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsZipRunBkpG())}),p(16),m(17,"translate"),s()()()()()}t&2&&(r(5),_(g(6,4,"Confirmation")),r(4),_(g(10,6,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),r(4),_(g(14,8,"Cancel")),r(3),_(g(17,10,"Ok")))}var Ss=(()=>{class t{constructor(e,n,i,a,d,u,b,k,I){this.cdr=e,this.toastr=n,this.TranslateService=i,this.sharedService=a,this.sanitizer=d,this.apiService=u,this.assetManagementService=b,this.router=k,this.configService=I,this.foundFiles=[],this.noFilesFound=!1,this.productType="",this.contentSearchText="",this.totalCountGS="",this.userType="",this.currentDeviceUUID="",this.first="",this.previous="",this.next="",this.last="",this.downloadFile=new Se,this.openFileLocation=new Se,this.navigatePage=new Se,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(at.HTML,e)||"")}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundFiles.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(d=>!this.isBackupIdExists(d.fileRevisionID));if(this.addedElementsUpdated.length+n.length>500){this.toastr.error(this.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(d=>d.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,a){this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.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 this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}exportCompleteSearchAsZipTriggerG(){if(this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("Fail!!!"));return}this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].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 a=[];this.batchIdG=e.body.data.batchId,this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","","",!1,this.batchIdG).subscribe(d=>{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()},d=>{switch(d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.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: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.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: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.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(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,this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","",this.foundFiles[0].user,!1,this.batchIdG).subscribe(n=>{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=>{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")&&(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=>{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.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=>{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)(S(Ee),S(be),S(ae),S(ye),S(ri),S(W),S(wt),S(re),S(_e))}}static{this.\u0275cmp=L({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:[ee([he,W,Xo]),qt],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",3,"ngModelChange","change","title","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","localizedValidate","","name","zipFileNameG","id","zipFileNameG","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[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&&x(0,Fl,37,29,"c-row",0)(1,Bl,6,3,"c-row",1)(2,Hl,7,4,"c-row",2)(3,jl,21,15,"div",3)(4,Ql,31,16,"div",4)(5,Xl,18,12,"div",3)(6,ec,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:[ct,je,bt,ki,yt,Ti,Ct,ne,He,Ge,ie,ii,dt,hi,gt,mt,_t,yi,ze,vt,me,$e,qe,Ze,Ye,ge],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 ic=["deviceDropdown"],nc=["deviceDropdownCS"],rc=["contentFrame"],ac=["userDeviceSearch"],oc=["fileSearch"],sc=["contentSearch"],lc=["contentSearchMailInput"],cc=["deviceDropdownR"],dc=["contentCalendarFrame"],pc=["searchInput"],it=t=>({display:t}),uc=t=>[t],hc=t=>({totalCountGS:t}),mc=t=>({"multi-select":t}),gc=()=>({"col-lg-3":!0}),_c=(t,l)=>({active:t,disabled:l}),xs=t=>({"background-color":t}),fc=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),vc=t=>({currentMailSubject:t}),bc=t=>({addedElementsCount:t}),yc=t=>({disabled:t});function Cc(t,l){if(t&1){let e=w();o(0,"c-nav-item")(1,"button",17),y("click",function(){f(e);let i=h();return v(i.setActiveSearchTab("file",1))}),p(2),m(3,"translate"),s()()}if(t&2){h();let e=pe(14);r(),c("cTabContent",e)("tabPaneIdx",1),r(),_(g(3,3,"Search by file/folder names"))}}function Sc(t,l){if(t&1){let e=w();o(0,"c-nav-item")(1,"button",17),y("click",function(){f(e);let i=h();return v(i.setActiveSearchTab("content",2))}),p(2),m(3,"translate"),s()()}if(t&2){h();let e=pe(14);r(),c("cTabContent",e)("tabPaneIdx",2),r(),_(g(3,3,"Full text search"))}}function wc(t,l){if(t&1&&(o(0,"c-card"),p(1),s()),t&2){let e=h();r(),T(" ",e.noUsersFoundText," ")}}function xc(t,l){if(t&1){let e=w();o(0,"c-col",75)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.userProfile(i.userNameEncoded))}),o(3,"div",74)(4,"div",78),C(5,"img",79),s(),o(6,"div",80)(7,"p",81)(8,"b"),p(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),Re("title",e.userName),r(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function kc(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",73),p(2),m(3,"translate"),s(),o(4,"c-card-body",74),Fe(5,xc,10,2,"c-col",75,st),s()()),t&2){let e=h();r(2),X("",e.foundUsers.length," ",g(3,2,"User(s) found:")," "),r(3),Be(e.foundUsers)}}function Tc(t,l){if(t&1&&(o(0,"c-card"),p(1),s()),t&2){let e=h();r(),T(" ",e.noUsersFoundText," ")}}function Ic(t,l){if(t&1){let e=w();o(0,"c-col",82)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.userProfile(i.userNameEncoded))}),o(3,"div",74)(4,"div",78),C(5,"img",83),s(),o(6,"div",80)(7,"p",81)(8,"b"),p(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),Re("title",e.userName),r(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Ec(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",73),p(2),m(3,"translate"),s(),o(4,"c-card-body",74),Fe(5,Ic,10,2,"c-col",82,st),s()()),t&2){let e=h();r(2),X("",e.foundSites.length," ",g(3,2,"Site(s) found:")," "),r(3),Be(e.foundSites)}}function Mc(t,l){if(t&1&&(o(0,"c-card"),p(1),s()),t&2){let e=h();r(),T(" ",e.noDevicesFoundText," ")}}function Pc(t,l){if(t&1){let e=w();o(0,"c-col",82)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),o(3,"div",74)(4,"div",78),C(5,"img",84),s(),o(6,"div",80)(7,"p",81)(8,"b"),p(9),m(10,"translate"),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),Re("title",e.deviceName),r(2),En("",(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 Dc(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",73),p(2),m(3,"translate"),s(),o(4,"c-card-body",74),Fe(5,Pc,11,6,"c-col",82,st),s()()),t&2){let e=h();r(2),X("",e.foundDevices.length," ",g(3,2,"Device(s) found:")," "),r(3),Be(e.foundDevices)}}function Oc(t,l){t&1&&(o(0,"option",85),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"BluVault")))}function Ac(t,l){t&1&&(o(0,"option",86),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"OneDriveforBusiness")))}function Uc(t,l){t&1&&(o(0,"option",87),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"SharePoint Online")))}function Fc(t,l){if(t&1&&(o(0,"option",31),p(1),s()),t&2){let e=h().$implicit;c("value",e.key),r(),_(e.title)}}function Bc(t,l){if(t&1&&x(0,Fc,2,2,"option",88),t&2){let e=l.$implicit,n=h();c("ngIf",n.productsLicensed.includes(e.key))}}function Rc(t,l){if(t&1){let e=w();o(0,"div",89)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select2",90),m(5,"translate"),m(6,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.selectedValue,i)||(a.selectedValue=i),v(i)}),y("search",function(i){f(e);let a=h();return v(a.onSearch(i))})("update",function(i){f(e);let a=h();return v(a.update(i))}),s()()}if(t&2){let e=h();r(2),_(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"||e.userType==="readOnlyAdmin"),B("ngModel",e.selectedValue)}}function Vc(t,l){if(t&1){let e=w();o(0,"div",89)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select2",91),m(5,"translate"),m(6,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.selectedValueSite,i)||(a.selectedValueSite=i),v(i)}),y("search",function(i){f(e);let a=h();return v(a.onSearchSite(i))})("update",function(i){f(e);let a=h();return v(a.updateSite(i))}),s()()}if(t&2){let e=h();r(2),_(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")),B("ngModel",e.selectedValueSite)}}function Nc(t,l){if(t&1&&(o(0,"option",31),p(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),r(),T(" ",e.deviceName," ")}}function Lc(t,l){t&1&&(o(0,"option"),p(1),m(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function Hc(t,l){if(t&1&&(o(0,"div",92)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select",93,4),x(6,Nc,2,2,"option",94)(7,Lc,3,3,"option",18),s(),C(8,"i",95),s()),t&2){let e=h();r(2),_(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devices),r(),c("ngIf",e.devices.length==0)}}function Gc(t,l){t&1&&(o(0,"c-row")(1,"c-card",12)(2,"c-card-body")(3,"b"),p(4),m(5,"translate"),s()()()()),t&2&&(r(4),_(g(5,1,"There are no results!.")))}function zc(t,l){if(t&1){let e=w();o(0,"tr")(1,"td")(2,"div")(3,"h4"),p(4),s()(),o(5,"p",102)(6,"b"),p(7),m(8,"translate"),s(),p(9),s()(),o(10,"td")(11,"button",103),y("click",function(i){let a=f(e).$implicit,d=h(2);return v(d.downloadFile(a.fileName,a.filePath,a.fileRevisionID,a.backup,a.fileUser,a.deviceUUID,a.folder,a.size,d.productTypeFiles,i))}),p(12),m(13,"translate"),s(),o(14,"button",104),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.openFileLocation(i.fileName,i.filePath,i.deviceId,a.productTypeFiles,i.backup))}),p(15),m(16,"translate"),s()()()}if(t&2){let e=l.$implicit;r(4),_(e.fileName),r(3),T("",g(8,5,"Found in"),": "),r(2),_(e.filePath),r(3),_(g(13,7,"Download")),r(3),_(g(16,9," Open File Location"))}}function jc(t,l){if(t&1&&(o(0,"c-row",96)(1,"table",97)(2,"thead",98)(3,"tr")(4,"th",99),p(5,"File Name "),s(),o(6,"th",100),p(7),m(8,"translate"),s()()(),o(9,"tbody"),x(10,zc,17,11,"tr",101),s()()()),t&2){let e=h();r(),c("hover",!0)("responsive",!0),r(6),_(g(8,4,"Actions")),r(3),c("ngForOf",e.foundFiles)}}function Wc(t,l){t&1&&(o(0,"option",105),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Microsoft Exchange")))}function qc(t,l){t&1&&(o(0,"option",86),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"OneDrive for Business")))}function $c(t,l){t&1&&(o(0,"option",87),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"SharePoint Online")))}function Zc(t,l){t&1&&(o(0,"option",106),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Gmail")))}function Yc(t,l){if(t&1&&(o(0,"option",31),p(1),s()),t&2){let e=h().$implicit;c("value",e.key),r(),_(e.title)}}function Kc(t,l){if(t&1&&x(0,Yc,2,2,"option",88),t&2){let e=l.$implicit,n=h();c("ngIf",n.checkFeatureLicensed(A(1,uc,e.key)))}}function Jc(t,l){if(t&1){let e=w();o(0,"div",25)(1,"label",107),p(2),m(3,"translate"),s(),o(4,"select",108),m(5,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.categoryContentSearch,i)||(a.categoryContentSearch=i),v(i)}),y("change",function(i){f(e);let a=h();return v(a.onChangeCategoryContentSearch(i))}),o(6,"option",105),p(7),m(8,"translate"),s(),o(9,"option",109),p(10),m(11,"translate"),s(),o(12,"option",110),p(13),m(14,"translate"),s(),o(15,"option",111),p(16),m(17,"translate"),s()()()}if(t&2){let e=h();r(2),_(g(3,7,"Category")),r(2),B("ngModel",e.categoryContentSearch),c("title",g(5,9,"Select Product Type")),r(3),_(g(8,11,"eMail")),r(3),_(g(11,13,"Contacts")),r(3),_(g(14,15,"To Do")),r(3),_(g(17,17,"Calendar"))}}function Qc(t,l){if(t&1){let e=w();o(0,"div",89)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select2",112),m(5,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.selectedValueCS,i)||(a.selectedValueCS=i),v(i)}),y("search",function(i){f(e);let a=h();return v(a.onSearchContentSearch(i))})("update",function(i){f(e);let a=h();return v(a.updateContentSearch(i))}),s()()}if(t&2){let e=h();r(2),_(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"||e.userType==="readOnlyAdmin"),B("ngModel",e.selectedValueCS)}}function Xc(t,l){if(t&1){let e=w();o(0,"div",89)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select2",113),m(5,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.selectedValueSiteCS,i)||(a.selectedValueSiteCS=i),v(i)}),y("search",function(i){f(e);let a=h();return v(a.onSearchSiteContentSearch(i))})("update",function(i){f(e);let a=h();return v(a.updateSiteContentSearch(i))}),s()()}if(t&2){let e=h();r(2),_(g(3,6,"Site")),r(2),c("placeholder",g(5,8,"Select Sites"))("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),B("ngModel",e.selectedValueSiteCS)}}function ed(t,l){if(t&1&&(o(0,"option",31),p(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),Ue("id",e.deviceId),r(),T(" ",e.deviceName," ")}}function td(t,l){t&1&&(o(0,"option"),p(1),m(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function id(t,l){if(t&1){let e=w();o(0,"div",92)(1,"label"),p(2),m(3,"translate"),s(),o(4,"select",114,5),y("change",function(i){f(e);let a=h();return v(a.onDeviceChangeCS(i))}),x(6,ed,2,3,"option",94)(7,td,3,3,"option",18),s(),C(8,"i",95),s()}if(t&2){let e=h();r(2),_(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devicesCS),r(),c("ngIf",e.devicesCS.length==0)}}function nd(t,l){if(t&1){let e=w();o(0,"c-row",34)(1,"div",35)(2,"c-input-group")(3,"input",115,6),m(5,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.contentSearchText,i)||(a.contentSearchText=i),v(i)}),y("keydown.enter",function(){f(e);let i=h();return v(i.searchForContent())}),s()()(),o(6,"div",37)(7,"button",38),y("click",function(){f(e);let i=h();return v(i.searchForContent())}),p(8),m(9,"translate"),s()()()}if(t&2){let e=h();r(3),B("ngModel",e.contentSearchText),c("placeholder",g(5,3,"Search..")),r(5),_(g(9,5,"Search"))}}function rd(t,l){if(t&1){let e=w();o(0,"button",38),y("click",function(){f(e);let i=h(2);return v(i.togglePanel())}),C(1,"i",119),s()}if(t&2){let e=h(2);r(),c("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down")}}function ad(t,l){if(t&1){let e=w();o(0,"div",37)(1,"a",120),y("click",function(){f(e);let i=h(2);return v(i.searchForContent())}),p(2),m(3,"translate"),s()()}t&2&&(r(2),_(g(3,1,"Search")))}function od(t,l){if(t&1){let e=w();o(0,"c-row",67)(1,"div",35)(2,"c-input-group",12)(3,"input",116,7),m(5,"translate"),V("ngModelChange",function(i){f(e);let a=h();return R(a.contentSearchMail,i)||(a.contentSearchMail=i),v(i)}),y("keydown.enter",function(){f(e);let i=h();return v(i.searchForContent())}),s(),x(6,rd,2,1,"button",117),s()(),x(7,ad,4,3,"div",118),s()}if(t&2){let e=h();r(3),B("ngModel",e.contentSearchMail),c("placeholder",g(5,5,"Search"))("disabled",e.isExpanded),r(3),c("ngIf",e.categoryContentSearch=="mail"),r(),c("ngIf",!e.isExpanded)}}function sd(t,l){if(t&1){let e=w();o(0,"div",122)(1,"div",123)(2,"label",124),p(3,"From "),o(4,"a",125),C(5,"i",126),o(6,"span",127),p(7),m(8,"translate"),s()()(),o(9,"input",128),m(10,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.fromId,i)||(a.fromId=i),v(i)}),s()(),o(11,"div",123)(12,"label",129),p(13,"To "),o(14,"a",125),C(15,"i",126),o(16,"span",127),p(17),m(18,"translate"),s()()(),o(19,"input",130),m(20,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.toId,i)||(a.toId=i),v(i)}),s()(),o(21,"div",123)(22,"label",131),p(23,"CC "),o(24,"a",125),C(25,"i",126),o(26,"span",127),p(27),m(28,"translate"),s()()(),o(29,"input",132),m(30,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.ccId,i)||(a.ccId=i),v(i)}),s()(),o(31,"div",123)(32,"label",133),p(33,"BCC "),o(34,"a",125),C(35,"i",126),o(36,"span",127),p(37),m(38,"translate"),s()()(),o(39,"input",134),m(40,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.bccId,i)||(a.bccId=i),v(i)}),s()(),o(41,"div",123)(42,"label",135),p(43),m(44,"translate"),o(45,"a",125),C(46,"i",126),o(47,"span",127),p(48),m(49,"translate"),s()()(),o(50,"input",136),m(51,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.subjectId,i)||(a.subjectId=i),v(i)}),s()(),o(52,"div",123)(53,"label",137),p(54),m(55,"translate"),s(),o(56,"input",138),m(57,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.bodyId,i)||(a.bodyId=i),v(i)}),s()(),o(58,"div",123)(59,"label",139),p(60),m(61,"translate"),s(),o(62,"input",140),m(63,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.keywordsId,i)||(a.keywordsId=i),v(i)}),s()(),o(64,"div",141)(65,"label",139),p(66),m(67,"translate"),s(),o(68,"input",142),y("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.myDateBefore,i)||(a.myDateBefore=i),v(i)}),s(),p(69),m(70,"translate"),o(71,"input",142),y("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.myDateAfter,i)||(a.myDateAfter=i),v(i)}),s()(),o(72,"div",67)(73,"a",143),y("click",function(){f(e);let i=h(2);return v(i.searchForContent())}),p(74),m(75,"translate"),s()()()}if(t&2){let e=h(2);r(7),_(g(8,31,"Use comma to separate Email addresses")),r(2),B("ngModel",e.fromId),c("placeholder",g(10,33,"From")),r(8),_(g(18,35,"Use comma to separate Email addresses")),r(2),B("ngModel",e.toId),c("placeholder",g(20,37,"To")),r(8),_(g(28,39,"Use comma to separate Email addresses")),r(2),B("ngModel",e.ccId),c("placeholder",g(30,41,"CC")),r(8),_(g(38,43,"Use comma to separate Email addresses")),r(2),B("ngModel",e.bccId),c("placeholder",g(40,45,"BCC")),r(4),T("",g(44,47,"Subject")," "),r(5),_(g(49,49,"Use comma to separate multiple Subjects")),r(2),B("ngModel",e.subjectId),c("placeholder",g(51,51,"Subject")),r(4),_(g(55,53,"Body")),r(2),B("ngModel",e.bodyId),c("placeholder",g(57,55,"Body")),r(4),_(g(61,57,"Keywords")),r(2),B("ngModel",e.keywordsId),c("placeholder",g(63,59,"Keywords")),r(4),_(g(67,61,"Date from")),r(2),c("readonly",!0),B("ngModel",e.myDateBefore),c("bsConfig",e.bsConfigBefore),r(),T(" ",g(70,63,"To")," "),r(2),c("readonly",!0),B("ngModel",e.myDateAfter),c("bsConfig",e.bsConfigAfter),r(3),_(g(75,65,"Search"))}}function ld(t,l){if(t&1&&(o(0,"c-row",67),x(1,sd,76,67,"div",121),s()),t&2){let e=h();r(),c("ngIf",e.isExpanded)}}function cd(t,l){t&1&&(o(0,"c-row",67)(1,"c-card",12)(2,"c-card-body")(3,"b"),p(4,"There are no results!."),s()()()())}function dd(t,l){if(t&1){let e=w();o(0,"a",161),y("click",function(){f(e);let i=h(2);return v(i.enableMultiSelect())}),C(1,"i",162),o(2,"span",127),p(3),m(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Enable Multiselect")))}function pd(t,l){if(t&1){let e=w();o(0,"a",163),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),C(1,"i",164),o(2,"span",127),p(3),m(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Disable Multiselect")))}function ud(t,l){if(t&1){let e=w();o(0,"a",165),y("click",function(){f(e);let i=h(2);return v(i.exportCompleteMailboxAsPstG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Export all items to PST")))}function hd(t,l){if(t&1){let e=w();o(0,"a",166),y("click",function(){f(e);let i=h(2);return v(i.exportFolderAsPstModalG())}),p(1),m(2,"translate"),s()}if(t&2){let e=h(2);c("ngClass",ke(4,_c,e.addedElementsCount>0,e.addedElementsCount<=0)),r(),_(g(2,2,"Export selected items to PST"))}}function md(t,l){if(t&1){let e=w();o(0,"th",154)(1,"input",167),m(2,"translate"),V("ngModelChange",function(i){f(e);let a=h(2);return R(a.isSelectAll,i)||(a.isSelectAll=i),v(i)}),y("change",function(){f(e);let i=h(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=h(2);r(),c("title",g(2,2,"Select all")),B("ngModel",e.isSelectAll)}}function gd(t,l){if(t&1){let e=w();o(0,"button",168),y("click",function(){f(e);let i=h(2);return v(i.addToCartFinal())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Add Selected Items")))}function _d(t,l){if(t&1){let e=w();o(0,"td")(1,"input",172),V("ngModelChange",function(i){f(e);let a=h().$implicit;return R(a.isChecked,i)||(a.isChecked=i),v(i)}),y("change",function(){f(e);let i=h(4);return v(i.itemSelect())}),s()()}if(t&2){let e=h().$implicit;r(),B("ngModel",e.isChecked)}}function fd(t,l){if(t&1&&(o(0,"td",173)(1,"span",174),p(2),s()()),t&2){let e=h().$implicit;r(),c("ngStyle",A(2,xs,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function vd(t,l){t&1&&C(0,"i",188)}function bd(t,l){if(t&1){let e=w();o(0,"a",189),y("click",function(i){f(e);let a=h(3).$implicit,d=h(3);return v(d.downloadMail(a.userName,a.backupId,a.deviceUUID,i))}),C(1,"i",190),s()}}function yd(t,l){if(t&1){let e=w();o(0,"a",191),y("click",function(i){f(e);let a=h(3).$implicit,d=h(3);return v(d.onRestoreClickR(a.deviceUUID,a.backupId,a.filePath,a.subject,a.userName,i))}),C(1,"i",192),s()}}function Cd(t,l){if(t&1&&(o(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);r(),c("innerHTML",n.renderHtml(e.displayContent),ve)}}function Sd(t,l){if(t&1&&(o(0,"a",178)(1,"span",179),p(2),s(),x(3,vd,1,0,"i",180)(4,bd,2,0,"a",181)(5,yd,2,0,"a",182),o(6,"p",183)(7,"span",184),p(8),s(),C(9,"span",185),s(),x(10,Cd,2,1,"p",18),o(11,"p",186)(12,"b"),p(13),m(14,"translate"),s(),o(15,"span",187),p(16),s()()()),t&2){let e=h(2).$implicit,n=h(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),ve),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),X("",e.userName," : ",e.filePath,"")}}function wd(t,l){t&1&&C(0,"i",196)}function xd(t,l){if(t&1&&(o(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);r(),c("innerHTML",n.renderHtml(e.displayContent),ve)}}function kd(t,l){if(t&1&&(o(0,"a",194)(1,"span",179),p(2),s(),x(3,wd,1,0,"i",195),o(4,"p",183)(5,"span",184),p(6),s(),C(7,"span",185),s(),x(8,xd,2,1,"p",18),s()),t&2){let e=h(2).$implicit,n=h(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),ve),r(),c("ngIf",e.displayContent)}}function Td(t,l){if(t&1){let e=w();o(0,"td",175),y("click",function(){f(e);let i=h().$implicit,a=h(3);return v(a.viewOutlook11(i.deviceId,i.userName,i.backupId,i,a.categoryContentSearch))}),o(1,"div",67)(2,"div"),x(3,Sd,17,12,"a",176)(4,kd,9,5,"a",177),s()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function Id(t,l){t&1&&(o(0,"td",173),C(1,"i",197),s())}function Ed(t,l){if(t&1){let e=w();o(0,"td",175),y("click",function(){f(e);let i=h().$implicit,a=h(3);return v(a.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,a.categoryContentSearch))}),o(1,"div",67)(2,"div")(3,"a",198)(4,"span",179),p(5),s()()()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),r(5),T(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function Md(t,l){t&1&&(o(0,"td",173),C(1,"i",199),s())}function Pd(t,l){if(t&1){let e=w();o(0,"td",175),y("click",function(){f(e);let i=h().$implicit,a=h(3);return v(a.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,"to_do"))}),o(1,"div",67)(2,"div")(3,"a",198)(4,"span",179),p(5),s()()()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),r(5),T(" ",(e.taskSubject||"").slice(0,40)+(e.taskSubject&&e.taskSubject.length>40?"...":"")," ")}}function Dd(t,l){if(t&1&&(o(0,"td",173)(1,"span",174),p(2),s()()),t&2){let e=h().$implicit;r(),c("ngStyle",A(2,xs,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function Od(t,l){t&1&&C(0,"i",188)}function Ad(t,l){if(t&1){let e=w();o(0,"a",189),y("click",function(i){f(e);let a=h(3).$implicit,d=h(3);return v(d.downloadMail(a.userName,a.backupId,a.deviceUUID,i))}),C(1,"i",190),s()}}function Ud(t,l){if(t&1){let e=w();o(0,"a",191),y("click",function(i){f(e);let a=h(3).$implicit,d=h(3);return v(d.onRestoreClickR(a.deviceUUID,a.backupId,a.filePath,a.subject,a.userName,i))}),C(1,"i",192),s()}}function Fd(t,l){if(t&1&&(o(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);r(),c("innerHTML",n.renderHtml(e.displayContent),ve)}}function Bd(t,l){if(t&1&&(o(0,"a",178)(1,"span",179),p(2),s(),x(3,Od,1,0,"i",180)(4,Ad,2,0,"a",181)(5,Ud,2,0,"a",182),o(6,"p",183)(7,"span",184),p(8),s(),C(9,"span",185),s(),x(10,Fd,2,1,"p",18),o(11,"p",186)(12,"b"),p(13),m(14,"translate"),s(),o(15,"span",187),p(16),s()()()),t&2){let e=h(2).$implicit,n=h(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),ve),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),X("",e.userName," : ",e.filePath,"")}}function Rd(t,l){t&1&&C(0,"i",196)}function Vd(t,l){if(t&1&&(o(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);r(),c("innerHTML",n.renderHtml(e.displayContent),ve)}}function Nd(t,l){if(t&1&&(o(0,"a",194)(1,"span",179),p(2),s(),x(3,Rd,1,0,"i",195),o(4,"p",183)(5,"span",184),p(6),s(),C(7,"span",185),s(),x(8,Vd,2,1,"p",18),s()),t&2){let e=h(2).$implicit,n=h(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),ve),r(),c("ngIf",e.displayContent)}}function Ld(t,l){if(t&1){let e=w();o(0,"td",175),y("click",function(){f(e);let i=h().$implicit,a=h(3);return v(a.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,a.categoryContentSearch))}),o(1,"div",67)(2,"div"),x(3,Bd,17,12,"a",176)(4,Nd,9,5,"a",177),s()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function Hd(t,l){if(t&1&&(o(0,"tr"),x(1,_d,2,1,"td",18)(2,fd,3,4,"td",170)(3,Td,5,3,"td",171)(4,Id,2,0,"td",170)(5,Ed,6,2,"td",171)(6,Md,2,0,"td",170)(7,Pd,6,2,"td",171)(8,Dd,3,4,"td",170)(9,Ld,5,3,"td",171),s()),t&2){let e=l.$implicit,n=h(3);Le("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"),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 Gd(t,l){if(t&1&&(o(0,"tbody"),x(1,Hd,10,11,"tr",169),s()),t&2){let e=h(2);r(),c("ngForOf",e.foundMailsCS)}}function zd(t,l){if(t&1){let e=w();o(0,"c-card-body")(1,"app-calendar-layout",202),m(2,"split"),y("navigator",function(i){f(e);let a=h(3);return v(a.calenderNavigate(i))}),s()()}if(t&2){let e=h(3);r(),c("metaData",e.selectedUsers)("calenderEvents",e.foundMailsCS)("calendarView",e.calendarView)("breadcrumbItems",te(2,4,e.selectedPathCS,"/"))}}function jd(t,l){if(t&1&&(o(0,"div",217)(1,"b"),p(2),m(3,"translate"),s(),p(4),o(5,"span",218),p(6),m(7,"date"),s()()),t&2){let e=h(4);r(2),_(g(3,3,"Organizer :")),r(2),T(" ",e.currentCalendarFrom," "),r(2),_(g(7,5,e.currentCalendarSentDate))}}function Wd(t,l){if(t&1&&(o(0,"div",219)(1,"b"),p(2),m(3,"translate"),s(),p(4),s()),t&2){let e=h(4);r(2),_(g(3,2,"Attendees :")),r(2),T(" ",e.currentCalendarTo,"")}}function qd(t,l){if(t&1&&(o(0,"div",220)(1,"b"),p(2,"CC :"),s(),p(3),s()),t&2){let e=h(4);r(3),T(" ",e.currentCalendarCc,"")}}function $d(t,l){if(t&1&&(o(0,"div",221)(1,"b"),p(2,"BCC :"),s(),p(3),s()),t&2){let e=h(4);r(3),T(" ",e.currentCalendarBcc,"")}}function Zd(t,l){if(t&1&&(o(0,"span",225),p(1),s()),t&2){let e=l.$implicit;r(),T(" ",e.name||e.filename?(e.name||e.filename).slice(0,20)+((e.name||e.filename).length>20?"...":""):""," ")}}function Yd(t,l){if(t&1&&(o(0,"div",222)(1,"div",223),x(2,Zd,2,1,"span",224),p(3," \xA0 "),s()()),t&2){let e=h(4);r(2),c("ngForOf",e.currentCalendarAttachments)}}function Kd(t,l){if(t&1&&(o(0,"div",226)(1,"b"),C(2,"i",227),s(),p(3),s()),t&2){let e=h(4);r(3),T(" ",e.calendarDuration,"")}}function Jd(t,l){t&1&&(o(0,"c-callout",228),C(1,"i",229),o(2,"span"),p(3),m(4,"translate"),s()()),t&2&&(r(3),_(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 Qd(t,l){if(t&1){let e=w();o(0,"c-card-body",203)(1,"div",204),C(2,"div",205),o(3,"div",206)(4,"div",207)(5,"h3"),p(6),s()(),x(7,jd,8,7,"div",208)(8,Wd,5,4,"div",209)(9,qd,4,1,"div",210)(10,$d,4,1,"div",211)(11,Yd,4,1,"div",212)(12,Kd,4,1,"div",213),C(13,"br"),o(14,"div",214)(15,"iframe",215,8),y("mouseout",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))}),s()()()(),x(17,Jd,5,3,"c-callout",216),s()}if(t&2){let e=h(3);c("ngClass",e.showCalendarView?"calendar-view":""),r(6),_(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 Xd(t,l){t&1&&(o(0,"c-card-body",230)(1,"p"),p(2),m(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.")))}function ep(t,l){t&1&&(o(0,"c-card-body",230)(1,"p"),p(2),m(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"Item not available.")))}function tp(t,l){if(t&1&&(o(0,"div",217)(1,"b"),p(2),m(3,"translate"),s(),p(4),o(5,"span",218),p(6),m(7,"date"),s()()),t&2){let e=h(4);r(2),_(g(3,3,"From :")),r(2),T(" ",e.currentMailFrom," "),r(2),_(g(7,5,e.currentMailSentDate))}}function ip(t,l){if(t&1&&(o(0,"div",219)(1,"b"),p(2),m(3,"translate"),s(),p(4),s()),t&2){let e=h(4);r(2),_(g(3,2,"To :")),r(2),T(" ",e.currentMailTo,"")}}function np(t,l){if(t&1&&(o(0,"div",220)(1,"b"),p(2),m(3,"translate"),s(),p(4),s()),t&2){let e=h(4);r(2),_(g(3,2,"CC :")),r(2),T(" ",e.currentMailCc,"")}}function rp(t,l){if(t&1&&(o(0,"div",221)(1,"b"),p(2),m(3,"translate"),s(),p(4),s()),t&2){let e=h(4);r(2),_(g(3,2,"BCC :")),r(2),T(" ",e.currentMailBcc,"")}}function ap(t,l){if(t&1&&(o(0,"span",225),p(1),s()),t&2){let e=l.$implicit;r(),T(" ",e.name||e.filename?(e.name||e.filename).slice(0,20)+((e.name||e.filename).length>20?"...":""):""," ")}}function op(t,l){if(t&1&&(o(0,"div",222)(1,"div",223),x(2,ap,2,1,"span",224),p(3," \xA0 "),s()()),t&2){let e=h(4);r(2),c("ngForOf",e.currentMailAttachments)}}function sp(t,l){if(t&1){let e=w();o(0,"c-card-body")(1,"div",231),C(2,"div",205),o(3,"div",232)(4,"div",233)(5,"h3"),p(6),m(7,"translate"),s()(),x(8,tp,8,7,"div",208)(9,ip,5,4,"div",209)(10,np,5,4,"div",210)(11,rp,5,4,"div",211)(12,op,4,1,"div",212),C(13,"br"),o(14,"div",234)(15,"iframe",235,9),y("mouseout",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))}),s()()()()()}if(t&2){let e=h(3);r(6),_(te(7,6,"SubjectcurrentMailSubject",A(9,vc,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 lp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.fullCombinedName,"Name"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.fullCombinedName)}}function cp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(5);return v(i.copyToClipboard(i.contactEmail,"Email: "+i.contactEmail))}),C(1,"i",259),s()}if(t&2){let e=h(5);c("title",e.contactEmail)}}function dp(t,l){if(t&1&&(o(0,"span",260),p(1),x(2,cp,2,1,"a",243),s()),t&2){let e=h(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 pp(t,l){if(t&1){let e=w();o(0,"li"),p(1),o(2,"a",258),y("click",function(){let i=f(e).$implicit,a=h(5);return v(a.copyToClipboard(i,"Email: "+i))}),C(3,"i",259),s()()}if(t&2){let e=l.$implicit;r(),_(e),r(),c("title",e)}}function up(t,l){if(t&1&&(o(0,"ul",261),x(1,pp,4,2,"li",101),s()),t&2){let e=h(4);r(),c("ngForOf",e.splitContactEmails)}}function hp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactOfficeLocation,"Location"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactOfficeLocation)}}function mp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactCompanyName,"Company"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactCompanyName)}}function gp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactJobTitle,"Job title"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactJobTitle)}}function _p(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactDepartment,"Department"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactDepartment)}}function fp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactMobile,"Mobile phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactMobile)}}function vp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactHomePhones,"Home phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactHomePhones)}}function bp(t,l){if(t&1){let e=w();o(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactBusinessPhones,"Business phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);c("title",e.contactBusinessPhones)}}function yp(t,l){if(t&1){let e=w();o(0,"c-card-body")(1,"div",236)(2,"div",237)(3,"div",238),C(4,"c-avatar",239),s(),o(5,"div",240)(6,"div",241)(7,"span",242),p(8),s(),x(9,lp,2,1,"a",243),s(),o(10,"div",244)(11,"span",245),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!1)}),p(12),s(),o(13,"span",246),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullDepartment=!1)}),p(14),s()()()(),o(15,"div",247),C(16,"hr"),o(17,"div",248),y("mouseenter",function(){f(e);let i=h(3);return v(i.showHideField(!0))})("mouseleave",function(){f(e);let i=h(3);return v(i.showHideField(!1))}),o(18,"label",184),p(19,"Email: "),s(),C(20,"br"),x(21,dp,3,3,"span",249)(22,up,2,1,"ul",250),s(),o(23,"div",251)(24,"label",184),p(25,"Location: "),s(),C(26,"br"),o(27,"span",252),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullLocation=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullLocation=!1)}),p(28),s(),x(29,hp,2,1,"a",243),s(),o(30,"div",251)(31,"label",184),p(32,"Company: "),s(),C(33,"br"),o(34,"span",253),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullCompanyName=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullCompanyName=!1)}),p(35),s(),x(36,mp,2,1,"a",243),s(),o(37,"div",251)(38,"label",184),p(39,"Job title: "),s(),C(40,"br"),o(41,"span",245),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!1)}),p(42),s(),x(43,gp,2,1,"a",243),s(),o(44,"div",251)(45,"label",184),p(46,"Department: "),s(),C(47,"br"),o(48,"span",246),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullDepartment=!1)}),p(49),s(),x(50,_p,2,1,"a",243),s(),o(51,"div",251)(52,"label",184),p(53),m(54,"translate"),s(),C(55,"br"),o(56,"span",242),p(57),s()(),o(58,"div",251)(59,"label",184),p(60,"Home Address: "),s(),C(61,"br"),o(62,"span",242),p(63),s()(),o(64,"div",251)(65,"label",184),p(66),m(67,"translate"),s(),C(68,"br"),o(69,"span",254),p(70),s()(),o(71,"div",251)(72,"label",184),p(73,"Mobile phone: "),s(),C(74,"br"),o(75,"span",255),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullMobile=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullMobile=!1)}),p(76),s(),x(77,fp,2,1,"a",243),s(),o(78,"div",251)(79,"label",184),p(80,"Home phone: "),s(),C(81,"br"),o(82,"span",256),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullHomePhone=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullHomePhone=!1)}),p(83),s(),x(84,vp,2,1,"a",243),s(),o(85,"div",251)(86,"label",184),p(87,"Business phone: "),s(),C(88,"br"),o(89,"span",257),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullBusinessPhone=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullBusinessPhone=!1)}),p(90),s(),x(91,bp,2,1,"a",243),s()()()()}if(t&2){let e=h(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),_(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 Cp(t,l){if(t&1&&(o(0,"p")(1,"b"),p(2),m(3,"translate"),s(),o(4,"span",263),p(5),m(6,"translate"),s()()),t&2){let e=h(4);r(2),T("",g(3,2,"Importance:")," "),r(3),_(g(6,4,e.taskImportance))}}function Sp(t,l){if(t&1&&(o(0,"c-card-body")(1,"div",262)(2,"p")(3,"b"),p(4),m(5,"translate"),s(),p(6),s(),x(7,Cp,7,6,"p",18),o(8,"p")(9,"b"),p(10),m(11,"translate"),s(),p(12),m(13,"date"),s(),o(14,"p")(15,"b"),p(16),m(17,"translate"),s(),p(18),m(19,"date"),s(),o(20,"p")(21,"b"),p(22),m(23,"translate"),s(),p(24),m(25,"date"),s()()()),t&2){let e=h(3);r(4),_(g(5,9,"Subject:")),r(2),T(" ",e.taskSubject||"NA",""),r(),c("ngIf",e.taskImportance),r(3),_(g(11,11,"Task Created On:")),r(2),T(" ",e.taskStartDate!=="NA"?g(13,13,e.taskStartDate):e.taskStartDate,""),r(4),_(g(17,15,"Task Due Date:")),r(2),T(" ",e.taskDueDate!=="NA"?g(19,17,e.taskDueDate):e.taskDueDate,""),r(4),_(g(23,19,"Task Reminder Time:")),r(2),T(" ",e.taskReminderTime!=="NA"?g(25,21,e.taskReminderTime):e.taskReminderTime,"")}}function wp(t,l){if(t&1&&(o(0,"c-card",156),x(1,zd,3,7,"c-card-body",18)(2,Qd,18,9,"c-card-body",200)(3,Xd,4,3,"c-card-body",201)(4,ep,4,3,"c-card-body",201)(5,sp,17,11,"c-card-body",18)(6,yp,92,43,"c-card-body",18)(7,Sp,26,23,"c-card-body",18),s()),t&2){let e=h(2);c("ngClass",ke(8,fc,!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 xp(t,l){t&1&&(o(0,"c-card",157)(1,"c-card-body",230)(2,"div",264),C(3,"div",265),s()()())}function kp(t,l){if(t&1){let e=w();o(0,"th"),p(1),o(2,"a",266),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),p(3),m(4,"translate"),s()()}if(t&2){let e=h(2);r(),X("",e.addedElementsCount," out of ",e.totalCountGS," selected "),r(2),_(g(4,3,"Remove all"))}}function Tp(t,l){if(t&1&&(o(0,"th"),p(1),m(2,"translate"),s()),t&2){let e=h(2);r(),_(te(2,1,"{{ addedElementsCount }} selected",A(4,bc,e.addedElementsCount)))}}function Ip(t,l){if(t&1){let e=w();o(0,"tr")(1,"td",267)(2,"span",268),p(3),s(),o(4,"a",269),y("click",function(){let i=f(e),a=i.$implicit,d=i.index,u=h(2);return v(u.removeItem(d,a.subject,a.backupId,a.subject))}),C(5,"i",270),s()()()}if(t&2){let e=l.$implicit;r(3),_(e.subject)}}function Ep(t,l){if(t&1&&(o(0,"c-row",144)(1,"c-card-header",145),x(2,dd,5,3,"a",146)(3,pd,5,3,"a",147),o(4,"span")(5,"b"),p(6),m(7,"translate"),s()(),x(8,ud,3,3,"a",148)(9,hd,3,7,"a",149),s(),o(10,"c-card",150)(11,"c-card-body")(12,"div",151)(13,"table",152)(14,"thead",98)(15,"tr"),x(16,md,3,4,"th",153),o(17,"th",154),p(18," Results "),x(19,gd,3,3,"button",155),s()()(),x(20,Gd,2,1,"tbody",18),s()()()(),x(21,wp,8,11,"c-card",156)(22,xp,4,0,"c-card",157),o(23,"c-card",158)(24,"c-card-body")(25,"table",159)(26,"colgroup"),C(27,"col",160),s(),o(28,"thead")(29,"tr"),x(30,kp,5,5,"th",18)(31,Tp,3,6,"th",18),s()(),o(32,"tbody"),x(33,Ip,6,1,"tr",101),s()()()()()),t&2){let e=h();r(2),c("ngIf",!e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),_(te(7,18,"totalCountGSSearchResultsFound",A(21,hc,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,mc,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(),Kt(e.showloaderAtPreview?22:21),r(2),c("ngClass",$(25,gc))("ngStyle",A(26,it,e.isMultiSelectEnabled?"block":"none")),r(7),c("ngIf",e.addedElementsCount>0),r(),c("ngIf",e.addedElementsCount==0),r(2),c("ngForOf",e.addedElementsUpdated)}}function Mp(t,l){t&1&&(o(0,"c-row",271)(1,"c-col",157)(2,"c-callout",228),C(3,"i",229),o(4,"span"),p(5),m(6,"translate"),s()()()()),t&2&&(r(5),_(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 Pp(t,l){if(t&1){let e=w();o(0,"a",278),m(1,"translate"),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.first))}),C(2,"i",279),s()}t&2&&c("title",g(1,1,"First"))}function Dp(t,l){if(t&1){let e=w();o(0,"a",280),m(1,"translate"),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.previous))}),C(2,"i",281),s()}t&2&&c("title",g(1,1,"Previous"))}function Op(t,l){if(t&1){let e=w();o(0,"a",282),m(1,"translate"),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.next))}),C(2,"i",283),s()}t&2&&c("title",g(1,1,"Next"))}function Ap(t,l){if(t&1){let e=w();o(0,"a",284),m(1,"translate"),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.last))}),C(2,"i",285),s()}if(t&2){let e=h(2);c("ngClass",A(4,yc,e.last===null))("title",g(1,2,e.last===null?"Disabled for more than 10,000 records":"Last"))}}function Up(t,l){if(t&1&&(o(0,"c-row",21)(1,"div",272)(2,"div",273),x(3,Pp,3,3,"a",274)(4,Dp,3,3,"a",275)(5,Op,3,3,"a",276)(6,Ap,3,6,"a",277),s()()()),t&2){let e=h();r(3),c("ngIf",e.first!=""),r(),c("ngIf",e.previous!=""),r(),c("ngIf",e.next!=""),r(),c("ngIf",e.last!="")}}function Fp(t,l){t&1&&(o(0,"small"),p(1),m(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name is required.")," "))}function Bp(t,l){t&1&&(o(0,"small"),p(1),m(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 Rp(t,l){t&1&&(o(0,"small"),p(1),m(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name must be at least 3 characters long.")," "))}function Vp(t,l){if(t&1&&(o(0,"div",286),x(1,Fp,3,3,"small",18)(2,Bp,3,3,"small",18)(3,Rp,3,3,"small",18),s()),t&2){h();let e=pe(104);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 Np(t,l){if(t&1){let e=w();o(0,"button",287),y("click",function(){f(e);let i=h();return v(i.exportCompleteMailboxAsPstTriggerG())}),p(1),m(2,"translate"),s()}if(t&2){h();let e=pe(104);c("disabled",e.invalid),r(),_(g(2,2,"Proceed"))}}function Lp(t,l){if(t&1){let e=w();o(0,"button",287),y("click",function(){f(e);let i=h();return v(i.exportSelectedAsPstG())}),p(1),m(2,"translate"),s()}if(t&2){h();let e=pe(104);c("disabled",e.invalid),r(),_(g(2,2,"Proceed"))}}function Hp(t,l){t&1&&(o(0,"th"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Current item being processed")))}function Gp(t,l){if(t&1&&(o(0,"span"),p(1),m(2,"slice"),s()),t&2){let e=h(2);r(),T("/ ",lt(2,1,e.progressG.subject,0,40),"")}}function zp(t,l){if(t&1&&(o(0,"td")(1,"span",288),p(2),m(3,"slice"),s(),x(4,Gp,3,5,"span",18),s()),t&2){let e=h();r(),Xt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),_(lt(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function jp(t,l){t&1&&(o(0,"td"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"-")))}function Wp(t,l){if(t&1&&(o(0,"span"),p(1),s()),t&2){let e=h(2);r(),X("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore,"")}}function qp(t,l){if(t&1&&(o(0,"td"),x(1,Wp,2,2,"span",18),o(2,"div",289)(3,"div",290),p(4),m(5,"number"),s()()()),t&2){let e=h();r(),c("ngIf",e.progressG.totalNoOfFilesForRestore),r(),Qt("title","",e.progressG.totalRestorePct,"%"),r(),ce("width",e.progressG.totalRestorePct,"%"),r(),T(" ",te(5,6,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function $p(t,l){t&1&&(o(0,"td"),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"0")))}function Zp(t,l){if(t&1){let e=w();o(0,"button",71),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsPstG())}),p(1),m(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Cancel Restore")))}function Yp(t,l){if(t&1){let e=w();o(0,"app-restore-modal",291),y("closeRestoreHandler",function(){f(e);let i=h();return v(i.closeRestoreHandler())}),s()}if(t&2){let e=h();c("currentDeviceUUID",e.currentDeviceUUIDCS)("currentDeviceUser",e.selectedValueR)("deviceType",e.product==null?null:e.product.key)("currentFilePath",e.currentFilePathR)("currentFileName",e.currentFileName)("userType",e.userType)("currentFileBackupId",e.currentFileBackupIdR)("isFileTarget",!0)}}var ks=(()=>{class t{constructor(e,n,i,a,d,u,b,k,I,M,D,P,O,U,oe,De){this.authService=e,this.datePipe=n,this.router=i,this.apiService=a,this.toastr=d,this.http=u,this.sharedService=b,this.renderer=k,this.cdr=I,this.sanitizer=M,this.configService=D,this.licenseCheckService=P,this.TranslateService=O,this.userRoleService=U,this.userManagementService=oe,this.assetManagementService=De,this.PRODUCTS_CONFIG=Qo,this.userAssetSearchText="",this.showCalendarLayoutView=!1,this.calendarView=es.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=!1,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.taskImportance="Normal",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 Se,this.triggerGmailProgress=(Je,It=!1)=>{Je&&(this.downloadId=Je?.body||Je),It?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,It)},1e4),this.cdr.detectChanges()},this.triggerGSuiteProgress=(Je,It=!1)=>{Je&&(this.downloadId=Je?.body||Je),It?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,It)},1e4),this.cdr.detectChanges()},setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let F=new Date,Oe=new Date;Oe.setFullYear(F.getFullYear()-1),new Date().setDate(F.getDate()-14),this.bsConfigBefore={minDate:Oe,maxDate:F,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:Oe,maxDate:F,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 N(this,null,function*(){if(this.userType=yield this.userRoleService.getUserRole(),this.userType==="user"||this.userType==="readOnlyAdmin"){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:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedValueSiteCS="All Sites",this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")}]}];this.userType==="readOnlyAdmin"&&this.setActiveSearchTab("default",0),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:d=>{this.handleLicenseResponse(d.headers),e()},error:d=>{console.error("License check failed:",d),this.handleLicenseResponse(d.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(u=>this.inclusionLicenses.includes(u));let d=["exchange","gdrive","gmail","onedrive","sharepoint"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(u=>d.some(b=>u===`contentsearchenabledfor${b}`)),this.userType==="user"&&(this.hasBackupLicense?this.setActiveSearchTab("file",1):this.hasContentSearchLicense&&this.setActiveSearchTab("content",2)),this.applyEnvDetails(n),e()}["backup_enabled","onedrive_backup_enabled","exchange_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"].every(d=>!this.inclusionLicenses.includes(d))&&(this.userType=="superAdmin"||this.userType=="admin"||this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")&&this.setActiveSearchTab("default",0)})}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=>{this.intervalId&&clearInterval(this.intervalId),this.intervalId&&(this.downloadId="",clearInterval(this.intervalId));let a=i.body;if(this.isViewFile){if(this.selectedUsers.size===1){let k=Array.from(this.selectedUsers)[0];if(parseFloat(k.rawSize)>=51200)return}let d=/\/chunk\/([^/]+)/,u=a,b="";if(u){let k=u.match(d);k&&(b=k[1])}this.executeNextCodeUnified(this.categoryContentSearch,b,a);return}else window.open(a,"_self");this.cdr.detectChanges()},i=>{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 a=this.sanitizer.sanitize(at.URL,i)||"";this.product.key==="Gmail"?this.showTextFileFromURL(a,"eml_view"):this.getJsonFromUrl(a,e)}showTextFileFromURL(e,n){this.txtFile=e,this.http.get(this.txtFile,{context:new Bn().set(qo,!0),responseType:"text"}).subscribe(i=>{if(i.trim().length>0){if(n==="eml_view"){this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges();let d=is(i.trim());this.renderPrevious(d,"mail");return}let a=document.querySelector(".content");if(a){let d=document.createElement("pre");d.innerHTML=this.sanitizer.sanitize(at.HTML,i)||"",a.appendChild(d),a.style.textAlign="left",a.style.display="block"}}},i=>{console.error("File does not exist or could not be loaded:",i)})}getJsonFromUrl(e,n){this.txtFile=e,this.http.get(this.txtFile,{responseType:"json"}).subscribe(i=>{i?this.renderPrevious(i,n):(this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1)},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,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(d=>d.address||d.name).join(","),this.splitContactEmails=e.contact.emailAddresses.map(d=>d.address||d.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:"-",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(d=>d&&d.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let a=[this.contactAddrStreet,this.contactAddrCity,this.contactAddrState,this.contactAddrCountry,this.contactAddrPostalCode];this.combinedHomeAddress=a.filter(d=>d&&d.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 if(n==="to_do"||this.categoryContentSearch=="todo")this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,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",this.taskImportance=e?.importance||"";else if(n==="calendar"||this.categoryContentSearch=="calendar")this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,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,a=i.contentDocument||i.contentWindow?.document;a&&(a.open(),a.write(this.currentCalendarBody),a.close())});else if(n==="mail"){this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges(),this.currentMailSubject=e.subject,this.currentFileName=e.subject,this.currentMailFrom=e.from?.emailAddress?.address||e.from?.address,this.currentMailSentDate=e.sentDateTime||e.date,this.currentMailTo=e.toRecipients?.map(a=>a.emailAddress.address)||e.to?.map(a=>a.address)||"",this.currentMailCc=e.ccRecipients?.map(a=>a.emailAddress.address)||e.cc?.map(a=>a.address)||"",this.currentMailBcc=e.bccRecipients?.map(a=>a.emailAddress.address)||e.bcc?.map(a=>a.address)||"",this.currentMailAttachments=e.attachments,this.currentMailBody=e.body?.content||e.html,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let i=this.iframe.nativeElement;if(i){let a=i.contentDocument||i.contentWindow?.document;if(a){a.open(),a.write(this.currentMailBody),a.close();let d=a.head||a.getElementsByTagName("head")[0];d||(d=a.createElement("head"),a.documentElement.prepend(d))}}}this.showloaderAtPreview=!1}setActiveSearchTab(e,n){return N(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(a=>a.key===this.productTypeFiles||a.dataManagementKey===this.productTypeFiles||a.key2===this.productTypeFiles||a.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(a=>a.key===this.productTypeContentSearch||a.dataManagementKey===this.productTypeContentSearch||a.key2===this.productTypeContentSearch||a.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(at.HTML,e)||"")}logout(){this.authService.logout(),this.router.navigate(["logout"])}activityHistory(){this.router.navigate(["activityHistory"])}onKeydown(e){e.key==="Enter"&&this.searchForUsersAssets()}searchForUsersAssets(){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):Qe(null);on([e,n,i]).subscribe(([a,d,u])=>{a.body.data&&a.body.data.users?(this.noUsersFoundText="",this.foundUsers=a.body.data.users.map(b=>Ae(Y({},b),{userNameEncoded:btoa(b.userName)}))):(this.foundUsers=[],this.noUsersFoundText=this.TranslateService.instant("No Users found.")),d.body.data&&d.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=d.body.data.devices.map(b=>Ae(Y({},b),{userNameEncoded:btoa(b.userName),deviceNameEncoded:btoa(b.deviceName)}))):(this.noDevicesFoundText=this.TranslateService.instant("No Devices found"),this.foundDevices=[]),u&&(u.body.data&&u.body.data.users?(this.noSitesFoundText="",this.foundSites=u.body.data.users.map(b=>Ae(Y({},b),{userNameEncoded:btoa(b.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.TranslateService.instant("No Sites found.")))},a=>{switch(console.error("Error from Api's call: ",a),a.status){case 400:console.error("Bad Request: ",a.message);break;case 401:console.error("Unauthorized: ",a.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: ",a.message);break;case 404:console.error("Not Found: ",a.message);break;case 500:console.error("Internal Server Error: ",a.message);break;case 503:console.error("Internal Server Error: ",a.message);break;default:console.error("Unknown Error: ",a.message);break}})}userProfile(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){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 a=document.querySelector(".overlay");a&&this.renderer.setStyle(a,"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||"";this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let a=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersList=[{label:"",options:a}],this.cdr.detectChanges()}else this.deviceUsersList=[]},i=>{})}update(e){this.searched=!0;let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let a="";this.deviceType=="oneDrive"?a="ONEDRIVE":this.deviceType=="backup"?a="BACKUP":this.deviceType=="mail"?a="OUTLOOK":a=this.deviceType,this.devices=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==a).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName: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(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(a=>a.blocked===!1&&a.deviceType==i).map(a=>({deviceName:a.deviceName,deviceUUID:a.deviceUUID,deviceId:a.deviceId,osType:a.osType,decoupled:a.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 N(this,null,function*(){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user"&&this.userType!=="readOnlyAdmin")this.deviceUsersList=[],this.selectedValue=null;else{let d={value:this.selectedValue};this.update(d)}this.devices=[];let a=yield this.licenseCheckService.getLicensedProductsDetails();this.product=a.find(d=>d.key===i||d.dataManagementKey===i||d.key2===i||d.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 a=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){let d=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(u=>{let b={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(b.deviceUUID).subscribe(k=>{let I=k.body.BSDeviceInfoElement,M=I.osType.substring(0,3).toLowerCase(),D="Windows",P="Windows";M==="win"?(D="Windows",P="Windows"):M==="mac"?(D="Mac",P="Mac"):M==="one"?(D="ONEDRIVE",P="ONEDRIVE"):M==="out"?(D="OUTLOOK",P="OUTLOOK"):M==="sha"&&(D="SHAREPOINT",P="SHAREPOINT"),b.deviceType=D,b.deviceOs=P,b.deviceId=I.deviceId?I.deviceId.toString():"",b.blocked="active",b.deviceName=I.deviceName?I.deviceName.toString():"",b.deviceNameNew=I.deviceName?I.deviceName.replace(/ /g,"_PB_"):"",b.deviceNameEnc=I.deviceName?btoa(I.deviceName):"",a.push(b),this.foundFiles=a,this.noFilesFound=!1},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||"";this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let a=i.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteList=[{label:"",options:a}],this.cdr.detectChanges()}else this.siteList=[]},i=>{})}updateSite(e){let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let a="";this.deviceType=="oneDrive"?a="ONEDRIVE":this.deviceType=="backup"?a="BACKUP":a=this.deviceType,this.devices=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==a).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName: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,a,d,u,b,k,I,M){if(["OUTLOOK","Gmail","mail"].includes(I)){this.isViewFile=!1,this.downloadMail(d,i,u,M);return}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(i,u,parseFloat((k/1024).toFixed(2))>=10,b==="true",this.product.dataManagementKey||this.product.key||I);return}let D="https://",P=this.configService.baseFolder,O="/BluKryptBuilder/cloud/",U=this.configService.cloudName,oe=this.authService.Token,De=this.sharedService.getDataByKey("userName"),F=`${D}${P}${O}${U}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${oe}&loginUserName=${De}&isSync=false+&deviceUUID=${u}&backupID=${i}&backup=${a}&userName=${this.base64Encode(d)}&moveToDownloads=false`;window.open(F,"_self")}gDriveDownloadFile(e,n,i,a=!1,d,u=!1){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),a?"FOLDER":i?"LARGE_FILE":this.isViewFile?d==="Gmail"?"EML":"VIEW":"SMALL_FILE",d,this.restoreDeletedFilesByRestoreR,void 0,void 0,u).subscribe(b=>{this.downloadId=b?.body,a||i?a?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId()),this.cdr.detectChanges()},b=>{switch(b.status){case 200:this.downloadId=b?.error?.text,a||i?a?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId());break;case 400:console.error("Bad Request: ",b.message);break;case 401:console.error("Unauthorized: ",b.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",b.message);break;case 404:console.error("Not Found: ",b.message);break;case 412:console.error("Error code 412: ",b.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: ",b.message);break;case 503:console.error("Internal Server Error: ",b.message);break;default:console.error("Unknown Error: ",b.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,a,d){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",d),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",a),this.isOverlayVisible=!1;let u=document.querySelector(".header.header-sticky");u&&this.renderer.setStyle(u,"z-index","1000");let b=document.querySelector(".overlay");b&&this.renderer.setStyle(b,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["backup/files"])}onSearchContentSearch(e){let n=e.search||"";if(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:this.TranslateService.instant("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 a=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")},...a||[]]}],this.cdr.detectChanges()}else this.deviceUsersListCS=[]},i=>{})}updateContentSearch(e){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 a="";this.deviceTypeCS=="oneDrive"?a="ONEDRIVE":this.deviceTypeCS=="backup"?a="BACKUP":this.deviceTypeCS=="mail"?a="OUTLOOK":this.deviceTypeCS=="Gmail"?a="Gmail":a=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(d=>d.deviceType==a).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName: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:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}]})}updateNowContentSearch(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(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(a=>a.deviceType==i).map(a=>({deviceName:a.deviceName,deviceUUID:a.deviceUUID,deviceId:a.deviceId,osType:a.osType,decoupled:a.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 N(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.userType!=="readOnlyAdmin")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:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.cdr.detectChanges();else{let d={value:this.selectedValueCS};this.updateContentSearch(d)}let a=yield this.licenseCheckService.getLicensedProductsDetails();this.product=a.find(d=>d.key===i||d.dataManagementKey===i||d.key2===i||d.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 N(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=[],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(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 if(this.myDateBefore!==null&&this.myDateAfter!==null&&new Date(this.myDateBefore)>=new Date(this.myDateAfter)){this.isExpanded=!0,this.toastr.error(this.TranslateService.instant("Incorrect date range in search criteria."),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=""),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 a=[];if(e.body?.data?.fileElementList?.length>0){let d=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive"||this.productTypeContentSearch.toLowerCase()==="backup")&&(e.body.data.fileElementList.forEach(u=>{let b={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(b.deviceUUID).subscribe(k=>{let I=k.body.BSDeviceInfoElement,M=I.osType.substring(0,3).toLowerCase(),D="Windows",P="Windows";M==="win"?(D="Windows",P="Windows"):M==="mac"?(D="Mac",P="Mac"):M==="one"?(D="ONEDRIVE",P="ONEDRIVE"):M==="out"?(D="OUTLOOK",P="OUTLOOK"):M==="sha"&&(D="SHAREPOINT",P="SHAREPOINT"),b.deviceType=D,b.deviceOs=P,b.deviceId=I.deviceId?I.deviceId.toString():"",b.blocked="active",b.deviceName=I.deviceName?I.deviceName.toString():"",b.deviceNameNew=I.deviceName?I.deviceName.replace(/ /g,"_PB_"):"",b.deviceNameEnc=I.deviceName?btoa(I.deviceName):"",a.push(b),this.foundFilesCS=a,this.noFilesFoundCS=!1},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=Number(this.totalCountGS)<=1e4?e.body.metadata.links.last:null,this.first=e.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(u=>{let b={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(b)}),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,this.noFilesFoundCS=!1,e.body.metadata&&(this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=Number(this.totalCountGS)<=1e4?e.body.metadata.links.last:null,this.first=e.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},e=>{switch(this.noFilesFoundCS=!0,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(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(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=""),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),a=JSON.parse(i);let d=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){let u=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&(n.body.data.fileElementList.forEach(b=>{let k={exists:b.present?b.present.toString():"",backup:"true",deviceUUID:b.deviceUUID?b.deviceUUID.toString():"",fileName:b.fileName?b.fileName.toString():"",filePath:b.fileCompletePath?b.fileCompletePath.toString():"",fileUser:b.fileUserOwner?btoa(b.fileUserOwner):"",folder:b.folder?"true":"false",fileRevisionID:b.fileRevisionId?b.fileRevisionId.toString():"",content:b.metaData?b.metaData.toString():"",modifiedTimestamp:b.lastModifiedTimestamp?parseInt(b.lastModifiedTimestamp,10):0,size:b.size?parseInt(b.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(k.deviceUUID).subscribe(I=>{let M=I.body.BSDeviceInfoElement,D=M.osType.substring(0,3).toLowerCase(),P="Windows",O="Windows";D==="win"?(P="Windows",O="Windows"):D==="mac"?(P="Mac",O="Mac"):D==="one"?(P="ONEDRIVE",O="ONEDRIVE"):D==="out"?(P="OUTLOOK",O="OUTLOOK"):D==="sha"&&(P="SHAREPOINT",O="SHAREPOINT"),k.deviceType=P,k.deviceOs=O,k.deviceId=M.deviceId?M.deviceId.toString():"",k.blocked="active",k.deviceName=M.deviceName?M.deviceName.toString():"",k.deviceNameNew=M.deviceName?M.deviceName.replace(/ /g,"_PB_"):"",k.deviceNameEnc=M.deviceName?btoa(M.deviceName):"",d.push(k),this.foundFilesCS=d,this.noFilesFoundCS=!1},I=>{switch(console.error("Error from getDeviceInfo:",I),I.status){case 400:console.error("Bad Request:",I.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",I.message);break;case 404:console.error("Not Found:",I.message);break;case 500:case 503:console.error("Internal Server Error:",I.message);break;default:console.error("Unknown Error:",I.message);break}})}),n.body.metadata&&(this.totalCountGS=n.body.data.totalNoofFiles,this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=Number(this.totalCountGS)<=1e4?n.body.metadata.links.last:null,this.first=n.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(b=>{let k={backupId:b.fileRevisionId,userName:b.fileUserOwner,deviceUUID:b.deviceUUID,subject:b.subject?b.subject:"<empty>",contactName:b.fileName?b.fileName:"-",taskSubject:b.subject?b.subject:"",present:b.exists.toString(),showIcon:b.from?b.from.charAt(0):"E",alphaColor:this.colorGen(),from:b.from?b.from:"<empty>",to:b.toRecipients?b.toRecipients:"",cc:b.ccRecipients?b.ccRecipients:"",bcc:b.bccRecipients?b.bccRecipients:"",sentDate:b.sentDate?new Date(b.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:b.metaData?b.metaData:"",bodyContent:b.bodyContent?b.bodyContent:"",bodyContent1:b.bodyContent?b.bodyContent.length>100?b.bodyContent.substring(0,100)+"...":b.bodyContent:"",hasAttachments:b.hasAttachments,attachments:b.attachments?b.attachments:"",name:b.subject?b.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:b.subject?b.subject:"<empty>",filePath:b.fileCompletePath,deviceId:b.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,this.noFilesFoundCS=!1,n.body.metadata&&(this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=Number(this.totalCountGS)<=1e4?n.body.metadata.links.last:null,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(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 a=i.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")},...a||[]]}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let a="";this.deviceTypeCS=="oneDrive"?a="ONEDRIVE":this.deviceType=="backup"?a="BACKUP":a=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==a).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName: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,a,d=[],u=[],b=[],k=[],I=[],M=[],D=[];for(;(a=i.exec(n))!==null;){let O=a[1],U=a[2];if(U.startsWith("(")&&U.endsWith(")")&&(U=U.slice(1,-1)),O==="from")d.push(U.trim());else if(O==="to")u.push(U.trim());else if(O==="cc")b.push(U.trim());else if(O==="bcc")k.push(U.trim());else if(O==="subject"){let oe=U.trim();I.push(oe.replace(/^\(|\)$/g,""))}else if(O==="body"){let oe=U.trim();M.push(oe.replace(/^\(|\)$/g,""))}else D.push(U.trim())}return D.push(n.replace(i,"").trim()),[`from:${d.join(",")}`,`to:${u.join(",")}`,`bcc:${k.join(",")}`,`cc:${b.join(",")}`,`subject:${I.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${D.join(" ")}`,`body:${M.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}selectUser(e){this.selectedPathCS=e.filePath,this.selectedUsers.add(e)}viewOutlook11(e,n,i,a,d){if(n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.selectUser(a),this.isViewFile=!1,this.product?.downloadsConfigurations?.unified){this.showloaderAtPreview=!0,this.isViewFile=!0,this.gDriveDownloadFile(i,a.deviceUUID,!1,!1,this.product.key,this.showloaderAtPreview);return}this.assetManagementService.viewMail(e,i).subscribe(u=>{if(u.body){this.showNotAvailable=!1;var b=JSON.stringify(u.body.mailElement),k=JSON.parse(b);if(d=="mail"||d=="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 I=this.iframe.nativeElement,M=I.contentDocument||I.contentWindow?.document;M&&(M.open(),M.write(this.currentMailBody),M.close())}if(d=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,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:"-",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 I=[u.body.mailElement.contactBusiAddrStreet,u.body.mailElement.contactBusiAddrCity,u.body.mailElement.contactBusiAddrState,u.body.mailElement.contactBusiAddrCountry,u.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=I.filter(P=>P&&P.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let M=[u.body.mailElement.contactAddrStreet,u.body.mailElement.contactAddrCity,u.body.mailElement.contactAddrState,u.body.mailElement.contactAddrCountry,u.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=M.filter(P=>P&&P.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let D=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(P=>P&&P.trim()!=="");this.fullCombinedName=D.join(" "),this.truncatedCombinedName=this.fullCombinedName.length>20?this.fullCombinedName.substring(0,20)+"...":this.fullCombinedName}this.cdr.detectChanges()}else this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1},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(d=>d.isChecked),n=e.filter(d=>!this.isBackupIdExists(d.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 d=e.filter(u=>!this.isBackupIdExists(u.backupId));if(d.length>0){this.addedElementsUpdated.push(...d);let u=d.map(b=>b.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,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,a){this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,a){if(a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),this.product?.downloadsConfigurations?.unified){this.isViewFile=!1,this.assetManagementService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML",this.product.dataManagementKey||this.product.key,!1).subscribe(d=>{this.downloadId=d.body||"",this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId())},d=>{switch(d.status){case 200:console.error("Bad Request: ",d.message),this.downloadId=d.error.text;let u=0,b=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),u++,u>=b&&clearInterval(this.intervalId)},2e3);break;case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.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: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.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: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}});return}this.apiService.downloadMail(e,n).subscribe(d=>{this.cdr.detectChanges()},d=>{if(d.status=="200"){let u="https://",b=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",I=this.configService.cloudName,M=this.authService.Token,D=this.sharedService.getDataByKey("userName"),P=`${u}${b}${k}${I}/portal/download/files/?token=${M}&loginUserName=${D}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(P,"_self")}switch(d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.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: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,a){}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}))}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=>{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=!1,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(this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),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",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=>{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=>{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=>{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],a=n.value,d=i.id;this.selectedDeviceIdCS=d}onDeviceChangeR(e){this.selectedDeviceUUIDR=e}exportCompleteMailboxAsPstG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!0,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}exportCompleteMailboxAsPstTriggerG(){if(this.displayPststyleG="none",this.pstFileNameG.trim()==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("Fail!!!"));return}this.items.forEach((n,i)=>{this.backupIdsListG.push(n.backupId)}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,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,(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),a=JSON.parse(i);let d=[];this.batchIdG=n.body.data.batchId,this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(u=>{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,a,d="",u){u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation();let b=[{label:"",options:[{value:this.currentMailUser||d,label:this.currentMailUser||d}]}];this.deviceUsersListR=b,this.selectedValueR=this.currentMailUser||d,this.value18R=this.currentMailUser||d,this.currentFileName=a,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],this.displayRestoreStyleR=!0,!this.product?.downloadsConfigurations?.unified&&(this.getRestoreEventsProgressR(),this.intervalIdR=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),this.cdr.detectChanges())}closeRestorePopupR(){this.displayRestoreStyleR=!1,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||"";this.deviceUsersListR=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let a=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListR=[{label:"",options:a}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){let n=e.value;this.selectedDeviceUUIDR="",this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let a="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(a=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(d=>d.blocked===!1&&d.osType==a).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),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(n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(a=>a.blocked===!1&&a.osType==i).map(a=>({deviceName:a.deviceName,deviceUUID:a.deviceUUID,deviceId:a.deviceId,osType:a.osType,decoupled:a.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 a=this.browsePathId?.split("/")||[];this.selectedBrowseItemId=this.destinationId||a.length&&a[a.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,void 0,this.categoryContentSearch==="todo"):this.assetManagementService.browseExchange(this.selectedDeviceUUIDR,this.browsePathR),i=this.deviceType;n.subscribe(a=>{this.loadingR=!1,a.body?.stringList?this.browseItemsR=a.body.stringList:Array.isArray(a.body)&&a.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=a.body:this.browseItemsR=a.body.map(d=>d.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},a=>{switch(this.loadingR=!1,console.error("Error from browse API:",a),a.status){case 400:console.error("Bad Request: ",a.message);break;case 401:console.error("Unauthorized: ",a.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: ",a.message);break;case 404:console.error("Not Found: ",a.message);break;case 500:case 503:console.error("Internal Server Error: ",a.message);break;default:console.error("Unknown Error: ",a.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()):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))}onDoubleClickR(e,n,i){if(this.categoryContentSearch!=="todo"){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),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=""),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)}closeRestoreHandler(){this.displayRestoreStyleR=!1}getRestoreEventsProgressR(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{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=!1,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=>{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}})}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="-",this.taskImportance=""}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 a=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),i[a].push(d)}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=this.fromId.trim()){let n=this.fromId.split(",");e.push(`from:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.toId=this.toId.trim()){let n=this.toId.split(",");e.push(`to:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.ccId=this.ccId.trim()){let n=this.ccId.split(",");e.push(`cc:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.bccId=this.bccId.trim()){let n=this.bccId.split(",");e.push(`bcc:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}(this.subjectId=this.subjectId.trim())&&e.push(`subject:(${this.subjectId})`),(this.bodyId=this.bodyId.trim())&&e.push(`body:(${this.bodyId})`),(this.keywordsId=this.keywordsId.trim())&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}parseEmailString(e){let i=e.split(/\s+/),a=[],d=[],u=[],b=[],k=[],I=[],M=[];for(let P=0;P<i.length;P++){let O=i[P];if(O.startsWith("from:"))a.push(O.replace("from:","").trim());else if(O.startsWith("to:"))d.push(O.replace("to:","").trim());else if(O.startsWith("cc:"))u.push(O.replace("cc:","").trim());else if(O.startsWith("bcc:"))b.push(O.replace("bcc:","").trim());else if(O.startsWith("subject:")){let U=O.replace("subject:","").trim();for(;!(U.startsWith("(")&&U.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,U+=" "+i[P];k.push(U.replace(/^\(|\)$/g,""))}else if(O.startsWith("body:")){let U=O.replace("body:","").trim();for(;!(U.startsWith("(")&&U.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,U+=" "+i[P];I.push(U.replace(/^\(|\)$/g,""))}else M.push(O)}return[`from:${a.join(",")}`,`to:${d.join(",")}`,`bcc:${b.join(",")}`,`cc:${u.join(",")}`,`subject:${k.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${M.join(" ")}`,`body:${I.join(",")}`].join("#*#")}parseContentSearchMail(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let a=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),i[a].push(d)}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()}scheduleNext(e,n,i,a){if(e>=i){this.intervalId=null,this.showloaderAtPreview=!1,this.showNotAvailable=!0,this.showMailView=!1;return}this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.intervalId=setTimeout(()=>{a(),e++,n=n*1.5,this.scheduleNext(e,n,i,a)},n)}static{this.\u0275fac=function(n){return new(n||t)(S(Z),S(he),S(re),S(W),S(be),S(Me),S(ye),S(ot),S(Ee),S(ri),S(_e),S(Pe),S(ae),S(fe),S(St),S(wt))}}static{this.\u0275cmp=L({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(q(ic,5),q(nc,5),q(rc,5),q(ac,5),q(oc,5),q(sc,5),q(lc,5),q(cc,5),q(dc,5),q(pc,5)),n&2){let a;z(a=j())&&(i.deviceDropdown=a.first),z(a=j())&&(i.deviceDropdownCS=a.first),z(a=j())&&(i.iframe=a.first),z(a=j())&&(i.userDeviceSearch=a.first),z(a=j())&&(i.fileSearch=a.first),z(a=j())&&(i.contentSearch=a.first),z(a=j())&&(i.contentSearchMailInput=a.first),z(a=j())&&(i.deviceDropdownR=a.first),z(a=j())&&(i.calendarIframe=a.first),z(a=j())&&(i.searchInput=a.first)}},outputs:{close:"close"},features:[ee([Z,W,St,he])],decls:197,vars:157,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentCalendarFrame",""],["contentFrame",""],[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",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel","title"],["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",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel","title"],["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","localizedValidate","","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"],[3,"currentDeviceUUID","currentDeviceUser","deviceType","currentFilePath","currentFileName","userType","currentFileBackupId","isFileTarget","closeRestoreHandler",4,"ngIf"],[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",1,"form-control","categoryContentSearch",3,"ngModelChange","change","ngModel","title"],["value","contacts"],["value","todo"],["value","calendar"],["noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","disabled","ngModel"],["noResultMessage","No sites found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","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","",3,"ngModelChange","keydown.enter","ngModel","placeholder","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","localizedValidate","","id","fromId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","toId"],["type","text","localizedValidate","","id","toId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","ccId"],["type","text","localizedValidate","","id","ccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bccId"],["type","text","localizedValidate","","id","bccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","subjectId"],["type","text","localizedValidate","","id","subjectId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bodyId"],["type","text","localizedValidate","","id","bodyId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","keywordsId"],["type","text","localizedValidate","","id","keywordsId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[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",3,"ngModelChange","change","title","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"],[2,"text-transform","capitalize"],[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",3,"title","click",4,"ngIf"],["class","btn btn-primary previous",3,"title","click",4,"ngIf"],["class","btn btn-primary next",3,"title","click",4,"ngIf"],["class","btn btn-primary last",3,"ngClass","title","click",4,"ngIf"],[1,"btn","btn-primary","first",3,"click","title"],[1,"fa","fa-angle-double-left"],[1,"btn","btn-primary","previous",3,"click","title"],[1,"fa","fa-angle-left"],[1,"btn","btn-primary","next",3,"click","title"],[1,"fa","fa-angle-right"],[1,"btn","btn-primary","last",3,"click","ngClass","title"],[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"],[3,"closeRestoreHandler","currentDeviceUUID","currentDeviceUser","deviceType","currentFilePath","currentFileName","userType","currentFileBackupId","isFileTarget"]],template:function(n,i){if(n&1){let a=w();o(0,"div",10)(1,"div",11)(2,"c-card",12)(3,"c-card-body")(4,"a",13),y("click",function(){return f(a),v(i.closeOverlay())}),C(5,"i",14),s(),o(6,"c-nav",15)(7,"c-nav-item",16)(8,"button",17),y("click",function(){return f(a),v(i.setActiveSearchTab("default",0))}),p(9),m(10,"translate"),s()(),x(11,Cc,4,5,"c-nav-item",18)(12,Sc,4,5,"c-nav-item",18),s(),o(13,"c-tab-content",19,0)(15,"c-tab-pane",20)(16,"c-row",21)(17,"c-input-group",12)(18,"span",22),p(19),m(20,"translate"),s(),o(21,"input",23,1),m(23,"translate"),V("ngModelChange",function(u){return f(a),R(i.userAssetSearchText,u)||(i.userAssetSearchText=u),v(u)}),y("keydown.enter",function(){return f(a),v(i.searchForUsersAssets())}),s()()(),o(24,"c-row"),x(25,wc,2,1,"c-card",18)(26,kc,7,4,"c-card",18),C(27,"br"),x(28,Tc,2,1,"c-card",18)(29,Ec,7,4,"c-card",18),C(30,"br"),x(31,Mc,2,1,"c-card",18)(32,Dc,7,4,"c-card",18),s()(),o(33,"c-tab-pane",20)(34,"c-row",24)(35,"div",25)(36,"label",26),p(37),m(38,"translate"),s(),o(39,"select",27),m(40,"translate"),V("ngModelChange",function(u){return f(a),R(i.productTypeFiles,u)||(i.productTypeFiles=u),v(u)}),y("change",function(u){return f(a),v(i.onChangeProductType(u))}),x(41,Oc,3,3,"option",28)(42,Ac,3,3,"option",29)(43,Uc,3,3,"option",30),Fe(44,Bc,1,1,"option",31,st),s()(),x(46,Rc,7,14,"div",32)(47,Vc,7,13,"div",32)(48,Hc,9,5,"div",33),s(),o(49,"c-row",34)(50,"div",35)(51,"c-input-group")(52,"input",36,2),m(54,"translate"),V("ngModelChange",function(u){return f(a),R(i.filesSearchText,u)||(i.filesSearchText=u),v(u)}),y("keydown.enter",function(){return f(a),v(i.searchForFiles())}),s()()(),o(55,"div",37)(56,"button",38),y("click",function(){return f(a),v(i.searchForFiles())}),p(57),m(58,"translate"),s()()(),C(59,"br"),x(60,Gc,6,3,"c-row",18)(61,jc,11,6,"c-row",39),s(),o(62,"c-tab-pane",20)(63,"c-row",24)(64,"div",25)(65,"label",40),p(66),m(67,"translate"),s(),o(68,"select",41),m(69,"translate"),V("ngModelChange",function(u){return f(a),R(i.productTypeContentSearch,u)||(i.productTypeContentSearch=u),v(u)}),y("change",function(u){return f(a),v(i.onChangeProductTypeContentSearch(u))}),x(70,Wc,3,3,"option",42)(71,qc,3,3,"option",29)(72,$c,3,3,"option",30)(73,Zc,3,3,"option",43),Fe(74,Kc,1,3,"option",31,st),s()(),x(76,Jc,18,19,"div",44)(77,Qc,6,11,"div",32)(78,Xc,6,10,"div",32)(79,id,9,5,"div",33),s(),x(80,nd,10,7,"c-row",45)(81,od,8,7,"c-row",46)(82,ld,2,1,"c-row",46),C(83,"br"),o(84,"app-document-content-search",47),y("downloadFile",function(u){return f(a),v(i.downloadFile(u.fileName,u.filePath,u.fileRevisionID,u.backup,u.fileUser,u.deviceUUID,u.folder,u.size,i.productTypeContentSearch,u))})("openFileLocation",function(u){return f(a),v(i.openFileLocation(u.fileName,u.filePath,u.deviceId,i.productTypeContentSearch,u.backup))})("navigatePage",function(u){return f(a),v(i.searchForContentNavigate(u))}),s(),x(85,cd,5,0,"c-row",46)(86,Ep,34,28,"c-row",48)(87,Mp,7,3,"c-row",49),C(88,"br"),x(89,Up,7,4,"c-row",50),s()()()()()(),o(90,"div",51)(91,"div",52)(92,"div",53)(93,"div",54)(94,"h4",55),p(95),m(96,"translate"),s()(),o(97,"div",56)(98,"c-row")(99,"div",57)(100,"label",58),p(101),m(102,"translate"),s(),o(103,"input",59,3),m(105,"translate"),V("ngModelChange",function(u){return f(a),R(i.pstFileNameG,u)||(i.pstFileNameG=u),v(u)}),s(),x(106,Vp,4,3,"div",60),s()()(),o(107,"div",61)(108,"button",62),y("click",function(){return f(a),v(i.closePstPopupG())}),p(109),m(110,"translate"),s(),x(111,Np,3,4,"button",63)(112,Lp,3,4,"button",63),s()()()(),o(113,"div",64)(114,"div",65)(115,"div",53)(116,"div",54)(117,"h4",55),p(118),m(119,"translate"),s()(),o(120,"div",56)(121,"c-card")(122,"c-card-header",66),p(123),m(124,"translate"),s(),o(125,"c-card-body")(126,"c-row",67)(127,"table",68)(128,"thead")(129,"tr"),x(130,Hp,3,3,"th",18),o(131,"th"),p(132),m(133,"translate"),s()()(),o(134,"tbody")(135,"tr"),x(136,zp,5,9,"td",18)(137,jp,3,3,"td",18)(138,qp,6,9,"td",18)(139,$p,3,3,"td",18),s()()()()()()(),o(140,"div",61)(141,"button",62),y("click",function(){return f(a),v(i.closeDownloadPstPopupG())}),p(142,"Close"),s(),x(143,Zp,3,3,"button",69),s()()()(),o(144,"div",51)(145,"div",52)(146,"div",53)(147,"div",54)(148,"h4",55),p(149),m(150,"translate"),s()(),o(151,"div",56)(152,"h4",55),p(153),m(154,"translate"),s()(),o(155,"div",61)(156,"button",62),y("click",function(){return f(a),v(i.closeDownloadPstConfirmPopupG())}),p(157),m(158,"translate"),s(),o(159,"button",70),y("click",function(){return f(a),v(i.cancelDownloadAsPstConfirmG())}),p(160),m(161,"translate"),s()()()()(),o(162,"div",51)(163,"div",52)(164,"div",53)(165,"div",54)(166,"h4",55),p(167),m(168,"translate"),s()(),o(169,"div",56)(170,"h4",55),p(171),m(172,"translate"),s()(),o(173,"div",61)(174,"button",62),y("click",function(){return f(a),v(i.closeDownloadPstRunBkpPopupG())}),p(175,"Cancel"),s(),o(176,"button",71),y("click",function(){return f(a),v(i.cancelDownloadAsPstRunBkpG())}),p(177,"Ok"),s()()()()(),x(178,Yp,1,8,"app-restore-modal",72),o(179,"div",51)(180,"div",52)(181,"div",53)(182,"div",54)(183,"h4",55),p(184),m(185,"translate"),s()(),o(186,"div",56)(187,"h4",55),p(188),m(189,"translate"),s()(),o(190,"div",61)(191,"button",62),y("click",function(){return f(a),v(i.closeDeleteRestorePopupR())}),p(192),m(193,"translate"),s(),o(194,"button",71),y("click",function(){return f(a),v(i.deleteRestoreEventR())}),p(195),m(196,"translate"),s()()()()()}if(n&2){let a=pe(14),d=pe(104);r(7),c("ngStyle",A(145,it,i.userType!="user"?"block":"none")),r(),c("cTabContent",a)("tabPaneIdx",0),r(),T(" ",g(10,93,"Search Users/Assets"),""),r(2),c("ngIf",i.hasBackupLicense),r(),c("ngIf",i.hasContentSearchLicense),r(),c("activeTabPaneIdx",i.activeTabIndex),r(6),_(g(20,95,"Search Users/Assets")),r(2),B("ngModel",i.userAssetSearchText),c("placeholder",g(23,97,"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),_(g(38,99,"Product Type")),r(2),B("ngModel",i.productTypeFiles),c("title",g(40,101,"Select Product Type")),r(2),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(),Be(i.PRODUCTS_CONFIG),r(2),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles=="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(4),B("ngModel",i.filesSearchText),c("placeholder",g(54,103,"Search for files/folders ..")),r(5),_(g(58,105,"Search")),r(3),c("ngIf",i.noFilesFound),r(),c("ngIf",i.foundFiles.length>0&&!i.noFilesFound),r(5),_(g(67,107,"Product Type")),r(2),B("ngModel",i.productTypeContentSearch),c("title",g(69,109,"Select Product Type")),r(2),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(),Be(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(147,it,i.displayPststyleG)),r(5),_(g(96,111,"Specify Filename")),r(6),_(g(102,113,"Specify pst filename")),r(2),Re("placeholder",g(105,115,"Enter PST File Name")),B("ngModel",i.pstFileNameG),r(3),c("ngIf",d.invalid&&(d.dirty||d.touched)),r(3),_(g(110,117,"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(149,it,i.displayDownloadPststyleG)),r(5),_(g(119,119,"Restore Progress")),r(5),_(g(124,121,"Currently Running Restore Statistics")),r(7),c("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),r(2),_(g(133,123,"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(151,it,i.displayDownloadPstConfirmstyleG)),r(5),_(g(150,125,"Restore Cancel Confirmation")),r(4),_(g(154,127,"Are you sure you wish to cancel the restore?")),r(4),_(g(158,129,"Cancel")),r(3),_(g(161,131,"Ok")),r(2),c("ngStyle",A(153,it,i.displayDownloadPstRunBckConfirmstyleG)),r(5),_(g(168,133,"Confirmation")),r(4),_(g(172,135,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),r(7),c("ngIf",i.displayRestoreStyleR),r(),c("ngStyle",A(155,it,i.displayDeleteRestoreStyleR)),r(5),_(g(185,137,"Restore Cancel Confirmation")),r(4),_(g(189,139,"Are you sure you wish to cancel the restore?")),r(4),_(g(193,141,"Close")),r(3),_(g(196,143,"Delete"))}},dependencies:[ys,Io,To,mi,ct,_i,vi,fi,wo,je,Lo,Ho,bt,ki,No,yt,Ti,Go,zo,jo,Ct,ne,He,Ge,ie,ii,dt,he,Uo,Fo,Ao,Eo,hi,gt,mt,_t,yi,ze,vt,me,$e,Zo,xi,qe,Ze,Ye,Yo,Ko,Ss,ge,gi,ts,rs],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}tr.selected-rowMail[_ngcontent-%COMP%], tr.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}.last.disabled[_ngcontent-%COMP%]{pointer-events:auto!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 Kp=t=>({"bg-danger":t});function Jp(t,l){if(t&1){let e=w();o(0,"div",8)(1,"div",9)(2,"small",10),p(3),s(),o(4,"small"),p(5),m(6,"number"),s()(),o(7,"small",11),p(8),m(9,"titlecase"),m(10,"translate"),s(),o(11,"div",12),C(12,"div",13),s(),o(13,"div",14)(14,"button",15),y("click",function(i){let a=f(e).$implicit;return h(2).cancelFile(a.id),v(i.stopImmediatePropagation())}),p(15),m(16,"translate"),s()()()}if(t&2){let e=l.$implicit,n=h(2);r(2),c("title",e.name),r(),_(e.name),r(2),T("",te(6,9,e.progress,"1.0-0"),"%"),r(3),X("",n.formatFileSize(e.size)," | ",g(10,14,g(9,12,e.status)),""),r(4),ce("width",e.progress,"%"),c("ngClass",A(18,Kp,e.status==="failed"||e.status==="canceled")),r(3),T(" ",g(16,16,"Cancel")," ")}}function Qp(t,l){if(t&1){let e=w();o(0,"div",1)(1,"div",2),y("mousedown",function(i){f(e);let a=h();return v(a.startDrag(i))})("touchstart",function(i){f(e);let a=h();return v(a.startDrag(i))}),o(2,"span",3),p(3),m(4,"translate"),s(),o(5,"span",4),p(6),m(7,"async"),s()(),o(8,"div",5)(9,"h6",6),p(10),m(11,"translate"),m(12,"async"),s(),x(13,Jp,17,20,"div",7),m(14,"async"),s()()}if(t&2){let e,n,i=h();ce("top",i.position.y,"px")("left",i.position.x,"px")("display",i.visible?"block":"none"),r(3),_(g(4,12,"Active Uploads")),r(3),T("(",(e=g(7,14,i.uploadManager.files$))==null?null:e.length,")"),r(4),X("",g(11,16,"Active Uploads")," (",(n=g(12,18,i.uploadManager.files$))==null?null:n.length,")"),r(3),c("ngForOf",g(14,20,i.uploadManager.files$))("ngForTrackBy",i.trackByFileId)}}var Ts=(()=>{class t{constructor(e){this.uploadManager=e,this.position={x:0,y:0},this.visible=!0,this.isDragging=!1,this.dragOffset={x:0,y:0}}ngOnInit(){this.resetPositionToDefault(),this.uploadManager.files$.subscribe(e=>{e.length===0&&this.resetPositionToDefault()})}resetPositionToDefault(){this.position.x=window.innerWidth-320-20,this.position.y=window.innerHeight-200-20,this.position.x<10&&(this.position.x=10),this.position.y<10&&(this.position.y=10)}startDrag(e){e.preventDefault(),this.isDragging=!0;let n=this.getClientX(e),i=this.getClientY(e);this.dragOffset.x=n-this.position.x,this.dragOffset.y=i-this.position.y}onMove(e){if(!this.isDragging)return;e.preventDefault();let n=this.getClientX(e),i=this.getClientY(e),a=320,d=200,u=n-this.dragOffset.x,b=i-this.dragOffset.y,k=0,I=0,M=window.innerWidth-a,D=window.innerHeight-60;u<k&&(u=k),b<I&&(b=I),u>M&&(u=M),b>D&&(b=D),this.position.x=u,this.position.y=b}onUp(e){this.isDragging&&(this.isDragging=!1)}getClientX(e){return e.touches?e.touches[0].clientX:e.clientX}getClientY(e){return e.touches?e.touches[0].clientY:e.clientY}pauseFile(e){this.uploadManager.pauseFile(e)}resumeFile(e){this.uploadManager.resumeFile(e)}cancelFile(e){this.uploadManager.cancelFile(e)}formatFileSize(e){if(!e)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]}trackByFileId(e,n){return n.id}static{this.\u0275fac=function(n){return new(n||t)(S(di))}}static{this.\u0275cmp=L({type:t,selectors:[["app-upload-panel"]],hostBindings:function(n,i){n&1&&y("mousemove",function(d){return i.onMove(d)},!1,et)("touchmove",function(d){return i.onMove(d)},!1,et)("mouseup",function(d){return i.onUp(d)},!1,et)("touchend",function(d){return i.onUp(d)},!1,et)},decls:2,vars:3,consts:[["class","upload-drag-wrapper",3,"top","left","display",4,"ngIf"],[1,"upload-drag-wrapper"],[1,"upload-drag-handle",3,"mousedown","touchstart"],[1,"drag-title"],[1,"drag-count"],[1,"upload-panel"],[1,"mb-2","sr-only"],["class","file-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"file-item"],[1,"d-flex","justify-content-between","align-items-center"],[1,"text-truncate",3,"title"],[1,"text-muted"],[1,"progress","mt-1",2,"height","6px","background-color","#e9ecef","border-radius","3px","overflow","hidden"],["role","progressbar",1,"progress-bar",2,"height","100%",3,"ngClass"],[1,"mt-2","d-flex","gap-1"],[1,"btn","btn-sm","btn-danger",3,"click"]],template:function(n,i){if(n&1&&(x(0,Qp,15,22,"div",0),m(1,"async")),n&2){let a;c("ngIf",(a=g(1,1,i.uploadManager.files$))==null?null:a.length)}},dependencies:[ne,He,Ge,ie,ti,dt,Dn,ge],styles:[".upload-drag-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:1060;width:320px;cursor:default}.upload-drag-handle[_ngcontent-%COMP%]{cursor:grab;display:flex;justify-content:space-between;align-items:center;padding:.35rem .6rem;background:#f7f7f7;border-radius:6px 6px 0 0;border:1px solid rgba(0,0,0,.05);-webkit-user-select:none;user-select:none}.upload-drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}.upload-drag-handle[_ngcontent-%COMP%]   .drag-title[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem}.upload-drag-handle[_ngcontent-%COMP%]   .drag-count[_ngcontent-%COMP%]{font-size:.85rem;color:#666}.upload-panel[_ngcontent-%COMP%]{position:relative;background:#fff;border-radius:6px;box-shadow:0 6px 20px #0000001f;padding:.6rem;width:100%;margin-top:6px}.file-item[_ngcontent-%COMP%]{margin-bottom:.75rem;border-bottom:1px solid #eee;padding-bottom:.5rem}.progress-bar[_ngcontent-%COMP%]{height:6px;background:#007bff;transition:width .3s ease}.bg-danger[_ngcontent-%COMP%]{background:#dc3545}.btn-sm[_ngcontent-%COMP%]{padding:.25rem .5rem;font-size:.875rem}.gap-1[_ngcontent-%COMP%]{gap:.25rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.text-danger[_ngcontent-%COMP%]{color:#dc3545}.d-flex[_ngcontent-%COMP%]{display:flex}.justify-content-between[_ngcontent-%COMP%]{justify-content:space-between}.align-items-center[_ngcontent-%COMP%]{align-items:center}.text-truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.progress[_ngcontent-%COMP%]{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}"]})}}return t})();var Is=()=>["admin","delegatedAdmin","readOnlyAdmin"],Ps=()=>["/mspDashboard"],Ds=()=>["/dashboard"],Os=()=>["/bluvault"],Xp=()=>({"pointer-events":"none",cursor:"unset"}),e0=()=>({}),t0=()=>["superAdmin"],Es=t=>({display:t}),Ms=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],i0=()=>({placement:"bottom-start"}),n0=t=>({lastLoggedInTime:t}),r0=t=>({active:t}),a0=()=>[],o0=t=>({label:"Close",class:"btn btn-default",action:t}),s0=t=>[t],l0=t=>({subscriptionStartDate:t}),qi=t=>({label:"Cancel",class:"btn btn-default",action:t}),$i=t=>({label:"Ok",class:"btn btn-primary",action:t}),Zi=(t,l)=>[t,l],c0=(t,l)=>l.key,d0=(t,l)=>l.name;function p0(t,l){if(t&1){let e=w();o(0,"c-input-group",27)(1,"input",28),m(2,"translate"),y("click",function(){f(e);let i=h();return v(i.openOverlay())}),s(),o(3,"span",29),C(4,"i",30),s()()}t&2&&(r(),c("placeholder",g(2,1,"Search")))}function u0(t,l){if(t&1){let e=w();o(0,"c-sidebar-brand",31)(1,"img",5),y("error",function(i){f(e);let a=h();return v(a.onImageError(i))}),s()()}if(t&2){let e=h();c("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&$(2,Ms).includes(e.userType)?$(3,Ps):$(4,Ms).includes(e.userType)?$(5,Ds):$(6,Os)),r(),c("src",e.parabluLogo,we)}}function h0(t,l){if(t&1){let e=w();o(0,"app-search-overlay",32),y("close",function(){f(e);let i=h();return v(i.closeOverlay())}),s()}}function m0(t,l){t&1&&Jt(0)}function g0(t,l){t&1&&Jt(0)}function _0(t,l){t&1&&Jt(0)}function f0(t,l){if(t&1&&(o(0,"button",33),C(1,"img",34),p(2),m(3,"translate"),s()),t&2){let e=h();c("cSidebarToggle",e.sidebarId2),r(2),T(" ",g(3,2,"AI Help")," ")}}function v0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.currentUserProfile())}),C(2,"i",47),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"My Account")))}function b0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",48),y("click",function(){f(e);let i=h(3);return v(i.userType==="user"?i.currentUserProfile():null)}),C(2,"i",47),o(3,"span",46),p(4),s()()()}if(t&2){let e=h(3);r(),ce("cursor",e.userType==="user"?"pointer":"default"),r(3),_(e.currentUser)}}function y0(t,l){t&1&&(o(0,"span",46),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Administrator")))}function C0(t,l){t&1&&(o(0,"span",46),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"User")))}function S0(t,l){if(t&1&&(o(0,"li",49)(1,"a",50),C(2,"i",47),x(3,y0,3,3,"span",51)(4,C0,3,3,"span",51),s()()),t&2){let e=h(3);r(3),c("ngIf",e.userType=="delegatedAdmin"),r(),c("ngIf",e.userType=="user")}}function w0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function x0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectPaddleConsent())}),C(2,"i",52),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Manage Subscription")))}function k0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.initiateGuidedSetup())}),C(2,"img",53),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Guided Setup")))}function T0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectProductConsent())}),C(2,"i",54),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Add Product")))}function I0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.activityHistory())}),C(2,"i",55),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Activity History")))}function E0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.unusualActivityHistory())}),C(2,"i",55),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Unusual Activity History")))}function M0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.endpointsDownload())}),C(2,"i",56),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Download Agent")))}function P0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.licenseOptimizer())}),C(2,"i",57),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"License Optimizer")))}function D0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.packDetails())}),C(2,"i",52),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Current Packs Subscribed")))}function O0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.navigateToDownloads())}),C(2,"i",56),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Downloads")))}function A0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function U0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.shareActivityHistory())}),C(2,"i",58),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Share Activity History")))}function F0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.sharedByMe())}),C(2,"i",58),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Files Shared By Me")))}function B0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.sharedWithMe())}),C(2,"i",58),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Files Shared With Me")))}function R0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.infectedActivityHistory())}),C(2,"i",55),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Infected Files History")))}function V0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.miniclouds())}),C(2,"i",59),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"MiniClouds")))}function N0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function L0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function H0(t,l){if(t&1&&(o(0,"li")(1,"a",60),p(2),m(3,"translate"),s()()),t&2){let e=h(3);r(),c("href",e.quick_startUrl,we),r(),_(g(3,2,"Quick Start Guide"))}}function G0(t,l){if(t&1&&(o(0,"li")(1,"a",60),p(2),m(3,"translate"),s()()),t&2){let e=h(3);r(),c("href",e.administrator_Guide_EndpointUrl,we),r(),_(g(3,2,"Administrator Guide"))}}function z0(t,l){if(t&1&&(o(0,"li")(1,"a",61),p(2),m(3,"translate"),s()()),t&2){let e=h(3);r(),c("href",e.quick_start_serverUrl,we),r(),_(g(3,2,"Quick Start Guide (Servers)"))}}function j0(t,l){if(t&1&&(o(0,"li")(1,"a",61),p(2),m(3,"translate"),s()()),t&2){let e=h(3);r(),c("href",e.administrator_Guide_ServerUrl,we),r(),_(g(3,2,"Administrator Guide (Servers)"))}}function W0(t,l){if(t&1&&(o(0,"li")(1,"a",61),p(2),m(3,"translate"),s()()),t&2){let e=h(3);r(),c("href",e.userGuideUrl,we),r(),_(g(3,2,"User Guide"))}}function q0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function $0(t,l){t&1&&(o(0,"li")(1,"h6",62),p(2),m(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"Help & Support")))}function Z0(t,l){if(t&1){let e=w();o(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectConsent())}),C(2,"i",63),o(3,"span",46),p(4),m(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Create Support Ticket")))}function Y0(t,l){t&1&&(o(0,"li")(1,"a",60),C(2,"i",64),o(3,"span",46),p(4,"+971 50 158 7321"),s()()()),t&2&&(r(),c("href","https://wa.me/971501587321",we))}function K0(t,l){if(t&1&&(o(0,"li")(1,"a",65),C(2,"i",66),o(3,"span",46),p(4),m(5,"translate"),s()()()),t&2){let e=h(3);r(),c("href","mailto:"+e.support_mailId,we),r(3),_(g(5,2,"Send email"))}}function J0(t,l){t&1&&(o(0,"li"),C(1,"hr",42),s())}function Q0(t,l){if(t&1){let e=w();o(0,"ul",39),x(1,v0,6,3,"li",40)(2,b0,5,3,"li",40)(3,S0,5,2,"li",41),o(4,"li"),C(5,"hr",42),s(),o(6,"li")(7,"span",43),p(8),m(9,"translate"),s()(),o(10,"li",43),p(11),m(12,"translate"),m(13,"translate"),s(),x(14,w0,2,0,"li",40)(15,x0,6,3,"li",40)(16,k0,6,3,"li",40)(17,T0,6,3,"li",40),o(18,"li"),C(19,"hr",42),s(),x(20,I0,6,3,"li",40)(21,E0,6,3,"li",40)(22,M0,6,3,"li",40)(23,P0,6,3,"li",40)(24,D0,6,3,"li",40)(25,O0,6,3,"li",40)(26,A0,2,0,"li",40)(27,U0,6,3,"li",40)(28,F0,6,3,"li",40)(29,B0,6,3,"li",40)(30,R0,6,3,"li",40)(31,V0,6,3,"li",40)(32,N0,2,0,"li",40)(33,L0,2,0,"li",40)(34,H0,4,4,"li",40)(35,G0,4,4,"li",40)(36,z0,4,4,"li",40)(37,j0,4,4,"li",40)(38,W0,4,4,"li",40)(39,q0,2,0,"li",40)(40,$0,4,3,"li",40)(41,Z0,6,3,"li",40)(42,Y0,5,1,"li",40)(43,K0,6,4,"li",40)(44,J0,2,0,"li",40),o(45,"li")(46,"a",44),y("click",function(){f(e);let i=h(2);return v(i.logout())}),C(47,"i",45),o(48,"span",46),p(49),m(50,"translate"),s()()()()}if(t&2){let e=h(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),_(g(9,35,"PRODUCT")),r(3),T(" ",e.inclusionLicenses.includes("issmblicenseenabled")?g(12,37,"CrashPlan"):g(13,39,"CrashPlan Platform")," "),r(3),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")&&e.currentUser=="custadmin"),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),_(g(50,41,"Logout"))}}function X0(t,l){if(t&1){let e=w();o(0,"ul",39)(1,"li")(2,"a",44),y("click",function(){f(e);let i=h(2);return v(i.logout())}),C(3,"i",45),o(4,"span",46),p(5),m(6,"translate"),s()()()()}t&2&&(r(5),_(g(6,1,"Logout")))}function eu(t,l){if(t&1&&(o(0,"c-dropdown",35)(1,"button",36),C(2,"c-avatar",37),m(3,"date"),m(4,"translate"),m(5,"translate"),s(),x(6,Q0,51,43,"ul",38)(7,X0,7,3,"ul",38),s()),t&2){let e=h();c("popperOptions",$(14,i0)),r(),c("caret",!1),r(),c("cTooltip",e.lastLoggedInTime?te(4,9,"LastLoginTime",A(15,n0,te(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 tu(t,l){if(t&1){let e=w();o(0,"button",48),y("click",function(){let i=f(e).$implicit,a=h(2);return v(a.changeLanguage(i.key))}),p(1),s()}if(t&2){let e=l.$implicit,n=h(2);xn(A(3,r0,e.key===n.currentLocale)),r(),T(" ",e.name," ")}}function iu(t,l){if(t&1&&(o(0,"c-dropdown",67)(1,"button",68),C(2,"i",69),o(3,"span",70),p(4),s()(),o(5,"div",71),Fe(6,tu,2,5,"button",72,c0),s()()),t&2){let e=h();r(),c("caret",!1),r(3),_(e.showLangName),r(2),Be(e.SupportedLocales)}}function nu(t,l){if(t&1){let e=w();o(0,"button",77),y("click",function(i){f(e);let a=h(2);return v(a.click_Crashplan_Endpoint(i))}),o(1,"a",78),p(2),m(3,"translate"),s()()}if(t&2){let e=h(2);r(),c("href",e.crashplan_Endpoint_Url,we),r(),_(g(3,2,"CrashPlan Endpoint"))}}function ru(t,l){if(t&1){let e=w();o(0,"button",79),y("click",function(){let i=f(e).$implicit,a=h(2);return a.colorMode.set(i.name),v(a.applyTheme())}),Ni(),C(1,"svg",80),p(2),m(3,"translate"),s()}if(t&2){let e=l.$implicit,n=h(2);c("active",n.colorMode()===e.name)("routerLink",$(6,a0)),r(),c("name",e.icon),r(),T(" ",g(3,4,e.text)," ")}}function au(t,l){if(t&1&&(x(0,nu,4,4,"button",73),o(1,"c-dropdown",67)(2,"button",74),Ni(),C(3,"svg",75),s(),_n(),o(4,"div",71),Fe(5,ru,4,7,"button",76,d0),s()()),t&2){let e=h();c("ngIf",e.crashplan_Endpoint_Url),r(2),c("caret",!1),r(),c("name",e.icons()),r(2),Be(e.colorModes)}}function ou(t,l){t&1&&(o(0,"th",84),p(1),m(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Servers")))}function su(t,l){t&1&&(o(0,"td",87)(1,"span"),p(2),m(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"-")))}function lu(t,l){if(t&1&&(o(0,"tr")(1,"td",87)(2,"div"),p(3),s()(),o(4,"td",87)(5,"div"),p(6),s()(),o(7,"td",87)(8,"div"),p(9),s()(),o(10,"td",87)(11,"div"),p(12,"-"),s()()()),t&2){let e=l.$implicit;r(3),_(e.skuCode),r(3),_(e.storageSize),r(3),_(e.minUserCount)}}function cu(t,l){if(t&1&&(o(0,"tr")(1,"td",87)(2,"div"),p(3),s()(),o(4,"td",87)(5,"div"),p(6,"-"),s()(),o(7,"td",87)(8,"div"),p(9),s()(),o(10,"td",87)(11,"div"),p(12),s()()()),t&2){let e=l.$implicit;r(3),_(e.skuCode),r(6),_(e.storageSize),r(3),_(e.minUserCount)}}function du(t,l){if(t&1&&(At(0),x(1,cu,13,3,"tr",90),Ut()),t&2){let e=h(2);r(),c("ngForOf",e.serverPacks)}}function pu(t,l){if(t&1&&(o(0,"td",87)(1,"span")(2,"b"),p(3),s()()()),t&2){let e=h(2);r(3),_(e.totalServer)}}function uu(t,l){if(t&1&&(o(0,"app-modal",81)(1,"c-row")(2,"table",82)(3,"thead",83)(4,"tr")(5,"th",84),p(6,"Pack Name "),s(),o(7,"th",84)(8,"p",85),p(9),m(10,"translate"),s(),o(11,"p",85),p(12),m(13,"translate"),s()(),o(14,"th",84),p(15,"Users"),s(),x(16,ou,3,3,"th",86),s()(),o(17,"tbody")(18,"tr")(19,"td",87)(20,"span")(21,"a",88),m(22,"date"),m(23,"translate"),p(24),s(),C(25,"br"),o(26,"span"),p(27),m(28,"translate"),s()()(),o(29,"td",87)(30,"span"),p(31),s()(),o(32,"td",87)(33,"span"),p(34),s()(),x(35,su,4,3,"td",89),s(),x(36,lu,13,3,"tr",90)(37,du,2,1,"ng-container",40),o(38,"tr",87)(39,"td",87)(40,"span")(41,"b"),p(42),m(43,"translate"),s()()(),o(44,"td",87)(45,"span")(46,"b"),p(47),s()()(),o(48,"td",87)(49,"span")(50,"b"),p(51),s()()(),x(52,pu,4,1,"td",89),s()()()()()),t&2){let e=h();c("modalSize","modal-lg")("modalWidth","90%")("footerButtons",A(36,s0,A(34,o0,e.closePackDetails))),r(2),c("hover",!0)("responsive",!0)("striped",!0),r(7),_(g(10,21,"Managed Data")),r(3),_(g(13,23,"(GB)")),r(4),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),r(5),c("cTooltip",te(23,27,"SubscribedOn",A(38,l0,g(22,25,e.subscriptionStartDate)))),r(3),T(" ",e.skuCode," "),r(3),_(g(28,30,"(Base Pack)")),r(4),_(e.storageSize),r(3),_(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),_(g(43,32,"Total")),r(5),_(e.totalStorage),r(4),_(e.totalUser),r(),c("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true")}}function hu(t,l){if(t&1){let e=w();o(0,"app-crashplan-nav",91),y("closeModalHandler",function(){f(e);let i=h();return v(i.close_Crashplan_Endpoint())}),s()}}function mu(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("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,Zi,A(4,qi,e.cancelRedirectConsent),A(6,$i,e.confirmRedirectConsent)))}}function gu(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("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,Zi,A(4,qi,e.cancelPaddleRedirectConsent),A(6,$i,e.confirmPaddleRedirectConsent)))}}function _u(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("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,Zi,A(4,qi,e.cancelProductRedirectConsent),A(6,$i,e.confirmProductRedirectConsent)))}}var As=(()=>{class t extends xo{#t;#e;#i;constructor(e,n,i,a,d,u,b,k,I,M,D,P,O,U){let oe=e.Token;(!oe||oe.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=a,this.apiService=d,this.cdr=u,this.toastr=b,this.datePipe=k,this.licenseCheckService=I,this.TranslateService=M,this.userRoleService=D,this.dashboardService=P,this.configService=O,this.http=U,this.conversationalAI=!1,this.isOverlayVisible=!1,this.parabluLogo="",this.crashplanLogo="",this.userType="",this.ransomewareSuit=!1,this.syncEnabled="false",this.isMspEnabled=!1,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=Xe(jn),this.#e=Xe(go),this.colorMode=this.#e.colorMode,this.#i=Xe(vn),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Mn(()=>{let F=this.colorMode();return this.colorModes.find(Oe=>Oe.name===F)?.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.onlySyncEnv="false",this.sidebarId="sidebar1",this.sidebarId2="sidebar2",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.imageSrc[1]=`/brandings/${O.cloudName}/brandings/login_logo.png`,this.imageSrc[0]=`/brandings/${O.cloudName}/brandings/header_logo.png`,this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(cn(1),K(F=>F.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),jt(F=>["dark","light","auto"].includes(F)),G(F=>{this.colorMode.set(F)}),uo(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 De=this.configService.commonUrl;this.http.get(De).subscribe(F=>{typeof F=="object"&&F!==null?Object.keys(F).length>0&&(this.supportUrl=F.support_url):console.error("Unexpected response format:",F)},F=>{console.error("Error fetching data:",F)})}ngOnInit(){return N(this,null,function*(){this.currentLocale=this.TranslateService.currentLang,this.showLangName=this.SupportedLocales.find(a=>this.currentLocale===a.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),["backup_enabled","onedrive_backup_enabled","exchange_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"].every(a=>!this.inclusionLicenses.includes(a))&&this.userType=="user"&&(this.onlySyncEnv="true");let i=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets/Exchange","/manageAssets/ODB","/manageAssets/Sharepoint","/login","/locallogin","/logout"];if(this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(i.includes(this.router.url.toString())||this.checkWizardStatus()),this.router.events.subscribe(a=>{a instanceof pt&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(i.includes(this.router.url.toString())||this.checkWizardStatus())}),this.inclusionLicenses.includes("issmblicenseenabled")){let d=this.licenseCheckService.getEnvDetails().cpendpointurl;this.crashplan_Endpoint_Url=d||"https://gold-console.core.qa.crashplan.com/"}})}setBrandLogo(){return N(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}changeLanguage(e){return N(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(e){if(e.preventDefault(),e.stopPropagation(),!this.crashplan_Endpoint_Url){this.showCrashplanEndpointLicenseModal=!0,this.cdr.detectChanges();return}window.open(this.crashplan_Endpoint_Url,"_blank")}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"])}infectedActivityHistory(){this.router.navigate(["infectedActivityHistory"])}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(){return N(this,null,function*(){(yield this.fetchAndSetPaddlePortalSession())&&(this.redirectPaddleConsentStyle=!0)})}fetchAndSetPaddlePortalSession(){return N(this,null,function*(){try{let n=(yield zt(this.apiService.getPaddlePortalSession()))?.body?.data?.data;if(n?.urls?.general?.overview){let i=n.urls.general.overview;return this.paddleUrl=i,i}else return""}catch{return""}})}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((a,d)=>{if(a.subscriptionActive){this.skuCode=a.skuCode,this.packModel=a.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(a.storageSize),this.totalUser=Number(a.minUserCount),this.storageSize=a.storageSize.toString(),this.minUserCount=a.minUserCount.toString(),this.customerId=a.customerId,this.referenceNumber=a.referenceNumber;let u=new Date(a.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(a.subscriptionStartDate),a.addons&&a.addons.length>0&&(this.addons=a.addons),a.addons&&a.addons.length>0&&a.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 b=0;a.addons&&a.addons.length>0&&a.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","/login","/locallogin","/logout"];for(let n=0;n<e.length;n++)if(this.router.url.startsWith(e[n]))return;this.apiService.checkWizardStatus().subscribe(n=>{var i=JSON.stringify(n.body),a=JSON.parse(i);this.isMsAppConsented=n.body.msAppConsented,this.isEwsAppConsented=n.body.ewsAppConsented,this.ssoAppConsented=n.body.ssoAppConsented,this.assetsConfigured=n.body.assetsConfigured;let d=localStorage.getItem("showStep1Modal");if(d!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return}if(d!=="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}initiateGuidedSetup(){this.apiService.initiateGuidedSetup().subscribe(e=>{this.router.navigate(["/dashboard"]),localStorage.removeItem("showStep1Modal"),localStorage.removeItem("showStep2Modal"),setTimeout(()=>location.reload(),300)})}static{this.\u0275fac=function(n){return new(n||t)(S(Z),S(re),S(ot),S(ye),S(W),S(Ee),S(be),S(he),S(Pe),S(ae),S(fe),S(Ei),S(_e),S(Me))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-header"]],inputs:{conversationalAI:"conversationalAI",sidebarId:"sidebarId",sidebarId2:"sidebarId2"},features:[ee([he,Z,W,Ei]),xe],decls:63,vars:48,consts:[["userDropdown",""],["localeDropdown",""],["themeDropdown",""],[1,"px-4",3,"fluid"],[2,"max-width","12%","cursor","pointer",3,"routerLink","ngStyle"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],["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"],["class","ai-toggle btn","cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",3,"cSidebarToggle",4,"ngIf"],["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"],[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"],[3,"close"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"ai-toggle","btn",3,"cSidebarToggle"],["src","./assets/images/ai_icon.png","alt","AI Logo","height","25",1,"ai-logo"],["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"],["src","./assets/images/route.png","alt","Guided Setup","height","15",1,"ai-logo"],[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 a=w();At(0),o(1,"c-container",3)(2,"c-sidebar-brand",4)(3,"img",5),y("error",function(u){return f(a),v(i.onImageError(u))}),s()(),x(4,p0,5,3,"c-input-group",6)(5,u0,2,7,"c-sidebar-brand",7)(6,h0,1,0,"app-search-overlay",8),o(7,"c-header-nav",9),x(8,m0,1,0,"ng-container",10)(9,g0,1,0,"ng-container",10)(10,_0,1,0,"ng-container",10)(11,f0,4,4,"button",11),s()(),Ut(),x(12,eu,8,17,"ng-template",null,0,ei)(14,iu,8,2,"ng-template",null,1,ei)(16,au,7,3,"ng-template",null,2,ei)(18,uu,53,40,"app-modal",12)(19,hu,1,0,"app-crashplan-nav",13),o(20,"div",14)(21,"div",15)(22,"div",16)(23,"div",17)(24,"h4",18),p(25,"Step 1: Provide Consent"),s(),o(26,"a",19),C(27,"i",20),s()(),o(28,"div",21)(29,"h4"),p(30),m(31,"translate"),s(),o(32,"c-callout",22),p(33),m(34,"translate"),s()(),o(35,"div",23)(36,"button",24),y("click",function(){return f(a),v(i.denyConsentFlow())}),p(37,"Cancel"),s(),o(38,"button",25),y("click",function(){return f(a),v(i.proceedForConsentFlow())}),p(39,"Proceed"),s()()()()(),o(40,"div",14)(41,"div",15)(42,"div",16)(43,"div",17)(44,"h4",18),p(45),m(46,"translate"),s()(),o(47,"div",21)(48,"h4"),p(49),m(50,"translate"),s()(),o(51,"div",23)(52,"button",24),y("click",function(){return f(a),v(i.denyAssetConfigurationFlow())}),p(53),m(54,"translate"),s(),o(55,"button",25),y("click",function(){return f(a),v(i.proceedForAssetConfigurationFlow())}),p(56),m(57,"translate"),s()()()()(),C(58,"app-upload-panel")(59,"app-download-panel"),x(60,mu,2,11,"app-modal",26)(61,gu,2,11,"app-modal",26)(62,_u,2,11,"app-modal",26)}if(n&2){let a=pe(13),d=pe(15),u=pe(17);r(),c("fluid",!0),r(),c("routerLink",i.isMspEnabled&&$(36,Is).includes(i.userType)?$(37,Ps):$(38,Is).includes(i.userType)?$(39,Ds):$(40,Os))("ngStyle",i.userType==="superAdmin"?$(41,Xp):$(42,e0)),r(),c("src",i.parabluLogo,we),r(),c("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")&&!$(43,t0).includes(i.userType)&&i.onlySyncEnv=="false"),r(),c("ngIf",i.showCenterBrandLogo),r(),c("ngIf",i.isOverlayVisible),r(2),c("ngTemplateOutlet",d),r(),c("ngTemplateOutlet",u),r(),c("ngTemplateOutlet",a),r(),c("ngIf",i.conversationalAI),r(7),c("ngIf",i.stylePackDetails),r(),c("ngIf",i.showCrashplanEndpointLicenseModal),r(),c("ngStyle",A(44,Es,i.displayConsentRemainder)),r(10),_(g(31,24,"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),_(g(34,26,"Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.")),r(7),c("ngStyle",A(46,Es,i.displayAssetConfigurationRemainder)),r(5),_(g(46,28,"Step 2: Configure Assets")),r(4),T(" ",g(50,30,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),""),r(4),_(g(54,32,"Cancel")),r(3),_(g(57,34,"Proceed")),r(4),c("ngIf",i.redirectConsentStyle),r(),c("ngIf",i.redirectPaddleConsentStyle),r(),c("ngIf",i.redirectProductConsentStyle)}},dependencies:[bi,bs,Ci,Mo,ft,no,ko,Wn,Pn,bo,vo,mi,fo,yo,_o,_i,vi,fi,ks,ne,Ge,ie,ct,he,me,ze,xi,vt,ns,gi,ge,Ts,as],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}.ai-toggle[_ngcontent-%COMP%]{margin-inline-start:-14px;margin-left:30px;background:#deeafd;border-radius:30px}.active[_ngcontent-%COMP%]{background-color:--cui-sidebar-nav-link-active-bg}"]})}}return t})();var fu=4,vu=.001,bu=1e-7,yu=10,Lt=11,Di=1/(Lt-1),Cu=typeof Float32Array=="function";function Us(t,l){return 1-3*l+3*t}function Fs(t,l){return 3*l-6*t}function Bs(t){return 3*t}function Oi(t,l,e){return((Us(l,e)*t+Fs(l,e))*t+Bs(l))*t}function Rs(t,l,e){return 3*Us(l,e)*t*t+2*Fs(l,e)*t+Bs(l)}function Su(t,l,e,n,i){let a,d,u=0;do d=l+(e-l)/2,a=Oi(d,n,i)-t,a>0?e=d:l=d;while(Math.abs(a)>bu&&++u<yu);return d}function wu(t,l,e,n){for(let i=0;i<fu;++i){let a=Rs(l,e,n);if(a===0)return l;let d=Oi(l,e,n)-t;l-=d/a}return l}function xu(t){return t}function ku(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 xu;let i=Cu?new Float32Array(Lt):new Array(Lt);for(let d=0;d<Lt;++d)i[d]=Oi(d*Di,t,e);function a(d){let u=0,b=1,k=Lt-1;for(;b!==k&&i[b]<=d;++b)u+=Di;--b;let I=(d-i[b])/(i[b+1]-i[b]),M=u+I*Di,D=Rs(M,t,e);return D>=vu?wu(d,M,t,e):D===0?M:Su(d,u,u+Di,t,e)}return function(u){return u===0?0:u===1?1:Oi(a(u),l,n)}}var Tu=new rt("SMOOTH_SCROLL_OPTIONS"),Vs=(()=>{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=Y({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):ho(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new Ve).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return Ne(Q(e,"wheel",{passive:!0,capture:!0}),Q(e,"touchmove",{passive:!0,capture:!0}),n).pipe(ln(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new nt(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let a=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*a,e.currentY=e.startY+(e.y-e.startY)*a,this._scrollElement(e.scrollable,e.currentX,e.currentY),Gt.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),a={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:ku(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(d=>{Qe(null).pipe(dn(()=>this._step(a).pipe(hn(u=>this._isFinished(u,i,d)))),Ce(this._interrupted(e,i)),pn(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(An(this._platform)){let i=this._getElement(e),a=getComputedStyle(i).direction==="rtl",d=Ii(),u=Ae(Y(Y({},this._defaultOptions),n),{left:n.left==null?a?n.end:n.start:n.left,right:n.right==null?a?n.start:n.end:n.right});return u.bottom!=null&&(u.top=i.scrollHeight-i.clientHeight-u.bottom),a&&d!==0?(u.left!=null&&(u.right=i.scrollWidth-i.clientWidth-u.left),d===2?u.left=u.right:d===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 a=this._getElement(e),d=this._getElement(n,a),u=Ae(Y({},i),{left:d.offsetLeft+(i.left||0),top:d.offsetTop+(i.top||0)});return d?this.scrollTo(a,u):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(H(ue),H(yn),H(Tu,8))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Eu=["scrollbarY"],Mu=["scrollbarX"],Pu=["*"];function Du(t,l){if(t&1&&C(0,"scrollbar-x",null,0),t&2){let e=h(2);Ue("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function Ou(t,l){if(t&1&&C(0,"scrollbar-y",null,1),t&2){let e=h(2);Ue("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Au(t,l){if(t&1&&(At(0),x(1,Du,2,2,"scrollbar-x",5)(2,Ou,2,2,"scrollbar-y",5),Ut()),t&2){let e=h();r(),c("ngIf",e.state.horizontalUsed),r(),c("ngIf",e.state.verticalUsed)}}var Uu=(()=>{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)(S(le))}}static{this.\u0275dir=de({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Gs(t){return G(()=>{t.onselectstart=()=>!1})}function zs(t){return G(()=>{t.onselectstart=null})}function Ke(){return G(t=>t.stopPropagation())}function Yi(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var Ki=(()=>{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 nt(i=>{let a=Q(this.nativeElement,"mousemove",{passive:!0}),d=e?a:a.pipe(Ke()),u=Q(this.nativeElement,"mouseleave",{passive:!0}).pipe(K(()=>!1));Ne(d,u).pipe(G(b=>i.next(b)),Ce(n)).subscribe()}),this.clicked=new nt(i=>{let a=Q(this.nativeElement,"mousedown",{passive:!0}).pipe(G(u=>i.next(u))),d=Q(this.nativeElement,"mouseup",{passive:!0}).pipe(G(()=>i.next(!1)));a.pipe(Et(()=>d),Ce(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)(S(le))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),Te=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Xi=(()=>{class t{get clicked(){let e=Q(this.trackElement,"mousedown",{passive:!0}).pipe(Ke(),Gs(this.document)),n=Q(this.document,"mouseup",{passive:!0}).pipe(Ke(),zs(this.document),Et(()=>rn));return Ne(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 Qe(e).pipe(K(a=>a[this.pageProperty]),K(a=>(a-this.offset-n/2)/this.size*i),G(a=>{this.cmp.scrollTo(Ae(Y({},this.mapToScrollToOption(a)),{duration:Li(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(HTMLElement),S(Document))}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Ji=(()=>{class t extends Xi{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)(S(Te),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarTrackX",""]],features:[xe]})}}return t})(),Qi=(()=>{class t extends Xi{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)(S(Te),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarTrackY",""]],features:[xe]})}}return t})(),js=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return Q(this.thumbElement,"mousedown",{passive:!0}).pipe(Ke())}constructor(e,n,i,a){this.cmp=e,this.track=n,this.thumbElement=i,this.document=a,this._dragging=new Ve,this.dragging=this._dragging.pipe(Wt())}update(){let e=Fu(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=Bu(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);Gt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,a=Qe(e).pipe(Gs(this.document),G(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),d=Q(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Ke()),u=Q(this.document,"mouseup",{capture:!0}).pipe(Ke(),zs(this.document),G(()=>this.setDragging(!1)));return a.pipe(K(b=>b[this.pageProperty]),K(b=>b-this.dragStartOffset),an(b=>d.pipe(K(k=>k[this.clientProperty]),K(k=>k-this.track.offset),K(k=>i*(k-b)/n),K(k=>this.handleDrag(k,i)),G(k=>this.scrollTo(k)),Ce(u))))}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(Xi),S(HTMLElement),S(Document))}}static{this.\u0275dir=de({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function Fu(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function Bu(t,l,e){return t*e/l}var Ns=(()=>{class t extends js{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,a,d){super(e,n,i.nativeElement,a),this.cmp=e,this.track=n,this.element=i,this.document=a,this.dir=d}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(Ji),S(le),S(ue),S(Hi))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarThumbX",""]],features:[xe]})}}return t})(),Ls=(()=>{class t extends js{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,a){super(e,n,i.nativeElement,a),this.cmp=e,this.track=n,this.element=i,this.document=a}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)(S(Te),S(Qi),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarThumbY",""]],features:[xe]})}}return t})(),Ws=(()=>{class t{constructor(e,n,i,a,d){this.el=e,this.cmp=n,this.platform=i,this.document=a,this.zone=d,this.destroyed=new Ve}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new Ve,this.viewportThumbClicked=new Ve,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(K(a=>a?Yi(a,this.el.getBoundingClientRect()):!1),Wt(),G(a=>this.document.onselectstart=a?()=>!1:null)),this.cmp.viewport.clicked.pipe(G(a=>{a?Yi(a,this.thumb.clientRect)?this.viewportThumbClicked.next(a):Yi(a,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(a)):this.cmp.setClicked(!1)}),Ce(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),Ne(i.pipe(G(a=>this.setHovered(a))),e.pipe(Et(a=>this.thumb.dragged(a))),n.pipe(Et(a=>this.track.onTrackClicked(a,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=Q(this.el,"mouseenter",{passive:!0}).pipe(Ke(),K(()=>!0)),n=Q(this.el,"mouseleave",{passive:!0}).pipe(Ke(),K(()=>!1));return Ne(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(Ce(this.destroyed)).subscribe(),Ne(this.cmp.scrolled,this.cmp.updated).pipe(G(()=>this.thumb?.update()),Ce(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)(S(HTMLElement),S(Te),S(ht),S(Document),S(Ie))}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Ru=(()=>{class t extends Ws{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,a,d){super(e.nativeElement,n,i,a,d),this.cmp=n,this.platform=i,this.document=a,this.zone=d}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Te),S(ht),S(ue),S(Ie))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(q(Qi,7),q(Ls,7)),n&2){let a;z(a=j())&&(i.track=a.first),z(a=j())&&(i.thumb=a.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(o(0,"div",0),C(1,"div",1),s()),n&2&&(Ot("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Ot("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Qi,Ls],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})(),Vu=(()=>{class t extends Ws{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,a,d){super(e.nativeElement,n,i,a,d),this.cmp=n,this.platform=i,this.document=a,this.zone=d}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Te),S(ht),S(ue),S(Ie))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(q(Ji,7),q(Ns,7)),n&2){let a;z(a=j())&&(i.track=a.first),z(a=j())&&(i.thumb=a.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(o(0,"div",0),C(1,"div",1),s()),n&2&&(Ot("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Ot("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Ji,Ns],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})(),Nu=new rt("NG_SCROLLBAR_OPTIONS"),Hs={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},qs=(()=>{class t{constructor(e){this.globalOptions=e?Y(Y({},Hs),e):Hs,this.rtlScrollAxisType=Ii()}static{this.\u0275fac=function(n){return new(n||t)(H(Nu,8))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Lu=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new nn(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&Q(this.document.defaultView,"resize",{passive:!0}).pipe(Vi(this.manager.globalOptions.windowResizeDebounce),K(()=>this.getNativeScrollbarSize()),Wt(),G(a=>this._scrollbarSize.next(a))).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)(H(ue),H(qs),H(ht))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hu=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=tn.EMPTY,this._subscriber=i.scrollbarSize.subscribe(a=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${a}px`,Cn.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(ot),S(Lu))}}static{this.\u0275dir=de({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),Gu=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=Li(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=We(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 Se,!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 nt(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(Vi(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S(ht),S(Te))}}static{this.\u0275dir=de({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),$s=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=We(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=We(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=We(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=We(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=We(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=We(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,a,d,u){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=a,this.smoothScroll=d,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 Se,this.state={},this.destroyed=new Ve}updateState(){let e=!1,n=!1,i=!1,a=!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")&&(a=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||a),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:a})}setState(e){this.state=Y(Y({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(G(i=>n=i),K(i=>i.target[e]),un(),jt(([i,a])=>i!==a),K(()=>n))}setHovered(e){this.zone.run(()=>this.setState(Y({},e)))}setDragging(e){this.zone.run(()=>this.setState(Y({},e)))}setClicked(e){this.zone.run(()=>this.setState({scrollbarClicked:e}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let e=Q(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(sn(this.scrollAuditTime)):e,this.scrolled=e.pipe(Ce(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(G(()=>this.update()),Ce(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)(S(le),S(Ie),S(Ee),S(Hi),S(Vs),S(qs))}}static{this.\u0275cmp=L({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,a){if(n&1&&In(a,Ki,7),n&2){let d;z(d=j())&&(i.customViewPort=d.first)}},viewQuery:function(n,i){if(n&1&&(q(Eu,5,le),q(Mu,5,le),q(Ki,7)),n&2){let a;z(a=j())&&(i.scrollbarY=a.first),z(a=j())&&(i.scrollbarX=a.first),z(a=j())&&(i.defaultViewPort=a.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("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:[ee([{provide:Te,useExisting:t}]),qt],ngContentSelectors:Pu,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&&(kn(),o(0,"div",2)(1,"div",3),y("resizeSensor",function(){return i.update()}),o(2,"div",4)(3,"div"),Tn(4),s()()(),x(5,Au,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:[ie,Uu,Gu,Ki,Hu,Vu,Ru],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 Zs=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"}];var zu=["sidebar2"];function ju(t,l){if(t&1&&(o(0,"div",31),C(1,"div",7),o(2,"div",17)(3,"div",18)(4,"div",19),p(5),m(6,"translate"),s(),o(7,"div",20),p(8),s()(),o(9,"div",32),C(10,"i",33),s()()()),t&2){let e=h();r(),ce("background-image","url("+e.neilLogo+")"),r(4),_(g(6,4,"AI Help")),r(3),_(e.todaysDate)}}var Ys=(()=>{class t{constructor(e,n,i,a,d,u,b){this.authService=e,this.router=n,this.apiService=i,this.toastr=a,this.sharedService=d,this.TranslateService=u,this.userRoleService=b,this.sidebarId2="sidebar2",this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.islean=!1,this.conversationalAI=!1,this.currentYear=new Date().getFullYear(),this.displayCreateStyle=!1,this.neilLogo="",this.userLogo="",this.userName="",this.aiLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.answer="",this.sourcesLinks=[],this.session_id="",this.index=0,this.userType="",this.isSidebarOpen=!1,this.loading=!1,this.closeChatbot=()=>{this.displayCreateStyle=!1},this.collapses=[!1,!1,!1,!1],this.neilLogo="./assets/images/ai_icon.png",this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.init()}init(){return N(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.userName=atob(this.sharedService.getDataByKey("userName"))})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var a=n+":"+i;return a}closeSidebar(){this.sidebar2.close?.()}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}onScrollbarUpdate(e){}startOverChat(){this.session_id="";let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.loading=!0,this.createChatLayoutBot(this.TranslateService.instant("Hello ! Ask me anything about CrashPlan Software"),"",0),this.apiService.startOverChat(this.islean).subscribe(n=>{this.loading=!1,this.session_id=n.body.session_id},n=>{switch(this.loading=!1,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 a=this.neilLogo,d=this.get(".msger-chat");k(this.TranslateService.instant("AI Help"),a,"left",e,n);function u(I){var M="0"+I.getHours(),D="0"+I.getMinutes();M=M.slice(-2),D=D.slice(-2);var P=M+":"+D;return P}function b(I,M){return Math.floor(Math.random()*(M-I)+I)}function k(I,M,D,P,O){let U=u(new Date),oe="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);P=P.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let De="";O==""&&i==0?De=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${M}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${I}</div>
                <div class="msg-info-time">${U}</div>
              </div>
              <div class="msg-text">${P}</div>
            </div>
          </div>`:De=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${M}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${I}</div>
                <div class="msg-info-time">${U}</div>
              </div>
              <div class="msg-text">${P}</div>
              ${O&&O.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;">
                ${O.map(F=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${F.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${F.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${F.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,d.insertAdjacentHTML("beforeend",De),setTimeout(()=>{let F=document.getElementById(`${oe}-toggle`),Oe=document.getElementById(`${oe}-sources`);F&&Oe&&F.addEventListener("click",function(){let Ri=Oe.style.display==="none";Oe.style.display=Ri?"block":"none",F.innerText=Ri?"Hide sources":"Show sources"})},0),d.scrollTop+=500}}showSources(e){let n=document.getElementById(`sources-${e}`);n&&(n.style.display=n.style.display==="none"?"block":"none")}createChatLayoutUser(e){let n=this.userLogo,i=this.get(".msger-chat"),a=atob(this.sharedService.getDataByKey("userName"));b(a,n,"right",e);function d(k){var I="0"+k.getHours(),M="0"+k.getMinutes();I=I.slice(-2),M=M.slice(-2);var D=I+":"+M;return D}function u(k,I){return Math.floor(Math.random()*(I-k)+k)}function b(k,I,M,D){var P=d(new Date);let O='<div class="msg '+M+'-msg"><div class="msg-img" style="background-image: url('+I+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+k+'</div><div class="msg-info-time">'+P+'</div></div><div class="msg-text">'+D+"</div></div></div>";i.insertAdjacentHTML("beforeend",O),i.scrollTop+=500}}getChatbotResults(){if(!this.query){this.toastr.info("Please specify a question.","Info");return}this.chatHistory=this.getChatHistory(),this.index=this.index+1,this.createChatLayoutUser(this.query),this.loading=!0,this.apiService.getChatbotResults(this.query,this.session_id,this.islean).subscribe(e=>{this.loading=!1,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.loading=!1,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)(S(Z),S(re),S(W),S(be),S(ye),S(ae),S(fe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-right"]],viewQuery:function(n,i){if(n&1&&q(zu,5),n&2){let a;z(a=j())&&(i.sidebar2=a.first)}},inputs:{sidebarId2:"sidebarId2",conversationalAI:"conversationalAI"},features:[ee([Z,W])],decls:50,vars:33,consts:[["sidebar2","cSidebar"],["colorScheme","dark","id","sidebar2","placement","end",1,"d-print-none","sidebar","right-sidebar",3,"visible"],[1,"col-lg-12",2,"padding-right","0px"],[1,"chat","col-lg-12","fullwidth",2,"overflow-y","auto","padding-right","0px"],[1,"msger"],[1,"msger-header"],[1,"msger-header-title"],[1,"msg-img"],[1,"msg-ttl"],[1,"msger-header-options"],[1,"chatStart","btn","btn-outline-secondary",2,"font-size","14px","text-decoration","underline","cursor","pointer",3,"click"],[1,"fa","fa-edit"],[1,"close-link","btn","btn-outline-secondary",2,"margin-left",".4em","padding","3.6px 7px"],["cHeaderToggler","","toggle","visible",2,"font-size","14px","text-decoration","underline","cursor","pointer",3,"cSidebarToggle"],[1,"fa","fa-window-close"],[1,"msger-chat",2,"height","550px","overflow","scroll"],[1,"msg","left-msg"],[1,"msg-bubble"],[1,"msg-info"],[1,"msg-info-name"],[1,"msg-info-time"],[1,"msg-text",3,"innerHTML"],["class","msg left-msg bottom-padded",4,"ngIf"],[1,"background-standard-tile"],["for","query",1,"text-bold"],["ng-submit","getChat()"],[1,"col-lg-12"],["type","text","localizedValidate","","name","query","id","query","autocomplete","off","autofocus","",1,"form-control",2,"background-color","whitesmoke","color","black",3,"ngModelChange","ngModel","placeholder"],[1,"col-lg-12",2,"margin","10px 0px 10px 0px"],["id","submitChat",1,"btn","btn-primary","pull-right",3,"click"],[1,"text-center","disclaimer-text"],[1,"msg","left-msg","bottom-padded"],[1,"msg-text"],[1,"fa","fa-spinner","fa-4x","fa-pulse","fa-fw"]],template:function(n,i){if(n&1){let a=w();o(0,"c-sidebar",1,0)(2,"div",2)(3,"div",3)(4,"section",4)(5,"header",5)(6,"div",6),C(7,"div",7),o(8,"span",8),p(9),m(10,"translate"),s()(),o(11,"div",9)(12,"span")(13,"a",10),y("click",function(){return f(a),v(i.startOverChat())}),p(14),m(15,"translate"),C(16,"i",11),s()(),o(17,"span",12)(18,"a",13),C(19,"i",14),s()()()(),o(20,"main",15)(21,"div",16),C(22,"div",7),o(23,"div",17)(24,"div",18)(25,"div",19),p(26),m(27,"translate"),s(),o(28,"div",20),p(29),s()(),C(30,"div",21),m(31,"translate"),s()()(),x(32,ju,11,6,"div",22),o(33,"c-card",23)(34,"c-card-header")(35,"label",24),p(36),m(37,"translate"),s()(),o(38,"c-card-body")(39,"form",25)(40,"div",26)(41,"input",27),m(42,"translate"),V("ngModelChange",function(u){return f(a),R(i.query,u)||(i.query=u),v(u)}),s()(),o(43,"div",28)(44,"button",29),y("click",function(){return f(a),v(i.getChatbotResults())}),p(45),m(46,"translate"),s()()()()(),o(47,"div",30),p(48),m(49,"translate"),s()()()()()}n&2&&(c("visible",i.isSidebarOpen),r(7),ce("background-image","url("+i.neilLogo+")"),r(2),_(g(10,17,"AI Help")),r(5),T("",g(15,19,"Start Over")," "),r(4),c("cSidebarToggle",i.sidebarId2),r(4),ce("background-image","url("+i.neilLogo+")"),r(4),_(g(27,21,"AI Help")),r(3),_(i.todaysDate),r(),c("innerHTML",g(31,23,"Hello ! Ask me anything about CrashPlan Software"),ve),r(2),c("ngIf",i.loading),r(4),_(g(37,25,"Query :")),r(5),B("ngModel",i.query),c("placeholder",g(42,27,"Ask a question here...")),r(4),_(g(46,29,"Send")),r(3),_(g(49,31,"This chatbot uses AI to generate responses and may not be always accurate or complete.")))},dependencies:[Si,gt,mt,_t,wi,ft,je,Vo,bt,yt,Bo,Ct,Ro,ne,ie,me,$e,qe,Ze,Ye,ge,Ci],styles:[".right-sidebar[_ngcontent-%COMP%]{position:relative!important;right:0;top:0;width:380px!important;height:100%;background-color:#f0f0f0;overflow-y:auto;--cui-sidebar-width: 380px;z-index:0}.form-check-input[_ngcontent-%COMP%]{background-color:#f0f0f0}.form-check-input[_ngcontent-%COMP%]:checked{background-color:#062d4d}input[_ngcontent-%COMP%]::placeholder{opacity:.5;color:#000}.background-standard-tile[_ngcontent-%COMP%]{background-color:#deeafd!important;color:#666}.fullwidth[_ngcontent-%COMP%]{height:calc(100vh - 10em)}.bottom-padded[_ngcontent-%COMP%]{margin-bottom:20px!important}.text-bold[_ngcontent-%COMP%]{font-weight:700}.disclaimer-text[_ngcontent-%COMP%]{font-size:.6em;vertical-align:bottom;padding-top:.4em}"]})}}return t})();function Wu(t,l){t&1&&(o(0,"div",0),C(1,"div",1),s())}var Ks=(()=>{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(G(e=>{e instanceof Gn?this.loadingService.loadingOn():e instanceof zn&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(ai),S(re))}}static{this.\u0275cmp=L({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(x(0,Wu,2,0,"div",0),m(1,"async")),n&2&&Kt(g(1,1,i.loading$)?0:-1)},dependencies:[os,ti],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 Ai={provide:"httpHeaders",useFactory:t=>new Fn({"Content-Type":"application/json",Accept:"application/json",token:t.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[Z]};var qu=t=>({cloudPropertyElement:t}),$u=t=>({"opacity-50":t});function Zu(t,l){if(t&1){let e=w();o(0,"c-sidebar",13,0)(2,"c-sidebar-header",14)(3,"a",15),y("click",function(){f(e);let i=h();return v(i.togglePin())}),C(4,"i",16),s()(),o(5,"ng-scrollbar",17,1),y("updated",function(){f(e);let i=pe(1),a=h();return v(a.onScrollbarUpdate(i))}),C(7,"c-sidebar-nav",18,2),s()()}if(t&2){let e=h();r(4),ce("transform",e.isSidebarPinned?"none":"rotate(45deg)"),c("ngClass",A(4,$u,!e.isSidebarPinned)),r(3),c("navItems",e.navItems)}}function Yu(t,l){t&1&&C(0,"app-default-right")}var Js=(()=>{class t{constructor(e,n,i,a,d,u,b,k){this.cdr=e,this.router=n,this.licenseCheckService=i,this.userRoleService=a,this.apiService=d,this.TranslateService=u,this.toastr=b,this.configService=k,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.isSidebarPinned=!0,this.userLicenses={},this.sidebarId="sidebar1",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 I=localStorage.getItem("theme-default"),M=I||localStorage.setItem("theme-default",'"light"');this.imageSrc[1]=`/brandings/${k.cloudName}/brandings/login_logo.png`,this.imageSrc[0]=`/brandings/${k.cloudName}/brandings/header_logo.png`,this.parabluLogo=M==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return N(this,null,function*(){this.navItems=Zs(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 pt&&this.getCloudProperties()}),this.getCloudProperties()})}togglePin(){this.isSidebarPinned=!this.isSidebarPinned}safeStringify(e,n=2){let i=new WeakSet;return JSON.stringify(e,function(a,d){if(typeof d=="object"&&d!==null){if(i.has(d))return"[Circular]";i.add(d)}return d},n)}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 N(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.inclusionLicenses.includes("backup_enabled")&&!this.inclusionLicenses.includes("onedrive_backup_enabled")&&!this.inclusionLicenses.includes("sharepoint_backup_enabled")&&!this.inclusionLicenses.includes("gdrive_backup_enabled")&&!this.inclusionLicenses.includes("gmail_backup_enabled")&&this.inclusionLicenses.includes("sync_enabled")?e.visible=!1:e.visible=!0:e.key=="Unusual Activity Dashboard"?this.inclusionLicenses.includes("rwdetectionenabled")&&(this.userType=="admin"||this.userType=="superAdmin")?e.visible=this.shouldShowSettings():e.visible=!1:e.key=="Settings"&&(this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")||e.key=="User Migration"&&(this.userType=="readOnlyAdmin"||this.inclusionLicenses.includes("gmail_backup_enabled")||this.inclusionLicenses.includes("gdrive_backup_enabled"))?e.visible=!1:e.key==="My BluSync"?this.userLicenses.userSyncEnabled=="true"?e.visible=!0:e.visible=!1:e.visible=this.shouldShowSettings(),e.key==="My BluVault"&&(!this.inclusionLicenses.includes("backup_enabled")&&!this.inclusionLicenses.includes("onedrive_backup_enabled")&&!this.inclusionLicenses.includes("sharepoint_backup_enabled")&&!this.inclusionLicenses.includes("gdrive_backup_enabled")&&!this.inclusionLicenses.includes("gmail_backup_enabled")&&this.inclusionLicenses.includes("sync_enabled")?e.visible=!1:e.visible=!0),e.key==="Manage assets"&&(!this.inclusionLicenses.includes("backup_enabled")&&!this.inclusionLicenses.includes("onedrive_backup_enabled")&&!this.inclusionLicenses.includes("sharepoint_backup_enabled")&&!this.inclusionLicenses.includes("gdrive_backup_enabled")&&!this.inclusionLicenses.includes("gmail_backup_enabled")&&this.inclusionLicenses.includes("sync_enabled")?e.visible=!1:e.visible=this.shouldShowSettings()),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),this.userType=="readOnlyAdmin"&&e.key=="Support"&&(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)(S(Ee),S(re),S(Pe),S(fe),S(W),S(ae),S(be),S(_e))}}static{this.\u0275cmp=L({type:t,selectors:[["app-dashboard"]],inputs:{sidebarId:"sidebarId"},features:[ee([Ai,St,wt,Jo,ss])],decls:10,vars:9,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],[1,"app-shell","d-flex","flex-row","min-vh-100","hight-100-vh"],[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","conversationalAI"],[1,"app-shell","d-flex","flex-row","hight-100-vh"],["class","d-print-none sidebar sidebar-fixed left-sidebar","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],["breakpoint","lg",1,"wrapper-right","d-flex","flex-column","h-auto",2,"display","flex","vertical-align","top","height","calc(100vh - (8em + 10px)) !important","overflow","auto"],[3,"routerOutletData"],[4,"ngIf"],[3,"detectRouteTransitions"],[3,"conversationalAI"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","left-sidebar"],["cSidebarToggle","sidebar1","toggle","unfoldable",2,"padding","0 4px","cursor","pointer","width","fit-content","display","flex","justify-content","end","float","right"],["cSidebarToggler","","aria-label","Toggle sidebar pin",2,"text-decoration","none",3,"click"],[1,"fas","fa-thumbtack",3,"ngClass"],["pointerEventsMethod","scrollbar","visibility","hover",1,"overflow",2,"margin-top","16px",3,"updated"],["dropdownMode","close","compact","",3,"navItems"]],template:function(n,i){n&1&&(o(0,"div",3)(1,"div",4),C(2,"app-default-header",5),o(3,"div",6),x(4,Zu,9,6,"c-sidebar",7),o(5,"c-container",8),C(6,"router-outlet",9),s(),x(7,Yu,1,0,"app-default-right",10),s(),C(8,"loading-indicator",11)(9,"app-default-footer",12),s()()),n&2&&(r(2),c("cShadowOnScroll","sm")("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI),r(2),c("ngIf",i.showSideBar),r(2),c("routerOutletData",A(7,qu,i.cloudPropertyElement)),r(),c("ngIf",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI),r(),c("detectRouteTransitions",!0),r(),c("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI))},dependencies:[Si,Ys,Do,$s,Oo,ft,Po,As,mo,bi,oi,ne,He,ie,vs,Ks],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)}.hight-100-vh[_ngcontent-%COMP%]{height:100vh;overflow:hidden;--cui-sidebar-width: 380px}.wrapper-right[_ngcontent-%COMP%]{width:100%;will-change:auto;transition:padding .15s;--cui-sidebar-width: 380px;--cui-sidebar-occupy-end:380px}.left-sidebar[_ngcontent-%COMP%]{position:relative!important;height:100%;background-color:#f0f0f0;overflow-y:auto;z-index:0;box-shadow:0 15px 15px -5px #0003;margin:0 5px;border:var(--border);border-radius:5px}.overflow[_ngcontent-%COMP%]{height:calc(100% - 16px)}"]})}}return t})();var Qs=(()=>{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)(S(be),S(ae))}}static{this.\u0275cmp=L({type:t,selectors:[["app-toastalert"]],decls:6,vars:6,consts:[["cButton","","color","success",1,"m-1",3,"click"]],template:function(n,i){n&1&&(o(0,"p"),p(1),m(2,"translate"),s(),o(3,"button",0),y("click",function(){return i.showOnSuccess()}),p(4),m(5,"translate"),s()),n&2&&(r(),_(g(2,2,"toastalert works!")),r(3),_(g(5,4,"Add toast")))},dependencies:[ge],encapsulation:2})}}return t})();var E=(()=>{class t{constructor(e,n,i,a,d){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=a,this.licenseCheckService=d}canActivate(e,n){return N(this,null,function*(){let i=yield this.userRoleService.getUserRole(),a=e.data?.roles,d=e.data?.licenses;if(a&&i&&a.includes(i)){if(!d||d.length===0)return!0;let b=yield this.licenseCheckService.getInclusionLicensesNew(),k=yield this.userRoleService.getUserFlags(),I={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"},M=i==="admin"||i==="superAdmin"||i==="readOnlyAdmin"||i==="delegatedAdmin";if(d.some(P=>{if(!b.includes(P))return!1;if(M)return!0;let U=I[P];return U?k[U]==="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)(H(re),H(ye),H(Z),H(fe),H(Pe))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ku=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],Ju=[import("./chunk-KXF3653R.js"),import("./chunk-JANDBO5L.js"),import("./chunk-IXNMGWOJ.js"),import("./chunk-HP5U426Y.js"),import("./chunk-SCB3RQZJ.js"),import("./chunk-FQTPLNN6.js")],Qu=["/edit"],Xu=[import("./chunk-RB6Y6ISB.js")],Xs=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Js,children:[{path:"dashboard",canActivate:[E],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-X3TUIUWR.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[E],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-AC5HTOPM.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[E],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-J2YUPAC5.js").then(t=>t.routes)},{path:"bluvault",canActivate:[E],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-AXZGSFCS.js").then(t=>t.routes)},{path:"backup/files",canActivate:[E],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-HY74B73N.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[E],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-6FSDGWYN.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[E],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-63FXOZ5B.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[E],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-UH772P4P.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[E],data:{roles:["admin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-63FXOZ5B.js").then(t=>t.routes)},{path:"pms",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-O3UBTGXU.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JPTRM5AN.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OWPOGX4X.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2LSLFPR6.js").then(t=>t.routes)},...Ku.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>Ju[l].then(e=>e.routes)})),...Qu.map((t,l)=>({path:`pms/spAdmin/:productKey${t}`,canActivate:[E],data:{roles:["superAdmin"]},loadChildren:()=>Xu[l].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LL7VZ22J.js").then(t=>t.routes)},{path:"settings",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7TQL6QF6.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3A4S3DCE.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KF6ONSE6.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ARKNCLPN.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-OWTVWRK6.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GHP2C2DP.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XN7OREIX.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JASIBJRF.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JASIBJRF.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BQ55SZ7Q.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FC2P2SGZ.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-VE5QHZDG.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-N33UCZVG.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-GHP2C2DP.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-CMX7C5DE.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-H3ZOZEVI.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-PLZNXC7A.js").then(t=>t.routes)},{path:"settings/m365Consent",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-34YC2WDU.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-WGXZEQRK.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-OWTVWRK6.js").then(t=>t.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-34YC2WDU.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-E53H3IFH.js").then(t=>t.routes)},{path:"userMigration",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-DDLUTB7X.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-4RYZL6GW.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FE74BTT4.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Q7YMG6ZU.js").then(t=>t.routes)},{path:"users",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7EOR5UPF.js").then(t=>t.routes)},{path:"users/create",canActivate:[E],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-26UCKASR.js").then(t=>t.routes)},{path:"users/edit",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-PHM545VM.js").then(t=>t.routes)},{path:"users/profile",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-NC6Y6D3Z.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3B5OT742.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3B5OT742.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-GVU4BJEH.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[E],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-KRPXEFAV.js").then(t=>t.routes)},{path:"infectedActivityHistory",canActivate:[E],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-BIHPC2FK.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-6OUCHDR2.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-JP3J4NMU.js").then(t=>t.routes)},{path:"support",canActivate:[E],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PLDDHMIJ.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[E],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-VWDCUKLS.js").then(t=>t.routes)},{path:"downloads",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-WVZBRAXZ.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VIIX53LW.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KBETT7Z7.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OE3I22DF.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6EZHPN4W.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6O7RUOEJ.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-F7VIQGJI.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QCQUEHQL.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-RZJ2MUQN.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WAIGLLIK.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3XKHIVXE.js").then(t=>t.routes)},{path:"report/syncOverview",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7A3MLYFL.js").then(t=>t.routes)},{path:"report/minicloudActivity",canActivate:[E],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7Z64CVFS.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-AGYJ5XD3.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[E],data:{roles:["admin"]},loadChildren:()=>import("./chunk-FHVFPAWH.js").then(t=>t.routes)},{path:"sync/files",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-OJEWPUZR.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-3S2PVCRK.js").then(t=>t.routes)},{path:"sync/myShares",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-RVAOXFJH.js").then(t=>t.routes)},{path:"sync/sharedWithMe",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-SH25X3GX.js").then(t=>t.routes)},{path:"sync/shareActivityHistory",canActivate:[E],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-QLACUE4U.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-4NXHGDMC.js").then(t=>t.routes)},{path:"fileArchivedView",loadComponent:()=>import("./chunk-WC4IBERE.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-M6FMDB2U.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-GRJ2PH35.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}}]},{path:"toast",component:Qs,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-C6A7N47S.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-T7R7UXUX.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-EZQ63SNE.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-GWDWXSMF.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-GWDWXSMF.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-GWDWXSMF.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-SW6HA2UT.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-GWDWXSMF.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-GWDWXSMF.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"share/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-CCRFTW6F.js").then(t=>t.ShareComponent),data:{title:"Share Page"}},{path:"logout",loadComponent:()=>import("./chunk-FBXEVMX7.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"register",loadComponent:()=>import("./chunk-NMIQD6AK.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"**",redirectTo:"404"}];var eh="@",th=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Xe(fn);loadingSchedulerFn=Xe(ih,{optional:!0});_engine;constructor(e,n,i,a,d){this.doc=e,this.delegate=n,this.zone=i,this.animationType=a,this.moduleImpl=d}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-2XLJFWEH.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new mn(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:a})=>{this._engine=i(this.animationType,this.doc);let d=new a(this.delegate,this._engine,this.zone);return this.delegate=d,d})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let a=new en(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let u=d.createRenderer(e,n);a.use(u),this.scheduler??=this.injector.get(bn,null,{optional:!0}),this.scheduler?.notify(10)}).catch(d=>{a.use(i)}),a}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){Sn()};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})(),en=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(a=>a.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith(eh)}},ih=new rt("");function Ht(t="animations"){return Zt("NgAsyncAnimations"),gn([{provide:Yt,useFactory:(l,e,n)=>new th(l,e,n,t),deps:[ue,ni,Ie]},{provide:Pt,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ui=(()=>{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)(H(Me),H(String),H(String))};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})();var Fi=(()=>{class t{handleError(e){e?.name!=="HttpErrorResponse"&&e?.__fromInterceptor!==!0&&(ut.enableSentry&&Xa(e),console.error(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();function rh(t){return new Ui(t,"./assets/i18n/",".json")}var el={providers:[Vn(Nn()),{provide:Rn,useClass:$o,multi:!0},Mt(ci.forRoot({loader:{provide:li,useFactory:rh,deps:[Me]}})),qn(Xs,Yn({onSameUrlNavigation:"reload"}),$n({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),Zn(),Kn()),Mt(wi,Co),si,fs(),Ht("noop"),Wo({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Ht(),_e,{provide:$t,useClass:Fi}]};var tl={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:ls,Add_Exclusion_Folder:cs,Add_Exception_Folder:ds},{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",key2:"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:Gi,Add_Exclusion_Folder:zi},{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:Bt,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:"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:Bt,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:Gi,Add_Exclusion_Folder:zi},{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:Bt,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",clamavscanenabled:"clamavscanenabled"},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:Bt,Add_Exclusion_Folder:Rt}]};var Bi=class{handle(l){if(l.interpolateParams){let e=l.key.match(/\{\{ *[^} ]+ *\}\}/),n=l.key,i=l.interpolateParams;return e?.forEach(a=>{let d=a.replace(/\{\{|\}\}| */g,"");n=n.replace(a,i[d]||"")}),n}return l.key}};var il={provide:Dt,useFactory:t=>()=>{if(ut.enableSentry){let l;eo({dsn:void 0,environment:ut.production?"prod":"dev",tracesSampleRate:1,integrations:[to()],skipBrowserExtensionCheck:!0,beforeSend(e){return N(this,null,function*(){if(!t.baseFolder)return null;e?.extra?.body&&delete e.extra.body;try{e.contexts=e.contexts||{},e.contexts.page={url:document.location.href}}catch{}return fetch(t.protocol+t.baseFolder+ut.sentryEndpoint,{method:"POST",headers:{"Content-Type":"application/json","x-intake-secret":"test"},body:JSON.stringify({app:"angular",timestamp:Date.now(),event:e})}).catch(()=>{}),null})}})}},deps:[_e],multi:!0};var ah=window.btoa,oh=window.atob;window.atob=t=>{let l=oh(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 ah(e)};function sh(t,l){return new Ui(t,"./assets/i18n/",".json")}function lh(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 ch(t){return()=>zt(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()))}Un(gs,{providers:[me,Mt(ci.forRoot({loader:{provide:li,useFactory:sh,deps:[Me]},missingTranslationHandler:{provide:ao,useClass:Bi},defaultLanguage:"en"})),il,{provide:Dt,useFactory:lh,deps:[ae],multi:!0},{provide:On,useValue:{dateFormat:"dd-MMM-yyyy HH:mm:ss"}},...el.providers,{provide:$t,useClass:Fi},ai,{provide:Dt,useFactory:ch,deps:[_e],multi:!0},Ai,tl,Ht()]}).catch(t=>console.error(t));export{sh as HttpLoaderFactory,ch as loadConfig,lh as setupTranslateFactory};
