1import{a as N}from"./chunk-J4EFZ7EZ.js";import{a as O}from"./chunk-IGCMF6ME.js";import{c as k}from"./chunk-SN7ZKM2D.js";import{B as E,C as L,K as M,O as A}from"./chunk-GOFHQG5Y.js";import{$b as T,Ab as S,Bb as u,Cb as a,Db as n,Eb as d,Ma as v,Rb as b,Ta as l,Za as c,ac as h,bc as _,db as C,e as g,pc as w,vb as m,wb as p,yb as I,za as f,zb as y}from"./chunk-MX7PSNZD.js";function D(e,t){if(e&1&&d(0,"app-breadcrumb",0),e&2){let o=b();u("breadCrumbs",o.pageInfo.breadcrumbs)("ClubName",o.clubInfo.name)}}function B(e,t){if(e&1&&(a(0,"div",4)(1,"h1",8),h(2," Achat de voiture collaborateur neuve "),n(),a(3,"p"),h(4," Acc\xE9dez \xE0 tous nos v\xE9hicules neufs et moins chers de la marque de votre choix \xE0 prix collaborateur "),n()()),e&2){let o=b();l(3),T(w("text-sm xl:text-base text-gray-medium-light mb-8 xl:mb-7 ",o.show?"view-more":"view-less"))}}function P(e,t){if(e&1&&(a(0,"a",9)(1,"p",10),h(2),n(),d(3,"div",11),n()),e&2){let o=t.$implicit;u("routerLink","/collaborateurs/"+o.brand_slug),l(2),_(o.name)}}function H(e,t){if(e&1&&y(0,P,4,2,"a",9,I),e&2){let o=b();S(o.brands)}}var x="collaborateur",U=(()=>{let t=class t{constructor(i,r,s,R,j){this.titleService=i,this.metaService=r,this.state=s,this.pageService=R,this.sharedService=j,this.loadingResults=!1,this.subscriptions=new g,this.show=!1}ngOnInit(){this.results=this.state.get(x,null),this.results?this.stateAction(this.results):(this.loadingResults=!0,this.subscriptions.add(this.pageService.getCollaboratorPageInfos().subscribe({next:i=>{this.state.set(x,i),this.stateAction(i)},complete:()=>{this.loadingResults=!1}})))}stateAction(i){this.pageInfo=i.pageInfos[0],this.brands=i.brands,this.total=this.brands.length,this.clubInfo=this.pageInfo.club,this.pageInfo.seo.title=this.pageInfo.seo.title.replace(/\[Nom du club\]/g,this.clubInfo.name).replace(/\[% de remise max des promotions\]/g,i.maxDiscount+"%"),this.pageInfo.seo.description=this.pageInfo.seo.description.replace(/\[% max de remise\]/g,i.maxDiscount+"%").replace(/\[Nom du partenaire\]/g,this.clubInfo.groupName).replace(/\[Numéro du club\]/g,this.clubInfo.phone),this.sharedService.setDynamicTitle(this.pageInfo.seo.title),this.metaService.updateTag({name:"description",content:this.pageInfo.seo.description}),this.largeText=this.pageInfo.cardTitle?.largeText.replace(/\[Nom du club\]/g,this.clubInfo.name),this.brandsListTitle=this.pageInfo.brandsListBlock?.title.replace(/\[nombre-marque\]/g,this.total)}ngOnDestroy(){this.subscriptions.unsubscribe(),this.state.remove(x)}};t.\u0275fac=function(r){return new(r||t)(c(L),c(E),c(f),c(O),c(k))},t.\u0275cmp=C({type:t,selectors:[["app-collaborator"]],decls:10,vars:4,consts:[[3,"breadCrumbs","ClubName"],[1,"overflow-hidden"],[1,"container","xl:mx-auto"],[1,"xl:mt-7","mx-6","xl:mx-12"],[1,"bg-gray-lighter","px-6","py-7","xl:px-16","xl:border","xl:pt-9","xl:pb-16","border-gray-blue","xl:relative","xl:mb-12"],[1,"mx-6","xl:mx-12"],[1,"text-xl","xl:text-3xl","text-center","mb-10",3,"innerHTML"],[1,"grid","grid-cols-2","xl:grid-cols-8","gap-x-[18px]","gap-y-[22px]"],[1,"text-lg","xl:text-2xl","mb-5","xl:mb-2"],[1,"flex","justify-center","bg-ca-light","py-3","px-2","border","border-gray-blue","brand-shadow","hover:text-ca-accent","hover:bg-ca-secondary-light","text-center","w-full",3,"routerLink"],[1,"font-semibold"],[1,"w-2","h-2","absolute","bottom-0","right-0","bg-ca-accent","hidden","group-hover:block"]],template:function(r,s){r&1&&(m(0,D,1,2,"app-breadcrumb",0),a(1,"div",1)(2,"div",2)(3,"div",3),m(4,B,5,3,"div",4),n(),a(5,"div",5),d(6,"h2",6),a(7,"div",7),m(8,H,2,0),n()(),d(9,"br"),n()()),r&2&&(p(s.pageInfo?0:-1),l(4),p(s.pageInfo?4:-1),l(2),u("innerHTML",s.brandsListTitle,v),l(2),p(s.brands?8:-1))},dependencies:[N,A,M],styles:[".view-less[_ngcontent-%COMP%]{height:25px;overflow:hidden}.view-more[_ngcontent-%COMP%]{height:auto}"]});let e=t;return e})();export{U as CollaboratorComponent};
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.