1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{7257:function(e,n,t){"use strict";var i=t(10367),r=t(74778),s=t(25675),o=t.n(s),c=t(80793),a=t(70919),u=t(85893),l=i.ZP.div.withConfig({componentId:"pfc-18i85sw-0"})(["position:relative;display:flex;justify-content:center;padding:","px 0;","{padding:","px 0;}"],(function(e){return 7*e.theme.grid.unit}),(function(e){return e.theme.media.minWidth("tablet")}),(function(e){return 11*e.theme.grid.unit})),d=i.ZP.div.withConfig({componentId:"pfc-18i85sw-1"})(["position:relative;padding:0 ","px;width:100%;max-width:1052px;text-align:center;z-index:",";"],(function(e){return 2*e.theme.grid.unit}),(function(e){return e.theme.zindex[1]})),f=(0,i.ZP)(a.H2).withConfig({componentId:"pfc-18i85sw-2"})(["margin:0;user-select:none;"]),h=i.ZP.p.withConfig({componentId:"pfc-18i85sw-3"})(["",";margin:","px 0 0 0;","{margin:","px 0 0 0;}"],(function(e){return e.theme.typography.tNormal}),(function(e){return 3*e.theme.grid.unit}),(function(e){return e.theme.media.minWidth("tablet")}),(function(e){return 3*e.theme.grid.unit})),p=i.ZP.div.withConfig({componentId:"pfc-18i85sw-4"})(["margin:","px 0 0 0;","{margin:","px 0 0 0;}"],(function(e){return 3*e.theme.grid.unit}),(function(e){return e.theme.media.minWidth("tablet")}),(function(e){return 3*e.theme.grid.unit})),x=i.ZP.div.withConfig({componentId:"pfc-18i85sw-5"})(["position:absolute;top:0;left:0;width:100%;filter:",";height:150%;img{object-fit:cover;}&:after{content:'';",";background:linear-gradient( "," 0%,"," 100% );}"],(function(e){return e.filter}),(function(e){return e.theme.mixins.fill("absolute")}),(function(e){return(0,c.E)(e.theme.variables.background,.6)}),(function(e){return e.theme.variables.background}));n.Z=function(e){var n,t=e.headline,i=e.subheadline,s=e.image,c=e.children,a=e.filter,m=void 0===a?"grayscale(1)":a;return(0,u.jsxs)(l,{children:[(0,u.jsxs)(d,{children:[t&&(0,u.jsx)(f,{as:"h1",children:t}),i&&(n=i,/<[^>]*>/.test(n)&&(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})||(0,u.jsx)(h,{children:i})),c&&(0,u.jsx)(p,{children:c})]}),s&&"object"===typeof s&&(0,u.jsx)(x,{filter:m,children:(0,u.jsx)(r.Z,{image:s,fit:"cover"})}),s&&"string"===typeof s&&(0,u.jsx)(x,{filter:m,children:(0,u.jsx)(o(),{src:s,layout:"fill",alt:t})})]})}},32673:function(e,n,t){"use strict";var i=t(9008),r=t.n(i),s=t(47311),o=t(85893);n.Z=function(e){var n=e.metaTitleContainer,t=e.metaTagContainer,i=e.metaLinkContainer,c=e.title;return(0,o.jsxs)(r(),{children:[t&&(0,s.ZP)(t),i&&(0,s.ZP)(i),n&&(0,s.ZP)(n),c&&(0,o.jsxs)("title",{children:["Playing for Change | ",c]})]})}},53652:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return A}});var i=t(50029),r=t(87794),s=t.n(r),o=t(67294),c=t(11163),a=t(10367),u=t(99490),l=t(66485),d=t.n(l),f=t(41664),h=t.n(f),p=t(32673),x=t(7257),m=t(72579),g=t(70919),j=t(24338),v=t(7733),b=t(55472),w=t(85893);function y(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){c=!0,s=e},f:function(){try{o||null==t.return||t.return()}finally{if(c)throw s}}}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var k=a.ZP.div.withConfig({componentId:"pfc-kx9ssl-0"})(["padding:60px 0 120px;","{padding-left:12%;}","{padding-left:15%;}"],(function(e){return e.theme.media.minWidth("tablet")}),(function(e){return e.theme.media.minWidth("desktop")}
1)),C=a.ZP.div.withConfig({componentId:"pfc-kx9ssl-1"})(["margin:0 0 72px 0;"]),P=a.ZP.div.withConfig({componentId:"pfc-kx9ssl-2"})(["display:flex;flex-direction:column;gap:48px;margin:0 0 72px 0;","{flex-direction:row;gap:0;> div{flex:0 0 50%;max-width:50%;}}"],(function(e){return e.theme.media.minWidth("tablet")})),Z=(0,a.ZP)(g.H4).withConfig({componentId:"pfc-kx9ssl-3"})(["margin:0 0 16px 0;"]),I=(0,a.ZP)(g.P).withConfig({componentId:"pfc-kx9ssl-4"})(["font-size:16px;line-height:1.6;p{margin:0 0 8px 0;font-size:16px;}"]),_=a.ZP.a.withConfig({componentId:"pfc-kx9ssl-5"})(["color:"," !important;text-decoration:underline;cursor:pointer;&:hover{opacity:0.8;}"],(function(e){return e.theme.colors.yellow})),N=a.ZP.p.withConfig({componentId:"pfc-kx9ssl-6"})(["display:flex;align-items:center;color:"," !important;font-weight:bold;font-size:16px;margin:0 0 10px 0;i{position:relative;top:-2px;margin:0 8px 0 0;font-size:22px;}"],(function(e){return e.theme.colors.yellow})),L=a.ZP.p.withConfig({componentId:"pfc-kx9ssl-7"})(["font-style:italic;font-size:16px;margin:0 0 10px 0;"]),A=!0;n.default=function(){var e=(0,o.useContext)(v.Z),n=e.session,t=e.sessionReady,r=(0,c.useRouter)(),a=(0,o.useState)([]),l=a[0],f=a[1],g=(0,o.useState)([]),S=g[0],A=g[1],E=(0,o.useState)([]),z=E[0],T=E[1],F=(0,o.useState)(!1),M=(F[0],F[1]);(0,o.useEffect)((function(){t&&(n.isGuest?r.push("/login"):O())}),[t,n]);var O=function(){var e=(0,i.Z)(s().mark((function e(){var t,i,r,o,c,a,u,l,d,h,p,x,m,g,j;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,b.do)();case 3:if(t=e.sent,i=t.data,!(r=null===i||void 0===i?void 0:i.find((function(e){return"stripe"===e.handle})))){e.next=12;break}return e.next=9,(0,b.lo)(r.id,n.id);case 9:o=e.sent,c=o.data,T(c||[]);case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(0);case 16:if(!n.isSubscriber){e.next=54;break}return e.prev=17,e.next=20,(0,b.tJ)(n.id);case 20:return a=e.sent,u=a.data,e.next=24,(0,b.OC)(n.id);case 24:l=e.sent,d=l.data,h=[],p=y(u),e.prev=28,p.s();case 30:if((x=p.n()).done){e.next=40;break}return m=x.value,e.next=34,(0,b.Ov)(m.planId);case 34:g=e.sent,(j=g.data).subscription=m,h.push(j);case 38:e.next=30;break;case 40:e.next=45;break;case 42:e.prev=42,e.t1=e.catch(28),p.e(e.t1);case 45:return e.prev=45,p.f(),e.finish(45);case 48:f(h),A(d),e.next=54;break;case 52:e.prev=52,e.t2=e.catch(17);case 54:M(!0);case 55:case"end":return e.stop()}}),e,null,[[0,14],[17,52],[28,42,45,48]])})));return function(){return e.apply(this,arguments)}}();return!t||n.isGuest?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(p.Z,{title:"Account"}),(0,w.jsx)(x.Z,{headline:"My Account"}),(0,w.jsx)(m.W2,{maxWidth:"xlarge",children:(0,w.jsxs)(k,{children:[(0,w.jsxs)(C,{children:[(0,w.jsx)(Z,{children:"Personal Details"}),(0,w.jsxs)(I,{children:[(0,w.jsxs)("p",{children:[n.firstName," ",n.lastName,(0,w.jsx)("br",{}),n.email]}),(0,w.jsx)(_,{href:"/account/edit",children:"Manage"})]})]}),(0,w.jsxs)(P,{children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(Z,{children:"Subscription"}),n.isSubscriber?(0,w.jsxs)(w.Fragment,{children:[l.map((function(e,n){return(0,w.jsxs)(I,{children:[(0,w.jsxs)(N,{children:[(0,w.jsx)("i",{className:"icon-logo"})," ",(0,w.jsx)("span",{children:e.name})]}),(0,w.jsxs)("p",{children:["Status: ",d().capitalize(e.subscription.status),(0,w.jsx)("br",{}),"Since: ",u.ou.fromISO(e.subscription.dateCreated).toLocaleString(u.ou.DATE_FULL),(0,w.jsx)("br",{}),"Next payment: ",u.ou.fromISO(e.subscription.nextPaymentDate).toLocaleString(u.ou.DATE_FULL)]}),(0,w.jsx)(_,{href:"/account/subscriptions/".concat(e.subscription.uid),children:"Manage Subscription"})]},n)})),S.map((function(e,n){return(0,w.jsxs)(I,{children:[(0,w.jsxs)(N,{children:[(0,w.jsx)("i",{className:"icon-logo"})," ",(0,w.jsx)("span",{children:e.name})]}),(0,w.jsxs)("p",{children:["Since: ",u.ou.fromSQL(e.startdate).toLocaleString(u.ou.DATE_FULL),(0,w.jsx)("br",{})]}),(0,w.jsx)(_,{href:"/account/subscriptions/".concat(e.id),children:"Manage Subscription"})]},n)}))]}):(0,w.jsxs)(I,{children:[(0,w.jsx)("p",{children:"Become a member to get exclusive access and discounts for as little as $5 / month."}),(0,w.jsx)("br",{}),(0,w.jsx)(h(),{href:"/join",passHref:!0,children:(0,w.jsxs)(j.Re,{size:"xsmall",children:[(0,w.jsx)("i",{className:"icon-logo"})," Become a Member"]})})]})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(Z,{children:"Payment method"}),(0,w.jsx)(I,{children:z.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(L,{children:z[0].description}),(0,w.jsx)(_,{href:"/account/payment-methods/new",children:"Change payment method"})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{children:"No payment method saved."}),(0,w.jsx)(_,{href:"/account/payment-methods/new",children:"Add payment method"})]})})]})]}),(0,w.jsxs)(C,{children:[(0,w.jsx)(Z,{children:"My Favorites"}),(0,w.jsx)(I,{children:(0,w.jsx)(_,{href:"/account/lists/".concat(n.favoritesListId),children:"View"})})]})]})})]})}},84865:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return t(53652)}])}},function(e){e.O(0,[1388,6485,9774,2888,179],(function(){return n=848
165,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.