import{$ as dr,$a as po,A as Nn,Aa as Nr,B as Vn,Ba as Vr,C as Bn,Ca as Br,D as Ln,Da as Lr,E as Gn,Ea as Gr,F as zn,Fa as zr,G as Hn,Ga as Hr,H as jn,Ha as jr,I as Wn,Ia as Wr,J as qn,Ja as qr,K as Jn,Ka as Jr,L as Yn,La as Yr,M as $n,Ma as $r,N as Qn,Na as Qr,O as Kn,Oa as Kr,P as Zn,Pa as Zr,Q as Xn,Qa as Xr,R as er,Ra as eo,S as tr,Sa as to,T as ir,Ta as io,U as nr,Ua as no,V as rr,Va as ro,W as or,Wa as oo,X as ar,Xa as ao,Y as sr,Ya as so,Z as lr,Za as lo,_ as cr,_a as co,a as hn,aa as pr,ab as mo,b as un,ba as mr,bb as ho,c as gn,ca as hr,cb as uo,d as fn,da as ur,db as go,e as vn,ea as gr,f as _n,fa as fr,g as bn,ga as vr,h as yn,ha as _r,i as Cn,ia as br,j as Sn,ja as yr,k as wn,ka as Cr,la as Sr,m as xn,ma as wr,n as kn,na as xr,o as In,oa as kr,p as Tn,pa as Ir,q as Mn,qa as Tr,r as En,ra as Mr,sa as Er,t as Pn,ta as Pr,u as Dn,ua as Dr,v as On,va as Or,w as An,wa as Ar,x as Rn,xa as Rr,y as Un,ya as Ur,z as Fn,za as Fr}from"./chunk-YMPBRAMJ.js";import{a as ca,b as jt}from"./chunk-H6SLZAQQ.js";import{f as _o,g as tt,h as xt,m as bo,n as kt,p as yo,u as Co}from"./chunk-X4RYSEJH.js";import{a as da,b as Wt,d as pa,e as ma,f as qt}from"./chunk-B7SSGZRS.js";import{a as Je}from"./chunk-V73QNHIW.js";import{a as ua}from"./chunk-6ZNGYCER.js";import{a as vo,b as we,c as ha}from"./chunk-QJMD2SGW.js";import{a as ni,i as la,t as Ht}from"./chunk-Y4TQXMUD.js";import{a as bt,b as en,d as q,e as oe,f as qe,h as ae,i as Z}from"./chunk-WTUSPDMW.js";import{D as zt,b as ea,c as Bt,g as Lt,h as ta,j as ia,l as Gt,m as na,t as ra,u as oa,v as aa,y as sa}from"./chunk-EYGQBKHN.js";import{$b as Vt,A as wt,Aa as Et,B as fo,C as So,D as We,Da as Pt,G as It,Hb as Wo,Ib as Ut,Ja as To,Jb as Ft,Ka as Mo,Kb as qo,Lb as Jo,M as Ce,Ma as Eo,Mb as Yo,N as ii,Na as Po,Nb as $o,Oa as Do,Ob as Qo,Pa as Oo,Q as wo,Qa as Ao,Ra as Ro,Sb as Nt,Tb as Ko,Ua as Dt,Ub as Zo,Va as Uo,Vb as Xo,Ya as Fo,Za as No,_a as Ot,ab as At,bb as Rt,db as Vo,eb as Se,f as Ki,g as Zi,gb as Bo,h as Xi,ha as xo,hb as Lo,i as ye,ib as Go,j as yt,k as tn,l as nn,lb as zo,m as rn,mb as Ho,nb as jo,o as je,oa as ko,p as on,q as an,qa as Tt,r as sn,s as Ct,t as re,u as St,v as ln,w as cn,x as dn,xa as Io,y as pn,z as mn,za as Mt}from"./chunk-3H2Q52KW.js";import{$b as _e,$c as Ge,A as bi,Aa as Oi,Ab as F,Ad as qi,B as W,Ba as Ai,Bb as ut,Bd as Ji,Cb as $,Cc as te,D as ve,Da as Pe,Dc as zi,Dd as He,E as lt,Ea as pe,Eb as ce,Ec as d,F as yi,Fc as A,Fd as Yi,Gc as M,Gd as $i,Hb as C,Hc as Be,Hd as he,I as Kt,Ia as J,Ja as mt,Jd as Qi,K as Ci,Kb as Vi,Kc as P,L as Si,Lc as D,M as ct,Mc as O,N as wi,O as xi,Qa as Ri,Qb as De,Qc as ie,Ra as Qe,Rb as m,Rc as R,S as ki,Sb as gt,Sc as G,Tb as Oe,Tc as ei,Uc as me,Vc as Hi,Wb as Ke,Wc as ti,X as $e,Xc as Le,Y as se,Yb as Ae,Yc as vt,Z as Ii,_ as U,_b as Ve,a as gi,aa as Ti,ac as be,bc as o,c as Re,ca as le,cc as a,da as dt,dc as b,dd as ji,eb as Ui,ec as Ze,f as fe,fa as Ue,fb as Fe,fc as Xe,g as fi,gb as ee,gc as ft,ha as j,hc as w,ia as Ee,j as st,k as vi,kb as Fi,la as Mi,lb as s,ld as K,ma as Ei,mb as y,nb as Ni,nc as _,p as Me,pc as h,qb as ht,qc as Bi,ra as Pi,rb as Ne,rc as Li,sa as u,sc as Q,ta as g,tc as et,td as Wi,u as H,ua as pt,uc as Xt,ud as _t,va as Zt,vc as Gi,vd as ne,w as _i,wc as B,xc as N,ya as Di,yc as V,zd as ze}from"./chunk-DF3EMM3Z.js";import{a as L,b as ue,i as Y}from"./chunk-2AVGQ2MQ.js";var ga=["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 fa=["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 va={cibCcAmex:hn,cibCcApplePay:un,cibCcMastercard:gn,cibCcPaypal:fn,cibCcStripe:vn,cibCcVisa:_n,cibFacebook:bn,cibGoogle:yn,cibLinkedin:Cn,cibSkype:Sn,cibTwitter:wn,cifBr:xn,cifEs:kn,cifFr:In,cifIn:Tn,cifPl:Mn,cifUs:En,cilAccountLogout:Pn,cilAlignCenter:Dn,cilAlignLeft:On,cilAlignRight:An,cilApplicationsSettings:Rn,cilArrowBottom:Un,cilArrowRight:Fn,cilArrowTop:Vn,cilBasket:Bn,cilBell:Ln,cilBold:Gn,cilBookmark:zn,cilCalculator:Hn,cilCalendar:jn,cilChart:qn,cilChartPie:Wn,cilCheck:Yn,cilCheckAlt:Jn,cilChevronLeft:$n,cilChevronRight:Qn,cilCloud:Zn,cilCloudDownload:Kn,cilCode:Xn,cilCommentSquare:er,cilContrast:tr,cilCreditCard:ir,cilCursor:nr,cilDescription:rr,cilDollar:ar,cilDrop:sr,cilEnvelopeClosed:lr,cilEnvelopeOpen:cr,cilFile:pr,cilGrid:hr,cilHome:fr,cilInbox:vr,cilIndentDecrease:_r,cilIndentIncrease:br,cilItalic:yr,cilJustifyCenter:Cr,cilLanguage:Sr,cilLayers:wr,cilList:kr,cilListNumbered:xr,cilLocationPin:Ir,cilLockLocked:Tr,cilMagnifyingGlass:Mr,cilMap:Er,cilMediaPlay:Dr,cilMediaRecord:Or,cilMenu:Rr,cilMoon:Ur,cilNotes:Fr,cilOptions:Nr,cilPaperclip:Br,cilPaperPlane:Vr,cilPen:Lr,cilPencil:Gr,cilPeople:zr,cilPrint:Hr,cilPuzzle:jr,cilReportSlash:qr,cilSave:Jr,cilSettings:$r,cilShare:Zr,cilShareAll:Qr,cilShareBoxed:Kr,cilSpeech:to,cilSpeedometer:io,cilSpreadsheet:no,cilStar:ro,cilSun:oo,cilTags:ao,cilTask:so,cilTrash:co,cilUnderline:po,cilUser:go,cilUserFemale:mo,cilUserFollow:ho,cilUserUnfollow:uo,logo:fa,signet:ga,cilDevices:or,cilSitemap:eo,cilTransfer:lo,cilHistory:gr,cilHandshake:ur,cilReload:Wr,cilFullscreen:mr,cilMediaPause:Pr,cilMediaStop:Ar,cilShieldAlt:Xr,cilArrowThickBottom:Nn,cilEqualizer:dr,cilSend:Yr};var _a=(()=>{class t{constructor(e,n,i,r){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=r,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=L({},va)}ngOnInit(){this.router.events.subscribe(e=>{e instanceof je})}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)(y(re),y(nn),y(wt),y(vo))}}static{this.\u0275cmp=F({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[Ct],encapsulation:2})}}return t})();var Ka=(()=>{class t extends kt{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(j(K),j(tt),j(xt))};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})();function Za(){return new bo}function Xa(t,c,e){return new Co(t,c,e)}var ba=[{provide:xt,useFactory:Za},{provide:kt,useClass:Ka},{provide:ht,useFactory:Xa,deps:[yt,kt,pe]}],es=[{provide:tt,useFactory:()=>new yo},{provide:Qe,useValue:"BrowserAnimations"},...ba],Up=[{provide:tt,useClass:_o},{provide:Qe,useValue:"NoopAnimations"},...ba];function ya(){return mt("NgEagerAnimations"),[...es]}var is=t=>({display:t});function ns(t,c){if(t&1){let e=w();o(0,"div",33),_("click",function(){u(e);let i=h();return g(i.openChatbot())}),b(1,"input",34),o(2,"label",35),b(3,"span",36)(4,"span",37)(5,"span",38),a()()}}var Sa=(()=>{class t extends Ro{constructor(e,n,i,r,p,l){super(),this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.sharedService=p,this.userRoleService=l,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.currentYear=new Date().getFullYear(),this.displayCreateStyle="none",this.neilLogo="",this.userLogo="",this.aiLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.answer="",this.sourcesLinks=[],this.session_id="",this.index=0,this.enableCopilot="no",this.userType="",this.collapses=[!1,!1,!1,!1],this.neilLogo=this.imageSrc[3],this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.router.events.subscribe(f=>{f instanceof je&&this.getCloudProperties()}),this.init()}init(){return Y(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.enableCopilot=i.cloudPropertyElement.conversationalAI?"yes":"no"})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var r=n+":"+i;return r}onImageError(e){let n=e.target;n.src=this.imageSrc[1]}openChatbot(){this.displayCreateStyle="block"}closeChatbot(){this.displayCreateStyle="none"}addChatEntry(e,n){this.chatHistory.push([e,n])}getChatHistory(){return this.chatHistory}startOverChat(){this.session_id="";let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.createChatLayoutBot("Hello ! Ask me anything about CrashPlan Software","",0),this.apiService.startOverChat().subscribe(n=>{this.session_id=n.body.session_id},n=>{switch(this.query="",n.status){case 400:break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break}})}get(e,n=document){return n.querySelector(e)}toggleCollapse(e){this.collapses[e]=!this.collapses[e]}createChatLayoutBot(e,n,i){let r=this.neilLogo,p=this.get(".msger-chat");S("CrashPlan",r,"left",e,n);function l(x){var I="0"+x.getHours(),T="0"+x.getMinutes();I=I.slice(-2),T=T.slice(-2);var k=I+":"+T;return k}function f(x,I){return Math.floor(Math.random()*(I-x)+x)}function S(x,I,T,k,E){let z=l(new Date),Ie="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);k=k.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let Ye="";E==""&&i==0?Ye=`
          <div class="msg ${T}-msg">
            <div class="msg-img" style="background-image: url('${I}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${x}</div>
                <div class="msg-info-time">${z}</div>
              </div>
              <div class="msg-text">${k}</div>
            </div>
          </div>`:Ye=`
          <div class="msg ${T}-msg">
            <div class="msg-img" style="background-image: url('${I}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${x}</div>
                <div class="msg-info-time">${z}</div>
              </div>
              <div class="msg-text">${k}</div>
              ${E&&E.length>0?`
              <p>
                <a href="javascript:void(0);" id="${Ie}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${Ie}-sources" class="sources-container" style="display: none;">
                ${E.map(Te=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${Te.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${Te.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${Te.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,p.insertAdjacentHTML("beforeend",Ye),setTimeout(()=>{let Te=document.getElementById(`${Ie}-toggle`),Qt=document.getElementById(`${Ie}-sources`);Te&&Qt&&Te.addEventListener("click",function(){let ui=Qt.style.display==="none";Qt.style.display=ui?"block":"none",Te.innerText=ui?"Hide sources":"Show sources"})},0),p.scrollTop+=500}}showSources(e){let n=document.getElementById(`sources-${e}`);n&&(n.style.display=n.style.display==="none"?"block":"none")}createChatLayoutUser(e){let n=this.userLogo,i=this.get(".msger-chat"),r=atob(this.sharedService.getDataByKey("userName"));f(r,n,"right",e);function p(S){var x="0"+S.getHours(),I="0"+S.getMinutes();x=x.slice(-2),I=I.slice(-2);var T=x+":"+I;return T}function l(S,x){return Math.floor(Math.random()*(x-S)+S)}function f(S,x,I,T){var k=p(new Date);let E='<div class="msg '+I+'-msg"><div class="msg-img" style="background-image: url('+x+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+S+'</div><div class="msg-info-time">'+k+'</div></div><div class="msg-text">'+T+"</div></div></div>";i.insertAdjacentHTML("beforeend",E),i.scrollTop+=500}}getChatbotResults(){if(!this.query){this.toastr.info("Please specify a question.","Info");return}this.chatHistory=this.getChatHistory(),this.index=this.index+1,this.createChatLayoutUser(this.query),this.apiService.getChatbotResults(this.query,this.session_id).subscribe(e=>{this.query="",this.answer=e.body.answer,this.sourcesLinks=e.body.sources,this.session_id=e.body.session_id,this.createChatLayoutBot(this.answer,this.sourcesLinks,this.index)},e=>{switch(this.query="",this.createChatLayoutBot("Something went wrong, Please try after some time.","",this.index),e.status){case 400:break;case 401:this.toastr.info("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}})}static{this.\u0275fac=function(n){return new(n||t)(y(q),y(re),y(Z),y(we),y(oe),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-default-footer"]],features:[ie([q,Z]),ce],decls:47,vars:10,consts:[["class","fab-wrapper",3,"click",4,"ngIf"],[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["role","document",1,"modal-dialog","modal-fullscreen"],[1,"modal-content"],[1,"modal-header","header-container"],[1,"modal-title"],[2,"cursor","pointer",3,"click"],[1,"fa","fa-close"],[1,"modal-body"],[1,"col-lg-12","row"],[1,"chat","col-lg-12",2,"height","80vh","overflow-y","auto"],[1,"msger"],[1,"msger-header"],[1,"msger-header-title"],[1,"fas","fa-comment-alt"],[1,"msger-header-options"],[1,"chatStart",2,"font-size","14px","text-decoration","underline","cursor","pointer",3,"click"],[1,"msger-chat",2,"height","550px","overflow","scroll"],[1,"msg","left-msg"],[1,"msg-img"],[1,"msg-bubble"],[1,"msg-info"],[1,"msg-info-name"],[1,"msg-info-time"],[1,"msg-text"],["for","query"],["ng-submit","getChat()"],[1,"col-lg-12"],["type","text","name","query","id","query","placeholder","Ask a question here...","autocomplete","off","autofocus","",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-lg-12",2,"margin","10px 0px 10px 0px"],["id","submitChat",1,"btn","btn-primary","pull-right",3,"click"],[1,"fab-wrapper",3,"click"],["id","fabCheckbox","type","checkbox",1,"fab-checkbox",2,"cursor","pointer"],["for","fabCheckbox","cTooltip","CrashPlan Copilot","cTooltipPlacement","right",1,"fab",2,"cursor","pointer"],[1,"fab-dots","fab-dots-1"],[1,"fab-dots","fab-dots-2"],[1,"fab-dots","fab-dots-3"]],template:function(n,i){n&1&&(C(0,ns,6,0,"div",0),o(1,"div",1)(2,"a",2),d(3),a()(),o(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4",7),d(9,"CrashPlan Copilot"),a(),o(10,"a",8),_("click",function(){return i.closeChatbot()}),b(11,"i",9),a()(),o(12,"div",10)(13,"c-row")(14,"div",11)(15,"div",12)(16,"section",13)(17,"header",14)(18,"div",15),b(19,"i",16),d(20," Ask CrashPlan! "),a(),o(21,"div",17)(22,"span")(23,"a",18),_("click",function(){return i.startOverChat()}),d(24,"Start Over "),a()()()(),o(25,"main",19)(26,"div",20),b(27,"div",21),o(28,"div",22)(29,"div",23)(30,"div",24),d(31,"CrashPlan"),a(),o(32,"div",25),d(33),a()(),o(34,"div",26),d(35,"Hello ! Ask me anything about CrashPlan Software "),a()()()(),o(36,"c-card")(37,"c-card-header")(38,"label",27),d(39,"Query :"),a()(),o(40,"c-card-body")(41,"form",28)(42,"div",29)(43,"input",30),O("ngModelChange",function(p){return D(i.query,p)||(i.query=p),p}),a()(),o(44,"div",31)(45,"button",32),_("click",function(){return i.getChatbotResults()}),d(46,"Send"),a()()()()()()()()()()()()()),n&2&&(m("ngIf",i.enableCopilot=="yes"&&i.userType=="admin"),s(3),M("\xA9 CrashPlan ",i.currentYear," "),s(),m("ngStyle",G(8,is,i.displayCreateStyle)),s(23),zi("background-image: url(",i.neilLogo,")"),s(6),A(i.todaysDate),s(10),P("ngModel",i.query))},dependencies:[ze,zt,na,Bt,Lt,ta,Gt,ia,he,ne,Se,ye,jt,Ht,Wt,qt,Et,Mt,Pt],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 rs(t,c){if(t&1){let e=w();o(0,"div",7)(1,"button",9),_("click",function(){u(e);let i=h();return g(i.navigateToSales())}),d(2,"Contact Sales"),a()()}}var wa=(()=>{class t{constructor(e,n){this.sharedService=e,this.userRoleService=n,this.closeModalHandler=new Pe,this.userType=""}ngOnInit(){return Y(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}closeSelf(){this.closeModalHandler.emit()}navigateToSales(){window.open("https://www.crashplan.com/contact-sales/","_blank"),this.closeSelf()}static{this.\u0275fac=function(n){return new(n||t)(y(oe),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ie([He,q,Z])],decls:14,vars:1,consts:[["tabindex","-1","role","dialog",1,"modal",2,"display","block"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-body",2,"text-align","center","padding","2em 4em"],[1,"modal-title",2,"margin-bottom",".3em"],[2,"margin-bottom","1em"],["style","display: inline-flex; margin:.5em;font-weight: bold;",4,"ngIf"],[2,"display","inline-flex","margin",".5em","font-weight","bold"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row")(5,"h4",4),d(6,"Your Organization is not licensed to use the CrashPlan Endpoint Product"),a(),o(7,"p",5),d(8," Contact Sales for more information. "),a(),o(9,"div"),C(10,rs,3,0,"div",6),o(11,"div",7)(12,"button",8),_("click",function(){return i.closeSelf()}),d(13,"Back to Dashboard"),a()()()()()()()()),n&2&&(s(10),m("ngIf",i.userType==="admin"))},dependencies:[he,ne,ye,Se],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}a[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:#fff!important}"]})}}return t})();var os=["deviceDropdown"],as=["deviceDropdownCS"],ss=["contentFrame"],ls=["userDeviceSearch"],cs=["fileSearch"],ds=["contentSearch"],ps=["contentSearchMailInput"],ms=["deviceDropdownR"],hs=["contentCalendarFrame"],us=["searchInput"],ge=t=>({display:t}),xe=()=>["Google Drive","Gmail"],gs=t=>[t],fs=()=>({"col-lg-5":!0}),vs=(t,c)=>({"col-lg-7":t,"col-lg-4":c}),_s=()=>({"col-lg-3":!0}),bs=(t,c)=>({active:t,disabled:c}),ys=t=>({"background-color":t}),xa=()=>["Gmail","Google Drive"],Cs=t=>({selected:t});function Ss(t,c){if(t&1){let e=w();o(0,"c-nav-item")(1,"button",16),_("click",function(){u(e);let i=h();return g(i.setActiveSearchTab("content",2))}),d(2," Full text search "),a()()}if(t&2){h();let e=te(15);s(),m("cTabContent",e)("tabPaneIdx",2)}}function ws(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noUsersFoundText," ")}}function xs(t,c){if(t&1){let e=w();o(0,"c-col",83)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userProfile(i.userNameEncoded))}),o(3,"div",82)(4,"div",86),b(5,"img",87),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),Q("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function ks(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,xs,10,2,"c-col",83,Ve),a()()),t&2){let e=h();s(2),M("",e.foundUsers.length," User(s) found: "),s(2),be(e.foundUsers)}}function Is(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noUsersFoundText," ")}}function Ts(t,c){if(t&1){let e=w();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userProfile(i.userNameEncoded))}),o(3,"div",82)(4,"div",86),b(5,"img",91),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),Q("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Ms(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,Ts,10,2,"c-col",90,Ve),a()()),t&2){let e=h();s(2),M("",e.foundSites.length," Site(s) found: "),s(2),be(e.foundSites)}}function Es(t,c){if(t&1&&(o(0,"c-card"),d(1),a()),t&2){let e=h();s(),M(" ",e.noDevicesFoundText," ")}}function Ps(t,c){if(t&1){let e=w();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),o(3,"div",82)(4,"div",86),b(5,"img",92),a(),o(6,"div",88)(7,"p",89)(8,"b"),d(9),a()()()()()()()}if(t&2){let e=c.$implicit;s(7),Q("title",e.deviceName),s(2),Be("",(e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":""),' of user "',(e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""),'"')}}function Ds(t,c){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),d(2),a(),o(3,"c-card-body",82),_e(4,Ps,10,3,"c-col",90,Ve),a()()),t&2){let e=h();s(2),M("",e.foundDevices.length," Device(s) found: "),s(2),be(e.foundDevices)}}function Os(t,c){t&1&&(o(0,"option",93),d(1,"BluVault"),a())}function As(t,c){t&1&&(o(0,"option",94),d(1,"OneDrive for Business"),a())}function Rs(t,c){t&1&&(o(0,"option",95),d(1,"SharePoint Online"),a())}function Us(t,c){if(t&1&&(o(0,"option",30),d(1),a()),t&2){let e=h().$implicit;m("value",e.key),s(),A(e.title)}}function Fs(t,c){if(t&1&&C(0,Us,2,2,"option",96),t&2){let e=c.$implicit,n=h();m("ngIf",n.productsLicensed.includes(e.key))}}function Ns(t,c){if(t&1){let e=w();o(0,"div",97)(1,"label"),d(2,"User Id"),a(),o(3,"select2",98),O("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValue,i)||(r.selectedValue=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearch(i))})("update",function(i){u(e);let r=h();return g(r.update(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("disabled",e.userType==="user"),P("ngModel",e.selectedValue)}}function Vs(t,c){if(t&1){let e=w();o(0,"div",97)(1,"label"),d(2,"Site"),a(),o(3,"select2",99),O("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueSite,i)||(r.selectedValueSite=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchSite(i))})("update",function(i){u(e);let r=h();return g(r.updateSite(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite),P("ngModel",e.selectedValueSite)}}function Bs(t,c){if(t&1&&(o(0,"option",30),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function Ls(t,c){t&1&&(o(0,"option"),d(1," User has no assets configured "),a())}function Gs(t,c){if(t&1&&(o(0,"div",97)(1,"label"),d(2,"Asset Name"),a(),o(3,"select",100,3),C(5,Bs,2,2,"option",101)(6,Ls,2,0,"option",17),a()()),t&2){let e=h();s(5),m("ngForOf",e.devices),s(),m("ngIf",e.devices.length==0)}}function zs(t,c){t&1&&(o(0,"c-row")(1,"c-card",11)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),a()()()())}function Hs(t,c){if(t&1){let e=w();o(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),a()(),o(5,"p",108)(6,"b"),d(7,"Found in: "),a(),d(8),a()(),o(9,"td")(10,"button",109),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeFiles))}),d(11," Download"),a(),o(12,"button",110),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeFiles,i.backup))}),d(13," Open File Location"),a()()()}if(t&2){let e=c.$implicit;s(4),A(e.fileName),s(4),A(e.filePath)}}function js(t,c){if(t&1&&(o(0,"c-row",102)(1,"table",103)(2,"thead",104)(3,"tr")(4,"th",105),d(5,"File Name "),a(),o(6,"th",106),d(7,"Actions"),a()()(),o(8,"tbody"),C(9,Hs,14,2,"tr",107),a()()()),t&2){let e=h();s(),m("hover",!0)("responsive",!0),s(8),m("ngForOf",e.foundFiles)}}function Ws(t,c){t&1&&(o(0,"option",111),d(1,"Microsoft Exchange"),a())}function qs(t,c){t&1&&(o(0,"option",94),d(1,"OneDrive for Business"),a())}function Js(t,c){t&1&&(o(0,"option",95),d(1,"SharePoint Online"),a())}function Ys(t,c){t&1&&(o(0,"option",112),d(1,"Gmail"),a())}function $s(t,c){if(t&1&&(o(0,"option",30),d(1),a()),t&2){let e=h().$implicit;m("value",e.key),s(),A(e.title)}}function Qs(t,c){if(t&1&&C(0,$s,2,2,"option",96),t&2){let e=c.$implicit,n=h();m("ngIf",n.checkFeatureLicensed(G(1,gs,e.key)))}}function Ks(t,c){if(t&1){let e=w();o(0,"div",97)(1,"label"),d(2,"User Id"),a(),o(3,"select2",113),O("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueCS,i)||(r.selectedValueCS=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchContentSearch(i))})("update",function(i){u(e);let r=h();return g(r.updateContentSearch(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),P("ngModel",e.selectedValueCS)}}function Zs(t,c){if(t&1){let e=w();o(0,"div",97)(1,"label"),d(2,"Site"),a(),o(3,"select2",114),O("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueSiteCS,i)||(r.selectedValueSiteCS=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchSiteContentSearch(i))})("update",function(i){u(e);let r=h();return g(r.updateSiteContentSearch(i))}),a()()}if(t&2){let e=h();s(3),m("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),P("ngModel",e.selectedValueSiteCS)}}function Xs(t,c){if(t&1&&(o(0,"option",30),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function el(t,c){t&1&&(o(0,"option"),d(1," User has no assets configured "),a())}function tl(t,c){if(t&1){let e=w();o(0,"div",97)(1,"label"),d(2,"Asset Name"),a(),o(3,"select",115,4),_("change",function(){u(e);let i=h();return g(i.onDeviceChangeCS())}),C(5,Xs,2,2,"option",101)(6,el,2,0,"option",17),a()()}if(t&2){let e=h();s(5),m("ngForOf",e.devicesCS),s(),m("ngIf",e.devicesCS.length==0)}}function il(t,c){if(t&1){let e=w();o(0,"c-row",32)(1,"div",33)(2,"c-input-group")(3,"input",116,5),O("ngModelChange",function(i){u(e);let r=h();return D(r.contentSearchText,i)||(r.contentSearchText=i),g(i)}),_("keydown.enter",function(){u(e);let i=h();return g(i.searchForContent())}),a()()(),o(5,"div",35)(6,"button",36),_("click",function(){u(e);let i=h();return g(i.searchForContent())}),d(7,"Search"),a()()()}if(t&2){let e=h();s(3),P("ngModel",e.contentSearchText)}}function nl(t,c){if(t&1){let e=w();o(0,"div",35)(1,"a",120),_("click",function(){u(e);let i=h(2);return g(i.searchForContent())}),d(2,"Search"),a()()}}function rl(t,c){if(t&1){let e=w();o(0,"c-row",61)(1,"div",33)(2,"c-input-group",11)(3,"input",117,6),O("ngModelChange",function(i){u(e);let r=h();return D(r.contentSearchMail,i)||(r.contentSearchMail=i),g(i)}),_("keydown.enter",function(){u(e);let i=h();return g(i.searchForContent())}),a(),o(5,"button",36),_("click",function(){u(e);let i=h();return g(i.togglePanel())}),b(6,"i",118),a()()(),C(7,nl,3,0,"div",119),a()}if(t&2){let e=h();s(3),P("ngModel",e.contentSearchMail),m("disabled",e.isExpanded),s(3),m("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down"),s(),m("ngIf",!e.isExpanded)}}function ol(t,c){if(t&1){let e=w();o(0,"div",122)(1,"div",123)(2,"label",124),d(3,"From "),o(4,"a",125),b(5,"i",126),o(6,"span",127),d(7,"Use comma to separate Email addresses"),a()()(),o(8,"input",128),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.fromId,i)||(r.fromId=i),g(i)}),a()(),o(9,"div",123)(10,"label",129),d(11,"To "),o(12,"a",125),b(13,"i",126),o(14,"span",127),d(15,"Use comma to separate Email addresses"),a()()(),o(16,"input",130),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.toId,i)||(r.toId=i),g(i)}),a()(),o(17,"div",123)(18,"label",131),d(19,"CC "),o(20,"a",125),b(21,"i",126),o(22,"span",127),d(23,"Use comma to separate Email addresses"),a()()(),o(24,"input",132),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.ccId,i)||(r.ccId=i),g(i)}),a()(),o(25,"div",123)(26,"label",133),d(27,"BCC "),o(28,"a",125),b(29,"i",126),o(30,"span",127),d(31,"Use comma to separate Email addresses"),a()()(),o(32,"input",134),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.bccId,i)||(r.bccId=i),g(i)}),a()(),o(33,"div",123)(34,"label",135),d(35,"Subject "),o(36,"a",125),b(37,"i",126),o(38,"span",127),d(39,"Use comma to separate multiple Subjects"),a()()(),o(40,"input",136),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.subjectId,i)||(r.subjectId=i),g(i)}),a()(),o(41,"div",123)(42,"label",137),d(43,"Body"),a(),o(44,"input",138),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.bodyId,i)||(r.bodyId=i),g(i)}),a()(),o(45,"div",123)(46,"label",139),d(47,"Keywords"),a(),o(48,"input",140),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.keywordsId,i)||(r.keywordsId=i),g(i)}),a()(),o(49,"div",141)(50,"label",139),d(51,"Date from"),a(),o(52,"input",142),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.myDateBefore,i)||(r.myDateBefore=i),g(i)}),a(),d(53," To "),o(54,"input",142),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.myDateAfter,i)||(r.myDateAfter=i),g(i)}),a()(),o(55,"div",61)(56,"a",143),_("click",function(){u(e);let i=h(2);return g(i.searchForContent())}),d(57,"Search"),a()()()}if(t&2){let e=h(2);s(8),P("ngModel",e.fromId),s(8),P("ngModel",e.toId),s(8),P("ngModel",e.ccId),s(8),P("ngModel",e.bccId),s(8),P("ngModel",e.subjectId),s(4),P("ngModel",e.bodyId),s(4),P("ngModel",e.keywordsId),s(4),P("ngModel",e.myDateBefore),m("bsConfig",e.bsConfigBefore),s(2),P("ngModel",e.myDateAfter),m("bsConfig",e.bsConfigAfter)}}function al(t,c){if(t&1&&(o(0,"c-row",61),C(1,ol,58,11,"div",121),a()),t&2){let e=h();s(),m("ngIf",e.isExpanded)}}function sl(t,c){if(t&1){let e=w();o(0,"tr")(1,"td")(2,"div")(3,"h4"),d(4),a()(),o(5,"p",108)(6,"b"),d(7,"Found in: "),a(),d(8),a(),o(9,"p"),b(10,"span",146),a()(),o(11,"td")(12,"button",109),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeContentSearch))}),d(13," Download"),a(),o(14,"button",110),_("click",function(){let i=u(e).$implicit,r=h(2);return g(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeContentSearch,i.backup))}),d(15," Open File Location"),a()()()}if(t&2){let e=c.$implicit,n=h(2);s(4),A(e.fileName),s(4),A(e.filePath),s(2),m("innerHTML",n.renderHtml(e.content),Fe)}}function ll(t,c){if(t&1&&(o(0,"c-row",102)(1,"table",103)(2,"thead",104)(3,"tr")(4,"th",144),d(5,"File Name "),a(),o(6,"th",145),d(7,"Actions"),a()()(),o(8,"tbody"),C(9,sl,16,3,"tr",107),a()()()),t&2){let e=h();s(),m("hover",!0)("responsive",!0),s(8),m("ngForOf",e.foundFilesCS)}}function cl(t,c){t&1&&(o(0,"c-row",61)(1,"c-card",11)(2,"c-card-body")(3,"b"),d(4,"There are no results!."),a()()()())}function dl(t,c){if(t&1){let e=w();o(0,"a",163),_("click",function(){u(e);let i=h(2);return g(i.enableMultiSelect())}),b(1,"i",164),o(2,"span",127),d(3,"Enable Multiselect"),a()()}}function pl(t,c){if(t&1){let e=w();o(0,"a",165),_("click",function(){u(e);let i=h(2);return g(i.removeAll())}),b(1,"i",166),o(2,"span",127),d(3,"Disable Multiselect"),a()()}}function ml(t,c){if(t&1){let e=w();o(0,"a",167),_("click",function(){u(e);let i=h(2);return g(i.exportCompleteMailboxAsPstG())}),d(1,"Export all items to PST"),a()}}function hl(t,c){if(t&1){let e=w();o(0,"a",168),_("click",function(){u(e);let i=h(2);return g(i.exportFolderAsPstModalG())}),d(1,"Export selected items to PST"),a()}if(t&2){let e=h(2);m("ngClass",ei(1,bs,e.addedElementsCount>0,e.addedElementsCount<=0))}}function ul(t,c){if(t&1){let e=w();o(0,"th",157)(1,"input",169),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.isSelectAll,i)||(r.isSelectAll=i),g(i)}),_("change",function(){u(e);let i=h(2);return g(i.toggleSelectAll())}),a()()}if(t&2){let e=h(2);s(),P("ngModel",e.isSelectAll)}}function gl(t,c){if(t&1){let e=w();o(0,"button",170),_("click",function(){u(e);let i=h(2);return g(i.addToCartFinal())}),d(1," Add Selected Items "),a()}}function fl(t,c){if(t&1){let e=w();o(0,"td")(1,"input",174),O("ngModelChange",function(i){u(e);let r=h().$implicit;return D(r.isChecked,i)||(r.isChecked=i),g(i)}),_("change",function(){u(e);let i=h(4);return g(i.itemSelect())}),a()()}if(t&2){let e=h().$implicit;s(),P("ngModel",e.isChecked)}}function vl(t,c){if(t&1&&(o(0,"td",175)(1,"span",176),d(2),a()()),t&2){let e=h().$implicit;s(),m("ngStyle",G(2,ys,e.alphaColor)),s(),M(" ",e.showIcon," ")}}function _l(t,c){t&1&&b(0,"i",190)}function bl(t,c){if(t&1){let e=w();o(0,"a",191),_("click",function(){u(e);let i=h(3).$implicit,r=h(3);return g(r.downloadMail(i.userName,i.backupId,i.deviceUUID,r.productTypeContentSearch))}),b(1,"i",192),a()}}function yl(t,c){if(t&1){let e=w();o(0,"a",193),_("click",function(){u(e);let i=h(3).$implicit,r=h(3);return g(r.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),b(1,"i",194),a()}}function Cl(t,c){if(t&1&&(o(0,"p"),b(1,"span",146),a()),t&2){let e=h(3).$implicit,n=h(3);s(),m("innerHTML",n.renderHtml(e.displayContent),Fe)}}function Sl(t,c){if(t&1&&(o(0,"a",180)(1,"span",181),d(2),a(),C(3,_l,1,0,"i",182)(4,bl,2,0,"a",183)(5,yl,2,0,"a",184),o(6,"p",185)(7,"span",186),d(8),a(),b(9,"span",187),a(),C(10,Cl,2,1,"p",17),o(11,"p",188)(12,"b"),d(13,"Found in:"),a(),o(14,"span",189),d(15),a()()()),t&2){let e=h(2).$implicit,n=h(3);s(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),m("ngIf",e.hasAttachments),s(),m("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(),m("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(3),M(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),s(),m("innerHTML",n.renderHtml(e.sentDate),Fe),s(),m("ngIf",e.displayContent),s(5),Be("",e.userName," : ",e.filePath,"")}}function wl(t,c){t&1&&b(0,"i",197)}function xl(t,c){if(t&1&&(o(0,"p"),b(1,"span",146),a()),t&2){let e=h(3).$implicit,n=h(3);s(),m("innerHTML",n.renderHtml(e.displayContent),Fe)}}function kl(t,c){if(t&1&&(o(0,"a",195)(1,"span",181),d(2),a(),C(3,wl,1,0,"i",196),o(4,"p",185)(5,"span",186),d(6),a(),b(7,"span",187),a(),C(8,xl,2,1,"p",17),a()),t&2){let e=h(2).$implicit,n=h(3);s(2),M(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),m("ngIf",e.hasAttachments),s(3),M(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),s(),m("innerHTML",n.renderHtml(e.sentDate),Fe),s(),m("ngIf",e.displayContent)}}function Il(t,c){if(t&1){let e=w();o(0,"td",177),_("click",function(){u(e);let i=h().$implicit,r=h(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"mail"))}),o(1,"div",61)(2,"div"),C(3,Sl,16,9,"a",178)(4,kl,9,5,"a",179),a()()()}if(t&2){let e=h().$implicit;De("data-name",e.name),s(3),m("ngIf",e.present=="true"),s(),m("ngIf",e.present=="false")}}function Tl(t,c){if(t&1){let e=w();o(0,"td",177),_("click",function(){u(e);let i=h().$implicit,r=h(3);return g(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"contacts"))}),o(1,"div",61)(2,"div")(3,"a",180)(4,"span",181),d(5),a()()()()()}if(t&2){let e=h().$implicit;De("data-name",e.name),s(5),M(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function Ml(t,c){if(t&1&&(o(0,"tr"),C(1,fl,2,1,"td",17)(2,vl,3,4,"td",172)(3,Il,5,3,"td",173)(4,Tl,6,2,"td",173),a()),t&2){let e=c.$implicit,n=h(3);Oe("selected-rowMail",n.isSelected(e)),s(),m("ngIf",n.isMultiSelectEnabled),s(),m("ngIf",e.type=="File"),s(),m("ngIf",e.type==="File"&&e.filePath!=="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO"),s(),m("ngIf",e.type==="File"&&e.filePath==="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO")}}function El(t,c){if(t&1&&(o(0,"tbody"),C(1,Ml,5,6,"tr",171),a()),t&2){let e=h(2);s(),m("ngForOf",e.foundMailsCS)}}function Pl(t,c){t&1&&(o(0,"c-card-body",198)(1,"p"),d(2,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator."),a()())}function Dl(t,c){t&1&&(o(0,"c-card-body",198)(1,"p"),d(2,"Item not available."),a()())}function Ol(t,c){if(t&1&&(o(0,"div",210)(1,"b"),d(2,"From :"),a(),d(3),o(4,"span",211),d(5),a()()),t&2){let e=h(3);s(3),M(" ",e.currentMailFrom," "),s(2),A(e.currentMailSentDate)}}function Al(t,c){if(t&1&&(o(0,"div",212)(1,"b"),d(2,"To :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailTo,"")}}function Rl(t,c){if(t&1&&(o(0,"div",213)(1,"b"),d(2,"CC :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailCc,"")}}function Ul(t,c){if(t&1&&(o(0,"div",214)(1,"b"),d(2,"BCC :"),a(),d(3),a()),t&2){let e=h(3);s(3),M(" ",e.currentMailBcc,"")}}function Fl(t,c){if(t&1&&(o(0,"span",218),d(1),a()),t&2){let e=c.$implicit;s(),M(" ",e.name?e.name.slice(0,20)+(e.name.length>20?"...":""):""," ")}}function Nl(t,c){if(t&1&&(o(0,"div",215)(1,"div",216),C(2,Fl,2,1,"span",217),d(3," \xA0 "),a()()),t&2){let e=h(3);s(2),m("ngForOf",e.currentMailAttachments)}}function Vl(t,c){if(t&1&&(o(0,"c-card-body")(1,"div",199),b(2,"div",200),o(3,"div",201)(4,"div",202)(5,"h3"),d(6),a()(),C(7,Ol,6,2,"div",203)(8,Al,4,1,"div",204)(9,Rl,4,1,"div",205)(10,Ul,4,1,"div",206)(11,Nl,4,1,"div",207),b(12,"br"),o(13,"div",208),b(14,"iframe",209,7),a()()()()),t&2){let e=h(2);s(6),M("Subject : ",e.currentMailSubject,""),s(),m("ngIf",e.currentMailFrom!=""),s(),m("ngIf",e.currentMailTo!=""),s(),m("ngIf",e.currentMailCc!=""),s(),m("ngIf",e.currentMailBcc!=""),s(),m("ngIf",e.currentMailAttachments.length>0)}}function Bl(t,c){if(t&1&&(o(0,"a",245),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactEmail)}}function Ll(t,c){if(t&1&&(o(0,"a",246),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactOfficeLocation)}}function Gl(t,c){if(t&1&&(o(0,"a",247),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactCompanyName)}}function zl(t,c){if(t&1&&(o(0,"a",248),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactJobTitle)}}function Hl(t,c){if(t&1&&(o(0,"a",249),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactDepartment)}}function jl(t,c){if(t&1&&(o(0,"a",250),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactMobile)}}function Wl(t,c){if(t&1&&(o(0,"a",251),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactHomePhones)}}function ql(t,c){if(t&1&&(o(0,"a",252),d(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactBusinessPhones)}}function Jl(t,c){if(t&1){let e=w();o(0,"c-card-body")(1,"div",219)(2,"div",220)(3,"div",221),b(4,"c-avatar",222),a(),o(5,"div",223)(6,"div",224)(7,"span",225),d(8),a()()()(),o(9,"div",226),b(10,"hr"),o(11,"div",227)(12,"label",186),d(13,"Email: "),a(),b(14,"br"),o(15,"span",228),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullEmail=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullEmail=!1)}),d(16),a(),C(17,Bl,2,1,"a",229),a(),o(18,"div",227)(19,"label",186),d(20,"Location: "),a(),b(21,"br"),o(22,"span",230),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullLocation=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullLocation=!1)}),d(23),a(),C(24,Ll,2,1,"a",231),a(),o(25,"div",227)(26,"label",186),d(27,"Company: "),a(),b(28,"br"),o(29,"span",232),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullCompanyName=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullCompanyName=!1)}),d(30),a(),C(31,Gl,2,1,"a",233),a(),o(32,"div",227)(33,"label",186),d(34,"Job title: "),a(),b(35,"br"),o(36,"span",234),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullJobTitle=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullJobTitle=!1)}),d(37),a(),C(38,zl,2,1,"a",235),a(),o(39,"div",227)(40,"label",186),d(41,"Department: "),a(),b(42,"br"),o(43,"span",236),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullDepartment=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullDepartment=!1)}),d(44),a(),C(45,Hl,2,1,"a",237),a(),o(46,"div",227)(47,"label",186),d(48,"Business Address: "),a(),b(49,"br"),o(50,"span",225),d(51),a()(),o(52,"div",227)(53,"label",186),d(54,"Home Address: "),a(),b(55,"br"),o(56,"span",225),d(57),a()(),o(58,"div",227)(59,"label",186),d(60,"Birthday: "),a(),b(61,"br"),o(62,"span",238),d(63),a()(),o(64,"div",227)(65,"label",186),d(66,"Mobile phone: "),a(),b(67,"br"),o(68,"span",239),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullMobile=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullMobile=!1)}),d(69),a(),C(70,jl,2,1,"a",240),a(),o(71,"div",227)(72,"label",186),d(73,"Home phone: "),a(),b(74,"br"),o(75,"span",241),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullHomePhone=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullHomePhone=!1)}),d(76),a(),C(77,Wl,2,1,"a",242),a(),o(78,"div",227)(79,"label",186),d(80,"Business phone: "),a(),b(81,"br"),o(82,"span",243),_("mouseenter",function(){u(e);let i=h(2);return g(i.showFullBusinessPhone=!0)})("mouseleave",function(){u(e);let i=h(2);return g(i.showFullBusinessPhone=!1)}),d(83),a(),C(84,ql,2,1,"a",244),a()()()()}if(t&2){let e=h(2);s(4),m("size","md"),s(3),m("title",e.fullCombinedName),s(),M(" ",e.truncatedCombinedName," "),s(7),m("title",e.contactEmail.length>20?e.contactEmail:""),s(),M(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),s(),m("ngIf",e.contactEmail.length>20),s(5),m("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),s(),M(" ",e.contactOfficeLocation.length>20?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),s(),m("ngIf",e.contactOfficeLocation.length>20),s(5),m("title",e.contactCompanyName.length>20?e.contactCompanyName:""),s(),M(" ",e.contactCompanyName.length>20?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),s(),m("ngIf",e.contactCompanyName.length>20),s(5),m("title",e.contactJobTitle.length>20?e.contactJobTitle:""),s(),M(" ",e.contactJobTitle.length>20?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),s(),m("ngIf",e.contactJobTitle.length>20),s(5),m("title",e.contactDepartment.length>20?e.contactDepartment:""),s(),M(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),s(),m("ngIf",e.contactDepartment.length>20),s(5),m("title",e.combinedBusinessAddress),s(),M(" ",e.truncatedBusinessAddress," "),s(5),m("title",e.combinedHomeAddress),s(),M(" ",e.truncatedHomeAddress," "),s(6),A(e.contactBirthday),s(5),m("title",e.contactMobile.length>20?e.contactMobile:""),s(),M(" ",e.contactMobile.length>20?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),s(),m("ngIf",e.contactMobile.length>20),s(5),m("title",e.contactHomePhones.length>20?e.contactHomePhones:""),s(),M(" ",e.contactHomePhones.length>20?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),s(),m("ngIf",e.contactHomePhones.length>20),s(5),m("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),s(),M(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),s(),m("ngIf",e.contactBusinessPhones.length>20)}}function Yl(t,c){if(t&1){let e=w();o(0,"th"),d(1),o(2,"a",253),_("click",function(){u(e);let i=h(2);return g(i.removeAll())}),d(3,"Remove all"),a()()}if(t&2){let e=h(2);s(),Be("",e.addedElementsCount," out of ",e.totalCountGS," selected ")}}function $l(t,c){if(t&1&&(o(0,"th"),d(1),a()),t&2){let e=h(2);s(),M("",e.addedElementsCount," selected")}}function Ql(t,c){if(t&1){let e=w();o(0,"tr")(1,"td",254)(2,"span",255),d(3),a(),o(4,"a",256),_("click",function(){let i=u(e),r=i.$implicit,p=i.index,l=h(2);return g(l.removeItem(p,r.subject,r.backupId,r.subject))}),b(5,"i",257),a()()()}if(t&2){let e=c.$implicit;s(3),A(e.subject)}}function Kl(t,c){if(t&1&&(o(0,"c-row",147)(1,"c-card-header",148),C(2,dl,4,0,"a",149)(3,pl,4,0,"a",150),o(4,"span")(5,"b"),d(6),a()(),C(7,ml,2,0,"a",151)(8,hl,2,4,"a",152),a(),o(9,"c-card",153)(10,"c-card-body")(11,"div",154)(12,"table",155)(13,"thead",104)(14,"tr"),C(15,ul,2,1,"th",156),o(16,"th",157),d(17," Results "),C(18,gl,2,0,"button",158),a()()(),C(19,El,2,1,"tbody",17),a()()()(),o(20,"c-card",153),C(21,Pl,3,0,"c-card-body",159)(22,Dl,3,0,"c-card-body",159)(23,Vl,16,6,"c-card-body",17)(24,Jl,85,32,"c-card-body",17),a(),o(25,"c-card",160)(26,"c-card-body")(27,"table",161)(28,"colgroup"),b(29,"col",162),a(),o(30,"thead")(31,"tr"),C(32,Yl,4,2,"th",17)(33,$l,2,1,"th",17),a()(),o(34,"tbody"),C(35,Ql,6,1,"tr",107),a()()()()()),t&2){let e=h();s(2),m("ngIf",!e.isMultiSelectEnabled),s(),m("ngIf",e.isMultiSelectEnabled),s(3),M("",e.totalCountGS," Search Results Found"),s(),m("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&e.productTypeContentSearch!=="Gmail"),s(),m("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),s(),m("ngClass",R(22,fs)),s(3),m("hover",!0)("responsive",!0)("striped",!1),s(3),m("ngIf",e.isMultiSelectEnabled),s(3),m("ngIf",e.updateAddToCartButtonVisibility()),s(),m("ngIf",!e.noFilesFoundCS),s(),m("ngClass",ei(23,vs,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),s(),m("ngIf",!e.showMailPreview),s(),m("ngIf",e.showNotAvailable),s(),m("ngIf",e.showMailView&&e.showMailPreview),s(),m("ngIf",e.showContactsView),s(),m("ngClass",R(26,_s))("ngStyle",G(27,ge,e.isMultiSelectEnabled?"block":"none")),s(7),m("ngIf",e.addedElementsCount>0),s(),m("ngIf",e.addedElementsCount==0),s(2),m("ngForOf",e.addedElementsUpdated)}}function Zl(t,c){if(t&1){let e=w();o(0,"a",264),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.first))}),b(1,"i",265),a()}}function Xl(t,c){if(t&1){let e=w();o(0,"a",266),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.previous))}),b(1,"i",267),a()}}function ec(t,c){if(t&1){let e=w();o(0,"a",268),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.next))}),b(1,"i",269),a()}}function tc(t,c){if(t&1){let e=w();o(0,"a",270),_("click",function(){u(e);let i=h(2);return g(i.searchForContentNavigate(i.last))}),b(1,"i",271),a()}}function ic(t,c){if(t&1&&(o(0,"c-row",20)(1,"div",258)(2,"div",259),C(3,Zl,2,0,"a",260)(4,Xl,2,0,"a",261)(5,ec,2,0,"a",262)(6,tc,2,0,"a",263),a()()()),t&2){let e=h();s(3),m("ngIf",e.first!=""),s(),m("ngIf",e.previous!=""),s(),m("ngIf",e.next!=""),s(),m("ngIf",e.last!="")}}function nc(t,c){if(t&1){let e=w();o(0,"button",272),_("click",function(){u(e);let i=h();return g(i.exportCompleteMailboxAsPstTriggerG())}),d(1,"Proceed"),a()}}function rc(t,c){if(t&1){let e=w();o(0,"button",272),_("click",function(){u(e);let i=h();return g(i.exportSelectedAsPstG())}),d(1,"Proceed"),a()}}function oc(t,c){t&1&&(o(0,"th"),d(1,"Current item being processed"),a())}function ac(t,c){if(t&1&&(o(0,"span"),d(1),me(2,"slice"),a()),t&2){let e=h(2);s(),M("/ ",Le(2,1,e.progressG.subject,0,40),"")}}function sc(t,c){if(t&1&&(o(0,"td")(1,"span",273),d(2),me(3,"slice"),a(),C(4,ac,3,5,"span",17),a()),t&2){let e=h();s(),Xt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),s(),A(Le(3,5,e.progressG.currentFolderPath,0,20)),s(2),m("ngIf",e.progressG.subject)}}function lc(t,c){t&1&&(o(0,"td"),d(1,"-"),a())}function cc(t,c){if(t&1&&(o(0,"td"),d(1),o(2,"div",274)(3,"div",275),d(4),me(5,"number"),a()()()),t&2){let e=h();s(),Be("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),s(),et("title","",e.progressG.totalRestorePct,"%"),s(),gt("width",e.progressG.totalRestorePct,"%"),s(),M(" ",ti(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function dc(t,c){t&1&&(o(0,"td"),d(1,"0"),a())}function pc(t,c){if(t&1){let e=w();o(0,"button",65),_("click",function(){u(e);let i=h();return g(i.cancelDownloadAsPstG())}),d(1,"Cancel Restore"),a()}}function mc(t,c){t&1&&(o(0,"div",296)(1,"ul",297)(2,"li",298)(3,"strong",299),d(4,"No Users found"),a(),b(5,"ul",300),a()()())}function hc(t,c){if(t&1&&(o(0,"option",30),d(1),a()),t&2){let e=c.$implicit;m("value",e.deviceUUID),s(),M(" ",e.deviceName," ")}}function uc(t,c){if(t&1){let e=w();o(0,"div",282)(1,"span",33),d(2,"Disallow new backups during this restore"),a(),o(3,"div",283)(4,"c-form-check",284)(5,"input",301),O("ngModelChange",function(i){u(e);let r=h(2);return D(r.suspendBackupR,i)||(r.suspendBackupR=i),g(i)}),a()()()()}if(t&2){let e=h(2);s(4),m("switch",!0),s(),P("ngModel",e.suspendBackupR)}}function gc(t,c){if(t&1){let e=w();o(0,"c-card"),b(1,"c-card-header",60),o(2,"c-card-body")(3,"c-row")(4,"span"),d(5,"Source Path - "),o(6,"span"),d(7),a()()(),o(8,"c-row",61)(9,"p"),d(10,"Select a destination asset:"),a(),o(11,"div",123)(12,"label"),d(13,"User Id"),a(),o(14,"select2",276),O("ngModelChange",function(i){u(e);let r=h();return D(r.selectedValueR,i)||(r.selectedValueR=i),g(i)}),_("search",function(i){u(e);let r=h();return g(r.onSearchR(i))})("update",function(i){u(e);let r=h();return g(r.updateR(i))}),a(),C(15,mc,6,0,"div",277),a(),o(16,"div",123)(17,"label"),d(18,"Asset Name"),a(),o(19,"select",115,8),_("change",function(){u(e);let i=te(20),r=h();return g(r.onDeviceChangeR(i.value))}),C(21,hc,2,2,"option",101),a()()(),o(22,"c-row")(23,"div",52)(24,"label",278),d(25,"Select a Destination Path"),a(),o(26,"c-input-group",11)(27,"input",279),O("ngModelChange",function(i){u(e);let r=h();return D(r.destinationPathR,i)||(r.destinationPathR=i),g(i)}),a(),o(28,"button",280),_("click",function(){u(e);let i=te(20),r=h();return g(r.browseR(i.value))}),d(29,"Browse"),a()()()(),o(30,"c-row",61)(31,"h3"),d(32,"Restore Options"),a(),o(33,"div",72),C(34,uc,6,2,"div",281),o(35,"div",282)(36,"span",33),d(37,"In place Restore"),a(),o(38,"div",283)(39,"c-form-check",284)(40,"input",285),O("ngModelChange",function(i){u(e);let r=h();return D(r.inplaceRestoreR,i)||(r.inplaceRestoreR=i),g(i)}),a()()()(),o(41,"div",282)(42,"span",33),d(43,"Restore Deleted Mails"),a(),o(44,"div",283)(45,"c-form-check",284)(46,"input",286),O("ngModelChange",function(i){u(e);let r=h();return D(r.restoreDeletedFilesByRestoreR,i)||(r.restoreDeletedFilesByRestoreR=i),g(i)}),a()()()()(),o(47,"div",287)(48,"div",288)(49,"span",289),d(50,"Restore Data As Of"),a(),o(51,"div",290)(52,"c-form-check",284)(53,"input",291),O("ngModelChange",function(i){u(e);let r=h();return D(r.dateBeforeR,i)||(r.dateBeforeR=i),g(i)}),_("change",function(){u(e);let i=h();return g(i.toggleDateBeforeR())}),a()()()(),o(54,"div",292)(55,"div",293)(56,"input",294),O("ngModelChange",function(i){u(e);let r=h();return D(r.myDateBeforeR,i)||(r.myDateBeforeR=i),g(i)}),a(),o(57,"timepicker",295),O("ngModelChange",function(i){u(e);let r=h();return D(r.myTimeBeforeR,i)||(r.myTimeBeforeR=i),g(i)}),a()()()()()()()}if(t&2){let e=h();s(7),A(e.currentFilePathR),s(7),m("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),P("ngModel",e.selectedValueR),s(),m("ngIf",e.deviceUsersListR.length===0),s(6),m("ngForOf",e.devicesR),s(6),P("ngModel",e.destinationPathR),m("readonly",!0),s(7),m("ngIf",!R(24,xe).includes(e.productTypeContentSearch)),s(5),m("switch",!0),s(),P("ngModel",e.inplaceRestoreR),s(5),m("switch",!0),s(),P("ngModel",e.restoreDeletedFilesByRestoreR),s(6),m("switch",!0),s(),P("ngModel",e.dateBeforeR),s(3),P("ngModel",e.myDateBeforeR),m("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),s(),P("ngModel",e.myTimeBeforeR),m("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function fc(t,c){if(t&1&&(o(0,"c-row")(1,"span"),d(2,"Source Path - "),o(3,"span"),d(4),a()()()),t&2){let e=h(2);s(4),A(e.currentFilePathR)}}function vc(t,c){t&1&&(o(0,"th"),d(1,"Current item being processed"),a())}function _c(t,c){t&1&&(o(0,"th"),d(1,"Source Path "),a())}function bc(t,c){if(t&1&&(o(0,"span"),d(1),me(2,"slice"),a()),t&2){let e=h(3);s(),M("/ ",Le(2,1,e.progressR.subject,0,40),"")}}function yc(t,c){if(t&1&&(o(0,"td")(1,"span",273),d(2),me(3,"slice"),a(),C(4,bc,3,5,"span",17),a()),t&2){let e=h(2);s(),Xt("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),s(),A(Le(3,5,e.progressR.currentFolderPath,0,20)),s(2),m("ngIf",e.progressR.subject)}}function Cc(t,c){if(t&1&&(o(0,"td")(1,"span",302),d(2),me(3,"slice"),a()()),t&2){let e=h(2);s(),Q("title",e.progressR.folderName),s(),A(Le(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function Sc(t,c){t&1&&(o(0,"td"),d(1,"-"),a())}function wc(t,c){if(t&1&&(o(0,"td"),d(1),o(2,"div",303)(3,"div",275),d(4),me(5,"number"),a()()()),t&2){let e=h(3);s(),Be("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore," "),s(),et("title","",e.progressR.totalRestorePct,"%"),s(),gt("width",e.progressR.totalRestorePct,"%"),s(),M(" ",ti(5,7,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function xc(t,c){if(t&1&&C(0,wc,6,10,"td",17),t&2){let e=h(2);m("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function kc(t,c){t&1&&(o(0,"td"),b(1,"div",304),a())}function Ic(t,c){t&1&&(o(0,"td"),d(1,"0"),a())}function Tc(t,c){if(t&1&&(o(0,"c-card"),b(1,"c-card-header",60),o(2,"c-card-body"),C(3,fc,5,1,"c-row",17),o(4,"c-row",61)(5,"h3"),d(6,"Currently Running Restore Statistics"),a(),o(7,"table",62)(8,"thead")(9,"tr"),C(10,vc,2,0,"th")(11,_c,2,0,"th"),o(12,"th"),d(13,"Overall Progress"),a()()(),o(14,"tbody")(15,"tr"),C(16,yc,5,9,"td",17)(17,Cc,4,6,"td",17)(18,Sc,2,0,"td",17)(19,xc,1,1,"td")(20,kc,2,0,"td")(21,Ic,2,0,"td",17),a()()()()()()),t&2){let e=h();s(3),m("ngIf",!R(7,xa).includes(e.productTypeContentSearch)),s(7),Ae(R(8,xa).includes(e.productTypeContentSearch)?11:10),s(6),m("ngIf",!R(9,xe).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),s(),m("ngIf",R(10,xe).includes(e.productTypeContentSearch)),s(),m("ngIf",!R(11,xe).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),s(),Ae(!R(12,xe).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?19:20),s(2),m("ngIf",!R(13,xe).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function Mc(t,c){if(t&1){let e=w();o(0,"button",305),_("click",function(){u(e);let i=h();return g(i.initiateRestoreR())}),d(1,"Initiate Restore"),a()}}function Ec(t,c){if(t&1){let e=w();o(0,"button",306),_("click",function(){u(e);let i=h();return g(i.cancelRunningRestoreR())}),d(1,"Cancel Restore"),a()}}function Pc(t,c){if(t&1){let e=w();o(0,"button",307),_("click",function(){u(e);let i=h();return g(i.closeRestorePopupR())}),d(1,"Close"),a()}}function Dc(t,c){if(t&1){let e=w();o(0,"button",308),_("click",function(){u(e);let i=h();return g(i.closeRestorePopupR())}),d(1,"Close"),a()}}function Oc(t,c){t&1&&(o(0,"span"),d(1,"My Drive/"),a())}function Ac(t,c){t&1&&(o(0,"span"),d(1,"/"),a())}function Rc(t,c){if(t&1&&(o(0,"span"),d(1),a()),t&2){let e=h();s(),A(e.browsePathR)}}function Uc(t,c){if(t&1){let e=w();o(0,"button",309),_("click",function(){u(e);let i=h();return g(i.backBrowseR())}),b(1,"i",310),d(2," Back"),a()}}function Fc(t,c){t&1&&(o(0,"tr")(1,"td",311)(2,"div",312)(3,"span",313),d(4,"Loading..."),a()()()())}function Nc(t,c){if(t&1){let e=w();o(0,"tr",314),_("click",function(){let i=u(e).$implicit,r=h();return g(r.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(){let i=u(e).$implicit,r=h();return g(r.onDoubleClickR(i.folderName||i,i.folderId))}),o(1,"td")(2,"span",225),d(3),a()()()}if(t&2){let e=c.$implicit,n=h();m("ngClass",G(3,Cs,n.selectedBrowseItemR===(e.folderName||e))),s(2),Q("title",e.folderName||e),s(),M(" ",e.folderName||e," ")}}var Ia=(()=>{class t{constructor(e,n,i,r,p,l,f,S,x,I,T,k){this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.http=p,this.sharedService=l,this.renderer=f,this.cdr=S,this.sanitizer=x,this.configService=I,this.licenseCheckService=T,this.userRoleService=k,this.PRODUCTS_CONFIG=ua,this.userAssetSearchText="",this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!1,this.showCalendarView=!1,this.currentMailSubject="",this.currentMailFrom="",this.currentMailSentDate="",this.currentMailTo="",this.currentMailCc="",this.currentMailBcc="",this.currentMailAttachments=[],this.currentMailBody="",this.currentFileName="",this.currentMailPath="",this.currentMailBackupId="",this.currentMailUser="",this.isSelectAll=!1,this.isMultiSelectEnabled=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.selectItems=[],this.totalCountGS="",this.previous="",this.next="",this.last="",this.first="",this.activeTabIndex=1,this.pstFileNameG="",this.displayPststyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayRestoreStyleR="none",this.destinationPathR="",this.value18R="",this.overlayR=!1,this.selectedValueR=null,this.deviceUsersListR=[],this.devicesR=[],this.inplaceRestoreR=!1,this.suspendBackupR=!1,this.restoreDeletedFilesByRestoreR=!1,this.restoreDataBeforeR="",this.dateBeforeR=!1,this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date,this.selectedDeviceUUIDR="",this.browsePathR="",this.browseItemsR=[],this.displayBrowseStyleR="none",this.newFolderR="",this.selectedBrowseItemR=null,this.combinedBrowseValueR="",this.loadingR=!1,this.gotResultForRestoreR=!1,this.displayRestoreSizeStyleR="none",this.batchIdR="",this.showRestoreSettingsR=!0,this.progressR=[],this.displayDeleteRestoreStyleR="none",this.restoreDataBefore="",this.currentFilePathR="",this.currentFileBackupIdR="",this.restoreAllVersionsR=!1,this.restoreLinksR=!1,this.contactName="",this.contactTitle="",this.contactFirstName="",this.contactMiddleName="",this.contactLastName="",this.contactSuffix="",this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-",this.combinedBusinessAddress="-",this.truncatedBusinessAddress="-",this.combinedHomeAddress="-",this.truncatedHomeAddress="-",this.fullCombinedName="-",this.truncatedCombinedName="-",this.showFullEmail=!1,this.showFullLocation=!1,this.showFullCompanyName=!1,this.showFullJobTitle=!1,this.showFullDepartment=!1,this.showFullMobile=!1,this.showFullHomePhone=!1,this.showFullBusinessPhone=!1,this.taskSubject="NA",this.taskStartDate="NA",this.taskDueDate="NA",this.taskReminderTime="NA",this.currentCalendarSubject="",this.currentCalendarFrom="",this.currentCalendarSentDate="",this.currentCalendarTo="",this.currentCalendarCc="",this.currentCalendarBcc="",this.currentCalendarAttachments=[],this.currentCalendarBody="",this.productsLicensed=[],this.featureLicensedFlags=[],this.showNotAvailable=!1,this.searched=!1,this.showMinCharMessage=!0,this.deviceId="",this.inclusionLicenses=[],this.exclusionLicenses=[],this.close=new Pe,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let E=new Date,z=new Date;z.setFullYear(E.getFullYear()-1),new Date().setDate(E.getDate()-14),this.bsConfigBefore={minDate:z,maxDate:E,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:z,maxDate:E,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 Y(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);yield this.initializeEnvDetails()})}initializeEnvDetails(){return new Promise(e=>{let n=this.licenseCheckService.getEnvDetails();!n||Object.keys(n).length===0?this.licenseCheckService.checkLicense().subscribe({next:i=>{this.handleLicenseResponse(i.headers),e()},error:i=>{console.error("License check failed:",i),this.handleLicenseResponse(i.headers),e()}}):(this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n),e())})}handleLicenseResponse(e){let n={};e?.keys().forEach(i=>{n[i.toLowerCase()]=e.get(i)||""}),this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n)}applyEnvDetails(e){this.PRODUCTS_CONFIG.forEach(n=>{e[n.licenceFlag]=="true"&&this.productsLicensed.push(n.key)}),this.PRODUCTS_CONFIG.forEach(n=>{n.licencedFeaturesFlags.forEach(i=>{e[i]=="true"&&this.featureLicensedFlags.push(n.key)})}),this.inclusionLicenses.includes("backup_enabled")?this.productTypeFiles="backup":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeFiles="oneDrive":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeFiles="Gmail":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeFiles="SHAREPOINT":this.productTypeFiles="",this.inclusionLicenses.includes("exchange_backup_enabled")?this.productTypeContentSearch="mail":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeContentSearch="Gmail":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeContentSearch="oneDrive":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeContentSearch="SHAREPOINT":this.productTypeContentSearch=""}checkFeatureLicensed(e){return this.featureLicensedFlags.find(n=>e.includes(n))}getSignedURLFromId(){this.apiService.getSignedURLFromId(this.downloadId).subscribe(e=>{console.log("res from getSignedURLFromId : "+JSON.stringify(e)),console.log("res from getSignedURLFromId : "+JSON.stringify(e.body)),this.intervalId&&clearInterval(this.intervalId),this.cdr.detectChanges()},e=>{if(e.status===404)return;this.intervalId&&(this.downloadId="",clearInterval(this.intervalId)),console.error("Error from getSignedURLFromId: ",e),console.error("Error status: ",e.status),console.error("Error status: ",e.error.text);let n=e.error.text;switch(window.open(n,"_self"),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalId=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);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: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}setActiveSearchTab(e,n){switch(this.activeTabIndex=n,e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break;case"file":setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":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}}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(Ui.HTML,e)||"")}logout(){console.log("Logout clicked 154"),this.authService.logout(),console.log("Token after logout"+this.authService.getToken()),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.apiService.getUsersSearch(this.userAssetSearchText),n=this.apiService.getDeviceSearch(this.userAssetSearchText),i=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):Me(null);bi([e,n,i]).subscribe(([r,p,l])=>{console.log("getUsersSearch response body:",JSON.stringify(r.body.data.users)),console.log("getUsersSearch response headers:",JSON.stringify(r.headers)),console.log("getDeviceSearch response body:",JSON.stringify(p.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(p.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.body.data.users.map(f=>ue(L({},f),{userNameEncoded:btoa(f.userName)}))):(this.foundUsers=[],this.noUsersFoundText="No Users found."),p.body.data&&p.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=p.body.data.devices.map(f=>ue(L({},f),{userNameEncoded:btoa(f.userName),deviceNameEncoded:btoa(f.deviceName)}))):(this.noDevicesFoundText="No Devices found",this.foundDevices=[]),l&&(console.log("getSitesSearch response body:",JSON.stringify(l.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(l.headers)),l.body.data&&l.body.data.users?(this.noSitesFoundText="",this.foundSites=l.body.data.users.map(f=>ue(L({},f),{userNameEncoded:btoa(f.userName)}))):(this.foundSites=[],this.noSitesFoundText="No Sites found."))},r=>{switch(console.error("Error from Api's call: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}userProfile(e){console.log("currentUser : "+e),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}userAsset(e,n){console.log("currentUser : "+e+" : devicename : "+n),this.sharedService.removeData("currentUser"),this.sharedService.removeData("currentDevice"),this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",atob(n)),this.isOverlayVisible=!1;let i=document.querySelector(".header.header-sticky");i&&this.renderer.setStyle(i,"z-index","1000");let r=document.querySelector(".overlay");r&&this.renderer.setStyle(r,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}onSearch(e){this.searched=!0;let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersList=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersList=[]},i=>{})}update(e){this.searched=!0,console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNow(e){this.searched=!0,this.apiService.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":i=this.deviceType,this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesR?.[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUID=this.devices[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let r={value:this.selectedValue};this.update(r)}this.devices=[]}searchForFiles(){if((this.productTypeFiles=="backup"||this.productTypeFiles=="oneDrive"||this.productTypeFiles=="Google Drive")&&(this.selectedValue==""||this.selectedValue==null)){this.toastr.error("Please select a User Id.");return}if(this.filesSearchText==""){this.toastr.error("Please enter file name to search.");return}if(this.productTypeFiles=="SHAREPOINT"){if(this.selectedValueSite==""||this.selectedValueSite==null){this.toastr.error("Please select a SharePoint Site.");return}this.selectedValue=this.selectedValueSite,this.selectedDeviceName=this.selectedValue+" (Microsoft SharePoint)"}this.apiService.getFilesSearch(this.productTypeFiles,this.selectedValue,this.selectedDeviceName,this.filesSearchText).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body.data&&e.body.data.fileElementList&&e.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(l=>{let f={exists:l.present?l.present.toString():"",backup:"true",deviceUUID:l.deviceUUID?l.deviceUUID.toString():"",fileName:l.fileName?l.fileName.toString():"",filePath:l.fileCompletePath?l.fileCompletePath.toString():"",fileUser:l.fileUserOwner?btoa(l.fileUserOwner):"",folder:l.folder?"true":"false",fileRevisionID:l.backupId?l.backupId.toString():"",content:l.metaData?l.metaData.toString():"",modifiedTimestamp:l.lastModifiedTimestamp?parseInt(l.lastModifiedTimestamp,10):0,size:l.size?parseInt(l.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(f.deviceUUID).subscribe(S=>{let x=S.body.BSDeviceInfoElement,I=x.osType.substring(0,3).toLowerCase(),T="Windows",k="Windows";I==="win"?(T="Windows",k="Windows"):I==="mac"?(T="Mac",k="Mac"):I==="one"?(T="ONEDRIVE",k="ONEDRIVE"):I==="out"?(T="OUTLOOK",k="OUTLOOK"):I==="sha"&&(T="SHAREPOINT",k="SHAREPOINT"),f.deviceType=T,f.deviceOs=k,f.deviceId=x.deviceId?x.deviceId.toString():"",f.blocked="active",f.deviceName=x.deviceName?x.deviceName.toString():"",f.deviceNameNew=x.deviceName?x.deviceName.replace(/ /g,"_PB_"):"",f.deviceNameEnc=x.deviceName?btoa(x.deviceName):"",r.push(f),this.foundFiles=r,this.noFilesFound=!1,console.log("Files:",JSON.stringify(r))},S=>{switch(console.error("Error from getDeviceInfo:",S),S.status){case 400:console.error("Bad Request:",S.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",S.message);break;case 404:console.error("Not Found:",S.message);break;case 500:case 503:console.error("Internal Server Error:",S.message);break;default:console.error("Unknown Error:",S.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("Token expired, navigating to logout page.","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("No Meta data Configuration found.","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.apiService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteList=[{label:"",options:r}],this.cdr.detectChanges()}else this.siteList=[]},i=>{})}updateSite(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceType=this.productTypeFiles;let r="";this.deviceType=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceType,this.devices=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,r,p,l,f,S,x){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+r),console.log("fileUser : "+p),console.log("deviceUUID : "+l),console.log("folder : "+f),console.log("token : "+this.sharedService.getDataByKey("authToken")),x==="Gmail"){this.downloadMail(p,i,l,x);return}else if(x==="Google Drive"){this.gDriveDownloadFile(i,l,parseFloat((S/1024).toFixed(2))>=10,f==="true",x);return}let I="https://",T=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",E=this.configService.cloudName,z=this.authService.getToken(),Ie=this.sharedService.getDataByKey("userName"),Ye=`${I}${T}${k}${E}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${z}&loginUserName=${Ie}&isSync=false+&deviceUUID=${l}&backupID=${i}&backup=${r}&userName=${this.base64Encode(p)}&moveToDownloads=false`;window.open(Ye,"_self")}gDriveDownloadFile(e,n,i,r=!1,p){this.currentDeviceUUID=n,this.apiService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"FOLDER":i?"LARGE_FILE":"SMALL_FILE",p,this.restoreDeletedFilesByRestoreR).subscribe(l=>{if(console.log("res from downloadGsuite : "+JSON.stringify(l)),console.log("res from downloadGsuite : "+JSON.stringify(l.body)),this.downloadId=l?.body?.downloadId,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info");else{let f=0,S=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),f++,f>=S&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}this.cdr.detectChanges()},l=>{switch(console.error("Error from downloadGsuite: ",l),console.error("Error status: ",l.status),console.log("ID : "+l?.error?.text),l.status){case 200:if(console.error("Bad Request: ",l.message),this.downloadId=l?.error?.text,r||i)r?this.triggerGSuiteProgress():this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info");else{let f=0,S=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),f++,f>=S&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}break;case 400:console.error("Bad Request: ",l.message);break;case 401:console.error("Unauthorized: ",l.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",l.message);break;case 404:console.error("Not Found: ",l.message);break;case 412:console.error("Error code 412: ",l.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",l.message);break;case 503:console.error("Internal Server Error: ",l.message);break;default:console.error("Unknown Error: ",l.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,r,p){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",p),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",r),this.isOverlayVisible=!1;let l=document.querySelector(".header.header-sticky");l&&this.renderer.setStyle(l,"z-index","1000");let f=document.querySelector(".overlay");f&&this.renderer.setStyle(f,"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;this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueCS=null,this.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListCS=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersListCS=[]},i=>{})}updateContentSearch(e){console.log("value : "+e.value);let n=e.value;if(n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceTypeCS=="backup"?r="BACKUP":this.deviceTypeCS=="mail"?r="OUTLOOK":this.deviceTypeCS=="Gmail"?r="Gmail":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i)})}updateNowContentSearch(e){this.apiService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="";this.deviceTypeCS=="ODB"?i="ONEDRIVE":this.deviceTypeCS=="backup"?i="BACKUP":this.deviceTypeCS=="mail"?i="OUTLOOK":this.deviceTypeCS=="Gmail"?i="Gmail":i=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(r=>r.deviceType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){let i=e.target.value;if(this.contentSearchText="",this.userType!=="user")this.deviceUsersListCS=[];else{let r={value:this.selectedValueCS};this.updateContentSearch(r)}this.devicesCS=[],this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?setTimeout(()=>{this.contentSearchMailInput.nativeElement.focus()},0):setTimeout(()=>{this.contentSearch.nativeElement.focus()},0)}formatDateFromDateObject(e){return e?`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}/${e.getFullYear()}`:""}searchForContent(){if(this.foundMailsCS=[],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("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("Please specify a search string.");return}else this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error("Please enter file name to search.");return}if((this.myDateAfter!=null||this.myDateBefore!=null)&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error("Please select a username.");return}console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let p=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&e.body.data.fileElementList.forEach(l=>{let f={exists:l.present?l.present.toString():"",backup:"true",deviceUUID:l.deviceUUID?l.deviceUUID.toString():"",fileName:l.fileName?l.fileName.toString():"",filePath:l.fileCompletePath?l.fileCompletePath.toString():"",fileUser:l.fileUserOwner?btoa(l.fileUserOwner):"",folder:l.folder?"true":"false",fileRevisionID:l.fileRevisionId?l.fileRevisionId.toString():"",content:l.metaData?l.metaData.toString():"",modifiedTimestamp:l.lastModifiedTimestamp?parseInt(l.lastModifiedTimestamp,10):0,size:l.size?parseInt(l.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(f.deviceUUID).subscribe(S=>{let x=S.body.BSDeviceInfoElement,I=x.osType.substring(0,3).toLowerCase(),T="Windows",k="Windows";I==="win"?(T="Windows",k="Windows"):I==="mac"?(T="Mac",k="Mac"):I==="one"?(T="ONEDRIVE",k="ONEDRIVE"):I==="out"?(T="OUTLOOK",k="OUTLOOK"):I==="sha"&&(T="SHAREPOINT",k="SHAREPOINT"),f.deviceType=T,f.deviceOs=k,f.deviceId=x.deviceId?x.deviceId.toString():"",f.blocked="active",f.deviceName=x.deviceName?x.deviceName.toString():"",f.deviceNameNew=x.deviceName?x.deviceName.replace(/ /g,"_PB_"):"",f.deviceNameEnc=x.deviceName?btoa(x.deviceName):"",r.push(f),this.foundFilesCS=r,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(r))},S=>{switch(console.error("Error from getDeviceInfo:",S),S.status){case 400:console.error("Bad Request:",S.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",S.message);break;case 404:console.error("Not Found:",S.message);break;case 500:case 503:console.error("Internal Server Error:",S.message);break;default:console.error("Unknown Error:",S.message);break}})}),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(l=>{let f={backupId:l.fileRevisionId,userName:l.fileUserOwner,deviceUUID:l.deviceUUID,subject:l.subject?l.subject:"<empty>",contactName:l.fileName?l.fileName:"-",taskSubject:l.subject?l.subject:"",present:l.exists.toString(),showIcon:l.from?l.from.charAt(0):"E",alphaColor:this.colorGen(),from:l.from?l.from:"<empty>",to:l.toRecipients?l.toRecipients:"",cc:l.ccRecipients?l.ccRecipients:"",bcc:l.bccRecipients?l.bccRecipients:"",sentDate:l.sentDate?new Date(l.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:l.metaData?l.metaData:"",bodyContent:l.bodyContent?l.bodyContent:"",bodyContent1:l.bodyContent?l.bodyContent.length>100?l.bodyContent.substring(0,100)+"...":l.bodyContent:"",hasAttachments:l.hasAttachments,attachments:l.attachments?l.attachments:"",name:l.subject?l.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:l.subject?l.subject:"<empty>",filePath:l.fileCompletePath,deviceId:l.deviceId};this.foundMailsCS.push(f)}),this.foundMailsCS.length>0&&(console.log("fileCompletePath : "+this.foundMailsCS[0].filePath),this.foundMailsCS[0].filePath=="Contacts"?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=e.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(e.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,e.body.metadata&&(console.log("metadata : "+JSON.stringify(e.body.metadata)),this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},e=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("No Meta data Configuration found.","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("Please select a User Id.");return}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error("Please enter file name to search.");return}this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),(this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")&&(this.contentSearchText=this.parseEmailString(this.contentSearchMail)),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearchNavigate(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",e,this.configService.componentName).subscribe(n=>{var i=JSON.stringify(n.body),r=JSON.parse(i);let p=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(n.body.data.fileElementList));let l=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&n.body.data.fileElementList.forEach(f=>{let S={exists:f.present?f.present.toString():"",backup:"true",deviceUUID:f.deviceUUID?f.deviceUUID.toString():"",fileName:f.fileName?f.fileName.toString():"",filePath:f.fileCompletePath?f.fileCompletePath.toString():"",fileUser:f.fileUserOwner?btoa(f.fileUserOwner):"",folder:f.folder?"true":"false",fileRevisionID:f.fileRevisionId?f.fileRevisionId.toString():"",content:f.metaData?f.metaData.toString():"",modifiedTimestamp:f.lastModifiedTimestamp?parseInt(f.lastModifiedTimestamp,10):0,size:f.size?parseInt(f.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(S.deviceUUID).subscribe(x=>{let I=x.body.BSDeviceInfoElement,T=I.osType.substring(0,3).toLowerCase(),k="Windows",E="Windows";T==="win"?(k="Windows",E="Windows"):T==="mac"?(k="Mac",E="Mac"):T==="one"?(k="ONEDRIVE",E="ONEDRIVE"):T==="out"?(k="OUTLOOK",E="OUTLOOK"):T==="sha"&&(k="SHAREPOINT",E="SHAREPOINT"),S.deviceType=k,S.deviceOs=E,S.deviceId=I.deviceId?I.deviceId.toString():"",S.blocked="active",S.deviceName=I.deviceName?I.deviceName.toString():"",S.deviceNameNew=I.deviceName?I.deviceName.replace(/ /g,"_PB_"):"",S.deviceNameEnc=I.deviceName?btoa(I.deviceName):"",p.push(S),this.foundFilesCS=p,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(p))},x=>{switch(console.error("Error from getDeviceInfo:",x),x.status){case 400:console.error("Bad Request:",x.message);break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",x.message);break;case 404:console.error("Not Found:",x.message);break;case 500:case 503:console.error("Internal Server Error:",x.message);break;default:console.error("Unknown Error:",x.message);break}})}),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(f=>{let S={backupId:f.fileRevisionId,userName:f.fileUserOwner,deviceUUID:f.deviceUUID,subject:f.subject?f.subject:"<empty>",contactName:f.fileName?f.fileName:"-",taskSubject:f.subject?f.subject:"",present:f.exists.toString(),showIcon:f.from?f.from.charAt(0):"E",alphaColor:this.colorGen(),from:f.from?f.from:"<empty>",to:f.toRecipients?f.toRecipients:"",cc:f.ccRecipients?f.ccRecipients:"",bcc:f.bccRecipients?f.bccRecipients:"",sentDate:f.sentDate?new Date(f.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:f.metaData?f.metaData:"",bodyContent:f.bodyContent?f.bodyContent:"",bodyContent1:f.bodyContent?f.bodyContent.length>100?f.bodyContent.substring(0,100)+"...":f.bodyContent:"",hasAttachments:f.hasAttachments,attachments:f.attachments?f.attachments:"",name:f.subject?f.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:f.subject?f.subject:"<empty>",filePath:f.fileCompletePath,deviceId:f.deviceId};this.foundMailsCS.push(S)}),this.foundMailsCS.length>0&&(console.log("fileCompletePath : "+this.foundMailsCS[0].filePath),this.foundMailsCS[0].filePath=="Contacts"?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"mail"))),this.totalCountGS=n.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(n.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,n.body.metadata&&(console.log("metadata : "+JSON.stringify(n.body.metadata)),this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},n=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",n),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error("Token expired, navigating to logout page.","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("No Meta data Configuration found.","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||"";console.log("searchTerm : "+n),this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueSiteCS=null,this.apiService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(p=>({value:p.name,label:p.name}));this.siteListCS=[{label:"",options:r}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(p=>p.blocked===!1&&p.deviceType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1},i=>{console.error("Error during search: ",i)})}parseEmailString(e){let i=e.split(/\s+/),r=[],p=[],l=[],f=[],S=[],x=[],I=[];for(let k=0;k<i.length;k++){let E=i[k];if(E.startsWith("from:"))r.push(E.replace("from:","").trim());else if(E.startsWith("to:"))p.push(E.replace("to:","").trim());else if(E.startsWith("cc:"))l.push(E.replace("cc:","").trim());else if(E.startsWith("bcc:"))f.push(E.replace("bcc:","").trim());else if(E.startsWith("subject:")){let z=E.replace("subject:","").trim();for(;!(z.startsWith("(")&&z.endsWith(")"))&&k+1<i.length&&!i[k+1].startsWith("body:")&&!i[k+1].startsWith("subject:");)k++,z+=" "+i[k];S.push(z.replace(/^\(|\)$/g,""))}else if(E.startsWith("body:")){let z=E.replace("body:","").trim();for(;!(z.startsWith("(")&&z.endsWith(")"))&&k+1<i.length&&!i[k+1].startsWith("body:")&&!i[k+1].startsWith("subject:");)k++,z+=" "+i[k];x.push(z.replace(/^\(|\)$/g,""))}else I.push(E)}return console.log("fromArray : "+r.join(",")),console.log("toArray : "+p.join(",")),console.log("ccArray : "+l.join(",")),console.log("bccArray : "+f.join(",")),console.log("subjectArray : "+S.join(",")),console.log("bodyArray : "+x.join(",")),console.log("keywordsArray : "+I.join("")),console.log("fromArray length : : "+r.length),[`from:${r.join(",")}`,`to:${p.join(",")}`,`bcc:${f.join(",")}`,`cc:${l.join(",")}`,`subject:${S.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${I.join(" ")}`,`body:${x.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}viewOutlook11(e,n,i,r,p){console.log("from viewOutlook11 : "+p),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.apiService.viewMail(e,i).subscribe(l=>{if(l.body){this.showNotAvailable=!1;var f=JSON.stringify(l.body.mailElement),S=JSON.parse(f);if(console.log("mailElement : "+JSON.stringify(l.body.mailElement)),console.log("subject : "+l.body.mailElement.subject),console.log("from : "+l.body.mailElement.from),console.log("ccRecipients : "+l.body.mailElement.ccRecipients),console.log("toRecipients : "+l.body.mailElement.toRecipients),p=="mail"||p=="Gmail"){this.currentMailSubject=l.body.mailElement.subject,this.currentFileName=l.body.mailElement.subject,this.currentMailFrom=l.body.mailElement.from,this.currentMailSentDate=l.body.mailElement.sentDate,this.currentMailTo=l.body.mailElement.toRecipients,this.currentMailCc=l.body.mailElement.ccRecipients,this.currentMailBcc=l.body.mailElement.bccRecipients,this.currentMailAttachments=l.body.mailElement.attachments,this.currentMailBody=l.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let x=this.iframe.nativeElement,I=x.contentDocument||x.contentWindow?.document;I&&(I.open(),I.write(this.currentMailBody),I.close()),console.log("body : "+this.currentMailBody)}if(p=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=l.body.mailElement.fileName,this.contactTitle=l.body.mailElement.contactTitle,this.contactFirstName=l.body.mailElement.contactFirstName,this.contactMiddleName=l.body.mailElement.contactMiddleName,this.contactLastName=l.body.mailElement.contactLastName,this.contactSuffix=l.body.mailElement.contactSuffix,this.contactEmail=l.body.mailElement.contactEmail,this.contactMobile=l.body.mailElement.contactMobile,this.contactAddrStreet=l.body.mailElement.contactAddrStreet,this.contactAddrCity=l.body.mailElement.contactAddrCity,this.contactAddrState=l.body.mailElement.contactAddrState,this.contactAddrCountry=l.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=l.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=l.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=l.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=l.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=l.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=l.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=l.body.mailElement.contactOfficeLocation&&l.body.mailElement.contactOfficeLocation!==""?l.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=l.body.mailElement.contactCompanyName&&l.body.mailElement.contactCompanyName!==""?l.body.mailElement.contactCompanyName:"-",this.contactJobTitle=l.body.mailElement.contactJobTitle&&l.body.mailElement.contactJobTitle!==""?l.body.mailElement.contactJobTitle:"-",this.contactDepartment=l.body.mailElement.contactDepartment&&l.body.mailElement.contactDepartment!==""?l.body.mailElement.contactDepartment:"-",this.contactBirthday=l.body.mailElement.contactBirthday&&l.body.mailElement.contactBirthday!==""?l.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=l.body.mailElement.contactHomePhones&&l.body.mailElement.contactHomePhones!==""?l.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=l.body.mailElement.contactBusinessPhones&&l.body.mailElement.contactBusinessPhones!==""?l.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=l.body.mailElement.contactWebSite&&l.body.mailElement.contactWebSite!==""?l.body.mailElement.contactWebSite:"-";let x=[l.body.mailElement.contactBusiAddrStreet,l.body.mailElement.contactBusiAddrCity,l.body.mailElement.contactBusiAddrState,l.body.mailElement.contactBusiAddrCountry,l.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=x.filter(k=>k&&k.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let I=[l.body.mailElement.contactAddrStreet,l.body.mailElement.contactAddrCity,l.body.mailElement.contactAddrState,l.body.mailElement.contactAddrCountry,l.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=I.filter(k=>k&&k.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let T=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(k=>k&&k.trim()!=="");this.fullCombinedName=T.join(" "),this.truncatedCombinedName=this.fullCombinedName.length>20?this.fullCombinedName.substring(0,20)+"...":this.fullCombinedName}this.cdr.detectChanges()}else this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1},l=>{switch(console.error("Error from viewOutlook11: ",l),l.status){case 400:console.error("Bad Request: ",l.message);break;case 401:console.error("Unauthorized: ",l.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",l.message);break;case 404:console.error("Not Found: ",l.message);break;case 500:console.error("Internal Server Error: ",l.message);break;case 503:console.error("Internal Server Error: ",l.message);break;default:console.error("Unknown Error: ",l.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(i=>!this.isBackupIdExists(i.backupId));if(n.length>0){this.addedElementsUpdated.push(...n);let i=n.map(r=>r.subject);this.addedElements=i,this.addedElementsCount=this.addedElementsUpdated.length}else this.toastr.error("Item(s) already added.","Error");this.clearSelection(),this.isSelectAll=!1,console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundMailsCS.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.backupId===e)}toggleSelectAll(){this.foundMailsCS.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundMailsCS.some(n=>n.isChecked)}itemSelect(){let e=this.foundMailsCS.length,n=this.foundMailsCS.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundMailsCS.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!this.isMultiSelectEnabled}removeItem(e,n,i,r){this.addedElementsUpdated=this.addedElementsUpdated.filter(p=>p.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,r){if(r==="Gmail"){this.apiService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML","Gmail",!1).subscribe(p=>{console.log("res from downloadGsuite : "+JSON.stringify(p)),console.log("res from downloadGsuite : "+JSON.stringify(p.body)),this.cdr.detectChanges()},p=>{switch(console.error("Error from downloadGsuite: ",p),console.error("Error status: ",p.status),console.log("ID : "+p.error.text),p.status){case 200:console.error("Bad Request: ",p.message),this.downloadId=p.error.text;let l=0,f=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),l++,l>=f&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("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: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}});return}this.apiService.downloadMail(e,n).subscribe(p=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},p=>{if(console.error("Error from downloadMail++++++: ",p.status),p.status=="200"){let l="https://",f=this.configService.baseFolder,S="/BluKryptBuilder/cloud/",x=this.configService.cloudName,I=this.authService.getToken(),T=this.sharedService.getDataByKey("userName"),k=`${l}${f}${S}${x}/portal/download/files/?token=${I}&loginUserName=${T}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(k,"_self")}switch(p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,r){}exportFolderAsPstModalG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!1,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}closePstPopupG(){this.displayPststyleG="none"}getPstBatchDetailElements(){return this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}triggerGmailProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.displayDownloadPststyleG="block",this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info")),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail("Gmail",n)},1e4),this.cdr.detectChanges()}triggerGSuiteProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.'","Info"),this.displayDownloadPststyleG="block"),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail("Google Drive",n)},1e4),this.cdr.detectChanges()}getDownloadPstEventsProgressGmail(e,n=!1){this.apiService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID,this.downloadId,e).subscribe(i=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",this.selectedBrowseItemId="root",this.toastr.success("Restore completed successfully.","Success")):(this.displayDownloadPststyleG="none",this.toastr.success("Please check Downloads page to get the file","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("Token expired, navigating to logout page.","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("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: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error("Please specify a PST name.","Fail!!!");return}if(this.productTypeContentSearch==="Gmail"){let e=this.getPstBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.apiService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch,!1,this.pstFileNameG).subscribe(n=>this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error("Token expired, navigating to logout page.","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("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: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.apiService.exportSelectedAsPstG(this.getPstBatchDetailElements()).subscribe(e=>{this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.apiService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG,"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success("Restore has been queued.","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("Token expired, navigating to logout page.","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("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.apiService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),e.status=="202"&&(this.displayDownloadPststyleG="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",this.selectedBrowseItemId="root",this.toastr.success("Restore completed successfully.","Success"),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("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.apiService.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("Queued Restore has been removed.","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("Token expired, navigating to logout page.","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("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onDeviceChangeCS(){this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId)}onDeviceChangeR(e){this.selectedDeviceUUIDR=e}exportCompleteMailboxAsPstG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!0,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}exportCompleteMailboxAsPstTriggerG(){if(console.log("exportCompleteMailboxAsPst!!!!!"),this.displayPststyleG="none",this.pstFileNameG==""){this.toastr.error("Please specify a PST name.","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((e,n)=>{this.backupIdsListG.push(e.backupId)}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,console.log("backupIdsList : "+this.backupIdsListG),this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId),this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.apiService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG,"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(p=>{console.log("res from initiateRestore : "+JSON.stringify(p)),console.log("res from initiateRestore : "+JSON.stringify(p.body)),this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},p=>{switch(console.error("Error from initiateRestore: ",p),console.error("Error status: ",p.status),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.displayDownloadPststyleG="block",this.toastr.info("Download event already exists.","Info"),this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("No Meta data Configuration found.","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}})}onRestoreClickR(e,n,i,r,p=""){this.displayRestoreStyleR="block";let l=[{label:"",options:[{value:this.currentMailUser||p,label:this.currentMailUser||p}]}];this.deviceUsersListR=l,this.selectedValueR=this.currentMailUser||p,this.value18R=this.currentMailUser||p,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!["Google Drive","Gmail"].includes(this.productTypeContentSearch)&&(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="",this.selectedBrowseItemId="root",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.apiService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(p=>({value:p.userName,label:p.userName}));this.deviceUsersListR=[{label:"",options:r}],this.cdr.detectChanges()}else this.deviceUsersListR=[]},i=>{})}updateR(e){console.log("value : "+e.value);let n=e.value;this.apiService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){let r="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(r=this.productTypeContentSearch),this.devicesR=i.body.data.devices.filter(p=>p.blocked===!1&&p.osType==r).map(p=>({deviceName:p.deviceName,deviceUUID:p.deviceUUID,deviceId:p.deviceId,osType:p.osType,decoupled:p.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},i=>{console.error("Error during search: ",i)})}updateNowR(e){this.apiService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(r=>r.blocked===!1&&r.osType==i).map(r=>({deviceName:r.deviceName,deviceUUID:r.deviceUUID,deviceId:r.deviceId,osType:r.osType,decoupled:r.decoupled})),this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"No Asset found",deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e){this.browsePathR==""&&this.destinationPathR&&(this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath,this.selectedBrowseItemId=this.destinationId),this.selectedDeviceUUID=e,this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=["Gmail","Google Drive"].includes(this.productTypeContentSearch)?this.apiService.getBrowsePathGsuite(e,this.productTypeContentSearch,this.selectedBrowseItemId):this.apiService.browseExchange(e,this.browsePathR),i=this.deviceType;n.subscribe(r=>{this.loadingR=!1,r.body?.stringList?this.browseItemsR=r.body.stringList:Array.isArray(r.body)&&r.body.length>0?this.productTypeContentSearch=="Google Drive"?this.browseItemsR=r.body:this.browseItemsR=r.body.map(p=>p.folderName):this.browseItemsR=["No path available"],this.cdr.detectChanges()},r=>{switch(this.loadingR=!1,console.error("Error from browse API:",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}closeBrowsePopupR(){this.browsePathR="",this.browsePathId="",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.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("Folder name cannot be empty.")}onSingleClickR(e,n){e!=="No path available"&&(this.selectedBrowseItemR=e,n&&(this.selectedBrowseItemId=n),console.log("Selected item:",this.selectedBrowseItemR)),console.log("Selected item:",this.selectedBrowseItemR)}onDoubleClickR(e,n){if(this.productTypeContentSearch=="Gmail"){this.onSingleClickR(e);return}e!=="No path available"&&(n&&(this.selectedBrowseItemId=n),this.addToCombinedValueR(e,n),this.selectedBrowseItemR="",this.selectedBrowseItemId="root")}addToCombinedValueR(e,n){this.browsePathR?(this.browsePathR+=`/${e}`,this.browsePathId+=`/${n}`):(this.browsePathR=e,this.browsePathId=n),console.log("Combined value:",this.browsePathR),this.browseR(this.selectedDeviceUUID)}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:"root",this.browsePathId=n.join("/")):(this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(this.selectedDeviceUUID)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR)}getRestoreEventsProgressR(){this.apiService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),e.status=="202"&&(this.showRestoreSettingsR=!0,this.toastr.success("Restore completed successfully.","Success"),this.destinationPathR="",this.destinationId="",this.destinationIdPath="",this.browsePathR="",this.browsePathId="",this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR),setTimeout(()=>{location.reload()},3e3))):this.showRestoreSettingsR=!0},e=>{switch(console.error("Error from getRestoreEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("Token expired, navigating to logout page.","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("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.apiService.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("Queued Restore has been removed.","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("Token expired, navigating to logout page.","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("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}initiateRestoreR(){let n=new Date(this.myDateBeforeR).getTime();if(this.restoreDataBeforeR=n.toString(),this.dateBeforeR){let r=new Date(this.myDateBeforeR);r.setHours(this.myTimeBeforeR.getHours()),r.setMinutes(this.myTimeBeforeR.getMinutes()),r.setSeconds(this.myTimeBeforeR.getSeconds());let p=r.getTime();this.restoreDataBeforeR=p.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR)}let i=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error("Please select a Destination Device.","Fail!!!");return}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error("Inplace restore cannot be enabled for other destination assets.","Fail!!!");return}}else if(this.destinationPathR==""){this.toastr.error("Please select a Destination Path.","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),["Gmail","Google Drive"].includes(this.productTypeContentSearch)){this.apiService.initiateRestoreGsuite(this.currentDeviceUUIDCS,this.currentFileBackupIdR,this.sharedService.getDataByKey("userName"),this.productTypeContentSearch,this.selectedDeviceUUIDR,this.destinationPathR,this.destinationId,i,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,`${this.currentFilePathR}/${this.currentFileName}`).subscribe(this.productTypeContentSearch==="Google Drive"?r=>{this.triggerGSuiteProgress(r,!0),this.showRestoreSettingsR=!1}:r=>{this.triggerGmailProgress(r,!0),this.showRestoreSettingsR=!1},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 200:this.showRestoreSettingsR=!1,this.downloadId=r?.error?.text,this.productTypeContentSearch==="Google Drive"?this.triggerGSuiteProgress(r,!0):this.triggerGmailProgress(r,!0);break;case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 417:this.showRestoreSettingsR=!1,this.intervalId=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),console.error("Error code 417: ",r.message),this.toastr.info("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}});return}this.apiService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUID,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(r=>{console.log("res from initiateRestore : "+JSON.stringify(r)),console.log("res from initiateRestore : "+JSON.stringify(r.body)),this.showRestoreSettingsR=!1,this.toastr.success("Restore has been queued.","Info")},r=>{switch(console.error("Error from initiateRestore: ",r),console.error("Error status: ",r.status),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}resetContactFields(){this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-"}resetTasksFields(){this.taskSubject="-",this.taskStartDate="-",this.taskDueDate="-",this.taskReminderTime="-"}togglePanel(){this.isExpanded=!this.isExpanded,this.isExpanded?this.parseContentSearchMail():this.reconstructContentSearchMail()}parseContentSearchMail(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],p=n[2];p.startsWith("(")&&p.endsWith(")")&&(p=p.slice(1,-1)),i[r].push(p)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMail(){let e=[];this.fromId&&e.push(`from:${this.fromId.split(",").map(n=>n.trim()).join(",")}`),this.toId&&e.push(`to:${this.toId.split(",").map(n=>n.trim()).join(",")}`),this.ccId&&e.push(`cc:${this.ccId.split(",").map(n=>n.trim()).join(",")}`),this.bccId&&e.push(`bcc:${this.bccId.split(",").map(n=>n.trim()).join(",")}`),this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}static{this.\u0275fac=function(n){return new(n||t)(y(q),y(re),y(Z),y(we),y(Ki),y(oe),y(Ne),y(Ge),y(rn),y(qe),y(Je),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(B(os,5),B(as,5),B(ss,5),B(ls,5),B(cs,5),B(ds,5),B(ps,5),B(ms,5),B(hs,5),B(us,5)),n&2){let r;N(r=V())&&(i.deviceDropdown=r.first),N(r=V())&&(i.deviceDropdownCS=r.first),N(r=V())&&(i.iframe=r.first),N(r=V())&&(i.userDeviceSearch=r.first),N(r=V())&&(i.fileSearch=r.first),N(r=V())&&(i.contentSearch=r.first),N(r=V())&&(i.contentSearchMailInput=r.first),N(r=V())&&(i.deviceDropdownR=r.first),N(r=V())&&(i.calendarIframe=r.first),N(r=V())&&(i.searchInput=r.first)}},outputs:{close:"close"},features:[ie([q,Z])],decls:222,vars:86,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentFrame",""],["deviceDropdownR",""],[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",2,"font-size","30px","cursor","pointer",3,"click"],[1,"fa","fa-times-circle"],["variant","tabs","role","tablist"],[3,"ngStyle"],["cNavLink","",3,"click","cTabContent","tabPaneIdx"],[4,"ngIf"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[2,"margin-top","20px"],["cInputGroupText",""],["aria-describedby","userAssetSearchText","aria-label","userAssetSearchText","name","userAssetSearchText","cFormControl","","placeholder","Search ..","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-12",2,"align-items","center","margin-top","20px"],[1,"form-group","col-lg-2"],["for","productTypeFiles"],["cSelect","","name","productTypeFiles","id","productTypeFiles","title","Select Product Type",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel"],["value","backup",4,"ngIf"],["value","oneDrive",4,"ngIf"],["value","SHAREPOINT",4,"ngIf"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],[1,"col-lg-12",2,"align-items","center","margin-top","10px"],[1,"col-lg-8"],["aria-describedby","filesSearchText","aria-label","filesSearchText","name","filesSearchText","cFormControl","","placeholder","Search for files/folders ..",3,"ngModelChange","keydown.enter","ngModel"],[1,"col-lg-2"],["type","button",1,"btn","btn-small","btn-primary",3,"click"],["style","overflow: scroll;height: 500px;",4,"ngIf"],["for","productTypeContentSearch"],["cSelect","","name","productTypeContentSearch","id","productTypeContentSearch","title","Select Product Type",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel"],["value","mail",4,"ngIf"],["value","Gmail",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","name","pstFileNameG","id","pstFileNameG","placeholder","Enter PST File Name","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],["id","downloadAsPstG","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"col-lg-12"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["id","restoremodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click",4,"ngIf"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click",4,"ngIf"],["id","browsemodalR","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],[1,"col-lg-6"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[2,"max-height","400px","overflow-y","auto"],[1,"table","table-hover","table-bordered"],["id","left"],["class","text-left",3,"ngClass","click","dblclick",4,"ngFor","ngForOf"],["for","policyName"],["aria-describedby","newFolderR","name","newFolderR","id","newFolderR","aria-label","Enter folder name","cFormControl","","placeholder","Enter folder name","required","",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","addNewFolderBtnR","type","button","variant","outline",3,"click"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["placeholder","Select Users","noResultMessage","No users found","id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Sites","noResultMessage","No sites found","id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[2,"overflow","scroll","height","500px"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],[1,"bg-body-tertiary","clickable-header"],[1,"bg-body-tertiary"],[4,"ngFor","ngForOf"],[1,"found-in"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],["value","mail"],["value","Gmail"],["placeholder","Select Users","noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["placeholder","Select Sites","noResultMessage","No sites found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","overlay","data","value","ngModel"],[1,"form-control",3,"change"],["aria-describedby","contentSearchText","aria-label","contentSearchText","name","contentSearchText","cFormControl","","placeholder","Search..",3,"ngModelChange","keydown.enter","ngModel"],["aria-describedby","contentSearchMail","name","contentSearchMail","id","contentSearchMail","aria-label","Default Folders to Backup","cFormControl","","placeholder","Search",3,"ngModelChange","keydown.enter","ngModel","disabled"],[1,"fa",3,"ngClass"],["class","col-lg-2",4,"ngIf"],[1,"btn","btn-small","btn-primary",3,"click"],["class","row col-lg-12","style","border: 1px solid #062D4D;border-radius: 10px;",4,"ngIf"],[1,"row","col-lg-12",2,"border","1px solid #062D4D","border-radius","10px"],[1,"form-group","col-lg-6"],["for","fromId"],["href","#",1,"hover-link",2,"color","#062D4D","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"note"],["type","text","id","fromId","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["for","toId"],["type","text","id","toId","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],["for","ccId"],["type","text","id","ccId","placeholder","CC",1,"form-control",3,"ngModelChange","ngModel"],["for","bccId"],["type","text","id","bccId","placeholder","BCC",1,"form-control",3,"ngModelChange","ngModel"],["for","subjectId"],["type","text","id","subjectId","placeholder","Subject",1,"form-control",3,"ngModelChange","ngModel"],["for","bodyId"],["type","text","id","bodyId","placeholder","Body",1,"form-control",3,"ngModelChange","ngModel"],["for","keywordsId"],["type","text","id","keywordsId","placeholder","Keywords",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-lg-6","align-items-center","d-flex"],["type","text","bsDatepicker","","placement","top",1,"form-control","mx-2",2,"width","auto",3,"ngModelChange","ngModel","bsConfig"],[1,"btn","btn-small","btn-primary","pull-right",3,"click"],[1,"bg-body-tertiary","clickable-header","col-lg-10"],[1,"bg-body-tertiary","col-lg-2"],[3,"innerHTML"],[1,"col-lg-12",2,"height","60vh","overflow","scroll"],[1,"header-container",2,"display","block"],["class","downloadAsPstGSearchll hover-link","style","margin-right: 10px; margin-left:22px; cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","removeAllGlobal hover-link","style","margin-right: 10px;margin-left:22px;cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearch","style","margin-right: 3%;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearchll11","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[2,"border-top","0px solid #f1f1f1 !important"],["class","btn btn-small btn-primary addToCart",3,"click",4,"ngIf"],["class","card-body-center",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],[1,"table","table-hover",2,"background","white"],[1,"col-lg-10"],[1,"downloadAsPstGSearchll","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"removeAllGlobal","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-reorder"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearch",2,"margin-right","3%",3,"click"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearchll11",2,"margin-right","3%",3,"click","ngClass"],["type","checkbox","title","Select all",3,"ngModelChange","change","ngModel"],[1,"btn","btn-small","btn-primary","addToCart",3,"click"],[3,"selected-rowMail",4,"ngFor","ngForOf"],["style","border-right: none;",4,"ngIf"],["class","col-lg-12","style","font-size:14px !important;border-left: none;",3,"click",4,"ngIf"],["type","checkbox",3,"ngModelChange","change","ngModel"],[2,"border-right","none"],[1,"aplhaC",2,"line-height","28px","text-align","center","display","inline-block","height","28px","width","28px","border-radius","50%","opacity","0.5",3,"ngStyle"],[1,"col-lg-12",2,"font-size","14px !important","border-left","none",3,"click"],["class","folder","style","cursor: pointer; color: #000 !important;text-decoration: none;",4,"ngIf"],["class","folder","style","cursor: pointer; color: #c5bcbc !important; font-style:italic;text-decoration: none;",4,"ngIf"],[1,"folder",2,"cursor","pointer","color","#000 !important","text-decoration","none"],[2,"font-weight","bold"],["class","fa fa-paperclip fa-1x pull-right","style","color: #000 !important; cursor:default;",4,"ngIf"],["class","pull-right","title","Download","style","cursor:pointer;",3,"click",4,"ngIf"],["class","pull-right","title","Restore file","style","margin-right:10px;cursor:pointer;",3,"click",4,"ngIf"],[1,"folder"],[2,"color","#062D4D"],[2,"float","right","color","grey",3,"innerHTML"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#000 !important","cursor","default"],["title","Download",1,"pull-right",2,"cursor","pointer",3,"click"],[1,"fa","fa-download"],["title","Restore file",1,"pull-right",2,"margin-right","10px","cursor","pointer",3,"click"],[1,"fa","fa-history"],[1,"folder",2,"cursor","pointer","color","#c5bcbc !important","font-style","italic","text-decoration","none"],["class","fa fa-paperclip fa-1x pull-right","style","color: #c5bcbc !important;",4,"ngIf"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#c5bcbc !important"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],[1,"contentOutlook1Div"],["frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px"],[1,"from1"],[2,"float","right"],[1,"to1"],[1,"cc1"],[1,"bcc1"],[1,"attachments1"],[1,"dataa1"],["style","margin-right:5px; border: 1px solid #062D4D; padding:2px; border-radius:5px;",4,"ngFor","ngForOf"],[2,"margin-right","5px","border","1px solid #062D4D","padding","2px","border-radius","5px"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"row","col-lg-12",2,"margin-bottom","10px"],[1,"col-lg-3"],["shape","rounded-1","src","./assets/images/avatars/default.jpg","textColor","primary","alt","User avatar",3,"size"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D"],[2,"cursor","pointer",3,"title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4"],[1,"contactEmail",3,"mouseenter","mouseleave","title"],["class","contactEmailTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],["class","contactOfficeLocationTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],["class","contactCompanyNameTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],["class","contactJobTitleTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],["class","contactDepartmentTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],["class","contactMobileTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],["class","contactHomePhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],["class","contactBusinessPhonesTitle","style","cursor:pointer;",3,"title",4,"ngIf"],[1,"contactEmailTitle",2,"cursor","pointer",3,"title"],[1,"contactOfficeLocationTitle",2,"cursor","pointer",3,"title"],[1,"contactCompanyNameTitle",2,"cursor","pointer",3,"title"],[1,"contactJobTitleTitle",2,"cursor","pointer",3,"title"],[1,"contactDepartmentTitle",2,"cursor","pointer",3,"title"],[1,"contactMobileTitle",2,"cursor","pointer",3,"title"],[1,"contactHomePhonesTitle",2,"cursor","pointer",3,"title"],[1,"contactBusinessPhonesTitle",2,"cursor","pointer",3,"title"],[1,"btn","btn-small","btn-primary","removeFromCart","pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"paginationOutlook"],[1,"col-lg-4","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],["type","button",1,"btn","btn-success",3,"click"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],["placeholder","Select Users","noResultMessage","No users found","id","selec2-18R","customSearchEnabled","",3,"ngModelChange","search","update","overlay","data","value","disabled","ngModel"],["class","select2-results",4,"ngIf"],["for","destinationPathR"],["aria-describedby","destinationPathR","name","destinationPathR","id","destinationPathR","aria-label","Enter Destination Path","cFormControl","","placeholder","Enter Destination Path","required","",3,"ngModelChange","ngModel","readonly"],["cButton","","color","secondary","id","destinationPathBrowseBtnR","type","button","variant","outline",3,"click"],["class","col-lg-12 row form-group",4,"ngIf"],[1,"col-lg-12","row","form-group"],[1,"col-lg-4"],[3,"switch"],["cFormCheckInput","","id","inplaceRestoreR","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","restoreDeletedFilesByRestoreR","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-lg-3",2,"border","1px solid #062D4D","border-radius","10px","padding","10px","width","fit-content"],[1,"row","form-group"],[1,"col-6",2,"margin-top","10px"],[1,"col-4",2,"margin-top","10px"],["cFormCheckInput","","id","dateBeforeR","type","checkbox",3,"ngModelChange","change","ngModel"],[1,"row","align-items-center"],[1,"col-12","d-flex","flex-wrap"],["type","text","bsDatepicker","",1,"form-control","mx-2",2,"flex","1","min-width","150px",3,"ngModelChange","ngModel","bsConfig","disabled"],[2,"flex","1","min-width","100px",3,"ngModelChange","ngModel","minuteStep","showMeridian","disabled"],[1,"select2-results"],["role","tree","tabindex","-1","infinitescroll","","ng-reflect-infinite-scroll-disabled","false","ng-reflect-infinite-scroll-distance","1.5","ng-reflect-infinite-scroll-throttle","150","ng-reflect-infinite-scroll-container","[object HTMLUListElement]",1,"select2-results__options",2,"max-height","200px"],["role","group",1,"select2-results__option"],[1,"select2-results__group"],[1,"select2-results__options","select2-results__options--nested"],["cFormCheckInput","","id","suspendBackupR","type","checkbox",3,"ngModelChange","ngModel"],[1,"ellipsis-path",3,"title"],[1,"progressR",3,"title"],[1,"spinner"],["cButton","","color","secondary","id","initiateRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","secondary","id","cancelRunningRestoreR","type","button","variant","outline",3,"click"],["cButton","","color","danger","id","normalCloseR","variant","outline",3,"click"],["cButton","","color","danger","id","warningCloseR","variant","outline",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-arrow-left"],["colspan","1",1,"text-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"text-left",3,"click","dblclick","ngClass"]],template:function(n,i){if(n&1){let r=w();o(0,"div",9)(1,"div",10)(2,"c-card",11)(3,"c-card-body")(4,"a",12),_("click",function(){return u(r),g(i.closeOverlay())}),b(5,"i",13),a(),o(6,"c-nav",14)(7,"c-nav-item",15)(8,"button",16),_("click",function(){return u(r),g(i.setActiveSearchTab("default",0))}),d(9," Search Users/Assets "),a()(),o(10,"c-nav-item")(11,"button",16),_("click",function(){return u(r),g(i.setActiveSearchTab("file",1))}),d(12," Search by file/folder names "),a()(),C(13,Ss,3,2,"c-nav-item",17),a(),o(14,"c-tab-content",18,0)(16,"c-tab-pane",19)(17,"c-row",20)(18,"c-input-group",11)(19,"span",21),d(20,"Search Users/Assets"),a(),o(21,"input",22,1),O("ngModelChange",function(l){return u(r),D(i.userAssetSearchText,l)||(i.userAssetSearchText=l),g(l)}),_("keydown.enter",function(){return u(r),g(i.searchForUsersAssets())}),a()()(),o(23,"c-row"),C(24,ws,2,1,"c-card",17)(25,ks,6,1,"c-card",17),b(26,"br"),C(27,Is,2,1,"c-card",17)(28,Ms,6,1,"c-card",17),b(29,"br"),C(30,Es,2,1,"c-card",17)(31,Ds,6,1,"c-card",17),a()(),o(32,"c-tab-pane",19)(33,"c-row",23)(34,"div",24)(35,"label",25),d(36,"Product Type"),a(),o(37,"select",26),O("ngModelChange",function(l){return u(r),D(i.productTypeFiles,l)||(i.productTypeFiles=l),g(l)}),_("change",function(l){return u(r),g(i.onChangeProductType(l))}),C(38,Os,2,0,"option",27)(39,As,2,0,"option",28)(40,Rs,2,0,"option",29),_e(41,Fs,1,1,"option",30,Ve),a()(),C(43,Ns,4,5,"div",31)(44,Vs,4,4,"div",31)(45,Gs,7,2,"div",31),a(),o(46,"c-row",32)(47,"div",33)(48,"c-input-group")(49,"input",34,2),O("ngModelChange",function(l){return u(r),D(i.filesSearchText,l)||(i.filesSearchText=l),g(l)}),_("keydown.enter",function(){return u(r),g(i.searchForFiles())}),a()()(),o(51,"div",35)(52,"button",36),_("click",function(){return u(r),g(i.searchForFiles())}),d(53,"Search"),a()()(),b(54,"br"),C(55,zs,5,0,"c-row",17)(56,js,10,3,"c-row",37),a(),o(57,"c-tab-pane",19)(58,"c-row",23)(59,"div",24)(60,"label",38),d(61,"Product Type"),a(),o(62,"select",39),O("ngModelChange",function(l){return u(r),D(i.productTypeContentSearch,l)||(i.productTypeContentSearch=l),g(l)}),_("change",function(l){return u(r),g(i.onChangeProductTypeContentSearch(l))}),C(63,Ws,2,0,"option",40)(64,qs,2,0,"option",28)(65,Js,2,0,"option",29)(66,Ys,2,0,"option",41),_e(67,Qs,1,3,"option",30,Ve),a()(),C(69,Ks,4,5,"div",31)(70,Zs,4,4,"div",31)(71,tl,7,2,"div",31),a(),C(72,il,8,1,"c-row",42)(73,rl,8,4,"c-row",43)(74,al,2,1,"c-row",43),b(75,"br"),C(76,ll,10,3,"c-row",37)(77,cl,5,0,"c-row",43)(78,Kl,36,29,"c-row",44),b(79,"br"),C(80,ic,7,4,"c-row",45),a()()()()()(),o(81,"div",46)(82,"div",47)(83,"div",48)(84,"div",49)(85,"h4",50),d(86,"Specify Filename"),a()(),o(87,"div",51)(88,"c-row")(89,"div",52)(90,"label",53),d(91,"Specify pst filename"),a(),o(92,"input",54),O("ngModelChange",function(l){return u(r),D(i.pstFileNameG,l)||(i.pstFileNameG=l),g(l)}),a()()()(),o(93,"div",55)(94,"button",56),_("click",function(){return u(r),g(i.closePstPopupG())}),d(95,"Close"),a(),C(96,nc,2,0,"button",57)(97,rc,2,0,"button",57),a()()()(),o(98,"div",58)(99,"div",59)(100,"div",48)(101,"div",49)(102,"h4",50),d(103,"Restore Progress"),a()(),o(104,"div",51)(105,"c-card")(106,"c-card-header",60),d(107,"Currently Running Restore Statistics"),a(),o(108,"c-card-body")(109,"c-row",61)(110,"table",62)(111,"thead")(112,"tr"),C(113,oc,2,0,"th",17),o(114,"th"),d(115,"Overall Progress"),a()()(),o(116,"tbody")(117,"tr"),C(118,sc,5,9,"td",17)(119,lc,2,0,"td",17)(120,cc,6,10,"td",17)(121,dc,2,0,"td",17),a()()()()()()(),o(122,"div",55)(123,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstPopupG())}),d(124,"Close"),a(),C(125,pc,2,0,"button",63),a()()()(),o(126,"div",46)(127,"div",47)(128,"div",48)(129,"div",49)(130,"h4",50),d(131,"Restore Cancel Confirmation"),a()(),o(132,"div",51)(133,"h4",50),d(134,"Are you sure you wish to cancel the restore?"),a()(),o(135,"div",55)(136,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstConfirmPopupG())}),d(137,"Cancel"),a(),o(138,"button",64),_("click",function(){return u(r),g(i.cancelDownloadAsPstConfirmG())}),d(139,"Ok"),a()()()()(),o(140,"div",46)(141,"div",47)(142,"div",48)(143,"div",49)(144,"h4",50),d(145,"Confirmation"),a()(),o(146,"div",51)(147,"h4",50),d(148,"Are you sure you wish to close this window? The restore will still continue to run in the background."),a()(),o(149,"div",55)(150,"button",56),_("click",function(){return u(r),g(i.closeDownloadPstRunBkpPopupG())}),d(151,"Cancel"),a(),o(152,"button",65),_("click",function(){return u(r),g(i.cancelDownloadAsPstRunBkpG())}),d(153,"Ok"),a()()()()(),o(154,"div",66)(155,"div",59)(156,"div",48)(157,"div",49)(158,"h4",50),d(159,"Restore Settings"),a()(),o(160,"div",51),C(161,gc,58,25,"c-card",17)(162,Tc,22,14,"c-card",17),a(),o(163,"div",55),C(164,Mc,2,0,"button",67)(165,Ec,2,0,"button",68)(166,Pc,2,0,"button",69)(167,Dc,2,0,"button",70),a()()()(),o(168,"div",71)(169,"div",47)(170,"div",48)(171,"div",49)(172,"h4",50),d(173,"Browse path"),a()(),o(174,"div",51)(175,"c-row",61)(176,"c-card",72)(177,"c-card-header",60)(178,"span"),d(179,"Current Path :"),C(180,Oc,2,0,"span",17)(181,Ac,2,0,"span",17)(182,Rc,2,1,"span",17),a()(),o(183,"c-card-body"),C(184,Uc,3,0,"button",73),o(185,"div",74)(186,"table",75)(187,"thead")(188,"tr",76)(189,"th"),d(190,"Items"),a()()(),o(191,"tbody"),C(192,Fc,5,0,"tr",17)(193,Nc,4,5,"tr",77),a()()()()(),o(194,"c-card",72)(195,"c-card-body")(196,"div",52)(197,"label",78),d(198,"Create new folder"),a(),o(199,"c-input-group",11)(200,"input",79),O("ngModelChange",function(l){return u(r),D(i.newFolderR,l)||(i.newFolderR=l),g(l)}),a(),o(201,"button",80),_("click",function(){return u(r),g(i.addNewFolderR(i.newFolderR))}),d(202,"Create"),a()()()()()()(),o(203,"div",55)(204,"button",56),_("click",function(){return u(r),g(i.closeBrowsePopupR())}),d(205,"Close"),a(),o(206,"button",65),_("click",function(){return u(r),g(i.usePathR())}),d(207,"Use Path"),a()()()()(),o(208,"div",46)(209,"div",47)(210,"div",48)(211,"div",49)(212,"h4",50),d(213,"Restore Cancel Confirmation"),a()(),o(214,"div",51)(215,"h4",50),d(216,"Are you sure you wish to cancel the restore?"),a()(),o(217,"div",55)(218,"button",56),_("click",function(){return u(r),g(i.closeDeleteRestorePopupR())}),d(219,"Close"),a(),o(220,"button",65),_("click",function(){return u(r),g(i.deleteRestoreEventR())}),d(221,"Delete"),a()()()()()}if(n&2){let r=te(15);s(7),m("ngStyle",G(68,ge,i.userType!="user"?"block":"none")),s(),m("cTabContent",r)("tabPaneIdx",0),s(3),m("cTabContent",r)("tabPaneIdx",1),s(2),m("ngIf",i.inclusionLicenses.includes("contentsearchenabled")),s(),m("activeTabPaneIdx",i.activeTabIndex),s(7),P("ngModel",i.userAssetSearchText),s(3),m("ngIf",i.noUsersFoundText!=""),s(),m("ngIf",i.foundUsers.length>0),s(2),m("ngIf",i.noSitesFoundText!=""),s(),m("ngIf",i.foundSites.length>0),s(2),m("ngIf",i.noDevicesFoundText!=""),s(),m("ngIf",i.foundDevices.length>0),s(6),P("ngModel",i.productTypeFiles),s(),m("ngIf",i.inclusionLicenses.includes("backup_enabled")),s(),m("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),s(),m("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),s(),be(i.PRODUCTS_CONFIG),s(2),m("ngIf",i.productTypeFiles!="SHAREPOINT"),s(),m("ngIf",i.productTypeFiles=="SHAREPOINT"),s(),m("ngIf",i.productTypeFiles!="SHAREPOINT"),s(4),P("ngModel",i.filesSearchText),s(6),m("ngIf",i.noFilesFound),s(),m("ngIf",i.foundFiles.length>0&&!i.noFilesFound),s(6),P("ngModel",i.productTypeContentSearch),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),s(),m("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),s(),be(i.PRODUCTS_CONFIG),s(2),m("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch=="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),m("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),m("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(),m("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(2),m("ngIf",i.foundFilesCS.length>0&&!i.noFilesFoundCS&&i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),s(),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),s(2),m("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),s(),m("ngStyle",G(70,ge,i.displayPststyleG)),s(11),P("ngModel",i.pstFileNameG),s(4),m("ngIf",i.exportCompleteMailboxG),s(),m("ngIf",!i.exportCompleteMailboxG),s(),m("ngStyle",G(72,ge,i.displayDownloadPststyleG)),s(15),m("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(5),m("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),m("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),m("ngIf",i.progressG.totalNoOfFilesForRestore!=""),s(),m("ngIf",i.progressG.totalNoOfFilesForRestore==""),s(4),m("ngIf",!R(74,xe).includes(i.productTypeContentSearch)),s(),m("ngStyle",G(75,ge,i.displayDownloadPstConfirmstyleG)),s(14),m("ngStyle",G(77,ge,i.displayDownloadPstRunBckConfirmstyleG)),s(14),m("ngStyle",G(79,ge,i.displayRestoreStyleR)),s(7),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR),s(2),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR&&!R(81,xe).includes(i.productTypeContentSearch)),s(),m("ngIf",i.showRestoreSettingsR),s(),m("ngIf",!i.showRestoreSettingsR),s(),m("ngStyle",G(82,ge,i.displayBrowseStyleR)),s(12),m("ngIf",i.productTypeContentSearch==="Google Drive"),s(),m("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),s(),m("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(2),m("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(8),m("ngIf",i.loadingR),s(),m("ngForOf",i.browseItemsR),s(7),P("ngModel",i.newFolderR),s(8),m("ngStyle",G(84,ge,i.displayDeleteRestoreStyleR))}},dependencies:[Ho,zo,Tt,ze,Dt,At,Ot,Fo,No,Uo,zt,oa,aa,Bt,ea,ra,Lt,sa,Gt,he,Wi,_t,ne,$i,Yi,Zo,Xo,Ko,jo,xo,Et,Mt,Pt,Vo,Se,Nt,ye,jt,ca,Vt,Ht,Wt,da,qt,pa,ma],styles:['.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:10px;width:100%;height:100%;overflow-y:auto}.button-group[_ngcontent-%COMP%]{margin-top:20px}button[_ngcontent-%COMP%]{margin:0 10px}.card-hover[_ngcontent-%COMP%]{transition:background-color .3s ease-in-out}.card-hover[_ngcontent-%COMP%]:hover{background-color:#35b7f4;cursor:pointer}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}.selected-rowMail[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8;color:#fff}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}.selected[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8}.disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.spinner[_ngcontent-%COMP%]{width:25px;margin:auto;height:25px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/2.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 2.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(6)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var Vc=(t,c)=>c.name,ai=t=>({display:t}),Ta=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],Bc=()=>["/mspDashboard"],Lc=()=>["/dashboard"],Gc=()=>["/bluvault"],zc=()=>({placement:"bottom-start"}),Hc=()=>[];function jc(t,c){if(t&1&&(o(0,"button",32),b(1,"i",33),a()),t&2){let e=h();m("cSidebarToggle",e.sidebarId)}}function Wc(t,c){if(t&1){let e=w();o(0,"c-input-group",34)(1,"input",35),_("click",function(){u(e);let i=h();return g(i.openOverlay())}),a(),o(2,"span",36),b(3,"i",37),a()()}}function qc(t,c){if(t&1){let e=w();o(0,"c-sidebar-brand",38)(1,"img",39),_("error",function(i){u(e);let r=h();return g(r.onImageError(i))}),a()()}if(t&2){let e=h();m("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&R(2,Ta).includes(e.userType)?R(3,Bc):R(4,Ta).includes(e.userType)?R(5,Lc):R(6,Gc)),s(),m("src",e.parabluLogo,ee)}}function Jc(t,c){if(t&1){let e=w();o(0,"app-search-overlay",40),_("close",function(){u(e);let i=h();return g(i.closeOverlay())}),a()}}function Yc(t,c){t&1&&ft(0)}function $c(t,c){t&1&&ft(0)}function Qc(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.currentUserProfile())}),b(2,"i",48),d(3," My Account "),a()()}}function Kc(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.activityHistory())}),b(2,"i",49),d(3," Activity History "),a()()}}function Zc(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.unusualActivityHistory())}),b(2,"i",49),d(3," Unusual Activity History "),a()()}}function Xc(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.endpointsDownload())}),b(2,"i",50),d(3," Download Agent "),a()()}}function ed(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.licenseOptimizer())}),b(2,"i",51),d(3," License Optimizer "),a()()}}function td(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.packDetails())}),b(2,"i",52),d(3," Current Packs Subscribed "),a()()}}function id(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.navigateToDownloads())}),b(2,"i",50),d(3," Downloads "),a()()}}function nd(t,c){t&1&&(o(0,"li"),b(1,"hr",45),a())}function rd(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.activityHistory())}),b(2,"i",53),d(3," Share Activity History "),a()()}}function od(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.unusualActivityHistory())}),b(2,"i",49),d(3," Infected Files History "),a()()}}function ad(t,c){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){u(e);let i=h(2);return g(i.miniclouds())}),b(2,"i",54),d(3," MiniClouds "),a()()}}function sd(t,c){t&1&&(o(0,"li"),b(1,"hr",45),a())}function ld(t,c){t&1&&(o(0,"li"),b(1,"hr",45),a())}function cd(t,c){if(t&1&&(o(0,"li")(1,"a",55),d(2,"Quick Start Guide"),a()()),t&2){let e=h(2);s(),m("href",e.quick_startUrl,ee)}}function dd(t,c){if(t&1&&(o(0,"li")(1,"a",55),d(2,"Administrator Guide"),a()()),t&2){let e=h(2);s(),m("href",e.administrator_Guide_EndpointUrl,ee)}}function pd(t,c){if(t&1&&(o(0,"li")(1,"a",56),d(2,"Quick Start Guide (Servers)"),a()()),t&2){let e=h(2);s(),m("href",e.quick_start_serverUrl,ee)}}function md(t,c){if(t&1&&(o(0,"li")(1,"a",56),d(2,"Administrator Guide (Servers)"),a()()),t&2){let e=h(2);s(),m("href",e.administrator_Guide_ServerUrl,ee)}}function hd(t,c){if(t&1&&(o(0,"li")(1,"a",56),d(2,"User Guide"),a()()),t&2){let e=h(2);s(),m("href",e.userGuideUrl,ee)}}function ud(t,c){t&1&&(o(0,"li"),b(1,"hr",45),a())}function gd(t,c){t&1&&(o(0,"li")(1,"h6",57),d(2," Help & Support "),a()())}function fd(t,c){t&1&&(o(0,"li")(1,"a",55),b(2,"i",58),d(3," +971 50 158 7321 "),a()()),t&2&&(s(),m("href","https://wa.me/971501587321",ee))}function vd(t,c){if(t&1&&(o(0,"li")(1,"a",59),b(2,"i",60),d(3," Send email "),a()()),t&2){let e=h(2);s(),m("href","mailto:"+e.support_mailId,ee)}}function _d(t,c){t&1&&(o(0,"li"),b(1,"hr",45),a())}function bd(t,c){if(t&1){let e=w();o(0,"c-dropdown",41)(1,"button",42),b(2,"c-avatar",43),a(),o(3,"ul",44),C(4,Qc,4,0,"li",24),o(5,"li"),b(6,"hr",45),a(),C(7,Kc,4,0,"li",24)(8,Zc,4,0,"li",24)(9,Xc,4,0,"li",24)(10,ed,4,0,"li",24)(11,td,4,0,"li",24)(12,id,4,0,"li",24)(13,nd,2,0,"li",24)(14,rd,4,0,"li",24)(15,od,4,0,"li",24)(16,ad,4,0,"li",24)(17,sd,2,0,"li",24)(18,ld,2,0,"li",24)(19,cd,3,1,"li",24)(20,dd,3,1,"li",24)(21,pd,3,1,"li",24)(22,md,3,1,"li",24)(23,hd,3,1,"li",24)(24,ud,2,0,"li",24)(25,gd,3,0,"li",24)(26,fd,4,1,"li",24)(27,vd,4,1,"li",24)(28,_d,2,0,"li",24),o(29,"li")(30,"a",46),_("click",function(){u(e);let i=h();return g(i.logout())}),b(31,"i",47),d(32," Logout "),a()()()()}if(t&2){let e=h();m("popperOptions",R(26,zc)),s(),m("caret",!1),s(),m("size","md"),s(2),m("ngIf",!(e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin")),s(3),m("ngIf",e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user"),s(),m("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),s(),m("ngIf",e.inclusionLicenses.includes("backup_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",e.inclusionLicenses.includes("msp_environment_enabled"))}}function yd(t,c){if(t&1){let e=w();o(0,"button",67),_("click",function(){u(e);let i=h(2);return g(i.click_Crashplan_Endpoint())}),o(1,"a",68),d(2,"CrashPlan Endpoint"),a()()}if(t&2){let e=h(2);s(),m("href",e.crashplan_Endpoint_Url,ee)}}function Cd(t,c){if(t&1){let e=w();o(0,"button",69),_("click",function(){let i=u(e).$implicit,r=h(2);return r.colorMode.set(i.name),g(r.applyTheme())}),pt(),b(1,"svg",70),d(2),a()}if(t&2){let e=c.$implicit,n=h(2);m("active",n.colorMode()===e.name)("routerLink",R(4,Hc)),s(),m("name",e.icon),s(),M(" ",e.text," ")}}function Sd(t,c){if(t&1&&(C(0,yd,3,1,"button",61),o(1,"c-dropdown",62)(2,"button",63),pt(),b(3,"svg",64),a(),Zt(),o(4,"div",65),_e(5,Cd,3,5,"button",66,Vc),a()()),t&2){let e=h();m("ngIf",e.crashplan_Endpoint_Url),s(2),m("caret",!1),s(),m("name",e.icons()),s(2),be(e.colorModes)}}function wd(t,c){t&1&&(o(0,"th",17),d(1,"Servers"),a())}function xd(t,c){t&1&&(o(0,"td",20)(1,"span"),d(2,"-"),a()())}function kd(t,c){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),d(3),a()(),o(4,"td",20)(5,"div"),d(6),a()(),o(7,"td",20)(8,"div"),d(9),a()(),o(10,"td",20)(11,"div"),d(12,"-"),a()()()),t&2){let e=c.$implicit;s(3),A(e.skuCode),s(3),A(e.storageSize),s(3),A(e.minUserCount)}}function Id(t,c){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),d(3),a()(),o(4,"td",20)(5,"div"),d(6,"-"),a()(),o(7,"td",20)(8,"div"),d(9),a()(),o(10,"td",20)(11,"div"),d(12),a()()()),t&2){let e=c.$implicit;s(3),A(e.skuCode),s(6),A(e.storageSize),s(3),A(e.minUserCount)}}function Td(t,c){if(t&1&&(Ze(0),C(1,Id,13,3,"tr",23),Xe()),t&2){let e=h();s(),m("ngForOf",e.serverPacks)}}function Md(t,c){if(t&1&&(o(0,"td",20)(1,"span")(2,"b"),d(3),a()()()),t&2){let e=h();s(3),A(e.totalServer)}}function Ed(t,c){if(t&1){let e=w();o(0,"app-crashplan-nav",71),_("closeModalHandler",function(){u(e);let i=h();return g(i.close_Crashplan_Endpoint())}),a()}}var Ma=(()=>{class t extends Bo{#t;#e;#i;constructor(e,n,i,r,p,l,f,S,x,I){let T=e.getToken();(!T||T.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=r,this.apiService=p,this.cdr=l,this.toastr=f,this.datePipe=S,this.licenseCheckService=x,this.userRoleService=I,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="none",this.statistics={},this.skuCode="",this.packModel="",this.totalStorage=0,this.totalUser=0,this.totalServer=0,this.storageSize="",this.minUserCount="-",this.customerId="-",this.referenceNumber="-",this.subscriptionStartDate=0,this.serverMgmt=!1,this.addons=[],this.userPacks=[],this.serverPacks=[],this.showCenterBrandLogo=!1,this.quick_startUrl="",this.administrator_Guide_EndpointUrl="",this.quick_start_serverUrl="",this.administrator_Guide_ServerUrl="",this.userGuideUrl="",this.showCrashplanEndpointLicenseModal=!1,this.commonAssetUrl="https://dns.parablu.com/pbassets/doc/",this.inclusionLicenses=[],this.exclusionLicenses=[],this.crashplan_Endpoint_Url="",this.#t=Ee(sn),this.#e=Ee(To),this.colorMode=this.#e.colorMode,this.#i=Ee(Oi),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=ji(()=>{let k=this.colorMode();return this.colorModes.find(E=>E.name===k)?.icon??"cilSun"}),this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.guideUrlSrc=[this.commonAssetUrl+"Quick_start.pdf",this.commonAssetUrl+"Administrator_Guide_Endpoint.pdf",this.commonAssetUrl+"Quick_start_server.pdf",this.commonAssetUrl+"Administrator_Guide_Server.pdf",this.commonAssetUrl+"User_Guide.pdf"],this.isMsAppConsented=!1,this.isEwsAppConsented=!1,this.assetsConfigured=!1,this.displayConsentRemainder="none",this.displayAssetConfigurationRemainder="none",this.isFirstLogin="false",this.isLocalUser="false",this.sidebarId="sidebar1",this.newMessages=[{id:0,from:"Jessica Williams",avatar:"7.jpg",status:"success",title:"Urgent: System Maintenance Tonight",time:"Just now",link:"apps/email/inbox/message",message:"Attention team, we'll be conducting critical system maintenance tonight from 10 PM to 2 AM. Plan accordingly..."},{id:1,from:"Richard Johnson",avatar:"6.jpg",status:"warning",title:"Project Update: Milestone Achieved",time:"5 minutes ago",link:"apps/email/inbox/message",message:"Kudos on hitting sales targets last quarter! Let's keep the momentum. New goals, new victories ahead..."},{id:2,from:"Angela Rodriguez",avatar:"5.jpg",status:"danger",title:"Social Media Campaign Launch",time:"1:52 PM",link:"apps/email/inbox/message",message:"Exciting news! Our new social media campaign goes live tomorrow. Brace yourselves for engagement..."},{id:3,from:"Jane Lewis",avatar:"4.jpg",status:"info",title:"Inventory Checkpoint",time:"4:03 AM",link:"apps/email/inbox/message",message:"Team, it's time for our monthly inventory check. Accurate counts ensure smooth operations. Let's nail it..."},{id:3,from:"Ryan Miller",avatar:"4.jpg",status:"info",title:"Customer Feedback Results",time:"3 days ago",link:"apps/email/inbox/message",message:"Our latest customer feedback is in. Let's analyze and discuss improvements for an even better service..."}],this.newNotifications=[{id:0,title:"New user registered",icon:"cilUserFollow",color:"success"},{id:1,title:"User deleted",icon:"cilUserUnfollow",color:"danger"},{id:2,title:"Sales report is ready",icon:"cilChartPie",color:"info"},{id:3,title:"New client",icon:"cilBasket",color:"primary"},{id:4,title:"Server overloaded",icon:"cilSpeedometer",color:"warning"}],this.newStatus=[{id:0,title:"CPU Usage",value:25,color:"info",details:"348 Processes. 1/4 Cores."},{id:1,title:"Memory Usage",value:70,color:"warning",details:"11444GB/16384MB"},{id:2,title:"SSD 1 Usage",value:90,color:"danger",details:"243GB/256GB"}],this.newTasks=[{id:0,title:"Upgrade NPM",value:0,color:"info"},{id:1,title:"ReactJS Version",value:25,color:"danger"},{id:2,title:"VueJS Version",value:50,color:"warning"},{id:3,title:"Add new layouts",value:75,color:"info"},{id:4,title:"Angular Version",value:100,color:"success"}],this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(Si(1),H(k=>k.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),lt(k=>["dark","light","auto"].includes(k)),U(k=>{this.colorMode.set(k)}),So(this.#i)).subscribe(),this.crashplan_Endpoint_Url=atob(this.sharedService.getDataByKey("cp_endpoint")||""),localStorage.getItem("theme-default")=='"dark"'?this.parabluLogo=this.imageSrc[4]:this.parabluLogo=this.imageSrc[0],this.crashplanLogo=this.imageSrc[1],this.quick_startUrl=this.guideUrlSrc[0],this.administrator_Guide_EndpointUrl=this.guideUrlSrc[1],this.quick_start_serverUrl=this.guideUrlSrc[2],this.administrator_Guide_ServerUrl=this.guideUrlSrc[3],this.userGuideUrl=this.guideUrlSrc[4]}ngOnInit(){return Y(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.isFirstLogin=yield this.userRoleService.getFirstLogin(),this.isLocalUser=yield this.userRoleService.getLocalUser(),this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"&&(this.showCenterBrandLogo=!0);let e=["/dashboard","/adminConsentExchange","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets/Exchange","/manageAssets/ODB","/manageAssets/Sharepoint"];this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus()),this.router.events.subscribe(n=>{n instanceof je&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(e.includes(this.router.url.toString())||this.checkWizardStatus())})})}setBrandLogo(){return Y(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}click_Crashplan_Endpoint(){this.showCrashplanEndpointLicenseModal=!this.crashplan_Endpoint_Url,this.cdr.detectChanges()}close_Crashplan_Endpoint(){this.showCrashplanEndpointLicenseModal=!1,this.cdr.detectChanges()}logout(){this.apiService.logout().subscribe(e=>{let n=localStorage.getItem("theme-default");this.authService.clearToken(),localStorage.clear(),n&&localStorage.setItem("theme-default",n),this.router.navigate(["logout"])},e=>{switch(e.status){case 500:break;case 503:break;default:break}})}currentUserProfile(){let e=this.sharedService.getDataByKey("userName");this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}activityHistory(){this.router.navigate(["activityHistory"])}unusualActivityHistory(){this.router.navigate(["unusualActivityHistory"])}endpointsDownload(){this.router.navigate(["endpointsDownload"])}licenseOptimizer(){this.router.navigate(["licenseOptimizer"])}navigateToDownloads(){this.router.navigate(["/downloads"])}miniclouds(){this.router.navigate(["sync/miniclouds"])}navigateTo(e){switch(e){case"quick":this.router.navigate(["sync/miniclouds"]);break;case"administrator":this.router.navigate(["sync/miniclouds"]);break;case"user":this.router.navigate(["sync/miniclouds"]);break;default:this.router.navigate(["sync/miniclouds"]);break}}updateStatistics(){this.apiService.overviewBackup().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.statistics=e.body.MSPCloudOverviewElement,e.body.MSPCloudOverviewElement?.packs&&e.body.MSPCloudOverviewElement.packs.length>0&&e.body.MSPCloudOverviewElement.packs.forEach((r,p)=>{if(r.subscriptionActive){this.skuCode=r.skuCode,this.packModel=r.skuCode.startsWith("FR")?"FREMIUM":"PREMIUM",this.totalStorage=Number(r.storageSize),this.totalUser=Number(r.minUserCount),this.storageSize=r.storageSize.toString(),this.minUserCount=r.minUserCount.toString(),this.customerId=r.customerId,this.referenceNumber=r.referenceNumber;let l=new Date(r.subscriptionStartDate).toLocaleString();this.subscriptionStartDate=parseInt(r.subscriptionStartDate),r.addons&&r.addons.length>0&&(this.addons=r.addons),r.addons&&r.addons.length>0&&r.addons.forEach(S=>{S.subscriptionActive&&!S.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:S.skuCode,minUserCount:Number(S.minUserCount)||0,storageSize:Number(S.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(S.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(S.storageSize))});let f=0;r.addons&&r.addons.length>0&&r.addons.forEach(S=>{S.skuCode.startsWith("ADSER")&&S.subscriptionActive&&(this.serverPacks.push({skuCode:S.skuCode,minUserCount:Number(S.minUserCount)||0,storageSize:Number(S.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(S.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(S.storageSize))})}}),this.cdr.detectChanges()},e=>{switch(e.status){case 400:break;case 401:this.toastr.error("Token expired, navigating to logout page.","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="block",this.updateStatistics()}closePackDetails(){this.stylePackDetails="none"}openOverlay(){this.isOverlayVisible=!0;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","2000");let n=document.querySelector(".overlay");n&&this.renderer.setStyle(n,"display","block")}closeOverlay(){this.isOverlayVisible=!1;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","1000")}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}applyTheme(){location.reload()}checkWizardStatus(){console.log(".... smbConsent from header...."),this.apiService.checkWizardStatus().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.isMsAppConsented=e.body.msAppConsented,this.isEwsAppConsented=e.body.ewsAppConsented,this.assetsConfigured=e.body.assetsConfigured;let r=localStorage.getItem("showStep1Modal");if(r!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return}if(r!=="No"&&!this.isEwsAppConsented){this.displayConsentRemainder="block";return}if(localStorage.getItem("showStep2Modal")!=="No"&&!this.assetsConfigured){this.displayAssetConfigurationRemainder="block";return}})}denyConsentFlow(){this.displayConsentRemainder="none",localStorage.setItem("showStep1Modal","No"),localStorage.setItem("showStep2Modal","No")}proceedForConsentFlow(){this.displayConsentRemainder="none",this.router.navigate(["/settings/smbConsent"])}denyAssetConfigurationFlow(){this.displayAssetConfigurationRemainder="none",localStorage.setItem("showStep2Modal","No")}proceedForAssetConfigurationFlow(){if(this.displayAssetConfigurationRemainder="none",this.inclusionLicenses.includes("exchange_backup_enabled")){this.router.navigate(["/manageAssets/Exchange"]);return}this.inclusionLicenses.includes("onedrive_backup_enabled")&&this.router.navigate(["/manageAssets/ODB"]),this.inclusionLicenses.includes("sharepoint_backup_enabled")&&this.router.navigate(["/manageAssets/Sharepoint"])}static{this.\u0275fac=function(n){return new(n||t)(y(q),y(re),y(Ne),y(oe),y(Z),y(Ge),y(we),y(He),y(Je),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[ie([He,q,Z]),ce],decls:102,vars:32,consts:[["userDropdown",""],["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"],["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"],[1,"modal-body"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],[1,"text-nowrap","text-truncate"],[1,"bg-body-tertiary","text-center"],[2,"margin","0 0 0px"],["class","bg-body-tertiary text-center",4,"ngIf"],[1,"text-center"],["cTooltipPlacement","left",2,"font-size","12px","text-decoration","underline","cursor","pointer",3,"cTooltip"],["class","text-center",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-default",3,"click"],[3,"closeModalHandler",4,"ngIf"],["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"],["color","warning"],["type","button",1,"btn","btn-primary",3,"click"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"btn",2,"margin-inline-start","-14px",3,"cSidebarToggle"],[1,"fa-solid","fa-bars"],[1,"col-lg-3",2,"width","30% !important"],["aria-describedby","basic-addon2","name","search","aria-label","Search","cFormControl","","placeholder","Search",3,"click"],["cInputGroupText","","id","basic-addon2"],[1,"fa-solid","fa-magnifying-glass"],[2,"max-width","12%","cursor","pointer",3,"routerLink"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],[3,"close"],["variant","nav-item",3,"popperOptions"],["cDropdownToggle","","aria-label","Open user menu",1,"py-0","pe-0",3,"caret"],["shape","rounded-1","src","./assets/images/avatars/default.jpg","status","success","textColor","primary","alt","User avatar",3,"size"],["cDropdownMenu","",1,"pt-0","w-auto"],["cDropdownDivider",""],["cDropdownItem","",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-right-from-bracket","fa-rotate-180"],[1,"fa-solid","fa-user"],[1,"fa-solid","fa-clock-rotate-left"],[1,"fa-solid","fa-arrow-down"],[1,"fa-solid","fa-sliders"],[1,"fa-solid","fa-cart-shopping"],[1,"fa-solid","fa-share-from-square"],[1,"fa-solid","fa-cloud"],["cDropdownItem","","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownItem","","target","_blank","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownHeader","",1,"bg-body-secondary","text-body-secondary","fw-semibold","py-2",2,"padding","10px"],[1,"fa","fa-whatsapp"],["cDropdownItem","",2,"cursor","pointer",3,"href"],[1,"fa-regular","fa-paper-plane"],["class","endpoint-btn",3,"click",4,"ngIf"],["alignment","end","variant","nav-item"],["cDropdownToggle","","aria-label","Open theme picker",3,"caret"],["cIcon","","size","lg",3,"name"],["cDropdownMenu",""],["cDropdownItem","",1,"d-flex","align-items-center",3,"active","routerLink"],[1,"endpoint-btn",3,"click"],["target","_blank",3,"href"],["cDropdownItem","",1,"d-flex","align-items-center",3,"click","active","routerLink"],["cIcon","","size","lg",1,"me-2",3,"name"],[3,"closeModalHandler"]],template:function(n,i){if(n&1){let r=w();Ze(0),o(1,"c-container",2),C(2,jc,2,1,"button",3)(3,Wc,4,0,"c-input-group",4)(4,qc,2,7,"c-sidebar-brand",5)(5,Jc,1,0,"app-search-overlay",6),o(6,"c-header-nav",7),C(7,Yc,1,0,"ng-container",8)(8,$c,1,0,"ng-container",8),a()(),Xe(),C(9,bd,33,27,"ng-template",null,0,vt)(11,Sd,7,3,"ng-template",null,1,vt),o(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"h4",13),d(18,"Current Packs Subscribed"),a()(),o(19,"div",14)(20,"c-row")(21,"table",15)(22,"thead",16)(23,"tr")(24,"th",17),d(25,"Pack Name "),a(),o(26,"th",17)(27,"p",18),d(28,"Managed Data"),a(),o(29,"p",18),d(30,"(GB)"),a()(),o(31,"th",17),d(32,"Users"),a(),C(33,wd,2,0,"th",19),a()(),o(34,"tbody")(35,"tr")(36,"td",20)(37,"span")(38,"a",21),d(39),a(),b(40,"br"),o(41,"span"),d(42,"(Base Pack)"),a()()(),o(43,"td",20)(44,"span"),d(45),a()(),o(46,"td",20)(47,"span"),d(48),a()(),C(49,xd,3,0,"td",22),a(),C(50,kd,13,3,"tr",23)(51,Td,2,1,"ng-container",24),o(52,"tr",20)(53,"td",20)(54,"span")(55,"b"),d(56,"Total"),a()()(),o(57,"td",20)(58,"span")(59,"b"),d(60),a()()(),o(61,"td",20)(62,"span")(63,"b"),d(64),a()()(),C(65,Md,4,1,"td",22),a()()()()(),o(66,"div",25)(67,"button",26),_("click",function(){return u(r),g(i.closePackDetails())}),d(68,"Close"),a()()()()(),C(69,Ed,1,0,"app-crashplan-nav",27),o(70,"div",9)(71,"div",10)(72,"div",11)(73,"div",12)(74,"h4",13),d(75,"Step 1: Provide Consent"),a(),o(76,"a",28),b(77,"i",29),a()(),o(78,"div",14)(79,"h4"),d(80,"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."),a(),o(81,"c-callout",30),d(82," Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding. "),a()(),o(83,"div",25)(84,"button",26),_("click",function(){return u(r),g(i.denyConsentFlow())}),d(85,"Cancel"),a(),o(86,"button",31),_("click",function(){return u(r),g(i.proceedForConsentFlow())}),d(87,"Proceed"),a()()()()(),o(88,"div",9)(89,"div",10)(90,"div",11)(91,"div",12)(92,"h4",13),d(93,"Step 2: Configure Assets"),a()(),o(94,"div",14)(95,"h4"),d(96,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),a()(),o(97,"div",25)(98,"button",26),_("click",function(){return u(r),g(i.denyAssetConfigurationFlow())}),d(99,"Cancel"),a(),o(100,"button",31),_("click",function(){return u(r),g(i.proceedForAssetConfigurationFlow())}),d(101,"Proceed"),a()()()()()}if(n&2){let r=te(10),p=te(12);s(),m("fluid",!0),s(),m("ngIf",!i.showCenterBrandLogo),s(),m("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")),s(),m("ngIf",i.showCenterBrandLogo),s(),m("ngIf",i.isOverlayVisible),s(2),m("ngTemplateOutlet",p),s(),m("ngTemplateOutlet",r),s(5),m("ngStyle",G(26,ai,i.stylePackDetails)),s(8),m("hover",!0)("responsive",!0)("striped",!0),s(12),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(5),et("cTooltip","(Subscribed On : ",i.getFormattedDate(i.subscriptionStartDate)," )"),s(),M(" ",i.skuCode,""),s(6),A(i.storageSize),s(3),A(i.minUserCount),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(),m("ngForOf",i.userPacks),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(9),A(i.totalStorage),s(4),A(i.totalUser),s(),m("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(4),m("ngIf",i.showCrashplanEndpointLicenseModal),s(),m("ngStyle",G(28,ai,i.displayConsentRemainder)),s(18),m("ngStyle",G(30,ai,i.displayAssetConfigurationRemainder))}},dependencies:[Rt,wa,Go,Ut,Ft,fo,Lo,St,qi,Do,Po,Tt,Eo,Oo,Mo,Dt,At,Ot,Ia,he,_t,ne,ze,ye,Se,Vt,Nt,Io],styles:[".endpoint-btn[_ngcontent-%COMP%]{background-color:#f2f9fc!important;border-radius:5px;padding:0 1em;font-weight:700;color:#062d4d!important;border-color:#062d4d}.endpoint-btn[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}"]})}}return t})();var Pd=4,Dd=.001,Od=1e-7,Ad=10,ot=11,Yt=1/(ot-1),Rd=typeof Float32Array=="function";function Ea(t,c){return 1-3*c+3*t}function Pa(t,c){return 3*c-6*t}function Da(t){return 3*t}function $t(t,c,e){return((Ea(c,e)*t+Pa(c,e))*t+Da(c))*t}function Oa(t,c,e){return 3*Ea(c,e)*t*t+2*Pa(c,e)*t+Da(c)}function Ud(t,c,e,n,i){let r,p,l=0;do p=c+(e-c)/2,r=$t(p,n,i)-t,r>0?e=p:c=p;while(Math.abs(r)>Od&&++l<Ad);return p}function Fd(t,c,e,n){for(let i=0;i<Pd;++i){let r=Oa(c,e,n);if(r===0)return c;let p=$t(c,e,n)-t;c-=p/r}return c}function Nd(t){return t}function Vd(t,c,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===c&&e===n)return Nd;let i=Rd?new Float32Array(ot):new Array(ot);for(let p=0;p<ot;++p)i[p]=$t(p*Yt,t,e);function r(p){let l=0,f=1,S=ot-1;for(;f!==S&&i[f]<=p;++f)l+=Yt;--f;let x=(p-i[f])/(i[f+1]-i[f]),I=l+x*Yt,T=Oa(I,t,e);return T>=Dd?Fd(p,I,t,e):T===0?I:Ud(p,l,l+Yt,t,e)}return function(l){return l===0?0:l===1?1:$t(r(l),c,n)}}var Bd=new Ue("SMOOTH_SCROLL_OPTIONS"),Aa=(()=>{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=L({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):wo(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new fe).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return ve(W(e,"wheel",{passive:!0,capture:!0}),W(e,"touchmove",{passive:!0,capture:!0}),n).pipe(Ci(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new Re(n=>{let i=(this._now()-e.startTime)/e.duration;i=i>1?1:i;let r=e.easing(i);e.currentX=e.startX+(e.x-e.startX)*r,e.currentY=e.startY+(e.y-e.startY)*r,this._scrollElement(e.scrollable,e.currentX,e.currentY),st.schedule(()=>n.next(e))})}_applyScrollToOptions(e,n){if(!n.duration)return this._scrollElement(e,n.left,n.top),Promise.resolve();let i=this._initSmoothScroll(e),r={scrollable:e,startTime:this._now(),startX:e.scrollLeft,startY:e.scrollTop,x:n.left==null?e.scrollLeft:~~n.left,y:n.top==null?e.scrollTop:~~n.top,duration:n.duration,easing:Vd(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(p=>{Me(null).pipe(wi(()=>this._step(r).pipe(Ii(l=>this._isFinished(l,i,p)))),se(this._interrupted(e,i)),xi(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(Qi(this._platform)){let i=this._getElement(e),r=getComputedStyle(i).direction==="rtl",p=It(),l=ue(L(L({},this._defaultOptions),n),{left:n.left==null?r?n.end:n.start:n.left,right:n.right==null?r?n.start:n.end:n.right});return l.bottom!=null&&(l.top=i.scrollHeight-i.clientHeight-l.bottom),r&&p!==0?(l.left!=null&&(l.right=i.scrollWidth-i.clientWidth-l.left),p===2?l.left=l.right:p===1&&(l.left=l.right?-l.right:l.right)):l.right!=null&&(l.left=i.scrollWidth-i.clientWidth-l.right),this._applyScrollToOptions(i,l)}return Promise.resolve()}scrollToElement(e,n,i={}){let r=this._getElement(e),p=this._getElement(n,r),l=ue(L({},i),{left:p.offsetLeft+(i.left||0),top:p.offsetTop+(i.top||0)});return p?this.scrollTo(r,l):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(j(K),j(Ri),j(Bd,8))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gd=["scrollbarY"],zd=["scrollbarX"],Hd=["*"];function jd(t,c){if(t&1&&b(0,"scrollbar-x",null,0),t&2){let e=h(2);De("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function Wd(t,c){if(t&1&&b(0,"scrollbar-y",null,1),t&2){let e=h(2);De("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function qd(t,c){if(t&1&&(Ze(0),C(1,jd,2,2,"scrollbar-x",5)(2,Wd,2,2,"scrollbar-y",5),Xe()),t&2){let e=h();s(),m("ngIf",e.state.horizontalUsed),s(),m("ngIf",e.state.verticalUsed)}}var Jd=(()=>{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)(y(J))}}static{this.\u0275dir=$({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Na(t){return U(()=>{t.onselectstart=()=>!1})}function Va(t){return U(()=>{t.onselectstart=null})}function ke(){return U(t=>t.stopPropagation())}function si(t,c){return t.clientX>=c.left&&t.clientX<=c.left+c.width&&t.clientY>=c.top&&t.clientY<=c.top+c.height}var li=(()=>{class t{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(e){this.viewPort=e,this.nativeElement=e.nativeElement}activatePointerEvents(e,n){this.hovered=new Re(i=>{let r=W(this.nativeElement,"mousemove",{passive:!0}),p=e?r:r.pipe(ke()),l=W(this.nativeElement,"mouseleave",{passive:!0}).pipe(H(()=>!1));ve(p,l).pipe(U(f=>i.next(f)),se(n)).subscribe()}),this.clicked=new Re(i=>{let r=W(this.nativeElement,"mousedown",{passive:!0}).pipe(U(l=>i.next(l))),p=W(this.nativeElement,"mouseup",{passive:!0}).pipe(U(()=>i.next(!1)));r.pipe($e(()=>p),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)(y(J))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),de=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),pi=(()=>{class t{get clicked(){let e=W(this.trackElement,"mousedown",{passive:!0}).pipe(ke(),Na(this.document)),n=W(this.document,"mouseup",{passive:!0}).pipe(ke(),Va(this.document),$e(()=>vi));return ve(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 Me(e).pipe(H(r=>r[this.pageProperty]),H(r=>(r-this.offset-n/2)/this.size*i),U(r=>{this.cmp.scrollTo(ue(L({},this.mapToScrollToOption(r)),{duration:ii(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(y(de),y(HTMLElement),y(Document))}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),ci=(()=>{class t extends pi{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)(y(de),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarTrackX",""]],features:[ce]})}}return t})(),di=(()=>{class t extends pi{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)(y(de),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarTrackY",""]],features:[ce]})}}return t})(),Ba=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return W(this.thumbElement,"mousedown",{passive:!0}).pipe(ke())}constructor(e,n,i,r){this.cmp=e,this.track=n,this.thumbElement=i,this.document=r,this._dragging=new fe,this.dragging=this._dragging.pipe(ct())}update(){let e=Yd(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=$d(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);st.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,r=Me(e).pipe(Na(this.document),U(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),p=W(this.document,"mousemove",{capture:!0,passive:!0}).pipe(ke()),l=W(this.document,"mouseup",{capture:!0}).pipe(ke(),Va(this.document),U(()=>this.setDragging(!1)));return r.pipe(H(f=>f[this.pageProperty]),H(f=>f-this.dragStartOffset),_i(f=>p.pipe(H(S=>S[this.clientProperty]),H(S=>S-this.track.offset),H(S=>i*(S-f)/n),H(S=>this.handleDrag(S,i)),U(S=>this.scrollTo(S)),se(l))))}static{this.\u0275fac=function(n){return new(n||t)(y(de),y(pi),y(HTMLElement),y(Document))}}static{this.\u0275dir=$({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function Yd(t,c,e){let i=t/c*t;return Math.max(~~i,e)}function $d(t,c,e){return t*e/c}var Ra=(()=>{class t extends Ba{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(e,n,i,r,p){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r,this.dir=p}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(y(de),y(ci),y(J),y(K),y(ni))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarThumbX",""]],features:[ce]})}}return t})(),Ua=(()=>{class t extends Ba{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(e,n,i,r){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r}updateStyles(e,n){this.thumbElement.style.height=`${n}px`,this.thumbElement.style.transform=`translate3d(0px, ${e}px, 0)`}handleDrag(e){return e}handleDirection(e){return e}setDragging(e){this.cmp.setDragging({verticalDragging:e})}scrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=function(n){return new(n||t)(y(de),y(di),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarThumbY",""]],features:[ce]})}}return t})(),La=(()=>{class t{constructor(e,n,i,r,p){this.el=e,this.cmp=n,this.platform=i,this.document=r,this.zone=p,this.destroyed=new fe}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new fe,this.viewportThumbClicked=new fe,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(H(r=>r?si(r,this.el.getBoundingClientRect()):!1),ct(),U(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe(U(r=>{r?si(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):si(r,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(r)):this.cmp.setClicked(!1)}),se(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),ve(i.pipe(U(r=>this.setHovered(r))),e.pipe($e(r=>this.thumb.dragged(r))),n.pipe($e(r=>this.track.onTrackClicked(r,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=W(this.el,"mouseenter",{passive:!0}).pipe(ke(),H(()=>!0)),n=W(this.el,"mouseleave",{passive:!0}).pipe(ke(),H(()=>!1));return ve(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(se(this.destroyed)).subscribe(),ve(this.cmp.scrolled,this.cmp.updated).pipe(U(()=>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)(y(HTMLElement),y(de),y(We),y(Document),y(pe))}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),Qd=(()=>{class t extends La{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(de),y(We),y(K),y(pe))}}static{this.\u0275cmp=F({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(B(di,7),B(Ua,7)),n&2){let r;N(r=V())&&(i.track=r.first),N(r=V())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Oe("scrollbar-control",!0)},features:[ce],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(o(0,"div",0),b(1,"div",1),a()),n&2&&(Ke("ng-scrollbar-track ",i.cmp.trackClass,""),s(),Ke("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[di,Ua],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})(),Kd=(()=>{class t extends La{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,r,p){super(e.nativeElement,n,i,r,p),this.cmp=n,this.platform=i,this.document=r,this.zone=p}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(de),y(We),y(K),y(pe))}}static{this.\u0275cmp=F({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(B(ci,7),B(Ra,7)),n&2){let r;N(r=V())&&(i.track=r.first),N(r=V())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Oe("scrollbar-control",!0)},features:[ce],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(o(0,"div",0),b(1,"div",1),a()),n&2&&(Ke("ng-scrollbar-track ",i.cmp.trackClass,""),s(),Ke("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[ci,Ra],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})(),Zd=new Ue("NG_SCROLLBAR_OPTIONS"),Fa={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},Ga=(()=>{class t{constructor(e){this.globalOptions=e?L(L({},Fa),e):Fa,this.rtlScrollAxisType=It()}static{this.\u0275fac=function(n){return new(n||t)(j(Zd,8))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xd=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new fi(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&W(this.document.defaultView,"resize",{passive:!0}).pipe(Kt(this.manager.globalOptions.windowResizeDebounce),H(()=>this.getNativeScrollbarSize()),ct(),U(r=>this._scrollbarSize.next(r))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;let e=this.document.createElement("div");e.className="ng-scrollbar-measure",e.style.left="0px",e.style.overflow="scroll",e.style.position="fixed",e.style.top="-9999px",this.document.body.appendChild(e);let n=e.getBoundingClientRect().right;return this.document.body.removeChild(e),n}static{this.\u0275fac=function(n){return new(n||t)(j(K),j(Ga),j(We))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ep=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=gi.EMPTY,this._subscriber=i.scrollbarSize.subscribe(r=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${r}px`,Fi.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(Ne),y(Xd))}}static{this.\u0275dir=$({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),tp=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=ii(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ce(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 Pe,!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 Re(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(Kt(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(pe),y(We),y(de))}}static{this.\u0275dir=$({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),za=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ce(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=Ce(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=Ce(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=Ce(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=Ce(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=Ce(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,r,p,l){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=r,this.smoothScroll=p,this.manager=l,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Pe,this.state={},this.destroyed=new fe}updateState(){let e=!1,n=!1,i=!1,r=!1;(this.track==="all"||this.track==="vertical")&&(i=this.viewport.scrollHeight>this.viewport.clientHeight,e=this.visibility==="always"||i),(this.track==="all"||this.track==="horizontal")&&(r=this.viewport.scrollWidth>this.viewport.clientWidth,n=this.visibility==="always"||r),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:e,horizontalUsed:n,isVerticallyScrollable:i,isHorizontallyScrollable:r})}setState(e){this.state=L(L({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(U(i=>n=i),H(i=>i.target[e]),ki(),lt(([i,r])=>i!==r),H(()=>n))}setHovered(e){this.zone.run(()=>this.setState(L({},e)))}setDragging(e){this.zone.run(()=>this.setState(L({},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=W(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(yi(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(U(()=>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)(y(J),y(pe),y(Ge),y(ni),y(Aa),y(Ga))}}static{this.\u0275cmp=F({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,r){if(n&1&&Gi(r,li,7),n&2){let p;N(p=V())&&(i.customViewPort=p.first)}},viewQuery:function(n,i){if(n&1&&(B(Gd,5,J),B(zd,5,J),B(li,7)),n&2){let r;N(r=V())&&(i.scrollbarY=r.first),N(r=V())&&(i.scrollbarX=r.first),N(r=V())&&(i.defaultViewPort=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Oe("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:de,useExisting:t}]),Pi],ngContentSelectors:Hd,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&&(Bi(),o(0,"div",2)(1,"div",3),_("resizeSensor",function(){return i.update()}),o(2,"div",4)(3,"div"),Li(4),a()()(),C(5,qd,3,2,"ng-container",5),a()),n&2&&(m("ngAttr",i.state),s(),m("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),s(4),m("ngIf",!i.disabled))},dependencies:[ne,Jd,tp,li,ep,Kd,Qd],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 mi=[{name:"Dashboard",url:"/dashboard",icon:"fa-solid fa-house",visible:!0},{name:"My BluVault",url:"/bluvault",icon:"fa-solid fa-database",visible:!0},{name:"Settings",url:"/settings",icon:"fa-solid fa-gears",visible:!0},{name:"Manage assets",url:"/manageAssets",icon:"fa-solid fa-cubes",visible:!0},{name:"Policy Management",url:"/pms",icon:"fa-regular fa-file-lines",visible:!0},{name:"User Migration",url:"/userMigration",icon:"fa-solid fa-arrow-right-arrow-left",visible:!0},{name:"Users",url:"/users",icon:"fa-solid fa-users",visible:!0},{name:"Unusual Activity Dashboard",url:"/manageUnusualActivities",icon:"fa-solid fa-shield",visible:!0},{name:"Support",url:"/support",icon:"fa-solid fa-headset",visible:!0},{name:"Downloads",url:"/downloads",icon:"fa-solid fa-cloud-arrow-down",visible:!0}];var Ha=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ut({type:t});static \u0275inj=dt({imports:[la]})}return t})();function ip(t,c){t&1&&(o(0,"div",0),b(1,"div",1),a())}var ja=(()=>{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(U(e=>{e instanceof on?this.loadingService.loadingOn():e instanceof an&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(bt),y(re))}}static{this.\u0275cmp=F({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(C(0,ip,2,0,"div",0),me(1,"async")),n&2&&Ae(Hi(1,1,i.loading$)?0:-1)},dependencies:[Ha,Ji],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 Wa=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],np=()=>["/mspDashboard"],rp=()=>["/dashboard"],op=()=>["/bluvault"];function ap(t,c){t&1&&(o(0,"c-sidebar-footer",15),b(1,"button",16),a())}function sp(t,c){if(t&1){let e=w();o(0,"c-sidebar",9,0)(2,"c-sidebar-header",10)(3,"c-sidebar-brand",11)(4,"img",12),_("error",function(i){u(e);let r=h();return g(r.onImageError(i))}),a()()(),o(5,"ng-scrollbar",13,1),_("updated",function(){u(e);let i=te(6),r=h();return g(r.onScrollbarUpdate(i.state))}),b(7,"c-sidebar-nav",14,2),a(),C(9,ap,2,0,"c-sidebar-footer",15),a()}if(t&2){let e=te(1),n=h();s(3),m("routerLink",n.isMspEnabled&&R(4,Wa).includes(n.userType)?R(5,np):R(6,Wa).includes(n.userType)?R(7,rp):R(8,op)),s(),m("src",n.parabluLogo,ee),s(3),m("navItems",n.navItems),s(2),Ae(e.narrow?-1:9)}}var qa=(()=>{class t{constructor(e,n,i){this.sharedService=e,this.licenseCheckService=n,this.userRoleService=i,this.navItems=mi,this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.imageSrc=["assets/brand/crashplan-logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"];let r=localStorage.getItem("theme-default"),p=r||localStorage.setItem("theme-default",'"light"');this.parabluLogo=p==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return Y(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.navItems=yield this.getFilteredNavItems()})}onScrollbarUpdate(e){}getFilteredNavItems(){return Y(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,mi.map(e=>(this.inclusionLicenses.includes("msp_environment_enabled")&&(this.userType=="admin"||this.userType=="readOnlyAdmin")?(e.name==="My BluVault"||e.name==="Downloads"||e.name=="Policy Management"||e.name=="Unusual Activity Dashboard"||e.name=="User Migration")&&(e.visible=!1):e.name==="My BluVault"||e.name==="Downloads"?e.visible=!0:e.name=="Unusual Activity Dashboard"?this.inclusionLicenses.includes("rwdetectionenabled")&&(this.userType=="admin"||this.userType=="superAdmin")?e.visible=this.shouldShowSettings():e.visible=!1:e.name=="Settings"&&(this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")||e.name=="User Migration"&&(this.userType=="readOnlyAdmin"||this.inclusionLicenses.includes("gmail_backup_enabled")||this.inclusionLicenses.includes("gdrive_backup_enabled"))?e.visible=!1:e.visible=this.shouldShowSettings(),this.inclusionLicenses.includes("issmblicenseenabled")&&e.name=="User Migration"&&(e.visible=!1),e.name=="User Migration"&&!(this.userType=="admin"||this.userType=="superAdmin")&&(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)(y(oe),y(Je),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-dashboard"]],features:[ie([])],decls:8,vars:3,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],["class","d-print-none sidebar sidebar-fixed border-end","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll"],[1,"body","flex-grow-1"],["breakpoint","lg",1,"h-auto","px-4"],[3,"detectRouteTransitions"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","border-end"],[1,"border-bottom",2,"cursor","pointer"],[3,"routerLink"],["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&&(C(0,sp,10,9,"c-sidebar",3),o(1,"div",4),b(2,"app-default-header",5),o(3,"div",6)(4,"c-container",7),b(5,"router-outlet"),a()(),b(6,"loading-indicator",8)(7,"app-default-footer"),a()),n&2&&(m("ngIf",i.showSideBar),s(2),m("cShadowOnScroll","sm"),s(4),m("detectRouteTransitions",!0))},dependencies:[Wo,Jo,Ut,St,za,$o,Yo,Ft,qo,Ma,ko,Rt,Ct,he,ne,Sa,ja],styles:["[_nghost-%COMP%]   .ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-padding: 1px;--scrollbar-size: 5px;--scrollbar-thumb-color: var(--cui-gray-500, #999);--scrollbar-thumb-hover-color: var(--cui-gray-400, #999);--scrollbar-hover-size: calc(var(--scrollbar-size) * 1.5)}"]})}}return t})();var Ja=(()=>{class t{constructor(e){this.toastr=e}showOnSuccess(){this.toastr.success("Successfully Added....","Success")}static{this.\u0275fac=function(n){return new(n||t)(y(we))}}static{this.\u0275cmp=F({type:t,selectors:[["app-toastalert"]],decls:4,vars:0,consts:[["cButton","","color","success",1,"m-1",3,"click"]],template:function(n,i){n&1&&(o(0,"p"),d(1,"toastalert works!"),a(),o(2,"button",0),_("click",function(){return i.showOnSuccess()}),d(3," Add toast "),a())},encapsulation:2})}}return t})();var v=(()=>{class t{constructor(e,n,i,r){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=r}canActivate(e,n){return Y(this,null,function*(){let i=yield this.userRoleService.getUserRole(),r=e.data?.roles;if(r&&i&&r.includes(i))return!0;let p=this.authService.getToken();return!p||p.trim()===""||i=="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1})}static{this.\u0275fac=function(n){return new(n||t)(j(re),j(oe),j(q),j(ae))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var lp=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],cp=[import("./chunk-4OOG7I47.js"),import("./chunk-URSGSR36.js"),import("./chunk-NKBWAB5W.js"),import("./chunk-FXOE2IJ2.js"),import("./chunk-V5K2LAA3.js"),import("./chunk-HXIE2HEN.js")],Ya=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:qa,children:[{path:"dashboard",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7MSED5FU.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-EVJ33QZ6.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-STWOY4NE.js").then(t=>t.routes)},{path:"bluvault",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-GMZA7YWO.js").then(t=>t.routes)},{path:"backup/files",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-P6KH2QNI.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-Z3X6ZRLZ.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HOTS3HYN.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UYJDH5MM.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HOTS3HYN.js").then(t=>t.routes)},{path:"pms",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DXPUCHI6.js").then(t=>t.routes)},{path:"pms/policy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KTJF4OUV.js").then(t=>t.routes)},{path:"pms/policy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UROSHXWZ.js").then(t=>t.routes)},{path:"pms/policy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KD6WA2MV.js").then(t=>t.routes)},{path:"pms/policy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YA5WH76S.js").then(t=>t.routes)},{path:"pms/policy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XUTZAUQ7.js").then(t=>t.routes)},{path:"pms/policy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BIMBYYE4.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4K52IYZK.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VLMFX4U6.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DWJXJ7WA.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MPLCA3ME.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3B77MDRT.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-G42HKBP7.js").then(t=>t.routes)},{path:"pms/exchangePolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DHZQLLQ3.js").then(t=>t.routes)},{path:"pms/exchangePolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OYYGOCZP.js").then(t=>t.routes)},{path:"pms/exchangePolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-T4WXZL67.js").then(t=>t.routes)},{path:"pms/exchangePolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-USOTM3R5.js").then(t=>t.routes)},{path:"pms/exchangePolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MBES6KJG.js").then(t=>t.routes)},{path:"pms/exchangePolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UUQVETND.js").then(t=>t.routes)},{path:"pms/sharepointPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-T65IBR3N.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VBNA3ULT.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MF4TQRFH.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-I72US2UT.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/policyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Y27HQLDD.js").then(t=>t.routes)},{path:"pms/gmailPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ARJCUBOI.js").then(t=>t.routes)},{path:"pms/gmailPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MWETBVWG.js").then(t=>t.routes)},{path:"pms/gmailPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-AJS45LTZ.js").then(t=>t.routes)},{path:"pms/gmailPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UXLD7T45.js").then(t=>t.routes)},{path:"pms/gmailPolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QSSBA7JH.js").then(t=>t.routes)},{path:"pms/gmailPolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JZZJ45J6.js").then(t=>t.routes)},{path:"pms/syncPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MEANVVJO.js").then(t=>t.routes)},{path:"pms/syncPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WWNE4UT6.js").then(t=>t.routes)},{path:"pms/syncPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VPCNDZB4.js").then(t=>t.routes)},{path:"pms/syncPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WTD4M3XN.js").then(t=>t.routes)},{path:"pms/syncPolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3WHGD2LM.js").then(t=>t.routes)},{path:"pms/syncPolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-XHGNTU3R.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-TRUS47AF.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LEMIYY4H.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-E4UAXBM6.js").then(t=>t.routes)},...lp.map((t,c)=>({path:`pms/:productKey${t}`,canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>cp[c].then(e=>e.routes)})),{path:"settings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-SH77LHGV.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4MENXXOL.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-O7KFWOOM.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-2Q2T67ZJ.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-IVDTK7YJ.js").then(t=>t.routes)},{path:"azure",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-2Q2T67ZJ.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YS2H6HU3.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7FWL4TOI.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HSNY2OZS.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YGZKQROR.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LHAOXGJB.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DRFXOLY6.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-OI3BSAQQ.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DVUQTB23.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DVUQTB23.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XLERWVX7.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-2EL33PXG.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-KDT4ESR2.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-ZP3IQC6D.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DRFXOLY6.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-VJRQREKX.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7WMYYDB3.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-NNLAMVCG.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-OTKBXA4G.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YGZKQROR.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HSNY2OZS.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LHAOXGJB.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-C7TFHU6H.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-FDLLW7PZ.js").then(t=>t.routes)},{path:"userMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-CL7UD2VB.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-SVC35VR2.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-3OEOSG4G.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6FNOEU47.js").then(t=>t.routes)},{path:"users",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-X5FG3POX.js").then(t=>t.routes)},{path:"users/create",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IW7EOREL.js").then(t=>t.routes)},{path:"users/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-37LZPN6X.js").then(t=>t.routes)},{path:"users/profile",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-3PUEXLLL.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-UGSGJTKW.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-UGSGJTKW.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-G7I4KD7Y.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-ADMDUTFZ.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RZ2GWLTY.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-JBRJQLO6.js").then(t=>t.routes)},{path:"support",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-THDJL5XW.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-73GFATEX.js").then(t=>t.routes)},{path:"downloads",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-WD33MLV2.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YYRTZEEW.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PNWNS3R2.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NZJ4L5YE.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ESUUCJHL.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MSYKPORA.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KCDT3WL2.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-M7QH5CJ7.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-I3VGYXN5.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-5E2HB2FE.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-K65UVLAP.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EFTXDKG5.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-GINTN4HT.js").then(t=>t.routes)},{path:"sync/files",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-T5PZNHSS.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-GEP7TZO6.js").then(t=>t.routes)},{path:"theme",loadChildren:()=>import("./chunk-QN46SROB.js").then(t=>t.routes)},{path:"base",loadChildren:()=>import("./chunk-S2LI6TLG.js").then(t=>t.routes)},{path:"buttons",loadChildren:()=>import("./chunk-AN6WUD6B.js").then(t=>t.routes)},{path:"forms",loadChildren:()=>import("./chunk-46CIW363.js").then(t=>t.routes)},{path:"icons",loadChildren:()=>import("./chunk-3X5YRNJD.js").then(t=>t.routes)},{path:"notifications",loadChildren:()=>import("./chunk-L2GM6X7Y.js").then(t=>t.routes)},{path:"widgets",loadChildren:()=>import("./chunk-GBBIQX5Z.js").then(t=>t.routes)},{path:"charts",loadChildren:()=>import("./chunk-4HJNSNXD.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-ASUTMKWN.js").then(t=>t.routes)}]},{path:"pms/policy/create",loadComponent:()=>import("./chunk-WHYKACLY.js").then(t=>t.CreateComponent),data:{title:"Policy Create"}},{path:"toast",component:Ja,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-MP3ILXEV.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-HHJ3CMOI.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-3L7X26NS.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-BE5HMLZP.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-BE5HMLZP.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-BE5HMLZP.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-XKRN57ZB.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-BE5HMLZP.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-BE5HMLZP.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"fileArchivedView",loadComponent:()=>import("./chunk-K42MZLX3.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-NT2NRMLN.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-4M2RZDZC.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-2GALXODM.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}},{path:"register",loadComponent:()=>import("./chunk-SJJBJF4E.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[v],loadComponent:()=>import("./chunk-P6SK4V7B.js").then(t=>t.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[v],loadComponent:()=>import("./chunk-Y4MXMZOY.js").then(t=>t.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:":productKey/PolicyView",canActivate:[v],loadComponent:()=>import("./chunk-KYRYS4LT.js").then(t=>t.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[v],loadComponent:()=>import("./chunk-NTQ5CRNR.js").then(t=>t.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[v],loadComponent:()=>import("./chunk-DONL5725.js").then(t=>t.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[v],loadComponent:()=>import("./chunk-NMMC5ZMF.js").then(t=>t.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var dp="@",pp=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Ee(Di);loadingSchedulerFn=Ee(mp,{optional:!0});_engine;constructor(e,n,i,r,p){this.doc=e,this.delegate=n,this.zone=i,this.animationType=r,this.moduleImpl=p}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-36NPTGQV.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new Ti(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc);let p=new r(this.delegate,this._engine,this.zone);return this.delegate=p,p})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let r=new hi(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(p=>{let l=p.createRenderer(e,n);r.use(l),this.scheduler??=this.injector.get(Ai,null,{optional:!0}),this.scheduler?.notify(11)}).catch(p=>{r.use(i)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(n){Ni()};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),hi=class{delegate;replay=[];\u0275type=1;constructor(c){this.delegate=c}use(c){if(this.delegate=c,this.replay!==null){for(let e of this.replay)e(c);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(c,e){return this.delegate.createElement(c,e)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}get destroyNode(){return this.delegate.destroyNode}appendChild(c,e){this.delegate.appendChild(c,e)}insertBefore(c,e,n,i){this.delegate.insertBefore(c,e,n,i)}removeChild(c,e,n){this.delegate.removeChild(c,e,n)}selectRootElement(c,e){return this.delegate.selectRootElement(c,e)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,e,n,i){this.delegate.setAttribute(c,e,n,i)}removeAttribute(c,e,n){this.delegate.removeAttribute(c,e,n)}addClass(c,e){this.delegate.addClass(c,e)}removeClass(c,e){this.delegate.removeClass(c,e)}setStyle(c,e,n,i){this.delegate.setStyle(c,e,n,i)}removeStyle(c,e,n){this.delegate.removeStyle(c,e,n)}setProperty(c,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(c,e,n)),this.delegate.setProperty(c,e,n)}setValue(c,e){this.delegate.setValue(c,e)}listen(c,e,n,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(c,e,n,i)),this.delegate.listen(c,e,n,i)}shouldReplay(c){return this.replay!==null&&c.startsWith(dp)}},mp=new Ue("");function at(t="animations"){return mt("NgAsyncAnimations"),Mi([{provide:ht,useFactory:(c,e,n)=>new pp(c,e,n,t),deps:[K,yt,pe]},{provide:Qe,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var $a={providers:[Xi(),ln(Ya,pn({onSameUrlNavigation:"reload"}),cn({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),dn(),mn()),Ei(Qo,Ao),wt,ya(),at("noop"),ha({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),at(),qe]};function hp(t){return()=>t.loadConfig().toPromise().then(c=>{t.setConfig(c)})}tn(_a,{providers:[...$a.providers,bt,{provide:Vi,useFactory:hp,deps:[qe],multi:!0},{provide:Zi,useClass:en,multi:!0},at()]}).catch(t=>console.error(t));export{hp as loadConfig};
