import{b as me,c as ue}from"./chunk-4SQIPONB.js";import{a as se}from"./chunk-OMYRNWA7.js";import{a as ge}from"./chunk-BAEZMG5T.js";import{a as fe}from"./chunk-C72E7DYO.js";import"./chunk-WIPHIZE3.js";import"./chunk-VUFRXBL5.js";import"./chunk-AG5UR6GS.js";import"./chunk-VP22RGQG.js";import"./chunk-HVO2LBIZ.js";import"./chunk-KAJE4RE3.js";import"./chunk-H6QVTBMZ.js";import"./chunk-XNR6WIGX.js";import"./chunk-5KOP4ULD.js";import"./chunk-F2X3VGZZ.js";import"./chunk-CV2ZWZQE.js";import{U as ae,ga as re,ha as le,ia as oe,ja as pe,la as de,oa as ce}from"./chunk-R2UR7BVM.js";import{b as W,d as X,f as Z,g as ee,j as te}from"./chunk-HKLJ6VPZ.js";import"./chunk-MQ46LYK7.js";import{b as ne,c as ie}from"./chunk-PQ5Q7HJL.js";import"./chunk-72CHOCZD.js";import{Ab as G,Cb as H,Db as V,Eb as i,Fb as r,G as j,Gb as C,Hb as D,Ib as k,Jb as b,O as A,Qb as x,Rb as J,S as R,Sb as S,Ua as n,Ub as y,Wb as v,Xb as h,Y as q,_a as z,ac as o,bc as p,f as $,gb as T,ha as Q,kb as L,kc as K,mb as _,sb as U,ta as N,tb as s,vc as f,wc as g,xb as Y}from"./chunk-56X5LYJH.js";import"./chunk-TSRGIXR5.js";var xe=["header"],be=["title"],Te=["subtitle"],Ce=["content"],Se=["footer"],Ie=["*",[["p-header"]],[["p-footer"]]],Ee=["*","p-header","p-footer"];function Me(e,c){e&1&&b(0)}function Pe(e,c){if(e&1&&(i(0,"div",8),S(1,1),_(2,Me,1,0,"ng-container",6),r()),e&2){let t=x();n(2),s("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function Be(e,c){if(e&1&&(D(0),o(1),k()),e&2){let t=x(2);n(),p(t.header)}}function we(e,c){e&1&&b(0)}function Oe(e,c){if(e&1&&(i(0,"div",9),_(1,Be,2,1,"ng-container",10)(2,we,1,0,"ng-container",6),r()),e&2){let t=x();n(),s("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),n(),s("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function Fe(e,c){if(e&1&&(D(0),o(1),k()),e&2){let t=x(2);n(),p(t.subheader)}}function Qe(e,c){e&1&&b(0)}function De(e,c){if(e&1&&(i(0,"div",11),_(1,Fe,2,1,"ng-container",10)(2,Qe,1,0,"ng-container",6),r()),e&2){let t=x();n(),s("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),n(),s("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ke(e,c){e&1&&b(0)}function $e(e,c){e&1&&b(0)}function je(e,c){if(e&1&&(i(0,"div",12),S(1,2),_(2,$e,1,0,"ng-container",6),r()),e&2){let t=x();n(2),s("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Ae=({dt:e})=>`
.p-card {
    background: ${e("card.background")};
    color: ${e("card.color")};
    box-shadow: ${e("card.shadow")};
    border-radius: ${e("card.border.radius")};
    display: flex;
    flex-direction: column;
}

.p-card-caption {
    display: flex;
    flex-direction: column;
    gap: ${e("card.caption.gap")};
}

.p-card-body {
    padding: ${e("card.body.padding")};
    display: flex;
    flex-direction: column;
    gap: ${e("card.body.gap")};
}

.p-card-title {
    font-size: ${e("card.title.font.size")};
    font-weight: ${e("card.title.font.weight")};
}

.p-card-subtitle {
    color: ${e("card.subtitle.color")};
}
`,Re={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"},_e=(()=>{class e extends de{name="card";theme=Ae;classes=Re;static \u0275fac=(()=>{let t;return function(a){return(t||(t=Q(e)))(a||e)}})();static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})();var ye=(()=>{class e extends ce{header;subheader;set style(t){ae(this._style(),t)||this._style.set(t)}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=N(null);_componentStyle=q(_e);getBlockableElement(){return this.el.nativeElement.children[0]}templates;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this._headerTemplate=t.template;break;case"title":this._titleTemplate=t.template;break;case"subtitle":this._subtitleTemplate=t.template;break;case"content":this._contentTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}static \u0275fac=(()=>{let t;return function(a){return(t||(t=Q(e)))(a||e)}})();static \u0275cmp=T({type:e,selectors:[["p-card"]],contentQueries:function(m,a,u){if(m&1&&(y(u,re,5),y(u,le,5),y(u,xe,4),y(u,be,4),y(u,Te,4),y(u,Ce,4),y(u,Se,4),y(u,oe,4)),m&2){let d;v(d=h())&&(a.headerFacet=d.first),v(d=h())&&(a.footerFacet=d.first),v(d=h())&&(a.headerTemplate=d.first),v(d=h())&&(a.titleTemplate=d.first),v(d=h())&&(a.subtitleTemplate=d.first),v(d=h())&&(a.contentTemplate=d.first),v(d=h())&&(a.footerTemplate=d.first),v(d=h())&&(a.templates=d)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[K([_e]),L],ngContentSelectors:Ee,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[4,"ngIf"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(m,a){m&1&&(J(Ie),i(0,"div",0),_(1,Pe,3,1,"div",1),i(2,"div",2),_(3,Oe,3,2,"div",3)(4,De,3,2,"div",4),i(5,"div",5),S(6),_(7,ke,1,0,"ng-container",6),r(),_(8,je,3,1,"div",7),r()()),m&2&&(Y(a.styleClass),s("ngClass","p-card p-component")("ngStyle",a._style()),U("data-pc-name","card"),n(),s("ngIf",a.headerFacet||a.headerTemplate||a._headerTemplate),n(2),s("ngIf",a.header||a.titleTemplate||a._titleTemplate),n(),s("ngIf",a.subheader||a.subtitleTemplate||a._subtitleTemplate),n(3),s("ngTemplateOutlet",a.contentTemplate||a._contentTemplate),n(),s("ngIf",a.footerFacet||a.footerTemplate||a._footerTemplate))},dependencies:[te,W,X,ee,Z,pe],encapsulation:2,changeDetection:0})}return e})();function qe(e,c){if(e&1&&(i(0,"p-card")(1,"div",2)(2,"div",3)(3,"div",4),C(4,"app-image",5),i(5,"div",6),o(6),r()(),C(7,"app-button",7),r(),i(8,"div",8)(9,"span",9),o(10),f(11,"translate"),r(),i(12,"span",10),o(13),r()(),i(14,"div",8)(15,"span",9),o(16),f(17,"translate"),r(),i(18,"span",10),o(19),r()(),i(20,"div",8)(21,"span",9),o(22),f(23,"translate"),r(),i(24,"span",10),o(25),r()(),i(26,"div",8)(27,"span",9),o(28),f(29,"translate"),r(),i(30,"span",10),o(31),r()(),i(32,"div",8)(33,"span",9),o(34),f(35,"translate"),r(),i(36,"span",10),o(37),r()(),i(38,"div",8)(39,"span",9),o(40),f(41,"translate"),r(),i(42,"span",10),o(43),r()(),i(44,"div",8)(45,"span",9),o(46),f(47,"translate"),r(),i(48,"span",10),o(49),r()(),i(50,"div",8)(51,"span",9),o(52),f(53,"translate"),r(),i(54,"span",10),o(55),r()(),i(56,"div",8)(57,"span",9),o(58),f(59,"translate"),r(),i(60,"span",10),o(61),r()(),i(62,"div",8)(63,"span",9),o(64),f(65,"translate"),r(),i(66,"span",10),o(67),r()(),i(68,"div",8)(69,"span",9),o(70),f(71,"translate"),r(),i(72,"span",10),o(73),r()()()()),e&2){let t,m,a,u,d,I,E,M,P,B,w,O,F,l=c.$implicit;n(4),s("src",(t=l==null?null:l.logo)!==null&&t!==void 0?t:""),n(2),p((m=l==null?null:l.name)!==null&&m!==void 0?m:"-"),n(),s("route","/home/company-branches/show/"+l.id),n(3),p(g(11,25,"company.description")),n(3),p((a=l==null?null:l.description)!==null&&a!==void 0?a:"-"),n(3),p(g(17,27,"company.businessNature")),n(3),p((u=l==null?null:l.businessActivity)!==null&&u!==void 0?u:"-"),n(3),p(g(23,29,"company.branchesCount")),n(3),p((d=l==null?null:l.branch_count)!==null&&d!==void 0?d:"-"),n(3),p(g(29,31,"company.companySize")),n(3),p((I=l==null?null:l.companySize)!==null&&I!==void 0?I:"-"),n(3),p(g(35,33,"company.foundedYear")),n(3),p((E=l==null?null:l.foundedYear)!==null&&E!==void 0?E:"-"),n(3),p(g(41,35,"company.industries")),n(3),p((M=l==null?null:l.industries)!==null&&M!==void 0?M:"-"),n(3),p(g(47,37,"company.headOffice")),n(3),p((P=l==null?null:l.headOffice)!==null&&P!==void 0?P:"-"),n(3),p(g(53,39,"company.strategicPartners")),n(3),p((B=l==null?null:l.strategicPartners)!==null&&B!==void 0?B:"-"),n(3),p(g(59,41,"company.expansionPlans")),n(3),p((w=l==null?null:l.expansionPlans)!==null&&w!==void 0?w:"-"),n(3),p(g(65,43,"company.awards")),n(3),p((O=l==null?null:l.awards)!==null&&O!==void 0?O:"-"),n(3),p(g(71,45,"company.trainingPrograms")),n(3),p((F=l==null?null:l.trainingPrograms)!==null&&F!==void 0?F:"-")}}var ve=class e{constructor(c){this.apiService=c}companies;errMsg;loading=!0;destroy$=new $;ngOnInit(){this.getDetail()}getDetail(){this.loading=!1,this.apiService.Get("companies").pipe(A(this.destroy$),j(()=>this.loading=!0)).subscribe({next:c=>{this.companies=c.data},error:c=>{this.errMsg=c.error.message}})}static \u0275fac=function(t){return new(t||e)(z(fe))};static \u0275cmp=T({type:e,selectors:[["app-companies-and-branches"]],decls:4,vars:1,consts:[["title","companiesAndBranches","Translationprefix","company"],["appShowLoaderUntilPageLoaded","",1,"d-flex","flex-column","gap-2",3,"isReady"],[1,"company-details-card"],[1,"d-flex","gap-2","flex-wrap","align-items-center","justify-content-between"],[1,"logo"],["height","100",3,"src"],[1,"value","mt-1"],["title","show",3,"route"],[1,"group"],[1,"label"],[1,"value"]],template:function(t,m){t&1&&(C(0,"app-page-title",0),i(1,"div",1),H(2,qe,74,47,"p-card",null,G),r()),t&2&&(n(),s("isReady",m.loading),n(),V(m.companies))},dependencies:[ie,ne,ye,se,ge,me,ue],styles:[".company-details-card[_ngcontent-%COMP%]{display:grid;gap:16px;padding:8px 0}.company-details-card[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]{display:flex;gap:20px 40px;align-items:center;border-bottom:1px solid #e2e2e2;padding-bottom:4px}.company-details-card[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]:last-child{border-bottom:none}.company-details-card[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:.95rem;color:var(--light);font-weight:500}.company-details-card[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;color:var(--black);max-width:60%}.logo[_ngcontent-%COMP%]{display:flex;gap:4px}"]})};export{ve as CompaniesAndBranchesComponent};
