!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=3)}([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;t0&&void 0!==arguments[0]?arguments[0]:[]).some(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return B.has(e.substr(0,5))}(e)})}function R(){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 I(){var e,t=R(),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 N=["1","1|1","1|0"],D=function(){return C("wp_gdpr")},M=function(){return N.includes(D())&&"1"===C("wp_sub_gdpr")};var B=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"]),W=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};var k=function(){var e=U(),t=document.createElement("a");return t.href=e,t.pathname||""};function U(){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 V(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 F(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 G(){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 X(e,t){var n,r,o,a,i;return{label:"o1",browserUserAgentHit:navigator.userAgent,promoCode:"o1",acqEntranceType:z(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=x(I()),i=R().country_code,a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!M()?"I":M()?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:k(),arcId:t||"",contentTags:G(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 q=function(e,t){var n=e.pwapiResponse,r=e.arcId,o=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};return{GAData:F(F({},X(n,r)),t),addEvent:o,addEventWithArticleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(F(F(F({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent},X(n,r)),t),e))},addMarketingEvent:function(){o({event:"acq_marketing_paywall",category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,o){var a=F(F(F({},X(n,r)),t),o),i=encodeURIComponent(U()),c={promo:a.promoCode,arcId:a.arcId,acqEntType:a.acqEntranceType,destination:i,next_url:i,p:a.subscription_pricing,s_l:a.subscription_location,e:a.subscription_experience},l=new URL(e);return Object.keys(c).forEach(function(e){c[e]&&l.searchParams.append(e,c[e])}),l.toString()}}},Y="wp_nl",K="sw";function Z(){return"undefined"!=typeof window?JSON.parse(localStorage.getItem(Y)||"{}"):{}}function J(e){localStorage.setItem(Y,JSON.stringify(e))}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:48,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:720,o=Z();if(t){var a=Date.now()+60*n*60*1e3;o[K]=a,J(o)}else if(e){var i=Date.now()+60*r*60*1e3;o[e]=i,J(o)}}function $(e){var t=Z();if(!t[K]&&!t[e])return!0;var n=Date.now(),r=!t[K]||t[K]0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/IEMobile|Windows Phone|Lumia/i.test(e)?"w":/iPhone|iP[oa]d/.test(e)?"i":/Android/.test(e)?"a":/BlackBerry|PlayBook|BB10/.test(e)?"b":/webOS|Mobile|Tablet|Opera Mini|\bCrMo\/|Opera Mobi/i.test(e)?1:0},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/Tablet|iPad/i.test(e)};var ne=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.trim()}).includes(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return te(e)?"tablet":ee(e)?"mobile":"desktop"}())};var re=function(){var e=Object(r.useContext)(a).setSizes,t=function(){requestAnimationFrame(function(){e&&e({isSmall:m(),isMedium:v(),isLarge:y()})})};return Object(r.useEffect)(function(){return"undefined"!=typeof window&&window.addEventListener("resize",t,!1),function(){"undefined"!=typeof window&&window.removeEventListener("resize",t,!1)}},[]),null},oe={NODE_ENV:"production",SERVICE_URL:"https://subscribe.washingtonpost.com",WALL_CONFIG:{TEMPLATE_ID:"softwall-subscribe",SOFTWALL_V2_HAS_PROMO_LABEL:"none",SOFTWALL_V2_CTA_PROMO_CODE:"o14_sw",SOFTWALL_V2_MIN_CTA_PROMO_CODE:"o14_sw_cd",SOFTWALL_V2_CTA_BUTTON_TEXT:"Get one year for $29",SOFTWALL_V2_CTA_BUTTON_COLOR:"Blue",SOFTWALL_V2_CTA_BUTTON_HEX_COLOR_OVERRIDE:"",SOFTWALL_V2_CTA_BUTTON_STYLE:"Button",SOFTWALL_V2_CTA_LINK:"",SOFTWALL_V2_EXPANDED_HEADER:"When the world needs to know, we go to work.",SOFTWALL_V2_COLLAPSED_HEADER_DESKTOP:"Unprecedented times call for unlimited access.",SOFTWALL_V2_COLLAPSED_HEADER_MOBILE:"Support journalism.",SOFTWALL_V2_SUPPORTING_TEXT:"As you read this, journalists all over the world are uncovering the stories that are important to all of us. Their words matter. Stand with them. Support their right to bring critical information to light.",SOFTWALL_V2_CLICK_TRIGGER:"You can cancel anytime",SOFTWALL_V2_EXPANDED_BODY_STYLE:"left",SOFTWALL_V2_LEFT_IMAGE_URL:"http://placehold.jp/400x400.png",SOFTWALL_V2_RIGHT_IMAGE_URL:"https://wp-stat.s3.amazonaws.com/DigitalAcquisition/2021/Softwall%20/WPFD%20Softwall.png?AWSAccessKeyId=AKIA3E56CXBFLFBMKMQK&Expires=1619549616&Signature=yAUHKh1uWaAAXCoyqkmsa4nhSPg%3D",SOFTWALL_V2_MOBILE_IMAGE_URL:"https://wp-stat.s3.amazonaws.com/DigitalAcquisition/2021/Softwall%20/WPFD%20Softwall_mobile.png?AWSAccessKeyId=AKIA3E56CXBFLFBMKMQK&Expires=1619549596&Signature=qUX2R2ObOY6gW5vdIg4WKTbBR30%3D",SOFTWALL_V2_BACKGROUND_COLOR:"Pale blue",INCLUDE_LOGGING:!1,EXCLUDING_PLATFORMS:"mobile",CLOSE_BUTTON_EXPIRATION_HOUR:48,SUBMIT_EXPIRATION_HOUR:720,SHOW_CLOSE_ON_MIN:!0,MIN_ON_LOAD:!0,EXPAND_ON_SCROLL:!0,EXPANDABLE:!1,DEPLOYMENT_TOKEN:1622035526803,ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",ACQ_BASE_URL:"https://subscribe.washingtonpost.com",SUBSCRIPTION_EXPERIENCE:"MEMDAY-US-2021",SUBSCRIPTION_PRICING:"0121",REGION:"US",SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_EXPANDED",MIN_SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_COLLAPSED",PROMO_LABEL_PRIMARY:"MEMORIAL DAY SALE",PROMO_LABEL_SECONDARY:"",PROMO_LABEL_HAS_LOGO:!1,PROMO_LABEL_PRIMARY_COLOR:"Red",PROMO_LABEL_SECONDARY_COLOR:"Red",HAS_PROMO_LABEL:"collapsed",PAYWALL_TEMPLATE_ID:"softwall-us-62785c9d8ee"},VERSION:"2.10.8"};function ae(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(re,null),o.a.createElement("span",{id:"wall-templates-version",style:{display:"none"}},oe.VERSION))}function ie(e){var t,n=e.handleScroll,o=0,a=function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){var e=window.pageYOffset||document.documentElement.scrollTop;n(e$/,"").trim())))}}};function ye(){return(ye=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=Z(),n=(t[e]||0)+1;t[e]=n,J(t)}(y||""),u&&u(!1)):c()}}),w?o.a.createElement(Ce,{size:16,color:"#aaa"}):o.a.createElement(je,{angle:-90,size:16,color:"#aaa",title:"expand"})):null}function Me(){return(Me=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 Xe=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,u=e.onClick,s=e.rounded,d=e.contentId,f=void 0===d?"":d,p=e.buttonStyle,O=void 0===p?"Button":p,b=e.innerHTML,m=void 0===b?"Subscribe":b,v=e.isLoading,y=void 0!==v&&v,g=Ge(e,["children","color","href","className","style","onClick","rounded","contentId","buttonStyle","innerHTML","isLoading"]),w=ve(f),h=w.onChange,E=w.isContentEditable,_="",S="Link"===O||"Arrow"===O;_=S||"White"!==r&&"Black"!==r&&"WaPo blue"!==r?S?c()({"subs-theme":"White"!==r&&"WaPo blue"!==r&&"Black"!==r},"".concat([L[r]]," bold")):"btn subs-theme bg-".concat(L[r]):"btn btn-".concat(L[r]),m=y?" ".concat(m):m;var A=t||o.a.createElement("span",{dangerouslySetInnerHTML:{__html:m},id:f,contentEditable:!!f&&E}),P=He({role:"button",href:a,style:He(He({whiteSpace:S?"normal":"nowrap",boxSizing:"border-box",borderRadius:s?"31px":0},l),{},{borderColor:"White"!==r?"unset":void 0,padding:S?"":null==l?void 0:l.padding}),onBlur:h,onClick:function(e){f&&!E||!f?u&&u(e):E&&e.preventDefault()},className:c()(i,"ma-0 pointer",{dib:!S},_),children:o.a.createElement(o.a.Fragment,null,A,"Arrow"===O?o.a.createElement(Ue,{angle:0,size:16,color:(null==l?void 0:l.color)||r,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},g),j="".concat(f,"_CTA_WRAPPER");return a||E&&f||S?o.a.createElement("a",Ve({id:j},P)):o.a.createElement("button",Ve({id:j},P))};var qe=function(e){var t=e.color,n=e.acquisitionURL,i=e.buttonStyle,c=e.hexOverride,l=e.buttonText,u=Object(r.useContext)(a),s=u.isSmall,d=u.wallConfig;return s&&"Button"===i&&(i="Link"),o.a.createElement(Xe,{contentId:"SOFTWALL_V2_CTA_BUTTON_TEXT",color:t,buttonStyle:i,href:n,rounded:!0,className:"dib",style:{padding:s||"Button"!==i?"":"7px 32px",backgroundColor:"Button"===i?c:void 0,color:"Button"!==i?c:void 0,borderColor:c,marginLeft:s?"0px":void 0},onClick:function(){Q("",!0,d.CLOSE_BUTTON_EXPIRATION_HOUR)},innerHTML:l})};function Ye(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")}()}var Ke=function(e){var t=e.style,n=e.color,a=void 0===n?"Offblack":n,i=e.onClick,l=e.contentId,u=e.className,s=void 0===u?"":u,d=e.innerHTML,f=ve(l),p=f.onChange,O=f.isContentEditable,b=Ye(Object(r.useState)(!1),2),m=b[0],v=b[1];return d||O?o.a.createElement("h1",{className:c()(s,"font--headline",L[a]),style:t,onClick:function(e){return!m&&i&&i(e)},id:l,onBlur:function(e){p(e),v(!1)},onFocus:function(){return v(!0)},contentEditable:!!l&&O,dangerouslySetInnerHTML:{__html:d||" "}}):null};var Ze=function(e){var t=e.mobileHeadline,n=e.desktopHeadline;return Object(r.useContext)(a).isSmall?o.a.createElement(Ke,{contentId:"SOFTWALL_V2_COLLAPSED_HEADER_MOBILE",className:"font-xs font--subhead dib border-box mr-md",style:{fontWeight:"normal"},innerHTML:t}):o.a.createElement(Ke,{contentId:"SOFTWALL_V2_COLLAPSED_HEADER_DESKTOP",className:"dib font-sm",style:{display:"inline"},innerHTML:n})};function Je(){return(Je=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=ut(Object(r.useState)(!1),2),a=o[0],i=o[1],c="procCompleted";var l=!1;function u(r,o){console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," - ended? ").concat(l));var a=window.dataLayer&&window.dataLayer.filter(function(n){return n["optimize.".concat(t,".").concat(e,".").concat(r,".complete")]})[0]||!1;if(!l&&e.includes(o)&&(a||"timeout"===r)){if(n(window["".concat(e).concat(r,"_").concat(t,"Cfg")]||{}),i(!0),"timeout"!==r){var u={optExpActive:"".concat(t,"|").concat(e,".").concat(r)};window&&window.dataLayer&&window.dataLayer.push(u)}l=!0;try{performance.mark(c),performance.measure(c,void 0,c),window.BOOMR.sendTimer(c,performance.getEntriesByName(c)[0].duration)}catch(e){}console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," complete"))}}var s=Object(r.useCallback)(function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"optimize.wall"})},[t]);return Object(r.useEffect)(function(){if(e.length>0){!function(){window.dataLayer&&window.dataLayer.push(arguments)}("event","optimize.callback",{callback:u});var t=2e3;e.forEach(function(e){var n,r=void 0!==(null===(n=window.google_optimize)||void 0===n?void 0:n.get(e));t=r?t:0}),s(),setTimeout(function(){e.forEach(function(e){u("timeout",e)})},t)}else i(!0)},[e]),{isOptimize:e.length>0,isExperimentComplete:a}};function dt(){return(dt=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Z()[e]||0;return n>=t&&0!==n||-1===n}(I,M)&&$(null)||"production"!==oe.NODE_ENV&&"test"!==oe.NODE_ENV||/washpost.arcpublishing.com/.test(location.origin))&&n.isShowing?le?null:o.a.createElement(ae,e,o.a.createElement(T,{id:I,backgroundColor:N||"White",triggerResize:H?0:1,style:v&&!y?{height:0}:{}},!1!==D?o.a.createElement(lt,dt({},ve,{CTAURL:J})):null,o.a.createElement(Qe,dt({},ve,{hasExpanded:U,CTAURL:te}))),o.a.createElement(ce,{handleScroll:function(e){Y(e)}})):(window.postMessage("CloseRegwall","*"),null)};mt.displayName="SoftwallSubscribe";t.default=mt}])); //# sourceURL=browsertools://www.washingtonpost.com/subscribe/remote-component1622035537016.js