import{a as oi}from"./chunk-CI54BM33.js";import{$ as jr,$a as Wo,A as fr,Aa as vo,B as vr,Ba as yo,C as yr,Ca as bo,D as br,Da as Co,E as Cr,Ea as So,F as Sr,Fa as wo,G as wr,Ga as xo,H as xr,Ha as ko,I as kr,Ia as To,J as Tr,Ja as Io,K as Ir,Ka as Eo,L as Er,La as Mo,M as Mr,Ma as Po,N as Pr,Na as Do,O as Dr,Oa as Oo,P as Or,Pa as Ao,Q as Ar,Qa as Ro,R as Rr,Ra as Uo,S as Ur,Sa as Fo,T as Fr,Ta as Bo,U as Br,Ua as Vo,V as Vr,Va as No,W as Nr,Wa as Lo,X as Lr,Xa as Go,Y as Gr,Ya as Ho,Z as Hr,Za as zo,_ as zr,_a as jo,a as Wn,aa as Wr,ab as qo,b as qn,ba as qr,bb as $o,c as $n,ca as $r,d as Jn,da as Jr,e as Zn,ea as Zr,f as Yn,fa as Yr,g as Kn,ga as Kr,h as Qn,ha as Qr,i as Xn,ia as Xr,j as er,ja as eo,k as tr,ka as to,l as ir,la as io,m as nr,ma as no,n as rr,na as ro,o as or,oa as oo,p as ar,pa as ao,q as sr,qa as so,r as lr,ra as lo,s as cr,sa as co,t as dr,ta as po,u as pr,ua as uo,v as ur,va as mo,w as mr,wa as ho,x as hr,xa as go,y as gr,ya as _o,z as _r,za as fo}from"./chunk-S555YZ5B.js";import{d as qa,f as $a,g as Ja,i as Ya}from"./chunk-3DZZ5L4Z.js";import"./chunk-DSX3LQ3E.js";import{a as za}from"./chunk-HPMCZBWV.js";import{a as Ka}from"./chunk-3DHBBSKN.js";import{a as xi}from"./chunk-L2UMXKWY.js";import{a as Va,b as Ye}from"./chunk-INX3HLJK.js";import{a as Ct}from"./chunk-ORWL5BPF.js";import{a as St}from"./chunk-CCSK2WRD.js";import{k as Xo,l as Rt,m as ai,o as ea,q as si,s as ta,x as ia}from"./chunk-JBKSESFV.js";import{a as Bi,b as Vi,c as Ut,d as Ft,e as Qa,f as Xa,g as es}from"./chunk-ATRETRRG.js";import"./chunk-6H57ZDGU.js";import"./chunk-V4UAVMY4.js";import{a as Na,b as Ke,d as La,f as Ga,g as Qe}from"./chunk-P33DVZ7N.js";import{a as Za}from"./chunk-2XYZPMM5.js";import{a as Pe}from"./chunk-5WEX4WXF.js";import{a as Zo,b as ja,c as Ce,d as Wa}from"./chunk-GW6EJD7X.js";import{a as Kt,b as zn,c as jn,d as q}from"./chunk-M55Z2IPG.js";import{a as Ha}from"./chunk-D5LZVIV7.js";import{a as Fi,b as wi,p as Je,s as Ze}from"./chunk-A5BGCB72.js";import{c as J,d as ye,g as ge}from"./chunk-7UEYEAFD.js";import{b as Ci,c as vt,g as yt,h as Ma,i as Pa,j as bt,k as Da,p as Oa,q as Aa,r as Ra,u as Si,v as Ua,w as Fa,x as Ba,y as $e}from"./chunk-F7N4QFP2.js";import{a as be}from"./chunk-65YPH4ME.js";import{$ as ae,$a as ha,A as me,Ab as yi,Bb as ft,C as dt,Cb as Ta,D as Xt,Db as Ia,E as re,Eb as Ea,F as ei,Fb as bi,G as An,Ga as li,H as Rn,Ha as oa,I as ti,Ia as ci,K as pt,Ka as di,L as Un,M as Fn,Ma as mt,N as Bn,Na as ht,P as ii,Q as oe,Qa as gt,R as ni,Ra as aa,S as Vn,Sa as sa,T as Nn,Ta as la,U as Ln,Ua as ca,V as Gn,Va as da,W as Hn,Wa as pa,X as ri,Xa as ua,Y as Jo,Ya as ma,Z as Yo,_ as Ko,_a as pi,a as kn,aa as he,b as pe,ba as Qo,c as Tn,ca as na,cb as ga,db as _a,e as In,eb as ui,fb as mi,gb as hi,hb as gi,i as ze,ia as ut,ib as qe,j as En,k as Mn,ka as Ui,kb as fa,l as ue,la as ra,lb as va,mb as _i,p as ct,pb as ya,q as je,qb as ba,r as ne,rb as Ca,tb as fi,ub as vi,v as We,vb as _t,w as Pn,wb as Sa,x as Qt,xb as wa,y as Dn,yb as xa,z as On,zb as ka}from"./chunk-LN23P53Z.js";import{A as en,Aa as mn,B as K,Ba as hn,Bb as L,Cc as te,D as Le,Da as we,Db as ce,Dc as p,E as zt,Ea as Ee,Eb as vn,Ec as _,F as tn,Fb as xe,Fc as T,Gc as Q,Hb as w,Hc as wn,I as Oi,Ia as le,Ic as R,Jc as U,K as nn,Kc as F,L as rn,Lb as Ri,M as jt,N as on,O as an,Oc as ie,Pa as gn,Pc as N,Qa as Et,Qc as A,Rc as Te,S as sn,Sb as Re,Ta as $t,Tb as c,Ub as de,Uc as h,Vb as Ge,Vc as g,Wc as X,X as It,Xb as yn,Xc as Be,Y as Se,Yb as Mt,Yc as Yt,Z as ln,_ as z,_b as He,a as Yi,aa as cn,ac as lt,bc as Ue,bd as Me,c as rt,ca as _e,cc as Fe,dc as a,eb as at,ec as s,f as Ne,fa as ot,fb as fe,fc as C,g as Ki,gb as ve,gc as Pt,ha as H,hc as Dt,ia as tt,ic as Zt,id as xn,j as Gt,jb as it,jc as x,k as Qi,la as dn,lb as r,ma as Wt,mb as _n,oc as b,p as et,pb as Jt,pc as u,qb as st,qc as bn,ra as qt,rb as S,rc as Cn,sa as f,sb as fn,sc as ke,t as Ht,ta as v,tc as Ot,u as Y,ua as Ai,uc as At,va as pn,vc as Sn,w as Xi,wc as $,xc as j,ya as un,yc as W}from"./chunk-2BMUMDG3.js";import{a as Z,b as Ae,i as G}from"./chunk-2AVGQ2MQ.js";var ts=["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 is=["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 ns={cibCcAmex:Wn,cibCcApplePay:qn,cibCcMastercard:$n,cibCcPaypal:Jn,cibCcStripe:Zn,cibCcVisa:Yn,cibFacebook:Kn,cibGoogle:Qn,cibLinkedin:Xn,cibSkype:er,cibTwitter:tr,cifBr:ir,cifEs:nr,cifFr:rr,cifIn:or,cifPl:ar,cifUs:sr,cilAccountLogout:lr,cilAlignCenter:cr,cilAlignLeft:dr,cilAlignRight:pr,cilApplicationsSettings:ur,cilArrowBottom:mr,cilArrowRight:hr,cilArrowTop:_r,cilBasket:fr,cilBell:vr,cilBold:yr,cilBookmark:br,cilCalculator:Cr,cilCalendar:Sr,cilChart:xr,cilChartPie:wr,cilCheck:Tr,cilCheckAlt:kr,cilChevronLeft:Ir,cilChevronRight:Er,cilCloud:Pr,cilCloudDownload:Mr,cilCode:Dr,cilCommentSquare:Or,cilContrast:Ar,cilCreditCard:Rr,cilCursor:Ur,cilDescription:Fr,cilDollar:Vr,cilDrop:Nr,cilEnvelopeClosed:Lr,cilEnvelopeOpen:Gr,cilFile:zr,cilGrid:Wr,cilHome:Jr,cilInbox:Zr,cilIndentDecrease:Yr,cilIndentIncrease:Kr,cilItalic:Qr,cilJustifyCenter:Xr,cilLanguage:eo,cilLayers:to,cilList:no,cilListNumbered:io,cilLocationPin:ro,cilLockLocked:oo,cilMagnifyingGlass:ao,cilMap:so,cilMediaPlay:co,cilMediaRecord:po,cilMenu:mo,cilMoon:ho,cilNotes:go,cilOptions:_o,cilPaperclip:vo,cilPaperPlane:fo,cilPen:yo,cilPencil:bo,cilPeople:Co,cilPrint:So,cilPuzzle:wo,cilReportSlash:ko,cilSave:To,cilSettings:Eo,cilShare:Do,cilShareAll:Mo,cilShareBoxed:Po,cilSpeech:Ro,cilSpeedometer:Uo,cilSpreadsheet:Fo,cilStar:Bo,cilSun:Vo,cilTags:No,cilTask:Lo,cilTrash:Ho,cilUnderline:zo,cilUser:$o,cilUserFemale:jo,cilUserFollow:Wo,cilUserUnfollow:qo,logo:is,signet:ts,cilDevices:Br,cilSitemap:Ao,cilTransfer:Go,cilHistory:$r,cilHandshake:qr,cilReload:xo,cilFullscreen:jr,cilMediaPause:lo,cilMediaStop:uo,cilShieldAlt:Oo,cilArrowThickBottom:gr,cilEqualizer:Hr,cilSend:Io};var os=(()=>{class t{constructor(e,n,i,o,d,m){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=o,this.TranslateService=d,this.uploadManager=m,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=Z({},ns)}ngOnInit(){return G(this,null,function*(){this.router.events.subscribe(e=>{e instanceof pt})})}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?")}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(oe),S(Rn),S(ri),S(Zo),S(ae),S(oi))}}static{this.\u0275cmp=L({type:t,selectors:[["app-root"]],hostBindings:function(n,i){n&1&&b("beforeunload",function(d){return i.beforeUnloadHandler(d)},!1,it)},decls:1,vars:0,template:function(n,i){n&1&&C(0,"router-outlet")},dependencies:[ii],encapsulation:2})}}return t})();var Js=(()=>{class t extends si{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(H(pe),H(Rt),H(ai))};static \u0275prov=_e({token:t,factory:t.\u0275fac})}return t})();function Zs(){return new ea}function Ys(t,l,e){return new ia(t,l,e)}var as=[{provide:ai,useFactory:Zs},{provide:si,useClass:Js},{provide:Jt,useFactory:Ys,deps:[ei,si,Ee]}],Km=[{provide:Rt,useClass:Xo},{provide:Et,useValue:"NoopAnimations"},...as],Ks=[{provide:Rt,useFactory:()=>new ta},{provide:Et,useFactory:()=>"BrowserAnimations"},...as];function ss(){return $t("NgEagerAnimations"),[...Ks]}var ls=(()=>{class t extends ma{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 G(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var o=n+":"+i;return o}static{this.\u0275fac=function(n){return new(n||t)(S(ge))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-footer"]],inputs:{conversationalAI:"conversationalAI"},features:[ie([J,q]),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&&(a(0,"div",0)(1,"a",1),p(2),s()()),n&2&&(r(2),T("\xA9 CrashPlan ",i.currentYear," "))},dependencies:[$e,re,ue,Ye,Ze,Ke,Qe],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 Qs(t,l){t&1&&(a(0,"h4",9),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Your Organization is not licensed to use the CrashPlan Endpoint Product")))}function Xs(t,l){t&1&&(a(0,"h4",9),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Contact support to add a product to your existing plan")))}function el(t,l){t&1&&(a(0,"p",10),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"Contact Sales for more information.")," "))}function tl(t,l){if(t&1){let e=x();a(0,"button",12),b("click",function(){f(e);let i=u(2);return v(i.navigateToSales())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Contact Sales")))}function il(t,l){if(t&1){let e=x();a(0,"button",12),b("click",function(){f(e);let i=u(2);return v(i.navigateToSales())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Contact Support")))}function nl(t,l){if(t&1&&(a(0,"div",7),w(1,tl,3,3,"button",11)(2,il,3,3,"button",11),s()),t&2){let e=u();r(),c("ngIf",!e.inclusionLicenses.includes("issmblicenseenabled")),r(),c("ngIf",e.inclusionLicenses.includes("issmblicenseenabled"))}}var cs=(()=>{class t{constructor(e,n,i){this.sharedService=e,this.userRoleService=n,this.licenseCheckService=i,this.closeModalHandler=new we,this.userType="",this.inclusionLicenses=[]}ngOnInit(){return G(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(ge),S(Pe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ie([me,J,q])],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&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row"),w(5,Qs,3,3,"h4",4)(6,Xs,3,3,"h4",4)(7,el,3,3,"p",5),a(8,"div"),w(9,nl,3,2,"div",6),a(10,"div",7)(11,"button",8),b("click",function(){return i.closeSelf()}),p(12),h(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:[re,ne,ue,qe,he],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 ds=(()=>{class t{transform(e,n=",",i){if(!e)return"";let o=e.split(n);return i!==void 0?o[i]:o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=vn({name:"split",type:t,pure:!0})}}return t})();var ol=t=>({totalCountGS:t}),al=(t,l)=>({"col-lg-12":t,"col-lg-7":l}),sl=()=>({"col-lg-5":!0}),ll=t=>({display:t}),cl=(t,l)=>({active:t,disabled:l}),dl=(t,l)=>({addedElementsCount:t,totalCountGS:l}),pl=()=>["Google Drive","Gmail"];function ul(t,l){if(t&1){let e=x();a(0,"a",22),b("click",function(){f(e);let i=u(2);return v(i.enableMultiSelect())}),C(1,"i",23),a(2,"span",24),p(3),h(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Enable Multiselect")))}function ml(t,l){if(t&1){let e=x();a(0,"a",22),b("click",function(){f(e);let i=u(2);return v(i.removeAll())}),C(1,"i",25),a(2,"span",24),p(3),h(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Disable Multiselect")))}function hl(t,l){if(t&1){let e=x();a(0,"button",26),b("click",function(){f(e);let i=u(2);return v(i.addToCartFinal())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Add Selected Items")))}function gl(t,l){if(t&1){let e=x();a(0,"button",27),b("click",function(){f(e);let i=u(2);return v(i.onExportAsZipG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Export all items to Zip")))}function _l(t,l){if(t&1){let e=x();a(0,"button",28),b("click",function(){f(e);let i=u(2);return v(i.onExportAsZipG())}),p(1," Export selected items to Zip "),s()}if(t&2){let e=u(2);c("ngClass",Te(1,cl,e.addedElementsCount>0,e.addedElementsCount<=0))}}function fl(t,l){if(t&1){let e=x();a(0,"th",29)(1,"input",30),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.isSelectAll,i)||(o.isSelectAll=i),v(i)}),b("change",function(){f(e);let i=u(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=u(2);r(),R("ngModel",e.isSelectAll)}}function vl(t,l){if(t&1){let e=x();a(0,"td")(1,"input",35),F("ngModelChange",function(i){f(e);let o=u().$implicit;return U(o.isChecked,i)||(o.isChecked=i),v(i)}),b("change",function(){f(e);let i=u(3);return v(i.itemSelect())}),s()()}if(t&2){let e=u().$implicit;r(),R("ngModel",e.isChecked)}}function yl(t,l){if(t&1){let e=x();a(0,"tr"),w(1,vl,2,1,"td",0),a(2,"td")(3,"div")(4,"h4"),p(5),s()(),a(6,"p",31)(7,"b"),p(8,"Found in: "),s(),p(9),s(),a(10,"p"),C(11,"span",32),s()(),a(12,"td")(13,"button",33),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.onDownload(i))}),p(14),h(15,"translate"),s(),a(16,"button",34),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.onOpenLocation(i))}),p(17),h(18,"translate"),s()()()}if(t&2){let e=l.$implicit,n=u(2);Ge("selected-rowMail",n.isSelected(e)),r(),c("ngIf",n.isMultiSelectEnabled),r(4),_(e.fileName),r(4),Q("",e.deviceName," : ",e.filePath,""),r(2),c("innerHTML",n.renderHtml(e.content),fe),r(3),_(g(15,9,"Download")),r(3),_(g(18,11,"Open File Location"))}}function bl(t,l){if(t&1){let e=x();a(0,"th"),p(1),h(2,"translate"),a(3,"button",36),b("click",function(){f(e);let i=u(2);return v(i.removeAll())}),p(4),h(5,"translate"),s()()}if(t&2){let e=u(2);r(),T(" ",X(2,2,"addedElementsCountoutoftotalCountGSelected",Te(7,dl,e.addedElementsCount,e.totalCountGS))," "),r(3),_(g(5,5,"Remove all"))}}function Cl(t,l){if(t&1&&(a(0,"th"),p(1),h(2,"translate"),s()),t&2){let e=u(2);r(),Q(" ",e.addedElementsCount," ",g(2,2,"selected"),"")}}function Sl(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",37)(2,"span",38),p(3),s(),a(4,"a",39),b("click",function(){let i=f(e),o=i.$implicit,d=i.index,m=u(2);return v(m.removeItem(d,o.fileName,o.fileRevisionID,o.fileName))}),C(5,"i",40),s(),a(6,"p",41)(7,"b"),p(8),h(9,"translate"),s(),a(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),Q("",e.deviceName," : ",e.filePath,"")}}function wl(t,l){if(t&1&&(a(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",5),w(4,ul,5,3,"a",6)(5,ml,5,3,"a",6),a(6,"span")(7,"b"),p(8),h(9,"translate"),s()(),w(10,hl,3,3,"button",7)(11,gl,3,3,"button",8)(12,_l,2,4,"button",9),s(),a(13,"c-card-body",10)(14,"c-card",11)(15,"c-card-body")(16,"div",12)(17,"table",13)(18,"thead",14)(19,"tr"),w(20,fl,2,1,"th",15),a(21,"th",16),p(22,"File Name"),s(),a(23,"th",17),p(24,"Actions"),s()()(),a(25,"tbody"),w(26,yl,19,13,"tr",18),s()()()()(),a(27,"c-card",19)(28,"c-card-body")(29,"div",12)(30,"table",20)(31,"thead")(32,"tr"),w(33,bl,6,10,"th",0)(34,Cl,3,4,"th",0),s()(),a(35,"tbody"),w(36,Sl,12,6,"tr",21),s()()()()()()()()()),t&2){let e=u();r(4),c("ngIf",e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),_(X(9,18,"{{ totalCountGS }} Search Results Found",A(21,ol,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",Te(23,al,!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",N(26,sl))("ngStyle",A(27,ll,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 xl(t,l){t&1&&(a(0,"c-row",43)(1,"c-card",44)(2,"c-card-body")(3,"b"),p(4),h(5,"translate"),s()()()()),t&2&&(r(4),_(g(5,1,"There are no results!.")))}function kl(t,l){if(t&1){let e=x();a(0,"a",52),b("click",function(){f(e);let i=u(2);return v(i.onNavigate(i.first))}),C(1,"i",53),s()}}function Tl(t,l){if(t&1){let e=x();a(0,"a",54),b("click",function(){f(e);let i=u(2);return v(i.onNavigate(i.previous))}),C(1,"i",55),s()}}function Il(t,l){if(t&1){let e=x();a(0,"a",56),b("click",function(){f(e);let i=u(2);return v(i.onNavigate(i.next))}),C(1,"i",57),s()}}function El(t,l){if(t&1){let e=x();a(0,"a",58),b("click",function(){f(e);let i=u(2);return v(i.onNavigate(i.last))}),C(1,"i",59),s()}}function Ml(t,l){if(t&1&&(a(0,"c-row",45)(1,"div",46)(2,"div",47),w(3,kl,2,0,"a",48)(4,Tl,2,0,"a",49)(5,Il,2,0,"a",50)(6,El,2,0,"a",51),s()()()),t&2){let e=u();r(3),c("ngIf",e.first),r(),c("ngIf",e.previous),r(),c("ngIf",e.next),r(),c("ngIf",e.last)}}function Pl(t,l){if(t&1){let e=x();a(0,"button",72),b("click",function(){f(e);let i=u(2);return v(i.exportCompleteSearchAsZipTriggerG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Proceed")))}function Dl(t,l){if(t&1){let e=x();a(0,"button",72),b("click",function(){f(e);let i=u(2);return v(i.exportSelectedAsZipG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Proceed")))}function Ol(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),h(6,"translate"),s()(),a(7,"div",65)(8,"c-row")(9,"div",66)(10,"label",67),p(11),h(12,"translate"),s(),a(13,"input",68),h(14,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.zipFileNameG,i)||(o.zipFileNameG=i),v(i)}),s()()()(),a(15,"div",69)(16,"button",70),b("click",function(){f(e);let i=u();return v(i.closeZipPopupG())}),p(17),h(18,"translate"),s(),w(19,Pl,3,3,"button",71)(20,Dl,3,3,"button",71),s()()()()}if(t&2){let e=u();r(5),_(g(6,7,"Specify Filename")),r(6),_(g(12,9,"Specify Filename")),r(2),R("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 Al(t,l){t&1&&(a(0,"th"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Current item being processed")))}function Rl(t,l){if(t&1&&(a(0,"span"),p(1),h(2,"slice"),s()),t&2){let e=u(3);r(),T("/ ",Be(2,1,e.progressG.subject,0,40),"")}}function Ul(t,l){if(t&1&&(a(0,"td")(1,"span",78),p(2),h(3,"slice"),s(),w(4,Rl,3,5,"span",0),s()),t&2){let e=u(2);r(),At("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),_(Be(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function Fl(t,l){t&1&&(a(0,"td"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"-")))}function Bl(t,l){if(t&1&&(a(0,"td"),p(1),a(2,"div",79)(3,"div",80),p(4),h(5,"number"),s()()()),t&2){let e=u(2);r(),Q("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),r(),Ot("title","",e.progressG.totalRestorePct,"%"),r(),de("width",e.progressG.totalRestorePct,"%"),r(),T(" ",X(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Vl(t,l){t&1&&(a(0,"td"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"0")))}function Nl(t,l){if(t&1){let e=x();a(0,"button",81),b("click",function(){f(e);let i=u(2);return v(i.cancelDownloadAsZipG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Cancel Restore")))}function Ll(t,l){if(t&1){let e=x();a(0,"div",73)(1,"div",74)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),h(6,"translate"),s()(),a(7,"div",65)(8,"c-card")(9,"c-card-header",75),p(10),h(11,"translate"),s(),a(12,"c-card-body")(13,"c-row",43)(14,"table",76)(15,"thead")(16,"tr"),w(17,Al,3,3,"th",0),a(18,"th"),p(19),h(20,"translate"),s()()(),a(21,"tbody")(22,"tr"),w(23,Ul,5,9,"td",0)(24,Fl,3,3,"td",0)(25,Bl,6,10,"td",0)(26,Vl,3,3,"td",0),s()()()()()()(),a(27,"div",69)(28,"button",70),b("click",function(){f(e);let i=u();return v(i.closeDownloadZipPopupG())}),p(29,"Close"),s(),w(30,Nl,3,3,"button",77),s()()()()}if(t&2){let e=u();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",!N(15,pl).includes(e.productType))}}function Gl(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),h(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),p(9),h(10,"translate"),s()(),a(11,"div",69)(12,"button",70),b("click",function(){f(e);let i=u();return v(i.closeDownloadZipConfirmPopupG())}),p(13),h(14,"translate"),s(),a(15,"button",82),b("click",function(){f(e);let i=u();return v(i.cancelDownloadAsZipConfirmG())}),p(16),h(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 Hl(t,l){if(t&1){let e=x();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),p(5),h(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),p(9),h(10,"translate"),s()(),a(11,"div",69)(12,"button",70),b("click",function(){f(e);let i=u();return v(i.closeDownloadZipRunBkpPopupG())}),p(13),h(14,"translate"),s(),a(15,"button",81),b("click",function(){f(e);let i=u();return v(i.cancelDownloadAsZipRunBkpG())}),p(16),h(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 us=(()=>{class t{constructor(e,n,i,o,d,m,y,k,E){this.cdr=e,this.toastr=n,this.TranslateService=i,this.sharedService=o,this.sanitizer=d,this.apiService=m,this.assetManagementService=y,this.router=k,this.configService=E,this.foundFiles=[],this.noFilesFound=!1,this.productType="",this.contentSearchText="",this.totalCountGS="",this.userType="",this.currentDeviceUUID="",this.first="",this.previous="",this.next="",this.last="",this.downloadFile=new we,this.openFileLocation=new we,this.navigatePage=new we,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,o){console.log("inside itemselect child component : "+i),console.log("addedElementsUpdated child component : "+JSON.stringify(this.addedElementsUpdated)),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 console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}exportCompleteSearchAsZipTriggerG(){if(console.log("exportCompleteSearchAsZipTriggerG!!!!!"),this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("Fail!!!"));return}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("zipFileNameG : "+this.zipFileNameG),console.log("contentSearchText : "+this.contentSearchText),this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId),this.apiService.getContentSearch(this.productType,this.foundFiles[0].userName,this.foundFiles[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let o=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","","",!1,this.batchIdG).subscribe(d=>{console.log("res from initiateRestore : "+JSON.stringify(d)),console.log("res from initiateRestore : "+JSON.stringify(d.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!1,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),this.cdr.detectChanges()},d=>{switch(console.error("Error from initiateRestore: ",d),console.error("Error status: ",d.status),d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error(this.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(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.assetManagementService.exportSelectedAsPstG(this.getZipBatchDetailElements()).subscribe(e=>{this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!0,console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","",this.foundFiles[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!0,this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),this.cdr.detectChanges()},n=>{switch(console.error("Error from initiateRestore: ",n),console.error("Error status: ",n.status),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadZipstyleG=!0,this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressGmail(this.productType==="mail"?"OUTLOOK":this.productType,n)},1e4),this.cdr.detectChanges()}getDownloadZipEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(this.currentDeviceUUID,this.downloadId,this.product.dataManagementKey||this.product.key||e).subscribe(i=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadZipEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}getDownloadZipEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),e.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)))},e=>{switch(console.error("Error from getDownloadZipEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}cancelDownloadAsZipRunBkpG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1,this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges()}closeDownloadZipRunBkpPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!1}cancelDownloadAsZipConfirmG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsZip : "+JSON.stringify(e)),console.log("res from cancelDownloadAsZip : "+JSON.stringify(e.body)),this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdG&&clearInterval(this.intervalIdG)},e=>{switch(console.error("Error from cancelDownloadAsZip: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}closeDownloadZipConfirmPopupG(){this.displayDownloadZipConfirmstyleG=!1}cancelDownloadAsZipG(){this.displayDownloadZipConfirmstyleG=!0}closeDownloadZipPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!0}static{this.\u0275fac=function(n){return new(n||t)(S(Me),S(Ce),S(ae),S(ye),S(ti),S(q),S(St),S(oe),S(be))}}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:[ie([me,q,ja]),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","title","Select all",3,"ngModelChange","change","ngModel"],[1,"found-in"],[3,"innerHTML"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",3,"click"],["type","checkbox",3,"ngModelChange","change","ngModel"],["cButton","","color","primary","size","sm",1,"pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"col-lg-12"],[1,"mb-3"],[2,"margin-top","20px"],[1,"pagination"],[1,"col-lg-12","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important","display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","zipFileNameG"],["type","text","name","zipFileNameG","id","zipFileNameG","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&&w(0,wl,37,29,"c-row",0)(1,xl,6,3,"c-row",1)(2,Ml,7,4,"c-row",2)(3,Ol,21,15,"div",3)(4,Ll,31,16,"div",4)(5,Gl,18,12,"div",3)(6,Hl,18,12,"div",3),n&2&&(c("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),r(),c("ngIf",i.displayZipstyleG),r(),c("ngIf",i.displayDownloadZipstyleG),r(),c("ngIf",i.displayDownloadZipConfirmstyleG),r(),c("ngIf",i.displayDownloadZipRunBckConfirmstyleG))},dependencies:[We,$e,vt,Ci,yt,Si,bt,re,ct,je,ne,Xt,dt,li,ht,mt,gt,gi,qe,ft,ue,Ye,Ze,Ke,Qe,he],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 Wl=["deviceDropdown"],ql=["deviceDropdownCS"],$l=["contentFrame"],Jl=["userDeviceSearch"],Zl=["fileSearch"],Yl=["contentSearch"],Kl=["contentSearchMailInput"],Ql=["deviceDropdownR"],Xl=["contentCalendarFrame"],ec=["searchInput"],Ve=t=>({display:t}),tc=t=>[t],ic=t=>({totalCountGS:t}),nc=t=>({"multi-select":t}),rc=()=>({"col-lg-3":!0}),oc=(t,l)=>({active:t,disabled:l}),gs=t=>({"background-color":t}),ac=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),sc=t=>({currentMailSubject:t}),lc=t=>({addedElementsCount:t}),cc=t=>({required:t}),Tt=()=>["Google Drive","Gmail"],ms=()=>["Gmail","Google Drive"],dc=t=>({selected:t});function pc(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",18),b("click",function(){f(e);let i=u();return v(i.setActiveSearchTab("file",1))}),p(2),h(3,"translate"),s()()}if(t&2){u();let e=te(14);r(),c("cTabContent",e)("tabPaneIdx",1),r(),_(g(3,3,"Search by file/folder names"))}}function uc(t,l){if(t&1){let e=x();a(0,"c-nav-item")(1,"button",18),b("click",function(){f(e);let i=u();return v(i.setActiveSearchTab("content",2))}),p(2),h(3,"translate"),s()()}if(t&2){u();let e=te(14);r(),c("cTabContent",e)("tabPaneIdx",2),r(),_(g(3,3,"Full text search"))}}function mc(t,l){if(t&1&&(a(0,"c-card"),p(1),s()),t&2){let e=u();r(),T(" ",e.noUsersFoundText," ")}}function hc(t,l){if(t&1){let e=x();a(0,"c-col",91)(1,"c-card",92)(2,"c-card-body",93),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.userProfile(i.userNameEncoded))}),a(3,"div",90)(4,"div",94),C(5,"img",95),s(),a(6,"div",96)(7,"p",97)(8,"b"),p(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),ke("title",e.userName),r(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function gc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),p(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,hc,10,2,"c-col",91,lt),s()()),t&2){let e=u();r(2),Q("",e.foundUsers.length," ",g(3,2,"User(s) found:")," "),r(3),Fe(e.foundUsers)}}function _c(t,l){if(t&1&&(a(0,"c-card"),p(1),s()),t&2){let e=u();r(),T(" ",e.noUsersFoundText," ")}}function fc(t,l){if(t&1){let e=x();a(0,"c-col",98)(1,"c-card",92)(2,"c-card-body",93),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.userProfile(i.userNameEncoded))}),a(3,"div",90)(4,"div",94),C(5,"img",99),s(),a(6,"div",96)(7,"p",97)(8,"b"),p(9),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),ke("title",e.userName),r(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function vc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),p(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,fc,10,2,"c-col",98,lt),s()()),t&2){let e=u();r(2),Q("",e.foundSites.length," ",g(3,2,"Site(s) found:")," "),r(3),Fe(e.foundSites)}}function yc(t,l){if(t&1&&(a(0,"c-card"),p(1),s()),t&2){let e=u();r(),T(" ",e.noDevicesFoundText," ")}}function bc(t,l){if(t&1){let e=x();a(0,"c-col",98)(1,"c-card",92)(2,"c-card-body",93),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),a(3,"div",90)(4,"div",94),C(5,"img",100),s(),a(6,"div",96)(7,"p",97)(8,"b"),p(9),h(10,"translate"),s()()()()()()()}if(t&2){let e=l.$implicit;r(7),ke("title",e.deviceName),r(2),wn("",(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 Cc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",89),p(2),h(3,"translate"),s(),a(4,"c-card-body",90),Ue(5,bc,11,6,"c-col",98,lt),s()()),t&2){let e=u();r(2),Q("",e.foundDevices.length," ",g(3,2,"Device(s) found:")," "),r(3),Fe(e.foundDevices)}}function Sc(t,l){t&1&&(a(0,"option",101),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"BluVault")))}function wc(t,l){t&1&&(a(0,"option",102),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"OneDriveforBusiness")))}function xc(t,l){t&1&&(a(0,"option",103),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"SharePoint Online")))}function kc(t,l){if(t&1&&(a(0,"option",32),p(1),s()),t&2){let e=u().$implicit;c("value",e.key),r(),_(e.title)}}function Tc(t,l){if(t&1&&w(0,kc,2,2,"option",104),t&2){let e=l.$implicit,n=u();c("ngIf",n.productsLicensed.includes(e.key))}}function Ic(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select2",106),h(5,"translate"),h(6,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.selectedValue,i)||(o.selectedValue=i),v(i)}),b("search",function(i){f(e);let o=u();return v(o.onSearch(i))})("update",function(i){f(e);let o=u();return v(o.update(i))}),s()()}if(t&2){let e=u();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"),R("ngModel",e.selectedValue)}}function Ec(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select2",107),h(5,"translate"),h(6,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.selectedValueSite,i)||(o.selectedValueSite=i),v(i)}),b("search",function(i){f(e);let o=u();return v(o.onSearchSite(i))})("update",function(i){f(e);let o=u();return v(o.updateSite(i))}),s()()}if(t&2){let e=u();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")),R("ngModel",e.selectedValueSite)}}function Mc(t,l){if(t&1&&(a(0,"option",32),p(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),r(),T(" ",e.deviceName," ")}}function Pc(t,l){t&1&&(a(0,"option"),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function Dc(t,l){if(t&1&&(a(0,"div",108)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select",109,4),w(6,Mc,2,2,"option",110)(7,Pc,3,3,"option",19),s(),C(8,"i",111),s()),t&2){let e=u();r(2),_(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devices),r(),c("ngIf",e.devices.length==0)}}function Oc(t,l){t&1&&(a(0,"c-row")(1,"c-card",13)(2,"c-card-body")(3,"b"),p(4),h(5,"translate"),s()()()()),t&2&&(r(4),_(g(5,1,"There are no results!.")))}function Ac(t,l){if(t&1){let e=x();a(0,"tr")(1,"td")(2,"div")(3,"h4"),p(4),s()(),a(5,"p",118)(6,"b"),p(7),h(8,"translate"),s(),p(9),s()(),a(10,"td")(11,"button",119),b("click",function(i){let o=f(e).$implicit,d=u(2);return v(d.downloadFile(o.fileName,o.filePath,o.fileRevisionID,o.backup,o.fileUser,o.deviceUUID,o.folder,o.size,d.productTypeFiles,i))}),p(12),h(13,"translate"),s(),a(14,"button",120),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.openFileLocation(i.fileName,i.filePath,i.deviceId,o.productTypeFiles,i.backup))}),p(15),h(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 Rc(t,l){if(t&1&&(a(0,"c-row",112)(1,"table",113)(2,"thead",114)(3,"tr")(4,"th",115),p(5,"File Name "),s(),a(6,"th",116),p(7),h(8,"translate"),s()()(),a(9,"tbody"),w(10,Ac,17,11,"tr",117),s()()()),t&2){let e=u();r(),c("hover",!0)("responsive",!0),r(6),_(g(8,4,"Actions")),r(3),c("ngForOf",e.foundFiles)}}function Uc(t,l){t&1&&(a(0,"option",121),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Microsoft Exchange")))}function Fc(t,l){t&1&&(a(0,"option",102),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"OneDrive for Business")))}function Bc(t,l){t&1&&(a(0,"option",103),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"SharePoint Online")))}function Vc(t,l){t&1&&(a(0,"option",122),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Gmail")))}function Nc(t,l){if(t&1&&(a(0,"option",32),p(1),s()),t&2){let e=u().$implicit;c("value",e.key),r(),_(e.title)}}function Lc(t,l){if(t&1&&w(0,Nc,2,2,"option",104),t&2){let e=l.$implicit,n=u();c("ngIf",n.checkFeatureLicensed(A(1,tc,e.key)))}}function Gc(t,l){if(t&1){let e=x();a(0,"div",26)(1,"label",123),p(2),h(3,"translate"),s(),a(4,"select",124),F("ngModelChange",function(i){f(e);let o=u();return U(o.categoryContentSearch,i)||(o.categoryContentSearch=i),v(i)}),b("change",function(i){f(e);let o=u();return v(o.onChangeCategoryContentSearch(i))}),a(5,"option",121),p(6),h(7,"translate"),s(),a(8,"option",125),p(9),h(10,"translate"),s(),a(11,"option",126),p(12),h(13,"translate"),s(),a(14,"option",127),p(15),h(16,"translate"),s()()()}if(t&2){let e=u();r(2),_(g(3,6,"Category")),r(2),R("ngModel",e.categoryContentSearch),r(2),_(g(7,8,"eMail")),r(3),_(g(10,10,"Contacts")),r(3),_(g(13,12,"To Do")),r(3),_(g(16,14,"Calendar"))}}function Hc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select2",128),h(5,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.selectedValueCS,i)||(o.selectedValueCS=i),v(i)}),b("search",function(i){f(e);let o=u();return v(o.onSearchContentSearch(i))})("update",function(i){f(e);let o=u();return v(o.updateContentSearch(i))}),s()()}if(t&2){let e=u();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"),R("ngModel",e.selectedValueCS)}}function zc(t,l){if(t&1){let e=x();a(0,"div",105)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select2",129),h(5,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.selectedValueSiteCS,i)||(o.selectedValueSiteCS=i),v(i)}),b("search",function(i){f(e);let o=u();return v(o.onSearchSiteContentSearch(i))})("update",function(i){f(e);let o=u();return v(o.updateSiteContentSearch(i))}),s()()}if(t&2){let e=u();r(2),_(g(3,6,"Site")),r(2),c("placeholder",g(5,8,"Select Sites"))("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),R("ngModel",e.selectedValueSiteCS)}}function jc(t,l){if(t&1&&(a(0,"option",32),p(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),Re("id",e.deviceId),r(),T(" ",e.deviceName," ")}}function Wc(t,l){t&1&&(a(0,"option"),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"User has no assets configured")," "))}function qc(t,l){if(t&1){let e=x();a(0,"div",108)(1,"label"),p(2),h(3,"translate"),s(),a(4,"select",130,5),b("change",function(i){f(e);let o=u();return v(o.onDeviceChangeCS(i))}),w(6,jc,2,3,"option",110)(7,Wc,3,3,"option",19),s(),C(8,"i",111),s()}if(t&2){let e=u();r(2),_(g(3,3,"Asset Name")),r(4),c("ngForOf",e.devicesCS),r(),c("ngIf",e.devicesCS.length==0)}}function $c(t,l){if(t&1){let e=x();a(0,"c-row",35)(1,"div",36)(2,"c-input-group")(3,"input",131,6),h(5,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.contentSearchText,i)||(o.contentSearchText=i),v(i)}),b("keydown.enter",function(){f(e);let i=u();return v(i.searchForContent())}),s()()(),a(6,"div",38)(7,"button",39),b("click",function(){f(e);let i=u();return v(i.searchForContent())}),p(8),h(9,"translate"),s()()()}if(t&2){let e=u();r(3),R("ngModel",e.contentSearchText),c("placeholder",g(5,3,"Search..")),r(5),_(g(9,5,"Search"))}}function Jc(t,l){if(t&1){let e=x();a(0,"button",39),b("click",function(){f(e);let i=u(2);return v(i.togglePanel())}),C(1,"i",135),s()}if(t&2){let e=u(2);r(),c("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down")}}function Zc(t,l){if(t&1){let e=x();a(0,"div",38)(1,"a",136),b("click",function(){f(e);let i=u(2);return v(i.searchForContent())}),p(2),h(3,"translate"),s()()}t&2&&(r(2),_(g(3,1,"Search")))}function Yc(t,l){if(t&1){let e=x();a(0,"c-row",68)(1,"div",36)(2,"c-input-group",13)(3,"input",132,7),h(5,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.contentSearchMail,i)||(o.contentSearchMail=i),v(i)}),b("keydown.enter",function(){f(e);let i=u();return v(i.searchForContent())}),s(),w(6,Jc,2,1,"button",133),s()(),w(7,Zc,4,3,"div",134),s()}if(t&2){let e=u();r(3),R("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 Kc(t,l){if(t&1){let e=x();a(0,"div",138)(1,"div",139)(2,"label",140),p(3,"From "),a(4,"a",141),C(5,"i",142),a(6,"span",143),p(7),h(8,"translate"),s()()(),a(9,"input",144),h(10,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.fromId,i)||(o.fromId=i),v(i)}),s()(),a(11,"div",139)(12,"label",145),p(13,"To "),a(14,"a",141),C(15,"i",142),a(16,"span",143),p(17),h(18,"translate"),s()()(),a(19,"input",146),h(20,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.toId,i)||(o.toId=i),v(i)}),s()(),a(21,"div",139)(22,"label",147),p(23,"CC "),a(24,"a",141),C(25,"i",142),a(26,"span",143),p(27),h(28,"translate"),s()()(),a(29,"input",148),h(30,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.ccId,i)||(o.ccId=i),v(i)}),s()(),a(31,"div",139)(32,"label",149),p(33,"BCC "),a(34,"a",141),C(35,"i",142),a(36,"span",143),p(37),h(38,"translate"),s()()(),a(39,"input",150),h(40,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.bccId,i)||(o.bccId=i),v(i)}),s()(),a(41,"div",139)(42,"label",151),p(43),h(44,"translate"),a(45,"a",141),C(46,"i",142),a(47,"span",143),p(48),h(49,"translate"),s()()(),a(50,"input",152),h(51,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.subjectId,i)||(o.subjectId=i),v(i)}),s()(),a(52,"div",139)(53,"label",153),p(54),h(55,"translate"),s(),a(56,"input",154),h(57,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.bodyId,i)||(o.bodyId=i),v(i)}),s()(),a(58,"div",139)(59,"label",155),p(60),h(61,"translate"),s(),a(62,"input",156),h(63,"translate"),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.keywordsId,i)||(o.keywordsId=i),v(i)}),s()(),a(64,"div",157)(65,"label",155),p(66),h(67,"translate"),s(),a(68,"input",158),b("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.myDateBefore,i)||(o.myDateBefore=i),v(i)}),s(),p(69),h(70,"translate"),a(71,"input",158),b("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.myDateAfter,i)||(o.myDateAfter=i),v(i)}),s()(),a(72,"div",68)(73,"a",159),b("click",function(){f(e);let i=u(2);return v(i.searchForContent())}),p(74),h(75,"translate"),s()()()}if(t&2){let e=u(2);r(7),_(g(8,31,"Use comma to separate Email addresses")),r(2),R("ngModel",e.fromId),c("placeholder",g(10,33,"From")),r(8),_(g(18,35,"Use comma to separate Email addresses")),r(2),R("ngModel",e.toId),c("placeholder",g(20,37,"To")),r(8),_(g(28,39,"Use comma to separate Email addresses")),r(2),R("ngModel",e.ccId),c("placeholder",g(30,41,"CC")),r(8),_(g(38,43,"Use comma to separate Email addresses")),r(2),R("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),R("ngModel",e.subjectId),c("placeholder",g(51,51,"Subject")),r(4),_(g(55,53,"Body")),r(2),R("ngModel",e.bodyId),c("placeholder",g(57,55,"Body")),r(4),_(g(61,57,"Keywords")),r(2),R("ngModel",e.keywordsId),c("placeholder",g(63,59,"Keywords")),r(4),_(g(67,61,"Date from")),r(2),c("readonly",!0),R("ngModel",e.myDateBefore),c("bsConfig",e.bsConfigBefore),r(),T(" ",g(70,63,"To")," "),r(2),c("readonly",!0),R("ngModel",e.myDateAfter),c("bsConfig",e.bsConfigAfter),r(3),_(g(75,65,"Search"))}}function Qc(t,l){if(t&1&&(a(0,"c-row",68),w(1,Kc,76,67,"div",137),s()),t&2){let e=u();r(),c("ngIf",e.isExpanded)}}function Xc(t,l){t&1&&(a(0,"c-row",68)(1,"c-card",13)(2,"c-card-body")(3,"b"),p(4,"There are no results!."),s()()()())}function ed(t,l){if(t&1){let e=x();a(0,"a",177),b("click",function(){f(e);let i=u(2);return v(i.enableMultiSelect())}),C(1,"i",178),a(2,"span",143),p(3),h(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Enable Multiselect")))}function td(t,l){if(t&1){let e=x();a(0,"a",179),b("click",function(){f(e);let i=u(2);return v(i.removeAll())}),C(1,"i",180),a(2,"span",143),p(3),h(4,"translate"),s()()}t&2&&(r(3),_(g(4,1,"Disable Multiselect")))}function id(t,l){if(t&1){let e=x();a(0,"a",181),b("click",function(){f(e);let i=u(2);return v(i.exportCompleteMailboxAsPstG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Export all items to PST")))}function nd(t,l){if(t&1){let e=x();a(0,"a",182),b("click",function(){f(e);let i=u(2);return v(i.exportFolderAsPstModalG())}),p(1),h(2,"translate"),s()}if(t&2){let e=u(2);c("ngClass",Te(4,oc,e.addedElementsCount>0,e.addedElementsCount<=0)),r(),_(g(2,2,"Export selected items to PST"))}}function rd(t,l){if(t&1){let e=x();a(0,"th",170)(1,"input",183),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.isSelectAll,i)||(o.isSelectAll=i),v(i)}),b("change",function(){f(e);let i=u(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=u(2);r(),R("ngModel",e.isSelectAll)}}function od(t,l){if(t&1){let e=x();a(0,"button",184),b("click",function(){f(e);let i=u(2);return v(i.addToCartFinal())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Add Selected Items")))}function ad(t,l){if(t&1){let e=x();a(0,"td")(1,"input",188),F("ngModelChange",function(i){f(e);let o=u().$implicit;return U(o.isChecked,i)||(o.isChecked=i),v(i)}),b("change",function(){f(e);let i=u(4);return v(i.itemSelect())}),s()()}if(t&2){let e=u().$implicit;r(),R("ngModel",e.isChecked)}}function sd(t,l){if(t&1&&(a(0,"td",189)(1,"span",190),p(2),s()()),t&2){let e=u().$implicit;r(),c("ngStyle",A(2,gs,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function ld(t,l){t&1&&C(0,"i",204)}function cd(t,l){if(t&1){let e=x();a(0,"a",205),b("click",function(i){f(e);let o=u(3).$implicit,d=u(3);return v(d.downloadMail(o.userName,o.backupId,o.deviceUUID,i))}),C(1,"i",206),s()}}function dd(t,l){if(t&1){let e=x();a(0,"a",207),b("click",function(i){f(e);let o=u(3).$implicit,d=u(3);return v(d.onRestoreClickR(o.deviceUUID,o.backupId,o.filePath,o.subject,o.userName,i))}),C(1,"i",208),s()}}function pd(t,l){if(t&1&&(a(0,"p"),C(1,"span",209),s()),t&2){let e=u(3).$implicit,n=u(3);r(),c("innerHTML",n.renderHtml(e.displayContent),fe)}}function ud(t,l){if(t&1&&(a(0,"a",194)(1,"span",195),p(2),s(),w(3,ld,1,0,"i",196)(4,cd,2,0,"a",197)(5,dd,2,0,"a",198),a(6,"p",199)(7,"span",200),p(8),s(),C(9,"span",201),s(),w(10,pd,2,1,"p",19),a(11,"p",202)(12,"b"),p(13),h(14,"translate"),s(),a(15,"span",203),p(16),s()()()),t&2){let e=u(2).$implicit,n=u(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),fe),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),Q("",e.userName," : ",e.filePath,"")}}function md(t,l){t&1&&C(0,"i",212)}function hd(t,l){if(t&1&&(a(0,"p"),C(1,"span",209),s()),t&2){let e=u(3).$implicit,n=u(3);r(),c("innerHTML",n.renderHtml(e.displayContent),fe)}}function gd(t,l){if(t&1&&(a(0,"a",210)(1,"span",195),p(2),s(),w(3,md,1,0,"i",211),a(4,"p",199)(5,"span",200),p(6),s(),C(7,"span",201),s(),w(8,hd,2,1,"p",19),s()),t&2){let e=u(2).$implicit,n=u(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),fe),r(),c("ngIf",e.displayContent)}}function _d(t,l){if(t&1){let e=x();a(0,"td",191),b("click",function(){f(e);let i=u().$implicit,o=u(3);return v(o.viewOutlook11(i.deviceId,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div"),w(3,ud,17,12,"a",192)(4,gd,9,5,"a",193),s()()()}if(t&2){let e=u().$implicit;Re("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function fd(t,l){t&1&&(a(0,"td",189),C(1,"i",213),s())}function vd(t,l){if(t&1){let e=x();a(0,"td",191),b("click",function(){f(e);let i=u().$implicit,o=u(3);return v(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div")(3,"a",214)(4,"span",195),p(5),s()()()()()}if(t&2){let e=u().$implicit;Re("data-name",e.name),r(5),T(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function yd(t,l){t&1&&(a(0,"td",189),C(1,"i",215),s())}function bd(t,l){if(t&1){let e=x();a(0,"td",191),b("click",function(){f(e);let i=u().$implicit,o=u(3);return v(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,"to_do"))}),a(1,"div",68)(2,"div")(3,"a",214)(4,"span",195),p(5),s()()()()()}if(t&2){let e=u().$implicit;Re("data-name",e.name),r(5),T(" ",(e.taskSubject||"").slice(0,40)+(e.taskSubject&&e.taskSubject.length>40?"...":"")," ")}}function Cd(t,l){if(t&1&&(a(0,"td",189)(1,"span",190),p(2),s()()),t&2){let e=u().$implicit;r(),c("ngStyle",A(2,gs,e.alphaColor)),r(),T(" ",e.showIcon," ")}}function Sd(t,l){t&1&&C(0,"i",204)}function wd(t,l){if(t&1){let e=x();a(0,"a",205),b("click",function(i){f(e);let o=u(3).$implicit,d=u(3);return v(d.downloadMail(o.userName,o.backupId,o.deviceUUID,i))}),C(1,"i",206),s()}}function xd(t,l){if(t&1){let e=x();a(0,"a",207),b("click",function(i){f(e);let o=u(3).$implicit,d=u(3);return v(d.onRestoreClickR(o.deviceUUID,o.backupId,o.filePath,o.subject,o.userName,i))}),C(1,"i",208),s()}}function kd(t,l){if(t&1&&(a(0,"p"),C(1,"span",209),s()),t&2){let e=u(3).$implicit,n=u(3);r(),c("innerHTML",n.renderHtml(e.displayContent),fe)}}function Td(t,l){if(t&1&&(a(0,"a",194)(1,"span",195),p(2),s(),w(3,Sd,1,0,"i",196)(4,wd,2,0,"a",197)(5,xd,2,0,"a",198),a(6,"p",199)(7,"span",200),p(8),s(),C(9,"span",201),s(),w(10,kd,2,1,"p",19),a(11,"p",202)(12,"b"),p(13),h(14,"translate"),s(),a(15,"span",203),p(16),s()()()),t&2){let e=u(2).$implicit,n=u(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),fe),r(),c("ngIf",e.displayContent),r(3),T("",g(14,10,"Found in"),":"),r(3),Q("",e.userName," : ",e.filePath,"")}}function Id(t,l){t&1&&C(0,"i",212)}function Ed(t,l){if(t&1&&(a(0,"p"),C(1,"span",209),s()),t&2){let e=u(3).$implicit,n=u(3);r(),c("innerHTML",n.renderHtml(e.displayContent),fe)}}function Md(t,l){if(t&1&&(a(0,"a",210)(1,"span",195),p(2),s(),w(3,Id,1,0,"i",211),a(4,"p",199)(5,"span",200),p(6),s(),C(7,"span",201),s(),w(8,Ed,2,1,"p",19),s()),t&2){let e=u(2).$implicit,n=u(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),fe),r(),c("ngIf",e.displayContent)}}function Pd(t,l){if(t&1){let e=x();a(0,"td",191),b("click",function(){f(e);let i=u().$implicit,o=u(3);return v(o.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,o.categoryContentSearch))}),a(1,"div",68)(2,"div"),w(3,Td,17,12,"a",192)(4,Md,9,5,"a",193),s()()()}if(t&2){let e=u().$implicit;Re("data-name",e.name),r(3),c("ngIf",e.present=="true"),r(),c("ngIf",e.present=="false")}}function Dd(t,l){if(t&1&&(a(0,"tr"),w(1,ad,2,1,"td",19)(2,sd,3,4,"td",186)(3,_d,5,3,"td",187)(4,fd,2,0,"td",186)(5,vd,6,2,"td",187)(6,yd,2,0,"td",186)(7,bd,6,2,"td",187)(8,Cd,3,4,"td",186)(9,Pd,5,3,"td",187),s()),t&2){let e=l.$implicit,n=u(3);Ge("selected-rowMail",n.isSelected(e)),r(),c("ngIf",n.isMultiSelectEnabled&&n.categoryContentSearch=="mail"),r(),c("ngIf",e.type=="File"&&n.categoryContentSearch=="mail"),r(),c("ngIf",e.type=="File"&&n.categoryContentSearch=="mail"),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 Od(t,l){if(t&1&&(a(0,"tbody"),w(1,Dd,10,11,"tr",185),s()),t&2){let e=u(2);r(),c("ngForOf",e.foundMailsCS)}}function Ad(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"app-calendar-layout",218),h(2,"split"),b("navigator",function(i){f(e);let o=u(3);return v(o.calenderNavigate(i))}),s()()}if(t&2){let e=u(3);r(),c("metaData",e.selectedUsers)("calenderEvents",e.foundMailsCS)("calendarView",e.calendarView)("breadcrumbItems",X(2,4,e.selectedPathCS,"/"))}}function Rd(t,l){if(t&1&&(a(0,"div",233)(1,"b"),p(2),h(3,"translate"),s(),p(4),a(5,"span",234),p(6),h(7,"date"),s()()),t&2){let e=u(4);r(2),_(g(3,3,"Organizer :")),r(2),T(" ",e.currentCalendarFrom," "),r(2),_(g(7,5,e.currentCalendarSentDate))}}function Ud(t,l){if(t&1&&(a(0,"div",235)(1,"b"),p(2),h(3,"translate"),s(),p(4),s()),t&2){let e=u(4);r(2),_(g(3,2,"Attendees :")),r(2),T(" ",e.currentCalendarTo,"")}}function Fd(t,l){if(t&1&&(a(0,"div",236)(1,"b"),p(2,"CC :"),s(),p(3),s()),t&2){let e=u(4);r(3),T(" ",e.currentCalendarCc,"")}}function Bd(t,l){if(t&1&&(a(0,"div",237)(1,"b"),p(2,"BCC :"),s(),p(3),s()),t&2){let e=u(4);r(3),T(" ",e.currentCalendarBcc,"")}}function Vd(t,l){if(t&1&&(a(0,"span",241),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 Nd(t,l){if(t&1&&(a(0,"div",238)(1,"div",239),w(2,Vd,2,1,"span",240),p(3," \xA0 "),s()()),t&2){let e=u(4);r(2),c("ngForOf",e.currentCalendarAttachments)}}function Ld(t,l){if(t&1&&(a(0,"div",242)(1,"b"),C(2,"i",243),s(),p(3),s()),t&2){let e=u(4);r(3),T(" ",e.calendarDuration,"")}}function Gd(t,l){t&1&&(a(0,"c-callout",244),C(1,"i",245),a(2,"span"),p(3),h(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 Hd(t,l){if(t&1){let e=x();a(0,"c-card-body",219)(1,"div",220),C(2,"div",221),a(3,"div",222)(4,"div",223)(5,"h3"),p(6),s()(),w(7,Rd,8,7,"div",224)(8,Ud,5,4,"div",225)(9,Fd,4,1,"div",226)(10,Bd,4,1,"div",227)(11,Nd,4,1,"div",228)(12,Ld,4,1,"div",229),C(13,"br"),a(14,"div",230)(15,"iframe",231,8),b("mouseout",function(){f(e);let i=u(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=u(3);return v(i.showHideSecurityCallout(!0))}),s()()()(),w(17,Gd,5,3,"c-callout",232),s()}if(t&2){let e=u(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 zd(t,l){t&1&&(a(0,"c-card-body",246)(1,"p"),p(2),h(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 jd(t,l){t&1&&(a(0,"c-card-body",246)(1,"p"),p(2),h(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"Item not available.")))}function Wd(t,l){if(t&1&&(a(0,"div",233)(1,"b"),p(2),h(3,"translate"),s(),p(4),a(5,"span",234),p(6),h(7,"date"),s()()),t&2){let e=u(4);r(2),_(g(3,3,"From :")),r(2),T(" ",e.currentMailFrom," "),r(2),_(g(7,5,e.currentMailSentDate))}}function qd(t,l){if(t&1&&(a(0,"div",235)(1,"b"),p(2),h(3,"translate"),s(),p(4),s()),t&2){let e=u(4);r(2),_(g(3,2,"To :")),r(2),T(" ",e.currentMailTo,"")}}function $d(t,l){if(t&1&&(a(0,"div",236)(1,"b"),p(2),h(3,"translate"),s(),p(4),s()),t&2){let e=u(4);r(2),_(g(3,2,"CC :")),r(2),T(" ",e.currentMailCc,"")}}function Jd(t,l){if(t&1&&(a(0,"div",237)(1,"b"),p(2),h(3,"translate"),s(),p(4),s()),t&2){let e=u(4);r(2),_(g(3,2,"BCC :")),r(2),T(" ",e.currentMailBcc,"")}}function Zd(t,l){if(t&1&&(a(0,"span",241),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&&(a(0,"div",238)(1,"div",239),w(2,Zd,2,1,"span",240),p(3," \xA0 "),s()()),t&2){let e=u(4);r(2),c("ngForOf",e.currentMailAttachments)}}function Kd(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"div",247),C(2,"div",221),a(3,"div",248)(4,"div",249)(5,"h3"),p(6),h(7,"translate"),s()(),w(8,Wd,8,7,"div",224)(9,qd,5,4,"div",225)(10,$d,5,4,"div",226)(11,Jd,5,4,"div",227)(12,Yd,4,1,"div",228),C(13,"br"),a(14,"div",250)(15,"iframe",251,9),b("mouseout",function(){f(e);let i=u(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=u(3);return v(i.showHideSecurityCallout(!0))}),s()()()()()}if(t&2){let e=u(3);r(6),_(X(7,6,"SubjectcurrentMailSubject",A(9,sc,e.currentMailSubject))),r(2),c("ngIf",e.currentMailFrom!=""),r(),c("ngIf",e.currentMailTo!=""),r(),c("ngIf",e.currentMailCc!=""),r(),c("ngIf",e.currentMailBcc!=""),r(),c("ngIf",e.currentMailAttachments.length>0)}}function Qd(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.fullCombinedName,"Name"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.fullCombinedName)}}function Xd(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(5);return v(i.copyToClipboard(i.contactEmail,"Email: "+i.contactEmail))}),C(1,"i",275),s()}if(t&2){let e=u(5);c("title",e.contactEmail)}}function ep(t,l){if(t&1&&(a(0,"span",276),p(1),w(2,Xd,2,1,"a",259),s()),t&2){let e=u(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 tp(t,l){if(t&1){let e=x();a(0,"li"),p(1),a(2,"a",274),b("click",function(){let i=f(e).$implicit,o=u(5);return v(o.copyToClipboard(i,"Email: "+i))}),C(3,"i",275),s()()}if(t&2){let e=l.$implicit;r(),_(e),r(),c("title",e)}}function ip(t,l){if(t&1&&(a(0,"ul",277),w(1,tp,4,2,"li",117),s()),t&2){let e=u(4);r(),c("ngForOf",e.splitContactEmails)}}function np(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactOfficeLocation,"Location"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactOfficeLocation)}}function rp(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactCompanyName,"Company"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactCompanyName)}}function op(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactJobTitle,"Job title"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactJobTitle)}}function ap(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactDepartment,"Department"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactDepartment)}}function sp(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactMobile,"Mobile phone"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactMobile)}}function lp(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactHomePhones,"Home phone"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactHomePhones)}}function cp(t,l){if(t&1){let e=x();a(0,"a",274),b("click",function(){f(e);let i=u(4);return v(i.copyToClipboard(i.contactBusinessPhones,"Business phone"))}),C(1,"i",275),s()}if(t&2){let e=u(4);c("title",e.contactBusinessPhones)}}function dp(t,l){if(t&1){let e=x();a(0,"c-card-body")(1,"div",252)(2,"div",253)(3,"div",254),C(4,"c-avatar",255),s(),a(5,"div",256)(6,"div",257)(7,"span",258),p(8),s(),w(9,Qd,2,1,"a",259),s(),a(10,"div",260)(11,"span",261),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullJobTitle=!1)}),p(12),s(),a(13,"span",262),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullDepartment=!1)}),p(14),s()()()(),a(15,"div",263),C(16,"hr"),a(17,"div",264),b("mouseenter",function(){f(e);let i=u(3);return v(i.showHideField(!0))})("mouseleave",function(){f(e);let i=u(3);return v(i.showHideField(!1))}),a(18,"label",200),p(19,"Email: "),s(),C(20,"br"),w(21,ep,3,3,"span",265)(22,ip,2,1,"ul",266),s(),a(23,"div",267)(24,"label",200),p(25,"Location: "),s(),C(26,"br"),a(27,"span",268),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullLocation=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullLocation=!1)}),p(28),s(),w(29,np,2,1,"a",259),s(),a(30,"div",267)(31,"label",200),p(32,"Company: "),s(),C(33,"br"),a(34,"span",269),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullCompanyName=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullCompanyName=!1)}),p(35),s(),w(36,rp,2,1,"a",259),s(),a(37,"div",267)(38,"label",200),p(39,"Job title: "),s(),C(40,"br"),a(41,"span",261),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullJobTitle=!1)}),p(42),s(),w(43,op,2,1,"a",259),s(),a(44,"div",267)(45,"label",200),p(46,"Department: "),s(),C(47,"br"),a(48,"span",262),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullDepartment=!1)}),p(49),s(),w(50,ap,2,1,"a",259),s(),a(51,"div",267)(52,"label",200),p(53),h(54,"translate"),s(),C(55,"br"),a(56,"span",258),p(57),s()(),a(58,"div",267)(59,"label",200),p(60,"Home Address: "),s(),C(61,"br"),a(62,"span",258),p(63),s()(),a(64,"div",267)(65,"label",200),p(66),h(67,"translate"),s(),C(68,"br"),a(69,"span",270),p(70),s()(),a(71,"div",267)(72,"label",200),p(73,"Mobile phone: "),s(),C(74,"br"),a(75,"span",271),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullMobile=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullMobile=!1)}),p(76),s(),w(77,sp,2,1,"a",259),s(),a(78,"div",267)(79,"label",200),p(80,"Home phone: "),s(),C(81,"br"),a(82,"span",272),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullHomePhone=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullHomePhone=!1)}),p(83),s(),w(84,lp,2,1,"a",259),s(),a(85,"div",267)(86,"label",200),p(87,"Business phone: "),s(),C(88,"br"),a(89,"span",273),b("mouseenter",function(){f(e);let i=u(3);return v(i.showFullBusinessPhone=!0)})("mouseleave",function(){f(e);let i=u(3);return v(i.showFullBusinessPhone=!1)}),p(90),s(),w(91,cp,2,1,"a",259),s()()()()}if(t&2){let e=u(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 pp(t,l){if(t&1&&(a(0,"p")(1,"b"),p(2),h(3,"translate"),s(),a(4,"span",279),p(5),h(6,"translate"),s()()),t&2){let e=u(4);r(2),T("",g(3,2,"Importance:")," "),r(3),_(g(6,4,e.taskImportance))}}function up(t,l){if(t&1&&(a(0,"c-card-body")(1,"div",278)(2,"p")(3,"b"),p(4),h(5,"translate"),s(),p(6),s(),w(7,pp,7,6,"p",19),a(8,"p")(9,"b"),p(10),h(11,"translate"),s(),p(12),h(13,"date"),s(),a(14,"p")(15,"b"),p(16),h(17,"translate"),s(),p(18),h(19,"date"),s(),a(20,"p")(21,"b"),p(22),h(23,"translate"),s(),p(24),h(25,"date"),s()()()),t&2){let e=u(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 mp(t,l){if(t&1&&(a(0,"c-card",172),w(1,Ad,3,7,"c-card-body",19)(2,Hd,18,9,"c-card-body",216)(3,zd,4,3,"c-card-body",217)(4,jd,4,3,"c-card-body",217)(5,Kd,17,11,"c-card-body",19)(6,dp,92,43,"c-card-body",19)(7,up,26,23,"c-card-body",19),s()),t&2){let e=u(2);c("ngClass",Te(8,ac,!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 hp(t,l){t&1&&(a(0,"c-card",173)(1,"c-card-body",246)(2,"div",280),C(3,"div",281),s()()())}function gp(t,l){if(t&1){let e=x();a(0,"th"),p(1),a(2,"a",282),b("click",function(){f(e);let i=u(2);return v(i.removeAll())}),p(3),h(4,"translate"),s()()}if(t&2){let e=u(2);r(),Q("",e.addedElementsCount," out of ",e.totalCountGS," selected "),r(2),_(g(4,3,"Remove all"))}}function _p(t,l){if(t&1&&(a(0,"th"),p(1),h(2,"translate"),s()),t&2){let e=u(2);r(),_(X(2,1,"{{ addedElementsCount }} selected",A(4,lc,e.addedElementsCount)))}}function fp(t,l){if(t&1){let e=x();a(0,"tr")(1,"td",283)(2,"span",284),p(3),s(),a(4,"a",285),b("click",function(){let i=f(e),o=i.$implicit,d=i.index,m=u(2);return v(m.removeItem(d,o.subject,o.backupId,o.subject))}),C(5,"i",286),s()()()}if(t&2){let e=l.$implicit;r(3),_(e.subject)}}function vp(t,l){if(t&1&&(a(0,"c-row",160)(1,"c-card-header",161),w(2,ed,5,3,"a",162)(3,td,5,3,"a",163),a(4,"span")(5,"b"),p(6),h(7,"translate"),s()(),w(8,id,3,3,"a",164)(9,nd,3,7,"a",165),s(),a(10,"c-card",166)(11,"c-card-body")(12,"div",167)(13,"table",168)(14,"thead",114)(15,"tr"),w(16,rd,2,1,"th",169),a(17,"th",170),p(18," Results "),w(19,od,3,3,"button",171),s()()(),w(20,Od,2,1,"tbody",19),s()()()(),w(21,mp,8,11,"c-card",172)(22,hp,4,0,"c-card",173),a(23,"c-card",174)(24,"c-card-body")(25,"table",175)(26,"colgroup"),C(27,"col",176),s(),a(28,"thead")(29,"tr"),w(30,gp,5,5,"th",19)(31,_p,3,6,"th",19),s()(),a(32,"tbody"),w(33,fp,6,1,"tr",117),s()()()()()),t&2){let e=u();r(2),c("ngIf",!e.isMultiSelectEnabled),r(),c("ngIf",e.isMultiSelectEnabled),r(3),_(X(7,18,"totalCountGSSearchResultsFound",A(21,ic,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,nc,e.isMultiSelectEnabled)),r(3),c("hover",!0)("responsive",!0)("striped",!1),r(3),c("ngIf",e.isMultiSelectEnabled),r(3),c("ngIf",e.updateAddToCartButtonVisibility()),r(),c("ngIf",!e.noFilesFoundCS),r(),He(e.showloaderAtPreview?22:21),r(2),c("ngClass",N(25,rc))("ngStyle",A(26,Ve,e.isMultiSelectEnabled?"block":"none")),r(7),c("ngIf",e.addedElementsCount>0),r(),c("ngIf",e.addedElementsCount==0),r(2),c("ngForOf",e.addedElementsUpdated)}}function yp(t,l){t&1&&(a(0,"c-row",287)(1,"c-col",173)(2,"c-callout",244),C(3,"i",245),a(4,"span"),p(5),h(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 bp(t,l){if(t&1){let e=x();a(0,"a",294),b("click",function(){f(e);let i=u(2);return v(i.searchForContentNavigate(i.first))}),C(1,"i",295),s()}}function Cp(t,l){if(t&1){let e=x();a(0,"a",296),b("click",function(){f(e);let i=u(2);return v(i.searchForContentNavigate(i.previous))}),C(1,"i",297),s()}}function Sp(t,l){if(t&1){let e=x();a(0,"a",298),b("click",function(){f(e);let i=u(2);return v(i.searchForContentNavigate(i.next))}),C(1,"i",299),s()}}function wp(t,l){if(t&1){let e=x();a(0,"a",300),b("click",function(){f(e);let i=u(2);return v(i.searchForContentNavigate(i.last))}),C(1,"i",301),s()}}function xp(t,l){if(t&1&&(a(0,"c-row",22)(1,"div",288)(2,"div",289),w(3,bp,2,0,"a",290)(4,Cp,2,0,"a",291)(5,Sp,2,0,"a",292)(6,wp,2,0,"a",293),s()()()),t&2){let e=u();r(3),c("ngIf",e.first!=""),r(),c("ngIf",e.previous!=""),r(),c("ngIf",e.next!=""),r(),c("ngIf",e.last!="")}}function kp(t,l){t&1&&(a(0,"small"),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name is required.")," "))}function Tp(t,l){t&1&&(a(0,"small"),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "))}function Ip(t,l){t&1&&(a(0,"small"),p(1),h(2,"translate"),s()),t&2&&(r(),T(" ",g(2,1,"PST name must be at least 3 characters long.")," "))}function Ep(t,l){if(t&1&&(a(0,"div",302),w(1,kp,3,3,"small",19)(2,Tp,3,3,"small",19)(3,Ip,3,3,"small",19),s()),t&2){u();let e=te(102);r(),c("ngIf",e.errors==null?null:e.errors.required),r(),c("ngIf",e.errors&&e.errors.pattern),r(),c("ngIf",e.errors&&e.errors.minlength)}}function Mp(t,l){if(t&1){let e=x();a(0,"button",303),b("click",function(){f(e);let i=u();return v(i.exportCompleteMailboxAsPstTriggerG())}),p(1),h(2,"translate"),s()}if(t&2){u();let e=te(102);c("disabled",e.invalid),r(),_(g(2,2,"Proceed"))}}function Pp(t,l){if(t&1){let e=x();a(0,"button",303),b("click",function(){f(e);let i=u();return v(i.exportSelectedAsPstG())}),p(1),h(2,"translate"),s()}if(t&2){u();let e=te(102);c("disabled",e.invalid),r(),_(g(2,2,"Proceed"))}}function Dp(t,l){t&1&&(a(0,"th"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Current item being processed")))}function Op(t,l){if(t&1&&(a(0,"span"),p(1),h(2,"slice"),s()),t&2){let e=u(2);r(),T("/ ",Be(2,1,e.progressG.subject,0,40),"")}}function Ap(t,l){if(t&1&&(a(0,"td")(1,"span",304),p(2),h(3,"slice"),s(),w(4,Op,3,5,"span",19),s()),t&2){let e=u();r(),At("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),r(),_(Be(3,5,e.progressG.currentFolderPath,0,20)),r(2),c("ngIf",e.progressG.subject)}}function Rp(t,l){t&1&&(a(0,"td"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"-")))}function Up(t,l){if(t&1&&(a(0,"span"),p(1),s()),t&2){let e=u(2);r(),Q("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore,"")}}function Fp(t,l){if(t&1&&(a(0,"td"),w(1,Up,2,2,"span",19),a(2,"div",305)(3,"div",306),p(4),h(5,"number"),s()()()),t&2){let e=u();r(),c("ngIf",e.progressG.totalNoOfFilesForRestore),r(),Ot("title","",e.progressG.totalRestorePct,"%"),r(),de("width",e.progressG.totalRestorePct,"%"),r(),T(" ",X(5,6,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Bp(t,l){t&1&&(a(0,"td"),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"0")))}function Vp(t,l){if(t&1){let e=x();a(0,"button",72),b("click",function(){f(e);let i=u();return v(i.cancelDownloadAsPstG())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Cancel Restore")))}function Np(t,l){t&1&&(a(0,"div",328)(1,"ul",329)(2,"li",330)(3,"strong",331),p(4,"No Users found"),s(),C(5,"ul",332),s()()())}function Lp(t,l){if(t&1&&(a(0,"option",32),p(1),s()),t&2){let e=l.$implicit;c("value",e.deviceUUID),r(),T(" ",e.deviceName," ")}}function Gp(t,l){if(t&1){let e=x();a(0,"div",314)(1,"span",36),p(2),h(3,"translate"),s(),a(4,"div",315)(5,"c-form-check",316)(6,"input",333),F("ngModelChange",function(i){f(e);let o=u(2);return U(o.suspendBackupR,i)||(o.suspendBackupR=i),v(i)}),s()()()()}if(t&2){let e=u(2);r(2),_(g(3,3,"Disallow new backups during this restore")),r(3),c("switch",!0),r(),R("ngModel",e.suspendBackupR)}}function Hp(t,l){if(t&1){let e=x();a(0,"c-card"),C(1,"c-card-header",67),a(2,"c-card-body")(3,"c-row")(4,"span"),p(5,"Source Path - "),a(6,"span"),p(7),s()()(),a(8,"c-row",68)(9,"p"),p(10),h(11,"translate"),s(),a(12,"div",139)(13,"label"),p(14,"User Id"),s(),a(15,"select2",307),h(16,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.selectedValueR,i)||(o.selectedValueR=i),v(i)}),b("search",function(i){f(e);let o=u();return v(o.onSearchR(i))})("update",function(i){f(e);let o=u();return v(o.updateR(i))}),s(),w(17,Np,6,0,"div",308),s(),a(18,"div",139)(19,"label"),p(20,"Asset Name"),s(),a(21,"select",309,10),b("change",function(){f(e);let i=te(22),o=u();return v(o.onDeviceChangeR(i.value))}),w(23,Lp,2,2,"option",110),s()()(),a(24,"c-row")(25,"div",58)(26,"label",310),p(27),h(28,"translate"),s(),a(29,"c-input-group",13)(30,"input",311),h(31,"translate"),F("ngModelChange",function(i){f(e);let o=u();return U(o.destinationPathR,i)||(o.destinationPathR=i),v(i)}),s(),a(32,"button",312),b("click",function(){f(e);let i=u();return v(i.browseR())}),p(33),h(34,"translate"),s()()()(),a(35,"c-row",68)(36,"h3"),p(37),h(38,"translate"),s(),a(39,"div",79),w(40,Gp,7,5,"div",313),a(41,"div",314)(42,"span",36),p(43),h(44,"translate"),s(),a(45,"div",315)(46,"c-form-check",316)(47,"input",317),F("ngModelChange",function(i){f(e);let o=u();return U(o.inplaceRestoreR,i)||(o.inplaceRestoreR=i),v(i)}),s()()()(),a(48,"div",314)(49,"span",36),p(50),h(51,"translate"),s(),a(52,"div",315)(53,"c-form-check",316)(54,"input",318),F("ngModelChange",function(i){f(e);let o=u();return U(o.restoreDeletedFilesByRestoreR,i)||(o.restoreDeletedFilesByRestoreR=i),v(i)}),s()()()()(),a(55,"div",319)(56,"div",320)(57,"span",321),p(58,"Restore Data As Of"),s(),a(59,"div",322)(60,"c-form-check",316)(61,"input",323),F("ngModelChange",function(i){f(e);let o=u();return U(o.dateBeforeR,i)||(o.dateBeforeR=i),v(i)}),b("change",function(){f(e);let i=u();return v(i.toggleDateBeforeR())}),s()()()(),a(62,"div",324)(63,"div",325)(64,"input",326),F("ngModelChange",function(i){f(e);let o=u();return U(o.myDateBeforeR,i)||(o.myDateBeforeR=i),v(i)}),s(),a(65,"timepicker",327),F("ngModelChange",function(i){f(e);let o=u();return U(o.myTimeBeforeR,i)||(o.myTimeBeforeR=i),v(i)}),s()()()()()()()}if(t&2){let e=u();r(7),_(e.currentFilePathR),r(3),_(g(11,34,"Select a destination asset:")),r(5),c("placeholder",g(16,36,"Select Users"))("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),R("ngModel",e.selectedValueR),r(2),c("ngIf",e.deviceUsersListR.length===0),r(6),c("ngForOf",e.devicesR),r(3),c("ngClass",A(50,cc,!e.inplaceRestoreR)),r(),_(g(28,38,"Select a Destination Path")),r(3),R("ngModel",e.destinationPathR),c("required",!e.inplaceRestoreR)("placeholder",g(31,40,"Enter Destination Path"))("readonly",!0),r(3),_(g(34,42,"Browse")),r(4),_(g(38,44,"Restore Options")),r(3),c("ngIf",!N(52,Tt).includes(e.productTypeContentSearch)),r(3),_(g(44,46,"In place Restore")),r(3),c("switch",!0),r(),R("ngModel",e.inplaceRestoreR),r(3),_(g(51,48,"Restore Deleted Mails")),r(3),c("switch",!0),r(),R("ngModel",e.restoreDeletedFilesByRestoreR),r(6),c("switch",!0),r(),R("ngModel",e.dateBeforeR),r(3),R("ngModel",e.myDateBeforeR),c("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),r(),R("ngModel",e.myTimeBeforeR),c("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function zp(t,l){if(t&1&&(a(0,"c-row")(1,"span"),p(2),h(3,"translate"),a(4,"span"),p(5),s()()()),t&2){let e=u(2);r(2),T("",g(3,2,"Source Path")," - "),r(3),_(e.currentFilePathR)}}function jp(t,l){t&1&&(a(0,"th"),p(1,"Current item being processed"),s())}function Wp(t,l){t&1&&(a(0,"th"),p(1),h(2,"translate"),s()),t&2&&(r(),T("",g(2,1,"Source Path")," "))}function qp(t,l){if(t&1&&(a(0,"span"),p(1),h(2,"slice"),s()),t&2){let e=u(3);r(),T("/ ",Be(2,1,e.progressR.subject,0,40),"")}}function $p(t,l){if(t&1&&(a(0,"td")(1,"span",304),p(2),h(3,"slice"),s(),w(4,qp,3,5,"span",19),s()),t&2){let e=u(2);r(),At("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),r(),_(Be(3,5,e.progressR.currentFolderPath,0,20)),r(2),c("ngIf",e.progressR.subject)}}function Jp(t,l){if(t&1&&(a(0,"td")(1,"span",334),p(2),h(3,"slice"),s()()),t&2){let e=u(2);r(),ke("title",e.progressR.folderName),r(),_(Be(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function Zp(t,l){t&1&&(a(0,"td"),p(1,"-"),s())}function Yp(t,l){if(t&1&&(a(0,"span"),p(1),s()),t&2){let e=u(4);r(),Q("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore,"")}}function Kp(t,l){if(t&1&&(a(0,"td"),w(1,Yp,2,2,"span",19),a(2,"div",335)(3,"div",306),p(4),h(5,"number"),s()()()),t&2){let e=u(3);r(),c("ngIf",e.progressR.totalNoOfFilesForRestore),r(),Ot("title","",e.progressR.totalRestorePct,"%"),r(),de("width",e.progressR.totalRestorePct,"%"),r(),T(" ",X(5,6,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function Qp(t,l){if(t&1&&w(0,Kp,6,9,"td",19),t&2){let e=u(2);c("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function Xp(t,l){t&1&&(a(0,"td"),C(1,"div",336),s())}function e0(t,l){t&1&&(a(0,"td"),p(1,"0"),s())}function t0(t,l){if(t&1&&(a(0,"c-card"),C(1,"c-card-header",67),a(2,"c-card-body"),w(3,zp,6,4,"c-row",19),a(4,"c-row",68)(5,"h3"),p(6),h(7,"translate"),s(),a(8,"table",69)(9,"thead")(10,"tr"),w(11,jp,2,0,"th")(12,Wp,3,3,"th"),a(13,"th"),p(14),h(15,"translate"),s()()(),a(16,"tbody")(17,"tr"),w(18,$p,5,9,"td",19)(19,Jp,4,6,"td",19)(20,Zp,2,0,"td",19)(21,Qp,1,1,"td")(22,Xp,2,0,"td")(23,e0,2,0,"td",19),s()()()()()()),t&2){let e=u();r(3),c("ngIf",!N(13,ms).includes(e.productTypeContentSearch)),r(3),_(g(7,9,"Currently Running Restore Statistics")),r(5),He(N(14,ms).includes(e.productTypeContentSearch)?12:11),r(3),_(g(15,11,"Overall Progress")),r(4),c("ngIf",!N(15,Tt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),r(),c("ngIf",N(16,Tt).includes(e.productTypeContentSearch)),r(),c("ngIf",!N(17,Tt).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),r(),He(!N(18,Tt).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?21:22),r(2),c("ngIf",!N(19,Tt).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function i0(t,l){if(t&1){let e=x();a(0,"button",337),b("click",function(){f(e);let i=u();return v(i.initiateRestoreR())}),p(1),h(2,"translate"),s()}if(t&2){let e=u();c("disabled",!e.selectedValueR||!e.selectedDeviceUUIDR||!e.inplaceRestoreR&&!e.destinationPathR.trim()),r(),_(g(2,2,"Initiate Restore"))}}function n0(t,l){if(t&1){let e=x();a(0,"button",338),b("click",function(){f(e);let i=u();return v(i.cancelRunningRestoreR())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Cancel Restore")))}function r0(t,l){if(t&1){let e=x();a(0,"button",339),b("click",function(){f(e);let i=u();return v(i.closeRestorePopupR())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Close")))}function o0(t,l){if(t&1){let e=x();a(0,"button",340),b("click",function(){f(e);let i=u();return v(i.closeRestorePopupR())}),p(1),h(2,"translate"),s()}t&2&&(r(),_(g(2,1,"Close")))}function a0(t,l){t&1&&(a(0,"span"),p(1,"My Drive/"),s())}function s0(t,l){t&1&&(a(0,"span"),p(1,"/"),s())}function l0(t,l){if(t&1&&(a(0,"span"),p(1),s()),t&2){let e=u();r(),_(e.browsePathR)}}function c0(t,l){if(t&1){let e=x();a(0,"button",341),b("click",function(){f(e);let i=u();return v(i.backBrowseR())}),C(1,"i",342),p(2),h(3,"translate"),s()}t&2&&(r(2),T(" ",g(3,1,"Back"),""))}function d0(t,l){t&1&&(a(0,"tr")(1,"td",343)(2,"div",344)(3,"span",345),p(4),h(5,"translate"),s()()()()),t&2&&(r(4),_(g(5,1,"Loading...")))}function p0(t,l){if(t&1){let e=x();a(0,"tr",346),b("click",function(){let i=f(e).$implicit,o=u();return v(o.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(i){let o=f(e).$implicit,d=u();return v(d.onDoubleClickR(i,o.folderName||o,o.folderId))}),a(1,"td")(2,"span",258),p(3),s()()()}if(t&2){let e=l.$implicit,n=u();c("ngClass",A(3,dc,n.selectedBrowseItemR===(e.folderName||e))),r(2),ke("title",e.folderName||e),r(),T(" ",e.folderName||e," ")}}var _s=(()=>{class t{constructor(e,n,i,o,d,m,y,k,E,M,D,P,O,B,se,De){this.authService=e,this.datePipe=n,this.router=i,this.apiService=o,this.toastr=d,this.http=m,this.sharedService=y,this.renderer=k,this.cdr=E,this.sanitizer=M,this.configService=D,this.licenseCheckService=P,this.TranslateService=O,this.userRoleService=B,this.userManagementService=se,this.assetManagementService=De,this.PRODUCTS_CONFIG=za,this.userAssetSearchText="",this.showCalendarLayoutView=!1,this.calendarView=qa.None,this.showCalendarView=!1,this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.showSecurityCallout=!0,this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.product=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.selectedPathCS="",this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!1,this.currentMailSubject="",this.currentMailFrom="",this.currentMailSentDate="",this.currentMailTo="",this.currentMailCc="",this.currentMailBcc="",this.currentMailAttachments=[],this.currentMailBody="",this.currentFileName="",this.currentMailPath="",this.currentMailBackupId="",this.currentMailUser="",this.isSelectAll=!1,this.isMultiSelectEnabled=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.selectItems=[],this.totalCountGS="",this.previous="",this.next="",this.last="",this.first="",this.activeTabIndex=1,this.pstFileNameG="",this.zipFileNameG="",this.displayPststyleG="none",this.displayZipstyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.exportCompleteSearchG=!1,this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayRestoreStyleR="none",this.destinationPathR="",this.value18R="",this.overlayR=!1,this.selectedValueR=null,this.deviceUsersListR=[],this.devicesR=[],this.inplaceRestoreR=!1,this.suspendBackupR=!1,this.restoreDeletedFilesByRestoreR=!1,this.restoreDataBeforeR="",this.dateBeforeR=!1,this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date,this.selectedDeviceUUIDR="",this.browsePathR="",this.browseItemsR=[],this.displayBrowseStyleR="none",this.newFolderR="",this.selectedBrowseItemR=null,this.combinedBrowseValueR="",this.loadingR=!1,this.gotResultForRestoreR=!1,this.displayRestoreSizeStyleR="none",this.batchIdR="",this.showRestoreSettingsR=!0,this.progressR=[],this.displayDeleteRestoreStyleR="none",this.restoreDataBefore="",this.currentFilePathR="",this.currentFileBackupIdR="",this.restoreAllVersionsR=!1,this.restoreLinksR=!1,this.profileImage="",this.contactName="",this.contactTitle="",this.contactFirstName="",this.contactMiddleName="",this.contactLastName="",this.contactSuffix="",this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-",this.combinedBusinessAddress="-",this.truncatedBusinessAddress="-",this.combinedHomeAddress="-",this.truncatedHomeAddress="-",this.fullCombinedName="-",this.truncatedCombinedName="-",this.showFullEmail=!1,this.showFullLocation=!1,this.showFullCompanyName=!1,this.showFullJobTitle=!1,this.showFullDepartment=!1,this.showFullMobile=!1,this.showFullHomePhone=!1,this.showFullBusinessPhone=!1,this.splitContactEmails=[],this.taskSubject="NA",this.taskStartDate="NA",this.taskDueDate="NA",this.taskReminderTime="NA",this.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 we,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let V=new Date,Oe=new Date;Oe.setFullYear(V.getFullYear()-1),new Date().setDate(V.getDate()-14),this.bsConfigBefore={minDate:Oe,maxDate:V,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:Oe,maxDate:V,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 G(this,null,function*(){if(this.userType=yield this.userRoleService.getUserRole(),this.userType==="user"){let e=this.sharedService.getDataByKey("userName"),n=atob(e),i={value:n};this.deviceUsersList=[{label:"",options:[{value:n,label:n}]}],this.selectedValue=n,this.update(i),this.deviceUsersListCS=[{label:"",options:[{value:n,label:n}]}],this.selectedValueCS=n,this.updateContentSearch(i),this.deviceUsersListR=[{label:"",options:[{value:n,label:n}]}],this.cdr.detectChanges()}else this.setActiveSearchTab("default",0),this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName: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")}]}];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(m=>this.inclusionLicenses.includes(m));let d=["exchange","gdrive","gmail","onedrive","sharepoint"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(m=>d.some(y=>m===`contentsearchenabledfor${y}`)),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.cdr.detectChanges()},i=>{if(i.status===404)return;this.intervalId&&(this.downloadId="",clearInterval(this.intervalId)),console.error("Error from getSignedURLFromId: ",i),console.error("Error status: ",i.status),console.error("Error status: ",i.error.text);let o=i.error.text;if(this.isViewFile){if(this.selectedUsers.size===1){let k=Array.from(this.selectedUsers)[0];if(console.log("filesize : "+k.rawSize),parseFloat(k.rawSize)>=51200){console.log(`filesize is more than ${50}MB `);return}}let d=/\/chunk\/([^/]+)/,m=o,y="";if(m){let k=m.match(d);k&&(console.log(k[1]),y=k[1])}this.executeNextCodeUnified(this.categoryContentSearch,y,o);return}else window.open(o,"_self");switch(i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",i.message);break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}executeNextCodeUnified(e,n,i){let o=this.sanitizer.sanitize(at.URL,i)||"";this.product.key==="Gmail"?this.showTextFileFromURL(o,"eml_view"):this.getJsonFromUrl(o,e)}showTextFileFromURL(e,n){this.txtFile=e,this.http.get(this.txtFile,{context:new In().set(zn,!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=Ja(i.trim());console.log("parsedMail : ",d),this.renderPrevious(d,"mail");return}console.log("data : "+JSON.stringify(i));let o=document.querySelector(".content");if(o){let d=document.createElement("pre");d.innerHTML=this.sanitizer.sanitize(at.HTML,i)||"",o.appendChild(d),o.style.textAlign="left",o.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=>{console.log("data : "+i),this.renderPrevious(i,n)},i=>{console.error("File does not exist or could not be loaded:",i)})}copyToClipboard(e,n){let i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.toastr.success(n+" copied to clipboard!")}showHideField(e){this.splitContactEmails.length>1&&(this.showFullEmail=e)}renderPrevious(e,n){if(n==="contacts"||this.categoryContentSearch=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=e.contact.displayName,this.contactTitle=e.contact.title,this.contactFirstName=e.contact.firstName,this.contactMiddleName=e.contact.middleName,this.contactLastName=e.contact.surname,this.contactSuffix=e.contact.suffix,this.contactEmail=e.contact.emailAddresses.map(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:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=e.contact.homePhones[0]&&e.contact.homePhones[0]!==""?e.contact.homePhones[0]:"-",this.contactBusinessPhones=e.contact.businessPhones[0]&&e.contact.businessPhones[0]!==""?e.contact.businessPhones[0]:"-",this.contactWebSite=e.contact.businessHomePage&&e.contact.businessHomePage!==""?e.contact.businessHomePage:"-",this.profileImage=e.photo?`data:image/jpg;base64,${e.photo}`:"./assets/images/avatars/default.jpg";let i=[this.contactBusiAddrStreet,this.contactBusiAddrCity,this.contactBusiAddrState,this.contactBusiAddrCountry,this.contactBusiAddrPostalCode];this.combinedBusinessAddress=i.filter(d=>d&&d.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let o=[this.contactAddrStreet,this.contactAddrCity,this.contactAddrState,this.contactAddrCountry,this.contactAddrPostalCode];this.combinedHomeAddress=o.filter(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,console.log("its a task..."),this.resetTasksFields(),this.taskSubject=e.title||"NA",this.taskStartDate=e?.completedDateTime?.dateTime?e?.completedDateTime?.dateTime+"Z":"NA",this.taskDueDate=e?.dueDateTime?.dateTime?e?.dueDateTime?.dateTim+"Z":"NA",this.taskReminderTime=e?.reminderDateTime?.dateTime?e?.reminderDateTime?.dateTime+"Z":"NA",this.taskImportance=e?.importance||"",console.log("its a todo...",e);else if(n==="calendar"||this.categoryContentSearch=="calendar")this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,console.log("its a calendar..."),this.currentCalendarSubject=e.subject||"",this.currentFileName=e.subject||"",this.currentCalendarFrom=e.organizer.emailAddress.address||"",this.currentCalendarSentDate=e.createdDateTime||"",this.currentCalendarTo=e.attendees.map(i=>i.emailAddress.address).join(",")||"",this.currentCalendarCc=e.ccRecipients||"",this.currentCalendarBcc=e.bccRecipients||"",this.currentCalendarAttachments=e.attachments||[],this.currentCalendarBody=e.body.content||"",this.calendarDuration=e?.start?.dateTime&&e?.end?.dateTime?`${this.getFormattedDate(e.start.dateTime+"Z")} - ${this.getFormattedDate(e.end.dateTime+"Z")}`:"",this.currentCalendarBody=this.currentCalendarBody,this.showloaderAtPreview=!1,setTimeout(()=>{let i=this.calendarIframe.nativeElement,o=i.contentDocument||i.contentWindow?.document;o&&(o.open(),o.write(this.currentCalendarBody),o.close())});else if(n==="mail"){console.log("its a 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(o=>o.emailAddress.address)||e.to?.map(o=>o.address)||"",this.currentMailCc=e.ccRecipients?.map(o=>o.emailAddress.address)||e.cc?.map(o=>o.address)||"",this.currentMailBcc=e.bccRecipients?.map(o=>o.emailAddress.address)||e.bcc?.map(o=>o.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 o=i.contentDocument||i.contentWindow?.document;if(o){o.open(),o.write(this.currentMailBody),o.close();let d=o.head||o.getElementsByTagName("head")[0];d||(d=o.createElement("head"),o.documentElement.prepend(d))}}}this.showloaderAtPreview=!1}setActiveSearchTab(e,n){return G(this,null,function*(){this.activeTabIndex=n;let i;switch(e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break;case"file":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(o=>o.key===this.productTypeFiles||o.dataManagementKey===this.productTypeFiles||o.key2===this.productTypeFiles||o.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(o=>o.key===this.productTypeContentSearch||o.dataManagementKey===this.productTypeContentSearch||o.key2===this.productTypeContentSearch||o.key3===this.productTypeContentSearch),setTimeout(()=>{this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?this.contentSearchMailInput.nativeElement.focus():this.contentSearch.nativeElement.focus()},0);break;default:setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break}typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath)})}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(at.HTML,e)||"")}logout(){console.log("Logout clicked 154"),this.authService.logout(),console.log("Token after logout"+this.authService.Token),this.router.navigate(["logout"])}activityHistory(){console.log("activityHistory clicked"),this.router.navigate(["activityHistory"])}onKeydown(e){e.key==="Enter"&&this.searchForUsersAssets()}searchForUsersAssets(){console.log("inside users/asset search : "+this.userAssetSearchText),this.userAssetSearchText!=""&&this.callApis()}closeOverlay(){this.close.emit()}callApis(){let e=this.userManagementService.getUsersSearch(this.userAssetSearchText),n=this.apiService.getDeviceSearch(this.userAssetSearchText),i=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):et(null);en([e,n,i]).subscribe(([o,d,m])=>{console.log("getUsersSearch response body:",JSON.stringify(o.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(o.headers)),console.log("getDeviceSearch response body:",JSON.stringify(d.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(d.headers)),o.body.data&&o.body.data.users?(this.noUsersFoundText="",this.foundUsers=o.body.data.users.map(y=>Ae(Z({},y),{userNameEncoded:btoa(y.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(y=>Ae(Z({},y),{userNameEncoded:btoa(y.userName),deviceNameEncoded:btoa(y.deviceName)}))):(this.noDevicesFoundText=this.TranslateService.instant("No Devices found"),this.foundDevices=[]),m&&(console.log("getSitesSearch response body:",JSON.stringify(m.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(m.headers)),m.body.data&&m.body.data.users?(this.noSitesFoundText="",this.foundSites=m.body.data.users.map(y=>Ae(Z({},y),{userNameEncoded:btoa(y.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.TranslateService.instant("No Sites found.")))},o=>{switch(console.error("Error from Api's call: ",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let i=document.querySelector(".header.header-sticky");i&&this.renderer.setStyle(i,"z-index","1000");let o=document.querySelector(".overlay");o&&this.renderer.setStyle(o,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let o=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersList=[{label:"",options:o}],this.cdr.detectChanges()}else this.deviceUsersList=[]},i=>{})}update(e){this.searched=!0,console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":this.deviceType=="mail"?o="OUTLOOK":o=this.deviceType,this.devices=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}updateNow(e){this.searched=!0,this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){this.deviceType=this.productTypeContentSearch;let i="";this.deviceType=="ODB"?i="ONEDRIVE":this.deviceType=="backup"?i="BACKUP":this.deviceType=="mail"?i="OUTLOOK":i=this.deviceType,this.devicesR=n.body.data.devices.filter(o=>o.blocked===!1&&o.deviceType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0]?.deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){return G(this,null,function*(){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let d={value:this.selectedValue};this.update(d)}this.devices=[];let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(d=>d.key===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 o=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let d=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(m=>{let y={exists:m.present?m.present.toString():"",backup:"true",deviceUUID:m.deviceUUID?m.deviceUUID.toString():"",fileName:m.fileName?m.fileName.toString():"",filePath:m.fileCompletePath?m.fileCompletePath.toString():"",fileUser:m.fileUserOwner?btoa(m.fileUserOwner):"",folder:m.folder?"true":"false",fileRevisionID:m.backupId?m.backupId.toString():"",content:m.metaData?m.metaData.toString():"",modifiedTimestamp:m.lastModifiedTimestamp?parseInt(m.lastModifiedTimestamp,10):0,size:m.size?parseInt(m.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(y.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,M=E.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"),y.deviceType=D,y.deviceOs=P,y.deviceId=E.deviceId?E.deviceId.toString():"",y.blocked="active",y.deviceName=E.deviceName?E.deviceName.toString():"",y.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",y.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",o.push(y),this.foundFiles=o,this.noFilesFound=!1,console.log("Files:",JSON.stringify(o))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.message);break}})})}else this.noFilesFound=!0;this.cdr.detectChanges()},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onSearchSite(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let o=i.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteList=[{label:"",options:o}],this.cdr.detectChanges()}else this.siteList=[]},i=>{})}updateSite(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let o="";this.deviceType=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceType,this.devices=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,o,d,m,y,k,E,M){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+o),console.log("fileUser : "+d),console.log("deviceUUID : "+m),console.log("folder : "+y),console.log("token : "+this.sharedService.getDataByKey("authToken")),["OUTLOOK","Gmail","mail"].includes(E)){this.isViewFile=!1,this.downloadMail(d,i,m,M);return}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(i,m,parseFloat((k/1024).toFixed(2))>=10,y==="true",this.product.dataManagementKey||this.product.key||E);return}let D="https://",P=this.configService.baseFolder,O="/BluKryptBuilder/cloud/",B=this.configService.cloudName,se=this.authService.Token,De=this.sharedService.getDataByKey("userName"),V=`${D}${P}${O}${B}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${se}&loginUserName=${De}&isSync=false+&deviceUUID=${m}&backupID=${i}&backup=${o}&userName=${this.base64Encode(d)}&moveToDownloads=false`;window.open(V,"_self")}gDriveDownloadFile(e,n,i,o=!1,d,m=!1){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),o?"FOLDER":i?"LARGE_FILE":this.isViewFile?d==="Gmail"?"EML":"VIEW":"SMALL_FILE",d,this.restoreDeletedFilesByRestoreR,void 0,void 0,m).subscribe(y=>{console.log("res from downloadGsuite : "+JSON.stringify(y)),console.log("res from downloadGsuite : "+JSON.stringify(y.body)),this.downloadId=y?.body?.downloadId,o||i?o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId()),this.cdr.detectChanges()},y=>{switch(console.error("Error from downloadGsuite: ",y),console.error("Error status: ",y.status),console.log("ID : "+y?.error?.text),y.status){case 200:console.error("Bad Request: ",y.message),this.downloadId=y?.error?.text,o||i?o?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId());break;case 400:console.error("Bad Request: ",y.message);break;case 401:console.error("Unauthorized: ",y.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",y.message);break;case 404:console.error("Not Found: ",y.message);break;case 412:console.error("Error code 412: ",y.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: ",y.message);break;case 503:console.error("Internal Server Error: ",y.message);break;default:console.error("Unknown Error: ",y.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,o,d){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",d),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",o),this.isOverlayVisible=!1;let m=document.querySelector(".header.header-sticky");m&&this.renderer.setStyle(m,"z-index","1000");let y=document.querySelector(".overlay");y&&this.renderer.setStyle(y,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["backup/files"])}onSearchContentSearch(e){let n=e.search||"";if(console.log("searchTerm : "+n),n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;if(n=="all"||n=="All"){this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label: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 o=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")},...o||[]]}],this.cdr.detectChanges()}else this.deviceUsersListCS=[]},i=>{})}updateContentSearch(e){console.log("value : "+e.value);let n=e.value;if(n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceTypeCS=="backup"?o="BACKUP":this.deviceTypeCS=="mail"?o="OUTLOOK":this.deviceTypeCS=="Gmail"?o="Gmail":o=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(d=>d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName: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(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="";this.deviceTypeCS=="ODB"?i="ONEDRIVE":this.deviceTypeCS=="backup"?i="BACKUP":this.deviceTypeCS=="mail"?i="OUTLOOK":this.deviceTypeCS=="Gmail"?i="Gmail":i=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(o=>o.deviceType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){return G(this,null,function*(){this.foundMailsCS=[],this.foundFiles=[],this.foundFilesCS=[],this.noFilesFound=!1,this.noFilesFoundCS=!1;let i=e.target.value;if(this.contentSearchText="",this.userType!=="user")this.deviceUsersListCS=[],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="",this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.cdr.detectChanges();else{let d={value:this.selectedValueCS};this.updateContentSearch(d)}let o=yield this.licenseCheckService.getLicensedProductsDetails();this.product=o.find(d=>d.key===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 G(this,null,function*(){this.categoryContentSearch!="mail"&&(this.isExpanded=!1),this.foundMailsCS=[],this.foundFilesCS=[],this.contentSearchText=""})}formatDateFromDateObject(e){return e?`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}/${e.getFullYear()}`:""}searchForContent(){if(this.foundMailsCS=[],this.foundFilesCS=[],console.log("vvvv : "+this.selectedValueCS),console.log("input : "+this.contentSearchMail),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"&&this.productTypeContentSearch!="Google Drive"){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}if(this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")if(console.log("fromId : "+this.fromId),console.log("toId : "+this.toId),console.log("ccId : "+this.ccId),console.log("bccId : "+this.bccId),console.log("subjectId : "+this.subjectId),console.log("bodyId : "+this.bodyId),console.log("keywordsId : "+this.keywordsId),console.log("myDateBefore : "+this.formatDateFromDateObject(this.myDateBefore)),console.log("myDateAfter : "+this.formatDateFromDateObject(this.myDateAfter)),this.togglePanel(),this.isExpanded=!1,this.contentSearchMail==""&&this.fromId==""&&this.toId==""&&this.ccId==""&&this.bccId==""&&this.subjectId==""&&this.bodyId==""&&this.keywordsId==""&&this.myDateBefore==null&&this.myDateAfter==null){this.toastr.error(this.TranslateService.instant("Please specify a search criteria."));return}else if((this.myDateBefore!==null||this.myDateAfter!==null)&&(!this.selectedValueCS||this.selectedValueCS==="All Users")){this.isExpanded=!0,this.toastr.error(this.TranslateService.instant("Please select a User Id."),this.TranslateService.instant("Error"));return}else 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=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let o=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let d=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&(e.body.data.fileElementList.forEach(m=>{let y={exists:m.present?m.present.toString():"",backup:"true",deviceUUID:m.deviceUUID?m.deviceUUID.toString():"",fileName:m.fileName?m.fileName.toString():"",filePath:m.fileCompletePath?m.fileCompletePath.toString():"",fileUser:m.fileUserOwner?btoa(m.fileUserOwner):"",folder:m.folder?"true":"false",fileRevisionID:m.fileRevisionId?m.fileRevisionId.toString():"",content:m.metaData?m.metaData.toString():"",modifiedTimestamp:m.lastModifiedTimestamp?parseInt(m.lastModifiedTimestamp,10):0,size:m.size?parseInt(m.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(y.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,M=E.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"),y.deviceType=D,y.deviceOs=P,y.deviceId=E.deviceId?E.deviceId.toString():"",y.blocked="active",y.deviceName=E.deviceName?E.deviceName.toString():"",y.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",y.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",o.push(y),this.foundFilesCS=o,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(o))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.message);break}})}),e.body.metadata&&(this.totalCountGS=e.body.data.totalNoofFiles,this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(m=>{let y={backupId:m.fileRevisionId,userName:m.fileUserOwner,deviceUUID:m.deviceUUID,subject:m.subject?m.subject:"<empty>",contactName:m.fileName?m.fileName:"-",taskSubject:m.subject?m.subject:"",present:m.exists.toString(),showIcon:m.from?m.from.charAt(0):"E",alphaColor:this.colorGen(),from:m.from?m.from:"<empty>",to:m.toRecipients?m.toRecipients:"",cc:m.ccRecipients?m.ccRecipients:"",bcc:m.bccRecipients?m.bccRecipients:"",sentDate:m.sentDate?new Date(m.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:m.metaData?m.metaData:"",bodyContent:m.bodyContent?m.bodyContent:"",bodyContent1:m.bodyContent?m.bodyContent.length>100?m.bodyContent.substring(0,100)+"...":m.bodyContent:"",hasAttachments:m.hasAttachments,attachments:m.attachments?m.attachments:"",name:m.subject?m.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:m.subject?m.subject:"<empty>",filePath:m.fileCompletePath,deviceId:m.deviceId};this.foundMailsCS.push(y)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=e.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(e.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,e.body.metadata&&(console.log("metadata : "+JSON.stringify(e.body.metadata)),this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},e=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}searchForContentNavigate(e){if(this.foundMailsCS=[],this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="oneDrive"&&this.productTypeContentSearch!="Gmail"&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error(this.TranslateService.instant("Please select a User Id."));return}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),(this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")&&(this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail)),this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearchNavigate(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",e,this.configService.componentName,this.categoryContentSearch).subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);let d=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(n.body.data.fileElementList));let m=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&(n.body.data.fileElementList.forEach(y=>{let k={exists:y.present?y.present.toString():"",backup:"true",deviceUUID:y.deviceUUID?y.deviceUUID.toString():"",fileName:y.fileName?y.fileName.toString():"",filePath:y.fileCompletePath?y.fileCompletePath.toString():"",fileUser:y.fileUserOwner?btoa(y.fileUserOwner):"",folder:y.folder?"true":"false",fileRevisionID:y.fileRevisionId?y.fileRevisionId.toString():"",content:y.metaData?y.metaData.toString():"",modifiedTimestamp:y.lastModifiedTimestamp?parseInt(y.lastModifiedTimestamp,10):0,size:y.size?parseInt(y.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(k.deviceUUID).subscribe(E=>{let M=E.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,console.log("Files:",JSON.stringify(d))},E=>{switch(console.error("Error from getDeviceInfo:",E),E.status){case 400:console.error("Bad Request:",E.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",E.message);break;case 404:console.error("Not Found:",E.message);break;case 500:case 503:console.error("Internal Server Error:",E.message);break;default:console.error("Unknown Error:",E.message);break}})}),n.body.metadata&&(this.totalCountGS=n.body.data.totalNoofFiles,this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(y=>{let k={backupId:y.fileRevisionId,userName:y.fileUserOwner,deviceUUID:y.deviceUUID,subject:y.subject?y.subject:"<empty>",contactName:y.fileName?y.fileName:"-",taskSubject:y.subject?y.subject:"",present:y.exists.toString(),showIcon:y.from?y.from.charAt(0):"E",alphaColor:this.colorGen(),from:y.from?y.from:"<empty>",to:y.toRecipients?y.toRecipients:"",cc:y.ccRecipients?y.ccRecipients:"",bcc:y.bccRecipients?y.bccRecipients:"",sentDate:y.sentDate?new Date(y.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:y.metaData?y.metaData:"",bodyContent:y.bodyContent?y.bodyContent:"",bodyContent1:y.bodyContent?y.bodyContent.length>100?y.bodyContent.substring(0,100)+"...":y.bodyContent:"",hasAttachments:y.hasAttachments,attachments:y.attachments?y.attachments:"",name:y.subject?y.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:y.subject?y.subject:"<empty>",filePath:y.fileCompletePath,deviceId:y.deviceId};this.foundMailsCS.push(k)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=n.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(n.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,n.body.metadata&&(console.log("metadata : "+JSON.stringify(n.body.metadata)),this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},n=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",n),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}onSearchSiteContentSearch(e){let n=e.search||"";if(console.log("searchTerm : "+n),n=="all"||n=="All"){this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")}]}],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";return}this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueSiteCS=null,this.assetManagementService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let o=i.body.stringElementList.map(d=>({value:d.name,label:d.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")},...o||[]]}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let o="";this.deviceTypeCS=="oneDrive"?o="ONEDRIVE":this.deviceType=="backup"?o="BACKUP":o=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(d=>d.blocked===!1&&d.deviceType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i),this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS=""})}parseEmailStringUnified(e){let n=e,i=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,o,d=[],m=[],y=[],k=[],E=[],M=[],D=[];for(;(o=i.exec(n))!==null;){let O=o[1],B=o[2];if(B.startsWith("(")&&B.endsWith(")")&&(B=B.slice(1,-1)),O==="from")d.push(B.trim());else if(O==="to")m.push(B.trim());else if(O==="cc")y.push(B.trim());else if(O==="bcc")k.push(B.trim());else if(O==="subject"){let se=B.trim();E.push(se.replace(/^\(|\)$/g,""))}else if(O==="body"){let se=B.trim();M.push(se.replace(/^\(|\)$/g,""))}else D.push(B.trim())}return D.push(n.replace(i,"").trim()),[`from:${d.join(",")}`,`to:${m.join(",")}`,`bcc:${k.join(",")}`,`cc:${y.join(",")}`,`subject:${E.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){console.log("inside selectUser"),this.selectedPathCS=e.filePath,this.selectedUsers.add(e),console.log("selectedUsers : "+JSON.stringify(Array.from(this.selectedUsers)))}viewOutlook11(e,n,i,o,d){if(console.log("from viewOutlook11 : "+d),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.selectUser(o),this.isViewFile=!1,this.product?.downloadsConfigurations?.unified){this.showloaderAtPreview=!0,this.isViewFile=!0,this.gDriveDownloadFile(i,o.deviceUUID,!1,!1,this.product.key,this.showloaderAtPreview);return}this.assetManagementService.viewMail(e,i).subscribe(m=>{if(m.body){this.showNotAvailable=!1;var y=JSON.stringify(m.body.mailElement),k=JSON.parse(y);if(console.log("mailElement : "+JSON.stringify(m.body.mailElement)),console.log("subject : "+m.body.mailElement.subject),console.log("from : "+m.body.mailElement.from),console.log("ccRecipients : "+m.body.mailElement.ccRecipients),console.log("toRecipients : "+m.body.mailElement.toRecipients),d=="mail"||d=="Gmail"){this.currentMailSubject=m.body.mailElement.subject,this.currentFileName=m.body.mailElement.subject,this.currentMailFrom=m.body.mailElement.from,this.currentMailSentDate=m.body.mailElement.sentDate,this.currentMailTo=m.body.mailElement.toRecipients,this.currentMailCc=m.body.mailElement.ccRecipients,this.currentMailBcc=m.body.mailElement.bccRecipients,this.currentMailAttachments=m.body.mailElement.attachments,this.currentMailBody=m.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let E=this.iframe.nativeElement,M=E.contentDocument||E.contentWindow?.document;M&&(M.open(),M.write(this.currentMailBody),M.close()),console.log("body : "+this.currentMailBody)}if(d=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=m.body.mailElement.fileName,this.contactTitle=m.body.mailElement.contactTitle,this.contactFirstName=m.body.mailElement.contactFirstName,this.contactMiddleName=m.body.mailElement.contactMiddleName,this.contactLastName=m.body.mailElement.contactLastName,this.contactSuffix=m.body.mailElement.contactSuffix,this.contactEmail=m.body.mailElement.contactEmail,this.contactMobile=m.body.mailElement.contactMobile,this.contactAddrStreet=m.body.mailElement.contactAddrStreet,this.contactAddrCity=m.body.mailElement.contactAddrCity,this.contactAddrState=m.body.mailElement.contactAddrState,this.contactAddrCountry=m.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=m.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=m.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=m.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=m.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=m.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=m.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=m.body.mailElement.contactOfficeLocation&&m.body.mailElement.contactOfficeLocation!==""?m.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=m.body.mailElement.contactCompanyName&&m.body.mailElement.contactCompanyName!==""?m.body.mailElement.contactCompanyName:"-",this.contactJobTitle=m.body.mailElement.contactJobTitle&&m.body.mailElement.contactJobTitle!==""?m.body.mailElement.contactJobTitle:"-",this.contactDepartment=m.body.mailElement.contactDepartment&&m.body.mailElement.contactDepartment!==""?m.body.mailElement.contactDepartment:"-",this.contactBirthday=m.body.mailElement.contactBirthday&&m.body.mailElement.contactBirthday!==""?m.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=m.body.mailElement.contactHomePhones&&m.body.mailElement.contactHomePhones!==""?m.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=m.body.mailElement.contactBusinessPhones&&m.body.mailElement.contactBusinessPhones!==""?m.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=m.body.mailElement.contactWebSite&&m.body.mailElement.contactWebSite!==""?m.body.mailElement.contactWebSite:"-";let E=[m.body.mailElement.contactBusiAddrStreet,m.body.mailElement.contactBusiAddrCity,m.body.mailElement.contactBusiAddrState,m.body.mailElement.contactBusiAddrCountry,m.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=E.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=[m.body.mailElement.contactAddrStreet,m.body.mailElement.contactAddrCity,m.body.mailElement.contactAddrState,m.body.mailElement.contactAddrCountry,m.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},m=>{switch(console.error("Error from viewOutlook11: ",m),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}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(m=>!this.isBackupIdExists(m.backupId));if(d.length>0){this.addedElementsUpdated.push(...d);let m=d.map(y=>y.subject);this.addedElements=m,this.addedElementsCount=this.addedElementsUpdated.length}else this.toastr.error(this.TranslateService.instant("Item(s) already added."),this.TranslateService.instant("Error"));this.clearSelection(),this.isSelectAll=!1,console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundMailsCS.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.backupId===e)}toggleSelectAll(){this.foundMailsCS.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundMailsCS.some(n=>n.isChecked)}itemSelect(){let e=this.foundMailsCS.length,n=this.foundMailsCS.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundMailsCS.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!this.isMultiSelectEnabled}removeItem(e,n,i,o){this.addedElementsUpdated=this.addedElementsUpdated.filter(d=>d.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,o){if(o.preventDefault(),o.stopPropagation(),o.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=>{console.log("res from downloadGmail : "+JSON.stringify(d)),console.log("res from downloadGmail : "+JSON.stringify(d.body)),this.cdr.detectChanges()},d=>{switch(console.error("Error from downloadGsuite: ",d),console.error("Error status: ",d.status),console.log("ID : "+d.error.text),d.status){case 200:console.error("Bad Request: ",d.message),this.downloadId=d.error.text;let m=0,y=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),m++,m>=y&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error(this.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=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},d=>{if(console.error("Error from downloadMail++++++: ",d.status),d.status=="200"){let m="https://",y=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",E=this.configService.cloudName,M=this.authService.Token,D=this.sharedService.getDataByKey("userName"),P=`${m}${y}${k}${E}/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,o){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}closePstPopupG(){this.displayPststyleG="none"}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadPststyleG="block",this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail(this.product.dataManagementKey||this.product.key||this.productTypeContentSearch,n)},1e4),this.cdr.detectChanges()}triggerGSuiteProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"),this.displayDownloadPststyleG="block"),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail(this.product.dataManagementKey||this.product.key||this.productTypeContentSearch,n)},1e4),this.cdr.detectChanges()}getDownloadPstEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID||"Global_Search_Microsoft Exchange",this.downloadId,this.product.dataManagementKey||this.product.key||e).subscribe(i=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),(i.status=="202"||i.status=="204")&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success"))):(this.displayDownloadPststyleG="none",this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success"))),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadPstEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG.trim()==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("Fail!!!"));return}if(this.product?.downloadsConfigurations?.unified){let e=this.getPstBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.assetManagementService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()).subscribe(n=>this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.assetManagementService.exportSelectedAsPstG(this.getPstBatchDetailElements()).subscribe(e=>{this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},n=>{switch(console.error("Error from initiateRestore: ",n),console.error("Error status: ",n.status),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),(e.status=="202"||e.status=="204")&&(this.displayDownloadPststyleG="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}closeDownloadPstPopupG(){this.displayDownloadPstRunBckConfirmstyleG="block"}cancelDownloadAsPstG(){this.displayDownloadPstConfirmstyleG="block"}closeDownloadPstConfirmPopupG(){this.displayDownloadPstConfirmstyleG="none"}closeDownloadPstRunBkpPopupG(){this.displayDownloadPstRunBckConfirmstyleG="none"}cancelDownloadAsPstRunBkpG(){this.displayDownloadPststyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges()}cancelDownloadAsPstConfirmG(){this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsPst : "+JSON.stringify(e)),console.log("res from cancelDownloadAsPst : "+JSON.stringify(e.body)),this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdG&&clearInterval(this.intervalIdG)},e=>{switch(console.error("Error from cancelDownloadAsPst: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onDeviceChangeCS(e){let n=e.target,i=n.selectedOptions[0],o=n.value,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(console.log("exportCompleteMailboxAsPst!!!!!"),this.displayPststyleG="none",this.pstFileNameG.trim()==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("Fail!!!"));return}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("pstFileName : "+this.pstFileNameG),console.log("currentMailBackupId : "+this.currentMailBackupId),console.log("currentMailUser : "+this.foundMailsCS[0].user),console.log("contentSearchText : "+this.contentSearchText),this.items.forEach((n,i)=>{this.backupIdsListG.push(n.backupId)}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,console.log("backupIdsList : "+this.backupIdsListG),this.selectedValueCS==""||this.selectedValueCS==="All Users"||this.selectedValueCS==null?(this.deviceId="",this.currentDeviceUUID=""):(this.deviceId=this.devicesCS[0].deviceId,this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID),this.currentDeviceUUID=this.product?.downloadsConfigurations?.unified?this.currentDeviceUUID:this.foundMailsCS[0].deviceUUID,console.log("deviceId : "+this.deviceId),(this.product?.downloadsConfigurations?.unified?this.assetManagementService.getContentSearchUnified(this.currentDeviceUUID,this.contentSearchText,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()):this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName,this.categoryContentSearch)).subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);let d=[];this.batchIdG=n.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(m=>{console.log("res from initiateRestore : "+JSON.stringify(m)),console.log("res from initiateRestore : "+JSON.stringify(m.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},m=>{switch(console.error("Error from initiateRestore: ",m),console.error("Error status: ",m.status),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 412:console.error("Error code 412: ",m.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})},n=>{switch(console.error("Error from getFilesSearch: ",n),n.status){case 200:this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}onRestoreClickR(e,n,i,o,d="",m){m.preventDefault(),m.stopPropagation(),m.stopImmediatePropagation(),this.displayRestoreStyleR="block";let y=[{label:"",options:[{value:this.currentMailUser||d,label:this.currentMailUser||d}]}];this.deviceUsersListR=y,this.selectedValueR=this.currentMailUser||d,this.value18R=this.currentMailUser||d,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!this.product?.downloadsConfigurations?.unified&&(this.getRestoreEventsProgressR(),this.intervalIdR=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),this.cdr.detectChanges())}closeRestorePopupR(){this.displayRestoreStyleR="none",this.destinationIdPath="",this.destinationId="",this.destinationPathR="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.intervalIdR&&clearInterval(this.intervalIdR),this.cdr.detectChanges()}onSearchR(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersListR=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let o=i.body.searchUserElementList.map(d=>({value:d.userName,label:d.userName}));this.deviceUsersListR=[{label:"",options:o}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){console.log("value : "+e.value);let n=e.value;this.selectedDeviceUUIDR="",this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let o="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(o=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(d=>d.blocked===!1&&d.osType==o).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}updateNowR(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(o=>o.blocked===!1&&o.osType==i).map(o=>({deviceName:o.deviceName,deviceUUID:o.deviceUUID,deviceId:o.deviceId,osType:o.osType,decoupled:o.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e=!1){if(this.browsePathR==""&&this.destinationPathR&&this.product?.downloadsConfigurations?.unified&&!e){this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath;let o=this.browsePathId?.split("/")||[];this.selectedBrowseItemId=this.destinationId||o.length&&o[o.length-1]||""}this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(this.selectedDeviceUUIDR,this.product.dataManagementKey||this.product.key,this.selectedBrowseItemId,void 0,this.categoryContentSearch==="todo"):this.assetManagementService.browseExchange(this.selectedDeviceUUIDR,this.browsePathR),i=this.deviceType;n.subscribe(o=>{this.loadingR=!1,o.body?.stringList?this.browseItemsR=o.body.stringList:Array.isArray(o.body)&&o.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=o.body:this.browseItemsR=o.body.map(d=>d.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},o=>{switch(this.loadingR=!1,console.error("Error from browse API:",o),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 500:case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.displayBrowseStyleR="none"}usePathR(){this.newFolderR="",this.displayBrowseStyleR="none",this.productTypeContentSearch=="Gmail"&&this.selectedBrowseItemR?(this.destinationPathR=this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.productTypeContentSearch=="Google Drive"&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR="My Drive/"+this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.product?.downloadsConfigurations?.unified&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR=this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):this.selectedBrowseItemR!=""?(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR,this.destinationIdPath=this.browsePathId),this.destinationId=this.selectedBrowseItemId}addNewFolderR(e){e&&e.trim()!==""?(this.browseItemsR.push(e),this.selectedBrowseItemR=e,this.newFolderR="",this.cdr.detectChanges(),console.log("New folder added: ",e),console.log("Selected folder: ",this.selectedBrowseItemR)):this.toastr.info(this.TranslateService.instant("Folder name cannot be empty."))}onSingleClickR(e,n){e!=="No path available"&&(this.selectedBrowseItemR=e,n&&(this.selectedBrowseItemId=n),console.log("Selected item:",this.selectedBrowseItemR)),console.log("Selected item:",this.selectedBrowseItemR)}onDoubleClickR(e,n,i){if(this.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),console.log("Combined value:",this.browsePathR),this.browseR()}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.product?.downloadsConfigurations?.restore?.rootBrowsePath:"root",this.browsePathId=n.join("/")):(typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(!0)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR)}getRestoreEventsProgressR(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),(e.status=="202"||e.status=="204")&&(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.destinationPathR="",this.destinationId="",this.destinationIdPath="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR))):this.showRestoreSettingsR=!0},e=>{switch(console.error("Error from getRestoreEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}cancelRunningRestoreR(){this.displayDeleteRestoreStyleR="block"}closeDeleteRestorePopupR(){this.displayDeleteRestoreStyleR="none"}deleteRestoreEventR(){this.displayDeleteRestoreStyleR="none",this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from deleteRestoreEvent : "+JSON.stringify(e)),console.log("res from deleteRestoreEvent : "+JSON.stringify(e.body)),this.showRestoreSettingsR=!0,this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdR&&clearInterval(this.intervalIdR)},e=>{switch(console.error("Error from deleteRestoreEvent: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}initiateRestoreR(){let n=new Date(this.myDateBeforeR).getTime();if(this.restoreDataBeforeR=n.toString(),this.dateBeforeR){let o=new Date(this.myDateBeforeR);o.setHours(this.myTimeBeforeR.getHours()),o.setMinutes(this.myTimeBeforeR.getMinutes()),o.setSeconds(this.myTimeBeforeR.getSeconds());let d=o.getTime();this.restoreDataBeforeR=d.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR)}let i=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Device."),this.TranslateService.instant("Fail!!!"));return}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error(this.TranslateService.instant("Inplace restore cannot be enabled for other destination assets."),this.TranslateService.instant("Fail!!!"));return}}else if(this.destinationPathR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Path."),this.TranslateService.instant("Fail!!!"));return}if(console.log("currentDeviceUUID : "+this.currentDeviceUUIDCS),console.log("selectedDeviceUUID : "+this.selectedDeviceUUID),console.log("destinationPath : "+this.destinationPathR),console.log("currentFilePath : "+this.currentFilePathR),console.log("currentFileBackupId : "+this.currentFileBackupIdR),console.log("isFolder : "+i),console.log("inplaceRestore : "+this.inplaceRestoreR),console.log("restoreDataBefore : "+this.restoreDataBeforeR),console.log("restoreDeletedFilesByRestore : "+this.restoreDeletedFilesByRestoreR),this.product?.downloadsConfigurations?.unified){this.assetManagementService.initiateRestoreGsuite(this.currentDeviceUUIDCS,this.currentFileBackupIdR,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,this.selectedDeviceUUIDR,this.destinationPathR,this.destinationId,i,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,this.currentFilePathR,this.currentFileName).subscribe(this.productTypeContentSearch==="Google Drive"?o=>{this.triggerGSuiteProgress(o,!0),this.showRestoreSettingsR=!1}:o=>{this.triggerGmailProgress(o,!0),this.showRestoreSettingsR=!1},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=o?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(o,!0):this.triggerGmailProgress(o,!0);break;case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:console.error("Error code 417: ",o.message),this.toastr.error("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}});return}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUIDR,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(o=>{console.log("res from initiateRestore : "+JSON.stringify(o)),console.log("res from initiateRestore : "+JSON.stringify(o.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info"))},o=>{switch(console.error("Error from initiateRestore: ",o),console.error("Error status: ",o.status),o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",o.message);break;case 404:console.error("Not Found: ",o.message);break;case 412:console.error("Error code 412: ",o.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break}})}resetContactFields(){this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-"}resetTasksFields(){this.taskSubject="-",this.taskStartDate="-",this.taskDueDate="-",this.taskReminderTime="-",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 o=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),i[o].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+/),o=[],d=[],m=[],y=[],k=[],E=[],M=[];for(let P=0;P<i.length;P++){let O=i[P];if(O.startsWith("from:"))o.push(O.replace("from:","").trim());else if(O.startsWith("to:"))d.push(O.replace("to:","").trim());else if(O.startsWith("cc:"))m.push(O.replace("cc:","").trim());else if(O.startsWith("bcc:"))y.push(O.replace("bcc:","").trim());else if(O.startsWith("subject:")){let B=O.replace("subject:","").trim();for(;!(B.startsWith("(")&&B.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,B+=" "+i[P];k.push(B.replace(/^\(|\)$/g,""))}else if(O.startsWith("body:")){let B=O.replace("body:","").trim();for(;!(B.startsWith("(")&&B.endsWith(")"))&&P+1<i.length&&!i[P+1].startsWith("body:")&&!i[P+1].startsWith("subject:");)P++,B+=" "+i[P];E.push(B.replace(/^\(|\)$/g,""))}else M.push(O)}return console.log("fromArray : "+o.join(",")),console.log("toArray : "+d.join(",")),console.log("ccArray : "+m.join(",")),console.log("bccArray : "+y.join(",")),console.log("subjectArray : "+k.join(",")),console.log("bodyArray : "+E.join(",")),console.log("keywordsArray : "+M.join("")),console.log("fromArray length : : "+o.length),[`from:${o.join(",")}`,`to:${d.join(",")}`,`bcc:${y.join(",")}`,`cc:${m.join(",")}`,`subject:${k.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${M.join(" ")}`,`body:${E.join(",")}`].join("#*#")}parseContentSearchMail(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let o=n[1],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),i[o].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,o){if(e>=i){this.intervalId=null,console.log("Interval expired after 10 seconds");return}this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.intervalId=setTimeout(()=>{o(),e++,n=n*1.5,this.scheduleNext(e,n,i,o)},n)}static{this.\u0275fac=function(n){return new(n||t)(S(J),S(me),S(oe),S(q),S(Ce),S(ze),S(ye),S(st),S(Me),S(ti),S(be),S(Pe),S(ae),S(ge),S(Ct),S(St))}}static{this.\u0275cmp=L({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&($(Wl,5),$(ql,5),$($l,5),$(Jl,5),$(Zl,5),$(Yl,5),$(Kl,5),$(Ql,5),$(Xl,5),$(ec,5)),n&2){let o;j(o=W())&&(i.deviceDropdown=o.first),j(o=W())&&(i.deviceDropdownCS=o.first),j(o=W())&&(i.iframe=o.first),j(o=W())&&(i.userDeviceSearch=o.first),j(o=W())&&(i.fileSearch=o.first),j(o=W())&&(i.contentSearch=o.first),j(o=W())&&(i.contentSearchMailInput=o.first),j(o=W())&&(i.deviceDropdownR=o.first),j(o=W())&&(i.calendarIframe=o.first),j(o=W())&&(i.searchInput=o.first)}},outputs:{close:"close"},features:[ie([J,q,Ct,me])],decls:256,vars:194,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentCalendarFrame",""],["contentFrame",""],["deviceDropdownR",""],[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",3,"click"],[1,"fa","fa-times-circle",2,"font-size","25px","cursor","pointer"],["variant","tabs","role","tablist"],[3,"ngStyle"],["cNavLink","",3,"click","cTabContent","tabPaneIdx"],[4,"ngIf"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[2,"margin-top","20px"],["cInputGroupText",""],["aria-describedby","userAssetSearchText","aria-label","userAssetSearchText","name","userAssetSearchText","cFormControl","","autofocus","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"col-lg-12",2,"align-items","center","margin-top","20px"],[1,"form-group","col-lg-2"],["for","productTypeFiles"],["cSelect","","name","productTypeFiles","id","productTypeFiles","title","Select Product Type",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel"],["value","backup",4,"ngIf"],["value","oneDrive",4,"ngIf"],["value","SHAREPOINT",4,"ngIf"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],["class","form-group col-lg-3 custom-select-wrapper",4,"ngIf"],[1,"col-lg-12",2,"align-items","center","margin-top","10px"],[1,"col-lg-8"],["aria-describedby","filesSearchText","aria-label","filesSearchText","name","filesSearchText","cFormControl","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"col-lg-2"],["type","button",1,"btn","btn-small","btn-primary",3,"click"],["style","overflow: scroll;height: 500px;",4,"ngIf"],["for","productTypeContentSearch"],["cSelect","","name","productTypeContentSearch","id","productTypeContentSearch","title","Select Product Type",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel"],["value","mail",4,"ngIf"],["value","Gmail",4,"ngIf"],["class","form-group col-lg-2",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],[3,"downloadFile","openFileLocation","navigatePage","product","foundFiles","noFilesFound","totalCountGS","productType","userType","contentSearchText","currentDeviceUUID","first","previous","next","last"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["class","justify-content-end",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","name","pstFileNameG","id","pstFileNameG","minlength","3","maxlength","64","pattern","^[a-zA-Z0-9@.\\(\\)\\-_]*$","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["class","text-danger",4,"ngIf"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"disabled","click",4,"ngIf"],["id","downloadAsPstG","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"col-lg-12"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["id","restoremodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"disabled","click",4,"ngIf"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click",4,"ngIf"],["id","browsemodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],[1,"col-lg-6"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[2,"max-height","400px","overflow-y","auto"],[1,"table","table-hover","table-bordered"],["id","left"],["class","text-left",3,"ngClass","click","dblclick",4,"ngFor","ngForOf"],["for","policyName"],["aria-describedby","newFolderR","name","newFolderR","id","newFolderR","aria-label","Enter folder name","cFormControl","","required","",3,"ngModelChange","ngModel","placeholder"],["cButton","","color","secondary","id","addNewFolderBtnR","type","button","variant","outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","disabled","ngModel"],["id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","ngModel"],[1,"form-group","col-lg-3","custom-select-wrapper"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[1,"fa-solid","fa-chevron-down","dropdown-icon"],[2,"overflow","scroll","height","500px"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],[1,"bg-body-tertiary","clickable-header"],[1,"bg-body-tertiary"],[4,"ngFor","ngForOf"],[1,"found-in"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],["value","mail"],["value","Gmail"],["for","categoryContentSearch"],["cSelect","","name","categoryContentSearch","id","categoryContentSearch","title","Select Product Type",1,"form-control","categoryContentSearch",3,"ngModelChange","change","ngModel"],["value","contacts"],["value","todo"],["value","calendar"],["noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","disabled","ngModel"],["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","id","fromId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","toId"],["type","text","id","toId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","ccId"],["type","text","id","ccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bccId"],["type","text","id","bccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","subjectId"],["type","text","id","subjectId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bodyId"],["type","text","id","bodyId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","keywordsId"],["type","text","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","title","Select all",3,"ngModelChange","change","ngModel"],[1,"btn","btn-small","btn-primary","addToCart",3,"click"],[3,"selected-rowMail",4,"ngFor","ngForOf"],["style","border-right: none;",4,"ngIf"],["class","col-lg-12","style","font-size:14px !important;border-left: none;",3,"click",4,"ngIf"],["type","checkbox",3,"ngModelChange","change","ngModel"],[2,"border-right","none"],[1,"aplhaC",2,"line-height","28px","text-align","center","display","inline-block","height","28px","width","28px","border-radius","50%","opacity","0.5",3,"ngStyle"],[1,"col-lg-12",2,"font-size","14px !important","border-left","none",3,"click"],["class","folder","style","cursor: pointer; color: #000 !important;text-decoration: none;",4,"ngIf"],["class","folder","style","cursor: pointer; color: #c5bcbc !important; font-style:italic;text-decoration: none;",4,"ngIf"],[1,"folder",2,"cursor","pointer","color","#000 !important","text-decoration","none"],[2,"font-weight","bold"],["class","fa fa-paperclip fa-1x pull-right","style","color: #000 !important; cursor:default;",4,"ngIf"],["class","pull-right","title","Download","style","cursor:pointer;",3,"click",4,"ngIf"],["class","pull-right","title","Restore file","style","margin-right:10px;cursor:pointer;",3,"click",4,"ngIf"],[1,"folder"],[2,"color","#062D4D"],[2,"float","right","color","grey",3,"innerHTML"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#000 !important","cursor","default"],["title","Download",1,"pull-right",2,"cursor","pointer",3,"click"],[1,"fa","fa-download"],["title","Restore file",1,"pull-right",2,"margin-right","10px","cursor","pointer",3,"click"],[1,"fa","fa-history"],[3,"innerHTML"],[1,"folder",2,"cursor","pointer","color","#c5bcbc !important","font-style","italic","text-decoration","none"],["class","fa fa-paperclip fa-1x pull-right","style","color: #c5bcbc !important;",4,"ngIf"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#c5bcbc !important"],[1,"fa","fa-id-card",2,"font-size","21px"],[1,"folder",2,"cursor","pointer","text-decoration","none"],[1,"fa-solid","fa-check"],[3,"ngClass",4,"ngIf"],["class","card-body-center",4,"ngIf"],[3,"navigator","metaData","calenderEvents","calendarView","breadcrumbItems"],[3,"ngClass"],[1,"panel",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],[1,"panel-body"],[1,"calendarSubject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],["class","calender",4,"ngIf"],[1,"contentCalendarOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentCalendarOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],["class","alert align-items-center callout",4,"ngIf"],[1,"from1"],[2,"float","right"],[1,"to1"],[1,"cc1"],[1,"bcc1"],[1,"attachments1"],[1,"dataa1"],["style","margin-right:5px; border: 1px solid #062D4D; padding:2px; border-radius:5px;",4,"ngFor","ngForOf"],[2,"margin-right","5px","border","1px solid #062D4D","padding","2px","border-radius","5px"],[1,"calender"],[1,"fa","fa-clock-o"],[1,"alert","align-items-center","callout"],["aria-hidden","true",1,"fa","fa-exclamation-triangle","me-2",2,"font-size","1rem","color","#856404"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],[1,"contentOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],[1,"phone-notch-box","row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"row","col-lg-12",2,"margin-bottom","10px"],[1,"col-lg-3"],["shape","rounded-1","textColor","primary","alt","User avatar",3,"size","src"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D","font-weight","bold"],[2,"cursor","pointer",3,"title"],["class","copy-icon",3,"title","click",4,"ngIf"],[2,"font-size","14px","color","#062D4D"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4",3,"mouseenter","mouseleave"],["class","contactEmail",3,"title",4,"ngIf"],["class","contactEmailList",4,"ngIf"],[1,"form-group","col-lg-4"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],[1,"copy-icon",3,"click","title"],[1,"fa","fa-clipboard"],[1,"contactEmail",3,"title"],[1,"contactEmailList"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[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","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],[1,"text-danger"],["type","button",1,"btn","btn-success",3,"click","disabled"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],["noResultMessage","No users found","id","selec2-18R","customSearchEnabled","","required","",3,"ngModelChange","search","update","placeholder","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["required","",1,"form-control",3,"change"],["for","destinationPathR",3,"ngClass"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","required","",3,"ngModelChange","ngModel","required","placeholder","readonly"],["cButton","","color","secondary","id","destinationPathBrowseBtnR","type","button","variant","outline",3,"click"],["class","col-lg-12 row form-group",4,"ngIf"],[1,"col-lg-12","row","form-group"],[1,"col-lg-4"],[3,"switch"],["cFormCheckInput","","id","inplaceRestoreR","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","restoreDeletedFilesByRestoreR","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-lg-3",2,"border","1px solid #062D4D","border-radius","10px","padding","10px","width","fit-content"],[1,"row","form-group"],[1,"col-6",2,"margin-top","10px"],[1,"col-4",2,"margin-top","10px"],["cFormCheckInput","","id","dateBeforeR","type","checkbox",3,"ngModelChange","change","ngModel"],[1,"row","align-items-center"],[1,"col-12","d-flex","flex-wrap"],["type","text","bsDatepicker","",1,"form-control","mx-2",2,"flex","1","min-width","150px",3,"ngModelChange","ngModel","bsConfig","disabled"],[2,"flex","1","min-width","100px",3,"ngModelChange","ngModel","minuteStep","showMeridian","disabled"],[1,"select2-results"],["role","tree","tabindex","-1","infinitescroll","","ng-reflect-infinite-scroll-disabled","false","ng-reflect-infinite-scroll-distance","1.5","ng-reflect-infinite-scroll-throttle","150","ng-reflect-infinite-scroll-container","[object HTMLUListElement]",1,"select2-results__options",2,"max-height","200px"],["role","group",1,"select2-results__option"],[1,"select2-results__group"],[1,"select2-results__options","select2-results__options--nested"],["cFormCheckInput","","id","suspendBackupR","type","checkbox",3,"ngModelChange","ngModel"],[1,"ellipsis-path",3,"title"],[1,"progressR",3,"title"],[1,"spinner"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click","disabled"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-arrow-left"],["colspan","1",1,"text-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"text-left",3,"click","dblclick","ngClass"]],template:function(n,i){if(n&1){let o=x();a(0,"div",11)(1,"div",12)(2,"c-card",13)(3,"c-card-body")(4,"a",14),b("click",function(){return f(o),v(i.closeOverlay())}),C(5,"i",15),s(),a(6,"c-nav",16)(7,"c-nav-item",17)(8,"button",18),b("click",function(){return f(o),v(i.setActiveSearchTab("default",0))}),p(9),h(10,"translate"),s()(),w(11,pc,4,5,"c-nav-item",19)(12,uc,4,5,"c-nav-item",19),s(),a(13,"c-tab-content",20,0)(15,"c-tab-pane",21)(16,"c-row",22)(17,"c-input-group",13)(18,"span",23),p(19),h(20,"translate"),s(),a(21,"input",24,1),h(23,"translate"),F("ngModelChange",function(m){return f(o),U(i.userAssetSearchText,m)||(i.userAssetSearchText=m),v(m)}),b("keydown.enter",function(){return f(o),v(i.searchForUsersAssets())}),s()()(),a(24,"c-row"),w(25,mc,2,1,"c-card",19)(26,gc,7,4,"c-card",19),C(27,"br"),w(28,_c,2,1,"c-card",19)(29,vc,7,4,"c-card",19),C(30,"br"),w(31,yc,2,1,"c-card",19)(32,Cc,7,4,"c-card",19),s()(),a(33,"c-tab-pane",21)(34,"c-row",25)(35,"div",26)(36,"label",27),p(37),h(38,"translate"),s(),a(39,"select",28),F("ngModelChange",function(m){return f(o),U(i.productTypeFiles,m)||(i.productTypeFiles=m),v(m)}),b("change",function(m){return f(o),v(i.onChangeProductType(m))}),w(40,Sc,3,3,"option",29)(41,wc,3,3,"option",30)(42,xc,3,3,"option",31),Ue(43,Tc,1,1,"option",32,lt),s()(),w(45,Ic,7,14,"div",33)(46,Ec,7,13,"div",33)(47,Dc,9,5,"div",34),s(),a(48,"c-row",35)(49,"div",36)(50,"c-input-group")(51,"input",37,2),h(53,"translate"),F("ngModelChange",function(m){return f(o),U(i.filesSearchText,m)||(i.filesSearchText=m),v(m)}),b("keydown.enter",function(){return f(o),v(i.searchForFiles())}),s()()(),a(54,"div",38)(55,"button",39),b("click",function(){return f(o),v(i.searchForFiles())}),p(56),h(57,"translate"),s()()(),C(58,"br"),w(59,Oc,6,3,"c-row",19)(60,Rc,11,6,"c-row",40),s(),a(61,"c-tab-pane",21)(62,"c-row",25)(63,"div",26)(64,"label",41),p(65),h(66,"translate"),s(),a(67,"select",42),F("ngModelChange",function(m){return f(o),U(i.productTypeContentSearch,m)||(i.productTypeContentSearch=m),v(m)}),b("change",function(m){return f(o),v(i.onChangeProductTypeContentSearch(m))}),w(68,Uc,3,3,"option",43)(69,Fc,3,3,"option",30)(70,Bc,3,3,"option",31)(71,Vc,3,3,"option",44),Ue(72,Lc,1,3,"option",32,lt),s()(),w(74,Gc,17,16,"div",45)(75,Hc,6,11,"div",33)(76,zc,6,10,"div",33)(77,qc,9,5,"div",34),s(),w(78,$c,10,7,"c-row",46)(79,Yc,8,7,"c-row",47)(80,Qc,2,1,"c-row",47),C(81,"br"),a(82,"app-document-content-search",48),b("downloadFile",function(m){return f(o),v(i.downloadFile(m.fileName,m.filePath,m.fileRevisionID,m.backup,m.fileUser,m.deviceUUID,m.folder,m.size,i.productTypeContentSearch,m))})("openFileLocation",function(m){return f(o),v(i.openFileLocation(m.fileName,m.filePath,m.deviceId,i.productTypeContentSearch,m.backup))})("navigatePage",function(m){return f(o),v(i.searchForContentNavigate(m))}),s(),w(83,Xc,5,0,"c-row",47)(84,vp,34,28,"c-row",49)(85,yp,7,3,"c-row",50),C(86,"br"),w(87,xp,7,4,"c-row",51),s()()()()()(),a(88,"div",52)(89,"div",53)(90,"div",54)(91,"div",55)(92,"h4",56),p(93),h(94,"translate"),s()(),a(95,"div",57)(96,"c-row")(97,"div",58)(98,"label",59),p(99),h(100,"translate"),s(),a(101,"input",60,3),h(103,"translate"),F("ngModelChange",function(m){return f(o),U(i.pstFileNameG,m)||(i.pstFileNameG=m),v(m)}),s(),w(104,Ep,4,3,"div",61),s()()(),a(105,"div",62)(106,"button",63),b("click",function(){return f(o),v(i.closePstPopupG())}),p(107),h(108,"translate"),s(),w(109,Mp,3,4,"button",64)(110,Pp,3,4,"button",64),s()()()(),a(111,"div",65)(112,"div",66)(113,"div",54)(114,"div",55)(115,"h4",56),p(116),h(117,"translate"),s()(),a(118,"div",57)(119,"c-card")(120,"c-card-header",67),p(121),h(122,"translate"),s(),a(123,"c-card-body")(124,"c-row",68)(125,"table",69)(126,"thead")(127,"tr"),w(128,Dp,3,3,"th",19),a(129,"th"),p(130),h(131,"translate"),s()()(),a(132,"tbody")(133,"tr"),w(134,Ap,5,9,"td",19)(135,Rp,3,3,"td",19)(136,Fp,6,9,"td",19)(137,Bp,3,3,"td",19),s()()()()()()(),a(138,"div",62)(139,"button",63),b("click",function(){return f(o),v(i.closeDownloadPstPopupG())}),p(140,"Close"),s(),w(141,Vp,3,3,"button",70),s()()()(),a(142,"div",52)(143,"div",53)(144,"div",54)(145,"div",55)(146,"h4",56),p(147),h(148,"translate"),s()(),a(149,"div",57)(150,"h4",56),p(151),h(152,"translate"),s()(),a(153,"div",62)(154,"button",63),b("click",function(){return f(o),v(i.closeDownloadPstConfirmPopupG())}),p(155),h(156,"translate"),s(),a(157,"button",71),b("click",function(){return f(o),v(i.cancelDownloadAsPstConfirmG())}),p(158),h(159,"translate"),s()()()()(),a(160,"div",52)(161,"div",53)(162,"div",54)(163,"div",55)(164,"h4",56),p(165),h(166,"translate"),s()(),a(167,"div",57)(168,"h4",56),p(169),h(170,"translate"),s()(),a(171,"div",62)(172,"button",63),b("click",function(){return f(o),v(i.closeDownloadPstRunBkpPopupG())}),p(173,"Cancel"),s(),a(174,"button",72),b("click",function(){return f(o),v(i.cancelDownloadAsPstRunBkpG())}),p(175,"Ok"),s()()()()(),a(176,"div",73)(177,"div",66)(178,"div",54)(179,"div",55)(180,"h4",56),p(181),h(182,"translate"),s()(),a(183,"div",57),w(184,Hp,66,53,"c-card",19)(185,t0,24,20,"c-card",19),s(),a(186,"div",62),w(187,i0,3,4,"button",74)(188,n0,3,3,"button",75)(189,r0,3,3,"button",76)(190,o0,3,3,"button",77),s()()()(),a(191,"div",78)(192,"div",53)(193,"div",54)(194,"div",55)(195,"h4",56),p(196),h(197,"translate"),s()(),a(198,"div",57)(199,"c-row",68)(200,"c-card",79)(201,"c-card-header",67)(202,"span"),p(203),h(204,"translate"),w(205,a0,2,0,"span",19)(206,s0,2,0,"span",19)(207,l0,2,1,"span",19),s()(),a(208,"c-card-body"),w(209,c0,4,3,"button",80),a(210,"div",81)(211,"table",82)(212,"thead")(213,"tr",83)(214,"th"),p(215),h(216,"translate"),s()()(),a(217,"tbody"),w(218,d0,6,3,"tr",19)(219,p0,4,5,"tr",84),s()()()()(),a(220,"c-card",79)(221,"c-card-body")(222,"div",58)(223,"label",85),p(224),h(225,"translate"),s(),a(226,"c-input-group",13)(227,"input",86),h(228,"translate"),F("ngModelChange",function(m){return f(o),U(i.newFolderR,m)||(i.newFolderR=m),v(m)}),s(),a(229,"button",87),b("click",function(){return f(o),v(i.addNewFolderR(i.newFolderR))}),p(230),h(231,"translate"),s()()()()()()(),a(232,"div",62)(233,"button",63),b("click",function(){return f(o),v(i.closeBrowsePopupR())}),p(234,"Close"),s(),a(235,"button",88),b("click",function(){return f(o),v(i.usePathR())}),p(236),h(237,"translate"),s()()()()(),a(238,"div",52)(239,"div",53)(240,"div",54)(241,"div",55)(242,"h4",56),p(243),h(244,"translate"),s()(),a(245,"div",57)(246,"h4",56),p(247),h(248,"translate"),s()(),a(249,"div",62)(250,"button",63),b("click",function(){return f(o),v(i.closeDeleteRestorePopupR())}),p(251),h(252,"translate"),s(),a(253,"button",72),b("click",function(){return f(o),v(i.deleteRestoreEventR())}),p(254),h(255,"translate"),s()()()()()}if(n&2){let o=te(14),d=te(102);r(7),c("ngStyle",A(178,Ve,i.userType!="user"?"block":"none")),r(),c("cTabContent",o)("tabPaneIdx",0),r(),T(" ",g(10,114,"Search Users/Assets"),""),r(2),c("ngIf",i.hasBackupLicense),r(),c("ngIf",i.hasContentSearchLicense),r(),c("activeTabPaneIdx",i.activeTabIndex),r(6),_(g(20,116,"Search Users/Assets")),r(2),R("ngModel",i.userAssetSearchText),c("placeholder",g(23,118,"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,120,"Product Type")),r(2),R("ngModel",i.productTypeFiles),r(),c("ngIf",i.inclusionLicenses.includes("backup_enabled")),r(),c("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),r(),c("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),r(),Fe(i.PRODUCTS_CONFIG),r(2),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles=="SHAREPOINT"),r(),c("ngIf",i.productTypeFiles!="SHAREPOINT"),r(4),R("ngModel",i.filesSearchText),c("placeholder",g(53,122,"Search for files/folders ..")),r(5),_(g(57,124,"Search")),r(3),c("ngIf",i.noFilesFound),r(),c("ngIf",i.foundFiles.length>0&&!i.noFilesFound),r(5),_(g(66,126,"Product Type")),r(2),R("ngModel",i.productTypeContentSearch),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),r(),c("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),r(),Fe(i.PRODUCTS_CONFIG),r(2),c("ngIf",(i.product==null||i.product.downloadsConfigurations==null?null:i.product.downloadsConfigurations.unified)&&i.productTypeContentSearch=="mail"),r(),c("ngIf",i.productTypeContentSearch!="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch=="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch!="SHAREPOINT"),r(),c("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),r(),c("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),r(),c("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),r(2),c("product",i.product)("foundFiles",i.foundFilesCS)("noFilesFound",i.noFilesFoundCS)("totalCountGS",i.totalCountGS)("productType",i.productTypeContentSearch)("userType",i.userType)("contentSearchText",i.contentSearchText)("currentDeviceUUID",i.currentDeviceUUID)("first",i.first)("previous",i.previous)("next",i.next)("last",i.last),r(),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),r(),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),r(),c("ngIf",!i.isMultiSelectEnabled&&i.foundMailsCS.length>0&&i.showSecurityCallout),r(2),c("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),r(),c("ngStyle",A(180,Ve,i.displayPststyleG)),r(5),_(g(94,128,"Specify Filename")),r(6),_(g(100,130,"Specify pst filename")),r(2),ke("placeholder",g(103,132,"Enter PST File Name")),R("ngModel",i.pstFileNameG),r(3),c("ngIf",d.invalid&&(d.dirty||d.touched)),r(3),_(g(108,134,"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(182,Ve,i.displayDownloadPststyleG)),r(5),_(g(117,136,"Restore Progress")),r(5),_(g(122,138,"Currently Running Restore Statistics")),r(7),c("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),r(2),_(g(131,140,"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(184,Ve,i.displayDownloadPstConfirmstyleG)),r(5),_(g(148,142,"Restore Cancel Confirmation")),r(4),_(g(152,144,"Are you sure you wish to cancel the restore?")),r(4),_(g(156,146,"Cancel")),r(3),_(g(159,148,"Ok")),r(2),c("ngStyle",A(186,Ve,i.displayDownloadPstRunBckConfirmstyleG)),r(5),_(g(166,150,"Confirmation")),r(4),_(g(170,152,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),r(7),c("ngStyle",A(188,Ve,i.displayRestoreStyleR)),r(5),_(g(182,154,"Restore Settings")),r(3),c("ngIf",i.showRestoreSettingsR),r(),c("ngIf",!i.showRestoreSettingsR),r(2),c("ngIf",i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),r(),c("ngIf",!i.showRestoreSettingsR&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop)),r(),c("ngIf",i.showRestoreSettingsR),r(),c("ngIf",!i.showRestoreSettingsR),r(),c("ngStyle",A(190,Ve,i.displayBrowseStyleR)),r(5),_(g(197,156,"Browse path")),r(7),T("",g(204,158,"Current Path")," :"),r(2),c("ngIf",i.productTypeContentSearch==="Google Drive"),r(),c("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),r(),c("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),r(2),c("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),r(6),_(g(216,160,"Items")),r(3),c("ngIf",i.loadingR),r(),c("ngForOf",i.browseItemsR),r(5),_(g(225,162,"Create new folder")),r(3),R("ngModel",i.newFolderR),c("placeholder",g(228,164,"Enter folder name")),r(3),_(g(231,166,"Create")),r(5),c("disabled",!i.selectedBrowseItemR&&!i.browsePathR),r(),_(g(237,168,"Use Path")),r(2),c("ngStyle",A(192,Ve,i.displayDeleteRestoreStyleR)),r(5),_(g(244,170,"Restore Cancel Confirmation")),r(4),_(g(248,172,"Are you sure you wish to cancel the restore?")),r(4),_(g(252,174,"Close")),r(3),_(g(255,176,"Delete"))}},dependencies:[ds,ba,ya,ci,We,pi,mi,ui,ga,_a,ha,$e,Aa,Ra,vt,Ci,Oa,yt,Si,Ua,Fa,Ba,bt,re,ct,je,ne,Xt,dt,me,Ia,Ea,Ta,Ca,li,ht,mt,gt,gi,qe,ft,ue,Ye,Va,bi,Ze,Ke,Na,Qe,La,Ga,us,he,di,$a],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}.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 u0=t=>({"bg-danger":t});function m0(t,l){if(t&1){let e=x();a(0,"div",8)(1,"div",9)(2,"small",10),p(3),s(),a(4,"small"),p(5),h(6,"number"),s()(),a(7,"small",11),p(8),h(9,"titlecase"),h(10,"translate"),s(),a(11,"div",12),C(12,"div",13),s(),a(13,"div",14)(14,"button",15),b("click",function(i){let o=f(e).$implicit;return u(2).cancelFile(o.id),v(i.stopImmediatePropagation())}),p(15),h(16,"translate"),s()()()}if(t&2){let e=l.$implicit,n=u(2);r(2),c("title",e.name),r(),_(e.name),r(2),T("",X(6,9,e.progress,"1.0-0"),"%"),r(3),Q("",n.formatFileSize(e.size)," | ",g(10,14,g(9,12,e.status)),""),r(4),de("width",e.progress,"%"),c("ngClass",A(18,u0,e.status==="failed"||e.status==="canceled")),r(3),T(" ",g(16,16,"Cancel")," ")}}function h0(t,l){if(t&1){let e=x();a(0,"div",1)(1,"div",2),b("mousedown",function(i){f(e);let o=u();return v(o.startDrag(i))})("touchstart",function(i){f(e);let o=u();return v(o.startDrag(i))}),a(2,"span",3),p(3),h(4,"translate"),s(),a(5,"span",4),p(6),h(7,"async"),s()(),a(8,"div",5)(9,"h6",6),p(10),h(11,"translate"),h(12,"async"),s(),w(13,m0,17,20,"div",7),h(14,"async"),s()()}if(t&2){let e,n,i=u();de("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),Q("",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 fs=(()=>{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),o=320,d=200,m=n-this.dragOffset.x,y=i-this.dragOffset.y,k=0,E=0,M=window.innerWidth-o,D=window.innerHeight-60;m<k&&(m=k),y<E&&(y=E),m>M&&(m=M),y>D&&(y=D),this.position.x=m,this.position.y=y}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(oi))}}static{this.\u0275cmp=L({type:t,selectors:[["app-upload-panel"]],hostBindings:function(n,i){n&1&&b("mousemove",function(d){return i.onMove(d)},!1,it)("touchmove",function(d){return i.onMove(d)},!1,it)("mouseup",function(d){return i.onUp(d)},!1,it)("touchend",function(d){return i.onUp(d)},!1,it)},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&&(w(0,h0,15,22,"div",0),h(1,"async")),n&2){let o;c("ngIf",(o=g(1,1,i.uploadManager.files$))==null?null:o.length)}},dependencies:[re,ct,je,ne,Qt,dt,Dn,he],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 g0=()=>["superAdmin"],vs=t=>({display:t}),ys=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],_0=()=>["/mspDashboard"],f0=()=>["/dashboard"],v0=()=>["/bluvault"],y0=()=>({placement:"bottom-start"}),b0=t=>({lastLoggedInTime:t}),C0=t=>({active:t}),S0=()=>[],w0=t=>({label:"Close",class:"btn btn-default",action:t}),x0=t=>[t],k0=t=>({subscriptionStartDate:t}),Gi=t=>({label:"Cancel",class:"btn btn-default",action:t}),Hi=t=>({label:"Ok",class:"btn btn-primary",action:t}),zi=(t,l)=>[t,l],T0=(t,l)=>l.key,I0=(t,l)=>l.name;function E0(t,l){if(t&1&&(a(0,"button",26),C(1,"i",27),s()),t&2){let e=u();c("cSidebarToggle",e.sidebarId)}}function M0(t,l){if(t&1){let e=x();a(0,"c-input-group",28)(1,"input",29),h(2,"translate"),b("click",function(){f(e);let i=u();return v(i.openOverlay())}),s(),a(3,"span",30),C(4,"i",31),s()()}t&2&&(r(),c("placeholder",g(2,1,"Search")))}function P0(t,l){if(t&1){let e=x();a(0,"c-sidebar-brand",32)(1,"img",33),b("error",function(i){f(e);let o=u();return v(o.onImageError(i))}),s()()}if(t&2){let e=u();c("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&N(2,ys).includes(e.userType)?N(3,_0):N(4,ys).includes(e.userType)?N(5,f0):N(6,v0)),r(),c("src",e.parabluLogo,ve)}}function D0(t,l){if(t&1){let e=x();a(0,"app-search-overlay",34),b("close",function(){f(e);let i=u();return v(i.closeOverlay())}),s()}}function O0(t,l){t&1&&Zt(0)}function A0(t,l){t&1&&Zt(0)}function R0(t,l){t&1&&Zt(0)}function U0(t,l){if(t&1&&(a(0,"button",35),C(1,"img",36),p(2),h(3,"translate"),s()),t&2){let e=u();c("cSidebarToggle",e.sidebarId2),r(2),T(" ",g(3,2,"AI Help")," ")}}function F0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.currentUserProfile())}),C(2,"i",49),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"My Account")))}function B0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",50),b("click",function(){f(e);let i=u(3);return v(i.userType==="user"?i.currentUserProfile():null)}),C(2,"i",49),a(3,"span",48),p(4),s()()()}if(t&2){let e=u(3);r(),de("cursor",e.userType==="user"?"pointer":"default"),r(3),_(e.currentUser)}}function V0(t,l){t&1&&(a(0,"span",48),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Administrator")))}function N0(t,l){t&1&&(a(0,"span",48),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"User")))}function L0(t,l){if(t&1&&(a(0,"li",51)(1,"a",52),C(2,"i",49),w(3,V0,3,3,"span",53)(4,N0,3,3,"span",53),s()()),t&2){let e=u(3);r(3),c("ngIf",e.userType=="delegatedAdmin"),r(),c("ngIf",e.userType=="user")}}function G0(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function H0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.redirectPaddleConsent())}),C(2,"i",54),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Manage Subscription")))}function z0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.initiateGuidedSetup())}),C(2,"img",55),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Guided Setup")))}function j0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.redirectProductConsent())}),C(2,"i",56),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Add Product")))}function W0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.activityHistory())}),C(2,"i",57),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Activity History")))}function q0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.unusualActivityHistory())}),C(2,"i",57),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Unusual Activity History")))}function $0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.endpointsDownload())}),C(2,"i",58),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Download Agent")))}function J0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.licenseOptimizer())}),C(2,"i",59),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"License Optimizer")))}function Z0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.packDetails())}),C(2,"i",54),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Current Packs Subscribed")))}function Y0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.navigateToDownloads())}),C(2,"i",58),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Downloads")))}function K0(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function Q0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.shareActivityHistory())}),C(2,"i",60),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Share Activity History")))}function X0(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.sharedByMe())}),C(2,"i",60),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Files Shared By Me")))}function eu(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.sharedWithMe())}),C(2,"i",60),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Files Shared With Me")))}function tu(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.infectedActivityHistory())}),C(2,"i",57),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Infected Files History")))}function iu(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.miniclouds())}),C(2,"i",61),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"MiniClouds")))}function nu(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function ru(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function ou(t,l){if(t&1&&(a(0,"li")(1,"a",62),p(2),h(3,"translate"),s()()),t&2){let e=u(3);r(),c("href",e.quick_startUrl,ve),r(),_(g(3,2,"Quick Start Guide"))}}function au(t,l){if(t&1&&(a(0,"li")(1,"a",62),p(2),h(3,"translate"),s()()),t&2){let e=u(3);r(),c("href",e.administrator_Guide_EndpointUrl,ve),r(),_(g(3,2,"Administrator Guide"))}}function su(t,l){if(t&1&&(a(0,"li")(1,"a",63),p(2),h(3,"translate"),s()()),t&2){let e=u(3);r(),c("href",e.quick_start_serverUrl,ve),r(),_(g(3,2,"Quick Start Guide (Servers)"))}}function lu(t,l){if(t&1&&(a(0,"li")(1,"a",63),p(2),h(3,"translate"),s()()),t&2){let e=u(3);r(),c("href",e.administrator_Guide_ServerUrl,ve),r(),_(g(3,2,"Administrator Guide (Servers)"))}}function cu(t,l){if(t&1&&(a(0,"li")(1,"a",63),p(2),h(3,"translate"),s()()),t&2){let e=u(3);r(),c("href",e.userGuideUrl,ve),r(),_(g(3,2,"User Guide"))}}function du(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function pu(t,l){t&1&&(a(0,"li")(1,"h6",64),p(2),h(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"Help & Support")))}function uu(t,l){if(t&1){let e=x();a(0,"li")(1,"a",46),b("click",function(){f(e);let i=u(3);return v(i.redirectConsent())}),C(2,"i",65),a(3,"span",48),p(4),h(5,"translate"),s()()()}t&2&&(r(4),_(g(5,1,"Create Support Ticket")))}function mu(t,l){t&1&&(a(0,"li")(1,"a",62),C(2,"i",66),a(3,"span",48),p(4,"+971 50 158 7321"),s()()()),t&2&&(r(),c("href","https://wa.me/971501587321",ve))}function hu(t,l){if(t&1&&(a(0,"li")(1,"a",67),C(2,"i",68),a(3,"span",48),p(4),h(5,"translate"),s()()()),t&2){let e=u(3);r(),c("href","mailto:"+e.support_mailId,ve),r(3),_(g(5,2,"Send email"))}}function gu(t,l){t&1&&(a(0,"li"),C(1,"hr",44),s())}function _u(t,l){if(t&1){let e=x();a(0,"ul",41),w(1,F0,6,3,"li",42)(2,B0,5,3,"li",42)(3,L0,5,2,"li",43),a(4,"li"),C(5,"hr",44),s(),a(6,"li")(7,"span",45),p(8),h(9,"translate"),s()(),a(10,"li",45),p(11),h(12,"translate"),h(13,"translate"),s(),w(14,G0,2,0,"li",42)(15,H0,6,3,"li",42)(16,z0,6,3,"li",42)(17,j0,6,3,"li",42),a(18,"li"),C(19,"hr",44),s(),w(20,W0,6,3,"li",42)(21,q0,6,3,"li",42)(22,$0,6,3,"li",42)(23,J0,6,3,"li",42)(24,Z0,6,3,"li",42)(25,Y0,6,3,"li",42)(26,K0,2,0,"li",42)(27,Q0,6,3,"li",42)(28,X0,6,3,"li",42)(29,eu,6,3,"li",42)(30,tu,6,3,"li",42)(31,iu,6,3,"li",42)(32,nu,2,0,"li",42)(33,ru,2,0,"li",42)(34,ou,4,4,"li",42)(35,au,4,4,"li",42)(36,su,4,4,"li",42)(37,lu,4,4,"li",42)(38,cu,4,4,"li",42)(39,du,2,0,"li",42)(40,pu,4,3,"li",42)(41,uu,6,3,"li",42)(42,mu,5,1,"li",42)(43,hu,6,4,"li",42)(44,gu,2,0,"li",42),a(45,"li")(46,"a",46),b("click",function(){f(e);let i=u(2);return v(i.logout())}),C(47,"i",47),a(48,"span",48),p(49),h(50,"translate"),s()()()()}if(t&2){let e=u(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 fu(t,l){if(t&1){let e=x();a(0,"ul",41)(1,"li")(2,"a",46),b("click",function(){f(e);let i=u(2);return v(i.logout())}),C(3,"i",47),a(4,"span",48),p(5),h(6,"translate"),s()()()()}t&2&&(r(5),_(g(6,1,"Logout")))}function vu(t,l){if(t&1&&(a(0,"c-dropdown",37)(1,"button",38),C(2,"c-avatar",39),h(3,"date"),h(4,"translate"),h(5,"translate"),s(),w(6,_u,51,43,"ul",40)(7,fu,7,3,"ul",40),s()),t&2){let e=u();c("popperOptions",N(14,y0)),r(),c("caret",!1),r(),c("cTooltip",e.lastLoggedInTime?X(4,9,"LastLoginTime",A(15,b0,X(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 yu(t,l){if(t&1){let e=x();a(0,"button",50),b("click",function(){let i=f(e).$implicit,o=u(2);return v(o.changeLanguage(i.key))}),p(1),s()}if(t&2){let e=l.$implicit,n=u(2);yn(A(3,C0,e.key===n.currentLocale)),r(),T(" ",e.name," ")}}function bu(t,l){if(t&1&&(a(0,"c-dropdown",69)(1,"button",70),C(2,"i",71),a(3,"span",72),p(4),s()(),a(5,"div",73),Ue(6,yu,2,5,"button",74,T0),s()()),t&2){let e=u();r(),c("caret",!1),r(3),_(e.showLangName),r(2),Fe(e.SupportedLocales)}}function Cu(t,l){if(t&1){let e=x();a(0,"button",79),b("click",function(i){f(e);let o=u(2);return v(o.click_Crashplan_Endpoint(i))}),a(1,"a",80),p(2),h(3,"translate"),s()()}if(t&2){let e=u(2);r(),c("href",e.crashplan_Endpoint_Url,ve),r(),_(g(3,2,"CrashPlan Endpoint"))}}function Su(t,l){if(t&1){let e=x();a(0,"button",81),b("click",function(){let i=f(e).$implicit,o=u(2);return o.colorMode.set(i.name),v(o.applyTheme())}),Ai(),C(1,"svg",82),p(2),h(3,"translate"),s()}if(t&2){let e=l.$implicit,n=u(2);c("active",n.colorMode()===e.name)("routerLink",N(6,S0)),r(),c("name",e.icon),r(),T(" ",g(3,4,e.text)," ")}}function wu(t,l){if(t&1&&(w(0,Cu,4,4,"button",75),a(1,"c-dropdown",69)(2,"button",76),Ai(),C(3,"svg",77),s(),pn(),a(4,"div",73),Ue(5,Su,4,7,"button",78,I0),s()()),t&2){let e=u();c("ngIf",e.crashplan_Endpoint_Url),r(2),c("caret",!1),r(),c("name",e.icons()),r(2),Fe(e.colorModes)}}function xu(t,l){t&1&&(a(0,"th",86),p(1),h(2,"translate"),s()),t&2&&(r(),_(g(2,1,"Servers")))}function ku(t,l){t&1&&(a(0,"td",89)(1,"span"),p(2),h(3,"translate"),s()()),t&2&&(r(2),_(g(3,1,"-")))}function Tu(t,l){if(t&1&&(a(0,"tr")(1,"td",89)(2,"div"),p(3),s()(),a(4,"td",89)(5,"div"),p(6),s()(),a(7,"td",89)(8,"div"),p(9),s()(),a(10,"td",89)(11,"div"),p(12,"-"),s()()()),t&2){let e=l.$implicit;r(3),_(e.skuCode),r(3),_(e.storageSize),r(3),_(e.minUserCount)}}function Iu(t,l){if(t&1&&(a(0,"tr")(1,"td",89)(2,"div"),p(3),s()(),a(4,"td",89)(5,"div"),p(6,"-"),s()(),a(7,"td",89)(8,"div"),p(9),s()(),a(10,"td",89)(11,"div"),p(12),s()()()),t&2){let e=l.$implicit;r(3),_(e.skuCode),r(6),_(e.storageSize),r(3),_(e.minUserCount)}}function Eu(t,l){if(t&1&&(Pt(0),w(1,Iu,13,3,"tr",92),Dt()),t&2){let e=u(2);r(),c("ngForOf",e.serverPacks)}}function Mu(t,l){if(t&1&&(a(0,"td",89)(1,"span")(2,"b"),p(3),s()()()),t&2){let e=u(2);r(3),_(e.totalServer)}}function Pu(t,l){if(t&1&&(a(0,"app-modal",83)(1,"c-row")(2,"table",84)(3,"thead",85)(4,"tr")(5,"th",86),p(6,"Pack Name "),s(),a(7,"th",86)(8,"p",87),p(9),h(10,"translate"),s(),a(11,"p",87),p(12),h(13,"translate"),s()(),a(14,"th",86),p(15,"Users"),s(),w(16,xu,3,3,"th",88),s()(),a(17,"tbody")(18,"tr")(19,"td",89)(20,"span")(21,"a",90),h(22,"date"),h(23,"translate"),p(24),s(),C(25,"br"),a(26,"span"),p(27),h(28,"translate"),s()()(),a(29,"td",89)(30,"span"),p(31),s()(),a(32,"td",89)(33,"span"),p(34),s()(),w(35,ku,4,3,"td",91),s(),w(36,Tu,13,3,"tr",92)(37,Eu,2,1,"ng-container",42),a(38,"tr",89)(39,"td",89)(40,"span")(41,"b"),p(42),h(43,"translate"),s()()(),a(44,"td",89)(45,"span")(46,"b"),p(47),s()()(),a(48,"td",89)(49,"span")(50,"b"),p(51),s()()(),w(52,Mu,4,1,"td",91),s()()()()()),t&2){let e=u();c("modalSize","modal-lg")("modalWidth","90%")("footerButtons",A(36,x0,A(34,w0,e.closePackDetails))),r(2),c("hover",!0)("responsive",!0)("striped",!0),r(7),_(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",X(23,27,"SubscribedOn",A(38,k0,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 Du(t,l){if(t&1){let e=x();a(0,"app-crashplan-nav",93),b("closeModalHandler",function(){f(e);let i=u();return v(i.close_Crashplan_Endpoint())}),s()}}function Ou(t,l){if(t&1&&(C(0,"app-modal",94),h(1,"translate")),t&2){let e=u();ke("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",Te(8,zi,A(4,Gi,e.cancelRedirectConsent),A(6,Hi,e.confirmRedirectConsent)))}}function Au(t,l){if(t&1&&(C(0,"app-modal",94),h(1,"translate")),t&2){let e=u();ke("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",Te(8,zi,A(4,Gi,e.cancelPaddleRedirectConsent),A(6,Hi,e.confirmPaddleRedirectConsent)))}}function Ru(t,l){if(t&1&&(C(0,"app-modal",94),h(1,"translate")),t&2){let e=u();ke("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",Te(8,zi,A(4,Gi,e.cancelProductRedirectConsent),A(6,Hi,e.confirmProductRedirectConsent)))}}var bs=(()=>{class t extends fa{#t;#e;#i;constructor(e,n,i,o,d,m,y,k,E,M,D,P,O,B){let se=e.Token;(!se||se.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=o,this.apiService=d,this.cdr=m,this.toastr=y,this.datePipe=k,this.licenseCheckService=E,this.TranslateService=M,this.userRoleService=D,this.dashboardService=P,this.configService=O,this.http=B,this.conversationalAI=!1,this.isOverlayVisible=!1,this.parabluLogo="",this.crashplanLogo="",this.userType="",this.ransomewareSuit=!1,this.syncEnabled="false",this.isMspEnabled="false",this.support_mailId="support@parablu.com",this.stylePackDetails=!1,this.statistics={},this.skuCode="",this.packModel="",this.showServerTab="false",this.totalStorage=0,this.totalUser=0,this.totalServer=0,this.storageSize="",this.minUserCount="-",this.customerId="-",this.referenceNumber="-",this.subscriptionStartDate=0,this.serverMgmt=!1,this.addons=[],this.userPacks=[],this.serverPacks=[],this.showCenterBrandLogo=!1,this.quick_startUrl="",this.administrator_Guide_EndpointUrl="",this.quick_start_serverUrl="",this.administrator_Guide_ServerUrl="",this.userGuideUrl="",this.showCrashplanEndpointLicenseModal=!1,this.commonAssetUrl="https://dns.parablu.com/cpassets/doc/",this.inclusionLicenses=[],this.exclusionLicenses=[],this.crashplan_Endpoint_Url="",this.#t=tt(Bn),this.#e=tt(aa),this.colorMode=this.#e.colorMode,this.#i=tt(mn),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=xn(()=>{let V=this.colorMode();return this.colorModes.find(Oe=>Oe.name===V)?.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(rn(1),Y(V=>V.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),zt(V=>["dark","light","auto"].includes(V)),z(V=>{this.colorMode.set(V)}),na(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(V=>{typeof V=="object"&&V!==null?Object.keys(V).length>0&&(this.supportUrl=V.support_url):console.error("Unexpected response format:",V)},V=>{console.error("Error fetching data:",V)})}ngOnInit(){return G(this,null,function*(){this.currentLocale=this.TranslateService.currentLang,this.showLangName=this.SupportedLocales.find(o=>this.currentLocale===o.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(o=>!this.inclusionLicenses.includes(o))&&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(o=>{o 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 G(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}changeLanguage(e){return G(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 G(this,null,function*(){(yield this.fetchAndSetPaddlePortalSession())&&(this.redirectPaddleConsentStyle=!0)})}fetchAndSetPaddlePortalSession(){return G(this,null,function*(){try{let n=(yield Ht(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((o,d)=>{if(o.subscriptionActive){this.skuCode=o.skuCode,this.packModel=o.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(o.storageSize),this.totalUser=Number(o.minUserCount),this.storageSize=o.storageSize.toString(),this.minUserCount=o.minUserCount.toString(),this.customerId=o.customerId,this.referenceNumber=o.referenceNumber;let m=new Date(o.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(o.subscriptionStartDate),o.addons&&o.addons.length>0&&(this.addons=o.addons),o.addons&&o.addons.length>0&&o.addons.forEach(k=>{k.subscriptionActive&&!k.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))});let y=0;o.addons&&o.addons.length>0&&o.addons.forEach(k=>{k.skuCode.startsWith("ADSER")&&k.subscriptionActive&&(this.serverPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))}),this.showServerTab=this.inclusionLicenses.includes("windows_server_backup_enabled")&&this.totalServer!=0?"true":"false"}}),this.cdr.detectChanges()},e=>{switch(e.status){case 400:break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:break;case 503:break;default:break}})}packDetails(){this.stylePackDetails=!0,this.updateStatistics()}openOverlay(){this.isOverlayVisible=!0;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","2000");let n=document.querySelector(".overlay");n&&this.renderer.setStyle(n,"display","block")}closeOverlay(){this.isOverlayVisible=!1;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","1000")}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}applyTheme(){location.reload()}checkWizardStatus(){let e=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets","/login","/locallogin","/logout"];for(let n=0;n<e.length;n++)if(this.router.url.startsWith(e[n]))return;console.log(".... smbConsent from header...."),this.apiService.checkWizardStatus().subscribe(n=>{var i=JSON.stringify(n.body),o=JSON.parse(i);this.isMsAppConsented=n.body.msAppConsented,this.isEwsAppConsented=n.body.ewsAppConsented,this.ssoAppConsented=n.body.ssoAppConsented,this.assetsConfigured=n.body.assetsConfigured;let 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(J),S(oe),S(st),S(ye),S(q),S(Me),S(Ce),S(me),S(Pe),S(ae),S(ge),S(xi),S(be),S(ze))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-header"]],inputs:{conversationalAI:"conversationalAI",sidebarId:"sidebarId",sidebarId2:"sidebarId2"},features:[ie([me,J,q,xi]),xe],decls:61,vars:39,consts:[["userDropdown",""],["localeDropdown",""],["themeDropdown",""],[1,"px-4",3,"fluid"],["cHeaderToggler","","class","btn","toggle","visible","style","margin-inline-start: -14px;","aria-label","Toggle sidebar navigation",3,"cSidebarToggle",4,"ngIf"],["class","col-lg-3","style","width: 30% !important;",4,"ngIf"],["style","max-width: 12%;cursor: pointer;",3,"routerLink",4,"ngIf"],[3,"close",4,"ngIf"],[1,"mx-0"],[4,"ngTemplateOutlet"],["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"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"btn",2,"margin-inline-start","-14px",3,"cSidebarToggle"],[1,"fa-solid","fa-bars"],[1,"col-lg-3",2,"width","30% !important"],["aria-describedby","basic-addon2","name","search","aria-label","Search","cFormControl","",3,"click","placeholder"],["cInputGroupText","","id","basic-addon2"],[1,"fa-solid","fa-magnifying-glass"],[2,"max-width","12%","cursor","pointer",3,"routerLink"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],[3,"close"],["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 o=x();Pt(0),a(1,"c-container",3),w(2,E0,2,1,"button",4)(3,M0,5,3,"c-input-group",5)(4,P0,2,7,"c-sidebar-brand",6)(5,D0,1,0,"app-search-overlay",7),a(6,"c-header-nav",8),w(7,O0,1,0,"ng-container",9)(8,A0,1,0,"ng-container",9)(9,R0,1,0,"ng-container",9)(10,U0,4,4,"button",10),s()(),Dt(),w(11,vu,8,17,"ng-template",null,0,Yt)(13,bu,8,2,"ng-template",null,1,Yt)(15,wu,7,3,"ng-template",null,2,Yt)(17,Pu,53,40,"app-modal",11)(18,Du,1,0,"app-crashplan-nav",12),a(19,"div",13)(20,"div",14)(21,"div",15)(22,"div",16)(23,"h4",17),p(24,"Step 1: Provide Consent"),s(),a(25,"a",18),C(26,"i",19),s()(),a(27,"div",20)(28,"h4"),p(29),h(30,"translate"),s(),a(31,"c-callout",21),p(32),h(33,"translate"),s()(),a(34,"div",22)(35,"button",23),b("click",function(){return f(o),v(i.denyConsentFlow())}),p(36,"Cancel"),s(),a(37,"button",24),b("click",function(){return f(o),v(i.proceedForConsentFlow())}),p(38,"Proceed"),s()()()()(),a(39,"div",13)(40,"div",14)(41,"div",15)(42,"div",16)(43,"h4",17),p(44),h(45,"translate"),s()(),a(46,"div",20)(47,"h4"),p(48),h(49,"translate"),s()(),a(50,"div",22)(51,"button",23),b("click",function(){return f(o),v(i.denyAssetConfigurationFlow())}),p(52),h(53,"translate"),s(),a(54,"button",24),b("click",function(){return f(o),v(i.proceedForAssetConfigurationFlow())}),p(55),h(56,"translate"),s()()()()(),C(57,"app-upload-panel"),w(58,Ou,2,11,"app-modal",25)(59,Au,2,11,"app-modal",25)(60,Ru,2,11,"app-modal",25)}if(n&2){let o=te(12),d=te(14),m=te(16);r(),c("fluid",!0),r(),c("ngIf",!i.showCenterBrandLogo),r(),c("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")&&!N(34,g0).includes(i.userType)&&i.onlySyncEnv=="false"),r(),c("ngIf",i.showCenterBrandLogo),r(),c("ngIf",i.isOverlayVisible),r(2),c("ngTemplateOutlet",d),r(),c("ngTemplateOutlet",m),r(),c("ngTemplateOutlet",o),r(),c("ngIf",i.conversationalAI),r(7),c("ngIf",i.stylePackDetails),r(),c("ngIf",i.showCrashplanEndpointLicenseModal),r(),c("ngStyle",A(35,vs,i.displayConsentRemainder)),r(10),_(g(30,22,"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(33,24,"Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.")),r(7),c("ngStyle",A(37,vs,i.displayAssetConfigurationRemainder)),r(5),_(g(45,26,"Step 2: Configure Assets")),r(4),T(" ",g(49,28,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),""),r(4),_(g(53,30,"Cancel")),r(3),_(g(56,32,"Proceed")),r(3),c("ngIf",i.redirectConsentStyle),r(),c("ngIf",i.redirectPaddleConsentStyle),r(),c("ngIf",i.redirectProductConsentStyle)}},dependencies:[hi,cs,_i,vi,_t,Jo,va,ni,Pn,da,ca,ci,la,pa,sa,pi,mi,ui,_s,re,je,ne,We,me,ue,qe,bi,ft,Za,di,he,fs],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 Uu=4,Fu=.001,Bu=1e-7,Vu=10,Nt=11,Ii=1/(Nt-1),Nu=typeof Float32Array=="function";function Cs(t,l){return 1-3*l+3*t}function Ss(t,l){return 3*l-6*t}function ws(t){return 3*t}function Ei(t,l,e){return((Cs(l,e)*t+Ss(l,e))*t+ws(l))*t}function xs(t,l,e){return 3*Cs(l,e)*t*t+2*Ss(l,e)*t+ws(l)}function Lu(t,l,e,n,i){let o,d,m=0;do d=l+(e-l)/2,o=Ei(d,n,i)-t,o>0?e=d:l=d;while(Math.abs(o)>Bu&&++m<Vu);return d}function Gu(t,l,e,n){for(let i=0;i<Uu;++i){let o=xs(l,e,n);if(o===0)return l;let d=Ei(l,e,n)-t;l-=d/o}return l}function Hu(t){return t}function zu(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 Hu;let i=Nu?new Float32Array(Nt):new Array(Nt);for(let d=0;d<Nt;++d)i[d]=Ei(d*Ii,t,e);function o(d){let m=0,y=1,k=Nt-1;for(;y!==k&&i[y]<=d;++y)m+=Ii;--y;let E=(d-i[y])/(i[y+1]-i[y]),M=m+E*Ii,D=xs(M,t,e);return D>=Fu?Gu(d,M,t,e):D===0?M:Lu(d,m,m+Ii,t,e)}return function(m){return m===0?0:m===1?1:Ei(o(m),l,n)}}var ju=new ot("SMOOTH_SCROLL_OPTIONS"),ks=(()=>{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=Z({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):ra(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new Ne).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return Le(K(e,"wheel",{passive:!0,capture:!0}),K(e,"touchmove",{passive:!0,capture:!0}),n).pipe(nn(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new rt(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let o=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*o,e.currentY=e.startY+(e.y-e.startY)*o,this._scrollElement(e.scrollable,e.currentX,e.currentY),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),o={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:zu(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(d=>{et(null).pipe(on(()=>this._step(o).pipe(ln(m=>this._isFinished(m,i,d)))),Se(this._interrupted(e,i)),an(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(kn(this._platform)){let i=this._getElement(e),o=getComputedStyle(i).direction==="rtl",d=wi(),m=Ae(Z(Z({},this._defaultOptions),n),{left:n.left==null?o?n.end:n.start:n.left,right:n.right==null?o?n.start:n.end:n.right});return m.bottom!=null&&(m.top=i.scrollHeight-i.clientHeight-m.bottom),o&&d!==0?(m.left!=null&&(m.right=i.scrollWidth-i.clientWidth-m.left),d===2?m.left=m.right:d===1&&(m.left=m.right?-m.right:m.right)):m.right!=null&&(m.left=i.scrollWidth-i.clientWidth-m.right),this._applyScrollToOptions(i,m)}return Promise.resolve()}scrollToElement(e,n,i={}){let o=this._getElement(e),d=this._getElement(n,o),m=Ae(Z({},i),{left:d.offsetLeft+(i.left||0),top:d.offsetTop+(i.top||0)});return d?this.scrollTo(o,m):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(H(pe),H(gn),H(ju,8))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qu=["scrollbarY"],$u=["scrollbarX"],Ju=["*"];function Zu(t,l){if(t&1&&C(0,"scrollbar-x",null,0),t&2){let e=u(2);Re("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function Yu(t,l){if(t&1&&C(0,"scrollbar-y",null,1),t&2){let e=u(2);Re("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Ku(t,l){if(t&1&&(Pt(0),w(1,Zu,2,2,"scrollbar-x",5)(2,Yu,2,2,"scrollbar-y",5),Dt()),t&2){let e=u();r(),c("ngIf",e.state.horizontalUsed),r(),c("ngIf",e.state.verticalUsed)}}var Qu=(()=>{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=ce({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Ms(t){return z(()=>{t.onselectstart=()=>!1})}function Ps(t){return z(()=>{t.onselectstart=null})}function Xe(){return z(t=>t.stopPropagation())}function ji(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var Wi=(()=>{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 rt(i=>{let o=K(this.nativeElement,"mousemove",{passive:!0}),d=e?o:o.pipe(Xe()),m=K(this.nativeElement,"mouseleave",{passive:!0}).pipe(Y(()=>!1));Le(d,m).pipe(z(y=>i.next(y)),Se(n)).subscribe()}),this.clicked=new rt(i=>{let o=K(this.nativeElement,"mousedown",{passive:!0}).pipe(z(m=>i.next(m))),d=K(this.nativeElement,"mouseup",{passive:!0}).pipe(z(()=>i.next(!1)));o.pipe(It(()=>d),Se(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=ce({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),Ie=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=ce({type:t,standalone:!1})}}return t})(),Ji=(()=>{class t{get clicked(){let e=K(this.trackElement,"mousedown",{passive:!0}).pipe(Xe(),Ms(this.document)),n=K(this.document,"mouseup",{passive:!0}).pipe(Xe(),Ps(this.document),It(()=>Qi));return Le(e,n)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(e,n,i){this.cmp=e,this.trackElement=n,this.document=i}onTrackClicked(e,n,i){return et(e).pipe(Y(o=>o[this.pageProperty]),Y(o=>(o-this.offset-n/2)/this.size*i),z(o=>{this.cmp.scrollTo(Ae(Z({},this.mapToScrollToOption(o)),{duration:Ui(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S(HTMLElement),S(Document))}}static{this.\u0275dir=ce({type:t,standalone:!1})}}return t})(),qi=(()=>{class t extends Ji{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(Ie),S(le),S(pe))}}static{this.\u0275dir=ce({type:t,selectors:[["","scrollbarTrackX",""]],features:[xe]})}}return t})(),$i=(()=>{class t extends Ji{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(Ie),S(le),S(pe))}}static{this.\u0275dir=ce({type:t,selectors:[["","scrollbarTrackY",""]],features:[xe]})}}return t})(),Ds=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return K(this.thumbElement,"mousedown",{passive:!0}).pipe(Xe())}constructor(e,n,i,o){this.cmp=e,this.track=n,this.thumbElement=i,this.document=o,this._dragging=new Ne,this.dragging=this._dragging.pipe(jt())}update(){let e=Xu(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=em(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);Gt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,o=et(e).pipe(Ms(this.document),z(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),d=K(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Xe()),m=K(this.document,"mouseup",{capture:!0}).pipe(Xe(),Ps(this.document),z(()=>this.setDragging(!1)));return o.pipe(Y(y=>y[this.pageProperty]),Y(y=>y-this.dragStartOffset),Xi(y=>d.pipe(Y(k=>k[this.clientProperty]),Y(k=>k-this.track.offset),Y(k=>i*(k-y)/n),Y(k=>this.handleDrag(k,i)),z(k=>this.scrollTo(k)),Se(m))))}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S(Ji),S(HTMLElement),S(Document))}}static{this.\u0275dir=ce({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function Xu(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function em(t,l,e){return t*e/l}var Ts=(()=>{class t extends Ds{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(e,n,i,o,d){super(e,n,i.nativeElement,o),this.cmp=e,this.track=n,this.element=i,this.document=o,this.dir=d}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S(qi),S(le),S(pe),S(Fi))}}static{this.\u0275dir=ce({type:t,selectors:[["","scrollbarThumbX",""]],features:[xe]})}}return t})(),Is=(()=>{class t extends Ds{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(e,n,i,o){super(e,n,i.nativeElement,o),this.cmp=e,this.track=n,this.element=i,this.document=o}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`}handleDrag(e){return e}handleDirection(e){return e}setDragging(e){this.cmp.setDragging({verticalDragging:e})}scrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S($i),S(le),S(pe))}}static{this.\u0275dir=ce({type:t,selectors:[["","scrollbarThumbY",""]],features:[xe]})}}return t})(),Os=(()=>{class t{constructor(e,n,i,o,d){this.el=e,this.cmp=n,this.platform=i,this.document=o,this.zone=d,this.destroyed=new Ne}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new Ne,this.viewportThumbClicked=new Ne,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(Y(o=>o?ji(o,this.el.getBoundingClientRect()):!1),jt(),z(o=>this.document.onselectstart=o?()=>!1:null)),this.cmp.viewport.clicked.pipe(z(o=>{o?ji(o,this.thumb.clientRect)?this.viewportThumbClicked.next(o):ji(o,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(o)):this.cmp.setClicked(!1)}),Se(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),Le(i.pipe(z(o=>this.setHovered(o))),e.pipe(It(o=>this.thumb.dragged(o))),n.pipe(It(o=>this.track.onTrackClicked(o,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=K(this.el,"mouseenter",{passive:!0}).pipe(Xe(),Y(()=>!0)),n=K(this.el,"mouseleave",{passive:!0}).pipe(Xe(),Y(()=>!1));return Le(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(Se(this.destroyed)).subscribe(),Le(this.cmp.scrolled,this.cmp.updated).pipe(z(()=>this.thumb?.update()),Se(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(Ie),S(ut),S(Document),S(Ee))}}static{this.\u0275dir=ce({type:t,standalone:!1})}}return t})(),tm=(()=>{class t extends Os{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,o,d){super(e.nativeElement,n,i,o,d),this.cmp=n,this.platform=i,this.document=o,this.zone=d}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Ie),S(ut),S(pe),S(Ee))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&($($i,7),$(Is,7)),n&2){let o;j(o=W())&&(i.track=o.first),j(o=W())&&(i.thumb=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(a(0,"div",0),C(1,"div",1),s()),n&2&&(Mt("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Mt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[$i,Is],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})(),im=(()=>{class t extends Os{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,o,d){super(e.nativeElement,n,i,o,d),this.cmp=n,this.platform=i,this.document=o,this.zone=d}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Ie),S(ut),S(pe),S(Ee))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&($(qi,7),$(Ts,7)),n&2){let o;j(o=W())&&(i.track=o.first),j(o=W())&&(i.thumb=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(a(0,"div",0),C(1,"div",1),s()),n&2&&(Mt("ng-scrollbar-track ",i.cmp.trackClass,""),r(),Mt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[qi,Ts],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})(),nm=new ot("NG_SCROLLBAR_OPTIONS"),Es={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},As=(()=>{class t{constructor(e){this.globalOptions=e?Z(Z({},Es),e):Es,this.rtlScrollAxisType=wi()}static{this.\u0275fac=function(n){return new(n||t)(H(nm,8))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rm=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new Ki(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&K(this.document.defaultView,"resize",{passive:!0}).pipe(Oi(this.manager.globalOptions.windowResizeDebounce),Y(()=>this.getNativeScrollbarSize()),jt(),z(o=>this._scrollbarSize.next(o))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n}static{this.\u0275fac=function(n){return new(n||t)(H(pe),H(As),H(ut))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),om=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=Yi.EMPTY,this._subscriber=i.scrollbarSize.subscribe(o=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${o}px`,_n.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(st),S(rm))}}static{this.\u0275dir=ce({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),am=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=Ui(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=Je(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 we,!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 rt(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(Oi(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(Ee),S(ut),S(Ie))}}static{this.\u0275dir=ce({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),Rs=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Je(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=Je(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=Je(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=Je(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=Je(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=Je(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,o,d,m){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=o,this.smoothScroll=d,this.manager=m,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 we,this.state={},this.destroyed=new Ne}updateState(){let e=!1,n=!1,i=!1,o=!1;(this.track==="all"||this.track==="vertical")&&(i=this.viewport.scrollHeight>this.viewport.clientHeight,e=this.visibility==="always"||i),(this.track==="all"||this.track==="horizontal")&&(o=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||o),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:i,isHorizontallyScrollable:o})}setState(e){this.state=Z(Z({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(z(i=>n=i),Y(i=>i.target[e]),sn(),zt(([i,o])=>i!==o),Y(()=>n))}setHovered(e){this.zone.run(()=>this.setState(Z({},e)))}setDragging(e){this.zone.run(()=>this.setState(Z({},e)))}setClicked(e){this.zone.run(()=>this.setState({scrollbarClicked:e}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let e=K(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(tn(this.scrollAuditTime)):e,this.scrolled=e.pipe(Se(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(z(()=>this.update()),Se(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(Ee),S(Me),S(Fi),S(ks),S(As))}}static{this.\u0275cmp=L({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,o){if(n&1&&Sn(o,Wi,7),n&2){let d;j(d=W())&&(i.customViewPort=d.first)}},viewQuery:function(n,i){if(n&1&&($(qu,5,le),$($u,5,le),$(Wi,7)),n&2){let o;j(o=W())&&(i.scrollbarY=o.first),j(o=W())&&(i.scrollbarX=o.first),j(o=W())&&(i.defaultViewPort=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Ge("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[ie([{provide:Ie,useExisting:t}]),qt],ngContentSelectors:Ju,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&&(bn(),a(0,"div",2)(1,"div",3),b("resizeSensor",function(){return i.update()}),a(2,"div",4)(3,"div"),Cn(4),s()()(),w(5,Ku,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:[ne,Qu,am,Wi,om,im,tm],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 Us=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 sm=["sidebar2"];function lm(t,l){if(t&1&&(a(0,"div",31),C(1,"div",7),a(2,"div",17)(3,"div",18)(4,"div",19),p(5),h(6,"translate"),s(),a(7,"div",20),p(8),s()(),a(9,"div",32),C(10,"i",33),s()()()),t&2){let e=u();r(),de("background-image","url("+e.neilLogo+")"),r(4),_(g(6,4,"AI Help")),r(3),_(e.todaysDate)}}var Fs=(()=>{class t{constructor(e,n,i,o,d,m,y){this.authService=e,this.router=n,this.apiService=i,this.toastr=o,this.sharedService=d,this.TranslateService=m,this.userRoleService=y,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 G(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 o=n+":"+i;return o}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 o=this.neilLogo,d=this.get(".msger-chat");k(this.TranslateService.instant("AI Help"),o,"left",e,n);function m(E){var M="0"+E.getHours(),D="0"+E.getMinutes();M=M.slice(-2),D=D.slice(-2);var P=M+":"+D;return P}function y(E,M){return Math.floor(Math.random()*(M-E)+E)}function k(E,M,D,P,O){let B=m(new Date),se="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">${E}</div>
                <div class="msg-info-time">${B}</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">${E}</div>
                <div class="msg-info-time">${B}</div>
              </div>
              <div class="msg-text">${P}</div>
              ${O&&O.length>0?`
              <p>
                <a href="javascript:void(0);" id="${se}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${se}-sources" class="sources-container" style="display: none;">
                ${O.map(V=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${V.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${V.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${V.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,d.insertAdjacentHTML("beforeend",De),setTimeout(()=>{let V=document.getElementById(`${se}-toggle`),Oe=document.getElementById(`${se}-sources`);V&&Oe&&V.addEventListener("click",function(){let Di=Oe.style.display==="none";Oe.style.display=Di?"block":"none",V.innerText=Di?"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"),o=atob(this.sharedService.getDataByKey("userName"));y(o,n,"right",e);function d(k){var E="0"+k.getHours(),M="0"+k.getMinutes();E=E.slice(-2),M=M.slice(-2);var D=E+":"+M;return D}function m(k,E){return Math.floor(Math.random()*(E-k)+k)}function y(k,E,M,D){var P=d(new Date);let O='<div class="msg '+M+'-msg"><div class="msg-img" style="background-image: url('+E+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+k+'</div><div class="msg-info-time">'+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(J),S(oe),S(q),S(Ce),S(ye),S(ae),S(ge))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-right"]],viewQuery:function(n,i){if(n&1&&$(sm,5),n&2){let o;j(o=W())&&(i.sidebar2=o.first)}},inputs:{sidebarId2:"sidebarId2",conversationalAI:"conversationalAI"},features:[ie([J,q])],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","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 o=x();a(0,"c-sidebar",1,0)(2,"div",2)(3,"div",3)(4,"section",4)(5,"header",5)(6,"div",6),C(7,"div",7),a(8,"span",8),p(9),h(10,"translate"),s()(),a(11,"div",9)(12,"span")(13,"a",10),b("click",function(){return f(o),v(i.startOverChat())}),p(14),h(15,"translate"),C(16,"i",11),s()(),a(17,"span",12)(18,"a",13),C(19,"i",14),s()()()(),a(20,"main",15)(21,"div",16),C(22,"div",7),a(23,"div",17)(24,"div",18)(25,"div",19),p(26),h(27,"translate"),s(),a(28,"div",20),p(29),s()(),C(30,"div",21),h(31,"translate"),s()()(),w(32,lm,11,6,"div",22),a(33,"c-card",23)(34,"c-card-header")(35,"label",24),p(36),h(37,"translate"),s()(),a(38,"c-card-body")(39,"form",25)(40,"div",26)(41,"input",27),h(42,"translate"),F("ngModelChange",function(m){return f(o),U(i.query,m)||(i.query=m),v(m)}),s()(),a(43,"div",28)(44,"button",29),b("click",function(){return f(o),v(i.getChatbotResults())}),p(45),h(46,"translate"),s()()()()(),a(47,"div",30),p(48),h(49,"translate"),s()()()()()}n&2&&(c("visible",i.isSidebarOpen),r(7),de("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),de("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"),fe),r(2),c("ngIf",i.loading),r(4),_(g(37,25,"Query :")),r(5),R("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:[fi,ht,mt,gt,yi,_t,$e,Da,vt,yt,Ma,bt,Pa,re,ne,ue,Ye,Ze,Ke,Qe,he,_i],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 cm(t,l){t&1&&(a(0,"div",0),C(1,"div",1),s())}var Bs=(()=>{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(z(e=>{e instanceof Un?this.loadingService.loadingOn():e instanceof Fn&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(Kt),S(oe))}}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&&(w(0,cm,2,0,"div",0),h(1,"async")),n&2&&He(g(1,1,i.loading$)?0:-1)},dependencies:[Ya,Qt],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 Mi={provide:"httpHeaders",useFactory:t=>new Tn({"Content-Type":"application/json",Accept:"application/json",token:t.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[J]};var dm=t=>({cloudPropertyElement:t}),Vs=()=>["admin","delegatedAdmin","readOnlyAdmin"],pm=()=>["/mspDashboard"],um=()=>["/dashboard"],mm=()=>["/bluvault"],hm=()=>({"pointer-events":"none",cursor:"unset"}),gm=()=>({});function _m(t,l){t&1&&(a(0,"c-sidebar-footer",19),C(1,"button",20),s())}function fm(t,l){if(t&1){let e=x();a(0,"c-sidebar",13,0)(2,"c-sidebar-header",14)(3,"c-sidebar-brand",15)(4,"img",16),b("error",function(i){f(e);let o=u();return v(o.onImageError(i))}),s()()(),a(5,"ng-scrollbar",17,1),b("updated",function(){f(e);let i=te(6),o=u();return v(o.onScrollbarUpdate(i.state))}),C(7,"c-sidebar-nav",18,2),s(),w(9,_m,2,0,"c-sidebar-footer",19),s()}if(t&2){let e=te(1),n=u();r(3),c("routerLink",n.isMspEnabled&&N(5,Vs).includes(n.userType)?N(6,pm):N(7,Vs).includes(n.userType)?N(8,um):N(9,mm))("ngStyle",n.userType==="superAdmin"?N(10,hm):N(11,gm)),r(),c("src",n.parabluLogo,ve),r(3),c("navItems",n.navItems),r(2),He(e.narrow?-1:9)}}function vm(t,l){t&1&&C(0,"app-default-right")}var Ns=(()=>{class t{constructor(e,n,i,o,d,m,y,k){this.cdr=e,this.router=n,this.licenseCheckService=i,this.userRoleService=o,this.apiService=d,this.TranslateService=m,this.toastr=y,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.userLicenses={},this.imageSrc=["assets/brand/header_logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"];let E=localStorage.getItem("theme-default"),M=E||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 G(this,null,function*(){this.navItems=Us(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()})}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 G(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"?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.key==="My BluSync"?e.visible=!1:e.visible=this.shouldShowSettings(),e.key==="My BluVault"&&(e.visible=!0),e.key==="Manage assets"&&(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),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(Me),S(oe),S(Pe),S(ge),S(q),S(ae),S(Ce),S(be))}}static{this.\u0275cmp=L({type:t,selectors:[["app-dashboard"]],features:[ie([Mi,Ct,St,Ha,Ka])],decls:10,vars:9,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],[1,"app-shell","d-flex","flex-row","min-vh-100","hight-100-vh"],["class","d-print-none sidebar sidebar-fixed border-end","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll","conversationalAI"],[1,"app-shell","d-flex","flex-row","hight-100-vh"],["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","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink","ngStyle"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],["pointerEventsMethod","scrollbar","visibility","hover",1,"overflow",3,"updated"],["dropdownMode","close","compact","",3,"navItems"],["cSidebarToggle","sidebar1","toggle","unfoldable",1,"border-top","d-none","d-lg-flex",2,"cursor","pointer"],["cSidebarToggler","","aria-label","Toggle sidebar fold"]],template:function(n,i){n&1&&(a(0,"div",3),w(1,fm,10,12,"c-sidebar",4),a(2,"div",5),C(3,"app-default-header",6),a(4,"div",7)(5,"c-container",8),C(6,"router-outlet",9),s(),w(7,vm,1,0,"app-default-right",10),s(),C(8,"loading-indicator",11)(9,"app-default-footer",12),s()()),n&2&&(r(),c("ngIf",i.showSideBar),r(2),c("cShadowOnScroll","sm")("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI),r(3),c("routerOutletData",A(7,dm,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:[fi,Fs,wa,vi,ni,Rs,ka,xa,_t,Sa,bs,oa,hi,ii,re,ne,We,ls,Bs],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}"]})}}return t})();var Ls=(()=>{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(Ce),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&&(a(0,"p"),p(1),h(2,"translate"),s(),a(3,"button",0),b("click",function(){return i.showOnSuccess()}),p(4),h(5,"translate"),s()),n&2&&(r(),_(g(2,2,"toastalert works!")),r(3),_(g(5,4,"Add toast")))},dependencies:[he],encapsulation:2})}}return t})();var I=(()=>{class t{constructor(e,n,i,o,d){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=o,this.licenseCheckService=d}canActivate(e,n){return G(this,null,function*(){let i=yield this.userRoleService.getUserRole(),o=e.data?.roles,d=e.data?.licenses;if(o&&i&&o.includes(i)){if(!d||d.length===0)return!0;let y=yield this.licenseCheckService.getInclusionLicensesNew(),k=yield this.userRoleService.getUserFlags(),E={backup_enabled:"userBackupEnabled",sync_enabled:"userSyncEnabled",onedrive_backup_enabled:"userOnedriveBkpEnabled",exchange_backup_enabled:"userExchangeBkpEnabledEnabled",sharepoint_backup_enabled:"userSharePointBkpEnabled",gmail_backup_enabled:"userGmailBkpEnabled",gdrive_backup_enabled:"userGdriveBkpEnabled"},M=i==="admin"||i==="superAdmin"||i==="readOnlyAdmin"||i==="delegatedAdmin";if(d.some(P=>{if(!y.includes(P))return!1;if(M)return!0;let B=E[P];return B?k[B]==="true":!1}))return!0}let m=this.authService.Token;return!m||m.trim()===""||i==="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1})}static{this.\u0275fac=function(n){return new(n||t)(H(oe),H(ye),H(J),H(ge),H(Pe))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ym=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],bm=[import("./chunk-A44TTWHT.js"),import("./chunk-GMQC273W.js"),import("./chunk-SH2GXSHX.js"),import("./chunk-7MIDCO3M.js"),import("./chunk-NYDKRQ3Z.js"),import("./chunk-SDEKXMW3.js")],Cm=["/edit"],Sm=[import("./chunk-MYB7NYLD.js")],Gs=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Ns,children:[{path:"dashboard",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","sync_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-CA6YDOEQ.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZKL5HJQL.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DBP5A4KR.js").then(t=>t.routes)},{path:"bluvault",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-FHUF2YHQ.js").then(t=>t.routes)},{path:"backup/files",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-Q3HV2R4E.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-VGXEYB24.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-KRA6T4VW.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-VFV4GA72.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[I],data:{roles:["admin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-KRA6T4VW.js").then(t=>t.routes)},{path:"pms",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-W56EPYK7.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2BI2L44R.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UF37MKF7.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UWZMTLJ3.js").then(t=>t.routes)},...ym.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>bm[l].then(e=>e.routes)})),...Cm.map((t,l)=>({path:`pms/spAdmin/:productKey${t}`,canActivate:[I],data:{roles:["superAdmin"]},loadChildren:()=>Sm[l].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KWX77PAW.js").then(t=>t.routes)},{path:"settings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-5HM3N3XE.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DZD6UQSB.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2Q74QB42.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-VNYC6VF2.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-2AYORQW5.js").then(t=>t.routes)},{path:"azure",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-VNYC6VF2.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-BXZUQIT6.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-WFVB7VCB.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KO2CFLRR.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-MZPHH44R.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-LDMUQFEH.js").then(t=>t.routes)},{path:"ssoConsent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-22FNPCRA.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HULQGFVK.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-2VYNGRTE.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-P6Z54YFE.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-P6Z54YFE.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JRQ6FKTZ.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-X36AWNQV.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KHFBDPUO.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-6FAO4GVR.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HULQGFVK.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-Y6V5TMDO.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HKGXQPFF.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-2AL4DDIY.js").then(t=>t.routes)},{path:"settings/m365Consent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HY2RNU34.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ICAI6BGK.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-MZPHH44R.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KO2CFLRR.js").then(t=>t.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HY2RNU34.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LDMUQFEH.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HSX5IUYX.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-W6CFISC7.js").then(t=>t.routes)},{path:"userMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-MPZCTSML.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-RVBA2K7V.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-G5OAQXUD.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6EUUDVC4.js").then(t=>t.routes)},{path:"users",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NM3TKXWZ.js").then(t=>t.routes)},{path:"users/create",canActivate:[I],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JR4VZFGE.js").then(t=>t.routes)},{path:"users/edit",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-3FRW2FJN.js").then(t=>t.routes)},{path:"users/profile",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RC27EWVG.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HXTXVWNA.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-HXTXVWNA.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-I3723GSM.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[I],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-MZSLEYWY.js").then(t=>t.routes)},{path:"infectedActivityHistory",canActivate:[I],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-ML7DNHFB.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-VWVO2UCA.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-BVWCHDFI.js").then(t=>t.routes)},{path:"support",canActivate:[I],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VLERFEKN.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[I],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LI4NANAB.js").then(t=>t.routes)},{path:"downloads",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EJW3YWIR.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-K4HQXHS4.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7CHGVC4J.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PN6CWQYQ.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-V4FMCGTC.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LSPPMRX3.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5GY6OVN4.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QX54HRM2.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YITNMUVV.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DRG6CNUO.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6P7GQDYZ.js").then(t=>t.routes)},{path:"report/syncOverview",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-TDRYVL2R.js").then(t=>t.routes)},{path:"report/minicloudActivity",canActivate:[I],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4NKE6IV6.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-3ONRCUXB.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[I],data:{roles:["admin"]},loadChildren:()=>import("./chunk-I5UBY5JJ.js").then(t=>t.routes)},{path:"sync/files",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-EDDDUNKI.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-GGLEG53H.js").then(t=>t.routes)},{path:"sync/myShares",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-VFEOAOQ5.js").then(t=>t.routes)},{path:"sync/sharedWithMe",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-NYLOORWK.js").then(t=>t.routes)},{path:"sync/shareActivityHistory",canActivate:[I],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-UJBACQ6M.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-BSDGQO6P.js").then(t=>t.routes)},{path:"fileArchivedView",loadComponent:()=>import("./chunk-LWVKGURW.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-I2CJTKLN.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-ILWZPUY2.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}}]},{path:"toast",component:Ls,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-EP243ROT.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-NMUYWIS5.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-SSFPAKD4.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-532P6KCK.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-532P6KCK.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-532P6KCK.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-FT2TBJ7E.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-532P6KCK.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-532P6KCK.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"share/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-UCDHAZYL.js").then(t=>t.ShareComponent),data:{title:"Share Page"}},{path:"logout",loadComponent:()=>import("./chunk-DP5JUKIK.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"register",loadComponent:()=>import("./chunk-TSKYXT7L.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"**",redirectTo:"404"}];var wm="@",xm=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=tt(un);loadingSchedulerFn=tt(km,{optional:!0});_engine;constructor(e,n,i,o,d){this.doc=e,this.delegate=n,this.zone=i,this.animationType=o,this.moduleImpl=d}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-AYLMBAH4.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new cn(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:o})=>{this._engine=i(this.animationType,this.doc);let d=new o(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 o=new Zi(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let m=d.createRenderer(e,n);o.use(m),this.scheduler??=this.injector.get(hn,null,{optional:!0}),this.scheduler?.notify(10)}).catch(d=>{o.use(i)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(n){fn()};static \u0275prov=_e({token:t,factory:t.\u0275fac})}return t})(),Zi=class{delegate;replay=[];\u0275type=1;constructor(l){this.delegate=l}use(l){if(this.delegate=l,this.replay!==null){for(let e of this.replay)e(l);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(l,e){return this.delegate.createElement(l,e)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}get destroyNode(){return this.delegate.destroyNode}appendChild(l,e){this.delegate.appendChild(l,e)}insertBefore(l,e,n,i){this.delegate.insertBefore(l,e,n,i)}removeChild(l,e,n){this.delegate.removeChild(l,e,n)}selectRootElement(l,e){return this.delegate.selectRootElement(l,e)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,e,n,i){this.delegate.setAttribute(l,e,n,i)}removeAttribute(l,e,n){this.delegate.removeAttribute(l,e,n)}addClass(l,e){this.delegate.addClass(l,e)}removeClass(l,e){this.delegate.removeClass(l,e)}setStyle(l,e,n,i){this.delegate.setStyle(l,e,n,i)}removeStyle(l,e,n){this.delegate.removeStyle(l,e,n)}setProperty(l,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(l,e,n)),this.delegate.setProperty(l,e,n)}setValue(l,e){this.delegate.setValue(l,e)}listen(l,e,n,i){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith(wm)}},km=new ot("");function Lt(t="animations"){return $t("NgAsyncAnimations"),dn([{provide:Jt,useFactory:(l,e,n)=>new xm(l,e,n,t),deps:[pe,ei,Ee]},{provide:Et,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Hs={providers:[Mn(),Vn(Gs,Gn({onSameUrlNavigation:"reload"}),Nn({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),Ln(),Hn()),Wt(yi,ua),ri,ss(),Lt("noop"),Wa({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Lt(),be]};var zs={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:Qa,Add_Exclusion_Folder:Xa,Add_Exception_Folder:es},{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:Bi,Add_Exclusion_Folder:Vi},{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:Ut,Add_Exclusion_Folder:Ft},{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:Ut,Add_Exclusion_Folder:Ft},{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:Bi,Add_Exclusion_Folder:Vi},{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:Ut,Add_Exclusion_Folder:Ft},{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:Ut,Add_Exclusion_Folder:Ft}]};var js=(()=>{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(ze),H(String),H(String))};static \u0275prov=_e({token:t,factory:t.\u0275fac})}return t})();var Pi=class{handle(l){if(l.interpolateParams){let e=l.key.match(/\{\{ *[^} ]+ *\}\}/),n=l.key,i=l.interpolateParams;return e?.forEach(o=>{let d=o.replace(/\{\{|\}\}| */g,"");n=n.replace(o,i[d]||"")}),n}return l.key}};var Tm=window.btoa,Im=window.atob;window.atob=t=>{let l=Im(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 Tm(e)};function Em(t,l){return new js(t,"./assets/i18n/",".json")}function Mm(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 Pm(t){return()=>Ht(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()))}An(os,{providers:[ue,Wt(Qo.forRoot({loader:{provide:Yo,useFactory:Em,deps:[ze]},missingTranslationHandler:{provide:Ko,useClass:Pi},defaultLanguage:"en"})),{provide:Ri,useFactory:Mm,deps:[ae],multi:!0},{provide:On,useValue:{dateFormat:"dd-MMM-yyyy HH:mm:ss"}},...Hs.providers,Kt,{provide:Ri,useFactory:Pm,deps:[be],multi:!0},{provide:En,useClass:jn,multi:!0},Mi,zs,Lt()]}).catch(t=>console.error(t));export{Em as HttpLoaderFactory,Pm as loadConfig,Mm as setupTranslateFactory};
