(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{2851:function(n,e,t){"use strict";t.r(e);var r=t(173),a=t(174),o=t(176),i=t(175),s=t(177),c=t(35),l=t(0),u=t(168),d=t(7),p=t(161);function h(){var n=Object(c.a)(["\n  font-family: ",";\n  font-size: 36px;\n  font-weight: bold;\n  line-height: 49px;\n  margin-bottom: 20px;\n\n  "," {\n    font-size: 24px;\n    line-height: 30px;\n  }\n"]);return h=function(){return n},n}function m(){var n=Object(c.a)(["\n  margin: 0 auto;\n  max-width: 800px;\n  padding: 50px 0;\n  width: 100%;\n\n  "," {\n    padding: 50px 20px;\n  }\n"]);return m=function(){return n},n}var f=d.default.div(m(),p.mediaQueries.MOBILE),y=d.default.h1(h(),p.fonts.SANS_SERIF,p.mediaQueries.MOBILE),b=t(356),g=t(286),v=t(170),E=t.n(v);function S(){var n=Object(c.a)(["\n  query Post($search: PostSearchInput!) {\n    postsSearch(search: $search) {\n      posts {\n        ... on PostExternalLink {\n          id\n          channelID\n          createdAt\n          openGraphData {\n            url\n            title\n            description\n            images {\n              url\n            }\n            article {\n              published_time\n            }\n          }\n          channel {\n            isStripeConnected\n            newsroom {\n              contractAddress\n              multisigAddress\n              charter {\n                name\n                newsroomUrl\n                mission {\n                  purpose\n                }\n                socialUrls {\n                  twitter\n                  facebook\n                  email\n                }\n              }\n            }\n          }\n          payments {\n            usdEquivalent\n            payerChannel {\n              handle\n              tiny72AvatarDataUrl\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return S=function(){return n},n}t.d(e,"STORY_FEED_QUERY",function(){return w});var w=E()(S()),O=function(n){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(i.a)(e).apply(this,arguments))}return Object(s.a)(e,n),Object(a.a)(e,[{key:"render",value:function(){return l.createElement(l.Fragment,null,l.createElement(b.Helmet,{title:"Civil Story Feed - The Civil Registry"}),l.createElement(g.a,null),l.createElement(f,null,l.createElement(y,null,"Story Feed"),l.createElement(u.Query,{query:w,variables:{search:{postType:"externallink"}}},function(n){var e=n.loading,t=n.error,r=n.data;return e?l.createElement(p.LoadingMessage,null,"Loading Story Feed"):!t&&r&&r.postsSearch?r.postsSearch.posts.map(function(n,e){return l.createElement(p.StoryFeedItem,{key:e,storyId:n.id,activeChallenge:!1,createdAt:n.createdAt,isStripeConnected:n.channel.isStripeConnected,newsroom:n.channel.newsroom,openGraphData:n.openGraphData,displayedContributors:n.payments,sortedContributors:n.payments,totalContributors:n.payments?n.payments.length:0})}):(console.error("error loading Story Feed data. error:",t,"data:",r),"Error loading Story Feed.")})))}}]),e}(l.Component);e.default=O},286:function(n,e,t){"use strict";var r=t(173),a=t(174),o=t(176),i=t(175),s=t(177),c=t(0),l=function(n){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(i.a)(e).apply(this,arguments))}return Object(s.a)(e,n),Object(a.a)(e,[{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return null}}]),e}(c.Component);e.a=l}}]);