PageSourceSearch

https://bring4you.com/_next/static/chunks/pages/signin-c3810777ce4fab35.js

js bring4you.com collected 2026-10-02 06:08:56 UTC 5,588 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="70766411-5b79-4230-9d26-a2c7154a9883",e._sentryDebugIdIdentifier="sentry-dbid-70766411-5b79-4230-9d26-a2c7154a9883")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2176],{9450:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1235);let a=(0,r.Z)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},1725:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1235);let a=(0,r.Z)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},9142:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signin",function(){return n(6637)}])},6854:function(e,t,n){"use strict";n.d(t,{a:function(){return r.a}});var r=n(5164)},6637:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Signin}});var r=n(4965),a=n(8151),o=n(5548),i=n(1640),s=n(887),c=n(2336),l=n(7121),d=n(5663),u=n(2687),m=n(8840),p=n(9450),f=n(1725),h=n(6854),b=n(304);function Signin(){var e,t=(0,m.useRouter)(),n=(0,m.useSearchParams)().get("redirect"),g=(0,s._)((0,d.useState)({email:"",password:"",additionalInfo:{}}),2),x=g[0],y=g[1],w=(0,s._)((0,d.useState)(!1),2),v=w[0],N=w[1],_=(0,s._)((0,d.useState)(!1),2),Z=_[0],k=_[1],C=(0,s._)((0,d.useState)(""),2),I=C[0],B=C[1],S=(0,h.a)().login,handleInputChange=function(e){var t=e.target,n=t.name,r=t.value;y(function(e){return(0,i._)((0,o._)({},e),(0,a._)({},n,r))}),I&&B("")},X=(e=(0,r._)(function(e){var t,r;return(0,c.Jh)(this,function(a){switch(a.label){case 0:e.preventDefault(),k(!0),B(""),a.label=1;case 1:return a.trys.push([1,3,,4]),t=(0,i._)((0,o._)({},x),{username:x.email}),[4,b.e.signin(t)];case 2:return S(a.sent()),k(!1),n?window.location.assign(n):window.location.assign("/espace-client"),[3,4];case 3:return r=a.sent(),k(!1),B("Adresse e-mail ou mot de passe invalide."),console.error("Signin error:",r),[3,4];case 4:return[2]}})}),function(t){return e.apply(this,arguments)});return(0,l.tZ)(u.Z,{title:"Connexion | Bring4You",description:"Connectez-vous \xe0 votre compte Bring4You pour acc\xe9der \xe0 nos services de livraison de colis.",children:(0,l.tZ)("div",{className:"min-h-[calc(100vh-140px)] flex items-center justify-center py-8 px-4",children:(0,l.BX)("div",{className:"w-full max-w-md bg-white rounded-lg shadow-md p-8",children:[(0,l.tZ)("h1",{className:"text-2xl font-bold text-center text-[#1e4062] mb-6",children:"Connectez-vous"}),(0,l.BX)("form",{onSubmit:X,className:"signin",autoComplete:"off",children:[(0,l.BX)("div",{className:"mb-4",children:[(0,l.tZ)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),(0,l.tZ)("input",{type:"email",id:"email_singin",name:"email",className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#2077b2] focus:border-transparent",value:x.email,onChange:handleInputChange,pattern:".+\\@.+\\..+",placeholder:"Email",required:!0})]}),(0,l.BX)("div",{className:"mb-4",children:[(0,l.tZ)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-1",children:"Mot de passe"}),(0,l.BX)("div",{className:"relative",children:[(0,l.tZ)("input",{type:v?"text":"password",id:"password_singin",name:"password",className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#2077b2] focus:border-transparent pr-10",value:x.password,onChange:handleInputChange,placeholder:"Mot de passe",required:!0}),(0,l.tZ)("button",{type:"button",className:"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-500 hover:text-gray-700",onClick:function(){N(!v)},children:v?(0,l.tZ)(p.Z,{className:"h-5 w-5"}):(0,l.tZ)(f.Z,{className:"h-5 w-5"})})]})]}),(0,l.BX)("div",{className:"form-group text-center mb-4",children:[Z?(0,l.BX)("button",{type:"submit",className:"bg-[#2077b2] text-white px-6 py-2 rounded-md hover:bg-[#1a5f8c] transition-colors",disabled:!0,children:[(0,l.tZ)("span",{className:"inline-block animate-spin rounded-full h-5 w-5 border-t-2 border-b-2 border-white mr-2"}),"Connexion..."]}):(0,l.tZ)("button",{type:"submit",className:"bg-indigo text-white px-6 py-2 rounded-md hover:bg-[#1a5f8c] transition-colors",children:"Connexion"}),(0,l.tZ)("span",{className:"mx-2",children:"ou"}),(0,l.tZ)("button",{type:"button",onClick:function(){n?t.push("/signup?redirect=".concat(encodeURIComponent(n))):t.push("/signup")},className:"text-[#2077b2] hover:text-[#1a5f8c] transition-colors font-medium",children:"Inscription"})]}),I&&(0,l.tZ)("div",{className:"text-center text-danger text-red-600 mb-4",children:(0,l.tZ)("strong",{children:I})}),(0,l.tZ)("div",{className:"forgot-password text-center",children:(0,l.tZ)("button",{type:"button",onClick:function(){window.location.href="/password/forgot"},className:"text-[#2077b2] hover:text-[#1a5f8c] transition-colors text-sm",children:"Mot de passe oubli\xe9 ?"})})]})]})})})}}},function(e){e.O(0,[8619,6267,2687,2888,179],function(){return e(e.s=9142)}),_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.