/*! This file is auto-generated */ (()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};let n;function o(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===n&&(n=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),n.innerHTML=e;const t=n.textContent;return n.innerHTML="",t}e.r(t),e.d(t,{decodeEntities:()=>o}),(window.wp=window.wp||{}).htmlEntities=t})();; /*! For license information please see view.js.LICENSE.txt */ !function(){var e={6999:function(e,t,n){"use strict";var r=n(6848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9067:function(e,t,n){e.exports=n(6999)()},6848:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3373:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return v(t,s,o,i,null)}function v(e,n,o,i,a){var s={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function y(e){return e.children}function b(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;tn&&o.sort(s));N.__r=0}function S(e,t,n,r,o,i,a,s,l,c,_){var p,f,h,m,g,v=r&&r.__k||d,y=t.length;for(n.__d=l,L(n,t,v),l=n.__d,p=0;p0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=T(o,n,a,_),o.__i=s,i=null,-1!==s&&(_--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?_>l-a?u+=s-a:u--:s(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s=n.__.length&&n.__.push({__V:Y}),n.__[e]}function ie(e){return Z=1,ae(ge,e)}function ae(e,t,n){var r=oe(j++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ge(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=F,!F.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};F.u=!0;var i=F.shouldComponentUpdate,a=F.componentWillUpdate;F.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},F.shouldComponentUpdate=o}return r.__N||r.__}function se(e,t){var n=oe(j++,3);!K.__s&&me(n.__H,t)&&(n.__=e,n.i=t,F.__H.__h.push(n))}function le(e){return Z=5,ce((function(){return{current:e}}),[])}function ce(e,t){var n=oe(j++,7);return me(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function _e(e,t){return Z=8,ce((function(){return e}),t)}function ue(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fe),e.__H.__h.forEach(he),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){F=null,J&&J(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),re&&re(e,t)},K.__r=function(e){X&&X(e),j=0;var t=(F=e.__c).__H;t&&(B===F?(t.__h=[],F.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Y,e.__N=e.i=void 0}))):(t.__h.forEach(fe),t.__h.forEach(he),t.__h=[],j=0)),B=F},K.diffed=function(e){ee&&ee(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&V===K.requestAnimationFrame||((V=K.requestAnimationFrame)||pe)(ue)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Y&&(e.__=e.__V),e.i=void 0,e.__V=Y}))),B=F=null},K.__c=function(e,t){t.some((function(e){try{e.__h.forEach(fe),e.__h=e.__h.filter((function(e){return!e.__||he(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],K.__e(n,e.__v)}})),te&&te(e,t)},K.unmount=function(e){ne&&ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{fe(e)}catch(e){t=e}})),n.__H=void 0,t&&K.__e(t,n.__v))};var de="function"==typeof requestAnimationFrame;function pe(e){var t,n=function(){clearTimeout(r),de&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);de&&(t=requestAnimationFrame(n))}function fe(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function he(e){var t=F;e.__c=e.__(),F=t}function me(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ge(e,t){return"function"==typeof t?t(e):t}var ve=window.wp.htmlEntities;const ye=e=>{const{title:t,description:n,slug:r,postId:o,isSelected:i,onInvoke:a,className:s,eyebrow:l,eyebrowIcon:c,cta:_,ctaLink:u,logo:d,logoLink:p}=e,[f,h]=ie("");se((()=>{h(i?`Remove ${t} from your subscription choices`:`Add ${t} to your subscription choices`)}),[i,t]);const m=_&&u,v=d&&p,y=m||v;return g("div",{className:`newsletter-signup-item ${s} ${i?"newsletter-signup-item--selected":""}`},g("input",{type:"checkbox",id:`newsletter-${r}`,name:"newsletters[]",className:"visually-hidden newsletter-signup-item__control",value:o,checked:i,tabIndex:-1}),g("button",{className:"newsletter-signup-item__select",type:"button",onClick:()=>a(o)},g("h5",{className:"newsletter-signup-item__title","aria-hidden":"true"},(0,ve.decodeEntities)(t)),g("div",{className:"newsletter-signup-item__status-icon"}),l&&g("p",{className:"newsletter-signup-item__eyebrow","aria-hidden":"true"},c,(0,ve.decodeEntities)(l)),g("p",{className:"newsletter-signup-item__description","aria-hidden":"true"},(0,ve.decodeEntities)(n)),y&&g("div",{className:"newsletter-signup-item__meta"},m&&g("a",{target:"_blank",href:u,className:"newsletter-signup-item__meta-cta",rel:"noreferrer"},_),v&&g("a",{target:"_blank",href:p,className:"newsletter-signup-item__meta-logo",rel:"noreferrer"},g("img",{src:d,alt:t}))),g("label",{htmlFor:`newsletter-${r}`,className:"visually-hidden newsletter-signup-item__action-label"},f)))};ye.propTypes={title:z().string.isRequired,description:z().string,slug:z().string.isRequired,postId:z().number.isRequired,isSelected:z().bool,onInvoke:z().func.isRequired,className:z().string,eyebrow:z().string,eyebrowIcon:z().string,logo:z().string,logoLink:z().string,cta:z().string,ctaLink:z().string},ye.defaultProps={description:"",isSelected:!1,className:"",eyebrow:"",eyebrowIcon:"",logo:"",logoLink:"",cta:"Learn More",ctaLink:""};var be=window.wp.apiFetch,we=n.n(be);var ke=(e,t,n,r=(()=>{}),o=(()=>{}))=>{if(0===e.length)return;const i={action:t?"subscribe":"unsubscribe",subs:e};n&&(i.email=n),grecaptcha.ready((()=>{grecaptcha.execute(reCAPTCHA.siteKey,{action:"submit"}).then((e=>{if(null===e)throw console.warn("Recaptcha token is null"),new Error("Recaptcha token is null");return i.token=e,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`newsletter_${i.action}`}),we()({path:"/tc/v1/newsletters/update-user-newsletters",method:"POST",parse:!1,data:i})})).then((e=>{if(!e.ok)throw new Error("Request failed");r(),o(!1)})).catch((e=>{console.warn("Signup error",e),o(!0)}))}))};function xe(e,t){for(var n in t)e[n]=t[n];return e}function Ne(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Se(e,t){this.props=e,this.context=t}(Se.prototype=new b).isPureReactComponent=!0,Se.prototype.shouldComponentUpdate=function(e,t){return Ne(this.props,e)||Ne(this.state,t)};var Le=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Le&&Le(e)};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ce(e){function t(t){var n=xe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ee,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Te=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Te(e,t,n,r)};var Pe=t.unmount;function Re(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Re(e,t,n)}))),e}function Oe(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Oe(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Me(){this.__u=0,this.t=null,this.__b=null}function He(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ue(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pe&&Pe(e)},(Me.prototype=new b).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=He(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Oe(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Me.prototype.componentWillUnmount=function(){this.t=[]},Me.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Re(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(y,null,e.fallback);return o&&(o.__u&=-33),[g(y,null,t.__a?null:e.children),o]};var Ie=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),$(g(Ae,{context:t.context},e.__v),t.l)}function $e(e,t){var n=g(De,{__v:e,i:t});return n.containerInfo=t,n}(Ue.prototype=new b).__a=function(e){var t=this,n=He(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ie(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=C(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ie(e,n,t)}))};var je="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Fe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Be=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ve=/[A-Z0-9]/g,qe="undefined"!=typeof document,We=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ge=t.event;function ze(){}function Ze(){return this.cancelBubble}function Qe(){return this.defaultPrevented}t.event=function(e){return Ge&&(e=Ge(e)),e.persist=ze,e.isPropagationStopped=Ze,e.isDefaultPrevented=Qe,e.nativeEvent=e};var Ye={enumerable:!1,configurable:!0,get:function(){return this.class}},Ke=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||qe&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||We(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Be.test(o)?o=a:-1===n.indexOf("-")&&Fe.test(o)?o=o.replace(Ve,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=C(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=C(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Ye)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=je,Ke&&Ke(e)};var Je=t.__r;t.__r=function(e){Je&&Je(e),e.__c};var Xe=t.diffed;t.diffed=function(e){Xe&&Xe(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),null};const et=Ce(((e,t)=>{const{value:n,onChange:r,onBlur:o,name:i,id:a,type:s="text",placeholder:l="",required:c=null,label:_="",error:u="",isVisible:d=!0,className:p="",submit:f="",submitClassName:h="is-style-primary-green"}=e;return g("div",{className:`form-input d-flex gap-8 flex-column ${p}`},_&&g("label",{htmlFor:i,className:"form-input__label d-block "+(d?"":"visually-hidden")},_," ",c&&"(required)"),g("div",{className:"d-flex gap-8 form-input__wrapper"},g("input",{ref:t,type:s,id:a||i,name:i,placeholder:l,value:n,onChange:r,onBlur:o,required:c,className:"form-input__input flex-grow-1 "+(u?"has-error":"")}),f&&g("div",{className:`wp-block-button ${h}`},g("button",{type:"submit",className:"wp-block-button__link wp-element-button"},"Subscribe"))),u&&g("span",{className:"form-input__error status status--alert"},u))}));et.propTypes={value:z().string,onChange:z().func,onBlur:z().func,name:z().string,id:z().string,type:z().string,placeholder:z().string,label:z().string,required:z().oneOfType([z().string,z().bool]),error:z().oneOfType([z().string,z().bool]),submit:z().string};var tt=et,nt=()=>g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},g("path",{d:"M9.5 7V8H15.795L7.5 16.295L8.205 17L16.5 8.705V15H17.5V7H9.5Z"})),rt=()=>g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g("defs",null,g("linearGradient",{x1:"100%",y1:"100%",x2:"0.6%",y2:"0.6%",id:"greenGrad"},g("stop",{stopColor:"#00D301",offset:"0%"}),g("stop",{stopColor:"#36C275",offset:"50.5%"}),g("stop",{stopColor:"#00A562",offset:"100%"}))),g("path",{d:"M0,4h4v4H0V4z M4,8h4v4H4V8z M8,12h4v4H8V12z M12,8h4v4h-4V8z M16,4h4v4h-4V4z",fill:"url(#greenGrad)"})),ot=window.wp.i18n,it=n(3373),at=n.n(it);const st=e=>{const{className:t,label:n,checked:r,disabled:o,onChange:i}=e,a=at()("switch",t,{"switch--disabled":o,"switch--checked":r}),s=le(null);return se((()=>{i(s.current.checked)}),[]),g("div",{className:a},g("label",{className:"switch__label",htmlFor:"switch__input"},g("input",{ref:s,type:"checkbox",checked:r,onChange:e=>{const t=e.target.checked;i&&i(t)},role:"switch",className:"switch__input",id:"switch__input",disabled:o}),g("span",{className:"switch__container"},g("span",{className:"switch__handle"})),n))};st.propTypes={className:z().string,label:z().string,checked:z().bool,disabled:z().bool,onChange:z().func.isRequired},st.defaultProps={className:"",label:"",checked:!1,disabled:!1};var lt=st;const ct=e=>{const{toggled:t,onToggled:n,el:r}=e;return $e(g(lt,{checked:t,onChange:e=>n(e),className:"switch--rapid-read",label:(0,ot.__)("Rapid Read","tc-23")}),r)};ct.propTypes={toggled:z().bool,onToggled:z().func,el:z().object},ct.defaultProps={toggled:!1,el:{}};var _t=ct;var ut=async e=>{try{const t=await we()({path:`/tc/v1/filter-posts?${e}`}),{posts:n,page:r,total_pages:o,total_posts:i}=t;return{posts:n,currentPage:r,totalPages:o,totalPosts:i}}catch(e){return new Error("Error fetching posts")}};function dt(e){for(var t=1;t{const r=n,o=function(e){return"gdpr"===e?encodeURI("https://techcrunch.mydashboard.oath.com/guc-redirect?app=thirdPartyContentEmbed"):"ccpa"===e?encodeURI("https://techcrunch.mydashboard.oath.com/guc-redirect?app=sellPersonalInformation"):"#"}(e),i=document.createElement("a");i.setAttribute("href",o),i.innerText="Click here to do so.",i.target="_blank",i.rel="noreferrer";const a=document.createElement("p");a.innerText="To view this content, you'll need to update your privacy settings.",a.append(document.createElement("br")),a.append(i);const s=document.createElement("div");if(s.classList.add("embed","embed--no-consent"),s.append(a),"ccpa"===e&&r.classList.contains("global-consent"))r.dataset.iframeSrc&&(!0!==t?r.append(s):(r.style="",r.append(pt(r)))),!0===t||r.dataset.iframeSrc?!0!==t||r.dataset.iframeSrc||(r.style="",r.innerHTML=r.innerHTML.replace("data-embed-custom-","").trim()):r.parentElement.append(s);else if("gdpr"===e)if(r.classList.contains("global-consent")&&r.classList.contains("eu-blocked")){const e=document.createElement("div");e.classList.add("embed","embed--no-consent"),e.innerText="Sorry, this content may not be available in your geographic region.",r.dataset.iframeSrc?r.append(e):r.parentElement.append(e)}else r.classList.contains("global-consent")&&r.classList.contains("eu-consent")&&(r.dataset.iframeSrc&&(!0!==t?r.append(s):(r.style="",r.append(pt(r)))),!0===t||r.dataset.iframeSrc?!0!==t||r.dataset.iframeSrc||(r.style="",r.innerHTML=r.innerHTML.replace("data-embed-custom-","").trim()):r.parentElement.append(s));else r.dataset.iframeSrc&&(r.style="",r.append(pt(r))),r.style="",r.innerHTML=r.innerHTML.replace("data-embed-custom-","").trim()}))}function ht(e){const{jurisdiction:t}=e,n=e.a1.indexOf("SELL_PERSONAL_INFORMATION")>-1,r=e.a1.indexOf("THIRD_PARTY_CONTENT_EMBED")>-1,o={jurisdiction:t};return o.allow="ccpa"===t?!!n:"gdpr"!==t||!!r,o}const mt=["img",".wp-block-tc-ads-ad-slot",".wp-block-image",".wp-block-gallery",".wp-block-post-title"],gt=e=>{const{post:t,focus:n}=e,[r,o]=ie(!0),i=le(null),a=le(null),s=ce((()=>!!window?.userConsent?.jurisdiction&&ht(window.userConsent)),[]);se((()=>{i.current&&i.current.classList.add(`rapid-read__post--post-${t.id}`)}),[t.id]),se((()=>{n&&a.current.focus({preventScroll:!0})}),[n]),se((()=>{const e=i.current.className.split(" ").find((e=>e.includes("rapid-read__post--post-")));r||ft(s?.jurisdiction,s?.allow,`.${e}`)}),[r,s?.jurisdiction,s?.allow]);return g("li",{className:"rapid-read__post",ref:i},g("p",{className:"rapid-read__post-type"},g("a",{href:t.postType.link},t.postType.name)),g("div",{className:"rapid-read__post-wrapper"},g("div",{className:"rapid-read__post-title-wrapper"},g("h3",{className:"rapid-read__post-title"},g("a",{ref:a,href:t.link,onClick:e=>{e.preventDefault(),o((e=>!e))},dangerouslySetInnerHTML:{__html:t.title}}))),g("div",{className:"rapid-read__post-author"},t?.authors&&g("p",null,t.authors.map(((e,n)=>e.display_name&&g(y,{key:e.ID},g("a",{href:`/author/${e.user_login}`,dangerouslySetInnerHTML:{__html:e.display_name}}),ng("p",{className:"rapid-read__post-term",key:e.id},g("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.name}}),n{if(!e)return"";const n=document.createElement("div");n.innerHTML=e;const r=mt.join(", ");return n.querySelectorAll(r).forEach((e=>{if(e.classList.contains("wp-block-post-title")&&"Podcast"===t.postType.name){let t=e.nextElementSibling;for(;t;){const e=t.nextElementSibling;t.classList.contains("wp-block-group")?(t.remove(),t=e):t=null}}e.remove()})),n.innerHTML})(t?.content)}}),g("div",{className:"rapid-read__post-preview-read-more"},g("a",{className:"rapid-read__post-preview-read-more-link gradient-text gradient-text--green-gradient",href:t.link},"Read More",g(rt,null)))))};gt.propTypes={post:z().object,focus:z().bool},gt.defaultProps={post:{},focus:!1};var vt=gt;const yt=e=>{const{dateGroup:t,rapidReadPosts:n,focus:r}=e,[o,i]=ie(!1),a=le(null),s=()=>{i(!o)};return se((()=>{r&&a.current.focus({preventScroll:!0})}),[r]),g("div",{key:t,className:"rapid-read__group"},g("div",{className:"rapid-read__head",ref:a,role:"button",tabIndex:0,"aria-label":o?(0,ot.__)(`Minimize to hide stories for ${t}`,"tc-23"):(0,ot.__)(`Expand to see stories for ${t}`,"tc-23"),onClick:s,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||s()}},g("div",{className:"rapid-read__title-wrapper"},g("h2",{className:"rapid-read__title gradient-text gradient-text--green-reverse-gradient"},t.split(",")[0]),g("div",{className:"rapid-read__count"},n[t].length," stories")),g("div",{className:"rapid-read__expander"},g("span",{className:"rapid-read__expander-plus"},o?"-":"+"))),o&&g("ul",null,n[t].map((e=>g(vt,{key:e.link,post:e})))))};yt.propTypes={dateGroup:z().string,rapidReadPosts:z().object,focus:z().bool},yt.defaultProps={dateGroup:"",rapidReadPosts:{},focus:!1};var bt=yt;const wt=e=>{const{isExtraCrunch:t,reverse:n}=e;return g("svg",{className:"tc-mark-loading-logo "+(n?"reverse":"standard"),viewBox:"0 0 76 46",x:"0px",y:"0px","aria-hidden":!0},g("title",null,"TC Loading Logo"),g("defs",null,g("linearGradient",{x1:"100%",y1:"100%",x2:"0.571986607%",y2:"0.571986607%",id:"tc-gradient"},g("stop",{stopColor:"#00D301",offset:"0%"}),g("stop",{stopColor:"#36C275",offset:"50%"}),g("stop",{stopColor:"#00A562",offset:"100%"})),g("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"ec-gradient"},g("stop",{stopColor:"#DCA946",offset:"0%"}),g("stop",{stopColor:"#FED952",offset:"100%"})),g("mask",{id:"tc-logo",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"59.5",height:"29.5"},g("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M10,0 L20,0 L20,10 L10,10 L10,0 Z M10,10 L20,10 L20,20 L10,20 L10,10 Z M10,20 L20,20 L20,30 L10,30 L10,20 Z M20,0 L30,0 L30,10 L20,10 L20,0 Z M30,10 L40,10 L40,20 L30,20 L30,10 Z M30,20 L40,20 L40,30 L30,30 L30,20 Z M40,20 L50,20 L50,30 L40,30 L40,20 Z M40,0 L50,0 L50,10 L40,10 L40,0 Z M50,20 L60,20 L60,30 L50,30 L50,20 Z M50,0 L60,0 L60,10 L50,10 L50,0 Z",fill:"white"}))),g("g",{className:"animation-group",mask:"url(#tc-logo)"},g("rect",{id:"logo-gradient",x:"0",y:"0",width:"73",height:"43",fill:`url(#${t?"ec-gradient":"tc-gradient"})`}),g("rect",{x:"49.9",y:"20",className:"tc-mark tc-mark-0",width:"10.2",height:"10.2"}),g("rect",{x:"-.1",y:"0",className:"tc-mark tc-mark-1",width:"10.2",height:"10.2"}),g("rect",{x:"9.9",y:"20",className:"tc-mark tc-mark-2",width:"10.2",height:"10.2"}),g("rect",{x:"49.9",y:"0",className:"tc-mark tc-mark-3",width:"10.2",height:"10.2"}),g("rect",{x:"29.9",y:"20",className:"tc-mark tc-mark-4",width:"10.2",height:"10.2"}),g("rect",{x:"19.9",y:"0",className:"tc-mark tc-mark-5",width:"10.2",height:"10.2"}),g("rect",{x:"9.9",y:"0",className:"tc-mark tc-mark-6",width:"10.2",height:"10.2"}),g("rect",{x:"39.9",y:"0",className:"tc-mark tc-mark-7",width:"10.2",height:"10.2"}),g("rect",{x:"9.9",y:"10",className:"tc-mark tc-mark-8",width:"10.2",height:"10.2"}),g("rect",{x:"29.9",y:"10",className:"tc-mark tc-mark-9",width:"10.2",height:"10.2"}),g("rect",{x:"39.9",y:"20",className:"tc-mark tc-mark-10",width:"10.2",height:"10.2"})))};wt.propTypes={isExtraCrunch:z().bool,reverse:z().bool},wt.defaultProps={isExtraCrunch:!1,reverse:!1};var kt=wt;const xt=e=>{const{isExtraCrunch:t,isLoading:n,onClick:r}=e;return g("button",{type:"button",className:"load-more "+(n?"loading":""),onClick:r},n?g(kt,{isExtraCrunch:t,reverse:!1}):g("p",{className:"gradient-text gradient-text--green-gradient"},"Load More"))};xt.defaultProps={isExtraCrunch:!1,isLoading:!1},xt.propTypes={isExtraCrunch:z().bool,isLoading:z().bool,onClick:z().func.isRequired};var Nt=xt;const St={initialized:!1,rapidReadPosts:null,toggle:!1,loading:!1,paged:1,focus:null,error:!1,noMorePosts:!1,status:"serverContent",loadingMore:!1},Lt=(e,t)=>{switch(t.type){case"SET_POSTS":return{...e,rapidReadPosts:t.payload,initialized:!0,status:"rapidReadContent",loadingMore:!1};case"SET_FOCUS":return{...e,focus:t.payload};case"SET_ERROR":return{...e,status:"error",loadingMore:!1};case"SET_NO_MORE_POSTS":return{...e,noMorePosts:!0};case"TOGGLED":return t.payload?{...e,toggle:!0,status:e.initialized?"rapidReadContent":"initialLoading"}:{...e,toggle:!1,status:"serverContent"};case"LOADING_MORE":return{...e,loadingMore:!0,paged:t.payload};case"LOADING_MORE_END":return{...e,loadingMore:!1,status:"rapidReadContent"};default:return e}},Et=e=>{const{serverEl:t,classes:n,displayStyle:r,template:o,templateQuery:i,toggled:a,el:s}=e,[l,c]=ae(Lt,St),{initialized:_,rapidReadPosts:u,paged:d,focus:p,noMorePosts:f,status:h,loadingMore:m}=l;se((()=>{c({type:"TOGGLED",payload:a}),!a||_&&!m||async function(){try{const e=new URLSearchParams(window.location.search);switch(e.set("rapid_read",!0),e.set("per_page",50),e.set("pg",d),"standard"===r&&_&&e.set("per_page",30),o){case"archive":e.set("tax_term_id",i);break;case"search":e.set("s",i)}const t=await ut(e);if(t instanceof Error)throw t;if(!t?.posts)return void c({type:"LOADING_MORE_END"});let n;if("date"===r){let e="";const r=t?.posts.reduce(((t,n,r)=>{if(!n.date)return t;0===r&&(e=n.date);const o=[...t[n.date]||[]];return o.push(n),{...t,[n.date]:o}}),{});_?(n={...u,...r,[e]:u[e]?[...u[e],...r[e]]:r[e]},c({type:"SET_FOCUS",payload:e})):n=r}"standard"===r&&(_?(n=[...u,...t.posts],c({type:"SET_FOCUS",payload:t.posts[0].link})):n=t.posts),c({type:"SET_POSTS",payload:n}),t?.totalPages===d&&c({type:"SET_NO_MORE_POSTS"})}catch(e){c({type:"SET_ERROR"})}}()}),[a,d]);return $e(g(y,null,"serverContent"===h&&g(y,null,g("div",{className:n,dangerouslySetInnerHTML:{__html:t}})),"rapidReadContent"===h&&!u&&g("p",null,(0,ot.__)("Sorry, there are no posts to be found.","tc-23")),"rapidReadContent"===h&&u&&g("div",{className:"rapid-read__articles"},"date"===r&&Object.keys(u).map((e=>g(bt,{dateGroup:e,rapidReadPosts:u,focus:p===e}))),"standard"===r&&g("ul",null,u.map((e=>g(vt,{key:e.link,post:e,focus:p===e.link})))),d<100&&!f&&g(Nt,{isExtraCrunch:!1,isLoading:m,onClick:()=>{c({type:"LOADING_MORE",payload:d+1})}})),"error"===h&&g("p",{className:"rapid-read__error"},(0,ot.__)("An error occured, please reload and try again.","tc-23")),"initialLoading"===h&&g("div",{className:"rapid-read__loading-overlay-container"},g("div",{className:n,dangerouslySetInnerHTML:{__html:t}}),g("div",{className:"rapid-read__loading-overlay"},g(kt,{isExtraCrunch:!1,reverse:!1})))),s)};Et.propTypes={serverEl:z().string,classes:z().string,displayStyle:z().string,template:z().string,templateQuery:z().string,toggled:z().bool,el:z().object},Et.defaultProps={serverEl:"",classes:"",displayStyle:"standard",template:"home",templateQuery:"",toggled:!1,el:{}};var Ct=Et;const Tt=e=>{const{rapidReadSwitchDiv:t,rapidReadEl:n,template:r,templateQuery:o,classes:i,displayStyle:a,serverEl:s}=e,[l,c]=ie(!1);return g(y,null,g(_t,{toggled:l,onToggled:c,el:t}),g(Ct,{toggled:l,serverEl:s,classes:i,displayStyle:a,template:r,templateQuery:o,el:n}))};Tt.propTypes={rapidReadSwitchDiv:z().object,rapidReadEl:z().object,template:z().string,templateQuery:z().string,classes:z().string,displayStyle:z().string,serverEl:z().string},Tt.defaultProps={rapidReadSwitchDiv:{},rapidReadEl:{},template:"home",templateQuery:"",classes:"",displayStyle:"standard",serverEl:""};function Pt(e){const{validity:t}=e;return t.valueMissing?"This field is required.":t.typeMismatch&&"email"===e.type?"Please enter an email address.":t.tooLong?`Please enter a value less than or equal to ${e.maxLength}.`:t.tooShort?`Please enter a value greater than or equal to ${e.minLength}.`:"The value you entered for this field is invalid."}var Rt=e=>{const[t,n]=ie(e),[r,o]=ie({}),[i]=ie((()=>{const t={};return Object.keys(e).forEach((e=>{t[e]={current:null}})),t})),a=_e((e=>{let t=!0;if(e.current)if(e.current.validity.valid){const{[e.current.name]:t,...n}=r;o(n)}else t=!1,o({...r,[e.current.name]:Pt(e.current)});return t}),[r]),s=_e((()=>{let e=!0;return Object.values(i).forEach((t=>{a(t)||(e=!1)})),e}),[i,a]);return{values:t,errors:r,formRefs:i,methods:{handleChange:e=>{const{name:r,value:o}=e.target;n({...t,[r]:o})},handleBlur:e=>{const{name:t}=e.target,n=i[t];n&&a(n)},handleSubmit:(e,t=null)=>{e.preventDefault();if(s()&&"function"===typeof t)t();else{const e=Object.keys(r)[0];e&&i[e].current&&i[e].current.focus()}}}}};const Ot=({newsletters:e,urls:t,currentUserEmail:n})=>{const[r]=ie(e),[o,i]=ie("No newsletters selected"),[a,s]=ie(!1),{values:{email:l},errors:c,methods:{handleChange:_,handleBlur:u,handleSubmit:d},formRefs:p}=Rt({email:n});se((()=>{r.length<=0?i("No newsletters"):1===r.length?i("1 newsletter"):i(`${r.length} newsletters`)}),[r]);const f=e=>{const t=document.getElementById("aria-live-region");t&&(t.textContent=e,t.setAttribute("aria-live","assertive"))},h=()=>{s(!0);try{ke(r,!0,l,(()=>{f(`You have subscribed to ${o}`),window.InfoPopup.create({title:"Thanks for subscribing!",description:"You should start seeing our newsletters in your mailbox real soon.",continueTitle:"Whats next?",continueSecription:"Create a free account to manage your newsletter preferences.",ctaText:"Create Your free Acount",ctaLink:window.tcFrontendData.identityUrls.register,secondaryText:"Already have an account?",secondaryCtaText:"Sign in",secondaryCtaLink:window.tcFrontendData.identityUrls.login}),s(!1)}),(e=>{e&&(f(`An error occurred while subscribing to ${o}`),window.InfoPopup.create({title:"There has been an error trying to subscribe.",description:"You can try checking your inbox for an email to manage your subscription preferences."}),s(!1))}))}catch(e){console.warn("error",e),s(!1)}},m=r.length>0&&!c.email&&""!==l;return g(y,null,g("form",{"aria-busy":a,method:"POST",action:"/",className:"newsletter-signup-single__form validated-form",onSubmit:e=>{d(e,h)},onChange:_,onBlur:u,noValidate:!0},a&&g("div",{className:"screen-reader-text","aria-live":"assertive","aria-relevant":"additions"},a&&g("p",null,"Subscribing...")),g("div",null,g("fieldset",null,g(tt,{className:"form-input--one-column",ref:p.email,type:"email",name:"email",required:!0,label:"Email address",value:l,placeholder:"Email address",error:c.email,submit:a?"Subscribing...":"Subscribe",submitClassName:!m||a?"is-disabled":"is-style-primary-green",isVisible:!0})),t.termsOfService&&t.privacyPolicy&&g("p",{className:"newsletter-signup-single__compliance caption text-grey-900"},"By submitting your email, you agree to our"," ",g("a",{href:t.termsOfService},"Terms")," and"," ",g("a",{href:t.privacyPolicy},"Privacy Notice"),"."))),g("div",{className:"d-flex justify-content-between align-items-start align-items-sm-center mb-24 flex-column flex-sm-row"},t.expandedSignup&&g("a",{className:"newsletter-signup-single__more d-flex align-items-center",href:t.expandedSignup},"All newsletters ",g(nt,null))))};Ot.propTypes={newsletters:z().arrayOf(z().shape({title:z().string,description:z().string,slug:z().string})),currentUserEmail:z().string,urls:z().shape({expandedSignup:z().string,privacyPolicy:z().string,termsOfService:z().string})},Ot.defaultProps={newsletters:[],currentUserEmail:"",urls:{expandedSignup:null,privacyPolicy:null,termsOfService:null}};var Mt=Ot;const Ht=({newsletters:e,urls:t,currentUserEmail:n})=>g(Mt,{newsletters:e,urls:t,currentUserEmail:n});W()((()=>{const e=document.querySelectorAll(".wp-block-tc23-newsletter-signup-single"),t=document.getElementById("newsletter-single-initial-data");if(t&&e?.length){const n=JSON.parse(t.innerHTML);e.forEach((e=>{$(g(Ht,{newsletters:n.newsletters,urls:n.urls,currentUserEmail:n.currentUserEmail}),e)}))}}))}()}();; !function(){const t=()=>{const t=".event-content-tabs",e=".event-content-tabs-navigation",n=".event-content-tabs-navigation__toggle",a={navigation:null,expandButton:null,body:document.querySelector("body")},o={navigation:"event-content-tabs--expanded",body:"has-expanded-navigation"},i=t=>{a.header.classList.contains(o.navigation)&&(a.navigation.contains(t.relatedTarget)||a.expandButton!==t.target||a.navigation.querySelector("a:last-of-type").focus(),a.navigation.contains(t.relatedTarget)||a.navigation.querySelector(":is(a:first-of-type, button)").focus())},d=t=>{const e=a.header.classList.contains(o.navigation);"boolean"===typeof t?(a.body.classList.toggle(o.body,t),a.header.classList.toggle(o.navigation,t),a.expandButton.setAttribute("aria-expanded",t),a.expandButton.setAttribute("aria-label",t?"Collapse navigation":"Expand navigation")):(a.body.classList.toggle(o.body,!e),a.header.classList.toggle(o.navigation,!e),a.expandButton.setAttribute("aria-expanded",!e),a.expandButton.setAttribute("aria-label",e?"Expand navigation":"Collapse navigation"))},s=t=>{a.header.classList.contains(o.navigation)&&"Escape"===t.key&&d(!1)},r=t=>{t.target===a.header&&d(!1)};return{init:()=>{a.header=document.querySelector(t),a.navigation=document.querySelector(e),a.expandButton=document.querySelector(n),a.navigation&&a.expandButton&&a.header&&(a.expandButton.addEventListener("pointerup",d),a.navigation.addEventListener("blur",i,!0),document.addEventListener("keydown",s),document.addEventListener("click",r))}}};document.addEventListener("DOMContentLoaded",(()=>{t().init()}))}();;