1import{r as x,j as e}from"./vendor-PKXgktxM.js";import{o as P,p as D,u as I,a as k,S as C,L as b,c as h,d as S,P as A}from"./index-aQEzI3WC.js";import{g as L,f as $}from"./faqGenerator-BvwK3vhw.js";import{B}from"./Breadcrumb-Cga83jm1.js";import{P as T}from"./ProductBanner-BDTsX-MV.js";import{S as R}from"./SanitizedHtml-DiPnL8b-.js";import{T as q}from"./TechnicalDifficultiesBanner-CHqKJyeS.js";import{g as z,a as O}from"./seoPages-BFPkUrWU.js";import{v as _,w as V,a as j,u as J}from"./icons-CqhEfYCO.js";import"./helmet-BNHTuvC-.js";import"./admin-editor-DXMNQspV.js";import"./search-Dw8P0qyA.js";import"./sanitize-LQkvcK5U.js";const H={fountain:"Intelligent fountain dispensing systems engineered for consistent beverage quality at every volume. From the Enduro series to the advanced IDC Pro touchscreen platform, plus CB Drop-In, FlavorFusion, and precision valve accessories.",frozen:"Reliable frozen beverage systems designed for uptime and operational efficiency. Built for convenience stores, QSRs, and entertainment venues where speed of service and consistent quality drive repeat business.",juice:"Versatile non-carbonated dispensing solutions for juice, tea, lemonade, cold brew, and specialty drink programs. Designed for daypart flexibility and quick adaptation to new beverage trends.",ice:"Commercial ice machines engineered for peak demand, faster service, and lower total cost of ownership. The Nordic Elite line sets the standard with energy efficiency and smart design for the most demanding environments."},E={fountain:"Browse Cornelius fountain dispensers: Enduro, IDC Pro, ACSD, CB Drop-In, FlavorFusion, and valve accessories. View specs and download documentation.",frozen:"Cornelius frozen beverage dispensers for C-stores, QSRs, and venues. Reliable systems built for uptime, speed of service, and consistent quality.",juice:"Cornelius juice and non-carbonated dispensers for tea, lemonade, cold brew, and specialty drinks. Flexible solutions for every daypart.",ice:"Cornelius commercial ice machines including Nordic Elite chunklet ice. Engineered for peak demand, energy efficiency, and lower total cost of ownership."},F=["ACSD","IDC Pro","IDC","Enduro","CB Drop-In","PR Series","OCE","Tea Tower","FlavorFusion","Valves & Accessories"],M={ACSD:"ACSD","IDC Pro":"IDC Pro",IDC:"IDC",Enduro:"Enduro","CB Drop-In":"Drop-In","PR Series":"PR Series",OCE:"OCE","Tea Tower":"Tea Tower",FlavorFusion:"FlavorFusion","Valves & Accessories":"Valves & Accessories"};function v(r){return r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function U({product:r}){return e.jsxs("div",{className:"group bg-white border border-gray-200 hover:border-cornelius-blue hover:shadow-md transition-all relative",children:[e.jsx(T,{text:r.bannerText,style:r.bannerStyle,startsAt:r.bannerStartsAt,endsAt:r.bannerEndsAt}),e.jsxs(b,{to:`/products/${r.category}/${r.slug}`,className:"block",children:[e.jsxs("div",{className:"h-48 bg-cornelius-light overflow-hidden flex items-center justify-center",children:[r.image?e.jsx("img",{src:r.image,alt:r.name,loading:"lazy",width:300,height:192,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",className:"w-full h-full object-contain p-4 group-hover:scale-105 transition-transform duration-300",onError:s=>{s.currentTarget.style.display="none",s.currentTarget.nextElementSibling?.classList.remove("hidden")}}):null,e.jsx("div",{className:r.image?"hidden":"",children:e.jsx(A,{name:r.name,category:r.category,size:"lg"})})]}),e.jsxs("div",{className:"p-5",children:[e.jsx("div",{className:"text-xs text-cornelius-blue font-medium mb-1",children:r.family}),e.jsx("h3",{className:"font-bold text-cornelius-navy text-lg mb-2 group-hover:text-cornelius-blue transition-colors",children:r.name}),e.jsx(R,{html:r.description,className:"text-sm text-cornelius-gray line-clamp-2 mb-4"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs text-cornelius-gray flex items-center gap-1",children:[e.jsx(J,{className:"w-3 h-3"}),r.documents.length," documents"]}),e.jsx(j,{className:"w-4 h-4 text-cornelius-blue group-hover:translate-x-1 transition-transform"})]})]})]})]})}function Q({families:r}){const[s,o]=x.useState(""),u=x.useRef(null),n=x.useCallback(()=>{let a="";for(const g of r){const c=document.getElementById(`family-${v(g)}`);c&&c.getBoundingClientRect().top<=160&&(a=g)}o(a)},[r]);x.useEffect(()=>(window.addEventListener("scroll",n,{passive:!0}),n(),()=>window.removeEventListener("scroll",n)),[n]);const f=i=>{const a=document.getElementById(`family-${v(i)}`);if(a){const c=a.getBoundingClientRect().top+window.scrollY-140;window.scrollTo({top:c,behavior:"smooth"})}};return e.jsx("div",{ref:u,className:"sticky top-0 z-30 bg-white border-b border-gray-200 shadow-sm",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:e.jsx("nav",{className:"flex gap-1 overflow-x-auto py-3 scrollbar-none -mx-4 px-4 sm:mx-0 sm:px-0",children:r.map(i=>e.jsx("button",{onClick:()=>f(i),className:`whitespace-nowrap px-3 py-1.5 text-sm font-medium rounded-full transition-colors flex-shrink-0 ${s===i?"bg-cornelius-navy text-white":"text-cornelius-gray hover:text-cornelius-navy hover:bg-gray-100"}`,children:M[i]||i},i))})})})}function ce(){const r=P(),s=r.category,{products:o,loading:u}=D(s),{products:n}=I(),{data:f}=k(),i=h[s]||s,a=x.useMemo(()=>z(o),[o]),g=x.useMemo(()=>O(n,s),[n,s]);if(u)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/2
10 border-t-cornelius-navy rounded-full animate-spin"})});if(!o.length)return e.jsxs("div",{className:"py-20 text-center",children:[e.jsx(C,{title:"Category Not Found",description:"The product category you are looking for could not be found.",path:`/products/${r.category||""}`}),e.jsx("h1",{className:"text-2xl font-bold text-cornelius-navy mb-4",children:"Category not found"}),e.jsx(b,{to:"/products",className:"text-cornelius-blue hover:underline",children:"Back to products"})]});const c=s==="fountain";let m;if(c){const t=[...new Set(o.map(l=>l.family))];m=F.filter(l=>t.includes(l)||l==="OCE");const d=t.filter(l=>!F.includes(l));m=[...m,...d]}else m=[...new Set(o.map(t=>t.family))];const y=L(s,o),w=$(y),N=[{"@context":"https://schema.org","@type":"CollectionPage",name:`${h[s]||s} Products`,description:E[s]||`Browse Cornelius ${s} beverage dispensing equipment.`,url:`https://www.cornelius.com/products/${s}`,mainEntity:{"@type":"ItemList",itemListElement:o.map((t,d)=>({"@type":"ListItem",position:d+1,name:t.name,url:`https://www.cornelius.com/products/${t.category}/${t.slug}`,item:{"@type":"Product",name:t.name,description:t.description,url:`https://www.cornelius.com/products/${t.category}/${t.slug}`,brand:{"@type":"Brand",name:"Cornelius"},sku:t.id}}))}}];return w&&N.push(w),e.jsxs("div",{children:[e.jsx(C,{title:`${h[s]||s} Dispensers`,description:E[s]||`Browse Cornelius ${s} beverage dispensing equipment. View specs and request documentation.`,path:`/products/${s}`,jsonLd:N}),e.jsx(B,{items:[{label:"Product Literature",href:"/products"},{label:h[s]||s}]}),e.jsx(q,{}),e.jsxs("section",{className:"relative bg-gradient-to-br from-cornelius-dark via-cornelius-navy to-cornelius-blue text-white py-16 md:py-24 overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 z-0",children:[S[s]&&e.jsx("img",{src:S[s],alt:`${h[s]||s} category background`,loading:"eager",width:1280,height:400,sizes:"100vw",className:"w-full h-full object-cover opacity-15"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-cornelius-dark via-cornelius-navy/90 to-transparent"})]}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 relative z-10",children:[e.jsxs(b,{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(_,{className:"w-4 h-4"})," All Products"]}),e.jsxs("h1",{className:"text-3xl md:text-5xl font-bold mb-4",children:[i," Products"]}),e.jsx("p",{className:"text-lg text-white/80 max-w-3xl",children:f[`category_${s}_hero_desc`]??H[s]})]})]}),c&&e.jsx(Q,{families:m}),e.jsx("section",{className:"py-12 md:py-20 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:m.map(t=>{const d=o.filter(p=>p.family===t),l=t==="OCE"&&d.length===0;return e.jsxs("div",{id:c?`family-${v(t)}`:void 0,className:"mb-12 last:mb-0 scroll-mt-36",children:[e.jsxs("h2",{className:"text-xl font-bold text-cornelius-navy mb-6 pb-2 border-b border-gray-200 flex items-center gap-3",children:[t,t.includes("Accessories")||t.includes("Series")||t.includes("Tower")||t.includes("ACSD")||t.includes("PR")||t==="OCE"?"":" Series",l&&e.jsx("span",{className:"inline-flex items-center px-3 py-0.5 text-xs font-semibold bg-cornelius-blue/10 text-cornelius-blue rounded-full",children:"Coming Soon"})]}),l?e.jsx("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-8 text-center",children:e.jsx("p",{className:"text-cornelius-gray text-sm",children:"New OCE products are on the way. Check back soon for details."})}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map(p=>e.jsx(U,{product:p},p.id))})]},t)})})}),a.totalProducts>0&&e.jsx("section",{className:"py-10 bg-gray-50 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[e.jsxs("h2",{className:"text-xl font-bold text-cornelius-navy mb-6 flex items-center gap-2",children:[e.jsx(V,{className:"w-5 h-5"})," ",i," at a Glance"]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[e.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-cornelius-navy",children:a.totalProducts}),e.jsx("div",{className:"text-xs text-cornelius-gray mt-1",children:"Products"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-cornelius-navy",children:a.families.length}),e.jsx("div",{className:"text-xs text-cornelius-gray mt-1",children:"Product Families"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-cornelius-navy",children:a.documentCount}),e.jsx("div",{className:"text-xs text-cornelius-gray mt-1",children:"Documents Available"})]})]}),a.featureHighlights.length>0&&e.jsxs("div",{className:"bg-white p-5 rounded-lg border border-gray-200",children:[e.jsx("h3",{className:"text-sm font-bold text-cornelius-navy mb-3",children:"Common Capabilities"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.featureHighlights.map((t,d)=>e.jsx("span",{className:"inline-flex items-center px-3 py-1 text-xs bg-cornelius-blue/5 text-cornelius-navy rounded-full",children:t},d))})]})]})}),g.length>0&&e.jsx("section",{className:"py-10 bg-gray-50 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[e.jsx("h2",{className:"text-xl font-bold text-cornelius-navy mb-2",children:"Related Solutions"}),e.jsx("p",{className:"text-sm text-cornelius-gray mb-6",children:"Explore products grouped by capability and application."}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:g.slice(0,6).map(t=>e.jsxs(b,{to:`/solutions/${t.slug}`,className:"flex flex-col p-5 bg-white rounded-lg border border-gray-100 hover:border-cornelius-blue/30 hover:shadow-md transition-all group",children:[e.jsx("div",{className:"text-sm font-semibold text-cornelius-navy group-hover:text-cornelius-blue transition-colors mb-1",children:t.title}),e.jsx("div",{className:"text-xs text-cornelius-gray line-clamp-2 flex-1",children:t.description}),e.jsxs("div",{className:"text-xs text-cornelius-blue font-medium mt
1-3 flex items-center gap-1",children:[t.products.length," products ",e.jsx(j,{className:"w-3 h-3"})]})]},t.slug))})]})}),y.length>0&&e.jsx(Y,{faqs:y})]})}function Y({faqs:r}){const[s,o]=x.useState(null);return e.jsx("section",{className:"py-10 md:py-14 bg-white border-t border-gray-100",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[e.jsx("h2",{className:"text-xl font-bold text-cornelius-navy mb-6",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-3 max-w-3xl",children:r.map((u,n)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{className:"w-full text-left px-5 py-4 flex items-center justify-between gap-4 hover:bg-gray-50 transition-colors",onClick:()=>o(s===n?null:n),"aria-expanded":s===n,children:[e.jsx("span",{className:"text-sm font-semibold text-gray-800",children:u.question}),e.jsx(j,{className:`w-4 h-4 text-gray-400 shrink-0 transition-transform ${s===n?"rotate-90":""}`})]}),s===n&&e.jsx("div",{className:"px-5 pb-4 text-sm text-gray-600 leading-relaxed",children:u.answer})]},n))})]})})}export{ce 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.