import{$ as pr,$a as mo,A as Vn,Aa as Vr,B as Bn,Ba as Br,C as Ln,Ca as Lr,D as Gn,Da as Gr,E as zn,Ea as zr,F as Hn,Fa as Hr,G as jn,Ga as jr,H as Wn,Ha as Wr,I as qn,Ia as qr,J as Jn,Ja as Jr,K as Yn,Ka as Yr,L as $n,La as $r,M as Qn,Ma as Qr,N as Kn,Na as Kr,O as Zn,Oa as Zr,P as Xn,Pa as Xr,Q as er,Qa as eo,R as tr,Ra as to,S as ir,Sa as io,T as nr,Ta as no,U as rr,Ua as ro,V as or,Va as oo,W as ar,Wa as ao,X as sr,Xa as so,Y as lr,Ya as lo,Z as cr,Za as co,_ as dr,_a as po,a as un,aa as mr,ab as ho,b as gn,ba as hr,bb as uo,c as fn,ca as ur,cb as go,d as vn,da as gr,db as fo,e as _n,ea as fr,f as bn,fa as vr,g as yn,ga as _r,h as Cn,ha as br,i as Sn,ia as yr,j as wn,ja as Cr,k as xn,ka as Sr,la as wr,m as kn,ma as xr,n as In,na as kr,o as Tn,oa as Ir,p as Mn,pa as Tr,q as En,qa as Mr,r as Pn,ra as Er,sa as Pr,t as Dn,ta as Dr,u as On,ua as Or,v as An,va as Ar,w as Rn,wa as Rr,x as Un,xa as Ur,y as Fn,ya as Fr,z as Nn,za as Nr}from"./chunk-YMPBRAMJ.js";import{a as ga}from"./chunk-6P3PTEJJ.js";import{a as da,b as Wt}from"./chunk-47NOLZLE.js";import{k as bo,l as tt,m as kt,o as yo,q as It,s as Co,x as So}from"./chunk-5CPVWA4L.js";import{a as pa,b as qt,d as ma,e as ha,f as Jt}from"./chunk-FITPDU3A.js";import{a as Je}from"./chunk-DZCRME5F.js";import{a as fa}from"./chunk-P45W5AKE.js";import{a as _o,b as ke,c as ua}from"./chunk-P26KST3Z.js";import{a as ri,b as Ht,i as xe,j as ca,l as jt}from"./chunk-35ZOE3OZ.js";import{a as bt,b as $i,c as Qi,e as q,f as oe,g as qe,i as ae,j as Z}from"./chunk-2QHWGTUH.js";import{D as zt,b as ta,c as Bt,g as Lt,h as ia,j as na,l as Gt,m as ra,t as oa,u as aa,v as sa,y as la}from"./chunk-7RPCZF4K.js";import{$ as We,$b as Yo,A as en,B as tn,Bb as Ho,C as he,Cb as jo,D as Ct,Db as Wo,E as nn,Ea as Io,F as rn,G as on,Ga as Tt,I as je,J as an,K as sn,L as ln,M as St,N as re,Na as To,O as wt,P as cn,Pa as Mt,Q as dn,Qa as Et,R as pn,S as mn,T as hn,Ta as Pt,U as xt,V as vo,W as wo,Xb as qo,Yb as Ut,Za as Mo,Zb as Ft,_a as Eo,_b as Jo,a as ji,ab as Po,ac as $o,b as K,ba as ni,bb as Do,bc as Qo,ca as xo,cb as Oo,cc as Ko,db as Ao,e as Wi,eb as Ro,fb as Uo,gc as Nt,h as qi,hc as Zo,i as Ji,ib as Dt,ic as Xo,j as Yi,jb as Fo,jc as ea,k as Ce,mb as No,nb as Vo,o as Ki,ob as Ot,p as yt,pc as Vt,q as ne,qb as At,rb as Rt,tb as Bo,u as He,ub as we,v as Zi,w as Xi,wb as Lo,xa as ko,xb as Go,y as Se,yb as zo}from"./chunk-6564DHLL.js";import{$b as ye,A as bi,Ab as $,B as W,Ba as Oe,Ca as me,Cb as ce,D as _e,Dc as te,E as lt,Eb as C,Ec as Gi,F as yi,Fc as c,Ga as J,Gc as A,Hc as E,I as Zt,Ib as Ni,Ic as Le,K as Ci,L as Si,Lc as P,M as ct,Mc as D,N as wi,Na as Ri,Nc as O,O as xi,Oa as Qe,Pb as Ae,Qb as p,Ra as mt,Rb as gt,Rc as ie,S as ki,Sb as Re,Sc as R,Tc as G,Uc as ii,Vb as Ke,Vc as de,Wc as zi,X as $e,Xb as ge,Xc as vt,Y as se,Yc as Ge,Z as Ii,Zb as Be,Zc as _t,_ as U,_b as be,a as gi,aa as Ti,ac as o,bc as a,c as Ue,ca as le,cb as ei,cc as b,cd as ze,da as dt,db as Ne,dc as Ze,eb as ee,ec as Xe,f as ve,fa as Fe,fc as ft,g as fi,gc as w,ha as j,ia as De,ib as s,j as st,ja as Mi,jb as Ui,jd as Hi,k as vi,ka as Ei,mb as ht,nb as Ve,ob as y,oc as _,p as Pe,pa as Pi,pb as Fi,qa as g,qc as h,ra as f,rc as Vi,sa as pt,sc as Bi,ta as Xt,tc as Q,u as H,uc as et,vc as ti,w as _i,wa as Di,wc as Li,xc as B,ya as Oi,yb as F,yc as N,za as Ai,zb as ut,zc as V}from"./chunk-YRCUNHHT.js";import{a as L,b as ue,i as Y}from"./chunk-2AVGQ2MQ.js";var va=["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 _a=["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 ba={cibCcAmex:un,cibCcApplePay:gn,cibCcMastercard:fn,cibCcPaypal:vn,cibCcStripe:_n,cibCcVisa:bn,cibFacebook:yn,cibGoogle:Cn,cibLinkedin:Sn,cibSkype:wn,cibTwitter:xn,cifBr:kn,cifEs:In,cifFr:Tn,cifIn:Mn,cifPl:En,cifUs:Pn,cilAccountLogout:Dn,cilAlignCenter:On,cilAlignLeft:An,cilAlignRight:Rn,cilApplicationsSettings:Un,cilArrowBottom:Fn,cilArrowRight:Nn,cilArrowTop:Bn,cilBasket:Ln,cilBell:Gn,cilBold:zn,cilBookmark:Hn,cilCalculator:jn,cilCalendar:Wn,cilChart:Jn,cilChartPie:qn,cilCheck:$n,cilCheckAlt:Yn,cilChevronLeft:Qn,cilChevronRight:Kn,cilCloud:Xn,cilCloudDownload:Zn,cilCode:er,cilCommentSquare:tr,cilContrast:ir,cilCreditCard:nr,cilCursor:rr,cilDescription:or,cilDollar:sr,cilDrop:lr,cilEnvelopeClosed:cr,cilEnvelopeOpen:dr,cilFile:mr,cilGrid:ur,cilHome:vr,cilInbox:_r,cilIndentDecrease:br,cilIndentIncrease:yr,cilItalic:Cr,cilJustifyCenter:Sr,cilLanguage:wr,cilLayers:xr,cilList:Ir,cilListNumbered:kr,cilLocationPin:Tr,cilLockLocked:Mr,cilMagnifyingGlass:Er,cilMap:Pr,cilMediaPlay:Or,cilMediaRecord:Ar,cilMenu:Ur,cilMoon:Fr,cilNotes:Nr,cilOptions:Vr,cilPaperclip:Lr,cilPaperPlane:Br,cilPen:Gr,cilPencil:zr,cilPeople:Hr,cilPrint:jr,cilPuzzle:Wr,cilReportSlash:Jr,cilSave:Yr,cilSettings:Qr,cilShare:Xr,cilShareAll:Kr,cilShareBoxed:Zr,cilSpeech:io,cilSpeedometer:no,cilSpreadsheet:ro,cilStar:oo,cilSun:ao,cilTags:so,cilTask:lo,cilTrash:po,cilUnderline:mo,cilUser:fo,cilUserFemale:ho,cilUserFollow:uo,cilUserUnfollow:go,logo:_a,signet:va,cilDevices:ar,cilSitemap:to,cilTransfer:co,cilHistory:fr,cilHandshake:gr,cilReload:qr,cilFullscreen:hr,cilMediaPause:Dr,cilMediaStop:Rr,cilShieldAlt:eo,cilArrowThickBottom:Vn,cilEqualizer:pr,cilSend:$r};var ya=(()=>{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({},ba)}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(rn),y(xt),y(_o))}}static{this.\u0275cmp=F({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[St],encapsulation:2})}}return t})();var es=(()=>{class t extends It{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(j(K),j(tt),j(kt))};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})();function ts(){return new yo}function is(t,l,e){return new So(t,l,e)}var Ca=[{provide:kt,useFactory:ts},{provide:It,useClass:es},{provide:ht,useFactory:is,deps:[Ct,It,me]}],Gp=[{provide:tt,useClass:bo},{provide:Qe,useValue:"NoopAnimations"},...Ca],ns=[{provide:tt,useFactory:()=>new Co},{provide:Qe,useFactory:()=>"BrowserAnimations"},...Ca];function Sa(){return mt("NgEagerAnimations"),[...ns]}var os=t=>({display:t});function as(t,l){if(t&1){let e=w();o(0,"div",33),_("click",function(){g(e);let i=h();return f(i.openChatbot())}),b(1,"input",34),o(2,"label",35),b(3,"span",36)(4,"span",37)(5,"span",38),a()()}}var xa=(()=>{class t extends Uo{constructor(e,n,i,r,d,u){super(),this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.sharedService=d,this.userRoleService=u,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(m=>{m 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,d=this.get(".msger-chat");S("CrashPlan",r,"left",e,n);function u(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 m(x,I){return Math.floor(Math.random()*(I-x)+x)}function S(x,I,T,k,M){let z=u(new Date),Me="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);k=k.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let Ye="";M==""&&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>
              ${M&&M.length>0?`
              <p>
                <a href="javascript:void(0);" id="${Me}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${Me}-sources" class="sources-container" style="display: none;">
                ${M.map(Ee=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${Ee.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${Ee.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${Ee.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,d.insertAdjacentHTML("beforeend",Ye),setTimeout(()=>{let Ee=document.getElementById(`${Me}-toggle`),Kt=document.getElementById(`${Me}-sources`);Ee&&Kt&&Ee.addEventListener("click",function(){let ui=Kt.style.display==="none";Kt.style.display=ui?"block":"none",Ee.innerText=ui?"Hide sources":"Show sources"})},0),d.scrollTop+=500}}showSources(e){let n=document.getElementById(`sources-${e}`);n&&(n.style.display=n.style.display==="none"?"block":"none")}createChatLayoutUser(e){let n=this.userLogo,i=this.get(".msger-chat"),r=atob(this.sharedService.getDataByKey("userName"));m(r,n,"right",e);function d(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 u(S,x){return Math.floor(Math.random()*(x-S)+S)}function m(S,x,I,T){var k=d(new Date);let M='<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",M),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(ke),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,as,6,0,"div",0),o(1,"div",1)(2,"a",2),c(3),a()(),o(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4",7),c(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),c(20," Ask CrashPlan! "),a(),o(21,"div",17)(22,"span")(23,"a",18),_("click",function(){return i.startOverChat()}),c(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),c(31,"CrashPlan"),a(),o(32,"div",25),c(33),a()(),o(34,"div",26),c(35,"Hello ! Ask me anything about CrashPlan Software "),a()()()(),o(36,"c-card")(37,"c-card-header")(38,"label",27),c(39,"Query :"),a()(),o(40,"c-card-body")(41,"form",28)(42,"div",29)(43,"input",30),O("ngModelChange",function(d){return D(i.query,d)||(i.query=d),d}),a()(),o(44,"div",31)(45,"button",32),_("click",function(){return i.getChatbotResults()}),c(46,"Send"),a()()()()()()()()()()()()()),n&2&&(p("ngIf",i.enableCopilot=="yes"&&i.userType=="admin"),s(3),E("\xA9 CrashPlan ",i.currentYear," "),s(),p("ngStyle",G(8,os,i.displayCreateStyle)),s(23),Gi("background-image: url(",i.neilLogo,")"),s(6),A(i.todaysDate),s(10),P("ngModel",i.query))},dependencies:[He,zt,ra,Bt,Lt,ia,Gt,na,he,ne,we,Ce,Wt,jt,qt,Jt,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 ss(t,l){if(t&1){let e=w();o(0,"div",7)(1,"button",9),_("click",function(){g(e);let i=h();return f(i.navigateToSales())}),c(2,"Contact Sales"),a()()}}var ka=(()=>{class t{constructor(e,n){this.sharedService=e,this.userRoleService=n,this.closeModalHandler=new Oe,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([Se,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),c(6,"Your Organization is not licensed to use the CrashPlan Endpoint Product"),a(),o(7,"p",5),c(8," Contact Sales for more information. "),a(),o(9,"div"),C(10,ss,3,0,"div",6),o(11,"div",7)(12,"button",8),_("click",function(){return i.closeSelf()}),c(13,"Back to Dashboard"),a()()()()()()()()),n&2&&(s(10),p("ngIf",i.userType==="admin"))},dependencies:[he,ne,Ce,we],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 ls=["deviceDropdown"],cs=["deviceDropdownCS"],ds=["contentFrame"],ps=["userDeviceSearch"],ms=["fileSearch"],hs=["contentSearch"],us=["contentSearchMailInput"],gs=["deviceDropdownR"],fs=["contentCalendarFrame"],vs=["searchInput"],fe=t=>({display:t}),Ie=()=>["Google Drive","Gmail"],_s=t=>[t],bs=()=>({"col-lg-5":!0}),ys=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),Cs=()=>({"col-lg-3":!0}),Ss=(t,l)=>({active:t,disabled:l}),ws=t=>({"background-color":t}),Ia=()=>["Gmail","Google Drive"],xs=t=>({selected:t});function ks(t,l){if(t&1){let e=w();o(0,"c-nav-item")(1,"button",16),_("click",function(){g(e);let i=h();return f(i.setActiveSearchTab("content",2))}),c(2," Full text search "),a()()}if(t&2){h();let e=te(15);s(),p("cTabContent",e)("tabPaneIdx",2)}}function Is(t,l){if(t&1&&(o(0,"c-card"),c(1),a()),t&2){let e=h();s(),E(" ",e.noUsersFoundText," ")}}function Ts(t,l){if(t&1){let e=w();o(0,"c-col",83)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=g(e).$implicit,r=h(2);return f(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"),c(9),a()()()()()()()}if(t&2){let e=l.$implicit;s(7),Q("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Ms(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),c(2),a(),o(3,"c-card-body",82),be(4,Ts,10,2,"c-col",83,Be),a()()),t&2){let e=h();s(2),E("",e.foundUsers.length," User(s) found: "),s(2),ye(e.foundUsers)}}function Es(t,l){if(t&1&&(o(0,"c-card"),c(1),a()),t&2){let e=h();s(),E(" ",e.noUsersFoundText," ")}}function Ps(t,l){if(t&1){let e=w();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=g(e).$implicit,r=h(2);return f(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"),c(9),a()()()()()()()}if(t&2){let e=l.$implicit;s(7),Q("title",e.userName),s(2),A((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Ds(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),c(2),a(),o(3,"c-card-body",82),be(4,Ps,10,2,"c-col",90,Be),a()()),t&2){let e=h();s(2),E("",e.foundSites.length," Site(s) found: "),s(2),ye(e.foundSites)}}function Os(t,l){if(t&1&&(o(0,"c-card"),c(1),a()),t&2){let e=h();s(),E(" ",e.noDevicesFoundText," ")}}function As(t,l){if(t&1){let e=w();o(0,"c-col",90)(1,"c-card",84)(2,"c-card-body",85),_("click",function(){let i=g(e).$implicit,r=h(2);return f(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"),c(9),a()()()()()()()}if(t&2){let e=l.$implicit;s(7),Q("title",e.deviceName),s(2),Le("",(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 Rs(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-header",81),c(2),a(),o(3,"c-card-body",82),be(4,As,10,3,"c-col",90,Be),a()()),t&2){let e=h();s(2),E("",e.foundDevices.length," Device(s) found: "),s(2),ye(e.foundDevices)}}function Us(t,l){t&1&&(o(0,"option",93),c(1,"BluVault"),a())}function Fs(t,l){t&1&&(o(0,"option",94),c(1,"OneDrive for Business"),a())}function Ns(t,l){t&1&&(o(0,"option",95),c(1,"SharePoint Online"),a())}function Vs(t,l){if(t&1&&(o(0,"option",30),c(1),a()),t&2){let e=h().$implicit;p("value",e.key),s(),A(e.title)}}function Bs(t,l){if(t&1&&C(0,Vs,2,2,"option",96),t&2){let e=l.$implicit,n=h();p("ngIf",n.productsLicensed.includes(e.key))}}function Ls(t,l){if(t&1){let e=w();o(0,"div",97)(1,"label"),c(2,"User Id"),a(),o(3,"select2",98),O("ngModelChange",function(i){g(e);let r=h();return D(r.selectedValue,i)||(r.selectedValue=i),f(i)}),_("search",function(i){g(e);let r=h();return f(r.onSearch(i))})("update",function(i){g(e);let r=h();return f(r.update(i))}),a()()}if(t&2){let e=h();s(3),p("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("disabled",e.userType==="user"),P("ngModel",e.selectedValue)}}function Gs(t,l){if(t&1){let e=w();o(0,"div",97)(1,"label"),c(2,"Site"),a(),o(3,"select2",99),O("ngModelChange",function(i){g(e);let r=h();return D(r.selectedValueSite,i)||(r.selectedValueSite=i),f(i)}),_("search",function(i){g(e);let r=h();return f(r.onSearchSite(i))})("update",function(i){g(e);let r=h();return f(r.updateSite(i))}),a()()}if(t&2){let e=h();s(3),p("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite),P("ngModel",e.selectedValueSite)}}function zs(t,l){if(t&1&&(o(0,"option",30),c(1),a()),t&2){let e=l.$implicit;p("value",e.deviceUUID),s(),E(" ",e.deviceName," ")}}function Hs(t,l){t&1&&(o(0,"option"),c(1," User has no assets configured "),a())}function js(t,l){if(t&1&&(o(0,"div",97)(1,"label"),c(2,"Asset Name"),a(),o(3,"select",100,3),C(5,zs,2,2,"option",101)(6,Hs,2,0,"option",17),a()()),t&2){let e=h();s(5),p("ngForOf",e.devices),s(),p("ngIf",e.devices.length==0)}}function Ws(t,l){t&1&&(o(0,"c-row")(1,"c-card",11)(2,"c-card-body")(3,"b"),c(4,"There are no results!."),a()()()())}function qs(t,l){if(t&1){let e=w();o(0,"tr")(1,"td")(2,"div")(3,"h4"),c(4),a()(),o(5,"p",108)(6,"b"),c(7,"Found in: "),a(),c(8),a()(),o(9,"td")(10,"button",109),_("click",function(){let i=g(e).$implicit,r=h(2);return f(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeFiles))}),c(11," Download"),a(),o(12,"button",110),_("click",function(){let i=g(e).$implicit,r=h(2);return f(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeFiles,i.backup))}),c(13," Open File Location"),a()()()}if(t&2){let e=l.$implicit;s(4),A(e.fileName),s(4),A(e.filePath)}}function Js(t,l){if(t&1&&(o(0,"c-row",102)(1,"table",103)(2,"thead",104)(3,"tr")(4,"th",105),c(5,"File Name "),a(),o(6,"th",106),c(7,"Actions"),a()()(),o(8,"tbody"),C(9,qs,14,2,"tr",107),a()()()),t&2){let e=h();s(),p("hover",!0)("responsive",!0),s(8),p("ngForOf",e.foundFiles)}}function Ys(t,l){t&1&&(o(0,"option",111),c(1,"Microsoft Exchange"),a())}function $s(t,l){t&1&&(o(0,"option",94),c(1,"OneDrive for Business"),a())}function Qs(t,l){t&1&&(o(0,"option",95),c(1,"SharePoint Online"),a())}function Ks(t,l){t&1&&(o(0,"option",112),c(1,"Gmail"),a())}function Zs(t,l){if(t&1&&(o(0,"option",30),c(1),a()),t&2){let e=h().$implicit;p("value",e.key),s(),A(e.title)}}function Xs(t,l){if(t&1&&C(0,Zs,2,2,"option",96),t&2){let e=l.$implicit,n=h();p("ngIf",n.checkFeatureLicensed(G(1,_s,e.key)))}}function el(t,l){if(t&1){let e=w();o(0,"div",97)(1,"label"),c(2,"User Id"),a(),o(3,"select2",113),O("ngModelChange",function(i){g(e);let r=h();return D(r.selectedValueCS,i)||(r.selectedValueCS=i),f(i)}),_("search",function(i){g(e);let r=h();return f(r.onSearchContentSearch(i))})("update",function(i){g(e);let r=h();return f(r.updateContentSearch(i))}),a()()}if(t&2){let e=h();s(3),p("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),P("ngModel",e.selectedValueCS)}}function tl(t,l){if(t&1){let e=w();o(0,"div",97)(1,"label"),c(2,"Site"),a(),o(3,"select2",114),O("ngModelChange",function(i){g(e);let r=h();return D(r.selectedValueSiteCS,i)||(r.selectedValueSiteCS=i),f(i)}),_("search",function(i){g(e);let r=h();return f(r.onSearchSiteContentSearch(i))})("update",function(i){g(e);let r=h();return f(r.updateSiteContentSearch(i))}),a()()}if(t&2){let e=h();s(3),p("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),P("ngModel",e.selectedValueSiteCS)}}function il(t,l){if(t&1&&(o(0,"option",30),c(1),a()),t&2){let e=l.$implicit;p("value",e.deviceUUID),s(),E(" ",e.deviceName," ")}}function nl(t,l){t&1&&(o(0,"option"),c(1," User has no assets configured "),a())}function rl(t,l){if(t&1){let e=w();o(0,"div",97)(1,"label"),c(2,"Asset Name"),a(),o(3,"select",115,4),_("change",function(){g(e);let i=h();return f(i.onDeviceChangeCS())}),C(5,il,2,2,"option",101)(6,nl,2,0,"option",17),a()()}if(t&2){let e=h();s(5),p("ngForOf",e.devicesCS),s(),p("ngIf",e.devicesCS.length==0)}}function ol(t,l){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){g(e);let r=h();return D(r.contentSearchText,i)||(r.contentSearchText=i),f(i)}),_("keydown.enter",function(){g(e);let i=h();return f(i.searchForContent())}),a()()(),o(5,"div",35)(6,"button",36),_("click",function(){g(e);let i=h();return f(i.searchForContent())}),c(7,"Search"),a()()()}if(t&2){let e=h();s(3),P("ngModel",e.contentSearchText)}}function al(t,l){if(t&1){let e=w();o(0,"div",35)(1,"a",120),_("click",function(){g(e);let i=h(2);return f(i.searchForContent())}),c(2,"Search"),a()()}}function sl(t,l){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){g(e);let r=h();return D(r.contentSearchMail,i)||(r.contentSearchMail=i),f(i)}),_("keydown.enter",function(){g(e);let i=h();return f(i.searchForContent())}),a(),o(5,"button",36),_("click",function(){g(e);let i=h();return f(i.togglePanel())}),b(6,"i",118),a()()(),C(7,al,3,0,"div",119),a()}if(t&2){let e=h();s(3),P("ngModel",e.contentSearchMail),p("disabled",e.isExpanded),s(3),p("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down"),s(),p("ngIf",!e.isExpanded)}}function ll(t,l){if(t&1){let e=w();o(0,"div",122)(1,"div",123)(2,"label",124),c(3,"From "),o(4,"a",125),b(5,"i",126),o(6,"span",127),c(7,"Use comma to separate Email addresses"),a()()(),o(8,"input",128),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.fromId,i)||(r.fromId=i),f(i)}),a()(),o(9,"div",123)(10,"label",129),c(11,"To "),o(12,"a",125),b(13,"i",126),o(14,"span",127),c(15,"Use comma to separate Email addresses"),a()()(),o(16,"input",130),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.toId,i)||(r.toId=i),f(i)}),a()(),o(17,"div",123)(18,"label",131),c(19,"CC "),o(20,"a",125),b(21,"i",126),o(22,"span",127),c(23,"Use comma to separate Email addresses"),a()()(),o(24,"input",132),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.ccId,i)||(r.ccId=i),f(i)}),a()(),o(25,"div",123)(26,"label",133),c(27,"BCC "),o(28,"a",125),b(29,"i",126),o(30,"span",127),c(31,"Use comma to separate Email addresses"),a()()(),o(32,"input",134),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.bccId,i)||(r.bccId=i),f(i)}),a()(),o(33,"div",123)(34,"label",135),c(35,"Subject "),o(36,"a",125),b(37,"i",126),o(38,"span",127),c(39,"Use comma to separate multiple Subjects"),a()()(),o(40,"input",136),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.subjectId,i)||(r.subjectId=i),f(i)}),a()(),o(41,"div",123)(42,"label",137),c(43,"Body"),a(),o(44,"input",138),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.bodyId,i)||(r.bodyId=i),f(i)}),a()(),o(45,"div",123)(46,"label",139),c(47,"Keywords"),a(),o(48,"input",140),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.keywordsId,i)||(r.keywordsId=i),f(i)}),a()(),o(49,"div",141)(50,"label",139),c(51,"Date from"),a(),o(52,"input",142),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.myDateBefore,i)||(r.myDateBefore=i),f(i)}),a(),c(53," To "),o(54,"input",142),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.myDateAfter,i)||(r.myDateAfter=i),f(i)}),a()(),o(55,"div",61)(56,"a",143),_("click",function(){g(e);let i=h(2);return f(i.searchForContent())}),c(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),p("bsConfig",e.bsConfigBefore),s(2),P("ngModel",e.myDateAfter),p("bsConfig",e.bsConfigAfter)}}function cl(t,l){if(t&1&&(o(0,"c-row",61),C(1,ll,58,11,"div",121),a()),t&2){let e=h();s(),p("ngIf",e.isExpanded)}}function dl(t,l){if(t&1){let e=w();o(0,"tr")(1,"td")(2,"div")(3,"h4"),c(4),a()(),o(5,"p",108)(6,"b"),c(7,"Found in: "),a(),c(8),a(),o(9,"p"),b(10,"span",146),a()(),o(11,"td")(12,"button",109),_("click",function(){let i=g(e).$implicit,r=h(2);return f(r.downloadFile(i.fileName,i.filePath,i.fileRevisionID,i.backup,i.fileUser,i.deviceUUID,i.folder,i.size,r.productTypeContentSearch))}),c(13," Download"),a(),o(14,"button",110),_("click",function(){let i=g(e).$implicit,r=h(2);return f(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeContentSearch,i.backup))}),c(15," Open File Location"),a()()()}if(t&2){let e=l.$implicit,n=h(2);s(4),A(e.fileName),s(4),A(e.filePath),s(2),p("innerHTML",n.renderHtml(e.content),Ne)}}function pl(t,l){if(t&1&&(o(0,"c-row",102)(1,"table",103)(2,"thead",104)(3,"tr")(4,"th",144),c(5,"File Name "),a(),o(6,"th",145),c(7,"Actions"),a()()(),o(8,"tbody"),C(9,dl,16,3,"tr",107),a()()()),t&2){let e=h();s(),p("hover",!0)("responsive",!0),s(8),p("ngForOf",e.foundFilesCS)}}function ml(t,l){t&1&&(o(0,"c-row",61)(1,"c-card",11)(2,"c-card-body")(3,"b"),c(4,"There are no results!."),a()()()())}function hl(t,l){if(t&1){let e=w();o(0,"a",163),_("click",function(){g(e);let i=h(2);return f(i.enableMultiSelect())}),b(1,"i",164),o(2,"span",127),c(3,"Enable Multiselect"),a()()}}function ul(t,l){if(t&1){let e=w();o(0,"a",165),_("click",function(){g(e);let i=h(2);return f(i.removeAll())}),b(1,"i",166),o(2,"span",127),c(3,"Disable Multiselect"),a()()}}function gl(t,l){if(t&1){let e=w();o(0,"a",167),_("click",function(){g(e);let i=h(2);return f(i.exportCompleteMailboxAsPstG())}),c(1,"Export all items to PST"),a()}}function fl(t,l){if(t&1){let e=w();o(0,"a",168),_("click",function(){g(e);let i=h(2);return f(i.exportFolderAsPstModalG())}),c(1,"Export selected items to PST"),a()}if(t&2){let e=h(2);p("ngClass",ii(1,Ss,e.addedElementsCount>0,e.addedElementsCount<=0))}}function vl(t,l){if(t&1){let e=w();o(0,"th",157)(1,"input",169),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.isSelectAll,i)||(r.isSelectAll=i),f(i)}),_("change",function(){g(e);let i=h(2);return f(i.toggleSelectAll())}),a()()}if(t&2){let e=h(2);s(),P("ngModel",e.isSelectAll)}}function _l(t,l){if(t&1){let e=w();o(0,"button",170),_("click",function(){g(e);let i=h(2);return f(i.addToCartFinal())}),c(1," Add Selected Items "),a()}}function bl(t,l){if(t&1){let e=w();o(0,"td")(1,"input",174),O("ngModelChange",function(i){g(e);let r=h().$implicit;return D(r.isChecked,i)||(r.isChecked=i),f(i)}),_("change",function(){g(e);let i=h(4);return f(i.itemSelect())}),a()()}if(t&2){let e=h().$implicit;s(),P("ngModel",e.isChecked)}}function yl(t,l){if(t&1&&(o(0,"td",175)(1,"span",176),c(2),a()()),t&2){let e=h().$implicit;s(),p("ngStyle",G(2,ws,e.alphaColor)),s(),E(" ",e.showIcon," ")}}function Cl(t,l){t&1&&b(0,"i",190)}function Sl(t,l){if(t&1){let e=w();o(0,"a",191),_("click",function(){g(e);let i=h(3).$implicit,r=h(3);return f(r.downloadMail(i.userName,i.backupId,i.deviceUUID,r.productTypeContentSearch))}),b(1,"i",192),a()}}function wl(t,l){if(t&1){let e=w();o(0,"a",193),_("click",function(){g(e);let i=h(3).$implicit,r=h(3);return f(r.onRestoreClickR(i.deviceUUID,i.backupId,i.filePath,i.subject,i.userName))}),b(1,"i",194),a()}}function xl(t,l){if(t&1&&(o(0,"p"),b(1,"span",146),a()),t&2){let e=h(3).$implicit,n=h(3);s(),p("innerHTML",n.renderHtml(e.displayContent),Ne)}}function kl(t,l){if(t&1&&(o(0,"a",180)(1,"span",181),c(2),a(),C(3,Cl,1,0,"i",182)(4,Sl,2,0,"a",183)(5,wl,2,0,"a",184),o(6,"p",185)(7,"span",186),c(8),a(),b(9,"span",187),a(),C(10,xl,2,1,"p",17),o(11,"p",188)(12,"b"),c(13,"Found in:"),a(),o(14,"span",189),c(15),a()()()),t&2){let e=h(2).$implicit,n=h(3);s(2),E(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),p("ngIf",e.hasAttachments),s(),p("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(),p("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),s(3),E(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),s(),p("innerHTML",n.renderHtml(e.sentDate),Ne),s(),p("ngIf",e.displayContent),s(5),Le("",e.userName," : ",e.filePath,"")}}function Il(t,l){t&1&&b(0,"i",197)}function Tl(t,l){if(t&1&&(o(0,"p"),b(1,"span",146),a()),t&2){let e=h(3).$implicit,n=h(3);s(),p("innerHTML",n.renderHtml(e.displayContent),Ne)}}function Ml(t,l){if(t&1&&(o(0,"a",195)(1,"span",181),c(2),a(),C(3,Il,1,0,"i",196),o(4,"p",185)(5,"span",186),c(6),a(),b(7,"span",187),a(),C(8,Tl,2,1,"p",17),a()),t&2){let e=h(2).$implicit,n=h(3);s(2),E(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),s(),p("ngIf",e.hasAttachments),s(3),E(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),s(),p("innerHTML",n.renderHtml(e.sentDate),Ne),s(),p("ngIf",e.displayContent)}}function El(t,l){if(t&1){let e=w();o(0,"td",177),_("click",function(){g(e);let i=h().$implicit,r=h(3);return f(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"mail",i.deviceUUID))}),o(1,"div",61)(2,"div"),C(3,kl,16,9,"a",178)(4,Ml,9,5,"a",179),a()()()}if(t&2){let e=h().$implicit;Ae("data-name",e.name),s(3),p("ngIf",e.present=="true"),s(),p("ngIf",e.present=="false")}}function Pl(t,l){if(t&1){let e=w();o(0,"td",177),_("click",function(){g(e);let i=h().$implicit,r=h(3);return f(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,"contacts"))}),o(1,"div",61)(2,"div")(3,"a",180)(4,"span",181),c(5),a()()()()()}if(t&2){let e=h().$implicit;Ae("data-name",e.name),s(5),E(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function Dl(t,l){if(t&1&&(o(0,"tr"),C(1,bl,2,1,"td",17)(2,yl,3,4,"td",172)(3,El,5,3,"td",173)(4,Pl,6,2,"td",173),a()),t&2){let e=l.$implicit,n=h(3);Re("selected-rowMail",n.isSelected(e)),s(),p("ngIf",n.isMultiSelectEnabled),s(),p("ngIf",e.type=="File"),s(),p("ngIf",e.type==="File"&&e.filePath!=="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO"),s(),p("ngIf",e.type==="File"&&e.filePath==="Contacts"&&e.filePath!=="Calander"&&e.filePath!=="Tasks"&&e.filePath!=="To DO")}}function Ol(t,l){if(t&1&&(o(0,"tbody"),C(1,Dl,5,6,"tr",171),a()),t&2){let e=h(2);s(),p("ngForOf",e.foundMailsCS)}}function Al(t,l){t&1&&(o(0,"c-card-body",198)(1,"p"),c(2,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator."),a()())}function Rl(t,l){t&1&&(o(0,"c-card-body",198)(1,"p"),c(2,"Item not available."),a()())}function Ul(t,l){if(t&1&&(o(0,"div",210)(1,"b"),c(2,"From :"),a(),c(3),o(4,"span",211),c(5),de(6,"date"),a()()),t&2){let e=h(4);s(3),E(" ",e.currentMailFrom," "),s(2),A(vt(6,2,e.currentMailSentDate,"dd-MMM-yyyy hh:mm:ss"))}}function Fl(t,l){if(t&1&&(o(0,"div",212)(1,"b"),c(2,"To :"),a(),c(3),a()),t&2){let e=h(4);s(3),E(" ",e.currentMailTo,"")}}function Nl(t,l){if(t&1&&(o(0,"div",213)(1,"b"),c(2,"CC :"),a(),c(3),a()),t&2){let e=h(4);s(3),E(" ",e.currentMailCc,"")}}function Vl(t,l){if(t&1&&(o(0,"div",214)(1,"b"),c(2,"BCC :"),a(),c(3),a()),t&2){let e=h(4);s(3),E(" ",e.currentMailBcc,"")}}function Bl(t,l){if(t&1&&(o(0,"span",218),c(1),a()),t&2){let e=l.$implicit;s(),E(" ",e.name||e.filename?(e.name||e.filename).slice(0,20)+((e.name||e.filename).length>20?"...":""):""," ")}}function Ll(t,l){if(t&1&&(o(0,"div",215)(1,"div",216),C(2,Bl,2,1,"span",217),c(3," \xA0 "),a()()),t&2){let e=h(4);s(2),p("ngForOf",e.currentMailAttachments)}}function Gl(t,l){if(t&1&&(o(0,"c-card-body")(1,"div",199),b(2,"div",200),o(3,"div",201)(4,"div",202)(5,"h3"),c(6),a()(),C(7,Ul,7,5,"div",203)(8,Fl,4,1,"div",204)(9,Nl,4,1,"div",205)(10,Vl,4,1,"div",206)(11,Ll,4,1,"div",207),b(12,"br"),o(13,"div",208),b(14,"iframe",209,7),a()()()()),t&2){let e=h(3);s(6),E("Subject : ",e.currentMailSubject,""),s(),p("ngIf",e.currentMailFrom!=""),s(),p("ngIf",e.currentMailTo!=""),s(),p("ngIf",e.currentMailCc!=""),s(),p("ngIf",e.currentMailBcc!=""),s(),p("ngIf",e.currentMailAttachments.length>0)}}function zl(t,l){if(t&1&&C(0,Gl,16,6,"c-card-body",17),t&2){let e=h(2);p("ngIf",e.showMailView&&e.showMailPreview)}}function Hl(t,l){t&1&&(o(0,"div")(1,"span"),c(2," No preview found. "),a()())}function jl(t,l){t&1&&(o(0,"div",220),b(1,"div",221),a())}function Wl(t,l){if(t&1&&(o(0,"c-card")(1,"c-card-body",219),C(2,Hl,3,0,"div")(3,jl,2,0,"div",220),a()()),t&2){let e=h(2);s(2),ge(e.showViewError?2:3)}}function ql(t,l){if(t&1&&(o(0,"a",248),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactEmail)}}function Jl(t,l){if(t&1&&(o(0,"a",249),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactOfficeLocation)}}function Yl(t,l){if(t&1&&(o(0,"a",250),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactCompanyName)}}function $l(t,l){if(t&1&&(o(0,"a",251),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactJobTitle)}}function Ql(t,l){if(t&1&&(o(0,"a",252),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactDepartment)}}function Kl(t,l){if(t&1&&(o(0,"a",253),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactMobile)}}function Zl(t,l){if(t&1&&(o(0,"a",254),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactHomePhones)}}function Xl(t,l){if(t&1&&(o(0,"a",255),c(1," (...) "),a()),t&2){let e=h(3);Q("title",e.contactBusinessPhones)}}function ec(t,l){if(t&1){let e=w();o(0,"c-card-body")(1,"div",222)(2,"div",223)(3,"div",224),b(4,"c-avatar",225),a(),o(5,"div",226)(6,"div",227)(7,"span",228),c(8),a()()()(),o(9,"div",229),b(10,"hr"),o(11,"div",230)(12,"label",186),c(13,"Email: "),a(),b(14,"br"),o(15,"span",231),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullEmail=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullEmail=!1)}),c(16),a(),C(17,ql,2,1,"a",232),a(),o(18,"div",230)(19,"label",186),c(20,"Location: "),a(),b(21,"br"),o(22,"span",233),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullLocation=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullLocation=!1)}),c(23),a(),C(24,Jl,2,1,"a",234),a(),o(25,"div",230)(26,"label",186),c(27,"Company: "),a(),b(28,"br"),o(29,"span",235),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullCompanyName=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullCompanyName=!1)}),c(30),a(),C(31,Yl,2,1,"a",236),a(),o(32,"div",230)(33,"label",186),c(34,"Job title: "),a(),b(35,"br"),o(36,"span",237),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullJobTitle=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullJobTitle=!1)}),c(37),a(),C(38,$l,2,1,"a",238),a(),o(39,"div",230)(40,"label",186),c(41,"Department: "),a(),b(42,"br"),o(43,"span",239),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullDepartment=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullDepartment=!1)}),c(44),a(),C(45,Ql,2,1,"a",240),a(),o(46,"div",230)(47,"label",186),c(48,"Business Address: "),a(),b(49,"br"),o(50,"span",228),c(51),a()(),o(52,"div",230)(53,"label",186),c(54,"Home Address: "),a(),b(55,"br"),o(56,"span",228),c(57),a()(),o(58,"div",230)(59,"label",186),c(60,"Birthday: "),a(),b(61,"br"),o(62,"span",241),c(63),a()(),o(64,"div",230)(65,"label",186),c(66,"Mobile phone: "),a(),b(67,"br"),o(68,"span",242),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullMobile=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullMobile=!1)}),c(69),a(),C(70,Kl,2,1,"a",243),a(),o(71,"div",230)(72,"label",186),c(73,"Home phone: "),a(),b(74,"br"),o(75,"span",244),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullHomePhone=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullHomePhone=!1)}),c(76),a(),C(77,Zl,2,1,"a",245),a(),o(78,"div",230)(79,"label",186),c(80,"Business phone: "),a(),b(81,"br"),o(82,"span",246),_("mouseenter",function(){g(e);let i=h(2);return f(i.showFullBusinessPhone=!0)})("mouseleave",function(){g(e);let i=h(2);return f(i.showFullBusinessPhone=!1)}),c(83),a(),C(84,Xl,2,1,"a",247),a()()()()}if(t&2){let e=h(2);s(4),p("size","md"),s(3),p("title",e.fullCombinedName),s(),E(" ",e.truncatedCombinedName," "),s(7),p("title",e.contactEmail.length>20?e.contactEmail:""),s(),E(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),s(),p("ngIf",e.contactEmail.length>20),s(5),p("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),s(),E(" ",e.contactOfficeLocation.length>20?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),s(),p("ngIf",e.contactOfficeLocation.length>20),s(5),p("title",e.contactCompanyName.length>20?e.contactCompanyName:""),s(),E(" ",e.contactCompanyName.length>20?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),s(),p("ngIf",e.contactCompanyName.length>20),s(5),p("title",e.contactJobTitle.length>20?e.contactJobTitle:""),s(),E(" ",e.contactJobTitle.length>20?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),s(),p("ngIf",e.contactJobTitle.length>20),s(5),p("title",e.contactDepartment.length>20?e.contactDepartment:""),s(),E(" ",e.contactDepartment.length>20?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),s(),p("ngIf",e.contactDepartment.length>20),s(5),p("title",e.combinedBusinessAddress),s(),E(" ",e.truncatedBusinessAddress," "),s(5),p("title",e.combinedHomeAddress),s(),E(" ",e.truncatedHomeAddress," "),s(6),A(e.contactBirthday),s(5),p("title",e.contactMobile.length>20?e.contactMobile:""),s(),E(" ",e.contactMobile.length>20?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),s(),p("ngIf",e.contactMobile.length>20),s(5),p("title",e.contactHomePhones.length>20?e.contactHomePhones:""),s(),E(" ",e.contactHomePhones.length>20?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),s(),p("ngIf",e.contactHomePhones.length>20),s(5),p("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),s(),E(" ",e.contactBusinessPhones.length>20?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),s(),p("ngIf",e.contactBusinessPhones.length>20)}}function tc(t,l){if(t&1){let e=w();o(0,"th"),c(1),o(2,"a",256),_("click",function(){g(e);let i=h(2);return f(i.removeAll())}),c(3,"Remove all"),a()()}if(t&2){let e=h(2);s(),Le("",e.addedElementsCount," out of ",e.totalCountGS," selected ")}}function ic(t,l){if(t&1&&(o(0,"th"),c(1),a()),t&2){let e=h(2);s(),E("",e.addedElementsCount," selected")}}function nc(t,l){if(t&1){let e=w();o(0,"tr")(1,"td",257)(2,"span",258),c(3),a(),o(4,"a",259),_("click",function(){let i=g(e),r=i.$implicit,d=i.index,u=h(2);return f(u.removeItem(d,r.subject,r.backupId,r.subject))}),b(5,"i",260),a()()()}if(t&2){let e=l.$implicit;s(3),A(e.subject)}}function rc(t,l){if(t&1&&(o(0,"c-row",147)(1,"c-card-header",148),C(2,hl,4,0,"a",149)(3,ul,4,0,"a",150),o(4,"span")(5,"b"),c(6),a()(),C(7,gl,2,0,"a",151)(8,fl,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,vl,2,1,"th",156),o(16,"th",157),c(17," Results "),C(18,_l,2,0,"button",158),a()()(),C(19,Ol,2,1,"tbody",17),a()()()(),o(20,"c-card",153),C(21,Al,3,0,"c-card-body",159)(22,Rl,3,0,"c-card-body",159)(23,zl,1,1,"c-card-body")(24,Wl,4,1,"c-card")(25,ec,85,32,"c-card-body",17),a(),o(26,"c-card",160)(27,"c-card-body")(28,"table",161)(29,"colgroup"),b(30,"col",162),a(),o(31,"thead")(32,"tr"),C(33,tc,4,2,"th",17)(34,ic,2,1,"th",17),a()(),o(35,"tbody"),C(36,nc,6,1,"tr",107),a()()()()()),t&2){let e=h();s(2),p("ngIf",!e.isMultiSelectEnabled),s(),p("ngIf",e.isMultiSelectEnabled),s(3),E("",e.totalCountGS," Search Results Found"),s(),p("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&e.productTypeContentSearch!=="Gmail"),s(),p("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),s(),p("ngClass",R(22,bs)),s(3),p("hover",!0)("responsive",!0)("striped",!1),s(3),p("ngIf",e.isMultiSelectEnabled),s(3),p("ngIf",e.updateAddToCartButtonVisibility()),s(),p("ngIf",!e.noFilesFoundCS),s(),p("ngClass",ii(23,ys,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),s(),p("ngIf",!e.showMailPreview),s(),p("ngIf",e.showNotAvailable),s(),ge(e.showloaderAtPreview?24:23),s(2),p("ngIf",e.showContactsView),s(),p("ngClass",R(26,Cs))("ngStyle",G(27,fe,e.isMultiSelectEnabled?"block":"none")),s(7),p("ngIf",e.addedElementsCount>0),s(),p("ngIf",e.addedElementsCount==0),s(2),p("ngForOf",e.addedElementsUpdated)}}function oc(t,l){if(t&1){let e=w();o(0,"a",267),_("click",function(){g(e);let i=h(2);return f(i.searchForContentNavigate(i.first))}),b(1,"i",268),a()}}function ac(t,l){if(t&1){let e=w();o(0,"a",269),_("click",function(){g(e);let i=h(2);return f(i.searchForContentNavigate(i.previous))}),b(1,"i",270),a()}}function sc(t,l){if(t&1){let e=w();o(0,"a",271),_("click",function(){g(e);let i=h(2);return f(i.searchForContentNavigate(i.next))}),b(1,"i",272),a()}}function lc(t,l){if(t&1){let e=w();o(0,"a",273),_("click",function(){g(e);let i=h(2);return f(i.searchForContentNavigate(i.last))}),b(1,"i",274),a()}}function cc(t,l){if(t&1&&(o(0,"c-row",20)(1,"div",261)(2,"div",262),C(3,oc,2,0,"a",263)(4,ac,2,0,"a",264)(5,sc,2,0,"a",265)(6,lc,2,0,"a",266),a()()()),t&2){let e=h();s(3),p("ngIf",e.first!=""),s(),p("ngIf",e.previous!=""),s(),p("ngIf",e.next!=""),s(),p("ngIf",e.last!="")}}function dc(t,l){if(t&1){let e=w();o(0,"button",275),_("click",function(){g(e);let i=h();return f(i.exportCompleteMailboxAsPstTriggerG())}),c(1,"Proceed"),a()}}function pc(t,l){if(t&1){let e=w();o(0,"button",275),_("click",function(){g(e);let i=h();return f(i.exportSelectedAsPstG())}),c(1,"Proceed"),a()}}function mc(t,l){t&1&&(o(0,"th"),c(1,"Current item being processed"),a())}function hc(t,l){if(t&1&&(o(0,"span"),c(1),de(2,"slice"),a()),t&2){let e=h(2);s(),E("/ ",Ge(2,1,e.progressG.subject,0,40),"")}}function uc(t,l){if(t&1&&(o(0,"td")(1,"span",276),c(2),de(3,"slice"),a(),C(4,hc,3,5,"span",17),a()),t&2){let e=h();s(),ti("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),s(),A(Ge(3,5,e.progressG.currentFolderPath,0,20)),s(2),p("ngIf",e.progressG.subject)}}function gc(t,l){t&1&&(o(0,"td"),c(1,"-"),a())}function fc(t,l){if(t&1&&(o(0,"td"),c(1),o(2,"div",277)(3,"div",278),c(4),de(5,"number"),a()()()),t&2){let e=h();s(),Le("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),s(),et("title","",e.progressG.totalRestorePct,"%"),s(),gt("width",e.progressG.totalRestorePct,"%"),s(),E(" ",vt(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function vc(t,l){t&1&&(o(0,"td"),c(1,"0"),a())}function _c(t,l){if(t&1){let e=w();o(0,"button",65),_("click",function(){g(e);let i=h();return f(i.cancelDownloadAsPstG())}),c(1,"Cancel Restore"),a()}}function bc(t,l){t&1&&(o(0,"div",299)(1,"ul",300)(2,"li",301)(3,"strong",302),c(4,"No Users found"),a(),b(5,"ul",303),a()()())}function yc(t,l){if(t&1&&(o(0,"option",30),c(1),a()),t&2){let e=l.$implicit;p("value",e.deviceUUID),s(),E(" ",e.deviceName," ")}}function Cc(t,l){if(t&1){let e=w();o(0,"div",285)(1,"span",33),c(2,"Disallow new backups during this restore"),a(),o(3,"div",286)(4,"c-form-check",287)(5,"input",304),O("ngModelChange",function(i){g(e);let r=h(2);return D(r.suspendBackupR,i)||(r.suspendBackupR=i),f(i)}),a()()()()}if(t&2){let e=h(2);s(4),p("switch",!0),s(),P("ngModel",e.suspendBackupR)}}function Sc(t,l){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"),c(5,"Source Path - "),o(6,"span"),c(7),a()()(),o(8,"c-row",61)(9,"p"),c(10,"Select a destination asset:"),a(),o(11,"div",123)(12,"label"),c(13,"User Id"),a(),o(14,"select2",279),O("ngModelChange",function(i){g(e);let r=h();return D(r.selectedValueR,i)||(r.selectedValueR=i),f(i)}),_("search",function(i){g(e);let r=h();return f(r.onSearchR(i))})("update",function(i){g(e);let r=h();return f(r.updateR(i))}),a(),C(15,bc,6,0,"div",280),a(),o(16,"div",123)(17,"label"),c(18,"Asset Name"),a(),o(19,"select",115,8),_("change",function(){g(e);let i=te(20),r=h();return f(r.onDeviceChangeR(i.value))}),C(21,yc,2,2,"option",101),a()()(),o(22,"c-row")(23,"div",52)(24,"label",281),c(25,"Select a Destination Path"),a(),o(26,"c-input-group",11)(27,"input",282),O("ngModelChange",function(i){g(e);let r=h();return D(r.destinationPathR,i)||(r.destinationPathR=i),f(i)}),a(),o(28,"button",283),_("click",function(){g(e);let i=te(20),r=h();return f(r.browseR(i.value))}),c(29,"Browse"),a()()()(),o(30,"c-row",61)(31,"h3"),c(32,"Restore Options"),a(),o(33,"div",72),C(34,Cc,6,2,"div",284),o(35,"div",285)(36,"span",33),c(37,"In place Restore"),a(),o(38,"div",286)(39,"c-form-check",287)(40,"input",288),O("ngModelChange",function(i){g(e);let r=h();return D(r.inplaceRestoreR,i)||(r.inplaceRestoreR=i),f(i)}),a()()()(),o(41,"div",285)(42,"span",33),c(43,"Restore Deleted Mails"),a(),o(44,"div",286)(45,"c-form-check",287)(46,"input",289),O("ngModelChange",function(i){g(e);let r=h();return D(r.restoreDeletedFilesByRestoreR,i)||(r.restoreDeletedFilesByRestoreR=i),f(i)}),a()()()()(),o(47,"div",290)(48,"div",291)(49,"span",292),c(50,"Restore Data As Of"),a(),o(51,"div",293)(52,"c-form-check",287)(53,"input",294),O("ngModelChange",function(i){g(e);let r=h();return D(r.dateBeforeR,i)||(r.dateBeforeR=i),f(i)}),_("change",function(){g(e);let i=h();return f(i.toggleDateBeforeR())}),a()()()(),o(54,"div",295)(55,"div",296)(56,"input",297),O("ngModelChange",function(i){g(e);let r=h();return D(r.myDateBeforeR,i)||(r.myDateBeforeR=i),f(i)}),a(),o(57,"timepicker",298),O("ngModelChange",function(i){g(e);let r=h();return D(r.myTimeBeforeR,i)||(r.myTimeBeforeR=i),f(i)}),a()()()()()()()}if(t&2){let e=h();s(7),A(e.currentFilePathR),s(7),p("overlay",e.overlayR)("data",e.deviceUsersListR)("value",e.selectedValueR)("disabled",e.userType==="user"),P("ngModel",e.selectedValueR),s(),p("ngIf",e.deviceUsersListR.length===0),s(6),p("ngForOf",e.devicesR),s(6),P("ngModel",e.destinationPathR),p("readonly",!0),s(7),p("ngIf",!R(24,Ie).includes(e.productTypeContentSearch)),s(5),p("switch",!0),s(),P("ngModel",e.inplaceRestoreR),s(5),p("switch",!0),s(),P("ngModel",e.restoreDeletedFilesByRestoreR),s(6),p("switch",!0),s(),P("ngModel",e.dateBeforeR),s(3),P("ngModel",e.myDateBeforeR),p("bsConfig",e.bsConfigR)("disabled",!e.dateBeforeR),s(),P("ngModel",e.myTimeBeforeR),p("minuteStep",1)("showMeridian",!1)("disabled",!e.dateBeforeR)}}function wc(t,l){if(t&1&&(o(0,"c-row")(1,"span"),c(2,"Source Path - "),o(3,"span"),c(4),a()()()),t&2){let e=h(2);s(4),A(e.currentFilePathR)}}function xc(t,l){t&1&&(o(0,"th"),c(1,"Current item being processed"),a())}function kc(t,l){t&1&&(o(0,"th"),c(1,"Source Path "),a())}function Ic(t,l){if(t&1&&(o(0,"span"),c(1),de(2,"slice"),a()),t&2){let e=h(3);s(),E("/ ",Ge(2,1,e.progressR.subject,0,40),"")}}function Tc(t,l){if(t&1&&(o(0,"td")(1,"span",276),c(2),de(3,"slice"),a(),C(4,Ic,3,5,"span",17),a()),t&2){let e=h(2);s(),ti("title","",e.progressR.currentFolderPath,"/",e.progressR.subject,""),s(),A(Ge(3,5,e.progressR.currentFolderPath,0,20)),s(2),p("ngIf",e.progressR.subject)}}function Mc(t,l){if(t&1&&(o(0,"td")(1,"span",305),c(2),de(3,"slice"),a()()),t&2){let e=h(2);s(),Q("title",e.progressR.folderName),s(),A(Ge(3,2,(e.progressR==null?null:e.progressR.folderName)||e.currentFilePathR||"All",0,60))}}function Ec(t,l){t&1&&(o(0,"td"),c(1,"-"),a())}function Pc(t,l){if(t&1&&(o(0,"td"),c(1),o(2,"div",306)(3,"div",278),c(4),de(5,"number"),a()()()),t&2){let e=h(3);s(),Le("",e.progressR.restoredFiles,"/",e.progressR.totalNoOfFilesForRestore," "),s(),et("title","",e.progressR.totalRestorePct,"%"),s(),gt("width",e.progressR.totalRestorePct,"%"),s(),E(" ",vt(5,7,e.progressR.totalRestorePct,"1.0-0"),"% ")}}function Dc(t,l){if(t&1&&C(0,Pc,6,10,"td",17),t&2){let e=h(2);p("ngIf",e.progressR.totalNoOfFilesForRestore!="")}}function Oc(t,l){t&1&&(o(0,"td"),b(1,"div",307),a())}function Ac(t,l){t&1&&(o(0,"td"),c(1,"0"),a())}function Rc(t,l){if(t&1&&(o(0,"c-card"),b(1,"c-card-header",60),o(2,"c-card-body"),C(3,wc,5,1,"c-row",17),o(4,"c-row",61)(5,"h3"),c(6,"Currently Running Restore Statistics"),a(),o(7,"table",62)(8,"thead")(9,"tr"),C(10,xc,2,0,"th")(11,kc,2,0,"th"),o(12,"th"),c(13,"Overall Progress"),a()()(),o(14,"tbody")(15,"tr"),C(16,Tc,5,9,"td",17)(17,Mc,4,6,"td",17)(18,Ec,2,0,"td",17)(19,Dc,1,1,"td")(20,Oc,2,0,"td")(21,Ac,2,0,"td",17),a()()()()()()),t&2){let e=h();s(3),p("ngIf",!R(7,Ia).includes(e.productTypeContentSearch)),s(7),ge(R(8,Ia).includes(e.productTypeContentSearch)?11:10),s(6),p("ngIf",!R(9,Ie).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath!=""),s(),p("ngIf",R(10,Ie).includes(e.productTypeContentSearch)),s(),p("ngIf",!R(11,Ie).includes(e.productTypeContentSearch)&&e.progressR.currentFolderPath==""),s(),ge(!R(12,Ie).includes(e.productTypeContentSearch)||e.progressR!=null&&e.progressR.totalRestorePct||e.progressR.restoredFiles||e.progressR.totalNoOfFilesForRestore?19:20),s(2),p("ngIf",!R(13,Ie).includes(e.productTypeContentSearch)&&e.progressR.totalNoOfFilesForRestore=="")}}function Uc(t,l){if(t&1){let e=w();o(0,"button",308),_("click",function(){g(e);let i=h();return f(i.initiateRestoreR())}),c(1,"Initiate Restore"),a()}}function Fc(t,l){if(t&1){let e=w();o(0,"button",309),_("click",function(){g(e);let i=h();return f(i.cancelRunningRestoreR())}),c(1,"Cancel Restore"),a()}}function Nc(t,l){if(t&1){let e=w();o(0,"button",310),_("click",function(){g(e);let i=h();return f(i.closeRestorePopupR())}),c(1,"Close"),a()}}function Vc(t,l){if(t&1){let e=w();o(0,"button",311),_("click",function(){g(e);let i=h();return f(i.closeRestorePopupR())}),c(1,"Close"),a()}}function Bc(t,l){t&1&&(o(0,"span"),c(1,"My Drive/"),a())}function Lc(t,l){t&1&&(o(0,"span"),c(1,"/"),a())}function Gc(t,l){if(t&1&&(o(0,"span"),c(1),a()),t&2){let e=h();s(),A(e.browsePathR)}}function zc(t,l){if(t&1){let e=w();o(0,"button",312),_("click",function(){g(e);let i=h();return f(i.backBrowseR())}),b(1,"i",313),c(2," Back"),a()}}function Hc(t,l){t&1&&(o(0,"tr")(1,"td",314)(2,"div",315)(3,"span",316),c(4,"Loading..."),a()()()())}function jc(t,l){if(t&1){let e=w();o(0,"tr",317),_("click",function(){let i=g(e).$implicit,r=h();return f(r.onSingleClickR(i.folderName||i,i.folderId))})("dblclick",function(){let i=g(e).$implicit,r=h();return f(r.onDoubleClickR(i.folderName||i,i.folderId))}),o(1,"td")(2,"span",228),c(3),a()()()}if(t&2){let e=l.$implicit,n=h();p("ngClass",G(3,xs,n.selectedBrowseItemR===(e.folderName||e))),s(2),Q("title",e.folderName||e),s(),E(" ",e.folderName||e," ")}}var Ma=(()=>{class t{constructor(e,n,i,r,d,u,m,S,x,I,T,k){this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.http=d,this.sharedService=u,this.renderer=m,this.cdr=S,this.sanitizer=x,this.configService=I,this.licenseCheckService=T,this.userRoleService=k,this.PRODUCTS_CONFIG=fa,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 Oe,this.showloaderAtPreview=!1,this.showViewError=!1,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let M=new Date,z=new Date;z.setFullYear(M.getFullYear()-1),new Date().setDate(M.getDate()-14),this.bsConfigBefore={minDate:z,maxDate:M,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:z,maxDate:M,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(e=!1){this.apiService.getSignedURLFromId(this.downloadId).subscribe(n=>{console.log("res from getSignedURLFromId : "+JSON.stringify(n)),console.log("res from getSignedURLFromId : "+JSON.stringify(n.body)),this.intervalId&&clearInterval(this.intervalId),this.cdr.detectChanges()},n=>{if(n.status===404)return;this.intervalId&&(this.downloadId="",clearInterval(this.intervalId)),console.error("Error from getSignedURLFromId: ",n),console.error("Error status: ",n.status),console.error("Error status: ",n.error.text);let i=n.error.text;if(e){this.executeNextCodeUnified(i);return}else window.open(i,"_self");switch(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.intervalId=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),console.error("Not Found: ",n.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: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}executeNextCodeUnified(e){let n=this.sanitizer.sanitize(ei.URL,e)||"";this.showTextFileFromURL(n,"eml_view")}showTextFileFromURL(e,n){this.http.get(e,{context:new Wi().set($i,!0),responseType:"text"}).subscribe(i=>{if(i.trim().length>0&&n==="eml_view"){this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges();let r=ga(i.trim());console.log("parsedMail : ",r),this.renderPrevious(r,"mail");return}},i=>{console.error("File does not exist or could not be loaded:",i)})}renderPrevious(e,n){console.log("its a mail..."),this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges(),this.currentMailSubject=e.subject,this.currentFileName=e.subject,this.currentMailFrom=e.from?.emailAddress?.address||e.from?.address,this.currentMailSentDate=e.sentDateTime||e.date,this.currentMailTo=e.toRecipients?.map(r=>r.emailAddress.address)||e.to?.map(r=>r.address)||"",this.currentMailCc=e.ccRecipients?.map(r=>r.emailAddress.address)||e.cc?.map(r=>r.address)||"",this.currentMailBcc=e.bccRecipients?.map(r=>r.emailAddress.address)||e.bcc?.map(r=>r.address)||"",this.currentMailAttachments=e.attachments,this.currentMailBody=e.body?.content||e.html,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let i=this.iframe.nativeElement;if(i){let r=i.contentDocument||i.contentWindow?.document;if(r){r.open(),r.write(this.currentMailBody),r.close();let d=r.head||r.getElementsByTagName("head")[0];d||(d=r.createElement("head"),r.documentElement.prepend(d))}}this.showloaderAtPreview=!1}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(ei.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):Pe(null);bi([e,n,i]).subscribe(([r,d,u])=>{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(d.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(d.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.body.data.users.map(m=>ue(L({},m),{userNameEncoded:btoa(m.userName)}))):(this.foundUsers=[],this.noUsersFoundText="No Users found."),d.body.data&&d.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=d.body.data.devices.map(m=>ue(L({},m),{userNameEncoded:btoa(m.userName),deviceNameEncoded:btoa(m.deviceName)}))):(this.noDevicesFoundText="No Devices found",this.foundDevices=[]),u&&(console.log("getSitesSearch response body:",JSON.stringify(u.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(u.headers)),u.body.data&&u.body.data.users?(this.noSitesFoundText="",this.foundSites=u.body.data.users.map(m=>ue(L({},m),{userNameEncoded:btoa(m.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(d=>({value:d.userName,label:d.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(d=>d.blocked===!1&&d.deviceType==r).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"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 d=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(u=>{let m={exists:u.present?u.present.toString():"",backup:"true",deviceUUID:u.deviceUUID?u.deviceUUID.toString():"",fileName:u.fileName?u.fileName.toString():"",filePath:u.fileCompletePath?u.fileCompletePath.toString():"",fileUser:u.fileUserOwner?btoa(u.fileUserOwner):"",folder:u.folder?"true":"false",fileRevisionID:u.backupId?u.backupId.toString():"",content:u.metaData?u.metaData.toString():"",modifiedTimestamp:u.lastModifiedTimestamp?parseInt(u.lastModifiedTimestamp,10):0,size:u.size?parseInt(u.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(m.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"),m.deviceType=T,m.deviceOs=k,m.deviceId=x.deviceId?x.deviceId.toString():"",m.blocked="active",m.deviceName=x.deviceName?x.deviceName.toString():"",m.deviceNameNew=x.deviceName?x.deviceName.replace(/ /g,"_PB_"):"",m.deviceNameEnc=x.deviceName?btoa(x.deviceName):"",r.push(m),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(d=>({value:d.name,label:d.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(d=>d.blocked===!1&&d.deviceType==r).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:"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,d,u,m,S,x){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+r),console.log("fileUser : "+d),console.log("deviceUUID : "+u),console.log("folder : "+m),console.log("token : "+this.sharedService.getDataByKey("authToken")),x==="Gmail"){this.downloadMail(d,i,u,x);return}else if(x==="Google Drive"){this.gDriveDownloadFile(i,u,parseFloat((S/1024).toFixed(2))>=10,m==="true",x);return}let I="https://",T=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",M=this.configService.cloudName,z=this.authService.getToken(),Me=this.sharedService.getDataByKey("userName"),Ye=`${I}${T}${k}${M}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${z}&loginUserName=${Me}&isSync=false+&deviceUUID=${u}&backupID=${i}&backup=${r}&userName=${this.base64Encode(d)}&moveToDownloads=false`;window.open(Ye,"_self")}gDriveDownloadFile(e,n,i,r=!1,d,u=!1){this.showViewError=!1,this.currentDeviceUUID=n,this.apiService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"FOLDER":i?"LARGE_FILE":u?"EML":"SMALL_FILE",d,this.restoreDeletedFilesByRestoreR).subscribe(m=>{if(console.log("res from downloadGsuite : "+JSON.stringify(m)),console.log("res from downloadGsuite : "+JSON.stringify(m.body)),this.downloadId=m?.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 S=0,x=10;this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.intervalId=setInterval(()=>{this.getSignedURLFromId(u),S++,S>=x&&(this.showViewError=!0,clearInterval(this.intervalId),this.intervalId=null,console.log("Interval expired after 10 seconds"))},2e3)}this.cdr.detectChanges()},m=>{switch(console.error("Error from downloadGsuite: ",m),console.error("Error status: ",m.status),console.log("ID : "+m?.error?.text),m.status){case 200:if(console.error("Bad Request: ",m.message),this.downloadId=m?.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 S=0,x=10;this.intervalId=setInterval(()=>{this.getSignedURLFromId(u),S++,S>=x&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3)}break;case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 412:console.error("Error code 412: ",m.message),this.toastr.error("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: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,r,d){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",d),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",r),this.isOverlayVisible=!1;let u=document.querySelector(".header.header-sticky");u&&this.renderer.setStyle(u,"z-index","1000");let m=document.querySelector(".overlay");m&&this.renderer.setStyle(m,"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(d=>({value:d.userName,label:d.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(d=>d.deviceType==r).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName:"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 d=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&e.body.data.fileElementList.forEach(u=>{let m={exists:u.present?u.present.toString():"",backup:"true",deviceUUID:u.deviceUUID?u.deviceUUID.toString():"",fileName:u.fileName?u.fileName.toString():"",filePath:u.fileCompletePath?u.fileCompletePath.toString():"",fileUser:u.fileUserOwner?btoa(u.fileUserOwner):"",folder:u.folder?"true":"false",fileRevisionID:u.fileRevisionId?u.fileRevisionId.toString():"",content:u.metaData?u.metaData.toString():"",modifiedTimestamp:u.lastModifiedTimestamp?parseInt(u.lastModifiedTimestamp,10):0,size:u.size?parseInt(u.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(m.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"),m.deviceType=T,m.deviceOs=k,m.deviceId=x.deviceId?x.deviceId.toString():"",m.blocked="active",m.deviceName=x.deviceName?x.deviceName.toString():"",m.deviceNameNew=x.deviceName?x.deviceName.replace(/ /g,"_PB_"):"",m.deviceNameEnc=x.deviceName?btoa(x.deviceName):"",r.push(m),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(u=>{let m={backupId:u.fileRevisionId,userName:u.fileUserOwner,deviceUUID:u.deviceUUID,subject:u.subject?u.subject:"<empty>",contactName:u.fileName?u.fileName:"-",taskSubject:u.subject?u.subject:"",present:u.exists.toString(),showIcon:u.from?u.from.charAt(0):"E",alphaColor:this.colorGen(),from:u.from?u.from:"<empty>",to:u.toRecipients?u.toRecipients:"",cc:u.ccRecipients?u.ccRecipients:"",bcc:u.bccRecipients?u.bccRecipients:"",sentDate:u.sentDate?new Date(u.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:u.metaData?u.metaData:"",bodyContent:u.bodyContent?u.bodyContent:"",bodyContent1:u.bodyContent?u.bodyContent.length>100?u.bodyContent.substring(0,100)+"...":u.bodyContent:"",hasAttachments:u.hasAttachments,attachments:u.attachments?u.attachments:"",name:u.subject?u.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:u.subject?u.subject:"<empty>",filePath:u.fileCompletePath,deviceId:u.deviceId};this.foundMailsCS.push(m)}),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.foundMailsCS[0].deviceUUID))),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 d=[];if(n.body.data&&n.body.data.fileElementList&&n.body.data.fileElementList.length>0){console.log("res.body : "+JSON.stringify(n.body.data.fileElementList));let u=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&n.body.data.fileElementList.forEach(m=>{let S={exists:m.present?m.present.toString():"",backup:"true",deviceUUID:m.deviceUUID?m.deviceUUID.toString():"",fileName:m.fileName?m.fileName.toString():"",filePath:m.fileCompletePath?m.fileCompletePath.toString():"",fileUser:m.fileUserOwner?btoa(m.fileUserOwner):"",folder:m.folder?"true":"false",fileRevisionID:m.fileRevisionId?m.fileRevisionId.toString():"",content:m.metaData?m.metaData.toString():"",modifiedTimestamp:m.lastModifiedTimestamp?parseInt(m.lastModifiedTimestamp,10):0,size:m.size?parseInt(m.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.apiService.getDeviceInfo(S.deviceUUID).subscribe(x=>{let I=x.body.BSDeviceInfoElement,T=I.osType.substring(0,3).toLowerCase(),k="Windows",M="Windows";T==="win"?(k="Windows",M="Windows"):T==="mac"?(k="Mac",M="Mac"):T==="one"?(k="ONEDRIVE",M="ONEDRIVE"):T==="out"?(k="OUTLOOK",M="OUTLOOK"):T==="sha"&&(k="SHAREPOINT",M="SHAREPOINT"),S.deviceType=k,S.deviceOs=M,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):"",d.push(S),this.foundFilesCS=d,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(d))},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(m=>{let S={backupId:m.fileRevisionId,userName:m.fileUserOwner,deviceUUID:m.deviceUUID,subject:m.subject?m.subject:"<empty>",contactName:m.fileName?m.fileName:"-",taskSubject:m.subject?m.subject:"",present:m.exists.toString(),showIcon:m.from?m.from.charAt(0):"E",alphaColor:this.colorGen(),from:m.from?m.from:"<empty>",to:m.toRecipients?m.toRecipients:"",cc:m.ccRecipients?m.ccRecipients:"",bcc:m.bccRecipients?m.bccRecipients:"",sentDate:m.sentDate?new Date(m.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:m.metaData?m.metaData:"",bodyContent:m.bodyContent?m.bodyContent:"",bodyContent1:m.bodyContent?m.bodyContent.length>100?m.bodyContent.substring(0,100)+"...":m.bodyContent:"",hasAttachments:m.hasAttachments,attachments:m.attachments?m.attachments:"",name:m.subject?m.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:m.subject?m.subject:"<empty>",filePath:m.fileCompletePath,deviceId:m.deviceId};this.foundMailsCS.push(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(d=>({value:d.name,label:d.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(d=>d.blocked===!1&&d.deviceType==r).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:"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=[],d=[],u=[],m=[],S=[],x=[],I=[];for(let k=0;k<i.length;k++){let M=i[k];if(M.startsWith("from:"))r.push(M.replace("from:","").trim());else if(M.startsWith("to:"))d.push(M.replace("to:","").trim());else if(M.startsWith("cc:"))u.push(M.replace("cc:","").trim());else if(M.startsWith("bcc:"))m.push(M.replace("bcc:","").trim());else if(M.startsWith("subject:")){let z=M.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(M.startsWith("body:")){let z=M.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(M)}return console.log("fromArray : "+r.join(",")),console.log("toArray : "+d.join(",")),console.log("ccArray : "+u.join(",")),console.log("bccArray : "+m.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:${d.join(",")}`,`bcc:${m.join(",")}`,`cc:${u.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,d,u){if(console.log("from viewOutlook11 : "+d),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.productTypeContentSearch=="Gmail"&&u){this.showloaderAtPreview=!0,this.gDriveDownloadFile(i,u,!1,!1,this.productTypeContentSearch,!0);return}this.apiService.viewMail(e,i).subscribe(m=>{if(m.body){this.showNotAvailable=!1;var S=JSON.stringify(m.body.mailElement),x=JSON.parse(S);if(console.log("mailElement : "+JSON.stringify(m.body.mailElement)),console.log("subject : "+m.body.mailElement.subject),console.log("from : "+m.body.mailElement.from),console.log("ccRecipients : "+m.body.mailElement.ccRecipients),console.log("toRecipients : "+m.body.mailElement.toRecipients),d=="mail"||d=="Gmail"){this.currentMailSubject=m.body.mailElement.subject,this.currentFileName=m.body.mailElement.subject,this.currentMailFrom=m.body.mailElement.from,this.currentMailSentDate=m.body.mailElement.sentDate,this.currentMailTo=m.body.mailElement.toRecipients,this.currentMailCc=m.body.mailElement.ccRecipients,this.currentMailBcc=m.body.mailElement.bccRecipients,this.currentMailAttachments=m.body.mailElement.attachments,this.currentMailBody=m.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let I=this.iframe.nativeElement,T=I.contentDocument||I.contentWindow?.document;T&&(T.open(),T.write(this.currentMailBody),T.close()),console.log("body : "+this.currentMailBody)}if(d=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=m.body.mailElement.fileName,this.contactTitle=m.body.mailElement.contactTitle,this.contactFirstName=m.body.mailElement.contactFirstName,this.contactMiddleName=m.body.mailElement.contactMiddleName,this.contactLastName=m.body.mailElement.contactLastName,this.contactSuffix=m.body.mailElement.contactSuffix,this.contactEmail=m.body.mailElement.contactEmail,this.contactMobile=m.body.mailElement.contactMobile,this.contactAddrStreet=m.body.mailElement.contactAddrStreet,this.contactAddrCity=m.body.mailElement.contactAddrCity,this.contactAddrState=m.body.mailElement.contactAddrState,this.contactAddrCountry=m.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=m.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=m.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=m.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=m.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=m.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=m.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=m.body.mailElement.contactOfficeLocation&&m.body.mailElement.contactOfficeLocation!==""?m.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=m.body.mailElement.contactCompanyName&&m.body.mailElement.contactCompanyName!==""?m.body.mailElement.contactCompanyName:"-",this.contactJobTitle=m.body.mailElement.contactJobTitle&&m.body.mailElement.contactJobTitle!==""?m.body.mailElement.contactJobTitle:"-",this.contactDepartment=m.body.mailElement.contactDepartment&&m.body.mailElement.contactDepartment!==""?m.body.mailElement.contactDepartment:"-",this.contactBirthday=m.body.mailElement.contactBirthday&&m.body.mailElement.contactBirthday!==""?m.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=m.body.mailElement.contactHomePhones&&m.body.mailElement.contactHomePhones!==""?m.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=m.body.mailElement.contactBusinessPhones&&m.body.mailElement.contactBusinessPhones!==""?m.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=m.body.mailElement.contactWebSite&&m.body.mailElement.contactWebSite!==""?m.body.mailElement.contactWebSite:"-";let I=[m.body.mailElement.contactBusiAddrStreet,m.body.mailElement.contactBusiAddrCity,m.body.mailElement.contactBusiAddrState,m.body.mailElement.contactBusiAddrCountry,m.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=I.filter(M=>M&&M.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let T=[m.body.mailElement.contactAddrStreet,m.body.mailElement.contactAddrCity,m.body.mailElement.contactAddrState,m.body.mailElement.contactAddrCountry,m.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=T.filter(M=>M&&M.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let k=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(M=>M&&M.trim()!=="");this.fullCombinedName=k.join(" "),this.truncatedCombinedName=this.fullCombinedName.length>20?this.fullCombinedName.substring(0,20)+"...":this.fullCombinedName}this.cdr.detectChanges()}else this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1},m=>{switch(console.error("Error from viewOutlook11: ",m),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(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(d=>d.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(d=>{console.log("res from downloadGsuite : "+JSON.stringify(d)),console.log("res from downloadGsuite : "+JSON.stringify(d.body)),this.cdr.detectChanges()},d=>{switch(console.error("Error from downloadGsuite: ",d),console.error("Error status: ",d.status),console.log("ID : "+d.error.text),d.status){case 200:console.error("Bad Request: ",d.message),this.downloadId=d.error.text;let u=0,m=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),u++,u>=m&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error("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: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}});return}this.apiService.downloadMail(e,n).subscribe(d=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},d=>{if(console.error("Error from downloadMail++++++: ",d.status),d.status=="200"){let u="https://",m=this.configService.baseFolder,S="/BluKryptBuilder/cloud/",x=this.configService.cloudName,I=this.authService.getToken(),T=this.sharedService.getDataByKey("userName"),k=`${u}${m}${S}${x}/portal/download/files/?token=${I}&loginUserName=${T}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(k,"_self")}switch(d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 500:case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}})}initiateRestoreForOutlookSearchFileModalGS(e,n,i,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(d=>{console.log("res from initiateRestore : "+JSON.stringify(d)),console.log("res from initiateRestore : "+JSON.stringify(d.body)),this.toastr.success("Restore has been queued.","Info"),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},d=>{switch(console.error("Error from initiateRestore: ",d),console.error("Error status: ",d.status),d.status){case 400:console.error("Bad Request: ",d.message);break;case 401:console.error("Unauthorized: ",d.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",d.message);break;case 404:console.error("Not Found: ",d.message);break;case 412:console.error("Error code 412: ",d.message),this.toastr.error("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: ",d.message);break;case 500:console.error("Internal Server Error: ",d.message);break;case 503:console.error("Internal Server Error: ",d.message);break;default:console.error("Unknown Error: ",d.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error("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,d=""){this.displayRestoreStyleR="block";let u=[{label:"",options:[{value:this.currentMailUser||d,label:this.currentMailUser||d}]}];this.deviceUsersListR=u,this.selectedValueR=this.currentMailUser||d,this.value18R=this.currentMailUser||d,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.updateNow(this.selectedValueR),this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],!["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(d=>({value:d.userName,label:d.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(d=>d.blocked===!1&&d.osType==r).map(d=>({deviceName:d.deviceName,deviceUUID:d.deviceUUID,deviceId:d.deviceId,osType:d.osType,decoupled:d.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:"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(d=>d.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 d=r.getTime();this.restoreDataBeforeR=d.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],d=n[2];d.startsWith("(")&&d.endsWith(")")&&(d=d.slice(1,-1)),i[r].push(d)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMail(){let e=[];this.fromId&&e.push(`from:${this.fromId.split(",").map(n=>n.trim()).join(",")}`),this.toId&&e.push(`to:${this.toId.split(",").map(n=>n.trim()).join(",")}`),this.ccId&&e.push(`cc:${this.ccId.split(",").map(n=>n.trim()).join(",")}`),this.bccId&&e.push(`bcc:${this.bccId.split(",").map(n=>n.trim()).join(",")}`),this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}static{this.\u0275fac=function(n){return new(n||t)(y(q),y(re),y(Z),y(ke),y(qi),y(oe),y(Ve),y(ze),y(on),y(qe),y(Je),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(B(ls,5),B(cs,5),B(ds,5),B(ps,5),B(ms,5),B(hs,5),B(us,5),B(gs,5),B(fs,5),B(vs,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,"card-body-center",2,"min-height","60vh"],[1,"local-spinner-container"],[1,"local-spinner"],[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 g(r),f(i.closeOverlay())}),b(5,"i",13),a(),o(6,"c-nav",14)(7,"c-nav-item",15)(8,"button",16),_("click",function(){return g(r),f(i.setActiveSearchTab("default",0))}),c(9," Search Users/Assets "),a()(),o(10,"c-nav-item")(11,"button",16),_("click",function(){return g(r),f(i.setActiveSearchTab("file",1))}),c(12," Search by file/folder names "),a()(),C(13,ks,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),c(20,"Search Users/Assets"),a(),o(21,"input",22,1),O("ngModelChange",function(u){return g(r),D(i.userAssetSearchText,u)||(i.userAssetSearchText=u),f(u)}),_("keydown.enter",function(){return g(r),f(i.searchForUsersAssets())}),a()()(),o(23,"c-row"),C(24,Is,2,1,"c-card",17)(25,Ms,6,1,"c-card",17),b(26,"br"),C(27,Es,2,1,"c-card",17)(28,Ds,6,1,"c-card",17),b(29,"br"),C(30,Os,2,1,"c-card",17)(31,Rs,6,1,"c-card",17),a()(),o(32,"c-tab-pane",19)(33,"c-row",23)(34,"div",24)(35,"label",25),c(36,"Product Type"),a(),o(37,"select",26),O("ngModelChange",function(u){return g(r),D(i.productTypeFiles,u)||(i.productTypeFiles=u),f(u)}),_("change",function(u){return g(r),f(i.onChangeProductType(u))}),C(38,Us,2,0,"option",27)(39,Fs,2,0,"option",28)(40,Ns,2,0,"option",29),be(41,Bs,1,1,"option",30,Be),a()(),C(43,Ls,4,5,"div",31)(44,Gs,4,4,"div",31)(45,js,7,2,"div",31),a(),o(46,"c-row",32)(47,"div",33)(48,"c-input-group")(49,"input",34,2),O("ngModelChange",function(u){return g(r),D(i.filesSearchText,u)||(i.filesSearchText=u),f(u)}),_("keydown.enter",function(){return g(r),f(i.searchForFiles())}),a()()(),o(51,"div",35)(52,"button",36),_("click",function(){return g(r),f(i.searchForFiles())}),c(53,"Search"),a()()(),b(54,"br"),C(55,Ws,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),c(61,"Product Type"),a(),o(62,"select",39),O("ngModelChange",function(u){return g(r),D(i.productTypeContentSearch,u)||(i.productTypeContentSearch=u),f(u)}),_("change",function(u){return g(r),f(i.onChangeProductTypeContentSearch(u))}),C(63,Ys,2,0,"option",40)(64,$s,2,0,"option",28)(65,Qs,2,0,"option",29)(66,Ks,2,0,"option",41),be(67,Xs,1,3,"option",30,Be),a()(),C(69,el,4,5,"div",31)(70,tl,4,4,"div",31)(71,rl,7,2,"div",31),a(),C(72,ol,8,1,"c-row",42)(73,sl,8,4,"c-row",43)(74,cl,2,1,"c-row",43),b(75,"br"),C(76,pl,10,3,"c-row",37)(77,ml,5,0,"c-row",43)(78,rc,37,29,"c-row",44),b(79,"br"),C(80,cc,7,4,"c-row",45),a()()()()()(),o(81,"div",46)(82,"div",47)(83,"div",48)(84,"div",49)(85,"h4",50),c(86,"Specify Filename"),a()(),o(87,"div",51)(88,"c-row")(89,"div",52)(90,"label",53),c(91,"Specify pst filename"),a(),o(92,"input",54),O("ngModelChange",function(u){return g(r),D(i.pstFileNameG,u)||(i.pstFileNameG=u),f(u)}),a()()()(),o(93,"div",55)(94,"button",56),_("click",function(){return g(r),f(i.closePstPopupG())}),c(95,"Close"),a(),C(96,dc,2,0,"button",57)(97,pc,2,0,"button",57),a()()()(),o(98,"div",58)(99,"div",59)(100,"div",48)(101,"div",49)(102,"h4",50),c(103,"Restore Progress"),a()(),o(104,"div",51)(105,"c-card")(106,"c-card-header",60),c(107,"Currently Running Restore Statistics"),a(),o(108,"c-card-body")(109,"c-row",61)(110,"table",62)(111,"thead")(112,"tr"),C(113,mc,2,0,"th",17),o(114,"th"),c(115,"Overall Progress"),a()()(),o(116,"tbody")(117,"tr"),C(118,uc,5,9,"td",17)(119,gc,2,0,"td",17)(120,fc,6,10,"td",17)(121,vc,2,0,"td",17),a()()()()()()(),o(122,"div",55)(123,"button",56),_("click",function(){return g(r),f(i.closeDownloadPstPopupG())}),c(124,"Close"),a(),C(125,_c,2,0,"button",63),a()()()(),o(126,"div",46)(127,"div",47)(128,"div",48)(129,"div",49)(130,"h4",50),c(131,"Restore Cancel Confirmation"),a()(),o(132,"div",51)(133,"h4",50),c(134,"Are you sure you wish to cancel the restore?"),a()(),o(135,"div",55)(136,"button",56),_("click",function(){return g(r),f(i.closeDownloadPstConfirmPopupG())}),c(137,"Cancel"),a(),o(138,"button",64),_("click",function(){return g(r),f(i.cancelDownloadAsPstConfirmG())}),c(139,"Ok"),a()()()()(),o(140,"div",46)(141,"div",47)(142,"div",48)(143,"div",49)(144,"h4",50),c(145,"Confirmation"),a()(),o(146,"div",51)(147,"h4",50),c(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 g(r),f(i.closeDownloadPstRunBkpPopupG())}),c(151,"Cancel"),a(),o(152,"button",65),_("click",function(){return g(r),f(i.cancelDownloadAsPstRunBkpG())}),c(153,"Ok"),a()()()()(),o(154,"div",66)(155,"div",59)(156,"div",48)(157,"div",49)(158,"h4",50),c(159,"Restore Settings"),a()(),o(160,"div",51),C(161,Sc,58,25,"c-card",17)(162,Rc,22,14,"c-card",17),a(),o(163,"div",55),C(164,Uc,2,0,"button",67)(165,Fc,2,0,"button",68)(166,Nc,2,0,"button",69)(167,Vc,2,0,"button",70),a()()()(),o(168,"div",71)(169,"div",47)(170,"div",48)(171,"div",49)(172,"h4",50),c(173,"Browse path"),a()(),o(174,"div",51)(175,"c-row",61)(176,"c-card",72)(177,"c-card-header",60)(178,"span"),c(179,"Current Path :"),C(180,Bc,2,0,"span",17)(181,Lc,2,0,"span",17)(182,Gc,2,1,"span",17),a()(),o(183,"c-card-body"),C(184,zc,3,0,"button",73),o(185,"div",74)(186,"table",75)(187,"thead")(188,"tr",76)(189,"th"),c(190,"Items"),a()()(),o(191,"tbody"),C(192,Hc,5,0,"tr",17)(193,jc,4,5,"tr",77),a()()()()(),o(194,"c-card",72)(195,"c-card-body")(196,"div",52)(197,"label",78),c(198,"Create new folder"),a(),o(199,"c-input-group",11)(200,"input",79),O("ngModelChange",function(u){return g(r),D(i.newFolderR,u)||(i.newFolderR=u),f(u)}),a(),o(201,"button",80),_("click",function(){return g(r),f(i.addNewFolderR(i.newFolderR))}),c(202,"Create"),a()()()()()()(),o(203,"div",55)(204,"button",56),_("click",function(){return g(r),f(i.closeBrowsePopupR())}),c(205,"Close"),a(),o(206,"button",65),_("click",function(){return g(r),f(i.usePathR())}),c(207,"Use Path"),a()()()()(),o(208,"div",46)(209,"div",47)(210,"div",48)(211,"div",49)(212,"h4",50),c(213,"Restore Cancel Confirmation"),a()(),o(214,"div",51)(215,"h4",50),c(216,"Are you sure you wish to cancel the restore?"),a()(),o(217,"div",55)(218,"button",56),_("click",function(){return g(r),f(i.closeDeleteRestorePopupR())}),c(219,"Close"),a(),o(220,"button",65),_("click",function(){return g(r),f(i.deleteRestoreEventR())}),c(221,"Delete"),a()()()()()}if(n&2){let r=te(15);s(7),p("ngStyle",G(68,fe,i.userType!="user"?"block":"none")),s(),p("cTabContent",r)("tabPaneIdx",0),s(3),p("cTabContent",r)("tabPaneIdx",1),s(2),p("ngIf",i.inclusionLicenses.includes("contentsearchenabled")),s(),p("activeTabPaneIdx",i.activeTabIndex),s(7),P("ngModel",i.userAssetSearchText),s(3),p("ngIf",i.noUsersFoundText!=""),s(),p("ngIf",i.foundUsers.length>0),s(2),p("ngIf",i.noSitesFoundText!=""),s(),p("ngIf",i.foundSites.length>0),s(2),p("ngIf",i.noDevicesFoundText!=""),s(),p("ngIf",i.foundDevices.length>0),s(6),P("ngModel",i.productTypeFiles),s(),p("ngIf",i.inclusionLicenses.includes("backup_enabled")),s(),p("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),s(),p("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),s(),ye(i.PRODUCTS_CONFIG),s(2),p("ngIf",i.productTypeFiles!="SHAREPOINT"),s(),p("ngIf",i.productTypeFiles=="SHAREPOINT"),s(),p("ngIf",i.productTypeFiles!="SHAREPOINT"),s(4),P("ngModel",i.filesSearchText),s(6),p("ngIf",i.noFilesFound),s(),p("ngIf",i.foundFiles.length>0&&!i.noFilesFound),s(6),P("ngModel",i.productTypeContentSearch),s(),p("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),s(),p("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),s(),p("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),s(),p("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),s(),ye(i.PRODUCTS_CONFIG),s(2),p("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),p("ngIf",i.productTypeContentSearch=="SHAREPOINT"),s(),p("ngIf",i.productTypeContentSearch!="SHAREPOINT"),s(),p("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),p("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(),p("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),s(2),p("ngIf",i.foundFilesCS.length>0&&!i.noFilesFoundCS&&i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),s(),p("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),s(),p("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),s(2),p("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),s(),p("ngStyle",G(70,fe,i.displayPststyleG)),s(11),P("ngModel",i.pstFileNameG),s(4),p("ngIf",i.exportCompleteMailboxG),s(),p("ngIf",!i.exportCompleteMailboxG),s(),p("ngStyle",G(72,fe,i.displayDownloadPststyleG)),s(15),p("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(5),p("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),p("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),s(),p("ngIf",i.progressG.totalNoOfFilesForRestore!=""),s(),p("ngIf",i.progressG.totalNoOfFilesForRestore==""),s(4),p("ngIf",!R(74,Ie).includes(i.productTypeContentSearch)),s(),p("ngStyle",G(75,fe,i.displayDownloadPstConfirmstyleG)),s(14),p("ngStyle",G(77,fe,i.displayDownloadPstRunBckConfirmstyleG)),s(14),p("ngStyle",G(79,fe,i.displayRestoreStyleR)),s(7),p("ngIf",i.showRestoreSettingsR),s(),p("ngIf",!i.showRestoreSettingsR),s(2),p("ngIf",i.showRestoreSettingsR),s(),p("ngIf",!i.showRestoreSettingsR&&!R(81,Ie).includes(i.productTypeContentSearch)),s(),p("ngIf",i.showRestoreSettingsR),s(),p("ngIf",!i.showRestoreSettingsR),s(),p("ngStyle",G(82,fe,i.displayBrowseStyleR)),s(12),p("ngIf",i.productTypeContentSearch==="Google Drive"),s(),p("ngIf",i.browsePathR==""&&i.productTypeContentSearch!=="Google Drive"||i.productTypeContentSearch==="Gmail"),s(),p("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(2),p("ngIf",i.browsePathR!=""&&i.productTypeContentSearch!=="Gmail"),s(8),p("ngIf",i.loadingR),s(),p("ngForOf",i.browseItemsR),s(7),P("ngModel",i.newFolderR),s(8),p("ngStyle",G(84,fe,i.displayDeleteRestoreStyleR))}},dependencies:[jo,Ho,Tt,He,Dt,At,Ot,No,Vo,Fo,zt,aa,sa,Bt,ta,oa,Lt,la,Gt,he,Ki,yt,ne,tn,en,Se,Xo,ea,Zo,Wo,ko,Et,Mt,Pt,Bo,we,Nt,Ce,Wt,da,Vt,jt,qt,pa,Jt,ma,ha],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)}}.local-spinner-container[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#fff;z-index:1000}.local-spinner[_ngcontent-%COMP%]{width:60px;height:56px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/4.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 4.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-local-d3o0rx 1s infinite steps(12)}.local-spinner[_ngcontent-%COMP%]:before, .local-spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.local-spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-local-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var si=t=>({display:t}),Ea=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],Wc=()=>["/mspDashboard"],qc=()=>["/dashboard"],Jc=()=>["/bluvault"],Yc=()=>({placement:"bottom-start"}),$c=()=>[],Qc=(t,l)=>l.name;function Kc(t,l){if(t&1&&(o(0,"button",32),b(1,"i",33),a()),t&2){let e=h();p("cSidebarToggle",e.sidebarId)}}function Zc(t,l){if(t&1){let e=w();o(0,"c-input-group",34)(1,"input",35),_("click",function(){g(e);let i=h();return f(i.openOverlay())}),a(),o(2,"span",36),b(3,"i",37),a()()}}function Xc(t,l){if(t&1){let e=w();o(0,"c-sidebar-brand",38)(1,"img",39),_("error",function(i){g(e);let r=h();return f(r.onImageError(i))}),a()()}if(t&2){let e=h();p("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&R(2,Ea).includes(e.userType)?R(3,Wc):R(4,Ea).includes(e.userType)?R(5,qc):R(6,Jc)),s(),p("src",e.parabluLogo,ee)}}function ed(t,l){if(t&1){let e=w();o(0,"app-search-overlay",40),_("close",function(){g(e);let i=h();return f(i.closeOverlay())}),a()}}function td(t,l){t&1&&ft(0)}function id(t,l){t&1&&ft(0)}function nd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.currentUserProfile())}),b(2,"i",48),c(3," My Account "),a()()}}function rd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.activityHistory())}),b(2,"i",49),c(3," Activity History "),a()()}}function od(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.unusualActivityHistory())}),b(2,"i",49),c(3," Unusual Activity History "),a()()}}function ad(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.endpointsDownload())}),b(2,"i",50),c(3," Download Agent "),a()()}}function sd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.licenseOptimizer())}),b(2,"i",51),c(3," License Optimizer "),a()()}}function ld(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.packDetails())}),b(2,"i",52),c(3," Current Packs Subscribed "),a()()}}function cd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.navigateToDownloads())}),b(2,"i",50),c(3," Downloads "),a()()}}function dd(t,l){t&1&&(o(0,"li"),b(1,"hr",45),a())}function pd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.activityHistory())}),b(2,"i",53),c(3," Share Activity History "),a()()}}function md(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.unusualActivityHistory())}),b(2,"i",49),c(3," Infected Files History "),a()()}}function hd(t,l){if(t&1){let e=w();o(0,"li")(1,"a",46),_("click",function(){g(e);let i=h(2);return f(i.miniclouds())}),b(2,"i",54),c(3," MiniClouds "),a()()}}function ud(t,l){t&1&&(o(0,"li"),b(1,"hr",45),a())}function gd(t,l){t&1&&(o(0,"li"),b(1,"hr",45),a())}function fd(t,l){if(t&1&&(o(0,"li")(1,"a",55),c(2,"Quick Start Guide"),a()()),t&2){let e=h(2);s(),p("href",e.quick_startUrl,ee)}}function vd(t,l){if(t&1&&(o(0,"li")(1,"a",55),c(2,"Administrator Guide"),a()()),t&2){let e=h(2);s(),p("href",e.administrator_Guide_EndpointUrl,ee)}}function _d(t,l){if(t&1&&(o(0,"li")(1,"a",56),c(2,"Quick Start Guide (Servers)"),a()()),t&2){let e=h(2);s(),p("href",e.quick_start_serverUrl,ee)}}function bd(t,l){if(t&1&&(o(0,"li")(1,"a",56),c(2,"Administrator Guide (Servers)"),a()()),t&2){let e=h(2);s(),p("href",e.administrator_Guide_ServerUrl,ee)}}function yd(t,l){if(t&1&&(o(0,"li")(1,"a",56),c(2,"User Guide"),a()()),t&2){let e=h(2);s(),p("href",e.userGuideUrl,ee)}}function Cd(t,l){t&1&&(o(0,"li"),b(1,"hr",45),a())}function Sd(t,l){t&1&&(o(0,"li")(1,"h6",57),c(2," Help & Support "),a()())}function wd(t,l){t&1&&(o(0,"li")(1,"a",55),b(2,"i",58),c(3," +971 50 158 7321 "),a()()),t&2&&(s(),p("href","https://wa.me/971501587321",ee))}function xd(t,l){if(t&1&&(o(0,"li")(1,"a",59),b(2,"i",60),c(3," Send email "),a()()),t&2){let e=h(2);s(),p("href","mailto:"+e.support_mailId,ee)}}function kd(t,l){t&1&&(o(0,"li"),b(1,"hr",45),a())}function Id(t,l){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,nd,4,0,"li",24),o(5,"li"),b(6,"hr",45),a(),C(7,rd,4,0,"li",24)(8,od,4,0,"li",24)(9,ad,4,0,"li",24)(10,sd,4,0,"li",24)(11,ld,4,0,"li",24)(12,cd,4,0,"li",24)(13,dd,2,0,"li",24)(14,pd,4,0,"li",24)(15,md,4,0,"li",24)(16,hd,4,0,"li",24)(17,ud,2,0,"li",24)(18,gd,2,0,"li",24)(19,fd,3,1,"li",24)(20,vd,3,1,"li",24)(21,_d,3,1,"li",24)(22,bd,3,1,"li",24)(23,yd,3,1,"li",24)(24,Cd,2,0,"li",24)(25,Sd,3,0,"li",24)(26,wd,4,1,"li",24)(27,xd,4,1,"li",24)(28,kd,2,0,"li",24),o(29,"li")(30,"a",46),_("click",function(){g(e);let i=h();return f(i.logout())}),b(31,"i",47),c(32," Logout "),a()()()()}if(t&2){let e=h();p("popperOptions",R(26,Yc)),s(),p("caret",!1),s(),p("size","md"),s(2),p("ngIf",!(e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin")),s(3),p("ngIf",e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user"),s(),p("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),s(),p("ngIf",e.inclusionLicenses.includes("backup_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),s(),p("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("sync_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",e.inclusionLicenses.includes("msp_environment_enabled"))}}function Td(t,l){if(t&1){let e=w();o(0,"button",67),_("click",function(){g(e);let i=h(2);return f(i.click_Crashplan_Endpoint())}),o(1,"a",68),c(2,"CrashPlan Endpoint"),a()()}if(t&2){let e=h(2);s(),p("href",e.crashplan_Endpoint_Url,ee)}}function Md(t,l){if(t&1){let e=w();o(0,"button",69),_("click",function(){let i=g(e).$implicit,r=h(2);return r.colorMode.set(i.name),f(r.applyTheme())}),pt(),b(1,"svg",70),c(2),a()}if(t&2){let e=l.$implicit,n=h(2);p("active",n.colorMode()===e.name)("routerLink",R(4,$c)),s(),p("name",e.icon),s(),E(" ",e.text," ")}}function Ed(t,l){if(t&1&&(C(0,Td,3,1,"button",61),o(1,"c-dropdown",62)(2,"button",63),pt(),b(3,"svg",64),a(),Xt(),o(4,"div",65),be(5,Md,3,5,"button",66,Qc),a()()),t&2){let e=h();p("ngIf",e.crashplan_Endpoint_Url),s(2),p("caret",!1),s(),p("name",e.icons()),s(2),ye(e.colorModes)}}function Pd(t,l){t&1&&(o(0,"th",17),c(1,"Servers"),a())}function Dd(t,l){t&1&&(o(0,"td",20)(1,"span"),c(2,"-"),a()())}function Od(t,l){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),c(3),a()(),o(4,"td",20)(5,"div"),c(6),a()(),o(7,"td",20)(8,"div"),c(9),a()(),o(10,"td",20)(11,"div"),c(12,"-"),a()()()),t&2){let e=l.$implicit;s(3),A(e.skuCode),s(3),A(e.storageSize),s(3),A(e.minUserCount)}}function Ad(t,l){if(t&1&&(o(0,"tr")(1,"td",20)(2,"div"),c(3),a()(),o(4,"td",20)(5,"div"),c(6,"-"),a()(),o(7,"td",20)(8,"div"),c(9),a()(),o(10,"td",20)(11,"div"),c(12),a()()()),t&2){let e=l.$implicit;s(3),A(e.skuCode),s(6),A(e.storageSize),s(3),A(e.minUserCount)}}function Rd(t,l){if(t&1&&(Ze(0),C(1,Ad,13,3,"tr",23),Xe()),t&2){let e=h();s(),p("ngForOf",e.serverPacks)}}function Ud(t,l){if(t&1&&(o(0,"td",20)(1,"span")(2,"b"),c(3),a()()()),t&2){let e=h();s(3),A(e.totalServer)}}function Fd(t,l){if(t&1){let e=w();o(0,"app-crashplan-nav",71),_("closeModalHandler",function(){g(e);let i=h();return f(i.close_Crashplan_Endpoint())}),a()}}var Pa=(()=>{class t extends Lo{#t;#e;#i;constructor(e,n,i,r,d,u,m,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=d,this.cdr=u,this.toastr=m,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=De(ln),this.#e=De(Mo),this.colorMode=this.#e.colorMode,this.#i=De(Oi),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Hi(()=>{let k=this.colorMode();return this.colorModes.find(M=>M.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)}),wo(this.#i)).subscribe(),this.crashplan_Endpoint_Url=atob(this.sharedService.getDataByKey("cp_endpoint")||""),localStorage.getItem("theme-default")=='"dark"'?this.parabluLogo=this.imageSrc[4]:this.parabluLogo=this.imageSrc[0],this.crashplanLogo=this.imageSrc[1],this.quick_startUrl=this.guideUrlSrc[0],this.administrator_Guide_EndpointUrl=this.guideUrlSrc[1],this.quick_start_serverUrl=this.guideUrlSrc[2],this.administrator_Guide_ServerUrl=this.guideUrlSrc[3],this.userGuideUrl=this.guideUrlSrc[4]}ngOnInit(){return 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,d)=>{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 u=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 m=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(Ve),y(oe),y(Z),y(ze),y(ke),y(Se),y(Je),y(ae))}}static{this.\u0275cmp=F({type:t,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},features:[ie([Se,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,Kc,2,1,"button",3)(3,Zc,4,0,"c-input-group",4)(4,Xc,2,7,"c-sidebar-brand",5)(5,ed,1,0,"app-search-overlay",6),o(6,"c-header-nav",7),C(7,td,1,0,"ng-container",8)(8,id,1,0,"ng-container",8),a()(),Xe(),C(9,Id,33,27,"ng-template",null,0,_t)(11,Ed,7,3,"ng-template",null,1,_t),o(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"h4",13),c(18,"Current Packs Subscribed"),a()(),o(19,"div",14)(20,"c-row")(21,"table",15)(22,"thead",16)(23,"tr")(24,"th",17),c(25,"Pack Name "),a(),o(26,"th",17)(27,"p",18),c(28,"Managed Data"),a(),o(29,"p",18),c(30,"(GB)"),a()(),o(31,"th",17),c(32,"Users"),a(),C(33,Pd,2,0,"th",19),a()(),o(34,"tbody")(35,"tr")(36,"td",20)(37,"span")(38,"a",21),c(39),a(),b(40,"br"),o(41,"span"),c(42,"(Base Pack)"),a()()(),o(43,"td",20)(44,"span"),c(45),a()(),o(46,"td",20)(47,"span"),c(48),a()(),C(49,Dd,3,0,"td",22),a(),C(50,Od,13,3,"tr",23)(51,Rd,2,1,"ng-container",24),o(52,"tr",20)(53,"td",20)(54,"span")(55,"b"),c(56,"Total"),a()()(),o(57,"td",20)(58,"span")(59,"b"),c(60),a()()(),o(61,"td",20)(62,"span")(63,"b"),c(64),a()()(),C(65,Ud,4,1,"td",22),a()()()()(),o(66,"div",25)(67,"button",26),_("click",function(){return g(r),f(i.closePackDetails())}),c(68,"Close"),a()()()()(),C(69,Fd,1,0,"app-crashplan-nav",27),o(70,"div",9)(71,"div",10)(72,"div",11)(73,"div",12)(74,"h4",13),c(75,"Step 1: Provide Consent"),a(),o(76,"a",28),b(77,"i",29),a()(),o(78,"div",14)(79,"h4"),c(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),c(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 g(r),f(i.denyConsentFlow())}),c(85,"Cancel"),a(),o(86,"button",31),_("click",function(){return g(r),f(i.proceedForConsentFlow())}),c(87,"Proceed"),a()()()()(),o(88,"div",9)(89,"div",10)(90,"div",11)(91,"div",12)(92,"h4",13),c(93,"Step 2: Configure Assets"),a()(),o(94,"div",14)(95,"h4"),c(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 g(r),f(i.denyAssetConfigurationFlow())}),c(99,"Cancel"),a(),o(100,"button",31),_("click",function(){return g(r),f(i.proceedForAssetConfigurationFlow())}),c(101,"Proceed"),a()()()()()}if(n&2){let r=te(10),d=te(12);s(),p("fluid",!0),s(),p("ngIf",!i.showCenterBrandLogo),s(),p("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")),s(),p("ngIf",i.showCenterBrandLogo),s(),p("ngIf",i.isOverlayVisible),s(2),p("ngTemplateOutlet",d),s(),p("ngTemplateOutlet",r),s(5),p("ngStyle",G(26,si,i.stylePackDetails)),s(8),p("hover",!0)("responsive",!0)("striped",!0),s(12),p("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(5),et("cTooltip","(Subscribed On : ",i.getFormattedDate(i.subscriptionStartDate)," )"),s(),E(" ",i.skuCode,""),s(6),A(i.storageSize),s(3),A(i.minUserCount),s(),p("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(),p("ngForOf",i.userPacks),s(),p("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(9),A(i.totalStorage),s(4),A(i.totalUser),s(),p("ngIf",i.inclusionLicenses.includes("windows_server_backup_enabled")),s(4),p("ngIf",i.showCrashplanEndpointLicenseModal),s(),p("ngStyle",G(28,si,i.displayConsentRemainder)),s(18),p("ngStyle",G(30,si,i.displayAssetConfigurationRemainder))}},dependencies:[Rt,ka,zo,Ut,Ft,vo,Go,wt,Zi,Oo,Do,Tt,Po,Ao,Eo,Dt,At,Ot,Ma,he,yt,ne,He,Ce,we,Vt,Nt,To],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 Nd=4,Vd=.001,Bd=1e-7,Ld=10,ot=11,$t=1/(ot-1),Gd=typeof Float32Array=="function";function Da(t,l){return 1-3*l+3*t}function Oa(t,l){return 3*l-6*t}function Aa(t){return 3*t}function Qt(t,l,e){return((Da(l,e)*t+Oa(l,e))*t+Aa(l))*t}function Ra(t,l,e){return 3*Da(l,e)*t*t+2*Oa(l,e)*t+Aa(l)}function zd(t,l,e,n,i){let r,d,u=0;do d=l+(e-l)/2,r=Qt(d,n,i)-t,r>0?e=d:l=d;while(Math.abs(r)>Bd&&++u<Ld);return d}function Hd(t,l,e,n){for(let i=0;i<Nd;++i){let r=Ra(l,e,n);if(r===0)return l;let d=Qt(l,e,n)-t;l-=d/r}return l}function jd(t){return t}function Wd(t,l,e,n){if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===l&&e===n)return jd;let i=Gd?new Float32Array(ot):new Array(ot);for(let d=0;d<ot;++d)i[d]=Qt(d*$t,t,e);function r(d){let u=0,m=1,S=ot-1;for(;m!==S&&i[m]<=d;++m)u+=$t;--m;let x=(d-i[m])/(i[m+1]-i[m]),I=u+x*$t,T=Ra(I,t,e);return T>=Vd?Hd(d,I,t,e):T===0?I:zd(d,u,u+$t,t,e)}return function(u){return u===0?0:u===1?1:Qt(r(u),l,n)}}var qd=new Fe("SMOOTH_SCROLL_OPTIONS"),Ua=(()=>{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):xo(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new ve).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return _e(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 Ue(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:Wd(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(d=>{Pe(null).pipe(wi(()=>this._step(r).pipe(Ii(u=>this._isFinished(u,i,d)))),se(this._interrupted(e,i)),xi(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(ji(this._platform)){let i=this._getElement(e),r=getComputedStyle(i).direction==="rtl",d=Ht(),u=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 u.bottom!=null&&(u.top=i.scrollHeight-i.clientHeight-u.bottom),r&&d!==0?(u.left!=null&&(u.right=i.scrollWidth-i.clientWidth-u.left),d===2?u.left=u.right:d===1&&(u.left=u.right?-u.right:u.right)):u.right!=null&&(u.left=i.scrollWidth-i.clientWidth-u.right),this._applyScrollToOptions(i,u)}return Promise.resolve()}scrollToElement(e,n,i={}){let r=this._getElement(e),d=this._getElement(n,r),u=ue(L({},i),{left:d.offsetLeft+(i.left||0),top:d.offsetTop+(i.top||0)});return d?this.scrollTo(r,u):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(j(K),j(Ri),j(qd,8))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yd=["scrollbarY"],$d=["scrollbarX"],Qd=["*"];function Kd(t,l){if(t&1&&b(0,"scrollbar-x",null,0),t&2){let e=h(2);Ae("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function Zd(t,l){if(t&1&&b(0,"scrollbar-y",null,1),t&2){let e=h(2);Ae("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Xd(t,l){if(t&1&&(Ze(0),C(1,Kd,2,2,"scrollbar-x",5)(2,Zd,2,2,"scrollbar-y",5),Xe()),t&2){let e=h();s(),p("ngIf",e.state.horizontalUsed),s(),p("ngIf",e.state.verticalUsed)}}var ep=(()=>{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 Ba(t){return U(()=>{t.onselectstart=()=>!1})}function La(t){return U(()=>{t.onselectstart=null})}function Te(){return U(t=>t.stopPropagation())}function li(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var ci=(()=>{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 Ue(i=>{let r=W(this.nativeElement,"mousemove",{passive:!0}),d=e?r:r.pipe(Te()),u=W(this.nativeElement,"mouseleave",{passive:!0}).pipe(H(()=>!1));_e(d,u).pipe(U(m=>i.next(m)),se(n)).subscribe()}),this.clicked=new Ue(i=>{let r=W(this.nativeElement,"mousedown",{passive:!0}).pipe(U(u=>i.next(u))),d=W(this.nativeElement,"mouseup",{passive:!0}).pipe(U(()=>i.next(!1)));r.pipe($e(()=>d),se(n)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(e){this.nativeElement.className+=` ng-native-scrollbar-hider ng-scroll-viewport ${e}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(e){this.nativeElement.scrollTop=e}scrollXTo(e){this.nativeElement.scrollLeft=e}static{this.\u0275fac=function(n){return new(n||t)(y(J))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),pe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),mi=(()=>{class t{get clicked(){let e=W(this.trackElement,"mousedown",{passive:!0}).pipe(Te(),Ba(this.document)),n=W(this.document,"mouseup",{passive:!0}).pipe(Te(),La(this.document),$e(()=>vi));return _e(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 Pe(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:ni(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(y(pe),y(HTMLElement),y(Document))}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),di=(()=>{class t extends mi{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(pe),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarTrackX",""]],features:[ce]})}}return t})(),pi=(()=>{class t extends mi{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(pe),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarTrackY",""]],features:[ce]})}}return t})(),Ga=(()=>{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(Te())}constructor(e,n,i,r){this.cmp=e,this.track=n,this.thumbElement=i,this.document=r,this._dragging=new ve,this.dragging=this._dragging.pipe(ct())}update(){let e=tp(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=ip(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);st.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,r=Pe(e).pipe(Ba(this.document),U(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),d=W(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Te()),u=W(this.document,"mouseup",{capture:!0}).pipe(Te(),La(this.document),U(()=>this.setDragging(!1)));return r.pipe(H(m=>m[this.pageProperty]),H(m=>m-this.dragStartOffset),_i(m=>d.pipe(H(S=>S[this.clientProperty]),H(S=>S-this.track.offset),H(S=>i*(S-m)/n),H(S=>this.handleDrag(S,i)),U(S=>this.scrollTo(S)),se(u))))}static{this.\u0275fac=function(n){return new(n||t)(y(pe),y(mi),y(HTMLElement),y(Document))}}static{this.\u0275dir=$({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function tp(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function ip(t,l,e){return t*e/l}var Fa=(()=>{class t extends Ga{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,d){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r,this.dir=d}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(y(pe),y(di),y(J),y(K),y(ri))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarThumbX",""]],features:[ce]})}}return t})(),Na=(()=>{class t extends Ga{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(pe),y(pi),y(J),y(K))}}static{this.\u0275dir=$({type:t,selectors:[["","scrollbarThumbY",""]],features:[ce]})}}return t})(),za=(()=>{class t{constructor(e,n,i,r,d){this.el=e,this.cmp=n,this.platform=i,this.document=r,this.zone=d,this.destroyed=new ve}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new ve,this.viewportThumbClicked=new ve,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(H(r=>r?li(r,this.el.getBoundingClientRect()):!1),ct(),U(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe(U(r=>{r?li(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):li(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),_e(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(Te(),H(()=>!0)),n=W(this.el,"mouseleave",{passive:!0}).pipe(Te(),H(()=>!1));return _e(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(se(this.destroyed)).subscribe(),_e(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(pe),y(We),y(Document),y(me))}}static{this.\u0275dir=$({type:t,standalone:!1})}}return t})(),np=(()=>{class t extends za{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,r,d){super(e.nativeElement,n,i,r,d),this.cmp=n,this.platform=i,this.document=r,this.zone=d}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(pe),y(We),y(K),y(me))}}static{this.\u0275cmp=F({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(B(pi,7),B(Na,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&&Re("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:[pi,Na],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})(),rp=(()=>{class t extends za{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,r,d){super(e.nativeElement,n,i,r,d),this.cmp=n,this.platform=i,this.document=r,this.zone=d}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(pe),y(We),y(K),y(me))}}static{this.\u0275cmp=F({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(B(di,7),B(Fa,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&&Re("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:[di,Fa],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})(),op=new Fe("NG_SCROLLBAR_OPTIONS"),Va={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},Ha=(()=>{class t{constructor(e){this.globalOptions=e?L(L({},Va),e):Va,this.rtlScrollAxisType=Ht()}static{this.\u0275fac=function(n){return new(n||t)(j(op,8))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ap=(()=>{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(Zt(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(Ha),j(We))}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sp=(()=>{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`,Ui.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(J),y(Ve),y(ap))}}static{this.\u0275dir=$({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),lp=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=ni(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=xe(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 Oe,!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 Ue(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(Zt(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(me),y(We),y(pe))}}static{this.\u0275dir=$({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),ja=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=xe(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=xe(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=xe(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=xe(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=xe(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=xe(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,r,d,u){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=r,this.smoothScroll=d,this.manager=u,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Oe,this.state={},this.destroyed=new ve}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(me),y(ze),y(ri),y(Ua),y(Ha))}}static{this.\u0275cmp=F({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,r){if(n&1&&Li(r,ci,7),n&2){let d;N(d=V())&&(i.customViewPort=d.first)}},viewQuery:function(n,i){if(n&1&&(B(Yd,5,J),B($d,5,J),B(ci,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&&Re("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:pe,useExisting:t}]),Pi],ngContentSelectors:Qd,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&&(Vi(),o(0,"div",2)(1,"div",3),_("resizeSensor",function(){return i.update()}),o(2,"div",4)(3,"div"),Bi(4),a()()(),C(5,Xd,3,2,"ng-container",5),a()),n&2&&(p("ngAttr",i.state),s(),p("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),s(4),p("ngIf",!i.disabled))},dependencies:[ne,ep,lp,ci,sp,rp,np],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 Wa=()=>[{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 qa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ut({type:t});static \u0275inj=dt({imports:[ca]})}return t})();function cp(t,l){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 an?this.loadingService.loadingOn():e instanceof sn&&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,cp,2,0,"div",0),de(1,"async")),n&2&&ge(zi(1,1,i.loading$)?0:-1)},dependencies:[qa,Xi],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 Ya=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],dp=()=>["/mspDashboard"],pp=()=>["/dashboard"],mp=()=>["/bluvault"];function hp(t,l){t&1&&(o(0,"c-sidebar-footer",15),b(1,"button",16),a())}function up(t,l){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){g(e);let r=h();return f(r.onImageError(i))}),a()()(),o(5,"ng-scrollbar",13,1),_("updated",function(){g(e);let i=te(6),r=h();return f(r.onScrollbarUpdate(i.state))}),b(7,"c-sidebar-nav",14,2),a(),C(9,hp,2,0,"c-sidebar-footer",15),a()}if(t&2){let e=te(1),n=h();s(3),p("routerLink",n.isMspEnabled&&R(4,Ya).includes(n.userType)?R(5,dp):R(6,Ya).includes(n.userType)?R(7,pp):R(8,mp)),s(),p("src",n.parabluLogo,ee),s(3),p("navItems",n.navItems),s(2),ge(e.narrow?-1:9)}}var $a=(()=>{class t{constructor(e,n,i){this.sharedService=e,this.licenseCheckService=n,this.userRoleService=i,this.navItems=Wa(),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"),d=r||localStorage.setItem("theme-default",'"light"');this.parabluLogo=d==="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,this.navItems.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,up,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&&(p("ngIf",i.showSideBar),s(2),p("cShadowOnScroll","sm"),s(4),p("detectRouteTransitions",!0))},dependencies:[qo,Yo,Ut,wt,ja,Qo,$o,Ft,Jo,Pa,Io,Rt,St,he,ne,xa,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 Qa=(()=>{class t{constructor(e){this.toastr=e}showOnSuccess(){this.toastr.success("Successfully Added....","Success")}static{this.\u0275fac=function(n){return new(n||t)(y(ke))}}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"),c(1,"toastalert works!"),a(),o(2,"button",0),_("click",function(){return i.showOnSuccess()}),c(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 d=this.authService.getToken();return!d||d.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 gp=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],fp=[import("./chunk-5FL2UCDB.js"),import("./chunk-4PTIUGZT.js"),import("./chunk-AFRS2VNU.js"),import("./chunk-7RUCPGQD.js"),import("./chunk-WQAPBHNZ.js"),import("./chunk-IVH4X5AL.js")],Ka=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:$a,children:[{path:"dashboard",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DXP6SXOO.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UA6GEKPZ.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3LIJY752.js").then(t=>t.routes)},{path:"bluvault",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-EBDG5AZR.js").then(t=>t.routes)},{path:"backup/files",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-2SY46G2H.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-235ZCQG7.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-QL2PUPNQ.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4YUKZHNB.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-QL2PUPNQ.js").then(t=>t.routes)},{path:"pms",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-K5QNSQO6.js").then(t=>t.routes)},{path:"pms/policy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZMFKAE57.js").then(t=>t.routes)},{path:"pms/policy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-3O5CX3VP.js").then(t=>t.routes)},{path:"pms/policy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-WRFJJS7F.js").then(t=>t.routes)},{path:"pms/policy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZPCWKGY5.js").then(t=>t.routes)},{path:"pms/policy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KZFJW2Y3.js").then(t=>t.routes)},{path:"pms/policy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UCRZUS5M.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-H3NCYV6K.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LRFPSJLF.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YCLWYSJK.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FIW2PAY6.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-RGGPP6OE.js").then(t=>t.routes)},{path:"pms/oneDrivePolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BSWVWPN3.js").then(t=>t.routes)},{path:"pms/exchangePolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-URG33D4T.js").then(t=>t.routes)},{path:"pms/exchangePolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6PN23FRK.js").then(t=>t.routes)},{path:"pms/exchangePolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ULF2WGTM.js").then(t=>t.routes)},{path:"pms/exchangePolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-GCR5T3WH.js").then(t=>t.routes)},{path:"pms/exchangePolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7MYVUOTX.js").then(t=>t.routes)},{path:"pms/exchangePolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YS75DXLI.js").then(t=>t.routes)},{path:"pms/sharepointPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ARK5PDK5.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HRCIT6HX.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-NT5H56BZ.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-HU7E4IUX.js").then(t=>t.routes)},{path:"pms/sharepointPolicy/policyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OLWE4UTA.js").then(t=>t.routes)},{path:"pms/gmailPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MRBMQSTD.js").then(t=>t.routes)},{path:"pms/gmailPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-OLMNSQWY.js").then(t=>t.routes)},{path:"pms/gmailPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-BYXNJCK3.js").then(t=>t.routes)},{path:"pms/gmailPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JDZ7MD3R.js").then(t=>t.routes)},{path:"pms/gmailPolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Z4HTNJMU.js").then(t=>t.routes)},{path:"pms/gmailPolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZHPBLS2V.js").then(t=>t.routes)},{path:"pms/syncPolicy",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ONQW6Z2E.js").then(t=>t.routes)},{path:"pms/syncPolicy/create",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ISVCCHAH.js").then(t=>t.routes)},{path:"pms/syncPolicy/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-PEQPHXPL.js").then(t=>t.routes)},{path:"pms/syncPolicy/clone",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YYUUB7QK.js").then(t=>t.routes)},{path:"pms/syncPolicy/singlePolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IN2HSMV3.js").then(t=>t.routes)},{path:"pms/syncPolicy/bulkPolicyMapping",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-U3XTOT64.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UH2SXHFS.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-AMIACIKM.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZTPVZLDO.js").then(t=>t.routes)},...gp.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>fp[l].then(e=>e.routes)})),{path:"settings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LBEWJMH4.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-YIUIN7H3.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IDXRCCHU.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O6YSDF3W.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-4OYOE6EC.js").then(t=>t.routes)},{path:"azure",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O6YSDF3W.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YXVVEBLN.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-HKFK24WW.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7RRCJBF7.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XYKQKNFK.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-MS3N7UTL.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YFKWNRI5.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YL66NJVZ.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JIP57A33.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-JIP57A33.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-C7JWSKDA.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O2LCONMB.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-DLX6UAXM.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-2MMMFTZV.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-YFKWNRI5.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-M34CA6JO.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-5N6Z6ZPX.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-3T3JFLEK.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-C6M53J6X.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XYKQKNFK.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-7RRCJBF7.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-MS3N7UTL.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-NVDWQ5UW.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-6T6XY24Y.js").then(t=>t.routes)},{path:"userMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-LDT5H4Q5.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-RQJIZT3K.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-5NOR4UKL.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-Y5BH7CRC.js").then(t=>t.routes)},{path:"users",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-IHSUG5A7.js").then(t=>t.routes)},{path:"users/create",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DIHIHFN5.js").then(t=>t.routes)},{path:"users/edit",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-ZPZH76PQ.js").then(t=>t.routes)},{path:"users/profile",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-4SR5LHFU.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O7RSPLE5.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-O7RSPLE5.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-3AOS6WCB.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-FV3SDR7X.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-AIBT7MZN.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-UXXCX5QZ.js").then(t=>t.routes)},{path:"support",canActivate:[v],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-EKXHHQMK.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-GGLGKRW5.js").then(t=>t.routes)},{path:"downloads",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-YT4RBN7U.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KGGSTJSP.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6BXWFMBJ.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-B6TGFGDQ.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-N76TTZVR.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6DPVOJLV.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FI5HLWVQ.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7H7PD7KS.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-SF3Q4B5Z.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6ZXRXJMC.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-JG5JYJP3.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-WE3WTXSZ.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[v],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-IOMQ2OVG.js").then(t=>t.routes)},{path:"sync/files",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-W6PAMYIA.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[v],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-KB3DGCLO.js").then(t=>t.routes)},{path:"theme",loadChildren:()=>import("./chunk-T6CI3CQH.js").then(t=>t.routes)},{path:"base",loadChildren:()=>import("./chunk-EACI2AJ3.js").then(t=>t.routes)},{path:"buttons",loadChildren:()=>import("./chunk-WZ6XJSXY.js").then(t=>t.routes)},{path:"forms",loadChildren:()=>import("./chunk-M2OYTOYS.js").then(t=>t.routes)},{path:"icons",loadChildren:()=>import("./chunk-5O2N4JEU.js").then(t=>t.routes)},{path:"notifications",loadChildren:()=>import("./chunk-LY6COJWF.js").then(t=>t.routes)},{path:"widgets",loadChildren:()=>import("./chunk-AEFA5ESL.js").then(t=>t.routes)},{path:"charts",loadChildren:()=>import("./chunk-COLHOCXW.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-LP4CZKHG.js").then(t=>t.routes)}]},{path:"pms/policy/create",loadComponent:()=>import("./chunk-KDMXTTFF.js").then(t=>t.CreateComponent),data:{title:"Policy Create"}},{path:"toast",component:Qa,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-JH32ERN2.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-N4KWALCL.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-KE6PDDWI.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-ZUKPQW3H.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-ZUKPQW3H.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-ZUKPQW3H.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-3QQW2JJN.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-ZUKPQW3H.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-ZUKPQW3H.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"fileArchivedView",loadComponent:()=>import("./chunk-PKFCA7ZP.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"logout",loadComponent:()=>import("./chunk-VLPMT6YW.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-4MCN3BIB.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-EINBPUA3.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}},{path:"register",loadComponent:()=>import("./chunk-2II7XNJK.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"policyView",canActivate:[v],loadComponent:()=>import("./chunk-4DSSAE2A.js").then(t=>t.PolicyViewComponent),data:{title:"Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"onedrivePolicyView",canActivate:[v],loadComponent:()=>import("./chunk-QZ565Y5X.js").then(t=>t.OnedrivePolicyViewComponent),data:{title:"OneDrive Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:":productKey/PolicyView",canActivate:[v],loadComponent:()=>import("./chunk-AWIXENOT.js").then(t=>t.GenericPolicyViewComponent),data:{title:"Generic Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"exchangePolicyView",canActivate:[v],loadComponent:()=>import("./chunk-QGRSDOI3.js").then(t=>t.ExchangePolicyViewComponent),data:{title:"Microsoft Exchange Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"sharepointPolicyView",canActivate:[v],loadComponent:()=>import("./chunk-BAOW45TP.js").then(t=>t.SharepointPolicyViewComponent),data:{title:"SharePoint Online Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"gmailPolicyView",canActivate:[v],loadComponent:()=>import("./chunk-FXXO7KKD.js").then(t=>t.GmailPolicyViewComponent),data:{title:"Gmail Policy View",roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]}},{path:"**",redirectTo:"404"}];var vp="@",_p=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=De(Di);loadingSchedulerFn=De(bp,{optional:!0});_engine;constructor(e,n,i,r,d){this.doc=e,this.delegate=n,this.zone=i,this.animationType=r,this.moduleImpl=d}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-P2FDGASE.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 d=new r(this.delegate,this._engine,this.zone);return this.delegate=d,d})}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let r=new hi(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let u=d.createRenderer(e,n);r.use(u),this.scheduler??=this.injector.get(Ai,null,{optional:!0}),this.scheduler?.notify(10)}).catch(d=>{r.use(i)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(n){Fi()};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),hi=class{delegate;replay=[];\u0275type=1;constructor(l){this.delegate=l}use(l){if(this.delegate=l,this.replay!==null){for(let e of this.replay)e(l);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(l,e){return this.delegate.createElement(l,e)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}get destroyNode(){return this.delegate.destroyNode}appendChild(l,e){this.delegate.appendChild(l,e)}insertBefore(l,e,n,i){this.delegate.insertBefore(l,e,n,i)}removeChild(l,e,n){this.delegate.removeChild(l,e,n)}selectRootElement(l,e){return this.delegate.selectRootElement(l,e)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,e,n,i){this.delegate.setAttribute(l,e,n,i)}removeAttribute(l,e,n){this.delegate.removeAttribute(l,e,n)}addClass(l,e){this.delegate.addClass(l,e)}removeClass(l,e){this.delegate.removeClass(l,e)}setStyle(l,e,n,i){this.delegate.setStyle(l,e,n,i)}removeStyle(l,e,n){this.delegate.removeStyle(l,e,n)}setProperty(l,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(l,e,n)),this.delegate.setProperty(l,e,n)}setValue(l,e){this.delegate.setValue(l,e)}listen(l,e,n,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith(vp)}},bp=new Fe("");function at(t="animations"){return mt("NgAsyncAnimations"),Mi([{provide:ht,useFactory:(l,e,n)=>new _p(l,e,n,t),deps:[K,Ct,me]},{provide:Qe,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Za={providers:[Yi(),cn(Ka,mn({onSameUrlNavigation:"reload"}),dn({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),pn(),hn()),Ei(Ko,Ro),xt,Sa(),at("noop"),ua({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),at(),qe]};function yp(t){return()=>t.loadConfig().toPromise().then(l=>{t.setConfig(l)})}nn(ya,{providers:[...Za.providers,bt,{provide:Ni,useFactory:yp,deps:[qe],multi:!0},{provide:Ji,useClass:Qi,multi:!0},at()]}).catch(t=>console.error(t));export{yp as loadConfig};
