PageSourceSearch

https://www.theprose.com/_next/static/chunks/commons-31743c5a-1089a5bdf83e69ae725c.js

js theprose.com collected 2026-09-24 09:25:58 UTC 110,359 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6376],{41925:function(e,t,n){"use strict";var s=n(27378),i=n(16974),o=n(60659),r=n(33345),a=n(30481),c=n(54409),l=n(38386),u=n(24246),d=null,_=null;t.Z=function(e){var t=e.audioUrl,n=(0,c.Oy)(),g=(0,s.useRef)(null),m=(0,s.useState)(!1),p=m[0],h=m[1],f=(0,r.F4)(),v=a.Z.isProd?o.Th.BLACK_PURPLE:o.Th.BLACK_PURPLE_DEV;(0,s.useEffect)((function(){var e=g.current;if(e){var t=function(){return h(!1)};return e.addEventListener("ended",t),function(){e.removeEventListener("ended",t)}}}),[]);var b=(0,s.useCallback)((function(e){f(e)}),[f]),x=(0,s.useCallback)((function(){var e=g.current;e&&(p?(e.pause(),h(!1),d=null,_=null):(d&&d!==e&&(d.pause(),d.currentTime=0,_&&_()),e.play(),h(!0),d=e,_=function(){return h(!1)}))}),[p]),y=(0,s.useCallback)((function(){"black"===n.subscription_status?x():b(v)}),[n,x,b,v]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.VC,{icon:p?i.wN:i.o1,onClick:y,selected:p,classModifier:"audio"}),(0,u.jsx)("audio",{ref:g,src:t||void 0,preload:"auto"})]})}},99935:function(e,t,n){"use strict";n.d(t,{F:function(){return Q}});var s=n(99268),i=n(27378),o=n(54409),r=n(1717),a=n(38566),c=n(13463),l=n.n(c),u=n(87065),d=n(40384),_=n(16974),g=n(20598),m=n(52077),p=n(99135),h=n(72428),f=n(60042),v=n.n(f),b=n(24246),x=function(e){var t,n,s=e.model,c=e.setPreview,p=(0,o.Oy)(),f=(0,i.useState)(null!==(t=p.email)&&void 0!==t?t:""),x=f[0],j=f[1],w=(0,i.useState)(null!==(n=p.phone)&&void 0!==n?n:""),S=w[0],C=w[1],N={Email:{value:x,setValue:j,inputTitle:"Email",icon:_.bV},Phone:{value:S,setValue:C,inputTitle:"Phone",icon:_.BE}},P=(0,g.BR)(),k=(0,a.Z)(P,2),O=k[0],T=k[1],E=(0,m.Io)(),A=(0,a.Z)(E,2),D=A[0],M=A[1],R=(0,i.useCallback)((function(){var e={email:x,phone:S},t=("Email"===s?y(e,"Email"):y(e)).error;t?T(t):D(e).then((function(){O("Changes saved."),c(N[s].value)})).catch(T)}),[x,S,T,D]),I=function(){return"Email"===s?(0,h.IQ)(p.email,x):(0,h.IQ)(p.phone,S)};return(0,b.jsxs)("div",{className:l()["settings-content-tab-container"],children:[(0,b.jsx)(u.G,{title:N[s].inputTitle,value:N[s].value,setValue:N[s].setValue,icon:N[s].icon}),(0,b.jsxs)("div",{className:l()["action-section"],children:[I()&&(0,b.jsx)(d.Kk,{title:"Revert",onClick:function(){N[s].setValue("Email"===s?p.email:p.phone)},styleClass:l()["revert-button"],disabled:!I()}),(0,b.jsx)(d.Kk,{title:"Save",onClick:R,loading:M,styleClass:v()(l()["action-button"],(0,r.Z)({},l()["action-button-disabled"],!I())),disabled:!I()})]})]})};function y(e,t){if("Email"===t&&!e.email)return(0,p.xo)("Invalid email.");if("Email"!==t){if(!e.phone.match(/^\+?[0-9]+$/))return(0,p.xo)("Invalid phone number.")}return{valid:!0}}var j=n(16972),w=n(15701),S=n.n(w),C=n(74300);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}var P=function(e){(0,j.Z)(e);var t=(0,o.Oy)(),n=(0,C.km)(),s=n.isRunningInMobileApp,i=n.platformOS;return(0,b.jsx)("div",{className:S()["settings-content-tab-container"],children:(0,b.jsx)("div",{className:S()["action-section"],children:(0,b.jsx)(d.Kk,{title:"Restore Purchase",onClick:function(){if(s&&"ios"===i&&t){var e,n,o={authorSubscriptions:t.authorSubscriptions,email:t.email,id:t.id,subscription_status:t.subscription_status,phone:t.phone,username:t.username,status:t.status};null===(e=window)||void 0===e||null===(n=e.ReactNativeWebView)||void 0===n||n.postMessage(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"restore-purchase"},o)))}},styleClass:v()(S()["action-button"])})})})};var k=n(46565),O=n.n(k),T=n(11493),E=n(72470),A=n(35842),D=n(6952),M=n(88742),R=n.n(M),I=n(35930),U=n.n(I),Z=function(e){var t=e.disabled,n=e.title,s=e.type,i=e.onClick;return(0,b.jsx)("div",{className:U()["action-section"],children:(0,b.jsx)(d.Kk,{onClick:i,title:n,disabled:t,styleClass:v()(U()["action-button-".concat(s)],(0,r.Z)({},U()["action-button-".concat(s,"-disabled")],t))})})},L=function(e){var t=e.type,n=(0,m.u5)(),s=(0,a.Z)(n,1)[0],o=(0,m.Gz)(),r=(0,a.Z)(o,1)[0],c=(0,g.bq)(),l="delete"===t?"Confirm deleti
1on":"Confirm",d=(0,i.useState)(""),_=d[0],p=d[1],f=!(0,h.IQ)("",_),v=(0,i.useCallback)((0,D.Z)(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s({password:_});case 3:window.location.href="/",e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),c(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[_]),x=(0,i.useCallback)((0,D.Z)(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r({password:_});case 3:window.location.href="/",e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),c(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[_]);return(0,b.jsxs)("div",{className:U().container,children:[(0,b.jsxs)("div",{className:U().description,children:["In order to ",t," your account, please enter your password."]}),"delete"===t&&(0,b.jsx)("div",{className:U()["delete-advice"],children:(0,b.jsx)(h.py,{})}),(0,b.jsx)("div",{className:U().input,children:(0,b.jsx)(u.G,{title:"Password",value:_,setValue:p,type:"password"})}),(0,b.jsx)(Z,{title:l,disabled:f,type:t,onClick:"delete"===t?x:v})]})},B=function(){var e=(0,i.useMemo)((function(){return["Your friends will not be able to message you, but they will be able to read the messages you have exchanged with them.","Your account and its contents will not be visible online.","When viewing the messages you have exchanged, your avatar will be blank, but your name will remain visible.","All of your content and information will be saved, so if you ever return, it will be 100% back to normal."]}),[]),t=(0,i.useMemo)((function(){return["All of your information will be PERMANENTLY deleted. We will not retain any of it.","You will have 30 days to undo this action by logging back in.","After 30 days, your information will be gone and you will NOT be able to retrieve it."]}),[]),n=(0,A.D)().handleSectionChange,s=(0,T.ye)(E.T.DOWNLOAD_ACCOUNT_DATA),o=(0,T.ye)(E.T.DELETE_ACCOUNT);return(0,b.jsxs)("div",{className:O().container,children:[(0,b.jsx)(h.Di,{}),s&&(0,b.jsx)(h.py,{}),(0,b.jsxs)("div",{className:"deactivate-account",children:[(0,b.jsx)(h.yd,{title:"Deactivate account",items:e}),(0,b.jsx)("div",{className:O()["action-button"],children:(0,b.jsx)(d.Kk,{title:"Deactivate",style:{padding:"10px 30px",color:"#ffffff",background:"#777777",maxWidth:"142px"},onClick:function(){return n({title:"Deactivate my account",viewTitle:"Deactivate my account",viewComponent:(0,b.jsx)(L,{type:"deactivate"})})}})})]}),o&&(0,b.jsxs)("div",{className:O()["delete-account"],children:[(0,b.jsx)(h.yd,{title:"Delete account",items:t}),(0,b.jsx)("div",{className:O()["action-button"],children:(0,b.jsx)(d.Kk,{title:"Delete",type:d.m5.DESTRUCTIVE,style:{padding:"10px 45px",maxWidth:"142px"},onClick:function(){return n({title:"Delete my account",viewTitle:"Delete my account",viewComponent:(0,b.jsx)(L,{type:"delete"})})}})})]})]})},F=n(72135),Y=n.n(F),G=function(){return(0,b.jsxs)("div",{className:Y().container,children:[(0,b.jsx)("div",{className:Y().description,children:"We offer the ability to download your data as a zip file. This includes:"}),(0,b.jsx)("div",{className:Y().list,children:(0,b.jsx)(h.Gn,{items:["All of your posts.","All of your comments.","All private messages sent and received.","The names of all your followers.","Your profile description.","Your avatar and banner image."]})}),(0,b.jsxs)("div",{className:Y()["action-section"],children:[(0,b.jsx)(d.Kk,{title:"Download my data",styleClass:Y()["action-button"]}),(0,b.jsx)("div",{className:Y()["data-text"],children:"Your data is 24.4 mb."})]})]})},W=n(50301),K=n(91190),V=n.n(K),z=function(){var e=(0,i.useState)(""),t=e[0],n=e[1],s=(0,i.useState)(""),o=s[0],r=s[1],c=(0,i.useState)(""),l=c[0],_=c[1],g=(0,W.BR)(),h=(0,a.Z)(g,2),f=h[0],v=h[1],x=(0,m.Io)(),y=(0,a.Z)(x,2),j=y[0],w=y[1],S=(0,i.useCallback)((function(){var e={password:{current:t,password:o,repeat:l}},n=function(e){var t=e.password,n=t.current,s=t.password,i=t.repeat;if(!s||!i||!n)return(0,p.xo)("You must fill in all three password fields.");if(i!==s)return(0,p.xo)("Passwords do not match.");return{valid:!0}}(e).error;n?v(n):j(e).then((function(){return f("Changes saved.")})).catch(v)}),[t,o,l,v,j]);return(0,b.jsxs)("div",{className:V().container,children:[(0,b.jsx)(u.G,{title:"Enter old password",value:t,setValue:n,type:"password",autoComplete:!1,placeholder:" "}),(0,b.jsx)(u.G,{title:"Create new password",value:o,setValue:r,type:"password",autoComplete:!1,placeholder:" "}),(0,b.jsx)(u.G,{title:"Repeat new password",value:l,setValue:_,type:"password",autoComplete:!1,placeholder:" "}),(0,b.jsxs)("div",{className:V()["action-section"],children:[(0,b.jsx)("button",{className:V()["cancel-button"],children:"Cancel"}),(0,b.jsx)(d.Kk,{title:"Change",type:d.m5.BLUE,onClick:S,loading:w,style:{width:"148px",height:"52px"}})]})]})};var H,q=n(97275),X=n(94620);!function(e){e.EMAIL="Your email",e.PHONE="Phone number",e.DELETE_ACCOUNT_MENU="Close my account",e.DEACTIVATE_ACCOUNT="Deactivate account",e.DELETE_ACCOUNT="Delete account",e.DEFAULT="DEFAULT",e.DOWNLOAD_DATA="Download my data",e.CHANGE_PASSWORD="Change password"}(H||(H={}));var Q=function(){var e,t,n=(0,o.Oy)(),r=(0,i.useState)(null!==(e=n.email)&&void 0!==e?e:""),a=r[0],c=r[1],l=(0,i.useState)(null!==(t=n.phone)&&void 0!==t?t:""),u=l[0],d=l[1],_=(0,C.km)().platformOS,g=[{title:"Your email",viewTitle:"Change e-mail address",preview:a,viewComponent:(0,b.jsx)(x,{model:"Email",setPreview:c})},{title:"Phone number",viewTitle:"Change phone number",preview:u,viewComponent:(0,b.jsx)(x,{model:"Phone",setPreview:d})},{title:"Classic View",viewTitle:"Toggle Classic View",viewComponent:(0,b.jsx)(X.Gj,{isAccount:!0})}].concat((0,s.Z)(_?[{title:"Restore purchase",viewTitle:"Restore purchase",viewComponent:(0,b.jsx)(P,{})}]:[]),[{title:"Change password",viewTitle:"Change password",viewComponent:(0,b.jsx)(z,{})},{title:"Download my data",viewTitle:"Your Data",viewComponent:(0,b.jsx)(G,{}),featureFlag:E.T.DOWNLOAD_ACCOUNT_DATA},{title:"Close my account",viewTitle:"Close account",viewComponent:(0,b.jsx)(B,{}),featureFlag:E.T.CLOSE_ACCOUNT_TAB}]);return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(q.Z,{title:"Account",sections:g,fullSpace:!0})})}},72428:function(e,t,n){"use strict";n.d(t,{Di:function(){return r},py:function(){return a},Gn:function(){return l},yd:function(){return u},IQ:function(){return d}});var s=n(46565),i=n.n(s),o=(n(99935),n(16974),n(24246)),r=function(){return(0,o.jsx)("div",{className:i().description,children:"We are sorry to see you go, but we won't make this harder than 
1it has to be! here are two options we offer for closing your account."})},a=function(){return(0,o.jsxs)("div",{className:i()["container-advice"],children:[(0,o.jsx)("div",{className:i()["container-advice-title"],children:"Consider downloading your data first!"}),(0,o.jsxs)("div",{className:i()["container-advice-text"],children:["Before deleting your account, you might want to get your data.",(0,o.jsx)("br",{}),(0,o.jsx)("span",{className:i().link,children:" Click here"})," to get a zip file of all your content."]})]})},c=function(e){var t=e.content;return(0,o.jsx)("li",{className:i()["text-list-item"],children:(0,o.jsx)("span",{className:i()["text-content"],children:t})})},l=function(e){var t=e.items;return(0,o.jsx)("ul",{className:i()["text-list"],children:t.map((function(e,t){return(0,o.jsx)(c,{content:e},t)}))})},u=function(e){var t=e.items,n=e.title;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:i()["text-list-title"],children:n}),(0,o.jsx)(l,{items:t})]})},d=function(e,t){return e!==t}},64097:function(e,t,n){"use strict";n.d(t,{D:function(){return p}});var s=n(38566),i=n(16972),o=n(2356),r=n.n(o),a=n(27378),c=n(75096),l=n(46985),u=n(88273),d=n(52077),_=n(31981),g=n(50301),m=n(24246),p=function(e){(0,i.Z)(e);var t=(0,_.xY)({blocked_users:!0}),n=t.users,o=t.refetch,p=(0,d.Te)(),h=(0,s.Z)(p,1)[0],f=(0,g.nb)(),v=(0,g.s)(),b=(0,a.useCallback)((function(e){v({type:u.nK.CONFIRM,title:"Unblock",text:"Are you sure you want to unblock ".concat(e.username,"?"),buttonText:"Unblock",destructive:!0,onConfirm:function(){h(e).then((function(){f("Unblocked ".concat(e.username)),o()}))}})}),[h,o,f,v]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:r()["settings-content-title"],children:"Blocked"}),(0,m.jsx)("div",{className:"".concat(r()["settings-content"]," ").concat(r()["settings-blocked"]),children:n&&n.length?n.map((function(e){return(0,m.jsx)(l.r,{user:e,children:(0,m.jsx)("div",{className:r()["unblock-button"],onClick:b.bind(undefined,e),children:"Unblock"})},e.id)})):(0,m.jsx)(c.h,{text:"No blocked users."})})]})}},97275:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var s=n(1717),i=n(27378),o=n(16974),r=n(21571),a=n.n(r),c=n(88557),l=n(4323),u=n.n(l),d=n(24246),_=function(e){var t=e.title,n=e.preview,s=e.onClick;return(0,d.jsxs)("div",{className:u().section,onClick:s,children:[(0,d.jsx)("div",{className:u()["section-tittle"],children:t}),(0,d.jsxs)("div",{className:u()["section-preview"],children:[(0,d.jsx)("div",{className:u()["section-preview-text"],children:null!==n&&void 0!==n?n:""}),(0,d.jsx)(o.XC,{})]})]})},g=n(60042),m=n.n(g);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t,n=e.sections,o=e.onSectionChange,r=e.type;return(0,d.jsx)("div",{className:m()(u().accordion,(t={},(0,s.Z)(t,u()["accordion-account"],"Account"===r),(0,s.Z)(t,u()["accordion-payments"],"Payments"===r),t)),children:null===n||void 0===n?void 0:n.map((function(e,t){var n=h(h({},e),{},{onClick:function(){return o(e)}});return"Classic View"===e.title?(0,d.jsxs)("div",{className:u().section,children:[(0,d.jsx)("span",{className:u()["section-tittle"],children:e.title}),e.viewComponent]},t):e.featureFlag?(0,d.jsx)(c.Z,{feature:e.featureFlag,children:(0,d.jsx)(_,h({},n))},t):(0,i.createElement)(_,h(h({},n),{},{key:t}))}))})},v=n(35842),b=function(e){var t=e.onRoot,n=e.title,s=e.lastViewTitle,i=e.onClick,r=e.viewTitle;return t?(0,d.jsx)("div",{className:a()["settings-content-title"],children:n}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:a()["title-back-container"],onClick:i,children:[(0,d.jsx)(o.wy,{}),(0,d.jsxs)("div",{className:a()["title-back-text"],children:["Back to ",s]})]}),""!==r&&(0,d.jsx)("div",{className:a()["settings-content-title-sub"],children:r})]})},x=function(e){var t,n,o=e.title,r=e.rootPage,c=e.sections,l=e.fullSpace,u=(0,i.useState)(null),_=u[0],g=u[1],p=(0,i.useState)(null),h=p[0],x=p[1],y=(0,i.useCallback)((function(e){g(h),x(e)}),[h,_]);return(0,d.jsxs)(v.Z,{currentSection:h,handleSectionChange:y,children:[(0,d.jsx)(b,{onRoot:!h,title:o,viewTitle:null!==(t=null===h||void 0===h?void 0:h.viewTitle)&&void 0!==t?t:"",lastViewTitle:null!==(n=null===_||void 0===_?void 0:_.title)&&void 0!==n?n:o,onClick:function(){return y(_)}}),(0,d.jsx)("div",{className:m()(a()["settings-content"],(0,s.Z)({},a()["settings-content-full-space"],l)),children:h?h.viewComponent:r}),!h&&(0,d.jsx)(f,{onSectionChange:y,sections:c,type:o})]})}},35842:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var s=n(27378),i=n(24246),o=(0,s.createContext)(null);t.Z=function(e){var t=e.children,n=e.currentSection,s=e.handleSectionChange;return(0,i.jsx)(o.Provider,{value:{currentSection:n,handleSectionChange:s},children:t})};var r=function(){var e=(0,s.useContext)(o);if(!e)throw new Error("No settings context found");return e}},70160:function(e,t,n){"use strict";var s=n(27378),i=n(80346),o=n(91953),r=n(97275),a=n(65978),c=n(72470),l=n(54409),u=n(24246);t.Z=(0,a.Z)((function(){var e=(0,l.Oy)(),t=(0,s.useMemo)((function(){var t,n=[];
1return"EMERALD"!==(null===(t=e.membership)||void 0===t?void 0:t.type)&&n.push({title:"Become an Emerald author",viewComponent:(0,u.jsx)(i.Z,{}),featureFlag:c.T.EMERALD_MEMBERSHIP}),n}),[]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(r.Z,{title:"Membership",rootPage:(0,u.jsx)(o.Z,{membership:e.membership}),sections:t})})}),c.T.USER_MEMBERSHIPS_SETTINGS)},79094:function(e,t,n){"use strict";n.d(t,{P:function(){return y}});var s=n(1717),i=n(38566),o=n(63431),r=n.n(o),a=n(27378),c=n(40384),l=n(16974),u=n(99743),d=n(99135),_=n(52077),g=n(50301),m=n(54409),p=n(24246),h=void 0;function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={newsletters:[{value:"off",title:"Off",description:"You'll receive no email newsletters."},{value:"everyone",title:"On",description:"You'll receive the Prose. Weekly email newsletter."}],likes:[{value:"off",title:"Off",description:"You'll receive no notifications from likes or reposts."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow likes or reposts one of your posts."},{value:"everyone",title:"Everyone",description:"You'll receive a notification whenever anyone likes or reposts one of your posts."}],comments:[{value:"off",title:"Off",description:"You'll receive no notifications from comments."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow comments on one of your posts or tags you in a comment."},{value:"everyone",title:"Everyone",description:"You'll receive a notification whenever anyone comments on one of your posts or tags you in a commnet."}],follows:[{value:"off",title:"Off",description:"You'll receive no notifications when people follow you."},{value:"everyone",title:"Everyone",description:"You'll receive a notification when someone follows you."}],messages:[{value:"off",title:"Off",description:"You'll receive no notifications from messages."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow messages you."},{value:"everyone",title:"Everyone",description:"You'll receive a notification whenever anyone messages you."}],posts:[{value:"off",title:"Off",description:"You'll receive no notifications from posts."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow publishes a post."}],challenges:[{value:"off",title:"Off",description:"You'll receive no notifications when someone creates a challenge."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow creates a challenge."}],challenge_posts:[{value:"off",title:"Off",description:"You'll receive no notifications when someone posts on your challenge"},{value:"following",title:"Following",description:"You'll receive notifications when someone posts on your challenge"}],reposts:[{value:"off",title:"Off",description:"You'll receive no notifications if someone reposts your post."},{value:"following",title:"Following",description:"You'll receive a notification when someone you follow reposts your post."},{value:"everyone",title:"Everyone",description:"You'll receive a notification whenever anyone reposts your post."}],spotlight:[{value:"off",title:"Off",description:"You'll receive no notifications if your post gets spotlighted."},{value:"on",title:"On",description:"You'll receive notifications if your post gets spotlighted"}],tips:[{value:"off",title:"Off",description:"You'll receive no notifications if someone tips you."},{value:"on",title:"On",description:"You'll receive notifications if someone tips you."}]};function x(e,t){var n={};for(var s in e)s===t||("object"===typeof e[s]?n[s]=x(e[s],t):n[s]=e[s]);return n}var y=function(){var e=(0,m.Oy)(),t=(0,a.useState)(x(e.notification_settings,"__typename")),n=t[0],o=t[1],l=(0,g.BR)(),f=(0,i.Z)(l,2),y=f[0],w=f[1],S=(0,_.Io)(),C=(0,i.Z)(S,2),N=C[0],P=C[1],k=(0,a.useCallback)((function(){N({notification_settings:n}).then((function(){return y("Changes saved.")})).catch(w)}),[n,w,N]),O=(0,a.useCallback)((function(e,t){o((function(n){return v(v({},n),{},{push:v(v({},n.push),{},(0,s.Z)({},e,t))})}))}),[o]),T=(0,a.useCallback)((function(e,t){o((function(n){return v(v({},n),{},{email:v(v({},n.email),{},(0,s.Z)({},e,t))})}))}),[o]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:r()["settings-content-title"],children:"Notifications"}
1),(0,p.jsxs)("div",{className:r()["settings-content"],children:[Object.keys(b).map((function(e,t){return(0,p.jsxs)("div",{className:r()["settings-notifications-block"],children:[(0,p.jsx)(j,{title:(0,d.RZ)(e)}),(0,p.jsx)(u.e,{items:b[e],value:[n.push[e],n.email[e]],setValue:[O.bind(h,e),T.bind(h,e)],onItemSelect:[]})]},t)})),(0,p.jsx)("div",{className:r()["settings-action-button"],children:(0,p.jsx)(c.Kk,{title:"Save Changes",type:c.m5.BLUE,onClick:k,loading:P})})]})]})},j=function(e){var t=e.title;return(0,p.jsxs)("div",{className:r()["settings-notification-heading"],children:[(0,p.jsx)("div",{className:r()["settings-notification-icon-container"],children:(0,p.jsx)(l.bV,{className:r()["settings-notification-glyph"]})}),(0,p.jsx)("div",{className:r()["settings-notification-icon-container"],children:(0,p.jsx)(l.BE,{className:r()["settings-notification-glyph"]})}),(0,p.jsx)("div",{className:r()["settings-notification-heading-title"],children:t})]})}},46220:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});n(73535);var s=n(60659);n(15231),n(27378),n(68745),n(24246);function i(e){return e.post?.6:e.book?.75:(e.license,s.iU.CASHOUT,1)}},74835:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var s=n(27378),i=n(97275),o=n(65978),r=n(72470),a=n(16972),c=n(54409),l=n(20598),u=n(61582),d=n(39929),_=n.n(d);function g(e){switch(e.brand.toLowerCase()){case"american express":return"card-icon--amex";case"diners club":return"card-icon--dc";case"discover":return"card-icon--discover";case"jcb":return"card-icon--jcb";case"mastercard":return"card-icon--mastercard";case"unionpay":return"card-icon--unionpay";case"visa":return"card-icon--visa";default:return""}}var m=n(24246),p=function(e){var t=e.card;return(0,m.jsxs)("div",{className:_()["settings-subscription-card"],children:[(0,m.jsx)("div",{className:"settings-subscription-card-icon ".concat(g(t))}),(0,m.jsxs)("div",{className:_()["settings-subscription-card-content"],children:[(0,m.jsx)("div",{className:_()["settings-subscription-card-number"],children:"**** **** **** ".concat(t.last4)}),(0,m.jsx)("div",{className:_()["settings-subscription-card-expires"],children:"".concat(t.exp_month,"/").concat(t.exp_year)})]})]})},h=n(1717),f=n(33345),v=n(60659),b=n(40384),x=n(60042),y=n.n(x),j=function(){var e=(0,c.Oy)(),t=(0,f.p_)(),n=(0,f.F2)(),i=(0,s.useCallback)((function(){var s;[v.Th.GOLD,v.Th.LOBBY,v.Th.PROSE_DEV_LOBBY].includes(null===(s=e.stripe)||void 0===s?void 0:s.plan)?n():t()}),[t,n,e]),o=(0,s.useMemo)((function(){var t;return e.stripe&&e.stripe.plan===v.Th.PLATINUM?{title:"Prose. Platinum",content:(0,m.jsxs)(m.Fragment,{children:["Thank you for supporting Prose.! If you have questions about your subscription, please email"," ",(0,m.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),". As a Platinum member you are ",(0,m.jsx)("i",{children:"really"})," helping us to build a better platform for everyone. We can't thank you enough. Long live literature!"]}),showUpgrade:!1}:e.stripe&&[v.Th.GOLD,v.Th.LOBBY,v.Th.PROSE_DEV_LOBBY].includes(null===(t=e.stripe)||void 0===t?void 0:t.plan)?{title:"Prose. Lobby",content:(0,m.jsxs)(m.Fragment,{children:["Thank you for supporting Prose.! If you have questions about your subscription, please email"," ",(0,m.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),". If you'd like to ",(0,m.jsx)("i",{children:"really"})," help us out, consider upgrading to Prose. Platinum. Platinum has all the same features as Lobby, and additionally gets you a special badge on your profile, and a place in our hall of fame."]}),showUpgrade:!0}:{title:"Prose. Free",content:"Subscribe to Prose Lobby to remove ads and support the development of Prose.",showUpgrade:!0}}),[]),r=o.title,a=o.content,l=o.showUpgrade;return(0,m.jsxs)("div",{className:_()["settings-subscription-status"],children:[(0,m.jsx)("div",{className:y()(_()["settings-subscription-status-title"],(0,h.Z)({},_()["settings-subscription-status-title--gold"],e.is_subscriber)),children:r}),(0,m.jsx)("div",{className:_()["settings-subscription-status-text"],children:a}),l&&(0,m.jsx)("div",{className:_()["settings-action-button"],children:(0,m.jsx)(b.Kk,{title:"Upgrade",type:e.is_subscriber?b.m5.PLATINUM:b.m5.GOLD,onClick:i})})]})},w=n(11493),S=function(e){(0,a.Z)(e);var t=(0,c.Oy)(),n=(0,l.s)(),i=(0,w.ye)(r.T.USER_MEMBERSHIPS_SETTINGS),o=(0,s.useCallback)((function(){n({type:u.nK.PAYMENT_METHOD})}),[n]);return(0,m.jsxs)("div",{className:_()["settings-content-tab-container"],children:[!i&&(0,m.jsx)(j,{}),(0,m.jsxs)("div",{className:_()["settings-subscription-payment"],children:[(0,m.jsx)("div",{className:_()["settings-subscription-payment-title"],children:"Payment Method"}),(0,m.jsx)("div",{className:_()["settings-subscription-card-container"],children:t.stripe?(0,m.jsx)(p,{card:t.stripe.card}):"No payment method added."}),(0,m.jsx)("div",{className:_()["settings-subscription-change-card-button"],onClick:o,children:t.stripe?"Change Payment Method":"Add Payment Method"})]})]})},C=n(38566),N=n(68745),P=n(52077),k=n(5366),O=n.n(k),T=n(50301),E=function(){var e=(0,c.Oy)(),t=(0,f.Mg)(),n=(0,P.fs)(),i=(0,C.Z)(n,1)[0],o=(0,l.nb)(),r=(0,T.BR)(),a=(0,C.Z)(r,2),d=(a[0],a[1]),_=(0,s.useCallback)((function(){t({lobbyOption:!1,method:u.Mz.CASH,user:e,text:"You are purchasing Prose. credit. You can use credit on the website or app to purchase content, create prized challenges, and donate to fellow authors.",onConfirm:function(e){return i(e).then((function(){return o("Thank y
1ou for your purchase!")})).catch(d)}})}),[t,e,o,d]);return(0,m.jsxs)("div",{className:O()["payments-container"],children:[(0,m.jsxs)("div",{className:O()["total-title"],children:["Total Credit:",(0,m.jsx)("b",{className:O()["total-title-price"],children:N.u.formatUSD(e.coin_count)})]}),(0,m.jsx)("div",{className:O()["action-section"],children:(0,m.jsx)(b.Kk,{title:"Buy Credit",onClick:_,styleClass:O()["action-button"]})})]})},A=n(75096),D=n(31981),M=n(40202),R=n(35260),I=n.n(R),U=function(e){(0,a.Z)(e);var t=(0,D.sI)(v.je.TRANSACTIONS).transactions;return(0,m.jsxs)("div",{className:I()["settings-content-tab-container"],children:[(0,m.jsx)("div",{className:I()["description-container"],children:(0,m.jsxs)("span",{className:I()["description-container-text"],children:["A history of your purchases and outgoing payments on Prose. To ",(0,m.jsx)("br",{}),"see sales and income from your work, visit",(0,m.jsx)("span",{className:I().link,children:" Sales"}),"."]})}),t&&t.length>0?t.map((function(e){return(0,m.jsx)(M.Z,{transaction:e},e.id)})):(0,m.jsx)(A.h,{text:"No transactions yet."})]})},Z=n(36868),L=(0,o.Z)((function(){var e=(0,s.useMemo)((function(){return[{title:"Purchases",viewTitle:"Purchases",viewComponent:(0,m.jsx)(U,{})},{title:"Sales",viewTitle:"Sales",viewComponent:(0,m.jsx)(Z.x,{})},{title:"Payment methods",viewTitle:"Payment methods",viewComponent:(0,m.jsx)(S,{})}]}),[]);return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Z,{title:"Payments",sections:e,rootPage:(0,m.jsx)(E,{}),fullSpace:!0})})}),r.T.PAYMENTS_SETTINGS_SECTION)},73487:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var s=n(38566),i=n(27378),o=n(40384),r=n(16974),a=n(24241),c=n(87065),l=n(37023),u=n(64426),d=n(92985),_=n(99135),g=n(52077),m=n(48295),p=n.n(m),h=n(50301),f=n(54409),v=n(24246),b=function(){var e=(0,f.Oy)(),t=(0,i.useRef)(null),n=(0,i.useRef)(null),m=(0,i.useState)(e.username),b=m[0],x=m[1],y=(0,i.useState)(e.bio||""),j=y[0],w=y[1],S=(0,i.useState)(!e.hide_reposts),C=S[0],N=S[1],P=(0,h.BR)(),k=(0,s.Z)(P,2),O=k[0],T=k[1],E=(0,g.Io)(),A=(0,s.Z)(E,2),D=A[0],M=A[1],R=(0,i.useCallback)((function(){var e={username:b,bio:j,hide_reposts:!C,avatar:n.current.getBlob(),banner:t.current.getBlob()},s=function(e){if(!e.username)return(0,_.xo)("Invalid username.");return{valid:!0}}(e).error;s?T(s):D(e).then((function(){return O("Changes saved.")})).catch(T)}),[b,j,C,T,D]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:p()["settings-content-title"],children:"Profile"}),(0,v.jsxs)("div",{className:p()["settings-content"],children:[(0,v.jsxs)("div",{className:p()["settings-profile-image-editors"],children:[(0,v.jsx)(u.z,{imageClass:p()["settings-profile-banner-editor"],dimensions:{width:1400,height:400},src:(0,d.w2)(e),ref:t}),(0,v.jsx)("div",{className:p()["settings-profile-avatar-container"],children:(0,v.jsx)(u.z,{imageClass:p()["settings-profile-avatar-editor"],dimensions:{width:200,height:200},src:(0,d.hj)(e),ref:n})})]}),(0,v.jsx)(c.G,{title:"Username",value:b,setValue:x,icon:r.tB}),(0,v.jsx)(l.t,{title:"Bio",value:j,setValue:w}),(0,v.jsx)("div",{className:p()["settings-extra-space"],children:(0,v.jsx)(a.B,{title:"Show Reposts on my Profile",value:C,setValue:N,description:"When checked, posts by other authors that you repost will appear on your profile."})}),(0,v.jsx)("div",{className:p()["settings-action-button"],children:(0,v.jsx)(o.Kk,{title:"Save Changes",type:o.m5.BLUE,onClick:R,loading:M})})]})]})}},22816:function(e,t,n){"use strict";n.d(t,{Z:function(){return Y}});var s=n(27378),i=n(93561),o=n.n(i),r=n(6952),a=n(38566),c=n(88742),l=n.n(c),u=n(78510),d=n.n(u),_=n(40384),g=n(24246),m=function(e){var t=e.price,n=e.handleInputChange,s=e.handleSubmit;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:d()["description-title-started"],children:(0,g.jsx)("span",{children:"To get started, set your subscription price"})}),(0,g.jsxs)("form",{children:[(0,g.jsxs)("div",{className:d()["input-section"],children:[(0,g.jsxs)("div",{className:d()["input-container"],children:[(0,g.jsx)("span",{children:"$"}),(0,g.jsx)("input",{type:"text",className:d()["price-input"],onChange:n,value:t})]}),(0,g.jsx)("span",{children:"/month"})]}),(0,g.jsx)("div",{className:d()["form-action-section"],children:(0,g.jsx)(_.Kk,{title:"Set this price",styleClass:d()["action-button"],onClick:s})})]})]})},p=n(88787),h=n(20598),f=n(54409),v=n(86677),b=function(e){var t=e.setUserPrice,n=(0,p.q)(),i=(0,a.Z)(n,1)[0],o=(0,h.BR)(),c=(0,a.Z)(o,2),u=(c[0],c[1]),_=(0,s.use
1State)("0"),b=_[0],x=_[1],y=(0,f.Oy)(),j=(0,v.useRouter)(),w=function(){var e=(0,r.Z)(l().mark((function e(){var n,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=parseFloat(b),s=parseFloat((100*n).toFixed(2))){e.next=4;break}return e.abrupt("return",u("Please enter a valid price"));case 4:if(null!==y&&void 0!==y&&y.membership&&"EMERALD"===y.membership.type){e.next=6;break}return e.abrupt("return",u("To enable subscriptions you need to be an Emerald author "));case 6:return e.prev=6,e.next=9,i({plans:[{duration:"MONTHLY",value:s},{duration:"QUARTERLY",value:3*s},{duration:"SEMIANNUALLY",value:6*s},{duration:"YEARLY",value:12*s}]});case 9:if(e.sent){e.next=12;break}return e.abrupt("return",u("There was an error trying to enable subscriptions"));case 12:t(s),j.reload(),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),u(e.t0);case 19:case"end":return e.stop()}}),e,null,[[6,16]])})));return function(){return e.apply(this,arguments)}}();return(0,g.jsx)("div",{className:d()["description-container-started"],children:(0,g.jsx)(m,{handleInputChange:function(e){e.preventDefault();try{x(e.target.value)}catch(t){x("0")}},handleSubmit:w,price:b})})},x=n(73535),y=function(e){var t=e.onClick;return(0,g.jsxs)("div",{className:d()["description-container"],children:[(0,g.jsx)("div",{className:d()["description-title"],children:(0,g.jsx)("span",{children:"Begin selling subscriptions"})}),(0,g.jsx)("div",{className:d()["description-text"],children:(0,g.jsx)("span",{children:"As an Emerald member, you can make money with your writing on Prose. It's as simple as setting a price for your subscription, and designating your articles as Premium."})}),(0,g.jsxs)("div",{className:d()["action-section"],children:[(0,g.jsx)(x.r,{to:"/p/legal/emerald",className:d().button,children:"Learn More"}),(0,g.jsx)(_.Kk,{title:"Get started",styleClass:d()["action-button"],onClick:t})]})]})},j=function(e){var t=e.setUserPrice,n=(0,s.useState)(!1),i=n[0],o=n[1];return(0,g.jsx)(g.Fragment,{children:i?(0,g.jsx)(b,{setUserPrice:t}):(0,g.jsx)(y,{onClick:function(){return o(!0)}})})},w=n(97275),S=n(99720),C=n.n(S),N=n(68745),P=function(e){var t=e.price,n=e.subscribers,s=t?N.u.formatUSD(t):"$0.00",i=n||0,o=N.u.formatUSD(t*i);return(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:C().container,children:(0,g.jsxs)("span",{children:["Your monthly price is \xa0",(0,g.jsx)("u",{children:(0,g.jsxs)("b",{children:[s," / month"]})})]})}),(0,g.jsx)("div",{className:C().description,children:(0,g.jsxs)("span",{children:["You have ",(0,g.jsx)("b",{children:i})," subscribers paying you",(0,g.jsxs)("b",{children:[" ",o]})," per month."]})})]})},k=n(36853),O=n(59773),T=n.n(O),E=n(3677),A=n(53677),D=n.n(A),M=n(11493),R=n(72470),I=function(){var e=(0,f.Oy)(),t=(0,E.y)(null===e||void 0===e?void 0:e.id).list,n=(0,M.ye)(R.T.SUBSCRIBERS_LOADING_AND_CSV),i=(0,s.useMemo)((function(){return[{title:"Subscribers",relevance:2},{title:" Subscribe date"}]}),[]),o=(0,s.useMemo)((function(){return t.map((function(e){var t=e.username,n=e.startDate;return{name:t,date:D()(n).format("MMMM DD, YYYY")}}))}),[t]);return(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:T().title,children:(0,g.jsx)("span",{children:"My Subscribers"})}),n&&(0,g.jsx)(_.Kk,{title:"Download as CSV",styleClass:T()["action-csv-button"]}),(0,g.jsx)(k.Z,{tableHeaders:i,tableBodyData:o}),(0,g.jsx)("div",{className:T()["load-more-section"],children:n&&(0,g.jsx)(_.Kk,{title:"Load more",styleClass:T()["action-load-button"]})})]})},U=n(87065),Z=n(29097),L=n.n(Z),B=function(){var e=(0,p.i)(),t=(0,a.Z)(e,1)[0],n=(0,h.BR)(),i=(0,a.Z)(n,2),o=i[0],c=i[1],u=(0,s.useState)(""),d=u[0],m=u[1],f=(0,M.ye)(R.T.DESIGNATE_ARTICLES_VISIBILITY),v=function(){var e=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t({password:d});case 3:if(e.sent){e.next=6;break}return e.abrupt("return",c("There was an error, please try again."));case 6:o("Subscriptions discontinued successfully"),window.location.reload(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();
1return(0,g.jsxs)("div",{className:L().container,children:[(0,g.jsx)("div",{className:L().title,children:(0,g.jsx)("span",{children:"Discontinue Subscriptions"})}),(0,g.jsxs)("div",{className:L()["description-container"],children:[(0,g.jsx)("span",{children:"Are you sure you want to turn off subscriptions?"}),(0,g.jsxs)("p",{children:["Turning off subscriptions will automatically un-publish your ",(0,g.jsx)("br",{}),"premium articles so, until you designate them as free, they will not become available to any readers (including your former ",(0,g.jsx)("br",{}),"subscribers).",f&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("br",{})," You can make premium articles free",(0,g.jsx)("span",{className:L().link,children:"right here"}),"."]})]})]}),(0,g.jsx)("div",{className:L().message,children:(0,g.jsx)("span",{children:"In order to discontinue subscriptions, please enter your password."})}),(0,g.jsx)("div",{className:L()["input-section"],children:(0,g.jsx)(U.G,{title:"Password",value:d,setValue:m,type:"password"})}),(0,g.jsx)("div",{className:L()["action-section"],children:(0,g.jsx)(_.Kk,{title:"Confirm",styleClass:L()["action-button"],onClick:v})})]})},F=function(e){var t=e.price,n=e.subscribers,i=(0,s.useMemo)((function(){return[{title:"My subscribers",viewComponent:(0,g.jsx)(I,{})},{title:"Discontinue subscriptions (unpublish premium content)",viewComponent:(0,g.jsx)(B,{})}]}),[]);return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(w.Z,{title:"Sell subscriptions",sections:i,rootPage:(0,g.jsx)(P,{price:t,subscribers:n}),fullSpace:!0})})},Y=function(){var e,t,n,i=(0,f.Oy)(),r=(0,E.y)(i.id).list,a=null===i||void 0===i||null===(e=i.subscriptionPlans)||void 0===e?void 0:e.filter((function(e){return"MONTHLY"===e.duration}))[0],c=(0,s.useState)(null!==(t=null===a||void 0===a?void 0:a.value)&&void 0!==t?t:null),l=c[0],u=c[1];return(0,g.jsx)(g.Fragment,{children:l>0?(0,g.jsx)(F,{price:l,subscribers:null!==(n=null===r||void 0===r?void 0:r.length)&&void 0!==n?n:0}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:o().container,children:[(0,g.jsx)("div",{className:o().title,children:(0,g.jsx)("b",{children:"Sell Subscriptions"})}),(0,g.jsx)(j,{setUserPrice:u})]})})})}},61572:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var s=n(36853),i=n(73535),o=n(54409),r=n(53677),a=n.n(r),c=n(27378),l=n(38946),u=n.n(l),d=n(38566),_=n(69016),g=n(20598),m=n(61582),p=n(24246),h=function(e){var t=e.type,n=e.author,s=(0,_.Z)(),i=(0,g.BR)(),o=(0,d.Z)(i,2),r=o[0],a=(o[1],(0,g.s)()),c=function(){r("Your payment is being processed.")},l="Cancel"===t?u()["subscription-button-cancel"]:u()["subscription-button-resubscribe"];return(0,p.jsx)("button",{className:l,onClick:"Cancel"===t?function(){a({type:m.nK.SUBSCRIBED_TO_CANCEL,subscription:null===n||void 0===n?void 0:n.subscriptionToAuthor,author:n})}:function(){var e={name:"Author subscription",type:"RESUBSCRIPTION",plans:null===n||void 0===n?void 0:n.subscriptionPlans,details:{authorId:null===n||void 0===n?void 0:n.id,authorName:null===n||void 0===n?void 0:n.username}};s({item:e,style:"resubscription",currentSubscription:null===n||void 0===n?void 0:n.subscriptionToAuthor,onPurchaseConfirm:c,onPurchaseCancel:function(){return 0}})},children:t})},f=n(68745),v=function(){var e=(0,o.Oy)(),t=(0,c.useMemo)((function(){return[{title:"Author",relevance:1},{title:" Monthly Price"},{title:"Renews"}]}),[]),n=(0,c.useMemo)((function(){return[{title:"Author",relevance:1},{title:"Renews"}]}),[]),r=(0,c.useMemo)((function(){var t;return null===(t=e.authorSubscriptions)||void 0===t?void 0:t.filter((function(e){return"ACTIVE"===e.status})).map((function(e){var t=e.author,n=e.nextRenewDate,s=e.price;return{author:(0,p.jsx)(i.r,{to:"/".concat(t.username),children:t.username}),price:s?f.u.formatUSD(s):"--",renews:a()(n).format("MMMM DD, YYYY"),action:(0,p.jsx)(h,{type:"Cancel",author:t})}}))}),[e]),l=(0,c.useMemo)((function(){var t;return null===(t=e.authorSubscriptions)||void 0===t?void 0:t.filter((function(e){return"CANCELED"===e.status})).map((function(e){var t=e.author,n=e.activeUntil;return{author:(0,p.jsx)(i.r,{to:"/".concat(t.username),children:t.username}),renews:a()(n).format("MMMM DD, YYYY"),action:(0,p.jsx)(h,{type:"Resubscribe",author:t})}}))}),[e]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:u()["settings-content-title"],children:"Subscribed to"}),(0,p.jsxs)("div",{className:u()["main-container"],children:[(0,p.jsx)(s.Z,{tableHeaders:t,tableBodyData:r,emptyText:"No active subscriptions"}),!!l.length&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:u()["title-cancelled"],children:(0,p.jsx)("b",{children:"Cancelled subscriptions"})}),(0,p.jsx)(s.Z,{tableHeaders:n,tableBodyData:l})]})]})]})}},81128:function(e,t,n){"use strict";var s=n(6952),i=n(38566),o=n(88742),r=n.n(o),a=n(40384),c=n(30112),l=n(27378),u=n(20028),d=n.n(u),_=n(50301),g=n(52095),m=n(53677),p=n.n(m),h=n(24246);t.Z=function(e){var t=e.author,n=e.subscription,o=(0,l.useState)(!1),u=o[0],m=o[
11],f=(0,_.C9)(),v=(0,_.BR)(),b=(0,i.Z)(v,2),x=(b[0],b[1]),y=(0,g.U)(),j=(0,i.Z)(y,1)[0],w=function(){var e=(0,s.Z)(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j({authorId:null===t||void 0===t?void 0:t.id});case 3:if(e.sent){e.next=6;break}return e.abrupt("return",x("Unable to cancel subscription to author!"));case 6:m(!0),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),x(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),S=function(){f(),window.location.reload()},C=(0,l.useMemo)((function(){return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:d().title,children:"Cancel subscription"}),(0,h.jsx)("div",{className:d().description,children:(0,h.jsxs)("span",{children:["You will stop subscribing to ",null===t||void 0===t?void 0:t.username," and will no longer be charged.",(0,h.jsx)("br",{}),(0,h.jsx)("br",{}),(0,h.jsx)("br",{}),"Your current subscription is good until ",(0,h.jsx)("br",{}),p()(null===n||void 0===n?void 0:n.activeUntil).format("MMM DD, YYYY"),", so you can continue to read their writing until then."]})}),(0,h.jsxs)("div",{className:d()["action-section"],children:[(0,h.jsx)(a.Kk,{title:"Never mind",styleClass:d()["action-button-cancel"],onClick:f}),(0,h.jsx)(a.Kk,{title:"Confirm cancellation",styleClass:d()["action-button"],onClick:w})]})]})}),[f,w]),N=(0,l.useMemo)((function(){return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:d()["title-cancelled"],children:(0,h.jsx)("span",{children:"Subscription canceled"})}),(0,h.jsx)("div",{className:d()["action-section-cancelled-view"],children:(0,h.jsx)(a.Kk,{title:"Okay",onClick:S,styleClass:d()["action-button-ok"]})})]})}),[]);return(0,h.jsx)(c.Rj,{children:u?N:C})}},58509:function(e,t,n){"use strict";n.d(t,{g:function(){return x}});var s=n(38566),i=n(39135),o=n.n(i),r=n(27378),a=n(60659),c=n(40384),l=n(75096),u=n(88273),d=n(73535),_=n(52077),g=n(31981),m=n(33345),p=n(50301),h=n(54409),f=n(68745),v=n(40202),b=n(24246),x=function(){var e=(0,g.sI)(a.je.TRANSACTIONS).transactions,t=(0,m.Mg)(),n=(0,h.Oy)(),i=(0,_.fs)(),x=(0,s.Z)(i,1)[0],y=(0,p.nb)(),j=(0,r.useCallback)((function(){t({lobbyOption:!1,method:u.Mz.CASH,user:n,text:"You are purchasing Prose. credit. You can use credit on the website or app to purchase content, create prized challenges, and donate to fellow authors.",onConfirm:function(e){return x(e).then((function(){return y("Thank you for your purchase!")}))}})}),[t,n,y]);return(0,b.jsxs)("div",{className:o()["settings-content"],children:[(0,b.jsxs)("div",{className:o()["settings-overview"],children:["A history of your transactions on Prose. You can buy credit to directly support authors and content creators. To see sales and income from your work, check the ",(0,b.jsx)(d.r,{to:"/settings/wallet",children:"sales"})," tab. If you have questions, please contact"," ",(0,b.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,b.jsxs)("div",{className:o()["settings-transactions-credit"],children:[(0,b.jsxs)("div",{className:o()["settings-transactions-credit-text"],children:["Total Credit: ",(0,b.jsx)("b",{children:f.u.formatUSD(n.coin_count)})]}),(0,b.jsx)("div",{className:o()["settings-action-button"],children:(0,b.jsx)(c.Kk,{title:"Buy Credit",type:c.m5.GOLD,onClick:j})})]}),(0,b.jsx)("div",{className:o()["transactions-container"],children:e&&e.length>0?e.map((function(e){return(0,b.jsx)(v.Z,{transaction:e},e.id)})):(0,b.jsx)(l.h,{text:"No transactions yet."})})]})}},40202:function(e,t,n){"use strict";var s=n(27378),i=n(60659),o=n(73535),r=n(68745),a=n(39135),c=n.n(a),l=n(24246);t.Z=function(e){var t=e.transaction,n=t.type===i.Rg.CREDIT?"+":"-",a=(0,s.useMemo)((function(){return t.post?(0,l.jsxs)(l.Fragment,{children:["Purchased"," ",(0,l.jsxs)(o.r,{to:"/post/".concat(t.post.id),children:["Post ",t.post.id]})]}):t.book?(0,l.jsxs)(l.Fragment,{children:["Purchased"," ",(0,l.jsxs)(o.r,{to:"/book/".concat(t.book.id),children:["Book ",t.book.id]})]}):t.license===i.iU.SUBSCRIPTION?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("span",{children:" Subscription"})}):t.license===i.iU.DONATION?(0,l.jsx)("span",{children:"Donation"}
1):t.license===i.iU.CASHOUT?(0,l.jsx)("span",{children:"Cashout"}):t.license===i.iU.CHALLENGE_FEE||t.license===i.iU.challenge_layaway?(0,l.jsxs)(l.Fragment,{children:["Created"," ",(0,l.jsx)(o.r,{to:"/challenge/".concat(null===(e=t.challenge)||void 0===e?void 0:e.id),children:"Challenge"})]}):t.license===i.iU.CHALLENGE_ENTRY?(0,l.jsxs)(l.Fragment,{children:["Entry fee for"," ",(0,l.jsx)(o.r,{to:"/challenge/".concat(null===(n=t.challenge)||void 0===n?void 0:n.id),children:"Challenge"})]}):t.license===i.iU.CHALLENGE_PRIZE?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.r,{to:"/challenge/".concat(null===(s=t.challenge)||void 0===s?void 0:s.id),children:"Challenge"})," ","Victory"]}):(0,l.jsx)("span",{children:t.license});var e,n,s}),[t]),u=new Date(1e3*t.time).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"});return(0,l.jsxs)("div",{className:c()["transaction-row"],children:[(0,l.jsx)("div",{className:c()["transaction-column transaction-column--flex-1 transaction-column--light"],children:"id-".concat(t.id)}),(0,l.jsx)("div",{className:c()["transaction-column transaction-column--flex-1 transaction-column--bold"],children:"".concat(n).concat(r.u.formatUSD(t.price))}),(0,l.jsx)("div",{className:"".concat(c()["transaction-column"]," ").concat(c()["transaction-column--flex-2"]),children:a}),(0,l.jsx)("div",{className:"".concat(c()["transaction-column"]," ").concat(c()["transaction-column--flex-2"]),children:u})]})}},36868:function(e,t,n){"use strict";n.d(t,{x:function(){return N}});var s=n(6952),i=n(38566),o=n(88742),r=n.n(o),a=n(79786),c=n.n(a),l=n(27378),u=(n(60042),n(98784)),d=n(60659),_=n(40384),g=n(75096),m=n(73535),p=n(31981),h=n(33345),f=n(54409),v=n(15231),b=n(68745),x=n(52077),y=n(50301),j=n(88273),w=n(30481),S=n(24246);function C(e){return e.post?.6:e.book?.75:(e.license,d.iU.CASHOUT,1)}var N=function(){var e=(0,p.sI)(d.je.SALES),t=e.transactions,n=e.refetch,o=(0,y.ol)(),a=(0,i.Z)(o,1)[0],m=(0,x.uA)(),v=(0,i.Z)(m,2),N=v[0],k=v[1],O=(0,f.Oy)(),T=(0,y.BR)(),E=(0,i.Z)(T,2),A=(E[0],E[1]),D=(0,h.F4)(),M=w.Z.isProd?d.Th.BLACK_PURPLE:d.Th.BLACK_PURPLE_DEV,R=function(e){!function(e){D(e)}(e)},I=(0,l.useMemo)((function(){return t.length?(0,u.sumBy)(t,(function(e){return(e.license===d.iU.CASHOUT?-1:1)*C(e)*e.price})):0}),[t]),U=b.u.formatUSDWithoutIcon(I),Z=(0,l.useCallback)((0,s.Z)(r().mark((function e(){var t,i,o,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"black"!==O.subscription_status?R(M):null!==(t=O.stripeAccount)&&void 0!==t&&t.account&&null!==(i=O.stripeAccount)&&void 0!==i&&i.account.id&&null!==(o=O.stripeAccount)&&void 0!==o&&o.charges_enabled&&null!==(c=O.stripeAccount)&&void 0!==c&&c.payouts_enabled?a({type:j.nK.CASHOUT,balance:U,onConfirm:function(){var e=(0,s.Z)(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}):N({username:O.username}).then((function(e){var t=null===e||void 0===e?void 0:e.link;t?window.location.href=t:A("Unable to retrieve Stripe link. Please try again.")})).catch((function(e){A("Unable to create Stripe account. Please try again.")}));case 1:case"end":return e.stop()}}),e)}))),[U]);return(0,S.jsxs)("div",{className:c()["settings-content"],children:[(0,S.jsxs)("div",{className:c()["wallet-container"],children:[(0,S.jsx)("div",{className:c()["wallet-balance"],children:b.u.formatUSD(I)}),(0,S.jsx)(_.Kk,{title:"Cash Out",style:{width:"32%"},type:_.m5.BLACK,onClick:Z,loading:k})]}),(0,S.jsx)("div",{className:c()["settings-overview"],children:"You can cash out your wallet balance by clicking the \u201cCash Out\u201d button. Processing fee, if any, would be deduced from the withdrawal amount."}),(0,S.jsx)("div",{className:c()["transactions-container"],children:t&&t.length>0?t.map((function(e){return(0,S.jsx)(P,{transaction:e},e.id)})):(0,S.jsx)(g.h,{text:"No transactions yet."})})]})},P=function(e){var t=e.transaction,n=t.license===d.iU.CASHOUT?"-":"+",s=C(t),i=(0,l.useMemo)((function(){return t.post?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.r,{to:v.V.url(t.post),children:"Post"})," Sale"]}):t.book?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.r,{to:"/book/".concat(t.book.id
1),children:"Book"})," Sale"]}):t.challenge?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.r,{to:"/challenge/".concat(t.challenge.id),children:"Challenge"}),t.license===d.iU.CHALLENGE_PRIZE?" Victory":" Proceeds"]}):t.license===d.iU.SUBSCRIPTION?(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("span",{children:" Subscription"})}):t.license===d.iU.DONATION?(0,S.jsxs)("span",{children:["Tip from"," ",(0,S.jsx)(m.r,{to:"/".concat(null===t||void 0===t?void 0:t.username),children:null===t||void 0===t?void 0:t.username})]}):t.license===d.iU.DISPENSER?(0,S.jsx)("span",{children:"Uncategorized"}):t.license===d.iU.CASHOUT?(0,S.jsx)("span",{children:"Balance withdrawal"}):void 0}),[t]),o=new Date(1e3*t.time).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"});return(0,S.jsxs)("div",{className:c()["transaction-row"],children:[(0,S.jsx)("div",{className:t.license===d.iU.CASHOUT?c()["transaction-minus"]:c()["transaction-plus"],children:"".concat(n).concat(b.u.formatUSD(t.price*s))}),(0,S.jsx)("div",{className:"".concat(c()["transaction-column"]," ").concat(c()["transaction-column--flex-2"]),children:i}),(0,S.jsx)("div",{className:"".concat(c()["transaction-column"]," ").concat(c()["transaction-column--flex-2"]),children:o})]})}},28831:function(e,t,n){"use strict";var s=n(16974),i=n(29229),o=n.n(i),r=n(24246);t.Z=function(e){var t=e.title,n=e.monthlyPrice,i=e.annualPrice,a=e.features,c=e.buttonText,l=e.colorScheme,u=e.billingPeriod,d=e.onBillingPeriodChange,_=e.onSubscribe,g="green"===l,m="monthly"===u?n:i;return(0,r.jsx)("div",{className:"".concat(o().card," ").concat(g?o().green:o().purple),children:(0,r.jsxs)("div",{className:o().cardContent,children:[(0,r.jsx)("h3",{className:g?o().titleGreen:o().titlePurple,children:t}),(0,r.jsxs)("div",{className:o().price,children:["$",m.toFixed(2),(0,r.jsx)("span",{className:o().per,children:"/month"})]}),i&&(0,r.jsxs)("div",{className:"".concat(g?o().annualTextGreen:o().annualTextBlack),children:["or ",(0,r.jsx)("b",{children:"save 20%"})," with"," ",(0,r.jsx)("span",{className:o().link,onClick:function(){return d("annual")},children:"annual plan"})," ","for ",(0,r.jsxs)("b",{children:["$",i.toFixed(2)]})]}),(0,r.jsx)("button",{className:o().button,onClick:function(){return _(l)},children:c}),(0,r.jsx)("ul",{className:o().features,children:a.map((function(e,t){return(0,r.jsxs)("li",{children:[(0,r.jsx)(s.nQ,{className:o().check}),(0,r.jsx)("p",{className:o().p,children:e})]},t)}))})]})})}},41810:function(e,t,n){"use strict";n.d(t,{J:function(){return d}});var s=n(64834),i=n.n(s),o=n(98784),r=n(27378),a=n(85343),c=n(88273),l=n(24246),u=function(e){var t=e.message,n=(0,a.SP)(),s=(0,r.useCallback)((function(){return n({type:"ClearAlert",key:t.key})}),[t,n]);return(0,r.useEffect)((function(){var e=setTimeout(s,3e3);return function(){return clearTimeout(e)}}),[s]),(0,l.jsx)("div",{onClick:s,className:"".concat(i()["status-message"]," ").concat(i()["status-message--visible"]," ").concat(t.type===c.gj.ERROR?i()["status-message--red"]:i()["status-message--green"]),children:t.text})},d=function(){var e=(0,a.QQ)((function(e){return e.system.alerts}));return(0,o.isEmpty)(e)?null:(0,l.jsx)("div",{className:i()["system-messages-container"],children:(0,l.jsx)("div",{className:i()["system-messages"],children:(0,l.jsx)("div",{className:i()["system-messages-stack"],children:Object.values(e).map((function(e){return(0,l.jsx)(u,{message:e},e.key)}))})})})}},46985:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var s=n(73535),i=n(94699),o=n(88895),r=n.n(o),a=n(24246),c=function(e){var t=e.user,n=e.withImageBorder,o=e.contentClass,c=e.children,l=e.classModifier;return(0,a.jsxs)(i.h,{user:t,withImageBorder:n,contentClass:o,classModifier:l,children:[(0,a.jsx)("div",{className:r()["simple-user-label-username"],children:(0,a.jsx)(s.r,{to:"/".concat(t.username),children:t.username})}),c]})}},94699:function(e,t,n){"use strict";n.d(t,{h:function(){return _}});var s=n(1717),i=n(88895),o=n.n(i),r=n(92985),a=n(2777),c=n(73535),l=n(60042),u=n.n(l),d=n(24246),_=function(e){var t=e.user,n=e.children,i=e.contentClass,l=e.withImageBorder,_=e.classModifier;return(0,d.jsxs)("div",{className:u()(o()["user-label"],(0,s.Z)({},o()["user-label--".concat(_)],!!_)),children:[(0,d.jsx)(c.r,{to:"/".concat(t.username),className:o()["user-label__image-link"],children:(0,d.jsx)(a.F,{className:u()(o()["user-label__image"],(0,s.Z)({},o()["user-label__image--border"],l)),src:(0,r.hj)(t),width:40,height:40,alt:"Profile avatar image for ".concat(t.username)})}),(0,d.jsx)("div",{className:"".concat(o()["user-label__content"]," ").concat(i),children:n})]})}},21598:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var s=n(97562),i=n.n(s),o=n(92985),r=n(99135),a=n(79370),c=n(73535),l=n(68745),u=n(24246),d=function(e){var t=e.user,n=t.image&&t.image.banner&&t.image.banner.url;return(0,u.jsxs)("div",{className:i()["user-view"],children:[(0,u.jsx)("div",{className:i()["user-view-banner-image"],style:{backgroundImage:"url(".concat(n,")")}}),(0,u.jsx)("div",{className:i()["user-view-profile-image-container"],children:(0,u.jsx)(c.r,{to:"/".concat(t.username),children:(0,u.jsx)("div",{className:i()["user-view-profile-image"],style:{backgroundImage:"url(".concat((0,o.HK)(t),")")}})})}
1),(0,u.jsxs)("div",{className:i()["user-view-content"],children:[(0,u.jsx)(c.r,{to:"/".concat(t.username),className:i()["user-view-username"],children:t.username}),(0,u.jsxs)("div",{className:i()["user-view-info"],children:[(0,u.jsx)("b",{children:l.u.formatShort(t.post_count)})," ".concat((0,r._6)("Post",t.post_count)," \u2022 "),(0,u.jsx)("b",{children:l.u.formatShort(t.follower_count)})," ".concat((0,r._6)("Follower",t.follower_count))]}),(0,u.jsx)("div",{className:i()["user-view-follow-button-container"],children:(0,u.jsx)(a.e,{user:t,className:i()["user-view-follow-button"]})})]})]})}},92160:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var s=n(99197),i=n.n(s),o=n(24246),r=function(){return(0,o.jsx)(i(),{color:"steelblue",size:20})}},47610:function(e,t,n){"use strict";n.d(t,{K:function(){return f},I:function(){return h}});var s=n(1717),i=n(87754),o=n.n(i),r=n(38566),a=n(27378),c=n(60042),l=n.n(c),u=n(74300),d=n(48028),_=n(16974),g=n(86677),m=n(24246),p=a.memo((function(e){var t,n=e.item,i=n.title,c=n.icon,p=n.link,h=n.menu,f=n.onClick,v=n.className,b=n.active,x=e.selected,y=e.color,j=e.titlePreference,w=void 0===j?"title_and_icon":j,S=e.isMobileDevice,C=void 0!==S&&S,N=(0,a.useState)(null),P=N[0],k=N[1],O=(0,u.OT)(),T=(0,r.Z)(O,3),E=T[0],A=T[1],D=T[2],M=(0,g.useRouter)(),R=y?{stroke:y,borderColor:y,color:x?y:void 0}:{},I=(0,a.useCallback)((function(e){h&&A(),p&&(e.preventDefault(),M.push(p,void 0,{shallow:!0})),f&&f(e)}),[h,f,p,M,A]),U=(0,m.jsxs)("div",{className:l()(o()["fancy-tab-selector-item"],(t={},(0,s.Z)(t,o()["fancy-tab-selector-item--selected"],x),(0,s.Z)(t,o()[v],!!v),(0,s.Z)(t,o()["fancy-tab-selector-item--bright"],b),t)),onClick:I,ref:k,style:R,children:[!!c&&(0,m.jsx)(c,{className:o()["fancy-tab-selector-item__glyph"],style:x?R:void 0}),("title_and_icon"===w||"selected"===w&&x&&C||!C)&&(0,m.jsx)("span",{className:o()["fancy-tab-seletor-item__title"],children:i}),!!h&&(0,m.jsx)(_.v4,{className:o()["fancy-tab-selector-item__chevron"],style:x?R:void 0})]});return(0,m.jsxs)(m.Fragment,{children:[U,!!h&&(0,m.jsx)(d.x,{referenceElement:P,show:E,close:D,items:h,placement:"bottom"})]})})),h=function(e){var t=e.items,n=e.selected,i=e.color,r=e.classModifier,a=e.titlePreference,c=e.isMobileDevice,u=void 0!==c&&c;return(0,m.jsx)("div",{className:l()(o()["fancy-tab-selector"],(0,s.Z)({},o()[r],!!r)),children:t.map((function(e,t){return(0,m.jsx)(p,{item:e,selected:n===t,color:i,titlePreference:a,isMobileDevice:u},t)}))})},f=function(e){var t=e.children;return(0,m.jsx)("div",{className:o()["fancy-selector-desk-container"],children:t})}},49598:function(e,t,n){"use strict";n.d(t,{v:function(){return b}});var s=n(96772),i=n(87988),o=n(42414),r=n(54242),a=n(87511),c=n(16933),l=n(1717),u=n(81234),d=n.n(u),_=n(27378),g=n(60042),m=n.n(g),p=n(16974),h=n(7555),f=n(24246);function v(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var b=function(e){(0,r.Z)(n,e);var t=v(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,e),(0,l.Z)((0,o.Z)(i),"imageChanged",!1),(0,l.Z)((0,o.Z)(i),"isDragging",!1),(0,l.Z)((0,o.Z)(i),"image",void 0),(0,l.Z)((0,o.Z)(i),"viewRatio",3),(0,l.Z)((0,o.Z)(i),"dimensions",void 0),(0,l.Z)((0,o.Z)(i),"mouseStartPos",{x:0,y:0}),(0,l.Z)((0,o.Z)(i),"startPos",{x:0,y:0}),(0,l.Z)((0,o.Z)(i),"imagePos",{x:0,y:0}),(0,l.Z)((0,o.Z)(i),"sizeBoundaries",{min:{width:0,height:0},max:{width:0,height:0}}),(0,l.Z)((0,o.Z)(i),"_fileInput",_.createRef()),(0,l.Z)((0,o.Z)(i),"_canvas",_.createRef()),(0,l.Z)((0,o.Z)(i),"_editor",_.createRef()),i.dimensions={width:e.canvasWidth||640,height:e.canvasHeight||214},i.state={dimensions:i.dimensions,hasImage:!1},e.imageUrl&&i.loadImageFromUrl(e.imageUrl),i.handleResize=i.handleResize.bind((0,o.Z)(i)),i.handleMouseUp=i.handleMouseUp.bind((0,o.Z)(i)),i.handleMouseMove=i.handleMouseMove.bind((0,o.Z)(i)),i}
1return(0,i.Z)(n,[{key:"componentWillMount",value:function(){window.addEventListener("resize",this.handleResize),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}},{key:"componentDidMount",value:function(){this.viewRatio=this.dimensions.width/this.dimensions.height,this.resize(),window.addEventListener("resize",this.handleResize),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}},{key:"componentDidUpdate",value:function(e){e.imageUrl!==this.props.imageUrl&&this.loadImageFromUrl(this.props.imageUrl)}},{key:"handleResize",value:function(){this.resize()}},{key:"handleMouseUp",value:function(){this.isDragging=!1,this.updateImageSize()}},{key:"handleMouseMove",value:function(e){if(this.isDragging){var t=this._canvas.current.getBoundingClientRect(),n={x:0,y:0},s={x:e.pageX-this.mouseStartPos.x,y:e.pageY-this.mouseStartPos.y,width:this.image.width-t.width,height:this.image.height-t.height};this.image.width>t.width&&(n.x=Math.max(Math.min(0,this.startPos.x+s.x),-s.width)),this.image.height>t.height&&(n.y=Math.max(Math.min(0,this.startPos.y+s.y),-s.height)),this.drawImage(n.x,n.y),this.imagePos=n}}},{key:"onDragStart",value:function(e){e.preventDefault(),this.isDragging=!0,this.mouseStartPos={x:e.pageX,y:e.pageY}}},{key:"onFileChange",value:function(e){var t=e.target.files[0];t&&t.type.match(/image.*/)&&(this.loadImage(t),this.imageChanged=!0)}},{key:"onCloseImage",value:function(){this._fileInput.current.value="",this.image=null,this.setState({hasImage:!1});var e=this._canvas.current;e.getContext("2d").clearRect(0,0,e.width,e.height),this.props.onChange&&this.props.onChange(null)}},{key:"drawImage",value:function(e,t){this._canvas.current.getContext("2d").drawImage(this.image,e,t,this.image.width,this.image.height)}},{key:"loadImage",value:function(e){var t=this;h.S.loadImage(e).then((function(e){t.onImageLoaded(e)}))}},{key:"loadImageFromUrl",value:function(e){var t=this;h.S.loadImageFromUrl(e).then((function(e){t.onImageLoaded(e)}))}},{key:"onImageLoaded",value:function(e){var t=this;0!==e.width&&0!==e.height?(this.setState({hasImage:!0}),this.resize(),setTimeout((function(){t.initializeImage(e)}),100)):alert("Image load failed. Try again.")}},{key:"initializeImage",value:function(e){var t=e.width/e.height,n=this._canvas.current.getBoundingClientRect(),s={width:e.width,height:e.height};e.width/e.height>=this.viewRatio?(e.height=n.height,e.width=e.height*t):(e.width=n.width,e.height=e.width/t),this.imagePos={x:0,y:0},this.sizeBoundaries.min={width:e.width,height:e.height},this.sizeBoundaries.max={width:Math.max(this.sizeBoundaries.min.width,s.width),height:Math.max(this.sizeBoundaries.min.height,s.height)},this.image=e,this.drawImage(0,0),this.updateImageSize(),this.props.onChange&&this.props.onChange(e)}},{key:"resize",value:function(){var e=this._editor.current.getBoundingClientRect().width,t=e/this.viewRatio;this.setState({dimensions:{width:e,height:t}}),this.image&&this.drawImage(this.imagePos.x,this.imagePos.y)}},{key:"updateImageSize",value:function(){this.image&&(this.startPos=this.imagePos)}},{key:"hasImage",value:function(){return this.image&&this.state.hasImage}},{key:"selectImage",value:function(){this._fileInput.current.click()}},{key:"getBlob",value:function(){return this.hasImage()&&h.S.imageBlobFromCanvas(this._canvas.current)}},{key:"clear",value:function(){this.setState({hasImage:!1}),this.image=null}},{key:"render",value:function(){var e;return(0,f.jsxs)("div",{className:m()(d()["image-editor"],(e={},(0,l.Z)(e,d()["image-editor--hidden"],!this.state.hasImage),(0,l.Z)(e,d()["image-editor--".concat(this.props.classModifier)],!!this.props.classModifier),e)),ref:this._editor,children:[(0,f.jsx)("input",{onChange:this.onFileChange.bind(this),type:"file",ref:this._fileInput,style:{display:"none"}}),(0,f.jsx)("div",{className:d()["image-editor__slider"]}),(0,f.jsxs)("div",{className:d()["image-editor__canvas-container"],style:{width:this.state.dimensions.width,height:this.state.dimensions.height},children:[(0,f.jsx)("div",{onClick:this.onCloseImage.bind(this),className:d()["image-editor__close-button"],children:(0,f.jsx)(p.b0,{className:d()["image-editor-close-button-icon"]})}),(0,f.jsx)("div",{onDragStart:this.onDragStart.bind(this),className:d()["image-editor__dragger"],draggable:!0}),(0,f.jsx)("canvas",{width:this.state.dimensions.width,height:this.state.dimensions.height,ref:this._canvas})]})]})}}]),n}(_.Component)},73535:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var s=n(1717),i=n(31750),o=n(79894),r=n(24246),a=["to","href","children"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e){var t=e.to,n=(e.href,e.children),s=(0,i.Z)(e,a);return(0,r.jsx)(o.default,{href:t,children:(0,r.jsx)("a",l(l({},s),{},{children:n}))})}},95026:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var s=n(32335),i=n.n(s),o=n(24246),r=function(){return(0,o.jsx)("div",{className:i()["not-found-container"],children:(0,o.jsx)("div",{className:i()["not-found-image"]})})}},64426:function(e,t,n){"use strict";n.d(t,{z:function(){return x}});var s=n(31750),i=n(96772),o=n(87988),r=n(42414),a=n(54242),c=n(87511),l=n(16933),u=n(1717),d=n(34844),_=n.n(d),g=n(27378),m=n(7555),p=n(24246),h=["imageClass","dimensions"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,l.Z)(e);if(t){var i=(0,l.Z)(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return(0,c.Z)(this,n)}}var x=function(e){(0,a.Z)(n,e);var t=b(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,u.Z)((0,r.Z)(e),"_image",g.createRef()),(0,u.Z)((0,r.Z)(e),"_file",g.createRef()),(0,u.Z)((0,r.Z)(e),"_canvas",g.createRef()),(0,u.Z)((0,r.Z)(e),"imageLoaded",!1),e}return(0,o.Z)(n,[{key:"getBlob",value:function(){return this.imageLoaded?m.S.imageBlobFromCanvas(this._canvas.current):null}},{key:"selectImage",value:function(){this._file.current.click()}},{key:"onChangeFile",value:function(e){var t=e.target.files[0];if(t){t.type.match(/image.*/)&&this.loadImage(t)}}},{key:"loadImage",value:function(e){var t=this,n=this._canvas.current,s=this.props.dimensions||{};m.S.loadImage(e).then((function(e){m.S.resizeImage(e,s,(function(e,s,i){t.imageLoaded=!0,t._image.current.src=m.S.drawInCanvas(e,n,s,i)}))}))}},{key:"render",value:function(){var e=this.props,t=e.imageClass,n=e.dimensions,i=(0,s.Z)(e,h),o=n?n.width:200,r=n?n.height:200;return(0,p.jsxs)("div",{className:"".concat(_()["simple-image-input"]," ").concat(t),children:[(0,p.jsx)("canvas",{width:o,height:r,style:{display:"none"},ref:this._canvas}),(0,p.jsx)("input",{onChange:this.onChangeFile.bind(this),type:"file",accept:"image/*",style:{display:"none"},ref:this._file}),(0,p.jsx)("div",{className:_()["simple-image-input__empty"],children:"Select Image"}),(0,p.jsx)("div",{onClick:this.selectImage.bind(this),className:_()["simple-image-input__overlay"],children:"Change Image"}),(0,p.jsx)("img",v({className:_()["simple-image-input__image"],ref:this._image},i))]})}}]),n}(g.Component)},65978:function(e,t,n){"use strict";var s=n(1717),i=n(27378),o=n(11493),r=n(24246);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Fragment;return function(s){var i=(0,o.ye)(t);return(0,r.jsx)(r.Fragment,{children:i?(0,r.jsx)(e,c({},s)):(0,r.jsx)(n,{})})}}},33345:function(e,t,n){"use strict";n.d(t,{Mg:function(){return c},p_:function(){return d},of:function(){return _},F4:function(){return g},zZ:function(){return m},F2:function(){return p},ip:function(){return h},tI:function(){return f},$0:function(){return v},H$:function(){return b}});var s=n(27378),i=n(88273),o=n(54409),r=n(50301),a=n(86677);function c(){var e=(0,r.s)();return(0,s.useCallback)((function(t){return function(e,t){var n=t.user,s=t.amount,o=t.lobbyOption,r=void 0===o||o,a=t.lobbyRequired,c=void 0!==a&&a,l=t.text,u=t.platinum,d=t.method,_=t.onConfirm;return new Promise((function(t,o){n?n.is_subscriber&&(c||r)&&!u?t():e({type:i.nK.CHECKOUT,user:n,amount:s,lobbyOption:r,lobbyRequired:c,text:l,method:d,platinum:u,onConfirm:_?function(e){return _(e).then(t)}:function(){return Promise.resolve().then(t)},onDecline:function(){return o()}}):(o(),e({type:i.nK.LOGIN}))}))}(e,t)}),[e])}function l(){var e=(0,r.s)();return(0,s.useCallback)((function(t){return function(e,t){var n=t.user,s=t.plan;return console.log("CHECKOut GREEN/BLACK CALLED-------!!",t),new Promise((function(t,o){n?e({type:i.nK.GREEN_BLACK,plan:s,method:i.Mz.CREDIT,onConfirm:function(){return Promise.resolve().then(t)}}):(o(),e({type:i.nK.LOGIN}))}))}(e,t)}),[e])}function u(){var e=(0,r.s)();return(0,s.useCallback)((function(t){return function(e,t){var n=t.user,s=t.plan;return console.log("CHECKOut GREEN/BLACK CALLED-------!!",t),new Promise((function(t,o){n?e({type:i.nK.BLACK,plan:s,method:i.Mz.CREDIT,onConfirm:function(){return Promise.resolve().then(t)}}):(o(),e({type:i.nK.LOGIN}))}))}(e,t)}),[e])}function d(){var e=(0,o.Oy)(),t=c();return(0,s.useCallback)((function(){return t({lobbyRequired:!0,user:e}).then((function(){return window.location.reload()}))}),[e,t])}function _(){var e=(0,o.Oy)(),t=l();return(0,s.useCallback)((function(n){return t({user:e,plan:n}).then((function(){return window.location.reload()}))}),[e,t])}function g(){var e=(0,o.Oy)(),t=u();return(0,s.useCallback)((function(n){return t({user:e,plan:n}).then((function(){return window.location.reload()}))}),[e,t])}function m(){var e=(0,o.Oy)(),t=c();return(0,s.useCallback)((function(){return t({lobbyRequired:!0,user:e}).then((function(){return Promise.resolve()}))}),[e,t])}function p(){var e=(0,o.Oy)(),t=c();return(0,s.useCallback)((function(){return t({platinum:!0,user:e}).then((function(){return window.location.reload()}))}),[e,t])}function h(){var e=(0,o.Oy)(),t=(0,r.s)();return(0,s.useCallback)((function(n){return new Promise((function(s){e?s():(t({type:i.nK.LOGIN,callback:s}),n&&n.preventDefault())}))}),[t,e])}function f(){var e=(0,o.Oy)(),t=(0,r.s)(),n=(0,a.useRouter)();return(0,s.useCallback)((function(){var s,o=null===(s=localStorage)||void 0===s?void 0:s.getItem("ageConfirmed"),r=o?parseInt(o):0;r+72e5<=Date.now()&&localStorage.removeItem("ageRestrict");var a=Date.now();"true"!==localStorage.getItem("ageRestrict")?!e&&r+72e5<=a&&t({type:i.nK.AGECONFIRM,callback:function(){localStorage.setItem("ageConfirmed",Date.now().toString())},onDecline:function(){localStorage.setItem("ageRestrict","true"),n.push("/restricted")}}):n.push("/restricted")}),[e,t])}var v=function(){var e=(0,o.Oy)(),t=(0,r.s)();return(0,s.useCallback)((function(n){e||t({type:"login"===n?i.nK.USER_LOGIN:i.nK.USER_SIGN_UP})}),[e,t])};function b(e,t){return function(e){var t=(0,o.Oy)(),n=h();return(0,s.useCallback)((function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return t?e.apply(void 0,i):n().then((function(){return e.apply(void 0,i)}))}),[e,t,n])}((0,s.useCallback)(e,t))}},69016:function(e,t,n){"use strict";var s=n(61582),i=n(27378),o=n(54409),r=n(50301),a=n(74300);t.Z=function(){var e=(0,r.s)(),t=(0,o.Oy)(),n=(0,a.km)().isRunningInMobileApp;return(0,i.useCallback)((function(i){var o=i.item,r=i.style,a=void 0===r?"regular":r,c=i.showPreview,l=void 0!==c&&c,u=i.buyer,d=void 0===u?t:u,_=i.uniquePayment,g=i.currentSubscription,m=i.onPurchaseConfirm,p=i.onPurchaseCancel;n||e({type:s.nK.MULTI_PRICE_CHECKOUT,buyer:d,item:o,style:a,showPreview:l,uniquePayment:_,preview:a,currentSubscription:g,onPurchaseConfirm:m,onPurchaseCancel:p})}),[e,t,n])}},22830:function(e,t,n){"use strict";n.r(t),n.d(t,{AdminPage:function(){return i}});var s,i,o=n(1717),r=n(81270),a=n(86677),c=n(13083),l=n(86633),u=n(64338),d=n(24246);!function(e){e.NEWSLETTER="newsletter",e.PORTALS="portals"}(i||(i={}));var _=function(e){return"/admin/".concat(e)},g=(s={},(0,o.Z)(s,i.NEWSLETTER,{index:0,nav:{title:"Newsletter",link:_(i.NEWSLETTER)},element:(0,d.jsx)(c.r,{})}),(0,o.Z)(s,i.PORTALS,{index:1,nav:{title:"Portals",link:_(i.PORTALS)},element:(0,d.jsx)(r.Z,{})}),s);t.default=function(){var e=(0,a.useRouter)().query.tab,t=void 0===e?i.NEWSLETTER:e;return(0,d.jsx)(u._,{children:(0,d.jsx)(l.D,{items:Object.values(g),selected:g[t].index,sidebarTitle:"Admin"})})}},95153:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m}});var s=n(60659),i=n(38370),o=n(94620),r=n(64338),a=n(99135),c=n(26244),l=n(74300),u=n(88038),d=n(24246);function _(e){var t=e.order||s.aw.NOTEWORTHY,n={offset:a.Ll.index(e)};return"platinum"===t?n.only_platinum=!0:"facebook"===t||(n.order=t),n}var g=function(){var e="Authors. | Prose.",t="Follow authors, writers, poets, and other members of the writing community on Prose. Read free literature and improve your writing from fellow writers and editors.";return(0,d.jsxs)(u.default,{children:[(0,d.jsx)("title",{children:e}),(0,d.jsx)("meta",{property:"og:title",content:e},"og:title"),(0,d.jsx)("meta",{property:"og:description",content:t},"og:description"),(0,d.jsx)("meta",{name:"description",content:t})]})},m=!0;t.default=function(){var e=(0,l.G7)(_);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g,{}),(0,d.jsxs)(r._,{selected:o.mG.AUTHORS,children:[(0,d.jsx)(c.T,{order:e.order}),(0,d.jsx)(r.R,{children:(0,d.jsx)(i.p,{args:e})})]})]})}},51572:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m}});var s=n(60659),i=n(46799),o=n(19260),r=n(55836),a=n(64338),c=n(21579),l=n(74300),u=n(88038),d=n(24246);function _(e){return parseInt(e.id)}var g=function(e){var t,n,s=e.book,i="".concat(s.title," | Prose."),o=s.description||"A book by ".concat(s.author.username," on Prose.");return(0,d.jsxs)(u.default,{children:[(0,d.jsx)("title",{children:i}),(0,d.jsx)("meta",{property:"og:title",content:i},"og:title"),(0,d.jsx)("meta",{property:"og:description",content:o},"og:description"),(0,d.jsx)("meta",{name:"description",content:o}),!(null===s||void 0===s||null===(t=s.image)||void 0===t||null===(n=t.full)||void 0===n||!n.url)&&(0,d.jsx)("meta",{property:"og:image",content:s.image.full.url},"og:image")]})},m=!0;t.default=function(){var e=(0,l.G7)(_),t=(0,c.N2)(e),n=t.book,u=t.loading;return n||u?(0,d.jsxs)(d.Fragment,{children:[!!n&&(0,d.jsx)(g,{book:n}),(0,d.jsx)(a._,{children:!!n&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.V,{book:n}),(0,d.jsx)(a.R,{children:(0,d.jsx)(i.Q,{args:{book_id:n.id,order:s.K1.CHAPTERS}})})]})})]}):(0,d.jsx)(r.A,{})}},77083:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return p}});var s=n(60659),i=n(50139),o=n(29046),r=n(94620),a=n(64338),c=n(99135),l=n(74300),u=n(88038),d=n(88033),_=n(24246);function g(e){return{offset:c.Ll.index(e),order:e.order||s.SG.TRENDING}}var m=function(){var e="Books. | Prose.",t="Browse the Prose. bookstore to find great collections of writing.";return(0,_.jsxs)(u.default,{children:[(0,_.jsx)("title",{children:e}),(0,_.jsx)("meta",{property:"og:title",content:e},"og:title"),(0,_.jsx)("meta",{property:"og:description",content:t},"og:description"),(0,_.jsx)("meta",{name:"description",content:t})]})},p=!0;t.default=function(){var e=(0,l.G7)(g);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m,{}
1),(0,_.jsxs)(a._,{selected:r.mG.BOOKS,children:[(0,_.jsx)(o.p,{order:e.order}),(0,_.jsxs)(a.R,{children:[(0,_.jsx)(d.w,{}),(0,_.jsx)(i.y,{args:e})]})]})]})}},5145:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return p}});var s=n(60659),i=n(46799),o=n(56411),r=n(55836),a=n(64338),c=n(21069),l=n(74300),u=n(99135),d=n(88038),_=n(24246);function g(e){return{id:parseInt(e.id),order:e.order,offset:u.Ll.index(e)}}var m=function(e){var t=e.challenge,n="".concat(t.prompt," | Prose."),s=t.description||"Participate in this writing challenge on Prose.";return(0,_.jsxs)(d.default,{children:[(0,_.jsx)("title",{children:n}),(0,_.jsx)("meta",{property:"og:title",content:n},"og:title"),(0,_.jsx)("meta",{property:"og:description",content:s},"og:description"),(0,_.jsx)("meta",{name:"description",content:s})]})},p=!0;t.default=function(){var e=(0,l.G7)(g),t=e.id,n=e.order,u=e.offset,d=(0,c.iG)(t),p=d.challenge,h=d.loading,f=function(e,t){var n=e&&e.should_resolve?s.K1.LIKES:s.K1.RANDOM;return t||n}(p,n);return p||h?(0,_.jsxs)(_.Fragment,{children:[!!p&&(0,_.jsx)(m,{challenge:p}),(0,_.jsx)(a._,{children:!!p&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(o.T,{challenge:p,order:f,link:!1,showNav:!0}),(0,_.jsx)(a.R,{children:(0,_.jsx)(i.Q,{args:{challenge_id:p.id,order:f,offset:u,disable_spam_filter:!0}})})]})})]}):(0,_.jsx)(r.A,{})}},55579:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return x}});var s=n(1717),i=n(31750),o=n(27378),r=n(88038),a=n(60659),c=n(37767),l=n(81818),u=n(29302),d=n(94620),_=n(64338),g=n(74300),m=n(24246),p=["order"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e){var t,n=e.order?e.order:a.EU.TRENDING,s=n;switch(n){case a.EU.DAILY:t=c.qp.now()-c.qp.DAY,s=a.EU.POST_COUNT;break;case a.EU.WEEKLY:t=c.qp.now()-c.qp.WEEK,s=a.EU.POST_COUNT;break;case a.EU.MONTHLY:t=c.qp.now()-c.qp.MONTH,s=a.EU.POST_COUNT;break;case a.EU.YEARLY:t=c.qp.now()-c.qp.YEAR,s=a.EU.POST_COUNT}return{offset:e.offset?parseInt(e.offset):0,order:s,created_after:t}}var b=function(){var e="Challenges. | Writing prompts to spark your imagination and earn you prizes.",t="Participate in writing prompts and challenges to win prizes and new followers. Write collaboratively with fellow authors for a chance to get noticed by publishers.";return(0,m.jsxs)(r.default,{children:[(0,m.jsx)("title",{children:e}),(0,m.jsx)("meta",{property:"og:title",content:e},"og:title"),(0,m.jsx)("meta",{property:"og:description",content:t},"og:description"),(0,m.jsx)("meta",{name:"description",content:t})]})},x=!0;t.default=function(){var e=(0,g.G7)(v),t=e.order,n=(0,i.Z)(e,p),s=(0,o.useState)(!1),r=(0,o.useState)(!0),c=r[0];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b,{}),(0,m.jsxs)(_._,{selected:d.mG.CHALLENGES,children:[(0,m.jsx)(u.b,{order:t,prizes:s,active:r}),(0,m.jsx)(_.R,{children:t===a.EU.TRENDING?(0,m.jsx)(u.O,{children:(0,m.jsx)(l.u,{args:{allow_closed:!c,only_featured:!0,require_prize:s[0],order:a.EU.TRENDING},featuredSection:!0})}):(0,m.jsx)(l.u,{args:f(f({},n),{},{allow_closed:!c,exclude_featured:c,order:t,require_prize:s[0]})})})]})]})}},42053:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return g}});var s=n(60659),i=n(46799),o=n(94620),r=n(64338),a=n(74300),c=n(90349),l=n(65978),u=n(72470),d=n(24246);function _(e){return{offset:e.startIndex?parseInt(e.startIndex):0,order:e.order?e.order:s.K1.TRENDING,only_gold:!!e.gold,show_subscribers:!0}}var g=!0;t.default=(0,l.Z)((function(){var e=(0,a.G7)(_);return(0,d.jsxs)(r._,{selected:o.mG.EXPLORE,children:[(0,d.jsx)(c.B,{order:e.order}),(0,d.jsx)(r.R,{children:(0,d.jsx)(i.Q,{args:e})})]})}),u.T.NAVBAR)},84100:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return p}});var s=n(60659),i=n(46799),o=n(75463),r=n(64338),a=n(99135),c=n(27105),l=n(74300),u=n(88038),d=n(24246);function _(e){return{slug:e.slug,order:e.order||s.K1.TRENDING,offset:a.Ll.index(e)}}var g,m=function(e){var t=e.hashtag,n="".concat(t.name," | Prose."),s="Find and read writing in the ".concat(t.name," genre on Prose.");return(0,d.jsxs)(u.default,{children:[(0,d.jsx)("title",{children:n}),(0,d.jsx)("meta",{property:"og:title",content:n},"og:title"),(0,d.jsx)("meta",{property:"og:description",content:s},"og:description"),(0,d.jsx)("meta",{name:"description",content:s})]})},p=!0;t.default=function(){var e=(0,l.G7)(_),t=e.slug,n=e.order,s=e.offset,a=(0,c.X2)(t).hashtag;return(0,d.jsxs)(d.Fragment,{children:[!!a&&(0,d.jsx)(m,{hashtag:a}),(0,d.jsxs)(r._,{children:[(0,d.jsx)(o.v,{order:n,hashtagSlug:t}),(0,d.jsx)(r.R,{children:!!a&&(0,d.jsx)(i.Q,{args:g.post(a,s,n)})})]})]})},(g||(g={})).post=function(e,t,n){return{order:n,offset:t,hashtag_id:e.id}}},86400:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},AuthenticationMethod:function(){return s}});var s,i=n(27378),o=n(86677),r=n(60659),a=n(46799),c=n(39379),l=n(20230),u=n(94620),d=n(64338),_=n(99135),g=n(54409),m=n(46601),p=n(
158087),h=n(3787),f=n(24246),v=!0;!function(e){e.SIGNUP="Sign Up",e.LOGIN="Log In"}(s||(s={}));var b=function(){return(0,f.jsx)(d._,{selected:u.mG.HOME,children:(0,f.jsx)(d.R,{children:(0,f.jsx)(a.Q,{args:{order:r.K1.STREAM,disable_spam_filter:!0}})})})},x=function(){var e=(0,_.Qo)();return(0,f.jsxs)(l.I,{children:[(0,f.jsx)(c.c,{}),(0,f.jsx)(m.S,{}),(0,f.jsx)(m.s,{children:(0,f.jsx)(a.Q,{args:{spotlighted:!0,order:r.K1.SPOTLIGHT_TIME,offset:e,disable_spam_filter:!0}})})]})},y=function(){return(0,f.jsx)(p.Z,{})},j=function(){return(0,f.jsx)(h.Z,{})};t.default=function(e){var t=e.hasUser,n=(0,g.Oy)(),s=(0,o.useRouter)().push,r=(0,i.useMemo)((function(){switch(null===n||void 0===n?void 0:n.status){case"deactivated":return(0,f.jsx)(y,{});case"deleted":return(0,f.jsx)(j,{});default:return n||t?(0,f.jsx)(b,{}):(0,f.jsx)(x,{})}}),[n]);return(0,i.useEffect)((function(){n&&!n.tutorial_complete&&s("/p/intro")}),[n,s]),r}},96464:function(e,t,n){"use strict";n.r(t);var s=n(27378),i=n(28980),o=n(93411),r=n(45384),a=n(92702),c=n(64338),l=n(31981),u=n(72674),d=n(54409),_=n(74300),g=n(24246);function m(e){return e.username}t.default=function(){if(!(0,d.hP)())return null;var e=(0,_.G7)(m),t=(0,l.bT)({username:e}).user,n=(0,s.useContext)(u.A),p=n.startSession,h=n.endSession,f=(0,s.useRef)();return(0,s.useEffect)((function(){if(t)return p(t),function(){return h(t)}}),[t,p,h]),(0,g.jsx)(c._,{children:(0,g.jsxs)(i.E,{title:e||"Messages",sidebar:(0,g.jsx)(o.T,{user:t}),classModifier:"dashboard-view--messages",children:[(0,g.jsx)(a.P,{user:t,inputRef:f}),(0,g.jsx)(r.x,{user:t,containerRef:f})]})})}},54019:function(e,t,n){"use strict";n.r(t);var s=n(34298),i=n.n(s),o=n(27378),r=n(86677),a=n(60809),c=n(73685),l=n(70713),u=n(96492),d=n(59867),_=n(64338),g=n(54409),m=n(65278),p=n(24246);t.default=function(){var e=function(e){return{page:e.page?e.page:a.dj.TERMS}}((0,r.useRouter)().query).page,t=(0,g.Oy)(),n=(t&&t.terms_accepted,(0,o.useMemo)((function(){switch(e){case a.dj.EMERALD:return(0,p.jsx)(m.Z,{});case a.dj.CONTESTS:return(0,p.jsx)(c.w,{});case a.dj.SALES:return(0,p.jsx)(u.d,{});case a.dj.PRIVACY:return(0,p.jsx)(l.g,{});case a.dj.TERMS:default:return(0,p.jsx)(d.C,{})}}),[e]));return(0,p.jsxs)(_._,{children:[(0,p.jsx)(a.Vg,{page:e}),(0,p.jsx)(_.R,{children:(0,p.jsx)("div",{className:i()["legal-terms-container"],children:n})})]})}},29229:function(e){e.exports={card:"pricingCard_card__2GGgC",cardContent:"pricingCard_cardContent__2CONX",green:"pricingCard_green__5vsOL",check:"pricingCard_check__1ST3o",button:"pricingCard_button__V96vK",p:"pricingCard_p__1VNEo",black:"pricingCard_black__34q9E",purple:"pricingCard_purple__1WgfL",titleGreen:"pricingCard_titleGreen__2aBDl",titleBlack:"pricingCard_titleBlack__3EmWq",titlePurple:"pricingCard_titlePurple__3v38q",price:"pricingCard_price__2VM-5",per:"pricingCard_per__30rUi",annualTextGreen:"pricingCard_annualTextGreen__2_7dO",annualTextBlack:"pricingCard_annualTextBlack__2Ksny",link:"pricingCard_link__2fTH2",features:"pricingCard_features__28KAL"}},4323:function(e){e.exports={accordion:"settingsAccordion_accordion__3KicV","accordion-account":"settingsAccordion_accordion-account__5dwEA","accordion-payments":"settingsAccordion_accordion-payments__evnWE",section:"settingsAccordion_section__3MW5j","section-tittle":"settingsAccordion_section-tittle__3oUcx","section-preview":"settingsAccordion_section-preview__Sl5dr","section-preview-text":"settingsAccordion_section-preview-text__3Cz9C",slide:"settingsAccordion_slide__1lrZJ"}},35930:function(e){e.exports={container:"deleteUserAccount_container__GMsVM",title:"deleteUserAccount_title__3pEwR",description:"deleteUserAccount_description__3hvef","delete-advice":"deleteUserAccount_delete-advice__12ZW0",input:"deleteUserAccount_input__2x4r9","action-section":"deleteUserAccount_action-section__3BSJx","action-button":"deleteUserAccount_action-button__LucE4","action-button-deactivate":"deleteUserAccount_action-button-deactivate__u6vsq","action-button-deactivate-disabled":"deleteUserAccount_action-button-deactivate-disabled__1oHyC","action-button-delete":"deleteUserAccount_action-button-delete__14HNG","action-button-delete-disabled":"deleteUserAccount_action-button-delete-disabled__P3kNE",slide:"deleteUserAccount_slide__12q7T"}},91190:function(e){e.exports={container:"settingsAccountChangePassword_container__21dic",title:"settingsAccountChangePassword_title__1D
1aVQ","action-section":"settingsAccountChangePassword_action-section__2BMZ1","cancel-button":"settingsAccountChangePassword_cancel-button__vEl10",slide:"settingsAccountChangePassword_slide__2yGhb"}},46565:function(e){e.exports={container:"settingsAccountDeleteUser_container__ouE1X",title:"settingsAccountDeleteUser_title__3qwQg",description:"settingsAccountDeleteUser_description__a1Ns-","container-advice":"settingsAccountDeleteUser_container-advice__3UWnT","container-advice-title":"settingsAccountDeleteUser_container-advice-title__3dUfY","container-advice-text":"settingsAccountDeleteUser_container-advice-text__1yfAV","text-list-title":"settingsAccountDeleteUser_text-list-title__3X_Z4","text-list":"settingsAccountDeleteUser_text-list__2jidi","text-list-item":"settingsAccountDeleteUser_text-list-item__1K1xS","text-content":"settingsAccountDeleteUser_text-content__nu98K","action-button":"settingsAccountDeleteUser_action-button__1OWRP",link:"settingsAccountDeleteUser_link__3UdMM","delete-account":"settingsAccountDeleteUser_delete-account__QmybI",slide:"settingsAccountDeleteUser_slide__zDKyC"}},72135:function(e){e.exports={container:"settingsAccountDownloadData_container__K4BfW",description:"settingsAccountDownloadData_description__1fWTU",list:"settingsAccountDownloadData_list__PbI0K","action-section":"settingsAccountDownloadData_action-section__1Li6t","data-text":"settingsAccountDownloadData_data-text__3AflE","action-button":"settingsAccountDownloadData_action-button__3j6ET",slide:"settingsAccountDownloadData_slide__5ZAAf"}},13463:function(e){e.exports={"settings-content":"settingsAccountEditForm_settings-content__2tIki","settings-content-full-space":"settingsAccountEditForm_settings-content-full-space__3f04T","settings-content-tab-container":"settingsAccountEditForm_settings-content-tab-container__PUo0g","settings-content-title":"settingsAccountEditForm_settings-content-title__298hn","settings-content-title-sub":"settingsAccountEditForm_settings-content-title-sub__sjss7","settings-action-button":"settingsAccountEditForm_settings-action-button__2_XuY","settings-extra-space":"settingsAccountEditForm_settings-extra-space__2N25-","settings-overview":"settingsAccountEditForm_settings-overview__MrBCe","action-section":"settingsAccountEditForm_action-section__AovrE","action-button":"settingsAccountEditForm_action-button__3zGTS","action-button-disabled":"settingsAccountEditForm_action-button-disabled__Jsojb","revert-button":"settingsAccountEditForm_revert-button__2Ns5i",slide:"settingsAccountEditForm_slide__3imV6"}},15701:function(e){e.exports={"settings-content":"settingsAccountRestorePurcahse_settings-content__tkBjc","settings-content-full-space":"settingsAccountRestorePurcahse_settings-content-full-space__2mOpY","settings-content-tab-container":"settingsAccountRestorePurcahse_settings-content-tab-container__njcIl","settings-content-title":"settingsAccountRestorePurcahse_settings-content-title__3ydyA","settings-content-title-sub":"settingsAccountRestorePurcahse_settings-content-title-sub__2RmA9","settings-action-button":"settingsAccountRestorePurcahse_settings-action-button__3UQV2","settings-extra-space":"settingsAccountRestorePurcahse_settings-extra-space__1nXhq","settings-overview":"settingsAccountRestorePurcahse_settings-overview__ZuUay","action-section":"settingsAccountRestorePurcahse_action-section__36Mb9","action-button":"settingsAccountRestorePurcahse_action-button__Ydvs2","action-button-disabled":"settingsAccountRestorePurcahse_action-button-disabled__1-UT8","revert-button":"settingsAccountRestorePurcahse_revert-button__FvzUX",slide:"settingsAccountRestorePurcahse_slide__GjKsM"}},2356:function(e){e.exports={"settings-content":"settingsBlocked_settings-content__2zFJA","settings-content-full-space":"settingsBlocked_settings-content-full-space__33Wp-","settings-content-tab-container":"settingsBlocked_settings-content-tab-container__1Np4x","settings-content-title":"settingsBlocked_settings-content-title__2Skzj","settings-content-title-sub":"settingsBlocked_settings-content-title-sub__1_5Y9","settings-action-button":"settingsBlocked_settings-action-button__1S357","settings-extra-space"
1:"settingsBlocked_settings-extra-space__2Iffa","settings-overview":"settingsBlocked_settings-overview__8EjFP","settings-blocked":"settingsBlocked_settings-blocked__307Ae","user-label__content":"settingsBlocked_user-label__content__3xP22","unblock-button":"settingsBlocked_unblock-button__IW3ry",slide:"settingsBlocked_slide__3IjPb"}},21571:function(e){e.exports={"settings-content":"settingDynamicPage_settings-content__vtWyr","settings-content-full-space":"settingDynamicPage_settings-content-full-space__14zst","settings-content-tab-container":"settingDynamicPage_settings-content-tab-container__1og_h","settings-content-title":"settingDynamicPage_settings-content-title__2vpSW","settings-content-title-sub":"settingDynamicPage_settings-content-title-sub__3DYYV","settings-action-button":"settingDynamicPage_settings-action-button__hBix2","settings-extra-space":"settingDynamicPage_settings-extra-space__2v9tf","settings-overview":"settingDynamicPage_settings-overview__20leT","title-container":"settingDynamicPage_title-container__1E-Bw","title-text":"settingDynamicPage_title-text__2fNfj","title-back-container":"settingDynamicPage_title-back-container__2sO8T","title-back-text":"settingDynamicPage_title-back-text__s4o37",slide:"settingDynamicPage_slide__1gTf9"}},63431:function(e){e.exports={"settings-content":"settingsNotifications_settings-content__3mJ-b","settings-content-full-space":"settingsNotifications_settings-content-full-space__WgOYU","settings-content-tab-container":"settingsNotifications_settings-content-tab-container__1idh-","settings-content-title":"settingsNotifications_settings-content-title__8jb2E","settings-content-title-sub":"settingsNotifications_settings-content-title-sub__cAxnb","settings-action-button":"settingsNotifications_settings-action-button__19oB8","settings-extra-space":"settingsNotifications_settings-extra-space__1TSvh","settings-overview":"settingsNotifications_settings-overview__1o5HF","settings-notification-heading":"settingsNotifications_settings-notification-heading__3Mu38","settings-notification-icon-container":"settingsNotifications_settings-notification-icon-container__2-oGk","settings-notification-glyph":"settingsNotifications_settings-notification-glyph__1X3S1","settings-notification-heading-title":"settingsNotifications_settings-notification-heading-title__1sC--","settings-notifications-block":"settingsNotifications_settings-notifications-block__1jdls",slide:"settingsNotifications_slide__2dllr"}},39929:function(e){e.exports={"settings-content":"paymentMethods_settings-content__2ah38","settings-content-full-space":"paymentMethods_settings-content-full-space__Fwqtn","settings-content-tab-container":"paymentMethods_settings-content-tab-container__14EvP","settings-content-title":"paymentMethods_settings-content-title__23Ibw","settings-content-title-sub":"paymentMethods_settings-content-title-sub__1jgUU","settings-action-button":"paymentMethods_settings-action-button__j5dVp","settings-extra-space":"paymentMethods_settings-extra-space__2F6Xg","settings-overview":"paymentMethods_settings-overview__1qNcF",container:"paymentMethods_container__16xmj","payment-method-title":"paymentMethods_payment-method-title__3qujh","settings-subscription-status":"paymentMethods_settings-subscription-status__2S8BV","settings-subscription-status-title":"paymentMethods_settings-subscription-status-title__yKNEx","settings-subscription-status-title--gold":"paymentMethods_settings-subscription-status-title--gold__3jFeG","settings-subscription-status-text":"paymentMethods_settings-subscription-status-text__1pRXx","settings-subscription-change-card-button":"paymentMethods_settings-subscription-change-card-button__2iEsD","settings-subscription-payment-title":"paymentMethods_settings-subscription-payment-title__3Fw3T","settings-subscription-card-container":"paymentMethods_settings-subscription-card-container__1zHMI","settings-subscription-card":"paymentMethods_settings-subscription-card__3Jd09","settings-subscription-card-icon":"paymentMethods_settings-subscription-card-icon__1B5iH","settings-subscription-card-content":"paymentMethods_settings-subscription-card-content__1JU4E","settings-subscription-card-number":"paymentMethods_settings-subscription-card-number__3xKcF","settings-subscription-card-expires":"paymentMethods_settings-subscription-card-expires__3hMMo","card-icon--visa":"paymentMethods_card-icon--visa__2edZw","card-icon--amex":"paymentMethods_card-icon--amex__24vbA","card-icon--dc":"paymentMethods_card-icon--dc__2pAsx","card-icon--discover":"paymentMethods_card-icon--discover__YJ5NG","card-icon--mastercard":"paymentMethods_card-icon--mastercard__Qkv9j","card-icon--jcb":"paymentMethods_card-icon--jcb__183u7",slide:"paymentMethods_slide__3miW1"}},35260:function(e){e.exports={"settings-content":"paymentsPurchases_settings-content__3Yge1","settings-content-full-space":"paymentsPurchases_settings-content-full-space__WuqTJ","settings-content-tab-container":"paymentsPurchases_settings-content-tab-container__3prl_","settings-content-title":"paymentsPurchases_settings-content-title__inlTK","settings-content-title-sub"
1:"paymentsPurchases_settings-content-title-sub__2t9Aq","settings-action-button":"paymentsPurchases_settings-action-button__1G4_v","settings-extra-space":"paymentsPurchases_settings-extra-space__f3MSz","settings-overview":"paymentsPurchases_settings-overview__1kawZ","main-container":"paymentsPurchases_main-container__cVjUj","title-container":"paymentsPurchases_title-container__24C_u","description-container":"paymentsPurchases_description-container__2KfE0","description-container-text":"paymentsPurchases_description-container-text__1YJ3w",link:"paymentsPurchases_link__2BY5n",slide:"paymentsPurchases_slide__1uaes"}},5366:function(e){e.exports={"payments-container":"settingsPaymentsRoot_payments-container__22fwy","total-title":"settingsPaymentsRoot_total-title__3nXG1","total-title-price":"settingsPaymentsRoot_total-title-price__1ezeP","action-section":"settingsPaymentsRoot_action-section__YmIGi","action-button":"settingsPaymentsRoot_action-button__3CFSR","action-button-cash":"settingsPaymentsRoot_action-button-cash__29jb8",slide:"settingsPaymentsRoot_slide__14Y82"}},48295:function(e){e.exports={"settings-content":"settingsProfile_settings-content__2CcC-","settings-content-full-space":"settingsProfile_settings-content-full-space__1t-jy","settings-content-tab-container":"settingsProfile_settings-content-tab-container__1xPHg","settings-content-title":"settingsProfile_settings-content-title__1cgWL","settings-content-title-sub":"settingsProfile_settings-content-title-sub__2G1XU","settings-action-button":"settingsProfile_settings-action-button__3v4kp","settings-extra-space":"settingsProfile_settings-extra-space__2Cpi3","settings-overview":"settingsProfile_settings-overview__2BSzq","action-button":"settingsProfile_action-button__3UDNV","settings-profile-image-editors":"settingsProfile_settings-profile-image-editors__3-Nk_","settings-profile-banner-editor":"settingsProfile_settings-profile-banner-editor__1cisZ","settings-profile-avatar-container":"settingsProfile_settings-profile-avatar-container__1OXM7","settings-profile-avatar-editor":"settingsProfile_settings-profile-avatar-editor__fjlh1",slide:"settingsProfile_slide__Ty08O"}},59773:function(e){e.exports={title:"sellSubscriptionsMySubscribers_title__3SAlX","action-csv-button":"sellSubscriptionsMySubscribers_action-csv-button__1oPMW","load-more-section":"sellSubscriptionsMySubscribers_load-more-section__2-_Yi","action-load-button":"sellSubscriptionsMySubscribers_action-load-button__3O4_U",slide:"sellSubscriptionsMySubscribers_slide__3Pr-9"}},93561:function(e){e.exports={container:"settingsSellSubscriptions_container__1E-Mk",title:"settingsSellSubscriptions_title__1_10x",slide:"settingsSellSubscriptions_slide__1krdt"}},99720:function(e){e.exports={container:"settingsSellSubscriptionsRoot_container__3zotW",description:"settingsSellSubscriptionsRoot_description__24N9O",slide:"settingsSellSubscriptionsRoot_slide__g1y3q"}},29097:function(e){e.exports={container:"sellSubscriptionsDiscontinueSubscriptions_container__12Ali",title:"sellSubscriptionsDiscontinueSubscriptions_title__hm6Ie","description-container":"sellSubscriptionsDiscontinueSubscriptions_description-container__2G9Ac",link:"sellSubscriptionsDiscontinueSubscriptions_link__3x3Y2",message:"sellSubscriptionsDiscontinueSubscriptions_message__3VShs","input-section":"sellSubscriptionsDiscontinueSubscriptions_input-section__1SHxl","action-section":"sellSubscriptionsDiscontinueSubscriptions_action-section__1jvq2","action-button":"sellSubscriptionsDiscontinueSubscriptions_action-button__12L13",slide:"sellSubscriptionsDiscontinueSubscriptions_slide__1vDNR"}},78510:function(e){e.exports={"description-container":"settingsSellSubscriptionsStart_description-container__kee4j","description-container-started":"settingsSellSubscriptionsStart_description-container-started__UfnEL","description-title":"settingsSellSubscriptionsStart_description-title__NoaHy","description-title-started":"settingsSellSubscriptionsStart_description-title-started__1Dr2W","description-text":"settingsSellSubscriptionsStart_description-text__29sZX","action-section":"settingsSellSubscriptionsStart_action-section__1c0qw","action-button":"settingsSellSubscriptionsStart_action-button__1KQUQ",button:"settingsSellSubscriptionsStart_button__1aBNQ","input-section":"settingsSellSubscriptionsStart_input-section__aVz-I","input-container":"settingsSellSubscriptionsStart_input-container__2-qBZ","price-input":"settingsSellSubscriptionsStart_price-input__2wvOu","form-action-section":"settingsSellSubscriptionsStart_form-action-section__bieX7",slide:"settingsSellSubscriptionsStart_slide__2ihDM"}}
1,38946:function(e){e.exports={"settings-content":"settingsSubscribedTo_settings-content__B085R","settings-content-full-space":"settingsSubscribedTo_settings-content-full-space__g54rj","settings-content-tab-container":"settingsSubscribedTo_settings-content-tab-container__2zJtl","settings-content-title":"settingsSubscribedTo_settings-content-title__rPWUp","settings-content-title-sub":"settingsSubscribedTo_settings-content-title-sub__1wNOb","settings-action-button":"settingsSubscribedTo_settings-action-button__2DNFB","settings-extra-space":"settingsSubscribedTo_settings-extra-space__1nkKS","settings-overview":"settingsSubscribedTo_settings-overview__1i7Gg","main-container":"settingsSubscribedTo_main-container__4nH4h",title:"settingsSubscribedTo_title__34Ftv","title-cancelled":"settingsSubscribedTo_title-cancelled__MkXAT","subscription-button-cancel":"settingsSubscribedTo_subscription-button-cancel__FqXYQ","subscription-button-resubscribe":"settingsSubscribedTo_subscription-button-resubscribe__2nmTI",slide:"settingsSub
1scribedTo_slide__3a-cw"}},20028:function(e){e.exports={title:"settingsSubscribedToModalCancel_title__1_16p","title-cancelled":"settingsSubscribedToModalCancel_title-cancelled__JsOXB",description:"settingsSubscribedToModalCancel_description__3sbkV","action-section":"settingsSubscribedToModalCancel_action-section__1ttZ2","action-section-cancelled-view":"settingsSubscribedToModalCancel_action-section-cancelled-view__2eo3B","action-button":"settingsSubscribedToModalCancel_action-button__1I5d_","action-button-cancel":"settingsSubscribedToModalCancel_action-button-cancel__G90dX","action-button-ok":"settingsSubscribedToModalCancel_action-button-ok__3o5ys",slide:"settingsSubscribedToModalCancel_slide__7RW6Y"}},39135:function(e){e.exports={"settings-content":"settingsTransactions_settings-content__3_knQ","settings-content-full-space":"settingsTransactions_settings-content-full-space__3Cj3m","settings-content-tab-container":"settingsTransactions_settings-content-tab-container__dPrWi","settings-content-title":"settingsTransactions_settings-content-title__38thN","settings-content-title-sub":"settingsTransactions_settings-content-title-sub__3LVA0","settings-action-button":"settingsTransactions_settings-action-button__2A9pr","settings-extra-space":"settingsTransactions_settings-extra-space__1FDgj","settings-overview":"settingsTransactions_settings-overview__20A9X","settings-transactions-credit":"settingsTransactions_settings-transactions-credit__cEkwI","settings-transactions-credit-text":"settingsTransactions_settings-transactions-credit-text__1d2lp","transaction-row":"settingsTransactions_transaction-row__2cwdJ","transaction-column":"settingsTransactions_transaction-column__rIdVb","transaction-column--bold":"settingsTransactions_transaction-column--bold__12R7W","transaction-column--light":"settingsTransactions_transaction-column--light__fVbPE","transaction-column--flex-1":"settingsTransactions_transaction-column--flex-1__3zSBf","transaction-column--flex-2":"settingsTransactions_transaction-column--flex-2__2n9hy","transaction-column--flex-3":"settingsTransactions_transaction-column--flex-3__3dGrU","transaction-column--flex-4":"settingsTransactions_transaction-column--flex-4__2F1AG",slide:"settingsTransactions_slide__2NXX7"}},79786:function(e){e.exports={"settings-content":"settingsWallet_settings-content__3_JHD","settings-content-full-space":"settingsWallet_settings-content-full-space__2hPct","settings-content-tab-container":"settingsWallet_settings-content-tab-container__2iF6A","settings-content-title":"settingsWallet_settings-content-title__1Jq5B","settings-content-title-sub":"settingsWallet_settings-content-title-sub__3AngF","settings-action-button":"settingsWallet_settings-action-button__VAjN_","settings-extra-space":"settingsWallet_settings-extra-space__2q4LC","settings-overview":"settingsWallet_settings-overview__1PX9k","settings-transactions-credit":"settingsWallet_settings-transactions-credit__21b6w","settings-transactions-credit-text":"settingsWallet_settings-transactions-credit-text__1eop6","transaction-row":"settingsWallet_transaction-row__27r2W","transaction-column":"settingsWallet_transaction-column__10uPS","transaction-column--bold":"settingsWallet_transaction-column--bold__1MZvz","transaction-column--light":"settingsWallet_transaction-column--light__1Pgm3","transaction-column--flex-1":"settingsWallet_transaction-column--flex-1__3-nMt","transaction-column--flex-2":"settingsWallet_transaction-column--flex-2__MkOZv","transaction-column--flex-3":"settingsWallet_transaction-column--flex-3__t4jbX","transaction-column--flex-4":"settingsWallet_transaction-column--flex-4__1c93v","cashout-container":"settingsWallet_cashout-container__1A3ao","cashout-text":"settingsWallet_cashout-text__3hbKI","cashout-text--inactive":"settingsWallet_cashout-text--inactive__dJjpC","cashout-background-bar":"settingsWallet_cashout-background-bar__2ift8","cashout-fill-bar":"settingsWallet_cashout-fill-bar__1MUXe","cashout-action-button":"settingsWallet_cashout-action-button__1AsLN","action-button":"settingsWallet_action-button__2129g","wallet-container":"settingsWallet_wallet-container__1ty3K","wallet-balance":"settingsWallet_wallet-balance__MLntu","transaction-plus":"settingsWallet_transaction-plus__14Mka","transaction-minus":"settingsWallet_transaction-minus__38cE6",link:"settingsWallet_link__SII-D",slide:"settingsWallet_slide__3b7kQ"}},64834:function(e){e.exports={"system-messages-container":"systemMessages_system-messages-container__jueLP","system-messages":"systemMessages_system-messages__1YKcE","system-messages-stack":"systemMessages_system-messages-stack__AembX","status-message":"systemMessages_status-message__3uDJh","status-message--red":"systemMessages_status-message--red__3omfg","status-message--green":"systemMessages_status-message--green__zB96E",slide:"systemMessages_slide__2DJ_T"}},88895:function(e){e.exports={"user-label":"userLabel_user-label__2Qi-X","user-label--nav-card":"userLabel_user-label--nav-card__2L5jj","simple-user-label-username":"userLabel_simple-user-label-username__1gnw3","user-label--list":"userLabel_user-label--list__1yQlg","user-label--comment":"userLabel_user-label--comment__3mZHd","user-label__image-link":"userLabel_user-label__image-link__3OMJm","user-label__image":"userLabel_user-label__image__XvvNW","user-label__image--border":"userLabel_user-label__image--border__2AHoB","user-label__content":"userLabel_user-label__content__3Zskv",slide:"userLabel_slide__3wu0n"}},97562:function(e){e.exports={"user-view":"userView_user-view__2rG4X","user-view-banner-image":"userView_user-view-banner-image__gw-B-","user-view-profile-image-container":"userView_user-view-profile-image-container__4gqRS","user-view-profile-image":"userView_user-view-profile-image__3vURA","user-view-content":"userView_user-view-content__2i0qp","user-view-username":"userView_user-view-username__3rZ7W","user-view-info":"userView_user-view-info__2IkND","user-view-follow-button-container":"userView_user-view-follow-button-container__30qif","user-view-follow-button":"userView_user-view-follow-button__3-mGf",slide:"userView_slide__2AT1e"}},87754:function(e){e.exports={"fancy-tab-selector":"fancyTabSelector_fancy-tab-selector__w0Hg2","fancy-tab-selector--write":"fancyTabSelector_fancy-tab-selector--write__1Da8b","fancy-tab-selector-item":"fancyTabSelector_fancy-tab-selector-item__3TSMO","save-selector-item":"fancyTabSelector_save-selector-item__aYPQG","fancy-tab-selector--challenge-header":"fancyTabSelector_fancy-tab-selector--challenge-header__3DHMK","fancy-tab-selector--profile":"fancyTabSelector_fancy-tab-selector--profile__2ON_8","fancy-tab-selector--notifications":"fancyTabSelector_fancy-tab-selector--notifications__2c9Q7","fancy-tab-selector--editor":"fancyTabSelector_fancy-tab-selector--editor__1yrM1","fancy-tab-seletor-item__title":"fancyTabSelector_fancy-tab-seletor-item__title__1rpX5","fancy-tab-selector-item--selected":"fancyTabSelector_fancy-tab-selector-item--selected__jzF2F","fancy-selector-desk-container":"fancyTabSelector_fancy-selector-desk-container__mvUns","fancy-tab-selector-item__glyph":"fancyTabSelector_fancy-tab-selector-item__glyph__PaktA","fancy-tab-selector-item__chevron":"fancyTabSelector_fancy-tab-selector-item__chevron__2LyA0","fancy-tab-selector-item--bright":"fancyTabSelector_fancy-tab-selector-item--bright__3Z1pT",slide:"fancyTabSelector_slide__32GUV"}},81234:function(e){e.exports={"image-editor":"imageEditor_image-editor__1UTs7","image-editor--hidden":"imageEditor_image-editor--hidden__1ZbR0","image-editor--write":"imageEditor_image-editor--write__1JeNF","image-editor__canvas-container":"imageEditor_image-editor__canvas-container__UEEZr","image-editor__slider":"imageEditor_image-editor__slider__1zSrf","image-editor__close-button":"imageEditor_image-editor__close-button__nMnU1","image-editor-close-button-icon":"imageEditor_image-editor-close-button-icon__rfRzB","image-editor__dragger":"imageEditor_image-editor__dragger__7cHFX","image-editor__remote-image":"imageEditor_image-editor__remote-image__3sAhF",slide:"imageEditor_slide__L_swH"}},32335:function(e){e.exports={"not-found-container":"notFound_not-found-container__QwxEo","not-found-image":"notFound_not-found-image__3R5bB",slide:"notFound_slide__2-GW-"}}
1,34844:function(e){e.exports={"simple-image-input":"simpleImageInput_simple-image-input__23tdl","simple-image-input__overlay":"simpleImageInput_simple-image-input__overlay__PrjFj","simple-image-input__empty":"simpleImageInput_simple-image-input__empty__mZA3c","simple-image-input--cover":"simpleImageInput_simple-image-input--cover__1GIwI","simple-image-input--portal":"simpleImageInput_simple-image-input--portal__171eb","simple-image-input__image":"simpleImageInput_simple-image-input__image__2mMUR",slide:"simpleImageInput_slide__1RhNY"}},34298:function(e){e.exports={"legal-terms-container":"legal_legal-terms-container__1c2TG","legal-status":"legal_legal-status__1TsrN","legal-status-text":"legal_legal-status-text__KuKmU","legal-status-status":"legal_legal-status-status__1bpEs","legal-terms-title":"legal_legal-terms-title__2x-ER","legal-terms-updated":"legal_legal-terms-updated___X3I4","legal-terms":"legal_legal-terms__3djL3",privacyPolicyTable:"legal_privacyPolicyTable__3nl2g",large:"legal_large__3Jgt-",small:"legal_small__2IbYw",gray:"legal_gray__1_0G9",slide:"legal_slide__1namz"}}}]);

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.