PageSourceSearch

https://farmtopeople.com/_next/static/chunks/app/(main)/shop/%5Bslug%5D/page-e8602f469460dc3b.js

js farmtopeople.com collected 2026-09-25 13:58:47 UTC 26,879 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9188],{8546:(e,l,o)=>{"use strict";o.d(l,{default:()=>b});var n,a=o(14771),i=o(36587),t=o(88028),r=o(17222),s=o(80030),d=o(86592),c=o(34937),m=o(85923),u=o.n(m),_=o(86725),h=o(85910),v=o(83404),f=o(79603);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}let g=function(e){return f.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 13"},e),n||(n=f.createElement("path",{fill:"currentColor",d:"M.712 9.688c-.16.672-.325 1.373-.494 2.073-.069.285-.145.567-.218.85v.01a.38.38 0 0 0 .152.287.6.6 0 0 0 .218.09L.408 13h.007l.008-.001.015-.001.006-.002 2.597-.588.47-.109zM8.701 2.206l2.818 2.632-7.167 6.695L1.53 8.9zM12.3 4.126l-2.836-2.65c.001-.002.008-.018.02-.03.393-.367.78-.739 1.18-1.1a1.305 1.305 0 0 1 1.77-.001q.646.586 1.275 1.19c.38.366.39.899.014 1.264-.458.445-.93.875-1.398 1.312-.009.008-.022.013-.025.015"})))};function b(e){var l,o,n,m;let{categoryNavRoot:f}=e,p=null==f?void 0:f.header,b=(0,_.V7)(e=>e.editOrdersStartDate),x=(0,h.xG)(e=>e.currentDeliveryDate),k=(null==f||null==(l=f.preorderWindow)?void 0:l.enablePreorder)||(null==f||null==(o=f.preorderWindow)?void 0:o.enablePreorder),j=!!k&&null!=f&&null!=(n=f.preorderWindow)&&!!n.beginAt&&null!=f&&null!=(m=f.preorderWindow)&&!!m.endAt&&(!x&&!b||(0,v.A)(x||b).isBefore(null==f?void 0:f.preorderWindow.beginAt,"day")||(0,v.A)(x||b).isAfter(null==f?void 0:f.preorderWindow.endAt,"day"));function y(){var e;t.kH.getState().savedZip||(null==(e=t.kH.getState().customer_address)?void 0:e.address_zipcode)?d.K.setState({modalData:{},modalType:"PREORDER_DATE_SELECTION"}):c.x.setState({cartOpen:!0})}return(0,a.jsxs)(i.A,{id:"category-header",large:!1,color:(null==p?void 0:p.bgColor)||"none",className:u().header,grid:!1,children:[(null==f?void 0:f.enableHeader)&&(0,a.jsx)("h2",{className:(null==p?void 0:p.titleSmall)?"heading-small":"old-heading-medium",children:(null==p?void 0:p.title)||""}),(null==f?void 0:f.enableHeader)&&(null==p?void 0:p.copy)&&(0,a.jsx)(r.default,{blocks:null==p?void 0:p.copy,className:u()["header-copy"]}),(null==f?void 0:f.enableHeader)&&k&&j&&(0,a.jsx)(s.A,{variants:["outlined"],className:"!bg-[inherit]",onClick:y,children:"select date to shop"}),k&&!j&&(null==f?void 0:f.enableHeader)&&x&&(0,a.jsxs)("p",{className:u()["header-copy"],children:["You are now shopping for"," ",(0,a.jsxs)("button",{className:[u()["inline-button"],"secondary"].join(" "),onClick:y,children:[(0,a.jsxs)("span",{className:u()["inline-button-text"],children:[(0,v.A)(x).format("dddd, MMMM Do"),"."]}),(0,a.jsx)(g,{className:[u().icon,"inline align-middle mb-1"].join(" "),width:14,height:13})]})]})]})}},13235:(e,l,o)=>{Promise.resolve().then(o.bind(o,88486)),Promise.resolve().then(o.bind(o,39762)),Promise.resolve().then(o.bind(o,8546)),Promise.resolve().then(o.bind(o,99227)),Promise.resolve().then(o.bind(o,38353)),Promise.resolve().then(o.bind(o,46773)),Promise.resolve().then(o.bind(o,15446)),Promise.resolve().then(o.bind(o,21464)),Promise.resolve().then(o.bind(o,97593))},14808:(e,l,o)=>{"use strict";o.d(l,{A:()=>t});var n,a=o(79603);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}let t=function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"currentColor",d:"M17.775 6.225c-.3-.3-.75-.3-1.05 0L12 10.95 7.275 6.225c-.3-.3-.75-.3-1.05 0s-.3.75 0 1.05L10.95 12l-4.725 4.725c-.3.3-.3.75 0 1.05.15.15.3.225.525.225s.375-.075.525-.225L12 13.05l4.725 4.725c.15.15.375.225.525.225s.375-.075.525-.225c.3-.3.3-.75 0-1.05L13.05 12l4.725-4.725c.3-.3.3-.75 0-1.05"})))}},19847:(e,l,o)=>{"use strict";o.d(l,{A:()=>S});var n,a,i=o(14771),t=o(79603),r=o(65985),s=o(67559),d=o(41495),c=o.n(d);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}let u=function(e){return t.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",id:"filter_svg__Layer_1",width:"100%",height:"100%","data-name":"Layer 1",viewBox:"0 0 295.32 285.65"},e),n||(n=t.createElement("defs",null,t.createElement("style",null,".filter_svg__cls-1{fill:#09261e;stroke-width:0}"))),a||(a=t.createElement("path",{d:"M205.24 252.36c-26.22 0-52.45 0-78.67-.03-1.08 0-1.47.31-1.82 1.34-5.83 17.1-17.56 27.82-35.31 31.19-22.61 4.29-44.56-9.4-51.27-31.45-.26-.86-.63-1.07-1.48-1.07-8.03.03-16.06.03-24.08.01-5.44-.01-9.87-3-11.66-7.8-2.81-7.54 2.44-15.63 10.46-16.13.57-.03 1.14-.04 1.71-.04 7.81 0 15.63-.02 23.44.02.91 0 1.32-.21 1.63-1.16 5.25-15.88 15.86-26.34 32.04-30.67 23.31-6.24 47.54 7.44 54.53 30.54.31 1.02.73 1.29 1.75 1.29 51.73-.03 103.47-.02 155.2-.01 1.35 0 2.72 0 4.03.27 5.82 1.16 9.63 6.1 9.51 12.2-.1 5.49-4.35 10.37-9.89 11.29-1.15.19-2.33.19-3.5.19h-76.64ZM60.28 240.31c-.32 10.71 8.57 21.27 21.18 21.33 11.75.06 21.3-9.5 21.3-21.24 0-11.76-9.51-21.33-21.21-21.35-11.76-.02-21.28 9.49-21.27 21.26M37.44 33.25c1.12-2.74 1.99-5.43 3.27-7.92C47.82 11.49 59.06 3.04 74.42.57c22.27-3.58 43.6 9.97 50.17 31.56.29.96.73 1.13 1.64 1.13 52.02-.02 104.04-.02 156.06-.02 4.87 0 8.76 1.83 11.24 6.12 4.52 7.81-1.07 17.66-10.08 17.86-.53.01-1.07 0-1.61 0-51.81 0-103.61 0-155.42-.03-1.12 0-1.52.32-1.89 1.39-5.88 17.23-17.73 27.92-35.63 31.24-22.38 4.16-44.3-9.61-50.95-31.54-.25-.83-.57-1.1-1.45-1.09-8.13.04-16.27.04-24.4.02C5.07 57.2-.17 51.77 0 44.76c.16-6.45 5.57-11.46 12.48-11.51 5.71-.04 11.42 0 17.13 0zm22.65 12c-.38 10.26 8.11 21.23 21.21 21.33 11.59.09 21.13-9.53 21.29-20.99.16-11.69-9.44-21.56-21.22-2
11.58-12.19-.03-21.58 10.24-21.28 21.24M162.71 130.65c.99-2.51 1.77-4.97 2.91-7.25 7.05-14.21 18.41-22.82 34.05-25.43 18.76-3.13 37.9 6.51 46.7 23.34 1.41 2.7 2.42 5.61 3.53 8.45.27.69.55.9 1.27.9 10.49-.02 20.98-.02 31.47-.01 5.72 0 10.26 3.08 12.01 8.09 2.7 7.72-2.99 15.87-11.13 15.89-10.7.03-21.41.03-32.11 0-.88 0-1.27.23-1.56 1.12-5.8 17.37-17.67 28.12-35.64 31.5-22.34 4.21-44.28-9.52-50.99-31.46-.29-.96-.71-1.16-1.63-1.16-49.45.02-98.9.01-148.35.04-3.1 0-5.93-.58-8.41-2.52-3.89-3.04-5.52-8.06-4.15-12.84 1.3-4.56 5.32-7.94 10.11-8.49.92-.11 1.85-.17 2.77-.17h149.14999999999998m22.61 12.01c-.35 10.29 8.11 21.21 21.19 21.33 11.66.11 21.28-9.53 21.29-21.15 0-11.89-9.43-21.39-21.22-21.41-12.26-.03-21.53 10.28-21.25 21.24Z",className:"filter_svg__cls-1"})))};function _(e){let{setFilterIsOpen:l,selectedFilters:o,filterIsOpen:n,className:a}=e;return(0,i.jsx)("div",{className:[c()["filter-icon"],a].join(" "),children:(0,i.jsxs)("div",{className:[c()["filter-icon-div"],"cart-button"].join(" "),onClick:()=>l(!n),children:[(0,i.jsx)(u,{width:24,height:24}),Object.keys(o).find(e=>o[e].length>0)&&(0,i.jsx)(s.A,{value:Object.keys(o).reduce((e,l)=>e+o[l].length,0),className:"absolute -right-1 top-1 -translate-y-[50%]"})]})})}var h=o(96642),v=o(95494),f=o(47761);function p(e){let{showGroupNames:l=!0,selectedFilters:o,handleSelectFilters:n}=e,a=(0,f.P)(e=>e.allFilterOptions),r=(0,f.B)(),s=(0,f.P)(e=>e.selectedFilterBitMap),d=(0,f.P)(e=>e.numberProducts),m=(0,t.useMemo)(()=>{let e={};for(let l in a)e[l]=a[l].filter(e=>void 0!==r[e]).map(e=>{var n,a;return{checked:(null==(n=o[l])?void 0:n.includes(e))||!1,label:e,value:e,disabled:(0n==r[e]||(BigInt(s)&BigInt(r[e]))==1n<<BigInt(d))&&!(null==(a=o[l])?void 0:a.includes(e))}});return e},[o,r,s,a,d]);return(0,i.jsx)("div",{className:"all-options",children:Object.keys(m).map((e,o)=>(0,i.jsx)("div",{children:m[e].length>0&&(0,i.jsx)("div",{className:"filter-options",children:(0,i.jsx)(h.A,{fieldId:e,hideLabel:!l,label:e,options:m[e],more:m[e].length>5,className:(0,v.A)(c()["filter-options-group"],"[&>div~div]:mt-4"),numberShownAboveMore:5,updateCheckedIndices:l=>n(l,e)})})},e))})}var g=o(24293),b=o.n(g);function x(e){let{message:l,hasClose:o,handleClose:n=()=>{}}=e;return(0,i.jsx)("div",{className:b()["tag-item"],children:(0,i.jsxs)("div",{className:b()["tag-item-inner"],children:[(0,i.jsx)("p",{className:b()["tag-message"],children:l}),o?(0,i.jsx)("button",{className:b()["tag-cancel"],onClick:n,children:"✕"}):null]})})}var k=o(65477),j=o(80030),y=o(14808),N=o(44158),w=o.n(N),C=o(76918);function O(e){let{onClose:l,onSubmit:o,onCancel:n,closeText:a,submitText:t,loading:r,children:s,className:d=""}=e;return(0,i.jsxs)("div",{className:d+"z-20 sticky",children:[(0,i.jsx)(C.A,{"aria-hidden":!0,onClick:n}),(0,i.jsx)("div",{className:w()["mobile-mini-menu"],children:(0,i.jsxs)("div",{className:w()["mobile-mini-menu-content"],children:[(0,i.jsx)("button",{className:w()["menu-cancel"],onClick:n,children:(0,i.jsx)(y.A,{width:24,height:24})}),(0,i.jsx)("div",{className:w()["mobile-mini-menu-slot"],children:s}),(0,i.jsxs)("div",{className:w().buttons,children:[(0,i.jsx)(j.A,{variants:["outlined","thin"],onClick:n,children:a}),(0,i.jsx)(j.A,{variants:["thin","product","contained"],loading:r,onClick:o,children:t})]})]})})]})}var A=o(71692);function S(e){let{category:l="",className:o=""}=e,[n,a]=(0,t.useState)(!1),s=(0,k.j)(e=>e.width<950),d=(0,f.P)(e=>e.numberProducts),[m,u]=(0,t.useState)(null),[h,v]=(0,t.useState)({}),g=(0,f.B)(),{ga4FilterClick:b}=(0,A.A)(),j=Object.keys(h).map(e=>h[e].map(l=>(0,i.jsx)(x,{message:l,hasClose:!0,handleClose:()=>(function(e,l){let o=h[e].indexOf(l);return 0===o?v({...h,[e]:h[e].slice(1)}):v({...h,[e]:h[e].splice(0,o).concat(h[e].splice(o))})})(e,l)},l))).flat();function y(e,o){let n=h[o]?[...h[o]]:[];if(e.checked)return N(n.filter(l=>l!==e.label),o);n.push(e.label),N(n,o),b({category:l,filter:e.label,otherFilters:n})}function N(e,l){v({...h,[l]:e})}return(0,t.useEffect)(()=>{n&&u(h)},[n]),(0,t.useEffect)(()=>{let e=(1n<<BigInt(d+1))-1n;for(let l in h)for(let o in h[l]){let n=h[l][o];if(0n==e)break;e&=BigInt(g[n])}f.P.setState({selectedFilterBitMap:"0b"+e.toString(2)})},[h,d]),(0,t.useEffect)(()=>{f.P.setState({selectedFilters:h})},[h]),(0,i.jsxs)("div",{className:"".concat(c().filter," ").concat(o),children:[s&&(0,i.jsx)("div",{className:"flex items-center justify-center",children:(0,i.jsx)(_,{setFilterIsOpen:a,selectedFilters:h,filterIsOpen:n})}),!s&&(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{collapse:()=>a(!1),expand:()=>a(!0),label:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_,{setFilterIsOpen:a,selectedFilters:h,filterIsOpen:n}),(0,i.jsx)("h3",{children:"Filter"})]}),expandedOnMount:!1,children:(0,i.jsx)(p,{handleSelectFilters:y,selectedFilters:h})}),!n&&j.length>0&&(0,i.jsxs)("div",{children:[j,(0,i.jsx)("p",{className:c()["filter-tag-clear"],onClick:()=>v({}),children:"Clear All Filters"})]})]}
1),s&&n&&(0,i.jsx)(O,{closeText:"Cancel",submitText:"Apply",onCancel:function(){m?v(m):v({}),u(null),a(!1)},onSubmit:()=>a(!1),onClose:()=>a(!1),loading:!1,children:(0,i.jsx)(p,{selectedFilters:h,handleSelectFilters:y})})]})}},23878:e=>{e.exports={"shop-index":"shop_shop-index__8xyVP","parent-categories":"shop_parent-categories__3ZBZA","child-categories":"shop_child-categories__7tpLS","mobile-nav-container":"shop_mobile-nav-container__SOaOA","secondary-link":"shop_secondary-link__X9J7l","secondary-active-link":"shop_secondary-active-link__Vg1Tq","secondary-link-container":"shop_secondary-link-container__kkToH"}},24293:e=>{e.exports={"tag-item-inner":"tag_tag-item-inner__I9Xsw","tag-message":"tag_tag-message__YYgOa","tag-cancel":"tag_tag-cancel__SR2Ef"}},39762:(e,l,o)=>{"use strict";o.d(l,{default:()=>r});var n=o(14771),a=o(47761),i=o(71209),t=o(79603);let r=e=>{let{categoryNavRoot:l,filtersWithCounts:o,filterOptions:r,numberProducts:s}=e;return(0,t.useEffect)(()=>{let e=i.l.getState().categoryNavRoot;return l.slug.current!=(null==e?void 0:e.slug.current)&&i.l.setState({categoryNavRoot:l}),a.P.setState({filterBitMap:o}),a.P.setState({allFilterOptions:r}),a.P.setState({numberProducts:s}),a.P.setState({selectedFilterBitMap:"0b"+((1n<<BigInt(s+1))-1n).toString(2)}),()=>{i.l.setState({categoryNavRoot:null})}},[]),(0,n.jsx)("div",{})}},40482:e=>{e.exports={inner:"link-carousel_inner__iwvK9","carousel-link-container":"link-carousel_carousel-link-container__wunuX",guideline:"link-carousel_guideline__qrwCQ","carousel-container":"link-carousel_carousel-container__b7rM7",ready:"link-carousel_ready__fEpxx"}},41495:e=>{e.exports={"filter-options":"filter_filter-options__AjwpD","filter-options-group":"filter_filter-options-group__5d7E7","filter-tag-clear":"filter_filter-tag-clear__R06KM","no-circle":"filter_no-circle__6OfPD","filter-icon-div":"filter_filter-icon-div__wYAsu","filter-name":"filter_filter-name__1py_b","filter-icon":"filter_filter-icon__xcGQj",badge:"filter_badge__Oz5XR","filter-only":"filter_filter-only__UdPMM"}},44158:e=>{e.exports={"modal-container":"modal_modal-container__Ewtp2",modal:"modal_modal__VXNZS","modal-close":"modal_modal-close__UUmvc","modal-top":"modal_modal-top__tG7YQ","modal-bottom":"modal_modal-bottom__WEzvF","modal-heading":"modal_modal-heading__hPuOL","confirmation-modal":"modal_confirmation-modal__x3Gja",large:"modal_large__O9xrX","order-item":"modal_order-item__8Z3Mi",alert:"modal_alert__3S2mK","confirmation-modal-bottom":"modal_confirmation-modal-bottom__xbXfc","confirmation-modal-dismiss":"modal_confirmation-modal-dismiss__zp0iE","confirmation-modal-confirm":"modal_confirmation-modal-confirm__VqixM","order-items":"modal_order-items__yfinV","mobile-mini-menu":"modal_mobile-mini-menu__cLOm_","mobile-mini-menu-content":"modal_mobile-mini-menu-content__pU_fe","menu-cancel":"modal_menu-cancel__TuhOp","mobile-mini-menu-slot":"modal_mobile-mini-menu-slot__JVHwA",buttons:"modal_buttons__DOsv_","look-inside-modal":"modal_look-inside-modal__JtZ8X","look-inside-modal-description":"modal_look-inside-modal-description__yJ_d9","look-inside-modal-container":"modal_look-inside-modal-container__G5SYE","look-inside-modal-heading":"modal_look-inside-modal-heading__z8SLK","look-inside-modal-message":"modal_look-inside-modal-message___HBVI","look-inside-modal-bottom-bar":"modal_look-inside-modal-bottom-bar__0sM1u","look-inside-modal-item":"modal_look-inside-modal-item__il6HE","image-container":"modal_image-container___myYH",image:"modal_image__kDrrO","producer-name":"modal_producer-name__OVg8V","body-small":"modal_body-small__1r4Qo","more-info-modal-container":"modal_more-info-modal-container__gnYRd","more-info-modal":"modal_more-info-modal__HgRod","more-info-modal-content":"modal_more-info-modal-content__WqILt","more-info-modal-heading":"modal_more-info-modal-heading__cjYTQ","more-info-modal-image-container":"modal_more-info-modal-image-container__3t6Ac","more-info-modal-image":"modal_more-info-modal-image__46Pl3","more-info-modal-description":"modal_more-info-modal-description__Ht4OJ","preorder-window-modal-container":"modal_preorder-window-modal-container__qD6xu","window-selector":"modal_window-selector__MXpAv","preorder-window-modal":"modal_preorder-window-modal__DBrSy","preorder-window-modal-selector-container":"modal_preorder-window-modal-selector-container__31PJO","preorder-window-modal-message":"modal_preorder-window-modal-message__hg43m","limit-reached-modal-container":"modal_limit-reached-modal-container__yaj6_","limit-reached-modal":"modal_limit-reached-modal__POqQ1","limit-reached-modal-top":"modal_limit-reached-modal-top__OBigH","product-tile":"modal_product-tile__HonNc","product-tile-content":"modal_product-tile-content__XKUuc","limit-reached-modal-heading":"modal_limit-reached-modal-heading__3qSNH","limit-reached-modal-message":"modal_limit-reached-modal-message__QzjzK","limit-reached-modal-bottom":"modal_limit-reached-modal-bottom__je_vj","pause-deliveries-modal-container":"modal_pause-deliveries-modal-container__OHVFb","pause-deliveries-modal":"modal_pause-deliveries-modal__D9yZ0","pause-deliveries-modal-message":"modal_pause-deliveries-modal-message__3TkT0","delivery-day-modal":"modal_delivery-day-modal__xUNGZ","delivery-day-modal-message":"modal_delivery-day-modal-message__r7dea","large-modal":"modal_large-modal__bOIcA","notifications-modal-container":"modal_notifications-modal-container__2clFv","notifications-modal":"modal_notifications-modal__NK3lG","notifications-modal-heading":"modal_notifications-modal-heading__75sAB","notifications-modal-message":"modal_notifications-modal-message__UzdgN","exit-intent-modal-container":"modal_exit-intent-modal-container__No6W4","exit-intent-modal-content":"modal_exit-intent-modal-content__cvRpy","delivery-instru
1ctions-modal":"modal_delivery-instructions-modal__hsJhY","pause-deliveries-modal-calendar-container":"modal_pause-deliveries-modal-calendar-container__Yu3Si","erp-modal":"modal_erp-modal__XO5bU","modal-message":"modal_modal-message__d8SdE","erp-modal-image-container":"modal_erp-modal-image-container__8WCGc","erp-modal-image":"modal_erp-modal-image__NLtyX","out-of-stock-modal-container":"modal_out-of-stock-modal-container__Mj1TU","out-of-stock-modal":"modal_out-of-stock-modal__gtnfi","out-of-stock-modal-product":"modal_out-of-stock-modal-product__vu4s4","out-of-stock-modal-input-container":"modal_out-of-stock-modal-input-container__FOEhr","radio-container":"modal_radio-container__MqDow","checkbox-container":"modal_checkbox-container__9vnw2",input:"modal_input__kZ__m","out-of-stock-modal-button-container":"modal_out-of-stock-modal-button-container__XjiyT","out-of-stock-modal-button-cancel":"modal_out-of-stock-modal-button-cancel__WZ4Pj","out-of-stock-modal-button":"modal_out-of-stock-modal-button__Dg3Hy"}},46773:(e,l,o)=>{"use strict";o.d(l,{default:()=>f});var n=o(14771),a=o(91812),i=o(85923),t=o.n(i),r=o(17222),s=o(20235),d=o(20484),c=o(86725),m=o(79603);let u=e=>{let{isPreorderCategory:l}=e,o=(0,d.i)(),a=(0,c.V7)(e=>e.deliveryCalendar);return(0,m.useEffect)(()=>{o(l)},[a]),(0,n.jsx)("div",{})};var _=o(30804),h=o(38353),v=o(78446);function f(e){let{category:l,products:o,categoryNavRoot:i}=e,{sectionOrder:d}=(0,h.S)(),c=(0,m.useMemo)(()=>{var e;return(0,v.x)(null!=(e=null==l?void 0:l.children)?e:[],d,e=>{var l;return e&&"slug"in e?null==(l=e.slug)?void 0:l.current:void 0})},[null==l?void 0:l.children,d]);return(0,n.jsxs)("section",{"data-test":"category-root-section",id:"all-categories",className:[t()["all-categories"]].join(" "),children:[(null==l?void 0:l.description)&&(0,n.jsx)(r.default,{blocks:null==l?void 0:l.description,className:["mb-4 mt-2",t()["category-padding"]].join(" ")}),(0,n.jsx)(_.Z,{products:o,children:(null==l?void 0:l.children)&&l.children.length>0?(0,n.jsx)(s.A,{blocks:c,categoryNavRoot:i}):(0,n.jsx)("div",{children:(0,n.jsx)(a.default,{category:l})})}),(0,n.jsx)(u,{isPreorderCategory:!!i.preorderWindow})]})}},51103:(e,l,o)=>{"use strict";o.d(l,{j:()=>i});var n=o(99355),a=o(28959);let i=(0,n.vt)((0,a.lt)(e=>({searchOpen:!1,recipeSearchTerm:"",searchTerm:"",producerSearchTerm:"",openSearch:function(){let l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e(l?{searchOpen:!0}:{searchOpen:!0,searchTerm:""})}}),{name:"searchStore",enabled:!1}))},65985:(e,l,o)=>{"use strict";o.d(l,{A:()=>s});var n=o(14771),a=o(79603),i=o(86251),t=o(75253),r=o.n(t);function s(e){let{expandedOnMount:l,className:o="",label:t,children:s,collapse:d,expand:c}=e,[m,u]=(0,a.useState)(l);return(0,n.jsxs)("div",{className:[r()["collapsible-block"],m?"bottom-gray-bar":"",o].join(" "),"aria-expanded":m,children:[(0,n.jsxs)("div",{className:[r()["collapsible-block-click"],"bottom-gray-bar"].join(" "),onClick:function(){u(!m),m?d&&d():c&&c()},children:[t&&t,(0,n.jsxs)("div",{className:r()["chevron-container"],children:[(0,n.jsx)(i.default,{width:16,height:16,"aria-hidden":!0}),(0,n.jsx)("span",{className:"visually-hidden",children:"Toggle Items"})]})]}),(0,n.jsx)("div",{className:["slide",m&&"active"].join(" "),children:s})]})}},67559:(e,l,o)=>{"use strict";o.d(l,{A:()=>a});var n=o(14771);o(79603);let a=e=>{let{value:l,className:o}=e;return(0,n.jsx)("div",{className:"bg-primary flex min-h-4 min-w-4 items-center justify-center rounded-full p-[2px] text-[11px] font-medium leading-none ".concat(o),children:l})}},75253:e=>{e.exports={"collapsible-block":"collapsible-block_collapsible-block__x9Az_","collapsible-block-click":"collapsible-block_collapsible-block-click__mlv61","chevron-container":"collapsible-block_chevron-container__20hVB"}},76918:(e,l,o)=>{"use strict";o.d(l,{A:()=>s});var n=o(14771),a=o(34937),i=o(86592),t=o(51103),r=o(65477);o(79603);let s=e=>(0,n.jsx)("div",{onClick:function(){a.x.setState({cartOpen:!1}),t.j.setState({searchOpen:!1}),i.K.setState({modalData:null,modalType:null}),r.j.setState({mobileNavActive:!1}),e.onClick&&e.onClick()},className:"cart-overlay"})},88486:(e,l,o)=>{"use strict";o.d(l,{default:()=>f});var n=o(14771),a=o(79603),i=o(40482),t=o.n(i),r=o(89487),s=o.n(r);let d=e=>{var l;
1let o=a.useRef([]),i=a.useRef(null),[r,d]=a.useState(!1),c=e.links.findIndex(l=>l.link===e.activeLink||"/shop/farm-boxes"==l.link&&"/shop/farm-box"==e.activeLink);function m(){let e=o.current[c],l=null==i?void 0:i.current;if(l&&e){let o=l.offsetWidth,n=e.offsetLeft,a=e.offsetWidth;l.scrollTo({left:n-o/2+a/2,behavior:"smooth"})}}return(0,a.useLayoutEffect)(()=>{let l=o.current.find(l=>l&&l.getAttribute("href")===e.activeLink);if(i&&l){if(l&&i.current){let e=i.current,o=l.offsetLeft-e.offsetWidth/2+l.offsetWidth/2;e.scrollLeft=o}d(!0)}else d(!0)},[]),(0,a.useEffect)(()=>{m()},[e.activeLink]),(0,a.useEffect)(()=>(document.addEventListener("scroll",m),()=>{document.removeEventListener("scroll",m)}),[]),(0,n.jsx)("div",{className:"max-w-[1352px] ".concat(t()["carousel-container"]," ").concat(e.className," ").concat(r?t().ready:""),children:(0,n.jsx)("div",{ref:i,className:"hide-scrollbar flex snap-x flex-row overflow-x-scroll scroll-auto ".concat(t().inner," ").concat(e.innerClassName),children:null==(l=e.links)?void 0:l.map((l,a)=>(0,n.jsxs)("div",{className:"".concat(t()["carousel-link-container"]," ").concat(e.containerClassName?e.containerClassName:""),children:[(0,n.jsx)(s(),{ref:e=>o.current[a]=e,href:l.link,onClick:()=>e.onClick&&e.onClick(l.link),className:"".concat(t()["link-child"]," ").concat(e.guideline?t().guideline:""," px-4 ").concat(e.linkClassName," ").concat(e.activeLink===l.link||"/shop/farm-boxes"==l.link&&"/shop/farm-box"==e.activeLink?e.activeClassName:""," block snap-center py-2 text-black no-underline"),children:l.label}),e.guideline&&(0,n.jsx)("div",{className:"h-1 w-[101%] bg-light-gray rounded-3xl ".concat(e.activeLink==l.link||"/shop/farm-boxes"==l.link&&"/shop/farm-box"==e.activeLink?"bg-".concat(e.guidelineActiveColor):"")})]},l.link))})})};var c=o(7088),m=o(23878),u=o.n(m),_=o(71209),h=o(19847);function v(e){return{link:"/shop/".concat(e.slug.current),label:e.name}}let f=e=>{var l,o,i,t;let r=(0,c.usePathname)(),[s,m]=a.useState(r),f=(0,_.l)(e=>e.currentCategory),p=[v(e.subscriptionCategory),...e.productCategories.map(e=>v(e)),v(e.highlightCategory)],g=(0,_.l)(e=>e.categoryNavRoot),b=(null==(l=e.category)?void 0:l.children)?[...e.category.children.filter(e=>"productCategory"===e._type).map(l=>({link:"/shop/".concat(e.category.slug.current,"#").concat(l.slug.current),label:l.name}))]:[];return(0,a.useEffect)(()=>{m(r)},[r]),(0,n.jsxs)("div",{className:"sticky top-16 left-0 z-[4] nav-breakpoint-only",children:[(0,n.jsxs)("div",{className:"".concat(u()["mobile-nav-container"]," bg-white pb-3"),children:[(0,n.jsx)(d,{activeLink:s,links:p,guideline:!0,activeClassName:"bold",guidelineActiveColor:"primary",onClick:e=>m(e)}),(null==(i=e.category)||null==(o=i.children)?void 0:o.length)>0&&"/shop/farm-boxes"!==r&&"/shop/farm-box"!==r&&(0,n.jsx)(d,{className:"mt-3",activeLink:"".concat(r,"#").concat(f),links:b,linkClassName:u()["secondary-link"],activeClassName:u()["secondary-active-link"],containerClassName:u()["secondary-link-container"]})]}),(0,n.jsx)("div",{className:["absolute right-4 w-[42px] h-[42px]","/shop/farm-boxes"==r||"/shop/farm-box"==r?" top-[80px]":" top-[120px]"].join(" "),children:!(null==g?void 0:g.hideFilterBy)&&(0,n.jsx)(h.A,{className:"w-[42px] h-[42px]",category:(null==(t=e.category)?void 0:t.name)||""})})]})}},99227:(e,l,o)=>{"use strict";o.d(l,{default:()=>_});var n=o(14771),a=o(85923),i=o.n(a),t=o(65985),r=o(96628),s=o(71209);function d(e){var l,o,n,a;let i=(0,s.l)(e=>e.currentCategory),t=(0,s.l)(e=>e.categoryNavRoot),r=(null==e||null==(l=e.slug)?void 0:l.current)===i||(null==e?void 0:e.children)&&(null==e?void 0:e.children.some(e=>(null==e?void 0:e.slug.current)===i))||!1,d=!!e&&!(null==e?void 0:e.hiddenInNavigation),c=e?"/shop/".concat(null==e||null==(o=e.slug)?void 0:o.current):"",m=(null==t||null==(n=t.slug)?void 0:n.current)?"/shop/".concat(t.slug.current,"#").concat(null==e||null==(a=e.slug)?void 0:a.current):c;return{isActive:r,showCategory:d,formattedCategoryRoute:c,formattedAnchorTagRoute:m}}function c(e){let{category:l}=e,{isActive:o,formattedAnchorTagRoute:a}=d(l);return(0,n.jsx)("li",{role:"none",className:[i()["tertiary-category-item"],o?i().active:""].join(" "),children:(0,n.jsx)(r.A,{href:a,children:null==l?void 0:l.name})})}function m(e){let{category:l}=e,{isActive:o,showCategory:a,formattedAnchorTagRoute:t}=d(l);return a&&(0,n.jsxs)("li",{role:"none",className:o?"bold":"",children:[(0,n.jsx)(r.A,{href:t,children:null==l?void 0:l.name}),(null==l?void 0:l.children)&&(null==l?void 0:l.children.length)&&o?(0,n.jsx)("ul",{"aria-label":"Subcategories of ".concat(null==l?void 0:l.name),className:[i()["nested-categories"],i().tertiary].join(" "),children:l.children.map((e,l)=>(0,n.jsx)(c,{category:e},l))}):(0,n.jsx)(n.Fragment,{})]})}var u=o(19847);function _(e){var l;let{category:o,productCategory:a,hasCategoryDropdown:s=!0}=e,d=(null==o?void 0:o.root)?null==o?void 0:o.root:o,c=(0,n.jsx)("h2",{id:null==d?void 0:d.name,className:"heading-small",children:(0,n.jsx)(r.A,{href:"/shop/".concat(null==d?void 0:d.slug.current),children:null==d?void 0:d.name})});return(0,n.jsxs)("aside",{role:"navigation","aria-labelledby":null==d?void 0:d.name,className:"".concat(i()["category-nav"]," body-small nav-breakpoint-no-display nav:overflow-hidden"),children:[(0,n.jsx)("hr",{}),(0,n.jsxs)("div",{className:"".concat(i()["category-nav-container"]," "),children:[s?(0,n.jsx)(t.A,{label:c,expandedOnMount:!0,children:(0,n.jsx)("ul",{className:[i()["nested-categories"],i().secondary].join(" "),children:null==a||null==(l=a.children)?void 0:l.map((e,l)=>(0,n.jsx)(m,{category:e},l))})}):(0,n.jsx)(n.Fragment,{}),!(null==d?void 0:d.hideFilterBy)&&(0,n.jsx)(u.A,{category:(null==o?void 0:o.name)||""})]})]})}}},e=>{e.O(0,[3329,4499,8221,1593,478,6045,6823,6339,9487,4449,932,4202,5172,2945,3004,7724,945,356,3923,5973,7857,246,8750,7352,7093,513,5524,4989,7431,4235,7358],()=>e(e.s=13235)),_N_E=e.O()}]);

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.