!function(){"use strict";var r={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},d:function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},i=React,c=r.n(i),e=ReactDOM,t=CoreUtilities,n=PropTypes,l=r.n(n),a=ReactUtilities,o=(n=Roblox).EnvironmentUrls.billingApi,n=n.EnvironmentUrls.websiteUrl,u=("".concat(n,"/premium/membership?cashout=premium"),"".concat(n,"/my/account")),m="".concat(n,"/info/terms"),s="".concat(n,"/developer-exchange/tos"),p=function(){var e={withCredentials:!0,url:"".concat(o,"/v1/developer-exchange-metadata")};return t.httpService.get(e)};function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t=e.translate,n=d((0,i.useState)(null),2),r=n[0],l=n[1],e=d((0,i.useState)(!0),2),n=e[0],a=e[1];(0,i.useEffect)(function(){p().then(function(e){var t=e.data.redirectUrl;e.data&&(t?window.location.href=t:a(!1),l(e.data))})},[]);var o,e=c().createElement("p",null,t("Description.WelcomeDevExWeRecommend")),e=!n&&c().createElement("div",null,c().createElement("h2",null,t("Heading.WelcomeDevEx")),c().createElement("p",{className:"indet"},t("Description.WelcomeDevExParagraphOne")),c().createElement("p",null,t("Description.WelcomeDevExParagraphTwo",{minCashoutValue:null==r?void 0:r.minRobuxToCashOut})),c().createElement("p",null," ",t("Description.WelcomeDevExParagraphThree")," "),c().createElement("ul",null,((o=[]).push(c().createElement("li",null,t("Description.WelcomeDevExTermMinCashoutValue",{minCashoutValue:null==r?void 0:r.minRobuxToCashOut}))),null!=r&&r.emailIsVerified?o.push(c().createElement("li",null,t("Description.WelcomeDevExTermVerifiedEmail"))):o.push(c().createElement("li",{dangerouslySetInnerHTML:{__html:t("Description.WelcomeDevExTermNoVerifiedEmail",{startVerifyEmailLink:'<a target="_blank" href="'.concat(u,'" className="text-link">'),endVerifyEmailLink:"</span>"})}})),o.push(c().createElement("li",null,t("Description.WelcomeDevExTermValidAccount"))),o.push(c().createElement("li",null,t("Description.WelcomeDevExTermValidAge"))),o.push(c().createElement("li",{dangerouslySetInnerHTML:{__html:t("Description.WelcomeDevExTermGoodMember",{termLinkStart:'<a target="_blank" href="'.concat(m,'" className="text-link">'),termLinkEnd:"</span>"})}})),o)),null!=r&&r.canProceedToCashout?c().createElement("p",null,t("Description.WelcomeDevExCanProceedCashout")):c().createElement("p",null,t("Description.WelcomeDevExCanNotProceedCashout")),e,c().createElement("p",null,t("Description.WelcomeDevExIfRequestApproved")," "," ",c().createElement("strong",null,t("Description.WelcomeDevExMakeSureCorrectInfo"))," ",t("Description.WelcomeDevExInfoImpact")),c().createElement("p",null,c().createElement("div",{dangerouslySetInnerHTML:{__html:t("Description.WelcomeDevExMoreDevExInfo",{helpLinkStart:'<a target="_blank" href="'.concat(null==r?void 0:r.robloxDevExHelpFullUrl,'" className="text-link">'),helpLinkEnd:"</span>"})}}),c().createElement("div",{dangerouslySetInnerHTML:{__html:t("Description.WelcomeDevExTermsLink",{termLinkStart:'<a target="_blank" href="'.concat(s,'" className="text-link">'),termLinkEnd:"</span>"})}})));return c().createElement("div",null,e)}E.propTypes={translate:l().func.isRequired};var v=E;function h(e){e=e.translate;return c().createElement(i.Fragment,null,c().createElement(v,{translate:e}))}h.propTypes={translate:l().func.isRequired};var D=(0,a.withTranslations)(h,{common:[],feature:"Feature.CashOut"});(0,t.ready)(function(){(0,e.render)(c().createElement(D,null),document.getElementById("welcome-devex"))})}();
//# sourceMappingURL=https://js.rbxcdn.com/9f6d1a8502734748d12e-developerExchangeWelcome.js.map

/* Bundle detector */
window.Roblox && window.Roblox.BundleDetector && window.Roblox.BundleDetector.bundleDetected("DeveloperExchangeWelcome");