Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@washingtonpost/site-footer

Package Overview
Dependencies
Maintainers
243
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@washingtonpost/site-footer - npm Package Compare versions

Comparing version 0.16.15 to 0.17.0

2

dist/esm/index.js

@@ -1,2 +0,2 @@

var ut=Object.create;var R=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var wt=(t,e)=>()=>(t&&(e=t(t=0)),e);var gt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var yt=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ht(e))!ft.call(t,r)&&r!==o&&R(t,r,{get:()=>e[r],enumerable:!(s=mt(e,r))||s.enumerable});return t};var bt=(t,e,o)=>(o=t!=null?ut(dt(t)):{},yt(e||!t||!t.__esModule?R(o,"default",{value:t,enumerable:!0}):o,t));var m=wt(()=>{});var X=gt((ze,J)=>{m();var Ct="Expected a function",H="__lodash_hash_undefined__",K=1/0,St="[object Function]",xt="[object GeneratorFunction]",vt="[object Symbol]",Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,At=/^\w*$/,Tt=/^\./,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,It=/\\(\\)?/g,Ot=/^\[object .+?Constructor\]$/,Dt=typeof global=="object"&&global&&global.Object===Object&&global,Lt=typeof self=="object"&&self&&self.Object===Object&&self,T=Dt||Lt||Function("return this")();function Et(t,e){return t==null?void 0:t[e]}function Rt(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var Ft=Array.prototype,Ut=Function.prototype,Q=Object.prototype,A=T["__core-js_shared__"],G=function(){var t=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),W=Ut.toString,P=Q.hasOwnProperty,Y=Q.toString,$t=RegExp("^"+W.call(P).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=T.Symbol,Gt=Ft.splice,qt=V(T,"Map"),b=V(Object,"create"),M=q?q.prototype:void 0,j=M?M.toString:void 0;function d(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Mt(){this.__data__=b?b(null):{}}function jt(t){return this.has(t)&&delete this.__data__[t]}function Ht(t){var e=this.__data__;if(b){var o=e[t];return o===H?void 0:o}return P.call(e,t)?e[t]:void 0}function Kt(t){var e=this.__data__;return b?e[t]!==void 0:P.call(e,t)}function Qt(t,e){var o=this.__data__;return o[t]=b&&e===void 0?H:e,this}d.prototype.clear=Mt;d.prototype.delete=jt;d.prototype.get=Ht;d.prototype.has=Kt;d.prototype.set=Qt;function w(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Wt(){this.__data__=[]}function Yt(t){var e=this.__data__,o=S(e,t);if(o<0)return!1;var s=e.length-1;return o==s?e.pop():Gt.call(e,o,1),!0}function Vt(t){var e=this.__data__,o=S(e,t);return o<0?void 0:e[o][1]}function Bt(t){return S(this.__data__,t)>-1}function zt(t,e){var o=this.__data__,s=S(o,t);return s<0?o.push([t,e]):o[s][1]=e,this}w.prototype.clear=Wt;w.prototype.delete=Yt;w.prototype.get=Vt;w.prototype.has=Bt;w.prototype.set=zt;function f(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Jt(){this.__data__={hash:new d,map:new(qt||w),string:new d}}function Xt(t){return x(this,t).delete(t)}function Zt(t){return x(this,t).get(t)}function te(t){return x(this,t).has(t)}function ee(t,e){return x(this,t).set(t,e),this}f.prototype.clear=Jt;f.prototype.delete=Xt;f.prototype.get=Zt;f.prototype.has=te;f.prototype.set=ee;function S(t,e){for(var o=t.length;o--;)if(me(t[o][0],e))return o;return-1}function oe(t,e){e=ie(e,t)?[e]:re(e);for(var o=0,s=e.length;t!=null&&o<s;)t=t[pe(e[o++])];return o&&o==s?t:void 0}function se(t){if(!z(t)||ce(t))return!1;var e=he(t)||Rt(t)?$t:Ot;return e.test(ue(t))}function ne(t){if(typeof t=="string")return t;if(I(t))return j?j.call(t):"";var e=t+"";return e=="0"&&1/t==-K?"-0":e}function re(t){return B(t)?t:le(t)}function x(t,e){var o=t.__data__;return ae(e)?o[typeof e=="string"?"string":"hash"]:o.map}function V(t,e){var o=Et(t,e);return se(o)?o:void 0}function ie(t,e){if(B(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||I(t)?!0:At.test(t)||!Nt.test(t)||e!=null&&t in Object(e)}function ae(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ce(t){return!!G&&G in t}var le=k(function(t){t=fe(t);var e=[];return Tt.test(t)&&e.push(""),t.replace(Pt,function(o,s,r,i){e.push(r?i.replace(It,"$1"):s||o)}),e});function pe(t){if(typeof t=="string"||I(t))return t;var e=t+"";return e=="0"&&1/t==-K?"-0":e}function ue(t){if(t!=null){try{return W.call(t)}catch{}try{return t+""}catch{}}return""}function k(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(Ct);var o=function(){var s=arguments,r=e?e.apply(this,s):s[0],i=o.cache;if(i.has(r))return i.get(r);var c=t.apply(this,s);return o.cache=i.set(r,c),c};return o.cache=new(k.Cache||f),o}k.Cache=f;function me(t,e){return t===e||t!==t&&e!==e}var B=Array.isArray;function he(t){var e=z(t)?Y.call(t):"";return e==St||e==xt}function z(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function de(t){return!!t&&typeof t=="object"}function I(t){return typeof t=="symbol"||de(t)&&Y.call(t)==vt}function fe(t){return t==null?"":ne(t)}function we(t,e,o){var s=t==null?void 0:oe(t,e);return s===void 0?o:s}J.exports=we});m();m();import F from"react";import l from"prop-types";var _t=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},U=({as:t,children:e})=>F.createElement(t||"div",{className:"mw-grid border-box grid w-100 pl-vw-sm pr-vw-sm gap-x-0 grid-cols-12 mr-auto ml-auto"},e);U.propTypes={as:l.elementType,children:l.node.isRequired};var h=["1","2","3","4","5","6","7","8","9","10","11","12","13"],$=({as:t,children:e,className:o="",span:s,start:r,end:i,spanMedium:c,startMedium:p,endMedium:a,spanLarge:g,startLarge:y,endLarge:C,...lt})=>{let pt=_t(`mw-100 border-box ${o}`,{[`col-span-${s}`]:s,[`col-start-${r}`]:r,[`col-end-${i}`]:i,[`col-span-${c}-md`]:c,[`col-start-${p}-md`]:p,[`col-end-${a}-md`]:a,[`col-span-${g}-lg`]:g,[`col-start-${y}-lg`]:y,[`col-end-${C}-lg`]:C});return F.createElement(t||"div",{className:pt,...lt},e)};$.propTypes={as:l.elementType,children:l.node,className:l.string,span:l.oneOf(h),start:l.oneOf(h),end:l.oneOf(h),spanMedium:l.oneOf(h),startMedium:l.oneOf(h),endMedium:l.oneOf(h),spanLarge:l.oneOf(h),startLarge:l.oneOf(h),endLarge:l.oneOf(h)};m();var ot=bt(X());import*as n from"react";import u from"prop-types";import{useUserData as ge,isSubscriber as Z}from"@washingtonpost/site-user-data";import{getCookie as D}from"@washingtonpost/front-end-utils";var L=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},ye=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Newsroom Policies & Standards",url:"https://www.washingtonpost.com/policies-and-standards/"},{name:"Diversity and Inclusion",url:"https://washingtonpost.com/about-the-post/workforce-demographics/"},{name:"Careers",url:"https://careers.washingtonpost.com/"},{name:"Media & Community Relations",url:"https://www.washingtonpost.com/public-relations/"},{name:"WP Creative Group",url:"https://www.washingtonpost.com/brand-studio/archive/"},{name:"Accessibility Statement",url:"https://www.washingtonpost.com/accessibility/"}],be={title:"Company",links:ye},E="https://www.washingtonpost.com",st="washingtonpost.com",nt=`\xA9 1996-${new Date().getFullYear()} The Washington Post`,_e=[{name:"EU Advertising Consent",url:"https://www.washingtonpost.com/my-post/privacy-settings-eac/"}],Ce="Your Privacy Choices",Se=`${E}/my-post/privacy-settings`,xe="https://subscribe.washingtonpost.com/static/dns-icons/privacyoptions29x14.png",ve="California Consumer Privacy Act (CCPA) Opt-Out Icon",rt={name:Ce,url:Se,img:xe,alt:ve},Ne=[rt],Ae={name:"CA Notice of Collection",url:"https://www.washingtonpost.com/privacy-policy/2011/11/18/gIQASIiaiN_story.html#CALIFORNIA"},Te=[Ae,rt],Pe=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"},{name:"Download the Washington Post App",url:"https://wapo.onelink.me/e76N/8081805d"},{name:"Policies & Standards",url:"/policies-and-standards/"},{name:"Terms of Service",url:"/terms-of-service/2011/11/18/gIQAldiYiN_story.html"},{name:"Privacy Policy",url:"/privacy-policy/2011/11/18/gIQASIiaiN_story.html"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Print Products Terms of Sale",url:"/terms-of-sale-for-print-products/2014/05/08/d60c4bc8-d6c0-11e3-aae8-c2d44bd79778_story.html"},{name:"Digital Products Terms of Sale",url:"/information/2022/06/17/terms-sale-digital-products/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"/rss-terms-of-service/2012/01/16/gIQAadFYAQ_story.html"},{name:"Ad Choices",url:"/how-can-i-opt-out-of-online-advertising-cookies/2011/11/18/gIQABECbiN_story.html"}],ke=({mobileLinkData:t=[]})=>n.createElement("footer",{className:"b bt pt-sm"},n.createElement("div",{className:"mr-gutter ml-gutter"},n.createElement("ul",{className:"list-none pa-0 ml-0 mt-md mr-0 mb-md"},n.createElement("li",null,n.createElement(_,{name:st,url:E,className:"font--subhead lh-default font-xxxs gray-darkest font-bold"})),n.createElement("li",{"data-qa":"mobile-copyright",className:"mb-sm font--subhead lh-default font-xxxs gray-darkest"},nt),t.map(e=>n.createElement("li",{key:e.name},n.createElement(_,{...e,className:"font--subhead font-xxxs gray-darkest"})))))),Ie=typeof window<"u"?`&s_ct=${(0,ot.default)(window,"wpMetaData.content_type")}`:"",Oe=[{name:"Manage Your Subscription",url:"https://www.washingtonpost.com/my-post/account/subscription/?itid=site_footer",userRole:"subscriber"},{name:"Become a Subscriber",url:`https://subscribe.washingtonpost.com/acquisition/?p=s_v&s_l=ONSITE_FOOTER_DIGITAL${Ie}`,userRole:"non-subscriber"},{name:"Gift Subscriptions",url:"https://subscribe.washingtonpost.com/acquisition/?p=g_v&s_l=ONSITE_FOOTER_GIFT"},{name:"Mobile & Apps",url:"https://subscription.washingtonpost.com/mobile/"},{name:"Newsletters & Alerts",url:"https://washingtonpost.com/newsletters/"},{name:"Washington Post Live",url:"https://www.washingtonpost.com/washington-post-live/"},{name:"Reprints & Permissions",url:"https://www.washingtonpost.com/reprints-permissions/"},{name:"Post Store",url:"https://store.washingtonpost.com/"},{name:"Books & E-Books",url:"https://www.washingtonpost.com/photos-books/"},{name:"Newspaper in Education",url:"https://nie.washingtonpost.com"},{name:"Print Archives (Subscribers Only)",url:"https://search.proquest.com/?accountid=189667"},{name:"Today\u2019s Paper",url:"https://www.washingtonpost.com/todays_paper/updates"},{name:"Public Notices",url:"https://www.washingtonpost.com/classifieds"}],O={title:"Get The Post",links:Oe},De=[{name:"Digital Products Terms of Sale",url:"https://www.washingtonpost.com/information/2022/06/17/terms-sale-digital-products/"},{name:"Print Products Terms of Sale",url:"https://www.washingtonpost.com/information/2020/11/20/terms-sale-print-products/"},{name:"Terms of Service",url:"https://www.washingtonpost.com/information/2022/01/01/terms-of-service/"},{name:"Privacy Policy",url:"https://www.washingtonpost.com/privacy-policy/"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"https://www.washingtonpost.com/discussions/2021/01/01/rss-terms-service/"},{name:"Ad Choices",url:"https://www.washingtonpost.com/information/2022/01/01/ad-choices/"}],tt={title:"Terms of Use",links:De},Le=[{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us/"},{name:"Contact the Opinions team",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360004745292-Leadership-of-The-Washington-Post-Opinions-section"},{name:"Advertise",url:"https://www.washingtonpost.com/mediakit/"},{name:"Licensing & Syndication",url:"https://www.washingtonpost.com/syndication/"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"}],Ee={title:"Contact Us",links:Le},it=()=>{try{let t=localStorage.getItem("wapo_identity");return JSON.parse(t)||{}}catch{return{}}},Re=()=>{let t=it(),e=!1;if(t){let i=t.geoState||"",c=t.addressState||"";e=i.toUpperCase()==="CA"||c.toUpperCase()==="CA"}let o=D("wp_geo"),[s,r]=o&&o.split("|")||[];return!!(s==="US"&&r==="CA"||e)},et=()=>{let t=it(),e=!1,o=!1,s=!1;if(t){let p=t.geoState||"",a=t.addressState||"";e=p.toUpperCase()==="CA"||a.toUpperCase()==="CA",o=p.toUpperCase()==="VA"||a.toUpperCase()==="VA"}s=e||o;let r=D("wp_geo"),[i,c]=r&&r.split("|")||[];return!!(i==="US"&&(c==="CA"||c==="VA")||s)},Fe=()=>{let t=D("wp_ucp");return!!(typeof window<"u"&&window.document&&/EAC/.test(t)&&window.__tcfapi===void 0)},Ue=({children:t,className:e})=>n.createElement("footer",{className:L("dn flex-ns flex-column w-100 b bt",{[e]:e})},n.createElement("div",{className:"flex"},t),n.createElement("div",{className:"w-100 b bt mt-sm pt-sm center font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest","data-qa":"desktop-copyright"},n.createElement(_,{name:st,url:E,className:"gray-darkest",dataQa:"desktop-footer-site-link"}),` ${nt}`)),$e=({title:t,children:e})=>n.createElement("div",{className:"flex-1 border-box","data-qa":"footer-section"},n.createElement("div",{"data-qa":"footer-section-title",className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest font-bold mt-md"},t),n.createElement("ul",{className:"list-none pa-0 ml-0 mt-0 mb-md mr-0","data-qa":"footer-section-list"},e)),_=({className:t,url:e,name:o,img:s,alt:r,dataQa:i})=>n.createElement("a",{href:e,className:L("hover-blue",{[t]:t}),"data-qa":i},o," ",s&&n.createElement("img",{src:s,alt:r||""})),Ge={className:u.string,url:u.string.isRequired,name:u.string.isRequired,dataQa:u.string};_.propTypes=Ge;var qe=t=>n.createElement("li",{className:t.listItemClasses,"data-qa":"footer-section-link"},n.createElement(_,{...t,className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest"})),at=({requiresAuth:t=!1,condition:e,children:o})=>{let[s,r]=n.useState(!1);return n.useEffect(()=>{typeof window<"u"&&r(!0)},[]),t?e?s?o:n.createElement("li",null):n.createElement("li",null):o};at.propTypes={link:u.object,condition:u.bool,children:u.node.isRequired,requiresAuth:u.bool};var Me=({className:t,env:e})=>{let{footerSectionData:o,isAuthenticated:s,checkUserRole:r}=ct({env:e});return n.createElement(Ue,{className:t},o==null?void 0:o.map(({title:i,links:c})=>n.createElement($e,{key:i,title:i},c.map(p=>n.createElement(at,{key:p.name,requiresAuth:!!p.userRole,hasAuth:s,condition:r(p.userRole)},n.createElement(qe,{...p}))))))},je=({env:t="prod",className:e})=>{let{mobileLinkData:o}=ct({env:t});return n.createElement("div",{className:L("dn-ns",{[e]:e})},n.createElement(ke,{mobileLinkData:o}))},ct=({env:t})=>{let[e,o]=n.useState(O),{isAuthenticated:s=!1}=ge({env:t});n.useEffect(()=>{s&&window.registerPwapiConsumer&&window.registerPwapiConsumer(a=>{var g,y;!a.status||a.status!=="final"||(y=(g=a==null?void 0:a.data)==null?void 0:g.userAttributes)!=null&&y.tetroUsecase0FooterLinkHideAction&&o({title:O.title,links:O.links.filter(({name:C})=>C!=="Mobile & Apps")})})},[s]);function r(a){return!!(a==="subscriber"&&Z()||a==="non-subscriber"&&Z()===!1)}let i=[];Fe()&&!et()?i=_e:Re()?i=Te:et()&&(i=Ne);let c=(()=>[...Pe,...i])();return{footerSectionData:(()=>[be,e,Ee,{...tt,links:[...tt.links,...i]}])(),mobileLinkData:c,isAuthenticated:s,checkUserRole:r}},He=({env:t="prod",className:e})=>n.createElement(n.Fragment,null,n.createElement(Me,{env:t,className:e}),n.createElement(je,{env:t,className:e}));He.propTypes={env:u.oneOf(["prod","dev","sandbox"]),className:u.string};export{at as AuthCheck,Ae as CA_LINK,nt as COPYRIGHT,$ as Column,rt as DNS_LINK,Me as DesktopFooter,qe as DesktopFooterLink,_e as EU_AD_CONSENT_LINKS,He as Footer,U as Grid,st as INFORMAL_SITE_URL,je as MobileFooter,E as SITE_DOMAIN_URL,be as aboutUs,ye as aboutUsLinks,Ge as footerLinkPropTypes,it as getIdentityFromLocalStorage,O as getThePost,Ee as help,Re as isCaliforniaGeo,et as isDNSGeo,Fe as isEacLink,Pe as mobileLinks,tt as termsOfUse};
var ut=Object.create;var R=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var wt=(t,e)=>()=>(t&&(e=t(t=0)),e);var gt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var yt=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ht(e))!ft.call(t,r)&&r!==o&&R(t,r,{get:()=>e[r],enumerable:!(s=mt(e,r))||s.enumerable});return t};var bt=(t,e,o)=>(o=t!=null?ut(dt(t)):{},yt(e||!t||!t.__esModule?R(o,"default",{value:t,enumerable:!0}):o,t));var m=wt(()=>{});var X=gt((ze,J)=>{m();var Ct="Expected a function",H="__lodash_hash_undefined__",K=1/0,St="[object Function]",xt="[object GeneratorFunction]",vt="[object Symbol]",Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,At=/^\w*$/,Tt=/^\./,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,Ot=/\\(\\)?/g,It=/^\[object .+?Constructor\]$/,Dt=typeof global=="object"&&global&&global.Object===Object&&global,Lt=typeof self=="object"&&self&&self.Object===Object&&self,T=Dt||Lt||Function("return this")();function Et(t,e){return t==null?void 0:t[e]}function Rt(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var Ft=Array.prototype,Ut=Function.prototype,Q=Object.prototype,A=T["__core-js_shared__"],G=function(){var t=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),W=Ut.toString,P=Q.hasOwnProperty,Y=Q.toString,$t=RegExp("^"+W.call(P).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=T.Symbol,Gt=Ft.splice,qt=V(T,"Map"),_=V(Object,"create"),M=q?q.prototype:void 0,j=M?M.toString:void 0;function g(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Mt(){this.__data__=_?_(null):{}}function jt(t){return this.has(t)&&delete this.__data__[t]}function Ht(t){var e=this.__data__;if(_){var o=e[t];return o===H?void 0:o}return P.call(e,t)?e[t]:void 0}function Kt(t){var e=this.__data__;return _?e[t]!==void 0:P.call(e,t)}function Qt(t,e){var o=this.__data__;return o[t]=_&&e===void 0?H:e,this}g.prototype.clear=Mt;g.prototype.delete=jt;g.prototype.get=Ht;g.prototype.has=Kt;g.prototype.set=Qt;function b(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Wt(){this.__data__=[]}function Yt(t){var e=this.__data__,o=S(e,t);if(o<0)return!1;var s=e.length-1;return o==s?e.pop():Gt.call(e,o,1),!0}function Vt(t){var e=this.__data__,o=S(e,t);return o<0?void 0:e[o][1]}function Bt(t){return S(this.__data__,t)>-1}function zt(t,e){var o=this.__data__,s=S(o,t);return s<0?o.push([t,e]):o[s][1]=e,this}b.prototype.clear=Wt;b.prototype.delete=Yt;b.prototype.get=Vt;b.prototype.has=Bt;b.prototype.set=zt;function y(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function Jt(){this.__data__={hash:new g,map:new(qt||b),string:new g}}function Xt(t){return x(this,t).delete(t)}function Zt(t){return x(this,t).get(t)}function te(t){return x(this,t).has(t)}function ee(t,e){return x(this,t).set(t,e),this}y.prototype.clear=Jt;y.prototype.delete=Xt;y.prototype.get=Zt;y.prototype.has=te;y.prototype.set=ee;function S(t,e){for(var o=t.length;o--;)if(me(t[o][0],e))return o;return-1}function oe(t,e){e=ie(e,t)?[e]:re(e);for(var o=0,s=e.length;t!=null&&o<s;)t=t[pe(e[o++])];return o&&o==s?t:void 0}function se(t){if(!z(t)||ce(t))return!1;var e=he(t)||Rt(t)?$t:It;return e.test(ue(t))}function ne(t){if(typeof t=="string")return t;if(O(t))return j?j.call(t):"";var e=t+"";return e=="0"&&1/t==-K?"-0":e}function re(t){return B(t)?t:le(t)}function x(t,e){var o=t.__data__;return ae(e)?o[typeof e=="string"?"string":"hash"]:o.map}function V(t,e){var o=Et(t,e);return se(o)?o:void 0}function ie(t,e){if(B(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||O(t)?!0:At.test(t)||!Nt.test(t)||e!=null&&t in Object(e)}function ae(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ce(t){return!!G&&G in t}var le=k(function(t){t=fe(t);var e=[];return Tt.test(t)&&e.push(""),t.replace(Pt,function(o,s,r,i){e.push(r?i.replace(Ot,"$1"):s||o)}),e});function pe(t){if(typeof t=="string"||O(t))return t;var e=t+"";return e=="0"&&1/t==-K?"-0":e}function ue(t){if(t!=null){try{return W.call(t)}catch{}try{return t+""}catch{}}return""}function k(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(Ct);var o=function(){var s=arguments,r=e?e.apply(this,s):s[0],i=o.cache;if(i.has(r))return i.get(r);var c=t.apply(this,s);return o.cache=i.set(r,c),c};return o.cache=new(k.Cache||y),o}k.Cache=y;function me(t,e){return t===e||t!==t&&e!==e}var B=Array.isArray;function he(t){var e=z(t)?Y.call(t):"";return e==St||e==xt}function z(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function de(t){return!!t&&typeof t=="object"}function O(t){return typeof t=="symbol"||de(t)&&Y.call(t)==vt}function fe(t){return t==null?"":ne(t)}function we(t,e,o){var s=t==null?void 0:oe(t,e);return s===void 0?o:s}J.exports=we});m();m();import F from"react";import l from"prop-types";var _t=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},U=({as:t,children:e})=>F.createElement(t||"div",{className:"mw-grid border-box grid w-100 pl-vw-sm pr-vw-sm gap-x-0 grid-cols-12 mr-auto ml-auto"},e);U.propTypes={as:l.elementType,children:l.node.isRequired};var h=["1","2","3","4","5","6","7","8","9","10","11","12","13"],$=({as:t,children:e,className:o="",span:s,start:r,end:i,spanMedium:c,startMedium:u,endMedium:a,spanLarge:d,startLarge:f,endLarge:w,...lt})=>{let pt=_t(`mw-100 border-box ${o}`,{[`col-span-${s}`]:s,[`col-start-${r}`]:r,[`col-end-${i}`]:i,[`col-span-${c}-md`]:c,[`col-start-${u}-md`]:u,[`col-end-${a}-md`]:a,[`col-span-${d}-lg`]:d,[`col-start-${f}-lg`]:f,[`col-end-${w}-lg`]:w});return F.createElement(t||"div",{className:pt,...lt},e)};$.propTypes={as:l.elementType,children:l.node,className:l.string,span:l.oneOf(h),start:l.oneOf(h),end:l.oneOf(h),spanMedium:l.oneOf(h),startMedium:l.oneOf(h),endMedium:l.oneOf(h),spanLarge:l.oneOf(h),startLarge:l.oneOf(h),endLarge:l.oneOf(h)};m();var ot=bt(X());import*as n from"react";import p from"prop-types";import{useUserData as ge,isSubscriber as Z}from"@washingtonpost/site-user-data";import{getCookie as D}from"@washingtonpost/front-end-utils";var L=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},ye=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Newsroom Policies & Standards",url:"https://www.washingtonpost.com/policies-and-standards/"},{name:"Diversity and Inclusion",url:"https://washingtonpost.com/about-the-post/workforce-demographics/"},{name:"Careers",url:"https://careers.washingtonpost.com/"},{name:"Media & Community Relations",url:"https://www.washingtonpost.com/public-relations/"},{name:"WP Creative Group",url:"https://www.washingtonpost.com/brand-studio/archive/"},{name:"Accessibility Statement",url:"https://www.washingtonpost.com/accessibility/"}],be={title:"Company",links:ye},E="https://www.washingtonpost.com",st="washingtonpost.com",nt=`\xA9 1996-${new Date().getFullYear()} The Washington Post`,_e=[{name:"EU Advertising Consent",url:"https://www.washingtonpost.com/my-post/privacy-settings-eac/"}],Ce="Your Privacy Choices",Se=`${E}/my-post/privacy-settings`,xe="https://subscribe.washingtonpost.com/static/dns-icons/privacyoptions29x14.png",ve="California Consumer Privacy Act (CCPA) Opt-Out Icon",rt={name:Ce,url:Se,img:xe,alt:ve},Ne=[rt],Ae={name:"CA Notice of Collection",url:"https://www.washingtonpost.com/privacy-policy/2011/11/18/gIQASIiaiN_story.html#CALIFORNIA"},Te=[Ae,rt],Pe=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"},{name:"Download the Washington Post App",url:"https://wapo.onelink.me/e76N/8081805d"},{name:"Policies & Standards",url:"/policies-and-standards/"},{name:"Terms of Service",url:"/terms-of-service/2011/11/18/gIQAldiYiN_story.html"},{name:"Privacy Policy",url:"/privacy-policy/2011/11/18/gIQASIiaiN_story.html"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Print Products Terms of Sale",url:"/terms-of-sale-for-print-products/2014/05/08/d60c4bc8-d6c0-11e3-aae8-c2d44bd79778_story.html"},{name:"Digital Products Terms of Sale",url:"/information/2022/06/17/terms-sale-digital-products/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"/rss-terms-of-service/2012/01/16/gIQAadFYAQ_story.html"},{name:"Ad Choices",url:"/how-can-i-opt-out-of-online-advertising-cookies/2011/11/18/gIQABECbiN_story.html"}],ke=({mobileLinkData:t=[]})=>n.createElement("footer",{className:"b bt pt-sm"},n.createElement("div",{className:"mr-gutter ml-gutter"},n.createElement("ul",{className:"list-none pa-0 ml-0 mt-md mr-0 mb-md"},n.createElement("li",null,n.createElement(C,{name:st,url:E,className:"font--subhead lh-default font-xxxs gray-darkest font-bold"})),n.createElement("li",{"data-qa":"mobile-copyright",className:"mb-sm font--subhead lh-default font-xxxs gray-darkest"},nt),t.map(e=>n.createElement("li",{key:e.name},n.createElement(C,{...e,className:"font--subhead font-xxxs gray-darkest"})))))),Oe=typeof window<"u"?`&s_ct=${(0,ot.default)(window,"wpMetaData.content_type")}`:"",Ie=[{name:"Manage Your Subscription",url:"https://www.washingtonpost.com/my-post/account/subscription/?itid=site_footer",userRole:"subscriber"},{name:"Become a Subscriber",url:`https://subscribe.washingtonpost.com/acquisition/?p=s_v&s_l=ONSITE_FOOTER_DIGITAL${Oe}`,userRole:"non-subscriber"},{name:"Gift Subscriptions",url:"https://subscribe.washingtonpost.com/acquisition/?p=g_v&s_l=ONSITE_FOOTER_GIFT"},{name:"Mobile & Apps",url:"https://subscription.washingtonpost.com/mobile/"},{name:"Newsletters & Alerts",url:"https://washingtonpost.com/newsletters/"},{name:"Washington Post Live",url:"https://www.washingtonpost.com/washington-post-live/"},{name:"Reprints & Permissions",url:"https://www.washingtonpost.com/reprints-permissions/"},{name:"Post Store",url:"https://store.washingtonpost.com/"},{name:"Books & E-Books",url:"https://www.washingtonpost.com/photos-books/"},{name:"Newspaper in Education",url:"https://nie.washingtonpost.com"},{name:"Print Archives (Subscribers Only)",url:"https://search.proquest.com/?accountid=189667"},{name:"Today\u2019s Paper",url:"https://www.washingtonpost.com/todays_paper/updates"},{name:"Public Notices",url:"https://www.washingtonpost.com/classifieds"}],I={title:"Get The Post",links:Ie},De=[{name:"Digital Products Terms of Sale",url:"https://www.washingtonpost.com/information/2022/06/17/terms-sale-digital-products/"},{name:"Print Products Terms of Sale",url:"https://www.washingtonpost.com/information/2020/11/20/terms-sale-print-products/"},{name:"Terms of Service",url:"https://www.washingtonpost.com/information/2022/01/01/terms-of-service/"},{name:"Privacy Policy",url:"https://www.washingtonpost.com/privacy-policy/"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"https://www.washingtonpost.com/discussions/2021/01/01/rss-terms-service/"},{name:"Ad Choices",url:"https://www.washingtonpost.com/information/2022/01/01/ad-choices/"}],tt={title:"Terms of Use",links:De},Le=[{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us/"},{name:"Contact the Opinions team",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360004745292-Leadership-of-The-Washington-Post-Opinions-section"},{name:"Advertise",url:"https://www.washingtonpost.com/mediakit/"},{name:"Licensing & Syndication",url:"https://www.washingtonpost.com/syndication/"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"}],Ee={title:"Contact Us",links:Le},it=()=>{try{let t=localStorage.getItem("wapo_identity");return JSON.parse(t)||{}}catch{return{}}},Re=()=>{let t=it(),e=!1;if(t){let i=t.geoState||"",c=t.addressState||"";e=i.toUpperCase()==="CA"||c.toUpperCase()==="CA"}let o=D("wp_geo"),[s,r]=o&&o.split("|")||[];return!!(s==="US"&&r==="CA"||e)},et=()=>{let t=it(),e=!1,o=!1,s=!1;if(t){let a=t.geoState||"",d=t.addressState||"",f=["CA","VA","CO","CT","UT"];e=a.toUpperCase()==="CA"||d.toUpperCase()==="CA",o=f.some(w=>{a.toUpperCase()===w||d.toUpperCase()})}s=e||o;let r=D("wp_geo"),[i,c]=r&&r.split("|")||[];return!!(i==="US"&&(c==="CA"||["CA","VA","CO","CT","UT"].includes(c))||s)},Fe=()=>{let t=D("wp_ucp");return!!(typeof window<"u"&&window.document&&/EAC/.test(t)&&window.__tcfapi===void 0)},Ue=({children:t,className:e})=>n.createElement("footer",{className:L("dn flex-ns flex-column w-100 b bt",{[e]:e})},n.createElement("div",{className:"flex"},t),n.createElement("div",{className:"w-100 b bt mt-sm pt-sm center font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest","data-qa":"desktop-copyright"},n.createElement(C,{name:st,url:E,className:"gray-darkest",dataQa:"desktop-footer-site-link"}),` ${nt}`)),$e=({title:t,children:e})=>n.createElement("div",{className:"flex-1 border-box","data-qa":"footer-section"},n.createElement("div",{"data-qa":"footer-section-title",className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest font-bold mt-md"},t),n.createElement("ul",{className:"list-none pa-0 ml-0 mt-0 mb-md mr-0","data-qa":"footer-section-list"},e)),C=({className:t,url:e,name:o,img:s,alt:r,dataQa:i})=>n.createElement("a",{href:e,className:L("hover-blue",{[t]:t}),"data-qa":i},o," ",s&&n.createElement("img",{src:s,alt:r||""})),Ge={className:p.string,url:p.string.isRequired,name:p.string.isRequired,dataQa:p.string};C.propTypes=Ge;var qe=t=>n.createElement("li",{className:t.listItemClasses,"data-qa":"footer-section-link"},n.createElement(C,{...t,className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest"})),at=({requiresAuth:t=!1,condition:e,children:o})=>{let[s,r]=n.useState(!1);return n.useEffect(()=>{typeof window<"u"&&r(!0)},[]),t?e?s?o:n.createElement("li",null):n.createElement("li",null):o};at.propTypes={link:p.object,condition:p.bool,children:p.node.isRequired,requiresAuth:p.bool};var Me=({className:t,env:e})=>{let{footerSectionData:o,isAuthenticated:s,checkUserRole:r}=ct({env:e});return n.createElement(Ue,{className:t},o==null?void 0:o.map(({title:i,links:c})=>n.createElement($e,{key:i,title:i},c.map(u=>n.createElement(at,{key:u.name,requiresAuth:!!u.userRole,hasAuth:s,condition:r(u.userRole)},n.createElement(qe,{...u}))))))},je=({env:t="prod",className:e})=>{let{mobileLinkData:o}=ct({env:t});return n.createElement("div",{className:L("dn-ns",{[e]:e})},n.createElement(ke,{mobileLinkData:o}))},ct=({env:t})=>{let[e,o]=n.useState(I),{isAuthenticated:s=!1}=ge({env:t});n.useEffect(()=>{s&&window.registerPwapiConsumer&&window.registerPwapiConsumer(a=>{var d,f;!a.status||a.status!=="final"||(f=(d=a==null?void 0:a.data)==null?void 0:d.userAttributes)!=null&&f.tetroUsecase0FooterLinkHideAction&&o({title:I.title,links:I.links.filter(({name:w})=>w!=="Mobile & Apps")})})},[s]);function r(a){return!!(a==="subscriber"&&Z()||a==="non-subscriber"&&Z()===!1)}let i=[];Fe()&&!et()?i=_e:Re()?i=Te:et()&&(i=Ne);let c=(()=>[...Pe,...i])();return{footerSectionData:(()=>[be,e,Ee,{...tt,links:[...tt.links,...i]}])(),mobileLinkData:c,isAuthenticated:s,checkUserRole:r}},He=({env:t="prod",className:e})=>n.createElement(n.Fragment,null,n.createElement(Me,{env:t,className:e}),n.createElement(je,{env:t,className:e}));He.propTypes={env:p.oneOf(["prod","dev","sandbox"]),className:p.string};export{at as AuthCheck,Ae as CA_LINK,nt as COPYRIGHT,$ as Column,rt as DNS_LINK,Me as DesktopFooter,qe as DesktopFooterLink,_e as EU_AD_CONSENT_LINKS,He as Footer,U as Grid,st as INFORMAL_SITE_URL,je as MobileFooter,E as SITE_DOMAIN_URL,be as aboutUs,ye as aboutUsLinks,Ge as footerLinkPropTypes,it as getIdentityFromLocalStorage,I as getThePost,Ee as help,Re as isCaliforniaGeo,et as isDNSGeo,Fe as isEacLink,Pe as mobileLinks,tt as termsOfUse};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

var Nt=Object.create;var v=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ot=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lt=(t,e)=>{for(var o in e)v(t,o,{get:e[o],enumerable:!0})},Y=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Tt(e))!kt.call(t,r)&&r!==o&&v(t,r,{get:()=>e[r],enumerable:!(s=At(e,r))||s.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Nt(Pt(t)):{},Y(e||!t||!t.__esModule?v(o,"default",{value:t,enumerable:!0}):o,t)),Dt=t=>Y(v({},"__esModule",{value:!0}),t);var m=It(()=>{});var at=Ot((Be,it)=>{m();var Rt="Expected a function",X="__lodash_hash_undefined__",Z=1/0,Ut="[object Function]",Ft="[object GeneratorFunction]",$t="[object Symbol]",Gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,qt=/^\./,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ht=/[\\^$.*+?()[\]{}|]/g,Kt=/\\(\\)?/g,Qt=/^\[object .+?Constructor\]$/,Wt=typeof global=="object"&&global&&global.Object===Object&&global,Yt=typeof self=="object"&&self&&self.Object===Object&&self,R=Wt||Yt||Function("return this")();function Vt(t,e){return t==null?void 0:t[e]}function Bt(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var zt=Array.prototype,Jt=Function.prototype,tt=Object.prototype,E=R["__core-js_shared__"],V=function(){var t=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),et=Jt.toString,U=tt.hasOwnProperty,ot=tt.toString,Xt=RegExp("^"+et.call(U).replace(Ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=R.Symbol,Zt=zt.splice,te=st(R,"Map"),_=st(Object,"create"),z=B?B.prototype:void 0,J=z?z.toString:void 0;function d(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ee(){this.__data__=_?_(null):{}}function oe(t){return this.has(t)&&delete this.__data__[t]}function se(t){var e=this.__data__;if(_){var o=e[t];return o===X?void 0:o}return U.call(e,t)?e[t]:void 0}function ne(t){var e=this.__data__;return _?e[t]!==void 0:U.call(e,t)}function re(t,e){var o=this.__data__;return o[t]=_&&e===void 0?X:e,this}d.prototype.clear=ee;d.prototype.delete=oe;d.prototype.get=se;d.prototype.has=ne;d.prototype.set=re;function w(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ie(){this.__data__=[]}function ae(t){var e=this.__data__,o=N(e,t);if(o<0)return!1;var s=e.length-1;return o==s?e.pop():Zt.call(e,o,1),!0}function ce(t){var e=this.__data__,o=N(e,t);return o<0?void 0:e[o][1]}function le(t){return N(this.__data__,t)>-1}function pe(t,e){var o=this.__data__,s=N(o,t);return s<0?o.push([t,e]):o[s][1]=e,this}w.prototype.clear=ie;w.prototype.delete=ae;w.prototype.get=ce;w.prototype.has=le;w.prototype.set=pe;function f(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ue(){this.__data__={hash:new d,map:new(te||w),string:new d}}function me(t){return A(this,t).delete(t)}function he(t){return A(this,t).get(t)}function de(t){return A(this,t).has(t)}function fe(t,e){return A(this,t).set(t,e),this}f.prototype.clear=ue;f.prototype.delete=me;f.prototype.get=he;f.prototype.has=de;f.prototype.set=fe;function N(t,e){for(var o=t.length;o--;)if(Ae(t[o][0],e))return o;return-1}function we(t,e){e=_e(e,t)?[e]:be(e);for(var o=0,s=e.length;t!=null&&o<s;)t=t[ve(e[o++])];return o&&o==s?t:void 0}function ge(t){if(!rt(t)||Se(t))return!1;var e=Te(t)||Bt(t)?Xt:Qt;return e.test(Ne(t))}function ye(t){if(typeof t=="string")return t;if($(t))return J?J.call(t):"";var e=t+"";return e=="0"&&1/t==-Z?"-0":e}function be(t){return nt(t)?t:xe(t)}function A(t,e){var o=t.__data__;return Ce(e)?o[typeof e=="string"?"string":"hash"]:o.map}function st(t,e){var o=Vt(t,e);return ge(o)?o:void 0}function _e(t,e){if(nt(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||$(t)?!0:Mt.test(t)||!Gt.test(t)||e!=null&&t in Object(e)}function Ce(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Se(t){return!!V&&V in t}var xe=F(function(t){t=ke(t);var e=[];return qt.test(t)&&e.push(""),t.replace(jt,function(o,s,r,i){e.push(r?i.replace(Kt,"$1"):s||o)}),e});function ve(t){if(typeof t=="string"||$(t))return t;var e=t+"";return e=="0"&&1/t==-Z?"-0":e}function Ne(t){if(t!=null){try{return et.call(t)}catch{}try{return t+""}catch{}}return""}function F(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(Rt);var o=function(){var s=arguments,r=e?e.apply(this,s):s[0],i=o.cache;if(i.has(r))return i.get(r);var l=t.apply(this,s);return o.cache=i.set(r,l),l};return o.cache=new(F.Cache||f),o}F.Cache=f;function Ae(t,e){return t===e||t!==t&&e!==e}var nt=Array.isArray;function Te(t){var e=rt(t)?ot.call(t):"";return e==Ut||e==Ft}function rt(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pe(t){return!!t&&typeof t=="object"}function $(t){return typeof t=="symbol"||Pe(t)&&ot.call(t)==$t}function ke(t){return t==null?"":ye(t)}function Ie(t,e,o){var s=t==null?void 0:we(t,e);return s===void 0?o:s}it.exports=Ie});var Ke={};Lt(Ke,{AuthCheck:()=>W,CA_LINK:()=>mt,COPYRIGHT:()=>H,Column:()=>D,DNS_LINK:()=>K,DesktopFooter:()=>bt,DesktopFooterLink:()=>yt,EU_AD_CONSENT_LINKS:()=>ut,Footer:()=>St,Grid:()=>L,INFORMAL_SITE_URL:()=>j,MobileFooter:()=>_t,SITE_DOMAIN_URL:()=>k,aboutUs:()=>pt,aboutUsLinks:()=>lt,footerLinkPropTypes:()=>gt,getIdentityFromLocalStorage:()=>Q,getThePost:()=>T,help:()=>dt,isCaliforniaGeo:()=>ft,isDNSGeo:()=>M,isEacLink:()=>wt,mobileLinks:()=>ht,termsOfUse:()=>G});module.exports=Dt(Ke);m();m();var O=b(require("react")),c=b(require("prop-types")),Et=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},L=({as:t,children:e})=>O.default.createElement(t||"div",{className:"mw-grid border-box grid w-100 pl-vw-sm pr-vw-sm gap-x-0 grid-cols-12 mr-auto ml-auto"},e);L.propTypes={as:c.default.elementType,children:c.default.node.isRequired};var h=["1","2","3","4","5","6","7","8","9","10","11","12","13"],D=({as:t,children:e,className:o="",span:s,start:r,end:i,spanMedium:l,startMedium:p,endMedium:a,spanLarge:g,startLarge:y,endLarge:x,...xt})=>{let vt=Et(`mw-100 border-box ${o}`,{[`col-span-${s}`]:s,[`col-start-${r}`]:r,[`col-end-${i}`]:i,[`col-span-${l}-md`]:l,[`col-start-${p}-md`]:p,[`col-end-${a}-md`]:a,[`col-span-${g}-lg`]:g,[`col-start-${y}-lg`]:y,[`col-end-${x}-lg`]:x});return O.default.createElement(t||"div",{className:vt,...xt},e)};D.propTypes={as:c.default.elementType,children:c.default.node,className:c.default.string,span:c.default.oneOf(h),start:c.default.oneOf(h),end:c.default.oneOf(h),spanMedium:c.default.oneOf(h),startMedium:c.default.oneOf(h),endMedium:c.default.oneOf(h),spanLarge:c.default.oneOf(h),startLarge:c.default.oneOf(h),endLarge:c.default.oneOf(h)};m();var n=b(require("react")),u=b(require("prop-types")),ct=b(at()),C=require("@washingtonpost/site-user-data"),P=require("@washingtonpost/front-end-utils"),q=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},lt=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Newsroom Policies & Standards",url:"https://www.washingtonpost.com/policies-and-standards/"},{name:"Diversity and Inclusion",url:"https://washingtonpost.com/about-the-post/workforce-demographics/"},{name:"Careers",url:"https://careers.washingtonpost.com/"},{name:"Media & Community Relations",url:"https://www.washingtonpost.com/public-relations/"},{name:"WP Creative Group",url:"https://www.washingtonpost.com/brand-studio/archive/"},{name:"Accessibility Statement",url:"https://www.washingtonpost.com/accessibility/"}],pt={title:"Company",links:lt},k="https://www.washingtonpost.com",j="washingtonpost.com",H=`\xA9 1996-${new Date().getFullYear()} The Washington Post`,ut=[{name:"EU Advertising Consent",url:"https://www.washingtonpost.com/my-post/privacy-settings-eac/"}],Oe="Your Privacy Choices",Le=`${k}/my-post/privacy-settings`,De="https://subscribe.washingtonpost.com/static/dns-icons/privacyoptions29x14.png",Ee="California Consumer Privacy Act (CCPA) Opt-Out Icon",K={name:Oe,url:Le,img:De,alt:Ee},Re=[K],mt={name:"CA Notice of Collection",url:"https://www.washingtonpost.com/privacy-policy/2011/11/18/gIQASIiaiN_story.html#CALIFORNIA"},Ue=[mt,K],ht=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"},{name:"Download the Washington Post App",url:"https://wapo.onelink.me/e76N/8081805d"},{name:"Policies & Standards",url:"/policies-and-standards/"},{name:"Terms of Service",url:"/terms-of-service/2011/11/18/gIQAldiYiN_story.html"},{name:"Privacy Policy",url:"/privacy-policy/2011/11/18/gIQASIiaiN_story.html"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Print Products Terms of Sale",url:"/terms-of-sale-for-print-products/2014/05/08/d60c4bc8-d6c0-11e3-aae8-c2d44bd79778_story.html"},{name:"Digital Products Terms of Sale",url:"/information/2022/06/17/terms-sale-digital-products/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"/rss-terms-of-service/2012/01/16/gIQAadFYAQ_story.html"},{name:"Ad Choices",url:"/how-can-i-opt-out-of-online-advertising-cookies/2011/11/18/gIQABECbiN_story.html"}],Fe=({mobileLinkData:t=[]})=>n.createElement("footer",{className:"b bt pt-sm"},n.createElement("div",{className:"mr-gutter ml-gutter"},n.createElement("ul",{className:"list-none pa-0 ml-0 mt-md mr-0 mb-md"},n.createElement("li",null,n.createElement(S,{name:j,url:k,className:"font--subhead lh-default font-xxxs gray-darkest font-bold"})),n.createElement("li",{"data-qa":"mobile-copyright",className:"mb-sm font--subhead lh-default font-xxxs gray-darkest"},H),t.map(e=>n.createElement("li",{key:e.name},n.createElement(S,{...e,className:"font--subhead font-xxxs gray-darkest"})))))),$e=typeof window<"u"?`&s_ct=${(0,ct.default)(window,"wpMetaData.content_type")}`:"",Ge=[{name:"Manage Your Subscription",url:"https://www.washingtonpost.com/my-post/account/subscription/?itid=site_footer",userRole:"subscriber"},{name:"Become a Subscriber",url:`https://subscribe.washingtonpost.com/acquisition/?p=s_v&s_l=ONSITE_FOOTER_DIGITAL${$e}`,userRole:"non-subscriber"},{name:"Gift Subscriptions",url:"https://subscribe.washingtonpost.com/acquisition/?p=g_v&s_l=ONSITE_FOOTER_GIFT"},{name:"Mobile & Apps",url:"https://subscription.washingtonpost.com/mobile/"},{name:"Newsletters & Alerts",url:"https://washingtonpost.com/newsletters/"},{name:"Washington Post Live",url:"https://www.washingtonpost.com/washington-post-live/"},{name:"Reprints & Permissions",url:"https://www.washingtonpost.com/reprints-permissions/"},{name:"Post Store",url:"https://store.washingtonpost.com/"},{name:"Books & E-Books",url:"https://www.washingtonpost.com/photos-books/"},{name:"Newspaper in Education",url:"https://nie.washingtonpost.com"},{name:"Print Archives (Subscribers Only)",url:"https://search.proquest.com/?accountid=189667"},{name:"Today\u2019s Paper",url:"https://www.washingtonpost.com/todays_paper/updates"},{name:"Public Notices",url:"https://www.washingtonpost.com/classifieds"}],T={title:"Get The Post",links:Ge},Me=[{name:"Digital Products Terms of Sale",url:"https://www.washingtonpost.com/information/2022/06/17/terms-sale-digital-products/"},{name:"Print Products Terms of Sale",url:"https://www.washingtonpost.com/information/2020/11/20/terms-sale-print-products/"},{name:"Terms of Service",url:"https://www.washingtonpost.com/information/2022/01/01/terms-of-service/"},{name:"Privacy Policy",url:"https://www.washingtonpost.com/privacy-policy/"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"https://www.washingtonpost.com/discussions/2021/01/01/rss-terms-service/"},{name:"Ad Choices",url:"https://www.washingtonpost.com/information/2022/01/01/ad-choices/"}],G={title:"Terms of Use",links:Me},qe=[{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us/"},{name:"Contact the Opinions team",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360004745292-Leadership-of-The-Washington-Post-Opinions-section"},{name:"Advertise",url:"https://www.washingtonpost.com/mediakit/"},{name:"Licensing & Syndication",url:"https://www.washingtonpost.com/syndication/"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"}],dt={title:"Contact Us",links:qe},Q=()=>{try{let t=localStorage.getItem("wapo_identity");return JSON.parse(t)||{}}catch{return{}}},ft=()=>{let t=Q(),e=!1;if(t){let i=t.geoState||"",l=t.addressState||"";e=i.toUpperCase()==="CA"||l.toUpperCase()==="CA"}let o=(0,P.getCookie)("wp_geo"),[s,r]=o&&o.split("|")||[];return!!(s==="US"&&r==="CA"||e)},M=()=>{let t=Q(),e=!1,o=!1,s=!1;if(t){let p=t.geoState||"",a=t.addressState||"";e=p.toUpperCase()==="CA"||a.toUpperCase()==="CA",o=p.toUpperCase()==="VA"||a.toUpperCase()==="VA"}s=e||o;let r=(0,P.getCookie)("wp_geo"),[i,l]=r&&r.split("|")||[];return!!(i==="US"&&(l==="CA"||l==="VA")||s)},wt=()=>{let t=(0,P.getCookie)("wp_ucp");return!!(typeof window<"u"&&window.document&&/EAC/.test(t)&&window.__tcfapi===void 0)},je=({children:t,className:e})=>n.createElement("footer",{className:q("dn flex-ns flex-column w-100 b bt",{[e]:e})},n.createElement("div",{className:"flex"},t),n.createElement("div",{className:"w-100 b bt mt-sm pt-sm center font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest","data-qa":"desktop-copyright"},n.createElement(S,{name:j,url:k,className:"gray-darkest",dataQa:"desktop-footer-site-link"}),` ${H}`)),He=({title:t,children:e})=>n.createElement("div",{className:"flex-1 border-box","data-qa":"footer-section"},n.createElement("div",{"data-qa":"footer-section-title",className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest font-bold mt-md"},t),n.createElement("ul",{className:"list-none pa-0 ml-0 mt-0 mb-md mr-0","data-qa":"footer-section-list"},e)),S=({className:t,url:e,name:o,img:s,alt:r,dataQa:i})=>n.createElement("a",{href:e,className:q("hover-blue",{[t]:t}),"data-qa":i},o," ",s&&n.createElement("img",{src:s,alt:r||""})),gt={className:u.default.string,url:u.default.string.isRequired,name:u.default.string.isRequired,dataQa:u.default.string};S.propTypes=gt;var yt=t=>n.createElement("li",{className:t.listItemClasses,"data-qa":"footer-section-link"},n.createElement(S,{...t,className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest"})),W=({requiresAuth:t=!1,condition:e,children:o})=>{let[s,r]=n.useState(!1);return n.useEffect(()=>{typeof window<"u"&&r(!0)},[]),t?e?s?o:n.createElement("li",null):n.createElement("li",null):o};W.propTypes={link:u.default.object,condition:u.default.bool,children:u.default.node.isRequired,requiresAuth:u.default.bool};var bt=({className:t,env:e})=>{let{footerSectionData:o,isAuthenticated:s,checkUserRole:r}=Ct({env:e});return n.createElement(je,{className:t},o==null?void 0:o.map(({title:i,links:l})=>n.createElement(He,{key:i,title:i},l.map(p=>n.createElement(W,{key:p.name,requiresAuth:!!p.userRole,hasAuth:s,condition:r(p.userRole)},n.createElement(yt,{...p}))))))},_t=({env:t="prod",className:e})=>{let{mobileLinkData:o}=Ct({env:t});return n.createElement("div",{className:q("dn-ns",{[e]:e})},n.createElement(Fe,{mobileLinkData:o}))},Ct=({env:t})=>{let[e,o]=n.useState(T),{isAuthenticated:s=!1}=(0,C.useUserData)({env:t});n.useEffect(()=>{s&&window.registerPwapiConsumer&&window.registerPwapiConsumer(a=>{var g,y;!a.status||a.status!=="final"||(y=(g=a==null?void 0:a.data)==null?void 0:g.userAttributes)!=null&&y.tetroUsecase0FooterLinkHideAction&&o({title:T.title,links:T.links.filter(({name:x})=>x!=="Mobile & Apps")})})},[s]);function r(a){return!!(a==="subscriber"&&(0,C.isSubscriber)()||a==="non-subscriber"&&(0,C.isSubscriber)()===!1)}let i=[];wt()&&!M()?i=ut:ft()?i=Ue:M()&&(i=Re);let l=(()=>[...ht,...i])();return{footerSectionData:(()=>[pt,e,dt,{...G,links:[...G.links,...i]}])(),mobileLinkData:l,isAuthenticated:s,checkUserRole:r}},St=({env:t="prod",className:e})=>n.createElement(n.Fragment,null,n.createElement(bt,{env:t,className:e}),n.createElement(_t,{env:t,className:e}));St.propTypes={env:u.default.oneOf(["prod","dev","sandbox"]),className:u.default.string};0&&(module.exports={AuthCheck,CA_LINK,COPYRIGHT,Column,DNS_LINK,DesktopFooter,DesktopFooterLink,EU_AD_CONSENT_LINKS,Footer,Grid,INFORMAL_SITE_URL,MobileFooter,SITE_DOMAIN_URL,aboutUs,aboutUsLinks,footerLinkPropTypes,getIdentityFromLocalStorage,getThePost,help,isCaliforniaGeo,isDNSGeo,isEacLink,mobileLinks,termsOfUse});
var Nt=Object.create;var v=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ot=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lt=(t,e)=>{for(var o in e)v(t,o,{get:e[o],enumerable:!0})},Y=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Tt(e))!kt.call(t,r)&&r!==o&&v(t,r,{get:()=>e[r],enumerable:!(s=At(e,r))||s.enumerable});return t};var _=(t,e,o)=>(o=t!=null?Nt(Pt(t)):{},Y(e||!t||!t.__esModule?v(o,"default",{value:t,enumerable:!0}):o,t)),Dt=t=>Y(v({},"__esModule",{value:!0}),t);var m=It(()=>{});var at=Ot((Be,it)=>{m();var Rt="Expected a function",X="__lodash_hash_undefined__",Z=1/0,Ut="[object Function]",Ft="[object GeneratorFunction]",$t="[object Symbol]",Gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,qt=/^\./,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ht=/[\\^$.*+?()[\]{}|]/g,Kt=/\\(\\)?/g,Qt=/^\[object .+?Constructor\]$/,Wt=typeof global=="object"&&global&&global.Object===Object&&global,Yt=typeof self=="object"&&self&&self.Object===Object&&self,R=Wt||Yt||Function("return this")();function Vt(t,e){return t==null?void 0:t[e]}function Bt(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var zt=Array.prototype,Jt=Function.prototype,tt=Object.prototype,E=R["__core-js_shared__"],V=function(){var t=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),et=Jt.toString,U=tt.hasOwnProperty,ot=tt.toString,Xt=RegExp("^"+et.call(U).replace(Ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=R.Symbol,Zt=zt.splice,te=st(R,"Map"),C=st(Object,"create"),z=B?B.prototype:void 0,J=z?z.toString:void 0;function g(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ee(){this.__data__=C?C(null):{}}function oe(t){return this.has(t)&&delete this.__data__[t]}function se(t){var e=this.__data__;if(C){var o=e[t];return o===X?void 0:o}return U.call(e,t)?e[t]:void 0}function ne(t){var e=this.__data__;return C?e[t]!==void 0:U.call(e,t)}function re(t,e){var o=this.__data__;return o[t]=C&&e===void 0?X:e,this}g.prototype.clear=ee;g.prototype.delete=oe;g.prototype.get=se;g.prototype.has=ne;g.prototype.set=re;function b(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ie(){this.__data__=[]}function ae(t){var e=this.__data__,o=N(e,t);if(o<0)return!1;var s=e.length-1;return o==s?e.pop():Zt.call(e,o,1),!0}function ce(t){var e=this.__data__,o=N(e,t);return o<0?void 0:e[o][1]}function le(t){return N(this.__data__,t)>-1}function pe(t,e){var o=this.__data__,s=N(o,t);return s<0?o.push([t,e]):o[s][1]=e,this}b.prototype.clear=ie;b.prototype.delete=ae;b.prototype.get=ce;b.prototype.has=le;b.prototype.set=pe;function y(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var s=t[e];this.set(s[0],s[1])}}function ue(){this.__data__={hash:new g,map:new(te||b),string:new g}}function me(t){return A(this,t).delete(t)}function he(t){return A(this,t).get(t)}function de(t){return A(this,t).has(t)}function fe(t,e){return A(this,t).set(t,e),this}y.prototype.clear=ue;y.prototype.delete=me;y.prototype.get=he;y.prototype.has=de;y.prototype.set=fe;function N(t,e){for(var o=t.length;o--;)if(Ae(t[o][0],e))return o;return-1}function we(t,e){e=_e(e,t)?[e]:be(e);for(var o=0,s=e.length;t!=null&&o<s;)t=t[ve(e[o++])];return o&&o==s?t:void 0}function ge(t){if(!rt(t)||Se(t))return!1;var e=Te(t)||Bt(t)?Xt:Qt;return e.test(Ne(t))}function ye(t){if(typeof t=="string")return t;if($(t))return J?J.call(t):"";var e=t+"";return e=="0"&&1/t==-Z?"-0":e}function be(t){return nt(t)?t:xe(t)}function A(t,e){var o=t.__data__;return Ce(e)?o[typeof e=="string"?"string":"hash"]:o.map}function st(t,e){var o=Vt(t,e);return ge(o)?o:void 0}function _e(t,e){if(nt(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||$(t)?!0:Mt.test(t)||!Gt.test(t)||e!=null&&t in Object(e)}function Ce(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Se(t){return!!V&&V in t}var xe=F(function(t){t=ke(t);var e=[];return qt.test(t)&&e.push(""),t.replace(jt,function(o,s,r,i){e.push(r?i.replace(Kt,"$1"):s||o)}),e});function ve(t){if(typeof t=="string"||$(t))return t;var e=t+"";return e=="0"&&1/t==-Z?"-0":e}function Ne(t){if(t!=null){try{return et.call(t)}catch{}try{return t+""}catch{}}return""}function F(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(Rt);var o=function(){var s=arguments,r=e?e.apply(this,s):s[0],i=o.cache;if(i.has(r))return i.get(r);var l=t.apply(this,s);return o.cache=i.set(r,l),l};return o.cache=new(F.Cache||y),o}F.Cache=y;function Ae(t,e){return t===e||t!==t&&e!==e}var nt=Array.isArray;function Te(t){var e=rt(t)?ot.call(t):"";return e==Ut||e==Ft}function rt(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pe(t){return!!t&&typeof t=="object"}function $(t){return typeof t=="symbol"||Pe(t)&&ot.call(t)==$t}function ke(t){return t==null?"":ye(t)}function Ie(t,e,o){var s=t==null?void 0:we(t,e);return s===void 0?o:s}it.exports=Ie});var Ke={};Lt(Ke,{AuthCheck:()=>W,CA_LINK:()=>mt,COPYRIGHT:()=>H,Column:()=>D,DNS_LINK:()=>K,DesktopFooter:()=>bt,DesktopFooterLink:()=>yt,EU_AD_CONSENT_LINKS:()=>ut,Footer:()=>St,Grid:()=>L,INFORMAL_SITE_URL:()=>j,MobileFooter:()=>_t,SITE_DOMAIN_URL:()=>k,aboutUs:()=>pt,aboutUsLinks:()=>lt,footerLinkPropTypes:()=>gt,getIdentityFromLocalStorage:()=>Q,getThePost:()=>T,help:()=>dt,isCaliforniaGeo:()=>ft,isDNSGeo:()=>M,isEacLink:()=>wt,mobileLinks:()=>ht,termsOfUse:()=>G});module.exports=Dt(Ke);m();m();var O=_(require("react")),c=_(require("prop-types")),Et=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},L=({as:t,children:e})=>O.default.createElement(t||"div",{className:"mw-grid border-box grid w-100 pl-vw-sm pr-vw-sm gap-x-0 grid-cols-12 mr-auto ml-auto"},e);L.propTypes={as:c.default.elementType,children:c.default.node.isRequired};var h=["1","2","3","4","5","6","7","8","9","10","11","12","13"],D=({as:t,children:e,className:o="",span:s,start:r,end:i,spanMedium:l,startMedium:u,endMedium:a,spanLarge:d,startLarge:f,endLarge:w,...xt})=>{let vt=Et(`mw-100 border-box ${o}`,{[`col-span-${s}`]:s,[`col-start-${r}`]:r,[`col-end-${i}`]:i,[`col-span-${l}-md`]:l,[`col-start-${u}-md`]:u,[`col-end-${a}-md`]:a,[`col-span-${d}-lg`]:d,[`col-start-${f}-lg`]:f,[`col-end-${w}-lg`]:w});return O.default.createElement(t||"div",{className:vt,...xt},e)};D.propTypes={as:c.default.elementType,children:c.default.node,className:c.default.string,span:c.default.oneOf(h),start:c.default.oneOf(h),end:c.default.oneOf(h),spanMedium:c.default.oneOf(h),startMedium:c.default.oneOf(h),endMedium:c.default.oneOf(h),spanLarge:c.default.oneOf(h),startLarge:c.default.oneOf(h),endLarge:c.default.oneOf(h)};m();var n=_(require("react")),p=_(require("prop-types")),ct=_(at()),S=require("@washingtonpost/site-user-data"),P=require("@washingtonpost/front-end-utils"),q=(t="",e={})=>{let o=t;return Object.entries(e).forEach(([s,r])=>{r&&(o+=` ${s}`)}),o.trim()},lt=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Newsroom Policies & Standards",url:"https://www.washingtonpost.com/policies-and-standards/"},{name:"Diversity and Inclusion",url:"https://washingtonpost.com/about-the-post/workforce-demographics/"},{name:"Careers",url:"https://careers.washingtonpost.com/"},{name:"Media & Community Relations",url:"https://www.washingtonpost.com/public-relations/"},{name:"WP Creative Group",url:"https://www.washingtonpost.com/brand-studio/archive/"},{name:"Accessibility Statement",url:"https://www.washingtonpost.com/accessibility/"}],pt={title:"Company",links:lt},k="https://www.washingtonpost.com",j="washingtonpost.com",H=`\xA9 1996-${new Date().getFullYear()} The Washington Post`,ut=[{name:"EU Advertising Consent",url:"https://www.washingtonpost.com/my-post/privacy-settings-eac/"}],Oe="Your Privacy Choices",Le=`${k}/my-post/privacy-settings`,De="https://subscribe.washingtonpost.com/static/dns-icons/privacyoptions29x14.png",Ee="California Consumer Privacy Act (CCPA) Opt-Out Icon",K={name:Oe,url:Le,img:De,alt:Ee},Re=[K],mt={name:"CA Notice of Collection",url:"https://www.washingtonpost.com/privacy-policy/2011/11/18/gIQASIiaiN_story.html#CALIFORNIA"},Ue=[mt,K],ht=[{name:"About The Post",url:"https://www.washingtonpost.com/about-the-post/"},{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"},{name:"Download the Washington Post App",url:"https://wapo.onelink.me/e76N/8081805d"},{name:"Policies & Standards",url:"/policies-and-standards/"},{name:"Terms of Service",url:"/terms-of-service/2011/11/18/gIQAldiYiN_story.html"},{name:"Privacy Policy",url:"/privacy-policy/2011/11/18/gIQASIiaiN_story.html"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Print Products Terms of Sale",url:"/terms-of-sale-for-print-products/2014/05/08/d60c4bc8-d6c0-11e3-aae8-c2d44bd79778_story.html"},{name:"Digital Products Terms of Sale",url:"/information/2022/06/17/terms-sale-digital-products/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"/rss-terms-of-service/2012/01/16/gIQAadFYAQ_story.html"},{name:"Ad Choices",url:"/how-can-i-opt-out-of-online-advertising-cookies/2011/11/18/gIQABECbiN_story.html"}],Fe=({mobileLinkData:t=[]})=>n.createElement("footer",{className:"b bt pt-sm"},n.createElement("div",{className:"mr-gutter ml-gutter"},n.createElement("ul",{className:"list-none pa-0 ml-0 mt-md mr-0 mb-md"},n.createElement("li",null,n.createElement(x,{name:j,url:k,className:"font--subhead lh-default font-xxxs gray-darkest font-bold"})),n.createElement("li",{"data-qa":"mobile-copyright",className:"mb-sm font--subhead lh-default font-xxxs gray-darkest"},H),t.map(e=>n.createElement("li",{key:e.name},n.createElement(x,{...e,className:"font--subhead font-xxxs gray-darkest"})))))),$e=typeof window<"u"?`&s_ct=${(0,ct.default)(window,"wpMetaData.content_type")}`:"",Ge=[{name:"Manage Your Subscription",url:"https://www.washingtonpost.com/my-post/account/subscription/?itid=site_footer",userRole:"subscriber"},{name:"Become a Subscriber",url:`https://subscribe.washingtonpost.com/acquisition/?p=s_v&s_l=ONSITE_FOOTER_DIGITAL${$e}`,userRole:"non-subscriber"},{name:"Gift Subscriptions",url:"https://subscribe.washingtonpost.com/acquisition/?p=g_v&s_l=ONSITE_FOOTER_GIFT"},{name:"Mobile & Apps",url:"https://subscription.washingtonpost.com/mobile/"},{name:"Newsletters & Alerts",url:"https://washingtonpost.com/newsletters/"},{name:"Washington Post Live",url:"https://www.washingtonpost.com/washington-post-live/"},{name:"Reprints & Permissions",url:"https://www.washingtonpost.com/reprints-permissions/"},{name:"Post Store",url:"https://store.washingtonpost.com/"},{name:"Books & E-Books",url:"https://www.washingtonpost.com/photos-books/"},{name:"Newspaper in Education",url:"https://nie.washingtonpost.com"},{name:"Print Archives (Subscribers Only)",url:"https://search.proquest.com/?accountid=189667"},{name:"Today\u2019s Paper",url:"https://www.washingtonpost.com/todays_paper/updates"},{name:"Public Notices",url:"https://www.washingtonpost.com/classifieds"}],T={title:"Get The Post",links:Ge},Me=[{name:"Digital Products Terms of Sale",url:"https://www.washingtonpost.com/information/2022/06/17/terms-sale-digital-products/"},{name:"Print Products Terms of Sale",url:"https://www.washingtonpost.com/information/2020/11/20/terms-sale-print-products/"},{name:"Terms of Service",url:"https://www.washingtonpost.com/information/2022/01/01/terms-of-service/"},{name:"Privacy Policy",url:"https://www.washingtonpost.com/privacy-policy/"},{name:"Cookie Settings",url:"https://www.washingtonpost.com/cookie-policy/"},{name:"Submissions & Discussion Policy",url:"/discussions/2021/11/23/discussion-submission-guidelines/"},{name:"RSS Terms of Service",url:"https://www.washingtonpost.com/discussions/2021/01/01/rss-terms-service/"},{name:"Ad Choices",url:"https://www.washingtonpost.com/information/2022/01/01/ad-choices/"}],G={title:"Terms of Use",links:Me},qe=[{name:"Contact the Newsroom",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360002940991-Leadership-of-The-Washington-Post-newsroom"},{name:"Contact Customer Care",url:"https://helpcenter.washingtonpost.com/hc/en-us/"},{name:"Contact the Opinions team",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/360004745292-Leadership-of-The-Washington-Post-Opinions-section"},{name:"Advertise",url:"https://www.washingtonpost.com/mediakit/"},{name:"Licensing & Syndication",url:"https://www.washingtonpost.com/syndication/"},{name:"Request a Correction",url:"https://helpcenter.washingtonpost.com/hc/en-us/articles/115003675928-Submit-a-correction"},{name:"Send a News Tip",url:"https://www.washingtonpost.com/anonymous-news-tips/"},{name:"Report a Vulnerability",url:"https://www.washingtonpost.com/discussions/2021/05/13/vulnerability-disclosure-policy/"}],dt={title:"Contact Us",links:qe},Q=()=>{try{let t=localStorage.getItem("wapo_identity");return JSON.parse(t)||{}}catch{return{}}},ft=()=>{let t=Q(),e=!1;if(t){let i=t.geoState||"",l=t.addressState||"";e=i.toUpperCase()==="CA"||l.toUpperCase()==="CA"}let o=(0,P.getCookie)("wp_geo"),[s,r]=o&&o.split("|")||[];return!!(s==="US"&&r==="CA"||e)},M=()=>{let t=Q(),e=!1,o=!1,s=!1;if(t){let a=t.geoState||"",d=t.addressState||"",f=["CA","VA","CO","CT","UT"];e=a.toUpperCase()==="CA"||d.toUpperCase()==="CA",o=f.some(w=>{a.toUpperCase()===w||d.toUpperCase()})}s=e||o;let r=(0,P.getCookie)("wp_geo"),[i,l]=r&&r.split("|")||[];return!!(i==="US"&&(l==="CA"||["CA","VA","CO","CT","UT"].includes(l))||s)},wt=()=>{let t=(0,P.getCookie)("wp_ucp");return!!(typeof window<"u"&&window.document&&/EAC/.test(t)&&window.__tcfapi===void 0)},je=({children:t,className:e})=>n.createElement("footer",{className:q("dn flex-ns flex-column w-100 b bt",{[e]:e})},n.createElement("div",{className:"flex"},t),n.createElement("div",{className:"w-100 b bt mt-sm pt-sm center font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest","data-qa":"desktop-copyright"},n.createElement(x,{name:j,url:k,className:"gray-darkest",dataQa:"desktop-footer-site-link"}),` ${H}`)),He=({title:t,children:e})=>n.createElement("div",{className:"flex-1 border-box","data-qa":"footer-section"},n.createElement("div",{"data-qa":"footer-section-title",className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest font-bold mt-md"},t),n.createElement("ul",{className:"list-none pa-0 ml-0 mt-0 mb-md mr-0","data-qa":"footer-section-list"},e)),x=({className:t,url:e,name:o,img:s,alt:r,dataQa:i})=>n.createElement("a",{href:e,className:q("hover-blue",{[t]:t}),"data-qa":i},o," ",s&&n.createElement("img",{src:s,alt:r||""})),gt={className:p.default.string,url:p.default.string.isRequired,name:p.default.string.isRequired,dataQa:p.default.string};x.propTypes=gt;var yt=t=>n.createElement("li",{className:t.listItemClasses,"data-qa":"footer-section-link"},n.createElement(x,{...t,className:"font--subhead lh-default font-xxxxs font-xxxs-l gray-darkest"})),W=({requiresAuth:t=!1,condition:e,children:o})=>{let[s,r]=n.useState(!1);return n.useEffect(()=>{typeof window<"u"&&r(!0)},[]),t?e?s?o:n.createElement("li",null):n.createElement("li",null):o};W.propTypes={link:p.default.object,condition:p.default.bool,children:p.default.node.isRequired,requiresAuth:p.default.bool};var bt=({className:t,env:e})=>{let{footerSectionData:o,isAuthenticated:s,checkUserRole:r}=Ct({env:e});return n.createElement(je,{className:t},o==null?void 0:o.map(({title:i,links:l})=>n.createElement(He,{key:i,title:i},l.map(u=>n.createElement(W,{key:u.name,requiresAuth:!!u.userRole,hasAuth:s,condition:r(u.userRole)},n.createElement(yt,{...u}))))))},_t=({env:t="prod",className:e})=>{let{mobileLinkData:o}=Ct({env:t});return n.createElement("div",{className:q("dn-ns",{[e]:e})},n.createElement(Fe,{mobileLinkData:o}))},Ct=({env:t})=>{let[e,o]=n.useState(T),{isAuthenticated:s=!1}=(0,S.useUserData)({env:t});n.useEffect(()=>{s&&window.registerPwapiConsumer&&window.registerPwapiConsumer(a=>{var d,f;!a.status||a.status!=="final"||(f=(d=a==null?void 0:a.data)==null?void 0:d.userAttributes)!=null&&f.tetroUsecase0FooterLinkHideAction&&o({title:T.title,links:T.links.filter(({name:w})=>w!=="Mobile & Apps")})})},[s]);function r(a){return!!(a==="subscriber"&&(0,S.isSubscriber)()||a==="non-subscriber"&&(0,S.isSubscriber)()===!1)}let i=[];wt()&&!M()?i=ut:ft()?i=Ue:M()&&(i=Re);let l=(()=>[...ht,...i])();return{footerSectionData:(()=>[pt,e,dt,{...G,links:[...G.links,...i]}])(),mobileLinkData:l,isAuthenticated:s,checkUserRole:r}},St=({env:t="prod",className:e})=>n.createElement(n.Fragment,null,n.createElement(bt,{env:t,className:e}),n.createElement(_t,{env:t,className:e}));St.propTypes={env:p.default.oneOf(["prod","dev","sandbox"]),className:p.default.string};0&&(module.exports={AuthCheck,CA_LINK,COPYRIGHT,Column,DNS_LINK,DesktopFooter,DesktopFooterLink,EU_AD_CONSENT_LINKS,Footer,Grid,INFORMAL_SITE_URL,MobileFooter,SITE_DOMAIN_URL,aboutUs,aboutUsLinks,footerLinkPropTypes,getIdentityFromLocalStorage,getThePost,help,isCaliforniaGeo,isDNSGeo,isEacLink,mobileLinks,termsOfUse});
//# sourceMappingURL=index.js.map
{
"name": "@washingtonpost/site-footer",
"description": "WaPo Site Footer",
"version": "0.16.15",
"version": "0.17.0",
"author": "artmsilva <artmsilva@gmail.com>",

@@ -56,3 +56,3 @@ "homepage": "https://github.com/WPMedia/site-components#readme",

],
"gitHead": "d17aa0bc988c7e2f9368431410743fa1984ced43"
"gitHead": "69eb4ac0a0a532cb57f8ebc29a097198d0d44a1c"
}
# Site Footer
> `footer` contains the site-wide footer.
> `footer` contains the site-wide footer.

@@ -16,9 +16,7 @@ ## Install

```jsx
import { Footer } from "@washingtonpost/site-footer"
import { Footer } from "@washingtonpost/site-footer";
export const MyPage = () => {
return (
<Footer />
)
return <Footer />;
};
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc