PageSourceSearch

https://thnk.org/static/js/7583.6d1e292a.chunk.js

js thnk.org collected 2026-09-24 17:51:06 UTC 27,936 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkthnk_client=self.webpackChunkthnk_client||[]).push([[3807,4904,5484,7583],{8926(e,l,a){a.r(l),a.d(l,{default:()=>g});var s=a(9379),t=a(7565),i=a(477),n=a(4416),c=(a(7878),a(4921),a(4399)),r=a(3679),o=a(1683),d=a(9482),u=a(7849),m=a(8803);var h=a(7929);const g=function(e){let l=e.componentId,a=e.title,g=e.desc,v=e.hideDates,_=e.cta,p=e.articles,x=e.className,j=e.flip;const f=(0,d.o)().isMobile,N=(0,m.A)().trackEvent,b=(0,t.useCallback)(e=>{N({name:"link_click",properties:{link_id:e._id,link_href:"/blog/".concat(e.slug)}})},[N]),y=(0,t.useMemo)(()=>{var e,l;if(null===p||void 0===p||!p.length)return null;const s=p[0];return s?(0,h.jsxs)(i.N_,{className:"article-showcase__main py-sm px-sm".concat((null===p||void 0===p?void 0:p.length)<=3?" article-showcase__main--height":""),to:"../blog/".concat(s.slug),id:"".concat(a?(0,u.Yv)(a):"article","-1"),onClick:()=>b(s),children:[(0,h.jsxs)("div",{className:"article-showcase__item-content",children:[(0,h.jsx)("h3",{className:"article-showcase__item-title truncate l-2 h3",children:s.title}),null!==(e=s.authors)&&void 0!==e&&e.length?(0,h.jsx)("div",{className:"article-showcase__item-authors truncate l-2 body-large",children:s.authors.filter(e=>e.name).map(e=>e.name).join(", ")}):null,(0,h.jsxs)("div",{className:"article-showcase__item-footer truncate l-2",children:[" ",v?null:(0,h.jsxs)(h.Fragment,{children:[new Date(s.created).toLocaleString("en-gb",{day:"2-digit",month:"long",year:"numeric"})," ","\u2022"," "]}),null!==(l=s.tags)&&void 0!==l&&l.length?s.tags.map(e=>e.name).join(", "):null]})]}),(0,h.jsx)(o.A,{className:"cover-img",img:s.img,size:"medium"})]}):null},[p,a,v,b]),w=(0,t.useMemo)(()=>null!==p&&void 0!==p&&p.length?p.slice(1,4).map((e,l)=>{var s,t;return e?(0,h.jsx)(c.qr,{className:"article-showcase__slide",children:(0,h.jsxs)(i.N_,{className:"article-showcase__item gap-sm",to:"../blog/".concat(e.slug),id:"".concat(a?(0,u.Yv)(a):"article","-").concat(l+2),onClick:()=>b(e),children:[(0,h.jsx)("div",{className:"article-showcase__item-img",children:(0,h.jsx)(o.A,{className:"cover-img",img:e.img,size:"small"})}),(0,h.jsxs)("div",{className:"article-showcase__item-content",children:[(0,h.jsx)("h3",{className:"article-showcase__item-title truncate l-2 h4",children:e.title}),null!==(s=e.authors)&&void 0!==s&&s.length?(0,h.jsx)("div",{className:"article-showcase__item-authors truncate l-2",children:e.authors.filter(e=>e.name).map(e=>e.name).join(", ")}):null,(0,h.jsxs)("div",{className:"article-showcase__item-footer truncate l-2 body-small",children:[" ",v?null:new Date(e.created).toLocaleString("en-gb",{day:"2-digit",month:"long",year:"numeric"}),null!==(t=e.tags)&&void 0!==t&&t.length?(0,h.jsxs)(h.Fragment,{children:[" \u2022 ",e.tags.map(e=>e.name).join(", ")]}):null]})]})]})},e._id):null}):null,[p,a,v,b]);return null!==p&&void 0!==p&&p.length?(0,h.jsx)("section",(0,s.A)((0,s.A)({className:"article-showcase".concat(x?" ".concat(x):"").concat(j?" flip":"")},l?{id:l}:{}),{},{children:(0,h.jsxs)("div",{className:"wrap flex gap-lg",children:[a||g?(0,h.jsxs)("div",{className:"flex flex--center gap-md",children:[a?(0,h.jsx)("h2",{className:"article-showcase__title h2",children:a}):null,g?(0,h.jsx)("p",{className:"article-showcase__desc body-large",children:g}):null]}):null,(0,h.jsx)("div",{className:"article-showcase__container gap-lg",children:null!==p&&void 0!==p&&p.length?(0,h.jsxs)(h.Fragment,{children:[null!==w&&void 0!==w&&w.length?f?(0,h.jsx)(c.RC,{className:"article-showcase__slider",slidesPerView:"auto",watchOverflow:!0,modules:[n.FJ,n.Jq],mousewheel:{forceToAxis:!0},spaceBetween:24,children:w}):(0,h.jsx)("div",{className:"article-showcase__item-container flex gap-md",children:w}):null,y||null]}):null}),_?(0,h.jsx)(r.A,{className:"article-showcase__cta btn btn--secondary",link:_}):null]})})):(0,h.jsx)("div",{className:"article-showcase".concat(x?" ".concat(x):"").concat(j?" flip":""),children:(0,h.jsxs)("div",{className:"wrap flex gap-lg",children:[(0,h.jsxs)("div",{className:"flex flex--center gap-md",children:[a?(0,h.jsx)("h2",{className:"article-showcase__title h2",children:a}):null,g?(0,h.jsx)("p",{className:"article-showcase__desc body-large",children:g}):null]}),(0,h.jsxs)("div",{className:"article-showcase__container gap-lg",children:[f?(0,h.jsxs)(c.RC,{className:"article-showcase__slider",slidesPerView:"auto",watchOverflow:!0,modules:[n.FJ,n.Jq],mousewheel:{forceToAxis:!0},spaceBetween:24,children:[(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"}),(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"}),(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"})]}):(0,h.jsxs)("div",{className:"article-showcase__item-container flex gap-md",children:[(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"}),(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"}),(0,h.jsx)(c.qr,{className:"article-showcase__slide block-loader"})]}),(0,h.jsx)("div",{className:"article-showcase__main block-loader"})]})]})})}},4904(e,l,a){a.r(l),a.d(l,{default:()=>r});var s=a(9379),t=a(3679),i=a(4358),n=a(9847);var c=a(7929);const r=function(e){let l=e.componentId,a=e.title,r=e.size,o=e.desc,d=e.descSize,u=e.cta,m=e.background;return(0,c.jsx)("section",(0,s.A)((0,s.A)({},l?{id:l}:{}),{},{className:"introduction section-bg".concat(m&&"red"!==m?"white"===m?" section-bg--white":"dark-blue"===m?" section-bg--dark":"light-blue"===m?" section-bg--primary":"":" section-bg--secondary"),children:(0,c.jsx)("div",{className:"wrap",children:(0,c.jsxs)("div",{className:"introduction__container gap-lg",children:[(0,c.jsx)("div",{className:"introduction__left",children:(0,c.jsx)("h2",{className:"introduction__title ".concat(r||"h2"),children:(0,c.jsx)(i.A,{components:{p:n.A},children:a})})}),(0,c.jsxs)("div",{className:"introduction__right gap-md",children:[o?(0,c.jsx)(i.A,{className:"introduction__desc markdown".concat(d?" ".concat(d):" h3"),children:o}):null,u?(0,c.jsx)(t.A,{className:"introduction__cta",link:u}):null]})]})})}))}},9438(e,l,a){a.r(l),a.d(l,{default:()=>T});var s=a(5544),t=a(7565),i=a(6396),n=a(4111),c=a(477),r=a(5484),o=a(6515),d=a(9615),u=a(551),m=a(2865),h=a(3446),g=a(5776),v=a(9482),_=a(866),p=a(4912),x=a(4904),j=a(1683),f=a(4358),N=a(8391),b=a(8803);var y=a(7929);const w=function(e){let l=e.article,a=e.styling,s=void 0===a?"blue":a;const i=(0,b.A)().trackEvent,n=(0,t.useRef)(null),r=(0,N.A)(n,.2).wasIntersecting,o=(0,t.useCallback)(()=>
1{i({name:"link_click",properties:{link_id:null===l||void 0===l?void 0:l._id,link_href:"/blog/".concat(null===l||void 0===l?void 0:l.slug)}})},[null===l||void 0===l?void 0:l._id,null===l||void 0===l?void 0:l.slug,i]);return l?(0,y.jsx)("section",{className:"article-featured section article-featured--".concat(s),ref:n,children:(0,y.jsx)("div",{className:"wrap wrap--lg",children:(0,y.jsxs)("div",{className:"article-featured__container".concat(r?" show":""),children:[(0,y.jsx)("div",{className:"article-featured__content-container py-md px-md",children:(0,y.jsxs)("div",{className:"article-featured__content flex gap-md",children:[(0,y.jsxs)("div",{className:"flex gap-sm",children:[(0,y.jsx)("h2",{className:"article-featured__title h3",children:l.title}),l.authors.length?(0,y.jsx)("div",{className:"article-featured__authors body-large",children:l.authors.map(e=>"".concat(e.firstname," ").concat(e.lastname)).join(", ")}):null,(0,y.jsxs)("div",{className:"article-featured__info",children:[" ",new Date(l.created).toLocaleString("en-gb",{day:"2-digit",month:"long",year:"numeric"}),l.tags.length?(0,y.jsxs)(y.Fragment,{children:[" \u2022 ",l.tags.map(e=>e.name).join(", ")]}):null]})]}),(0,y.jsx)(f.A,{className:"article-featured__summary markdown body-large",children:l.summary}),(0,y.jsxs)(c.N_,{className:"article-featured__cta btn".concat("blue"===s?" btn--light":" btn--dark"),to:"../blog/".concat(l.slug),onClick:()=>o(),children:["Read more",(0,y.jsx)(m.I.Chevron,{className:"icon rotate-minus-90"})]})]})}),(0,y.jsx)("div",{className:"article-featured__img",children:(0,y.jsx)(j.A,{className:"cover-img",img:l.img,size:"medium"})})]})})}):null};var k=a(8926),C=a(4416),A=(a(7878),a(4921),a(4399)),E=a(7849);const M=function(e){let l=e.title,a=e.articles,i=e.darkText;const n=(0,t.useRef)(null),r=(0,t.useRef)(null),d=(0,t.useState)(!1),u=(0,s.A)(d,2),h=(u[0],u[1]),g=(0,t.useState)(!1),_=(0,s.A)(g,2),p=_[0],x=_[1],f=(0,v.o)().isMobile,N=(0,b.A)().trackEvent,w=(0,t.useCallback)(e=>{N({name:"link_click",properties:{link_id:e._id,link_href:"/blog/".concat(e.slug)}})},[N]),k=(0,t.useMemo)(()=>null===a||void 0===a?void 0:a.map(e=>(0,y.jsx)(A.qr,{className:"article-slider__slide",children:(0,y.jsxs)(c.N_,{className:"article-slider__slide-link flex gap-sm",to:"../blog/".concat(e.slug),target:"_blank",onClick:()=>w(e),children:[(0,y.jsx)("div",{className:"article-slider__slide-img-container",style:{background:"white"},children:(0,y.jsx)(j.A,{className:"cover-img",img:e.img,size:"small"})}),(0,y.jsxs)("div",{className:"article-slider__slide-content flex",children:[(0,y.jsx)("h3",{className:"article-slider__slide-title truncate l-2 h4",children:e.title}),e.authors.length?(0,y.jsx)("div",{className:"article-slider__item-authors truncate l-2",children:e.authors.filter(e=>e.name).map(e=>e.name).join(", ")}):null,(0,y.jsxs)("div",{className:"article-slider__item-footer truncate l-2 body-small",children:[" ",new Date(e.created).toLocaleString("en-gb",{day:"2-digit",month:"long",year:"numeric"}),e.tags.length?(0,y.jsxs)(y.Fragment,{children:[" \u2022 ",e.tags.map(e=>e.name).join(", ")]}):null]})]})]})},e._id)),[a,w]);return null!==a&&void 0!==a&&a.length?(0,y.jsx)("section",{className:"article-slider section",style:{color:i?"var(--text)":""},children:(0,y.jsx)("div",{className:"wrap",children:(0,y.jsxs)("div",{className:"article-slider__container flex gap-lg",children:[(0,y.jsx)("h2",{className:"article-slider__title h2",children:l}),(0,y.jsx)(A.RC,{className:"article-slider__slider".concat(p?" locked":""),slidesPerView:"auto",watchOverflow:!0,modules:[C.Vx,C.FJ,C.Jq],grabCursor:!0,mousewheel:{forceToAxis:!0},spaceBetween:f?24:40,navigation:{prevEl:n.current,nextEl:r.current},onSwiper:()=>h(!0),onLock:()=>x(!0),onUnlock:()=>x(!1),children:k}),(0,y.jsx)("div",{className:"article-slider__footer",hidden:p,children:(0,y.jsxs)("div",{className:"article-slider__nav slider__nav",children:[(0,y.jsxs)(o.A,{className:"slider__arrow slider__arrow--prev",type:"button",ref:n,id:"article-slider-".concat((0,E.Yv)(l),"-prev"),children:[(0,y.jsx)("span",{className:"sr-only",children:"Previous slide"}),(0,y.jsx)(m.I.Chevron,{className:"icon"})]}),(0,y.jsxs)(o.A,{className:"slider__arrow slider__arrow--next",type:"button",ref:r,id:"article-slider-".concat((0,E.Yv)(l),"-next"),children:[(0,y.jsx)("span",{className:"sr-only",children:"Next slide"}),(0,y.jsx)(m.I.Chevron,{className:"icon"})]})]})})]})})}):null},S="".concat("https://www.thnk.org/api");const F=function(e){var l,a,s,i,n,c,r,o,d,u,m,h,g,v;let p=e.body;const j=(0,_.A)("".concat(S,"/articles/published?populate=tags&populate=authors&populate=img&per_page=4&sort=created:DESC")),f=j.result,N=j.doFetch,b=(0,_.A)("".concat(S,"/articles/published?populate=tags&populate=authors&populate=img").concat(null!==(l=p.featuredCategory1)&&void 0!==l&&l.tag?"&tags=".concat(p.featuredCategory1.tag):"","&per_page=4&sort=created:DESC")),C=b.result,A=b.doFetch,E=(0,_.A)("".concat(S,"/articles/published?populate=tags&populate=authors&populate=img").concat(null!==(a=p.featuredCategory2)&&void 0!==a&&a.tag?"&tags=".concat(p.featuredCategory2.tag):"","&per_page=4&sort=created:DESC")),F=E.result,I=E.doFetch,D=(0,_.A)("".concat(S,"/articles/published?populate=tags&populate=authors&populate=img").concat(null!==(s=p.featuredCategory3)&&void 0!==s&&s.tag?"&tags=".concat(p.featuredCategory3.tag):"","&per_page=4&sort=created:DESC")),q=D.result,z=D.doFetch;return(0,t.useEffect)(()=>{N()},[N]),(0,t.useEffect)(()=>{var e;null!==(e=p.featuredCategory1)&&void 0!==e&&e.tag&&A()},[null===(i=p.featuredCategory1)||void 0===i?void 0:i.tag,A]),(0,t.useEffect)(()=>{var e;null!==(e=p.featuredCategory2)&&void 0!==e&&e.tag&&I()},[null===(n=p.featuredCategory2)||void 0===n?void 0:n.tag,I]),(0,t.useEffect)(()=>{var e;null!==(e=p.featuredCategory3)&&void 0!==e&&e.tag&&z()},[null===(c=p.featuredCategory3)||void 0===c?void 0:c.tag,z]),(0,y.jsxs)("div",{children:[(0,y.jsx)(k.default,{className:"article-front section",articles:null===f||void 0===f?void 0:f.data.items}),(0,y.jsx)(w,{article:null===(r=p.featuredArticle1)||void 0===r?void 0:r.article,styling:"blue"}),null!==(o=p.featuredCategory1)&&void 0!==o&&o.tag?(0,y.jsx)(k.default,{className:"section-bg section-bg--grey",title:null===(d=p.featuredCategory1)||void 0===d?void 0:d.label,articles:null===C||void 0===C?void 0:C.data.items}):null,null!==(u=p.featuredCategory2)&&void 0!==u&&u.tag?(0,y.jsx)(M,{title:null===(m=p.featuredCategory2)||void 0===m?void 0:m.label,articles:null===F||void 0===F?void 0:F.data.items}):null,(0,y.jsx)(w,{article:null===(h=p.featuredArticle2)||void 0===h?void 0:h.article,styling:"grey"}),null!==(g=p.featuredCategory3)&&void 0!==g&&g.tag?(0,y.jsx)(k.default,{className:"section-bg section-bg--grey",title:null===(v=p.featuredCategory3)||void 0===v?void 0:v.label,articles:null===q||void 0===q?void 0:q.data.items,flip:!0}
1):null,(0,y.jsx)(x.default,{title:p.introduction.title,desc:p.introduction.desc,cta:p.introduction.cta})]})};var I=a(9552),D=a(1092);const q="".concat("https://www.thnk.org/api"),z=["title","body","authors","summary"];const V=function(e){var l,a;let i=e.category,n=e.searchValue;const r=(0,b.A)().trackEvent,o=(0,c.ok)(),d=(0,s.A)(o,1)[0],u=(0,t.useMemo)(()=>d.get("page")||"1",[d]),m=(0,_.A)("".concat(q,"/articles/published?populate=tags&populate=img&populate=authors").concat(i?"&tags=".concat(i):"").concat(n?z.reduce((e,l)=>"".concat(e,"&").concat(l,"=").concat(n),""):"","&per_page=16&page=").concat(u,"&sort=created:DESC")),h=m.result,g=m.doFetch,v=m.loading,p=m.error,x=(0,t.useCallback)(e=>{r({name:"link_click",properties:{link_id:e._id,link_href:"/blog/".concat(e.slug)}})},[r]);(0,t.useEffect)(()=>{g()},[i,n,u,g]);const f=(0,t.useMemo)(()=>(null===h||void 0===h?void 0:h.data.items.map(e=>(0,y.jsx)("li",{className:"articles-lister__item",children:(0,y.jsxs)(c.N_,{className:"articles-lister__link flex",to:"/blog/".concat(e.slug),onClick:()=>x(e),children:[(0,y.jsx)("div",{className:"articles-lister__img",children:e.img?(0,y.jsx)(j.A,{className:"cover-img",img:e.img,size:"small"}):null}),(0,y.jsxs)("div",{className:"articles-lister__content flex",children:[(0,y.jsx)("h2",{className:"articles-lister__title truncate l-2 h4",children:e.title}),e.authors.length?(0,y.jsx)("div",{className:"articles-lister__item-authors truncate l-2",children:e.authors.filter(e=>e.name).map(e=>e.name).join(", ")}):null,(0,y.jsxs)("div",{className:"articles-lister__date truncate l-2 body-small",children:[" ",new Date(e.created).toLocaleString("en-gb",{day:"2-digit",month:"long",year:"numeric"}),e.tags.length?(0,y.jsxs)(y.Fragment,{children:[" \u2022 ",e.tags.map(e=>e.name).join(", ")]}):null]})]})]})},e._id)))||[],[x,null===h||void 0===h?void 0:h.data.items]);return(0,y.jsx)("section",{className:"articles-lister",children:(0,y.jsxs)("div",{className:"wrap",children:[p?(0,y.jsx)(I.A,{text:p.message,status:"error"}):null,v?(0,y.jsxs)("div",{className:"page-loader fade-in",style:{margin:"16px 0"},children:[(0,y.jsx)("span",{className:"sr-only",children:"Loading"}),(0,y.jsx)("div",{className:"loader"})]}):null,h||p?null:(0,y.jsx)("div",{className:"articles-lister__placeholder"}),f.length?(0,y.jsx)("ul",{className:"articles-lister__list gap-md",children:f}):h?(0,y.jsx)("h2",{className:"articles-lister__message h3",children:"No articles found."}):null,f.length&&(null===h||void 0===h||null===(l=h.data)||void 0===l||null===(a=l.pager)||void 0===a?void 0:a.total)>1?(0,y.jsx)(D.A,{total:h.data.pager.total,current:+u}):null]})})},P="".concat("https://www.thnk.org/api");const R=function(){var e,l,a,x,j,f,N,b,w,k;const C=(0,v.o)().isMobile,A=document.getElementById("modal"),E=(0,g.f)(),M=E.data,S=M.blog,I=M.generalData,D=E.setPage,q=(0,t.useMemo)(()=>S||null,[S]),z=(0,t.useState)(!0),R=(0,s.A)(z,2),T=R[0],O=R[1],L=(0,c.ok)(),B=(0,s.A)(L,2),J=B[0],Y=B[1],G=(0,t.useMemo)(()=>J.get("category")||"",[J]),U=(0,t.useMemo)(()=>J.get("search")||"",[J]),H=(0,t.useRef)(null),K=(0,p.M)(U),Q=(0,_.A)("".concat(P,"/tags/published?per_page=100")),W=Q.result,X=Q.doFetch;(0,t.useEffect)(()=>{D("blog")},[D]),(0,t.useEffect)(()=>{X(),O(!1)},[X]),(0,t.useEffect)(()=>{if(!T)return H.current&&clearTimeout(H.current),J.delete("page"),H.current=setTimeout(()=>{K.value?J.set("search",K.value):J.delete("search"),Y(J)},500),()=>{H.current&&clearTimeout(H.current)}},[K.value]);const Z=(0,t.useCallback)(e=>{J.delete("page"),e&&e!==G?J.set("category",e):J.delete("category"),Y(J)},[J,G,Y]),$=(0,t.useMemo)(()=>{var e;return(null===W||void 0===W||null===(e=W.data.items)||void 0===e?void 0:e.map(e=>({label:e.name,value:e.name})))||[]},[null===W||void 0===W?void 0:W.data.items]),ee=(0,t.useMemo)(()=>{var e;return null===W||void 0===W||null===(e=W.data.items)||void 0===e?void 0:e.map(e=>(0,y.jsx)(o.A,{className:"articles__category-btn tag tag--filter".concat(e.name===G?" tag--active":""),type:"button",id:e._id,onClick:()=>Z(e.name),children:e.name},e._id))},[null===W||void 0===W?void 0:W.data,Z,G]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(n.mg,{children:[null!==S&&void 0!==S&&null!==(e=S.seo)&&void 0!==e&&e.title||null!==I&&void 0!==I&&null!==(l=I.seo)&&void 0!==l&&l.t
1itle?(0,y.jsx)("title",{children:(null===S||void 0===S||null===(a=S.seo)||void 0===a?void 0:a.title)||(null===I||void 0===I||null===(x=I.seo)||void 0===x?void 0:x.title)}):null,null!==S&&void 0!==S&&null!==(j=S.seo)&&void 0!==j&&j.canonical?(0,y.jsx)("link",{rel:"canonical",href:null===S||void 0===S||null===(f=S.seo)||void 0===f?void 0:f.canonical}):null,null!==S&&void 0!==S&&null!==(N=S.seo)&&void 0!==N&&N.description||null!==I&&void 0!==I&&null!==(b=I.seo)&&void 0!==b&&b.description?(0,y.jsx)("meta",{name:"description",content:(null===S||void 0===S||null===(w=S.seo)||void 0===w?void 0:w.description)||(null===I||void 0===I||null===(k=I.seo)||void 0===k?void 0:k.description)}):null]}),A?(0,i.createPortal)((0,y.jsx)(h.A,{open:!q}),A):null,q?"Page not found"===q?(0,y.jsx)(r.default,{}):(0,y.jsxs)("section",{className:"articles",children:[(0,y.jsx)("div",{className:"wrap",children:(0,y.jsxs)("div",{className:"articles__header flex gap-md",children:[(0,y.jsx)("h1",{className:"articles__title h1",children:q.title}),q.desc?(0,y.jsx)("p",{className:"articles__desc h3",children:q.desc}):null,(0,y.jsxs)("div",{className:"articles__bar",children:[C?(0,y.jsx)(u.A,{className:"articles__category-select",id:"category",name:"category",placeholder:"Category",options:$,onChange:e=>{Z(e.currentTarget.value)}}):(0,y.jsx)("div",{className:"articles__category",children:(0,y.jsx)("div",{className:"articles__category-nav",children:ee})}),(0,y.jsx)("div",{className:"articles__search",children:(0,y.jsx)(d.A,{id:"search",name:"search",type:"text",placeholder:"Search",input:K,icon:(0,y.jsx)(m.I.Search,{})})})]})]})}),U||G?(0,y.jsx)(V,{category:G,searchValue:U}):(0,y.jsx)(F,{body:q})]}):null]})};const T=function(){return(0,y.jsx)(R,{})}},5484(e,l,a){a.r(l),a.d(l,{default:()=>c});var s=a(7565),t=a(477),i=a(5776);var n=a(7929);const c=function(){const e=(0,i.f)().setPage;return(0,s.useEffect)(()=>{e("page-not-found")},[e]),(0,n.jsx)("section",{className:"not-found",children:(0,n.jsxs)("div",{className:"wrap",children:[(0,n.jsx)("h1",{className:"not-found__title h2",children:"Oops, page not found"}),(0,n.jsx)(t.N_,{className:"btn btn--dark",to:"/",children:"Go to homepage"})]})})}},9615(e,l,a){var s=a(5544),t=a(7565),i=a(477),n=a(2865),c=a(7929);function r(e){let l=e.id,a=e.link,r=e.type,o=e.name,d=e.info,u=e.label,m=e.icon,h=e.placeholder,g=e.emptyMessage,v=e.invalidMessage,_=e.className,p=e.disabled,x=e.input,j=e.autoComplete,f=void 0===j?"on":j,N=e.onFocus,b=e.onBlur,y=e.readOnly;const w=(0,t.useState)(r),k=(0,s.A)(w,2),C=k[0],A=k[1],E=(0,t.useMemo)(()=>x.showError?x.isEmpty?"empty":x.isValid?"":"invalid":"",[x.showError,x.isEmpty,x.isValid]),M=(0,t.useCallback)(()=>{N&&N()},[N]),S=(0,t.useCallback)(()=>{b&&b()},[b]);return(0,c.jsxs)("div",{className:"input".concat(E?" error":"").concat(m?" with-icon":"").concat(_?" ".concat(_):""),children:[u||a?(0,c.jsxs)("div",{className:"input__header",children:[u?(0,c.jsx)("label",{className:"input__label body-label",htmlFor:l,children:u}):null,a?(0,c.jsx)(i.N_,{className:"input__link",to:a.href,children:a.text}):null]}):null,(0,c.jsxs)("div",{className:"input__wrapper",children:[(0,c.jsx)("input",{id:l,autoComplete:f,type:C||"text",name:o,value:x.value,onChange:x.onChange,placeholder:h,disabled:p,readOnly:y,onFocus:M,onBlur:S,ref:x.ref,className:"input__field".concat("password"===r?" input__field--password":"")}),"password"!==r?null:(0,c.jsxs)("button",{className:"input__btn",type:"button",onClick:()=>A("password"===C?"text":"password"),children:[(0,c.jsx)("span",{className:"sr-only",children:"Change input type"}),"password"===C?(0,c.jsx)(n.I.Eye,{className:"icon-large"}):(0,c.jsx)(n.I.EyeClosed,{className:"icon-large"})]}),m?(0,c.jsx)("span",{className:"input__icon",children:m}):null,d?(0,c.jsx)("div",{className:"input__info caption",children:d}):null]}),E?(0,c.jsx)("div",{className:"input__error",children:(0,c.jsx)("span",{children:"empty"===E?g:"invalid"===E?v:""})}):null]})}const o=(0,t.memo)(r);a.d(l,["A",0,o])},3679(e,l,a){var s=a(7565),t=a(477),i=a(8803),n=a(2865),c=a(7929);const r=(0,s.memo)(e=>{let l=e.link,a=e.className,r=e.target,o=e.onClick;const d=(0,i.A)().trackEvent,u=(0,s.useCallback)(e=>
1{d({name:"link_click",properties:{link_id:l.id,link_href:l.href}}),o&&o(e)},[d,l.id,l.href,o]);return l.text?(0,c.jsxs)(t.N_,{className:"".concat(a?"".concat(a," "):"","btn btn--").concat(l.color?l.color:"dark"),onClick:u,to:l.href,target:l.newTab?"_blank":r,rel:l.newTab?"noreferrer nofollow":"",download:l.isDownload,id:l.id||"",children:[l.text,l.hasArrow?(0,c.jsx)(n.I.Chevron,{className:"icon rotate-minus-90"}):null,l.isDownload?(0,c.jsx)(n.I.External,{className:"icon"}):null]}):null});a.d(l,["A",0,r])},551(e,l,a){var s=a(7565),t=a(2865),i=a(7929);const n=function(e){let l=e.id,a=e.name,n=e.info,c=e.label,r=e.value,o=e.options,d=e.placeholder,u=e.emptyMessage,m=e.disablePlaceholder,h=e.className,g=void 0===h?"":h,v=e.disabled,_=void 0!==v&&v,p=e.required,x=e.onChange,j=e.input;const f=(0,s.useMemo)(()=>j?j.showError?j.isEmpty?"empty":j.isValid?"":"invalid":"":null,[j]);return(0,i.jsxs)("div",{className:"input".concat(f?" error":""," ").concat(g),children:[c&&c?(0,i.jsx)("label",{className:"input__label body-label",htmlFor:l,children:c}):null,(0,i.jsxs)("div",{className:"input__wrapper",children:[(0,i.jsxs)("select",{className:"input__field input__field--select",name:a,id:l,required:p,value:r||(null===j||void 0===j?void 0:j.value),onChange:x||(null===j||void 0===j?void 0:j.onChange),ref:null===j||void 0===j?void 0:j.ref,disabled:_,defaultValue:r||void 0!==(null===j||void 0===j?void 0:j.value)?void 0:"",children:[(0,i.jsx)("option",{value:"",disabled:m,hidden:m,children:d}),o.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,i.jsx)(t.I.Chevron,{className:"input__icon icon"}),n?(0,i.jsx)("div",{className:"input__info caption",children:n}):null]}),f?(0,i.jsx)("div",{className:"input__error body-small",children:(0,i.jsx)("span",{children:"empty"===f?u:""})}):null]})};a.d(l,["A",0,n])},1683(e,l,a){var s=a(5544),t=a(7565),i=a(866),n=a(4358),c=a(7929);const r=function(e){var l,a,r;let o=e.img,d=e.className,u=e.size;if(!o)return null;const m=(0,t.useState)("string"===typeof o?null:o),h=(0,s.A)(m,2),g=h[0],v=h[1],_=(0,i.A)("".concat("https://www.thnk.org/api","/image/").concat(o)),p=_.doFetch,x=_.result;return(0,t.useEffect)(()=>{if("string"===typeof o){if(!x)return void p();v(x.data)}},[p,o,x]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("img",{className:"".concat(d||""),src:"".concat("https://www.thnk.org/api","/uploads/").concat(null!==g&&void 0!==g&&null!==(l=g.mimetype)&&void 0!==l&&l.includes("svg")?null===g||void 0===g?void 0:g.uri:u&&null!==g&&void 0!==g&&g.sizes&&null!==(a=g.sizes[u])&&void 0!==a&&a.uri?null===(r=g.sizes[u])||void 0===r?void 0:r.uri:null===g||void 0===g?void 0:g.uri),alt:null===g||void 0===g?void 0:g.alt,loading:"lazy"}),null!==g&&void 0!==g&&g.copyright?(0,c.jsx)(n.A,{className:"image-copyright markdown body-small",children:g.copyright}):null]})};a.d(l,["A",0,r])},9847(e,l,a){var s=a(7849);const t=function(e){let l=e.children;return(0,s.bI)(l)};a.d(l,["A",0,t])},3446(e,l,a){a.d(l,{A:()=>n});var s=a(7565),t=a(2852);var i=a(7929);const n=function(e){let l=e.open;const a=(0,s.useRef)(null);return(0,i.jsx)(t.A,{nodeRef:a,in:l,timeout:250,classNames:"pageloader",unmountOnExit:!0,children:(0,i.jsx)("div",{ref:a,className:"pageloader",children:(0,i.jsx)("div",{className:"pageloader__symbol"})})})}},1092(e,l,a){a.d(l,{A:()=>d});var s=a(5544),t=a(7565),i=a(477),n=a(9482),c=a(7849),r=a(2865);var o=a(7929);const d=function(e){let l=e.current,a=e.total;const d=(0,i.ok)(),u=(0,s.A)(d,2),m=u[0],h=u[1],g=(0,n.o)().isMobile,v=(0,t.useCallback)(e=>{m.set("page","".concat(e)),h(m)},[m,h]),_=(0,t.useMemo)(()=>{const e=g?1:2;if((g?6:8)>=a)return(0,c.y1)(1,a);const s=Math.max(l-e,1),t=Math.min(l+e,a),i=s>2,n=t<a-(g?1:2),r=a;if(!i&&n){const l=2+2*e;return[...(0,c.y1)(1,l),{value:"...",key:"dots1"},a]}if(i&&!n){const l=2+2*e;return[1,{value:"...",key:"dots2"},...(0,c.y1)(a-l+1,a)]}if(i&&n){return[1,{value:"...",key:"dots3"},...(0,c.y1)(s,t),{value:"...",key:"dots4"},r]}return[]},[a,l,g]);return(0,o.jsx)("div",{className:"pager",children:(0,o.jsxs)("div",{className:"pager__container",children:[1===l?null:(0,o.jsxs)("button",{type:"button",className:"pager__arrow pager__arrow--prev",onClick:()=>v(l-1),children:[(0,o.jsx)("span",{className:"sr-only",children:"Previous page"}),(0,o.jsx)(r.I.Chevron,{className:"icon"})]}),(0,o.jsx)("ul",{className:"pager__list",children:_.map(e=>"..."===e.value?(0,o.jsx)("li",{className:"pager__dots",children:e.value},e.key):(0,o.jsx)("li",{className:"pager__item",children:(0,o.jsx)("button",{className:"pager__btn".concat(l===e?" pager__btn--current":""),type:"button",onClick:()=>v(+e),children:e})},e))}),l===a?null:(0,o.jsxs)("button",{type:"button",className:"pager__arrow pager__arrow--next",onClick:()=>v(l+1),children:[(0,o.jsx)("span",{className:"sr-only",children:"Previous page"}),(0,o.jsx)(r.I.Chevron,{className:"icon"})]})]})})}},4912(e,l,a){var s=a(5544),t=a(7565),i=a(7849);a.d(l,["M",0,function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;const a=(0,t.useState)(e),n=(0,s.A)(a,2),c=n[0],r=n[1],o=(0,t.useState)(l(c)),d=(0,s.A)(o,2),u=d[0],m=d[1],h=(0,t.useState)(!0),g=(0,s.A)(h,2),v=g[0],_=g[1],p=(0,t.useState)(!1),x=(0,s.A)(p,2),j=x[0],f=x[1],N=(0,t.useRef)(null);(0,t.useEffect)(()=>{r(e)},[e]),(0,t.useEffect)(()=>{f(!1),_((0,i.Im)(c)),m(l(c))},[c]);const b=(0,t.useCallback)(e=>{f(!1);const a=e.currentTarget.value;
1r(a),_((0,i.Im)(a)),m(l(a))},[l]);return(0,t.useMemo)(()=>({value:c,onChange:b,isValid:u,isEmpty:v,showError:j,setShowError:f,setValue:r,ref:N}),[v,u,b,j,c])}])},8391(e,l,a){var s=a(5544),t=a(7565);const i=(e,l)=>{const a=(0,t.useState)(!1),i=(0,s.A)(a,2),n=i[0],c=i[1],r=(0,t.useState)(!1),o=(0,s.A)(r,2),d=o[0],u=o[1],m=(0,t.useMemo)(()=>new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(d||u(!0),c(!0)):c(!1)})},{rootMargin:"0px",threshold:l}),[l,d]);(0,t.useEffect)(()=>{const l=e.current;if(m&&l)return m.observe(l),()=>{l&&m.unobserve(l)}},[m,e]);return(0,t.useMemo)(()=>({isIntersecting:n,wasIntersecting:d}),[n,d])};a.d(l,["A",0,i])}}]);
2//# sourceMappingURL=7583.6d1e292a.chunk.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.