"use strict";(self.webpackChunkwebadmin=self.webpackChunkwebadmin||[]).push([["libs_features_cloud-owner-authorization_cloud-owner-authorization_module_ts"],{18862:(f,i,s)=>{s.r(i),s.d(i,{CloudOwnerAuthorizationModule:()=>m});var h=s(51188),c=s(48233),a=s(10391),n=s(4020),d=s(46915),u=s(12426);const l=[{path:"**",component:(()=>{class e{constructor(t,o){this.oauthService=t,this.storageService=o,this.access_token="",this.authKey="",this.code="",this.email="",this.owner="",this.organizationId="",this.systemId="",this.system_name="",this.state="renew",this.LANG=c}handleCode(t){this.storageService.store(a.Dl.code,t),window.close()}handleBind(t){this.storageService.store(a.Dl.bindData,t),window.close()}ngOnInit(){if(this.code)return this.handleCode(this.code);if(this.authKey){const{authKey:w,systemId:v,organizationId:C,owner:z}=this;return this.handleBind({authKey:w,systemId:v,organizationId:C,owner:z})}const{access_token:t,email:o,state:r,system_name:y}=this;this.oauthService.redirectOauth({state:r,email:o,accessToken:t,systemName:y})}static{this.\u0275fac=function(o){return new(o||e)(n.rXU(d.z),n.rXU(u.sj))}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["nx-cloud-owner-authorization"]],inputs:{access_token:"access_token",authKey:"authKey",code:"code",email:"email",owner:"owner",organizationId:"organizationId",systemId:"systemId",system_name:"system_name",state:"state"},decls:0,vars:0,template:function(o,r){},encapsulation:2})}}return e})()}];let m=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=n.$C({type:e})}static{this.\u0275inj=n.G2t({imports:[h.iI.forChild(l)]})}}return e})()}}]);