"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2746],{62746:function(e,t,n){n.r(t),n.d(t,{DirectoryPage:function(){return el},default:function(){return ec}});var i=n(36071),r=n(59499),o=n(90116),l=n(67294),c=n(2157),d=n(38222),a=n(96533),s=n(16851),u=n(3150),h=n(44717),p=n(19521),m=n(11163),f=n(70440),g=n(4813),v=n(47578),y=n(3987),x=n(12562),b=n(85697),w=n(61585),j=n(13700),Z=n(3623),C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["title","breadcrumbTitle","pageDescription"];if((0,x.Z)(t))return e;var i=(0,a.Z)(t);return(0,y.Z)(e,function(e){var t=(0,d.Z)(n,function(t){return(0,b.Z)(e,t,"")}),r=(0,y.Z)(t,Boolean),o=(0,a.Z)(r.join(" "));return(0,w.Z)(o,i)})},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"contentTags",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"label";return(0,x.Z)(t)?e:(0,y.Z)(e,function(e){var r=(0,b.Z)(e,n,[]);return!(0,x.Z)(r)&&(0,j.Z)(r,function(e){var n=(0,b.Z)(e,i,e);return(0,w.Z)((0,d.Z)(t,a.Z),(0,a.Z)(n))})})},I=n(85893),T=function(){return(0,I.jsx)("svg",{width:"23",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.542 3H2.875v8h7.667V3ZM8.625 5H4.792v4h3.833V5ZM10.542 13H2.875v8h7.667v-8Zm-1.917 2H4.792v4h3.833v-4ZM20.125 13h-7.667v8h7.667v-8Zm-1.917 2h-3.833v4h3.833v-4ZM20.125 3h-7.667v8h7.667V3Zm-1.917 2h-3.833v4h3.833V5Z",fill:"currentColor"})})},D=function(){return(0,I.jsx)("svg",{width:"23",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{d:"M2.875 18v-2h17.25v2H2.875Zm0-5v-2h17.25v2H2.875Zm0-5V6h17.25v2H2.875Z",fill:"currentColor"})})},O=n(7564),N=n(53418),S=p.ZP.div.withConfig({displayName:"CardContainer",componentId:"sc-efieh9-0"})(["background-color:",";padding:30px;border-radius:8px;border:2px solid ",";transition:border 0.2s ease,box-shadow 0.3s ease;overflow:hidden;height:100%;display:flex;flex-direction:column;position:relative;gap:24px;",""],function(e){return e.theme.white},function(e){return e.theme.colors?e.theme.colors.primaryLight:e.theme.colors.greyLight},function(e){return e.as===N.l7&&(0,p.iv)(["&:hover{text-decoration:none;border-color:",";h1,h2,h3,h4,h5,h6{color:",";}}"],e.theme.colors?e.theme.colors.staticGrey:e.theme.colors.tertiary,e.theme.colors.primaryBrand)}),k=p.ZP.div.withConfig({displayName:"CardImageContainer",componentId:"sc-efieh9-1"})(["width:100%;aspect-ratio:16 / 9;overflow:hidden;"]),F=p.ZP.img.withConfig({displayName:"CardImage",componentId:"sc-efieh9-2"})(["width:100%;height:100%;object-fit:cover;"]),M=p.ZP.div.withConfig({displayName:"CardBody",componentId:"sc-efieh9-3"})(["flex-grow:1;display:flex;flex-direction:column;gap:24px;"]),E=p.ZP.h3.withConfig({displayName:"Title",componentId:"sc-efieh9-4"})(["font-size:26px;font-weight:",";color:",";margin-bottom:0;margin-top:0;"],function(e){return e.theme.bold},function(e){return e.theme.colors.primary}),_=p.ZP.p.withConfig({displayName:"Description",componentId:"sc-efieh9-5"})(["font-size:14px;line-height:1.5;flex-grow:1;margin:0;"]),B=(0,p.ZP)(S).withConfig({displayName:"WideCard",componentId:"sc-efieh9-6"})(["display:grid;grid-template-columns:300px 1fr;gap:30px;align-items:start;padding:30px;","{width:100%;height:180px;margin:0;overflow:hidden;}","{margin-top:0;}@media (max-width:","){display:flex;flex-direction:column;","{width:100%;height:180px;}","{margin-top:10px;}}"],k,E,function(e){return e.theme.tablet},k,E),L=p.ZP.div.withConfig({displayName:"Tags",componentId:"sc-efieh9-7"})(["display:flex;gap:8px;"]),R=p.ZP.span.withConfig({displayName:"Tag",componentId:"sc-efieh9-8"})(["border-radius:4px;padding:4px;background-color:",";font-size:12px;font-weight:",";color:black;"],function(e){return e.theme.greyLight},function(e){return e.theme.bold}),V=p.ZP.div.withConfig({displayName:"PublishDate",componentId:"sc-efieh9-9"})(["margin-top:8px;font-size:14px;color:#1e1e1e;"]),H=function(e){var t=e.isWide,n=e.title,i=e.pageDescription,r=e.pageImage,o=e.publishDate,l=e.contentTags,c=e.slug,a=c?"/".concat(c):null;return(0,I.jsxs)(t?B:S,{as:a&&N.l7,href:a,children:[r&&(0,I.jsx)(k,{children:(0,I.jsx)(F,{src:r.url,alt:r.title})}),(0,I.jsxs)(M,{children:[(0,I.jsxs)("div",{children:[n&&(0,I.jsx)(E,{children:n}),o&&(0,I.jsx)(V,{children:(0,O.y)(o)})]}),i&&(0,I.jsx)(_,{children:i})]}),l&&l.length>0&&(0,I.jsx)(L,{children:(0,d.Z)(l,function(e){return(0,I.jsx)(R,{children:e.label},e._meta.id)})})]})},z=p.ZP.div.withConfig({displayName:"ListItemContainer",componentId:"sc-5c13ve-0"})(["display:grid;width:100%;grid-template-columns:25fr 75fr;align-items:flex-start;border-bottom:2px solid ",";padding:10px;transition:background-color 0.2s ease;column-gap:30px;&:hover{background-color:",";}@media (max-width:","){display:block;}"],function(e){return e.theme.colors.greyLight},function(e){return e.theme.colors.primaryLight},function(e){return e.theme.tablet}),A=p.ZP.div.withConfig({displayName:"ListItemTitle",componentId:"sc-5c13ve-1"})(["font-weight:",";font-size:16px;color:",";"],function(e){return e.theme.bold},function(e){return e.theme.colors.primaryBrand}),W=p.ZP.div.withConfig({displayName:"ListItemDescription",componentId:"sc-5c13ve-2"})(["color:",";"],function(e){return e.theme.colors.primary}),q=(0,p.ZP)(N.l7).withConfig({displayName:"StyledBaseLinkType",componentId:"sc-5c13ve-3"})(["text-decoration:none;color:inherit;display:block;cursor:pointer;"]),G=function(e){var t=e.title,n=e.breadCrumbTitle,i=e.pageDescription,r=e.slug,o=e.url||(r?"/".concat(r):void 0);return(0,I.jsx)(function(e){var t=e.children;return o?(0,I.jsx)("li",{children:(0,I.jsx)(q,{href:o,children:t})}):(0,I.jsx)("li",{children:t})},{children:(0,I.jsxs)(z,{children:[(0,I.jsx)(A,{children:n||t}),(0,I.jsx)(W,{children:i})]})})};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Y(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2?arguments[2]:void 0,i=(0,l.useState)(e),r=i[0],o=i[1],c=(0,l.useMemo)(function(){return(0,Z.Z)(function(e){o(e)},t,n)},[t,n]);return(0,l.useEffect)(function(){return c(e),function(){c.cancel()}},[e,c]),r}(_,300),W=(0,l.useMemo)(function(){return P(C(b,A,["title","pageDescription"]),F,"contentTags","label")},[b,A,F]),q="Alpha"===y?(0,u.Z)(W,["title"],["asc"]):(0,u.Z)(W,function(e){return new Date(e.publishDate||0)},["desc"]),G=(0,l.useMemo)(function(){return P(C((0,d.Z)(i,g.F),A,["title","pageDescription"]),F,"contentTags","label")},[i,A,F]),U=(0,l.useMemo)(function(){return(0,h.Z)([].concat((0,o.Z)(G),(0,o.Z)(q)),"slug")},[G,q]);return(0,I.jsx)("div",{className:"directory",children:(0,I.jsxs)(J,{children:[(0,I.jsxs)(K,{children:[r&&(0,I.jsx)(Q,{placeholder:"Search ".concat((0,a.Z)(t),"..."),type:"text",id:"directory-search",name:"directory-search",defaultValue:_,onChange:function(e){return B(e.target.value)}}),f&&2===f.length&&(0,I.jsxs)(X,{children:[f.includes("Cards")&&(0,I.jsx)($,{disabled:"grid"===R,active:"grid"===R,onClick:function(){return V("grid")},children:(0,I.jsx)(T,{})}),f.includes("List")&&(0,I.jsx)($,{disabled:"list"===R,active:"list"===R,onClick:function(){return V("list")},children:(0,I.jsx)(D,{})})]})]}),(null==z?void 0:z.length)>0&&(0,I.jsxs)(ee,{children:[(0,I.jsx)(et,{onClick:function(){M([]),j.push({query:Y(Y({},O),{},{filters:[]})},void 0,{shallow:!0})},children:"View all"}),(0,d.Z)(z,function(e){var t;return(0,I.jsx)(et,{active:F.includes(e.label),onClick:function(){return H(e.label)},children:e.label},null===(t=e._meta)||void 0===t?void 0:t.id)})]}),(0,I.jsx)(er,{items:U,viewMode:R,noResultsText:w,directoryItemFeatures:x,directoryMaxColumns:v})]})})},el=function(e){var t=e.entry.fields,n=t.shortTitle,r=t.pageHeaderSections,o=t.directoryTags,l=t.directoryFeaturedPages,c=t.directorySearchEnabled,d=t.directoryFilterTags,a=t.directoryViewsEnabled,s=t.directoryMaxColumns,u=t.directorySort,h=t.directoryItemFeatures,p=t.directoryItems,m=t.noResultsText,f=t.pageFooterSections;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"directory-page__page-header-sections",children:(void 0===r?[]:r).map(function(e){return(0,I.jsx)(i.g,{entry:e},e.sys.id)})}),(0,I.jsx)("div",{className:"directory-page__directory",children:(0,I.jsx)(eo,{shortTitle:void 0===n?"":n,directoryTags:void 0===o?[]:o,directoryFeaturedPages:void 0===l?[]:l,directorySearchEnabled:void 0!==c&&c,directoryFilterTags:void 0===d?[]:d,directoryViewsEnabled:void 0===a?[]:a,directoryMaxColumns:void 0===s?1:s,directorySort:void 0===u?"":u,directoryItemFeatures:void 0===h?[]:h,directoryItems:void 0===p?[]:p,noResultsText:m})}),(0,I.jsx)("div",{className:"directory-page__page-footer-sections",style:{marginTop:"60px"},children:(void 0===f?[]:f).map(function(e){return(0,I.jsx)(i.g,{entry:e},e.sys.id)})})]})},ec=el},4813:function(e,t,n){n.d(t,{F:function(){return h}});var i=n(59499),r=n(61585),o=n(22801),l=n(19978),c=n(52834),d=n(33770),a=n(38222),s=n(69070);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDepth,h=void 0===n?25:n,p={};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if((0,r.Z)(["Entry","Asset"],null==t||null===(m=t.sys)||void 0===m?void 0:m.type)){var m,f,g,v,y,x,b,w,j,Z,C=t.sys,P=C.id,I=C.createdAt,T=C.updatedAt,D=C.type;if(p[P])return p[P];if(p[P]={},n>=h)return console.debug("Reached max transformation depth:",h),P;var O={id:P,createdAt:I,updatedAt:T};"Entry"===D&&(O.contentType=null===(f=t.sys.contentType)||void 0===f||null===(f=f.sys)||void 0===f?void 0:f.id);var N=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;return new Date(e).toLocaleDateString(t,n)},o=function(e){return new Date(e)>new Date}}}]);