PageSourceSearch

https://vatava.ro/_nuxt/Cxnc6OEQ.js

js vatava.ro collected 2026-10-02 23:37:52 UTC 5,092 bytes, 1 lines download raw bytes

1import{bg as m,b3 as t,Q as a,aR as u,aO as k,F as y,be as w,a0 as n,O as o,c1 as b,bs as s,I as i,bf as f,Z as g,J as x,b_ as C,_ as E,h as O}from"./PW_UF68a.js";import{a as I}from"./-W1VOijv.js";import{E as T}from"./BrFLB2Fl.js";const V={name:"CategoryHeader",props:{category:{type:Object,required:!0,default:()=>({})},variant:{type:String,default:"section",validator:c=>["hero","section"].includes(c)},breadcrumb:{type:Array,default:()=>[]}},emits:["navigate"],computed:{resolvedColor(){return this.category?.color||"var(--tenant)"},resolvedIcon(){const c=this.category?.icon;return c&&typeof c=="string"?c.startsWith("mdi-")?c:`mdi-${c}`:"mdi-folder-outline"},heroStyle(){return this.category?.cover_image?{backgroundImage:`linear-gradient(135deg, color-mix(in oklch, var(--cc) 70%, transparent) 0%, color-mix(in oklch, var(--tenant-dark) 80%, transparent) 100%), url('${this.category.cover_image}')`,backgroundSize:"cover",backgroundPosition:"center"}:{}}}},D={key:0,class:"cat-header__breadcrumb"},N={key:0,class:"cat-header__breadcrumb-sep"},F=["onClick"],M={key:2},j={class:"cat-header__main"},q={class:"cat-header__icon"},H={class:"cat-header__text"},R={class:"cat-header__title"},Z={key:0,class:"cat-header__subtitle"},J={key:1,class:"cat-header__meta"},L={key:1,class:"cat-header__section"},P={class:"cat-header__section-left"},Q={class:"cat-header__section-icon"},W={class:"cat-header__section-title"},$={key:0,class:"cat-header__section-subtitle"},G={class:"cat-header__section-right"};function K(c,h,e,z,A,r){const l=m("v-icon");return t(),a("div",{class:k(["cat-header",`cat-header--${e.variant}`]),style:u({"--cc":r.resolvedColor})},[e.variant==="hero"?(t(),a("div",{key:0,class:k(["cat-header__hero",{"cat-header__hero--cover":!!e.category?.cover_image}]),style:u(r.heroStyle)},[e.breadcrumb&&e.breadcrumb.length?(t(),a("div",D,[(t(!0),a(y,null,w(e.breadcrumb,(d,_)=>(t(),a(y,{key:`bc-${_}`},[_>0?(t(),a("span",N,[n(l,{icon:"mdi-chevron-right",size:"13"})])):o("",!0),d.to?(t(),a("a",{key:1,onClick:b(v=>c.$emit("navigate",d.to),["prevent"])},s(d.label),9,F)):(t(),a("span",M,s(d.label),1))],64))),128))])):o("",!0),i("div",j,[i("div",q,[n(l,{icon:r.resolvedIcon,size:"28",color:"white"},null,8,["icon"])]),i("div",H,[i("h1",R,s(e.category.name),1),e.category.subtitle?(t(),a("div",Z,s(e.category.subtitle),1)):o("",!0)])]),c.$slots.meta?(t(),a("div",J,[f(c.$slots,"meta",{},void 0,!0)])):o("",!0)],6)):(t(),a("div",L,[i("div",P,[i("div",Q,[n(l,{icon:r.resolvedIcon,size:"18",color:"white"},null,8,["icon"])]),i("div",null,[i("h2",W,s(e.category.name),1),e.category.subtitle?(t(),a("div",$,s(e.category.subtitle),1)):o("",!0)])]),i("div",G,[f(c.$slots,"section-right",{},()=>[e.category.id&&e.category.slug?(t(),a("a",{key:0,class:"cat-header__more",onClick:h[0]||(h[0]=b(d=>c.$emit("navigate",`/categories/${e.category.id}/view/${e.category.slug}`),["prevent"]))},[g(s(c.$t("category.see_all")||"Toate")+" ",1),n(l,{icon:"mdi-arrow-right",size:"15"})])):o("",!0)],!0)])]))],6)}const de=I(V,[["render",K],["__scopeId","data-v-853e8bcc"]]),U={name:"ArticleCard",components:{EditAssetButton:T},props:{data:{type:Object,required:!0},color:{type:String,default:null}},computed:{styleVars(){return{"--cc":this.color||"var(--tenant)"}},fallbackIcon(){return this.data?.category_icon?`mdi-${this.data.category_icon}`:"mdi-file-document-outline"},hasMeta(){return!!(this.data?.display_date||this.data?.views)},displayedTags(){const c=this.data?.tags;return Array.isArray(c)?c.slice(0,3):[]}},methods:{formatDate(c){if(!c)return"";try{return new Intl.DateTimeFormat("ro-RO",{timeZone:"Europe/Bucharest",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(c))}catch{return""}}}},X={key:1,class:"ac-h__img ac-h__img--fallback"},Y={class:"ac-h__info"},p={class:"ac-h__title"},ee={key:0,class:"ac-h__meta"},te={key:0,class:"ac-h__meta-item"},ae={key:1,class:"ac-h__meta-item"},ce={key:1,class:"ac-h__desc"},se={key:2,class:"ac-h__tags"};function re(c,h,e,z,A,r){const l=m("EditAssetButton"),d=E,_=m("v-icon"),v=O;return t(),x(v,{class:"ac-h",to:`/articles/${e.data.slug}`,style:u(r.styleVars)},{default:C(()=>[n(d,null,{default:C(()=>[n(l,{link:`/articles/edit/${e.data.slug}`},null,8,["link"])]),_:1}
1),e.data.cover_image?(t(),a("div",{key:0,class:"ac-h__img",style:u({backgroundImage:`url('${e.data.cover_image}')`})},null,4)):(t(),a("div",X,[n(_,{icon:r.fallbackIcon,size:"28"},null,8,["icon"])])),i("div",Y,[i("h6",p,s(e.data.title),1),r.hasMeta?(t(),a("div",ee,[e.data.display_date?(t(),a("span",te,[n(_,{icon:"mdi-calendar-outline",size:"12"}),g(" "+s(r.formatDate(e.data.display_date)),1)])):o("",!0),e.data.views?(t(),a("span",ae,[n(_,{icon:"mdi-eye-outline",size:"12"}),g(" "+s(e.data.views),1)])):o("",!0)])):o("",!0),e.data.short_description?(t(),a("p",ce,s(e.data.short_description),1)):o("",!0),r.displayedTags.length?(t(),a("div",se,[(t(!0),a(y,null,w(r.displayedTags,(B,S)=>(t(),a("span",{key:`t-${S}`,class:"ac-h__tag"},s(B),1))),128))])):o("",!0)])]),_:1},8,["to","style"])}const le=I(U,[["render",re],["__scopeId","data-v-02c9e784"]]);export{le as A,de as C};

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.