dotfiles/.config/spicetify/Extracted/Raw/login/login.js

2 lines
85 KiB
JavaScript
Raw Normal View History

2024-07-11 00:01:49 +05:30
(()=>{var e,t={3171:e=>{e.exports={af:"af-ZA",am:"am-ET",ar:"ar",az:"az-AZ",bg:"bg-BG",bn:"bn-IN",bho:"bp",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",es:"es-ES","es-419":"es-LA",et:"et-EE",fa:"fa-IR",fr:"fr-FR",fi:"fi-FI",fil:"fp-PH","fr-CA":"fr-CA",gu:"gu-IN",hu:"hu-HU",he:"he-IL",hi:"hi-IN",hr:"hr-HR",id:"id-ID",is:"is-IS",it:"it-IT",ja:"ja-JP",kn:"kn-IN",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",ml:"ml-IN",mr:"mr-IN",ms:"ms-MY",nb:"nb-NO",ne:"ne-NP",nl:"nl-NL",or:"or-IN","pa-IN":"pa-IN","pa-PK":"pa-PK",pl:"pl-PL","pt-PT":"pt-PT","pt-BR":"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",sr:"sr-RS",sv:"sv-SE",sw:"sw",ta:"ta-IN",te:"te-IN",th:"th-TH",tr:"tr-TR",uk:"uk-UA",ur:"ur",vi:"vi-VN","zh-CN":"zh-CN","zh-TW":"zh-TW",zu:"zu-ZA","ar-EG":"ar-EG","ar-MA":"ar-MA","ar-SA":"ar-SA",eu:"eu-ES",bs:"bs-BA",ca:"ca-ES","zh-HK":"zh-HK","en-GB":"en-GB",gl:"gl-ES",mk:"mk-MK","es-AR":"es-AR","es-MX":"es-MX"}},8272:(e,t,n)=>{"use strict";var s={};n.r(s),n.d(s,{ABORT_LOGIN_TYPE_ACCOUNTS:()=>A,ACCOUNTS_METHODS:()=>P,LOADING:()=>v,LOGIN_BEFORE:()=>E,LOGIN_CLEAR_ERRORS:()=>w,LOGIN_FAIL:()=>C,LOGIN_SUCCESS:()=>k,LOGIN_TYPE_ACCOUNTS:()=>N,LOGIN_TYPE_AUTOLOGIN:()=>I,LOGIN_TYPE_EMAIL:()=>T,UTM_PARAMETERS:()=>x,abortLoginWithAccounts:()=>G,fetchUTMParameters:()=>B,loading:()=>L,login:()=>R,loginClearErrors:()=>W,loginFailed:()=>O,loginSuccess:()=>M,loginWithAccounts:()=>U,receivedUTMParameters:()=>H});var r={};n.r(r),n.d(r,{ENTER_LOGIN_MODE:()=>q,ENTER_SETTINGS_MODE:()=>J,ENTER_SIGNUP_MODE:()=>$,ENTER_SIGNUP_MODE_STEP_0:()=>K,ENTER_SIGNUP_MODE_STEP_1:()=>Y,ENTER_WELCOME_MODE:()=>z,INTERACTION:()=>X,START_APP:()=>V,enterLoginMode:()=>ne,enterSettingsMode:()=>re,enterSignupMode:()=>Q,enterSignupModeStep0:()=>ee,enterSignupModeStep1:()=>te,enterWelcomeMode:()=>se,interaction:()=>ie,openSignupPage:()=>oe,startApp:()=>Z});var o={};n.r(o),n.d(o,{CLEAR_ALL_ERRORS:()=>De,COUNTRY_NOT_LAUNCHED:()=>Pe,FACEBOOK_SIGNUP_ATTEMPT:()=>Ce,FACEBOOK_SIGNUP_FAILURE:()=>xe,FACEBOOK_SIGNUP_SUCCESS:()=>ve,SIGNUP_ATTEMPT:()=>Ee,SIGNUP_FAILURE:()=>ke,SIGNUP_RESTRICTIONS_FAILURE:()=>ye,SIGNUP_RESTRICTIONS_SUCCESS:()=>Se,SIGNUP_SUCCESS:()=>we,UPDATE_SIGNUP_DATA:()=>Ae,VALIDATE_FIELD_ATTEMPT:()=>Te,VALIDATE_FIELD_FAILURE:()=>Ie,VALIDATE_FIELD_SUCCESS:()=>Ne,clearAllErrors:()=>Xe,countryNotLaunched:()=>Je,facebookSignup:()=>We,facebookSignupFailure:()=>$e,facebookSignupSuccess:()=>Ve,getSignupRestrictions:()=>Fe,signup:()=>Le,signupAttempt:()=>Re,signupFailure:()=>Ge,signupRestrictionsFailure:()=>Oe,signupRestrictionsSuccess:()=>Me,signupSuccess:()=>Ue,signupWithAccounts:()=>He,updateSignupData:()=>ze,validateField:()=>je,validateFieldAttempt:()=>Ke,validateFieldFailure:()=>Ye,validateFieldSuccess:()=>qe});var i={};n.r(i),n.d(i,{SETTINGS_FETCH_PROXY_SETTINGS_FAILURE:()=>mt,SETTINGS_FETCH_PROXY_SETTINGS_SUCCESS:()=>gt,SETTINGS_RESTART_CLIENT_FAILURE:()=>St,SETTINGS_RESTART_CLIENT_SUCCESS:()=>bt,SETTINGS_UPDATE_PROXY_SETTINGS_FAILURE:()=>ft,SETTINGS_UPDATE_PROXY_SETTINGS_SUCCESS:()=>_t,fetchProxySettings:()=>yt,restartClient:()=>kt,updateProxySettings:()=>Et});var a=n(7995),l=n(2033),d=n(1740),c=n(4607),u=n(7180);const p=e=>n.g&&"function"==typeof n.g._getSpotifyModule?new Promise(((t,s)=>{n.g._getSpotifyModule("bridge").executeRequest(JSON.stringify(e),{onSuccess:t,onFailure:s})})):null,h=window.localStorage,g="lastUsername",m="THIS_USER_DOES_NOT_EXIST_AND_IS_A_PLACEHOLDER",_="utmParameters",f=h.getItem(_),b=h.getItem(g),S={errorData:null,loginInProgress:!1,redirectTo:null,username:b!==m?b:"",utmParameters:f?JSON.parse(f):null};const y=function(e=S,t){switch(t.type){case wt.LOADING:return{...e,loading:!0,throbberDelay:t.throbberDelay};case wt.LOGIN_FAIL:return{...e,loading:!1,errorData:t.errorData,loggedIn:!1,loginInProgress:!1};case wt.LOGIN_BEFORE:return{...e,errorData:t.errorData,loggedIn:!1,loginInProgress:t.loginInProgress,username:t.username};case wt.LOGIN_SUCCESS:return{...e,loading:!1,loggedIn:!0,redirectDelay:t.redirectDelay||0,redirectTo:t.redirectTo,username:t.username};case wt.UTM_PARAMETERS:return{...e,utmParameters:t.utmParameters};case wt.LOGIN_CLEAR_ERRORS:retu
//# sourceMappingURL=login.js.map