1"use strict";(self.webpackChunksoundful=self.webpackChunksoundful||[]).push([[68],{65113:(e,t,n)=>{n.d(t,{K:()=>l});var r=n(11848),o=n(14073);const l=(0,r.Ay)(o.A)({});l.defaultProps={variant:"body2",align:"center"}},61235:(e,t,n)=>{n.d(t,{O:()=>l});var r=n(11848),o=n(14073);const l=(0,r.Ay)(o.A)((({theme:{spacing:e}})=>({marginBottom:e(1),fontWeight:700})));l.defaultProps={variant:"h4",align:"center"}},66068:(e,t,n)=>{n.r(t),n.d(t,{Content:()=>je,default:()=>ke});var r=n(74848),o=n(96540),l=n(63710),i=n(32316),s=n(15360),a=n(11848),c=n(14073),d=n(53110),u=n(34843),p=n(84929),m=n(31181),f=n(74789),h=n(21781),g=n(73476),y=n(21391),v=n(3582),b=n(65113),x=n(61235),j=n(58168),A=n(98587);function C(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=C(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const k=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=C(e))&&(r&&(r+=" "),r+=t);return r};var w=n(4146),E=n.n(w),N=n(79068);const O=["name"],P=["children","className","clone","component"],S=(T="div",(e,t={})=>{const{name:n}=t,l=(0,A.A)(t,O);let i=n;const s="function"==typeof e?t=>({root:n=>e((0,j.A)({theme:t},n))}):{root:e},a=(0,N.A)(s,(0,j.A)({Component:T,name:n||T.displayName,classNamePrefix:i},l));let c,d={};e.filterProps&&(c=e.filterProps,delete e.filterProps),e.propTypes&&(e.propTypes,delete e.propTypes);const u=o.forwardRef((function(e,t){const{children:n,className:l,clone:i,component:s}=e,d=(0,A.A)(e,P),u=a(e),p=k(u.root,l);let m=d;if(c&&(m=function(e,t){const n={};return Object.keys(e).forEach((r=>{-1===t.indexOf(r)&&(n[r]=e[r])})),n}(m,c)),i)return o.cloneElement(n,(0,j.A)({className:k(n.props.className,p)},m));if("function"==typeof n)return n((0,j.A)({className:p},m));const f=s||T;return(0,r.jsx)(f,(0,j.A)({ref:t,className:p},m,{children:n}))}));return E()(u,T),u})((({theme:e})=>({display:"flex",margin:e.spacing(2,0),flexDirection:"column",alignItems:"stretch"})));var T,K=n(16843),B=n(26982),U=n(82211),I=n(64780),R=n(84798),L=n(40768),G=n(69421),X=n(49647),D=n(80857
1),Q=n(72565),V=n(74234),q=n(54303),F=n(10323),Y=n(74474),_=n(69067);const z=(0,a.Ay)(_.A)((({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2),justifyContent:"center"})));var H=n(54011),M=n(23403),$=n(52211),W=n(53987);const Z=()=>{const e=(e,t)=>{const n=e.charCodeAt(0);return Array.from({length:t}).map(((e,t)=>String.fromCharCode(t+n)))},t=(0,$.k4)([e("!",15),e("a",26),e("A",26),(0,H.A)(),e("0",10),(0,H.A)()]);return Array.from({length:(0,$.LK)(8*t.length,8,W.K9)}).map(((e,n)=>{const r=t[n%t.length];return(0,M.QP)(r)})).join("")};var J=n(63266),ee=n(52598),te=Object.defineProperty,ne=Object.defineProperties,re=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||(t={}))le.call(t,n)&&se(e,n,t[n]);if(oe)for(var n of oe(t))ie.call(t,n)&&se(e,n,t[n]);return e},ce=(e,t)=>ne(e,re(t));const de={fullName:"",email:""},ue=(0,G.Ik)({fullName:ee.Qy,email:ee.w_});var pe=n(34097),me=n(62616),fe=n(76928),he=n(2463),ge=n(87565),ye=n(37228),ve=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;const je=(0,a.Ay)("div")({display:"grid",gridTemplateRows:"1fr 4fr",width:"clamp(50%, 500px, 90%)",position:"relative"}),Ae={"provide-email":{stepNumber:1,stepsCount:4,titleKey:"provideEmail.title",subTitleKey:"provideEmail.slogan",bodyKey:"provideEmail.provideEmail",Component:({tokens:e,onBack:t,titleRef:n})=>{const s=(0,i.wA)(),{t:a}=(0,l.Bd)(),{requestAuth:c}=(0,X.As)(),d=(0,u.Xr)(y.Er),m=(0,i.d4)(B.tj),f=(0,i.d4)(B.z5),h=(0,D.e)("signup",f),g=(0,o.useRef)(null),[v="",b]=(0,u.fp)(I.u),[x="",j]=(0,u.fp)(I.G),[A,C]=(0,o.useState)(null);(0,o.useEffect)((()=>{f&&C(null)}),[f]),(0,Q.Y)(),(0,o.useEffect)((()=>c((()=>{d(p.Ut),b(p.Ut),j(p.Ut)}),"after")),[b,j,c,d]);const k=ue.cast(ce(ae({},de),{email:v,fullName:x})),w=()=>{m||C(null)};return(0,r.jsx)(L.l1,{initialValues:k,onSubmit:({fullName:t,email:n},{setSubmitting:r})=>{const o=e.sc_info;g.current&&(b(n),j(t),r(!1),C({anchor:g.current,onContinue:(r,l)=>{const i=ce(ae({},r),{fullName:t.trim(),email:n.trim(),password:Z(),registrationSource:e.registrationSource,soundcloudToken:o.soundcloudToken,soundcloudUserId:o.soundcloudUserId,soundcloudRefreshToken:o.soundcloudRefreshToken,captcha:l});(0,J.sx)(J.SZ.signupStarted,{"Registration Source":"SoundCloud"}),s(K.$5.request(i))}}))},validationSchema:ue,children:({isSubmitting:e})=>(0,r.jsxs)(L.lV,{noValidate:!0,children:[(0,r.jsx)(q.B,{name:"fullName",label:"landing.signup.fullNameLabel",placeholder:"landing.signup.fullNamePlaceholder",Component:Y.A,errorAllowance:1.5}),(0,r.jsx)(q.B,{name:"email",type:"email",label:"landing.welcome.emailLabel",placeholder:"landing.welcome.emailPlaceholder",Component:Y.A}),(0,r.jsxs)(z,{mt:2,children:[(0,r.jsx)(F.d,{ref:g,children:a("forms.submit")}),(0,r.jsx)(R.A,{variant:"text",color:"inherit",disabled:e,onClick:t,children:a("provideEmail.cancelSignUp")})]}),(0,r.jsx)(V.I,{popup:A,captcha:h,onClose:w,loading:m,titleRef:n})]})})}},"sign-in":{stepNumber:2,stepsCount:3,titleKey:"provideEmail.title",subTitleKey:"provideEmail.emailIsTaken",bodyKey:"provideEmail.signInToLinkAccount",Component:({onBack:e,tokens:t})=>{const{t:n}=(0,l.Bd)(),{requestAuth:i}=(0,X.As)(),[s="",a]=(0,u.fp)(I.u),c=(0,u.Xr)(I.G),d=(0,u.Xr)(g.Q),m=(0,y.CD)();return(0,Q.Y)(),(0,o.useEffect)((()=>i((()=>{return e=function*(){yield(0,pe.OS)(t),m(p.Ut),d(p.Ut),a(p.Ut),c(p.Ut)},new Promise(((t,n)=>{var r=t=>{try{l(e.next(t))}catch(e){n(e)}},o=t=>{try{l(e.throw(t))}catch(e){n(e)}},l=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,o);l((e=e.apply(undefined,null)).next())}));var e}),"after")),[a,c,i,d,m,t]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(fe.B,{initialEmail:s,emailDisabled:!0}),(0,r.jsxs)(z,{mt:2,children:[(0,r.jsx)(R.A,{variant:"text",color:"inherit",onClick:e,children:n("button.back")}),(0,r.jsx)(me._,{initialEmail:s})]})]})},prev:"provide-email"},"sign-in-with-google":{stepNumber:2,stepsCount:3,titleKey:"provideEmail.title",subTitleKey:"provideEmail.emailIsTaken",bodyKey:"provideEmail.signInToLinkAccountGoogle",Component:({onBack:e})=>{const{t}=(0,l.Bd)(),{requestAuth:n}=(0,he.f)(),o=(0,u.md)(I.u)||"";return(0,Q.Y)(),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Y.A,{name:"email",type:"email",value:o,label:"landing.welcome.emailLabel",placeholder:"landing.welcome.emailPlaceholder",disabled:!0}
1),(0,r.jsxs)(z,{mt:2,children:[(0,r.jsx)(ye.y,{provider:ge.L.google,onClick:()=>n(ge.L.google),children:t("landing.signin.google")}),(0,r.jsx)(R.A,{variant:"text",color:"inherit",onClick:e,children:t("button.back")})]})]})},prev:"provide-email"}},Ce="provide-email",ke=()=>{const{t:e}=(0,l.Bd)(),t=(0,i.wA)(),n=(0,y.Rh)(),a=(0,i.d4)(B.z5),[j,A]=(0,o.useState)(Ce),C=(0,u.Xr)(g.Q),k=(0,u.Xr)(y.Er),w=(0,u.Xr)(I.u),E=(0,u.Xr)(I.G),N=(0,o.useRef)(null),O=Ae[j],{Component:P}=O,T=((e,t)=>{var n={};for(var r in e)be.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ve)for(var r of ve(e))t.indexOf(r)<0&&xe.call(e,r)&&(n[r]=e[r]);return n})(O,["Component"]);return(0,o.useEffect)((()=>{C(Ae[Ce].stepsCount)}),[C]),(0,o.useEffect)((()=>{if(!a)return;let n=null;switch(!0){case(0,f.cH)(a,d.kG.Conflict,"error.email.duplicate"):n="sign-in";break;case(0,f.cH)(a,d.kG.Conflict,"error.google.email.duplicate"):n="sign-in-with-google";break;default:(0,h.Kf)(e("errors.unknown"))}t(K.$5.clean()),n&&(A(n),C(Ae[n].stepsCount))}),[t,a,C,e]),n?(0,r.jsx)(U.n,{children:(0,r.jsxs)(je,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(x.O,{ref:N,children:e(T.titleKey)}),(0,r.jsx)(c.A,{variant:"subtitle1",align:"center",sx:{mb:1},children:e(T.subTitleKey)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(b.K,{sx:{mb:6},children:e(T.bodyKey)}),(0,r.jsx)(S,{children:(0,r.jsx)(v.V,{step:T.stepNumber,stepsCount:T.stepsCount})}),(0,r.jsx)(P,{tokens:n,onBack:()=>{const e=T.prev;if(e)return A(e),void C(Ae[e].stepsCount);k(p.Ut),C(p.Ut),w(p.Ut),E(p.Ut)},titleRef:N})]})]})}):(0,r.jsx)(s.rd,{to:m.fI.signin})}},3582:(e,t,n)=>{n.d(t,{V:()=>d});var r=n(74848),o=n(63710),l=n(11848),i=n(14073),s=n(23414);const a=(0,l.Ay)("div")((({theme:e})=>({width:"100%",height:"8px",backgroundColor:s.T.platinumGray,marginBottom:e.spacing(1),borderRadius:e.spacing(.5),overflow:"hidden","& > div":{height:"100%",backgroundColor:s.T.blue,transition:e.transitions.create("width",{duration:"1.3s"})}}))),c=({step:e,stepsCount:t,className:n})=>{const o=(e+1)/t;return(0,r.jsx)(a,{className:n,children:(0,r.jsx)("div",{style:{width:100*o+"%"}})})},d=({step:e,stepsCount:t,className:n})=>{const{t:l}=(0,o.Bd)();return(0,r.jsxs)("div",{className:n,children:[(0,r.jsx)(c,{step:e,stepsCount:t}),(0,r.jsx)(i.A,{variant:"body2",children:l("stepper.steps",{currentStep:e+1,end:t})})]})}},23403:(e,t,n)=>{n.d(t,{Am:()=>o,QP:()=>l,TF:()=>i});var r=n(52211);const o=e=>[...new Set(e)],l=e=>e[Math.floor(Math.random()*e.length)],i=(e,t)=>e.length<=t?e:(0,r.k4)(e).slice(0,t)}}]); 2//# sourceMappingURL=68.bba373b26a787c6a4e68.bundle.js.map
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.