1"use strict";(self.webpackChunkgoodnessme_app=self.webpackChunkgoodnessme_app||[]).push([[522],{67352:function(n,e,t){t.d(e,{T:function(){return s}});var l=t(67294),o=t(56045),i=t(74780),r=t(58570),a=t(12963),u=t(85893),c=function(n){var e=n.content,t=(0,o.kt)(),l=t[0],c=t[1],s=(0,r.b)(r.f.COLLECTION),d=(null==s?void 0:s.showMoreContent)||"Read More",h=(null==s?void 0:s.showLessContent)||"Show Less",v={"h1, h2, h3, h4, h5, h6":{color:"brand.avocado",fontWeight:"black",fontFamily:"heading"},p:{pb:a.rY,fontSize:"md",lineHeight:a.Ac},"*":{fontSize:"md",lineHeight:a.Ac},a:{color:"brand.avocado",textDecoration:"underline"}};return e?(0,u.jsx)(i.M5,{py:[16,14],children:(0,u.jsxs)(i.xu,{w:["full","full","90%"],position:"relative",children:[(0,u.jsx)(i.xu,{noOfLines:l?void 0:5,sx:v,dangerouslySetInnerHTML:{__html:e},maxH:l?"unset":120,overflow:"hidden"}),(0,u.jsx)(i.xv,{as:"span",fontWeight:700,position:"absolute",bottom:-5,right:0,cursor:"pointer",onClick:c.toggle,fontSize:["sm","md"],lineHeight:1.6,children:l?h:d})]})}):null},s=(0,l.memo)(c)},51598:function(n,e,t){t.d(e,{h:function(){return a}});var l=t(67294),o=t(74780),i=t(85893),r=function(n){var e=n.title,t=n.children,l=n.showBorder,r=void 0===l||l,a=n.paddingTop,u=void 0===a?[14,18]:a,c=n.paddingBottom,s=void 0===c?8:c,d=n.bgColor,h=void 0===d?["brand.midSand","brand.lightSand"]:d;return(0,i.jsx)(o.xu,{as:"section",pt:u,pb:s,bg:h,borderBottom:r?"1px":"none",borderColor:"brand.avocado",children:(0,i.jsxs)(o.W2,{children:[(0,i.jsx)(o.kC,{justifyContent:"space-between",children:(0,i.jsx)(o.X6,{as:"h1",size:["h3","h2"],mb:2,fontSize:["4xl","8xl"],children:e})}),t]})})},a=(0,l.memo)(r)},11495:function(n,e,t){t.d(e,{z:function(){return v}});
1var l=t(57345),o=t(29350),i=t(74780),r=t(83515),a=t(25686),u=t(67294),c=t(85893),s=function(n){var e=n.checked,t=n.name,o=(0,(0,r.G)().deHandleize)(t),i=(0,l.x)().handleTopFilterChange;return(0,c.jsx)(a.LW,{label:o,value:o,checked:e,handleClick:function(){return i(t)}})},d=function(n){var e=n.collection,t=(0,l.x)(),r=t.facets,a=t.selectedTopFilters,d=t.isLoading,h=(0,u.useMemo)((function(){return"named_tags."+(null==e?void 0:e.headerFilter)}),[null==e?void 0:e.headerFilter]),v=(0,u.useMemo)((function(){var n=null==r?void 0:r[h];return n&&"object"==typeof n?Object.keys(n):[]}),[r,h]);return d?(0,c.jsx)(o.Od,{height:6,width:20,borderRadius:"full"}):(0,c.jsxs)(i.Ug,{wrap:"wrap",gap:2,spacing:0,children:[(0,c.jsx)(s,{checked:0===a.length,name:"show-all"},"show-all"),v.map((function(n){return(0,c.jsx)(s,{checked:a.includes(n),name:n},n)}))]})},h=function(n){var e=n.collection;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(d,{collection:e})})},v=(0,u.memo)(h)},25686:function(n,e,t){t.d(e,{AP:function(){return f},LW:function(){return v},f7:function(){return s}});var l=t(63366),o=t(67294),i=t(45606),r=t(74780),a=t(85893),u=["checked","handleClick","label","value","variant"],c=["tags","resetLabel","selectedTag","handleClick","showReset","upperCaseTags","variant"],s="Show All",d=function(n){var e=n.checked,t=void 0!==e&&e,r=n.handleClick,c=n.label,d=n.value,h=n.variant,v=(0,l.Z)(n,u),f=(h||"subcategory")+(t?"-active":""),p=(0,o.useCallback)((function(n){null==n||n.stopPropagation(),null==r||r(s)}),[r]);return(0,a.jsxs)(i.Vp,Object.assign({variant:f,onClick:r,cursor:"pointer",height:"auto","data-value":d||c},v,{children:[(0,a.jsx)(i.Sn,{pointerEvents:"none",lineHeight:"unset",children:c||d}),t&&(0,a.jsx)(i.SD,{onClick:p})]}))},h=function(n){var e=n.tags,t=n.resetLabel,o=void 0===t?s:t,i=n.selectedTag,u=n.handleClick,h=n.showReset,v=void 0===h||h,f=n.upperCaseTags,p=void 0!==f&&f,m=n.variant,x=(0,l.Z)(n,c);return!e||!(null!=e&&e.length)?null:(0,a.jsxs)(r.Ug,{spacing:0,columnGap:"brand"!==m?2:{base:2,lg:0},rowGap:"brand"!==m?2:{base:2,lg:0},wrap:"wrap",justifyContent:"brand"!==m?null:{lg:"space-between"},children:[v&&(0,a.jsx)(d,{label:o,value:o,checked:!i||o===i,handleClick:u,w:"unset",px:4}),null==e?void 0:e.map((function(n,e){return(0,a.jsx)(d,Object.assign({value:n,label:p?null==n?void 0:n.toUpperCase():n,checked:n===i,handleClick:u,variant:m},x),e)}))]})},v=(0,o.memo)(d),f=(0,o.memo)(h)},41238:function(n,e,t){t.d(e,{U:function(){return c}});var l=t(59792),o=t(18205),i=t(67294),r=t(97382),a=t(78538),u=t(84309),c=function(n){var e,t=n.collection,c=(0,l.L)().shop,s=(0,o.qt)().store,d=s.searchIndex,h=s.shopifyShopDomain,v=(0,r.bp)(),f=v.activeCollection,p=v.setActiveCollection,m=(0,a.j)().collectionNormaliser,x=(0,i.useMemo)((function(){var n;return null!==(n=null==c?void 0:c.myshopifyDomain)&&void 0!==n?n:h}),[null==c?void 0:c.myshopifyDomain,h]),g=(0,i.useMemo)((function(){return m(t)}),[t,m]),b=(0,u.D)(g),j=(null==g||null===(e=g.descriptionHtml)||void 0===e?void 0:e.split("*****"))||[],C=j[0],k=j[1];return(0,i.useEffect)((function(){(null==g?void 0:g.id)!==(null==f?void 0:f.id)&&p(g)}),[g,null==f?void 0:f.id,p]),{getPageCollection:(0,i.useCallback)((function(){return{shopifyPermanentDomain:x,searchIndex:d,item:null==b?void 0:b.current,headerContent:C,bottomContent:k}}),[x,d,null==b?void 0:b.current,C,k])}}},74878:function(n,e,t){t.d(e,{Y:function(){return r},d:function(){return a}});var l=t(67294),o=t(85893),i=(0,l.createContext)({}),r=function(n){var e=n.handle,t=n.children,r=(0,l.useMemo)((function(){return{handle:e}}),[e]);return(0,o.jsx)(i.Provider,{value:r,children:t})},a=function(){return(0,l.useContext)(i)}},18613:function(n,e,t){t.r(e),t.d(e,{Head:function(){return L.F},default:function(){return T}});
1var l=t(63366),o=t(67294),i=t(65314),r=t(74780),a=t(57345),u=t(74878),c=t(67352),s=t(51598),d=t(15815),h=t(85893),v=function(n){var e=n.cards;return!(null==e||!e.length)?(0,h.jsx)(r.rj,{templateColumns:["repeat(1, 1fr)","repeat(1, 1fr)","repeat(2, 1fr)"],gap:3,mb:14,children:null==e?void 0:e.map((function(n){var e,t;return(0,h.jsxs)(r.P4,{colSpan:1,minH:[32,32,48],bgColor:"brand.sand",bgImage:null==n||null===(e=n.image)||void 0===e||null===(t=e.asset)||void 0===t?void 0:t.url,bgSize:"cover",bgPosition:"center",py:[2,2,8],px:[5,5,8],children:[(null==n?void 0:n.title)&&(0,h.jsx)(r.X6,{size:"h4",as:"p",pb:1,children:null==n?void 0:n.title}),(null==n?void 0:n.subtitle)&&(0,h.jsx)(r.xv,{pb:3,fontSize:["sm","md"],children:null==n?void 0:n.subtitle}),(0,h.jsx)(d.o,{button:null==n?void 0:n.button,width:[28,28,34],fontSize:"sm"})]},null==n?void 0:n._key)}))}):null},f=(0,o.memo)(v),p=t(24914),m=t(11495),x=t(103),g=function(n){var e=n.collection;return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(r.xu,{py:4,pr:4,bg:"brand.lightSand",w:52,display:["none","none","block"],children:(0,h.jsx)(x.J,{collection:e})})})},b=(0,o.memo)(g),j=t(41238),C=t(3591),k=t(9232),w=t(23343),y=function(n){var e=n.listName,t=(0,a.x)(),l=t.products,i=t.isLoading,r=(0,k.z)().trackCollectionView,u=(0,o.useRef)(null);return(0,o.useEffect)((function(){!i&&null!=l&&l.length&&e&&u.current!==e&&(u.current=e,r(l,e))}),[l,i,e,r]),null},S=function(n){var e,t,l,d=n.location,v=n.collection,x=n.template,g=(0,j.U)({collection:v}).getPageCollection,k=(0,o.useMemo)((function(){return g()}),[g]),S=k.item,z=k.headerContent,L=k.bottomContent;return(0,w.l)().helpers.isBrowser&&d&&v?(0,h.jsxs)(u.Y,{handle:null==v||null===(e=v.shopify)||void 0===e?void 0:e.handle,children:[(0,h.jsxs)(a.C,{location:d,collection:v,children:[(0,h.jsx)(y,{listName:null!==(t=null==S?void 0:S.title)&&void 0!==t?t:""}),(0,h.jsxs)(s.h,{title:null==S?void 0:S.title,children:[(0,h.jsx)(r.xv,{maxW:"970px",mb:4,lineHeight:"21px",fontSize:"sm",dangerouslySetInnerHTML:{__html:z}}),(0,h.jsx)(m.z,{collection:v})]}),(0,h.jsx)(r.xu,{bgGradient:["unset","unset","linear(to-r, brand.lightSand 0 50%, brand.offWhite 50% 100%)"],children:(0,h.jsxs)(r.W2,{as:r.Ug,alignItems:"stretch",spacing:[0,0,4],children:[(0,h.jsx)(b,{collection:v}),(0,h.jsxs)(r.xu,{py:4,pl:[0,0,4],bg:"brand.offWhite",flex:1,maxW:"full",children:[(0,h.jsx)(f,{cards:null==v?void 0:v.promotionalCards}),(0,h.jsx)(p.G,{collection:v}),(0,h.jsx)(i.s,{}),(0,h.jsx)(c.T,{content:L})]})]})})]},"collection"),(null==x||null===(l=x.content)||void 0===l?void 0:l.length)&&(0,h.jsx)(C.default,{page:x,location:d})]}):null},z=(0,o.memo)(S),L=t(66027),H=["data"],T=function(n){var e=n.data,t=(0,l.Z)(n,H);return(0,h.jsx)(z,Object.assign({},t,e))}}}]); 2//# sourceMappingURL=component---src-templates-collection-tsx-054349b3461454ad1b7c.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.