1import{a as K,b as ce}from"./chunk-MVNOJSIC.js";import{a as J,b as le}from"./chunk-OUWEUXNL.js";import{a as C,b as re}from"./chunk-KXNDLGYE.js";import{f as G,h as N,i as V,m as H,n as Y}from"./chunk-MJC7NEL7.js";import{d as R,e as $,j as ae}from"./chunk-G7CCAZ6K.js";import{b as j,c as q,e as W,f as Z}from"./chunk-P2NB64WX.js";import"./chunk-H3JKYH2Z.js";import{Jc as _,Kc as F,Mb as w,Ob as u,Pb as b,Pc as f,Rb as I,Rc as x,Sb as E,Tb as z,Ub as M,Vb as a,Wb as r,Xb as P,Za as T,_ as g,cc as A,ea as v,fa as O,gc as y,hb as i,ic as p,nd as U,ud as D,vb as S,xc as c,yc as L,zc as s}from"./chunk-6ZKZEUGL.js";import{e as oe}from"./chunk-J6LPXIX4.js";function fe(t,m){t&1&&(a(0,"div",5)(1,"span",8),c(2),f(3,"translate"),r()()),t&2&&(i(2),s(" ",x(3,1,"COMMON.LOADING",_(4,ge))," "))}function xe(t,m){if(t&1&&(a(0,"div",6),c(1),r()),t&2){let e=p();i(),s(" ",e.error," ")}}function Ce(t,m){t&1&&(a(0,"p",9),c(1),f(2,"translate"),r()),t&2&&(i(),s(" ",x(2,1,"BLOG.PUBLIC.EMPTY",_(4,me))," "))}function he(t,m){if(t&1&&(a(0,"div",13),P(1,"img",26),r()),t&2){let e=p().$implicit;i(),M("src",e.coverUrl,T)("alt",e.title)}}function ve(t,m){if(t&1&&(a(0,"p",14)(1,"a",27),y("click",function(n){return n.stopPropagation()}
1),a(2,"span",20),c(3),f(4,"translate"),r(),c(5),r()()),t&2){let e=p().$implicit;i(),M("routerLink",F(6,be,e.categorySlug)),i(2),s(" ",x(4,3,"BLOG.PUBLIC.CATEGORY",_(8,_e))," "),i(2),s(" ",e.categoryLabel," ")}}function Oe(t,m){if(t&1){let e=A();a(0,"article",11)(1,"div",12),y("click",function(){let o=v(e).$implicit,l=p(3);return O(l.openArticle(o))})("keydown.enter",function(){let o=v(e).$implicit,l=p(3);return O(l.openArticle(o))})("keydown.space",function(o){let l=v(e).$implicit,d=p(3);return o.preventDefault(),O(d.openArticle(l))}),u(2,he,2,2,"div",13),u(3,ve,6,9,"p",14),a(4,"h2",15)(5,"span",16),c(6),r()(),a(7,"p",17),c(8),r(),a(9,"p",18)(10,"span",19)(11,"span",20),c(12),f(13,"translate"),r(),c(14),r(),a(15,"span",21),c(16,"\u2022"),r(),a(17,"time",22),c(18),r(),a(19,"span",21),c(20,"\u2022"),r(),a(21,"span",23),P(22,"i",24),a(23,"span",25),c(24),r()()()()()}if(t&2){let e=m.$implicit;i(2),b(e.coverUrl?2:-1),i(),b(e.categoryLabel?3:-1),i(3),L(e.title),i(2),s(" ",e.excerpt," "),i(4),s(" ",x(13,10,"BLOG.PUBLIC.AUTHOR",_(13,ue))," "),i(2),s(" ",e.author," "),i(3),w("datetime",e.isoDate),i(),s(" ",e.humanDate," "),i(3),w("aria-label",e.readingTimeLabel),i(3),L(e.readingTimeLabel)}}function we(t,m){if(t&1&&(a(0,"div",10),E(1,Oe,25,14,"article",11,I),r()),t&2){let e=p(2);i(),z(e.articles)}}function Me(t,m){if(t&1&&(a(0,"section",7),f(1,"translate"),u(2,Ce,3,5,"p",9),u(3,we,3,0,"div",10),r()),t&2){let e=p();w("aria-label",x(1,3,"BLOG.PUBLIC.LIST_ARIA_LABEL",_(6,pe))),i(2),b(!e.articles||e.articles.length===0?2:-1),i(),b(e.articles&&e.articles.length>0?3:-1)}}var se,de,ge,pe,me,ue,be,_e,De,Pe=oe(()=>{D();Y();Z();ae();ce();le();re();D();Y();Z();se=()=>({default:"Blog \u2013 Growth marketing, acquisition & produit"}),de=()=>({default:"Des conseils actionnables pour faire grandir votre activit\xE9 gr\xE2ce au digital, au growth marketing et \xE0 l\u2019IA."}),ge=()=>({default:"Chargement\u2026"}),pe=()=>({default:"Liste des articles de blog"}),me=()=>({default:"Aucun article publi\xE9 pour le moment."}),ue=()=>({default:"Auteur :"}),be=t=>["category",t],_e=()=>({default:"Cat\xE9gorie :"});De=(()=>{class t{blogService=g(K);cdr=g(U);title=g($);meta=g(R);translate=g(j);router=g(N);route=g(G);seo=g(J);articles=[];loading=!0;error=null;pageSize=9;langSub;get lang(){return this.translate.currentLang||this.translate.getDefaultLang()||"fr"}ngOnInit(){this.setupSeo(),this.loadArticles(),this.langSub=this.translate.onLangChange.subscribe(()=>{this.setupSeo(),this.loadArticles()})}setupSeo(){let e="Textiaa",n=this.translate.instant("BLOG.PUBLIC.TITLE",{default:"Blog \u2013 Growth marketing, acquisition & produit"}),o=this.translate.instant("BLOG.PUBLIC.DESCRIPTION",{default:"D\xE9couvrez nos articles sur le growth marketing, l\u2019acquisition, le produit et la croissance des TPE/PME."});this.seo.setRobotsIndex(),this.seo.setTitle(n),this.seo.setDescription(o),this.seo.setCanonical(),this.seo.setOgBasics({siteName:e,type:"website",image:`${C.appBaseUrl}/assets/og/og-image.jpg`});let l=C.supportedLangs||["fr","en","pl","es","de","it","ar","pt","tr"];this.seo.setHreflangsAuto(C.appBaseUrl,l);let d=typeof window<"u"&&window?.location?.origin?window.location.origin:C.appBaseUrl;this.seo.setJsonLd({"@context":"https://schema.org","@type":"Blog",name:n,description:o,url:`${d}/${this.lang}/blog`,inLanguage:this.lang,publisher:{"@type":"Organization",name:e,url:C.appBaseUrl}})}getCardAriaLabel(e){return`Ouvrir l\u2019article : ${e.title}`}calcReadingTimeMinutes(e,n=200){let o=(e||"").trim();if(!o)return 1;let l=o.split(/\s+/).filter(Boolean).length,d=Math.ceil(l/n);return Math.max(1,d)}formatReadingTime(e){return`${Math.max(1,e)} min de lecture`}openArticle(e){this.router.navigate([e.slug],{relativeTo:this.route})}loadArticles(){this.loading=!0,this.error=null;let e=this.translate.currentLang||this.translate.getDefaultLang()||"fr";this.blogService.list({page:1,pageSize:this.pageSize,search:null,language:e}).subscribe({next:n=>{this.articles=(n.items||[]).map(o=>this.toCardItem(o)),this.loading=!1,this.cdr.markForCheck()},error:()=>{this.loading=!1,this.error=this.translate.instant("COMMON.ERROR",{default:"Une erreur est survenue."}),this.cdr.markForCheck()}})}getOrigin(){return typeof window<"u"&&window?.location?.origin?window.location.origin:""}normalizeUrl(e){if(!e)return null;if(/^https?:\/\//i.test(e)||e.startsWith("data:"))return e;let n=this.getOrigin();if(!n)return e;let o=e.startsWith("/")?e:`/${e}`;return`${n}${o}`}toCardItem(e){let n=e.created_at?new Date(e.created_at):new Date,o=new Intl.DateTimeFormat("fr-FR",{day:"numeric",month:"numeric",year:"numeric"}).format(n),l=e.category||null,d=l?this.translate.instant("BLOG_ADMIN.FORM.CATEGORY_"+l.toUpperCase(),{default:l}):null,Q="Textiaa",h=this.stripHtml(e.content||""),k=this.calcReadingTimeMinutes(h),X=this.formatReadingTime(k),ee=h.length>300?h.slice(0,300)+"\u2026":h,B=this.getOrigin(),te=B?`${B}/blog/${e.slug}`:`/blog/${e.slug}`,ne=e.cover_url??e.cover_image_url??e.coverImageUrl??e.image_url??null,ie=this.normalizeUrl(ne);return{id:e.id,title:e.title,slug:e.slug,url:te,coverUrl:ie,categoryLabel:d,categorySlug:l,excerpt:ee,author:Q,isoDate:n.toISOString().split("T")[0],humanDate:o,language:e.language||(this.translate.currentLang??"fr"),readingTimeMinutes:k,readingTimeLabel:X}}slugify(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}stripHtml(e){if(!e)return"";if(typeof document>"u")return e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();let n=document.createElement("textarea");n.innerHTML=e;let o=n.value,l=document.createElement("div");l.innerHTML=o;let d=(l.textContent||l.innerText||"").trim();return d=d.replace(/data:image\/[a-zA-Z0-9.+-]+;base64,[A-Za-z0-9+/=]+/g,"").replace(/https?:\/\/\S{80,}/g,"").replace(/\s+/g," ").trim(),d}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["app-blog-list"]],decls:12,vars:13,consts:[["aria-labelledby","blog-page-title",1,"blog-list-page"],[1,"container","blog-list-container"],[1,"blog-list-header"],["id","blog-page-title",1,"title","is-3","gradient-1","mb-2","blog-list-title"],[1,"subtitle","is-5"],[1,"has-text-centered","mb-5"],["role","alert",1,"notification","is-danger"],[1,"blog-grid"],["role","status","aria-live","polite",1,"loader"],[1,"has-text-centered","has-text-grey","blog-empty-message"],[1,"columns","is-multiline","blog-grid-columns"],[1,"column","is-12-mobile","is-6-tablet","is-4-desktop"],["role","link","tabindex","0",1,"blog-card",3,"click","keydown.enter","keydown.space"],[1,"blog-card-cover"],[1,"blog-card-category"],[1,"blog-card-title"],[1,"blog-card-title-link"],[1,"blog-card-excerpt"],[1,"blog-card-meta"],[1,"blog-card-author"],[1,"sr-only"],["aria-hidden","true",1,"blog-card-dot"],[1,"blog-card-date"],[1,"blog-card-reading"],["aria-hidden","true",1,"pi","pi-clock"],[1,"blog-card-reading-text"],["loading","lazy","decoding","async",3,"src","alt"],[1,"blog-card-category-pill",3,"click","routerLink"]],template:function(n,o){n&1&&(a(0,"section",0)(1,"div",1)(2,"header",2)(3,"h1",3),c(4),f(5,"translate"),r(),a(6,"p",4),c(7),f(8,"translate"),r()(),u(9,fe,4,5,"div",5),u(10,xe,2,1,"div",6),u(11,Me,4,7,"section",7),r()()),n&2&&(i(4),s(" ",x(5,5,"BLOG.PUBLIC.TITLE",_
1(11,se))," "),i(3),s(" ",x(8,8,"BLOG.PUBLIC.INTRO",_(12,de))," "),i(2),b(o.loading?9:-1),i(),b(!o.loading&&o.error?10:-1),i(),b(!o.loading&&!o.error?11:-1))},dependencies:[H,V,W,q],styles:['@charset "UTF-8";.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.blog-list-page[_ngcontent-%COMP%]{padding-block:3rem 4rem;padding-inline:clamp(.9rem,3vw,1.5rem);box-sizing:border-box}.blog-list-container[_ngcontent-%COMP%]{max-width:1100px;margin-inline:auto;width:100%}.blog-list-header[_ngcontent-%COMP%]{margin-bottom:2.5rem}.blog-list-eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;font-weight:600;padding:.15rem .7rem;border-radius:999px;border:1px solid rgba(120,115,245,.4);color:#6d28d9;background:#818cf814;margin-bottom:.75rem}.blog-list-title[_ngcontent-%COMP%]{line-height:1.1}.blog-list-subtitle[_ngcontent-%COMP%]{max-width:46rem}.blog-grid-columns[_ngcontent-%COMP%]{row-gap:1.5rem}.blog-card[_ngcontent-%COMP%]{--card-px: 1.5rem;--card-py: 1.75rem;overflow:hidden;height:100%;padding:var(--card-py) var(--card-px);border-radius:18px;border:1px solid rgba(148,163,184,.35);background:#fff;box-shadow:0 14px 30px #0f172a0f;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}.blog-card[_ngcontent-%COMP%]{position:relative;cursor:pointer}.blog-card-stretched-link[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;display:block;border-radius:18px}.blog-card-category-pill[_ngcontent-%COMP%]{position:relative;z-index:3}.blog-card-stretched-link[_ngcontent-%COMP%]:focus-visible{outline:2px solid #4f46e5;outline-offset:3px}.blog-card-reading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.blog-card-reading-text[_ngcontent-%COMP%]{white-space:nowrap}.blog-card-cover[_ngcontent-%COMP%]{display:block;margin:calc(var(--card-py) * -1) calc(var(--card-px) * -1) 1rem;overflow:hidden;border-top-left-radius:18px;border-top-right-radius:18px;background:#0f172a0a}.blog-card-cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:block;aspect-ratio:16/9;object-fit:cover}.blog-card-title[_ngcontent-%COMP%], .blog-card-excerpt[_ngcontent-%COMP%], .blog-card-title-link[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.blog-card-title[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.blog-card-excerpt[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.blog-card[_ngcontent-%COMP%]:hover, .blog-card[_ngcontent-%COMP%]:focus-within{transform:translateY(-4px);border-color:#818cf8e6;box-shadow:0 18px 40px #4f46e52e}.blog-card-category[_ngcontent-%COMP%]{margin-bottom:.9rem}.blog-card-category-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.2rem .9rem;border-radius:999px;font-size:.8rem;font-weight:600;border:1px solid rgba(139,92,246,.6);background-image:linear-gradient(135deg,#c4b5fd33,#f8fafcf2);color:#6b21a8;text-decoration:none}.blog-card-category-pill[_ngcontent-%COMP%]:hover, .blog-card-category-pill[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.blog-card-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:700;line-height:1.25;margin-bottom:.85rem}.blog-card-title-link[_ngcontent-%COMP%]{color:#0f172a;text-decoration:none}.blog-card-title-link[_ngcontent-%COMP%]:hover, .blog-card-title-link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.blog-card-excerpt[_ngcontent-%COMP%]{font-size:.9rem;color:#4b5563;margin-bottom:1.2rem}.blog-card-meta[_ngcontent-%COMP%]{font-size:.8rem;color:#64748b;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:auto}.blog-card-dot[_ngcontent-%COMP%]{font-size:.7rem}.blog-card-lang[_ngcontent-%COMP%]{font-weight:600;text-transform:uppercase}.blog-card-readmore[_ngcontent-%COMP%]{margin-top:.9rem}.blog-card-readmore-link[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;color:#4f46e5}.blog-card-readmore-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.8rem}.blog-card-readmore-link[_ngcontent-%COMP%]:hover, .blog-card-readmore-link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.blog-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible{outline:2px solid #4f46e5;outline-offset:3px;border-radius:6px}.loader[_ngcontent-%COMP%]{display:inline-block}@media(max-width:540px){.blog-grid-columns.columns[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.blog-grid-columns.columns[_ngcontent-%COMP%] > .column[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.blog-list-page[_ngcontent-%COMP%]{padding-inline:1rem}}@media(max-width:768px){.blog-list-page[_ngcontent-%COMP%]{padding-block:2.5rem 3rem}.blog-card[_ngcontent-%COMP%]{--card-px: 1.25rem;--card-py: 1.5rem;padding:var(--card-py) var(--card-px)}.blog-list-title[_ngcontent-%COMP%]{font-size:1.6rem}.blog-list-subtitle[_ngcontent-%COMP%]{font-size:.95rem}}']})}return t})()});Pe();export{De as BlogListComponent};
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.