1import{r as l,l as s,j as t,B as f}from"./index.00a2eaef.js";import x from"./65e25093.js";import"./1b2d4b8a.js";function j({categories:m,blogs:e}){const[h,u]=l.exports.useState(!1),i=h?e==null?void 0:e.filter(n=>{var r;return(r=n==null?void 0:n.category)==null?void 0:r.some(a=>(a==null?void 0:a.title)===h)}):e;return s("div",{children:[t("div",{className:"hidden flex-wrap items-center justify-center gap-x-[5px] gap-y-[10px] pt-12 md:flex",children:m==null?void 0:m.map(({title:n},r)=>(e==null?void 0:e.filter(d=>{var p;return(p=d==null?void 0:d.category)==null?void 0:p.some(c=>(c==null?void 0:c.title)===n)}).length)>0&&t(f,{onClick:()=>{u(h===n?!1:n)},variant:h===n?"primary":"secondary",children:n},r))}),t("div",{className:"pt-6 md:hidden",children:s("select",{className:"blockH9 transition-standard blog-select mx-auto block w-max cursor-pointer rounded-full border-0 border-dark-grey bg-light-beige px-10 py-2 font-medium !text-dark-grey hover:scale-[1.02] hover:bg-opacity-70 focus:border-dark-grey focus:ring-0",onChange:n=>{var r,a;return((r=n==null?void 0:n.target)==null?void 0:r.value)==="all"?u(!1):u((a=n==null?void 0:n.target)==null?void 0:a.value)},children:[t("option",{value:"all",children:"All"}),m==null?void 0:m.map(({title:n},r)=>(e==null?void 0:e.filter(d=>{var p;return(p=d==null?void 0:d.category)==null?void 0:p.some(c=>(c==null?void 0:c.title)===n)}).length)>0&&t("option",{value:n,children:n},r))]})}),t("div",{className:"grid grid-cols-1 gap-x-7 gap-y-12 py-space-m sm:grid-cols-2 md:gap-y-25",children:(i==null?void 0:i.length)>0?i==null?void 0:i.map((n,r)=>t(x,{...n},r)):t("h4",{className:"blockH4 col-span-3 w-full font-medium text-orange",children:"No Results"})})]})}export{j as default}; 2//# sourceMappingURL=4df9b55d.js.map
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.