PageSourceSearch

https://sorba-app.web.app/5561-es2015.c8c0562ea45f722a84dc.js

js sorba-app.web.app collected 2026-10-03 12:37:47 UTC 3,201 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhivepass=self.webpackChunkhivepass||[]).push([[5561],{55561:function(t,n,e){e.r(n),e.d(n,{TenantSwitchPageModule:function(){return S}});var o=e(44466),s=e(40093),i=e(59298),r=e(2377),a=e(39829),c=e(42321),l=e(37818),h=e(49860),g=e(91477),u=e(62255),p=e(37556),d=e(21148),m=e(61028);function f(t,n){if(1&t){const t=g.EpF();g.TgZ(0,"div",2),g._uU(1," You do not belong to any other organisations. "),g.TgZ(2,"ion-button",3),g.NdJ("click",function(){return g.CHM(t),g.oxw().onJoinOrganisation()}),g._uU(3," Join Another Organisation "),g.qZA(),g.qZA()}}function b(t,n){if(1&t&&g._UZ(0,"app-tenant-list",4),2&t){const t=g.oxw();g.Q6J("tenants",t.tenants)("members",t.members)("tenantSelectionMode",t.TenantSelectionMode.Switch)}}const v=[{path:"",component:(()=>{class t{constructor(t,n,e,o){this.tenantService=t,this.authService=n,this.router=e,this.stateService=o,this.tenants=[],this.members=[],this.TenantSelectionMode=l.TA,this.noOtherTenants=!1}ngOnInit(){console.log("ngOnInit")}ionViewWillEnter(){return(0,c.__awaiter)(this,void 0,void 0,function*(){console.log("ionViewWillEnter"),(0,h.PZ)(l.lH.IonColorSecondary);const t=yield this.authService.getUserTenantIds(!1);t&&t.tenantIds&&t.tenantIds.length>0?this.tenants=yield this.tenantService.getCurrentUserTenants(t.tenantIds,!1):console.log("No tenants found"),this.tenants||(this.tenants=[]),this.tenants&&this.tenants.length>0?this.getUserMembersForTenants():this.noOtherTenants=!0})}getUserMembersForTenants(){return(0,c.__awaiter)(this,void 0,void 0,function*(){const t=[];for(let e of this.tenants)t.push(e.id);const n=this.authService.getCurrentMember();console.log("getting members"),this.members=yield this.authService.getMembersForTenants(t,n.email),console.log(this.members)})}onJoinOrganisation(){this.router.navigateByUrl("/select-tenant?loggedin=true")}}return t.\u0275fac=function(n){return new(n||t)(g.Y36(u.a),g.Y36(p.e),g.Y36(a.F0),g.Y36(d.b))},t.\u0275cmp=g.Xpm({type:t,selectors:[["app-tenant-switch"]],decls:7,vars:2,consts:[["class","no-other-tenants",4,"ngIf"],[3,"tenants","members","tenantSelectionMode",4,"ngIf"],[1,"no-other-tenants"],["type","button","color","primary","expand","block",3,"click"],[3,"tenants","members","tenantSelectionMode"]],template:function(t,n){1&t&&(g.TgZ(0,"ion-header"),g.TgZ(1,"ion-toolbar"),g.TgZ(2,"ion-title"),g._uU(3,"Select Organisation"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(4,"ion-content"),g.YNc(5,f,4,0,"div",0),g.YNc(6,b,1,3,"app-tenant-list",1),g.qZA()),2&t&&(g.xp6(5),g.Q6J("ngIf",n.noOtherTenants),g.xp6(1),g.Q6J("ngIf",!n.noOtherTenants))},directives:[r.Gu,r.sr,r.wd,r.W2,s.O5,r.YG,m.B],styles:["[_ngcontent-%COMP%]:root{--fgp-has-polyfil_gap-container: 0px;--fgp-has-polyfil_gap-item: 0px}.no-other-tenants[_ngcontent-%COMP%]{padding:20px}.no-other-tenants[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin-top:30px}"]}),t})()}];let T=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[a.Bz.forChild(v)],a.Bz]}),t})(),S=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[s.ez,i.u5,r.Pc,T,o.m]]}),t})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.