PageSourceSearch

https://elxis.com/build/assets/BlogOverview-WNE4PK6p.js

js elxis.com collected 2026-09-24 22:11:22 UTC 4,166 bytes, 1 lines download raw bytes

1import{j as e,L as S,_ as t,I as g,a as F,H as f,B as L}from"./app-W4vvqFN5.js";import{L as k,B as i}from"./Layout-CjH7VPEp.js";import{B as O}from"./Breadcrumbs-DWRLZ6Vw.js";import{L as H,l as R,R as q}from"./teamSliderTransformer-BMJg8Dqf.js";import{C as z}from"./CtaBanner-DlIQj10A.js";import{c as I,B as T,d as $}from"./blockTransformer-FMrVIiiU.js";import{F as A}from"./FilterTopBar-DYtLsSEx.js";import{P as D}from"./Pagination-Ct0WMpEU.js";/* empty css            */import"./PhoneInputField-DP8hM54z.js";const E=({title:n,publishedAt:c,href:r,image:o,label:l})=>e.jsxs("article",{className:"group relative h-full min-h-96 w-full overflow-hidden rounded-lg transition-all duration-300 hover:border-secondary-500 hover:shadow-primary-dark",children:[e.jsxs(S,{href:r,className:"relative z-10 flex h-full flex-col justify-end gap-4 bg-neutral-black/60 p-10 text-neutral-white",children:[e.jsx("div",{className:"flex flex-col-reverse gap-3",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("div",{children:l&&e.jsx(H,{className:`${R[l.color]}`,children:l.title})}),e.jsx("p",{className:"text-size-3.5 font-light",children:c}),e.jsx("h3",{className:"font-bold",children:n})]})}),e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-size-4 font-bold",children:t("read_more")}),e.jsx(g,{name:"arrow-right",className:"h-4 w-4"})]})]}),o&&e.jsx(q,{preset:"default",attachment:o,className:"absolute top-0 left-0 h-full w-full object-cover transition-all duration-300 group-hover:scale-105"})]}),P=()=>({filters:[{label:t("search"),type:"text",name:"search",value:null,icon:"search",placeholder:t("search_hint")},{label:t("category"),type:"select",value:null,name:"category",options:[],placeholder:t("all")}]}),Z=({category:n,categories:c,blogs:r,values:o,texts:l,socialIcons:d,blogsUrl:j})=>{const{get:v,setData:m,data:p}=F({category:n?.slug||void 0,search:o.search||void 0,sort_by:o.sort_by||void 0}),N=r.data.map(s=>I(s)),y=r.meta,b=(s,a)=>{switch(a){case 0:return e.jsx(E,{...s});case 6:return e.jsx($,{...s});default:return e.jsx(T,{...s,imageAspectRatio:"2/1"})}},x=()=>{const s=document.querySelector("form");s&&requestAnimationFrame(()=>s.requestSubmit())},w=(s,a)=>{a=a===""||!a?void 0:a,m(s,a),x()},_=async s=>{s.preventDefault(),v(j,{preserveState:!0,preserveScroll:!0})},B=P().filters.map(s=>s.type==="select"?{...s,options:c?.map(a=>({label:a.name,value:a.slug}))??[]}:s),C=()=>{const s=u();m("sort_by",s.next),x()},h={oldest:{label:t("oldest"),value:"oldest",next:void 0},newest:{label:t("newest"),value:void 0,next:"oldest"}},u=()=>h[p.sort_by]||h.newest;return e.jsx(k,{children:e.jsx("main",{className:"flex flex-col gap-3 bg-neutral-100",children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(i,{children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(O,{className:"pt-2"}),e.jsx(f,{variant:"h1",as:"h1",className:"text-primary-900",children:l.title}),l.description&&e.jsx("div",{className:"max-w-160 leading-160 text-primary-900",dangerouslySetInnerHTML:{__html:l.description}})]})}),e.jsx(i,{className:"mt-3",children:e.jsxs("section",{className:"flex flex-col gap-5",children:[e.jsx("form",{className:"rounded-lg bg-neutral-white p-4 shadow-lg",onSubmit:_,children:e.jsx(A,{filters:B,data:p,onChange:w})}),e.jsxs("section",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(f,{variant:"h6",as:"h3",className:"text-primary-900",children:r.meta.total===0?t("no_results"):t("count_results",{count:r.meta.total})}),e.jsxs(L,{variant:"link",className:"!flex !items-center !gap-2 px-5",onClick:()=>C(),children:[u().label,e.jsx(g,{name:"arrow-up-down",className:"h-4 w-4"})]})]}),e.jsx("ul",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:N.map((s,a)=>e.jsx("li",{className:`${a===0||a===6?"col-span-1 md:col-span-2":"col-span-1"}`,children:b(s,a)},`blog-${a}`))})]})]})}),e.jsx(D,{meta:y}),(d?.length??0)>0&&e.jsx(i,{className:"py-6",children:e.jsx(z,{type:"CtaBanner",data:{title:t("stay_updated_social_media"),isSocial:!0,socials:d||[]}})})]})})})};export{Z 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.