PageSourceSearch

https://thnk.org/static/js/1498.00c1c8b5.chunk.js

js thnk.org collected 2026-09-24 17:51:36 UTC 2,759 bytes, 2 lines download raw bytes

1(self.webpackChunkthnk_client=self.webpackChunkthnk_client||[]).push([[1498],{9765(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>u});var n=o(9379),s=o(7565),c=o(3515),i=o(4358),r=o(9841);var a=o(7929);const l="".concat("https://www.thnk.org/api"),d="".concat("https://www.thnk.org");const u=function(e){let t=e.componentId,o=e.body;const u=(0,s.useMemo)(()=>o?o.replaceAll("@@SERVER_BASE_URL@@",l).replaceAll("@@CLIENT_BASE_URL@@","".concat(encodeURIComponent(d),"/case")):null,[o]);return o?(0,a.jsx)("section",(0,n.A)((0,n.A)({className:"section markdown"},t?{id:t}:{}),{},{children:(0,a.jsx)("div",{className:"wrap",children:(0,a.jsx)(i.A,{className:"markdown__body markdown",components:{a:c.A,video:r.A},children:u})})})):null}},9841(e,t,o){"use strict";o.d(t,{A:()=>a});var n=o(5544),s=o(7565),c=o(3006);o(3470);var i=o(7929);const r=/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu.be)\/(?:watch\?v=|embed\/|v\/)?([a-zA-Z0-9\-_]+)/;const a=function(e){let t=e.src;const a=(0,s.useRef)(null),l=(0,s.useRef)(null),d=(0,s.useState)(!1),u=(0,n.A)(d,2),w=u[0],p=u[1];return(0,s.useEffect)(()=>{window.Cookiebot&&window.Cookiebot.consent.statistics&&p(!0);const e=()=>{window.Cookiebot.consent.statistics&&p(!0)};return window.addEventListener("CookiebotOnAccept",e),()=>window.removeEventListener("CookiebotOnAccept",e)},[]),(0,s.useEffect)(()=>{if(!w)return;(async()=>{const e=r.test(t);if(await o.e(2323).then(o.t.bind(o,2323,23)),await o.e(6175).then(o.t.bind(o,6175,23)),!l.current&&a.current){const n=document.createElement("video");let s;n.classList.add("video-js","cover-img"),n.controls=!0,a.current.appendChild(n),e?(await o.e(8770).then(o.t.bind(o,8770,23)),s=(0,c.default)(n,{src:{type:"video/mp4",src:t},techOrder:["youtube"],sources:[{type:"video/youtube",src:t}],youtube:{ytControls:0},controlBar:{fluid:!0,pictureInPictureToggle:!1}})):(s=(0,c.default)(n,{sources:[{src:t,type:"application/x-mpegURL"}],controlBar:{fluid:!0,pictureInPictureToggle:!1},html5:{vhs:{overrideNative:!0}}}),s.hlsQualitySelector()),s.volume(.5),l.current=s}})()},[t,w]),(0,s.useEffect)(()=>{const e=l.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),l.current=null)}},[]),(0,i.jsx)("span",{className:"video","data-vjs-player":!0,children:(0,i.jsxs)("span",{className:"video__container",children:[(0,i.jsx)("span",{ref:a}),w?null:(0,i.jsxs)("div",{className:"video__cookie absolute-center",children:[(0,i.jsx)("div",{className:"h4",children:"To view this video, please allow statistics cookies."}),(0,i.jsx)("button",{className:"btn btn--secondary",onClick:()=>{var e;null!==(e=window)&&void 0!==e&&e.Cookiebot&&window.Cookiebot.show()},type:"button",children:"Change cookie settings"})]})]})})}},542(){}}]);
2//# sourceMappingURL=1498.00c1c8b5.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.