1import{_ as v}from"./AuthenticatedLayout-NplXrCWP.js";import{_ as g}from"./ActionButton-W_xyk1XL.js";import x from"./CMSNewsComments-TDf7SO4t.js";import{N as b,S as y,C as k}from"./CarouselSlide-lNTPTGvC.js";import{k as S,p as T,s as N,o as a,c as u,w as n,f as i,a as c,d as j,g as p,b as s,u as t,t as _,l as A,m as C,F as B}from"./app-v6H0TFPE.js";import"./ApplicationLogo-Lld0gt_1.js";import"./_plugin-vue_export-helper-x3n3nnut.js";import"./Footer-Sipd4s12.js";const V={key:0,class:"pt-4 pl-3"},L={class:"flex justify-center"},M={key:0,class:"mt-4 p-4 border-2 border-success rounded-lg w-1/2 text-center text-success"},$={class:"news-pg py-6"},F={class:"container pt-8 pb-28"},H={class:"news-title flex justify-center"},O={class:"header-article"},P=["innerHTML"],D={class:"card card-slide relative flex flex-col min-w-0 break-words"},E=["src","alt"],W={__name:"CMSNewsPreview",props:{news:Object},setup(m){const l=m,e=S({});e.value=l.news.data,T(()=>l.news,r=>{e.value=r.data});const f=e.value.gallery.pictures,d=N(),h={itemsToShow:1,breakpoints:{300:{itemsToShow:1,snapAlign:"center"},576:{itemsToShow:2,snapAlign:"center"},768:{itemsToShow:3,snapAlign:"start"},1024:{itemsToShow:4,snapAlign:"start"}}};return(r,G)=>(a(),u(v,null,{default:n(()=>[e.value.public_news===0?(a(),i("div",V,[c(g,{href:r.route("cms-public-news",{id:e.value.id,public:1})},{default:n(()=>[j("Opublikuj")]),_:1},8,["href"])])):p("",!0),s("div",L,[t(d).flash.success?(a(),i("div",M,_(t(d).flash.success),1)):p("",!0)]),s("section",$,[s("div",F,[s("div",H,[s("h1",O,_(e.value.title),1)]),s("div",{class:"news-text py-6 px-8 text-justify whitespace-pre-line",innerHTML:e.value.content},null,8,P),c(t(k),{settings:h},{addons:n(()=>[c(t(b))]),default:n(()=>[(a(!0),i(B,null,A(t(f),(o,w)=>(a(),u(t(y),C({key:o.id,index:w},o),{default:n(()=>[s("div",D,[s("img",{src:o.src,class:"card-img-top h-52",alt:o.alt_text},null,8,E)])]),_:2},1040,["index"]))),128))]),_:1}),c(x,{comments:e.value.comments},null,8,["comments"])])])]),_:1}))}};export{W 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.