1"use strict";(self.webpackChunkgoodnessme_app=self.webpackChunkgoodnessme_app||[]).push([[283],{52303:function(e,l,n){n.r(l),n.d(l,{Head:function(){return j.F},default:function(){return T}});var t=n(63366),i=n(67294),o=n(53696),d=n(74780),a=n(34999),s=n(77544),u=n(84640),r=n(85893),c=function(e){var l,n,t,i,o=e.buttonLabel,c=e.description,g=e.file,f=e.link,h=e.directDownload,m=e.image,v=e.title,x=h?(null==g||null===(l=g.asset)||void 0===l?void 0:l.url)+"?dl=":"/"+(null==f||null===(n=f.handle)||void 0===n?void 0:n.current),p=(0,u.y)().getSanityImageUrl,b=null!=m&&null!==(t=m.asset)&&void 0!==t&&t.url?p(null==m||null===(i=m.asset)||void 0===i?void 0:i.url,300,200):"";return(0,r.jsxs)(d.P4,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(s.d,{src:b,alt:null==m?void 0:m.alt,w:["full"]}),(0,r.jsx)(d.X6,{fontSize:"xl",lineHeight:"24px",minHeight:"48px",fontWeight:700,mt:4,mb:2,children:v}),(0,r.jsx)(d.xv,{fontSize:"md",mb:4,lineHeight:"24px",flexGrow:1,children:c}),(0,r.jsx)(d.rU,{href:x,children:(0,r.jsx)(a.zx,{w:["full","unset"],fontSize:["xl","md"],px:6,py:2,h:[12,10],children:o})})]})},g=(0,i.memo)(c),f=n(25686),h=n(86307),m=n(3591),v=function(e){var l=e.filteredItems,n=e.buttonLabel;return null==l?void 0:l.map((function(e){return(0,r.jsx)(g,Object.assign({},e,{buttonLabel:n}),null==e?void 0:e._id)}))},x=function(e){var l=e.page,n=function(e){var l=e.downloads,n=(0,h.f)(),t=n.filterItemsByTag,o=n.selectedTag,d=n.setSelectedTag,a=(0,i.useMemo)((function(){var e;return null==l||null===(e=l.edges)||void 0===e?void 0:e.map((function(e){return e.node}))}),[null==l?void 0:l.edges]),s=(0,i.useCallback)((function(e){var l;return d(null==e||null===(l=e.target)||void 0===l?void 0:l.textContent)}),[d]),u=(0,i.useMemo)((function(){return t({items:a,selectedTag:o})}),[a,t,o]).itemsFilteredByTag;return{setSelectedTag:d,selectedTag:o,filteredItems:u,hasItems:!(null==u||!u.length),handleTagClick:s}}({downloads:e.downloads}),t=n.selectedTag,a=n.handleTagClick,s=n.hasItems,u=n.filteredItems,c=null==l?void 0:l.additionalDownloadButtonLabel,g=(0,r.jsx)(d.xu,{mt:5,children:(0,r.jsx)(f.AP,{tags:null==l?void 0:l.tags,selectedTag:t,handleClick:a})}),m=null!=u&&u.length?(0,r.jsxs)(d.xv,{fontSize:"sm",children:["Showing ",null==u?void 0:u.length," of ",null==u?void 0:u.length]}):null;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.N,{headerProps:{title:null==l?void 0:l.title,children:g},gridProps:{hasItems:s,columns:[1,2,3,4],columnGap:[0,4,4],rowGap:[14,14,16],children:(0,r.jsx)(v,{filteredItems:u,buttonLabel:c}),noItemsLabel:null==l?void 0:l.additionalNoDownloadsLabel},paginationProps:{showPagination:!1},showSort:!1,aboveGridChildren:m})})},p=function(e){var l,n=e.page,t=e.downloads;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{page:n,downloads:t}),!(null==n||null===(l=n.sections)||void 0===l||!l.length)&&(0,r.jsx)(m.default,{page:{content:null==n?void 0:n.sections}})]})},b=(0,i.memo)(p),j=n(66027),w=["data"],T=function(e){var l=e.data,n=(0,t.Z)(e,w);return(0,r.jsx)(b,Object.assign({},n,l))}}}]); 2//# sourceMappingURL=component---src-pages-downloads-tsx-8bf5ab5571fc2a69ccb6.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.