PageSourceSearch

https://calfruitandveg.com/_next/static/chunks/0a8_4b4ghm21j.js?dpl=dpl_GNCotqouXbwJoTKDeFEBR1MG4pmA

js calfruitandveg.com collected 2026-10-08 06:45:41 UTC 32,194 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86029,e=>{"use strict";var t=e.i(43476),s=e.i(14850),r=e.i(67277),l=e.i(78620),a=e.i(10253);e.s(["AdAsidePair",0,function({className:e=""}){return(0,t.jsx)("div",{className:`flex-shrink-0 w-[300px] ${e}`,style:{alignSelf:"start",position:"sticky",top:64},children:(0,t.jsx)("div",{className:"flex flex-col items-center gap-8",children:(0,t.jsx)(a.SidebarPair,{})})})},"AdBreak",0,function({zoneId:e,className:a="",lazy:n=!1}){let o=(0,t.jsx)(r.CollapsingSlot,{className:"w-full",children:(0,t.jsxs)("section",{"aria-label":"Advertisement",className:`w-full bg-paper flex flex-col items-center justify-center ${a}`,style:{height:295},children:[(0,t.jsx)("p",{style:{fontSize:11,letterSpacing:"0.1em"},className:"text-muted uppercase mb-2 leading-none",children:"Advertisement"}),(0,t.jsx)("div",{className:"overflow-hidden leading-[0]",children:(0,t.jsx)(s.BroadstreetZone,{zoneId:e})})]})});return n?(0,t.jsx)(l.LazyMount,{children:o}):o}])},98150,e=>{"use strict";e.s(["ISSUE_COVER",0,"(max-width: 639px) 75vw, (max-width: 1023px) 52vw, (max-width: 1279px) 27vw, 446px","SEARCH_CARD",0,"(max-width: 767px) calc(100vw - 32px), (max-width: 1023px) calc(50vw - 30px), (max-width: 1279px) 35vw, 440px"])},89544,e=>{"use strict";var t=e.i(43476);e.i(57688),e.i(22016),e.s(["PlayBadge",0,function(){return(0,t.jsxs)("div",{"aria-label":"Video",className:"absolute bottom-2.5 left-2.5 pointer-events-none z-10 flex items-center gap-1.5",style:{backgroundColor:"rgba(250, 249, 245, 0.90)",backdropFilter:"blur(6px)",borderRadius:"20px",padding:"4px 9px 4px 7px"},children:[(0,t.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M1.5 0.5L8.5 4.5L1.5 8.5V0.5Z",className:"fill-brand"})}),(0,t.jsx)("span",{style:{fontSize:"10px",fontWeight:700,letterSpacing:"0.09em",color:"var(--color-brand)",textTransform:"uppercase",lineHeight:1},children:"Video"})]})}])},99531,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(22016);e.s(["Pagination",0,function({currentPage:e,totalPages:l,basePath:a,queryString:n}){(0,s.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]);let o=e=>{if(void 0!==a){let t=a.replace(/\/$/,"");return e<=1?t||"/":`${t}/page/${e}`}let t=n?`${n}&`:"";return`?${t}page=${e}`};if(l<=1)return null;let i=(()=>{if(l<=4){let e=[];for(let t=1;t<=l;t++)e.push({value:t,type:"number"});return e}let t=[];if(1===e)t.push({value:1,type:"number"}),t.push({value:2,type:"number"}),t.push({value:3,type:"number"}),t.push({value:"...",type:"ellipsis"}),t.push({value:l,type:"number"});else if(e===l)t.push({value:1,type:"number"}),t.push({value:"...",type:"ellipsis"}),t.push({value:l-2,type:"number"}),t.push({value:l-1,type:"number"}),t.push({value:l,type:"number"});else if(e===l-1)t.push({value:1,type:"number"}),t.push({value:"...",type:"ellipsis"}),t.push({value:l-2,type:"number"}),t.push({value:l-1,type:"number"}),t.push({value:l,type:"number"});else{let s=e+1<l-1;t.push({value:e-1,type:"number"}),t.push({value:e,type:"number"}),t.push({value:e+1,type:"number"}),s&&t.push({value:"...",type:"ellipsis"}),t.push({value:l,type:"number"})}return t})();return(0,t.jsx)("nav",{"aria-label":"Pagination navigation",className:"w-full flex justify-center py-10 border-t border-gray-100 mt-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1.5 md:gap-3 px-6 py-2.5 border border-[#c4b5a6]/60 rounded-full bg-white shadow-sm",style:{borderColor:"rgba(122, 31, 43, 0.15)"},children:[e>1?(0,t.jsx)(r.default,{href:o(e-1),scroll:!1,className:"w-8 h-8 flex items-center justify-center text-sm font-light select-none transition-colors rounded-full hover:bg-gray-50 text-muted hover:text-brand","aria-label":"Previous Page",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current fill-none",strokeWidth:1.5,children:(0,t.jsx)("polyline",{points:"15 18 9 12 15 6"})})}):(0,t.jsx)("span",{className:"w-8 h-8 flex items-center justify-center text-sm font-light select-none text-faint rounded-full","aria-label":"Previous Page disabled",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current fill-none",strokeWidth:1.5,children:(0,t.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),i.map((s,l)=>{if("ellipsis"===s.type)return(0,t.jsx)("span",{className:"w-8 h-8 flex items-center justify-center text-sm text-muted select-none font-light",children:"…"},`ellipsis-${l}`);
1let a=s.value,n=a===e;return(0,t.jsxs)(r.default,{href:o(a),scroll:!1,className:`relative w-8 h-8 flex flex-col items-center justify-center text-[13px] font-bold md:text-[14px] transition-colors rounded-full ${n?"text-brand font-extrabold cursor-default":"text-gray-600 hover:text-brand hover:bg-gray-50"}`,"aria-current":n?"page":void 0,children:[a,n&&(0,t.jsx)("span",{className:"absolute bottom-1 w-3 h-0.5 bg-brand rounded-full"})]},`page-${a}`)}),e<l?(0,t.jsx)(r.default,{href:o(e+1),scroll:!1,className:"w-8 h-8 flex items-center justify-center text-sm font-light select-none transition-colors rounded-full hover:bg-gray-50 text-muted hover:text-brand","aria-label":"Next Page",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current fill-none",strokeWidth:1.5,children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})}):(0,t.jsx)("span",{className:"w-8 h-8 flex items-center justify-center text-sm font-light select-none text-faint rounded-full","aria-label":"Next Page disabled",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current fill-none",strokeWidth:1.5,children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]})})}])},25288,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(18566),l=e.i(57688),a=e.i(22016),n=e.i(32137),o=e.i(89544),i=e.i(99531),c=e.i(86029),d=e.i(98150);function x(e){return e?e.split(/\s+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""}function u({text:e,query:s}){if(!s||!e)return(0,t.jsx)(t.Fragment,{children:e});let r=s.toLowerCase().split(/\s+/).filter(Boolean);if(0===r.length)return(0,t.jsx)(t.Fragment,{children:e});let l=r.map(e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|"),a=RegExp(`(${l})`,"gi"),n=RegExp(`^(?:${l})$`,"i"),o=e.split(a);return(0,t.jsx)(t.Fragment,{children:o.map((e,s)=>n.test(e)?(0,t.jsx)("mark",{className:"bg-yellow-100 text-black px-0.5 rounded font-medium",children:e},s):e)})}function p({post:e,query:s}){let r=`/${e.slug}`,i=(0,n.isVideoPost)(e),c=(0,n.getPrimaryCategory)(e),x=e.searchSnippet,h=(0,t.jsx)("div",{className:"block relative flex-shrink-0",style:{aspectRatio:"16/9"},children:(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden bg-gray-100",children:[e.featuredImage?.node.sourceUrl?(0,t.jsx)(l.default,{src:e.featuredImage.node.sourceUrl,alt:e.featuredImage.node.altText||e.title,fill:!0,sizes:d.SEARCH_CARD,className:"object-cover transition-transform duration-500 group-hover:scale-[1.03]"}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gray-200"}),(0,n.isVideoPost)(e)&&(0,t.jsx)(o.PlayBadge,{})]})});return(0,t.jsxs)("article",{className:"group flex flex-col gap-2.5",children:[i?(0,t.jsx)("a",{href:r,children:h}):(0,t.jsx)(a.default,{href:r,children:h}),(0,t.jsxs)("div",{children:[c&&(0,t.jsx)("div",{className:"text-[11px] font-bold uppercase tracking-widest text-brand hover:text-brand-hover mb-1",children:(0,t.jsx)(a.default,{href:`/${c.slug}/`,children:(0,t.jsx)(u,{text:c.name,query:s})})}),(0,t.jsx)("h3",{className:"headline-card text-ink line-clamp-3",children:i?(0,t.jsx)("a",{href:r,className:"hover:text-brand transition-colors",children:(0,t.jsx)(u,{text:e.title,query:s})}):(0,t.jsx)(a.default,{href:r,className:"hover:text-brand transition-colors",children:(0,t.jsx)(u,{text:e.title,query:s})})}),(0,t.jsx)("p",{className:"text-xs md:text-sm text-muted leading-relaxed line-clamp-3 my-2",children:(0,t.jsx)(u,{text:x,query:s})}),(0,t.jsx)("time",{className:"text-xs text-muted",dateTime:e.date,children:(0,n.formatDateShort)(e.date)})]})]})}e.s(["SearchResultsClient",0,function({siteShortName:e,popularSearches:o,query:d,initialPosts:u,initialSearchParams:h}){let m,f=(0,r.useRouter)(),g=(0,r.useSearchParams)(),[b,v]=(0,s.useTransition)(),y=(0,s.useRef)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{y.current&&y.current.focus()},[]);let[N,w]=(0,s.useState)(d),[k,C]=(0,s.useState)([]),[S,$]=(0,s.useState)(null),[P,B]=(0,s.use
1State)(!1);(0,s.useEffect)(()=>{w(d)},[d]),(0,s.useEffect)(()=>{if(N.trim().length<2)return void C([]);let e=setTimeout(async()=>{try{let e=await fetch(`/api/search-suggestions?q=${encodeURIComponent(N.trim())}`);if(e.ok){let t=await e.json();C(t)}}catch(e){console.error("Suggestions fetch error:",e)}},200);return()=>clearTimeout(e)},[N]),(0,s.useEffect)(()=>{let e=()=>{P&&B(!1)};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[P]);let R=e=>{B(!1),C([]),O(!1),f.push(`/${e}`)},[E,T]=(0,s.useState)([]),[z,A]=(0,s.useState)([]),[D,U]=(0,s.useState)([]),[L,M]=(0,s.useState)(1),[_,F]=(0,s.useState)(null),[W,I]=(0,s.useState)("default"),[V,O]=(0,s.useState)("true"===h.all),[q,G]=(0,s.useState)([]),[H,K]=(0,s.useState)([]),[Y,Z]=(0,s.useState)([]);(0,s.useEffect)(()=>{let e=g.get("categories")?.split(",").filter(Boolean)||[],t=g.get("tags")?.split(",").filter(Boolean)||[],s=g.get("years")?.split(",").filter(Boolean)||[],r=parseInt(g.get("page")||"1",10),l="true"===g.get("all");T(e),A(t),U(s),M(isNaN(r)?1:r),O(l),G(e),K(t),Z(s)},[g]);let J=(0,s.useMemo)(()=>[...u].sort((e,t)=>e.searchTier!==t.searchTier?e.searchTier-t.searchTier:new Date(t.date).getTime()-new Date(e.date).getTime()),[u]),Q=(0,s.useMemo)(()=>{let e={},t={},s={};u.forEach(r=>{if(r.categories?.nodes?.forEach(t=>{e[t.slug]||(e[t.slug]={name:t.name,count:0}),e[t.slug].count++}),r.tags?.nodes?.forEach(e=>{t[e.slug]||(t[e.slug]={name:e.name,count:0}),t[e.slug].count++}),r.date){let e=r.date.substring(0,4);s[e]=(s[e]||0)+1}});let r=new Set(["non-video","industry-news","featured-post","sponsored-content","recent","this-month","uncategorized","read","video-news"]);return{categories:Object.entries(e).map(([e,t])=>({slug:e,...t})).filter(e=>!r.has(e.slug)&&!/^\d{4}$/.test(e.slug)&&!/^\d{4}$/.test(e.name)).sort((e,t)=>t.count-e.count),tags:Object.entries(t).map(([e,t])=>({slug:e,...t})).sort((e,t)=>t.count-e.count).slice(0,15),years:Object.entries(s).map(([e,t])=>({year:e,count:t})).sort((e,t)=>t.year.localeCompare(e.year))}},[u]),X=(0,s.useMemo)(()=>[...Q.categories].sort((e,t)=>e.name.localeCompare(t.name)),[Q.categories]),ee=(0,s.useMemo)(()=>{let e={},t=new Date;t.setFullYear(t.getFullYear()-1);let s=0;return u.forEach(r=>{r.date&&new Date(r.date)>=t&&(s++,r.tags?.nodes?.forEach(t=>{e[t.slug]||(e[t.slug]={name:t.name,count:0}),e[t.slug].count++}))}),(0===s||0===Object.keys(e).length)&&u.forEach(t=>{t.tags?.nodes?.forEach(t=>{e[t.slug]||(e[t.slug]={name:t.name,count:0}),e[t.slug].count++})}),Object.entries(e).map(([e,t])=>({slug:e,...t})).sort((e,t)=>t.count-e.count).slice(0,50)},[u]),et=(0,s.useMemo)(()=>J.filter(e=>{if(E.length>0&&!e.categories?.nodes?.some(e=>E.includes(e.slug))||z.length>0&&!e.tags?.nodes?.some(e=>z.includes(e.slug)))return!1;if(D.length>0){let t=e.date?e.date.substring(0,4):"";if(!D.includes(t))return!1}return!0}),[J,E,z,D]),es=Math.ceil(et.length/20),er=(0,s.useMemo)(()=>{let e=(L-1)*20;return et.slice(e,e+20)},[et,L]),el=E.length>0||z.length>0||D.length>0,ea=(e,t)=>{let s=[...q],r=[...H],l=[...Y];"category"===e?G(s=s.includes(t)?s.filter(e=>e!==t):[...s,t]):"tag"===e?K(r=r.includes(t)?r.filter(e=>e!==t):[...r,t]):"year"===e&&Z(l=l.includes(t)?l.filter(e=>e!==t):[...l,t]),v(()=>{let e=new URLSearchParams;e.set("s",d),s.length>0&&e.set("categories",s.join(",")),r.length>0&&e.set("tags",r.join(",")),l.length>0&&e.set("years",l.join(",")),f.push(`?${e.toString()}`,{scroll:!1})})},en=()=>{G([]),K([]),Z([]),v(()=>{f.push(`?s=${encodeURIComponent(d)}`,{scroll:!1})})},eo=()=>{w(""),C([]),B(!1),I("default"),O(!1),f.push("/search")},ei=e=>{w(e),C([]),B(!1),I("default"),O(!1);let t=new URLSearchParams;t.set("s",e.trim()),f.push(`/search?${t.toString()}`)},ec=!d.trim()&&!V;return(0,t.jsxs)("div",{className:"flex flex-col gap-6 relative min-h-[75vh]",onClick:()=>B(!1),children:[(0,t.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),N.trim()){B(!1),C([]),O(!1);let e=new URLSearchParams;e.set("s",N.trim()),f.push(`/search?${e.toString()}`)}},onClick:e=>e.stopPropagation(),className:"relative w-full max-w-3xl mx-auto mb-6 mt-4",children:[(0,t.jsxs)("div",{className:"relative flex items-center py-3 bg-transparent group z-10",style:{borderBottom:"2px s
1olid var(--color-rule-soft)"},children:[(0,t.jsx)("span",{className:"absolute bottom-[-2px] left-0 h-[4px] bg-brand w-full origin-left scale-x-0 group-focus-within:scale-x-100 transition-all duration-300 ease-out pointer-events-none z-20 shadow-[0_8px_20px_rgba(122,31,43,0.22)]"}),(0,t.jsx)("span",{className:"absolute left-1 md:left-2 text-muted",children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-7 h-7 md:w-9 md:h-9 stroke-current fill-none",strokeWidth:1.8,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),(0,t.jsx)("input",{ref:y,type:"text",autoFocus:!0,placeholder:`Search ${e}`,value:N,onChange:e=>{w(e.target.value),B(!0)},onKeyDown:e=>{0!==k.length&&("ArrowDown"===e.key?(e.preventDefault(),$(e=>null===e||e===k.length-1?0:e+1)):"ArrowUp"===e.key?(e.preventDefault(),$(e=>null===e||0===e?k.length-1:e-1)):"Escape"===e.key?(B(!1),$(null)):"Enter"===e.key&&null!==S&&k[S]&&(e.preventDefault(),R(k[S].slug)))},onFocus:()=>B(!0),className:"w-full text-left font-display text-2xl md:text-4xl text-ink outline-none bg-transparent py-2 pl-10 md:pl-14 pr-10 placeholder-faint"}),N.trim()&&(0,t.jsx)("button",{type:"button",onClick:eo,className:"absolute right-2 p-1 text-muted hover:text-brand transition-colors cursor-pointer","aria-label":"Clear search",children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 stroke-current fill-none",strokeWidth:2,children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),P&&k.length>0&&(0,t.jsxs)("div",{className:"absolute top-full left-0 right-0 bg-paper shadow-2xl z-50 rounded-b-lg max-h-[520px] overflow-y-auto mt-1",style:{border:"1px dashed var(--color-rule-soft)",borderTop:"none"},children:[(0,t.jsx)("div",{className:"px-4 py-2.5 text-[10px] font-bold uppercase tracking-wider text-muted",style:{backgroundColor:"var(--color-band)",borderBottom:"1px dashed var(--color-rule-soft)"},children:"Suggested Articles"}),(0,t.jsx)("div",{className:"[&>*+*]:border-t [&>*+*]:[border-top:1px_dashed_var(--color-rule-soft)]",children:k.map((e,s)=>{let r=e.categories?.nodes?(0,n.getPrimaryCategory)(e)?.name:void 0,a=s===S;return(0,t.jsxs)("button",{type:"button",onClick:()=>R(e.slug),onMouseEnter:()=>$(s),className:`w-full text-left px-4 py-3.5 flex items-center gap-3 transition-all group/item cursor-pointer border-l-[3px] ${a?"border-brand pl-3.5":"border-transparent"}`,style:{backgroundColor:a?"var(--color-band)":void 0},children:[(0,t.jsx)("div",{className:"relative w-16 h-10 bg-gray-100 overflow-hidden flex-shrink-0 border border-gray-100",children:e.featuredImage?.node?.sourceUrl?(0,t.jsx)(l.default,{src:e.featuredImage.node.sourceUrl,alt:"",fill:!0,className:"object-cover",sizes:"64px"}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gray-200"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 font-sans",children:[r&&(0,t.jsx)("span",{className:"block text-[10px] font-bold uppercase text-brand mb-0.5 tracking-wider",children:r}),(0,t.jsx)("span",{className:"block font-semibold text-[13px] text-ink group-hover/item:text-brand transition-colors truncate",children:e.title})]})]},e.id)})}),(0,t.jsx)("button",{type:"submit",className:"w-full block text-center py-3 text-xs font-bold uppercase tracking-widest text-brand hover:text-brand-hover transition-colors cursor-pointer",style:{backgroundColor:"var(--color-band)",borderTop:"1px dashed var(--color-rule-soft)"},children:"View All Results →"})]})]}),null!==_&&(0,t.jsx)("div",{className:"fixed inset-0 z-20 cursor-default",onClick:e=>{e.stopPropagation(),F(null)}}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3.5 py-4 px-6 mb-4 z-30",style:{backgroundColor:"var(--color-band)"},children:[(0,t.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-muted",children:"Filter Results:"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{ref:j,type:"button",onClick:()=>F("category"===_?null:"category"),className:`px-4 py-2.5 text-xs font-bold uppercase tracking-widest flex items-center gap-2 transition-colors cursor-pointer ${E.length>0?"text-brand":"text-muted hover:text-ink"}`,style:{backgroundColor:"var(--color-paper)",border:E.length>0?"1px solid var(--color-brand)":"1px solid var(--color-rule-soft)"},children:[(0,t.jsxs)("span",{children:["Categories"," ",E.length>0&&`(${E.length})`]}),(0,t.jsx)("svg",{className:`w-3.5 h-3.5 fill-current transition-transform duration-200 ${"category"===_?"rotate-180":""}`,viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})]}),"category"===_&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-1.5 w-64 roun
1ded shadow-xl z-30 p-4 max-h-[300px] overflow-y-auto",style:{backgroundColor:"var(--color-paper)",border:"1px dashed var(--color-rule-soft)"},children:(0,t.jsxs)("div",{className:"space-y-2.5",children:[Q.categories.map(e=>(0,t.jsxs)("label",{className:"flex items-start gap-2.5 text-[13.5px] text-ink hover:text-brand cursor-pointer transition-colors",children:[(0,t.jsx)("input",{type:"checkbox",checked:q.includes(e.slug),onChange:()=>ea("category",e.slug),className:"w-[17px] h-[17px] mt-0.5 flex-shrink-0 rounded border-gray-300 text-brand focus:ring-brand cursor-pointer"}),(0,t.jsx)("span",{className:"flex-1 min-w-0 truncate",children:e.name}),(0,t.jsxs)("span",{className:"text-muted font-light",children:["(",e.count,")"]})]},e.slug)),0===Q.categories.length&&(0,t.jsx)("span",{className:"text-xs text-muted italic",children:"No categories available"})]})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>F("tag"===_?null:"tag"),className:`px-4 py-2.5 text-xs font-bold uppercase tracking-widest flex items-center gap-2 transition-colors cursor-pointer ${z.length>0?"text-brand":"text-muted hover:text-ink"}`,style:{backgroundColor:"var(--color-paper)",border:z.length>0?"1px solid var(--color-brand)":"1px solid var(--color-rule-soft)"},children:[(0,t.jsxs)("span",{children:["Tags ",z.length>0&&`(${z.length})`]}),(0,t.jsx)("svg",{className:`w-3.5 h-3.5 fill-current transition-transform duration-200 ${"tag"===_?"rotate-180":""}`,viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})]}),"tag"===_&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-1.5 w-64 rounded shadow-xl z-30 p-4 max-h-[300px] overflow-y-auto",style:{backgroundColor:"var(--color-paper)",border:"1px dashed var(--color-rule-soft)"},children:(0,t.jsxs)("div",{className:"space-y-2.5",children:[Q.tags.map(e=>(0,t.jsxs)("label",{className:"flex items-start gap-2.5 text-[13.5px] text-ink hover:text-brand cursor-pointer transition-colors",children:[(0,t.jsx)("input",{type:"checkbox",checked:H.includes(e.slug),onChange:()=>ea("tag",e.slug),className:"w-[17px] h-[17px] mt-0.5 flex-shrink-0 rounded border-gray-300 text-brand focus:ring-brand cursor-pointer"}),(0,t.jsx)("span",{className:"flex-1 min-w-0 truncate",children:e.name}),(0,t.jsxs)("span",{className:"text-muted font-light",children:["(",e.count,")"]})]},e.slug)),0===Q.tags.length&&(0,t.jsx)("span",{className:"text-xs text-muted italic",children:"No tags available"})]})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>F("year"===_?null:"year"),className:`px-4 py-2.5 text-xs font-bold uppercase tracking-widest flex items-center gap-2 transition-colors cursor-pointer ${D.length>0?"text-brand":"text-muted hover:text-ink"}`,style:{backgroundColor:"var(--color-paper)",border:D.length>0?"1px solid var(--color-brand)":"1px solid var(--color-rule-soft)"},children:[(0,t.jsxs)("span",{children:["Year ",D.length>0&&`(${D.length})`]}),(0,t.jsx)("svg",{className:`w-3.5 h-3.5 fill-current transition-transform duration-200 ${"year"===_?"rotate-180":""}`,viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})]}),"year"===_&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-1.5 w-48 rounded shadow-xl z-30 p-4 max-h-[300px] overflow-y-auto",style:{backgroundColor:"var(--color-paper)",border:"1px dashed var(--color-rule-soft)"},children:(0,t.jsxs)("div",{className:"space-y-2.5",children:[Q.years.map(e=>(0,t.jsxs)("label",{className:"flex items-start gap-2.5 text-[13.5px] text-ink hover:text-brand cursor-pointer transition-colors",children:[(0,t.jsx)("input",{type:"checkbox",checked:Y.includes(e.year),onChange:()=>ea("year",e.year),className:"w-[17px] h-[17px] mt-0.5 flex-shrink-0 rounded border-gray-300 text-brand focus:ring-brand cursor-pointer"}),(0,t.jsx)("span",{children:e.year}),(0,t.jsxs)("span",{className:"text-muted font-light",children:["(",e.count,")"]})]},e.year)),0===Q.years.length&&(0,t.jsx)("span",{className:"text-xs text-muted italic",children:"No years available"})]})})]}),el&&(0,t.jsx)("button",{type:"button",onClick:en,className:"text-xs font-bold uppercase tracking-widest text-brand hover:text-brand-hover transition-colors ml-auto cursor-pointer",children:"Clear All"})]}),ec&&!el?(0,t.jsx)("div",{className:"w-full pt-0 pb-10 px-6 mt-4",children:"popular"===W?(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-6",style:{borderBottom:"1px dashed var(--color-rule-soft)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-display text-2xl md:text-3xl font-bold text-black",children:"Popular Searches"}),(0,t.jsx)("p",{className:"text-sm text-muted mt-1",children:"Explore topics others are searching for."})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I("default"),className:"inline-flex items-center gap-1.5 text-base font-display font-bold text-brand hover:text-brand-hover transition-colors cursor-pointer",children:"← Back to overview"})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2.5 mt-4",children:o.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>ei(e),className:"flex items-center gap-2 px-3 py-2 bg-white border border-gray-200 rounded hover:border-brand hover:bg-gray-50/30 transition-all text-left cursor-pointer",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3.5 h-3.5 text-faint stroke-current fill-none flex-shrink-0",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,t.jsx)("span",{className:"font-sans text-xs md:text-sm text-ink font-normal",children:x(e)})]},e))})]}):"topics"===W?(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-6",style:{borderBottom:"1px dashed var(--color-rule-soft)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-display text-2xl md:text-3xl font-bold text-black",children:"Browse by Topic"}),(0,t.jsx)("p",{className:"text-sm text-muted mt-1",children:"Dive deeper into areas of interest."})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I("default"),className:"inline-flex items-center gap-1.5 text-base font-display font-bold text-brand hover:text-brand-hover transition-colors cursor-pointer",children:"← Back to overview"})]}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:X.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{var t;let s;return t=e.slug,w(""),G([t]),K([]),Z([]),T([t]),A([]),U([]),M(1),I("default"),O(!1),void((s=new URLSearchParams).set("categories",t),f.push(`/search?${s.toString()}`))},className:"px-5 py-2.5 bg-transparent text-brand border border-gray-200 text-base md:text-lg font-display font-medium rounded-full hover:border-brand transition-all cursor-pointer",children:x(e.name)},e.slug))})}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-2.5",children:[ee.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;let s;return t=e.slug,w(""),G([]),K([t]),Z([]),T([]),A([t]),U([]),M(1),I("default"),O(!1),void((s=new URLSearchParams).set("tags",t),f.push(`/search?${s.toString()}`))},className:"px-3.5 py-1.5 bg-band text-muted border border-rule-soft text-sm rounded-full hover:border-brand hover:text-brand transition-all cursor-pointer font-sans",children:["#",x(e.name)]},e.slug)),0===ee.length&&(0,t.jsx)("span",{className:"text-xs text-muted italic",children:"No tags used in the last year"})]})})]}):(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10 lg:gap-0 lg:[&>*+*]:[border-left:1px_dashed_var(--color-rule-soft)]",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between pb-8 lg:pb-0 lg:pr-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-display text-xl md:text-2xl font-bold text-black",children:"Popular Searches"}),(0,t.jsx)("p",{className:"text-sm text-muted mt-1",children:"Explore topics others are searching for."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2.5 mt-4",children:o.slice(0,10).map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>ei(e),className:"flex items-center gap-2 px-3 py-2 bg-white border border-gray-200 rounded hover:border-brand hover:bg-gray-50/30 transition-all text-left cursor-pointer",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3.5 h-3.5 text-faint stroke-current fill-none flex-shrink-0",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,t.jsx)("span",{className:"font-sans text-xs md:text-sm text-ink font-normal",children:x(e)})]},e))})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I("popular"),className:"inline-flex items-center gap-1.5 text-base font-display font-bold text-brand hover:text-brand-hover transition-colors mt-6 text-left w-fit cursor-pointer",children:"View all popular searches →"})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between py-8 lg:py-0 lg:px-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-display text-xl md:text-2xl font-bold text-black",children:"Recent Stories"}),(0,t.jsx)("p",{className:"text-sm text-muted mt-1",children:"The latest articles, videos, and updates."}),(0,t.jsxs)("div",{className:"mt-4 [&>*+*]:[border-top:1px_dashed_var(--color-rule-soft)]",children:[u.slice(0,3).map(e=>{let s=(0,n.getPrimaryCategory)(e)?.name;return(0,t.jsxs)(a.default,{href:`/${e.slug}`,className:"block py-3.5 first:pt-0 last:pb-0 group",children:[s&&(0,t.jsx)("div",{className:"mb-1",children:(0,t.jsx)("span",{className:"text-[11px] font-bold text-brand tracking-wider up
1percase font-sans",children:s})}),(0,t.jsx)("h5",{className:"font-sans text-sm md:text-base font-normal text-ink group-hover:text-brand transition-colors leading-snug line-clamp-2",children:e.title})]},e.id)}),0===u.length&&(0,t.jsx)("span",{className:"text-sm text-muted italic",children:"No recent posts found"})]})]}),(0,t.jsx)(a.default,{href:"/search",onClick:e=>{e.preventDefault(),w(""),G([]),K([]),Z([]),T([]),A([]),U([]),M(1),I("default"),O(!0),f.push("/search?all=true")},className:"inline-flex items-center gap-1.5 text-base font-display font-bold text-brand hover:text-brand-hover transition-colors mt-6 w-fit",children:"View all recent stories →"})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between pt-8 lg:pt-0 lg:pl-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-display text-xl md:text-2xl font-bold text-black",children:"Browse By Topic"}),(0,t.jsx)("p",{className:"text-sm text-muted mt-1",children:"Dive deeper into areas of interest."}),(0,t.jsx)("div",{className:"mt-4 [&>*]:[border-bottom:1px_dashed_var(--color-rule-soft)]",style:{borderTop:"1px dashed var(--color-rule-soft)"},children:[{label:"Pest / Disease Management",href:"/pestdisease-management/"},{label:"Wine Grapes",href:"/wine-grapes/"},{label:"Table Grapes",href:"/table-grapes/"},{label:"Raisin Grapes",href:"/raisins/"},{label:"Enology",href:"/enology/"}].map(e=>(0,t.jsxs)(a.default,{href:e.href,className:"flex items-center justify-between py-2.5 group text-left",children:[(0,t.jsx)("span",{className:"font-sans text-sm md:text-base font-normal text-ink group-hover:text-brand transition-colors",children:e.label}),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3.5 h-3.5 text-faint group-hover:text-brand stroke-current fill-none transition-all group-hover:translate-x-1",strokeWidth:2,children:[(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]},e.label))})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I("topics"),className:"inline-flex items-center gap-1.5 text-base font-display font-bold text-brand hover:text-brand-hover transition-colors mt-6 text-left w-fit cursor-pointer",children:"View all topics →"})]})]})}):0===u.length?(0,t.jsxs)("div",{className:"w-full text-center py-16 rounded px-6 mt-4",style:{backgroundColor:"var(--color-band)",border:"1px dashed var(--color-rule-soft)"},children:[(0,t.jsxs)("p",{className:"text-lg font-display text-ink",children:["No results found for “",d,"”"]}),(0,t.jsx)("p",{className:"text-sm text-muted mt-2",children:"Try checking your spelling or adjusting your keywords."}),(0,t.jsx)("button",{onClick:eo,className:"mt-6 inline-block text-xs font-bold uppercase tracking-widest text-white bg-brand hover:bg-brand-hover px-5 py-2.5 transition-colors cursor-pointer",type:"button",children:"Clear Search"})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"relative flex flex-col lg:flex-row gap-10 items-start mt-4",children:[(0,t.jsxs)("div",{className:"flex-1 w-full min-w-0 relative",children:[b&&(0,t.jsx)("div",{className:"absolute inset-x-0 top-12 flex justify-center items-center z-20 pointer-events-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 px-5 py-3 rounded-full shadow-lg pointer-events-auto",style:{backgroundColor:"var(--color-paper)",border:"1px dashed var(--color-rule-soft)"},children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-t-transparent border-brand"}),(0,t.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-ink",children:"Filtering Results..."})]})}),(0,t.jsxs)("div",{className:`transition-opacity duration-200 ${b?"opacity-30 pointer-events-none":"opacity-100"}`,children:[0===et.length?(0,t.jsxs)("div",{className:"text-center py-16 rounded-md px-4",style:{backgroundColor:"var(--color-band)",border:"1px dashed var(--color-rule-soft)"},children:[(0,t.jsx)("p",{className:"text-muted text-sm",children:"No articles match the selected filters."}),(0,t.jsx)("button",{onClick:en,className:"mt-4 inline-block text-xs font-bold uppercase tracking-widest text-white bg-brand hover:bg-brand-hover px-5 py-2.5 transition-colors cursor-pointer",type:"button",children:"Reset Filters"})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-7",children:er.map(e=>(0,t.jsx)(p,{post:e,query:d},e.id))}),(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(i.Pagination,{currentPage:L,totalPages:es,queryString:((m=new 
1URLSearchParams(g?.toString()??"")).delete("page"),m.toString())})})]})]}),(0,t.jsx)("div",{className:"hidden lg:block w-[300px] flex-shrink-0 sticky",style:{top:"var(--header-height, 80px)",transition:"top 220ms"},children:(0,t.jsx)(c.AdAsidePair,{})})]})})]})}])}]);

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.