!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=7)}([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;tt in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(s)for(var n of s(t))f.call(t,n)&&p(e,n,t[n]);return e},b=(e,t)=>a(e,l(t)),g=e=>o(e,"__esModule",{value:!0}),h=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of c(t))!d.call(e,a)&&(n||"default"!==a)&&o(e,a,{get:()=>t[a],enumerable:!(r=i(t,a))||r.enumerable});return e},y=(e,t)=>h(g(o(null!=e?r(u(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),O=(e=>(t,n)=>e&&e.get(t)||(n=h(g({}),t,1),e&&e.set(t,n),n))("undefined"!=typeof WeakMap?new WeakMap:0),v={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(v,{TermsOfService:()=>$,useTermsOfServiceData:()=>X});var E=y(n(0)),w=(n(2),e=>{if(typeof window>"u")return;let t=document.cookie.match(`(^|;) ?${e}=([^;]*)(;|$)`);return t?t[2]:null}),S=e=>new Promise(t=>e.json().then(n=>t({status:e.status,ok:e.ok,json:n}))),_=e=>{if(!e.ok)throw e.json||e;return e.json},C={Accept:"application/json","Content-Type":"application/json"},T=(e,t={method:"GET"})=>{let n=t;return n.headers=m(m({},t.headers),C),fetch(e,n).then(S).then(_)},I="wapo_identity",A={consentCountry:"",tos:""},R=()=>{let e=typeof window>"u"?"":window.location&&window.location.hostname||"",t="prod";return/(pb-impact\.|subs-stage\.|sandbox\.|.preview.now.washingtonpost.com|localhost.washingtonpost.com)/.test(e)?t="sandbox":/dev\.washpost|localhost|digitalink\.com/.test(e)&&(t="dev"),t},P=()=>{let e=typeof window>"u"?"":window.location&&window.location.hostname||"";return/(subscribe\.|subscription\.|subs-stage\.|local.digitalink\.)/.test(e)},L={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"}},j=()=>{try{let e=(new Date).toString();window.localStorage.setItem(e,e);let t=window.localStorage.getItem(e)===e;return window.localStorage.removeItem(e),t}catch{return!1}},N=e=>L[e][R()]||L[e].prod,x=()=>{let e=w("wapo_actmgmt");return!(!e||"undefined"===e)},k=e=>{let t;if(j()&&(t=JSON.parse(localStorage.getItem(I))),t){let n={privacySetting:m(m({},t.privacySetting),e)},r=m(m({},t),n);localStorage.setItem(I,JSON.stringify(r))}},D=(e,t={})=>{let n=N("subsUrl"),r={appName:"SC",locationId:"SC:TermsOfService",message:"no message",state:{}};r=m(m({},r),t);let o=w("wapo_login_id")||"";return o&&(r.state.wapo_login_id=o),T(`${n}/logging/${e}`,{method:"POST",credentials:"include",body:JSON.stringify(r)})},M=(e,t)=>{let n=N("subsUrl"),r=null;return T(`${n}/user/auth-status?_v=${(new Date).getTime()}`,{method:"GET",credentials:"include"}).then(e=>{e&&"SUCCESS"===e.status&&!P()&&(e=>{if(j()){let t=localStorage.getItem("wapo_identity");t=t&&JSON.parse(t)||{};let n=Object.assign(t,e),r=Date.now()+864e5;n.e=r,localStorage.setItem("wapo_identity",JSON.stringify(n))}})(e.userState),r=e}).catch(e=>console.error(e)).finally(()=>(P()||k(e),t&&t(),r))},U=()=>{let e=(()=>{let e;return j()&&(e=x()?JSON.parse(localStorage.getItem(I)):{}),e?e.privacySetting||A:{}})();return 0===Object.keys(e).length&&x()&&P()?M().then(e=>{var t;return(null==e||null===(t=e.userState)||void 0===t?void 0:t.privacySetting)||A}):Promise.resolve(e)},G=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}),H=(e,t)=>{let n=new RegExp(Object.keys(t).join("|"),"gi");return null==e?void 0:e.replace(n,e=>t[e])},B=y(n(0)),F=(n(2),({onChange:e,isChecked:t,checkboxLabelClass:n,checkboxLabelStyle:r,id:o,children:a,labelSizeSm:i,disabled:l})=>{let c=`db gray-dark relative flex pt-xxs pb-xxs items-start ${n}`,s=i?"16px":"18px",u=l?"not-allowed":"";return B.default.createElement("label",{htmlFor:o,className:c},B.default.createElement("span",{className:"relative mr-xs",style:b(m({},r),{height:s,width:s})},B.default.createElement("input",{id:o,className:`tos-checkbox b bc-gray-light bg-white brad-2 relative outline-none appearance-none ma-0 ${u}`,type:"checkbox",checked:t,onChange:e,"data-testid":o,style:{height:s,width:s},disabled:l}),B.default.createElement("svg",{className:`absolute top-50 left-0 -translate-y-50 ${t?"dib":"dn"}`,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{height:s,width:s}},B.default.createElement("title",null,"Check"),B.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"}))),a)}),z=y(n(0)),W=(n(2),({htmlText:e,checkboxLabelClass:t,checkboxLabelStyle:n,isRequired:r,id:o,asteriskColor:a="red"})=>z.default.createElement("span",{style:b(m({},n),{paddingTop:"1px"}),className:`db ${t||""}`},z.default.createElement("span",{"data-testid":`${o}Text`,dangerouslySetInnerHTML:{__html:e}}),r&&z.default.createElement("span",{className:`font-xxs ${a}`,style:{lineHeight:"0"}},"*"))),q=n(0),Y={tosConfig:{_:{tos:{_:{text:"I agree to The Washington Post's {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",required:!0,implicit:!1,prechecked:!1},checkout:{text:"By creating your account, you agree to The Washington Post's {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",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:{required:!1}}},"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 our {{TERMS_OF_SERVICE}} and understand we process data as set forth in our {{PRIVACY_POLICY}}.",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:{required:!1}}}},tosMapObj:{"{{TERMS_OF_SERVICE}}":"Terms of Service","{{PRIVACY_POLICY}}":"Privacy Policy","{{THIRD_PARTY_PARTNERS}}":"third-party partners"}},V=({propTosConfig:e,propMcConfig:t,isToSNeeded:n,type:r,isConfigNeeded:o,overrideTosHidden:a,userConfigReady:i})=>{let[l,c]=(0,q.useState)(!1),[s,u]=(0,q.useState)({isChecked:!1}),[d,f]=(0,q.useState)({isChecked:!1}),[p,g]=(0,q.useState)(null),h=(()=>{let e=R(),t=w("wp_geo")||"";return t&&t.split("|")[0]?t.split("|")[0].toLowerCase():t||"prod"===e?null:"us"})(),y=o=>{let i=null==o?void 0:o.tosConfig,l=null==o?void 0:o.tosMapObj;i||(i=Y.tosConfig,l=Y.tosMapObj);let{tos:s,mc:d}=(({s3Config:e,country:t,propTosConfig:n={},propMcConfig:r={},isToSNeeded:o,type:a,overrideTosHidden:i,s3MapObj:l})=>{let c=e._||{},s=m(m({},null==c?void 0:c.tos._),null==c?void 0:c.tos[a]),u=m(m({},null==c?void 0:c.marketingConsent._),null==c?void 0:c.marketingConsent[a]),d={},f={},p=Object.keys(e).find(e=>e.toLowerCase().indexOf(t)>-1);if(p){var g,h,y,O;let t=G(n),o=m(m({},t._),t[p]),i=G(r),l=m(m({},i._),i[p]);d=m(m(m({},null===(g=e[p])||void 0===g?void 0:g.tos._),null===(h=e[p])||void 0===h?void 0:h.tos[a]),o),f=m(m(m({},null===(y=e[p])||void 0===y?void 0:y.marketingConsent._),null===(O=e[p])||void 0===O?void 0:O.marketingConsent[a]),l)}let v=!i&&(!o||d.prechecked);return d=b(m(m({},s),d),{isChecked:!!v}),f=b(m(m({},u),f),{isChecked:!!f.prechecked}),l&&(d.text=H(d.text,l),f.text=H(f.text,l)),{tos:d,mc:f}})({s3Config:i,country:h,propTosConfig:e,propMcConfig:t,isToSNeeded:n,type:r,overrideTosHidden:a,s3MapObj:l});u(s),f(d),c(!0)};return(0,q.useEffect)(()=>{i&&(o||e||t?p?y(p):(()=>{let e=P()?"subsUrl":"configUrl",t=N(e);return Promise.race([fetch(`${t}/static/config/tos/tos.json`,{method:"GET"}),new Promise((e,t)=>setTimeout(()=>t(new Error("timeout")),8e3))])})().then(e=>e.json()).then(e=>{g(e),y(e)}).catch(e=>{console.error(e),y(Y)}):c(!0))},[i,o,n]),{tosConfig:s,mcConfig:d,ready:l,country:h,updateConfigValue:(e,t)=>{"tos"===e?u(t):"mc"===e&&f(t)}}},X=e=>{let{type:t="account",tosConfig:n,mcConfig:r,overrideTosHidden:o=!1,refreshKey:a=0}=e||{},[i,l]=(0,E.useState)({}),[c,s]=(0,E.useState)({isHidden:!1,isRequired:!1});(0,E.useEffect)(()=>{let e={},t=()=>{(e=>{let t=!1,n=!1,r=!1;return U().then(o=>{let{marketingConsent:a={},tos:i={}}=o;return n="Y"!==i.consent,(void 0===a.consent||0!=a.consent)&&(r=!0),{tos:i,marketingConsent:a,isConfigNeeded:t=e||n||r,isToSNeeded:n,isMcNeeded:r,userConfigReady:!0}})})(o).then(t=>{e=t,l(t)})},n=e=>{e&&t()},r=x();window.registerPwapiConsumer&&r?window.registerAuthConsumer?window.registerAuthConsumer(n):window.registerAuthConsumer||(window.authConsumers=window.authConsumers||[],window.authConsumers.push(n)):t(),setTimeout(()=>{r&&!e.userConfigReady&&t()},3e3)},[o,a]);let{isConfigNeeded:u,isToSNeeded:d,isMcNeeded:f,userConfigReady:p}=i,{tosConfig:m,mcConfig:b,ready:g,country:h,updateConfigValue:y}=V({propTosConfig:n,propMcConfig:r,isToSNeeded:d,type:t,isConfigNeeded:u,overrideTosHidden:o,userConfigReady:p});return(0,E.useEffect)(()=>{if(g){let e=(!d||m.implicit)&&!o&&(!f||b.implicit);s({isHidden:e,isRequired:!(!d||!m.required)||!(!f||!b.required)})}},[g,i]),{ready:g,isHidden:c.isHidden,isRequired:c.isRequired,storedUserConfig:i,tosConfig:m,mcConfig:b,country:h,updateConfigValue:y}},$=e=>{let{isSubmitted:t=!1,email:n,className:r="",checkboxLabelClass:o="",checkboxLabelStyle:a={},onChange:i=(()=>{console.error("onChange function missing"),D("logFailure",{message:"onChange function missing"})}),tosConfigReady:l=(()=>{}),overrideTosHidden:c=!1,labelSizeSm:s=!0,disabled:u=!1,asteriskColor:d="red",pageLocation:f=""}=e,{storedUserConfig:p,tosConfig:g,mcConfig:h,ready:y,country:O,updateConfigValue:v}=X(e),{tos:w={},marketingConsent:S={},isConfigNeeded:_,isToSNeeded:C,isMcNeeded:A}=p,R=(!C||g.implicit)&&!c&&(!A||h.implicit);(0,E.useEffect)(()=>{y&&((!g.required&&!h.required||!_)&&i(!0),l({isHidden:R,tosConfig:g,mcConfig:h}))},[y]),(0,E.useEffect)(()=>{g.required&&h.required?i(g.isChecked&&h.isChecked):g.required?i(g.isChecked):h.required&&i(h.isChecked)},[g.isChecked,h.isChecked]);let L=()=>{if(!O)return console.error("SIP failed - wp_geo missing"),D("logFailure",{message:"wp_geo missing"}),void l({isHidden:R,isProcessed:!0,isSIPFailed:!0});let{consent:e,consentCountry:t}=w,{consent:r,consentCountry:o}=S,a=h.isChecked?0:1,i=h.implicit?-1:a,s=O,u=g.isChecked||!C||g.implicit?"Y":"N";10==r?(i=i<0?1:i,s=O):(void 0!==r&&!A||r>-1&&i<0||r==i)&&(i=r,s=o),((e,t,n)=>{t&&(e.email=t);let r=N("subsUrl"),o=JSON.stringify(e);T(`${r}/user/save-identity-preferences`,{method:"POST",credentials:"include",body:o}).then(t=>{if("SUCCESS"===t.status&&x()){let t=JSON.parse(localStorage.getItem(I));t&&t.signedIn?(P()||k(e.privacySetting),n()):M(e.privacySetting,n)}}).catch(e=>{console.error(e),D("logFailure",{message:"SIP failed",locationId:"SC:TermsOfService:api:/user/save-identity-preferences",state:{status:"failure",request:o}}),n("failed")})})({privacySetting:{tos:{consent:`${u}`,consentCountry:"Y"!==e||C||c?O:t},marketingConsent:{consent:`${i}`,consentCountry:s}}},n,e=>{l("failed"===e?{isHidden:R,isProcessed:!0,isSIPFailed:!0}:{isHidden:R,isProcessed:!0})})};(0,E.useEffect)(()=>{t&&L()},[t]);let j=s?"font-xxxxs":"font-xxxs",U=E.default.createElement(W,{htmlText:g.text,isRequired:g.required,id:f?`${f}TosCheckbox`:"tosCheckbox",asteriskColor:d,checkboxLabelClass:g.implicit?`${j} ${o} pt-xxs pb-xxs gray-dark`:j,checkboxLabelStyle:a}),G=E.default.createElement(W,{htmlText:h.text,isRequired:h.required,id:f?`${f}McCheckbox`:"mcCheckbox",asteriskColor:d,checkboxLabelClass:h.implicit?`gray-dark ${j} ${o}`:j,checkboxLabelStyle:a}),H=C||c;return E.default.createElement("div",{className:`db mt-xs mb-xs ${r}`},H&&g.text&&!g.implicit&&E.default.createElement(F,{htmlText:g.text,onChange:()=>v("tos",b(m({},g),{isChecked:!g.isChecked})),isChecked:g.isChecked,checkboxLabelClass:o,checkboxLabelStyle:a,isRequired:g.required,id:f?`${f}TosCheckbox`:"tosCheckbox",labelSizeSm:s,disabled:u},U),H&&g.text&&g.implicit&&U,A&&h.text&&!h.implicit&&E.default.createElement(F,{htmlText:h.text,onChange:()=>v("mc",b(m({},h),{isChecked:!h.isChecked})),isChecked:h.isChecked,checkboxLabelClass:o,checkboxLabelStyle:a,isRequired:h.required,id:f?`${f}McCheckbox`:"mcCheckbox",labelSizeSm:s,disabled:u},G),A&&h.text&&h.implicit&&G)};e.exports=O(v)},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";var r=n(6);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}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";n.r(t);var r=n(0),o=n.n(r),a=o.a.createContext({}),i=n(1),l=n.n(i);function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nSign in',DEPLOYMENT_TOKEN:1650462696581,PROMO_ID:"65983",start_method:"REGWALL",EXISTING_ACCOUNT_HEADER:"It looks like you already have an account",LOGO_URL:"",REGISTRATION_SUCCESS_SUPPORTING_TEXT_LEFT:"Check your email at",DEFAULT_FONT_COLOR:"offblack",BACKGROUND_COLOR:"Pale green",WALL_CONFIG_ID:"e509974c-be64-43b7-a4e2-454bfddc287e",HAS_EXISTING_EMAIL:!0,SUPPORTING_TEXT_COLOR:"Offblack",EXCLUDING_PLATFORMS:"mobile",DEFAULT_LINK_COLOR:"gray-dark",HAS_SECONDARY_CTA:!1,NL_SKIP_WELCOME_EMAIL:!0,HAS_SPONSOR_LABEL:!1,REGWALL_PRIMARY_CTA_PROMO_CODE:"",ENTERPRISE_CLIENT_ID:"",SCREEN_STATE:"Default",HEADER:'Free access to the 
best climate coverage on earth.
No credit card required.
',REGISTRATION_SUCCESS_CTA_BUTTON_COLOR:"Blue",PRIMARY_CTA_BUTTON_COLOR:"Blue",REGWALL_SECONDARY_CTA_PROMO_CODE:"",NEWSLETTER_ID:"",SECONDARY_CTA_TEXT:'Or, subscribe and get one month for $1',TEMPLATE_ID:"regwall",HAS_OR:!0,start_location:"ONSITE_REGWALL_SOFT",PROMO_LABEL_PRIMARY:"CELEBRATE EARTH DAY",ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",NOTE:"",IFRAME_ONBOARDING:!0,INCLUDE_LOGGING:!0,PRICING_STRATEGY:"Monthly",HEADER_COLOR:"Offblack",SECONDARY_CTA_SUBSCRIPTION_PRICING:"",REGWALL_TID:"wa_hardregwall_t",FREE_TRIAL_SUBS_TYPE:"All-Access Digital subscription",HAS_CONFIRMATION_EMAIL:!0,NEWSLETTER_NAME:"Select One",PAGE_RELOAD_AFTER_SIGN_UP:!0,HAS_SUCCESS_CTA:!0,SIGN_IN_DESCRIPTION:"Already have an account?",SUBSCRIPTION_EXPERIENCE:"GLOBAL_0422_EARTHDAY",SUBSCRIPTION_PRICING:"opendays_earthday_hrw_t_2022_trial",HAS_EXISTING_CTA:!0,REGISTRATION_SUCCESS_CTA_BUTTON_TEXT:"Got it"},VERSION:"3.3.0"};function D(e){if("undefined"!=typeof window)for(var t=document.cookie.split(/[\;\=]/),n=0;n0&&(c=M(null==i?void 0:null===(r=i.wallConfig)||void 0===r?void 0:r.REGION_LIST).toLowerCase());return o.a.createElement(a.Provider,{value:i},l,o.a.createElement(x,null),o.a.createElement("span",{id:"wall-templates-version","data-qa":"region-".concat(c),style:{display:"none"}},k.VERSION))}function G(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 H(e){for(var t=1;t$/,"").trim())))))}}},re=["children","color","href","className","style","onClick","rounded","sendMessages","contentId","buttonStyle","innerHTML","isLoading"];function oe(){return(oe=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 se=function(e){var t=e.children,n=e.color,i=void 0===n?"WaPo blue":n,c=e.href,s=e.className,u=e.style,d=e.onClick,f=e.rounded,p=e.sendMessages,m=void 0!==p&&p,b=e.contentId,g=void 0===b?"":b,h=e.buttonStyle,y=void 0===h?"Button":h,O=e.innerHTML,v=void 0===O?"Subscribe":O,E=e.isLoading,w=void 0!==E&&E,S=ce(e,re),_=ne(g),C=_.onChange,I=_.isContentEditable,A=Object(r.useContext)(a).wallConfig,R=null==A?void 0:A.DEFAULT_FONT_COLOR,P="",L="Link"===y||"Arrow"===y||"Text"===y,j="Text"===y;P=L||"White"!==i&&"Black"!==i&&"WaPo blue"!==i?L?l()({"subs-theme":"White"!==i&&"WaPo blue"!==i&&"Black"!==i},"".concat([T[i]]," bold")):"btn subs-theme bg-".concat(T[i]):"btn btn-".concat(T[i]),v=w?" ".concat(v):v;var N=t||o.a.createElement("span",{dangerouslySetInnerHTML:{__html:v},id:g,contentEditable:!!g&&I}),x=ie({role:"button",href:c,style:ie(ie({whiteSpace:L?"normal":"nowrap",boxSizing:"border-box",borderRadius:f?"31px":0},u),{},{borderColor:"White"!==i?"unset":void 0,padding:L?"":null==u?void 0:u.padding,border:"white"===R?"unset":"initial"}),onBlur:C,onClick:function(e){g&&!I||!g?d&&d(e):I&&e.preventDefault()},className:l()(s,"ma-0",{pointer:!j},{dib:!L},P),children:o.a.createElement(o.a.Fragment,null,N,"Arrow"===y?o.a.createElement(Z,{angle:0,size:16,color:(null==u?void 0:u.color)||i,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},S),k="".concat(g,"_CTA_WRAPPER");if(c||I&&g||L&&!j){var D="_self";return c&&m&&!parent.location.href.includes("wall-builder")&&(D="_top"),o.a.createElement("a",oe({id:k},x,{target:D}))}return j?o.a.createElement("div",oe({id:k},x)):o.a.createElement("button",oe({id:k},x))};function ue(){return(ue=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 _e(e){var t=e.id,n=e.label,i=e.style,c=e.value,s=e.onChange,u=e.className,d=e.validators,f=e.inputStyle,p=e.fieldButton,m=e.errorMessage,b=Se(e,ge),g=Object(r.useContext)(a),h=g.isSmall,y=g.wallConfig,O=Ee(Object(r.useState)(!1),2),v=O[0],E=O[1],w=Ee(Object(r.useState)([]),2),S=w[0],_=w[1],C=Object(r.useRef)(null),T=function(){return(!!S.length||m)&&o.a.createElement("span",{className:"red absolute",style:{top:"-20px"}},S[0]||m)||null};return o.a.createElement("div",{className:"relative flex",style:Oe({},i)},o.a.createElement(T,null),o.a.createElement("input",he({style:Oe({transition:"padding 200ms linear 200ms",borderTopRightRadius:0,borderBottomRightRadius:0,border:m||null!=S&&S.length?"solid 1px #d8070e":""},f),className:l()(u,"pl-sm","pr-sm","font--subhead","font-xxs","h-md","light","brad-2","b","form-input-valid","bg-white","gray-darkest",{"flex-grow-1":h||"regwall"===(null==y?void 0:y.TEMPLATE_ID)},"w-50-ns","ma-0","border-box",{"pt-sm":v||c}),value:c,onChange:function(e){var t;s&&s(e),null==C||null===(t=C.current)||void 0===t||t.setCustomValidity("")},onFocus:function(){return E(!0)},onBlur:function(){E(!1),Array.isArray(d)&&_(d.map(function(e){var t,n=e(c);return null==C||null===(t=C.current)||void 0===t||t.setCustomValidity(n||""),n}).filter(function(e){return e}))},id:t,ref:C},b)),o.a.createElement("label",{htmlFor:t,className:"absolute",style:{transition:"all 200ms ease-in-out 0s",transform:c||v?"scale(0.7) translate3D(25px, -130%, 0)":"translate3D(16px, -50%, 0)",transformOrigin:"top left",top:"50%",color:"#5a5a5a"}},n),p)}var Ce=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"},Te=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":/localhost/.test(t)&&(n="dev"),n};function Ie(){return{prod:"https://www.washingtonpost.com/subscribe",sandbox:"https://subs-stage.washingtonpost.com",dev:"https://subscribe.digitalink.com"}[Te()]}var Ae=function(){var e=Re(),t=document.createElement("a");return t.href=e,t.pathname||""};function Re(){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 Pe(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 Le(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){Ye.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=Ye.indexOf(e);n>=0&&Ye.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 Xe(){return(Xe=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:48,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:720,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"softwall",a=ct(),i=lt(o);if(t){var l=Date.now()+60*n*60*1e3;a[i]=l,st(a)}else if(e){var c=Date.now()+60*r*60*1e3;a[e]=c,st(a)}}("",!0,s.CLOSE_BUTTON_EXPIRATION_HOUR,void 0,s.TEMPLATE_ID),s.MAX_SNOOZE&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=ct(),n=(t[e]||0)+1;t[e]=n,st(t)}(s.PAYWALL_TEMPLATE_ID||"")),!i&&c&&c(!1)}},o.a.createElement("div",null,o.a.createElement(dt,{size:16,color:s&&"white"===s.DEFAULT_FONT_COLOR&&!i?"#FFFFFF":"#aaa"})))};function pt(){return(pt=Object.assign||function(e){for(var t=1;t for a link to sign in securely, without a password."),className:f}),t.HAS_EXISTING_EMAIL?o.a.createElement("b",null," ",n," "):null,t.HAS_EXISTING_EMAIL?o.a.createElement(de,{contentId:"EXISTING_ACCOUNT_SUPPORTING_TEXT_RIGHT",innerHTML:null==t?void 0:t.EXISTING_ACCOUNT_SUPPORTING_TEXT_RIGHT,className:f}):null),t.HAS_OR?o.a.createElement("div",{style:{color:"white"===f?"#FFFFFF":"#666"}},o.a.createElement(bt,{display:"inline-block",color:"#d5d5d5",width:"120px",margin:"0px 10px 4px 0px"}),"or",o.a.createElement(bt,{display:"inline-block",color:"#d5d5d5",width:"120px",margin:"0px 0px 4px 10px"})):null,t.HAS_EXISTING_CTA?o.a.createElement(se,{type:"submit",color:null==t?void 0:t.CTA_BUTTON_COLOR,className:"btn db din-ns mt-sm mb-sm",rounded:!0,sendMessages:u,style:{padding:"7px 32px"},innerHTML:"Sign in",contentId:"CTA_BUTTON_COLOR",href:xe(t)}):null,o.a.createElement(se,{buttonStyle:"Link",className:l()("underline",f,"db","font-light"),style:{fontSize:"14px"},innerHTML:"Back",onClick:function(){c("Default"),s(6)},sendMessages:u})))};function yt(){return(yt=Object.assign||function(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 It(){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 At(e,t){var n,r,o,a,i,l;return{label:"o1",browserUserAgentHit:navigator.userAgent,promoCode:"o1",acqEntranceType:Tt(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=Et().DMA===vt,i=Et().country_code,l=wt(),a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!l?"I":l?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:Ae(),arcId:t||"",contentTags:It(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 Rt={AU:"AUD",CA:"CAD",EEA:"EUR",GB:"GBP",IN:"INR",INTL:"USD",US:"USD"};function Pt(){return(Pt=Object.assign||function(e){for(var t=1;t to continue reading."),className:u})),o.a.createElement(se,{type:"submit",color:null==t?void 0:t.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:xe(t),sendMessages:c})))};function jt(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 Nt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"")},Dt=function(){return"2"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Mt(){var e=D("wp_devicetype");return Dt(e)?"tablet":kt(e)?"mobile":"desktop"}var Ut=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.trim()}).includes(Mt())};function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ht(e,t)}(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.")}()}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],o=Gt(Object(r.useState)(!1),2),a=o[0],i=o[1],l=Gt(Object(r.useState)(!1),2),c=l[0],s=l[1],u=Gt(Object(r.useState)([]),2),d=u[0],f=u[1],p=Gt(Object(r.useState)(null),2),m=p[0],b=p[1],g=n&&parent&&!parent.location.href.includes("wall-builder"),h=g?parent:window,y=function e(t){var n;if(t.lineItemId)b(t.lineItemId),n=t.lineItemId;else{var r=t.slot;if(r&&r.getResponseInformation){var o=(r.getResponseInformation()||{}).sourceAgnosticLineItemId;b(o),n=o}}n&&(h.googletag.pubads().removeEventListener("slotRenderEnded",e),h.googletag.pubads().removeEventListener("impressionViewable",e))};return Object(r.useEffect)(function(){var n=Mt(),r=(t||"").indexOf(n)>-1;if(!/wall-builder/.test(h.location.href)&&r&&e&&"undefined"!=typeof window){var o=h.wpMetaData||{},a=h.googletag||{};Array.isArray(a.cmd)&&0===a.cmd.length?s(!0):(o.adTrackerId||(h.googletag=h.googletag||{cmd:[]},h.googletag.cmd.push(function(){h.googletag.pubads().addEventListener("slotRenderEnded",y)}),h.googletag.cmd.push(function(){h.googletag.pubads().addEventListener("impressionViewable",y)})),fetch("https://sponsorship-lines.zeustechnology.com/washingtonpost/washingtonpost/lineItems.json").then(function(e){return e.json()}).then(function(e){if(!e||!Array.isArray(e)||e&&0===e.length)s(!0);else if(h=g?parent:window,(o=h.wpMetaData||{}).adTrackerId||m){var t=o.adTrackerId||m,n=Bt.indexOf(t)<0&&e.indexOf(t)>-1;i(n),s(!0)}else f(e)}).catch(function(e){console.error(e,"Failed to retrieve ids from the sponsorship tracker."),s(!0)}))}else s(!0)},[]),Object(r.useEffect)(function(){if(!c&&m&&d.length>0){var e=Bt.indexOf(m||0)<0&&d.indexOf(m)>-1;i(e),s(!0)}},[m,d,c]),{hideWallDueToAds:a,isSponsorAdChecked:c}};function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(e,t)}(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.")}()}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&(c(!1),u())};return Object(r.useEffect)(function(){var e;return t&&s?(a.postMessage("CloseRegwall","*"),c(!1)):s&&!n?(c(!0),window.addEventListener("message",d,!1),!(e=a.document.getElementById("slug_fixedBottom"))||e&&e.offsetHeight<=0?(c(!1),u()):e&&e.offsetHeight>0&&setTimeout(function(){e=a.document.getElementById("slug_fixedBottom");var t=a.googletag||{};Array.isArray(t.cmd)&&0===t.cmd.length&&(!e||e.childElementCount<=0)&&(c(!1),u())},2e3)):c(!1),function(){u()}},[t]),l};function Yt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ut(e.EXCLUDING_PLATFORMS),r=!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"softwall",n=ct(),r=lt(t);if(!n[r]&&!n[e])return!0;var o=Date.now(),a=!n[r]||n[r]0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ct()[e]||0;return n>=t&&0!==n||-1===n}(e.PAYWALL_TEMPLATE_ID,e.MAX_SNOOZE);return{isExcluded:n,shouldCloseWall:!/\/wall-builder\//.test(location.href)&&(t||n||!(null!=e&&e.SHOW_ALWAYS)&&r)&&!window.pendingIframeResize}}var Vt=function(){return(Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var o,a=M(null===(o=e)||void 0===o?void 0:o.REGION_LIST);e=Nt(Nt({},e),e[a])}return e}(u,l.currentRegion),parent.location.href.includes("wall-builder")||(l.wallConfig=u);var d,f,p,m=u,b=m.SUBSCRIPTION_PRICING,g=m.SUBSCRIPTION_LOCATION,h=m.SUBSCRIPTION_EXPERIENCE,y=m.PRIMARY_CTA_PROMO_CODE,O=m.SECONDARY_CTA_PROMO_CODE,v=m.SECONDARY_CTA_SUBSCRIPTION_PRICING,E=m.start_location,w=m.start_method,S=m.ENTERPRISE_CLIENT_ID,_=m.TRIAL_TYPE,C=m.MODAL_DISPLAY,T=m.BACKGROUND_COLOR,I=m.LISTEN_FOR_ADS,A=m.LISTEN_FOR_ADS_PLATFORMS,R=Ft(!C&&I,A,s),P=R.hideWallDueToAds,L=R.isSponsorAdChecked,j=Object(r.useMemo)(function(){return Yt(u,P)},[L]),x=j.isExcluded,G=j.shouldCloseWall,H=qt({shouldCloseWall:G,isExcluded:x,sendMessages:s}),B=G&&!C,F={label:E,promoCode:y,emailEnrollMethod:w,emailEnrollLocation:E,emailEnrollInitiative:Ae(),arcId:null==c?void 0:c._id,offerCurrencyCode:(d=D("wp_geo").split("|"),f=d[0],p=d[d.length-1],("EEA"===p&&"GB"!==f||"INTL"===p)&&(f=p),Rt[f]?Rt[f]:"USD"),account_method:w||"",account_location:E||"",account_experience:h||""};(_||S)&&(F=an(an({},F),{subscription_pricing:b,subscription_location:g,subscription_experience:h}));var z=(X=l,$=F,J=X.pwapiResponse,K=X.arcId,Z=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},{GAData:_t(_t({},At(J,K)),$),addEvent:Z,addEventWithArticleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(_t(_t(_t({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent},At(J,K)),$),e))},addMarketingEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"paywall";Z({event:"acq_marketing_".concat(e),category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,t){var n=_t(_t(_t({},At(J,K)),$),t),r=encodeURIComponent(Re()),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=z.addEventWithArticleData,q=z.addGAParamsToURL,Y=z.addMarketingEvent,V={subscription_pricing:b,subscription_location:g,subscription_experience:h,promoCode:y};var X,$,J,K,Z;(null!==(t=u)&&void 0!==t&&t.TRIAL_TYPE||null!==(n=u)&&void 0!==n&&n.ENTERPRISE_CLIENT_ID)&&(V.promoCode=O||V.promoCode,V.subscription_pricing=v||V.subscription_pricing);var Q=q({prod:"https://subscribe.washingtonpost.com/acquisition?",sandbox:"https://subs-stage.washingtonpost.com/acquisition?",dev:"https://subscribe.digitalink.com/acquisition?"}[Te()],V),ee=nn(Object(r.useState)(null===(a=u)||void 0===a?void 0:a.SCREEN_STATE),2),te=ee[0],ne=ee[1],re=nn(Object(r.useState)("newemail@gmail.com"),2),oe=re[0],ae=re[1],ie=nn(Object(r.useState)(0),2),le=ie[0],ce=ie[1],se=Object(r.useCallback)(function(){switch(te){case"Existing Account":return o.a.createElement(ht,{wallConfig:u,registeredEmail:oe,addEventWithArticleData:W,setView:ne,setResizeCounter:ce,sendMessages:s});case"Confirmation":return o.a.createElement(Ot,{wallConfig:u,registeredEmail:oe,addEventWithArticleData:W,sendMessages:s});case"Subscriber":return o.a.createElement(Lt,{wallConfig:u,registeredEmail:oe,addEventWithArticleData:W,sendMessages:s});case"IframeOnboarding":return o.a.createElement(tn,{wallConfig:u,setView:ne,resizeCounter:le,setResizeCounter:ce});default:return o.a.createElement(mt,{wallConfig:u,setRegisteredEmail:ae,setView:ne,setResizeCounter:ce,acqURL:Q,arcId:null==c?void 0:c._id,addEventWithArticleData:W,sendMessages:s})}},[u,te,oe]);return Object(r.useEffect)(function(){L&&!B&&(W({event:"acquisition-regwall",category:"acquisition",action:"acquisition-regwall"}),setTimeout(function(){Y("regwall")},0))},[L]),Object(r.useEffect)(function(){var e;ne(null===(e=u)||void 0===e?void 0:e.SCREEN_STATE),ce(le+1)},[null===(i=u)||void 0===i?void 0:i.SCREEN_STATE]),Object(r.useEffect)(function(){s&&parent&&!parent.location.href.includes("wall-builder")&&parent.postMessage(JSON.stringify({background:"transparent",bottom:"0px",element:"#wallIframe",scrollAllowed:!1===C,top:"unset",wall:!0,wallAction:"open",wallType:"regwall"}),"*")},[]),Object(r.useLayoutEffect)(function(){L&&!B&&s&&parent&&parent.location.href.includes("wall-builder")&&parent.postMessage({newScreenState:te},"*")},[te,L]),Object(r.useEffect)(function(){!s||!parent||parent.location.href.includes("wall-builder")||l.isShowing&&!B||parent.postMessage(JSON.stringify({wall:!0,wallType:"regwall",wallAction:"close"}),"*")},[l.isShowing,L]),!L||!l.isShowing&&"test"!==k.NODE_ENV||!C&&!/\/wall-builder\//.test(location.href)&&(G||H)?null:o.a.createElement(U,e,o.a.createElement(N,{isModal:!1!==C,id:u.PAYWALL_TEMPLATE_ID,backgroundColor:T&&"IframeOnboarding"!==te?T:"White",triggerResize:le,templateId:u.TEMPLATE_ID,sendMessages:s},se()))}}])); //# sourceURL=browsertools://www.washingtonpost.com/subscribe/remote-component1650462713084.js