1import N from"./BfeQ0nLh.js";import{_ as w}from"./DJnNxUKs.js";import L from"./C-gqtigH.js";import{k as P,u as F,i as g,c as R,aa as V,W as E,a as s,o as c,e as n,f as t,d as O,F as D,r as q,n as A,g as u,j as r,w as J,t as K,v as p}from"./Do1nZpFk.js";import{u as T}from"./DJNcXkHB.js";import{u as W}from"./DvJT-m7N.js";import{u as X}from"./CCd7CVVz.js";import{u as G}from"./DZKjVPmg.js";import"./BM5aYONo.js";import"./ChoZ3EV4.js";const H=["data-id"],M={class:"container"},Q={key:0,class:"text-center"},U={key:1},Y={key:0},Z={class:"row"},tt={class:"card h-100 border-0"},ot={class:"d-flex flex-column card-body"},et=["textContent"],nt={class:"button-wrapper mt-auto"},gt={__name:"Container",props:{section:{type:Object,required:!0}},setup(b){const d=b,{$_:st}=P(),{$moment:f}=T(),v=E(),{project:h}=F(),{section:o}=W(d),{padding:y,backgroundColor:x,shadow:$}=X(d),{cols:k}=G(),m=g(!0),l=g(null),_=R(()=>{if(!l.value)return[];const e=l.value.data.data;return e.length===0?[]:e.map(a=>({...a,cover:JSON.parse(a.cover),description:a.description.replace(/<\/?[^>]+>/gi," ")}))});V(`${v.public.apiBase}/api/projects/${h.getProject.id}/blog?perPage=${o.options.content.pagination.perPage}&categoryId=${o.options.content.pagination.byCategory||""}`,"$RIvj9KLxXR").then(({data:e})=>{l.value=e.value}).finally(()=>{m.value=!1});const C=e=>({options:{content:{image:e},customize:{}}}),j=e=>o.options.content.button.subject?{options:{content:{button:{...o.options.content.button.subject.options.content.button,action:"Link",page:{id:"blog",slug:`blog/${e}`}}},customize:o.options.content.button.subject.options.customize}}:{options:{content:{button:{...o.options.content.button,action:"Link",page:{id:"blog",slug:`blog/${e}`}}},customize:o.options.customize}};return(e,a)=>{const z=N,B=w,S=L;return c(),s("div",{class:"blog-post-grid-section","data-id":t(o).uid,style:r({...t(x),...t(y),...t($)})},[n("div",M,[t(m)?(c(),s("div",Q,"Loading")):(c(),s("div",U,[t(_).length>0?(c(),s("div",Y,[n("div",Z,[(c(!0),s(D,null,q(t(_).slice(0,t(o).options.content.pagination.perPage),(i,I)=>(c(),s("div",{class:A(["col",t(k)("col-lg-4 mb-5","col-12 mb-4")]),key:I},[n("div",tt,[n("div",ot,[u(z,{paddingDisabled:!0,size:"cover",height:"180px",class:"mb-3",section:C(i.cover)},null,8,["section"]),n("p",{class:"font-size-14",style:r(t(o).options.content.date)},[u(B,null,{default:J(()=>[K(p(t(f)(i.created_at)),1)]),_:2},1024)],4),n("div",{style:r(t(o).options.content.title),textContent:p(i.title),class:"card-title"},null,12,et),n("p",{style:r(t(o).options.content.description),class:"line-clamp card-text mb-4"},p(i.description),5),n("div",nt,[u(S,{section:j(i.slug)},null,8,["section"])])])])],2))),128))])])):O("",!0)]))])],12,H)}}};export{gt 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.