1import{a as Y,b as J}from"./chunk-YIGAAA7I.js";import{a as $,b as q}from"./chunk-LZ4XC2TM.js";import"./chunk-6MOVM5NX.js";import{f as F,i as R,m as D,n as A}from"./chunk-REXD3XXG.js";import{d as I,e as y,j as X}from"./chunk-XZTRQ27X.js";import{b as G,c as U,e as z,f as N}from"./chunk-OVGYRFXU.js";import"./chunk-MZWCCPRN.js";import{Ic as p,Jc as v,Kc as f,Lb as M,Nb as h,Ob as x,Oc as d,Qb as S,Qc as g,Rb as L,Sb as T,Tb as _,Ub as i,Vb as r,Wb as P,Z as m,gb as n,hc as b,md as w,td as E,ub as B,wc as l,xc as O,yc as s}from"./chunk-JXIB5BED.js";import{e as Z}from"./chunk-J6LPXIX4.js";function rt(e,c){e&1&&(i(0,"div",16)(1,"span",19),l(2),d(3,"translate"),r()()),e&2&&(n(2),s(" ",g(3,1,"COMMON.LOADING",p(4,nt))," "))}function lt(e,c){if(e&1&&(i(0,"div",17),l(1),r()),e&2){let t=b();n(),s(" ",t.error," ")}}function st(e,c){if(e&1&&(i(0,"div",20)(1,"p",22),l(2),d(3,"translate"),r(),i(4,"a",23),l(5),d(6,"translate"),r()()),e&2){let t=b(2);n(2),s(" ",g(3,3,"BLOG.PUBLIC.EMPTY",p(9,it))," "),n(2),_("routerLink",v(10,k,t.lang)),n(),s(" ",g(6,6,"BLOG.PUBLIC.BACK_TO_BLOG",p(12,j))," ")}}function ct(e,c){if(e&1&&(i(0,"a",28),l(1),r()),e&2){let t=b().$implicit,a=b(3);_("routerLink",f(2,ot,a.lang,t.categorySlug)),n(),s(" ",t.categoryLabel," ")}}function dt(e,c){if(e&1&&(i(0,"div",24)(1,"article",25)(2,"div",26)(3,"div",27),h(4,ct,2,5,"a",28),i(5,"span",29),l(6),r()(),i(7,"h2",30)(8,"a",31),l(9),r()(),i(10,"p",32),l(11),r(),i(12,"p",33)(13,"strong"),l(14),r(),i(15,"span",34),l(16,"\u2022"),r(),i(17,"time"),l(18),r()()(),i(19,"footer",35)(20,"a",36),l(21),d(22,"translate"),P(23,"i",37),r()()()()),e&2){let t=c.$implicit,a=b(3);n(4),x(t.categoryLabel?4:-1),n(2),s("#",a.tagSlug),n(2),_("routerLink",f(13,H,a.lang,t.slug)),n(),s(" ",t.title," "),n(2),s(" ",t.excerpt," "),n(3),O(t.author),n(3),M("datetime",t.isoDate),n(),O(t.humanDate),n(2),_("routerLink",f(16,H,a.lang,t.slug)),n(),s(" ",g(22,10,"BLOG.PUBLIC.READ_MORE",p(19,at))," ")}}function gt(e,c){if(e&1&&(i(0,"div",21),L(1,dt,24,20,"div",24,S),r()),e&2){let t=b(2);n(),T(t.articles)}}function pt(e,c){if(e&1&&(i(0,"section",18),h(1,st,7,13,"div",20),h(2,gt,3,0,"div",21),r()),e&2){let t=b();n(),x(t.articles.length===0?1:-1),n(),x(t.articles.length>0?2:-1)}}var Q,k,V,tt,et,j,nt,it,H,at,ot,kt,ut=Z(()=>{E();A();N();X();J();q();E();A();N();Q=()=>({default:"Fil d\u2019Ariane"}),k=e=>["/",e,"blog"],V=()=>({default:"Blog"}),tt=e=>({default:"Tag",tag:e}),et=()=>({default:"Articles tagg\xE9s"}),j=()=>({default:"Retour au blog"}),nt=()=>({default:"Chargement\u2026"}),it=()=>({default:"Aucun article publi\xE9 pour le moment."}),H=(e,c)=>["/",e,"blog",c],at=()=>({default:"Lire l\u2019article"}),ot=(e,c)=>["/",e,"blog","category",c];kt=(()=>{class e{route=m(F);blog=m(Y);translate=m(G);cdr=m(w);title=m(y);meta=m(I);seo=m($);sub;tagSlug=null;articles=[];loading=!0;error=null;pageSize=9;get lang(){return this.translate.currentLang||this.translate.getDefaultLang()||"fr"}get articlesCountLabel(){let t=this.articles.length||0;return`${t} article${t>1?"s":""}`}ngOnInit(){this.sub=this.route.paramMap.subscribe(t=>{this.tagSlug=t.get("tagSlug"),this.setupSeo(),this.load()})}ngOnDestroy(){this.sub?.unsubscribe()}load(){this.loading=!0,this.error=null,this.articles=[],this.cdr.markForCheck(),this.blog.list({page:1,pageSize:this.pageSize,search:null,language:this.lang,tag:this.tagSlug}).subscribe({next:t=>{let a=t.items||[];this.articles=a.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()}})}setupSeo(){let t=this.tagSlug||"...",a=`${this.translate.instant("BLOG.PUBLIC.EYEBROW",{default:"Blog"})} \u2013 #${t}`,o=this.translate.instant("BLOG.PUBLIC.TAG_DESCRIPTION",{default:`Articles tagg\xE9s #${t}.`,tag:t});this.seo.setRobotsNoindex(),this.seo.setTitle(a),this.seo.setDescription(o)}toCardItem(t){let a=t.created_at?new Date(t.created_at):new Date,o=new Intl.DateTimeFormat("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric"}).format(a),u=t.category||null,C=u?this.translate.instant("BLOG_ADMIN.FORM.CATEGORY_"+u.toUpperCase(),{default:u}):null,K=this.stripHtml(t.content||""),W=this.cleanExcerpt(K,240);return{id:t.id,title:t.title,slug:t.slug,categoryLabel:C,categorySlug:u,excerpt:W,author:"Textiaa Blog",isoDate:a.toISOString().split("T")[0],humanDate:o,language:t.language||this.lang}}cleanExcerpt(t,a=240){let o=(t||"").replace(/^["'\s]+/g,"").replace(/^\s*html\s*[:\-]?\s*/i,"").replace(/\s+/g," ").trim();return o?o.length>a?o.slice(0,a).trim()+"\u2026":o:""}stripHtml(t){if(!t)return"";if(typeof document>"u")return t.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();let a=document.createElement("textarea");a.innerHTML=t;let o=a.value,u=document.createElement("div");u.innerHTML=o;let C=(u.textContent||u.innerText||"").trim();return C=C.replace(/data:image\/[a-zA-Z0-9.+-]+;base64,[A-Za-z0-9+/=]+/g,"").replace(/https?:\/\/\S{80,}/g,"").replace(/\s+/g," ").trim(),C}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=B({type:e,selectors:[["app-blog-tag"]],decls:34,vars:37,consts:[["aria-labelledby","blog-page-title",1,"blog-tag-page"],[1,"container","blog-tag-container"],[1,"page-header","box"],[1,"breadcrumb","is-small","mb-2"],[3,"routerLink"],[1,"is-active"],["aria-current","page"],[1,"header-row"],[1,"header-main"],["
1id","blog-page-title",1,"title","is-2","mb-2"],[1,"subtitle","is-6","mb-0"],[1,"has-text-weight-semibold"],[1,"header-side"],[1,"button","is-link","is-light","is-small","mt-2",3,"routerLink"],[1,"icon"],["aria-hidden","true",1,"pi","pi-arrow-left"],[1,"has-text-centered","my-5"],["role","alert",1,"notification","is-danger"],[1,"mt-4"],["role","status","aria-live","polite",1,"loader"],[1,"empty-state","box"],[1,"columns","is-multiline","is-variable","is-5"],[1,"has-text-grey","mb-3"],[1,"button","is-link","is-light",3,"routerLink"],[1,"column","is-12-mobile","is-6-tablet","is-4-desktop"],[1,"card","post-card"],[1,"card-content"],[1,"is-flex","is-align-items-center","is-justify-content-space-between","mb-3"],[1,"tag","is-rounded","is-link","is-light",3,"routerLink"],[1,"tag","is-rounded","is-light"],[1,"title","is-5","mb-2"],[1,"post-title-link",3,"routerLink"],[1,"post-excerpt","mb-4"],[1,"post-meta"],["aria-hidden","true",1,"mx-2"],[1,"card-footer"],[1,"card-footer-item","readmore",3,"routerLink"],["aria-hidden","true",1,"pi","pi-arrow-right","ml-2"]],template:function(a,o){a&1&&(i(0,"section",0)(1,"div",1)(2,"header",2)(3,"nav",3),d(4,"translate"),i(5,"ul")(6,"li")(7,"a",4),l(8),d(9,"translate"),r()(),i(10,"li",5)(11,"a",6),l(12),r()()()(),i(13,"div",7)(14,"div",8)(15,"h1",9),l(16),d(17,"translate"),r(),i(18,"p",10),l(19),d(20,"translate"),i(21,"span",11),l(22),r(),l(23,". "),r()(),i(24,"div",12)(25,"a",13)(26,"span",14),P(27,"i",15),r(),i(28,"span"),l(29),d(30,"translate"),r()()()()(),h(31,rt,4,5,"div",16),h(32,lt,2,1,"div",17),h(33,pt,3,2,"section",18),r()()),a&2&&(n(3),M("aria-label",g(4,12,"BLOG.PUBLIC.BREADCRUMB_ARIA",p(27,Q))),n(4),_("routerLink",v(28,k,o.lang)),n(),s(" ",g(9,15,"BLOG.PUBLIC.EYEBROW",p(30,V))," "),n(4),s("#",o.tagSlug||"..."),n(4),s(" ",g(17,18,"BLOG.PUBLIC.TAG_TITLE",v(31,tt,o.tagSlug||"..."))," "),n(3),s(" ",g(20,21,"BLOG.PUBLIC.TAG_DESCRIPTION_PREFIX",p(33,et))," "),n(3),s("#",o.tagSlug||"..."),n(3),_("routerLink",v(34,k,o.lang)),n(4),O(g(30,24,"BLOG.PUBLIC.BACK_TO_BLOG",p(36,j))),n(2),x(o.loading?31:-1),n(),x(!o.loading&&o.error?32:-1),n(),x(!o.loading&&!o.error?33:-1))},dependencies:[D,R,z,U],styles:['@charset "UTF-8";.blog-tag-page[_ngcontent-%COMP%]{padding-block:2rem 3.25rem;background:var(--background)!important;color:var(--bulma-text)}.blog-tag-container[_ngcontent-%COMP%]{max-width:1180px;margin-inline:auto;padding-inline:1rem}.page-header.box[_ngcontent-%COMP%]{border-radius:var(--bulma-radius-large, 16px);box-shadow:var(--bulma-shadow, 0 10px 24px rgba(0, 0, 0, .18))}.breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--bulma-text-weak)}.breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible{color:var(--bulma-link);text-decoration:underline}.breadcrumb[_ngcontent-%COMP%] li.is-active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--bulma-text-strong)}.header-row[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between}.header-main[_ngcontent-%COMP%]{min-width:0}.header-side[_ngcontent-%COMP%]{text-align:right;min-width:220px;flex:0 0 auto}#blog-page-title[_ngcontent-%COMP%]{color:var(--bulma-text-strong)}.subtitle[_ngcontent-%COMP%]{color:var(--bulma-text-weak)!important}.page-header.box[_ngcontent-%COMP%], .post-card.card[_ngcontent-%COMP%]{background:var(--bulma-scheme-main-bis)}.post-card.card[_ngcontent-%COMP%]{height:100%;border-radius:var(--bulma-radius-large, 16px);overflow:hidden;border:1px solid var(--bulma-border-weak);box-shadow:var(--bulma-shadow, 0 10px 24px rgba(0, 0, 0, .18));transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.post-card[_ngcontent-%COMP%]:hover, .post-card[_ngcontent-%COMP%]:focus-within{transform:translateY(-4px);border-color:color-mix(in srgb,var(--bulma-link) 45%,var(--bulma-border-weak));box-shadow:0 18px 38px color-mix(in srgb,var(--bulma-link) 18%,transparent)}.post-title-link[_ngcontent-%COMP%]{color:var(--bulma-text-strong);text-decoration:none}.post-title-link[_ngcontent-%COMP%]:hover, .post-title-link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.post-title-link[_ngcontent-%COMP%], .post-excerpt[_ngcontent-%COMP%], .post-meta[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.post-excerpt[_ngcontent-%COMP%]{color:var(--bulma-text);opacity:.9;font-size:.95rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.post-meta[_ngcontent-%COMP%]{color:var(--bulma-text-weak);font-size:.85rem;margin-top:auto}.card-footer[_ngcontent-%COMP%] .readmore[_ngcontent-%COMP%]{font-weight:800;color:var(--bulma-link);text-decoration:none}.card-footer[_ngcontent-%COMP%] .readmore[_ngcontent-%COMP%]:hover, .card-footer[_ngcontent-%COMP%] .readmore[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.empty-state.box[_ngcontent-%COMP%]{border-radius:var(--bulma-radius-large, 16px);border:1px dashed var(--bulma-border-weak)}.loader[_ngcontent-%COMP%]{display:inline-block}html[data-theme=dark][_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], html[data-theme=dark] [_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], body.dark[_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], body.dark [_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], .theme-dark [_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .button.is-link.is-light[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--bulma-link) 16%,transparent);border-color:color-mix(in srgb,var(--bulma-link) 25%,transparent);color:var(--bulma-text-strong)}a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bulma-link);outline-offset:3px;border-radius:8px}@media(max-width:768px){.header-row[_ngcontent-%COMP%]{flex-direction:column}.header-side[_ngcontent-%COMP%]{text-align:left;min-width:0;width:100%}}']})}return e})()});ut();
1export{kt as BlogTagComponent};
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.