1import{r as i,j as e}from"./vendor-PKXgktxM.js";import{o as p,u as v,S as m,L as o,c as f,P as b}from"./index-aQEzI3WC.js";import{B as j}from"./Breadcrumb-Cga83jm1.js";import{S as y}from"./SanitizedHtml-DiPnL8b-.js";import{u as w,b as N,c as C}from"./seoPages-BFPkUrWU.js";import{v as P,a as d,u as E}from"./icons-CqhEfYCO.js";import"./helmet-BNHTuvC-.js";import"./admin-editor-DXMNQspV.js";import"./search-Dw8P0qyA.js";import"./sanitize-LQkvcK5U.js";function $({product:t}){return e.jsxs(o,{to:`/products/${t.category}/${t.slug||t.id}`,className:"bg-white rounded-xl border border-gray-100 hover:border-cornelius-blue/30 shadow-sm hover:shadow-lg transition-all duration-300 group flex flex-col overflow-hidden",children:[e.jsx("div",{className:"h-44 bg-gradient-to-br from-gray-50 to-cornelius-light/30 overflow-hidden flex items-center justify-center",children:t.image?e.jsx("img",{src:t.image,alt:t.name,loading:"lazy",width:300,height:176,className:"max-w-full max-h-full object-contain p-4 group-hover:scale-105 transition-transform duration-300"}):e.jsx("div",{className:"w-full h-full",children:e.jsx(b,{name:t.name,category:t.category,size:"md"})})}),e.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center text-xs font-semibold text-cornelius-blue bg-cornelius-blue/[0.08] px-2.5 py-0.5 rounded-full",children:t.family}),e.jsx("span",{className:"text-xs text-cornelius-gray capitalize",children:t.category}),e.jsx(d,{className:"w-4 h-4 text-cornelius-blue/40 group-hover:text-cornelius-blue group-hover:translate-x-1 transition-all ml-auto shrink-0"})]}),e.jsx("h3",{className:"font-bold text-cornelius-navy text-lg group-hover:text-cornelius-blue transition-colors leading-tight",children:t.name}),e.jsx(y,{html:t.description,className:"text-sm text-cornelius-gray mt-2 line-clamp-2 leading-relaxed flex-1"}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-3 pt-3 border-t border-gray-50 text-xs text-cornelius-gray",children:[e.jsx(E,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"font-medium",children:t.documents.length})," documents available"]})]})]})}function F(){const t=p(),{products:n,loading:x}=v(),l=i.useMemo(()=>w.find(s=>s.slug===t.useCaseSlug),[t.useCaseSlug]),r=i.useMemo(()=>l?N(n,l):[],[n,l]),u=i.useMemo(()=>{const s={};for(const a of r)s[a.category]=(s[a.category]||0)+1;return s},[r]),h=i.useMemo(()=>{const s={};for(const a of r)s[a.family]=(s[a.family]||0)+1;return s},[r]),c=i.useMemo(()=>C(n).filter(s=>s.slug!==t.useCaseSlug).slice(0,4),[n,t.useCaseSlug]);if(x)return e.jsx("div",{className:"flex items-center justify-center py-24",children:e.jsx("div",{className:"w-8 h-8 border-2 border-cornelius-navy/20 border-t-cornelius-navy rounded-full animate-spin"})});if(!l||r.length<2)return e.jsxs("div",{className:"py-20 text-center",children:[e.jsx(m,{title:"Page Not Found",description:"The page you are looking for could not be found.",path:`/solutions/${t.useCaseSlug||""}`}),e.jsx("h1",{className:"text-2xl font-bold text-cornelius-navy mb-4",children:"Page not found"}),e.jsx(o,{to:"/products",className:"text-cornelius-blue hover:underline",children:"Browse all products"})]});const g={"@context":"https://schema.org","@type":"CollectionPage",name:l.title,description:l.seoDescription,url:`https://www.cornelius.com/solutions/${l.slug}`,mainEntity:{"@type":"ItemList",numberOfItems:r.length,itemListElement:r.map((s,a)=>({"@type":"ListItem",position:a+1,name:s.name,url:`https://www.cornelius.com/products/${s.category}/${s.slug||s.id}`,item:{"@type":"Product",name:s.name,description:s.description,url:`https://www.cornelius.com/products/${s.category}/${s.slug||s.id}`,brand:{"@type":"Brand",name:"Cornelius"},sku:s.id}}))}};return e.jsxs("div",{children:[e.jsx(m,{title:l.title,description:l.seoDescription,path:`/solutions/${l.slug}`,jsonLd:g}),e.jsx(j,{items:[{label:"Product Literature",href:"/products"},{label:l.title}]}),e.jsxs("section",{className:"relative bg-gradient-to-br from-cornelius-dark via-cornelius-navy to-cornelius-blue text-white py-12 md:py-20 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.04]",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewB
1ox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 relative z-10",children:[e.jsxs(o,{to:"/products",className:"inline-flex items-center gap-1 text-white/60 hover:text-white text-sm mb-4 transition-colors min-h-[44px]",children:[e.jsx(P,{className:"w-4 h-4"})," All Products"]}),e.jsx("h1",{className:"text-2xl md:text-4xl font-bold mb-4",children:l.title}),e.jsx("p",{className:"text-base text-white/80 max-w-3xl",children:l.description})]})]}),e.jsx("section",{className:"py-4 bg-white border-b border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:e.jsxs("div",{className:"flex items-center gap-4 py-2 text-sm text-cornelius-gray overflow-x-auto",children:[e.jsxs("span",{className:"font-semibold text-cornelius-navy",children:[r.length," products"]}),e.jsx("div",{className:"w-px h-5 bg-gray-200"}),Object.entries(u).map(([s,a])=>e.jsxs(o,{to:`/products/${s}`,className:"whitespace-nowrap hover:text-cornelius-blue transition-colors",children:[f[s]||s,": ",a]},s)),e.jsx("div",{className:"w-px h-5 bg-gray-200"}),Object.entries(h).slice(0,4).map(([s,a])=>e.jsxs("span",{className:"whitespace-nowrap",children:[s,": ",a]},s))]})})}),e.jsx("section",{className:"py-10 md:py-16 bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map(s=>e.jsx($,{product:s},s.id))})})}),c.length>0&&e.jsx("section",{className:"py-12 bg-white border-t border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:c.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-cornelius-navy mb-4",children:"Explore More Solutions"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:c.map(s=>e.jsxs(o,{to:`/solutions/${s.slug}`,className:"flex items-center gap-3 p-4 bg-gray-50 rounded-lg hover:bg-cornelius-light transition-colors group",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-semibold text-cornelius-navy group-hover:text-cornelius-blue transition-colors",children:s.title}),e.jsxs("div",{className:"text-xs text-cornelius-gray",children:[s.products.length," products"]})]}),e.jsx(d,{className:"w-4 h-4 text-cornelius-gray/40 shrink-0"})]},s.slug))})]})})})]})}export{F 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.