!function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t){e.exports=require("react")},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}},t._createSuper=function(e){var t=u();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?p(e):t}(this,n)}},t._defineProperty=i,t._extends=c,t._inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)},t._objectSpread2=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},t._slicedToArray=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},t._toConsumableArray=function(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},t._typeof=o,t._wrapNativeSuper=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(0);n(5);var a=n(8),i=n(9),c=n(10);var l,s,u=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(o),d={consentCountry:"",tos:""},f=function(){var e="undefined"==typeof window?"":window.location&&window.location.hostname||"";return/(subscribe\.|subscription\.|localhost.digitalink\.)/.test(e)},p={configUrl:{dev:"https://subscribe.digitalink.com",sandbox:"https://subs-stage.washingtonpost.com",prod:"https://www.washingtonpost.com/subscribe"},subsUrl:{dev:"https://subscribe.digitalink.com",sandbox:"https://subs-stage.washingtonpost.com",prod:"https://subscribe.washingtonpost.com"}},b=function(){try{var e=(new Date).toString();window.localStorage.setItem(e,e);var t=window.localStorage.getItem(e)===e;return window.localStorage.removeItem(e),t}catch(e){return!1}},m=function(e){return p[e][(t="undefined"==typeof window?"":window.location&&window.location.hostname||"",n="prod",/(pb-impact\.|subs-stage\.|sandbox\.|.preview.now.washingtonpost.com|localhost.washingtonpost.com)/.test(t)?n="sandbox":/dev\.washpost|localhost|digitalink\.com/.test(t)&&(n="dev"),n)]||p[e].prod;var t,n},y=function(){return!!a.getCookie("wapo_actmgmt")},_=function(e){var t;if(b()&&(t=JSON.parse(localStorage.getItem("wapo_identity"))),t){var n={privacySetting:r._objectSpread2(r._objectSpread2({},t.privacySetting),e)},o=r._objectSpread2(r._objectSpread2({},t),n);localStorage.setItem("wapo_identity",JSON.stringify(o))}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m("subsUrl"),o={appName:"SC",locationId:"SC:TermsOfService",message:"no message",state:{}};o=r._objectSpread2(r._objectSpread2({},o),t);var c=a.getCookie("wapo_login_id")||"";return c&&(o.state.wapo_login_id=c),i.JSONFetch("".concat(n,"/logging/").concat(e),{method:"POST",credentials:"include",body:JSON.stringify(o)})},g=function(e){var t=m("subsUrl"),n=null;return i.JSONFetch("".concat(t,"/user/auth-status?_v=").concat((new Date).getTime()),{method:"GET",credentials:"include"}).then(function(e){e&&"SUCCESS"===e.status&&!f()&&function(e){if(b()){var t=localStorage.getItem("wapo_identity");t=t&&JSON.parse(t)||{};var n=Object.assign(t,e),r=Date.now()+864e5;n.e=r,localStorage.setItem("wapo_identity",JSON.stringify(n))}}(e.userState),n=e}).catch(function(e){return console.error(e)}).finally(function(){return f()||_(e),n})},O=function(){var e,t=(b()&&(e=y()?JSON.parse(localStorage.getItem("wapo_identity")):{}),e?e.privacySetting||d:{});return 0===Object.keys(t).length&&y()&&f()?g().then(function(e){var t;return(null==e||null===(t=e.userState)||void 0===t?void 0:t.privacySetting)||d}):Promise.resolve(t)},v=function(e){return Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{})},E=function(e,t){var n=new RegExp(Object.keys(t).join("|"),"gi");return null==e?void 0:e.replace(n,function(e){return t[e]})};c.styleInject("input[type=checkbox].index-module_tos-checkbox__3XQ6z{-webkit-appearance:none;align-self:baseline}input[type=checkbox].index-module_tos-checkbox__3XQ6z:checked{background-color:#000}");var S=function(e){var t=e.onChange,n=e.isChecked,r=e.checkboxLabelClass,o=e.id,a=e.children,i=e.labelSizeSm,c=e.disabled,d="db gray-dark relative flex pt-xxs pb-xxs items-start ".concat(r),f=i?"16px":"18px",p=c?"not-allowed":"";return u.default.createElement("label",{htmlFor:o,className:d,"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},u.default.createElement("span",{className:"relative mr-xs",style:{height:f,width:f},"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},u.default.createElement("input",{id:o,className:"".concat("index-module_tos-checkbox__3XQ6z"," inset-shadow bg-white brad-2 relative outline-none appearance-none ma-0 ").concat(p),type:"checkbox",checked:n,onChange:t,"data-testid":o,style:{height:f,width:f},disabled:c,"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"}),u.default.createElement("svg",{className:"absolute top-50 left-0 -translate-y-50 ".concat(""," ").concat(n?"dib":"dn"),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{height:f,width:f},"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},l||(l=u.default.createElement("title",{"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},"Check")),s||(s=u.default.createElement("path",{d:"M10.052 16.245L3.265 9.46l-1.767 1.768 7.778 7.778a1.25 1.25 0 0 0 1.863-.107L23.415 3.413 21.456 1.86 10.052 16.245z",fill:"#fff",fillRule:"nonzero","data-sc-v":"4.39.0","data-sc-c":"toscheckbox"})))),a)},w=function(e){var t=e.htmlText,n=e.checkboxLabelClass,r=e.isRequired,o=e.id;return u.default.createElement("span",{style:{paddingTop:"1px"},className:"db ".concat(n||""),"data-sc-v":"4.39.0","data-sc-c":"toslabel"},u.default.createElement("span",{"data-testid":"".concat(o,"Text"),dangerouslySetInnerHTML:{__html:t},"data-sc-v":"4.39.0","data-sc-c":"toslabel"}),r&&u.default.createElement("span",{className:"red font-xxs",style:{lineHeight:"0"},"data-sc-v":"4.39.0","data-sc-c":"toslabel"},"*"))},C={tosConfig:{_:{tos:{_:{text:"I agree to The Washington Post's {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",required:!0,implicit:!1,prechecked:!1},checkout:{text:null,required:!1,implicit:!0},freeTrial:{text:"By signing up for this free trial, you agree to the {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",implicit:!1}},marketingConsent:{_:{text:null,implicit:!0,prechecked:!1}}},us:{tos:{},marketingConsent:{}},ca:{tos:{},marketingConsent:{_:{text:"The Washington Post may use my email address to provide me occasional special offers via email and through other platforms. I can opt out at any time.",implicit:!1},checkout:{prechecked:!0}}},"gb|at|be|bg|hr|cy|cz|dk|ee|fi|fr|de|gr|hu|ie|it|lv|lt|lu|mt|nl|pl|pt|ro|sk|si|es|se|is|no|ch|li":{tos:{freeTrial:{text:"By signing up for this free trial of our , you agree to the use by us and our {{THIRD_PARTY_PARTNERS}} of cookies and data gathered from your use of our sites, apps and newsletters to customize your experience, perform analytics and deliver personalized advertising on our platforms and across the Internet. You can manage the collection and use of such data here, or if you do not consent to the use of cookies and tracking on our sites and apps for personalized advertising, you may subscribe to our Premium EU Ad-Free subscription. See our {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}} for more information about the use of the data and your rights.",implicit:!1}},marketingConsent:{_:{text:"The Washington Post may use my email address to provide me occasional special offers via email and through other platforms. I can opt out at any time.",implicit:!1},checkout:{prechecked:!0}}}},tosMapObj:{"{{TERMS_OF_SERVICE}}":"Terms of Service","{{PRIVACY_POLICY}}":"Privacy Policy","{{THIRD_PARTY_PARTNERS}}":"third-party partners"}},T=function(e){var t,n=e.propTosConfig,i=e.propMcConfig,c=e.isToSNeeded,l=e.type,s=e.isConfigNeeded,u=e.overrideTosHidden,d=e.userConfigReady,f=o.useState(!1),p=r._slicedToArray(f,2),b=p[0],y=p[1],_=o.useState({isChecked:!1}),h=r._slicedToArray(_,2),g=h[0],O=h[1],S=o.useState({isChecked:!1}),w=r._slicedToArray(S,2),T=w[0],R=w[1],L=(t=a.getCookie("wp_geo")||"")&&t.split("|")[0]?t.split("|")[0].toLowerCase():null,A=function(e){var t=null==e?void 0:e.tosConfig,o=null==e?void 0:e.tosMapObj;t||(t=C.tosConfig,o=C.tosMapObj);var a=function(e){var t=e.s3Config,n=e.country,o=e.propTosConfig,a=void 0===o?{}:o,i=e.propMcConfig,c=void 0===i?{}:i,l=e.isToSNeeded,s=e.type,u=e.overrideTosHidden,d=e.s3MapObj,f=t._||{},p=r._objectSpread2(r._objectSpread2({},null==f?void 0:f.tos._),null==f?void 0:f.tos[s]),b=r._objectSpread2(r._objectSpread2({},null==f?void 0:f.marketingConsent._),null==f?void 0:f.marketingConsent[s]),m={},y={},_=Object.keys(t).find(function(e){return e.toLowerCase().indexOf(n)>-1});if(_){var h,g,O,S,w=v(a),C=r._objectSpread2(r._objectSpread2({},w._),w[_]),T=v(c),R=r._objectSpread2(r._objectSpread2({},T._),T[_]);m=r._objectSpread2(r._objectSpread2(r._objectSpread2({},null===(h=t[_])||void 0===h?void 0:h.tos._),null===(g=t[_])||void 0===g?void 0:g.tos[s]),C),y=r._objectSpread2(r._objectSpread2(r._objectSpread2({},null===(O=t[_])||void 0===O?void 0:O.marketingConsent._),null===(S=t[_])||void 0===S?void 0:S.marketingConsent[s]),R)}var L=!u&&(!l||m.prechecked);return m=r._objectSpread2(r._objectSpread2(r._objectSpread2({},p),m),{},{isChecked:!!L}),y=r._objectSpread2(r._objectSpread2(r._objectSpread2({},b),y),{},{isChecked:!!y.prechecked}),d&&(m.text=E(m.text,d),y.text=E(y.text,d)),{tos:m,mc:y}}({s3Config:t,country:L,propTosConfig:n,propMcConfig:i,isToSNeeded:c,type:l,overrideTosHidden:u,s3MapObj:o}),s=a.tos,d=a.mc;O(s),R(d),y(!0)};return o.useEffect(function(){var e;d&&(s||n||i?(e=m("configUrl"),Promise.race([fetch("".concat(e,"/static/config/tos/tos.json"),{method:"GET"}),new Promise(function(e,t){return setTimeout(function(){return t(new Error("timeout"))},8e3)})])).then(function(e){return e.json()}).then(function(e){A(e)}).catch(function(e){console.error(e),A(C)}):y(!0))},[d,s,c]),{tosConfig:g,mcConfig:T,ready:b,country:L,updateConfigValue:function(e,t){"tos"===e?O(t):"mc"===e&&R(t)}}},R=function(e){var t=e.isSubmitted,n=void 0!==t&&t,a=e.type,c=void 0===a?"account":a,l=e.email,s=e.className,d=void 0===s?"":s,p=e.checkboxLabelClass,b=void 0===p?"":p,v=e.tosConfig,E=e.mcConfig,C=e.onChange,R=void 0===C?function(){console.error("onChange function missing"),h("logFailure",{message:"onChange function missing"})}:C,L=e.tosConfigReady,A=void 0===L?function(){}:L,I=e.overrideTosHidden,P=void 0!==I&&I,j=e.labelSizeSm,N=void 0===j||j,x=e.disabled,k=void 0!==x&&x,G=o.useState({}),D=r._slicedToArray(G,2),M=D[0],W=D[1];o.useEffect(function(){var e,t,n;(e=P,t=!1,n=!1,O().then(function(r){var o=r.marketingConsent,a=void 0===o?{}:o,i=r.tos,c=void 0===i?{}:i;return t="Y"!==c.consent,void 0!==a.consent&&0==a.consent||(n=!0),{tos:c,marketingConsent:a,isConfigNeeded:e||t||n,isToSNeeded:t,isMcNeeded:n,userConfigReady:!0}})).then(function(e){W(e)})},[P]);var U=M.tos,V=void 0===U?{}:U,B=M.marketingConsent,H=void 0===B?{}:B,z=M.isConfigNeeded,Y=M.isToSNeeded,q=M.isMcNeeded,X=M.userConfigReady,F=T({propTosConfig:v,propMcConfig:E,isToSNeeded:Y,type:c,isConfigNeeded:z,overrideTosHidden:P,userConfigReady:X}),J=F.tosConfig,$=F.mcConfig,Q=F.ready,Z=F.country,K=F.updateConfigValue;o.useEffect(function(){Q&&((J.required||$.required)&&z||R(!0),A())},[Q]),o.useEffect(function(){J.required&&$.required?R(J.isChecked&&$.isChecked):J.required?R(J.isChecked):$.required&&R($.isChecked)},[J.isChecked,$.isChecked]);o.useEffect(function(){n&&function(){var e=V.consent,t=V.consentCountry,n=H.consent,r=H.consentCountry,o=$.isChecked?0:1,a=$.implicit?-1:o,c=Z,s=J.isChecked||!Y||J.implicit?"Y":"N";10==n?(a=a<0?1:a,c=Z):(void 0!==n&&!q||n>-1&&a<0||n==a)&&(a=n,c=r),function(e,t){t&&(e.email=t);var n=m("subsUrl"),r=JSON.stringify(e);i.JSONFetch("".concat(n,"/user/save-identity-preferences"),{method:"POST",credentials:"include",body:r}).then(function(t){if("SUCCESS"===t.status&&y()){var n=JSON.parse(localStorage.getItem("wapo_identity"));n&&n.signedIn?f()||_(e.privacySetting):g(e.privacySetting)}}).catch(function(e){console.error(e),h("logFailure",{message:"SIP failed",locationId:"SC:TermsOfService:api:/user/save-identity-preferences",state:{status:"failure",request:r}})})}({privacySetting:{tos:{consent:"".concat(s),consentCountry:"Y"!==e||Y||P?Z:t},marketingConsent:{consent:"".concat(a),consentCountry:c}}},l)}()},[n]);var ee=N?"font-xxxxs":"font-xxxs",te=u.default.createElement(w,{htmlText:J.text,isRequired:J.required,id:"tosCheckbox",checkboxLabelClass:J.implicit?"".concat(ee," ").concat(b," pt-xxs pb-xxs gray-dark"):ee}),ne=u.default.createElement(w,{htmlText:$.text,isRequired:$.required,id:"mcCheckbox",checkboxLabelClass:$.implicit?"gray-dark ".concat(ee," ").concat(b):ee}),re=Y||P;return u.default.createElement("div",{className:"db mt-xs mb-xs ".concat(d),"data-sc-v":"4.39.0","data-sc-c":"termsofservice"},re&&J.text&&!J.implicit&&u.default.createElement(S,{htmlText:J.text,onChange:function(){return K("tos",r._objectSpread2(r._objectSpread2({},J),{},{isChecked:!J.isChecked}))},isChecked:J.isChecked,checkboxLabelClass:b,isRequired:J.required,id:"tosCheckbox",labelSizeSm:N,disabled:k},te),re&&J.text&&J.implicit&&te,q&&$.text&&!$.implicit&&u.default.createElement(S,{htmlText:$.text,onChange:function(){return K("mc",r._objectSpread2(r._objectSpread2({},$),{},{isChecked:!$.isChecked}))},isChecked:$.isChecked,checkboxLabelClass:b,isRequired:$.required,id:"mcCheckbox",labelSizeSm:N,disabled:k},ne),q&&$.text&&$.implicit&&ne)};R.defaultProps={labelSizeSm:!0},t.TermsOfService=R},function(e,t){e.exports=require("react-dom")},function(e,t,n){e.exports=n(6)()},function(e,t,n){"use strict";var r=n(7);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array: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:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.getCookie=function(e){if("undefined"!=typeof window){var t=document.cookie.match("(^|;) ?".concat(e,"=([^;]*)(;|$)"));return t?t[2]:null}},t.setCookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];document.cookie="".concat(e,"=").concat(t,";")+(n&&"domain=.".concat(window.origin.split(".").slice(-2).join("."),"; path=/;"))}},function(e,t,n){"use strict";var r=n(2),o=function(e){return new Promise(function(t){return e.json().then(function(n){return t({status:e.status,ok:e.ok,json:n})})})},a=function(e){if(!e.ok)throw e.json||e;return e.json},i={Accept:"application/json","Content-Type":"application/json"};t.JSONFetch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{method:"GET"},n=t;return n.headers=r._objectSpread2(r._objectSpread2({},t.headers),i),fetch(e,n).then(o).then(a)}},function(e,t,n){"use strict";t.styleInject=function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=o.a.createContext({}),i=n(1),c=n.n(i);function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);tSign in',HAS_PROMO_LABEL:!1,PROMO_LABEL_PRIMARY:"LIMITED TIME OFFER",PROMO_LABEL_SECONDARY:"2 DAYS ONLY",PROMO_LABEL_PRIMARY_COLOR:"Offblack",PROMO_LABEL_SECONDARY_COLOR:"Offblack",PROMO_LABEL_HAS_LOGO:!1,HAS_SPONSOR_LABEL:!1,REGWALL_V2_SPONSOR_TEXT:"Sponsored by",REGWALL_V2_LOGO_URL:"",REGWALL_V2_HEADER:"Read more when you register",REGWALL_V2_HEADER_COLOR:"Offblack",REGWALL_V2_SUPPORTING_TEXT:"No credit card. No obligation.",REGWALL_V2_SUPPORTING_TEXT_COLOR:"Offblack",REGWALL_V2_PRIMARY_CTA_BUTTON_TEXT:"Start reading",REGWALL_V2_PRIMARY_CTA_BUTTON_COLOR:"Blue",HAS_SECONDARY_CTA:!0,REGWALL_V2_SECONDARY_CTA_TEXT:'Or, subscribe for $10 $4 every 4 weeks',REGWALL_V2_SECONDARY_CTA_TEXT_COLOR:"Blue",REGWALL_V2_BACKGROUND_COLOR:"White",REGWALL_V2_EXISTING_ACCOUNT_HEADER:"It looks like you already have an account",REGWALL_V2_EXISTING_ACCOUNT_SUPPORTING_TEXT_LEFT:"Check your email at",REGWALL_V2_EXISTING_ACCOUNT_SUPPORTING_TEXT_RIGHT:"for a link to sign in securely, without a password",HAS_EXISTING_EMAIL:!0,HAS_EXISTING_CTA:!0,HAS_OR:!0,REGWALL_V2_REGISTRATION_SUCCESS_HEADER:"You're all set to start reading",REGWALL_V2_REGISTRATION_SUCCESS_SUPPORTING_TEXT_LEFT:"Check your email at",REGWALL_V2_REGISTRATION_SUCCESS_SUPPORTING_TEXT_RIGHT:"for a link to set a password.",HAS_CONFIRMATION_EMAIL:!0,HAS_SUCCESS_CTA:!0,REGWALL_V2_REGISTRATION_SUCCESS_CTA_BUTTON_TEXT:"Got it",REGWALL_V2_REGISTRATION_SUCCESS_CTA_BUTTON_COLOR:"Blue",REGWALL_PRIMARY_CTA_PROMO_CODE:"o23_hrw_ft_45d_c_21",INCLUDE_LOGGING:!0,REGION:"US",NOTE:"",GTM_LOADER:"gtm",PRICING_STRATEGY:"Monthly",NEWSLETTER_ID:"0FDBE75852D4F003E050007F01000F39",NEWSLETTER_NAME:"Must Reads",PAGE_RELOAD_AFTER_SIGN_UP:!0,TRIAL_TYPE:"articles",SCREEN_STATE:"Default",REGWALL_TID:"wa_hardregwall_c",PROMO_ID:"57840",ENTERPRISE_CLIENT_ID:"",SUBSCRIPTION_LOCATION:"ONSITE_REGWALL_FREETRIAL",SUBSCRIPTION_PRICING:"0121_free_3c",SUBSCRIPTION_EXPERIENCE:"2021_HARDREG_10PCTHOLDOUT",start_location:"REGWALL_3_ARTICLE_FREE_10PCTHOLDOUT",start_method:"REGWALL_HARD",DEPLOYMENT_TOKEN:1629134648478,ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",ACQ_BASE_URL:"https://subscribe.washingtonpost.com",REGWALL_SECONDARY_CTA_PROMO_CODE:"o23_hrw_ft_45d_c_0621",SECONDARY_CTA_SUBSCRIPTION_PRICING:"0621",FREE_TRIAL_SUBS_TYPE:"All-Access Digital subscription",PAYWALL_TEMPLATE_ID:"regwall-us-68613f76a36"},VERSION:"2.12.3"};function x(e){var t=e.wallState,n=e.children;return Object(r.useEffect)(function(){try{if("undefined"!=typeof window&&"undefined"!=typeof performance&&performance.getEntriesByName("SUBS - wall invoked").length&&(performance.mark("SUBS - wall ready"),performance.measure("SUBS - wall time to display","SUBS - wall invoked","SUBS - wall ready"),performance.measure("renderCompleted",void 0,"SUBS - wall ready"),performance.measure("procStarted",void 0,"SUBS - wall invoked"),window.BOOMR&&"function"==typeof window.BOOMR.sendTimer)){var e={};e.compCompleted=performance.getEntriesByName("SUBS - wall time to display")[0].duration,e.renderCompleted=performance.getEntriesByName("renderCompleted")[0].duration,e.procStarted=performance.getEntriesByName("procStarted")[0].duration,window.BOOMR.sendTimers(e)}}catch(e){}},[]),o.a.createElement(a.Provider,{value:t},n,o.a.createElement(j,null),o.a.createElement("span",{id:"wall-templates-version",style:{display:"none"}},N.VERSION))}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t$/,"").trim())))}}},K=["children","color","href","className","style","onClick","rounded","contentId","buttonStyle","innerHTML","isLoading"];function ee(){return(ee=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae=function(e){var t=e.children,n=e.color,r=void 0===n?"WaPo blue":n,a=e.href,i=e.className,l=e.style,s=e.onClick,u=e.rounded,d=e.contentId,f=void 0===d?"":d,p=e.buttonStyle,b=void 0===p?"Button":p,m=e.innerHTML,y=void 0===m?"Subscribe":m,_=e.isLoading,h=void 0!==_&&_,g=oe(e,K),O=Z(f),v=O.onChange,E=O.isContentEditable,S="",w="Link"===b||"Arrow"===b;S=w||"White"!==r&&"Black"!==r&&"WaPo blue"!==r?w?c()({"subs-theme":"White"!==r&&"WaPo blue"!==r&&"Black"!==r},"".concat([C[r]]," bold")):"btn subs-theme bg-".concat(C[r]):"btn btn-".concat(C[r]),y=h?" ".concat(y):y;var T=t||o.a.createElement("span",{dangerouslySetInnerHTML:{__html:y},id:f,contentEditable:!!f&&E}),R=ne({role:"button",href:a,style:ne(ne({whiteSpace:w?"normal":"nowrap",boxSizing:"border-box",borderRadius:u?"31px":0},l),{},{borderColor:"White"!==r?"unset":void 0,padding:w?"":null==l?void 0:l.padding}),onBlur:v,onClick:function(e){f&&!E||!f?s&&s(e):E&&e.preventDefault()},className:c()(i,"ma-0 pointer",{dib:!w},S),children:o.a.createElement(o.a.Fragment,null,T,"Arrow"===b?o.a.createElement(F,{angle:0,size:16,color:(null==l?void 0:l.color)||r,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},g),L="".concat(f,"_CTA_WRAPPER");return a||E&&f||w?o.a.createElement("a",ee({id:L},R)):o.a.createElement("button",ee({id:L},R))};function ie(){return(ie=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function he(e){var t=e.id,n=e.label,a=e.style,i=e.value,l=e.onChange,s=e.className,u=e.validators,d=e.inputStyle,f=e.fieldButton,p=e.errorMessage,b=_e(e,de),m=ye(Object(r.useState)(!1),2),y=m[0],_=m[1],h=ye(Object(r.useState)([]),2),g=h[0],O=h[1],v=Object(r.useRef)(null),E=function(){return(!!g.length||p)&&o.a.createElement("span",{className:"red absolute",style:{top:"-20px"}},g[0]||p)||null};return o.a.createElement("div",{className:"relative flex",style:be({},a)},o.a.createElement(E,null),o.a.createElement("input",fe({style:be({transition:"padding 200ms linear 200ms",borderTopRightRadius:0,borderBottomRightRadius:0,border:p||null!=g&&g.length?"solid 1px #d8070e":""},d),className:c()(s,"pl-sm","pr-sm","font--subhead","font-xxs","h-md","light","brad-2","b","form-input-valid","bg-white","gray-darkest","flex-grow-1","ma-0","border-box",{"pt-sm":y||i}),value:i,onChange:function(e){var t;l&&l(e),null==v||null===(t=v.current)||void 0===t||t.setCustomValidity("")},onFocus:function(){return _(!0)},onBlur:function(){_(!1),Array.isArray(u)&&O(u.map(function(e){var t,n=e(i);return null==v||null===(t=v.current)||void 0===t||t.setCustomValidity(n||""),n}).filter(function(e){return e}))},id:t,ref:v},b)),o.a.createElement("label",{htmlFor:t,className:"absolute",style:{transition:"all 200ms ease-in-out 0s",transform:i||y?"scale(0.7) translate3D(25px, -130%, 0)":"translate3D(16px, -50%, 0)",transformOrigin:"top left",top:"50%",color:"#5a5a5a"}},n),f)}var ge=function(e){if(!(null!=e&&e.trim()&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)||!e))return"Invalid email address"},Oe=function(){var e,t=(null===(e=window)||void 0===e?void 0:e.location.href)||"",n="prod";return/(sandbox\.|\.preview\.now\.washingtonpost\.com|local(host)?\.washingtonpost\.com)/.test(t)?n="sandbox":/dev|localhost/.test(t)&&(n="dev"),n};function ve(){return{prod:"https://www.washingtonpost.com/subscribe",sandbox:"https://subs-stage.washingtonpost.com",dev:"https://subscribe.digitalink.com"}[Oe()]}var Ee=function(){var e=Se(),t=document.createElement("a");return t.href=e,t.pathname||""};function Se(){var e,t;return(null===(e=window)||void 0===e?void 0:null===(t=e.wpMetaData)||void 0===t?void 0:t.canonical_url)||"".concat(location.protocol,"//").concat(location.host).concat(location.pathname)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t=0)){Me.push(e);var t=document.createElement("script");t.src=e,t.async=!0;var n=function(){a({loaded:!0,error:!1})},r=function(){var n=Me.indexOf(e);n>=0&&Me.splice(n,1),t.remove(),a({loaded:!0,error:!0})};return t.addEventListener("load",n),t.addEventListener("error",r),document.body.appendChild(t),function(){t.removeEventListener("load",n),t.removeEventListener("error",r)}}a({loaded:!0,error:!1})},[e]),n.loaded,n.error),o.a.createElement("div",{id:"recaptcha_wall",className:"grecaptcha"})});function Ue(){return(Ue=Object.assign||function(e){for(var t=1;t for a link to sign in securely, without a password.")}),t.HAS_EXISTING_EMAIL?o.a.createElement("b",null," ",n," "):null,t.HAS_EXISTING_EMAIL?o.a.createElement(ce,{contentId:"REGWALL_V2_EXISTING_ACCOUNT_SUPPORTING_TEXT_RIGHT",innerHTML:null==t?void 0:t.REGWALL_V2_EXISTING_ACCOUNT_SUPPORTING_TEXT_RIGHT}):null),t.HAS_OR?o.a.createElement("div",{style:{color:"#666"}},o.a.createElement(Ze,{display:"inline-block",color:"#d5d5d5",width:"120px",margin:"0px 10px 4px 0px"}),"or",o.a.createElement(Ze,{display:"inline-block",color:"#d5d5d5",width:"120px",margin:"0px 0px 4px 10px"})):null,t.HAS_EXISTING_CTA?o.a.createElement(ae,{type:"submit",color:null==t?void 0:t.REGWALL_V2_PRIMARY_CTA_BUTTON_COLOR,className:"btn db din-ns mt-sm mb-sm",rounded:!0,style:{padding:"7px 32px"},innerHTML:"Sign in",contentId:"REGWALL_V2_PRIMARY_CTA_BUTTON_COLOR",href:Le(t)}):null,o.a.createElement(ae,{buttonStyle:"Link",className:c()("underline","gray-dark","db","font-light"),style:{fontSize:"14px"},innerHTML:"Back",onClick:function(){l("Default"),s(6)}})))};function tt(){return(tt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]).some(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ft.has(e.substr(0,5))}(e)})}function ct(){var e=document.cookie.match(/wp_geo=(.*?)(;|$)/),t=Array.isArray(e)?e[1]:"",n=t.split("|"),r={country_code:"",state:"",DMA:"",ZIP:""};return t&&(r.country_code=n[0]||"",r.state=n[1]||"",r.DMA=n[2]||"",r.ZIP=n[3]||""),r}function lt(){var e,t=ct(),n=(null==t?void 0:null===(e=t.ZIP)||void 0===e?void 0:e.split("-"))||[];return"US"===t.country_code?n.filter(function(e){return e}):[]}var st=["1","1|1","1|0"],ut=function(){return at("wp_gdpr")},dt=function(){return st.includes(ut())&&"1"===at("wp_sub_gdpr")};var ft=new Set(["20001","20002","20003","20004","20005","20006","20007","20008","20009","20010","20011","20012","20015","20016","20017","20018","20019","20020","20024","20032","20036","20037","20105","20106","20109","20110","20111","20112","20115","20117","20119","20120","20121","20124","20129","20132","20135","20136","20137","20141","20143","20144","20147","20148","20151","20152","20155","20158","20164","20165","20166","20169","20170","20171","20175","20176","20180","20181","20184","20186","20187","20190","20191","20194","20197","20198","20373","20601","20602","20603","20606","20607","20608","20609","20610","20611","20612","20613","20615","20616","20617","20618","20619","20620","20621","20622","20623","20624","20625","20626","20627","20628","20629","20630","20632","20634","20635","20636","20637","20639","20640","20643","20645","20646","20650","20653","20656","20657","20658","20659","20660","20661","20662","20664","20667","20670","20674","20675","20676","20677","20678","20680","20682","20684","20685","20686","20687","20688","20689","20690","20692","20693","20695","20701","20705","20706","20707","20708","20710","20711","20712","20714","20715","20716","20720","20721","20722","20723","20724","20732","20733","20735","20736","20737","20740","20742","20743","20744","20745","20746","20747","20748","20751","20754","20755","20758","20759","20762","20763","20764","20769","20770","20772","20774","20776","20777","20778","20779","20781","20782","20783","20784","20785","20794","20814","20815","20816","20817","20818","20832","20833","20837","20841","20842","20850","20851","20852","20853","20854","20855","20860","20861","20866","20868","20871","20872","20874","20876","20877","20878","20879","20882","20886","20895","20896","20901","20902","20903","20904","20905","20906","20910","20912","21012","21029","21032","21035","21036","21037","21042","21043","21044","21045","21046","21048","21054","21075","21076","21108","21113","21114","21140","21144","21146","21157","21158","21163","21401","21402","21403","21405","21601","21613","21619","21623","21629","21631","21632","21638","21643","21655","21658","21662","21663","21666","21671","21701","21702","21703","21704","21710","21713","21716","21717","21718","21719","21727","21737","21738","21740","21742","21743","21746","21754","21755","21757","21758","21762","21765","21767","21769","21770","21771","21773","21774","21777","21781","21783","21784","21787","21788","21793","21794","21795","21797","21798","21801","21802","21803","21804","21811","21842","21851","21853","21863","22003","22015","22021","22024","22026","22027","22030","22031","22032","22033","22039","22041","22042","22043","22044","22046","22060","22066","22079","22101","22102","22110","22111","22124","22134","22150","22151","22152","22153","22172","22180","22181","22182","22191","22192","22193","22201","22202","22203","22204","22205","22206","22207","22209","22211","22213","22301","22302","22303","22304","22305","22306","22307","22308","22309","22310","22311","22312","22314","22315","22405","22406","22407","22408","22432","22435","22441","22442","22443","22448","22469","22473","22480","22482","22485","22488","22507","22508","22511","22520","22524","22539","22542","22554","22556","22560","22572","22576","22578","22579","22601","22602","22603","22604","22611","22620","22624","22625","22626","22627","22630","22637","22641","22644","22645","22650","22654","22655","22656","22657","22660","22663","22664","22701","22712","22713","22716","22724","22727","22728","22734","22736","22740","22742","22747","22801","22802","22810","22812","22815","22821","22824","22827","22830","22831","22834","22835","22842","22844","22846","22849","22850","22851","22853","22901","22902","22903","22904","22911","22923","22932","22936","22937","22939","22940","22942","22946","22947","22949","22958","22959","22960","22963","22968","22973","22974","22980","22989","23093","23168","23185","23186","23188","23336","24073","24401","24402","24477","24482","24486","24590"]);function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.includes("100")||e.includes("110")||e.includes("120")?"wall_retargeting":"wall_standard"}function _t(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.replace(/\/|^wp - /g,"").replace(/,/g,";").trim()}).join(";").toLocaleLowerCase()}function ht(e,t){var n,r,o,a,i;return{label:"o1",browserUserAgentHit:navigator.userAgent,promoCode:"o1",acqEntranceType:yt(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=it(lt()),i=ct().country_code,a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!dt()?"I":dt()?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:Ee(),arcId:t||"",contentTags:_t(null===(r=window)||void 0===r?void 0:null===(o=r.wpMetaData)||void 0===o?void 0:o.ct_tags),actionCode:"".concat(null==e?void 0:e.action)}}var gt={US:"USD",Canada:"CAD",UK:"GBP",Australia:"AUD",India:"INR","International EEA":"EUR","International non-EEA":"USD"};function Ot(){return(Ot=Object.assign||function(e){for(var t=1;t to continue reading.")})),o.a.createElement(ae,{type:"submit",color:null==t?void 0:t.REGWALL_V2_PRIMARY_CTA_BUTTON_COLOR,className:"btn db din-ns mt-sm mb-sm",rounded:!0,style:{padding:"7px 32px"},innerHTML:"Sign in",id:"regwall-subscriber-account-cta",href:Le(t)})))};function Et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};k(bt(bt(bt({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent},ht(I,j)),A),e))},addMarketingEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"paywall";k({event:"acq_marketing_".concat(e),category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,t){var n=bt(bt(bt({},ht(I,j)),A),t),r=encodeURIComponent(Se()),o={promo:n.promoCode,arcId:n.arcId,acqEntType:n.acqEntranceType,destination:r,next_url:r,p:n.subscription_pricing,s_l:n.subscription_location,e:n.subscription_experience},a=new URL(e);return Object.keys(o).forEach(function(e){o[e]&&a.searchParams.append(e,o[e])}),a.toString()}}),w=S.addEventWithArticleData,C=S.addGAParamsToURL,T=S.addMarketingEvent,R={subscription_pricing:d,subscription_location:f,subscription_experience:p,promoCode:b};var L,A,I,j,k;(null!==(t=l)&&void 0!==t&&t.TRIAL_TYPE||null!==(n=l)&&void 0!==n&&n.ENTERPRISE_CLIENT_ID)&&(R.promoCode=m||R.promoCode,R.subscription_pricing=y||R.subscription_pricing);var G=C({prod:"https://subscribe.washingtonpost.com/acquisition?",sandbox:"https://subs-stage.washingtonpost.com/acquisition?",dev:"https://subscribe.digitalink.com/acquisition?"}[Oe()],R),D=Et(Object(r.useState)(null===(a=l)||void 0===a?void 0:a.SCREEN_STATE),2),M=D[0],W=D[1],U=Et(Object(r.useState)("newemail@gmail.com"),2),V=U[0],B=U[1],H=Et(Object(r.useState)(0),2),z=H[0],Y=H[1],q=Object(r.useCallback)(function(){switch(M){case"Existing Account":return o.a.createElement(et,{wallConfig:l,registeredEmail:V,addEventWithArticleData:w,setView:W,setResizeCounter:Y});case"Confirmation":return o.a.createElement(ot,{wallConfig:l,registeredEmail:V,addEventWithArticleData:w});case"Subscriber":return o.a.createElement(vt,{wallConfig:l,registeredEmail:V,addEventWithArticleData:w});default:return o.a.createElement(Qe,{wallConfig:l,setRegisteredEmail:B,setView:W,setResizeCounter:Y,acqURL:G})}},[l,M,V]);return Object(r.useEffect)(function(){w({event:"acquisition-regwall",category:"acquisition",action:"acquisition-regwall"}),setTimeout(function(){T("regwall")},0)},[]),Object(r.useEffect)(function(){var e;W(null===(e=l)||void 0===e?void 0:e.SCREEN_STATE),Y(z+1)},[l]),o.a.createElement(x,e,o.a.createElement(P,{blockArticle:!0,id:l.PAYWALL_TEMPLATE_ID,backgroundColor:l.REGWALL_V2_BACKGROUND_COLOR||"White",triggerResize:z,templateId:l.TEMPLATE_ID},q()))}}])); //# sourceURL=browsertools://www.washingtonpost.com/subscribe/remote-component1629134655300.js