PageSourceSearch

https://www.bevy-express.com/_next/static/chunks/pages/account/register-social-8cceea8e39a8d99c.js

js bevy-express.com collected 2026-10-05 10:54:13 UTC 8,296 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4b26b498-4728-5cc9-a8b8-b4d5a4d012d5")}catch(e){}}();
3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="5c0fd689-62eb-47bc-b49e-6962ca5b71e6",e._sentryDebugIdIdentifier="sentry-dbid-5c0fd689-62eb-47bc-b49e-6962ca5b71e6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[317],{16570:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var s=t(37876);function a(e){let{error:r="",className:t="form-input-error"}=e;return(0,s.jsx)(s.Fragment,{children:r&&(0,s.jsx)("small",{className:t,children:r})})}},28097:(e,r,t)=>{"use strict";t.d(r,{k:()=>s});let s=e=>{var r,t;let s=null==e||null==(r=e.data)?void 0:r.issues;if(!Array.isArray(s)||0===s.length)return{};let a={};for(let e of s){let r=null==(t=e.path)?void 0:t[0];r&&e.message&&(a[r]=e.message)}return a}},31424:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/register-social",function(){return t(79529)}])},79529:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>g});var s=t(37876),a=t(14232),i=t(60922),l=t(42264),n=t.n(l);t(11827);var o=t(11457),d=t(89848);t(93754);var c=t(89099),m=t(68421),u=t(17511),f=t(26449);t(96441);var h=t(10841),b=t.n(h),p=t(16570),x=t(28429),N=t(96063),j=t(28097);let g=()=>{let[e,r]=(0,a.useState)(!1),t=(0,c.useRouter)(),[l,h]=(0,a.useState)({firstName:"",lastName:"",dateOfBirth:"",phoneNumber:"",email:"",referralCode:"",newsletterSubscription:!1}),{setAuth:g,userInfo:v}=(0,x.h)(),[w,y]=(0,a.useState)(),[C,O]=(0,a.useState)({}),B=async()=>{var e,r,t,s,a;h({...l,email:null!=(e=v.email)?e:"",firstName:null!=(r=v.firstName)?r:"",lastName:null!=(t=v.lastName)?t:"",dateOfBirth:v.dateOfBirth?b()(v.dateOfBirth).format("DD/MM/YYYY"):"",phoneNumber:null!=(s=v.phone)?s:"",referralCode:"",newsletterSubscription:null!=(a=v.newsletterSubscribed)&&a}),v.dateOfBirth&&y(b()(v.dateOfBirth))};(0,a.useEffect)(()=>{B()},[]);let S=async e=>{let{name:r,value:t}=e.target;"checkbox"==e.target.type?h({...l,[r]:e.target.checked}):h({...l,[r]:t})},_=async s=>{if((s.preventDefault(),!e)&&(()=>{let e={};if(l.firstName||(e.firstName="Inserisci il tuo nome"),l.lastName||(e.lastName="Inserisci il tuo cognome"),l.dateOfBirth||(e.dateOfBirth="Inserisci la tua data di nascita"),l.dateOfBirth){let r=b()(l.dateOfBirth,"DD/MM/YYYY");18>b()().diff(r,"years")&&(e.dateOfBirth="Per usufruire del servizio \xe8 necessario avere almeno 18 anni")}return l.phoneNumber||(e.phoneNumber="Inserisci un numero di cellulare"),l.email||(e.email="Inserisci un indirizzo di mail valido"),O(e),0===Object.keys(e).length})())try{r(!0),(await N.S.customers.auth.socialLoginUpdate({firstName:l.firstName,lastName:l.lastName,dateOfBirth:b()(l.dateOfBirth,"DD/MM/YYYY").toDate(),email:l.email,phone:l.phoneNumber,newsletterSubscribed:l.newsletterSubscription,referralSource:null,referredByCode:l.referralCode||null})).phoneVerified?(g(!0),t.push("/")):t.push("/account/phone-verification")}catch(r){console.error(r);let e=(0,j.k)(r);if(Object.keys(e).length>0)O(e);else d.oR.error("Si \xe8 verificato un errore durante la registrazione. Si prega di riprovare.",{position:"bottom-center",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}finally{r(!1)}};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(i.A,{title:"Registrati",description:"Registrati su bevy express",children:[(0,s.jsx)("div",{className:"registration flex justify-center items-center bg-white pt-36",children:(0,s.jsx)("form",{className:"shadow-md rounded-3xl mt-8 ",onSubmit:_,children:(0,s.jsx)(o.A,{status:e,children:(0,s.jsxs)("div",{className:"p-8",children:[(0,s.jsx)("h1",{className:"text-xl font-bold text-center md:text-left",children:"Informazioni aggiuntive"}),(0,s.jsx)("span",{className:"text-xs block mb-4 font-semibold",children:"Abbiamo bisogno di alcune informazioni aggiuntive prima di procedere alla registrazione"}),(0,s.jsxs)("div",{className:"md:flex justify-center items-start",children:[(0,s.jsxs)("div",{className:"flex flex-col mb-2 md:w-1/2 md:pr-2 md:mb-0",children:[(0,s.jsxs)("label",{children:["Nome ",(0,s.jsx)("em",{children:"*"})]}),(0,s.jsx)("input",{type:"text",name:"firstName",value:l.firstName,onChange:S,className:"p-2 md:mt-2 "+(C&&C.hasOwnProperty("firstName")?"!border-2 !border-red-500":" !border")}),(0,s.jsx)(p.A,{error:C.firstName,className:"registration-error"})]}),(0,s.jsxs)("div",{className:"flex flex-col md:w-1/2",children:[(0,s.jsxs)("label",{children:["Cognome ",(0,s.jsx)("em",{children:"*"})]}),(0,s.jsx)("input",{type:"text",name:"lastName",value:l.lastName,onChange:S,className:"p-2 md:mt-2 "+(C&&C.hasOwnProperty("lastName")?"!border-2 !border-red-500":" !border")}),(0,s.jsx)(p.A,{error:C.lastName,className:"registration-error"})]})]}),(0,s.jsxs)("div",{className:"md:flex justify-center items-start mt-2 md:mt-6 w-full mb-2 md:mb-4",children:[(0,s.jsxs)("div",{className:"birthday-field flex flex-col mb-2 md:mb-0 md:w-1/2 md:pr-2",children:[(0,s.jsxs)("label",{children:["Compleanno ",(0,s.jsx)("em",{children:"*"})]}),(0,s.jsxs)("div",{className:"md:mt-2 w-full",children:[(0,s.jsx)(m.$,{dateAdapter:u.Y,adapterLocale:"it",children:(0,s.jsx)(f.l,{onChange:e=>{h({...l,dateOfBirth:e?e.format("DD/MM/YYYY"):""})},value:w,label:"gg/mm/aaaa",className:"w-full "+(C&&C.hasOwnProperty("dateOfBirth")?"error-border":"")})}),(0,s.jsx)(p.A,{error:C.dateOfBirth,className:"registration-error"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col md:w-1/2",children:[(0,s.jsxs)("label",{children:["Numero di telefono ",(0,s.jsx)("em",{children:"*"})]}),(0,s.jsx)(n(),{country:"it",countryCodeEditable:!1,inputClass:"p-2"+(C&&C.hasOwnProperty("phoneNumber")?" !border-2 !border-red-500":" !border"),containerClass:"md:mt-2",value:l.phoneNumber,onChange:(e,r,t,s)=>{h({...l,phoneNumber:"+".concat(e)})}}),C.phoneNumber?(0,s.jsxs)("p",{className:"registration-error",children:["Il numero sembra essere gi\xe0 in uso.\xa0",(0,s.jsx)("a",{href:"https://api.whatsapp.com/se
3nd/?phone=393404854133&text&type=phone_number&app_absent=0",className:"buttonLink",children:"Clicca qui\xa0"}),"per parlare con il servizio clienti."]}):null,(0,s.jsx)(p.A,{error:C.phone,className:"registration-error"})]})]}),(0,s.jsxs)("div",{className:"md:flex justify-center items-start mt-2 md:mt-6 w-full mb-2 md:mb-4",children:[(0,s.jsxs)("div",{className:"flex flex-col md:w-1/2 md:pr-2",children:[(0,s.jsxs)("label",{children:["Email ",(0,s.jsx)("em",{children:"*"})]}),(0,s.jsx)("input",{type:"text",name:"email",value:l.email,onChange:S,className:"w-full p-2 "+(C&&C.hasOwnProperty("email")?"!border-2 !border-red-500":" !border")}),(0,s.jsx)(p.A,{error:C.email,className:"registration-error"})]}),(0,s.jsxs)("div",{className:"flex flex-col md:w-1/2",children:[(0,s.jsx)("label",{children:"Codice invita un amico/azienda"}),(0,s.jsx)("input",{type:"text",name:"referralCode",value:l.referralCode,onChange:S,className:"p-2 "+(C&&C.hasOwnProperty("referralCode")?"!border-2 !border-red-500":" !border"),placeholder:"Inserisci codice dell'amico che ti ha invitato"}),(0,s.jsx)(p.A,{error:C.referralCode,className:"registration-error"})]})]}),(0,s.jsxs)("div",{className:"form-action flex items-center mt-6 w-full mb-4",children:[(0,s.jsx)("input",{type:"checkbox",id:"newsletterSubscription",name:"newsletterSubscription",checked:l.newsletterSubscription,onChange:S,className:"w-4 h-4"}),(0,s.jsx)("label",{htmlFor:"newsletterSubscription",className:"ms-2 font-medium",children:"Acconsento a ricevere sconti esclusivi, novita e offerte commerciali."})]}),(0,s.jsx)("div",{className:"form-action flex justify-center items-center mt-6 w-full mb-4",children:(0,s.jsx)("button",{type:"submit",disabled:e,className:"mr-2 px-4 py-2 border rounded-3xl enabled !text-[12px] disabled:opacity-50 disabled:cursor-not-allowed",children:"CREA ACCOUNT"})})]})})})}),(0,s.jsx)(d.N9,{})]})})}}},e=>{e.O(0,[923,585,695,893,636,593,792],()=>e(e.s=31424)),_N_E=e.O()}]);
4//# debugId=4b26b498-4728-5cc9-a8b8-b4d5a4d012d5

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.