_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[17],{"I/41":function(e,t,a){"use strict";var o=a("q1tI"),r=a.n(o),n=a("pkHT"),l=a("U5GE"),s=a.n(l),c=a("uJt2"),i=a.n(c),d=a("LXLv"),u=a.n(d),p=a("y9eO"),m=a.n(p),h=r.a.createElement,f=function(e){var t=e.isFixed,a=e.logo,o=e.primaryColor,r=e.secondaryColor,n=e.onDonateClick;return h("div",{className:"_header-global pa3 cabin flex flex-row items-center w-100 ".concat(t?"fixed":"relative")},h("a",{className:"_logo-header mr2",href:"/"},h("img",{alt:"Disco Tehran Logo",src:a,className:"_logo-header flex mr4"})),h("nav",{className:"_nav-global flex flex-column f6 f5-l tracked"},h("ul",{className:"flex flex-row mt3  w-100"},h("li",{style:{backgroundColor:o,borderColor:r},className:"flex mr2"},h("a",{className:"ph2 pv1 ph3-l pv2-l flex items-center",href:"/about"},"About")),h("li",{style:{backgroundColor:o,borderColor:r},className:"flex mr2"},h("a",{className:"ph2 pv1 ph3-l pv2-l flex items-center",href:"/stories"},"Stories")),h("li",{style:{backgroundColor:o,borderColor:r},className:"flex mr2"},h("a",{className:"ph2 pv1 ph3-l pv2-l flex items-center",href:"https://store.discotehran.nyc"},"Store")),h("li",{style:{backgroundColor:o,borderColor:r},className:"flex mr2"},h("a",{className:"ph2 pv1 ph3-l pv2-l flex items-center",href:"https://discotehran.nyc/zine/issue02"},"Zine")),h("li",{style:{backgroundColor:o,borderColor:r},className:"flex mr2"},h("a",{className:"ph2 pv1 ph3-l pv2-l flex items-center",target:"_blank",href:"https://soundcloud.com/discotehran"},"Archives")),h("li",{style:{backgroundColor:o,borderColor:r,borderRadius:"100%"},className:"flex pa2 mr2"},h("a",{className:"flex items-center justify-center",target:"_blank",href:"https://www.instagram.com/discotehran.nyc/"},h(s.a,null))),h("li",{style:{backgroundColor:o,borderColor:r,borderRadius:"100%"},className:"flex _navbar-social-icon pa2 mr2"},h("a",{className:"flex items-center justify-center",target:"_blank",href:"https://www.facebook.com/discotehran/"},h(i.a,null))),h("li",{style:{backgroundColor:o,borderColor:r,borderRadius:"100%"},className:"flex _navbar-social-icon pa2 mr2"},h("a",{className:"flex items-center justify-center",target:"_blank",href:"https://twitter.com/discotehran"},h(u.a,null))),h("li",{style:{backgroundColor:o,borderColor:r,borderRadius:"100%"},className:"flex _navbar-social-icon pa2 mr2"},h("a",{className:"flex items-center justify-center",target:"_blank",href:"http://eepurl.com/dxpJTf"},h(m.a,null))),h("li",{style:{backgroundColor:o,borderColor:r,borderRadius:"50px",textTransform:"uppercase"},className:"flex mr2"},h("a",{onClick:n,className:"ph2 pv1 ph3-l pv2-l flex items-center",href:"#"},"Donate")))))},g=a("VImo"),b=r.a.createElement;t.a=function(e){var t=e.children,a=e.title,o=e.logo,l=e.primaryColor,s=e.secondaryColor,c=e.backgroundImage,i=e.backgroundRepeat,d=e.backgroundSize,u=e.socialDescription,p=e.socialImage,m=e.dimmed,h=e.isHeaderFixed,y=e.handleOpenDonateModal;return b(r.a.Fragment,null,b(n.a,{title:a,socialImage:p,socialDescription:u}),b(g.a,{dimmed:m,backgroundImage:c,backgroundRepeat:i,backgroundSize:d}),b(f,{isFixed:h,logo:o,primaryColor:l,secondaryColor:s,onDonateClick:y}),t)}},Juyh:function(e,t,a){"use strict";a.r(t);var o=a("vJKn"),r=a.n(o),n=a("rg98"),l=a("H+61"),s=a("UlJF"),c=a("+Css"),i=a("7LId"),d=a("VIvw"),u=a("iHvq"),p=a("cpVT"),m=a("q1tI"),h=a.n(m),f=a("mOvS"),g=a.n(f),b=a("I/41"),y=a("DlQD"),v=a.n(y),w=a("9rZX"),C=a.n(w),k=a("YSmr"),x=a("yvDL"),N=h.a.createElement;function _(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,o=Object(u.a)(e);if(t){var r=Object(u.a)(this).constructor;a=Reflect.construct(o,arguments,r)}else a=o.apply(this,arguments);return Object(d.a)(this,a)}}var D=g()().publicRuntimeConfig.prod.BASE_URL,I=function(e){var t=e.bgColor,a=e.borderColor;return N("div",{style:{backgroundColor:t,borderColor:a,position:"absolute",borderRadius:"3px",top:5,bottom:5,right:5,left:5,zIndex:10},className:"pa4 inter"},N("div",{className:"lds-ring"},N("div",null),N("div",null),N("div",null),N("div",null)),N("p",{className:"ph2 i f3 fw4 tc mt4 white mb1"},"Your donation is being processed ..."))},S=function(e){var t=e.message;return N("p",{className:"_yellow ph2 i fw4 mt1 mb4"},t)},O=function(e){e.email;return N("div",{style:{},className:"pa4 w-100"},N("h6",null,"\ud83d\ude4f\ud83c\udffc Thank you for your donation!"),N("p",{className:"lh-copy"},N("small",{className:"i"},"Your donation will help us continue to serve hungry families in New York City, and it is very much appreciated. \ud83c\udf39"),N("br",null)))};C.a.setAppElement("#__next");var j=function(e){Object(i.a)(a,e);var t=_(a);function a(e){var o;return Object(l.a)(this,a),o=t.call(this,e),Object(p.a)(Object(c.a)(o),"state",{onAir:!1,isMuted:!0,isChatMinimized:!0,stripeErrorMessage:"",clientSecret:null,donationComplete:!1,status:"SETTLED",donationSuccessful:!1,donationAmountInDollars:5,activeStreamingKey:"",bannerText:"",messages:[],message:"",userID:null,userIDInput:"",chatColor:"#ffffff",donateModalOpen:!1,heartReactionCount:0}),Object(p.a)(Object(c.a)(o),"openDonateModal",(function(){o.setState({donateModalOpen:!0})})),Object(p.a)(Object(c.a)(o),"closeDonateModal",(function(){o.setState({donateModalOpen:!1,stripeErrorMessage:"",donationSuccessful:!1,donationComplete:!1})})),Object(p.a)(Object(c.a)(o),"getDonateModalStyles",(function(e,t){var a;return{overlay:{zIndex:100,position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)"},content:(a={zIndex:101,position:"absolute",top:"50%",left:"50%",bottom:"auto",right:"auto",transform:"translate(-50%, -50%)",backgroundColor:e,border:"4px solid ".concat(t),borderRadius:"15px",overflow:"visible",WebkitOverflowScrolling:"touch"},Object(p.a)(a,"borderRadius","15px"),Object(p.a)(a,"outline","none"),Object(p.a)(a,"padding","30px"),Object(p.a)(a,"width","auto"),Object(p.a)(a,"height","auto"),Object(p.a)(a,"maxWidth","400px"),a)}})),o}return Object(s.a)(a,[{key:"render",value:function(){var e=this.props,t=e.sitePreferences,a=e.pageContent,o=t.primaryColor,r=t.secondaryColor,n=t.backgroundImage,l=t.logo,s=t.backgroundSize,c=t.backgroundRepeat,i=t.socialDescription,d=t.socialImage,u=v()(a.bodyText).replace('src="/upload','src="https://api.discotehran.nyc/upload');return N(b.a,{isHeaderFixed:!1,dimmed:!1,logo:"".concat(D).concat(l.url),socialImage:"".concat(D).concat(d.url),socialDescription:i,backgroundImage:"".concat(D).concat(n.url),backgroundRepeat:!!c,backgroundSize:s,primaryColor:o,handleOpenDonateModal:this.openDonateModal,secondaryColor:r},N(C.a,{isOpen:this.state.donateModalOpen,style:this.getDonateModalStyles(o,r),onRequestClose:this.closeDonateModal,contentLabel:"Donate"},N("div",{className:"_modal-donate-plate-screw top-left f3",style:{color:r}},"\u2022"),N("div",{className:"_modal-donate-plate-screw top-right f3",style:{color:r}},"\u2022"),N("div",{className:"_modal-donate-plate-screw bottom-left f3",style:{color:r}},"\u2022"),N("div",{className:"_modal-donate-plate-screw bottom-right f3",style:{color:r}},"\u2022"),N("header",{className:"_modal-donate-header cabin mb3"},N("img",{className:"_modal-logo",src:"".concat(D,"/").concat(l.url),alt:"logo"})),N("hr",{className:"_hr-white"}),"PENDING"===this.state.status&&N(I,{bgColor:o,borderColor:r}),N("main",{className:"_modal-donate-body inter"},N("p",{className:"f4 fw4 lh-copy"},N("small",null,"Please choose a donation amount (USD)")),this.state.stripeErrorMessage.length>0&&N(S,{message:this.state.stripeErrorMessage}),!this.state.donationComplete&&N("input",{required:!1,className:"pv1 pr5 pl2 flex mb4 w-100",type:"text",pattern:"[0-9]*",value:this.state.donationAmountInDollars,onChange:this.updateDonationAmount}),!this.state.donationSuccessful&&N(x.a,{primaryColor:o,secondaryColor:r,handleStatusChange:this.updateStatus,clientSecret:this.state.clientSecret,amountInDollars:this.state.donationAmountInDollars,handleStripeSuccess:this.onStripeSuccess,handleStripeError:this.updateStripeErrorMessage}),this.state.donationSuccessful&&N(O,null)),N("hr",{className:"_hr-white mt3"}),N("footer",{className:"_modal-donate-footer inter mt3"},N("p",{className:"lh-copy f6"},"* Alternatively, you can send us donations on Venmo at @Disco-Tehran. Only mention \u201cDonation\u201d"),N("button",{onClick:this.closeDonateModal,className:"_modal-donate-button-done f7 ttu cabin fw7",style:{borderColor:r,backgroundColor:o}},"\xa1Gracias, \u0645\u0631\u0633\u06cc!"))),N("div",{className:"flex w-100 items-start flex-column pa2 pa4-l _wrapper-sheet"},N("div",{dangerouslySetInnerHTML:{__html:u},style:{backgroundColor:o,borderColor:r},className:"_sheet-content w-100 w-80-ns inter pa2 pa4-l f4-ns f6 lh-copy"})))}}],[{key:"getInitialProps",value:function(){var e=Object(n.a)(r.a.mark((function e(){var t,a;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(D,"/").concat(k.a));case 3:return t=e.sent,e.next=6,t.json();case 6:if(!(a=e.sent).hasOwnProperty("error")){e.next=9;break}throw a;case 9:return e.abrupt("return",{pageContent:a,error:null});case 12:return e.prev=12,e.t0=e.catch(0),console.log("\ud83d\udea9 Failed to get About page content: ",e.t0),e.abrupt("return",{pageContent:null,error:e.t0});case 16:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}()}]),a}(m.Component);t.default=j},U5GE:function(e,t,a){"use strict";var o=a("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(a("q1tI")),n=(0,o(a("8/g6")).default)(r.default.createElement("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");t.default=n},VImo:function(e,t,a){"use strict";var o=a("q1tI"),r=a.n(o).a.createElement;t.a=function(e){var t=e.backgroundImage,a=e.backgroundRepeat,o=e.backgroundSize,n=e.dimmed;return r("div",{style:{backgroundImage:"url('".concat(t,"')"),backgroundRepeat:a?"repeat":"no-repeat",backgroundSize:o},className:"_background-global"},n&&r("div",{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute",top:0,left:0,bottom:0,right:0}}))}},pkHT:function(e,t,a){"use strict";var o=a("q1tI"),r=a.n(o),n=a("g4pe"),l=a.n(n),s=r.a.createElement;t.a=function(e){var t=e.title,a=e.socialDescription,o=e.socialImage;return s(l.a,null,s("title",null,t||"Disco Tehran"),s("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=UA-120549744-1"}),s("script",{dangerouslySetInnerHTML:{__html:"\n            window.dataLayer = window.dataLayer || [];\n            function gtag(){dataLayer.push(arguments);}\n            gtag('js', new Date());\n            gtag('config', 'UA-120549744-1');\n            "}}),s("meta",{name:"twitter:card",content:"summary"}),s("meta",{name:"twitter:site",content:"@discotehran"}),s("meta",{property:"og:url",content:"http://discotehran.nyc"}),s("meta",{property:"og:title",content:"Disco Tehran"}),s("meta",{property:"og:image",content:o}),s("meta",{property:"og:url",content:"http://discotehran.nyc"}),s("meta",{property:"og:site_name",content:"Disco Tehran"}),s("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",name:"viewport"}),s("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),s("meta",{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"}),s("meta",{property:"og:image:width",content:"600"}),s("meta",{property:"og:image:height",content:"600"}),s("meta",{property:"og:description",content:a}),s("meta",{charSet:"utf-8"}),s("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no"}),s("link",{href:"https://fonts.googleapis.com/css?family=Cabin+Condensed:wght@400;700&display=swap",rel:"stylesheet"}),s("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;700&display=swap",rel:"stylesheet"}),s("link",{href:"https://fonts.googleapis.com/icon?family=Material+Icons",rel:"stylesheet"}),s("link",{rel:"icon",href:"./favicon.ico"}))}},rB5V:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return a("Juyh")}])},y9eO:function(e,t,a){"use strict";var o=a("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(a("q1tI")),n=(0,o(a("8/g6")).default)(r.default.createElement("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}),"Email");t.default=n}},[["rB5V",0,1,2,3,4,5,8]]]);