1import{a as k}from"./chunk-ZG6G2ZQ7.js";import{a as w,b as N}from"./chunk-Y45EL6V2.js";import{a as F}from"./chunk-ZWAMQMGU.js";import{a as _}from"./chunk-NMXLWVPY.js";import"./chunk-2DXM5QXP.js";import"./chunk-6AJ4SOY2.js";import"./chunk-NKUI3LYR.js";import{b,c as P}from"./chunk-RC2S2LOC.js";import{p as y,q as M}from"./chunk-2OWPYDT6.js";import"./chunk-HIIVXIB3.js";import"./chunk-L6N2HSTP.js";import"./chunk-7LM6ZK3A.js";import"./chunk-75YUWGRI.js";import{R as v,S as R}from"./chunk-ZMT2WTNM.js";import"./chunk-YEJWULF4.js";import"./chunk-YNDJIVSX.js";import"./chunk-55DXF7KC.js";import"./chunk-7AGVZRFE.js";import"./chunk-AGRCCWIZ.js";import{p as S,x as L}from"./chunk-Q25XAGUM.js";import"./chunk-VO3GNDWB.js";import{E as C,H as D}from"./chunk-HBA2KCHE.js";import"./chunk-LFIRAPHZ.js";import{$a as i,Ac as p,Bc as a,Gb as l,Pc as f,Ud as m,Wb as c,Zd as g,ed as h,fd as u,mc as d,ya as o}from"./chunk-C7RVTCRT.js";import"./chunk-FPO36RWJ.js";g();D();L();R();M();P();g();var K=(()=>{class r{constructor(){this.userService=o(v),this.guidedSession=o(w),this.essentialSetup=o(_),this.mgss3=o(b),this.router=o(S),this.companyService=o(y),this.session=i(null),this.sessionComplete=i(!1),this.sessionFailed=i(!1),this.position=i(null),this.priority=i(null),this.requirements=i([]),this.positionComplete=i(!1),this.positionFailed=i(!1),this.corridorStatus=i(null),this.corridorComplete=i(!1),this.corridorFailed=i(!1),this.openLevers=i([]),this.offerDescription=i(""),this.offerOnRecord=i(!1),this.firstName=m(()=>(this.userService.user?.firstName||"").trim()),this.businessName=m(()=>{let s=(this.userService.user?.companyName||"").trim();return s&&!/^unemployed\b/i.test(s)?s:"your business"}),this.workspaceState=m(()=>N({session:this.session(),sessionLookupComplete:this.sessionComplete(),sessionLookupFailed:this.sessionFailed(),position:this.position(),priority:this.priority(),requirements:this.requirements(),positionLookupComplete:this.positionComplete(),positionLookupFailed:this.positionFailed(),setupComplete:!!this.corridorStatus()?.allComplete,recordsStepComplete:!1,corridorLookupComplete:this.corridorComplete(),corridorLookupFailed:this.corridorFailed()}))}ngOnInit(){this.load()}load(){let s=this.userService.user?.companyID||0;if(!s){this.positionFailed.set(!0),this.positionComplete.set(!0);return}this.sessionComplete.set(!1),this.sessionFailed.set(!1),this.guidedSession.status(s).subscribe({next:t=>{this.session.set(t),this.sessionComplete.set(!0)},error:()=>{this.sessionFailed.set(!0),this.sessionComplete.set(!0)}}),this.positionComplete.set(!1),this.positionFailed.set(!1),this.mgss3.position(s).subscribe({next:t=>{let e=t?.position??null;this.position.set(e),this.priority.set(t?.priority??null),this.requirements.set(t?.requirements??[]),this.openLevers.set(t?.openLevers??[]),this.positionFailed.set(t==null||e==null),this.positionComplete.set(!0),!this.positionFailed()&&F(e)},error:()=>{this.positionFailed.set(!0),this.positionComplete.set(!0)}}),this.corridorComplete.set(!1),this.corridorFailed.set(!1),this.essentialSetup.status(s).subscribe(t=>{this.corridorStatus.set(t),this.corridorFailed.set(t==null),this.corridorComplete.set(!0)}),this.companyService.getProduct(s).subscribe({next:t=>{let e=(t??[]).find(n=>String(n?.productName??n?.companyProductName??"").trim().length>=2);this.offerOnRecord.set(!!e),e&&!this.offerDescription()&&this.offerDescription.set(String(e.productName??e.companyProductName??"").trim())},error:()=>{this.offerOnRecord.set(!1)}})}openConversation(s){this.router.navigate(["/home"],{queryParams:{prompt:s}})}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=c({type:r,selectors:[["app-growth-record-home"]],decls:8,vars:7,consts:[[1,"grh"],[1,"grh-bar"],[1,"grh-brand"],[1,"grh-biz"],[1,"grh-main"],[3,"retry","ask","state","firstName","businessName","openLevers","offerDescription","offerOnRecord"]],template:function(t,e){t&1&&(p(0,"div",0)(1,"header",1)(2,"span",2),h(3,"Mothusi"),a(),p(4,"span",3),h(5),a()(),p(6,"main",4)(7,"app-growth-record-card",5),f("retry",function(){return e.load()})("ask",function(O){return e.openConversation(O)}),a()()()),t&2&&(l(5),u(e.businessName()),l(2),d("state",e.workspaceState())("firstName",e.firstName())("businessName",e.businessName())("openLevers",e.openLevers())("offerDescription",e.offerDescription())("offerOnRecord",e.offerOnRecord()))},dependencies:[C,k],styles:["[_nghost-%COMP%]{display:block}.grh[_ngcontent-%COMP%]{position:relative;min-height:100vh;display:flex;flex-direction:column;background:#0e0e13;color:#e7e7ee}
1.grh-bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid rgba(255,255,255,.07)}.grh-brand[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#f4f4f8}.grh-biz[_ngcontent-%COMP%]{font-size:13px;color:#8f909f}.grh-main[_ngcontent-%COMP%]{flex:1;width:100%;padding-top:8px}"],changeDetection:0})}}return r})();export{K as default};
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.