PageSourceSearch

https://www.diggersfactory.com/_next/static/chunks/pages/sign/login-a4385461d63c5f1e.js

js diggersfactory.com collected 2026-10-02 04:36:28 UTC 9,500 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d826ef16-aa70-4a9f-8099-f169b460e8db",e._sentryDebugIdIdentifier="sentry-dbid-d826ef16-aa70-4a9f-8099-f169b460e8db")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1101],{21064:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>u});var a=s(66162),o=s(53187),c=s.n(o),i=s(72624),t=s.n(i),l=s(44922),r=s(67392),d=s(25312);let x=e=>{let{t:n,lang:s}=(0,d.Bd)(),{user:o}=(0,d.Pj)(),[i,t]=l.useState({error:null,signup:!1,problem:!1,loaded:!1,soundcloud_token:null});l.useEffect(()=>{x()},[]);let x=async()=>{let n=await o.loginSoundcloud({code:e.code});n.soundcloud_token?t({...i,soundcloud_token:n.soundcloud_token,loaded:!0}):n.token?(t({...i,signup:!0,loaded:!0}),e.onSign&&e.onSign()):!1===n.success&&t({...i,problem:!0,loaded:!0})},u=async n=>{n.access_token=i.soundcloud_token,n.lang=s;let a=await o.loginSoundcloud(n);a.error?t({...i,error:a.error}):(t({...i,signup:!0,loaded:!0}),e.onSign&&e.onSign())};return(0,a.jsxs)("div",{className:"jsx-66051f99230e8c0c sign",children:[i.loaded&&i.problem&&(0,a.jsxs)("div",{className:"jsx-66051f99230e8c0c page block",children:[(0,a.jsx)("p",{className:"jsx-66051f99230e8c0c help-block error",children:"fr"===s?"Votre connexion \xe0 Soundcloud a expir\xe9e.":"Your connection to Soundcloud has expired."}),(0,a.jsx)("div",{className:"jsx-66051f99230e8c0c buttons",children:(0,a.jsx)(r.$n,{onClick:e.cancel,children:n("main.cancel")})})]}),i.loaded&&!i.problem&&(0,a.jsx)("div",{className:"jsx-66051f99230e8c0c page block",children:i.signup?(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:n("sign.inscription_ok")},className:"jsx-66051f99230e8c0c large"}):(0,a.jsxs)(r.lV,{onValid:u,children:[(0,a.jsx)("p",{className:"jsx-66051f99230e8c0c",children:"fr"===s?"C'est presque fini !":"It's almost done !"}),(0,a.jsxs)("div",{className:"jsx-66051f99230e8c0c row",children:[(0,a.jsx)("div",{className:"jsx-66051f99230e8c0c col-xs-12",children:(0,a.jsx)(r.pd,{name:"type",type:"Select",label:n("type"),data:[{value:"digger",name:"Digger"},{value:"label",name:n("label")},{value:"artist",name:n("project.artist")},{value:"record_shop",name:n("record_shop")},{value:"distributor",name:n("distributor")},{value:"mastering_studio",name:n("mastering_studio")},{value:"vinyl_factory",name:n("vinyl_factory")}],defaultValue:"artist",display:e=>e.name,output:e=>e.value,required:!0})}),(0,a.jsxs)("div",{className:"jsx-66051f99230e8c0c col-xs-12",children:[(0,a.jsx)(r.pd,{label:n("email"),name:"email",type:"text",validations:"isEmail",required:!0}),i.error&&(0,a.jsx)("p",{className:"jsx-66051f99230e8c0c help-block error",children:n(i.error)})]})]}),(0,a.jsxs)("div",{className:"jsx-66051f99230e8c0c buttons",children:[(0,a.jsx)(r.$n,{onClick:e.cancel,children:n("main.cancel")}),(0,a.jsx)(r.$n,{type:"submit",className:"primary",children:n("sign.sign_up")})]})]})}),(0,a.jsx)(c(),{id:"66051f99230e8c0c",children:"div.block.jsx-66051f99230e8c0c{max-width:600px;margin:0 auto;padding:20px}p.jsx-66051f99230e8c0c{padding:10px;font-size:18px;text-align:center}"})]})};x.propTypes={code:t().string,onSign:t().func,redirect:t().string,cancel:t().func};let u=x},30866:(e,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign/login",function(){return s(72827)}])},72827:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>g});var a=s(66162),o=s(53187),c=s.n(o),i=s(72823),t=s.n(i),l=s(44922),r=s(67392),d=s(35673),x=s(25312),u=s(21064);let g=e=>{var n;let{t:s,lang:o}=(0,x.Bd)(),{user:i,app:g}=(0,x.Pj)(),p=(0,x.hS)(),[b,f]=(0,l.useState)({error:!1,fromFacbook:!1,inscriptionOk:!1,noEmailFacebook:!1,soundcloud:null}),j=async e=>{(await i.login(e)).token?m():f({...b,error:!0})};window.fbAsyncInit=function(){window.FB.init({appId:"1493997737566682",autoLogAppEvents:!0,xfbml:!0,version:"v11.0"})},(0,l.useEffect)(()=>{window.google&&(window.google.accounts.id.initialize({client_id:(0,d._K)("GOOGLE_API"),callback:async n=>{n.lang=o,(await i.loginGoogle(n)).token&&(f({...b,inscriptionOk:!0}),n.new&&e.onInscription&&e.onInscription(),!n.new&&e.onLogin&&e.onLogin(),e.onSign?e.onSign():await p.close(),e.redirect&&g.redirect(e.redirect))}}),window.google.accounts.id.renderButton(document.getElementById("googleButton"),{type:"standard",theme:"filled_blue",size:"large",shape:"circle"}))},[window.google]);let m=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{new:!1};!n.new&&e.onLogin||n.new&&e.onInscription?e.onLogin():e.onSign?e.onSign():p.close(),e.redirect&&g.redirect(e.redirect)};return b.soundcloud?(0,a.jsx)(u.default,{code:b.soundcloud,redirect:e.redirect,onSign:e.onSign,cancel:()=>{f({...b,soundcloud:null})}}):(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 sign",children:[(0,a.jsx)(t(),{type:"text/javascript",src:"https://connect.facebook.net/en_US/sdk.js"}),(0,a.jsx)(t(),{type:"text/javascript",src:"https://accounts.google.com/gsi/client"}),b.fromFacbook?b.noEmailFacebook?(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 text-center large error",children:[s("no_email_facebook"),(0,a.jsx)("br",{className:"jsx-48fa52311b870c95"}),(0,a.jsx)("br",{className:"jsx-48fa52311b870c95"}),(0,a.jsx)(r.$n,{to:"/",children:s("main.back_home")})]}):(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 text-center large",children:[s("sign_in_facebook"),"..."]}):(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 login",children:[(0,a.jsxs)(r.lV,{onValid:e=>j(e),enter:!0,children:[(0,a.jsx)("br",{className:"jsx-48fa52311b870c95"}),(0,a.jsx)("div",{className:"jsx-48fa52311b870c95 row",children:(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 col-xs-12",children:[(0,a.jsx)(r.pd,{className:"".concat(e.dark?"!text-white":""),label:"".concat(s("email")),name:"email",type:"text",validations:"isEmail",autoComplete:"email",required:!0}),(0,a.jsx)(r.pd,{className:"".concat(e.dark?"!text-white":""),label:"".concat(s("password")),name:"password",type:"password",autoComplete:"current-password",required:!0}),b.error&&(0,a.jsx)("span",{className:"jsx-48fa52311b870c95 help-block error",children:s("sign.user_incorect")}
1)]})}),(0,a.jsx)("div",{className:"jsx-48fa52311b870c95 bts",children:(0,a.jsx)(r.$n,{id:"signin",type:"submit",className:"primary",children:s("sign.sign_in")})})]}),(0,a.jsx)("p",{className:"jsx-48fa52311b870c95",children:(0,a.jsx)(r.N_,{id:"forgot_password",to:"/forgot-password",className:"underline ".concat(e.dark?"text-white":"text-black"),children:s("forget_password")})}),(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 bar",children:[(0,a.jsx)("hr",{className:"jsx-48fa52311b870c95"}),(0,a.jsx)("p",{className:"jsx-48fa52311b870c95 "+"".concat(e.dark?"text-black":"text-white"),children:s("or")})]}),(0,a.jsxs)("div",{className:"jsx-48fa52311b870c95 bts",children:[(null==(n=g.shop)?void 0:n.id)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.$n,{id:"signin_facebook",className:"btn facebook",onClick:()=>void(window.FB.init({appId:"1493997737566682",autoLogAppEvents:!0,xfbml:!0,version:"v11.0"}),window.FB.getLoginStatus(e=>{"connected"!==e.status?window.FB.login(e=>{i.loginFacebook({access_token:e.authResponse.accessToken,lang:o,referrer:i.referrer}).then(e=>{m(e)})},{scope:"email"}):i.loginFacebook({access_token:e.authResponse.accessToken,lang:o,referrer:i.referrer}).then(e=>{m(e)})})),children:s("sign_in_facebook")}),(0,a.jsx)(r.$n,{className:"btn soundcloud large",onClick:()=>(window.addEventListener("message",e=>{"object"==typeof e.data&&"soundcloud"===e.data.type&&f({...b,soundcloud:e.data.token})}),void window.open("https://secure.soundcloud.com/connect?client_id=UFf4yO3IUOi8penYprXcx6MsmOgqH0JW&client_secret=d6IyzgUt0nrW0joASqPB6WVXILScfxF5&redirect_uri=https://www.diggersfactory.com/soundcloud-signin&response_type=code&scope=non-expiring",null,"width=400,height=600")),children:s("sign.sign_in_soundcloud")}),(0,a.jsx)("div",{id:"signin_google",className:"jsx-48fa52311b870c95 google",children:(0,a.jsx)("div",{id:"googleButton",className:"jsx-48fa52311b870c95"})})]}),(0,a.jsx)("br",{className:"jsx-48fa52311b870c95"}),(0,a.jsxs)("p",{className:"jsx-48fa52311b870c95 text-center",children:[s("no_account_yet"),"\xa0",(0,a.jsx)("button",{onClick:()=>e.changeTab("inscription"),className:"jsx-48fa52311b870c95 "+"underline ".concat(e.dark?"text-white":"text-black"),children:s("sign.sign_up")})]})]})]}),(0,a.jsx)(c(),{id:"48fa52311b870c95",children:"div.bar.jsx-48fa52311b870c95{font-size:8pt;text-transform:uppercase;text-align:center;margin-top:0px}div.bar.jsx-48fa52311b870c95 p.jsx-48fa52311b870c95{font-weight:bold;background:var(--bg-color);display:inline-block;margin:0 auto;padding:0 10px;font-size:13px}p.jsx-48fa52311b870c95{text-align:center}.google.jsx-48fa52311b870c95{text-align:center;display:flex;justify-content:center;padding-bottom:20px;overflow:hidden;height:65px}div.bar.jsx-48fa52311b870c95 hr.jsx-48fa52311b870c95{background:#e0e0e0;border:0;height:1px;margin:0 auto -17px;width:100%;max-width:none;display:inline-block}div.jsx-48fa52311b870c95 .button-outer{display:block}div.jsx-48fa52311b870c95 .button{display:block;width:100%}.error.jsx-48fa52311b870c95{padding:15px}.bts.jsx-48fa52311b870c95{margin:10px;margin-top:20px;text-align:center}div.jsx-48fa52311b870c95 .button{width:265px;font-size:16px;margin:0 auto}"})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=30866)),_N_E=e.O()}]);

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.