1"use strict";(self.webpackChunkthnk_client=self.webpackChunkthnk_client||[]).push([[484,798],{834(e,n,s){s.d(n,{A:()=>T});var l=s(9379),t=s(7565),i=s(1030),o=s(1683),a=s(4358),r=s(9847);const c=e=>{let n=e.elements;return(0,t.useEffect)(()=>{const e=n.current,s=()=>{e.forEach(e=>{e&&(e.style.height="")});const n=e.map(e=>(null===e||void 0===e?void 0:e.offsetHeight)||0),s=Math.max(...n);e.forEach(e=>{e&&(e.style.height="".concat(s,"px"))})};return s(),window.addEventListener("resize",s),window.visualViewport&&window.visualViewport.addEventListener("resize",s),()=>{window.removeEventListener("resize",s),window.visualViewport&&window.visualViewport.removeEventListener("resize",s),e.forEach(e=>{e&&(e.style.height="")})}},[n]),null};var d=s(7929);const u=function(e){let n=e.componentId,s=e.title,l=e.desc,i=e.background,u=e.columns;const m=(0,t.useRef)([]);return c({elements:m}),(0,d.jsx)("section",{id:n,className:"usp usp--".concat(i," section"),children:(0,d.jsxs)("div",{className:"wrap",children:[(0,d.jsxs)("h2",{className:"usp__title h2",children:[" ",(0,d.jsx)(a.A,{components:{p:r.A},children:s})]}),l?(0,d.jsx)(a.A,{className:"usp__desc markdown",children:l}):null,(null===u||void 0===u?void 0:u.length)<1?null:(0,d.jsx)("div",{className:"usp__columns",children:u.map((e,n)=>(0,d.jsxs)("div",{className:"usp__column",children:["blue"===i&&[...Array(10).keys()].map((e,n)=>(0,d.jsx)("div",{style:{"--circle-size":"".concat(Math.floor(11*Math.random())+5,"px"),"--circle-top":"".concat(100*Math.random(),"%"),"--circle-left":"".concat(100*Math.random(),"%")},className:"usp__column-background-circle"},n)),(0,d.jsx)(o.A,{className:"usp__column-image",img:e.img,size:"small"}),(0,d.jsx)("h3",{className:"usp__column-title h4",ref:e=>{e&&(m.current[n]=e)},children:(0,d.jsx)(a.A,{components:{p:r.A},children:e.title})}),e.desc?(0,d.jsx)(a.A,{className:"usp__column-desc markdown body-small",children:e.desc}):null]},e.title))})]})})},m=(0,t.lazy)(()=>Promise.all([s.e(458),s.e(793),s.e(524)]).then(s.bind(s,2456))),h=(0,t.lazy)(()=>s.e(722).then(s.bind(s,722))),v=(0,t.lazy)(()=>Promise.all([s.e(458),s.e(807)]).then(s.bind(s,8926))),p=(0,t.lazy)(()=>Promise.all([s.e(458),s.e(79)]).then(s.bind(s,7670))),x=(0,t.lazy)(()=>s.e(272).then(s.bind(s,7810))),f=(0,t.lazy)(()=>s.e(503).then(s.bind(s,4503))),j=(0,t.lazy)(()=>s.e(545).then(s.bind(s,926))),b=(0,t.lazy)(()=>s.e(938).then(s.bind(s,1938))),g=(0,t.lazy)(()=>s.e(904).then(s.bind(s,4904))),A=(0,t.lazy)(()=>Promise.all([s.e(607),s.e(498)]).then(s.bind(s,9765))),y=(0,t.lazy)(()=>Promise.all([s.e(793),s.e(970)]).then(s.bind(s,4687))),_=(0,t.lazy)(()=>s.e(394).then(s.bind(s,9394))),w=(0,t.lazy)(()=>s.e(662).then(s.bind(s,9662))),z=(0,t.lazy)(()=>s.e(922).then(s.bind(s,9922))),N=(0,t.lazy)(()=>Promise.all([s.e(607),s.e(827)]).then(s.bind(s,2482))),k=(0,t.lazy)(()=>Promise.all([s.e(458),s.e(139)]).then(s.bind(s,3098))),E=(0,t.lazy)(()=>s.e(949).then(s.bind(s,9949))),P=(0,t.lazy)(()=>Promise.all([s.e(458),s.e(100)]).then(s.bind(s,3895))),S=(0,t.lazy)(()=>s.e(279).then(s.bind(s,279))),M=(0,t.lazy)(()=>s.e(858).then(s.bind(s,8858))),R=(0,t.lazy)(()=>s.e(370).then(s.bind(s,2370))),I=(0,t.lazy)(()=>s.e(507).then(s.bind(s,3507))),F=e=>{var n;const s=null===(n=document)||void 0===n?void 0:n.querySelector(e);s&&s.scrollIntoView({behavior:"smooth"})};function L(e){let n=e.hash;return(0,t.useEffect)(()=>()=>{n&&setTimeout(()=>{F(n)},0)},[n]),null}const T=function(e){let n=e.data,s=e.slug;const o=(0,i.zy)(),a=o.hash,r=o.key;return(0,t.useEffect)(()=>{n&&a&&setTimeout(()=>{F(a)},0)},[n,a,r]),(0,d.jsx)(t.Suspense,{fallback:(0,d.jsx)(L,{hash:a}),children:n.map((e,n)=>{if(e.hidden)return null;switch(e.component){case"introduction":return(0,d.jsx)(g,(0,l.A)({},e),n);case"openai":return(0,d.jsx)(y,(0,l.A)({},e),n);case"vertexai":return(0,d.jsx)(I,(0,l.A)({},e),n);case"anthropicai":return(0,d.jsx)(h,(0,l.A)({},e),n);case"simpleSlider":return(0,d.jsx)(P,(0,l.A)({},e),n);case"image":return(0,d.jsx)(b,(0,l.A)({},e),n);case"programs":return(0,d.jsx)(z,(0,l.A)({slug:s},e),n);case"casesShowcase":return(0,d.jsx)(p,(0,l.A)({},e),n);case"partnersSlider":return(0,d.jsx)(_,(0,l.A)({},e),n);case"articleShowcase":return(0,d.jsx)(v,(0,l.A)((0,l.A)({className:"section-bg section-bg--grey"},e),{},{articles:e.articles.map(e=>e.article)}),n);case"contact":return(0,d.jsx)(x,(0,l.A)({slug:s},e),n);case"quoteSlider":return(0,d.jsx)(k,(0,l.A)({},e),n);case"title":return(0,d.jsx)(R,(0,l.A)({},e),n);case"result":return(0,d.jsx)(E,(0,l.A)((0,l.A)({},e),{},{slug:s}),n);case"peopleShowcase":return(0,d.jsx)(w,(0,l.A)({},e),n);case"markdown":return(0,d.jsx)(A,(0,l.A)({},e),n);case"promo":return(0,d.jsx)(N,(0,l.A)({},e),n);case"faq":return(0,d.jsx)(j,(0,l.A)({},e),n);case"aiCarousel":return(0,d.jsx)(m,(0,l.A)((0,l.A)({},e),{},{slug:s}),n);
1case"support":return(0,d.jsx)(S,(0,l.A)({},e),n);case"events":return(0,d.jsx)(f,(0,l.A)((0,l.A)({},e),{},{slug:s}),n);case"textImage":return(0,d.jsx)(M,(0,l.A)({},e),n);case"usp":return(0,d.jsx)(u,(0,l.A)({},e),n);default:return null}})})}},5717(e,n,s){s.d(n,{A:()=>j});var l=s(5544),t=s(7565);const i=s.p+"static/media/THNK_Photo .010c5948fbe963e7289b.jpg";var o=s(172),a=s(6285),r=s(7539),c=s(5338),d=(s(2253),s(7929));const u=(0,o.o)({features:a.QY}),m=(0,t.forwardRef)((e,n)=>{var s,l,i;let o=e.src,a=e.img,m=e.playbackRate,h=e.loop,v=e.posterSize;const p=(0,t.useRef)(null),x=(0,t.useCallback)(e=>{p.current=e,"function"===typeof n?n(e):n&&(n.current=e)},[n]);return(0,t.useEffect)(()=>{p.current&&(p.current.playbackRate=m||1)},[p,m]),(0,d.jsx)(u.Provider,{children:(0,d.jsx)(r.n,{children:(0,d.jsx)(c.Q,{ref:x,src:o,playsInline:!0,loop:h,poster:"".concat("https://www.thnk.org/api","/uploads/").concat(null!==a&&void 0!==a&&null!==(s=a.mimetype)&&void 0!==s&&s.includes("svg")?null===a||void 0===a?void 0:a.uri:v&&null!==a&&void 0!==a&&a.sizes&&null!==(l=a.sizes[v])&&void 0!==l&&l.uri?null===(i=a.sizes[v])||void 0===i?void 0:i.uri:null===a||void 0===a?void 0:a.uri)})})})}),h=(0,t.memo)(m);var v=s(4358),p=s(9847),x=s(9482),f=s(1156);const j=function(e){let n=e.title,s=e.img,o=e.video,a=e.mobile,r=e.playbackRate,c=e.loop,u=e.fullscreen,m=e.quotes,j=e.posterSize;const b=(0,t.useRef)(null),g=(0,t.useState)(),A=(0,l.A)(g,2),y=A[0],_=A[1],w=(0,f.d)().setWhiteNav,z=(0,x.o)().isMobile;(0,t.useEffect)(()=>(w(!0),()=>{w(!1)}),[w]);const N=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return(0,t.useEffect)(()=>{if(!b.current)return;const e=()=>{var e;const n=(null===(e=b.current)||void 0===e?void 0:e.currentTime)||0,s=null===m||void 0===m?void 0:m.find(e=>e.timeFrom<=n&&e.timeTo>=n);(null===y||void 0===y?void 0:y.timeFrom)!==(null===s||void 0===s?void 0:s.timeFrom)&&_(s)};return b.current.addEventListener("timeupdate",e),()=>{b.current&&b.current.removeEventListener("timeupdate",e)}},[y,m]),(0,d.jsxs)("section",{className:"video-banner".concat(u?" video-banner--fullscreen":""),children:[N?(0,d.jsx)("img",{className:"video-banner__background cover-img",src:i,alt:""}):(0,d.jsx)(h,{src:null!==a&&void 0!==a&&a.video&&z?null===a||void 0===a?void 0:a.video:o,img:null!==a&&void 0!==a&&a.img&&z?null===a||void 0===a?void 0:a.img:s,loop:c,posterSize:j,playbackRate:r,ref:b}),(0,d.jsxs)("div",{className:"video-banner__container",children:[null!==m&&void 0!==m&&m.length?null:(0,d.jsx)("h1",{className:"video-banner__title h2",children:(0,d.jsx)(v.A,{components:{p:p.A},children:n})}),y?(0,d.jsx)("div",{className:"video-banner__quote",style:{"--posX":"".concat(y.posXMobile&&z?y.posXMobile:y.posX,"%"),"--posY":"".concat(y.posYMobile&&z?y.posYMobile:y.posY,"%"),"--width":"".concat(y.width,"%"),"--font-size":"".concat(z?y.fontSizeMobile:y.fontSize)},children:(0,d.jsx)(v.A,{components:{p:p.A},children:y.quote})}):null]})]})}},1887(e,n,s){s.r(n),s.d(n,{default:()=>A});var l=s(9379),t=s(7565),i=s(6396),o=s(4111);const a=s.p+"static/media/banner.b01ce6760645734a72e0.mp4";const r=s.p+"static/media/logo-full.78f5acdd05f51a0e1c7984a4dc354b39.svg";var c=s(1683),d=s(4358),u=s(9847),m=s(9482),h=s(1156);var v=s(7929);const p=function(e){let n=e.title,s=e.img,l=e.showImage;const i=(0,m.o)(),o=i.isTablet,p=i.isMobile,x=(0,h.d)().setHideLogo;return(0,t.useEffect)(()=>(x(!0),()=>{x(!1)}),[x]),(0,v.jsx)("section",{className:"home-banner",children:(0,v.jsx)("div",{className:"wrap",children:(0,v.jsxs)("div",{className:"home-banner__container",children:[(0,v.jsxs)("div",{className:"home-banner__content",children:[(0,v.jsx)("img",{className:"home-banner__logo",src:r,alt:"THNK"}),(0,v.jsx)("h1",{className:"home-banner__title".concat(p||o?" h3":" h2"),children:(0,v.jsx)(d.A,{components:{p:u.A},children:n})})]}),l?s?(0,v.jsx)("div",{className:"home-banner__media-container",children:(0,v.jsx)(c.A,{className:"home-banner__media",img:s,size:p?"small":"medium"})}):null:(0,v.jsx)("div",{className:"home-banner__media-container",children:(0,v.jsx)("video",{className:"home-banner__media",src:a,autoPlay:!0,muted:!0,"aria-hidden":!0,playsInl
1ine:!0})})]})})})};var x=s(834),f=s(5717),j=s(3446),b=s(5776),g=s(5484);const A=function(){var e,n,s,a,r,c,d,u,m,h;const A=document.getElementById("modal"),y=(0,b.f)(),_=y.data,w=_["home-page"],z=_.generalData,N=y.setPage,k=(0,t.useMemo)(()=>w||null,[w]);return(0,t.useEffect)(()=>{N("home-page")},[N]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(o.mg,{children:[null!==w&&void 0!==w&&null!==(e=w.seo)&&void 0!==e&&e.title||null!==z&&void 0!==z&&null!==(n=z.seo)&&void 0!==n&&n.title?(0,v.jsx)("title",{children:(null===w||void 0===w||null===(s=w.seo)||void 0===s?void 0:s.title)||(null===z||void 0===z||null===(a=z.seo)||void 0===a?void 0:a.title)}):null,null!==w&&void 0!==w&&null!==(r=w.seo)&&void 0!==r&&r.canonical?(0,v.jsx)("link",{rel:"canonical",href:null===w||void 0===w||null===(c=w.seo)||void 0===c?void 0:c.canonical}):null,null!==w&&void 0!==w&&null!==(d=w.seo)&&void 0!==d&&d.description||null!==z&&void 0!==z&&null!==(u=z.seo)&&void 0!==u&&u.description?(0,v.jsx)("meta",{name:"description",content:(null===w||void 0===w||null===(m=w.seo)||void 0===m?void 0:m.description)||(null===z||void 0===z||null===(h=z.seo)||void 0===h?void 0:h.description)}):null]}),A?(0,i.createPortal)((0,v.jsx)(j.A,{open:!k}),A):null,k?"Page not found"===k?(0,v.jsx)(g.default,{}):(0,v.jsxs)(v.Fragment,{children:[k.banner?k.banner.video?(0,v.jsx)(f.A,(0,l.A)({},k.banner)):(0,v.jsx)(p,(0,l.A)({},k.banner)):null,k.pageBuilder?(0,v.jsx)(x.A,{data:k.pageBuilder,slug:"home-page"}):null]}):null]})}},5484(e,n,s){s.r(n),s.d(n,{default:()=>a});var l=s(7565),t=s(477),i=s(5776);var o=s(7929);const a=function(){const e=(0,i.f)().setPage;return(0,l.useEffect)(()=>{e("page-not-found")},[e]),(0,o.jsx)("section",{className:"not-found",children:(0,o.jsxs)("div",{className:"wrap",children:[(0,o.jsx)("h1",{className:"not-found__title h2",children:"Oops, page not found"}),(0,o.jsx)(t.N_,{className:"btn btn--dark",to:"/",children:"Go to homepage"})]})})}},1683(e,n,s){var l=s(5544),t=s(7565),i=s(866),o=s(4358),a=s(7929);const r=function(e){var n,s,r;let c=e.img,d=e.className,u=e.size;if(!c)return null;const m=(0,t.useState)("string"===typeof c?null:c),h=(0,l.A)(m,2),v=h[0],p=h[1],x=(0,i.A)("".concat("https://www.thnk.org/api","/image/").concat(c)),f=x.doFetch,j=x.result;return(0,t.useEffect)(()=>{if("string"===typeof c){if(!j)return void f();p(j.data)}},[f,c,j]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"".concat(d||""),src:"".concat("https://www.thnk.org/api","/uploads/").concat(null!==v&&void 0!==v&&null!==(n=v.mimetype)&&void 0!==n&&n.includes("svg")?null===v||void 0===v?void 0:v.uri:u&&null!==v&&void 0!==v&&v.sizes&&null!==(s=v.sizes[u])&&void 0!==s&&s.uri?null===(r=v.sizes[u])||void 0===r?void 0:r.uri:null===v||void 0===v?void 0:v.uri),alt:null===v||void 0===v?void 0:v.alt,loading:"lazy"}),null!==v&&void 0!==v&&v.copyright?(0,a.jsx)(o.A,{className:"image-copyright markdown body-small",children:v.copyright}):null]})};s.d(n,["A",0,r])},9847(e,n,s){var l=s(7849);const t=function(e){let n=e.children;return(0,l.bI)(n)};s.d(n,["A",0,t])},3446(e,n,s){s.d(n,{A:()=>o});var l=s(7565),t=s(2852);var i=s(7929);const o=function(e){let n=e.open;const s=(0,l.useRef)(null);return(0,i.jsx)(t.A,{nodeRef:s,in:n,timeout:250,classNames:"pageloader",unmountOnExit:!0,children:(0,i.jsx)("div",{ref:s,className:"pageloader",children:(0,i.jsx)("div",{className:"pageloader__symbol"})})})}}}]); 2//# sourceMappingURL=798.86f40df9.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.