"use strict";(self.webpackChunkwebadmin=self.webpackChunkwebadmin||[]).push([["libs_dialogs_tos-update_tos-rejected_component_ts"],{78665:(D,s,n)=>{n.r(s),n.d(s,{TosRejectedModalContent:()=>h});var l=n(10467),d=n(60177),i=n(89079),c=n(60802),r=n(40605),u=n(36121),t=n(4020),E=n(82529),p=n(90232),M=n(64147),m=n(60272);const g=e=>({countdown:e});let h=(()=>{class e{constructor(o,a){this.dialogRef=o,this.cloudApiService=a,this.logoutCountdown=15,(0,r.Y)(1e3).pipe((0,i.pQ)()).subscribe(()=>{this.logoutCountdown>0?this.logoutCountdown--:this.logout()})}logout(){var o=this;return(0,l.A)(function*(){try{yield o.cloudApiService.logout()}finally{window.location.reload()}})()}close(o){this.dialogRef.close(o)}static{this.\u0275fac=function(a){return new(a||e)(t.rXU(E.ce),t.rXU(p.p))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["nx-tos-rejected-content"]],decls:13,vars:6,consts:[[1,"modal-header"],[1,"modal-title"],["translate","",1,"ellipsis"],[1,"modal-body"],[1,"paragraph"],["translate","",1,"paragraph","mt-3"],[1,"modal-footer",2,"flex-wrap","unset"],["type","button","translate","",1,"btn","btn-primary",3,"click"]],template:function(a,_){1&a&&(t.j41(0,"div",0)(1,"h1",1)(2,"span",2),t.EFF(3,"Update on Terms and Conditions"),t.k0s()()(),t.j41(4,"div",3)(5,"p",4),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"p",5),t.EFF(9," To continue using cloud services, please read and accept the updated terms and conditions "),t.k0s()(),t.j41(10,"div",6)(11,"button",7),t.bIt("click",function(){return _.close("goBack")}),t.EFF(12," Go Back "),t.k0s()()),2&a&&(t.R7$(6),t.SpI(" ",t.i5U(7,1,"You will be logged out in {countdown}",t.eq3(4,g,_.logoutCountdown))," "))},dependencies:[d.MD,c.h,M.M,m.D,u.Y],encapsulation:2})}}return e})()}}]);