{"version":3,"sources":["public/publicConfig.js","themes/default/public/membership/pages/AccountActivationTemplate.jsx","themes/default/public/membership/pages/LoginTemplate.jsx","themes/default/public/membership/pages/PasswordRecoveryTemplate.jsx","themes/default/public/membership/pages/PasswordResetTemplate.jsx","themes/default/public/membership/pages/RegisterTemplate.jsx","themes/default/public/membership/pages/ArtistRegisterTemplate.jsx","public/membership/stores/account-activation/AccountActivationRouteStore.js","public/membership/stores/account-activation/AccountActivationViewStore.js","public/membership/forms/LoginForm.js","public/membership/forms/PasswordRecoveryForm.js","public/membership/forms/PasswordResetForm.js","public/membership/forms/RegisterForm.js","public/membership/forms/ArtistRegisterForm.js","public/membership/stores/login/LoginViewStore.js","public/membership/stores/login/LoginRouteStore.js","public/membership/stores/password-recovery/PasswordRecoveryRouteStore.js","public/membership/stores/password-recovery/PasswordRecoveryViewStore.js","public/membership/stores/password-reset/PasswordResetRouteStore.js","public/membership/stores/password-reset/PasswordResetViewStore.js","public/membership/stores/register/RegisterViewStore.js","public/membership/stores/register/RegisterRouteStore.js","public/membership/stores/register/ArtistRegisterViewStore.js","public/membership/stores/register/ArtistRegisterRouteStore.js","public/membership/pages/AccountActivation.jsx","public/membership/pages/Login.jsx","public/membership/pages/PasswordRecovery.jsx","public/membership/pages/PasswordReset.jsx","public/membership/pages/Register.jsx","public/membership/pages/ArtistRegister.jsx","public/membership/membershipConfig.js"],"names":["moduleProviderFactory","module","register","name","routes","pattern","isPublic","component","PublicLayout","beforeEnter","fromState","toState","routerStore","authenticationStore","rootStore","isAuthenticated","Promise","reject","initialState","ActivationStatus","observer","_ref2","accountActivationViewStore","t","activationStatus","accountActivationStatuses","timer","message","tokenMissing","alreadyActivated","inProgress","success","seconds","concat","defaultTemplate","_ref","goToApp","_jsxs","className","children","_jsx","React","Fragment","MrbButton","onClick","label","LoginFooter","form","type","aria-busy","submitting","disabled","validating","MrbRouterLink","routeName","loginViewStore","navigateToArtistSignUp","MrbEditFormLayout","submitLabel","footer","MrbFieldInput","field","$","classNameExtend","autoComplete","PasswordRecoveryStatus","passwordRecoveryViewStore","recaptchaViewStore","goBack","submitDisabled","onClickCancel","MrbRecaptcha","store","PasswordResetStatus","passwordResetViewStore","goToLogin","PasswordFieldInfo","PrivacyPolicyLabel","id","htmlFor","href","RegistrationStatus","_ref3","registerViewStore","RegisterFooter","_ref4","aria-label","MrbRecaptchaPrivacyPolicy","MrbFieldCheckbox","labelRender","props","ArtistContentUsageAgreement","PodcasterContentUsageAgreement","ContentUsageAgreementLabel","artistRegisterViewStore","_ref5","producerTypes","MrbFieldRadioButtons","classNameOverride","inputClassNameOverride","rowView","options","value","MrbFieldTextArea","AccountActivationRouteStore","_class","MrbBaseRouteStore","constructor","super","_initializerDefineProperty","_descriptor","_defineProperty","error","async","_","this","activationToken","queryParams","activateAccount","runInAction","accountActivationStatus","_descriptor2","makeObservable","_applyDecoratedDescriptor","prototype","observable","configurable","enumerable","writable","initializer","action","application","baasic","membershipModule","activate","err","statusCode","httpStatusCodes","NotFound","AccountActivationViewStore","MrbBaseViewStore","routeStore","goTo","that","reaction","redirectTimer","setInterval","fireImmediately","onDestroy","clearInterval","computed","Object","getOwnPropertyDescriptor","LoginForm","LocalizedForm","hooks","setup","fields","placeholder","rules","PasswordRecoveryForm","PasswordResetForm","RegisterForm","ArtistRegisterForm","LoginViewStore","onSuccess","username","password","values","login","onInit","focus","destroy","data","BadRequest","invalidate","LoginRouteStore","userStore","resolveUser","redirect","getSignInRedirect","PasswordRecoveryRouteStore","email","recaptcha","passwordRecovery","requestReset","userName","challengeResponse","recoverUrl","window","location","origin","PasswordRecoveryViewStore","requestPasswordReset","MrbRecaptchaViewStore","siteKey","ApplicationSettings","routerState","set","resolve","recaptchaToken","execute","PasswordResetRouteStore","passwordRecoveryToken","reset","newPassword","PasswordResetViewStore","_descriptor3","resetPassword","RegisterViewStore","RegisterRouteStore","create","firstName","lastName","confirmPassword","generateUserName","activationUrl","split","replace","moment","unix","ArtistRegisterViewStore","_dec","bound","_dec2","selectedProducerTypeSlug","setSelectedProducerTypeSlug","localizationService","producerTypeSlug","selectedProducerType","find","producerType","ArtistRegisterRouteStore","userAccountService","createApplicationService","UserAccountService","artistRegister","phoneNumber","artistRegisterMessage","AccountActivation","setCurrentView","componentProps","Component","render","AccountActivationTemplate","Login","LoginTemplate","PasswordRecovery","PasswordRecoveryTemplate","PasswordReset","PasswordResetTemplate","Register","RegisterTemplate","ArtistRegister","ArtistRegisterTemplate"],"mappings":"wLAAA,2BAIIA,IAAsBC,OAAO,UAAUC,SAAS,CAC5CC,KAAM,SACNC,OAAQ,CACJ,CACID,KAAM,gBACNE,QAAS,GACTC,UAAU,EACVC,UAAWC,IACXC,YAAaA,CAACC,EAAWC,EAASC,KAC9B,MAAM,oBAAEC,GAAwBD,EAAYE,UAC5C,GAAID,EAAoBE,gBACpB,OAAOC,QAAQC,OAAOL,EAAYM,oB,kGCiB1D,MAAMC,EAAmBC,oBAAS,SAAyBC,GAAqC,IAApC,2BAAEC,EAA0B,EAAEC,GAAGF,EACzF,MAAM,iBAAEG,EAAgB,0BAAEC,EAAyB,MAAEC,GAAUJ,EAC/D,IAAIK,EAAU,KACd,OAAQH,GACJ,KAAKC,EAA0BG,aAC3BD,EAAUJ,EAAE,uDACZ,MACJ,KAAKE,EAA0BI,iBAC3BF,EAAUJ,EAAE,gDACZ,MACJ,KAAKE,EAA0BK,WAC3BH,EAAUJ,EAAE,0CACZ,MACJ,KAAKE,EAA0BM,QAC3BJ,EAAUJ,EAAE,qCAAsC,CAC9CS,QAAoB,GAAAC,OAAMP,EAAP,IAAVA,EAAsB,WAAqB,aAOhE,OAAOC,KAQIO,mBAxDf,SAAkCC,GAAqC,IAApC,2BAAEb,EAA0B,EAAEC,GAAGY,EAChE,MAAM,QAAEC,EAAO,iBAAEZ,EAAgB,0BAAEC,GAA8BH,EACjE,OACIe,eAAA,OAAKC,UAAU,oDAAmDC,SAAA,CAC9DC,cAAA,MAAIF,UAAU,0CAAyCC,SAAEhB,EAAE,8BAE3D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AAClO,EAAWmO,IACR,IAAIhC,GAAkBnM,EAAWmO,IACrC,oBACHnB,CAAArH,GAJD,cAKuBhE,IAAMyM,UACzBC,SACI,OAAO3M,cAACoN,EAAgB,IAAKzI,KAAKzB,YAEzCe,GCCcoJ,OAVdb,aACG,CAAClO,EAAWmO,IAAmB,IAAIpB,GAAwB/M,EAAWmO,IACtE,0BACHnB,CAAArH,GAHD,cAI6BhE,IAAMyM,UAC/BC,SACI,OAAO3M,cAACsN,EAAsB,IAAK3I,KAAKzB,YAE/Ce,GCMGzG,IAAsBC,OAAO,UAAUC,SAAS,CAC5CC,KAAM,aACNC,OAAQ,CACJ,CACID,KAAM,2BACNE,QAAS,GACTC,UAAU,EACViC,SAAU,CACN,CACIpC,KAAM,4CACNE,QAAS,sBACTC,UAAU,EACVC,UAAWwO,GACXvK,MAAOgC,GAEX,CACIrG,KAAM,iCACNE,QAAS,WACTC,UAAU,EACVC,UAAW8O,GACX7K,MAAOwG,IAEX,CACI7K,KAAM,kCACNE,QAAS,WACTC,UAAU,EACVC,UAAWoP,GACXnL,MAAO0I,IAEX,CACI/M,KAAM,yCACNE,QAAS,kBACTC,UAAU,EACVC,UAAWsP,GACXrL,MAAOgK,IAEX,CACIrO,KAAM,6CACNE,QAAS,qBACTC,UAAU,EACVC,UAAWgP,GACX/K,MAAO6G,IAEX,CACIlL,KAAM,0CACNE,QAAS,kBACTC,UAAU,EACVC,UAAWkP,GACXjL,MAAOkI,W","file":"static/js/publicModules.8ab1710d.chunk.js","sourcesContent":["import { moduleProviderFactory } from \"mrb/core\";\r\nimport { PublicLayout } from \"common/layouts\";\r\n\r\n(function () {\r\n moduleProviderFactory.module(\"public\").register({\r\n name: \"public\",\r\n routes: [\r\n {\r\n name: \"master.public\",\r\n pattern: \"\",\r\n isPublic: true,\r\n component: PublicLayout,\r\n beforeEnter: (fromState, toState, routerStore) => {\r\n const { authenticationStore } = routerStore.rootStore;\r\n if (authenticationStore.isAuthenticated) {\r\n return Promise.reject(routerStore.initialState);\r\n }\r\n },\r\n },\r\n ],\r\n });\r\n})();\r\n","import React from \"react\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { MrbButton } from \"mrb/components/button\";\r\nimport { observer } from \"mobx-react\";\r\n\r\nfunction AccountActivationTemplate({ accountActivationViewStore, t }) {\r\n const { goToApp, activationStatus, accountActivationStatuses } = accountActivationViewStore;\r\n return (\r\n
\r\n

{t(\"ACCOUNT_ACTIVATION.TITLE\")}

\r\n\r\n

\r\n \r\n

\r\n {activationStatus === accountActivationStatuses.success && (\r\n \r\n
\r\n

{t(\"ACCOUNT_ACTIVATION.MOBILE_APP_MESSAGE\")}

\r\n
\r\n \r\n
\r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst ActivationStatus = observer(function ActivationStatus({ accountActivationViewStore, t }) {\r\n const { activationStatus, accountActivationStatuses, timer } = accountActivationViewStore;\r\n let message = null;\r\n switch (activationStatus) {\r\n case accountActivationStatuses.tokenMissing:\r\n message = t(\"ACCOUNT_ACTIVATION.MISSING_ACTIVATION_TOKEN_MESSAGE\");\r\n break;\r\n case accountActivationStatuses.alreadyActivated:\r\n message = t(\"ACCOUNT_ACTIVATION.ALREADY_ACTIVATED_MESSAGE\");\r\n break;\r\n case accountActivationStatuses.inProgress:\r\n message = t(\"ACCOUNT_ACTIVATION.IN_PROGRESS_MESSAGE\");\r\n break;\r\n case accountActivationStatuses.success:\r\n message = t(\"ACCOUNT_ACTIVATION.SUCCESS_MESSAGE\", {\r\n seconds: timer !== 1 ? `${timer} seconds` : `${timer} second`,\r\n });\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n return message;\r\n});\r\n\r\nAccountActivationTemplate.propTypes = {\r\n accountActivationViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(AccountActivationTemplate);\r\n","import React from \"react\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport { MrbRouterLink } from \"mrb/core/infrastructure/router\";\r\nimport { MrbFieldInput, MrbEditFormLayout, MrbButton } from \"mrb/components\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { observer } from \"mobx-react\";\r\n\r\nfunction LoginTemplate({ loginViewStore, t }) {\r\n const { form, navigateToArtistSignUp } = loginViewStore;\r\n return (\r\n \r\n
\r\n \r\n
\r\n

\r\n Not a member?{\" \"}\r\n Sign up now.\r\n

\r\n
\r\n
\r\n

{t(\"LOGIN.TITLE\")}

\r\n }\r\n >\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nLoginTemplate.propTypes = {\r\n loginViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nconst LoginFooter = observer(function LoginFooter({ form, t }) {\r\n const label = t(\"LOGIN.SIGNIN_BUTTON\");\r\n return (\r\n
\r\n \r\n\r\n
\r\n\r\n \r\n Forgot your password?\r\n \r\n
\r\n );\r\n});\r\n\r\nexport default defaultTemplate(LoginTemplate);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { MrbFieldInput, MrbRecaptcha, MrbEditFormLayout } from \"mrb/components\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { observer } from \"mobx-react\";\r\n\r\nfunction PasswordRecoveryTemplate({ passwordRecoveryViewStore, t }) {\r\n const { form, recaptchaViewStore, success, goBack } = passwordRecoveryViewStore;\r\n return (\r\n
\r\n
\r\n

{t(\"PASSWORD_RECOVERY.TITLE\")}

\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nPasswordRecoveryTemplate.propTypes = {\r\n passwordRecoveryViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nconst PasswordRecoveryStatus = observer(function PasswordRecoveryStatus({ passwordRecoveryViewStore, t }) {\r\n if (passwordRecoveryViewStore.success) {\r\n return (\r\n
\r\n

{t(\"PASSWORD_RECOVERY.SUCCESS_MESSAGE\")}

\r\n
\r\n );\r\n }\r\n return null;\r\n});\r\n\r\nPasswordRecoveryStatus.propTypes = {\r\n passwordRecoveryViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(PasswordRecoveryTemplate);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { MrbFieldInput, MrbEditFormLayout } from \"mrb/components\";\r\nimport { PasswordFieldInfo } from \"common/components\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { observer } from \"mobx-react\";\r\n\r\nfunction PasswordResetTemplate({ passwordResetViewStore, t }) {\r\n const { form, success, goToLogin } = passwordResetViewStore;\r\n return (\r\n
\r\n
\r\n

{t(\"PASSWORD_RESET.TITLE\")}

\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nPasswordResetTemplate.propTypes = {\r\n PasswordResetTemplate: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nconst PasswordResetStatus = observer(function PasswordResetStatus({ passwordResetViewStore, t }) {\r\n if (passwordResetViewStore.success) {\r\n return (\r\n
\r\n

\r\n {t(\"PASSWORD_RESET.SUCCESS_MESSAGE\", {\r\n seconds: passwordResetViewStore.timer,\r\n })}\r\n

\r\n
\r\n );\r\n }\r\n return null;\r\n});\r\n\r\nPasswordResetStatus.propTypes = {\r\n passwordResetViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(PasswordResetTemplate);\r\n","import React from \"react\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport { MrbRouterLink } from \"mrb/core/infrastructure/router\";\r\nimport {\r\n MrbButton,\r\n MrbFieldInput,\r\n MrbFieldCheckbox,\r\n MrbRecaptcha,\r\n MrbEditFormLayout,\r\n MrbRecaptchaPrivacyPolicy,\r\n} from \"mrb/components\";\r\nimport { PasswordFieldInfo } from \"common/components\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { observer } from \"mobx-react\";\r\n\r\nfunction RegisterTemplate({ registerViewStore, t }) {\r\n const { form, success, recaptchaViewStore } = registerViewStore;\r\n return (\r\n \r\n
\r\n
\r\n

\r\n Already a member?{\" \"}\r\n Sign in now.\r\n

\r\n
\r\n
\r\n

{t(\"REGISTER.TITLE\")}

\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nRegisterTemplate.propTypes = {\r\n registerViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nfunction PrivacyPolicyLabel({ id }) {\r\n return (\r\n \r\n );\r\n}\r\n\r\nconst RegistrationStatus = observer(function RegistrationStatus({ registerViewStore, t }) {\r\n if (registerViewStore.success) {\r\n return (\r\n
\r\n

{t(\"REGISTER.SUCCESS_MESSAGE\")}

\r\n
\r\n );\r\n }\r\n return null;\r\n});\r\n\r\nconst RegisterFooter = observer(function LoginFooter({ form, submitDisabled, t }) {\r\n const label = t(\"REGISTER.BUTTONS.SIGN_UP\");\r\n return (\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n );\r\n});\r\n\r\nexport default defaultTemplate(RegisterTemplate);\r\n","import React from \"react\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport { MrbRouterLink } from \"mrb/core/infrastructure/router\";\r\nimport {\r\n MrbButton,\r\n MrbFieldInput,\r\n MrbFieldCheckbox,\r\n MrbRecaptcha,\r\n MrbEditFormLayout,\r\n MrbRecaptchaPrivacyPolicy,\r\n MrbFieldTextArea,\r\n} from \"mrb/components\";\r\nimport { PasswordFieldInfo } from \"common/components\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport { observer } from \"mobx-react\";\r\nimport { MrbFieldRadioButtons } from \"baasic-react-bootstrap/src\";\r\n\r\nfunction ArtistRegisterTemplate({ artistRegisterViewStore, t }) {\r\n const { form, success, recaptchaViewStore, producerTypes } = artistRegisterViewStore;\r\n\r\n return (\r\n \r\n
\r\n
\r\n

\r\n Already a member?{\" \"}\r\n Sign in now.\r\n

\r\n
\r\n
\r\n

{t(\"REGISTER.TITLE\")}

\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {form.$(\"producerType\").value === 1 ? (\r\n \r\n ) : (\r\n \r\n )}\r\n }\r\n />\r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nArtistRegisterTemplate.propTypes = {\r\n artistRegisterViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nfunction PrivacyPolicyLabel({ id }) {\r\n return (\r\n \r\n );\r\n}\r\n\r\nfunction ArtistContentUsageAgreement() {\r\n return (\r\n
\r\n

By joining Naki as an Artist, you agree to the following terms:

\r\n
    \r\n
  1. \r\n

    \r\n Publishing of Audio Content. Artist hereby grants to Naki permission during the\r\n term of this Agreement to publish Content via Naki’s Device and App.\r\n

    \r\n
  2. \r\n
  3. \r\n

    \r\n Artist’s Intellectual Property Rights. Artist exclusively owns all rights,\r\n title and interest in and to Content, though it grants Naki via this Agreement the right to host\r\n and publish such Content via Naki’s Device and App. Artist warrants that it has all rights and\r\n consents necessary to allow Naki to use the Content.\r\n

    \r\n
  4. \r\n
  5. \r\n

    \r\n Payment for Content. Naki will apportion $7.50 of each subscriber’s payment for\r\n Premium content to Artists. The distribution of such revenue to individual Artists will be\r\n determined by the accumulated duration of streams equal to or exceeding 10 seconds of the\r\n Artist’s content in proportion to the accumulated duration of streams equal to or exceeding 10\r\n seconds of all Artists’ Content throughout the billing period.\r\n

    \r\n
  6. \r\n
  7. \r\n

    \r\n Data and Tracking. Naki shall track usage of Content to determine revenue\r\n distribution to Artists. The accuracy of such data shall be determined by Naki at its sole\r\n discretion.\r\n

    \r\n
  8. \r\n
  9. \r\n

    \r\n Popularity and Charts. Naki shall have the right to publicize the popularity\r\n and statistics of Content as determined by Naki’s internal tracking data. The accuracy of such\r\n data shall be determined by Naki at its sole discretion.\r\n

    \r\n
  10. \r\n
  11. \r\n

    \r\n Content Review and Availability. Naki shall have the right to review and\r\n approve any Content prior to publishing on Naki’s Device or App. Naki may remove Content at any\r\n time at its sole discretion.\r\n

    \r\n
  12. \r\n
  13. \r\n

    \r\n Promotion of Content. Artist grants Naki license to promote and publish samples\r\n of Content in a limited manner on Naki’s Device, App and/or website, as well as license to use\r\n Artist’s branding in marketing and promotional materials.\r\n

    \r\n
  14. \r\n
  15. \r\n

    \r\n Termination. Either Party may terminate this Agreement at any time with written\r\n notice to the other party.\r\n

    \r\n
  16. \r\n
  17. \r\n

    \r\n Survival. Upon termination of this Agreement, Section 2 shall survive this\r\n Agreement.\r\n

    \r\n
  18. \r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction PodcasterContentUsageAgreement() {\r\n return (\r\n
\r\n

By joining Naki as a Podcaster, you agree to the following terms:

\r\n
    \r\n
  1. \r\n

    \r\n Publishing of Audio Content. Podcaster hereby grants to Naki permission during\r\n the term of this Agreement to publish Content via Naki’s Device and App.\r\n

    \r\n
  2. \r\n
  3. \r\n

    \r\n Podcaster’s Intellectual Property Rights. Podcaster exclusively owns all\r\n rights, title and interest in and to Content, though it grants Naki via this Agreement the right\r\n to host and publish such Content via Naki’s Device and App. Podcaster warrants that that it has\r\n all rights and consents necessary to allow Naki to use the Content.\r\n

    \r\n
  4. \r\n
  5. \r\n

    \r\n Content Import, Statistics and Data. Content shall be imported and stored at\r\n Naki for the purpose of distribution via Naki’s Device and/or App. Engagement statistics for\r\n Content distributed by Naki shall will be made available to Podcaster via the Podcaster’s Naki\r\n account. The accuracy of such data shall be determined by Naki at its sole discretion.\r\n

    \r\n
  6. \r\n
  7. \r\n

    \r\n Popularity and Charts. Naki shall have the right to publicize the popularity\r\n and statistics of Content as determined by Naki’s internal tracking data. The accuracy of such\r\n data shall be determined by Naki at its sole discretion.\r\n

    \r\n
  8. \r\n
  9. \r\n

    \r\n Content Review and Availability. Naki shall have the right to review and\r\n approve any Content prior to publishing on Naki’s Device or App. Naki may remove Content at any\r\n time at its sole discretion.\r\n

    \r\n
  10. \r\n
  11. \r\n

    \r\n Promotion of Content. Podcaster grants Naki license to promote and publish\r\n samples of Content in a limited manner on Naki’s Device, App or website, as well as license to\r\n use Podcaster’s branding in marketing and promotional materials.\r\n

    \r\n
  12. \r\n
  13. \r\n

    \r\n Termination. Either Party may terminate this Agreement at any time with written\r\n notice to the other party.\r\n

    \r\n
  14. \r\n
  15. \r\n

    \r\n Survival. Upon termination of this Agreement, Section 2 shall survive this\r\n Agreement.\r\n

    \r\n
  16. \r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction ContentUsageAgreementLabel({ id }) {\r\n return (\r\n \r\n );\r\n}\r\n\r\nconst RegistrationStatus = observer(function RegistrationStatus({ artistRegisterViewStore, t }) {\r\n if (artistRegisterViewStore.success) {\r\n return (\r\n
\r\n

{t(\"REGISTER.SUCCESS_MESSAGE\")}

\r\n
\r\n );\r\n }\r\n return null;\r\n});\r\n\r\nconst RegisterFooter = observer(function LoginFooter({ form, submitDisabled, t }) {\r\n const label = t(\"REGISTER.BUTTONS.SIGN_UP\");\r\n return (\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n );\r\n});\r\n\r\nexport default defaultTemplate(ArtistRegisterTemplate);\r\n","import { action, observable, makeObservable, runInAction } from \"mobx\";\r\nimport { MrbBaseRouteStore, httpStatusCodes } from \"mrb/core\";\r\n\r\nclass AccountActivationRouteStore extends MrbBaseRouteStore {\r\n @observable accountActivationStatus = null;\r\n\r\n activationToken = null;\r\n\r\n accountActivationStatuses = {\r\n inProgress: \"inProgress\",\r\n success: \"success\",\r\n error: \"error\",\r\n tokenMissing: \"tokenMissing\",\r\n alreadyActivated: \"alreadyActivated\",\r\n };\r\n\r\n constructor(rootStore) {\r\n super(rootStore);\r\n makeObservable(this);\r\n }\r\n\r\n onEnter = async (_, toState) => {\r\n this.activationToken = toState.queryParams.activationToken;\r\n if (this.activationToken) {\r\n await this.activateAccount();\r\n } else {\r\n runInAction(() => {\r\n this.accountActivationStatus = this.accountActivationStatuses.tokenMissing;\r\n });\r\n }\r\n };\r\n\r\n @action activateAccount = async () => {\r\n try {\r\n this.accountActivationStatus = this.accountActivationStatuses.inProgress;\r\n await this.rootStore.application.baasic.membershipModule.register.activate(this.activationToken);\r\n runInAction(() => {\r\n this.accountActivationStatus = this.accountActivationStatuses.success;\r\n });\r\n } catch (err) {\r\n if (err && err.statusCode === httpStatusCodes.NotFound) {\r\n runInAction(() => {\r\n this.accountActivationStatus = this.accountActivationStatuses.alreadyActivated;\r\n });\r\n }\r\n }\r\n };\r\n}\r\n\r\nexport default AccountActivationRouteStore;\r\n","import { MrbBaseViewStore } from \"mrb/core\";\r\nimport { computed, makeObservable, observable, runInAction } from \"mobx\";\r\n\r\nclass AccountActivationViewStore extends MrbBaseViewStore {\r\n @computed get activationStatus() {\r\n return this.routeStore.accountActivationStatus;\r\n }\r\n\r\n @computed get success() {\r\n return this.activationStatus === this.accountActivationStatuses.success;\r\n }\r\n\r\n get accountActivationStatuses() {\r\n return this.routeStore.accountActivationStatuses;\r\n }\r\n\r\n redirectTimer = null;\r\n @observable timer = 10;\r\n\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n makeObservable(this);\r\n this.routeStore = routeStore;\r\n\r\n const that = this;\r\n this.reaction(\r\n () => this.success,\r\n (success) => {\r\n if (success) {\r\n this.redirectTimer = setInterval(() => {\r\n runInAction(() => {\r\n if (that.timer > 0) {\r\n --that.timer;\r\n }\r\n });\r\n }, 1000);\r\n }\r\n },\r\n {\r\n fireImmediately: true,\r\n }\r\n );\r\n\r\n this.reaction(\r\n () => this.timer,\r\n (timer) => {\r\n if (timer === 0) {\r\n this.goToApp();\r\n }\r\n }\r\n );\r\n }\r\n\r\n goToApp = () => {\r\n this.rootStore.routerStore.goTo(this.rootStore.routerStore.initialState);\r\n };\r\n\r\n onDestroy() {\r\n if (this.redirectTimer) {\r\n clearInterval(this.redirectTimer);\r\n }\r\n }\r\n}\r\n\r\nexport default AccountActivationViewStore;\r\n","import { LocalizedForm } from \"common/localization\";\r\nexport default class LoginForm extends LocalizedForm {\r\n constructor(hooks) {\r\n super(hooks);\r\n }\r\n\r\n setup() {\r\n return {\r\n fields: [\r\n {\r\n name: \"username\",\r\n label: \"LOGIN.USERNAME_LABEL\",\r\n placeholder: \"LOGIN.USERNAME_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"password\",\r\n label: \"LOGIN.PASSWORD_LABEL\",\r\n type: \"password\",\r\n rules: \"required|string\",\r\n placeholder: \"LOGIN.PASSWORD_PLACEHOLDER\",\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { LocalizedForm } from \"common/localization\";\r\n\r\nexport default class PasswordRecoveryForm extends LocalizedForm {\r\n constructor(hooks) {\r\n super(hooks);\r\n }\r\n\r\n setup() {\r\n return {\r\n fields: [\r\n {\r\n name: \"email\",\r\n label: \"PASSWORD_RECOVERY.FIELDS.EMAIL_LABEL\",\r\n placeholder: \"PASSWORD_RECOVERY.FIELDS.EMAIL_PLACEHOLDER\",\r\n rules: \"required|email|string\",\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { LocalizedForm } from \"common/localization\";\r\n\r\nexport default class PasswordResetForm extends LocalizedForm {\r\n constructor(hooks) {\r\n super(hooks);\r\n }\r\n\r\n setup() {\r\n return {\r\n fields: [\r\n {\r\n name: \"password\",\r\n label: \"PASSWORD_RESET.FIELDS.NEW_PASSWORD_LABEL\",\r\n type: \"password\",\r\n placeholder:\r\n \"PASSWORD_RESET.FIELDS.NEW_PASSWORD_PLACEHOLDER\",\r\n rules: [\r\n \"required\",\r\n \"string\",\r\n \"min:8\",\r\n \"regex:/([^a-zA-Z\\\\d])+([a-zA-Z\\\\d])+|([a-zA-Z\\\\d])+([^a-zA-Z\\\\d])+/\",\r\n ],\r\n },\r\n {\r\n name: \"confirmPassword\",\r\n label: \"PASSWORD_RESET.FIELDS.CONFIRM_PASSWORD_LABEL\",\r\n placeholder:\r\n \"PASSWORD_RESET.FIELDS.CONFIRM_PASSWORD_PLACEHOLDER\",\r\n rules: \"required|string|same:password\",\r\n type: \"password\",\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { LocalizedForm } from \"common/localization\";\r\n\r\nexport default class RegisterForm extends LocalizedForm {\r\n constructor(hooks) {\r\n super(hooks);\r\n }\r\n\r\n setup() {\r\n return {\r\n fields: [\r\n {\r\n name: \"email\",\r\n label: \"REGISTER.FIELDS.EMAIL_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.EMAIL_PLACEHOLDER\",\r\n rules: \"required|email|string\",\r\n },\r\n {\r\n name: \"confirmEmail\",\r\n label: \"REGISTER.FIELDS.CONFIRM_EMAIL_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.CONFIRM_EMAIL_PLACEHOLDER\",\r\n rules: \"required|email|string|same:email\",\r\n },\r\n {\r\n name: \"firstName\",\r\n label: \"REGISTER.FIELDS.FIRST_NAME_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.FIRST_NAME_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"lastName\",\r\n label: \"REGISTER.FIELDS.LAST_NAME_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.LAST_NAME_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"password\",\r\n label: \"REGISTER.FIELDS.PASSWORD_LABEL\",\r\n type: \"password\",\r\n placeholder: \"REGISTER.FIELDS.PASSWORD_PLACEHOLDER\",\r\n rules: [\r\n \"required\",\r\n \"string\",\r\n \"min:8\",\r\n \"regex:/([^a-zA-Z\\\\d])+([a-zA-Z\\\\d])+|([a-zA-Z\\\\d])+([^a-zA-Z\\\\d])+/\",\r\n ],\r\n },\r\n {\r\n name: \"confirmPassword\",\r\n label: \"REGISTER.FIELDS.CONFIRM_PASSWORD_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.CONFIRM_PASSWORD_PLACEHOLDER\",\r\n rules: \"required|string|same:password\",\r\n type: \"password\",\r\n },\r\n {\r\n name: \"privacyPolicy\",\r\n label: \"REGISTER.FIELDS.PRIVACY_POLICY_LABEL\",\r\n rules: \"accepted\",\r\n type: \"checkbox\",\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { LocalizedForm } from \"common/localization\";\r\n\r\nexport default class ArtistRegisterForm extends LocalizedForm {\r\n constructor(hooks) {\r\n super(hooks);\r\n }\r\n\r\n setup() {\r\n return {\r\n fields: [\r\n {\r\n name: \"email\",\r\n label: \"REGISTER.FIELDS.EMAIL_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.EMAIL_PLACEHOLDER\",\r\n rules: \"required|email|string\",\r\n },\r\n {\r\n name: \"confirmEmail\",\r\n label: \"REGISTER.FIELDS.CONFIRM_EMAIL_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.CONFIRM_EMAIL_PLACEHOLDER\",\r\n rules: \"required|email|string|same:email\",\r\n },\r\n {\r\n name: \"firstName\",\r\n label: \"REGISTER.FIELDS.FIRST_NAME_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.FIRST_NAME_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"lastName\",\r\n label: \"REGISTER.FIELDS.LAST_NAME_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.LAST_NAME_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"password\",\r\n label: \"REGISTER.FIELDS.PASSWORD_LABEL\",\r\n type: \"password\",\r\n placeholder: \"REGISTER.FIELDS.PASSWORD_PLACEHOLDER\",\r\n rules: [\r\n \"required\",\r\n \"string\",\r\n \"min:8\",\r\n \"regex:/([^a-zA-Z\\\\d])+([a-zA-Z\\\\d])+|([a-zA-Z\\\\d])+([^a-zA-Z\\\\d])+/\",\r\n ],\r\n },\r\n {\r\n name: \"confirmPassword\",\r\n label: \"REGISTER.FIELDS.CONFIRM_PASSWORD_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.CONFIRM_PASSWORD_PLACEHOLDER\",\r\n rules: \"required|string|same:password\",\r\n type: \"password\",\r\n },\r\n {\r\n name: \"producerType\",\r\n label: \"REGISTER.FIELDS.PRODUCER_TYPE_LABEL\",\r\n type: \"radio\",\r\n value: 1,\r\n rules: \"required\",\r\n },\r\n {\r\n name: \"phoneNumber\",\r\n label: \"REGISTER.FIELDS.PHONE_NUMBER_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.PHONE_NUMBER_PLACEHOLDER\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"artistRegisterMessage\",\r\n label: \"REGISTER.FIELDS.ARTIST_REGISTER_MESSAGE_LABEL\",\r\n placeholder: \"REGISTER.FIELDS.ARTIST_REGISTER_MESSAGE_PLACEHOLDER.ARTIST\",\r\n rules: \"required|string\",\r\n },\r\n {\r\n name: \"contentUsageAgreement\",\r\n label: \"Content Usage Agreement\",\r\n rules: \"accepted\",\r\n type: \"checkbox\",\r\n },\r\n {\r\n name: \"privacyPolicy\",\r\n label: \"REGISTER.FIELDS.PRIVACY_POLICY_LABEL\",\r\n rules: \"accepted\",\r\n type: \"checkbox\",\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { action } from \"mobx\";\r\nimport { MrbBaseViewStore, httpStatusCodes } from \"mrb/core\";\r\nimport { LoginForm } from \"public/membership/forms\";\r\nimport MobxReactFormDevTools from \"mobx-react-form-devtools\";\r\n\r\nclass LoginViewStore extends MrbBaseViewStore {\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n this.routeStore = routeStore;\r\n\r\n this.form = new LoginForm({\r\n onSuccess: async (form) => {\r\n const { username, password } = form.values();\r\n await this.login({\r\n username,\r\n password,\r\n });\r\n },\r\n onInit: (form) => {\r\n form.$(\"username\").focus();\r\n },\r\n });\r\n\r\n if (process.env.NODE_ENV === \"development\") {\r\n MobxReactFormDevTools.register({ login: this.form });\r\n MobxReactFormDevTools.select(\"login\");\r\n }\r\n }\r\n\r\n navigateToArtistSignUp = () => {\r\n this.rootStore.routerStore.goTo(\"master.public.membership.artist-signup\");\r\n };\r\n\r\n @action login = async (data) => {\r\n try {\r\n await this.routeStore.login(data);\r\n } catch (err) {\r\n const { statusCode, data } = err;\r\n if (statusCode === httpStatusCodes.BadRequest) {\r\n if (data.error === \"invalid_grant\") {\r\n this.form.invalidate(\"LOGIN.INVALID_CREDENTIALS\");\r\n } else if (data.error === \"invalid_grant_lock\") {\r\n this.form.invalidate(\"LOGIN.ERROR.USER_LOCKED\");\r\n } else if (data.error === \"invalid_grant_approve\") {\r\n this.form.invalidate(\"LOGIN.ERROR.USER_NOT_APPROVED\");\r\n }\r\n }\r\n }\r\n };\r\n\r\n destroy() {\r\n super.destroy();\r\n this.form.destroy();\r\n }\r\n}\r\n\r\nexport default LoginViewStore;\r\n","import { MrbBaseRouteStore } from \"mrb/core\";\r\n\r\nclass LoginRouteStore extends MrbBaseRouteStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n login = async ({ username, password }) => {\r\n await this.rootStore.authenticationStore.login(username, password, [\r\n \"sliding\",\r\n ]);\r\n // Generaly we don't have to resolve user here.\r\n await this.rootStore.userStore.resolveUser();\r\n const redirect = this.rootStore.authenticationStore.getSignInRedirect();\r\n await this.rootStore.routerStore.goTo(redirect);\r\n };\r\n}\r\n\r\nexport default LoginRouteStore;\r\n","import { MrbBaseRouteStore } from \"mrb/core\";\r\n\r\nclass PasswordRecoveryRouteStore extends MrbBaseRouteStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n requestPasswordReset = ({ email, recaptcha }) => {\r\n return this.rootStore.application.baasic.membershipModule.passwordRecovery.requestReset(\r\n {\r\n userName: email,\r\n challengeResponse: recaptcha,\r\n recoverUrl: generateRecoverUrl(),\r\n }\r\n );\r\n };\r\n}\r\n\r\nfunction generateRecoverUrl() {\r\n return `${window.location.origin}/password-reset?passwordRecoveryToken={passwordRecoveryToken}`;\r\n}\r\n\r\nexport default PasswordRecoveryRouteStore;\r\n","import { action, observable, makeObservable, runInAction } from \"mobx\";\r\nimport { MrbBaseViewStore } from \"mrb/core\";\r\nimport { MrbRecaptchaViewStore } from \"mrb/components\";\r\nimport { PasswordRecoveryForm } from \"public/membership/forms\";\r\n\r\nclass PasswordRecoveryViewStore extends MrbBaseViewStore {\r\n @observable success = false;\r\n\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n makeObservable(this);\r\n this.routeStore = routeStore;\r\n\r\n this.form = new PasswordRecoveryForm({\r\n onSuccess: () => {\r\n const data = this.form.values();\r\n return this.requestPasswordReset(data);\r\n },\r\n onInit: (form) => {\r\n form.$(\"email\").focus();\r\n },\r\n });\r\n\r\n this.recaptchaViewStore = new MrbRecaptchaViewStore(this.rootStore, {\r\n siteKey: ApplicationSettings.recaptchaSiteKey,\r\n });\r\n }\r\n\r\n onInit() {\r\n const email = this.rootStore.routerStore.routerState.queryParams.email;\r\n if (email) {\r\n this.form.$(\"email\").set(email);\r\n }\r\n return Promise.resolve();\r\n }\r\n\r\n @action requestPasswordReset = async (data) => {\r\n try {\r\n const recaptchaToken = await this.recaptchaViewStore.execute();\r\n data.recaptcha = recaptchaToken;\r\n await this.routeStore.requestPasswordReset(data);\r\n runInAction(() => {\r\n this.success = true;\r\n });\r\n } catch (err) {\r\n let message = \"PASSWORD_RECOVERY.ERROR.GENERIC_MESSAGE\";\r\n if (err && err.data) {\r\n if (err.data === \"Unknown user.\") {\r\n message = \"PASSWORD_RECOVERY.ERROR.UNKNOWN_USER_MESSAGE\";\r\n }\r\n }\r\n this.form.invalidate(message);\r\n }\r\n };\r\n\r\n goBack = () => {\r\n this.rootStore.routerStore.goBack();\r\n };\r\n\r\n destroy() {\r\n super.destroy();\r\n this.form.destroy();\r\n }\r\n}\r\n\r\nexport default PasswordRecoveryViewStore;\r\n","import { MrbBaseRouteStore } from \"mrb/core\";\r\n\r\nclass PasswordResetRouteStore extends MrbBaseRouteStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n onEnter = (_, toState) => {\r\n if (this.rootStore.authenticationStore.isAuthenticated) {\r\n }\r\n this.passwordRecoveryToken = toState.queryParams.passwordRecoveryToken;\r\n if (!this.passwordRecoveryToken) {\r\n }\r\n };\r\n\r\n resetPassword = ({ password }) => {\r\n return this.rootStore.application.baasic.membershipModule.passwordRecovery.reset(\r\n {\r\n newPassword: password,\r\n passwordRecoveryToken: this.passwordRecoveryToken,\r\n }\r\n );\r\n };\r\n}\r\n\r\nexport default PasswordResetRouteStore;\r\n","import { action, observable, makeObservable, runInAction } from \"mobx\";\r\nimport { MrbBaseViewStore } from \"mrb/core\";\r\nimport { PasswordResetForm } from \"public/membership/forms\";\r\n\r\nclass PasswordResetViewStore extends MrbBaseViewStore {\r\n @observable success = false;\r\n redirectTimer = null;\r\n @observable timer = 3;\r\n\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n makeObservable(this);\r\n this.routeStore = routeStore;\r\n\r\n this.form = new PasswordResetForm({\r\n onSuccess: async (form) => {\r\n const data = form.values();\r\n await this.resetPassword(data);\r\n },\r\n onInit: (form) => {\r\n form.$(\"password\").focus();\r\n },\r\n });\r\n\r\n this.reaction(\r\n () => this.success,\r\n (success) => {\r\n if (success) {\r\n this.redirectTimer = setInterval(() => {\r\n runInAction(() => {\r\n if (this.timer > 0) {\r\n --this.timer;\r\n }\r\n });\r\n }, 1000);\r\n }\r\n }\r\n );\r\n\r\n this.reaction(\r\n () => this.timer,\r\n (timer) => {\r\n if (timer === 0) {\r\n this.rootStore.routerStore.goToLogin();\r\n }\r\n }\r\n );\r\n }\r\n\r\n @action resetPassword = async (data) => {\r\n try {\r\n await this.routeStore.resetPassword(data);\r\n runInAction(() => {\r\n this.success = true;\r\n });\r\n } catch (err) {\r\n if (err && err.data && err.data === \"Unknown or expired password recovery token.\") {\r\n this.form.invalidate(\"PASSWORD_RESET.ERROR.INVALID_TOKEN_MESSAGE\");\r\n } else {\r\n this.form.invalidate(\"PASSWORD_RESET.ERROR.GENERIC_MESSAGE\");\r\n }\r\n }\r\n };\r\n\r\n goToLogin = () => {\r\n this.rootStore.routerStore.goToLogin();\r\n };\r\n\r\n onDestroy() {\r\n if (this.redirectTimer) {\r\n clearInterval(this.redirectTimer);\r\n }\r\n }\r\n\r\n destroy() {\r\n super.destroy();\r\n this.form.destroy();\r\n }\r\n}\r\n\r\nexport default PasswordResetViewStore;\r\n","import { action, makeObservable, observable, runInAction } from \"mobx\";\r\nimport { MrbBaseViewStore } from \"mrb/core\";\r\nimport { MrbRecaptchaViewStore } from \"mrb/components\";\r\nimport { RegisterForm } from \"public/membership/forms\";\r\nimport MobxReactFormDevTools from \"mobx-react-form-devtools\";\r\n\r\nclass RegisterViewStore extends MrbBaseViewStore {\r\n @observable success = false;\r\n\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n makeObservable(this);\r\n this.routeStore = routeStore;\r\n\r\n this.form = new RegisterForm({\r\n onSuccess: () => {\r\n const data = this.form.values();\r\n return this.register(data);\r\n },\r\n onInit: (form) => {\r\n form.$(\"firstName\").focus();\r\n },\r\n });\r\n\r\n this.recaptchaViewStore = new MrbRecaptchaViewStore(this.rootStore, {\r\n siteKey: ApplicationSettings.recaptchaSiteKey,\r\n });\r\n\r\n if (process.env.NODE_ENV === \"development\") {\r\n MobxReactFormDevTools.register({ register: this.form });\r\n MobxReactFormDevTools.select(\"register\");\r\n }\r\n }\r\n\r\n @action register = async (data) => {\r\n try {\r\n const recaptchaToken = await this.recaptchaViewStore.execute();\r\n data.recaptcha = recaptchaToken;\r\n await this.routeStore.register(data);\r\n runInAction(() => {\r\n this.success = true;\r\n });\r\n } catch (err) {\r\n let message = \"REGISTER.ERROR.GENERIC_MESSAGE\";\r\n if (err && err.data) {\r\n if (err.data === \"DuplicateUserName\") {\r\n message = \"REGISTER.ERROR.DUPLICATE_USERNAME_MESSAGE\";\r\n } else if (err.data === \"DuplicateEmail\") {\r\n message = \"REGISTER.ERROR.DUPLICATE_EMAIL_MESSAGE\";\r\n } else if (err.data === \"Failed challenge request.\") {\r\n message = \"REGISTER.ERROR.RECAPTCHA_VERIFICATION_FAILED\";\r\n }\r\n }\r\n this.form.invalidate(message);\r\n }\r\n };\r\n\r\n destroy() {\r\n super.destroy();\r\n this.form.destroy();\r\n }\r\n}\r\n\r\nexport default RegisterViewStore;\r\n","import { MrbBaseRouteStore } from \"mrb/core\";\r\nimport { split } from \"lodash\";\r\nimport moment from \"moment\";\r\n\r\nclass RegisterRouteStore extends MrbBaseRouteStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n register = (data) => {\r\n return this.rootStore.application.baasic.membershipModule.register.create(\r\n {\r\n firstName: data.firstName,\r\n lastName: data.lastName,\r\n email: data.email,\r\n password: data.password,\r\n confirmPassword: data.confirmPassword,\r\n userName: generateUserName(data.email),\r\n activationUrl: generateActivationUrl(),\r\n challengeResponse: data.recaptcha,\r\n }\r\n );\r\n };\r\n}\r\n\r\nfunction generateUserName(email) {\r\n const name = split(email, \"@\")[0].replace(\"+\", \"\");\r\n return `${name}_${moment().unix()}`;\r\n}\r\n\r\nfunction generateActivationUrl() {\r\n return `${window.location.origin}/account-activation?activationToken={activationToken}`;\r\n}\r\n\r\nexport default RegisterRouteStore;\r\n","import { action, makeObservable, observable, runInAction } from \"mobx\";\r\nimport { MrbBaseViewStore } from \"mrb/core\";\r\nimport { MrbRecaptchaViewStore } from \"mrb/components\";\r\nimport { ArtistRegisterForm } from \"public/membership/forms\";\r\nimport { find } from \"lodash\";\r\nimport { localizationService } from \"common/localization\";\r\nimport MobxReactFormDevTools from \"mobx-react-form-devtools\";\r\n\r\nclass ArtistRegisterViewStore extends MrbBaseViewStore {\r\n @observable success = false;\r\n @observable selectedProducerTypeSlug;\r\n\r\n producerTypes = [\r\n { value: 1, type: \"artist\", label: \"As an Artist\" },\r\n { value: 2, type: \"podcaster\", label: \"As a Podcaster\" },\r\n ];\r\n\r\n constructor(rootStore, { routeStore }) {\r\n super(rootStore);\r\n makeObservable(this);\r\n this.routeStore = routeStore;\r\n this.selectedProducerTypeSlug = this.producerTypes[0].type;\r\n\r\n this.form = new ArtistRegisterForm({\r\n onSuccess: () => {\r\n const data = this.form.values();\r\n return this.register(data);\r\n },\r\n onInit: (form) => {\r\n form.$(\"firstName\").focus();\r\n },\r\n });\r\n\r\n this.recaptchaViewStore = new MrbRecaptchaViewStore(this.rootStore, {\r\n siteKey: ApplicationSettings.recaptchaSiteKey,\r\n });\r\n\r\n if (process.env.NODE_ENV === \"development\") {\r\n MobxReactFormDevTools.register({ register: this.form });\r\n MobxReactFormDevTools.select(\"register\");\r\n }\r\n\r\n this.reaction(\r\n () => this.form.$(\"producerType\").value,\r\n (value) => {\r\n this.setSelectedProducerTypeSlug(value);\r\n this.form.$(\"contentUsageAgreement\").value = false;\r\n if (value === 1) {\r\n this.form\r\n .$(\"artistRegisterMessage\")\r\n .set(\r\n \"placeholder\",\r\n localizationService.t(\"REGISTER.FIELDS.ARTIST_REGISTER_MESSAGE_PLACEHOLDER.ARTIST\")\r\n );\r\n } else {\r\n this.form\r\n .$(\"artistRegisterMessage\")\r\n .set(\r\n \"placeholder\",\r\n localizationService.t(\"REGISTER.FIELDS.ARTIST_REGISTER_MESSAGE_PLACEHOLDER.PODCASTER\")\r\n );\r\n }\r\n }\r\n );\r\n }\r\n\r\n @action.bound\r\n async register(data) {\r\n try {\r\n const recaptchaToken = await this.recaptchaViewStore.execute();\r\n data.recaptcha = recaptchaToken;\r\n data.producerTypeSlug = this.selectedProducerTypeSlug;\r\n await this.routeStore.register(data);\r\n runInAction(() => {\r\n this.success = true;\r\n });\r\n } catch (err) {\r\n let message = \"REGISTER.ERROR.GENERIC_MESSAGE\";\r\n if (err && err.data) {\r\n if (err.data === \"DuplicateUserName\") {\r\n message = \"REGISTER.ERROR.DUPLICATE_USERNAME_MESSAGE\";\r\n } else if (err.data === \"DuplicateEmail\") {\r\n message = \"REGISTER.ERROR.DUPLICATE_EMAIL_MESSAGE\";\r\n } else if (err.data === \"Failed challenge request.\") {\r\n message = \"REGISTER.ERROR.RECAPTCHA_VERIFICATION_FAILED\";\r\n }\r\n }\r\n this.form.invalidate(message);\r\n }\r\n }\r\n\r\n @action.bound\r\n setSelectedProducerTypeSlug(value) {\r\n var selectedProducerType = find(this.producerTypes, (producerType) => producerType.value === value);\r\n this.selectedProducerTypeSlug = selectedProducerType.type;\r\n }\r\n\r\n destroy() {\r\n super.destroy();\r\n this.form.destroy();\r\n }\r\n}\r\n\r\nexport default ArtistRegisterViewStore;\r\n","import { MrbBaseRouteStore } from \"mrb/core\";\r\nimport { UserAccountService } from \"common/services\";\r\nimport { split } from \"lodash\";\r\nimport moment from \"moment\";\r\n\r\nclass ArtistRegisterRouteStore extends MrbBaseRouteStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n this.userAccountService = rootStore.createApplicationService(UserAccountService);\r\n }\r\n\r\n register(data) {\r\n return this.userAccountService.artistRegister({\r\n firstName: data.firstName,\r\n lastName: data.lastName,\r\n email: data.email,\r\n password: data.password,\r\n confirmPassword: data.confirmPassword,\r\n userName: generateUserName(data.email),\r\n activationUrl: generateActivationUrl(),\r\n challengeResponse: data.recaptcha,\r\n phoneNumber: data.phoneNumber,\r\n artistRegisterMessage: data.artistRegisterMessage,\r\n producerTypeSlug: data.producerTypeSlug,\r\n });\r\n }\r\n}\r\n\r\nfunction generateUserName(email) {\r\n const name = split(email, \"@\")[0].replace(\"+\", \"\");\r\n return `${name}_${moment().unix()}`;\r\n}\r\n\r\nfunction generateActivationUrl() {\r\n return `${window.location.origin}/account-activation?activationToken={activationToken}`;\r\n}\r\n\r\nexport default ArtistRegisterRouteStore;\r\n","import React from \"react\";\r\nimport { AccountActivationTemplate } from \"themes/public/membership/pages\";\r\nimport { AccountActivationViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new AccountActivationViewStore(rootStore, componentProps),\r\n \"accountActivationViewStore\"\r\n)\r\nclass AccountActivation extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default AccountActivation;\r\n","import React from \"react\";\r\nimport { LoginTemplate } from \"themes/public/membership/pages\";\r\nimport { LoginViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new LoginViewStore(rootStore, componentProps),\r\n \"loginViewStore\"\r\n)\r\nclass Login extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default Login;\r\n","import React from \"react\";\r\nimport { PasswordRecoveryTemplate } from \"themes/public/membership/pages\";\r\nimport { PasswordRecoveryViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new PasswordRecoveryViewStore(rootStore, componentProps),\r\n \"passwordRecoveryViewStore\"\r\n)\r\nclass PasswordRecovery extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default PasswordRecovery;\r\n","import React from \"react\";\r\nimport { PasswordResetTemplate } from \"themes/public/membership/pages\";\r\nimport { PasswordResetViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new PasswordResetViewStore(rootStore, componentProps),\r\n \"passwordResetViewStore\"\r\n)\r\nclass PasswordReset extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default PasswordReset;\r\n","import React from \"react\";\r\nimport { RegisterTemplate } from \"themes/public/membership/pages\";\r\nimport { RegisterViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new RegisterViewStore(rootStore, componentProps),\r\n \"registerViewStore\"\r\n)\r\nclass Register extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default Register;\r\n","import React from \"react\";\r\nimport { ArtistRegisterTemplate } from \"themes/public/membership/pages\";\r\nimport { ArtistRegisterViewStore } from \"public/membership/stores\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) => new ArtistRegisterViewStore(rootStore, componentProps),\r\n \"artistRegisterViewStore\"\r\n)\r\nclass ArtistRegister extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default ArtistRegister;\r\n","import { moduleProviderFactory } from \"mrb/core\";\r\nimport {\r\n AccountActivation,\r\n Login,\r\n PasswordRecovery,\r\n PasswordReset,\r\n Register,\r\n ArtistRegister,\r\n} from \"public/membership/pages\";\r\nimport {\r\n AccountActivationRouteStore,\r\n LoginRouteStore,\r\n PasswordRecoveryRouteStore,\r\n PasswordResetRouteStore,\r\n RegisterRouteStore,\r\n ArtistRegisterRouteStore,\r\n} from \"public/membership/stores\";\r\n\r\n(function () {\r\n moduleProviderFactory.module(\"public\").register({\r\n name: \"membership\",\r\n routes: [\r\n {\r\n name: \"master.public.membership\",\r\n pattern: \"\",\r\n isPublic: true,\r\n children: [\r\n {\r\n name: \"master.public.membership.activate-account\",\r\n pattern: \"/account-activation\",\r\n isPublic: true,\r\n component: AccountActivation,\r\n store: AccountActivationRouteStore,\r\n },\r\n {\r\n name: \"master.public.membership.login\",\r\n pattern: \"/sign-in\",\r\n isPublic: true,\r\n component: Login,\r\n store: LoginRouteStore,\r\n },\r\n {\r\n name: \"master.public.membership.signup\",\r\n pattern: \"/sign-up\",\r\n isPublic: true,\r\n component: Register,\r\n store: RegisterRouteStore,\r\n },\r\n {\r\n name: \"master.public.membership.artist-signup\",\r\n pattern: \"/artist-sign-up\",\r\n isPublic: true,\r\n component: ArtistRegister,\r\n store: ArtistRegisterRouteStore,\r\n },\r\n {\r\n name: \"master.public.membership.password-recovery\",\r\n pattern: \"/password-recovery\",\r\n isPublic: true,\r\n component: PasswordRecovery,\r\n store: PasswordRecoveryRouteStore,\r\n },\r\n {\r\n name: \"master.public.membership.password-reset\",\r\n pattern: \"/password-reset\",\r\n isPublic: true,\r\n component: PasswordReset,\r\n store: PasswordResetRouteStore,\r\n },\r\n ],\r\n },\r\n ],\r\n });\r\n})();\r\n"],"sourceRoot":""}