configs/walls/CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c.db8b7dbdaf981305b70d.js

2 lines
24 KiB
JavaScript
Raw Normal View History

2019-03-12 13:36:46 -05:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"],{"./src/reddit/actions/governance/index.ts":function(e,t,o){"use strict";var r=o("./src/app/strings/index.ts"),n=o("./src/lib/makeActionCreator/index.ts"),s=o("./src/lib/prettyPrintNumber/index.ts"),i=o("./src/reddit/actions/modal.ts"),d=o("./src/reddit/actions/post.ts"),c=o("./src/reddit/actions/toaster.ts"),a=o("./src/config.ts"),l=o("./src/reddit/endpoints/governance/requester.ts");var u=o("./src/reddit/endpoints/governance/poll.ts");o("./src/reddit/endpoints/governance/wallet.ts");var p=o("./src/reddit/models/Poll/index.ts"),m=o("./src/reddit/models/Toast/index.ts"),f=o("./src/reddit/models/Vote/index.ts"),v=o("./src/reddit/selectors/gov.ts"),g=o("./src/reddit/actions/governance/constants.ts"),b=o("./src/reddit/actions/governance/errorToast.ts");o.d(t,"a",function(){return h}),o.d(t,"b",function(){return x}),o.d(t,"d",function(){return j}),o.d(t,"e",function(){return O}),o.d(t,"h",function(){return k}),o.d(t,"f",function(){return T}),o.d(t,"g",function(){return M}),o.d(t,"c",function(){return L});const h=Object(n.a)(g.b),x=Object(n.a)(g.c),y=Object(n.a)(g.d),j=Object(n.a)(g.e),O=(Object(n.a)(g.f),Object(n.a)(g.g),Object(n.a)(g.h)),C=Object(n.a)(g.i),I=Object(n.a)(g.j),w=Object(n.a)(g.k),S=Object(n.a)(g.q),k=Object(n.a)(g.r),_=Object(n.a)(g.s),N=Object(n.a)(g.t),P=(Object(n.a)(g.u),Object(n.a)(g.v),Object(n.a)(g.w)),T=(e,t)=>async(o,r,{apiContext:n})=>{const s=r().polls.models[e];o(I({pollId:e}));const i=await Object(u.b)(n(),s.subredditId,e,t);if(i.ok){o(w(i.body));const t=r(),n=t.polls.models[e];if(n&&Object(p.d)(n)){const e=n.postId,r=t.posts.models[e];r&&r.voteState===f.a.notVoted&&o(Object(d.J)(e))}}else o(C({pollId:e,error:i.error})),Object(b.a)(o,i.error)},M=(e,t)=>async(o,n,{apiContext:d})=>{o(_());const u=n().transfers.communityPoints.contentId||void 0,p=await function(e,t){return Object(l.a)(e,{data:{amount:t.amount,contentId:t.contentId,description:t.message,receiveUserName:t.recipient},endpoint:`${a.a.metaUrl}/wallets/me/${t.subredditId}/transfers`,method:"post"})}(d(),Object.assign({},e,{contentId:u}));if(p.ok){const d=n().user.language;o(N(Object.assign({},p.body,{subredditId:e.subredditId}))),o(Object(c.e)({kind:m.b.SuccessCommunity,text:Object(r.a)(d,"gov.transferSuccess",{amount:Object(s.a)(e.amount),recipient:e.recipient,tokenName:Object(v.i)(n(),{subredditId:e.subredditId})})})),t&&o(Object(i.f)())}else o(S({error:p.error})),Object(b.a)(o,p.error)},L=(e,t)=>async(o,n,{apiContext:s})=>{o(y());const i=await function(e,t,o){return Object(l.a)(e,{data:{optOut:t},method:"patch",endpoint:`${a.a.metaUrl}/wallets/${o}/me`})}(s(),e,t);if(i.ok){o(P({[t]:i.body}));const s=e?"polls.optOutSuccess":"polls.optInSuccess";o(Object(c.e)({kind:m.b.SuccessCommunity,text:Object(r.a)(n().user.language,s,{tokenName:Object(v.i)(n(),{subredditId:t})})}))}else Object(b.a)(o,i.error)}},"./src/reddit/components/Governance/Token/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var r,n=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/reselect/lib/index.js"),i=o("./src/config.ts"),d=o("./src/reddit/selectors/gov.ts"),c=(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&s)for(var d in s)void 0===t[d]&&(t[d]=s[d]);else t||(t=s||{});if(1===i)t.children=n;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:r,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=Object(s.createStructuredSelector)({tokenSymbol:d.j});t.a=Object(n.connect)(a)(function(e){const t=e.grey?e.tokenSymbol.grey:e.tokenSymbol.filled;return c("img",{className:e.className,src:`${i.a.assetPath}/${t}`})})},"./src/reddit/components/Hovercards/AuthorHovercard/HoverCard.tsx":function(e,t,o){"use strict";var r,n=o("./node_modules/react/index.js"),s=o.n(n),i=o("./node_modules/react-redux/es/index.js
//# sourceMappingURL=CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c.db8b7dbdaf981305b70d.js.map