"use strict";(self.webpackChunkwebadmin=self.webpackChunkwebadmin||[]).push([["libs_dialogs_tos-update_tos-rejected_component_ts"],{78665:(D,s,o)=>{o.r(s),o.d(s,{TosRejectedModalContent:()=>h});var l=o(10467),d=o(60177),i=o(89079),c=o(60802),r=o(40605),u=o(36121),t=o(4020),E=o(82529),p=o(90232),M=o(64147),m=o(60272);const g=e=>({countdown:e});let h=(()=>{class e{constructor(n,a){this.dialogRef=n,this.cloudApiService=a,this.logoutCountdown=15,(0,r.Y)(1e3).pipe((0,i.pQ)()).subscribe(()=>{this.logoutCountdown>0?this.logoutCountdown--:this.logout()})}logout(){var n=this;return(0,l.A)(function*(){try{yield n.cloudApiService.logout()}finally{window.location.reload()}})()}close(n){this.dialogRef.close(n)}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})()}}]);