1import{O as f,E as v,q as c,K as S,f as L,o as e,c as y,L as E,S as O}from"./index-CHGZ0aK0.js";const A={sfaturi:"Sfaturi",tendinte:"TendinÈe",verighete:"Verighete",logodna:"LogodnÄ",materiale:"Materiale",ingrijire:"Ãngrijire",personalizare:"Personalizare",noutati:"NoutÄÈi",inspiratie:"InspiraÈie"};function C(r,n="ro-RO"){return r?new Date(r).toLocaleDateString(n,{day:"numeric",month:"long",year:"numeric"}):""}function R(){const[r,n]=f(),i=r.get("cat")||"",{lang:o,t}=v(),u=a=>o!=="ro"&&a&&a.trad&&a.trad[o]?{...a,...a.trad[o]}:a,b=a=>{const l="blog.cat."+a,s=t(l);return s===l?A[a]||a:s},x={ro:"ro-RO",en:"en-GB",de:"de-DE",es:"es-ES",fr:"fr-FR"}[o]||"ro-RO",[d,j]=c.useState([]),[g,p]=c.useState(0),[N,m]=c.useState(!0);S({title:"Blog â ATCOM Bijuterii",description:"Sfaturi, tendinÈe Èi ghiduri despre bijuterii din aur, verighete, inele de logodnÄ Èi îngrijirea bijuteriilor de la experÈii ATCOM."}),c.useEffect(()=>{m(!0);const a=new URLSearchParams({per:24});i&&a.set("cat",i),L.get(`/api/public/articole?${a}`).then(l=>{j(l.data.articole||[]),p(l.data.total||0)}).catch(()=>{}).finally(()=>m(!1))},[i]);const h=[...new Set(d.flatMap(a=>a.categorii||[]))];return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsxs("main",{className:"blog-page",children:[e.jsxs("section",{className:"blog-hero",children:[e.jsx("div",{className:"blog-hero-badge",children:t("blog.journal")}),e.jsx("h1",{className:"blog-hero-title",children:t("blog.title")}),e.jsx("p",{className:"blog-hero-sub",children:t("blog.subtitle")})]}),e.jsxs("div",{className:"blog-container",children:[h.length>0&&e.jsxs("nav",{className:"blog-cats",children:[e.jsx("button",{className:`blog-cat-btn${i?"":" blog-cat-btn--active"}`,onClick:()=>n({}),children:t("blog.all")}),h.map(a=>e.jsx("button",{className:`blog-cat-btn${i===a?" blog-cat-btn--active":""}`,onClick:()=>n({cat:a}),children:b(a)},a))]}),N?e.jsxs("div",{className:"blog-loading",children:[e.jsx("span",{className:"blog-loading-ring"}),e.jsx("span",{children:t("blog.loading")})]}):d.length===0?e.jsxs("div",{className:"blog-empty",children:[e.jsx("div",{className:"blog-empty-icon",children:"ð"}),e.jsx("p",{children:t("blog.empty1")}),e.jsx("p",{children:t("blog.empty2")})]}):e.jsxs(e.Fragment,{children:[g>0&&e.jsxs("div",{className:"blog-count",children:[g," ",t(g===1?"blog.count_one":"blog.count_many")]}),e.jsx("div",{className:"blog-grid",children:d.map((a,l)=>{const s=u(a);return e.jsxs(E,{to:`/blog/${s.slug}`,className:`blog-card${l===0&&!i?" blog-card--featured":""}`,children:[e.jsxs("div",{className:"blog-card-img",children:[s.imagine?e.jsx("img",{src:s.imagine,alt:s.titlu,loading:"lazy"}):e.jsx("span",{className:"blog-card-ph",children:"ð"}),s.categorii?.length>0&&e.jsx("span",{className:"blog-card-cat",children:b(s.categorii[0])})]}),e.jsxs("div",{className:"blog-card-body",children:[e.jsx("h2",{className:"blog-card-title",children:s.titlu}),s.excerpt&&e.jsx("p",{className:"blog-card-excerpt",children:s.excerpt}),e.jsxs("div",{className:"blog-card-foot",children:[e.jsx("span",{className:"blog-card-autor",children:s.autor==="Echipa ATCOM"?t("blog.team"):s.autor}),e.jsx("span",{className:"blog-card-date",children:C(s.publishedAt,x)})]})]})]},s.id)})})]})]})]}),e.jsx(O,{})]})}export{R 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.