1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1483],{3887:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/phone-number",function(){return a(8676)}])},8617:function(t,e){"use strict";e.Z={src:"/_next/static/media/logo.c5f0f924.png",height:35,width:141,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAASElEQVR4nGOsYfiWvGkTp/clvR/HeBQ4t3wxcxBmOHVAjIGB4RUQf2M0cfq5+Ewa2xWm8Bdr/zFKyjEoK3Ey3L33DSjJDcSMAEmFFoG1Cw5BAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},6453:function(t,e,a){"use strict";a.d(e,{O:function(){return o}});let o={login:"/v1/auth/login",register:"/v1/auth/register",forgotpassword:"/v1/auth/forgot-password",sendVerification:"/v1/auth/send-verification-email",resetPass:"/v1/auth/reset-password",verifyEmail:"/v1/auth/verify-email",updateUser:"/v1/users/",refreshToken:"/v1/auth/refresh-tokens",googleLogin:"/v1/auth/google/redirect",google:"/v1/auth/google/login"}},4843:function(t,e,a){"use strict";a.d(e,{NH:function(){return p},Nq:function(){return h},Qz:function(){return v},c0:function(){return u},cK:function(){return l},gF:function(){return c},n$:function(){return s},tJ:function(){return d},u9:function(){return i}});var o=a(5759),r=a(6453),n=a(7066);let s=async t=>{let e=await n.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.login),t);if(!(null==e?void 0:e.data))throw Error((null==e?void 0:e.data.message)||"Login request failed");return e},i=async t=>{let e=await n.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.google),t);if(!(null==e?void 0:e.data))throw Error((null==e?void 0:e.data.message)||"Login request failed");return e},l=async t=>{let e=await n.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.register),t);if(!(null==e?void 0:e.data))throw Error((null==e?void 0:e.data.message)||"request failed");return e},c=async t=>{let e=await n.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.forgotpassword),{email:t});if(!(null==e?void 0:e.data))throw Error((null==e?void 0:e.data.message)||"request failed");return null==e?void 0:e.data},d=async t=>{let e="".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.sendVerification);try{let t=await o.Z.post(e,{});if(!(null==t?void 0:t.data)){var a;throw Error((null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.message)||"Request failed")}return t.data}catch(t){throw t}},u=async(t,e)=>{let a="".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.resetPass);try{let r=await o.Z.post(a,{password:e},{params:{token:t}});if(!(null==r?void 0:r.data)){var n;throw Error((null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.message)||"Request failed")}return r.data}catch(t){throw t}},p=async t=>{try{return await o.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.verifyEmail),{},{params:{token:t}})}catch(t){throw t}},h=async t=>{let e={firstName:t.firstName,lastName:t.lastName,language:t.language,phoneNo:t.phoneNo};return await o.Z.patch("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.updateUser,"/").concat(t.id),{...e})},v=async(t,e)=>await o.Z.patch("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.updateUser).concat(e),{phoneNo:t})},5023:function(t,e,a){"use strict";a.d(e,{Y:function(){return r}});var o=a(584);let r=(t,e,a,r,n)=>{o.ZP[t]({message:e,description:a,onClose:n,duration:r||3})}},5900:function(t,e,a){"use strict";a.d(e,{a:function(){return c}});var o=a(4843),r=a(5023),n=a(7294),s=a(5007),i=a(1163),l=a(4026);let c=()=>{(0,i.useRouter)();let t=(0,s.I0)(),[e,a]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),[u,p]=(0,n.useState)(0),[h,v]=(0,n.use
1State)(!1);return{handleUpdateUser:(0,n.useCallback)(async e=>{try{d(null),a(!0);let r=await (0,o.Nq)(e);(200===r.status||201===r.status)&&(t((0,l.cO)(r.data)),localStorage.setItem("user",JSON.stringify(r.data)))}catch(e){var n,s,i,c,u;v(!1);let t=(null===(s=e.response)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:n.message)||"An error occurred";(0,r.Y)("error","Error",null===(c=e.response)||void 0===c?void 0:null===(i=c.data)||void 0===i?void 0:i.message),d(t),p(null===(u=e.response)||void 0===u?void 0:u.status),a(!1)}},[t]),handleUpdateUserPhone:(0,n.useCallback)(async(e,n)=>{try{d(null),a(!0);let r=await (0,o.Qz)(e,n);if(200===r.status||201===r.status)return t((0,l.cO)(r.data)),localStorage.setItem("user",JSON.stringify(r.data)),r.data}catch(e){var s,i,c,u,h;v(!1);let t=(null===(i=e.response)||void 0===i?void 0:null===(s=i.data)||void 0===s?void 0:s.message)||"An error occurred";(0,r.Y)("error","Error",null===(u=e.response)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.message),d(t),p(null===(h=e.response)||void 0===h?void 0:h.status),a(!1)}},[t]),loading:e,error:c,success:h,setError:d,errorCode:u,setErrorCode:p,setLoading:a}}},8676:function(t,e,a){"use strict";a.r(e);var o=a(5893),r=a(7699),n=a(7294),s=a(8617),i=a(7785);a(1369);var l=a(5675),c=a.n(l),d=a(5900),u=a(5007),p=a(4026),h=a(1163);e.default=()=>{let t=(0,u.v9)(p.pH),e=(0,h.useRouter)(),{handleUpdateUserPhone:a,setLoading:l,loading:v}=(0,d.a)(),[g,f]=(0,n.useState)(""),m=async()=>{l(!0);let o=await a(g,t.id);(null==o?void 0:o.phoneNo)&&e.push("/dashboard"),l(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(c(),{src:s.Z,alt:"logo",height:50,className:"p-4 ps-10 absolute"})," "]}),(0,o.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-gray-50",children:(0,o.jsxs)("div",{className:"bg-white shadow-lg rounded-lg p-8 w-full max-w-md",children:[(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("div",{className:"flex justify-center mb-2",children:(0,o.jsxs)("svg",{width:"81",height:"82",viewBox:"0 0 81 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M71.0674 73.2075L67.1384 77.1365C67.1384 77.1365 50.7859 93.4889 20.3447 63.0476C-11.6777 31.0253 4.67479 14.6719 4.67479 14.6719L8.60279 10.7439C10.2541 9.09254 12.9323 9.09254 14.5836 10.7439L28.6202 24.7805C30.2716 26.4318 30.2716 29.109 28.6202 30.7603L23.056 36.3246C23.056 36.3246 25.945 43.4899 32.4168 49.9617C38.8885 56.4344 45.4867 58.7542 45.4867 58.7542L51.0499 53.191C52.7013 51.5396 55.3795 51.5396 57.0308 53.191L71.0674 67.2276C72.7187 68.8789 72.7187 71.5561 71.0674 73.2075Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M28.6205 30.7604L23.2502 36.1306C22.7092 35.0544 22.4482 34.4078 22.4482 34.4078L27.776 29.0801C28.9033 27.9527 29.2269 26.3259 28.7461 24.9121C30.2705 26.5714 30.2285 29.1523 28.6205 30.7604Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M71.0674 73.2077L67.1384 77.1367C67.1384 77.1367 50.786 93.4892 20.3449 63.048C-0.0828092 42.6204 -0.824491 28.5687 1.31641 21.0713C-0.277961 28.5111 1.3909 41.5332 19.8523 59.9946C48.9993 89.1421 64.6567 73.4846 64.6567 73.4846L68.4184 69.7225C69.548 68.5928 69.8706 66.9619 69.3858 65.5463L71.0674 67.2279C72.7189 68.8789 72.7189 71.5563 71.0674 73.2077Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M5.99767 18.1465C5.7089 18.3034 5.39438 17.9812 5.55639 17.6953C5.7463 17.3601 5.98742 17.0116 6.2693 16.765C6.81276 16.2895 9.47676 13.9206 10.8088 12.7356C11.2346 12.3568 11.8829 12.3812 12.2793 12.7905L18.1354 18.8366C18.4077 19.1177 18.0728 19.5627 17.7277 19.378C14.9085 17.8694 10.0079 15.9672 5.99767 18.1465Z",fill:"#00B8FF"}),(0,o.jsx)("path",{d:"M48.7045 60.4614C48.4157 60.6183 48.1012 60.2962 48.2632 60.0102C48.4531 59.6751 48.6942 59.3266 48.9761 59.0799C49.5195 58.6044 52.1835 56.2355 53.5156 55.0506C53.9414 54.6718 54.5897 54.6962 54.9861 55.1055L60.8422 61.1515C61.1145 61.4327 60.7796 61.8777 60.4344 61.693C57.6153 60.1844 52.7147 58.2822 48.7045 60.4614Z",fill:"#00B8FF"}),(0,o.jsx)("path",{d:"M26.7607 12.8409C26.5268 12.8409 26.2928 12.7517 26.1144 12.5733C25.7574 12.2163 25.7574 11.6377 26.1144 11.2808L34.2027 3.1925C34.5596 2.83557 35.1383 2.83557 35.4952 3.1925C35.8521 3.54942 35.8521 4.12805 35.4952 4.48497L27.4069 12.5733C27.2285 12.7517 26.9945 12.8409 26.7607 12.8409Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M21.0493 9.41398C20.9734 9.41398 20.8964 9.40447 20.8195 9.38455C20.3309 9.258 20.0374 8.75927 20.1639 8.27064L22.1289 0.685049C22.2555 0.196421 22.754 -0.0973005 23.2429 0.0295C23.7315 0.156053 24.025 0.654786 23.8984 1.14341L21.9334 8.729C2
11.8267 9.14076 21.4558 9.41398 21.0493 9.41398Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M30.0959 19.1932C29.6894 19.1932 29.3185 18.92 29.2118 18.5082C29.0852 18.0196 29.3787 17.5208 29.8673 17.3943L37.4529 15.4293C37.9418 15.3028 38.4403 15.5962 38.5669 16.0849C38.6934 16.5735 38.4 17.0722 37.9113 17.1988L30.3258 19.1637C30.2489 19.1837 30.1718 19.1932 30.0959 19.1932Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M68.6645 54.7452C68.4306 54.7452 68.1966 54.656 68.0182 54.4776C67.6613 54.1206 67.6613 53.542 68.0182 53.1851L76.1065 45.0968C76.4634 44.7399 77.0421 44.7399 77.399 45.0968C77.7559 45.4537 77.7559 46.0323 77.399 46.3893L69.3107 54.4776C69.1323 54.656 68.8984 54.7452 68.6645 54.7452Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M62.9529 51.3183C62.877 51.3183 62.7999 51.3088 62.7231 51.2889C62.2344 51.1623 61.941 50.6636 62.0675 50.1749L64.0325 42.5893C64.1591 42.1007 64.6576 41.807 65.1464 41.9338C65.6351 42.0603 65.9285 42.5591 65.802 43.0477L63.837 50.6333C63.7303 51.0451 63.3594 51.3183 62.9529 51.3183Z",fill:"#4034F7"}),(0,o.jsx)("path",{d:"M71.9997 61.097C71.5932 61.097 71.2223 60.8238 71.1156 60.412C70.989 59.9234 71.2825 59.4247 71.7711 59.2981L79.3567 57.3331C79.8456 57.2066 80.3441 57.5001 80.4707 57.9887C80.5973 58.4773 80.3038 58.976 79.8152 59.1026L72.2296 61.0676C72.1527 61.0875 72.0755 61.097 71.9997 61.097Z",fill:"#4034F7"})]})}),(0,o.jsx)("h1",{className:"text-2xl font-semibold",children:"Just One More Step!"}),(0,o.jsx)("p",{className:"text-gray-400 text-[16px] mt-1 mb-3",children:"Share your phone number to receive personalized updates, exclusive offers, and important notifications."})]}),(0,o.jsxs)("div",{className:"mb-4 login-in-phonenumber",children:[(0,o.jsx)("p",{className:"block text-gray-700 text-[18px] mb-2 font-semibold",children:"Enter your phone number"}),(0,o.jsx)(i.ZP,{international:!0,defaultCountry:"FR",value:g,onChange:t=>f(t||"")})]}),(0,o.jsx)(r.ZP,{type:"primary",onClick:m,className:"w-[100%] text-blue-800 mb-4",loading:v,disabled:""===g,children:"Continue to Login"}),(0,o.jsxs)("p",{className:"text-center text-sm text-gray-500",children:["Facing issues? we are here to assist you"," ",(0,o.jsx)("a",{href:"#",className:"text-[#4034F7] u",children:"Customer support"})]})]})})]})}},5759:function(t,e,a){"use strict";var o=a(6453),r=a(7066);let n=r.Z.create({baseURL:"https://oyster-app-jwk3x.ondigitalocean.app"});n.interceptors.request.use(async t=>{let e=localStorage.getItem("authToken"),a=localStorage.getItem("sessionId");return e?t.headers.Authorization="Bearer ".concat(e):t.headers["session-id"]=a,t.headers["Content-Type"]="application/json",t},t=>Promise.reject(t)),n.interceptors.response.use(t=>t,async t=>{let e=t.config;if(401===t.response.status&&!e._retry){e._retry=!0;try{await s();let t=localStorage.getItem("authToken");return e.headers.Authorization="Bearer ".concat(t),n(e)}catch(t){return Promise.reject(t)}}return Promise.reject(t)});let s=async()=>{let t=localStorage.getItem("refreshToken");if(t)try{var e,a,n,s,i,l,c,d;let u=await r.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(o.O.refreshToken),{refreshToken:t});if(null==u?void 0:null===(a=u.data)||void 0===a?void 0:null===(e=a.access)||void 0===e?void 0:e.token)return localStorage.setItem("authToken",null==u?void 0:null===(s=u.data)||void 0===s?void 0:null===(n=s.access)||void 0===n?void 0:n.token),localStorage.setItem("refreshToken",null==u?void 0:null===(l=u.data)||void 0===l?void 0:null===(i=l.refresh)||void 0===i?void 0:i.token),Promise.resolve(null==u?void 0:null===(d=u.data)||void 0===d?void 0:null===(c=d.access)||void 0===c?void 0:c.token);throw Error("Failed to refresh access token")}catch(t){401===t.response.status&&(localStorage.clear(),window.location.href="/auth/log-In")}else window.location.href="/auth/log-In"};e.Z=n}},function(t){t.O(0,[5675,5045,5366,7066,9865,2205,7699,584,8803,2888,9774,179],function(){return t(t.s=3887)}),_N_E=t.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.