import{a as di}from"./chunk-CI54BM33.js";import{$ as Xr,$a as ea,A as Tr,Aa as Io,B as Ir,Ba as Eo,C as Er,Ca as Po,D as Pr,Da as Mo,E as Mr,Ea as Do,F as Dr,Fa as Oo,G as Or,Ga as Ao,H as Ar,Ha as Uo,I as Ur,Ia as Fo,J as Fr,Ja as Bo,K as Br,Ka as Ro,L as Rr,La as No,M as Nr,Ma as Vo,N as Vr,Na as Lo,O as Lr,Oa as Ho,P as Hr,Pa as Go,Q as Gr,Qa as zo,R as zr,Ra as jo,S as jr,Sa as Wo,T as Wr,Ta as qo,U as qr,Ua as $o,V as $r,Va as Jo,W as Jr,Wa as Zo,X as Zr,Xa as Yo,Y as Yr,Ya as Ko,Z as Kr,Za as Qo,_ as Qr,_a as Xo,a as er,aa as eo,ab as ta,b as tr,ba as to,bb as ia,c as ir,ca as io,d as nr,da as no,e as rr,ea as ro,f as or,fa as oo,g as ar,ga as ao,h as sr,ha as so,i as lr,ia as lo,j as cr,ja as co,k as dr,ka as po,l as pr,la as uo,m as ur,ma as ho,n as hr,na as mo,o as mr,oa as go,p as gr,pa as _o,q as _r,qa as fo,r as fr,ra as vo,s as vr,sa as bo,t as br,ta as yo,u as yr,ua as Co,v as Cr,va as So,w as Sr,wa as wo,x as wr,xa as xo,y as xr,ya as ko,z as kr,za as To}from"./chunk-S555YZ5B.js";import{a as Ja,c as Za,d as Ya}from"./chunk-7MHMPJA3.js";import{j as Xa}from"./chunk-55H2SBE4.js";import{a as qa}from"./chunk-PXGRSJKQ.js";import{a as es}from"./chunk-ETBN4HGS.js";import{a as Ei}from"./chunk-WAIMFULU.js";import{a as Qa}from"./chunk-EHN5UK7C.js";import{a as Ga,b as $e}from"./chunk-IMT3MFWG.js";import{a as Ct}from"./chunk-ZLOK5AQJ.js";import{a as St}from"./chunk-OTQDR5IZ.js";import{k as oa,l as At,m as pi,o as aa,q as ui,s as sa,x as la}from"./chunk-JBKSESFV.js";import{a as Gi,b as zi,c as Ut,d as Ft,e as ts,f as is,g as ns}from"./chunk-ATRETRRG.js";import"./chunk-GY6BVIJ7.js";import"./chunk-BZVTEAZU.js";import"./chunk-UYHUTK4O.js";import{b as Je,d as za,f as ja,g as Ze}from"./chunk-B45ESAXN.js";import{a as Ka}from"./chunk-N5VHC4FS.js";import{a as Me}from"./chunk-3RT77MSZ.js";import{a as ra,b as $a}from"./chunk-MTXI6L3C.js";import{a as Fn,b as Yn,c as pt,d as oi,e as be,f as Kn,h as Xn,j as li,k as W}from"./chunk-DR3Y2OVK.js";import{a as Wa}from"./chunk-XOUXG4JN.js";import{a as Hi,b as Ii,p as We,s as qe}from"./chunk-T3YX2C7Q.js";import{c as ye,f as J,i as fe}from"./chunk-VBRZMJLA.js";import{b as ki,c as vt,g as bt,h as Aa,i as Ua,j as yt,k as Fa,p as Ba,q as Ra,r as Na,u as Ti,v as Va,w as La,x as Ha,y as je}from"./chunk-NKZT3EQA.js";import{a as _e}from"./chunk-WQZJMFA2.js";import{$ as ge,$a as _i,A as Nn,Ab as wi,B as me,Bb as ft,Cb as Ma,D as ct,Db as Da,E as ti,Eb as Oa,F as ne,Fb as xi,G as ii,H as Vn,Ha as hi,I as Ln,Ia as pa,J as ni,Ja as mi,L as dt,La as gi,M as Hn,N as Gn,Na as ht,O as zn,Oa as mt,Q as ri,R as re,Ra as gt,S as jn,Sa as ua,T as Wn,Ta as ha,U as qn,Ua as ma,V as $n,Va as ga,W as Jn,Wa as _a,X as Zn,Xa as fa,Y as ai,Ya as va,Z as Qn,Za as ba,_ as oe,a as Mn,aa as si,ab as ya,b as ue,ba as ci,c as Dn,ca as na,da as ca,e as On,fb as fi,gb as vi,hb as bi,i as Pe,ib as yi,j as Xt,ja as ut,jb as ze,k as An,l as Un,la as Li,lb as Ca,m as he,ma as da,mb as Sa,nb as Ci,q as He,qb as wa,r as Ge,rb as xa,s as ie,sb as ka,ub as Si,vb as Ta,w as lt,wb as _t,x as Bn,xb as Ia,y as ei,yb as Ea,z as Rn,zb as Pa}from"./chunk-UC7WBLNF.js";import{A as an,Aa as vn,B as Q,Ba as bn,Bb as L,Cc as pe,D as Ve,Da as Se,Db as de,Dc as u,E as Gt,Ea as Ie,Eb as wn,Ec as _,F as sn,Fa as Wt,Fb as xe,Fc as I,Gc as X,Hb as x,Hc as En,I as Ni,Ia as le,Ic as B,Jc as R,K as ln,Kc as N,L as cn,Lb as Pt,M as zt,N as dn,O as pn,Oc as ee,Pa as yn,Pc as $,Qa as Et,Qc as A,Rc as ke,S as un,Sb as Ue,Ta as qt,Tb as d,Ub as ce,Uc as m,Vb as Le,Vc as g,Wc as te,X as Tt,Xb as xn,Xc as st,Y as Ce,Yb as Mt,Yc as Qt,Z as hn,_ as G,_b as Jt,a as tn,aa as mn,ac as at,bc as Fe,bd as Ee,c as it,ca as se,cc as Be,dc as a,eb as rt,ec as s,f as Ne,fa as nt,fb as ve,fc as C,g as nn,gb as we,gc as Dt,ha as H,hc as Ot,ia as Qe,ic as Zt,id as Pn,j as Lt,jb as Xe,jc as w,k as rn,la as gn,lb as o,ma as It,mb as Cn,oc as y,p as Ke,pb as $t,pc as h,qb as ot,qc as kn,ra as jt,rb as S,rc as Tn,sa as f,sb as Sn,sc as Re,t as Ht,ta as v,tc as Yt,u as Y,ua as Vi,uc as Kt,va as _n,vc as In,w as on,wc as q,xc as z,ya as fn,yc as j}from"./chunk-2BMUMDG3.js";import{a as Z,b as Ae,i as V}from"./chunk-2AVGQ2MQ.js";var rs=["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 os=["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 as={cibCcAmex:er,cibCcApplePay:tr,cibCcMastercard:ir,cibCcPaypal:nr,cibCcStripe:rr,cibCcVisa:or,cibFacebook:ar,cibGoogle:sr,cibLinkedin:lr,cibSkype:cr,cibTwitter:dr,cifBr:pr,cifEs:ur,cifFr:hr,cifIn:mr,cifPl:gr,cifUs:_r,cilAccountLogout:fr,cilAlignCenter:vr,cilAlignLeft:br,cilAlignRight:yr,cilApplicationsSettings:Cr,cilArrowBottom:Sr,cilArrowRight:wr,cilArrowTop:kr,cilBasket:Tr,cilBell:Ir,cilBold:Er,cilBookmark:Pr,cilCalculator:Mr,cilCalendar:Dr,cilChart:Ar,cilChartPie:Or,cilCheck:Fr,cilCheckAlt:Ur,cilChevronLeft:Br,cilChevronRight:Rr,cilCloud:Vr,cilCloudDownload:Nr,cilCode:Lr,cilCommentSquare:Hr,cilContrast:Gr,cilCreditCard:zr,cilCursor:jr,cilDescription:Wr,cilDollar:$r,cilDrop:Jr,cilEnvelopeClosed:Zr,cilEnvelopeOpen:Yr,cilFile:Qr,cilGrid:eo,cilHome:no,cilInbox:ro,cilIndentDecrease:oo,cilIndentIncrease:ao,cilItalic:so,cilJustifyCenter:lo,cilLanguage:co,cilLayers:po,cilList:ho,cilListNumbered:uo,cilLocationPin:mo,cilLockLocked:go,cilMagnifyingGlass:_o,cilMap:fo,cilMediaPlay:bo,cilMediaRecord:yo,cilMenu:So,cilMoon:wo,cilNotes:xo,cilOptions:ko,cilPaperclip:Io,cilPaperPlane:To,cilPen:Eo,cilPencil:Po,cilPeople:Mo,cilPrint:Do,cilPuzzle:Oo,cilReportSlash:Uo,cilSave:Fo,cilSettings:Ro,cilShare:Lo,cilShareAll:No,cilShareBoxed:Vo,cilSpeech:zo,cilSpeedometer:jo,cilSpreadsheet:Wo,cilStar:qo,cilSun:$o,cilTags:Jo,cilTask:Zo,cilTrash:Ko,cilUnderline:Qo,cilUser:ia,cilUserFemale:Xo,cilUserFollow:ea,cilUserUnfollow:ta,logo:os,signet:rs,cilDevices:qr,cilSitemap:Go,cilTransfer:Yo,cilHistory:io,cilHandshake:to,cilReload:Ao,cilFullscreen:Xr,cilMediaPause:vo,cilMediaStop:Co,cilShieldAlt:Ho,cilArrowThickBottom:xr,cilEqualizer:Kr,cilSend:Bo};var ls=(()=>{class t{constructor(e,n,i,r,c,p){this.router=e,this.titleService=n,this.iconSetService=i,this.idleTimeoutService=r,this.TranslateService=c,this.uploadManager=p,this.title="CrashPlan",this.isConfigLoaded=!1,this.timeoutInSeconds=600,this.titleService.setTitle(this.title),this.iconSetService.icons=Z({},as)}ngOnInit(){return V(this,null,function*(){this.router.events.subscribe(e=>{e instanceof dt})})}beforeUnloadHandler(e){if(this.uploadManager.hasFiles())return e.preventDefault(),e.returnValue=this.TranslateService.instant("You have active uploads. Are you sure you want to leave?"),this.TranslateService.instant("You have active uploads. Are you sure you want to leave?")}updateTimeout(){let e=this.timeoutInSeconds*1e3;this.idleTimeoutService.setTimeoutDuration(e),alert(`Timeout updated to ${this.timeoutInSeconds} seconds.`)}static{this.\u0275fac=function(n){return new(n||t)(S(re),S(Ln),S(ci),S(ra),S(oe),S(di))}}static{this.\u0275cmp=L({type:t,selectors:[["app-root"]],hostBindings:function(n,i){n&1&&y("beforeunload",function(c){return i.beforeUnloadHandler(c)},!1,Xe)},decls:1,vars:0,template:function(n,i){n&1&&C(0,"router-outlet")},dependencies:[ri],encapsulation:2})}}return t})();var Xs=(()=>{class t extends ui{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(H(ue),H(At),H(pi))};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})();function el(){return new aa}function tl(t,l,e){return new la(t,l,e)}var cs=[{provide:pi,useFactory:el},{provide:ui,useClass:Xs},{provide:$t,useFactory:tl,deps:[ii,ui,Ie]}],wh=[{provide:At,useClass:oa},{provide:Et,useValue:"NoopAnimations"},...cs],il=[{provide:At,useFactory:()=>new sa},{provide:Et,useFactory:()=>"BrowserAnimations"},...cs];function ds(){return qt("NgEagerAnimations"),[...il]}var ps=(()=>{class t extends ba{constructor(e){super(),this.userRoleService=e,this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.conversationalAI=!1,this.currentYear=new Date().getFullYear(),this.neilLogo="",this.userLogo="",this.query="",this.answer="",this.session_id="",this.index=0,this.userType="",this.neilLogo=this.imageSrc[3],this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.init()}init(){return V(this,null,function*(){this.userType=yield this.userRoleService.getUserRole()})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var r=n+":"+i;return r}static{this.\u0275fac=function(n){return new(n||t)(S(fe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-footer"]],inputs:{conversationalAI:"conversationalAI"},features:[ee([J,W]),xe],decls:3,vars:1,consts:[[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"a",1),u(2),s()()),n&2&&(o(2),I("\xA9 CrashPlan ",i.currentYear," "))},dependencies:[je,ne,he,$e,qe,Je,Ze],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 nl(t,l){t&1&&(a(0,"h4",9),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Your Organization is not licensed to use the CrashPlan Endpoint Product")))}function rl(t,l){t&1&&(a(0,"h4",9),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Contact support to add a product to your existing plan")))}function ol(t,l){t&1&&(a(0,"p",10),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"Contact Sales for more information.")," "))}function al(t,l){if(t&1){let e=w();a(0,"button",12),y("click",function(){f(e);let i=h(2);return v(i.navigateToSales())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Contact Sales")))}function sl(t,l){if(t&1){let e=w();a(0,"button",12),y("click",function(){f(e);let i=h(2);return v(i.navigateToSales())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Contact Support")))}function ll(t,l){if(t&1&&(a(0,"div",7),x(1,al,3,3,"button",11)(2,sl,3,3,"button",11),s()),t&2){let e=h();o(),d("ngIf",!e.inclusionLicenses.includes("issmblicenseenabled")),o(),d("ngIf",e.inclusionLicenses.includes("issmblicenseenabled"))}}var us=(()=>{class t{constructor(e,n,i){this.sharedService=e,this.userRoleService=n,this.licenseCheckService=i,this.closeModalHandler=new Se,this.userType="",this.inclusionLicenses=[]}ngOnInit(){return V(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew()})}closeSelf(){this.closeModalHandler.emit()}navigateToSales(){this.inclusionLicenses.includes("issmblicenseenabled")?window.open("https://support.crashplan.com/hc/en-us/requests/new","_blank"):window.open("https://www.crashplan.com/contact-sales/","_blank"),this.closeSelf()}static{this.\u0275fac=function(n){return new(n||t)(S(ye),S(fe),S(Me))}}static{this.\u0275cmp=L({type:t,selectors:[["app-crashplan-nav"]],outputs:{closeModalHandler:"closeModalHandler"},features:[ee([me,J,W])],decls:14,vars:7,consts:[["tabindex","-1","role","dialog",1,"modal",2,"display","block"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-body",2,"text-align","center","padding","2em 4em"],["class","modal-title","style","margin-bottom: .3em;",4,"ngIf"],["style","margin-bottom: 1em;",4,"ngIf"],["style","display: inline-flex; margin:.5em;font-weight: bold;",4,"ngIf"],[2,"display","inline-flex","margin",".5em","font-weight","bold"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-title",2,"margin-bottom",".3em"],[2,"margin-bottom","1em"],["type","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"c-row"),x(5,nl,3,3,"h4",4)(6,rl,3,3,"h4",4)(7,ol,3,3,"p",5),a(8,"div"),x(9,ll,3,2,"div",6),a(10,"div",7)(11,"button",8),y("click",function(){return i.closeSelf()}),u(12),m(13,"translate"),s()()()()()()()()),n&2&&(o(5),d("ngIf",!i.inclusionLicenses.includes("issmblicenseenabled")),o(),d("ngIf",i.inclusionLicenses.includes("issmblicenseenabled")),o(),d("ngIf",!i.inclusionLicenses.includes("issmblicenseenabled")),o(2),d("ngIf",i.userType==="admin"),o(3),_(g(13,5,"Back to Dashboard")))},dependencies:[ne,ie,he,ze,ge],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}a[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:#fff!important}"]})}}return t})();var hs=(()=>{class t{transform(e,n=",",i){if(!e)return"";let r=e.split(n);return i!==void 0?r[i]:r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wn({name:"split",type:t,pure:!0})}}return t})();var dl=t=>({totalCountGS:t}),pl=(t,l)=>({"col-lg-12":t,"col-lg-7":l}),ul=()=>({"col-lg-5":!0}),hl=t=>({display:t}),ml=(t,l)=>({active:t,disabled:l}),gl=(t,l)=>({addedElementsCount:t,totalCountGS:l}),_l=()=>["Google Drive","Gmail"];function fl(t,l){if(t&1){let e=w();a(0,"a",22),y("click",function(){f(e);let i=h(2);return v(i.enableMultiSelect())}),C(1,"i",23),a(2,"span",24),u(3),m(4,"translate"),s()()}t&2&&(o(3),_(g(4,1,"Enable Multiselect")))}function vl(t,l){if(t&1){let e=w();a(0,"a",22),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),C(1,"i",25),a(2,"span",24),u(3),m(4,"translate"),s()()}t&2&&(o(3),_(g(4,1,"Disable Multiselect")))}function bl(t,l){if(t&1){let e=w();a(0,"button",26),y("click",function(){f(e);let i=h(2);return v(i.addToCartFinal())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Add Selected Items")))}function yl(t,l){if(t&1){let e=w();a(0,"button",27),y("click",function(){f(e);let i=h(2);return v(i.onExportAsZipG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Export all items to Zip")))}function Cl(t,l){if(t&1){let e=w();a(0,"button",28),y("click",function(){f(e);let i=h(2);return v(i.onExportAsZipG())}),u(1," Export selected items to Zip "),s()}if(t&2){let e=h(2);d("ngClass",ke(1,ml,e.addedElementsCount>0,e.addedElementsCount<=0))}}function Sl(t,l){if(t&1){let e=w();a(0,"th",29)(1,"input",30),m(2,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.isSelectAll,i)||(r.isSelectAll=i),v(i)}),y("change",function(){f(e);let i=h(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=h(2);o(),d("title",g(2,2,"Select all")),B("ngModel",e.isSelectAll)}}function wl(t,l){if(t&1){let e=w();a(0,"td")(1,"input",35),N("ngModelChange",function(i){f(e);let r=h().$implicit;return R(r.isChecked,i)||(r.isChecked=i),v(i)}),y("change",function(){f(e);let i=h(3);return v(i.itemSelect())}),s()()}if(t&2){let e=h().$implicit;o(),B("ngModel",e.isChecked)}}function xl(t,l){if(t&1){let e=w();a(0,"tr"),x(1,wl,2,1,"td",0),a(2,"td")(3,"div")(4,"h4"),u(5),s()(),a(6,"p",31)(7,"b"),u(8,"Found in: "),s(),u(9),s(),a(10,"p"),C(11,"span",32),s()(),a(12,"td")(13,"button",33),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.onDownload(i))}),u(14),m(15,"translate"),s(),a(16,"button",34),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.onOpenLocation(i))}),u(17),m(18,"translate"),s()()()}if(t&2){let e=l.$implicit,n=h(2);Le("selected-rowMail",n.isSelected(e)),o(),d("ngIf",n.isMultiSelectEnabled),o(4),_(e.fileName),o(4),X("",e.deviceName," : ",e.filePath,""),o(2),d("innerHTML",n.renderHtml(e.content),ve),o(3),_(g(15,9,"Download")),o(3),_(g(18,11,"Open File Location"))}}function kl(t,l){if(t&1){let e=w();a(0,"th"),u(1),m(2,"translate"),a(3,"button",36),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),u(4),m(5,"translate"),s()()}if(t&2){let e=h(2);o(),I(" ",te(2,2,"addedElementsCountoutoftotalCountGSelected",ke(7,gl,e.addedElementsCount,e.totalCountGS))," "),o(3),_(g(5,5,"Remove all"))}}function Tl(t,l){if(t&1&&(a(0,"th"),u(1),m(2,"translate"),s()),t&2){let e=h(2);o(),X(" ",e.addedElementsCount," ",g(2,2,"selected"),"")}}function Il(t,l){if(t&1){let e=w();a(0,"tr")(1,"td",37)(2,"span",38),u(3),s(),a(4,"a",39),y("click",function(){let i=f(e),r=i.$implicit,c=i.index,p=h(2);return v(p.removeItem(c,r.fileName,r.fileRevisionID,r.fileName))}),C(5,"i",40),s(),a(6,"p",41)(7,"b"),u(8),m(9,"translate"),s(),a(10,"span",42),u(11),s()()()()}if(t&2){let e=l.$implicit;o(3),_(e.fileName),o(5),_(g(9,4,"Found in:")),o(3),X("",e.deviceName," : ",e.filePath,"")}}function El(t,l){if(t&1&&(a(0,"c-row")(1,"c-col")(2,"c-card")(3,"c-card-header",5),x(4,fl,5,3,"a",6)(5,vl,5,3,"a",6),a(6,"span")(7,"b"),u(8),m(9,"translate"),s()(),x(10,bl,3,3,"button",7)(11,yl,3,3,"button",8)(12,Cl,2,4,"button",9),s(),a(13,"c-card-body",10)(14,"c-card",11)(15,"c-card-body")(16,"div",12)(17,"table",13)(18,"thead",14)(19,"tr"),x(20,Sl,3,4,"th",15),a(21,"th",16),u(22,"File Name"),s(),a(23,"th",17),u(24,"Actions"),s()()(),a(25,"tbody"),x(26,xl,19,13,"tr",18),s()()()()(),a(27,"c-card",19)(28,"c-card-body")(29,"div",12)(30,"table",20)(31,"thead")(32,"tr"),x(33,kl,6,10,"th",0)(34,Tl,3,4,"th",0),s()(),a(35,"tbody"),x(36,Il,12,6,"tr",21),s()()()()()()()()()),t&2){let e=h();o(4),d("ngIf",e.isMultiSelectEnabled),o(),d("ngIf",e.isMultiSelectEnabled),o(3),_(te(9,18,"{{ totalCountGS }} Search Results Found",A(21,dl,e.totalCountGS))),o(2),d("ngIf",e.updateAddToCartButtonVisibility()),o(),d("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"&&e.productType!=="Gmail"&&e.productType!=="mail"),o(),d("ngIf",e.isMultiSelectEnabled&&e.userType!=="superAdmin"),o(2),d("ngClass",ke(23,pl,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),o(3),d("hover",!0)("responsive",!0),o(3),d("ngIf",e.isMultiSelectEnabled),o(6),d("ngForOf",e.foundFiles),o(),d("ngClass",$(26,ul))("ngStyle",A(27,hl,e.isMultiSelectEnabled?"block":"none")),o(3),d("hover",!0)("responsive",!0),o(3),d("ngIf",e.addedElementsCount>0),o(),d("ngIf",e.addedElementsCount==0),o(2),d("ngForOf",e.addedElementsUpdated)}}function Pl(t,l){t&1&&(a(0,"c-row",43)(1,"c-card",44)(2,"c-card-body")(3,"b"),u(4),m(5,"translate"),s()()()()),t&2&&(o(4),_(g(5,1,"There are no results!.")))}function Ml(t,l){if(t&1){let e=w();a(0,"a",52),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.first))}),C(1,"i",53),s()}}function Dl(t,l){if(t&1){let e=w();a(0,"a",54),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.previous))}),C(1,"i",55),s()}}function Ol(t,l){if(t&1){let e=w();a(0,"a",56),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.next))}),C(1,"i",57),s()}}function Al(t,l){if(t&1){let e=w();a(0,"a",58),y("click",function(){f(e);let i=h(2);return v(i.onNavigate(i.last))}),C(1,"i",59),s()}}function Ul(t,l){if(t&1&&(a(0,"c-row",45)(1,"div",46)(2,"div",47),x(3,Ml,2,0,"a",48)(4,Dl,2,0,"a",49)(5,Ol,2,0,"a",50)(6,Al,2,0,"a",51),s()()()),t&2){let e=h();o(3),d("ngIf",e.first),o(),d("ngIf",e.previous),o(),d("ngIf",e.next),o(),d("ngIf",e.last)}}function Fl(t,l){if(t&1){let e=w();a(0,"button",72),y("click",function(){f(e);let i=h(2);return v(i.exportCompleteSearchAsZipTriggerG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Proceed")))}function Bl(t,l){if(t&1){let e=w();a(0,"button",72),y("click",function(){f(e);let i=h(2);return v(i.exportSelectedAsZipG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Proceed")))}function Rl(t,l){if(t&1){let e=w();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),u(5),m(6,"translate"),s()(),a(7,"div",65)(8,"c-row")(9,"div",66)(10,"label",67),u(11),m(12,"translate"),s(),a(13,"input",68),m(14,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.zipFileNameG,i)||(r.zipFileNameG=i),v(i)}),s()()()(),a(15,"div",69)(16,"button",70),y("click",function(){f(e);let i=h();return v(i.closeZipPopupG())}),u(17),m(18,"translate"),s(),x(19,Fl,3,3,"button",71)(20,Bl,3,3,"button",71),s()()()()}if(t&2){let e=h();o(5),_(g(6,7,"Specify Filename")),o(6),_(g(12,9,"Specify Filename")),o(2),B("ngModel",e.zipFileNameG),d("placeholder",g(14,11,"Enter ZIP File Name")),o(4),_(g(18,13,"Close")),o(2),d("ngIf",e.exportCompleteSearchG),o(),d("ngIf",!e.exportCompleteSearchG)}}function Nl(t,l){t&1&&(a(0,"th"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Current item being processed")))}function Vl(t,l){if(t&1&&(a(0,"span"),u(1),m(2,"slice"),s()),t&2){let e=h(3);o(),I("/ ",st(2,1,e.progressG.subject,0,40),"")}}function Ll(t,l){if(t&1&&(a(0,"td")(1,"span",78),u(2),m(3,"slice"),s(),x(4,Vl,3,5,"span",0),s()),t&2){let e=h(2);o(),Kt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),o(),_(st(3,5,e.progressG.currentFolderPath,0,20)),o(2),d("ngIf",e.progressG.subject)}}function Hl(t,l){t&1&&(a(0,"td"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"-")))}function Gl(t,l){if(t&1&&(a(0,"td"),u(1),a(2,"div",79)(3,"div",80),u(4),m(5,"number"),s()()()),t&2){let e=h(2);o(),X("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore," "),o(),Yt("title","",e.progressG.totalRestorePct,"%"),o(),ce("width",e.progressG.totalRestorePct,"%"),o(),I(" ",te(5,7,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function zl(t,l){t&1&&(a(0,"td"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"0")))}function jl(t,l){if(t&1){let e=w();a(0,"button",81),y("click",function(){f(e);let i=h(2);return v(i.cancelDownloadAsZipG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Cancel Restore")))}function Wl(t,l){if(t&1){let e=w();a(0,"div",73)(1,"div",74)(2,"div",62)(3,"div",63)(4,"h4",64),u(5),m(6,"translate"),s()(),a(7,"div",65)(8,"c-card")(9,"c-card-header",75),u(10),m(11,"translate"),s(),a(12,"c-card-body")(13,"c-row",43)(14,"table",76)(15,"thead")(16,"tr"),x(17,Nl,3,3,"th",0),a(18,"th"),u(19),m(20,"translate"),s()()(),a(21,"tbody")(22,"tr"),x(23,Ll,5,9,"td",0)(24,Hl,3,3,"td",0)(25,Gl,6,10,"td",0)(26,zl,3,3,"td",0),s()()()()()()(),a(27,"div",69)(28,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipPopupG())}),u(29,"Close"),s(),x(30,jl,3,3,"button",77),s()()()()}if(t&2){let e=h();o(5),_(g(6,9,"Restore Progress")),o(5),_(g(11,11,"Currently Running Restore Statistics")),o(7),d("ngIf",e.productType!="Gmail"&&e.productType!="Google Drive"),o(2),_(g(20,13,"Overall Progress")),o(4),d("ngIf",e.progressG.currentFolderPath!=""&&e.productType!="Gmail"&&e.productType!="Google Drive"),o(),d("ngIf",e.progressG.currentFolderPath==""&&e.productType!="Gmail"&&e.productType!="Google Drive"),o(),d("ngIf",e.progressG.totalNoOfFilesForRestore!=""),o(),d("ngIf",e.progressG.totalNoOfFilesForRestore==""),o(4),d("ngIf",!$(15,_l).includes(e.productType))}}function ql(t,l){if(t&1){let e=w();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),u(5),m(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),u(9),m(10,"translate"),s()(),a(11,"div",69)(12,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipConfirmPopupG())}),u(13),m(14,"translate"),s(),a(15,"button",82),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsZipConfirmG())}),u(16),m(17,"translate"),s()()()()()}t&2&&(o(5),_(g(6,4,"Restore Cancel Confirmation")),o(4),_(g(10,6,"Are you sure you wish to cancel the restore?")),o(4),_(g(14,8,"Cancel")),o(3),_(g(17,10,"Ok")))}function $l(t,l){if(t&1){let e=w();a(0,"div",60)(1,"div",61)(2,"div",62)(3,"div",63)(4,"h4",64),u(5),m(6,"translate"),s()(),a(7,"div",65)(8,"h4",64),u(9),m(10,"translate"),s()(),a(11,"div",69)(12,"button",70),y("click",function(){f(e);let i=h();return v(i.closeDownloadZipRunBkpPopupG())}),u(13),m(14,"translate"),s(),a(15,"button",81),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsZipRunBkpG())}),u(16),m(17,"translate"),s()()()()()}t&2&&(o(5),_(g(6,4,"Confirmation")),o(4),_(g(10,6,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),o(4),_(g(14,8,"Cancel")),o(3),_(g(17,10,"Ok")))}var gs=(()=>{class t{constructor(e,n,i,r,c,p,b,k,E){this.cdr=e,this.toastr=n,this.TranslateService=i,this.sharedService=r,this.sanitizer=c,this.apiService=p,this.assetManagementService=b,this.router=k,this.configService=E,this.foundFiles=[],this.noFilesFound=!1,this.productType="",this.contentSearchText="",this.totalCountGS="",this.userType="",this.currentDeviceUUID="",this.first="",this.previous="",this.next="",this.last="",this.downloadFile=new Se,this.openFileLocation=new Se,this.navigatePage=new Se,this.isMultiSelectEnabled=!1,this.isSelectAll=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.displayZipstyleG=!1,this.exportCompleteSearchG=!1,this.zipFileNameG="",this.selectedUsers=new Set,this.selectedValueCS=null,this.deviceId="",this.devicesCS=[],this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1,this.categoryContentSearch="mail"}ngOnChanges(e){e.noFilesFound&&e.noFilesFound.currentValue===!0&&this.removeAll()}getFormattedData(e){return atob(e)||""}onDownload(e){this.downloadFile.emit(e)}onOpenLocation(e){this.openFileLocation.emit(e)}onNavigate(e){this.navigatePage.emit(e)}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(rt.HTML,e)||"")}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundFiles.filter(n=>n.isChecked);if(e.length>0){let n=e.filter(c=>!this.isBackupIdExists(c.fileRevisionID));if(this.addedElementsUpdated.length+n.length>500){this.toastr.error(this.TranslateService.instant("You can add a maximum of 500 items."),this.TranslateService.instant("Limit Exceeded")),this.clearSelection(),this.isSelectAll=!1;return}n.length>0?(this.addedElementsUpdated.push(...n),this.addedElements=this.addedElementsUpdated.map(c=>c.fileName),this.addedElementsCount=this.addedElementsUpdated.length):this.toastr.error(this.TranslateService.instant("Item(s) already added."),this.TranslateService.instant("Error")),this.clearSelection(),this.isSelectAll=!1,this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundFiles.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.fileRevisionID===e)}toggleSelectAll(){this.foundFiles.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundFiles.some(e=>e.isChecked)}itemSelect(){let e=this.foundFiles.length,n=this.foundFiles.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundFiles.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!1}removeItem(e,n,i,r){console.log("inside itemselect child component : "+i),console.log("addedElementsUpdated child component : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated=this.addedElementsUpdated.filter(c=>c.fileRevisionID!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}exportFolderAsZipModalG(){this.displayZipstyleG=!0,this.exportCompleteSearchG=!1,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"))}isSelected(e){return this.selectedUsers.has(e)}exportCompleteMailboxAsZipG(){this.displayZipstyleG=!0,this.exportCompleteSearchG=!1,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"))}onExportAsZipG(){this.displayZipstyleG=!0,this.isMultiSelectEnabled?this.exportCompleteSearchG=!1:this.exportCompleteSearchG=!0,this.zipFileNameG=atob(this.sharedService.getDataByKey("userName"))}closeZipPopupG(){this.displayZipstyleG=!1}getZipBatchDetailElements(){return console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.addedElementsUpdated.map(e=>({backupId:e.backupId,deviceUUID:e.deviceUUID}))}exportCompleteSearchAsZipTriggerG(){if(console.log("exportCompleteSearchAsZipTriggerG!!!!!"),this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("Fail!!!"));return}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("zipFileNameG : "+this.zipFileNameG),console.log("contentSearchText : "+this.contentSearchText),this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.selectedValueCS==""||this.selectedValueCS==null?this.deviceId="":this.deviceId=this.devicesCS[0].deviceId,console.log("deviceId : "+this.deviceId),this.apiService.getContentSearch(this.productType,this.foundFiles[0].userName,this.foundFiles[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];this.batchIdG=e.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","","",!1,this.batchIdG).subscribe(c=>{console.log("res from initiateRestore : "+JSON.stringify(c)),console.log("res from initiateRestore : "+JSON.stringify(c.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!1,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),this.cdr.detectChanges()},c=>{switch(console.error("Error from initiateRestore: ",c),console.error("Error status: ",c.status),c.status){case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 412:console.error("Error code 412: ",c.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error"));break;case 500:console.error("Internal Server Error: ",c.message);break;case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.message);break}})},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}exportSelectedAsZipG(){if(this.displayZipstyleG=!1,this.zipFileNameG==""){this.toastr.error(this.TranslateService.instant("Please specify a ZIP name."),this.TranslateService.instant("Fail!!!"));return}if(["mail","OUTLOOK","Gmail"].includes(this.productType)){let e=this.getZipBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.assetManagementService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.productType==="mail"?"OUTLOOK":this.productType,!1,this.zipFileNameG).subscribe(n=>this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.assetManagementService.exportSelectedAsPstG(this.getZipBatchDetailElements()).subscribe(e=>{this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!0,console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundFiles[0].deviceUUID,this.zipFileNameG,"","",this.foundFiles[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadZipstyleG=!0,this.currentDeviceUUID=this.foundFiles[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressG()},5e3),this.cdr.detectChanges()},n=>{switch(console.error("Error from initiateRestore: ",n),console.error("Error status: ",n.status),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}triggerGmailProgress(e,n=!1){n?this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadZipstyleG=!0,this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadZipEventsProgressGmail(this.productType==="mail"?"OUTLOOK":this.productType,n)},1e4),this.cdr.detectChanges()}getDownloadZipEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(this.currentDeviceUUID,this.downloadId,this.product.dataManagementKey||this.product.key||e).subscribe(i=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),i.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadZipEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}getDownloadZipEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadZipEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),e.status=="202"&&(this.displayDownloadZipstyleG=!1,this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG),setTimeout(()=>{},3e3)))},e=>{switch(console.error("Error from getDownloadZipEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}cancelDownloadAsZipRunBkpG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipRunBckConfirmstyleG=!1,this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges()}closeDownloadZipRunBkpPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!1}cancelDownloadAsZipConfirmG(){this.displayDownloadZipstyleG=!1,this.displayDownloadZipConfirmstyleG=!1,this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsZip : "+JSON.stringify(e)),console.log("res from cancelDownloadAsZip : "+JSON.stringify(e.body)),this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdG&&clearInterval(this.intervalIdG)},e=>{switch(console.error("Error from cancelDownloadAsZip: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}closeDownloadZipConfirmPopupG(){this.displayDownloadZipConfirmstyleG=!1}cancelDownloadAsZipG(){this.displayDownloadZipConfirmstyleG=!0}closeDownloadZipPopupG(){this.displayDownloadZipRunBckConfirmstyleG=!0}static{this.\u0275fac=function(n){return new(n||t)(S(Ee),S(be),S(oe),S(ye),S(ni),S(W),S(St),S(re),S(_e))}}static{this.\u0275cmp=L({type:t,selectors:[["app-document-content-search"]],inputs:{foundFiles:"foundFiles",noFilesFound:"noFilesFound",productType:"productType",contentSearchText:"contentSearchText",totalCountGS:"totalCountGS",userType:"userType",currentDeviceUUID:"currentDeviceUUID",product:"product",first:"first",previous:"previous",next:"next",last:"last"},outputs:{downloadFile:"downloadFile",openFileLocation:"openFileLocation",navigatePage:"navigatePage"},features:[ee([me,W,$a]),jt],decls:7,vars:7,consts:[[4,"ngIf"],["class","col-lg-12",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["class","modal","tabindex","-1","role","dialog","style","--cui-modal-width: 30% !important;display: block;",4,"ngIf"],["class","modal","tabindex","-1","role","dialog","style","--cui-modal-width: 40% !important;display: block;",4,"ngIf"],[1,"header-container",2,"display","block"],["class","hover-link","style","margin: 0 10px 0 22px; cursor:pointer; color: #062D4D;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","style","margin-left: 3%;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","class","pull-right","style","margin-right: 3%;",3,"click",4,"ngIf"],["cButton","","color","primary","size","sm","class","pull-right","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[1,"row"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[1,"bg-body-tertiary","clickable-header","col-lg-8"],[1,"bg-body-tertiary","col-lg-4"],[3,"selected-rowMail",4,"ngFor","ngForOf"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],["bordered","","align","middle","cTable","",1,"mb-0","border",2,"background","white",3,"hover","responsive"],[4,"ngFor","ngForOf"],[1,"hover-link",2,"margin","0 10px 0 22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"note"],[1,"fa","fa-reorder"],["cButton","","color","primary","size","sm",2,"margin-left","3%",3,"click"],["cButton","","color","primary","size","sm",1,"pull-right",2,"margin-right","3%",3,"click"],["cButton","","color","primary","size","sm",1,"pull-right",2,"margin-right","3%",3,"click","ngClass"],[2,"border-top","0px solid #f1f1f1 !important"],["type","checkbox",3,"ngModelChange","change","title","ngModel"],[1,"found-in"],[3,"innerHTML"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",3,"click"],["type","checkbox",3,"ngModelChange","change","ngModel"],["cButton","","color","primary","size","sm",1,"pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"col-lg-12"],[1,"mb-3"],[2,"margin-top","20px"],[1,"pagination"],[1,"col-lg-12","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important","display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","zipFileNameG"],["type","text","localizedValidate","","name","zipFileNameG","id","zipFileNameG","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"modal-footer"],[1,"btn","btn-default",3,"click"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success",3,"click"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important","display","block"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"]],template:function(n,i){n&1&&x(0,El,37,29,"c-row",0)(1,Pl,6,3,"c-row",1)(2,Ul,7,4,"c-row",2)(3,Rl,21,15,"div",3)(4,Wl,31,16,"div",4)(5,ql,18,12,"div",3)(6,$l,18,12,"div",3),n&2&&(d("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),d("ngIf",i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),d("ngIf",i.foundFiles.length>0&&!i.noFilesFound&&i.productType!=="mail"&&i.productType!=="Gmail"),o(),d("ngIf",i.displayZipstyleG),o(),d("ngIf",i.displayDownloadZipstyleG),o(),d("ngIf",i.displayDownloadZipConfirmstyleG),o(),d("ngIf",i.displayDownloadZipRunBckConfirmstyleG))},dependencies:[lt,je,vt,ki,bt,Ti,yt,ne,He,Ge,ie,ti,ct,hi,mt,ht,gt,yi,ze,ft,he,$e,qe,Je,Ze,ge],styles:[".disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}"]})}}return t})();var Yl=["deviceDropdown"],Kl=["deviceDropdownCS"],Ql=["contentFrame"],Xl=["userDeviceSearch"],ec=["fileSearch"],tc=["contentSearch"],ic=["contentSearchMailInput"],nc=["deviceDropdownR"],rc=["contentCalendarFrame"],oc=["searchInput"],tt=t=>({display:t}),ac=t=>[t],sc=t=>({totalCountGS:t}),lc=t=>({"multi-select":t}),cc=()=>({"col-lg-3":!0}),dc=(t,l)=>({active:t,disabled:l}),fs=t=>({"background-color":t}),pc=(t,l)=>({"col-lg-7":t,"col-lg-4":l}),uc=t=>({currentMailSubject:t}),hc=t=>({addedElementsCount:t});function mc(t,l){if(t&1){let e=w();a(0,"c-nav-item")(1,"button",17),y("click",function(){f(e);let i=h();return v(i.setActiveSearchTab("file",1))}),u(2),m(3,"translate"),s()()}if(t&2){h();let e=pe(14);o(),d("cTabContent",e)("tabPaneIdx",1),o(),_(g(3,3,"Search by file/folder names"))}}function gc(t,l){if(t&1){let e=w();a(0,"c-nav-item")(1,"button",17),y("click",function(){f(e);let i=h();return v(i.setActiveSearchTab("content",2))}),u(2),m(3,"translate"),s()()}if(t&2){h();let e=pe(14);o(),d("cTabContent",e)("tabPaneIdx",2),o(),_(g(3,3,"Full text search"))}}function _c(t,l){if(t&1&&(a(0,"c-card"),u(1),s()),t&2){let e=h();o(),I(" ",e.noUsersFoundText," ")}}function fc(t,l){if(t&1){let e=w();a(0,"c-col",75)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.userProfile(i.userNameEncoded))}),a(3,"div",74)(4,"div",78),C(5,"img",79),s(),a(6,"div",80)(7,"p",81)(8,"b"),u(9),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),Re("title",e.userName),o(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function vc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",73),u(2),m(3,"translate"),s(),a(4,"c-card-body",74),Fe(5,fc,10,2,"c-col",75,at),s()()),t&2){let e=h();o(2),X("",e.foundUsers.length," ",g(3,2,"User(s) found:")," "),o(3),Be(e.foundUsers)}}function bc(t,l){if(t&1&&(a(0,"c-card"),u(1),s()),t&2){let e=h();o(),I(" ",e.noUsersFoundText," ")}}function yc(t,l){if(t&1){let e=w();a(0,"c-col",82)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.userProfile(i.userNameEncoded))}),a(3,"div",74)(4,"div",78),C(5,"img",83),s(),a(6,"div",80)(7,"p",81)(8,"b"),u(9),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),Re("title",e.userName),o(2),_((e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""))}}function Cc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",73),u(2),m(3,"translate"),s(),a(4,"c-card-body",74),Fe(5,yc,10,2,"c-col",82,at),s()()),t&2){let e=h();o(2),X("",e.foundSites.length," ",g(3,2,"Site(s) found:")," "),o(3),Be(e.foundSites)}}function Sc(t,l){if(t&1&&(a(0,"c-card"),u(1),s()),t&2){let e=h();o(),I(" ",e.noDevicesFoundText," ")}}function wc(t,l){if(t&1){let e=w();a(0,"c-col",82)(1,"c-card",76)(2,"c-card-body",77),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.userAsset(i.userNameEncoded,i.deviceNameEncoded))}),a(3,"div",74)(4,"div",78),C(5,"img",84),s(),a(6,"div",80)(7,"p",81)(8,"b"),u(9),m(10,"translate"),s()()()()()()()}if(t&2){let e=l.$implicit;o(7),Re("title",e.deviceName),o(2),En("",(e.deviceName||"").slice(0,30)+(e.deviceName&&e.deviceName.length>30?"...":"")," ",g(10,4,"of user"),' "',(e.userName||"").slice(0,30)+(e.userName&&e.userName.length>30?"...":""),'"')}}function xc(t,l){if(t&1&&(a(0,"c-card")(1,"c-card-header",73),u(2),m(3,"translate"),s(),a(4,"c-card-body",74),Fe(5,wc,11,6,"c-col",82,at),s()()),t&2){let e=h();o(2),X("",e.foundDevices.length," ",g(3,2,"Device(s) found:")," "),o(3),Be(e.foundDevices)}}function kc(t,l){t&1&&(a(0,"option",85),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"BluVault")))}function Tc(t,l){t&1&&(a(0,"option",86),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"OneDriveforBusiness")))}function Ic(t,l){t&1&&(a(0,"option",87),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"SharePoint Online")))}function Ec(t,l){if(t&1&&(a(0,"option",31),u(1),s()),t&2){let e=h().$implicit;d("value",e.key),o(),_(e.title)}}function Pc(t,l){if(t&1&&x(0,Ec,2,2,"option",88),t&2){let e=l.$implicit,n=h();d("ngIf",n.productsLicensed.includes(e.key))}}function Mc(t,l){if(t&1){let e=w();a(0,"div",89)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select2",90),m(5,"translate"),m(6,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.selectedValue,i)||(r.selectedValue=i),v(i)}),y("search",function(i){f(e);let r=h();return v(r.onSearch(i))})("update",function(i){f(e);let r=h();return v(r.update(i))}),s()()}if(t&2){let e=h();o(2),_(g(3,8,"User Id")),o(2),d("placeholder",g(5,10,"Select User"))("overlay",e.overlay)("data",e.deviceUsersList)("value",e.selectedValue)("noResultMessage",g(6,12,"No Users found"))("disabled",e.userType==="user"),B("ngModel",e.selectedValue)}}function Dc(t,l){if(t&1){let e=w();a(0,"div",89)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select2",91),m(5,"translate"),m(6,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.selectedValueSite,i)||(r.selectedValueSite=i),v(i)}),y("search",function(i){f(e);let r=h();return v(r.onSearchSite(i))})("update",function(i){f(e);let r=h();return v(r.updateSite(i))}),s()()}if(t&2){let e=h();o(2),_(g(3,7,"Site")),o(2),d("placeholder",g(5,9,"Select Site"))("overlay",e.overlaySite)("data",e.siteList)("value",e.selectedValueSite)("noResultMessage",g(6,11,"No Sites found")),B("ngModel",e.selectedValueSite)}}function Oc(t,l){if(t&1&&(a(0,"option",31),u(1),s()),t&2){let e=l.$implicit;d("value",e.deviceUUID),o(),I(" ",e.deviceName," ")}}function Ac(t,l){t&1&&(a(0,"option"),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"User has no assets configured")," "))}function Uc(t,l){if(t&1&&(a(0,"div",92)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select",93,4),x(6,Oc,2,2,"option",94)(7,Ac,3,3,"option",18),s(),C(8,"i",95),s()),t&2){let e=h();o(2),_(g(3,3,"Asset Name")),o(4),d("ngForOf",e.devices),o(),d("ngIf",e.devices.length==0)}}function Fc(t,l){t&1&&(a(0,"c-row")(1,"c-card",12)(2,"c-card-body")(3,"b"),u(4),m(5,"translate"),s()()()()),t&2&&(o(4),_(g(5,1,"There are no results!.")))}function Bc(t,l){if(t&1){let e=w();a(0,"tr")(1,"td")(2,"div")(3,"h4"),u(4),s()(),a(5,"p",102)(6,"b"),u(7),m(8,"translate"),s(),u(9),s()(),a(10,"td")(11,"button",103),y("click",function(i){let r=f(e).$implicit,c=h(2);return v(c.downloadFile(r.fileName,r.filePath,r.fileRevisionID,r.backup,r.fileUser,r.deviceUUID,r.folder,r.size,c.productTypeFiles,i))}),u(12),m(13,"translate"),s(),a(14,"button",104),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.openFileLocation(i.fileName,i.filePath,i.deviceId,r.productTypeFiles,i.backup))}),u(15),m(16,"translate"),s()()()}if(t&2){let e=l.$implicit;o(4),_(e.fileName),o(3),I("",g(8,5,"Found in"),": "),o(2),_(e.filePath),o(3),_(g(13,7,"Download")),o(3),_(g(16,9," Open File Location"))}}function Rc(t,l){if(t&1&&(a(0,"c-row",96)(1,"table",97)(2,"thead",98)(3,"tr")(4,"th",99),u(5,"File Name "),s(),a(6,"th",100),u(7),m(8,"translate"),s()()(),a(9,"tbody"),x(10,Bc,17,11,"tr",101),s()()()),t&2){let e=h();o(),d("hover",!0)("responsive",!0),o(6),_(g(8,4,"Actions")),o(3),d("ngForOf",e.foundFiles)}}function Nc(t,l){t&1&&(a(0,"option",105),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Microsoft Exchange")))}function Vc(t,l){t&1&&(a(0,"option",86),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"OneDrive for Business")))}function Lc(t,l){t&1&&(a(0,"option",87),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"SharePoint Online")))}function Hc(t,l){t&1&&(a(0,"option",106),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Gmail")))}function Gc(t,l){if(t&1&&(a(0,"option",31),u(1),s()),t&2){let e=h().$implicit;d("value",e.key),o(),_(e.title)}}function zc(t,l){if(t&1&&x(0,Gc,2,2,"option",88),t&2){let e=l.$implicit,n=h();d("ngIf",n.checkFeatureLicensed(A(1,ac,e.key)))}}function jc(t,l){if(t&1){let e=w();a(0,"div",25)(1,"label",107),u(2),m(3,"translate"),s(),a(4,"select",108),m(5,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.categoryContentSearch,i)||(r.categoryContentSearch=i),v(i)}),y("change",function(i){f(e);let r=h();return v(r.onChangeCategoryContentSearch(i))}),a(6,"option",105),u(7),m(8,"translate"),s(),a(9,"option",109),u(10),m(11,"translate"),s(),a(12,"option",110),u(13),m(14,"translate"),s(),a(15,"option",111),u(16),m(17,"translate"),s()()()}if(t&2){let e=h();o(2),_(g(3,7,"Category")),o(2),B("ngModel",e.categoryContentSearch),d("title",g(5,9,"Select Product Type")),o(3),_(g(8,11,"eMail")),o(3),_(g(11,13,"Contacts")),o(3),_(g(14,15,"To Do")),o(3),_(g(17,17,"Calendar"))}}function Wc(t,l){if(t&1){let e=w();a(0,"div",89)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select2",112),m(5,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.selectedValueCS,i)||(r.selectedValueCS=i),v(i)}),y("search",function(i){f(e);let r=h();return v(r.onSearchContentSearch(i))})("update",function(i){f(e);let r=h();return v(r.updateContentSearch(i))}),s()()}if(t&2){let e=h();o(2),_(g(3,7,"User Id")),o(2),d("placeholder",g(5,9,"Select Users"))("overlay",e.overlay)("data",e.deviceUsersListCS)("value",e.selectedValueCS)("disabled",e.userType==="user"),B("ngModel",e.selectedValueCS)}}function qc(t,l){if(t&1){let e=w();a(0,"div",89)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select2",113),m(5,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.selectedValueSiteCS,i)||(r.selectedValueSiteCS=i),v(i)}),y("search",function(i){f(e);let r=h();return v(r.onSearchSiteContentSearch(i))})("update",function(i){f(e);let r=h();return v(r.updateSiteContentSearch(i))}),s()()}if(t&2){let e=h();o(2),_(g(3,6,"Site")),o(2),d("placeholder",g(5,8,"Select Sites"))("overlay",e.overlaySiteCS)("data",e.siteListCS)("value",e.selectedValueSiteCS),B("ngModel",e.selectedValueSiteCS)}}function $c(t,l){if(t&1&&(a(0,"option",31),u(1),s()),t&2){let e=l.$implicit;d("value",e.deviceUUID),Ue("id",e.deviceId),o(),I(" ",e.deviceName," ")}}function Jc(t,l){t&1&&(a(0,"option"),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"User has no assets configured")," "))}function Zc(t,l){if(t&1){let e=w();a(0,"div",92)(1,"label"),u(2),m(3,"translate"),s(),a(4,"select",114,5),y("change",function(i){f(e);let r=h();return v(r.onDeviceChangeCS(i))}),x(6,$c,2,3,"option",94)(7,Jc,3,3,"option",18),s(),C(8,"i",95),s()}if(t&2){let e=h();o(2),_(g(3,3,"Asset Name")),o(4),d("ngForOf",e.devicesCS),o(),d("ngIf",e.devicesCS.length==0)}}function Yc(t,l){if(t&1){let e=w();a(0,"c-row",34)(1,"div",35)(2,"c-input-group")(3,"input",115,6),m(5,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.contentSearchText,i)||(r.contentSearchText=i),v(i)}),y("keydown.enter",function(){f(e);let i=h();return v(i.searchForContent())}),s()()(),a(6,"div",37)(7,"button",38),y("click",function(){f(e);let i=h();return v(i.searchForContent())}),u(8),m(9,"translate"),s()()()}if(t&2){let e=h();o(3),B("ngModel",e.contentSearchText),d("placeholder",g(5,3,"Search..")),o(5),_(g(9,5,"Search"))}}function Kc(t,l){if(t&1){let e=w();a(0,"button",38),y("click",function(){f(e);let i=h(2);return v(i.togglePanel())}),C(1,"i",119),s()}if(t&2){let e=h(2);o(),d("ngClass",e.isExpanded?"fa-angle-up":"fa-angle-down")}}function Qc(t,l){if(t&1){let e=w();a(0,"div",37)(1,"a",120),y("click",function(){f(e);let i=h(2);return v(i.searchForContent())}),u(2),m(3,"translate"),s()()}t&2&&(o(2),_(g(3,1,"Search")))}function Xc(t,l){if(t&1){let e=w();a(0,"c-row",67)(1,"div",35)(2,"c-input-group",12)(3,"input",116,7),m(5,"translate"),N("ngModelChange",function(i){f(e);let r=h();return R(r.contentSearchMail,i)||(r.contentSearchMail=i),v(i)}),y("keydown.enter",function(){f(e);let i=h();return v(i.searchForContent())}),s(),x(6,Kc,2,1,"button",117),s()(),x(7,Qc,4,3,"div",118),s()}if(t&2){let e=h();o(3),B("ngModel",e.contentSearchMail),d("placeholder",g(5,5,"Search"))("disabled",e.isExpanded),o(3),d("ngIf",e.categoryContentSearch=="mail"),o(),d("ngIf",!e.isExpanded)}}function ed(t,l){if(t&1){let e=w();a(0,"div",122)(1,"div",123)(2,"label",124),u(3,"From "),a(4,"a",125),C(5,"i",126),a(6,"span",127),u(7),m(8,"translate"),s()()(),a(9,"input",128),m(10,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.fromId,i)||(r.fromId=i),v(i)}),s()(),a(11,"div",123)(12,"label",129),u(13,"To "),a(14,"a",125),C(15,"i",126),a(16,"span",127),u(17),m(18,"translate"),s()()(),a(19,"input",130),m(20,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.toId,i)||(r.toId=i),v(i)}),s()(),a(21,"div",123)(22,"label",131),u(23,"CC "),a(24,"a",125),C(25,"i",126),a(26,"span",127),u(27),m(28,"translate"),s()()(),a(29,"input",132),m(30,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.ccId,i)||(r.ccId=i),v(i)}),s()(),a(31,"div",123)(32,"label",133),u(33,"BCC "),a(34,"a",125),C(35,"i",126),a(36,"span",127),u(37),m(38,"translate"),s()()(),a(39,"input",134),m(40,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.bccId,i)||(r.bccId=i),v(i)}),s()(),a(41,"div",123)(42,"label",135),u(43),m(44,"translate"),a(45,"a",125),C(46,"i",126),a(47,"span",127),u(48),m(49,"translate"),s()()(),a(50,"input",136),m(51,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.subjectId,i)||(r.subjectId=i),v(i)}),s()(),a(52,"div",123)(53,"label",137),u(54),m(55,"translate"),s(),a(56,"input",138),m(57,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.bodyId,i)||(r.bodyId=i),v(i)}),s()(),a(58,"div",123)(59,"label",139),u(60),m(61,"translate"),s(),a(62,"input",140),m(63,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.keywordsId,i)||(r.keywordsId=i),v(i)}),s()(),a(64,"div",141)(65,"label",139),u(66),m(67,"translate"),s(),a(68,"input",142),y("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.myDateBefore,i)||(r.myDateBefore=i),v(i)}),s(),u(69),m(70,"translate"),a(71,"input",142),y("click",function(i){return f(e),v(i.preventDefault())})("keydown",function(i){return f(e),v(i.preventDefault())}),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.myDateAfter,i)||(r.myDateAfter=i),v(i)}),s()(),a(72,"div",67)(73,"a",143),y("click",function(){f(e);let i=h(2);return v(i.searchForContent())}),u(74),m(75,"translate"),s()()()}if(t&2){let e=h(2);o(7),_(g(8,31,"Use comma to separate Email addresses")),o(2),B("ngModel",e.fromId),d("placeholder",g(10,33,"From")),o(8),_(g(18,35,"Use comma to separate Email addresses")),o(2),B("ngModel",e.toId),d("placeholder",g(20,37,"To")),o(8),_(g(28,39,"Use comma to separate Email addresses")),o(2),B("ngModel",e.ccId),d("placeholder",g(30,41,"CC")),o(8),_(g(38,43,"Use comma to separate Email addresses")),o(2),B("ngModel",e.bccId),d("placeholder",g(40,45,"BCC")),o(4),I("",g(44,47,"Subject")," "),o(5),_(g(49,49,"Use comma to separate multiple Subjects")),o(2),B("ngModel",e.subjectId),d("placeholder",g(51,51,"Subject")),o(4),_(g(55,53,"Body")),o(2),B("ngModel",e.bodyId),d("placeholder",g(57,55,"Body")),o(4),_(g(61,57,"Keywords")),o(2),B("ngModel",e.keywordsId),d("placeholder",g(63,59,"Keywords")),o(4),_(g(67,61,"Date from")),o(2),d("readonly",!0),B("ngModel",e.myDateBefore),d("bsConfig",e.bsConfigBefore),o(),I(" ",g(70,63,"To")," "),o(2),d("readonly",!0),B("ngModel",e.myDateAfter),d("bsConfig",e.bsConfigAfter),o(3),_(g(75,65,"Search"))}}function td(t,l){if(t&1&&(a(0,"c-row",67),x(1,ed,76,67,"div",121),s()),t&2){let e=h();o(),d("ngIf",e.isExpanded)}}function id(t,l){t&1&&(a(0,"c-row",67)(1,"c-card",12)(2,"c-card-body")(3,"b"),u(4,"There are no results!."),s()()()())}function nd(t,l){if(t&1){let e=w();a(0,"a",161),y("click",function(){f(e);let i=h(2);return v(i.enableMultiSelect())}),C(1,"i",162),a(2,"span",127),u(3),m(4,"translate"),s()()}t&2&&(o(3),_(g(4,1,"Enable Multiselect")))}function rd(t,l){if(t&1){let e=w();a(0,"a",163),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),C(1,"i",164),a(2,"span",127),u(3),m(4,"translate"),s()()}t&2&&(o(3),_(g(4,1,"Disable Multiselect")))}function od(t,l){if(t&1){let e=w();a(0,"a",165),y("click",function(){f(e);let i=h(2);return v(i.exportCompleteMailboxAsPstG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Export all items to PST")))}function ad(t,l){if(t&1){let e=w();a(0,"a",166),y("click",function(){f(e);let i=h(2);return v(i.exportFolderAsPstModalG())}),u(1),m(2,"translate"),s()}if(t&2){let e=h(2);d("ngClass",ke(4,dc,e.addedElementsCount>0,e.addedElementsCount<=0)),o(),_(g(2,2,"Export selected items to PST"))}}function sd(t,l){if(t&1){let e=w();a(0,"th",154)(1,"input",167),m(2,"translate"),N("ngModelChange",function(i){f(e);let r=h(2);return R(r.isSelectAll,i)||(r.isSelectAll=i),v(i)}),y("change",function(){f(e);let i=h(2);return v(i.toggleSelectAll())}),s()()}if(t&2){let e=h(2);o(),d("title",g(2,2,"Select all")),B("ngModel",e.isSelectAll)}}function ld(t,l){if(t&1){let e=w();a(0,"button",168),y("click",function(){f(e);let i=h(2);return v(i.addToCartFinal())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Add Selected Items")))}function cd(t,l){if(t&1){let e=w();a(0,"td")(1,"input",172),N("ngModelChange",function(i){f(e);let r=h().$implicit;return R(r.isChecked,i)||(r.isChecked=i),v(i)}),y("change",function(){f(e);let i=h(4);return v(i.itemSelect())}),s()()}if(t&2){let e=h().$implicit;o(),B("ngModel",e.isChecked)}}function dd(t,l){if(t&1&&(a(0,"td",173)(1,"span",174),u(2),s()()),t&2){let e=h().$implicit;o(),d("ngStyle",A(2,fs,e.alphaColor)),o(),I(" ",e.showIcon," ")}}function pd(t,l){t&1&&C(0,"i",188)}function ud(t,l){if(t&1){let e=w();a(0,"a",189),y("click",function(i){f(e);let r=h(3).$implicit,c=h(3);return v(c.downloadMail(r.userName,r.backupId,r.deviceUUID,i))}),C(1,"i",190),s()}}function hd(t,l){if(t&1){let e=w();a(0,"a",191),y("click",function(i){f(e);let r=h(3).$implicit,c=h(3);return v(c.onRestoreClickR(r.deviceUUID,r.backupId,r.filePath,r.subject,r.userName,i))}),C(1,"i",192),s()}}function md(t,l){if(t&1&&(a(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);o(),d("innerHTML",n.renderHtml(e.displayContent),ve)}}function gd(t,l){if(t&1&&(a(0,"a",178)(1,"span",179),u(2),s(),x(3,pd,1,0,"i",180)(4,ud,2,0,"a",181)(5,hd,2,0,"a",182),a(6,"p",183)(7,"span",184),u(8),s(),C(9,"span",185),s(),x(10,md,2,1,"p",18),a(11,"p",186)(12,"b"),u(13),m(14,"translate"),s(),a(15,"span",187),u(16),s()()()),t&2){let e=h(2).$implicit,n=h(3);o(2),I(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),d("ngIf",e.hasAttachments),o(),d("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(),d("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(3),I(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),o(),d("innerHTML",n.renderHtml(e.sentDate),ve),o(),d("ngIf",e.displayContent),o(3),I("",g(14,10,"Found in"),":"),o(3),X("",e.userName," : ",e.filePath,"")}}function _d(t,l){t&1&&C(0,"i",196)}function fd(t,l){if(t&1&&(a(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);o(),d("innerHTML",n.renderHtml(e.displayContent),ve)}}function vd(t,l){if(t&1&&(a(0,"a",194)(1,"span",179),u(2),s(),x(3,_d,1,0,"i",195),a(4,"p",183)(5,"span",184),u(6),s(),C(7,"span",185),s(),x(8,fd,2,1,"p",18),s()),t&2){let e=h(2).$implicit,n=h(3);o(2),I(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),d("ngIf",e.hasAttachments),o(3),I(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),o(),d("innerHTML",n.renderHtml(e.sentDate),ve),o(),d("ngIf",e.displayContent)}}function bd(t,l){if(t&1){let e=w();a(0,"td",175),y("click",function(){f(e);let i=h().$implicit,r=h(3);return v(r.viewOutlook11(i.deviceId,i.userName,i.backupId,i,r.categoryContentSearch))}),a(1,"div",67)(2,"div"),x(3,gd,17,12,"a",176)(4,vd,9,5,"a",177),s()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),o(3),d("ngIf",e.present=="true"),o(),d("ngIf",e.present=="false")}}function yd(t,l){t&1&&(a(0,"td",173),C(1,"i",197),s())}function Cd(t,l){if(t&1){let e=w();a(0,"td",175),y("click",function(){f(e);let i=h().$implicit,r=h(3);return v(r.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,r.categoryContentSearch))}),a(1,"div",67)(2,"div")(3,"a",198)(4,"span",179),u(5),s()()()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),o(5),I(" ",(e.contactName||"").slice(0,10)+(e.contactName&&e.contactName.length>10?"...":"")," ")}}function Sd(t,l){t&1&&(a(0,"td",173),C(1,"i",199),s())}function wd(t,l){if(t&1){let e=w();a(0,"td",175),y("click",function(){f(e);let i=h().$implicit,r=h(3);return v(r.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,"to_do"))}),a(1,"div",67)(2,"div")(3,"a",198)(4,"span",179),u(5),s()()()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),o(5),I(" ",(e.taskSubject||"").slice(0,40)+(e.taskSubject&&e.taskSubject.length>40?"...":"")," ")}}function xd(t,l){if(t&1&&(a(0,"td",173)(1,"span",174),u(2),s()()),t&2){let e=h().$implicit;o(),d("ngStyle",A(2,fs,e.alphaColor)),o(),I(" ",e.showIcon," ")}}function kd(t,l){t&1&&C(0,"i",188)}function Td(t,l){if(t&1){let e=w();a(0,"a",189),y("click",function(i){f(e);let r=h(3).$implicit,c=h(3);return v(c.downloadMail(r.userName,r.backupId,r.deviceUUID,i))}),C(1,"i",190),s()}}function Id(t,l){if(t&1){let e=w();a(0,"a",191),y("click",function(i){f(e);let r=h(3).$implicit,c=h(3);return v(c.onRestoreClickR(r.deviceUUID,r.backupId,r.filePath,r.subject,r.userName,i))}),C(1,"i",192),s()}}function Ed(t,l){if(t&1&&(a(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);o(),d("innerHTML",n.renderHtml(e.displayContent),ve)}}function Pd(t,l){if(t&1&&(a(0,"a",178)(1,"span",179),u(2),s(),x(3,kd,1,0,"i",180)(4,Td,2,0,"a",181)(5,Id,2,0,"a",182),a(6,"p",183)(7,"span",184),u(8),s(),C(9,"span",185),s(),x(10,Ed,2,1,"p",18),a(11,"p",186)(12,"b"),u(13),m(14,"translate"),s(),a(15,"span",187),u(16),s()()()),t&2){let e=h(2).$implicit,n=h(3);o(2),I(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),d("ngIf",e.hasAttachments),o(),d("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(),d("ngIf",!n.isMultiSelectEnabled&&n.userType!="superAdmin"),o(3),I(" ",(e.subject||"").slice(0,25)+(e.subject&&e.subject.length>25?"...":"")," "),o(),d("innerHTML",n.renderHtml(e.sentDate),ve),o(),d("ngIf",e.displayContent),o(3),I("",g(14,10,"Found in"),":"),o(3),X("",e.userName," : ",e.filePath,"")}}function Md(t,l){t&1&&C(0,"i",196)}function Dd(t,l){if(t&1&&(a(0,"p"),C(1,"span",193),s()),t&2){let e=h(3).$implicit,n=h(3);o(),d("innerHTML",n.renderHtml(e.displayContent),ve)}}function Od(t,l){if(t&1&&(a(0,"a",194)(1,"span",179),u(2),s(),x(3,Md,1,0,"i",195),a(4,"p",183)(5,"span",184),u(6),s(),C(7,"span",185),s(),x(8,Dd,2,1,"p",18),s()),t&2){let e=h(2).$implicit,n=h(3);o(2),I(" ",(e.from||"").slice(0,10)+(e.from&&e.from.length>10?"...":"")," "),o(),d("ngIf",e.hasAttachments),o(3),I(" ",(e.name||"").slice(0,25)+(e.name&&e.name.length>25?"...":"")," "),o(),d("innerHTML",n.renderHtml(e.sentDate),ve),o(),d("ngIf",e.displayContent)}}function Ad(t,l){if(t&1){let e=w();a(0,"td",175),y("click",function(){f(e);let i=h().$implicit,r=h(3);return v(r.viewOutlook11(i.deviceUUID,i.userName,i.backupId,i,r.categoryContentSearch))}),a(1,"div",67)(2,"div"),x(3,Pd,17,12,"a",176)(4,Od,9,5,"a",177),s()()()}if(t&2){let e=h().$implicit;Ue("data-name",e.name),o(3),d("ngIf",e.present=="true"),o(),d("ngIf",e.present=="false")}}function Ud(t,l){if(t&1&&(a(0,"tr"),x(1,cd,2,1,"td",18)(2,dd,3,4,"td",170)(3,bd,5,3,"td",171)(4,yd,2,0,"td",170)(5,Cd,6,2,"td",171)(6,Sd,2,0,"td",170)(7,wd,6,2,"td",171)(8,xd,3,4,"td",170)(9,Ad,5,3,"td",171),s()),t&2){let e=l.$implicit,n=h(3);Le("selected-rowMail",n.isSelected(e)),o(),d("ngIf",n.isMultiSelectEnabled&&n.categoryContentSearch=="mail"),o(),d("ngIf",e.type=="File"&&n.categoryContentSearch=="mail"),o(),d("ngIf",e.type=="File"&&n.categoryContentSearch=="mail"),o(),d("ngIf",n.categoryContentSearch=="contacts"),o(),d("ngIf",n.categoryContentSearch=="contacts"),o(),d("ngIf",n.categoryContentSearch=="todo"),o(),d("ngIf",n.categoryContentSearch=="todo"),o(),d("ngIf",e.type=="File"&&n.categoryContentSearch=="calendar"),o(),d("ngIf",e.type=="File"&&n.categoryContentSearch=="calendar")}}function Fd(t,l){if(t&1&&(a(0,"tbody"),x(1,Ud,10,11,"tr",169),s()),t&2){let e=h(2);o(),d("ngForOf",e.foundMailsCS)}}function Bd(t,l){if(t&1){let e=w();a(0,"c-card-body")(1,"app-calendar-layout",202),m(2,"split"),y("navigator",function(i){f(e);let r=h(3);return v(r.calenderNavigate(i))}),s()()}if(t&2){let e=h(3);o(),d("metaData",e.selectedUsers)("calenderEvents",e.foundMailsCS)("calendarView",e.calendarView)("breadcrumbItems",te(2,4,e.selectedPathCS,"/"))}}function Rd(t,l){if(t&1&&(a(0,"div",217)(1,"b"),u(2),m(3,"translate"),s(),u(4),a(5,"span",218),u(6),m(7,"date"),s()()),t&2){let e=h(4);o(2),_(g(3,3,"Organizer :")),o(2),I(" ",e.currentCalendarFrom," "),o(2),_(g(7,5,e.currentCalendarSentDate))}}function Nd(t,l){if(t&1&&(a(0,"div",219)(1,"b"),u(2),m(3,"translate"),s(),u(4),s()),t&2){let e=h(4);o(2),_(g(3,2,"Attendees :")),o(2),I(" ",e.currentCalendarTo,"")}}function Vd(t,l){if(t&1&&(a(0,"div",220)(1,"b"),u(2,"CC :"),s(),u(3),s()),t&2){let e=h(4);o(3),I(" ",e.currentCalendarCc,"")}}function Ld(t,l){if(t&1&&(a(0,"div",221)(1,"b"),u(2,"BCC :"),s(),u(3),s()),t&2){let e=h(4);o(3),I(" ",e.currentCalendarBcc,"")}}function Hd(t,l){if(t&1&&(a(0,"span",225),u(1),s()),t&2){let e=l.$implicit;o(),I(" ",e.name||e.filename?(e.name||e.filename).slice(0,20)+((e.name||e.filename).length>20?"...":""):""," ")}}function Gd(t,l){if(t&1&&(a(0,"div",222)(1,"div",223),x(2,Hd,2,1,"span",224),u(3," \xA0 "),s()()),t&2){let e=h(4);o(2),d("ngForOf",e.currentCalendarAttachments)}}function zd(t,l){if(t&1&&(a(0,"div",226)(1,"b"),C(2,"i",227),s(),u(3),s()),t&2){let e=h(4);o(3),I(" ",e.calendarDuration,"")}}function jd(t,l){t&1&&(a(0,"c-callout",228),C(1,"i",229),a(2,"span"),u(3),m(4,"translate"),s()()),t&2&&(o(3),_(g(4,1,"Security restrictions may prevent pop-ups from this embedded content. If you trust the content, please open it in a new tab or window.")))}function Wd(t,l){if(t&1){let e=w();a(0,"c-card-body",203)(1,"div",204),C(2,"div",205),a(3,"div",206)(4,"div",207)(5,"h3"),u(6),s()(),x(7,Rd,8,7,"div",208)(8,Nd,5,4,"div",209)(9,Vd,4,1,"div",210)(10,Ld,4,1,"div",211)(11,Gd,4,1,"div",212)(12,zd,4,1,"div",213),C(13,"br"),a(14,"div",214)(15,"iframe",215,8),y("mouseout",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))}),s()()()(),x(17,jd,5,3,"c-callout",216),s()}if(t&2){let e=h(3);d("ngClass",e.showCalendarView?"calendar-view":""),o(6),_(e.currentCalendarSubject),o(),d("ngIf",e.currentCalendarFrom!=""),o(),d("ngIf",e.currentCalendarTo!=""),o(),d("ngIf",e.currentCalendarCc!=""),o(),d("ngIf",e.currentCalendarBcc!=""),o(),d("ngIf",e.currentCalendarAttachments.length>0),o(),d("ngIf",e.calendarDuration),o(5),d("ngIf",e.showSecurityCallout)}}function qd(t,l){t&1&&(a(0,"c-card-body",230)(1,"p"),u(2),m(3,"translate"),s()()),t&2&&(o(2),_(g(3,1,"Email preview has been blocked based on your policies. If you wish to enable email previews, please contact your administrator.")))}function $d(t,l){t&1&&(a(0,"c-card-body",230)(1,"p"),u(2),m(3,"translate"),s()()),t&2&&(o(2),_(g(3,1,"Item not available.")))}function Jd(t,l){if(t&1&&(a(0,"div",217)(1,"b"),u(2),m(3,"translate"),s(),u(4),a(5,"span",218),u(6),m(7,"date"),s()()),t&2){let e=h(4);o(2),_(g(3,3,"From :")),o(2),I(" ",e.currentMailFrom," "),o(2),_(g(7,5,e.currentMailSentDate))}}function Zd(t,l){if(t&1&&(a(0,"div",219)(1,"b"),u(2),m(3,"translate"),s(),u(4),s()),t&2){let e=h(4);o(2),_(g(3,2,"To :")),o(2),I(" ",e.currentMailTo,"")}}function Yd(t,l){if(t&1&&(a(0,"div",220)(1,"b"),u(2),m(3,"translate"),s(),u(4),s()),t&2){let e=h(4);o(2),_(g(3,2,"CC :")),o(2),I(" ",e.currentMailCc,"")}}function Kd(t,l){if(t&1&&(a(0,"div",221)(1,"b"),u(2),m(3,"translate"),s(),u(4),s()),t&2){let e=h(4);o(2),_(g(3,2,"BCC :")),o(2),I(" ",e.currentMailBcc,"")}}function Qd(t,l){if(t&1&&(a(0,"span",225),u(1),s()),t&2){let e=l.$implicit;o(),I(" ",e.name||e.filename?(e.name||e.filename).slice(0,20)+((e.name||e.filename).length>20?"...":""):""," ")}}function Xd(t,l){if(t&1&&(a(0,"div",222)(1,"div",223),x(2,Qd,2,1,"span",224),u(3," \xA0 "),s()()),t&2){let e=h(4);o(2),d("ngForOf",e.currentMailAttachments)}}function ep(t,l){if(t&1){let e=w();a(0,"c-card-body")(1,"div",231),C(2,"div",205),a(3,"div",232)(4,"div",233)(5,"h3"),u(6),m(7,"translate"),s()(),x(8,Jd,8,7,"div",208)(9,Zd,5,4,"div",209)(10,Yd,5,4,"div",210)(11,Kd,5,4,"div",211)(12,Xd,4,1,"div",212),C(13,"br"),a(14,"div",234)(15,"iframe",235,9),y("mouseout",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))})("mouseover",function(){f(e);let i=h(3);return v(i.showHideSecurityCallout(!0))}),s()()()()()}if(t&2){let e=h(3);o(6),_(te(7,6,"SubjectcurrentMailSubject",A(9,uc,e.currentMailSubject))),o(2),d("ngIf",e.currentMailFrom!=""),o(),d("ngIf",e.currentMailTo!=""),o(),d("ngIf",e.currentMailCc!=""),o(),d("ngIf",e.currentMailBcc!=""),o(),d("ngIf",e.currentMailAttachments.length>0)}}function tp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.fullCombinedName,"Name"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.fullCombinedName)}}function ip(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(5);return v(i.copyToClipboard(i.contactEmail,"Email: "+i.contactEmail))}),C(1,"i",259),s()}if(t&2){let e=h(5);d("title",e.contactEmail)}}function np(t,l){if(t&1&&(a(0,"span",260),u(1),x(2,ip,2,1,"a",243),s()),t&2){let e=h(4);d("title",e.contactEmail.length>20?e.contactEmail:""),o(),I(" ",e.contactEmail.length>20?e.contactEmail.slice(0,20)+"...":e.contactEmail," "),o(),d("ngIf",e.splitContactEmails.length===1&&e.contactEmail.length>20)}}function rp(t,l){if(t&1){let e=w();a(0,"li"),u(1),a(2,"a",258),y("click",function(){let i=f(e).$implicit,r=h(5);return v(r.copyToClipboard(i,"Email: "+i))}),C(3,"i",259),s()()}if(t&2){let e=l.$implicit;o(),_(e),o(),d("title",e)}}function op(t,l){if(t&1&&(a(0,"ul",261),x(1,rp,4,2,"li",101),s()),t&2){let e=h(4);o(),d("ngForOf",e.splitContactEmails)}}function ap(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactOfficeLocation,"Location"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactOfficeLocation)}}function sp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactCompanyName,"Company"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactCompanyName)}}function lp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactJobTitle,"Job title"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactJobTitle)}}function cp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactDepartment,"Department"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactDepartment)}}function dp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactMobile,"Mobile phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactMobile)}}function pp(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactHomePhones,"Home phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactHomePhones)}}function up(t,l){if(t&1){let e=w();a(0,"a",258),y("click",function(){f(e);let i=h(4);return v(i.copyToClipboard(i.contactBusinessPhones,"Business phone"))}),C(1,"i",259),s()}if(t&2){let e=h(4);d("title",e.contactBusinessPhones)}}function hp(t,l){if(t&1){let e=w();a(0,"c-card-body")(1,"div",236)(2,"div",237)(3,"div",238),C(4,"c-avatar",239),s(),a(5,"div",240)(6,"div",241)(7,"span",242),u(8),s(),x(9,tp,2,1,"a",243),s(),a(10,"div",244)(11,"span",245),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!1)}),u(12),s(),a(13,"span",246),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullDepartment=!1)}),u(14),s()()()(),a(15,"div",247),C(16,"hr"),a(17,"div",248),y("mouseenter",function(){f(e);let i=h(3);return v(i.showHideField(!0))})("mouseleave",function(){f(e);let i=h(3);return v(i.showHideField(!1))}),a(18,"label",184),u(19,"Email: "),s(),C(20,"br"),x(21,np,3,3,"span",249)(22,op,2,1,"ul",250),s(),a(23,"div",251)(24,"label",184),u(25,"Location: "),s(),C(26,"br"),a(27,"span",252),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullLocation=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullLocation=!1)}),u(28),s(),x(29,ap,2,1,"a",243),s(),a(30,"div",251)(31,"label",184),u(32,"Company: "),s(),C(33,"br"),a(34,"span",253),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullCompanyName=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullCompanyName=!1)}),u(35),s(),x(36,sp,2,1,"a",243),s(),a(37,"div",251)(38,"label",184),u(39,"Job title: "),s(),C(40,"br"),a(41,"span",245),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullJobTitle=!1)}),u(42),s(),x(43,lp,2,1,"a",243),s(),a(44,"div",251)(45,"label",184),u(46,"Department: "),s(),C(47,"br"),a(48,"span",246),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullDepartment=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullDepartment=!1)}),u(49),s(),x(50,cp,2,1,"a",243),s(),a(51,"div",251)(52,"label",184),u(53),m(54,"translate"),s(),C(55,"br"),a(56,"span",242),u(57),s()(),a(58,"div",251)(59,"label",184),u(60,"Home Address: "),s(),C(61,"br"),a(62,"span",242),u(63),s()(),a(64,"div",251)(65,"label",184),u(66),m(67,"translate"),s(),C(68,"br"),a(69,"span",254),u(70),s()(),a(71,"div",251)(72,"label",184),u(73,"Mobile phone: "),s(),C(74,"br"),a(75,"span",255),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullMobile=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullMobile=!1)}),u(76),s(),x(77,dp,2,1,"a",243),s(),a(78,"div",251)(79,"label",184),u(80,"Home phone: "),s(),C(81,"br"),a(82,"span",256),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullHomePhone=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullHomePhone=!1)}),u(83),s(),x(84,pp,2,1,"a",243),s(),a(85,"div",251)(86,"label",184),u(87,"Business phone: "),s(),C(88,"br"),a(89,"span",257),y("mouseenter",function(){f(e);let i=h(3);return v(i.showFullBusinessPhone=!0)})("mouseleave",function(){f(e);let i=h(3);return v(i.showFullBusinessPhone=!1)}),u(90),s(),x(91,up,2,1,"a",243),s()()()()}if(t&2){let e=h(3);o(4),d("size","md")("src",e.profileImage||"./assets/images/avatars/default.jpg"),o(3),d("title",e.fullCombinedName),o(),I(" ",e.truncatedCombinedName," "),o(),d("ngIf",e.fullCombinedName.length>20),o(2),d("title",e.contactJobTitle.length>20?e.contactJobTitle:""),o(),I(" ",e.contactJobTitle.length>20&&e.showFullJobTitle?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),o(),d("title",e.contactDepartment.length>20?e.contactDepartment:""),o(),I(" ",e.contactDepartment.length>20&&e.showFullDepartment?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),o(7),d("ngIf",!e.showFullEmail),o(),d("ngIf",e.showFullEmail),o(5),d("title",e.contactOfficeLocation.length>20?e.contactOfficeLocation:""),o(),I(" ",e.contactOfficeLocation.length>20&&e.showFullLocation?e.contactOfficeLocation.slice(0,20)+"...":e.contactOfficeLocation," "),o(),d("ngIf",e.contactOfficeLocation.length>20),o(5),d("title",e.contactCompanyName.length>20?e.contactCompanyName:""),o(),I(" ",e.contactCompanyName.length>20&&e.showFullCompanyName?e.contactCompanyName.slice(0,20)+"...":e.contactCompanyName," "),o(),d("ngIf",e.contactCompanyName.length>20),o(5),d("title",e.contactJobTitle.length>20?e.contactJobTitle:""),o(),I(" ",e.contactJobTitle.length>20&&e.showFullJobTitle?e.contactJobTitle.slice(0,20)+"...":e.contactJobTitle," "),o(),d("ngIf",e.contactJobTitle.length>20),o(5),d("title",e.contactDepartment.length>20?e.contactDepartment:""),o(),I(" ",e.contactDepartment.length>20&&e.showFullDepartment?e.contactDepartment.slice(0,20)+"...":e.contactDepartment," "),o(),d("ngIf",e.contactDepartment.length>20),o(3),I("",g(54,39,"Business Address"),": "),o(3),d("title",e.combinedBusinessAddress),o(),I(" ",e.truncatedBusinessAddress," "),o(5),d("title",e.combinedHomeAddress),o(),I(" ",e.truncatedHomeAddress," "),o(3),I("",g(67,41,"Birthday"),": "),o(4),_(e.contactBirthday),o(5),d("title",e.contactMobile.length>20?e.contactMobile:""),o(),I(" ",e.contactMobile.length>20&&e.showFullMobile?e.contactMobile.slice(0,20)+"...":e.contactMobile," "),o(),d("ngIf",e.contactMobile.length>20),o(5),d("title",e.contactHomePhones.length>20?e.contactHomePhones:""),o(),I(" ",e.contactHomePhones.length>20&&e.showFullHomePhone?e.contactHomePhones.slice(0,20)+"...":e.contactHomePhones," "),o(),d("ngIf",e.contactHomePhones.length>20),o(5),d("title",e.contactBusinessPhones.length>20?e.contactBusinessPhones:""),o(),I(" ",e.contactBusinessPhones.length>20&&e.showFullBusinessPhone?e.contactBusinessPhones.slice(0,20)+"...":e.contactBusinessPhones," "),o(),d("ngIf",e.contactBusinessPhones.length>20)}}function mp(t,l){if(t&1&&(a(0,"p")(1,"b"),u(2),m(3,"translate"),s(),a(4,"span",263),u(5),m(6,"translate"),s()()),t&2){let e=h(4);o(2),I("",g(3,2,"Importance:")," "),o(3),_(g(6,4,e.taskImportance))}}function gp(t,l){if(t&1&&(a(0,"c-card-body")(1,"div",262)(2,"p")(3,"b"),u(4),m(5,"translate"),s(),u(6),s(),x(7,mp,7,6,"p",18),a(8,"p")(9,"b"),u(10),m(11,"translate"),s(),u(12),m(13,"date"),s(),a(14,"p")(15,"b"),u(16),m(17,"translate"),s(),u(18),m(19,"date"),s(),a(20,"p")(21,"b"),u(22),m(23,"translate"),s(),u(24),m(25,"date"),s()()()),t&2){let e=h(3);o(4),_(g(5,9,"Subject:")),o(2),I(" ",e.taskSubject||"NA",""),o(),d("ngIf",e.taskImportance),o(3),_(g(11,11,"Task Created On:")),o(2),I(" ",e.taskStartDate!=="NA"?g(13,13,e.taskStartDate):e.taskStartDate,""),o(4),_(g(17,15,"Task Due Date:")),o(2),I(" ",e.taskDueDate!=="NA"?g(19,17,e.taskDueDate):e.taskDueDate,""),o(4),_(g(23,19,"Task Reminder Time:")),o(2),I(" ",e.taskReminderTime!=="NA"?g(25,21,e.taskReminderTime):e.taskReminderTime,"")}}function _p(t,l){if(t&1&&(a(0,"c-card",156),x(1,Bd,3,7,"c-card-body",18)(2,Wd,18,9,"c-card-body",200)(3,qd,4,3,"c-card-body",201)(4,$d,4,3,"c-card-body",201)(5,ep,17,11,"c-card-body",18)(6,hp,92,43,"c-card-body",18)(7,gp,26,23,"c-card-body",18),s()),t&2){let e=h(2);d("ngClass",ke(8,pc,!e.isMultiSelectEnabled,e.isMultiSelectEnabled)),o(),d("ngIf",e.showCalendarLayoutView),o(),d("ngIf",e.showCalendarView),o(),d("ngIf",!e.showMailPreview),o(),d("ngIf",e.showNotAvailable),o(),d("ngIf",e.showMailView&&e.showMailPreview),o(),d("ngIf",e.showContactsView),o(),d("ngIf",e.showTasksView)}}function fp(t,l){t&1&&(a(0,"c-card",157)(1,"c-card-body",230)(2,"div",264),C(3,"div",265),s()()())}function vp(t,l){if(t&1){let e=w();a(0,"th"),u(1),a(2,"a",266),y("click",function(){f(e);let i=h(2);return v(i.removeAll())}),u(3),m(4,"translate"),s()()}if(t&2){let e=h(2);o(),X("",e.addedElementsCount," out of ",e.totalCountGS," selected "),o(2),_(g(4,3,"Remove all"))}}function bp(t,l){if(t&1&&(a(0,"th"),u(1),m(2,"translate"),s()),t&2){let e=h(2);o(),_(te(2,1,"{{ addedElementsCount }} selected",A(4,hc,e.addedElementsCount)))}}function yp(t,l){if(t&1){let e=w();a(0,"tr")(1,"td",267)(2,"span",268),u(3),s(),a(4,"a",269),y("click",function(){let i=f(e),r=i.$implicit,c=i.index,p=h(2);return v(p.removeItem(c,r.subject,r.backupId,r.subject))}),C(5,"i",270),s()()()}if(t&2){let e=l.$implicit;o(3),_(e.subject)}}function Cp(t,l){if(t&1&&(a(0,"c-row",144)(1,"c-card-header",145),x(2,nd,5,3,"a",146)(3,rd,5,3,"a",147),a(4,"span")(5,"b"),u(6),m(7,"translate"),s()(),x(8,od,3,3,"a",148)(9,ad,3,7,"a",149),s(),a(10,"c-card",150)(11,"c-card-body")(12,"div",151)(13,"table",152)(14,"thead",98)(15,"tr"),x(16,sd,3,4,"th",153),a(17,"th",154),u(18," Results "),x(19,ld,3,3,"button",155),s()()(),x(20,Fd,2,1,"tbody",18),s()()()(),x(21,_p,8,11,"c-card",156)(22,fp,4,0,"c-card",157),a(23,"c-card",158)(24,"c-card-body")(25,"table",159)(26,"colgroup"),C(27,"col",160),s(),a(28,"thead")(29,"tr"),x(30,vp,5,5,"th",18)(31,bp,3,6,"th",18),s()(),a(32,"tbody"),x(33,yp,6,1,"tr",101),s()()()()()),t&2){let e=h();o(2),d("ngIf",!e.isMultiSelectEnabled),o(),d("ngIf",e.isMultiSelectEnabled),o(3),_(te(7,18,"totalCountGSSearchResultsFound",A(21,sc,e.totalCountGS))),o(2),d("ngIf",!e.isMultiSelectEnabled&&e.userType!="superAdmin"&&(e.product==null||e.product.downloadsConfigurations==null||e.product.downloadsConfigurations.search==null?null:e.product.downloadsConfigurations.search.allResultsToPST)),o(),d("ngIf",e.isMultiSelectEnabled&&e.userType!="superAdmin"),o(),d("ngClass",A(23,lc,e.isMultiSelectEnabled)),o(3),d("hover",!0)("responsive",!0)("striped",!1),o(3),d("ngIf",e.isMultiSelectEnabled),o(3),d("ngIf",e.updateAddToCartButtonVisibility()),o(),d("ngIf",!e.noFilesFoundCS),o(),Jt(e.showloaderAtPreview?22:21),o(2),d("ngClass",$(25,cc))("ngStyle",A(26,tt,e.isMultiSelectEnabled?"block":"none")),o(7),d("ngIf",e.addedElementsCount>0),o(),d("ngIf",e.addedElementsCount==0),o(2),d("ngForOf",e.addedElementsUpdated)}}function Sp(t,l){t&1&&(a(0,"c-row",271)(1,"c-col",157)(2,"c-callout",228),C(3,"i",229),a(4,"span"),u(5),m(6,"translate"),s()()()()),t&2&&(o(5),_(g(6,1,"Security restrictions may prevent pop-ups from this embedded content. If you trust the content, please open it in a new tab or window.")))}function wp(t,l){if(t&1){let e=w();a(0,"a",278),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.first))}),C(1,"i",279),s()}}function xp(t,l){if(t&1){let e=w();a(0,"a",280),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.previous))}),C(1,"i",281),s()}}function kp(t,l){if(t&1){let e=w();a(0,"a",282),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.next))}),C(1,"i",283),s()}}function Tp(t,l){if(t&1){let e=w();a(0,"a",284),y("click",function(){f(e);let i=h(2);return v(i.searchForContentNavigate(i.last))}),C(1,"i",285),s()}}function Ip(t,l){if(t&1&&(a(0,"c-row",21)(1,"div",272)(2,"div",273),x(3,wp,2,0,"a",274)(4,xp,2,0,"a",275)(5,kp,2,0,"a",276)(6,Tp,2,0,"a",277),s()()()),t&2){let e=h();o(3),d("ngIf",e.first!=""),o(),d("ngIf",e.previous!=""),o(),d("ngIf",e.next!=""),o(),d("ngIf",e.last!="")}}function Ep(t,l){t&1&&(a(0,"small"),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"PST name is required.")," "))}function Pp(t,l){t&1&&(a(0,"small"),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"Only letters, numbers and @-_.() are allowed. The input must be at least 3 characters long and maximum 64 characters long.")," "))}function Mp(t,l){t&1&&(a(0,"small"),u(1),m(2,"translate"),s()),t&2&&(o(),I(" ",g(2,1,"PST name must be at least 3 characters long.")," "))}function Dp(t,l){if(t&1&&(a(0,"div",286),x(1,Ep,3,3,"small",18)(2,Pp,3,3,"small",18)(3,Mp,3,3,"small",18),s()),t&2){h();let e=pe(104);o(),d("ngIf",e.errors==null?null:e.errors.required),o(),d("ngIf",e.errors&&e.errors.pattern),o(),d("ngIf",e.errors&&e.errors.minlength)}}function Op(t,l){if(t&1){let e=w();a(0,"button",287),y("click",function(){f(e);let i=h();return v(i.exportCompleteMailboxAsPstTriggerG())}),u(1),m(2,"translate"),s()}if(t&2){h();let e=pe(104);d("disabled",e.invalid),o(),_(g(2,2,"Proceed"))}}function Ap(t,l){if(t&1){let e=w();a(0,"button",287),y("click",function(){f(e);let i=h();return v(i.exportSelectedAsPstG())}),u(1),m(2,"translate"),s()}if(t&2){h();let e=pe(104);d("disabled",e.invalid),o(),_(g(2,2,"Proceed"))}}function Up(t,l){t&1&&(a(0,"th"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Current item being processed")))}function Fp(t,l){if(t&1&&(a(0,"span"),u(1),m(2,"slice"),s()),t&2){let e=h(2);o(),I("/ ",st(2,1,e.progressG.subject,0,40),"")}}function Bp(t,l){if(t&1&&(a(0,"td")(1,"span",288),u(2),m(3,"slice"),s(),x(4,Fp,3,5,"span",18),s()),t&2){let e=h();o(),Kt("title","",e.progressG.currentFolderPath,"/",e.progressG.subject,""),o(),_(st(3,5,e.progressG.currentFolderPath,0,20)),o(2),d("ngIf",e.progressG.subject)}}function Rp(t,l){t&1&&(a(0,"td"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"-")))}function Np(t,l){if(t&1&&(a(0,"span"),u(1),s()),t&2){let e=h(2);o(),X("",e.progressG.restoredFiles,"/",e.progressG.totalNoOfFilesForRestore,"")}}function Vp(t,l){if(t&1&&(a(0,"td"),x(1,Np,2,2,"span",18),a(2,"div",289)(3,"div",290),u(4),m(5,"number"),s()()()),t&2){let e=h();o(),d("ngIf",e.progressG.totalNoOfFilesForRestore),o(),Yt("title","",e.progressG.totalRestorePct,"%"),o(),ce("width",e.progressG.totalRestorePct,"%"),o(),I(" ",te(5,6,e.progressG.totalRestorePct,"1.0-0"),"% ")}}function Lp(t,l){t&1&&(a(0,"td"),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"0")))}function Hp(t,l){if(t&1){let e=w();a(0,"button",71),y("click",function(){f(e);let i=h();return v(i.cancelDownloadAsPstG())}),u(1),m(2,"translate"),s()}t&2&&(o(),_(g(2,1,"Cancel Restore")))}function Gp(t,l){if(t&1){let e=w();a(0,"app-restore-modal",291),y("closeRestoreHandler",function(){f(e);let i=h();return v(i.closeRestoreHandler())}),s()}if(t&2){let e=h();d("currentDeviceUUID",e.currentDeviceUUIDCS)("currentDeviceUser",e.selectedValueR)("deviceType",e.product==null?null:e.product.key)("currentFilePath",e.currentFilePathR)("currentFileName",e.currentFileName)("userType",e.userType)("currentFileBackupId",e.currentFileBackupIdR)("isFileTarget",!0)}}var vs=(()=>{class t{constructor(e,n,i,r,c,p,b,k,E,P,D,M,O,U,ae,De){this.authService=e,this.datePipe=n,this.router=i,this.apiService=r,this.toastr=c,this.http=p,this.sharedService=b,this.renderer=k,this.cdr=E,this.sanitizer=P,this.configService=D,this.licenseCheckService=M,this.TranslateService=O,this.userRoleService=U,this.userManagementService=ae,this.assetManagementService=De,this.PRODUCTS_CONFIG=qa,this.userAssetSearchText="",this.showCalendarLayoutView=!1,this.calendarView=Ja.None,this.showCalendarView=!1,this.foundUsers=[],this.foundDevices=[],this.foundSites=[],this.isOverlayVisible=!1,this.noUsersFoundText="",this.noDevicesFoundText="",this.noSitesFoundText="",this.userType="",this.productTypeFiles="",this.deviceUsersList=[],this.devices=[],this.overlay=!1,this.selectedValue=null,this.destinationIdPath="",this.destinationId="",this.browsePathId="",this.selectedBrowseItemId="root",this.showSecurityCallout=!0,this.currentDeviceUUID="",this.deviceUUIDCheck=!1,this.selectedDeviceUUID="",this.selectedDeviceName="",this.deviceType="backup",this.filesSearchText="",this.foundFiles=[],this.noFilesFound=!1,this.siteList=[],this.sites=[],this.overlaySite=!1,this.selectedValueSite=null,this.product=null,this.productTypeContentSearch="",this.deviceUsersListCS=[],this.devicesCS=[],this.overlayCS=!1,this.selectedValueCS=null,this.currentDeviceUUIDCS="",this.deviceUUIDCheckCS=!1,this.selectedDeviceUUIDCS="",this.selectedDeviceNameCS="",this.selectedDeviceIdCS="",this.deviceTypeCS="backup",this.contentSearchText="",this.contentSearchMail="",this.foundFilesCS=[],this.noFilesFoundCS=!1,this.siteListCS=[],this.sitesCS=[],this.overlaySiteCS=!1,this.selectedValueSiteCS=null,this.items=[1,2,3,4],this.isExpanded=!1,this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="",this.myDateBefore=new Date,this.myDateAfter=new Date,this.foundMailsCS=[],this.selectedUsers=new Set,this.selectedPathCS="",this.showMailPreview=!0,this.showMailView=!1,this.showContactsView=!1,this.showTasksView=!1,this.currentMailSubject="",this.currentMailFrom="",this.currentMailSentDate="",this.currentMailTo="",this.currentMailCc="",this.currentMailBcc="",this.currentMailAttachments=[],this.currentMailBody="",this.currentFileName="",this.currentMailPath="",this.currentMailBackupId="",this.currentMailUser="",this.isSelectAll=!1,this.isMultiSelectEnabled=!1,this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.selectItems=[],this.totalCountGS="",this.previous="",this.next="",this.last="",this.first="",this.activeTabIndex=1,this.pstFileNameG="",this.zipFileNameG="",this.displayPststyleG="none",this.displayZipstyleG="none",this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.exportCompleteMailboxG=!1,this.exportCompleteSearchG=!1,this.backupIdsListG=[],this.batchIdG="",this.progressG=[],this.displayRestoreStyleR=!1,this.destinationPathR="",this.value18R="",this.overlayR=!1,this.selectedValueR=null,this.deviceUsersListR=[],this.devicesR=[],this.inplaceRestoreR=!1,this.suspendBackupR=!1,this.restoreDeletedFilesByRestoreR=!1,this.restoreDataBeforeR="",this.dateBeforeR=!1,this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date,this.selectedDeviceUUIDR="",this.browsePathR="",this.browseItemsR=[],this.displayBrowseStyleR="none",this.newFolderR="",this.selectedBrowseItemR=null,this.combinedBrowseValueR="",this.loadingR=!1,this.gotResultForRestoreR=!1,this.displayRestoreSizeStyleR="none",this.batchIdR="",this.showRestoreSettingsR=!0,this.progressR=[],this.displayDeleteRestoreStyleR="none",this.restoreDataBefore="",this.currentFilePathR="",this.currentFileBackupIdR="",this.restoreAllVersionsR=!1,this.restoreLinksR=!1,this.profileImage="",this.contactName="",this.contactTitle="",this.contactFirstName="",this.contactMiddleName="",this.contactLastName="",this.contactSuffix="",this.contactEmail="-",this.contactMobile="-",this.contactAddrStreet="-",this.contactAddrCity="-",this.contactAddrState="-",this.contactAddrCountry="-",this.contactAddrPostalCode="-",this.contactBusiAddrStreet="-",this.contactBusiAddrCity="-",this.contactBusiAddrState="-",this.contactBusiAddrCountry="-",this.contactBusiAddrPostalCode="-",this.contactOfficeLocation="-",this.contactCompanyName="-",this.contactJobTitle="-",this.contactDepartment="-",this.contactBirthday="-",this.contactHomePhones="-",this.contactBusinessPhones="-",this.contactWebSite="-",this.combinedBusinessAddress="-",this.truncatedBusinessAddress="-",this.combinedHomeAddress="-",this.truncatedHomeAddress="-",this.fullCombinedName="-",this.truncatedCombinedName="-",this.showFullEmail=!1,this.showFullLocation=!1,this.showFullCompanyName=!1,this.showFullJobTitle=!1,this.showFullDepartment=!1,this.showFullMobile=!1,this.showFullHomePhone=!1,this.showFullBusinessPhone=!1,this.splitContactEmails=[],this.taskSubject="NA",this.taskStartDate="NA",this.taskDueDate="NA",this.taskReminderTime="NA",this.taskImportance="Normal",this.currentCalendarSubject="",this.currentCalendarFrom="",this.currentCalendarSentDate="",this.currentCalendarTo="",this.currentCalendarCc="",this.currentCalendarBcc="",this.currentCalendarAttachments=[],this.currentCalendarBody="",this.calendarDuration="",this.productsLicensed=[],this.featureLicensedFlags=[],this.showNotAvailable=!1,this.searched=!1,this.showMinCharMessage=!0,this.deviceId="",this.inclusionLicenses=[],this.exclusionLicenses=[],this.hasBackupLicense=!1,this.hasContentSearchLicense=!1,this.maxItemsAllowedInPstExportWhileSearch=0,this.categoryContentSearch="mail",this.showloaderAtPreview=!1,this.txtFile="",this.isViewFile=!1,this.close=new Se,setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);let F=new Date,Oe=new Date;Oe.setFullYear(F.getFullYear()-1),new Date().setDate(F.getDate()-14),this.bsConfigBefore={minDate:Oe,maxDate:F,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigAfter={minDate:Oe,maxDate:F,dateInputFormat:"DD-MMM-YYYY",adaptivePosition:!0},this.bsConfigR={dateInputFormat:"DD-MMM-YYYY",maxDate:new Date,adaptivePosition:!0},this.myDateBefore=null,this.myDateAfter=null}ngOnInit(){return V(this,null,function*(){if(this.userType=yield this.userRoleService.getUserRole(),this.userType==="user"){let e=this.sharedService.getDataByKey("userName"),n=atob(e),i={value:n};this.deviceUsersList=[{label:"",options:[{value:n,label:n}]}],this.selectedValue=n,this.update(i),this.deviceUsersListCS=[{label:"",options:[{value:n,label:n}]}],this.selectedValueCS=n,this.updateContentSearch(i),this.deviceUsersListR=[{label:"",options:[{value:n,label:n}]}],this.cdr.detectChanges()}else this.setActiveSearchTab("default",0),this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedValueSiteCS="All Sites",this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")}]}];yield this.initializeEnvDetails(),this.getCloudProperties()})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy hh:mm:ss")||""}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.maxItemsAllowedInPstExportWhileSearch=i.cloudPropertyElement.maxItemsAllowedInPstExportWhileSearch})}initializeEnvDetails(){return new Promise(e=>{let n=this.licenseCheckService.getEnvDetails();if(!n||Object.keys(n).length===0)this.licenseCheckService.checkLicense().subscribe({next:c=>{this.handleLicenseResponse(c.headers),e()},error:c=>{console.error("License check failed:",c),this.handleLicenseResponse(c.headers),e()}});else{this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.hasBackupLicense=["backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gdrive_backup_enabled"].some(p=>this.inclusionLicenses.includes(p));let c=["exchange","gdrive","gmail","onedrive","sharepoint"];this.hasContentSearchLicense=this.inclusionLicenses.includes("contentsearchenabled")&&this.inclusionLicenses.some(p=>c.some(b=>p===`contentsearchenabledfor${b}`)),this.userType==="user"&&(this.hasBackupLicense?this.setActiveSearchTab("file",1):this.hasContentSearchLicense&&this.setActiveSearchTab("content",2)),this.applyEnvDetails(n),e()}["backup_enabled","onedrive_backup_enabled","exchange_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"].every(c=>!this.inclusionLicenses.includes(c))&&(this.userType=="superAdmin"||this.userType=="admin"||this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")&&this.setActiveSearchTab("default",0)})}handleLicenseResponse(e){let n={};e?.keys().forEach(i=>{n[i.toLowerCase()]=e.get(i)||""}),this.inclusionLicenses=this.licenseCheckService.getInclusionLicenses(),this.exclusionLicenses=this.licenseCheckService.getExclusionLicenses(),this.applyEnvDetails(n)}applyEnvDetails(e){this.PRODUCTS_CONFIG.forEach(n=>{e[n.licenceFlag]=="true"&&this.productsLicensed.push(n.key)}),this.PRODUCTS_CONFIG.forEach(n=>{n.licencedFeaturesFlags.forEach(i=>{e[i]=="true"&&this.featureLicensedFlags.push(n.key)})}),this.inclusionLicenses.includes("backup_enabled")?this.productTypeFiles="backup":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeFiles="oneDrive":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeFiles="SHAREPOINT":this.inclusionLicenses.includes("gdrive_backup_enabled")?this.productTypeFiles="Google Drive":this.productTypeFiles="",this.inclusionLicenses.includes("exchange_backup_enabled")?this.productTypeContentSearch="mail":this.inclusionLicenses.includes("gmail_backup_enabled")?this.productTypeContentSearch="Gmail":this.inclusionLicenses.includes("onedrive_backup_enabled")?this.productTypeContentSearch="oneDrive":this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.productTypeContentSearch="SHAREPOINT":this.inclusionLicenses.includes("gdrive_backup_enabled")?this.productTypeContentSearch="Google Drive":this.productTypeContentSearch=""}checkFeatureLicensed(e){return this.featureLicensedFlags.find(n=>e.includes(n))}getSignedURLFromId(e=!1,n=""){this.assetManagementService.getSignedURLFromId(this.downloadId,{}).subscribe(i=>{this.intervalId&&clearInterval(this.intervalId),this.intervalId&&(this.downloadId="",clearInterval(this.intervalId));let r=i.body;debugger;if(this.isViewFile){if(this.selectedUsers.size===1){let k=Array.from(this.selectedUsers)[0];if(console.log("filesize : "+k.rawSize),parseFloat(k.rawSize)>=51200){console.log(`filesize is more than ${50}MB `);return}}let c=/\/chunk\/([^/]+)/,p=r,b="";if(p){let k=p.match(c);k&&(console.log(k[1]),b=k[1])}this.executeNextCodeUnified(this.categoryContentSearch,b,r);return}else window.open(r,"_self");this.cdr.detectChanges()},i=>{switch(i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",i.message);break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}executeNextCodeUnified(e,n,i){let r=this.sanitizer.sanitize(rt.URL,i)||"";this.product.key==="Gmail"?this.showTextFileFromURL(r,"eml_view"):this.getJsonFromUrl(r,e)}showTextFileFromURL(e,n){this.txtFile=e,this.http.get(this.txtFile,{context:new On().set(Xn,!0),responseType:"text"}).subscribe(i=>{if(i.trim().length>0){if(n==="eml_view"){this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges();let c=Ya(i.trim());console.log("parsedMail : ",c),this.renderPrevious(c,"mail");return}console.log("data : "+JSON.stringify(i));let r=document.querySelector(".content");if(r){let c=document.createElement("pre");c.innerHTML=this.sanitizer.sanitize(rt.HTML,i)||"",r.appendChild(c),r.style.textAlign="left",r.style.display="block"}}},i=>{console.error("File does not exist or could not be loaded:",i)})}getJsonFromUrl(e,n){this.txtFile=e,this.http.get(this.txtFile,{responseType:"json"}).subscribe(i=>{i?(console.log("data : "+i),this.renderPrevious(i,n)):(this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1)},i=>{console.error("File does not exist or could not be loaded:",i)})}copyToClipboard(e,n){let i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.toastr.success(n+" copied to clipboard!")}showHideField(e){this.splitContactEmails.length>1&&(this.showFullEmail=e)}renderPrevious(e,n){if(n==="contacts"||this.categoryContentSearch=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=e.contact.displayName,this.contactTitle=e.contact.title,this.contactFirstName=e.contact.firstName,this.contactMiddleName=e.contact.middleName,this.contactLastName=e.contact.surname,this.contactSuffix=e.contact.suffix,this.contactEmail=e.contact.emailAddresses.map(c=>c.address||c.name).join(","),this.splitContactEmails=e.contact.emailAddresses.map(c=>c.address||c.name),this.contactMobile=e.contact.mobilePhone,this.contactAddrStreet=e.contact.homeAddress.street,this.contactAddrCity=e.contact.homeAddress.city,this.contactAddrState=e.contact.homeAddress.state,this.contactAddrCountry=e.contact.homeAddress.countryOrRegion,this.contactAddrPostalCode=e.contact.homeAddress.postalCode,this.contactBusiAddrStreet=e.contact.businessAddress.street,this.contactBusiAddrCity=e.contact.businessAddress.city,this.contactBusiAddrState=e.contact.businessAddress.state,this.contactBusiAddrCountry=e.contact.businessAddress.countryOrRegion,this.contactBusiAddrPostalCode=e.contact.businessAddress.postalCode,this.contactOfficeLocation=e.contact.businessPhones[0]&&e.contact.businessPhones[0]!==""?e.contact.contactOfficeLocation[0]:"-",this.contactCompanyName=e.contact.yomiCompanyName&&e.contact.yomiCompanyName!==""?e.contact.yomiCompanyName:"-",this.contactJobTitle=e.contact.jobTitle&&e.contact.jobTitle!==""?e.contact.jobTitle:"-",this.contactDepartment=e.contact.department&&e.contact.department!==""?e.contact.department:"-",this.contactBirthday=e.contact.birthday&&e.contact.birthday!==""?e.contact.birthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=e.contact.homePhones[0]&&e.contact.homePhones[0]!==""?e.contact.homePhones[0]:"-",this.contactBusinessPhones=e.contact.businessPhones[0]&&e.contact.businessPhones[0]!==""?e.contact.businessPhones[0]:"-",this.contactWebSite=e.contact.businessHomePage&&e.contact.businessHomePage!==""?e.contact.businessHomePage:"-",this.profileImage=e.photo?`data:image/jpg;base64,${e.photo}`:"./assets/images/avatars/default.jpg";let i=[this.contactBusiAddrStreet,this.contactBusiAddrCity,this.contactBusiAddrState,this.contactBusiAddrCountry,this.contactBusiAddrPostalCode];this.combinedBusinessAddress=i.filter(c=>c&&c.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let r=[this.contactAddrStreet,this.contactAddrCity,this.contactAddrState,this.contactAddrCountry,this.contactAddrPostalCode];this.combinedHomeAddress=r.filter(c=>c&&c.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress,this.truncatedCombinedName=this.contactName.length>20?this.contactName.substring(0,20)+"...":this.contactName}else if(n==="to_do"||this.categoryContentSearch=="todo")this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,console.log("its a task..."),this.resetTasksFields(),this.taskSubject=e.title||"NA",this.taskStartDate=e?.completedDateTime?.dateTime?e?.completedDateTime?.dateTime+"Z":"NA",this.taskDueDate=e?.dueDateTime?.dateTime?e?.dueDateTime?.dateTim+"Z":"NA",this.taskReminderTime=e?.reminderDateTime?.dateTime?e?.reminderDateTime?.dateTime+"Z":"NA",this.taskImportance=e?.importance||"",console.log("its a todo...",e);else if(n==="calendar"||this.categoryContentSearch=="calendar")this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,console.log("its a calendar..."),this.currentCalendarSubject=e.subject||"",this.currentFileName=e.subject||"",this.currentCalendarFrom=e.organizer.emailAddress.address||"",this.currentCalendarSentDate=e.createdDateTime||"",this.currentCalendarTo=e.attendees.map(i=>i.emailAddress.address).join(",")||"",this.currentCalendarCc=e.ccRecipients||"",this.currentCalendarBcc=e.bccRecipients||"",this.currentCalendarAttachments=e.attachments||[],this.currentCalendarBody=e.body.content||"",this.calendarDuration=e?.start?.dateTime&&e?.end?.dateTime?`${this.getFormattedDate(e.start.dateTime+"Z")} - ${this.getFormattedDate(e.end.dateTime+"Z")}`:"",this.currentCalendarBody=this.currentCalendarBody,this.showloaderAtPreview=!1,setTimeout(()=>{let i=this.calendarIframe.nativeElement,r=i.contentDocument||i.contentWindow?.document;r&&(r.open(),r.write(this.currentCalendarBody),r.close())});else if(n==="mail"){console.log("its a mail..."),this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.showloaderAtPreview=!1,this.cdr.detectChanges(),this.currentMailSubject=e.subject,this.currentFileName=e.subject,this.currentMailFrom=e.from?.emailAddress?.address||e.from?.address,this.currentMailSentDate=e.sentDateTime||e.date,this.currentMailTo=e.toRecipients?.map(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 c=r.head||r.getElementsByTagName("head")[0];c||(c=r.createElement("head"),r.documentElement.prepend(c))}}}this.showloaderAtPreview=!1}setActiveSearchTab(e,n){return V(this,null,function*(){this.activeTabIndex=n;let i;switch(e){case"default":setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break;case"file":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(r=>r.key===this.productTypeFiles||r.dataManagementKey===this.productTypeFiles||r.key2===this.productTypeFiles||r.key3===this.productTypeFiles),setTimeout(()=>{this.fileSearch.nativeElement.focus()},0);break;case"content":i=yield this.licenseCheckService.getLicensedProductsDetails(),this.product=i.find(r=>r.key===this.productTypeContentSearch||r.dataManagementKey===this.productTypeContentSearch||r.key2===this.productTypeContentSearch||r.key3===this.productTypeContentSearch),setTimeout(()=>{this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?this.contentSearchMailInput.nativeElement.focus():this.contentSearch.nativeElement.focus()},0);break;default:setTimeout(()=>{this.userDeviceSearch.nativeElement.focus()},0);break}typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath)})}renderHtml(e){return this.sanitizer.bypassSecurityTrustHtml(this.sanitizer.sanitize(rt.HTML,e)||"")}logout(){console.log("Logout clicked 154"),this.authService.logout(),console.log("Token after logout"+this.authService.Token),this.router.navigate(["logout"])}activityHistory(){console.log("activityHistory clicked"),this.router.navigate(["activityHistory"])}onKeydown(e){e.key==="Enter"&&this.searchForUsersAssets()}searchForUsersAssets(){console.log("inside users/asset search : "+this.userAssetSearchText),this.userAssetSearchText!=""&&this.callApis()}closeOverlay(){this.close.emit()}callApis(){let e=this.userManagementService.getUsersSearch(this.userAssetSearchText),n=this.apiService.getDeviceSearch(this.userAssetSearchText),i=this.inclusionLicenses.includes("sharepoint_backup_enabled")?this.apiService.getSitesSearch(this.userAssetSearchText):Ke(null);an([e,n,i]).subscribe(([r,c,p])=>{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(c.body.data.devices)),console.log("getDeviceSearch response headers:",JSON.stringify(c.headers)),r.body.data&&r.body.data.users?(this.noUsersFoundText="",this.foundUsers=r.body.data.users.map(b=>Ae(Z({},b),{userNameEncoded:btoa(b.userName)}))):(this.foundUsers=[],this.noUsersFoundText=this.TranslateService.instant("No Users found.")),c.body.data&&c.body.data.devices?(this.noDevicesFoundText="",this.foundDevices=c.body.data.devices.map(b=>Ae(Z({},b),{userNameEncoded:btoa(b.userName),deviceNameEncoded:btoa(b.deviceName)}))):(this.noDevicesFoundText=this.TranslateService.instant("No Devices found"),this.foundDevices=[]),p&&(console.log("getSitesSearch response body:",JSON.stringify(p.body.data.users)),console.log("getSitesSearch response headers:",JSON.stringify(p.headers)),p.body.data&&p.body.data.users?(this.noSitesFoundText="",this.foundSites=p.body.data.users.map(b=>Ae(Z({},b),{userNameEncoded:btoa(b.userName)}))):(this.foundSites=[],this.noSitesFoundText=this.TranslateService.instant("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(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",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.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(c=>({value:c.userName,label:c.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.assetManagementService.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":this.deviceType=="mail"?r="OUTLOOK":r=this.deviceType,this.devices=i.body.data.devices.filter(c=>c.blocked===!1&&c.deviceType==r).map(c=>({deviceName:c.deviceName,deviceUUID:c.deviceUUID,deviceId:c.deviceId,osType:c.osType,decoupled:c.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}updateNow(e){this.searched=!0,this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){this.deviceType=this.productTypeContentSearch;let i="";this.deviceType=="ODB"?i="ONEDRIVE":this.deviceType=="backup"?i="BACKUP":this.deviceType=="mail"?i="OUTLOOK":i=this.deviceType,this.devicesR=n.body.data.devices.filter(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:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductType(e){return V(this,null,function*(){let i=e.target.value;if(this.filesSearchText="",this.userType!=="user")this.deviceUsersList=[],this.selectedValue=null;else{let c={value:this.selectedValue};this.update(c)}this.devices=[];let r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.find(c=>c.key===i||c.dataManagementKey===i||c.key2===i||c.key3===i),typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath)})}searchForFiles(){if((this.productTypeFiles=="backup"||this.productTypeFiles=="oneDrive"||this.productTypeFiles=="Google Drive")&&(this.selectedValue==""||this.selectedValue==null)){this.toastr.error(this.TranslateService.instant("Please select a User Id."));return}if(this.productTypeFiles=="SHAREPOINT"){if(this.selectedValueSite==""||this.selectedValueSite==null){this.toastr.error(this.TranslateService.instant("Please select a SharePoint Site."));return}this.selectedValue=this.selectedValueSite,this.selectedDeviceName=this.selectedValue+" (Microsoft SharePoint)"}if(this.filesSearchText==""){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}this.apiService.getFilesSearch(this.productTypeFiles,this.selectedValue,this.selectedDeviceName,this.filesSearchText).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let 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 c=e.body;(this.productTypeFiles==="backup"||this.productTypeFiles==="oneDrive"||this.productTypeFiles==="SHAREPOINT"||this.productTypeFiles==="Gmail"||this.productTypeFiles==="Google Drive")&&e.body.data.fileElementList.forEach(p=>{let b={exists:p.present?p.present.toString():"",backup:"true",deviceUUID:p.deviceUUID?p.deviceUUID.toString():"",fileName:p.fileName?p.fileName.toString():"",filePath:p.fileCompletePath?p.fileCompletePath.toString():"",fileUser:p.fileUserOwner?btoa(p.fileUserOwner):"",folder:p.folder?"true":"false",fileRevisionID:p.backupId?p.backupId.toString():"",content:p.metaData?p.metaData.toString():"",modifiedTimestamp:p.lastModifiedTimestamp?parseInt(p.lastModifiedTimestamp,10):0,size:p.size?parseInt(p.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(b.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,P=E.osType.substring(0,3).toLowerCase(),D="Windows",M="Windows";P==="win"?(D="Windows",M="Windows"):P==="mac"?(D="Mac",M="Mac"):P==="one"?(D="ONEDRIVE",M="ONEDRIVE"):P==="out"?(D="OUTLOOK",M="OUTLOOK"):P==="sha"&&(D="SHAREPOINT",M="SHAREPOINT"),b.deviceType=D,b.deviceOs=M,b.deviceId=E.deviceId?E.deviceId.toString():"",b.blocked="active",b.deviceName=E.deviceName?E.deviceName.toString():"",b.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",b.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",r.push(b),this.foundFiles=r,this.noFilesFound=!1,console.log("Files:",JSON.stringify(r))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.message);break}})})}else this.noFilesFound=!0;this.cdr.detectChanges()},e=>{switch(console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onSearchSite(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(c=>({value:c.name,label:c.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.assetManagementService.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(c=>c.blocked===!1&&c.deviceType==r).map(c=>({deviceName:c.deviceName,deviceUUID:c.deviceUUID,deviceId:c.deviceId,osType:c.osType,decoupled:c.decoupled})),this.devices.length>0&&(this.selectedDeviceUUID=this.devices[0].deviceUUID,this.selectedDeviceName=this.devices[0].deviceName)}else this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devices[0].deviceUUID!=this.currentDeviceUUID?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devices||this.devices.length===0)&&(this.devices=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}downloadFile(e,n,i,r,c,p,b,k,E,P){if(console.log("fileName : "+e),console.log("filePath : "+n),console.log("fileRevisionID : "+i),console.log("backup : "+r),console.log("fileUser : "+c),console.log("deviceUUID : "+p),console.log("folder : "+b),console.log("token : "+this.sharedService.getDataByKey("authToken")),["OUTLOOK","Gmail","mail"].includes(E)){this.isViewFile=!1,this.downloadMail(c,i,p,P);return}else if(this.product?.downloadsConfigurations?.unified){this.gDriveDownloadFile(i,p,parseFloat((k/1024).toFixed(2))>=10,b==="true",this.product.dataManagementKey||this.product.key||E);return}let D="https://",M=this.configService.baseFolder,O="/BluKryptBuilder/cloud/",U=this.configService.cloudName,ae=this.authService.Token,De=this.sharedService.getDataByKey("userName"),F=`${D}${M}${O}${U}/portal/download/files/?fileName=${this.base64Encode(e)}&filePath=${this.base64Encode(n)}&token=${ae}&loginUserName=${De}&isSync=false+&deviceUUID=${p}&backupID=${i}&backup=${r}&userName=${this.base64Encode(c)}&moveToDownloads=false`;window.open(F,"_self")}gDriveDownloadFile(e,n,i,r=!1,c,p=!1){this.currentDeviceUUID=n,this.assetManagementService.downloadGsuite(n,e,this.sharedService.getDataByKey("userName"),r?"FOLDER":i?"LARGE_FILE":this.isViewFile?c==="Gmail"?"EML":"VIEW":"SMALL_FILE",c,this.restoreDeletedFilesByRestoreR,{downloadId:this.downloadId,getSignedURLFromId:this.getSignedURLFromId},void 0,void 0,p).subscribe(b=>{console.log("res from downloadGsuite : "+JSON.stringify(b)),console.log("res from downloadGsuite : "+JSON.stringify(b.body)),this.downloadId=b?.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"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId()),this.cdr.detectChanges()},b=>{switch(console.error("Error from downloadGsuite: ",b),console.error("Error status: ",b.status),console.log("ID : "+b?.error?.text),b.status){case 200:console.error("Bad Request: ",b.message),this.downloadId=b?.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"):this.scheduleNext(0,2e3,5,()=>this.getSignedURLFromId());break;case 400:console.error("Bad Request: ",b.message);break;case 401:console.error("Unauthorized: ",b.message),this.toastr.error("Token expired, navigating to logout page.","Error"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",b.message);break;case 404:console.error("Not Found: ",b.message);break;case 412:console.error("Error code 412: ",b.message),this.toastr.error("Cannot delete filter, already mapped to policy.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",b.message);break;case 503:console.error("Internal Server Error: ",b.message);break;default:console.error("Unknown Error: ",b.message);break}})}base64Encode(e){return btoa(decodeURIComponent(escape(e)))}openFileLocation(e,n,i,r,c){this.sharedService.setData("openFileLocation","yes"),this.sharedService.setData("openLocationFilename",e),this.sharedService.setData("openLocationPath",n),this.sharedService.setData("openLocationBackupId",c),this.sharedService.setData("currentDeviceId",i),this.sharedService.setData("currentDeviceType",r),this.isOverlayVisible=!1;let p=document.querySelector(".header.header-sticky");p&&this.renderer.setStyle(p,"z-index","1000");let b=document.querySelector(".overlay");b&&this.renderer.setStyle(b,"display","none"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["backup/files"])}onSearchContentSearch(e){let n=e.search||"";if(console.log("searchTerm : "+n),n.length<3){this.showMinCharMessage=!0;return}else this.showMinCharMessage=!1;if(n=="all"||n=="All"){this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";return}this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueCS=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(c=>({value:c.userName,label:c.userName}));this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")},...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.assetManagementService.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(c=>c.deviceType==r).map(c=>({deviceName:c.deviceName,deviceUUID:c.deviceUUID,deviceId:c.deviceId,osType:c.osType,decoupled:c.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName,this.selectedDeviceIdCS=this.devicesCS[0].deviceId)}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i),this.devicesCS=[{deviceName:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}]})}updateNowContentSearch(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="";this.deviceTypeCS=="ODB"?i="ONEDRIVE":this.deviceTypeCS=="backup"?i="BACKUP":this.deviceTypeCS=="mail"?i="OUTLOOK":this.deviceTypeCS=="Gmail"?i="Gmail":i=this.deviceTypeCS,this.devicesCS=n.body.data.devices.filter(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:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}onChangeProductTypeContentSearch(e){return V(this,null,function*(){this.foundMailsCS=[],this.foundFiles=[],this.foundFilesCS=[],this.noFilesFound=!1,this.noFilesFoundCS=!1;let i=e.target.value;if(this.contentSearchText="",this.userType!=="user")this.deviceUsersListCS=[],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="",this.selectedValueCS="All Users",this.deviceUsersListCS=[{label:"",options:[{value:"All Users",label:this.TranslateService.instant("All Users")}]}],this.devicesCS=[{deviceName:this.TranslateService.instant("All Assets"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.cdr.detectChanges();else{let c={value:this.selectedValueCS};this.updateContentSearch(c)}let r=yield this.licenseCheckService.getLicensedProductsDetails();this.product=r.find(c=>c.key===i||c.dataManagementKey===i||c.key2===i||c.key3===i),typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail"?setTimeout(()=>{this.contentSearchMailInput.nativeElement.focus()},0):setTimeout(()=>{this.contentSearch.nativeElement.focus()},0)})}onChangeCategoryContentSearch(e){return V(this,null,function*(){this.categoryContentSearch!="mail"&&(this.isExpanded=!1),this.foundMailsCS=[],this.foundFilesCS=[],this.contentSearchText=""})}formatDateFromDateObject(e){return e?`${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getDate().toString().padStart(2,"0")}/${e.getFullYear()}`:""}searchForContent(){if(this.foundMailsCS=[],this.foundFilesCS=[],console.log("vvvv : "+this.selectedValueCS),console.log("input : "+this.contentSearchMail),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"&&this.productTypeContentSearch!="Google Drive"){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}if(this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")if(console.log("fromId : "+this.fromId),console.log("toId : "+this.toId),console.log("ccId : "+this.ccId),console.log("bccId : "+this.bccId),console.log("subjectId : "+this.subjectId),console.log("bodyId : "+this.bodyId),console.log("keywordsId : "+this.keywordsId),console.log("myDateBefore : "+this.formatDateFromDateObject(this.myDateBefore)),console.log("myDateAfter : "+this.formatDateFromDateObject(this.myDateAfter)),this.togglePanel(),this.isExpanded=!1,this.contentSearchMail==""&&this.fromId==""&&this.toId==""&&this.ccId==""&&this.bccId==""&&this.subjectId==""&&this.bodyId==""&&this.keywordsId==""&&this.myDateBefore==null&&this.myDateAfter==null){this.toastr.error(this.TranslateService.instant("Please specify a search criteria."));return}else if((this.myDateBefore!==null||this.myDateAfter!==null)&&(!this.selectedValueCS||this.selectedValueCS==="All Users")){this.isExpanded=!0,this.toastr.error(this.TranslateService.instant("Please select a User Id."),this.TranslateService.instant("Error"));return}else if(this.myDateBefore!==null&&this.myDateAfter!==null&&new Date(this.myDateBefore)>=new Date(this.myDateAfter)){this.isExpanded=!0,this.toastr.error(this.TranslateService.instant("Incorrect date range in search criteria."),this.TranslateService.instant("Error"));return}else this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail);if(this.contentSearchText==""){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}if((this.myDateAfter!=null||this.myDateBefore!=null)&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error(this.TranslateService.instant("Please select a username."));return}this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS="",this.selectedDeviceIdCS=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearch(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",this.configService.componentName,this.categoryContentSearch).subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);let r=[];if(e.body?.data?.fileElementList?.length>0){console.log("res.body : "+JSON.stringify(e.body.data.fileElementList));let c=e.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT"||this.productTypeContentSearch==="Google Drive")&&(e.body.data.fileElementList.forEach(p=>{let b={exists:p.present?p.present.toString():"",backup:"true",deviceUUID:p.deviceUUID?p.deviceUUID.toString():"",fileName:p.fileName?p.fileName.toString():"",filePath:p.fileCompletePath?p.fileCompletePath.toString():"",fileUser:p.fileUserOwner?btoa(p.fileUserOwner):"",folder:p.folder?"true":"false",fileRevisionID:p.fileRevisionId?p.fileRevisionId.toString():"",content:p.metaData?p.metaData.toString():"",modifiedTimestamp:p.lastModifiedTimestamp?parseInt(p.lastModifiedTimestamp,10):0,size:p.size?parseInt(p.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(b.deviceUUID).subscribe(k=>{let E=k.body.BSDeviceInfoElement,P=E.osType.substring(0,3).toLowerCase(),D="Windows",M="Windows";P==="win"?(D="Windows",M="Windows"):P==="mac"?(D="Mac",M="Mac"):P==="one"?(D="ONEDRIVE",M="ONEDRIVE"):P==="out"?(D="OUTLOOK",M="OUTLOOK"):P==="sha"&&(D="SHAREPOINT",M="SHAREPOINT"),b.deviceType=D,b.deviceOs=M,b.deviceId=E.deviceId?E.deviceId.toString():"",b.blocked="active",b.deviceName=E.deviceName?E.deviceName.toString():"",b.deviceNameNew=E.deviceName?E.deviceName.replace(/ /g,"_PB_"):"",b.deviceNameEnc=E.deviceName?btoa(E.deviceName):"",r.push(b),this.foundFilesCS=r,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(r))},k=>{switch(console.error("Error from getDeviceInfo:",k),k.status){case 400:console.error("Bad Request:",k.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",k.message);break;case 404:console.error("Not Found:",k.message);break;case 500:case 503:console.error("Internal Server Error:",k.message);break;default:console.error("Unknown Error:",k.message);break}})}),e.body.metadata&&(this.totalCountGS=e.body.data.totalNoofFiles,this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch==="Gmail")&&(e.body.data.fileElementList.forEach(p=>{let b={backupId:p.fileRevisionId,userName:p.fileUserOwner,deviceUUID:p.deviceUUID,subject:p.subject?p.subject:"<empty>",contactName:p.fileName?p.fileName:"-",taskSubject:p.subject?p.subject:"",present:p.exists.toString(),showIcon:p.from?p.from.charAt(0):"E",alphaColor:this.colorGen(),from:p.from?p.from:"<empty>",to:p.toRecipients?p.toRecipients:"",cc:p.ccRecipients?p.ccRecipients:"",bcc:p.bccRecipients?p.bccRecipients:"",sentDate:p.sentDate?new Date(p.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:p.metaData?p.metaData:"",bodyContent:p.bodyContent?p.bodyContent:"",bodyContent1:p.bodyContent?p.bodyContent.length>100?p.bodyContent.substring(0,100)+"...":p.bodyContent:"",hasAttachments:p.hasAttachments,attachments:p.attachments?p.attachments:"",name:p.subject?p.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:p.subject?p.subject:"<empty>",filePath:p.fileCompletePath,deviceId:p.deviceId};this.foundMailsCS.push(b)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=e.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(e.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,e.body.metadata&&(console.log("metadata : "+JSON.stringify(e.body.metadata)),this.previous=e.body.metadata.links.previous,this.next=e.body.metadata.links.next,this.last=e.body.metadata.links.last,this.first=e.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},e=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}searchForContentNavigate(e){if(this.foundMailsCS=[],this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="oneDrive"&&this.productTypeContentSearch!="Gmail"&&(this.selectedValueCS==""||this.selectedValueCS==null)){this.toastr.error(this.TranslateService.instant("Please select a User Id."));return}if(console.log("vvvv : "+this.selectedValueCS),this.contentSearchText==""&&this.productTypeContentSearch!="mail"&&this.productTypeContentSearch!="Gmail"){this.toastr.error(this.TranslateService.instant("Please enter file name to search."));return}this.productTypeContentSearch=="SHAREPOINT"&&(this.selectedValueCS=this.selectedValueSiteCS,this.selectedDeviceNameCS=""),(this.productTypeContentSearch=="mail"||this.productTypeContentSearch=="Gmail")&&(this.product?.downloadsConfigurations?.unified?this.contentSearchText=this.parseEmailStringUnified(this.contentSearchMail):this.contentSearchText=this.parseEmailString(this.contentSearchMail)),this.selectedValueCS=="All Users"&&(this.selectedDeviceNameCS=""),console.log("productTypeContentSearch : "+this.productTypeContentSearch),console.log("selectedValueCS : "+this.selectedValueCS),console.log("selectedDeviceNameCS : "+this.selectedDeviceNameCS),console.log("contentSearchText : "+this.contentSearchText),this.apiService.getContentSearchNavigate(this.productTypeContentSearch,this.selectedValueCS,this.selectedDeviceNameCS,this.contentSearchText,this.selectedDeviceIdCS,"",e,this.configService.componentName,this.categoryContentSearch).subscribe(n=>{var i=JSON.stringify(n.body),r=JSON.parse(i);let c=[];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 p=n.body;(this.productTypeContentSearch==="oneDrive"||this.productTypeContentSearch==="SHAREPOINT")&&(n.body.data.fileElementList.forEach(b=>{let k={exists:b.present?b.present.toString():"",backup:"true",deviceUUID:b.deviceUUID?b.deviceUUID.toString():"",fileName:b.fileName?b.fileName.toString():"",filePath:b.fileCompletePath?b.fileCompletePath.toString():"",fileUser:b.fileUserOwner?btoa(b.fileUserOwner):"",folder:b.folder?"true":"false",fileRevisionID:b.fileRevisionId?b.fileRevisionId.toString():"",content:b.metaData?b.metaData.toString():"",modifiedTimestamp:b.lastModifiedTimestamp?parseInt(b.lastModifiedTimestamp,10):0,size:b.size?parseInt(b.size,10):0,deviceType:"",deviceOs:"",deviceId:"",blocked:"",deviceName:"",deviceNameNew:"",deviceNameEnc:""};this.assetManagementService.getDeviceInfo(k.deviceUUID).subscribe(E=>{let P=E.body.BSDeviceInfoElement,D=P.osType.substring(0,3).toLowerCase(),M="Windows",O="Windows";D==="win"?(M="Windows",O="Windows"):D==="mac"?(M="Mac",O="Mac"):D==="one"?(M="ONEDRIVE",O="ONEDRIVE"):D==="out"?(M="OUTLOOK",O="OUTLOOK"):D==="sha"&&(M="SHAREPOINT",O="SHAREPOINT"),k.deviceType=M,k.deviceOs=O,k.deviceId=P.deviceId?P.deviceId.toString():"",k.blocked="active",k.deviceName=P.deviceName?P.deviceName.toString():"",k.deviceNameNew=P.deviceName?P.deviceName.replace(/ /g,"_PB_"):"",k.deviceNameEnc=P.deviceName?btoa(P.deviceName):"",c.push(k),this.foundFilesCS=c,this.noFilesFoundCS=!1,console.log("Files:",JSON.stringify(c))},E=>{switch(console.error("Error from getDeviceInfo:",E),E.status){case 400:console.error("Bad Request:",E.message);break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden:",E.message);break;case 404:console.error("Not Found:",E.message);break;case 500:case 503:console.error("Internal Server Error:",E.message);break;default:console.error("Unknown Error:",E.message);break}})}),n.body.metadata&&(this.totalCountGS=n.body.data.totalNoofFiles,this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first)),(this.productTypeContentSearch==="mail"||this.productTypeContentSearch=="Gmail")&&(n.body.data.fileElementList.forEach(b=>{let k={backupId:b.fileRevisionId,userName:b.fileUserOwner,deviceUUID:b.deviceUUID,subject:b.subject?b.subject:"<empty>",contactName:b.fileName?b.fileName:"-",taskSubject:b.subject?b.subject:"",present:b.exists.toString(),showIcon:b.from?b.from.charAt(0):"E",alphaColor:this.colorGen(),from:b.from?b.from:"<empty>",to:b.toRecipients?b.toRecipients:"",cc:b.ccRecipients?b.ccRecipients:"",bcc:b.bccRecipients?b.bccRecipients:"",sentDate:b.sentDate?new Date(b.sentDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",displayContent:b.metaData?b.metaData:"",bodyContent:b.bodyContent?b.bodyContent:"",bodyContent1:b.bodyContent?b.bodyContent.length>100?b.bodyContent.substring(0,100)+"...":b.bodyContent:"",hasAttachments:b.hasAttachments,attachments:b.attachments?b.attachments:"",name:b.subject?b.subject:"<empty>",type:"File",icon:"file",folder:!1,name1:b.subject?b.subject:"<empty>",filePath:b.fileCompletePath,deviceId:b.deviceId};this.foundMailsCS.push(k)}),this.foundMailsCS.length>0&&(this.foundMailsCS[0].filePath=="Contacts"||this.foundMailsCS[0].filePath.toLowerCase().includes("contacts")?(this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"contacts")):this.foundMailsCS[0].filePath=="Tasks"||this.foundMailsCS[0].filePath=="To Do"||this.foundMailsCS[0].filePath.includes("To Do")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!0,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"to_do")):this.foundMailsCS[0].filePath=="Calendar"||this.foundMailsCS[0].filePath.toLowerCase().includes("calendar")?(this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!0,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceUUID,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],"calendar")):(this.showMailView=!0,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1,this.viewOutlook11(this.foundMailsCS[0].deviceId,this.foundMailsCS[0].userName,this.foundMailsCS[0].backupId,this.foundMailsCS[0],this.productTypeContentSearch))),this.totalCountGS=n.body.data.totalNoofFiles,console.log("totalCount : "+JSON.stringify(n.body.data.totalNoofFiles)),this.noFilesFoundCS=!1,n.body.metadata&&(console.log("metadata : "+JSON.stringify(n.body.metadata)),this.previous=n.body.metadata.links.previous,this.next=n.body.metadata.links.next,this.last=n.body.metadata.links.last,this.first=n.body.metadata.links.first))}else this.noFilesFoundCS=!0;this.cdr.detectChanges()},n=>{switch(this.noFilesFoundCS=!0,console.error("Error from getFilesSearch: ",n),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}onSearchSiteContentSearch(e){let n=e.search||"";if(console.log("searchTerm : "+n),n=="all"||n=="All"){this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")}]}],this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS="";return}this.deviceUsersListCS=[{label:"",options:[]}],this.selectedValueSiteCS=null,this.assetManagementService.searchSite(e.search).subscribe(i=>{if(i.body&&i.body.stringElementList){let r=i.body.stringElementList.map(c=>({value:c.name,label:c.name}));this.siteListCS=[{label:"",options:[{value:"All Sites",label:this.TranslateService.instant("All Sites")},...r||[]]}],this.cdr.detectChanges()}else this.siteListCS=[]},i=>{})}updateSiteContentSearch(e){console.log("value : "+e.value);let n=e.value;this.assetManagementService.getUserDevice(n).subscribe(i=>{if(i.body?.data?.devices){this.deviceTypeCS=this.productTypeContentSearch;let r="";this.deviceTypeCS=="oneDrive"?r="ONEDRIVE":this.deviceType=="backup"?r="BACKUP":r=this.deviceTypeCS,this.devicesCS=i.body.data.devices.filter(c=>c.blocked===!1&&c.deviceType==r).map(c=>({deviceName:c.deviceName,deviceUUID:c.deviceUUID,deviceId:c.deviceId,osType:c.osType,decoupled:c.decoupled})),this.devicesCS.length>0&&(this.selectedDeviceUUIDCS=this.devicesCS[0].deviceUUID,this.selectedDeviceNameCS=this.devicesCS[0].deviceName)}else this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesCS[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheckCS=!0:this.deviceUUIDCheckCS=!1;(!this.devicesCS||this.devicesCS.length===0)&&(this.devicesCS=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i),this.selectedDeviceIdCS="",this.selectedDeviceUUIDCS=""})}parseEmailStringUnified(e){let n=e,i=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,r,c=[],p=[],b=[],k=[],E=[],P=[],D=[];for(;(r=i.exec(n))!==null;){let O=r[1],U=r[2];if(U.startsWith("(")&&U.endsWith(")")&&(U=U.slice(1,-1)),O==="from")c.push(U.trim());else if(O==="to")p.push(U.trim());else if(O==="cc")b.push(U.trim());else if(O==="bcc")k.push(U.trim());else if(O==="subject"){let ae=U.trim();E.push(ae.replace(/^\(|\)$/g,""))}else if(O==="body"){let ae=U.trim();P.push(ae.replace(/^\(|\)$/g,""))}else D.push(U.trim())}return D.push(n.replace(i,"").trim()),[`from:${c.join(",")}`,`to:${p.join(",")}`,`bcc:${k.join(",")}`,`cc:${b.join(",")}`,`subject:${E.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${D.join(" ")}`,`body:${P.join(",")}`].join("#*#")}colorGen(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}isSelected(e){return this.selectedUsers.has(e)}searchForContentMail(){}selectUser(e){console.log("inside selectUser"),this.selectedPathCS=e.filePath,this.selectedUsers.add(e),console.log("selectedUsers : "+JSON.stringify(Array.from(this.selectedUsers)))}viewOutlook11(e,n,i,r,c){if(console.log("from viewOutlook11 : "+c),n==atob(this.sharedService.getDataByKey("userName"))&&(this.showMailPreview=!0),this.selectedUsers=new Set,this.selectUser(r),this.isViewFile=!1,this.product?.downloadsConfigurations?.unified){this.showloaderAtPreview=!0,this.isViewFile=!0,this.gDriveDownloadFile(i,r.deviceUUID,!1,!1,this.product.key,this.showloaderAtPreview);return}this.assetManagementService.viewMail(e,i).subscribe(p=>{if(p.body){this.showNotAvailable=!1;var b=JSON.stringify(p.body.mailElement),k=JSON.parse(b);if(console.log("mailElement : "+JSON.stringify(p.body.mailElement)),console.log("subject : "+p.body.mailElement.subject),console.log("from : "+p.body.mailElement.from),console.log("ccRecipients : "+p.body.mailElement.ccRecipients),console.log("toRecipients : "+p.body.mailElement.toRecipients),c=="mail"||c=="Gmail"){this.currentMailSubject=p.body.mailElement.subject,this.currentFileName=p.body.mailElement.subject,this.currentMailFrom=p.body.mailElement.from,this.currentMailSentDate=p.body.mailElement.sentDate,this.currentMailTo=p.body.mailElement.toRecipients,this.currentMailCc=p.body.mailElement.ccRecipients,this.currentMailBcc=p.body.mailElement.bccRecipients,this.currentMailAttachments=p.body.mailElement.attachments,this.currentMailBody=p.body.mailElement.bodyContent,this.currentMailBody=this.replaceAnchorTags(this.currentMailBody);let E=this.iframe.nativeElement,P=E.contentDocument||E.contentWindow?.document;P&&(P.open(),P.write(this.currentMailBody),P.close()),console.log("body : "+this.currentMailBody)}if(c=="contacts"){this.showMailView=!1,this.showContactsView=!0,this.showCalendarView=!1,this.showTasksView=!1,console.log("its a contact..."),this.resetContactFields(),this.contactName=p.body.mailElement.fileName,this.contactTitle=p.body.mailElement.contactTitle,this.contactFirstName=p.body.mailElement.contactFirstName,this.contactMiddleName=p.body.mailElement.contactMiddleName,this.contactLastName=p.body.mailElement.contactLastName,this.contactSuffix=p.body.mailElement.contactSuffix,this.contactEmail=p.body.mailElement.contactEmail,this.contactMobile=p.body.mailElement.contactMobile,this.contactAddrStreet=p.body.mailElement.contactAddrStreet,this.contactAddrCity=p.body.mailElement.contactAddrCity,this.contactAddrState=p.body.mailElement.contactAddrState,this.contactAddrCountry=p.body.mailElement.contactAddrCountry,this.contactAddrPostalCode=p.body.mailElement.contactAddrPostalCode,this.contactBusiAddrStreet=p.body.mailElement.contactBusiAddrStreet,this.contactBusiAddrCity=p.body.mailElement.contactBusiAddrCity,this.contactBusiAddrState=p.body.mailElement.contactBusiAddrState,this.contactBusiAddrCountry=p.body.mailElement.contactBusiAddrCountry,this.contactBusiAddrPostalCode=p.body.mailElement.contactBusiAddrPostalCode,this.contactOfficeLocation=p.body.mailElement.contactOfficeLocation&&p.body.mailElement.contactOfficeLocation!==""?p.body.mailElement.contactOfficeLocation:"-",this.contactCompanyName=p.body.mailElement.contactCompanyName&&p.body.mailElement.contactCompanyName!==""?p.body.mailElement.contactCompanyName:"-",this.contactJobTitle=p.body.mailElement.contactJobTitle&&p.body.mailElement.contactJobTitle!==""?p.body.mailElement.contactJobTitle:"-",this.contactDepartment=p.body.mailElement.contactDepartment&&p.body.mailElement.contactDepartment!==""?p.body.mailElement.contactDepartment:"-",this.contactBirthday=p.body.mailElement.contactBirthday&&p.body.mailElement.contactBirthday!==""?p.body.mailElement.contactBirthday:"-",console.log("birrr : "+this.contactBirthday),this.contactHomePhones=p.body.mailElement.contactHomePhones&&p.body.mailElement.contactHomePhones!==""?p.body.mailElement.contactHomePhones:"-",this.contactBusinessPhones=p.body.mailElement.contactBusinessPhones&&p.body.mailElement.contactBusinessPhones!==""?p.body.mailElement.contactBusinessPhones:"-",this.contactWebSite=p.body.mailElement.contactWebSite&&p.body.mailElement.contactWebSite!==""?p.body.mailElement.contactWebSite:"-";let E=[p.body.mailElement.contactBusiAddrStreet,p.body.mailElement.contactBusiAddrCity,p.body.mailElement.contactBusiAddrState,p.body.mailElement.contactBusiAddrCountry,p.body.mailElement.contactBusiAddrPostalCode];this.combinedBusinessAddress=E.filter(M=>M&&M.trim()!=="").join(", "),this.combinedBusinessAddress=this.combinedBusinessAddress||"-",this.truncatedBusinessAddress=this.combinedBusinessAddress.length>20?this.combinedBusinessAddress.substring(0,20)+"(...)":this.combinedBusinessAddress;let P=[p.body.mailElement.contactAddrStreet,p.body.mailElement.contactAddrCity,p.body.mailElement.contactAddrState,p.body.mailElement.contactAddrCountry,p.body.mailElement.contactAddrPostalCode];this.combinedHomeAddress=P.filter(M=>M&&M.trim()!=="").join(", "),this.combinedHomeAddress=this.combinedHomeAddress||"-",this.truncatedHomeAddress=this.combinedHomeAddress.length>20?this.combinedHomeAddress.substring(0,20)+"(...)":this.combinedHomeAddress;let D=[this.contactTitle,this.contactFirstName,this.contactMiddleName,this.contactLastName,this.contactSuffix].filter(M=>M&&M.trim()!=="");this.fullCombinedName=D.join(" "),this.truncatedCombinedName=this.fullCombinedName.length>20?this.fullCombinedName.substring(0,20)+"...":this.fullCombinedName}this.cdr.detectChanges()}else this.showNotAvailable=!0,this.showMailView=!1,this.showContactsView=!1,this.showCalendarView=!1,this.showTasksView=!1},p=>{switch(console.error("Error from viewOutlook11: ",p),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})}replaceAnchorTags(e){return e.replace(/<a(.*?)>/g,'<a$1 target="_blank">')}enableMultiSelect(){this.isMultiSelectEnabled=!this.isMultiSelectEnabled}addToCartFinal(){let e=this.foundMailsCS.filter(c=>c.isChecked),n=e.filter(c=>!this.isBackupIdExists(c.backupId));if(this.addedElementsUpdated.length+n.length>this.maxItemsAllowedInPstExportWhileSearch){this.toastr.error(this.TranslateService.instant("You have selected more than the maximum allowed number of individual items for export. The current limit is {{maxItemsAllowedInPstExportWhileSearch}}.To continue, please either refine your search to select a smaller set of items or choose to export all search results.",{maxItemsAllowedInPstExportWhileSearch:this.maxItemsAllowedInPstExportWhileSearch}),this.TranslateService.instant("Error"));return}if(e.length>0){let c=e.filter(p=>!this.isBackupIdExists(p.backupId));if(c.length>0){this.addedElementsUpdated.push(...c);let p=c.map(b=>b.subject);this.addedElements=p,this.addedElementsCount=this.addedElementsUpdated.length}else this.toastr.error(this.TranslateService.instant("Item(s) already added."),this.TranslateService.instant("Error"));this.clearSelection(),this.isSelectAll=!1,console.log("this.addedElementsUpdated : "+JSON.stringify(this.addedElementsUpdated)),this.updateAddToCartButtonVisibility()}}clearSelection(){this.isSelectAll=!1,this.foundMailsCS.forEach(e=>e.isChecked=!1),this.cdr.detectChanges()}isBackupIdExists(e){return this.addedElementsUpdated.some(n=>n.backupId===e)}toggleSelectAll(){this.foundMailsCS.forEach(e=>{e.disabled||(e.isChecked=this.isSelectAll)}),this.updateAddToCartButtonVisibility()}updateAddToCartButtonVisibility(){return this.foundMailsCS.some(n=>n.isChecked)}itemSelect(){let e=this.foundMailsCS.length,n=this.foundMailsCS.filter(i=>i.isChecked).length;this.isSelectAll=n===e,this.updateAddToCartButtonVisibility()}removeAll(){this.foundMailsCS.forEach(e=>e.isChecked=!1),this.addedElements=[],this.addedElementsUpdated=[],this.addedElementsCount=0,this.isSelectAll=!1,this.isMultiSelectEnabled=!this.isMultiSelectEnabled}removeItem(e,n,i,r){this.addedElementsUpdated=this.addedElementsUpdated.filter(c=>c.backupId!==i),this.addedElementsCount=this.addedElementsUpdated.length,this.cdr.detectChanges()}downloadMail(e,n,i,r){if(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),this.product?.downloadsConfigurations?.unified){this.isViewFile=!1,this.assetManagementService.downloadGsuite(i,n,this.sharedService.getDataByKey("userName"),"EML",this.product.dataManagementKey||this.product.key,!1,{downloadId:this.downloadId,getSignedURLFromId:this.getSignedURLFromId}).subscribe(c=>{console.log("res from downloadGmail : "+JSON.stringify(c)),console.log("res from downloadGmail : "+JSON.stringify(c.body)),this.cdr.detectChanges()},c=>{switch(console.error("Error from downloadGsuite: ",c),console.error("Error status: ",c.status),console.log("ID : "+c.error.text),c.status){case 200:console.error("Bad Request: ",c.message),this.downloadId=c.error.text;let p=0,b=5;this.intervalId=setInterval(()=>{this.getSignedURLFromId(),p++,p>=b&&(clearInterval(this.intervalId),console.log("Interval expired after 10 seconds"))},2e3);break;case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 412:console.error("Error code 412: ",c.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",c.message);break;case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.message);break}});return}this.apiService.downloadMail(e,n).subscribe(c=>{console.log("came inside success block+++++"),this.cdr.detectChanges()},c=>{if(console.error("Error from downloadMail++++++: ",c.status),c.status=="200"){let p="https://",b=this.configService.baseFolder,k="/BluKryptBuilder/cloud/",E=this.configService.cloudName,P=this.authService.Token,D=this.sharedService.getDataByKey("userName"),M=`${p}${b}${k}${E}/portal/download/files/?token=${P}&loginUserName=${D}&isSync=false&backupID=${n}&userName=${this.base64Encode(e)}&checkStatus=false`;window.open(M,"_self")}switch(c.status){case 400:console.error("Bad Request: ",c.message);break;case 401:console.error("Unauthorized: ",c.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",c.message);break;case 404:console.error("Not Found: ",c.message);break;case 412:console.error("Error code 412: ",c.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:case 503:console.error("Internal Server Error: ",c.message);break;default:console.error("Unknown Error: ",c.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(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")):(this.displayDownloadPststyleG="block",this.toastr.success(this.TranslateService.instant("Your request has been queued. Please check Downloads page to get the file after some time."),this.TranslateService.instant("Info"))),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail(this.product.dataManagementKey||this.product.key||this.productTypeContentSearch,n)},1e4),this.cdr.detectChanges()}triggerGSuiteProgress(e,n=!1){n?this.toastr.success("Restore has been queued.","Info"):(this.toastr.success("Your request has been queued. Please check Downloads page to get the file after some time.","Info"),this.displayDownloadPststyleG="block"),this.progressG=[],this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressGmail(this.product.dataManagementKey||this.product.key||this.productTypeContentSearch,n)},1e4),this.cdr.detectChanges()}getDownloadPstEventsProgressGmail(e,n=!1){this.assetManagementService.getRestoreEventsProgressGmail(n?this.currentDeviceUUIDCS:this.currentDeviceUUID||"Global_Search_Microsoft Exchange",this.downloadId,this.product.dataManagementKey||this.product.key||e).subscribe(i=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(i.body)),i&&i.body&&([200,206].includes(i.status)&&i.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=i.body.restoreProgressEventsElement.batchId,this.progressG=i.body.restoreProgressEventsElement),(i.status=="202"||i.status=="204")&&(n?(this.showRestoreSettingsR=!0,this.displayRestoreStyleR=!1,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success"))):(this.displayDownloadPststyleG="none",this.toastr.success(this.TranslateService.instant("Please check Downloads page to get the file"),this.TranslateService.instant("Success"))),this.intervalIdG&&clearInterval(this.intervalIdG)))},i=>{switch(console.error("Error from getDownloadPstEventsProgress: ",i),console.error("Error status: ",i.status),i.status){case 400:console.error("Bad Request: ",i.message);break;case 401:console.error("Unauthorized: ",i.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",i.message);break;case 404:console.error("Not Found: ",i.message);break;case 412:console.error("Error code 412: ",i.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",i.message);break;case 503:console.error("Internal Server Error: ",i.message);break;default:console.error("Unknown Error: ",i.message);break}})}exportSelectedAsPstG(){if(this.displayPststyleG="none",this.pstFileNameG.trim()==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("Fail!!!"));return}if(this.product?.downloadsConfigurations?.unified){let e=this.getPstBatchDetailElements();this.currentDeviceUUID=e[0].deviceUUID,this.assetManagementService.retriveListOfGmail(this.currentDeviceUUID,e,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()).subscribe(n=>this.triggerGmailProgress,n=>{switch(console.error("Error from downloadGsuite: ",n),console.error("Error status: ",n.status),console.log("ID : "+n.error.text),n.status){case 200:console.error("Bad Request: ",n.message),this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 447:this.toastr.info(this.TranslateService.instant("Changes were not saved.  The User is under Legal hold. Please contact your Administrator."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}});return}this.assetManagementService.exportSelectedAsPstG(this.getPstBatchDetailElements()).subscribe(e=>{this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",console.log("batchId : "+e.headers.get("batchId")),this.batchIdG=e.headers.get("batchId")||"",this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(n=>{console.log("res from initiateRestore : "+JSON.stringify(n)),console.log("res from initiateRestore : "+JSON.stringify(n.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},n=>{switch(console.error("Error from initiateRestore: ",n),console.error("Error status: ",n.status),n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message);break;case 412:console.error("Error code 412: ",n.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",n.message);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}}),this.cdr.detectChanges()},e=>{switch(console.error("Error from initiateRestore: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}getDownloadPstEventsProgressG(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from getDownloadPstEventsProgress : "+JSON.stringify(e.body)),e&&e.body&&(e.status=="200"&&e.body.restoreProgressEventsElement?.batchId&&(this.batchIdG=e.body.restoreProgressEventsElement.batchId,this.progressG=e.body.restoreProgressEventsElement),(e.status=="202"||e.status=="204")&&(this.displayDownloadPststyleG="none",this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.intervalIdG&&clearInterval(this.intervalIdG)))},e=>{switch(console.error("Error from getDownloadPstEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}closeDownloadPstPopupG(){this.displayDownloadPstRunBckConfirmstyleG="block"}cancelDownloadAsPstG(){this.displayDownloadPstConfirmstyleG="block"}closeDownloadPstConfirmPopupG(){this.displayDownloadPstConfirmstyleG="none"}closeDownloadPstRunBkpPopupG(){this.displayDownloadPstRunBckConfirmstyleG="none"}cancelDownloadAsPstRunBkpG(){this.displayDownloadPststyleG="none",this.displayDownloadPstRunBckConfirmstyleG="none",this.intervalIdG&&clearInterval(this.intervalIdG),this.cdr.detectChanges()}cancelDownloadAsPstConfirmG(){this.displayDownloadPststyleG="none",this.displayDownloadPstConfirmstyleG="none",this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUID,this.batchIdG).subscribe(e=>{console.log("res from cancelDownloadAsPst : "+JSON.stringify(e)),console.log("res from cancelDownloadAsPst : "+JSON.stringify(e.body)),this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdG&&clearInterval(this.intervalIdG)},e=>{switch(console.error("Error from cancelDownloadAsPst: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}onDeviceChangeCS(e){let n=e.target,i=n.selectedOptions[0],r=n.value,c=i.id;this.selectedDeviceIdCS=c}onDeviceChangeR(e){this.selectedDeviceUUIDR=e}exportCompleteMailboxAsPstG(){this.displayPststyleG="block",this.exportCompleteMailboxG=!0,this.pstFileNameG=atob(this.sharedService.getDataByKey("userName"))}exportCompleteMailboxAsPstTriggerG(){if(console.log("exportCompleteMailboxAsPst!!!!!"),this.displayPststyleG="none",this.pstFileNameG.trim()==""){this.toastr.error(this.TranslateService.instant("Please specify a PST name."),this.TranslateService.instant("Fail!!!"));return}console.log("currentDeviceUUID : "+this.currentDeviceUUID),console.log("pstFileName : "+this.pstFileNameG),console.log("currentMailBackupId : "+this.currentMailBackupId),console.log("currentMailUser : "+this.foundMailsCS[0].user),console.log("contentSearchText : "+this.contentSearchText),this.items.forEach((n,i)=>{this.backupIdsListG.push(n.backupId)}),this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID,console.log("backupIdsList : "+this.backupIdsListG),this.selectedValueCS==""||this.selectedValueCS==="All Users"||this.selectedValueCS==null?(this.deviceId="",this.currentDeviceUUID=""):(this.deviceId=this.devicesCS[0].deviceId,this.currentDeviceUUID=this.foundMailsCS[0].deviceUUID),this.currentDeviceUUID=this.product?.downloadsConfigurations?.unified?this.currentDeviceUUID:this.foundMailsCS[0].deviceUUID,console.log("deviceId : "+this.deviceId),(this.product?.downloadsConfigurations?.unified?this.assetManagementService.getContentSearchUnified(this.currentDeviceUUID,this.contentSearchText,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,!1,this.pstFileNameG.trim()):this.apiService.getContentSearch(this.productTypeContentSearch,this.foundMailsCS[0].userName,this.foundMailsCS[0].devicename,this.contentSearchText,this.deviceId,"downloadAsPst",this.configService.componentName,this.categoryContentSearch)).subscribe(n=>{var i=JSON.stringify(n.body),r=JSON.parse(i);let c=[];this.batchIdG=n.body.data.batchId,console.log("batchIdGG : "+this.batchIdG),this.cdr.detectChanges(),this.progressG=[],this.assetManagementService.exportFolderAsPstGlobal(this.foundMailsCS[0].deviceUUID,this.pstFileNameG.trim(),"","",this.foundMailsCS[0].user,!1,this.batchIdG).subscribe(p=>{console.log("res from initiateRestore : "+JSON.stringify(p)),console.log("res from initiateRestore : "+JSON.stringify(p.body)),this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("Info")),this.displayDownloadPststyleG="block",this.intervalIdG=setInterval(()=>{this.getDownloadPstEventsProgressG()},5e3),this.cdr.detectChanges()},p=>{switch(console.error("Error from initiateRestore: ",p),console.error("Error status: ",p.status),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 412:console.error("Error code 412: ",p.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 417:this.toastr.error(this.TranslateService.instant("Download event already exists."),this.TranslateService.instant("Error")),console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break}})},n=>{switch(console.error("Error from getFilesSearch: ",n),n.status){case 200:this.downloadId=n.error.text,this.triggerGmailProgress();break;case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",n.message);break;case 404:console.error("Not Found: ",n.message),this.toastr.info(this.TranslateService.instant("No Meta data Configuration found."),this.TranslateService.instant("Info"));break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break}})}onRestoreClickR(e,n,i,r,c="",p){p.preventDefault(),p.stopPropagation(),p.stopImmediatePropagation();debugger;let b=[{label:"",options:[{value:this.currentMailUser||c,label:this.currentMailUser||c}]}];this.deviceUsersListR=b,this.selectedValueR=this.currentMailUser||c,this.value18R=this.currentMailUser||c,this.currentFileName=r,this.currentDeviceUUIDCS=this.selectedDeviceUUIDR=e,this.currentFileBackupIdR=n,this.currentFilePathR=i,this.inplaceRestoreR=!1,this.dateBeforeR=!1,this.restoreDeletedFilesByRestoreR=!1,this.progressR=[],this.displayRestoreStyleR=!0,!this.product?.downloadsConfigurations?.unified&&(this.getRestoreEventsProgressR(),this.intervalIdR=setInterval(()=>{this.getRestoreEventsProgressR()},5e3),this.cdr.detectChanges())}closeRestorePopupR(){this.displayRestoreStyleR=!1,this.destinationIdPath="",this.destinationId="",this.destinationPathR="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"&&(this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath),this.deviceUsersList=[{label:"",options:[]}],this.selectedValue=null,this.intervalIdR&&clearInterval(this.intervalIdR),this.cdr.detectChanges()}onSearchR(e){let n=e.search||"";console.log("searchTerm : "+n),this.deviceUsersListR=[{label:"",options:[]}],this.selectedValue=null,this.assetManagementService.getUserWithDevice(e.search).subscribe(i=>{if(i.body&&i.body.searchUserElementList){let r=i.body.searchUserElementList.map(c=>({value:c.userName,label:c.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.selectedDeviceUUIDR="",this.assetManagementService.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(c=>c.blocked===!1&&c.osType==r).map(c=>({deviceName:c.deviceName,deviceUUID:c.deviceUUID,deviceId:c.deviceId,osType:c.osType,decoupled:c.decoupled})),console.log("this.devicesR[0] : "+JSON.stringify(this.devicesR[0])),this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1,this.selectedDeviceUUIDR=this.devicesR[0].deviceUUID}else this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},i=>{console.error("Error during search: ",i)})}updateNowR(e){this.assetManagementService.getUserDevice(e).subscribe(n=>{if(console.log("res : "+JSON.stringify(n)),n.body?.data?.devices){let i="OUTLOOK";(this.productTypeContentSearch=="Google Drive"||this.productTypeContentSearch=="Gmail")&&(i=this.productTypeContentSearch),this.devicesR=n.body.data.devices.filter(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:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}],this.devicesR[0].deviceUUID!=this.currentDeviceUUIDCS?this.deviceUUIDCheck=!0:this.deviceUUIDCheck=!1;(!this.devicesR||this.devicesR.length===0)&&(this.devicesR=[{deviceName:this.TranslateService.instant("No Asset found"),deviceUUID:"",deviceId:"",osType:"",decoupled:""}])},n=>{console.error("Error during search: ",n)})}toggleDateBeforeR(){this.dateBeforeR||(this.myTimeBeforeR=new Date,this.myDateBeforeR=new Date)}browseR(e=!1){if(this.browsePathR==""&&this.destinationPathR&&this.product?.downloadsConfigurations?.unified&&!e){this.browsePathR=this.destinationPathR,this.browsePathId=this.destinationIdPath;let r=this.browsePathId?.split("/")||[];this.selectedBrowseItemId=this.destinationId||r.length&&r[r.length-1]||""}this.displayBrowseStyleR="block",this.loadingR=!0,this.browseItemsR=[];let n=this.product?.downloadsConfigurations?.unified?this.assetManagementService.getBrowsePathGsuite(this.selectedDeviceUUIDR,this.product.dataManagementKey||this.product.key,this.selectedBrowseItemId,void 0,this.categoryContentSearch==="todo"):this.assetManagementService.browseExchange(this.selectedDeviceUUIDR,this.browsePathR),i=this.deviceType;n.subscribe(r=>{this.loadingR=!1,r.body?.stringList?this.browseItemsR=r.body.stringList:Array.isArray(r.body)&&r.body.length>0?this.product?.downloadsConfigurations?.restore?.browsePathPassId?this.browseItemsR=r.body:this.browseItemsR=r.body.map(c=>c.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(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",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="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.displayBrowseStyleR="none"}usePathR(){this.newFolderR="",this.displayBrowseStyleR="none",this.productTypeContentSearch=="Gmail"&&this.selectedBrowseItemR?(this.destinationPathR=this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.productTypeContentSearch=="Google Drive"&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR="My Drive/"+this.selectedBrowseItemR,this.destinationIdPath=this.selectedBrowseItemId):this.product?.downloadsConfigurations?.unified&&this.browsePathR==""&&this.selectedBrowseItemR?(this.destinationPathR=this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):this.selectedBrowseItemR!=""?(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR+"/"+this.selectedBrowseItemR,this.destinationIdPath=this.browsePathId+"/"+this.selectedBrowseItemId):(this.destinationPathR=(this.productTypeContentSearch=="Google Drive"&&"My Drive/"||"")+this.browsePathR,this.destinationIdPath=this.browsePathId),this.destinationId=this.selectedBrowseItemId}addNewFolderR(e){e&&e.trim()!==""?(this.browseItemsR.push(e),this.selectedBrowseItemR=e,this.newFolderR="",this.cdr.detectChanges(),console.log("New folder added: ",e),console.log("Selected folder: ",this.selectedBrowseItemR)):this.toastr.info(this.TranslateService.instant("Folder name cannot be empty."))}onSingleClickR(e,n){e!=="No path available"&&(this.selectedBrowseItemR=e,n&&(this.selectedBrowseItemId=n),console.log("Selected item:",this.selectedBrowseItemR)),console.log("Selected item:",this.selectedBrowseItemR)}onDoubleClickR(e,n,i){if(this.categoryContentSearch!=="todo"){if(!this.product?.downloadsConfigurations?.restore?.browsePathHeirarchyWithoutFolderId&&typeof i>"u"){this.onSingleClickR(n),e.currentTarget.classList.add("double-click-not-allowed");return}n!=="No path available"&&(i&&(this.selectedBrowseItemId=i),this.addToCombinedValueR(n,i),this.selectedBrowseItemR="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root")}}addToCombinedValueR(e,n){this.browsePathR?(this.browsePathR+=`/${e}`,this.browsePathId+=`/${n}`):(this.browsePathR=e,this.browsePathId=n),console.log("Combined value:",this.browsePathR),this.browseR()}backBrowseR(){let e=this.browsePathR.split("/"),n=this.browsePathId?.split("/")||[];e.length>1?(e.pop(),this.browsePathR=e.join("/")):this.browsePathR="",n.length>1?(n.pop(),this.selectedBrowseItemId=n.length>0?n[n.length-1]:typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.product?.downloadsConfigurations?.restore?.rootBrowsePath:"root",this.browsePathId=n.join("/")):(typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.browsePathId=""),console.log("Updated browsePath: ",this.browsePathR),this.browseR(!0)}closeRestorePopupForRestoreR(){this.displayRestoreSizeStyleR="none",this.showRestoreSettingsR=!0,this.destinationPathR="",this.destinationIdPath="",this.destinationId="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR)}closeRestoreHandler(){this.displayRestoreStyleR=!1}getRestoreEventsProgressR(){this.assetManagementService.getRestoreEventsProgress(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from getRestoreEventsProgress : "+JSON.stringify(e)),console.log("res from getRestoreEventsProgress : "+JSON.stringify(e.body)),e&&e.body?(e.status=="200"&&(this.showRestoreSettingsR=!1,e.body.restoreProgressEventsElement?.batchId&&(this.batchIdR=e.body.restoreProgressEventsElement.batchId,this.progressR=e.body.restoreProgressEventsElement)),(e.status=="202"||e.status=="204")&&(this.showRestoreSettingsR=!0,this.displayRestoreStyleR=!1,this.toastr.success(this.TranslateService.instant("Restore completed successfully."),this.TranslateService.instant("Success")),this.destinationPathR="",this.destinationId="",this.destinationIdPath="",this.browsePathR="",this.browsePathId="",typeof this.product?.downloadsConfigurations?.restore?.rootBrowsePath<"u"?this.selectedBrowseItemId=this.product?.downloadsConfigurations?.restore?.rootBrowsePath:this.selectedBrowseItemId="root",this.intervalIdR&&clearInterval(this.intervalIdR))):this.showRestoreSettingsR=!0},e=>{switch(console.error("Error from getRestoreEventsProgress: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}cancelRunningRestoreR(){this.displayDeleteRestoreStyleR="block"}closeDeleteRestorePopupR(){this.displayDeleteRestoreStyleR="none"}deleteRestoreEventR(){this.displayDeleteRestoreStyleR="none",this.assetManagementService.deleteRestoreEvent(this.currentDeviceUUIDCS,this.batchIdR).subscribe(e=>{console.log("res from deleteRestoreEvent : "+JSON.stringify(e)),console.log("res from deleteRestoreEvent : "+JSON.stringify(e.body)),this.showRestoreSettingsR=!0,this.toastr.success(this.TranslateService.instant("Queued Restore has been removed."),this.TranslateService.instant("Info")),this.intervalIdR&&clearInterval(this.intervalIdR)},e=>{switch(console.error("Error from deleteRestoreEvent: ",e),console.error("Error status: ",e.status),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 412:console.error("Error code 412: ",e.message),this.toastr.error(this.TranslateService.instant("Cannot delete filter, already mapped to policy."));break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}})}initiateRestoreR(){let n=new Date(this.myDateBeforeR).getTime();if(this.restoreDataBeforeR=n.toString(),this.dateBeforeR){let r=new Date(this.myDateBeforeR);r.setHours(this.myTimeBeforeR.getHours()),r.setMinutes(this.myTimeBeforeR.getMinutes()),r.setSeconds(this.myTimeBeforeR.getSeconds());let c=r.getTime();this.restoreDataBeforeR=c.toString(),console.log("Combined Timestamp in Milliseconds:",this.restoreDataBeforeR)}let i=!1;if(this.selectedDeviceUUIDR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Device."),this.TranslateService.instant("Fail!!!"));return}if(this.inplaceRestoreR){if(this.currentDeviceUUIDCS!=this.selectedDeviceUUIDR){this.toastr.error(this.TranslateService.instant("Inplace restore cannot be enabled for other destination assets."),this.TranslateService.instant("Fail!!!"));return}}else if(this.destinationPathR==""){this.toastr.error(this.TranslateService.instant("Please select a Destination Path."),this.TranslateService.instant("Fail!!!"));return}if(console.log("currentDeviceUUID : "+this.currentDeviceUUIDCS),console.log("selectedDeviceUUID : "+this.selectedDeviceUUID),console.log("destinationPath : "+this.destinationPathR),console.log("currentFilePath : "+this.currentFilePathR),console.log("currentFileBackupId : "+this.currentFileBackupIdR),console.log("isFolder : "+i),console.log("inplaceRestore : "+this.inplaceRestoreR),console.log("restoreDataBefore : "+this.restoreDataBeforeR),console.log("restoreDeletedFilesByRestore : "+this.restoreDeletedFilesByRestoreR),this.product?.downloadsConfigurations?.unified){this.assetManagementService.initiateRestoreGsuite(this.currentDeviceUUIDCS,this.currentFileBackupIdR,this.sharedService.getDataByKey("userName"),this.product.dataManagementKey||this.product.key,this.selectedDeviceUUIDR,this.destinationPathR,this.destinationId,i,this.inplaceRestoreR,this.restoreDataBefore,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR,this.currentFilePathR,this.currentFileName).subscribe(this.productTypeContentSearch==="Google Drive"?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:console.error("Error code 417: ",r.message),this.toastr.error("One Restore event already exists.");break;case 447:this.toastr.info("Changes were not saved.  The User is under Legal hold. Please contact your Administrator.","Info");break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}});return}this.assetManagementService.initiateRestore(this.currentDeviceUUIDCS,this.selectedDeviceUUIDR,this.destinationPathR,this.currentFilePathR,this.currentFileBackupIdR,i,this.inplaceRestoreR,this.restoreDataBeforeR,this.restoreDeletedFilesByRestoreR,this.restoreAllVersionsR,this.suspendBackupR,this.restoreLinksR).subscribe(r=>{console.log("res from initiateRestore : "+JSON.stringify(r)),console.log("res from initiateRestore : "+JSON.stringify(r.body)),this.showRestoreSettingsR=!1,this.toastr.success(this.TranslateService.instant("Restore has been queued."),this.TranslateService.instant("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(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 412:console.error("Error code 412: ",r.message),this.toastr.error(this.TranslateService.instant("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="-",this.taskImportance=""}togglePanel(){this.isExpanded=!this.isExpanded,this.isExpanded?this.product?.downloadsConfigurations?.unified?this.parseContentSearchMailUnified():this.parseContentSearchMail():this.product?.downloadsConfigurations?.unified?this.reconstructContentSearchMailUnified():this.reconstructContentSearchMail()}parseContentSearchMailUnified(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|"[^"]*"|'[^']*'|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],c=n[2];c.startsWith("(")&&c.endsWith(")")&&(c=c.slice(1,-1)),i[r].push(c)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMailUnified(){let e=[];if(this.fromId=this.fromId.trim()){let n=this.fromId.split(",");e.push(`from:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.toId=this.toId.trim()){let n=this.toId.split(",");e.push(`to:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.ccId=this.ccId.trim()){let n=this.ccId.split(",");e.push(`cc:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}if(this.bccId=this.bccId.trim()){let n=this.bccId.split(",");e.push(`bcc:${n.length>1?"(":""}${n.map(i=>i.trim()).join(",")}${n.length>1?")":""}`)}(this.subjectId=this.subjectId.trim())&&e.push(`subject:(${this.subjectId})`),(this.bodyId=this.bodyId.trim())&&e.push(`body:(${this.bodyId})`),(this.keywordsId=this.keywordsId.trim())&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}parseEmailString(e){let i=e.split(/\s+/),r=[],c=[],p=[],b=[],k=[],E=[],P=[];for(let M=0;M<i.length;M++){let O=i[M];if(O.startsWith("from:"))r.push(O.replace("from:","").trim());else if(O.startsWith("to:"))c.push(O.replace("to:","").trim());else if(O.startsWith("cc:"))p.push(O.replace("cc:","").trim());else if(O.startsWith("bcc:"))b.push(O.replace("bcc:","").trim());else if(O.startsWith("subject:")){let U=O.replace("subject:","").trim();for(;!(U.startsWith("(")&&U.endsWith(")"))&&M+1<i.length&&!i[M+1].startsWith("body:")&&!i[M+1].startsWith("subject:");)M++,U+=" "+i[M];k.push(U.replace(/^\(|\)$/g,""))}else if(O.startsWith("body:")){let U=O.replace("body:","").trim();for(;!(U.startsWith("(")&&U.endsWith(")"))&&M+1<i.length&&!i[M+1].startsWith("body:")&&!i[M+1].startsWith("subject:");)M++,U+=" "+i[M];E.push(U.replace(/^\(|\)$/g,""))}else P.push(O)}return console.log("fromArray : "+r.join(",")),console.log("toArray : "+c.join(",")),console.log("ccArray : "+p.join(",")),console.log("bccArray : "+b.join(",")),console.log("subjectArray : "+k.join(",")),console.log("bodyArray : "+E.join(",")),console.log("keywordsArray : "+P.join("")),console.log("fromArray length : : "+r.length),[`from:${r.join(",")}`,`to:${c.join(",")}`,`bcc:${b.join(",")}`,`cc:${p.join(",")}`,`subject:${k.join(" ")}`,`recFromDate:${this.formatDateFromDateObject(this.myDateBefore)}`,`recToDate:${this.formatDateFromDateObject(this.myDateAfter)}`,"hasAttachments:false",`keywords:${P.join(" ")}`,`body:${E.join(",")}`].join("#*#")}parseContentSearchMail(){let e=/\b(from|to|cc|bcc|subject|body):(\([^)]+\)|\S+)/g,n;this.fromId="",this.toId="",this.ccId="",this.bccId="",this.subjectId="",this.bodyId="",this.keywordsId="";let i={from:[],to:[],cc:[],bcc:[],subject:[],body:[]};for(;(n=e.exec(this.contentSearchMail))!==null;){let r=n[1],c=n[2];c.startsWith("(")&&c.endsWith(")")&&(c=c.slice(1,-1)),i[r].push(c)}this.fromId=i.from.join(", "),this.toId=i.to.join(", "),this.ccId=i.cc.join(", "),this.bccId=i.bcc.join(", "),this.subjectId=i.subject.join(", "),this.bodyId=i.body.join(", "),this.keywordsId=this.contentSearchMail.replace(e,"").trim()}reconstructContentSearchMail(){let e=[];this.fromId&&e.push(`from:${this.fromId.split(",").map(n=>n.trim()).join(",")}`),this.toId&&e.push(`to:${this.toId.split(",").map(n=>n.trim()).join(",")}`),this.ccId&&e.push(`cc:${this.ccId.split(",").map(n=>n.trim()).join(",")}`),this.bccId&&e.push(`bcc:${this.bccId.split(",").map(n=>n.trim()).join(",")}`),this.subjectId&&e.push(`subject:(${this.subjectId})`),this.bodyId&&e.push(`body:(${this.bodyId})`),this.keywordsId&&e.push(this.keywordsId),this.contentSearchMail=e.join(" ")}showHideSecurityCallout(e){this.showSecurityCallout=e}calenderNavigate(e){e.type}closeCalenderEventDetails(){this.showCalendarView=!1,this.cdr.detectChanges()}scheduleNext(e,n,i,r){if(e>=i){this.intervalId=null,this.showloaderAtPreview=!1,this.showNotAvailable=!0,this.showMailView=!1,console.log("Interval expired after 10 seconds");return}this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.intervalId=setTimeout(()=>{r(),e++,n=n*1.5,this.scheduleNext(e,n,i,r)},n)}static{this.\u0275fac=function(n){return new(n||t)(S(J),S(me),S(re),S(W),S(be),S(Pe),S(ye),S(ot),S(Ee),S(ni),S(_e),S(Me),S(oe),S(fe),S(Ct),S(St))}}static{this.\u0275cmp=L({type:t,selectors:[["app-search-overlay"]],viewQuery:function(n,i){if(n&1&&(q(Yl,5),q(Kl,5),q(Ql,5),q(Xl,5),q(ec,5),q(tc,5),q(ic,5),q(nc,5),q(rc,5),q(oc,5)),n&2){let r;z(r=j())&&(i.deviceDropdown=r.first),z(r=j())&&(i.deviceDropdownCS=r.first),z(r=j())&&(i.iframe=r.first),z(r=j())&&(i.userDeviceSearch=r.first),z(r=j())&&(i.fileSearch=r.first),z(r=j())&&(i.contentSearch=r.first),z(r=j())&&(i.contentSearchMailInput=r.first),z(r=j())&&(i.deviceDropdownR=r.first),z(r=j())&&(i.calendarIframe=r.first),z(r=j())&&(i.searchInput=r.first)}},outputs:{close:"close"},features:[ee([J,W,Ct,me])],decls:197,vars:157,consts:[["tabContent1","cTabContent"],["userDeviceSearch",""],["fileSearch",""],["pstFileNameInput","ngModel"],["deviceDropdown",""],["deviceDropdownCS",""],["contentSearch",""],["contentSearchMailInput",""],["contentCalendarFrame",""],["contentFrame",""],[1,"overlay"],[1,"overlay-content",2,"overflow-y","auto"],[1,"mb-3"],["cTooltip","Close Search.","cTooltipPlacement","bottom",1,"pull-right",3,"click"],[1,"fa","fa-times-circle",2,"font-size","25px","cursor","pointer"],["variant","tabs","role","tablist"],[3,"ngStyle"],["cNavLink","",3,"click","cTabContent","tabPaneIdx"],[4,"ngIf"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[2,"margin-top","20px"],["cInputGroupText",""],["aria-describedby","userAssetSearchText","aria-label","userAssetSearchText","name","userAssetSearchText","cFormControl","","autofocus","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"col-lg-12",2,"align-items","center","margin-top","20px"],[1,"form-group","col-lg-2"],["for","productTypeFiles"],["cSelect","","name","productTypeFiles","id","productTypeFiles",1,"form-control","productTypeFiles",3,"ngModelChange","change","ngModel","title"],["value","backup",4,"ngIf"],["value","oneDrive",4,"ngIf"],["value","SHAREPOINT",4,"ngIf"],[3,"value"],["class","form-group col-lg-3",4,"ngIf"],["class","form-group col-lg-3 custom-select-wrapper",4,"ngIf"],[1,"col-lg-12",2,"align-items","center","margin-top","10px"],[1,"col-lg-8"],["aria-describedby","filesSearchText","aria-label","filesSearchText","name","filesSearchText","cFormControl","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"col-lg-2"],["type","button",1,"btn","btn-small","btn-primary",3,"click"],["style","overflow: scroll;height: 500px;",4,"ngIf"],["for","productTypeContentSearch"],["cSelect","","name","productTypeContentSearch","id","productTypeContentSearch",1,"form-control","productTypeContentSearch",3,"ngModelChange","change","ngModel","title"],["value","mail",4,"ngIf"],["value","Gmail",4,"ngIf"],["class","form-group col-lg-2",4,"ngIf"],["class","col-lg-12","style","align-items: center;margin-top: 10px;",4,"ngIf"],["class","col-lg-12",4,"ngIf"],[3,"downloadFile","openFileLocation","navigatePage","product","foundFiles","noFilesFound","totalCountGS","productType","userType","contentSearchText","currentDeviceUUID","first","previous","next","last"],["class","col-lg-12","style","height: 60vh;overflow: scroll;",4,"ngIf"],["class","justify-content-end",4,"ngIf"],["style","margin-top: 20px;",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","30% !important",3,"ngStyle"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"form-group"],["for","pstFileNameG"],["type","text","localizedValidate","","name","pstFileNameG","id","pstFileNameG","minlength","3","maxlength","64","pattern","^[a-zA-Z0-9@.\\(\\)\\-_]*$","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["class","text-danger",4,"ngIf"],[1,"modal-footer"],["cButton","","color","primary","variant","outline",3,"click"],["type","button","class","btn btn-success",3,"disabled","click",4,"ngIf"],["id","downloadAsPstG","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","40% !important",3,"ngStyle"],["role","document",1,"modal-dialog","mediumModal"],[1,"header-container"],[1,"col-lg-12"],[1,"table","table-bordered","table-striped"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[3,"currentDeviceUUID","currentDeviceUser","deviceType","currentFilePath","currentFileName","userType","currentFileBackupId","isFileTarget","closeRestoreHandler",4,"ngIf"],[2,"text-align","left"],[1,"row","col-lg-12"],["lg","3",2,"margin","2px"],[1,"card-hover"],[2,"cursor","pointer",3,"click"],[1,"col-lg-2",2,"text-align","center"],["src","./assets/images/avatars/default.jpg","priority","",1,"profileImg",2,"width","1.5rem","height","1.5rem"],[1,"col-lg-10",2,"text-align","left"],["cCardTitle","",3,"title"],["lg","3"],["src","./assets/images/sharePointLogo.svg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["src","./assets/images/avatars/desktop_vector.jpg","priority","",1,"profileImg",2,"width","2.5rem","height","2.5rem"],["value","backup"],["value","oneDrive"],["value","SHAREPOINT"],[3,"value",4,"ngIf"],[1,"form-group","col-lg-3"],["id","selec2-18","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","disabled","ngModel"],["id","selec2-18Site","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","noResultMessage","ngModel"],[1,"form-group","col-lg-3","custom-select-wrapper"],[1,"form-control"],[3,"value",4,"ngFor","ngForOf"],[1,"fa-solid","fa-chevron-down","dropdown-icon"],[2,"overflow","scroll","height","500px"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive"],[1,"text-nowrap","text-truncate",2,"position","sticky","top","0","z-index","100","background-color","#f8f9fa"],[1,"bg-body-tertiary","clickable-header"],[1,"bg-body-tertiary"],[4,"ngFor","ngForOf"],[1,"found-in"],["cButton","","color","success","size","sm",2,"margin-right","10px",3,"click"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],["value","mail"],["value","Gmail"],["for","categoryContentSearch"],["cSelect","","name","categoryContentSearch","id","categoryContentSearch",1,"form-control","categoryContentSearch",3,"ngModelChange","change","ngModel","title"],["value","contacts"],["value","todo"],["value","calendar"],["noResultMessage","No users found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","disabled","ngModel"],["noResultMessage","No sites found","customSearchEnabled","","minCharForSearch","3",3,"ngModelChange","search","update","placeholder","overlay","data","value","ngModel"],[1,"form-control",3,"change"],["aria-describedby","contentSearchText","aria-label","contentSearchText","name","contentSearchText","cFormControl","",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["aria-describedby","contentSearchMail","name","contentSearchMail","id","contentSearchMail","aria-label","Default Folders to Backup","cFormControl","",3,"ngModelChange","keydown.enter","ngModel","placeholder","disabled"],["type","button","class","btn btn-small btn-primary",3,"click",4,"ngIf"],["class","col-lg-2",4,"ngIf"],[1,"fa",3,"ngClass"],[1,"btn","btn-small","btn-primary",3,"click"],["class","row col-lg-12","style","border: 1px solid #062D4D;border-radius: 10px;",4,"ngIf"],[1,"row","col-lg-12",2,"border","1px solid #062D4D","border-radius","10px"],[1,"form-group","col-lg-6"],["for","fromId"],["href","#",1,"hover-link",2,"color","#062D4D","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"note"],["type","text","localizedValidate","","id","fromId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","toId"],["type","text","localizedValidate","","id","toId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","ccId"],["type","text","localizedValidate","","id","ccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bccId"],["type","text","localizedValidate","","id","bccId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","subjectId"],["type","text","localizedValidate","","id","subjectId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","bodyId"],["type","text","localizedValidate","","id","bodyId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["for","keywordsId"],["type","text","localizedValidate","","id","keywordsId",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"col-lg-6","align-items-center","d-flex"],["type","text","bsDatepicker","","placement","top",1,"form-control","mx-2",2,"width","auto",3,"click","keydown","ngModelChange","readonly","ngModel","bsConfig"],[1,"btn","btn-small","btn-primary","pull-right",3,"click"],[1,"col-lg-12",2,"height","60vh","overflow","scroll"],[1,"header-container",2,"display","block"],["class","downloadAsPstGSearchll hover-link","style","margin-right: 10px; margin-left:22px; cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","removeAllGlobal hover-link","style","margin-right: 10px;margin-left:22px;cursor:pointer;color: #062D4D;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearch","style","margin-right: 3%;",3,"click",4,"ngIf"],["class","btn btn-small btn-primary pull-right downloadAsPstGSearchll11","style","margin-right: 3%;",3,"ngClass","click",4,"ngIf"],[1,"col-lg-5",2,"height","50vh","overflow-y","scroll",3,"ngClass"],[1,"fixTableHead"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],["style","border-top: 0px solid #f1f1f1 !important;",4,"ngIf"],[2,"border-top","0px solid #f1f1f1 !important"],["class","btn btn-small btn-primary addToCart",3,"click",4,"ngIf"],[2,"height","50vh","overflow","scroll",3,"ngClass"],[1,"col-lg-7"],[2,"height","50vh","overflow","scroll",3,"ngClass","ngStyle"],[1,"table","table-hover",2,"background","white"],[1,"col-lg-10"],[1,"downloadAsPstGSearchll","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-list"],[1,"removeAllGlobal","hover-link",2,"margin-right","10px","margin-left","22px","cursor","pointer","color","#062D4D",3,"click"],[1,"fa","fa-reorder"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearch",2,"margin-right","3%",3,"click"],[1,"btn","btn-small","btn-primary","pull-right","downloadAsPstGSearchll11",2,"margin-right","3%",3,"click","ngClass"],["type","checkbox",3,"ngModelChange","change","title","ngModel"],[1,"btn","btn-small","btn-primary","addToCart",3,"click"],[3,"selected-rowMail",4,"ngFor","ngForOf"],["style","border-right: none;",4,"ngIf"],["class","col-lg-12","style","font-size:14px !important;border-left: none;",3,"click",4,"ngIf"],["type","checkbox",3,"ngModelChange","change","ngModel"],[2,"border-right","none"],[1,"aplhaC",2,"line-height","28px","text-align","center","display","inline-block","height","28px","width","28px","border-radius","50%","opacity","0.5",3,"ngStyle"],[1,"col-lg-12",2,"font-size","14px !important","border-left","none",3,"click"],["class","folder","style","cursor: pointer; color: #000 !important;text-decoration: none;",4,"ngIf"],["class","folder","style","cursor: pointer; color: #c5bcbc !important; font-style:italic;text-decoration: none;",4,"ngIf"],[1,"folder",2,"cursor","pointer","color","#000 !important","text-decoration","none"],[2,"font-weight","bold"],["class","fa fa-paperclip fa-1x pull-right","style","color: #000 !important; cursor:default;",4,"ngIf"],["class","pull-right","title","Download","style","cursor:pointer;",3,"click",4,"ngIf"],["class","pull-right","title","Restore file","style","margin-right:10px;cursor:pointer;",3,"click",4,"ngIf"],[1,"folder"],[2,"color","#062D4D"],[2,"float","right","color","grey",3,"innerHTML"],[1,"found-in",2,"word-break","break-all","font-size","11px"],[2,"word-break","break-word"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#000 !important","cursor","default"],["title","Download",1,"pull-right",2,"cursor","pointer",3,"click"],[1,"fa","fa-download"],["title","Restore file",1,"pull-right",2,"margin-right","10px","cursor","pointer",3,"click"],[1,"fa","fa-history"],[3,"innerHTML"],[1,"folder",2,"cursor","pointer","color","#c5bcbc !important","font-style","italic","text-decoration","none"],["class","fa fa-paperclip fa-1x pull-right","style","color: #c5bcbc !important;",4,"ngIf"],[1,"fa","fa-paperclip","fa-1x","pull-right",2,"color","#c5bcbc !important"],[1,"fa","fa-id-card",2,"font-size","21px"],[1,"folder",2,"cursor","pointer","text-decoration","none"],[1,"fa-solid","fa-check"],[3,"ngClass",4,"ngIf"],["class","card-body-center",4,"ngIf"],[3,"navigator","metaData","calenderEvents","calendarView","breadcrumbItems"],[3,"ngClass"],[1,"panel",2,"overflow-x","scroll","overflow-y","scroll"],[1,"panel-heading"],[1,"panel-body"],[1,"calendarSubject1"],["class","from1",4,"ngIf"],["class","to1",4,"ngIf"],["class","cc1",4,"ngIf"],["class","bcc1",4,"ngIf"],["class","attachments1",4,"ngIf"],["class","calender",4,"ngIf"],[1,"contentCalendarOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentCalendarOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],["class","alert align-items-center callout",4,"ngIf"],[1,"from1"],[2,"float","right"],[1,"to1"],[1,"cc1"],[1,"bcc1"],[1,"attachments1"],[1,"dataa1"],["style","margin-right:5px; border: 1px solid #062D4D; padding:2px; border-radius:5px;",4,"ngFor","ngForOf"],[2,"margin-right","5px","border","1px solid #062D4D","padding","2px","border-radius","5px"],[1,"calender"],[1,"fa","fa-clock-o"],[1,"alert","align-items-center","callout"],["aria-hidden","true",1,"fa","fa-exclamation-triangle","me-2",2,"font-size","1rem","color","#856404"],[1,"card-body-center"],["id","panelMail",1,"panel","panelMail",2,"overflow-x","scroll","overflow-y","scroll"],["id","mailpanelBody",1,"panel-body"],[1,"subject1"],[1,"contentOutlook1Div"],["sandbox","allow-same-origin allow-scripts allow-forms","frameBorder","0",1,"contentOutlook1",2,"width","100%","height","500px",3,"mouseout","mouseover"],[1,"phone-notch-box","row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[1,"row","col-lg-12",2,"margin-bottom","10px"],[1,"col-lg-3"],["shape","rounded-1","textColor","primary","alt","User avatar",3,"size","src"],[1,"col-lg-9"],[1,"contactName",2,"font-size","30px","color","#062D4D","font-weight","bold"],[2,"cursor","pointer",3,"title"],["class","copy-icon",3,"title","click",4,"ngIf"],[2,"font-size","14px","color","#062D4D"],[1,"contactJobTitle",3,"mouseenter","mouseleave","title"],[1,"contactDepartment",3,"mouseenter","mouseleave","title"],[1,"row","col-lg-12",2,"display","flex"],[1,"form-group","col-lg-4",3,"mouseenter","mouseleave"],["class","contactEmail",3,"title",4,"ngIf"],["class","contactEmailList",4,"ngIf"],[1,"form-group","col-lg-4"],[1,"contactOfficeLocation",3,"mouseenter","mouseleave","title"],[1,"contactCompanyName",3,"mouseenter","mouseleave","title"],[1,"contactBirthday"],[1,"contactMobile",3,"mouseenter","mouseleave","title"],[1,"contactHomePhones",3,"mouseenter","mouseleave","title"],[1,"contactBusinessPhones",3,"mouseenter","mouseleave","title"],[1,"copy-icon",3,"click","title"],[1,"fa","fa-clipboard"],[1,"contactEmail",3,"title"],[1,"contactEmailList"],[1,"row","col-lg-12",2,"align-items","center","border","1px solid #062D4D","border-radius","10px","padding","20px"],[2,"text-transform","capitalize"],[1,"local-spinner-container"],[1,"local-spinner"],[1,"btn","btn-small","btn-primary","removeFromCart","pull-right",3,"click"],["ng-cloak",""],[2,"cursor","pointer"],[1,"pull-right","clickAble",2,"color","#062D4D","cursor","pointer",3,"click"],[1,"fa","fa-times-circle-o"],[1,"justify-content-end"],[1,"paginationOutlook"],[1,"col-lg-4","text-center"],["class","btn btn-primary first","title","First",3,"click",4,"ngIf"],["class","btn btn-primary previous","title","Previous",3,"click",4,"ngIf"],["class","btn btn-primary next","title","Next",3,"click",4,"ngIf"],["class","btn btn-primary last","title","Last",3,"click",4,"ngIf"],["title","First",1,"btn","btn-primary","first",3,"click"],[1,"fa","fa-angle-double-left"],["title","Previous",1,"btn","btn-primary","previous",3,"click"],[1,"fa","fa-angle-left"],["title","Next",1,"btn","btn-primary","next",3,"click"],[1,"fa","fa-angle-right"],["title","Last",1,"btn","btn-primary","last",3,"click"],[1,"fa","fa-angle-double-right"],[1,"text-danger"],["type","button",1,"btn","btn-success",3,"click","disabled"],[3,"title"],[1,"progress",3,"title"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar",2,"cursor","pointer","color","white !important","background-color","#062D4D !important"],[3,"closeRestoreHandler","currentDeviceUUID","currentDeviceUser","deviceType","currentFilePath","currentFileName","userType","currentFileBackupId","isFileTarget"]],template:function(n,i){if(n&1){let r=w();a(0,"div",10)(1,"div",11)(2,"c-card",12)(3,"c-card-body")(4,"a",13),y("click",function(){return f(r),v(i.closeOverlay())}),C(5,"i",14),s(),a(6,"c-nav",15)(7,"c-nav-item",16)(8,"button",17),y("click",function(){return f(r),v(i.setActiveSearchTab("default",0))}),u(9),m(10,"translate"),s()(),x(11,mc,4,5,"c-nav-item",18)(12,gc,4,5,"c-nav-item",18),s(),a(13,"c-tab-content",19,0)(15,"c-tab-pane",20)(16,"c-row",21)(17,"c-input-group",12)(18,"span",22),u(19),m(20,"translate"),s(),a(21,"input",23,1),m(23,"translate"),N("ngModelChange",function(p){return f(r),R(i.userAssetSearchText,p)||(i.userAssetSearchText=p),v(p)}),y("keydown.enter",function(){return f(r),v(i.searchForUsersAssets())}),s()()(),a(24,"c-row"),x(25,_c,2,1,"c-card",18)(26,vc,7,4,"c-card",18),C(27,"br"),x(28,bc,2,1,"c-card",18)(29,Cc,7,4,"c-card",18),C(30,"br"),x(31,Sc,2,1,"c-card",18)(32,xc,7,4,"c-card",18),s()(),a(33,"c-tab-pane",20)(34,"c-row",24)(35,"div",25)(36,"label",26),u(37),m(38,"translate"),s(),a(39,"select",27),m(40,"translate"),N("ngModelChange",function(p){return f(r),R(i.productTypeFiles,p)||(i.productTypeFiles=p),v(p)}),y("change",function(p){return f(r),v(i.onChangeProductType(p))}),x(41,kc,3,3,"option",28)(42,Tc,3,3,"option",29)(43,Ic,3,3,"option",30),Fe(44,Pc,1,1,"option",31,at),s()(),x(46,Mc,7,14,"div",32)(47,Dc,7,13,"div",32)(48,Uc,9,5,"div",33),s(),a(49,"c-row",34)(50,"div",35)(51,"c-input-group")(52,"input",36,2),m(54,"translate"),N("ngModelChange",function(p){return f(r),R(i.filesSearchText,p)||(i.filesSearchText=p),v(p)}),y("keydown.enter",function(){return f(r),v(i.searchForFiles())}),s()()(),a(55,"div",37)(56,"button",38),y("click",function(){return f(r),v(i.searchForFiles())}),u(57),m(58,"translate"),s()()(),C(59,"br"),x(60,Fc,6,3,"c-row",18)(61,Rc,11,6,"c-row",39),s(),a(62,"c-tab-pane",20)(63,"c-row",24)(64,"div",25)(65,"label",40),u(66),m(67,"translate"),s(),a(68,"select",41),m(69,"translate"),N("ngModelChange",function(p){return f(r),R(i.productTypeContentSearch,p)||(i.productTypeContentSearch=p),v(p)}),y("change",function(p){return f(r),v(i.onChangeProductTypeContentSearch(p))}),x(70,Nc,3,3,"option",42)(71,Vc,3,3,"option",29)(72,Lc,3,3,"option",30)(73,Hc,3,3,"option",43),Fe(74,zc,1,3,"option",31,at),s()(),x(76,jc,18,19,"div",44)(77,Wc,6,11,"div",32)(78,qc,6,10,"div",32)(79,Zc,9,5,"div",33),s(),x(80,Yc,10,7,"c-row",45)(81,Xc,8,7,"c-row",46)(82,td,2,1,"c-row",46),C(83,"br"),a(84,"app-document-content-search",47),y("downloadFile",function(p){return f(r),v(i.downloadFile(p.fileName,p.filePath,p.fileRevisionID,p.backup,p.fileUser,p.deviceUUID,p.folder,p.size,i.productTypeContentSearch,p))})("openFileLocation",function(p){return f(r),v(i.openFileLocation(p.fileName,p.filePath,p.deviceId,i.productTypeContentSearch,p.backup))})("navigatePage",function(p){return f(r),v(i.searchForContentNavigate(p))}),s(),x(85,id,5,0,"c-row",46)(86,Cp,34,28,"c-row",48)(87,Sp,7,3,"c-row",49),C(88,"br"),x(89,Ip,7,4,"c-row",50),s()()()()()(),a(90,"div",51)(91,"div",52)(92,"div",53)(93,"div",54)(94,"h4",55),u(95),m(96,"translate"),s()(),a(97,"div",56)(98,"c-row")(99,"div",57)(100,"label",58),u(101),m(102,"translate"),s(),a(103,"input",59,3),m(105,"translate"),N("ngModelChange",function(p){return f(r),R(i.pstFileNameG,p)||(i.pstFileNameG=p),v(p)}),s(),x(106,Dp,4,3,"div",60),s()()(),a(107,"div",61)(108,"button",62),y("click",function(){return f(r),v(i.closePstPopupG())}),u(109),m(110,"translate"),s(),x(111,Op,3,4,"button",63)(112,Ap,3,4,"button",63),s()()()(),a(113,"div",64)(114,"div",65)(115,"div",53)(116,"div",54)(117,"h4",55),u(118),m(119,"translate"),s()(),a(120,"div",56)(121,"c-card")(122,"c-card-header",66),u(123),m(124,"translate"),s(),a(125,"c-card-body")(126,"c-row",67)(127,"table",68)(128,"thead")(129,"tr"),x(130,Up,3,3,"th",18),a(131,"th"),u(132),m(133,"translate"),s()()(),a(134,"tbody")(135,"tr"),x(136,Bp,5,9,"td",18)(137,Rp,3,3,"td",18)(138,Vp,6,9,"td",18)(139,Lp,3,3,"td",18),s()()()()()()(),a(140,"div",61)(141,"button",62),y("click",function(){return f(r),v(i.closeDownloadPstPopupG())}),u(142,"Close"),s(),x(143,Hp,3,3,"button",69),s()()()(),a(144,"div",51)(145,"div",52)(146,"div",53)(147,"div",54)(148,"h4",55),u(149),m(150,"translate"),s()(),a(151,"div",56)(152,"h4",55),u(153),m(154,"translate"),s()(),a(155,"div",61)(156,"button",62),y("click",function(){return f(r),v(i.closeDownloadPstConfirmPopupG())}),u(157),m(158,"translate"),s(),a(159,"button",70),y("click",function(){return f(r),v(i.cancelDownloadAsPstConfirmG())}),u(160),m(161,"translate"),s()()()()(),a(162,"div",51)(163,"div",52)(164,"div",53)(165,"div",54)(166,"h4",55),u(167),m(168,"translate"),s()(),a(169,"div",56)(170,"h4",55),u(171),m(172,"translate"),s()(),a(173,"div",61)(174,"button",62),y("click",function(){return f(r),v(i.closeDownloadPstRunBkpPopupG())}),u(175,"Cancel"),s(),a(176,"button",71),y("click",function(){return f(r),v(i.cancelDownloadAsPstRunBkpG())}),u(177,"Ok"),s()()()()(),x(178,Gp,1,8,"app-restore-modal",72),a(179,"div",51)(180,"div",52)(181,"div",53)(182,"div",54)(183,"h4",55),u(184),m(185,"translate"),s()(),a(186,"div",56)(187,"h4",55),u(188),m(189,"translate"),s()(),a(190,"div",61)(191,"button",62),y("click",function(){return f(r),v(i.closeDeleteRestorePopupR())}),u(192),m(193,"translate"),s(),a(194,"button",71),y("click",function(){return f(r),v(i.deleteRestoreEventR())}),u(195),m(196,"translate"),s()()()()()}if(n&2){let r=pe(14),c=pe(104);o(7),d("ngStyle",A(145,tt,i.userType!="user"?"block":"none")),o(),d("cTabContent",r)("tabPaneIdx",0),o(),I(" ",g(10,93,"Search Users/Assets"),""),o(2),d("ngIf",i.hasBackupLicense),o(),d("ngIf",i.hasContentSearchLicense),o(),d("activeTabPaneIdx",i.activeTabIndex),o(6),_(g(20,95,"Search Users/Assets")),o(2),B("ngModel",i.userAssetSearchText),d("placeholder",g(23,97,"Search ..")),o(4),d("ngIf",i.noUsersFoundText!=""),o(),d("ngIf",i.foundUsers.length>0),o(2),d("ngIf",i.noSitesFoundText!=""),o(),d("ngIf",i.foundSites.length>0),o(2),d("ngIf",i.noDevicesFoundText!=""),o(),d("ngIf",i.foundDevices.length>0),o(5),_(g(38,99,"Product Type")),o(2),B("ngModel",i.productTypeFiles),d("title",g(40,101,"Select Product Type")),o(2),d("ngIf",i.inclusionLicenses.includes("backup_enabled")),o(),d("ngIf",i.inclusionLicenses.includes("onedrive_backup_enabled")),o(),d("ngIf",i.inclusionLicenses.includes("sharepoint_backup_enabled")),o(),Be(i.PRODUCTS_CONFIG),o(2),d("ngIf",i.productTypeFiles!="SHAREPOINT"),o(),d("ngIf",i.productTypeFiles=="SHAREPOINT"),o(),d("ngIf",i.productTypeFiles!="SHAREPOINT"),o(4),B("ngModel",i.filesSearchText),d("placeholder",g(54,103,"Search for files/folders ..")),o(5),_(g(58,105,"Search")),o(3),d("ngIf",i.noFilesFound),o(),d("ngIf",i.foundFiles.length>0&&!i.noFilesFound),o(5),_(g(67,107,"Product Type")),o(2),B("ngModel",i.productTypeContentSearch),d("title",g(69,109,"Select Product Type")),o(2),d("ngIf",i.inclusionLicenses.includes("contentsearchenabledforexchange")),o(),d("ngIf",i.inclusionLicenses.includes("contentsearchenabledforonedrive")),o(),d("ngIf",i.inclusionLicenses.includes("contentsearchenabledforsharepoint")),o(),d("ngIf",i.inclusionLicenses.includes("contentsearchenabledforgmail")),o(),Be(i.PRODUCTS_CONFIG),o(2),d("ngIf",(i.product==null||i.product.downloadsConfigurations==null?null:i.product.downloadsConfigurations.unified)&&i.productTypeContentSearch=="mail"),o(),d("ngIf",i.productTypeContentSearch!="SHAREPOINT"),o(),d("ngIf",i.productTypeContentSearch=="SHAREPOINT"),o(),d("ngIf",i.productTypeContentSearch!="SHAREPOINT"),o(),d("ngIf",i.productTypeContentSearch!="mail"&&i.productTypeContentSearch!="Gmail"),o(),d("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),o(),d("ngIf",i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail"),o(2),d("product",i.product)("foundFiles",i.foundFilesCS)("noFilesFound",i.noFilesFoundCS)("totalCountGS",i.totalCountGS)("productType",i.productTypeContentSearch)("userType",i.userType)("contentSearchText",i.contentSearchText)("currentDeviceUUID",i.currentDeviceUUID)("first",i.first)("previous",i.previous)("next",i.next)("last",i.last),o(),d("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length==0&&i.noFilesFoundCS),o(),d("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0),o(),d("ngIf",!i.isMultiSelectEnabled&&i.foundMailsCS.length>0&&i.showSecurityCallout),o(2),d("ngIf",(i.productTypeContentSearch=="mail"||i.productTypeContentSearch=="Gmail")&&i.foundMailsCS.length>0&&!i.noFilesFoundCS),o(),d("ngStyle",A(147,tt,i.displayPststyleG)),o(5),_(g(96,111,"Specify Filename")),o(6),_(g(102,113,"Specify pst filename")),o(2),Re("placeholder",g(105,115,"Enter PST File Name")),B("ngModel",i.pstFileNameG),o(3),d("ngIf",c.invalid&&(c.dirty||c.touched)),o(3),_(g(110,117,"Close")),o(2),d("ngIf",i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),o(),d("ngIf",!i.exportCompleteMailboxG&&(i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.start)),o(),d("ngStyle",A(149,tt,i.displayDownloadPststyleG)),o(5),_(g(119,119,"Restore Progress")),o(5),_(g(124,121,"Currently Running Restore Statistics")),o(7),d("ngIf",i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(2),_(g(133,123,"Overall Progress")),o(4),d("ngIf",i.progressG.currentFolderPath!=""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(),d("ngIf",i.progressG.currentFolderPath==""&&i.productTypeContentSearch!="Gmail"&&i.productTypeContentSearch!="Google Drive"),o(),d("ngIf",i.progressG.totalNoOfFilesForRestore!==""),o(),d("ngIf",i.progressG.totalNoOfFilesForRestore===""),o(4),d("ngIf",i.product==null||i.product.downloadsConfigurations==null||i.product.downloadsConfigurations.restore==null?null:i.product.downloadsConfigurations.restore.stop),o(),d("ngStyle",A(151,tt,i.displayDownloadPstConfirmstyleG)),o(5),_(g(150,125,"Restore Cancel Confirmation")),o(4),_(g(154,127,"Are you sure you wish to cancel the restore?")),o(4),_(g(158,129,"Cancel")),o(3),_(g(161,131,"Ok")),o(2),d("ngStyle",A(153,tt,i.displayDownloadPstRunBckConfirmstyleG)),o(5),_(g(168,133,"Confirmation")),o(4),_(g(172,135,"Are you sure you wish to close this window? The restore will still continue to run in the background.")),o(7),d("ngIf",i.displayRestoreStyleR),o(),d("ngStyle",A(155,tt,i.displayDeleteRestoreStyleR)),o(5),_(g(185,137,"Restore Cancel Confirmation")),o(4),_(g(189,139,"Are you sure you wish to cancel the restore?")),o(4),_(g(193,141,"Close")),o(3),_(g(196,143,"Delete"))}},dependencies:[hs,xa,wa,mi,lt,_i,vi,fi,ya,je,Ra,Na,vt,ki,Ba,bt,Ti,Va,La,Ha,yt,ne,He,Ge,ie,ti,ct,me,Da,Oa,Ma,ka,hi,mt,ht,gt,yi,ze,ft,he,$e,Ga,xi,qe,Je,Ze,za,ja,gs,ge,gi,Za,Qa],styles:['.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:10px;width:100%;height:100%;overflow-y:auto}.button-group[_ngcontent-%COMP%]{margin-top:20px}button[_ngcontent-%COMP%]{margin:0 10px}.card-hover[_ngcontent-%COMP%]{transition:background-color .3s ease-in-out}.card-hover[_ngcontent-%COMP%]:hover{background-color:#35b7f4;cursor:pointer}.hover-link[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:none;background-color:#f0f0f0;color:#333;padding:5px;border-radius:3px;position:absolute;z-index:1000}.hover-link[_ngcontent-%COMP%]:hover   .note[_ngcontent-%COMP%]{display:inline-block}tr.selected-rowMail[_ngcontent-%COMP%], tr.selected-rowMail[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8;color:#fff}.fixTableHead[_ngcontent-%COMP%]{height:500px}.fixTableHead[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background:#f1f1f1;color:#000;z-index:999}.selected[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#a8a8a8}.disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}.spinner[_ngcontent-%COMP%]{width:25px;margin:auto;height:25px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/2.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 2.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(6)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}.callout[_ngcontent-%COMP%]{margin:0 20px 0 0;padding-top:2px;padding-bottom:0}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{width:100%;display:block}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:10%;display:inline-flex}.fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:90%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{width:5%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{width:10%;display:inline-flex}.multi-select[_ngcontent-%COMP%]   .fixTableHead[_ngcontent-%COMP%]   .table-bordered[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:85%;display:inline-flex}fixTableHead[_ngcontent-%COMP%]   .table-responsive[_ngcontent-%COMP%]{overflow-x:hidden!important}.progressR[_ngcontent-%COMP%]{background-color:#d3d3d3}.local-spinner-container[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#00000052;z-index:1000}.local-spinner[_ngcontent-%COMP%]{width:60px;height:56px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/4.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 4.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-local-d3o0rx 1s infinite steps(12)}.local-spinner[_ngcontent-%COMP%]:before, .local-spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.local-spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-local-d3o0rx{to{transform:rotate(1turn)}}.phone-notch-box[_ngcontent-%COMP%]{position:relative;align-items:center;border:1px solid #062D4D;border-radius:10px;padding:20px;background:#fff}.phone-notch-box[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-1px;left:50%;transform:translate(-50%);width:80px;height:20px;background:#000;border-radius:0 0 12px 12px}.calendar-view[_ngcontent-%COMP%]{position:absolute;top:5%;left:5%;width:fit-content;z-index:99;background:#fff;height:fit-content;border:1px solid lightgrey;max-width:90%;max-height:90%;overflow:auto}.calendar-view[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:auto;padding-bottom:30px}.close-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:auto;right:-15px;position:absolute;top:-16px;border:2px solid lightgrey;border-radius:220px;padding:0 4px;background-color:#fff}.margin-auto[_ngcontent-%COMP%]{margin:auto}']})}}return t})();var zp=t=>({"bg-danger":t});function jp(t,l){if(t&1){let e=w();a(0,"div",8)(1,"div",9)(2,"small",10),u(3),s(),a(4,"small"),u(5),m(6,"number"),s()(),a(7,"small",11),u(8),m(9,"titlecase"),m(10,"translate"),s(),a(11,"div",12),C(12,"div",13),s(),a(13,"div",14)(14,"button",15),y("click",function(i){let r=f(e).$implicit;return h(2).cancelFile(r.id),v(i.stopImmediatePropagation())}),u(15),m(16,"translate"),s()()()}if(t&2){let e=l.$implicit,n=h(2);o(2),d("title",e.name),o(),_(e.name),o(2),I("",te(6,9,e.progress,"1.0-0"),"%"),o(3),X("",n.formatFileSize(e.size)," | ",g(10,14,g(9,12,e.status)),""),o(4),ce("width",e.progress,"%"),d("ngClass",A(18,zp,e.status==="failed"||e.status==="canceled")),o(3),I(" ",g(16,16,"Cancel")," ")}}function Wp(t,l){if(t&1){let e=w();a(0,"div",1)(1,"div",2),y("mousedown",function(i){f(e);let r=h();return v(r.startDrag(i))})("touchstart",function(i){f(e);let r=h();return v(r.startDrag(i))}),a(2,"span",3),u(3),m(4,"translate"),s(),a(5,"span",4),u(6),m(7,"async"),s()(),a(8,"div",5)(9,"h6",6),u(10),m(11,"translate"),m(12,"async"),s(),x(13,jp,17,20,"div",7),m(14,"async"),s()()}if(t&2){let e,n,i=h();ce("top",i.position.y,"px")("left",i.position.x,"px")("display",i.visible?"block":"none"),o(3),_(g(4,12,"Active Uploads")),o(3),I("(",(e=g(7,14,i.uploadManager.files$))==null?null:e.length,")"),o(4),X("",g(11,16,"Active Uploads")," (",(n=g(12,18,i.uploadManager.files$))==null?null:n.length,")"),o(3),d("ngForOf",g(14,20,i.uploadManager.files$))("ngForTrackBy",i.trackByFileId)}}var bs=(()=>{class t{constructor(e){this.uploadManager=e,this.position={x:0,y:0},this.visible=!0,this.isDragging=!1,this.dragOffset={x:0,y:0}}ngOnInit(){this.resetPositionToDefault(),this.uploadManager.files$.subscribe(e=>{e.length===0&&this.resetPositionToDefault()})}resetPositionToDefault(){this.position.x=window.innerWidth-320-20,this.position.y=window.innerHeight-200-20,this.position.x<10&&(this.position.x=10),this.position.y<10&&(this.position.y=10)}startDrag(e){e.preventDefault(),this.isDragging=!0;let n=this.getClientX(e),i=this.getClientY(e);this.dragOffset.x=n-this.position.x,this.dragOffset.y=i-this.position.y}onMove(e){if(!this.isDragging)return;e.preventDefault();let n=this.getClientX(e),i=this.getClientY(e),r=320,c=200,p=n-this.dragOffset.x,b=i-this.dragOffset.y,k=0,E=0,P=window.innerWidth-r,D=window.innerHeight-60;p<k&&(p=k),b<E&&(b=E),p>P&&(p=P),b>D&&(b=D),this.position.x=p,this.position.y=b}onUp(e){this.isDragging&&(this.isDragging=!1)}getClientX(e){return e.touches?e.touches[0].clientX:e.clientX}getClientY(e){return e.touches?e.touches[0].clientY:e.clientY}pauseFile(e){this.uploadManager.pauseFile(e)}resumeFile(e){this.uploadManager.resumeFile(e)}cancelFile(e){this.uploadManager.cancelFile(e)}formatFileSize(e){if(!e)return"0 B";let n=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,i)).toFixed(2)+" "+n[i]}trackByFileId(e,n){return n.id}static{this.\u0275fac=function(n){return new(n||t)(S(di))}}static{this.\u0275cmp=L({type:t,selectors:[["app-upload-panel"]],hostBindings:function(n,i){n&1&&y("mousemove",function(c){return i.onMove(c)},!1,Xe)("touchmove",function(c){return i.onMove(c)},!1,Xe)("mouseup",function(c){return i.onUp(c)},!1,Xe)("touchend",function(c){return i.onUp(c)},!1,Xe)},decls:2,vars:3,consts:[["class","upload-drag-wrapper",3,"top","left","display",4,"ngIf"],[1,"upload-drag-wrapper"],[1,"upload-drag-handle",3,"mousedown","touchstart"],[1,"drag-title"],[1,"drag-count"],[1,"upload-panel"],[1,"mb-2","sr-only"],["class","file-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"file-item"],[1,"d-flex","justify-content-between","align-items-center"],[1,"text-truncate",3,"title"],[1,"text-muted"],[1,"progress","mt-1",2,"height","6px","background-color","#e9ecef","border-radius","3px","overflow","hidden"],["role","progressbar",1,"progress-bar",2,"height","100%",3,"ngClass"],[1,"mt-2","d-flex","gap-1"],[1,"btn","btn-sm","btn-danger",3,"click"]],template:function(n,i){if(n&1&&(x(0,Wp,15,22,"div",0),m(1,"async")),n&2){let r;d("ngIf",(r=g(1,1,i.uploadManager.files$))==null?null:r.length)}},dependencies:[ne,He,Ge,ie,ei,ct,Rn,ge],styles:[".upload-drag-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:1060;width:320px;cursor:default}.upload-drag-handle[_ngcontent-%COMP%]{cursor:grab;display:flex;justify-content:space-between;align-items:center;padding:.35rem .6rem;background:#f7f7f7;border-radius:6px 6px 0 0;border:1px solid rgba(0,0,0,.05);-webkit-user-select:none;user-select:none}.upload-drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}.upload-drag-handle[_ngcontent-%COMP%]   .drag-title[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem}.upload-drag-handle[_ngcontent-%COMP%]   .drag-count[_ngcontent-%COMP%]{font-size:.85rem;color:#666}.upload-panel[_ngcontent-%COMP%]{position:relative;background:#fff;border-radius:6px;box-shadow:0 6px 20px #0000001f;padding:.6rem;width:100%;margin-top:6px}.file-item[_ngcontent-%COMP%]{margin-bottom:.75rem;border-bottom:1px solid #eee;padding-bottom:.5rem}.progress-bar[_ngcontent-%COMP%]{height:6px;background:#007bff;transition:width .3s ease}.bg-danger[_ngcontent-%COMP%]{background:#dc3545}.btn-sm[_ngcontent-%COMP%]{padding:.25rem .5rem;font-size:.875rem}.gap-1[_ngcontent-%COMP%]{gap:.25rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.text-danger[_ngcontent-%COMP%]{color:#dc3545}.d-flex[_ngcontent-%COMP%]{display:flex}.justify-content-between[_ngcontent-%COMP%]{justify-content:space-between}.align-items-center[_ngcontent-%COMP%]{align-items:center}.text-truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.progress[_ngcontent-%COMP%]{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}"]})}}return t})();var ys=()=>["admin","delegatedAdmin","readOnlyAdmin"],ws=()=>["/mspDashboard"],xs=()=>["/dashboard"],ks=()=>["/bluvault"],qp=()=>({"pointer-events":"none",cursor:"unset"}),$p=()=>({}),Jp=()=>["superAdmin"],Cs=t=>({display:t}),Ss=()=>["admin","delegatedAdmin","readOnlyAdmin","superAdmin"],Zp=()=>({placement:"bottom-start"}),Yp=t=>({lastLoggedInTime:t}),Kp=t=>({active:t}),Qp=()=>[],Xp=t=>({label:"Close",class:"btn btn-default",action:t}),e0=t=>[t],t0=t=>({subscriptionStartDate:t}),qi=t=>({label:"Cancel",class:"btn btn-default",action:t}),$i=t=>({label:"Ok",class:"btn btn-primary",action:t}),Ji=(t,l)=>[t,l],i0=(t,l)=>l.key,n0=(t,l)=>l.name;function r0(t,l){if(t&1){let e=w();a(0,"c-input-group",27)(1,"input",28),m(2,"translate"),y("click",function(){f(e);let i=h();return v(i.openOverlay())}),s(),a(3,"span",29),C(4,"i",30),s()()}t&2&&(o(),d("placeholder",g(2,1,"Search")))}function o0(t,l){if(t&1){let e=w();a(0,"c-sidebar-brand",31)(1,"img",5),y("error",function(i){f(e);let r=h();return v(r.onImageError(i))}),s()()}if(t&2){let e=h();d("routerLink",e.inclusionLicenses.includes("msp_environment_enabled")&&$(2,Ss).includes(e.userType)?$(3,ws):$(4,Ss).includes(e.userType)?$(5,xs):$(6,ks)),o(),d("src",e.parabluLogo,we)}}function a0(t,l){if(t&1){let e=w();a(0,"app-search-overlay",32),y("close",function(){f(e);let i=h();return v(i.closeOverlay())}),s()}}function s0(t,l){t&1&&Zt(0)}function l0(t,l){t&1&&Zt(0)}function c0(t,l){t&1&&Zt(0)}function d0(t,l){if(t&1&&(a(0,"button",33),C(1,"img",34),u(2),m(3,"translate"),s()),t&2){let e=h();d("cSidebarToggle",e.sidebarId2),o(2),I(" ",g(3,2,"AI Help")," ")}}function p0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.currentUserProfile())}),C(2,"i",47),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"My Account")))}function u0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",48),y("click",function(){f(e);let i=h(3);return v(i.userType==="user"?i.currentUserProfile():null)}),C(2,"i",47),a(3,"span",46),u(4),s()()()}if(t&2){let e=h(3);o(),ce("cursor",e.userType==="user"?"pointer":"default"),o(3),_(e.currentUser)}}function h0(t,l){t&1&&(a(0,"span",46),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Administrator")))}function m0(t,l){t&1&&(a(0,"span",46),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"User")))}function g0(t,l){if(t&1&&(a(0,"li",49)(1,"a",50),C(2,"i",47),x(3,h0,3,3,"span",51)(4,m0,3,3,"span",51),s()()),t&2){let e=h(3);o(3),d("ngIf",e.userType=="delegatedAdmin"),o(),d("ngIf",e.userType=="user")}}function _0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function f0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectPaddleConsent())}),C(2,"i",52),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Manage Subscription")))}function v0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.initiateGuidedSetup())}),C(2,"img",53),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Guided Setup")))}function b0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectProductConsent())}),C(2,"i",54),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Add Product")))}function y0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.activityHistory())}),C(2,"i",55),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Activity History")))}function C0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.unusualActivityHistory())}),C(2,"i",55),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Unusual Activity History")))}function S0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.endpointsDownload())}),C(2,"i",56),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Download Agent")))}function w0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.licenseOptimizer())}),C(2,"i",57),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"License Optimizer")))}function x0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.packDetails())}),C(2,"i",52),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Current Packs Subscribed")))}function k0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.navigateToDownloads())}),C(2,"i",56),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Downloads")))}function T0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function I0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.shareActivityHistory())}),C(2,"i",58),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Share Activity History")))}function E0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.sharedByMe())}),C(2,"i",58),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Files Shared By Me")))}function P0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.sharedWithMe())}),C(2,"i",58),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Files Shared With Me")))}function M0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.infectedActivityHistory())}),C(2,"i",55),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Infected Files History")))}function D0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.miniclouds())}),C(2,"i",59),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"MiniClouds")))}function O0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function A0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function U0(t,l){if(t&1&&(a(0,"li")(1,"a",60),u(2),m(3,"translate"),s()()),t&2){let e=h(3);o(),d("href",e.quick_startUrl,we),o(),_(g(3,2,"Quick Start Guide"))}}function F0(t,l){if(t&1&&(a(0,"li")(1,"a",60),u(2),m(3,"translate"),s()()),t&2){let e=h(3);o(),d("href",e.administrator_Guide_EndpointUrl,we),o(),_(g(3,2,"Administrator Guide"))}}function B0(t,l){if(t&1&&(a(0,"li")(1,"a",61),u(2),m(3,"translate"),s()()),t&2){let e=h(3);o(),d("href",e.quick_start_serverUrl,we),o(),_(g(3,2,"Quick Start Guide (Servers)"))}}function R0(t,l){if(t&1&&(a(0,"li")(1,"a",61),u(2),m(3,"translate"),s()()),t&2){let e=h(3);o(),d("href",e.administrator_Guide_ServerUrl,we),o(),_(g(3,2,"Administrator Guide (Servers)"))}}function N0(t,l){if(t&1&&(a(0,"li")(1,"a",61),u(2),m(3,"translate"),s()()),t&2){let e=h(3);o(),d("href",e.userGuideUrl,we),o(),_(g(3,2,"User Guide"))}}function V0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function L0(t,l){t&1&&(a(0,"li")(1,"h6",62),u(2),m(3,"translate"),s()()),t&2&&(o(2),_(g(3,1,"Help & Support")))}function H0(t,l){if(t&1){let e=w();a(0,"li")(1,"a",44),y("click",function(){f(e);let i=h(3);return v(i.redirectConsent())}),C(2,"i",63),a(3,"span",46),u(4),m(5,"translate"),s()()()}t&2&&(o(4),_(g(5,1,"Create Support Ticket")))}function G0(t,l){t&1&&(a(0,"li")(1,"a",60),C(2,"i",64),a(3,"span",46),u(4,"+971 50 158 7321"),s()()()),t&2&&(o(),d("href","https://wa.me/971501587321",we))}function z0(t,l){if(t&1&&(a(0,"li")(1,"a",65),C(2,"i",66),a(3,"span",46),u(4),m(5,"translate"),s()()()),t&2){let e=h(3);o(),d("href","mailto:"+e.support_mailId,we),o(3),_(g(5,2,"Send email"))}}function j0(t,l){t&1&&(a(0,"li"),C(1,"hr",42),s())}function W0(t,l){if(t&1){let e=w();a(0,"ul",39),x(1,p0,6,3,"li",40)(2,u0,5,3,"li",40)(3,g0,5,2,"li",41),a(4,"li"),C(5,"hr",42),s(),a(6,"li")(7,"span",43),u(8),m(9,"translate"),s()(),a(10,"li",43),u(11),m(12,"translate"),m(13,"translate"),s(),x(14,_0,2,0,"li",40)(15,f0,6,3,"li",40)(16,v0,6,3,"li",40)(17,b0,6,3,"li",40),a(18,"li"),C(19,"hr",42),s(),x(20,y0,6,3,"li",40)(21,C0,6,3,"li",40)(22,S0,6,3,"li",40)(23,w0,6,3,"li",40)(24,x0,6,3,"li",40)(25,k0,6,3,"li",40)(26,T0,2,0,"li",40)(27,I0,6,3,"li",40)(28,E0,6,3,"li",40)(29,P0,6,3,"li",40)(30,M0,6,3,"li",40)(31,D0,6,3,"li",40)(32,O0,2,0,"li",40)(33,A0,2,0,"li",40)(34,U0,4,4,"li",40)(35,F0,4,4,"li",40)(36,B0,4,4,"li",40)(37,R0,4,4,"li",40)(38,N0,4,4,"li",40)(39,V0,2,0,"li",40)(40,L0,4,3,"li",40)(41,H0,6,3,"li",40)(42,G0,5,1,"li",40)(43,z0,6,4,"li",40)(44,j0,2,0,"li",40),a(45,"li")(46,"a",44),y("click",function(){f(e);let i=h(2);return v(i.logout())}),C(47,"i",45),a(48,"span",46),u(49),m(50,"translate"),s()()()()}if(t&2){let e=h(2);o(),d("ngIf",!e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),o(5),_(g(9,35,"PRODUCT")),o(3),I(" ",e.inclusionLicenses.includes("issmblicenseenabled")?g(12,37,"CrashPlan"):g(13,39,"CrashPlan Platform")," "),o(3),d("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),o(),d("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),o(),d("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")&&e.currentUser=="custadmin"),o(),d("ngIf",e.inclusionLicenses.includes("issmblicenseenabled")),o(3),d("ngIf",!e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="admin"||e.userType=="superAdmin"||e.userType=="user")),o(),d("ngIf",e.inclusionLicenses.includes("rwdetectionenabled")&&e.userType!="delegatedAdmin"&&e.userType!="readOnlyAdmin"&&e.userType!="user"),o(),d("ngIf",e.inclusionLicenses.includes("backup_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType=="delegatedAdmin"),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("sync_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType!="user"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.userType!="user"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.userType!="user"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.userType!="user"),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")&&(e.userType=="delegatedAdmin"||e.userType=="user")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(),d("ngIf",e.inclusionLicenses.includes("msp_environment_enabled")),o(5),_(g(50,41,"Logout"))}}function q0(t,l){if(t&1){let e=w();a(0,"ul",39)(1,"li")(2,"a",44),y("click",function(){f(e);let i=h(2);return v(i.logout())}),C(3,"i",45),a(4,"span",46),u(5),m(6,"translate"),s()()()()}t&2&&(o(5),_(g(6,1,"Logout")))}function $0(t,l){if(t&1&&(a(0,"c-dropdown",35)(1,"button",36),C(2,"c-avatar",37),m(3,"date"),m(4,"translate"),m(5,"translate"),s(),x(6,W0,51,43,"ul",38)(7,q0,7,3,"ul",38),s()),t&2){let e=h();d("popperOptions",$(14,Zp)),o(),d("caret",!1),o(),d("cTooltip",e.lastLoggedInTime?te(4,9,"LastLoginTime",A(15,Yp,te(3,6,e.lastLoggedInTime,"medium"))):g(5,12,"No login recorded"))("size","md"),o(4),d("ngIf",e.userType!="superAdmin"),o(),d("ngIf",e.userType=="superAdmin")}}function J0(t,l){if(t&1){let e=w();a(0,"button",48),y("click",function(){let i=f(e).$implicit,r=h(2);return v(r.changeLanguage(i.key))}),u(1),s()}if(t&2){let e=l.$implicit,n=h(2);xn(A(3,Kp,e.key===n.currentLocale)),o(),I(" ",e.name," ")}}function Z0(t,l){if(t&1&&(a(0,"c-dropdown",67)(1,"button",68),C(2,"i",69),a(3,"span",70),u(4),s()(),a(5,"div",71),Fe(6,J0,2,5,"button",72,i0),s()()),t&2){let e=h();o(),d("caret",!1),o(3),_(e.showLangName),o(2),Be(e.SupportedLocales)}}function Y0(t,l){if(t&1){let e=w();a(0,"button",77),y("click",function(i){f(e);let r=h(2);return v(r.click_Crashplan_Endpoint(i))}),a(1,"a",78),u(2),m(3,"translate"),s()()}if(t&2){let e=h(2);o(),d("href",e.crashplan_Endpoint_Url,we),o(),_(g(3,2,"CrashPlan Endpoint"))}}function K0(t,l){if(t&1){let e=w();a(0,"button",79),y("click",function(){let i=f(e).$implicit,r=h(2);return r.colorMode.set(i.name),v(r.applyTheme())}),Vi(),C(1,"svg",80),u(2),m(3,"translate"),s()}if(t&2){let e=l.$implicit,n=h(2);d("active",n.colorMode()===e.name)("routerLink",$(6,Qp)),o(),d("name",e.icon),o(),I(" ",g(3,4,e.text)," ")}}function Q0(t,l){if(t&1&&(x(0,Y0,4,4,"button",73),a(1,"c-dropdown",67)(2,"button",74),Vi(),C(3,"svg",75),s(),_n(),a(4,"div",71),Fe(5,K0,4,7,"button",76,n0),s()()),t&2){let e=h();d("ngIf",e.crashplan_Endpoint_Url),o(2),d("caret",!1),o(),d("name",e.icons()),o(2),Be(e.colorModes)}}function X0(t,l){t&1&&(a(0,"th",84),u(1),m(2,"translate"),s()),t&2&&(o(),_(g(2,1,"Servers")))}function eu(t,l){t&1&&(a(0,"td",87)(1,"span"),u(2),m(3,"translate"),s()()),t&2&&(o(2),_(g(3,1,"-")))}function tu(t,l){if(t&1&&(a(0,"tr")(1,"td",87)(2,"div"),u(3),s()(),a(4,"td",87)(5,"div"),u(6),s()(),a(7,"td",87)(8,"div"),u(9),s()(),a(10,"td",87)(11,"div"),u(12,"-"),s()()()),t&2){let e=l.$implicit;o(3),_(e.skuCode),o(3),_(e.storageSize),o(3),_(e.minUserCount)}}function iu(t,l){if(t&1&&(a(0,"tr")(1,"td",87)(2,"div"),u(3),s()(),a(4,"td",87)(5,"div"),u(6,"-"),s()(),a(7,"td",87)(8,"div"),u(9),s()(),a(10,"td",87)(11,"div"),u(12),s()()()),t&2){let e=l.$implicit;o(3),_(e.skuCode),o(6),_(e.storageSize),o(3),_(e.minUserCount)}}function nu(t,l){if(t&1&&(Dt(0),x(1,iu,13,3,"tr",90),Ot()),t&2){let e=h(2);o(),d("ngForOf",e.serverPacks)}}function ru(t,l){if(t&1&&(a(0,"td",87)(1,"span")(2,"b"),u(3),s()()()),t&2){let e=h(2);o(3),_(e.totalServer)}}function ou(t,l){if(t&1&&(a(0,"app-modal",81)(1,"c-row")(2,"table",82)(3,"thead",83)(4,"tr")(5,"th",84),u(6,"Pack Name "),s(),a(7,"th",84)(8,"p",85),u(9),m(10,"translate"),s(),a(11,"p",85),u(12),m(13,"translate"),s()(),a(14,"th",84),u(15,"Users"),s(),x(16,X0,3,3,"th",86),s()(),a(17,"tbody")(18,"tr")(19,"td",87)(20,"span")(21,"a",88),m(22,"date"),m(23,"translate"),u(24),s(),C(25,"br"),a(26,"span"),u(27),m(28,"translate"),s()()(),a(29,"td",87)(30,"span"),u(31),s()(),a(32,"td",87)(33,"span"),u(34),s()(),x(35,eu,4,3,"td",89),s(),x(36,tu,13,3,"tr",90)(37,nu,2,1,"ng-container",40),a(38,"tr",87)(39,"td",87)(40,"span")(41,"b"),u(42),m(43,"translate"),s()()(),a(44,"td",87)(45,"span")(46,"b"),u(47),s()()(),a(48,"td",87)(49,"span")(50,"b"),u(51),s()()(),x(52,ru,4,1,"td",89),s()()()()()),t&2){let e=h();d("modalSize","modal-lg")("modalWidth","90%")("footerButtons",A(36,e0,A(34,Xp,e.closePackDetails))),o(2),d("hover",!0)("responsive",!0)("striped",!0),o(7),_(g(10,21,"Managed Data")),o(3),_(g(13,23,"(GB)")),o(4),d("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),o(5),d("cTooltip",te(23,27,"SubscribedOn",A(38,t0,g(22,25,e.subscriptionStartDate)))),o(3),I(" ",e.skuCode," "),o(3),_(g(28,30,"(Base Pack)")),o(4),_(e.storageSize),o(3),_(e.minUserCount),o(),d("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),o(),d("ngForOf",e.userPacks),o(),d("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true"),o(5),_(g(43,32,"Total")),o(5),_(e.totalStorage),o(4),_(e.totalUser),o(),d("ngIf",e.inclusionLicenses.includes("windows_server_backup_enabled")&&e.showServerTab=="true")}}function au(t,l){if(t&1){let e=w();a(0,"app-crashplan-nav",91),y("closeModalHandler",function(){f(e);let i=h();return v(i.close_Crashplan_Endpoint())}),s()}}function su(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),d("footerButtons",ke(8,Ji,A(4,qi,e.cancelRedirectConsent),A(6,$i,e.confirmRedirectConsent)))}}function lu(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),d("footerButtons",ke(8,Ji,A(4,qi,e.cancelPaddleRedirectConsent),A(6,$i,e.confirmPaddleRedirectConsent)))}}function cu(t,l){if(t&1&&(C(0,"app-modal",92),m(1,"translate")),t&2){let e=h();Re("bodyH4",g(1,2,"You are now leaving the CrashPlan management portal and will be redirected to an external site. Are you sure you wish to continue?")),d("footerButtons",ke(8,Ji,A(4,qi,e.cancelProductRedirectConsent),A(6,$i,e.confirmProductRedirectConsent)))}}var Ts=(()=>{class t extends Ca{#t;#e;#i;constructor(e,n,i,r,c,p,b,k,E,P,D,M,O,U){let ae=e.Token;(!ae||ae.trim()==="")&&setTimeout(()=>{this.router.navigate(["/logout"])},1e3),super(),this.authService=e,this.router=n,this.renderer=i,this.sharedService=r,this.apiService=c,this.cdr=p,this.toastr=b,this.datePipe=k,this.licenseCheckService=E,this.TranslateService=P,this.userRoleService=D,this.dashboardService=M,this.configService=O,this.http=U,this.conversationalAI=!1,this.isOverlayVisible=!1,this.parabluLogo="",this.crashplanLogo="",this.userType="",this.ransomewareSuit=!1,this.syncEnabled="false",this.isMspEnabled=!1,this.support_mailId="support@parablu.com",this.stylePackDetails=!1,this.statistics={},this.skuCode="",this.packModel="",this.showServerTab="false",this.totalStorage=0,this.totalUser=0,this.totalServer=0,this.storageSize="",this.minUserCount="-",this.customerId="-",this.referenceNumber="-",this.subscriptionStartDate=0,this.serverMgmt=!1,this.addons=[],this.userPacks=[],this.serverPacks=[],this.showCenterBrandLogo=!1,this.quick_startUrl="",this.administrator_Guide_EndpointUrl="",this.quick_start_serverUrl="",this.administrator_Guide_ServerUrl="",this.userGuideUrl="",this.showCrashplanEndpointLicenseModal=!1,this.commonAssetUrl="https://dns.parablu.com/cpassets/doc/",this.inclusionLicenses=[],this.exclusionLicenses=[],this.crashplan_Endpoint_Url="",this.#t=Qe(zn),this.#e=Qe(ua),this.colorMode=this.#e.colorMode,this.#i=Qe(vn),this.colorModes=[{name:"light",text:"Light",icon:"cilSun"},{name:"dark",text:"Dark",icon:"cilMoon"},{name:"auto",text:"Auto",icon:"cilContrast"}],this.icons=Pn(()=>{let F=this.colorMode();return this.colorModes.find(Oe=>Oe.name===F)?.icon??"cilSun"}),this.imageSrc=["assets/brand/header_logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"],this.guideUrlSrc=[this.commonAssetUrl+"Quick_start.pdf",this.commonAssetUrl+"Administrator_Guide_Endpoint.pdf",this.commonAssetUrl+"Quick_start_server.pdf",this.commonAssetUrl+"Administrator_Guide_Server.pdf",this.commonAssetUrl+"User_Guide.pdf"],this.isMsAppConsented=!1,this.isEwsAppConsented=!1,this.ssoAppConsented=!1,this.assetsConfigured=!1,this.displayConsentRemainder="none",this.displayAssetConfigurationRemainder="none",this.isFirstLogin="false",this.isLocalUser="false",this.currentLocale="en",this.showLangName="English",this.SupportedLocales=[{key:"en",name:"English"},{key:"fr",name:"Fran\xE7ais"},{key:"de",name:"Deutsch"},{key:"pt",name:"Portugu\xEAs"},{key:"pl",name:"Polski"},{key:"nl",name:"Nederlands"},{key:"it",name:"Italiano"},{key:"es",name:"Espa\xF1ol (Espa\xF1a)"}],this.redirectConsentStyle=!1,this.supportUrl="",this.currentUser="",this.lastLoggedInTime=0,this.redirectPaddleConsentStyle=!1,this.paddleUrl="https://customer-portal.paddle.com/login/cpl_01hdh0x7ercd1p8g4qxgeqcesn",this.redirectProductConsentStyle=!1,this.productUrl="https://support.crashplan.com/hc/en-us/requests/new",this.onlySyncEnv="false",this.sidebarId="sidebar1",this.sidebarId2="sidebar2",this.newMessages=[{id:0,from:"Jessica Williams",avatar:"7.jpg",status:"success",title:"Urgent: System Maintenance Tonight",time:"Just now",link:"apps/email/inbox/message",message:"Attention team, we'll be conducting critical system maintenance tonight from 10 PM to 2 AM. Plan accordingly..."},{id:1,from:"Richard Johnson",avatar:"6.jpg",status:"warning",title:"Project Update: Milestone Achieved",time:"5 minutes ago",link:"apps/email/inbox/message",message:"Kudos on hitting sales targets last quarter! Let's keep the momentum. New goals, new victories ahead..."},{id:2,from:"Angela Rodriguez",avatar:"5.jpg",status:"danger",title:"Social Media Campaign Launch",time:"1:52 PM",link:"apps/email/inbox/message",message:"Exciting news! Our new social media campaign goes live tomorrow. Brace yourselves for engagement..."},{id:3,from:"Jane Lewis",avatar:"4.jpg",status:"info",title:"Inventory Checkpoint",time:"4:03 AM",link:"apps/email/inbox/message",message:"Team, it's time for our monthly inventory check. Accurate counts ensure smooth operations. Let's nail it..."},{id:3,from:"Ryan Miller",avatar:"4.jpg",status:"info",title:"Customer Feedback Results",time:"3 days ago",link:"apps/email/inbox/message",message:"Our latest customer feedback is in. Let's analyze and discuss improvements for an even better service..."}],this.newNotifications=[{id:0,title:"New user registered",icon:"cilUserFollow",color:"success"},{id:1,title:"User deleted",icon:"cilUserUnfollow",color:"danger"},{id:2,title:"Sales report is ready",icon:"cilChartPie",color:"info"},{id:3,title:"New client",icon:"cilBasket",color:"primary"},{id:4,title:"Server overloaded",icon:"cilSpeedometer",color:"warning"}],this.newStatus=[{id:0,title:"CPU Usage",value:25,color:"info",details:"348 Processes. 1/4 Cores."},{id:1,title:"Memory Usage",value:70,color:"warning",details:"11444GB/16384MB"},{id:2,title:"SSD 1 Usage",value:90,color:"danger",details:"243GB/256GB"}],this.newTasks=[{id:0,title:"Upgrade NPM",value:0,color:"info"},{id:1,title:"ReactJS Version",value:25,color:"danger"},{id:2,title:"VueJS Version",value:50,color:"warning"},{id:3,title:"Add new layouts",value:75,color:"info"},{id:4,title:"Angular Version",value:100,color:"success"}],this.cancelPaddleRedirectConsent=()=>{this.redirectPaddleConsentStyle=!1},this.confirmPaddleRedirectConsent=()=>{this.redirectPaddleConsentStyle=!1,window.open(this.paddleUrl,"_blank")},this.cancelProductRedirectConsent=()=>{this.redirectProductConsentStyle=!1},this.confirmProductRedirectConsent=()=>{this.redirectProductConsentStyle=!1,window.open(this.productUrl,"_blank")},this.closePackDetails=()=>{this.stylePackDetails=!1},this.cancelRedirectConsent=()=>{this.redirectConsentStyle=!1},this.confirmRedirectConsent=()=>{this.redirectConsentStyle=!1,window.open(this.supportUrl,"_blank")},this.imageSrc[1]=`/brandings/${O.cloudName}/brandings/login_logo.png`,this.imageSrc[0]=`/brandings/${O.cloudName}/brandings/header_logo.png`,this.#e.localStorageItemName.set("theme-default"),this.#e.eventName.set("ColorSchemeChange"),this.#t.queryParams.pipe(cn(1),Y(F=>F.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),Gt(F=>["dark","light","auto"].includes(F)),G(F=>{this.colorMode.set(F)}),ca(this.#i)).subscribe(),this.crashplan_Endpoint_Url=atob(this.sharedService.getDataByKey("cp_endpoint")||""),localStorage.getItem("theme-default")=='"dark"'?this.parabluLogo=this.imageSrc[4]:this.parabluLogo=this.imageSrc[0],this.crashplanLogo=this.imageSrc[1],this.quick_startUrl=this.guideUrlSrc[0],this.administrator_Guide_EndpointUrl=this.guideUrlSrc[1],this.quick_start_serverUrl=this.guideUrlSrc[2],this.administrator_Guide_ServerUrl=this.guideUrlSrc[3],this.userGuideUrl=this.guideUrlSrc[4];let De=this.configService.commonUrl;this.http.get(De).subscribe(F=>{typeof F=="object"&&F!==null?Object.keys(F).length>0&&(this.supportUrl=F.support_url):console.error("Unexpected response format:",F)},F=>{console.error("Error fetching data:",F)})}ngOnInit(){return V(this,null,function*(){this.currentLocale=this.TranslateService.currentLang,this.showLangName=this.SupportedLocales.find(r=>this.currentLocale===r.key)?.name||"English",this.userType=yield this.userRoleService.getUserRole(),this.isFirstLogin=yield this.userRoleService.getFirstLogin(),this.isLocalUser=yield this.userRoleService.getLocalUser(),this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.currentUser=atob(this.sharedService.getDataByKey("userName")),this.lastLoggedInTime=parseInt(this.sharedService.getDataByKey("lastLoginTime")),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"&&(this.showCenterBrandLogo=!0),["backup_enabled","onedrive_backup_enabled","exchange_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"].every(r=>!this.inclusionLicenses.includes(r))&&this.userType=="user"&&(this.onlySyncEnv="true");let i=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets/Exchange","/manageAssets/ODB","/manageAssets/Sharepoint","/login","/locallogin","/logout"];if(this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(i.includes(this.router.url.toString())||this.checkWizardStatus()),this.router.events.subscribe(r=>{r instanceof dt&&this.inclusionLicenses.includes("issmblicenseenabled")&&this.userType=="admin"&&(i.includes(this.router.url.toString())||this.checkWizardStatus())}),this.inclusionLicenses.includes("issmblicenseenabled")){let c=this.licenseCheckService.getEnvDetails().cpendpointurl;this.crashplan_Endpoint_Url=c||"https://gold-console.core.qa.crashplan.com/"}})}setBrandLogo(){return V(this,null,function*(){})}getFormattedDate(e){return this.datePipe.transform(e,"dd-MMM-yyyy HH:mm:ss")||""}changeLanguage(e){return V(this,null,function*(){document.cookie="LANG="+e+"; path=/; SameSite=Lax; Secure",this.TranslateService.use(e),this.currentLocale=e,this.showLangName=this.SupportedLocales.find(n=>this.currentLocale===n.key)?.name||"English",window.location.reload()})}click_Crashplan_Endpoint(e){if(e.preventDefault(),e.stopPropagation(),!this.crashplan_Endpoint_Url){this.showCrashplanEndpointLicenseModal=!0,this.cdr.detectChanges();return}window.open(this.crashplan_Endpoint_Url,"_blank")}close_Crashplan_Endpoint(){this.showCrashplanEndpointLicenseModal=!1,this.cdr.detectChanges()}logout(){this.apiService.logout().subscribe(e=>{let n=localStorage.getItem("theme-default");this.authService.clearToken(),localStorage.clear(),n&&localStorage.setItem("theme-default",n),this.router.navigate(["logout"])},e=>{switch(e.status){case 500:break;case 503:break;default:break}})}currentUserProfile(){let e=this.sharedService.getDataByKey("userName");this.sharedService.setData("currentUser",e),this.sharedService.setData("currentDevice",""),this.isOverlayVisible=!1;let n=document.querySelector(".header.header-sticky");n&&this.renderer.setStyle(n,"z-index","1000"),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/users/profile"])}activityHistory(){this.router.navigate(["activityHistory"])}shareActivityHistory(){this.router.navigate(["sync/shareActivityHistory"])}unusualActivityHistory(){this.router.navigate(["unusualActivityHistory"])}infectedActivityHistory(){this.router.navigate(["infectedActivityHistory"])}endpointsDownload(){this.router.navigate(["endpointsDownload"])}licenseOptimizer(){this.router.navigate(["licenseOptimizer"])}navigateToDownloads(){this.router.navigate(["/downloads"])}miniclouds(){this.router.navigate(["sync/miniclouds"])}sharedByMe(){this.router.navigate(["sync/myShares"])}sharedWithMe(){this.router.navigate(["sync/sharedWithMe"])}redirectPaddleConsent(){return V(this,null,function*(){(yield this.fetchAndSetPaddlePortalSession())&&(this.redirectPaddleConsentStyle=!0)})}fetchAndSetPaddlePortalSession(){return V(this,null,function*(){try{let n=(yield Ht(this.apiService.getPaddlePortalSession()))?.body?.data?.data;if(n?.urls?.general?.overview){let i=n.urls.general.overview;return this.paddleUrl=i,i}else return""}catch{return""}})}redirectProductConsent(){this.redirectProductConsentStyle=!0}navigateTo(e){switch(e){case"quick":this.router.navigate(["sync/miniclouds"]);break;case"administrator":this.router.navigate(["sync/miniclouds"]);break;case"user":this.router.navigate(["sync/miniclouds"]);break;default:this.router.navigate(["sync/miniclouds"]);break}}updateStatistics(){this.userPacks=[],this.serverPacks=[],this.totalStorage=0,this.totalServer=0,this.totalUser=0,this.dashboardService.overviewBackup().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.statistics=e.body.MSPCloudOverviewElement,e.body.MSPCloudOverviewElement?.packs&&e.body.MSPCloudOverviewElement.packs.length>0&&e.body.MSPCloudOverviewElement.packs.forEach((r,c)=>{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 p=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(k=>{k.subscriptionActive&&!k.skuCode.startsWith("ADSER")&&(this.userPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalUser=(Number(this.totalUser)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))});let b=0;r.addons&&r.addons.length>0&&r.addons.forEach(k=>{k.skuCode.startsWith("ADSER")&&k.subscriptionActive&&(this.serverPacks.push({skuCode:k.skuCode,minUserCount:Number(k.minUserCount)||0,storageSize:Number(k.storageSize)||0}),this.totalServer=(Number(this.totalServer)||0)+Number(k.minUserCount),this.totalStorage=(Number(this.totalStorage)||0)+Number(k.storageSize))}),this.showServerTab=this.inclusionLicenses.includes("windows_server_backup_enabled")&&this.totalServer!=0?"true":"false"}}),this.cdr.detectChanges()},e=>{switch(e.status){case 400:break;case 401:console.error("Unauthorized: ",e.message),this.toastr.error(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Error")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:break;case 503:break;default:break}})}packDetails(){this.stylePackDetails=!0,this.updateStatistics()}openOverlay(){this.isOverlayVisible=!0;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","2000");let n=document.querySelector(".overlay");n&&this.renderer.setStyle(n,"display","block")}closeOverlay(){this.isOverlayVisible=!1;let e=document.querySelector(".header.header-sticky");e&&this.renderer.setStyle(e,"z-index","1000")}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}applyTheme(){location.reload()}checkWizardStatus(){let e=["/dashboard","/adminConsent?","/adminConsentExchange?","/settings/smbConsent","/settings/m365Settings/exchangeSettings","/settings/m365Settings/m365TenantSettings","/manageAssets","/login","/locallogin","/logout"];for(let n=0;n<e.length;n++)if(this.router.url.startsWith(e[n]))return;console.log(".... smbConsent from header...."),this.apiService.checkWizardStatus().subscribe(n=>{var i=JSON.stringify(n.body),r=JSON.parse(i);this.isMsAppConsented=n.body.msAppConsented,this.isEwsAppConsented=n.body.ewsAppConsented,this.ssoAppConsented=n.body.ssoAppConsented,this.assetsConfigured=n.body.assetsConfigured;let c=localStorage.getItem("showStep1Modal");if(c!=="No"&&!this.isMsAppConsented){this.displayConsentRemainder="block";return}if(c!=="No"&&!this.isEwsAppConsented){this.displayConsentRemainder="block";return}if(localStorage.getItem("showStep2Modal")!=="No"&&!this.assetsConfigured){this.displayAssetConfigurationRemainder="block";return}})}denyConsentFlow(){this.displayConsentRemainder="none",localStorage.setItem("showStep1Modal","No"),localStorage.setItem("showStep2Modal","No")}proceedForConsentFlow(){this.displayConsentRemainder="none",this.router.navigate(["/settings/smbConsent"])}denyAssetConfigurationFlow(){this.displayAssetConfigurationRemainder="none",localStorage.setItem("showStep2Modal","No")}proceedForAssetConfigurationFlow(){if(this.displayAssetConfigurationRemainder="none",this.inclusionLicenses.includes("exchange_backup_enabled")){this.router.navigate(["/manageAssets/Exchange"]);return}this.inclusionLicenses.includes("onedrive_backup_enabled")&&this.router.navigate(["/manageAssets/ODB"]),this.inclusionLicenses.includes("sharepoint_backup_enabled")&&this.router.navigate(["/manageAssets/Sharepoint"])}redirectConsent(){this.redirectConsentStyle=!0}initiateGuidedSetup(){this.apiService.initiateGuidedSetup().subscribe(e=>{this.router.navigate(["/dashboard"]),localStorage.removeItem("showStep1Modal"),localStorage.removeItem("showStep2Modal"),setTimeout(()=>location.reload(),300)})}static{this.\u0275fac=function(n){return new(n||t)(S(J),S(re),S(ot),S(ye),S(W),S(Ee),S(be),S(me),S(Me),S(oe),S(fe),S(Ei),S(_e),S(Pe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-header"]],inputs:{conversationalAI:"conversationalAI",sidebarId:"sidebarId",sidebarId2:"sidebarId2"},features:[ee([me,J,W,Ei]),xe],decls:62,vars:48,consts:[["userDropdown",""],["localeDropdown",""],["themeDropdown",""],[1,"px-4",3,"fluid"],[2,"max-width","12%","cursor","pointer",3,"routerLink","ngStyle"],["alt","CrashPlan","loading","lazy",1,"d-block","w-100",3,"error","src"],["class","col-lg-3","style","width: 30% !important;",4,"ngIf"],["style","max-width: 12%;cursor: pointer;",3,"routerLink",4,"ngIf"],[3,"close",4,"ngIf"],[1,"mx-0"],[4,"ngTemplateOutlet"],["class","ai-toggle btn","cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",3,"cSidebarToggle",4,"ngIf"],["headerH4","Current Packs Subscribed",3,"modalSize","modalWidth","footerButtons",4,"ngIf"],[3,"closeModalHandler",4,"ngIf"],["tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["cTooltip","Consents are needed to grant necessary access permissions for this step.","cTooltipPlacement","right",2,"color","#062D4D","cursor","pointer","margin-left","5px"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"modal-body"],["color","warning"],[1,"modal-footer"],["type","button",1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["headerH4","Redirection Consent",3,"footerButtons","bodyH4",4,"ngIf"],[1,"col-lg-3",2,"width","30% !important"],["aria-describedby","basic-addon2","name","search","aria-label","Search","cFormControl","",3,"click","placeholder"],["cInputGroupText","","id","basic-addon2"],[1,"fa-solid","fa-magnifying-glass"],[2,"max-width","12%","cursor","pointer",3,"routerLink"],[3,"close"],["cHeaderToggler","","toggle","visible","aria-label","Toggle sidebar navigation",1,"ai-toggle","btn",3,"cSidebarToggle"],["src","./assets/images/ai_icon.png","alt","AI Logo","height","25",1,"ai-logo"],["variant","nav-item",3,"popperOptions"],["cDropdownToggle","","aria-label","Open user menu",1,"py-0","pe-0",3,"caret"],["shape","rounded-1","cTooltipPlacement","left","src","./assets/images/avatars/default.jpg","status","success","textColor","primary","alt","User avatar",3,"cTooltip","size"],["cDropdownMenu","","class","pt-0 w-auto",4,"ngIf"],["cDropdownMenu","",1,"pt-0","w-auto"],[4,"ngIf"],["style","margin-left: 5px;",4,"ngIf"],["cDropdownDivider",""],[2,"margin-left","15px"],["cDropdownItem","",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-right-from-bracket","fa-rotate-180"],[2,"padding","5px"],[1,"fa-solid","fa-user"],["cDropdownItem","",3,"click"],[2,"margin-left","5px"],["cDropdownItem",""],["style","padding: 5px;",4,"ngIf"],[1,"fa-solid","fa-cart-shopping"],["src","./assets/images/route.png","alt","Guided Setup","height","15",1,"ai-logo"],[1,"fa-solid","fa-plus"],[1,"fa-solid","fa-clock-rotate-left"],[1,"fa-solid","fa-arrow-down"],[1,"fa-solid","fa-sliders"],[1,"fa-solid","fa-share-from-square"],[1,"fa-solid","fa-cloud"],["cDropdownItem","","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownItem","","target","_blank","target","_blank",2,"cursor","pointer",3,"href"],["cDropdownHeader","",1,"bg-body-secondary","text-body-secondary","fw-semibold","py-2",2,"padding","10px"],[1,"fa-solid","fa-ticket"],[1,"fa","fa-whatsapp"],["cDropdownItem","",2,"cursor","pointer",3,"href"],[1,"fa-regular","fa-paper-plane"],["alignment","end","variant","nav-item"],["cDropdownToggle","","aria-label","Open locale picker",3,"caret"],[1,"fa","fa-language"],[1,"selected-lang"],["cDropdownMenu",""],["cDropdownItem","",3,"class"],["class","endpoint-btn",3,"click",4,"ngIf"],["cDropdownToggle","","aria-label","Open theme picker",3,"caret"],["cIcon","","size","lg",3,"name"],["cDropdownItem","",1,"d-flex","align-items-center",3,"active","routerLink"],[1,"endpoint-btn",3,"click"],["target","_blank",3,"href"],["cDropdownItem","",1,"d-flex","align-items-center",3,"click","active","routerLink"],["cIcon","","size","lg",1,"me-2",3,"name"],["headerH4","Current Packs Subscribed",3,"modalSize","modalWidth","footerButtons"],["bordered","","align","middle","cTable","",1,"mb-0","border",3,"hover","responsive","striped"],[1,"text-nowrap","text-truncate"],[1,"bg-body-tertiary","text-center"],[2,"margin","0 0 0px"],["class","bg-body-tertiary text-center",4,"ngIf"],[1,"text-center"],["cTooltipPlacement","left",2,"text-decoration","underline","cursor","pointer",3,"cTooltip"],["class","text-center",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"closeModalHandler"],["headerH4","Redirection Consent",3,"footerButtons","bodyH4"]],template:function(n,i){if(n&1){let r=w();Dt(0),a(1,"c-container",3)(2,"c-sidebar-brand",4)(3,"img",5),y("error",function(p){return f(r),v(i.onImageError(p))}),s()(),x(4,r0,5,3,"c-input-group",6)(5,o0,2,7,"c-sidebar-brand",7)(6,a0,1,0,"app-search-overlay",8),a(7,"c-header-nav",9),x(8,s0,1,0,"ng-container",10)(9,l0,1,0,"ng-container",10)(10,c0,1,0,"ng-container",10)(11,d0,4,4,"button",11),s()(),Ot(),x(12,$0,8,17,"ng-template",null,0,Qt)(14,Z0,8,2,"ng-template",null,1,Qt)(16,Q0,7,3,"ng-template",null,2,Qt)(18,ou,53,40,"app-modal",12)(19,au,1,0,"app-crashplan-nav",13),a(20,"div",14)(21,"div",15)(22,"div",16)(23,"div",17)(24,"h4",18),u(25,"Step 1: Provide Consent"),s(),a(26,"a",19),C(27,"i",20),s()(),a(28,"div",21)(29,"h4"),u(30),m(31,"translate"),s(),a(32,"c-callout",22),u(33),m(34,"translate"),s()(),a(35,"div",23)(36,"button",24),y("click",function(){return f(r),v(i.denyConsentFlow())}),u(37,"Cancel"),s(),a(38,"button",25),y("click",function(){return f(r),v(i.proceedForConsentFlow())}),u(39,"Proceed"),s()()()()(),a(40,"div",14)(41,"div",15)(42,"div",16)(43,"div",17)(44,"h4",18),u(45),m(46,"translate"),s()(),a(47,"div",21)(48,"h4"),u(49),m(50,"translate"),s()(),a(51,"div",23)(52,"button",24),y("click",function(){return f(r),v(i.denyAssetConfigurationFlow())}),u(53),m(54,"translate"),s(),a(55,"button",25),y("click",function(){return f(r),v(i.proceedForAssetConfigurationFlow())}),u(56),m(57,"translate"),s()()()()(),C(58,"app-upload-panel"),x(59,su,2,11,"app-modal",26)(60,lu,2,11,"app-modal",26)(61,cu,2,11,"app-modal",26)}if(n&2){let r=pe(13),c=pe(15),p=pe(17);o(),d("fluid",!0),o(),d("routerLink",i.isMspEnabled&&$(36,ys).includes(i.userType)?$(37,ws):$(38,ys).includes(i.userType)?$(39,xs):$(40,ks))("ngStyle",i.userType==="superAdmin"?$(41,qp):$(42,$p)),o(),d("src",i.parabluLogo,we),o(),d("ngIf",!i.inclusionLicenses.includes("msp_environment_enabled")&&!$(43,Jp).includes(i.userType)&&i.onlySyncEnv=="false"),o(),d("ngIf",i.showCenterBrandLogo),o(),d("ngIf",i.isOverlayVisible),o(2),d("ngTemplateOutlet",c),o(),d("ngTemplateOutlet",p),o(),d("ngTemplateOutlet",r),o(),d("ngIf",i.conversationalAI),o(7),d("ngIf",i.stylePackDetails),o(),d("ngIf",i.showCrashplanEndpointLicenseModal),o(),d("ngStyle",A(44,Cs,i.displayConsentRemainder)),o(10),_(g(31,24,"For CrashPlan to be able to backup your Microsoft 365 assets, we will require your consent to read and write data from your Microsoft 365 tenant. To go ahead with the step of providing consent, please click on the Proceed button below.")),o(3),_(g(34,26,"Note: This step requires Microsoft 365 Global Administrator access. Please ensure you have the necessary credentials before proceeding.")),o(7),d("ngStyle",A(46,Cs,i.displayAssetConfigurationRemainder)),o(5),_(g(46,28,"Step 2: Configure Assets")),o(4),I(" ",g(50,30,"You have not configured any Microsoft 365 assets to be backed up yet. Would you like to proceed with asset configuration?"),""),o(4),_(g(54,32,"Cancel")),o(3),_(g(57,34,"Proceed")),o(3),d("ngIf",i.redirectConsentStyle),o(),d("ngIf",i.redirectPaddleConsentStyle),o(),d("ngIf",i.redirectProductConsentStyle)}},dependencies:[bi,us,Ci,Ta,_t,na,Sa,jn,Bn,_a,ga,mi,ma,fa,ha,_i,vi,fi,vs,ne,Ge,ie,lt,me,he,ze,xi,ft,Ka,gi,ge,bs],styles:[".endpoint-btn[_ngcontent-%COMP%]{background-color:#f2f9fc!important;border-radius:5px;padding:0 1em;font-weight:700;color:#062d4d!important;border-color:#062d4d}.endpoint-btn[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none!important;color:#062d4d!important}.selected-lang[_ngcontent-%COMP%]{font-size:.8em;border-radius:4px;padding:3px;background:#d3d3d3;margin:2px}.ai-toggle[_ngcontent-%COMP%]{margin-inline-start:-14px;margin-left:30px;background:#deeafd;border-radius:30px}.active[_ngcontent-%COMP%]{background-color:--cui-sidebar-nav-link-active-bg}"]})}}return t})();var du=4,pu=.001,uu=1e-7,hu=10,Nt=11,Di=1/(Nt-1),mu=typeof Float32Array=="function";function Is(t,l){return 1-3*l+3*t}function Es(t,l){return 3*l-6*t}function Ps(t){return 3*t}function Oi(t,l,e){return((Is(l,e)*t+Es(l,e))*t+Ps(l))*t}function Ms(t,l,e){return 3*Is(l,e)*t*t+2*Es(l,e)*t+Ps(l)}function gu(t,l,e,n,i){let r,c,p=0;do c=l+(e-l)/2,r=Oi(c,n,i)-t,r>0?e=c:l=c;while(Math.abs(r)>uu&&++p<hu);return c}function _u(t,l,e,n){for(let i=0;i<du;++i){let r=Ms(l,e,n);if(r===0)return l;let c=Oi(l,e,n)-t;l-=c/r}return l}function fu(t){return t}function vu(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 fu;let i=mu?new Float32Array(Nt):new Array(Nt);for(let c=0;c<Nt;++c)i[c]=Oi(c*Di,t,e);function r(c){let p=0,b=1,k=Nt-1;for(;b!==k&&i[b]<=c;++b)p+=Di;--b;let E=(c-i[b])/(i[b+1]-i[b]),P=p+E*Di,D=Ms(P,t,e);return D>=pu?_u(c,P,t,e):D===0?P:gu(c,p,p+Di,t,e)}return function(p){return p===0?0:p===1?1:Oi(r(p),l,n)}}var bu=new nt("SMOOTH_SCROLL_OPTIONS"),Ds=(()=>{class t{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(e,n,i){this._document=e,this._platform=n,this._onGoingScrolls=new Map,this._defaultOptions=Z({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},i)}_scrollElement(e,n,i){e.scrollLeft=n,e.scrollTop=i}_getElement(e,n){return typeof e=="string"?(n||this._document).querySelector(e):da(e)}_initSmoothScroll(e){return this._onGoingScrolls.has(e)&&this._onGoingScrolls.get(e).next(),this._onGoingScrolls.set(e,new Ne).get(e)}_isFinished(e,n,i){return e.currentX!==e.x||e.currentY!==e.y?!0:(n.next(),i(),!1)}_interrupted(e,n){return Ve(Q(e,"wheel",{passive:!0,capture:!0}),Q(e,"touchmove",{passive:!0,capture:!0}),n).pipe(ln(1))}_destroy(e,n){n.complete(),this._onGoingScrolls.delete(e)}_step(e){return new it(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),Lt.schedule(()=>n.next(e))})}_applyScrollToOptions(e,n){if(!n.duration)return this._scrollElement(e,n.left,n.top),Promise.resolve();let i=this._initSmoothScroll(e),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:vu(n.easing.x1,n.easing.y1,n.easing.x2,n.easing.y2)};return new Promise(c=>{Ke(null).pipe(dn(()=>this._step(r).pipe(hn(p=>this._isFinished(p,i,c)))),Ce(this._interrupted(e,i)),pn(()=>this._destroy(e,i))).subscribe()})}scrollTo(e,n){if(Mn(this._platform)){let i=this._getElement(e),r=getComputedStyle(i).direction==="rtl",c=Ii(),p=Ae(Z(Z({},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 p.bottom!=null&&(p.top=i.scrollHeight-i.clientHeight-p.bottom),r&&c!==0?(p.left!=null&&(p.right=i.scrollWidth-i.clientWidth-p.left),c===2?p.left=p.right:c===1&&(p.left=p.right?-p.right:p.right)):p.right!=null&&(p.left=i.scrollWidth-i.clientWidth-p.right),this._applyScrollToOptions(i,p)}return Promise.resolve()}scrollToElement(e,n,i={}){let r=this._getElement(e),c=this._getElement(n,r),p=Ae(Z({},i),{left:c.offsetLeft+(i.left||0),top:c.offsetTop+(i.top||0)});return c?this.scrollTo(r,p):Promise.resolve()}static{this.\u0275fac=function(n){return new(n||t)(H(ue),H(yn),H(bu,8))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cu=["scrollbarY"],Su=["scrollbarX"],wu=["*"];function xu(t,l){if(t&1&&C(0,"scrollbar-x",null,0),t&2){let e=h(2);Ue("scrollable",e.state.isHorizontallyScrollable)("fit",e.state.verticalUsed)}}function ku(t,l){if(t&1&&C(0,"scrollbar-y",null,1),t&2){let e=h(2);Ue("scrollable",e.state.isVerticallyScrollable)("fit",e.state.horizontalUsed)}}function Tu(t,l){if(t&1&&(Dt(0),x(1,xu,2,2,"scrollbar-x",5)(2,ku,2,2,"scrollbar-y",5),Ot()),t&2){let e=h();o(),d("ngIf",e.state.horizontalUsed),o(),d("ngIf",e.state.verticalUsed)}}var Iu=(()=>{class t{constructor(e){this.el=e}set ngAttr(e){for(let[n,i]of Object.entries(e))this.el.nativeElement.setAttribute(n,i)}static{this.\u0275fac=function(n){return new(n||t)(S(le))}}static{this.\u0275dir=de({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}}return t})();function Fs(t){return G(()=>{t.onselectstart=()=>!1})}function Bs(t){return G(()=>{t.onselectstart=null})}function Ye(){return G(t=>t.stopPropagation())}function Zi(t,l){return t.clientX>=l.left&&t.clientX<=l.left+l.width&&t.clientY>=l.top&&t.clientY<=l.top+l.height}var Yi=(()=>{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 it(i=>{let r=Q(this.nativeElement,"mousemove",{passive:!0}),c=e?r:r.pipe(Ye()),p=Q(this.nativeElement,"mouseleave",{passive:!0}).pipe(Y(()=>!1));Ve(c,p).pipe(G(b=>i.next(b)),Ce(n)).subscribe()}),this.clicked=new it(i=>{let r=Q(this.nativeElement,"mousedown",{passive:!0}).pipe(G(p=>i.next(p))),c=Q(this.nativeElement,"mouseup",{passive:!0}).pipe(G(()=>i.next(!1)));r.pipe(Tt(()=>c),Ce(n)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(e){this.nativeElement.className+=` ng-native-scrollbar-hider ng-scroll-viewport ${e}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(e){this.nativeElement.scrollTop=e}scrollXTo(e){this.nativeElement.scrollLeft=e}static{this.\u0275fac=function(n){return new(n||t)(S(le))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollViewport",""]]})}}return t})(),Te=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Xi=(()=>{class t{get clicked(){let e=Q(this.trackElement,"mousedown",{passive:!0}).pipe(Ye(),Fs(this.document)),n=Q(this.document,"mouseup",{passive:!0}).pipe(Ye(),Bs(this.document),Tt(()=>rn));return Ve(e,n)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(e,n,i){this.cmp=e,this.trackElement=n,this.document=i}onTrackClicked(e,n,i){return Ke(e).pipe(Y(r=>r[this.pageProperty]),Y(r=>(r-this.offset-n/2)/this.size*i),G(r=>{this.cmp.scrollTo(Ae(Z({},this.mapToScrollToOption(r)),{duration:Li(this.cmp.trackClickScrollDuration)}))}))}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(HTMLElement),S(Document))}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Ki=(()=>{class t extends Xi{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{left:e}}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarTrackX",""]],features:[xe]})}}return t})(),Qi=(()=>{class t extends Xi{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(e,n,i){super(e,n.nativeElement,i),this.cmp=e,this.document=i}mapToScrollToOption(e){return{top:e}}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarTrackY",""]],features:[xe]})}}return t})(),Rs=(()=>{class t{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return Q(this.thumbElement,"mousedown",{passive:!0}).pipe(Ye())}constructor(e,n,i,r){this.cmp=e,this.track=n,this.thumbElement=i,this.document=r,this._dragging=new Ne,this.dragging=this._dragging.pipe(zt())}update(){let e=Eu(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),n=Pu(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);Lt.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),e))}dragged(e){let n,i,r=Ke(e).pipe(Fs(this.document),G(()=>{n=this.trackMax,i=this.viewportScrollMax,this.setDragging(!0)})),c=Q(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Ye()),p=Q(this.document,"mouseup",{capture:!0}).pipe(Ye(),Bs(this.document),G(()=>this.setDragging(!1)));return r.pipe(Y(b=>b[this.pageProperty]),Y(b=>b-this.dragStartOffset),on(b=>c.pipe(Y(k=>k[this.clientProperty]),Y(k=>k-this.track.offset),Y(k=>i*(k-b)/n),Y(k=>this.handleDrag(k,i)),G(k=>this.scrollTo(k)),Ce(p))))}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(Xi),S(HTMLElement),S(Document))}}static{this.\u0275dir=de({type:t,outputs:{dragging:"dragging"},standalone:!1})}}return t})();function Eu(t,l,e){let i=t/l*t;return Math.max(~~i,e)}function Pu(t,l,e){return t*e/l}var Os=(()=>{class t extends Rs{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,c){super(e,n,i.nativeElement,r),this.cmp=e,this.track=n,this.element=i,this.document=r,this.dir=c}updateStyles(e,n){this.thumbElement.style.width=`${n}px`,this.thumbElement.style.transform=`translate3d(${e}px, 0, 0)`}handleDrag(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===1)return e-n;if(this.cmp.manager.rtlScrollAxisType===2)return n-e}return e}handleDirection(e,n){if(this.dir.value==="rtl"){if(this.cmp.manager.rtlScrollAxisType===2)return-e;if(this.cmp.manager.rtlScrollAxisType===0)return e-n}return e}setDragging(e){this.cmp.setDragging({horizontalDragging:e})}scrollTo(e){this.cmp.viewport.scrollXTo(e)}static{this.\u0275fac=function(n){return new(n||t)(S(Te),S(Ki),S(le),S(ue),S(Hi))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarThumbX",""]],features:[xe]})}}return t})(),As=(()=>{class t extends Rs{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)(S(Te),S(Qi),S(le),S(ue))}}static{this.\u0275dir=de({type:t,selectors:[["","scrollbarThumbY",""]],features:[xe]})}}return t})(),Ns=(()=>{class t{constructor(e,n,i,r,c){this.el=e,this.cmp=n,this.platform=i,this.document=r,this.zone=c,this.destroyed=new Ne}activatePointerEvents(){let e,n,i;return this.cmp.pointerEventsMethod==="viewport"?(this.viewportTrackClicked=new Ne,this.viewportThumbClicked=new Ne,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),e=this.viewportThumbClicked,n=this.viewportTrackClicked,i=this.cmp.viewport.hovered.pipe(Y(r=>r?Zi(r,this.el.getBoundingClientRect()):!1),zt(),G(r=>this.document.onselectstart=r?()=>!1:null)),this.cmp.viewport.clicked.pipe(G(r=>{r?Zi(r,this.thumb.clientRect)?this.viewportThumbClicked.next(r):Zi(r,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(r)):this.cmp.setClicked(!1)}),Ce(this.destroyed)).subscribe()):(e=this.thumb.clicked,n=this.track.clicked,i=this.hovered),Ve(i.pipe(G(r=>this.setHovered(r))),e.pipe(Tt(r=>this.thumb.dragged(r))),n.pipe(Tt(r=>this.track.onTrackClicked(r,this.thumb.size,this.viewportScrollSize))))}get hovered(){let e=Q(this.el,"mouseenter",{passive:!0}).pipe(Ye(),Y(()=>!0)),n=Q(this.el,"mouseleave",{passive:!0}).pipe(Ye(),Y(()=>!1));return Ve(e,n)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe(Ce(this.destroyed)).subscribe(),Ve(this.cmp.scrolled,this.cmp.updated).pipe(G(()=>this.thumb?.update()),Ce(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}static{this.\u0275fac=function(n){return new(n||t)(S(HTMLElement),S(Te),S(ut),S(Document),S(Ie))}}static{this.\u0275dir=de({type:t,standalone:!1})}}return t})(),Mu=(()=>{class t extends Ns{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(e,n,i,r,c){super(e.nativeElement,n,i,r,c),this.cmp=n,this.platform=i,this.document=r,this.zone=c}setHovered(e){this.cmp.setHovered({verticalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Te),S(ut),S(ue),S(Ie))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-y"]],viewQuery:function(n,i){if(n&1&&(q(Qi,7),q(As,7)),n&2){let r;z(r=j())&&(i.track=r.first),z(r=j())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(n,i){n&1&&(a(0,"div",0),C(1,"div",1),s()),n&2&&(Mt("ng-scrollbar-track ",i.cmp.trackClass,""),o(),Mt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Qi,As],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})(),Du=(()=>{class t extends Ns{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(e,n,i,r,c){super(e.nativeElement,n,i,r,c),this.cmp=n,this.platform=i,this.document=r,this.zone=c}setHovered(e){this.cmp.setHovered({horizontalHovered:e})}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Te),S(ut),S(ue),S(Ie))}}static{this.\u0275cmp=L({type:t,selectors:[["scrollbar-x"]],viewQuery:function(n,i){if(n&1&&(q(Ki,7),q(Os,7)),n&2){let r;z(r=j())&&(i.track=r.first),z(r=j())&&(i.thumb=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("scrollbar-control",!0)},features:[xe],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(n,i){n&1&&(a(0,"div",0),C(1,"div",1),s()),n&2&&(Mt("ng-scrollbar-track ",i.cmp.trackClass,""),o(),Mt("ng-scrollbar-thumb ",i.cmp.thumbClass,""))},dependencies:[Ki,Os],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})(),Ou=new nt("NG_SCROLLBAR_OPTIONS"),Us={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},Vs=(()=>{class t{constructor(e){this.globalOptions=e?Z(Z({},Us),e):Us,this.rtlScrollAxisType=Ii()}static{this.\u0275fac=function(n){return new(n||t)(H(Ou,8))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Au=(()=>{class t{constructor(e,n,i){this.document=e,this.manager=n,this.platform=i,this._scrollbarSize=new nn(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),i.isBrowser&&Q(this.document.defaultView,"resize",{passive:!0}).pipe(Ni(this.manager.globalOptions.windowResizeDebounce),Y(()=>this.getNativeScrollbarSize()),zt(),G(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)(H(ue),H(Vs),H(ut))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uu=(()=>{class t{constructor(e,n,i){this.renderer=n,this.hideNativeScrollbar=i,this._subscriber=tn.EMPTY,this._subscriber=i.scrollbarSize.subscribe(r=>{this.renderer.setStyle(e.nativeElement,"--native-scrollbar-size",`-${r}px`,Cn.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(ot),S(Au))}}static{this.\u0275dir=de({type:t,selectors:[["","hideNativeScrollbar",""]]})}}return t})(),Fu=(()=>{class t{get debounce(){return this._debounce}set debounce(e){this._debounce=Li(e),this._subscribe()}get disabled(){return this._disabled}set disabled(e){this._disabled=We(e),this._disabled?this._unsubscribe():this._subscribe()}constructor(e,n,i){if(this.zone=e,this.platform=n,this.scrollbar=i,this._disabled=!1,this._currentSubscription=null,this.event=new Se,!i)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){let e=new it(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(Ni(this._debounce)):e).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(Ie),S(ut),S(Te))}}static{this.\u0275dir=de({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:[0,"sensorDebounce","debounce"],disabled:[0,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}}return t})(),Ls=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=We(e)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(e){this._sensorDisabled=We(e)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(e){this._pointerEventsDisabled=We(e)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(e){this._viewportPropagateMouseMove=We(e)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(e){this._autoHeightDisabled=We(e)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(e){this._autoWidthDisabled=We(e)}get nativeElement(){return this.el.nativeElement}constructor(e,n,i,r,c,p){this.el=e,this.zone=n,this.changeDetectorRef=i,this.dir=r,this.smoothScroll=c,this.manager=p,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Se,this.state={},this.destroyed=new Ne}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=Z(Z({},this.state),e),this.changeDetectorRef.detectChanges()}getScrolledByDirection(e){let n;return this.scrolled.pipe(G(i=>n=i),Y(i=>i.target[e]),un(),Gt(([i,r])=>i!==r),Y(()=>n))}setHovered(e){this.zone.run(()=>this.setState(Z({},e)))}setDragging(e){this.zone.run(()=>this.setState(Z({},e)))}setClicked(e){this.zone.run(()=>this.setState({scrollbarClicked:e}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let e=Q(this.viewport.nativeElement,"scroll",{passive:!0});e=this.scrollAuditTime?e.pipe(sn(this.scrollAuditTime)):e,this.scrolled=e.pipe(Ce(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(e){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe(G(()=>this.update()),Ce(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(e){return this.smoothScroll.scrollTo(this.viewport.nativeElement,e)}scrollToElement(e,n){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,e,n)}updateHeight(){this.appearance==="standard"&&this.scrollbarX?this.nativeElement.style.height=`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:this.nativeElement.style.height=`${this.viewport.contentHeight}px`}updateWidth(){this.appearance==="standard"&&this.scrollbarY?this.nativeElement.style.width=`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:this.nativeElement.style.width=`${this.viewport.contentWidth}px`}static{this.\u0275fac=function(n){return new(n||t)(S(le),S(Ie),S(Ee),S(Hi),S(Ds),S(Vs))}}static{this.\u0275cmp=L({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(n,i,r){if(n&1&&In(r,Yi,7),n&2){let c;z(c=j())&&(i.customViewPort=c.first)}},viewQuery:function(n,i){if(n&1&&(q(Cu,5,le),q(Su,5,le),q(Yi,7)),n&2){let r;z(r=j())&&(i.scrollbarY=r.first),z(r=j())&&(i.scrollbarX=r.first),z(r=j())&&(i.defaultViewPort=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&Le("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[ee([{provide:Te,useExisting:t}]),jt],ngContentSelectors:wu,decls:6,vars:4,consts:[["scrollbarX",""],["scrollbarY",""],[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"resizeSensor","sensorDebounce","sensorDisabled"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"]],template:function(n,i){n&1&&(kn(),a(0,"div",2)(1,"div",3),y("resizeSensor",function(){return i.update()}),a(2,"div",4)(3,"div"),Tn(4),s()()(),x(5,Tu,3,2,"ng-container",5),s()),n&2&&(d("ngAttr",i.state),o(),d("sensorDebounce",i.sensorDebounce)("sensorDisabled",i.sensorDisabled),o(4),d("ngIf",!i.disabled))},dependencies:[ie,Iu,Fu,Yi,Uu,Du,Mu],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 Hs=t=>[{name:t.instant("Dashboard"),url:"/dashboard",icon:"fa-solid fa-house",visible:!0,key:"Dashboard"},{name:t.instant("My BluVault"),url:"/bluvault",icon:"fa-solid fa-database",visible:!0,key:"My BluVault"},{name:t.instant("My Files"),url:"/sync/files",icon:"fa-solid fa-file",visible:!0,key:"My BluSync"},{name:t.instant("Settings"),url:"/settings",icon:"fa-solid fa-gears",visible:!0,key:"Settings"},{name:t.instant("Manage assets"),url:"/manageAssets",icon:"fa-solid fa-cubes",visible:!0,key:"Manage assets"},{name:t.instant("Policy Management"),url:"/pms",icon:"fa-regular fa-file-lines",visible:!0,key:"Policy Management"},{name:t.instant("User Migration"),url:"/userMigration",icon:"fa-solid fa-arrow-right-arrow-left",visible:!0,key:"User Migration"},{name:t.instant("Users"),url:"/users",icon:"fa-solid fa-users",visible:!0,key:"Users"},{name:t.instant("Unusual Activity Dashboard"),url:"/manageUnusualActivities",icon:"fa-solid fa-shield",visible:!0,key:"Unusual Activity Dashboard"},{name:t.instant("Support"),url:"/support",icon:"fa-solid fa-headset",visible:!0,key:"Support"},{name:t.instant("Downloads"),url:"/downloads",icon:"fa-solid fa-cloud-arrow-down",visible:!0,key:"Downloads"}];var Bu=["sidebar2"];function Ru(t,l){if(t&1&&(a(0,"div",31),C(1,"div",7),a(2,"div",17)(3,"div",18)(4,"div",19),u(5),m(6,"translate"),s(),a(7,"div",20),u(8),s()(),a(9,"div",32),C(10,"i",33),s()()()),t&2){let e=h();o(),ce("background-image","url("+e.neilLogo+")"),o(4),_(g(6,4,"AI Help")),o(3),_(e.todaysDate)}}var Gs=(()=>{class t{constructor(e,n,i,r,c,p,b){this.authService=e,this.router=n,this.apiService=i,this.toastr=r,this.sharedService=c,this.TranslateService=p,this.userRoleService=b,this.sidebarId2="sidebar2",this.imageSrc=["assets/images/neil.png","assets/images/crashplan-logo.png","assets/images/avatars/default.jpg","assets/CrashPlanFavicon.png"],this.islean=!1,this.conversationalAI=!1,this.currentYear=new Date().getFullYear(),this.displayCreateStyle=!1,this.neilLogo="",this.userLogo="",this.userName="",this.aiLogo="",this.backupIndex="technote",this.query="",this.chatHistory=[],this.answer="",this.sourcesLinks=[],this.session_id="",this.index=0,this.userType="",this.isSidebarOpen=!1,this.loading=!1,this.closeChatbot=()=>{this.displayCreateStyle=!1},this.collapses=[!1,!1,!1,!1],this.neilLogo="./assets/images/ai_icon.png",this.userLogo=this.imageSrc[2],this.todaysDate=this.formatDate(new Date),this.init()}init(){return V(this,null,function*(){this.userType=yield this.userRoleService.getUserRole(),this.userName=atob(this.sharedService.getDataByKey("userName"))})}formatDate(e){var n="0"+e.getHours(),i="0"+e.getMinutes();n=n.slice(-2),i=i.slice(-2);var r=n+":"+i;return r}closeSidebar(){this.sidebar2.close?.()}onImageError(e){let n=e.target;n.src=this.imageSrc[1]}openChatbot(){this.displayCreateStyle=!0}addChatEntry(e,n){this.chatHistory.push([e,n])}getChatHistory(){return this.chatHistory}onScrollbarUpdate(e){}startOverChat(){this.session_id="";let e=document.querySelector(".msger-chat");if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.loading=!0,this.createChatLayoutBot(this.TranslateService.instant("Hello ! Ask me anything about CrashPlan Software"),"",0),this.apiService.startOverChat(this.islean).subscribe(n=>{this.loading=!1,this.session_id=n.body.session_id},n=>{switch(this.loading=!1,this.query="",n.status){case 400:break;case 401:this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break}})}get(e,n=document){return n.querySelector(e)}toggleCollapse(e){this.collapses[e]=!this.collapses[e]}createChatLayoutBot(e,n,i){let r=this.neilLogo,c=this.get(".msger-chat");k(this.TranslateService.instant("AI Help"),r,"left",e,n);function p(E){var P="0"+E.getHours(),D="0"+E.getMinutes();P=P.slice(-2),D=D.slice(-2);var M=P+":"+D;return M}function b(E,P){return Math.floor(Math.random()*(P-E)+E)}function k(E,P,D,M,O){let U=p(new Date),ae="msg-"+Date.now()+"-"+Math.floor(Math.random()*1e4);M=M.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");let De="";O==""&&i==0?De=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${P}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${E}</div>
                <div class="msg-info-time">${U}</div>
              </div>
              <div class="msg-text">${M}</div>
            </div>
          </div>`:De=`
          <div class="msg ${D}-msg">
            <div class="msg-img" style="background-image: url('${P}')"></div>
            <div class="msg-bubble">
              <div class="msg-info">
                <div class="msg-info-name">${E}</div>
                <div class="msg-info-time">${U}</div>
              </div>
              <div class="msg-text">${M}</div>
              ${O&&O.length>0?`
              <p>
                <a href="javascript:void(0);" id="${ae}-toggle" class="me-1 toggle-sources" style="color: black; text-decoration: underline; padding: 0; font-size: 14px;">
                  Show sources
                </a>
              </p>
              <div id="${ae}-sources" class="sources-container" style="display: none;">
                ${O.map(F=>`
                  <div class="mb-3">
                    <p><strong>\u{1F4C4} File:</strong> ${F.filename}</p>
                    <p><strong>\u2B50 Relevance Score:</strong> ${F.score}</p>
                    <p><strong>\u{1F4CC} Snippet:</strong> ${F.snippet}</p>
                    <hr />
                  </div>
                `).join("")}
              </div>
              `:""}
            </div>
          </div>`,c.insertAdjacentHTML("beforeend",De),setTimeout(()=>{let F=document.getElementById(`${ae}-toggle`),Oe=document.getElementById(`${ae}-sources`);F&&Oe&&F.addEventListener("click",function(){let Ri=Oe.style.display==="none";Oe.style.display=Ri?"block":"none",F.innerText=Ri?"Hide sources":"Show sources"})},0),c.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"));b(r,n,"right",e);function c(k){var E="0"+k.getHours(),P="0"+k.getMinutes();E=E.slice(-2),P=P.slice(-2);var D=E+":"+P;return D}function p(k,E){return Math.floor(Math.random()*(E-k)+k)}function b(k,E,P,D){var M=c(new Date);let O='<div class="msg '+P+'-msg"><div class="msg-img" style="background-image: url('+E+')"></div><div class="msg-bubble"><div class="msg-info"><div class="msg-info-name">'+k+'</div><div class="msg-info-time">'+M+'</div></div><div class="msg-text">'+D+"</div></div></div>";i.insertAdjacentHTML("beforeend",O),i.scrollTop+=500}}getChatbotResults(){if(!this.query){this.toastr.info("Please specify a question.","Info");return}this.chatHistory=this.getChatHistory(),this.index=this.index+1,this.createChatLayoutUser(this.query),this.loading=!0,this.apiService.getChatbotResults(this.query,this.session_id,this.islean).subscribe(e=>{this.loading=!1,this.query="",this.answer=e.body.answer,this.sourcesLinks=e.body.sources,this.session_id=e.body.session_id,this.createChatLayoutBot(this.answer,this.sourcesLinks,this.index)},e=>{switch(this.loading=!1,this.query="",this.createChatLayoutBot("Something went wrong, Please try after some time.","",this.index),e.status){case 400:break;case 401:this.toastr.info(this.TranslateService.instant("Token expired, navigating to logout page."),this.TranslateService.instant("Info")),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:break;case 404:break;case 500:case 503:break;default:break}})}static{this.\u0275fac=function(n){return new(n||t)(S(J),S(re),S(W),S(be),S(ye),S(oe),S(fe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-default-right"]],viewQuery:function(n,i){if(n&1&&q(Bu,5),n&2){let r;z(r=j())&&(i.sidebar2=r.first)}},inputs:{sidebarId2:"sidebarId2",conversationalAI:"conversationalAI"},features:[ee([J,W])],decls:50,vars:33,consts:[["sidebar2","cSidebar"],["colorScheme","dark","id","sidebar2","placement","end",1,"d-print-none","sidebar","right-sidebar",3,"visible"],[1,"col-lg-12",2,"padding-right","0px"],[1,"chat","col-lg-12","fullwidth",2,"overflow-y","auto","padding-right","0px"],[1,"msger"],[1,"msger-header"],[1,"msger-header-title"],[1,"msg-img"],[1,"msg-ttl"],[1,"msger-header-options"],[1,"chatStart","btn","btn-outline-secondary",2,"font-size","14px","text-decoration","underline","cursor","pointer",3,"click"],[1,"fa","fa-edit"],[1,"close-link","btn","btn-outline-secondary",2,"margin-left",".4em","padding","3.6px 7px"],["cHeaderToggler","","toggle","visible",2,"font-size","14px","text-decoration","underline","cursor","pointer",3,"cSidebarToggle"],[1,"fa","fa-window-close"],[1,"msger-chat",2,"height","550px","overflow","scroll"],[1,"msg","left-msg"],[1,"msg-bubble"],[1,"msg-info"],[1,"msg-info-name"],[1,"msg-info-time"],[1,"msg-text",3,"innerHTML"],["class","msg left-msg bottom-padded",4,"ngIf"],[1,"background-standard-tile"],["for","query",1,"text-bold"],["ng-submit","getChat()"],[1,"col-lg-12"],["type","text","localizedValidate","","name","query","id","query","autocomplete","off","autofocus","",1,"form-control",2,"background-color","whitesmoke","color","black",3,"ngModelChange","ngModel","placeholder"],[1,"col-lg-12",2,"margin","10px 0px 10px 0px"],["id","submitChat",1,"btn","btn-primary","pull-right",3,"click"],[1,"text-center","disclaimer-text"],[1,"msg","left-msg","bottom-padded"],[1,"msg-text"],[1,"fa","fa-spinner","fa-4x","fa-pulse","fa-fw"]],template:function(n,i){if(n&1){let r=w();a(0,"c-sidebar",1,0)(2,"div",2)(3,"div",3)(4,"section",4)(5,"header",5)(6,"div",6),C(7,"div",7),a(8,"span",8),u(9),m(10,"translate"),s()(),a(11,"div",9)(12,"span")(13,"a",10),y("click",function(){return f(r),v(i.startOverChat())}),u(14),m(15,"translate"),C(16,"i",11),s()(),a(17,"span",12)(18,"a",13),C(19,"i",14),s()()()(),a(20,"main",15)(21,"div",16),C(22,"div",7),a(23,"div",17)(24,"div",18)(25,"div",19),u(26),m(27,"translate"),s(),a(28,"div",20),u(29),s()(),C(30,"div",21),m(31,"translate"),s()()(),x(32,Ru,11,6,"div",22),a(33,"c-card",23)(34,"c-card-header")(35,"label",24),u(36),m(37,"translate"),s()(),a(38,"c-card-body")(39,"form",25)(40,"div",26)(41,"input",27),m(42,"translate"),N("ngModelChange",function(p){return f(r),R(i.query,p)||(i.query=p),v(p)}),s()(),a(43,"div",28)(44,"button",29),y("click",function(){return f(r),v(i.getChatbotResults())}),u(45),m(46,"translate"),s()()()()(),a(47,"div",30),u(48),m(49,"translate"),s()()()()()}n&2&&(d("visible",i.isSidebarOpen),o(7),ce("background-image","url("+i.neilLogo+")"),o(2),_(g(10,17,"AI Help")),o(5),I("",g(15,19,"Start Over")," "),o(4),d("cSidebarToggle",i.sidebarId2),o(4),ce("background-image","url("+i.neilLogo+")"),o(4),_(g(27,21,"AI Help")),o(3),_(i.todaysDate),o(),d("innerHTML",g(31,23,"Hello ! Ask me anything about CrashPlan Software"),ve),o(2),d("ngIf",i.loading),o(4),_(g(37,25,"Query :")),o(5),B("ngModel",i.query),d("placeholder",g(42,27,"Ask a question here...")),o(4),_(g(46,29,"Send")),o(3),_(g(49,31,"This chatbot uses AI to generate responses and may not be always accurate or complete.")))},dependencies:[Si,mt,ht,gt,wi,_t,je,Fa,vt,bt,Aa,yt,Ua,ne,ie,he,$e,qe,Je,Ze,ge,Ci],styles:[".right-sidebar[_ngcontent-%COMP%]{position:relative!important;right:0;top:0;width:380px!important;height:100%;background-color:#f0f0f0;overflow-y:auto;--cui-sidebar-width: 380px;z-index:0}.form-check-input[_ngcontent-%COMP%]{background-color:#f0f0f0}.form-check-input[_ngcontent-%COMP%]:checked{background-color:#062d4d}input[_ngcontent-%COMP%]::placeholder{opacity:.5;color:#000}.background-standard-tile[_ngcontent-%COMP%]{background-color:#deeafd!important;color:#666}.fullwidth[_ngcontent-%COMP%]{height:calc(100vh - 10em)}.bottom-padded[_ngcontent-%COMP%]{margin-bottom:20px!important}.text-bold[_ngcontent-%COMP%]{font-weight:700}.disclaimer-text[_ngcontent-%COMP%]{font-size:.6em;vertical-align:bottom;padding-top:.4em}"]})}}return t})();function Nu(t,l){t&1&&(a(0,"div",0),C(1,"div",1),s())}var zs=(()=>{class t{constructor(e,n){this.loadingService=e,this.router=n,this.detectRouteTransitions=!1,this.loading$=this.loadingService.loading$}ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe(G(e=>{e instanceof Hn?this.loadingService.loadingOn():e instanceof Gn&&this.loadingService.loadingOff()})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(S(oi),S(re))}}static{this.\u0275cmp=L({type:t,selectors:[["loading-indicator"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},decls:2,vars:3,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(n,i){n&1&&(x(0,Nu,2,0,"div",0),m(1,"async")),n&2&&Jt(g(1,1,i.loading$)?0:-1)},dependencies:[Xa,ei],styles:['.spinner-container[_ngcontent-%COMP%]{position:fixed;height:100%;width:100%;display:flex;justify-content:center;align-items:center;top:0;left:0;background:#00000052;z-index:2000}.spinner[_ngcontent-%COMP%]{width:60px;height:56px;display:grid;border-radius:50%;mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);-webkit-mask:radial-gradient(farthest-side,rgba(0,0,0,0) 40%,rgb(80,80,80) 41%);background:linear-gradient(0deg,#50505080 50%,#505050 0) center/4.5px 100%,linear-gradient(90deg,#50505040 50%,#505050bf 0) center/100% 4.5px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_spinner-d3o0rx 1s infinite steps(12)}.spinner[_ngcontent-%COMP%]:before, .spinner[_ngcontent-%COMP%]:after{content:"";grid-area:1/1;border-radius:50%;background:inherit;opacity:.915;transform:rotate(30deg)}.spinner[_ngcontent-%COMP%]:after{opacity:.83;transform:rotate(60deg)}@keyframes _ngcontent-%COMP%_spinner-d3o0rx{to{transform:rotate(1turn)}}']})}}return t})();var Ai={provide:"httpHeaders",useFactory:t=>new Dn({"Content-Type":"application/json",Accept:"application/json",token:t.Token||"","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}),deps:[J]};var Vu=t=>({cloudPropertyElement:t}),Lu=t=>({"opacity-50":t});function Hu(t,l){if(t&1){let e=w();a(0,"c-sidebar",13,0)(2,"c-sidebar-header",14)(3,"a",15),y("click",function(){f(e);let i=h();return v(i.togglePin())}),C(4,"i",16),s()(),a(5,"ng-scrollbar",17,1),y("updated",function(){f(e);let i=pe(1),r=h();return v(r.onScrollbarUpdate(i))}),C(7,"c-sidebar-nav",18,2),s()()}if(t&2){let e=h();o(4),ce("transform",e.isSidebarPinned?"none":"rotate(45deg)"),d("ngClass",A(4,Lu,!e.isSidebarPinned)),o(3),d("navItems",e.navItems)}}function Gu(t,l){t&1&&C(0,"app-default-right")}var js=(()=>{class t{constructor(e,n,i,r,c,p,b,k){this.cdr=e,this.router=n,this.licenseCheckService=i,this.userRoleService=r,this.apiService=c,this.TranslateService=p,this.toastr=b,this.configService=k,this.navItems=[],this.parabluLogo="",this.crashplanLogo="",this.ransomewareSuit=!1,this.isMspEnabled=!1,this.userType="admin",this.showSideBar=!0,this.inclusionLicenses=[],this.exclusionLicenses=[],this.cloudPropertyElement=null,this.isSidebarPinned=!0,this.userLicenses={},this.sidebarId="sidebar1",this.imageSrc=["assets/brand/header_logo.png","assets/brand/login_logo.png","assets/images/crashplan-logo.png","assets/images/login_logo.png","assets/images/crashplan-logo-reverse.png"];let E=localStorage.getItem("theme-default"),P=E||localStorage.setItem("theme-default",'"light"');this.imageSrc[1]=`/brandings/${k.cloudName}/brandings/login_logo.png`,this.imageSrc[0]=`/brandings/${k.cloudName}/brandings/header_logo.png`,this.parabluLogo=P==="dark"?this.imageSrc[4]:this.imageSrc[0],this.crashplanLogo=this.imageSrc[1]}ngOnInit(){return V(this,null,function*(){this.navItems=Hs(this.TranslateService),this.userType=yield this.userRoleService.getUserRole(),this.userLicenses=yield this.userRoleService.getUserFlags(),this.navItems=yield this.getFilteredNavItems(),this.router.events.subscribe(e=>{e instanceof dt&&this.getCloudProperties()}),this.getCloudProperties()})}togglePin(){this.isSidebarPinned=!this.isSidebarPinned}safeStringify(e,n=2){let i=new WeakSet;return JSON.stringify(e,function(r,c){if(typeof c=="object"&&c!==null){if(i.has(c))return"[Circular]";i.add(c)}return c},n)}getCloudProperties(){this.apiService.cloudProperties().subscribe(e=>{var n=JSON.stringify(e.body),i=JSON.parse(n);this.cloudPropertyElement=i.cloudPropertyElement,this.cdr.detectChanges()})}onScrollbarUpdate(e){}getFilteredNavItems(){return V(this,null,function*(){return this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.inclusionLicenses.includes("msp_environment_enabled")&&this.userType=="delegatedAdmin"?this.showSideBar=!1:this.showSideBar=!0,this.navItems.map(e=>(this.inclusionLicenses.includes("msp_environment_enabled")&&(this.userType=="admin"||this.userType=="readOnlyAdmin")?(e.key==="My BluVault"||e.key==="My BluSync"||e.key==="Downloads"||e.key=="Policy Management"||e.key=="Unusual Activity Dashboard"||e.key=="User Migration")&&(e.visible=!1):(e.key==="Downloads"?this.userLicenses.userBackupEnabled=="true"||this.userLicenses.userOnedriveBkpEnabled=="true"||this.userLicenses.userExchangeBkpEnabledEnabled=="true"||this.userLicenses.userSharePointBkpEnabled=="true"||this.userLicenses.userGmailBkpEnabled=="true"||this.userLicenses.userGdriveBkpEnabled=="true"?e.visible=!0:e.visible=!1:e.key=="Unusual Activity Dashboard"?this.inclusionLicenses.includes("rwdetectionenabled")&&(this.userType=="admin"||this.userType=="superAdmin")?e.visible=this.shouldShowSettings():e.visible=!1:e.key=="Settings"&&(this.userType=="delegatedAdmin"||this.userType=="readOnlyAdmin")||e.key=="User Migration"&&(this.userType=="readOnlyAdmin"||this.inclusionLicenses.includes("gmail_backup_enabled")||this.inclusionLicenses.includes("gdrive_backup_enabled"))?e.visible=!1:e.key==="My BluSync"?this.userLicenses.userSyncEnabled=="true"?e.visible=!0:e.visible=!1:e.visible=this.shouldShowSettings(),e.key==="My BluVault"&&(this.userLicenses.userBackupEnabled=="true"||this.userLicenses.userOnedriveBkpEnabled=="true"||this.userLicenses.userExchangeBkpEnabledEnabled=="true"||this.userLicenses.userSharePointBkpEnabled=="true"||this.userLicenses.userGmailBkpEnabled=="true"||this.userLicenses.userGdriveBkpEnabled=="true"?e.visible=!0:e.visible=!1),e.key==="Manage assets"&&(this.userLicenses.userBackupEnabled=="true"||this.userLicenses.userOnedriveBkpEnabled=="true"||this.userLicenses.userExchangeBkpEnabledEnabled=="true"||this.userLicenses.userSharePointBkpEnabled=="true"||this.userLicenses.userGmailBkpEnabled=="true"||this.userLicenses.userGdriveBkpEnabled=="true"?e.visible=this.shouldShowSettings():e.visible=!1),e.key==="My BluSync"&&this.inclusionLicenses.includes("sync_enabled")&&this.userLicenses.userSyncEnabled=="true"&&(e.visible=!0)),this.inclusionLicenses.includes("issmblicenseenabled")&&e.key=="User Migration"&&(e.visible=!1),e.key=="User Migration"&&!(this.userType=="admin"||this.userType=="superAdmin")&&(e.visible=!1),this.userType=="superAdmin"&&e.key!="Dashboard"&&e.key!="Settings"&&e.key!="Support"&&e.key!="Policy Management"&&(e.visible=!1),e)).filter(e=>e.visible)})}shouldShowSettings(){return this.userType!="user"}onImageError(e){let n=e.target;localStorage.getItem("theme-default")=='"dark"'?n.src=this.imageSrc[4]:n.src=this.imageSrc[2]}static{this.\u0275fac=function(n){return new(n||t)(S(Ee),S(re),S(Me),S(fe),S(W),S(oe),S(be),S(_e))}}static{this.\u0275cmp=L({type:t,selectors:[["app-dashboard"]],inputs:{sidebarId:"sidebarId"},features:[ee([Ai,Ct,St,Wa,es])],decls:10,vars:9,consts:[["sidebar1","cSidebar"],["scrollbar","ngScrollbar"],["overflow",""],[1,"app-shell","d-flex","flex-row","min-vh-100","hight-100-vh"],[1,"wrapper","d-flex","flex-column","min-vh-100"],["position","sticky","sidebarId","sidebar1",1,"mb-4","d-print-none","header","header-sticky","p-0","shadow-sm",3,"cShadowOnScroll","conversationalAI"],[1,"app-shell","d-flex","flex-row","hight-100-vh"],["class","d-print-none sidebar sidebar-fixed left-sidebar","colorScheme","dark","id","sidebar1","visible","",4,"ngIf"],["breakpoint","lg",1,"wrapper-right","d-flex","flex-column","h-auto",2,"display","flex","vertical-align","top","height","calc(100vh - (8em + 10px)) !important","overflow","auto"],[3,"routerOutletData"],[4,"ngIf"],[3,"detectRouteTransitions"],[3,"conversationalAI"],["colorScheme","dark","id","sidebar1","visible","",1,"d-print-none","sidebar","sidebar-fixed","left-sidebar"],["cSidebarToggle","sidebar1","toggle","unfoldable",2,"min-height","0","padding","0 4px","cursor","pointer"],["cSidebarToggler","","aria-label","Toggle sidebar pin",3,"click"],[1,"fas","fa-thumbtack",3,"ngClass"],["pointerEventsMethod","scrollbar","visibility","hover",1,"overflow",3,"updated"],["dropdownMode","close","compact","",3,"navItems"]],template:function(n,i){n&1&&(a(0,"div",3)(1,"div",4),C(2,"app-default-header",5),a(3,"div",6),x(4,Hu,9,6,"c-sidebar",7),a(5,"c-container",8),C(6,"router-outlet",9),s(),x(7,Gu,1,0,"app-default-right",10),s(),C(8,"loading-indicator",11)(9,"app-default-footer",12),s()()),n&2&&(o(2),d("cShadowOnScroll","sm")("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI),o(2),d("ngIf",i.showSideBar),o(2),d("routerOutletData",A(7,Vu,i.cloudPropertyElement)),o(),d("ngIf",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI),o(),d("detectRouteTransitions",!0),o(),d("conversationalAI",i.cloudPropertyElement==null?null:i.cloudPropertyElement.conversationalAI))},dependencies:[Si,Gs,Ea,Ls,Pa,_t,Ia,Ts,pa,bi,ri,ne,He,ie,ps,zs],styles:["[_nghost-%COMP%]   .ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-padding: 1px;--scrollbar-size: 5px;--scrollbar-thumb-color: var(--cui-gray-500, #999);--scrollbar-thumb-hover-color: var(--cui-gray-400, #999);--scrollbar-hover-size: calc(var(--scrollbar-size) * 1.5)}.hight-100-vh[_ngcontent-%COMP%]{height:100vh;overflow:hidden;--cui-sidebar-width: 380px}.wrapper-right[_ngcontent-%COMP%]{width:100%;will-change:auto;transition:padding .15s;--cui-sidebar-width: 380px;--cui-sidebar-occupy-end:380px}.left-sidebar[_ngcontent-%COMP%]{position:relative!important;height:100%;background-color:#f0f0f0;overflow-y:auto;z-index:0;box-shadow:0 15px 15px -5px #0003;margin:0 5px;border:var(--border);border-radius:5px}.overflow[_ngcontent-%COMP%]{height:calc(100% - 16px)}"]})}}return t})();var Ws=(()=>{class t{constructor(e,n){this.toastr=e,this.TranslateService=n}showOnSuccess(){this.toastr.success(this.TranslateService.instant("Successfully Added...."),this.TranslateService.instant("Success"))}static{this.\u0275fac=function(n){return new(n||t)(S(be),S(oe))}}static{this.\u0275cmp=L({type:t,selectors:[["app-toastalert"]],decls:6,vars:6,consts:[["cButton","","color","success",1,"m-1",3,"click"]],template:function(n,i){n&1&&(a(0,"p"),u(1),m(2,"translate"),s(),a(3,"button",0),y("click",function(){return i.showOnSuccess()}),u(4),m(5,"translate"),s()),n&2&&(o(),_(g(2,2,"toastalert works!")),o(3),_(g(5,4,"Add toast")))},dependencies:[ge],encapsulation:2})}}return t})();var T=(()=>{class t{constructor(e,n,i,r,c){this.router=e,this.sharedService=n,this.authService=i,this.userRoleService=r,this.licenseCheckService=c}canActivate(e,n){return V(this,null,function*(){let i=yield this.userRoleService.getUserRole(),r=e.data?.roles,c=e.data?.licenses;if(r&&i&&r.includes(i)){if(!c||c.length===0)return!0;let b=yield this.licenseCheckService.getInclusionLicensesNew(),k=yield this.userRoleService.getUserFlags(),E={backup_enabled:"userBackupEnabled",sync_enabled:"userSyncEnabled",onedrive_backup_enabled:"userOnedriveBkpEnabled",exchange_backup_enabled:"userExchangeBkpEnabledEnabled",sharepoint_backup_enabled:"userSharePointBkpEnabled",gmail_backup_enabled:"userGmailBkpEnabled",gdrive_backup_enabled:"userGdriveBkpEnabled"},P=i==="admin"||i==="superAdmin"||i==="readOnlyAdmin"||i==="delegatedAdmin";if(c.some(M=>{if(!b.includes(M))return!1;if(P)return!0;let U=E[M];return U?k[U]==="true":!1}))return!0}let p=this.authService.Token;return!p||p.trim()===""||i==="unauthorized"?this.router.navigate(["/logout"]):this.router.navigate(["/404"]),!1})}static{this.\u0275fac=function(n){return new(n||t)(H(re),H(ye),H(J),H(fe),H(Me))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zu=["","/create","/edit","/clone","/singlePolicyMapping","/bulkPolicyMapping"],ju=[import("./chunk-MQ2FZYOP.js"),import("./chunk-PO2RCBXT.js"),import("./chunk-OVRZR5UX.js"),import("./chunk-OWIM76IS.js"),import("./chunk-R7D7J2CB.js"),import("./chunk-WUGZCC77.js")],Wu=["/edit"],qu=[import("./chunk-CROCD6PD.js")],qs=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:js,children:[{path:"dashboard",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","sync_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-M546C6VL.js").then(t=>t.routes)},{path:"mspDashboard",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-462JXO7D.js").then(t=>t.routes)},{path:"licenseOptimizer",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-E6HOOW4P.js").then(t=>t.routes)},{path:"bluvault",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-A6CKC4TR.js").then(t=>t.routes)},{path:"backup/files",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-77UEPUIM.js").then(t=>t.routes)},{path:"assetRestore",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-O5E2LUZA.js").then(t=>t.routes)},{path:"manageAssets",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-DBLK5FBW.js").then(t=>t.routes)},{path:"manageAssets/bulkAssetOperation/:productType",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-BFJPD6OS.js").then(t=>t.routes)},{path:"manageAssets/:productType",canActivate:[T],data:{roles:["admin"],licenses:["backup_enabled","exchange_backup_enabled","onedrive_backup_enabled","sharepoint_backup_enabled","gmail_backup_enabled","gdrive_backup_enabled"]},loadChildren:()=>import("./chunk-DBLK5FBW.js").then(t=>t.routes)},{path:"pms",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-4DL4I5JJ.js").then(t=>t.routes)},{path:"pms/schedules",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6DOD33RB.js").then(t=>t.routes)},{path:"pms/noBackupWindows",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-LHW2A6DJ.js").then(t=>t.routes)},{path:"pms/filters",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-237RL5CW.js").then(t=>t.routes)},...zu.map((t,l)=>({path:`pms/:productKey${t}`,canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>ju[l].then(e=>e.routes)})),...Wu.map((t,l)=>({path:`pms/spAdmin/:productKey${t}`,canActivate:[T],data:{roles:["superAdmin"]},loadChildren:()=>qu[l].then(e=>e.routes)})),{path:"pms/sharepointPolicy/policyMapping",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-I45GHTO3.js").then(t=>t.routes)},{path:"settings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-Y6UOEQOQ.js").then(t=>t.routes)},{path:"settings/agentManager",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MW5YRBNK.js").then(t=>t.routes)},{path:"settings/globalSettings",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-6CVEMYA7.js").then(t=>t.routes)},{path:"settings/aadCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3BNTV3FU.js").then(t=>t.routes)},{path:"settings/ssoCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-YDL4TZ5T.js").then(t=>t.routes)},{path:"azure",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3BNTV3FU.js").then(t=>t.routes)},{path:"settings/credentials/:type",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-W3WBL3O7.js").then(t=>t.routes)},{path:"adminConsentMultiTenant",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-PNNO5FFL.js").then(t=>t.routes)},{path:"adminConsent",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XE3R5RH4.js").then(t=>t.routes)},{path:"adminConsentBilling",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-M7UAWTEY.js").then(t=>t.routes)},{path:"adminConsentExchange",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-QQVQWH4C.js").then(t=>t.routes)},{path:"ssoConsent",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-2TJYOYGY.js").then(t=>t.routes)},{path:"oneDriveC2C",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NUMJU3QK.js").then(t=>t.routes)},{path:"settings/adCredentials",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-U4MDSOUU.js").then(t=>t.routes)},{path:"settings/cloudCredentials",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-S77S7Z27.js").then(t=>t.routes)},{path:"googleOAuth",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-S77S7Z27.js").then(t=>t.routes)},{path:"settings/proxy",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NMMYFZEF.js").then(t=>t.routes)},{path:"settings/metadataProperties",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-J2MBTCN5.js").then(t=>t.routes)},{path:"settings/paracloudblukrypt",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-TNAZ3TRL.js").then(t=>t.routes)},{path:"settings/dataMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ICWZHCNQ.js").then(t=>t.routes)},{path:"settings/c2cSettings",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-NUMJU3QK.js").then(t=>t.routes)},{path:"settings/smtp",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-3AJ42FLK.js").then(t=>t.routes)},{path:"settings/siem",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-L6564BXU.js").then(t=>t.routes)},{path:"settings/m365Settings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-EQXQBATW.js").then(t=>t.routes)},{path:"settings/m365Consent",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-XHZSN3HC.js").then(t=>t.routes)},{path:"settings/smbConsent",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-QATKLUXQ.js").then(t=>t.routes)},{path:"settings/m365BackupStorage",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-M7UAWTEY.js").then(t=>t.routes)},{path:"settings/m365Settings/m365TenantSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XE3R5RH4.js").then(t=>t.routes)},{path:"settings/m365Settings/m365Consent",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-XHZSN3HC.js").then(t=>t.routes)},{path:"settings/m365Settings/exchangeSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-QQVQWH4C.js").then(t=>t.routes)},{path:"settings/m365Settings/m365BackupAgentSettings",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-3YDOOGUV.js").then(t=>t.routes)},{path:"settings/keyManager",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-U42KRLU6.js").then(t=>t.routes)},{path:"userMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZMMHJTLE.js").then(t=>t.routes)},{path:"userMigration/importUsers",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-JKDPJ4AB.js").then(t=>t.routes)},{path:"report/userMigration",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-453RCUGO.js").then(t=>t.routes)},{path:":sourcePage/:sourceParam/notes",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MFYMQNK4.js").then(t=>t.routes)},{path:"users",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-ZTC5KX3E.js").then(t=>t.routes)},{path:"users/create",canActivate:[T],data:{roles:["admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-RKBDJ3IT.js").then(t=>t.routes)},{path:"users/edit",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-MXCO2CZ5.js").then(t=>t.routes)},{path:"users/profile",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-SLLEA6NT.js").then(t=>t.routes)},{path:"users/bulkUserOperation",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZFOCOE6K.js").then(t=>t.routes)},{path:"users/bulkUserOperation/softBlockUsers",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-ZFOCOE6K.js").then(t=>t.routes)},{path:"activityHistory",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-7M4REDNV.js").then(t=>t.routes)},{path:"unusualActivityHistory",canActivate:[T],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-FJ6AXRIA.js").then(t=>t.routes)},{path:"infectedActivityHistory",canActivate:[T],data:{roles:["admin","user"]},loadChildren:()=>import("./chunk-Q25RRAQ7.js").then(t=>t.routes)},{path:"endpointsDownload",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-RATTGE5B.js").then(t=>t.routes)},{path:"backupSummary",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-5IMZMZ66.js").then(t=>t.routes)},{path:"support",canActivate:[T],data:{roles:["superAdmin","admin","delegatedAdmin"]},loadChildren:()=>import("./chunk-EISKJ56B.js").then(t=>t.routes)},{path:"support/licenseKey",canActivate:[T],data:{roles:["superAdmin","admin"]},loadChildren:()=>import("./chunk-UBIN6IX2.js").then(t=>t.routes)},{path:"downloads",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-QB6IDGP6.js").then(t=>t.routes)},{path:"report/dataProtectionScorecard/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-FH7B5KZP.js").then(t=>t.routes)},{path:"report/backupOverview/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-7B5QEUPS.js").then(t=>t.routes)},{path:"report/backupHistory/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MMPRWRGH.js").then(t=>t.routes)},{path:"report/restoreHistory/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MUNGHD7P.js").then(t=>t.routes)},{path:"report/assetsNotProtected/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DWKTDBFO.js").then(t=>t.routes)},{path:"report/assetHeartbeat/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-DJ72PL3P.js").then(t=>t.routes)},{path:"report/usersWithoutAssetsProtected/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-MFWJJCIQ.js").then(t=>t.routes)},{path:"report/usersWithoutAssets/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-A6VVICQW.js").then(t=>t.routes)},{path:"report/assetAssigned/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-VORM5D5M.js").then(t=>t.routes)},{path:"report/capacityManagement/:productType",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-UOBYKRBS.js").then(t=>t.routes)},{path:"report/syncOverview",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-2H4KEMFF.js").then(t=>t.routes)},{path:"report/minicloudActivity",canActivate:[T],data:{roles:["superAdmin","admin","readOnlyAdmin","delegatedAdmin"]},loadChildren:()=>import("./chunk-SLPLGUTJ.js").then(t=>t.routes)},{path:"policyConfig",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"]},loadChildren:()=>import("./chunk-JT6NZWJA.js").then(t=>t.routes)},{path:"manageUnusualActivities",canActivate:[T],data:{roles:["admin"]},loadChildren:()=>import("./chunk-TC4NBB4E.js").then(t=>t.routes)},{path:"sync/files",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-CYEX6DYB.js").then(t=>t.routes)},{path:"sync/miniclouds",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-CTXHB5L5.js").then(t=>t.routes)},{path:"sync/myShares",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-C2FQ5B56.js").then(t=>t.routes)},{path:"sync/sharedWithMe",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-HY6VCUPF.js").then(t=>t.routes)},{path:"sync/shareActivityHistory",canActivate:[T],data:{roles:["admin","readOnlyAdmin","delegatedAdmin","user"],licenses:["sync_enabled"]},loadChildren:()=>import("./chunk-NSJ3YR2S.js").then(t=>t.routes)},{path:"pages",loadChildren:()=>import("./chunk-VSI2P43F.js").then(t=>t.routes)},{path:"fileArchivedView",loadComponent:()=>import("./chunk-MPXERNH2.js").then(t=>t.FileArchivedViewComponent),data:{title:"Login Page"}},{path:"operationSuccess",loadComponent:()=>import("./chunk-TVH4IZPT.js").then(t=>t.OperationSuccessComponent),data:{title:"Operation Success Page"}},{path:"operationFailed",loadComponent:()=>import("./chunk-KGJPGLLA.js").then(t=>t.OperationFailedComponent),data:{title:"Operation Failed Page"}}]},{path:"toast",component:Ws,data:{title:"Toast"}},{path:"404",loadComponent:()=>import("./chunk-62IL5IKN.js").then(t=>t.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-E65FBHQQ.js").then(t=>t.Page500Component),data:{title:"Page 500"}},{path:"503",loadComponent:()=>import("./chunk-KQHZHSTI.js").then(t=>t.Page503Component),data:{title:"Page 503"}},{path:"login",loadComponent:()=>import("./chunk-LOZELQCU.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"locallogin",loadComponent:()=>import("./chunk-LOZELQCU.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"ssologin",loadComponent:()=>import("./chunk-LOZELQCU.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"restPassword",loadComponent:()=>import("./chunk-2BB6LOMO.js").then(t=>t.ResetPasswordComponent),data:{title:"Reset Password Page"}},{path:"auth",loadComponent:()=>import("./chunk-LOZELQCU.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"viewFile/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-LOZELQCU.js").then(t=>t.LoginComponent),data:{title:"Login Page"}},{path:"share/:segment1/:segment2/:segment3/:segment4/:segment5",loadComponent:()=>import("./chunk-FRBYXEAJ.js").then(t=>t.ShareComponent),data:{title:"Share Page"}},{path:"logout",loadComponent:()=>import("./chunk-CINSUUWV.js").then(t=>t.LogoutComponent),data:{title:"Logout Page"}},{path:"register",loadComponent:()=>import("./chunk-7E6RQAND.js").then(t=>t.RegisterComponent),data:{title:"Register Page"}},{path:"**",redirectTo:"404"}];var $u="@",Ju=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=Qe(fn);loadingSchedulerFn=Qe(Zu,{optional:!0});_engine;constructor(e,n,i,r,c){this.doc=e,this.delegate=n,this.zone=i,this.animationType=r,this.moduleImpl=c}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-AYLMBAH4.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(e):n=e(),n.catch(i=>{throw new mn(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc);let c=new r(this.delegate,this._engine,this.zone);return this.delegate=c,c})}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 en(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(c=>{let p=c.createRenderer(e,n);r.use(p),this.scheduler??=this.injector.get(bn,null,{optional:!0}),this.scheduler?.notify(10)}).catch(c=>{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){Sn()};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})(),en=class{delegate;replay=[];\u0275type=1;constructor(l){this.delegate=l}use(l){if(this.delegate=l,this.replay!==null){for(let e of this.replay)e(l);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(l,e){return this.delegate.createElement(l,e)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}get destroyNode(){return this.delegate.destroyNode}appendChild(l,e){this.delegate.appendChild(l,e)}insertBefore(l,e,n,i){this.delegate.insertBefore(l,e,n,i)}removeChild(l,e,n){this.delegate.removeChild(l,e,n)}selectRootElement(l,e){return this.delegate.selectRootElement(l,e)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,e,n,i){this.delegate.setAttribute(l,e,n,i)}removeAttribute(l,e,n){this.delegate.removeAttribute(l,e,n)}addClass(l,e){this.delegate.addClass(l,e)}removeClass(l,e){this.delegate.removeClass(l,e)}setStyle(l,e,n,i){this.delegate.setStyle(l,e,n,i)}removeStyle(l,e,n){this.delegate.removeStyle(l,e,n)}setProperty(l,e,n){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(l,e,n)),this.delegate.setProperty(l,e,n)}setValue(l,e){this.delegate.setValue(l,e)}listen(l,e,n,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(l,e,n,i)),this.delegate.listen(l,e,n,i)}shouldReplay(l){return this.replay!==null&&l.startsWith($u)}},Zu=new nt("");function Vt(t="animations"){return qt("NgAsyncAnimations"),gn([{provide:$t,useFactory:(l,e,n)=>new Ju(l,e,n,t),deps:[ue,ii,Ie]},{provide:Et,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ui=(()=>{class t{http;prefix;suffix;constructor(e,n="/assets/i18n/",i=".json"){this.http=e,this.prefix=n,this.suffix=i}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}static \u0275fac=function(n){return new(n||t)(H(Pe),H(String),H(String))};static \u0275prov=se({token:t,factory:t.\u0275fac})}return t})();var Fi=(()=>{class t{handleError(e){e?.name!=="HttpErrorResponse"&&e?.__fromInterceptor!==!0&&(pt.enableSentry&&Fn(e),console.error(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();function Ku(t){return new Ui(t,"./assets/i18n/",".json")}var $s={providers:[An(Un()),{provide:Xt,useClass:li,multi:!0},It(si.forRoot({loader:{provide:ai,useFactory:Ku,deps:[Pe]}})),Wn(qs,Jn({onSameUrlNavigation:"reload"}),qn({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),$n(),Zn()),It(wi,va),ci,ds(),Vt("noop"),Kn({closeButton:!0,autoDismiss:!0,preventDuplicates:!0,positionClass:"toast-bottom-right",timeOut:3e3,progressBar:!0}),Vt(),_e,{provide:Wt,useClass:Fi}]};var Js={provide:"PRODUCTS_FACTORY",useFactory:()=>[{title:"BluVault",key:"backup",dataManagementKey:"BACKUP",key3:"Backup",keyRegex:/Lin|Win|Mac/,exclusion_keys:["linux","mac","win"],licenceKey:"backup_enabled",featureLicenceKey:{issqlbkpenabled:"issqlbkpenabled",rwdetectionenabled:"rwdetectionenabled"},showFilter:!0,showSchedule:!0,noBackupWindows:!0,showBulkMapping:!0,policyConfigurations:null,routes:{policy:"policy",viewPolicy:"policyView"},dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTile",show:"activeUsers"},default:{flip:!1,show:!0},title:"Active Users",template:"%{activeBackupUsers} / %{noOfBackupUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedBackupUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTile",show:"activeDevices"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackups",show:"totalCompletedBackups"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,modal:{flip:"flipNotProtectedTile",show:{tile8ReportType:{$neq:"usersWithSystemsNotProtected"}}},default:{flip:!1,show:!0},title:"Assets not protected",template:"%{noOfDevicesNotProtected}",flip:{title:"Users without any assets protected",template:"%{noOfUsersProtected}"}},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilized",show:"totalActualStorageUtilized"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Backup",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Backup",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Backup",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Backup",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Users without any assets protected",route:"report/usersWithoutAssetsProtected/Backup",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Backup",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Heartbeat Report",route:"report/assetHeartbeat/Backup",cloudPropertyElementFlag:"showDeviceHeartbeatReport"},{title:"Asset Assignment Report",route:"report/assetAssigned/Backup"}]},downloadsConfigurations:null,Add_Folder:ts,Add_Exclusion_Folder:is,Add_Exception_Folder:ns},{title:"Servers",key:"server",licenceKey:"windows_server_backup_enabled",showFilter:!0,showSchedule:!0,noBackupWindows:!0,showBulkMapping:!0,policyConfigurations:null,routes:{policy:null},dashboard:null},{title:"Microsoft Exchange",key:"Exchange",dataManagementKey:"OUTLOOK",key2:"OUTLOOK",key3:"mail",exclusion_keys:["exchange"],licenceKey:"exchange_backup_enabled",showSchedule:!0,showBulkMapping:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",contentSearch:"contentsearchenabledforexchange",inplacearchivebackupenabled:"inplacearchivebackupenabled",mailarchivingenabled:"mailarchivingenabled"},routes:{policy:"exchangePolicy",viewPolicy:"exchangePolicyView"},downloads:{unified:!0},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileExchange",show:"activeUsersExchange"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveExchangeUsers} / %{noOfExchangeUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedExchangeUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileExchange",show:"activeDevicesExchange"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsExchange",show:"totalCompletedBackupsExchange"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedExchange",show:"totalActualStorageUtilizedExchange"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Exchange",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Exchange",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Exchange",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Exchange",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Exchange",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Exchange"},{title:"Capacity Savings",route:"report/capacityManagement/Exchange",requiresLicense:"mailarchivingenabled"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!0,cancel:!0}},Add_Folder:Gi,Add_Exclusion_Folder:zi},{title:"OneDrive for Business",key:"ODB",shortTitle:"OneDrive",dataManagementKey:"ONEDRIVE",key2:"oneDrive",key3:"OneDrive",licenceKey:"onedrive_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!0,showBulkMapping:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"onedrivearchivingenabled",contentSearch:"contentsearchenabledforonedrive"},routes:{policy:"oneDrivePolicy",viewPolicy:"onedrivePolicyView"},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileOnedrive",show:"activeUsersOnedrive"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveOneDriveUsers} / %{noOfOneDriveUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedOneDriveUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileOnedrive",show:"activeDevicesOnedrive"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsOnedrive",show:"totalCompletedBackupsOnedrive"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedOnedrive",show:"totalActualStorageUtilizedOnedrive"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/ODB",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/ODB",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/ODB",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/ODB",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/ODB",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/ODB"},{title:"Capacity Savings",route:"report/capacityManagement/ODB",requiresLicense:"onedrivearchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:Ut,Add_Exclusion_Folder:Ft},{title:"SharePoint Online",key:"Sharepoint",shortTitle:"SharePoint",dataManagementKey:"SHAREPOINT",licenceKey:"sharepoint_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!0,featureLicenceKey:{msStorageAPI:"ismsstorageapienabled",archiving:"sparchivingenabled",contentSearch:"contentsearchenabledforsharepoint"},policyConfigurations:null,routes:{policy:"sharepointPolicy",policyMapping:"/policyMapping",viewPolicy:"sharepointPolicyView"},dashboard:{tiles:[{key:"devices",passProduct:!1,noRoute:!1,title:"Active Sites",template:"%{noOfActiveSPSites} / %{noOfSPSitesAllowed}"},{key:"devices",passProduct:!1,noRoute:!1,title:"Blocked Sites",template:"%{noOfBlockedSPSites}"},{key:"backupHistory",passProduct:!0,noRoute:!1,title:"Active Sites with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedSharepoint",show:"totalActualStorageUtilizedSharepoint"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Sharepoint",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Sharepoint",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Sharepoint",cloudPropertyElementFlag:"showBackupHistory"},{title:"Restore History",route:"report/restoreHistory/Sharepoint",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Capacity Savings",route:"report/capacityManagement/Sharepoint",requiresLicense:"sparchivingenabled"}]},downloadsConfigurations:{restore:{stop:!0},backup:{stop:!0,pause:!0,start:!0,cancel:!0}},Add_Folder:Ut,Add_Exclusion_Folder:Ft},{title:"Gmail",key:"Gmail",exclusion_keys:["Gmail"],licenceKey:"gmail_backup_enabled",showSchedule:!0,showBulkMapping:!0,routes:{policy:"gmailPolicy",viewPolicy:"gmailPolicyView"},downloads:{unified:!0},featureLicenceKey:{contentSearch:"contentsearchenabledforgmail"},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileGmail",show:"activeUsersGmail"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveUsers} / %{noOfUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileGmail",show:"activeDevicesGmail"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsGmail",show:"totalCompletedBackupsGmail"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",modal:{flip:"flipTotalActualStorageUtilizedGmail",show:"totalActualStorageUtilizedGmail"},default:{flip:!1,show:!0},flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Gmail",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Gmail",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Gmail",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Gmail",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Gmail",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Gmail"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!0,cancel:!1}},Add_Folder:Gi,Add_Exclusion_Folder:zi},{title:"Google Drive",key:"Google Drive",licenceKey:"gdrive_backup_enabled",exclusion_keys:[],showFilter:!0,showSchedule:!0,showBulkMapping:!0,featureLicenceKey:{archiving:"gdrivearchivingenabled",contentSearch:"contentsearchenabledforgdrive"},routes:{policy:"gdrive",viewPolicy:"Google%20Drive/policyView"},downloads:{unified:!0},policyConfigurations:null,dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,modal:{flip:"flipUsersTileGdrive",show:"activeUsersGdrive"},default:{flip:!1,show:!0},title:"Active Users",template:"%{noOfActiveUsers} / %{noOfUsersAllowed}",flip:{title:"Blocked Users",template:"%{noOfBlockedUsers}"}},{key:"devices",passProduct:!1,noRoute:!1,modal:{flip:"flipDevicesTileGdrive",show:"activeDevicesGdrive"},default:{flip:!1,show:!0},title:"Active Assets",template:"%{devicesConnected}",flip:{title:"Blocked Assets",template:"%{noOfBlockedDevices}"}},{key:"backupHistory",passProduct:!0,noRoute:!1,modal:{flip:"flipTotalCompletedBackupsGdrive",show:"totalCompletedBackupsGdrive"},default:{flip:!1,show:!0},title:"Active Assets with Full Backups Completed",template:"%{activeDevicesWithFullBackupsCompleted}",flip:{title:"Active Users with Full Backups Completed",template:"%{activeUsersWithFullBackupsCompleted}"}},{key:"assetsNotProtected",noRoute:!1,passProduct:!0,title:"Assets not protected",template:"%{noOfDevicesNotProtected}"},{key:"totalStorageUtilized",noRoute:!0,modal:{flip:"flipTotalActualStorageUtilizedGdrive",show:"totalActualStorageUtilizedGdrive"},default:{flip:!1,show:!0},title:"Total Actual Storage Utilized",template:"%{totalActualStorageUtilized}",flip:{title:"Total Data Backed up",template:"%{totalStorageUtilized}"}},{key:"currentlyRunningBackupCount",noRoute:!0,title:"Currently Running Backups",template:"%{currentlyRunningBackupCount}"},{key:"restoreHistory",passProduct:!0,noRoute:!1,title:"Completed restores",template:"%{restoresDone}"},{key:"usersWithoutAssets",noRoute:!1,passProduct:!0,title:"Users without active assets",template:"%{userWithOutDevices}"}],reports:[{title:"Data Protection Scorecard",route:"report/dataProtectionScorecard/Google Drive",cloudPropertyElementFlag:"showUserBackupSummary"},{title:"Backup Overview",route:"report/backupOverview/Google Drive",cloudPropertyElementFlag:"showBackupOverview"},{title:"Backup History",route:"report/backupHistory/Google Drive",cloudPropertyElementFlag:"showBackupHistory"},{title:"Assets not protected",route:"report/assetsNotProtected/Google Drive",cloudPropertyElementFlag:"showSystemsWithoutBackups"},{title:"Restore History",route:"report/restoreHistory/Google Drive",cloudPropertyElementFlag:"showRestoreHistory"},{title:"Asset Assignment Report",route:"report/assetAssigned/Google Drive"}]},downloadsConfigurations:{restore:{stop:!1,start:!0,rootBrowsePath:"root"},backup:{stop:!1,pause:!1,start:!0,cancel:!1}},Add_Folder:Ut,Add_Exclusion_Folder:Ft},{title:"Managed File Transfer",key:"BluSync",key2:"sync",key3:"SYNC",licenceKey:"sync_enabled",exclusion_keys:["linux","mac","win"],showFilter:!0,showSchedule:!1,showBulkMapping:!0,featureLicenceKey:{contentSearch:"contentsearchenabledforsync",clamavscanenabled:"clamavscanenabled"},policyConfigurations:null,routes:{policy:"syncPolicy",viewPolicy:"syncPolicyView"},dashboard:{tiles:[{key:"users",passProduct:!1,noRoute:!1,title:"Active Users",template:"%{noOfSyncUsersConnected} / %{noOfUsersConnected}"},{key:"miniClouds",passProduct:!1,noRoute:!1,title:"MiniClouds",template:"%{noOfMyClouds} / %{noOfMiniCloudsAllowed}"},{key:"storageDetails",passProduct:!1,noRoute:!1,title:"Storage Details",template:"%{spaceUsed}"},{key:"validity",noRoute:!0,title:"CrashPlan Installation valid Until",template:"%{noOfBackupUsersConnected}"}],reports:[{title:"Managed File Transfer Overview",route:"report/syncOverview"},{title:"MiniCloud Activity History",route:"report/minicloudActivity"}]},downloadsConfigurations:{restore:{stop:!1},backup:{stop:!1,pause:!1,start:!1,cancel:!1}},Add_Folder:Ut,Add_Exclusion_Folder:Ft}]};var Bi=class{handle(l){if(l.interpolateParams){let e=l.key.match(/\{\{ *[^} ]+ *\}\}/),n=l.key,i=l.interpolateParams;return e?.forEach(r=>{let c=r.replace(/\{\{|\}\}| */g,"");n=n.replace(r,i[c]||"")}),n}return l.key}};var Zs={provide:Pt,useFactory:t=>()=>{if(pt.enableSentry){let l;Yn({dsn:"https://dummy@dummy/1",environment:pt.production?"prod":"dev",tracesSampleRate:1,integrations:[],skipBrowserExtensionCheck:!0,beforeSend(e){return V(this,null,function*(){return e?.extra?.body&&delete e.extra.body,fetch(t.protocol+t.baseFolder+pt.sentryEndpoint,{method:"POST",headers:{"Content-Type":"application/json","x-intake-secret":"test"},body:JSON.stringify({app:"angular",timestamp:Date.now(),event:e})}).catch(()=>{}),null})}})}},deps:[_e],multi:!0};var Qu=window.btoa,Xu=window.atob;window.atob=t=>{let l=Xu(t),e=Uint8Array.from(l,n=>n.charCodeAt(0));return new TextDecoder().decode(e)};window.btoa=t=>{let l=new TextEncoder().encode(t),e=String.fromCodePoint(...l);return Qu(e)};function eh(t,l){return new Ui(t,"./assets/i18n/",".json")}function th(t){return()=>{let l=document.cookie.match(/LANG=([a-z]{2})/)?.[1]||["en","it","fr","de","pl","pt","nl","es"].find(e=>e===navigator.language.split(/[^a-z]/i)[0].toLowerCase())||navigator.languages.filter(e=>["en","it","fr","de","pl","pt","nl","es"].includes(e.split(/[^a-z]/i)[0].toLocaleLowerCase()))[0]||"en";return t.setDefaultLang("en"),t.use(l).toPromise()}}function ih(t){return()=>Ht(t.loadConfig()).then(l=>t.setConfig(l)).catch(l=>(console.error("Config load failed:",l),(l.status===404||l.status===403)&&(window.location.href="/404.html"),Promise.resolve()))}Vn(ls,{providers:[he,It(si.forRoot({loader:{provide:ai,useFactory:eh,deps:[Pe]},missingTranslationHandler:{provide:Qn,useClass:Bi},defaultLanguage:"en"})),Zs,{provide:Pt,useFactory:th,deps:[oe],multi:!0},{provide:Nn,useValue:{dateFormat:"dd-MMM-yyyy HH:mm:ss"}},...$s.providers,{provide:Wt,useClass:Fi},oi,{provide:Pt,useFactory:ih,deps:[_e],multi:!0},{provide:Xt,useClass:li,multi:!0},Ai,Js,Vt()]}).catch(t=>console.error(t));export{eh as HttpLoaderFactory,ih as loadConfig,th as setupTranslateFactory};
