PageSourceSearch

https://grocerylistjamaica.com/_next/static/chunks/pages/deliveryman-registration-047eb433c298db7a.js

js grocerylistjamaica.com collected 2026-10-01 15:06:16 UTC 31,926 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="382c43eb-a0bf-4982-9f21-98e532f3817b",e._sentryDebugIdIdentifier="sentry-dbid-382c43eb-a0bf-4982-9f21-98e532f3817b")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2455],{54599:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate")},18729:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2M9 12c.83 0 1.5.67 1.5 1.5S9.83 15 9 15s-1.5-.67-1.5-1.5S8.17 12 9 12m3 6H6v-.75c0-1 2-1.5 3-1.5s3 .5 3 1.5zm1-9h-2V4h2zm5 7.5h-4V15h4zm0-3h-4V12h4z"}),"Badge")},35593:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"m21.41 10.59-7.99-8c-.78-.78-2.05-.78-2.83 0l-8.01 8c-.78.78-.78 2.05 0 2.83l8.01 8c.78.78 2.05.78 2.83 0l7.99-8c.79-.79.79-2.05 0-2.83M13.5 14.5V12H10v3H8v-4c0-.55.45-1 1-1h4.5V7.5L17 11z"}),"Directions")},54637:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16m11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M5 11l1.5-4.5h11L19 11z"}),"DirectionsCar")},50891:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email")},76638:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},87739:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https")},47962:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"}),"LibraryBooks")},69308:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},83765:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 3c0 .55.45 1 1 1h1l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h11c.55 0 1-.45 1-1s-.45-1-1-1H7l1.1-2h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.67-1.43c-.16-.35-.52-.57-.9-.57H2c-.55 0-1 .45-1 1m16 15c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCartRounded")},77710:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"SmsRounded")},39595:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),a=r(85893);t.Z=(0,i.default)((0,a.jsx)("path",{d:"M20 4H4v2h16zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6zm-9 4H6v-4h6z"}),"Store")},17965:function(e,t,r){"use strict";var n=r(87462),i=r(63366),a=r(67294),s=r(90512),o=r(94780),l=r(90948),d=r(28628),c=r(5919),u=r(85893);const p=["children","className","component","onChange","showLabels","value"],h=(0,l.ZP)("div",{name:"MuiBottomN
1avigation",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper}))),m=a.forwardRef((function(e,t){const r=(0,d.i)({props:e,name:"MuiBottomNavigation"}),{children:l,className:m,component:x="div",onChange:g,showLabels:f=!1,value:v}=r,j=(0,i.Z)(r,p),Z=(0,n.Z)({},r,{component:x,showLabels:f}),b=(e=>{const{classes:t}=e;return(0,o.Z)({root:["root"]},c.H,t)})(Z);return(0,u.jsx)(h,(0,n.Z)({as:x,className:(0,s.Z)(b.root,m),ref:t,ownerState:Z},j,{children:a.Children.map(l,((e,t)=>{if(!a.isValidElement(e))return null;const r=void 0===e.props.value?t:e.props.value;return a.cloneElement(e,{selected:r===v,showLabel:void 0!==e.props.showLabel?e.props.showLabel:f,value:r,onChange:g})}))}))}));t.Z=m},5919:function(e,t,r){"use strict";r.d(t,{H:function(){return a}});var n=r(1588),i=r(34867);function a(e){return(0,i.ZP)("MuiBottomNavigation",e)}const s=(0,n.Z)("MuiBottomNavigation",["root"]);t.Z=s},8298:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(87462),i=r(63366),a=r(67294);const s=["getTrigger","target"];function o(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:i}=t,a=e.current;return i&&(e.current=void 0!==i.pageYOffset?i.pageYOffset:i.scrollTop),!(!r&&void 0!==a&&e.current<a)&&e.current>n}const l="undefined"!==typeof window?window:null;function d(e={}){const{getTrigger:t=o,target:r=l}=e,d=(0,i.Z)(e,s),c=a.useRef(),[u,p]=a.useState((()=>t(c,d)));return a.useEffect((()=>{const e=()=>{p(t(c,(0,n.Z)({target:r},d)))};return e(),r.addEventListener("scroll",e,{passive:!0}),()=>{r.removeEventListener("scroll",e,{passive:!0})}}),[r,t,JSON.stringify(d)]),u}},38884:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/deliveryman-registration",function(){return r(19373)}])},19373:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ge}});var n=r(85893),i=r(99200),a=r(66720),s=r(67294),o=r(51203),l=r(8911),d=r(53397),c=r(94979),u=r(41796),p=r(32509),h=r(96427),m=r(22120),x=r(48263),g=r(91057),f=r(26447),v=r(23972),j=r(84078),Z=r(51126),b=r(71983),y=r(61532),w=r(28201),_=r(50891),P=r(69308),S=r(54637),F=r(27929),C=r(88767),z=r(79173),I=r(31929),L=r(66967);function H(){return(0,C.useQuery)(["vehicle-list-data"],(()=>(async()=>{const{data:e}=await I.default.get("".concat(L.mj));return e})()),{enabled:!1,onError:z.f$})}var R=r(68084);const D=[{label:"Passport",value:"passport"},{label:"Driving License",value:"driving_license"},{label:"NID",value:"nid"}],q=[{label:"Freelancer",value:"1"},{label:"Salary based  ",value:"0"}],E="User Info",k="Identity Info",M="Account Info";var T=r(87685),V=r(60076);var N=e=>{let{deliveryManFormik:t,firstNameHandler:r,lastNameHandler:i,deliveryHandler:a,emailHandler:o,zoneHandler:l,vehicleHandler:d,handleImageUpload:c,image:p,setImage:m,handleFieldChange:C}=e;const z=(0,T.u)(),{data:I,isLoading:L,refetch:D}=(0,R.Z)(),{data:E,isLoading:k,isError:M,error:N,refetch:O}=H();(0,s.useEffect)((()=>{"string"!==typeof p&&C("image",p)}),[p]),(0,s.useEffect)((()=>{O(),D()}),[]);const W=null===E||void 0===E?void 0:E.map((e=>({label:null===e||void 0===e?void 0:e.type,value:null===e||void 0===e?void 0:e.id.toString()}))),G=null===I||void 0===I?void 0:I.map((e=>({label:null===e||void 0===e?void 0:e.name,value:null===e||void 0===e?void 0:e.id.toString()})));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(h.uu,{children:(0,n.jsxs)(x.ZP,{container:!0,spacing:2,children:[(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:9,children:(0,n.jsxs)(x.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("First name"),type:"text",label:(0,Z.t)("First name"),touched:t.touched.f_name,errors:t.errors.f_name,fieldProps:t.getFieldProps("f_name"),onChangeHandler:e=>{C("f_name",e)},value:t.values.f_name,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(w.Z,{sx:{color:t.touched.f_name&&!t.errors.f_name?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("Last name"),type:"text",label:(0,Z.t)("Last name"),fieldProps:t.getFieldProps("l_name"),onChangeHandler:e=>{C("l_name",e)},value:t.values.l_name,touched:t.touched.l_name,errors:t.errors.l_name,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(w.Z,{sx:{color:t.touched.l_name&&!t.errors.l_name?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("Email"),type:"email",label:(0,Z.t)("Email"),touched:t.touched.email,errors:t.errors.email,fieldProps:t.getFieldProps("email"),onChangeHandler:e=>{C("email",e)},value:t.values.email,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(_.Z,{sx:{color:t.touched.email&&!t.errors.email?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Z,{selectFieldData:q,inputLabel:(0,Z.t)("Shopper Type"),passSelectedValue:e=>{C("earning",e)},touched:t.touched.earning,errors:t.errors.earning,fieldProps:t.getFieldProps("earning"),startIcon:(0,n.jsx)(b.Z,{sx:{color:t.touched.earning&&!t.errors.earning?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Z,{selectFieldData:G,inputLabel:(0,Z.t)("Select Zone"),passSelectedValue:e=>{C("zone_id",e)},touched:t.touched.zone_id,errors:t.errors.zone_id,fieldProps:t.getFieldProps("zone_id"),startIcon:(0,n.jsx)(P.Z,{sx:{color:t.touched.zone_id&&!t.errors.zone_id?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Z,{selectFieldData:W,inputLabel:(0,Z.t)("Select Vehicle Type"),passSelectedValue:e=>{C("vehicle_id",e)},touched:t.touched.vehicle_id,errors:t.errors.vehicle_id,fieldProps:t.getFieldProps("vehicle_id"),startIcon:(0,n.jsx)(S.Z,{sx:{color:t.touched.vehicle_id&&!t.errors.vehicle_id?z.palette.primary.main:(0,u.Fq)(z.palette.neutral[400],.7),fontSize:"18px"}})})})]})}
1),(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:3,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsxs)(f.Z,{spacing:1,justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(V.Z,{sx:{fontWeight:"600",color:e=>e.palette.neutral[1e3]},children:(0,Z.t)("Profile Image")}),(0,n.jsx)(v.Z,{fontSize:"12px",children:(0,Z.t)("JPG, JPEG, PNG Less Than 1MB (Ratio 2:1)")}),(0,n.jsx)(F.Z,{type:"file",labelText:(0,Z.t)("Profile Image"),hintText:"Image format - jpg, png, jpeg, gif Image Size - maximum size 2 MB Image Ratio - 1:1",file:p,onChange:e=>{m(e.currentTarget.files[0])},imageOnChange:e=>{m(e)},width:"8.75rem",error:t.errors.image})]})})]})})})},O=r(18729),W=r(17409);r(75492);const G=["jpg","jpeg","gif","png","pdf","doc","docx","deb"];var A=e=>{let{deliveryManFormik:t,identityHandler:r,identityNumberHandler:i,handleIdentityImageUpload:a,identityImage:o,setIdentityImage:l,handleFieldChange:d}=e;const c=(0,T.u)();(0,s.useEffect)((()=>{"string"!==typeof o&&d("identity_image",o)}),[o]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(h.uu,{children:(0,n.jsxs)(x.ZP,{container:!0,spacing:2,children:[(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:6,children:(0,n.jsxs)(x.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(x.ZP,{item:!0,xs:12,children:(0,n.jsx)(y.Z,{selectFieldData:D,inputLabel:(0,Z.t)("Identity Type"),passSelectedValue:e=>{d("identity_type",e)},touched:t.touched.identity_type,errors:t.errors.identity_type,fieldProps:t.getFieldProps("identity_type"),startIcon:(0,n.jsx)(O.Z,{sx:{color:t.touched.identity_type&&!t.errors.identity_type?c.palette.primary.main:(0,u.Fq)(c.palette.neutral[400],.7),fontSize:"18px"}})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("Identity Number"),type:"number",label:(0,Z.t)("Identity Number"),touched:t.touched.identity_number,errors:t.errors.identity_number,fieldProps:t.getFieldProps("identity_number"),onChangeHandler:e=>{d("identity_number",e)},value:t.values.identity_number,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(O.Z,{sx:{color:t.touched.identity_number&&!t.errors.identity_number?c.palette.primary.main:(0,u.Fq)(c.palette.neutral[400],.7),fontSize:"18px"}})})})})]})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:6,children:(0,n.jsxs)(h.Xw,{spacing:2.5,children:[(0,n.jsxs)(f.Z,{direction:"row",width:"100%",spacing:1,alignItems:"center",children:[(0,n.jsx)(V.Z,{sx:{fontWeight:"600",color:e=>e.palette.neutral[1e3]},children:(0,Z.t)("Identity Image")}),(0,n.jsx)(v.Z,{fontSize:"12px",children:(0,Z.t)("JPG, JPEG, PNG Less Than 1MB (Ratio 1:1)")})]}),(0,n.jsx)(W.Z,{fileImagesHandler:e=>{l(e)},totalFiles:o,maxFileSize:2e7,supportedFileFormats:G,acceptedFileInputFormat:"application/pdf,image/*,text/plain,.doc, .docx,.txt",gridControl:"true"})]})})]})})})},B=r(8753),J=r(20243),U=r(87739);var $=e=>{let{configData:t,deliveryManFormik:r,phoneNumberHandler:i,passwordHandler:a,handleFieldChange:s}=e;const l=(0,T.u)(),d=(0,J.G)()?(0,J.G)():"ltr";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(x.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:4,children:(0,n.jsx)(B.Z,{value:r.values.phone,onHandleChange:e=>{s("phone",(0,o.un)(e))},initCountry:null===t||void 0===t?void 0:t.country,touched:r.touched.phone,errors:r.errors.phone,rtlChange:"true",lanDirection:d,height:"45px"})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:4,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("Password"),name:"password",type:"password",label:(0,Z.t)("Password"),onChangeHandler:e=>{s("password",e)},touched:r.touched.password,errors:r.errors.password,fieldProps:r.getFieldProps("password"),value:r.values.password,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(U.Z,{sx:{color:r.touched.password&&!r.errors.password?l.palette.primary.main:(0,u.Fq)(l.palette.neutral[400],.7),fontSize:"18px"}})})})}),(0,n.jsx)(x.ZP,{item:!0,xs:12,lg:4,children:(0,n.jsx)(j.Z,{placeholder:(0,Z.t)("Confirm Password"),name:"confirm_password",type:"password",label:(0,Z.t)("Confirm Password"),onChangeHandler:e=>{s("confirm_password",e)},touched:r.touched.confirm_password,errors:r.errors.confirm_password,fieldProps:r.getFieldProps("confirm_password"),value:r.values.confirm_password,fontSize:"12px",startIcon:(0,n.jsx)(g.Z,{position:"start",children:(0,n.jsx)(U.Z,{sx:{fontSize:"18px"}})})})})]})})},X=r(96682),Q=r(89609),Y=r(76313),K=r(16829);const ee=(0,K.Z)(Q.Z)((e=>{let{theme:t}=e;return{border:"1px solid ".concat(t.palette.neutral[200]),borderRadius:"20px",padding:"30px",marginTop:"40px",[t.breakpoints.down("md")]:{padding:"16px",marginTop:"30px"}}})),te=(0,K.Z)(Q.Z)((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"end",alignItems:"center",gap:"15p
1x"}})),re=(0,K.Z)(Q.Z)((e=>{let{theme:t}=e;return{}})),ne=(0,K.Z)(Q.Z)((e=>{let{theme:t}=e;return{}}));var ie=e=>{let{title:t,component:r}=e;const i=(0,X.Z)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(h.uu,{sx:{bgcolor:e=>e.palette.neutral[100],mb:"30px",pb:"30px",pt:"20px",borderRadius:"10px"},children:[(0,n.jsx)(ne,{sx:{borderBottom:"1px solid ".concat(i.palette.neutral[200]),pl:"20px",pb:"11px"},children:(0,n.jsx)(Y.Z,{text:t,sx:{fontWeight:"500"}})}),(0,n.jsx)(Q.Z,{sx:{mt:"20px",mx:"20px"},children:r})]})})},ae=r(82175);const se=async e=>{const{data:t}=await I.default.post("".concat(L.sV),e);return t};var oe=r(86501),le=r(74231);var de=le.Ry().shape({f_name:le.Z_().required("First name is required").min(2,"First name must be at least 2 characters").max(50,"First name can't exceed 50 characters"),l_name:le.Z_().required("Last name is required").min(2,"Last name must be at least 2 characters").max(50,"Last name can't exceed 50 characters"),email:le.Z_().email("Invalid email address").required("Email is required"),phone:le.Z_().required("Phone number is required"),password:le.Z_().required("Password is required").min(8,"Password must be at least 8 characters").max(20,"Password can't exceed 20 characters").matches(/[A-Z]/,"Password must contain at least one uppercase letter").matches(/[a-z]/,"Password must contain at least one lowercase letter").matches(/[0-9]/,"Password must contain at least one number").matches(/[@$!%*?&#]/,"Password must contain at least one special symbol"),confirm_password:le.Z_().required("Confirm Password required").oneOf([le.iH("password"),null],"Passwords must match"),earning:le.Rx().typeError("Earning must be a number").required("Earning is required"),zone_id:le.Z_().required("Zone selection is required"),vehicle_id:le.Z_().required("Vehicle selection is required"),identity_type:le.Z_().required("Identity type is required").oneOf(["passport","driving_license","nid"],"Invalid identity type"),identity_number:le.Z_().required("Identity number is required"),image:le.nK().required("Profile image is required").test("fileType","Only images are allowed",(e=>!!e&&["image/jpeg","image/png","image/jpg"].includes(e.type)))}),ce=r(11163);var ue=r(78230);var pe=e=>{let{configData:t}=e;(0,ue.Z)();const r=(0,ce.useRouter)(),{t:i}
1=(0,m.$G)(),[a,o]=(0,s.useState)(""),[l,d]=(0,s.useState)(""),{mutate:c,isLoading:x}=(0,C.useMutation)("deliveryman_post_request",se),g=(0,ae.TA)({initialValues:{f_name:"",l_name:"",email:"",earning:"",zone_id:"",vehicle_id:"",identity_type:"",identity_number:"",phone:"",password:"",confirm_password:""},validationSchema:de,onSubmit:async(e,t)=>{try{const{confirm_password:n,...i}=e;c((e=>{const t=new FormData;return Object.entries(e).forEach((e=>{let[r,n]=e;"confirm_password"!==r&&t.append(r,n),"identity_image"===r&&(null===n||void 0===n||n.forEach((e=>{t.append("identity_image[]",e)})))})),t})(i),{onSuccess:e=>{oe.ZP.success(e.message,{id:e.message}),t.resetForm(),o(""),d(""),r.push("/home")},onError:z.RJ})}catch(n){console.error(n)}}}),f=(e,t)=>{g.setFieldValue(e,t)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ne,{children:(0,n.jsx)(p.Z,{text:"Shopper Application",sx:{fontWeight:"700",fontSize:{xs:"26px",md:"36px"},mt:"20px",lineHeight:"36px"}})}),(0,n.jsx)("form",{onSubmit:g.handleSubmit,children:(0,n.jsxs)(ee,{children:[(0,n.jsxs)(re,{children:[(0,n.jsx)(ie,{title:E,component:(0,n.jsx)(N,{deliveryManFormik:g,image:a,setImage:o,handleFieldChange:f})}),(0,n.jsx)(ie,{title:k,component:(0,n.jsx)(A,{deliveryManFormik:g,identityImage:l,setIdentityImage:d,handleFieldChange:f})}),(0,n.jsx)(ie,{title:M,component:(0,n.jsx)($,{configData:t,deliveryManFormik:g,handleFieldChange:f})})]}),(0,n.jsxs)(te,{children:[(0,n.jsx)(h.op,{onClick:()=>{g.resetForm(),o(""),d("")},disabled:x,sx:{bgcolor:e=>(0,u.Fq)(e.palette.neutral[200],.4),color:e=>e.palette.primary.dark,px:"30px",borderRadius:"5px"},children:i("Reset")}),(0,n.jsx)(h.op,{type:"submit",disabled:x,sx:{background:e=>e.palette.primary.main,color:e=>e.palette.whiteContainer.main,px:"30px",borderRadius:"5px",fontWeight:"500",fontSize:"14px","&:hover":{background:e=>e.palette.primary.dark}},children:i(x?"Submitting...":"Submit Information")})]})]})})]})},he=r(9473),me=r(89896),xe=r(37926);var ge=()=>{const e=(0,he.I0)(),{landingPageData:t,configData:r}=(0,he.v9)((e=>e.configData)),{data:u,refetch:p}=(0,me.v)();return(0,s.useEffect)((()=>{r||p()}),[r]),(0,s.useEffect)((()=>{u&&e((0,xe.Zr)(u))}),[u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.ZP,{}),(0,n.jsx)(d.Z,{title:r?"Deliveryman Registration":"Loading...",image:"".concat((0,o.Jn)({value:null===r||void 0===r?void 0:r.logo_storage},"business_logo_url",r),"/").concat(null===r||void 0===r?void 0:r.fav_icon),businessName:null===r||void 0===r?void 0:r.business_name,configData:r}),(0,n.jsx)(l.Z,{configData:r,landingPageData:t,children:(0,n.jsx)(i.Z,{children:(0,n.jsx)(c.Z,{children:(0,n.jsx)(pe,{configData:r,landingPageData:t})})})})]})}},78230:function(e,t,r){"use strict";var n=r(67294),i=r(11163);t.Z=()=>{const e=(0,i.useRouter)();(0,n.useEffect)((()=>{const t=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.events.on("routeChangeComplete",t),()=>{e.events.off("routeChangeComplete",t)}}),[e])}},68084:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(88767),i=r(31929),a=r(66967),s=r(79173);function o(){return(0,n.useQuery)(["zone-list-data"],(()=>(async()=>{const{data:e}=await i.default.get("".concat(a.bS));return e})()),{enabled:!1,onError:s.f$})}},89896:function(e,t,r){"use strict";r.d(t,{v:function(){return o}});var n=r(88767),i=r(31929),a=r(79173),s=r(66967);const o=e=>(0,n.useQuery)("getConfig",(()=>(async()=>{const{data:e}=await i.default.get(s.Ax);return e})()),{enabled:!1,onError:a.f$,retry:1,cacheTime:400})},61532:function(e,t,r){"use strict";var n=r(85893),i=r(67294),a=r(45697),s=r.n(a),o=(r(96427),r(53640)),l=r(60076),d=r(69587),c=r(63931),u=r(74509),p=r(22120),h=r(2734);const m=e=>{const{inputLabel:t,selectFieldData:r,passSelectedValue:a,touched:s,errors:m,fieldProps:x,required:g,value:f,startIcon:v,placeholder:j}=e,[Z,b]=i.useState(f),y=(0,h.Z)(),{t:w}=(0,p.$G)();return(0,n.jsxs)(o.Z,{fullWidth:!0,children:[(0,n.jsx)(l.Z,{required:g,id:"demo-simple-select-label",sx:{color:y.palette.neutral[400],display:"flex",alignItems:"start !important",fontSize:"13px",fontWeight:"500"},children:t}),(0,n.jsx)(d.Z,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:f,label:t,onChange:e=>{a(e.target.value),b(e.target.value)},error:Boolean(s&&m),helperText:s&&m,displayEmpty:!0,...x,sx:{height:"45px","& .MuiSelect-select":{height:"45px",display:"flex",alignItems:"center"}},children:(null===r||void 0===r?void 0:r.length)>0&&r.map(((e,t)=>(0,n.jsx)(c.Z,{value:e.value,sx:{"&:hover":{backgroundColor:"primary.main"}},children:w(e.label)},t)))}),s&&m&&!f&&(0,n.jsx)(u.Z,{sx:{color:y.palette.error.main},children:w("Please select an option.")})]})};m.propTypes={inputLabel:s().string.isRequired,selectFieldData:s().array.isRequired,passSelectedValue:s().func.isRequired,startIcon:s().node,placeholder:s().string},t.Z=m},35205:function(e,t,r){"use strict";r.d(t,{Ec:function(){return o},JL:function(){return d},i3:function(){return l},oC:function(){return c},w_:function(){return u}});var n=r(90948),i=r(99226),a=r(96427),s=r(54799);r(67294);const o=(0,n.ZP)(a.mo)((e=>{let{theme:t,width:r,objectFit:n,height:i,borderRadius:a,marginLeft:s}=e;return{cursor:"pointer",height:i||"8.75rem",maxWidth:r,width:"100%",borderRadius:"50%",marginRight:"auto",marginLeft:null!==s&&void 0!==s?s:"auto","& img":{borderRadius:a||"12px",height:"100%",objectFit:n?"contained":"cover"}}})),l=(0,n.ZP)(s.Z)((e=>{let{theme:t}=e;return{color:t.palette.error.light,position:"absolute",borderRadius:"5px",top:"10px",right:"5
1px",padding:"6px",background:t.palette.neutral[100],border:"2px solid",borderColor:t.palette.error.back}})),d=(0,n.ZP)(i.Z)((e=>{let{theme:t,width:r}=e;return{width:r||"100%",position:"relative",height:"7.75rem"}})),c=(0,n.ZP)(i.Z)((e=>{let{theme:t,width:r,error:n,borderRadius:i}=e;return{width:r&&"100%",position:"relative",height:"8.125rem",border:"1px dashed ",borderRadius:i||"10px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",borderColor:n?"red":t.palette.neutral[400]}})),u=(0,n.ZP)(i.Z)((e=>{let{theme:t}=e;return{maxWidth:"14.375rem"}}))},8911:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(85893),i=r(2734),a=r(61730),s=r(73036),o=r(11163),l=r(45697),d=r.n(l),c=r(67294),u=r(9473),p=r(80967),h=r(21449),m=r(96427),x=r(33907),g=r(71827),f=r(47962),v=r(76638),j=r(77710),Z=r(83765),b=r(36111),y=r(40077),w=(r(32498),r(21987)),_=r(17965),P=r(57479),S=r(88699),F=r(51126),C=r(48373),z=r(93107),I=r(75722),L=r(80200),H=r(86501);const R={maxWidth:2e3,width:"100%",height:"100%",padding:"0px 1rem"},D=()=>{var e,t,r;const{wishLists:i}=(0,u.v9)((e=>e.wishList)),{cartList:a}=(0,u.v9)((e=>e.cart)),{selectedModule:s}=(0,u.v9)((e=>e.utilsData)),l=(null===i||void 0===i||null===(e=i.item)||void 0===e?void 0:e.length)+(null===i||void 0===i||null===(t=i.store)||void 0===t?void 0:t.length),[d,p]=(0,c.useState)(!1),[h,x]=(0,c.useState)(!1),g=(0,o.useRouter)(),D=g.pathname.replace("/","");return(0,n.jsx)(m.Xw,{children:(0,n.jsxs)(w.Z,{sx:{position:"fixed",bottom:0,left:0,right:0,padding:"5px",width:"100%",zIndex:1082,boxShadow:"0px -10px 10px -5px rgba(0, 0, 0, 0.2)"},elevation:3,children:[(0,n.jsx)(y.Z,{style:R,children:(0,n.jsxs)(_.Z,{showLabels:!0,value:D,onChange:(e,t)=>
1{"cart"!==t&&"wishlist"!==t&&("home"!==t?(0,L.L)()?g.push({pathname:"/profile",query:{page:t}},void 0,{shallow:!0}):"/"==t?g.push("/".concat(t)):H.Am.error((0,F.t)("Please login")):g.push("/".concat(t)))},children:[(0,n.jsx)(S.rj,{label:(0,F.t)("Home"),value:"/",icon:(0,n.jsx)(v.Z,{})}),(0,n.jsx)(S.rj,{label:(0,F.t)("My Orders"),value:"my-orders",icon:(0,n.jsx)(P.Z,{color:"error",children:(0,n.jsx)(f.Z,{})})}),"parcel"!==(null===s||void 0===s?void 0:s.module_type)&&(0,n.jsx)(S.rj,{onClick:()=>{p(!0)},label:(0,F.t)("Cart"),value:"cart",icon:(0,n.jsx)(P.Z,{badgeContent:null===(r=(0,z.l)(a))||void 0===r?void 0:r.length,color:"error",children:(0,n.jsx)(Z.Z,{})})}),(0,n.jsx)(S.rj,{label:(0,F.t)("Chat"),value:"inbox",icon:(0,n.jsx)(P.Z,{badgeContent:0,color:"error",children:(0,n.jsx)(j.Z,{})})}),!!d&&(0,n.jsx)(C.Z,{sideDrawerOpen:d,setSideDrawerOpen:p}),(0,n.jsx)(S.rj,{label:(0,F.t)("WishList"),value:"wishlist",onClick:()=>{(0,L.L)()?x(!0):H.Am.error((0,F.t)("Please login"))},icon:(0,n.jsx)(P.Z,{badgeContent:l,color:"error",children:(0,n.jsx)(b.Z,{})})})]})}),!!d&&(0,n.jsx)(C.Z,{sideDrawerOpen:d,setSideDrawerOpen:p,cartList:a}),!!h&&(0,n.jsx)(I.Z,{sideDrawerOpen:h,setSideDrawerOpen:x})]})})};var q=c.memo(D),E=r(51137);const k=e=>{let{children:t,configData:r}=e;const[l,d]=(0,c.useState)(!1),{data:f,refetch:v}=(0,p.Z)(),j=((0,i.Z)(),(0,a.Z)("(max-width:1180px)")),Z=(0,o.useRouter)(),{page:b}=Z.query,y=(0,u.I0)();if((0,c.useEffect)((()=>{"/home"===Z.pathname&&v()}),[]),f){var w;const e=null===(w=JSON.parse(localStorage.getItem("module")))||void 0===w?void 0:w.module_type;if(0===f.length)localStorage.removeItem("module"),Z.push("/",void 0,{shallow:!0});else if(!(null===f||void 0===f?void 0:f.find((t=>t.module_type===e)))){const e=f[0];localStorage.setItem("module",JSON.stringify(e)),y((0,h.$w)(e))}}const{landingPageData:_}=(0,u.v9)((e=>e.configData)),{data:P,refetch:S}=(0,s.Z)();return(0,c.useEffect)((()=>{_||S()}),[]),(0,n.jsxs)(E.U,{justifyContent:"space-between",children:[(0,n.jsx)("header",{children:(0,n.jsx)(g.Z,{configData:r})}),(0,n.jsx)(m.Xw,{mt:j?"3.5rem":"5.9rem",children:(0,n.jsx)(m.Xw,{sx:{minHeight:"70vh"},children:t})}),(0,n.jsx)("footer",{children:(0,n.jsx)(x.Z,{configData:r,landingPageData:null!==_&&void 0!==_?_:P})}),j&&"parcel"!==b&&(0,n.jsx)(q,{})]},l)};k.propTypes={children:d().node};var M=c.memo(k)},53397:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(85893),i=r(9008),a=r.n(i),s=r(11163),o=r(45697),l=r.n(o);r(67294),r(9473),r(51203);const d=e=>{let{configData:t}=e;var r;null===t||void 0===t||null===(r=t.base_urls)||void 0===r||r.business_logo_url;return(0,n.jsxs)(a(),{children:[(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:null===t||void 0===t?void 0:t.fav_icon_full_url}),(0,n.jsx)("link",{rel:"icon",href:null===t||void 0===t?void 0:t.fav_icon_full_url}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:null===t||void 0===t?void 0:t.fav_icon_full_url}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:null===t||void 0===t?void 0:t.fav_icon_full_url})]})};d.propTypes={};var c=d;const u=e=>{let{title:t,description:r,keywords:i,image:o,businessName:l,configData:d}=e;const u=(0,s.useRouter)(),{asPath:p}=u,h=l,m="".concat("we").concat(p);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{configData:d}),(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:t?"".concat(t).concat(h?" | ".concat(h):""):h||"Please wait till the loading completes"}),(0,n.jsx)("meta",{itemProp:"name",content:t}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{itemProp:"image",content:o}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:t||h}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{property:"og:url",content:m}),(0,n.jsx)("meta",{property:"og:site_name",content:h}),o&&(0,n.jsx)("meta",{property:"og:image",content:o}),(0,n.jsx)("meta",{name:"twitter:title",content:t||h}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),(0,n.jsx)("meta",{name:"twitter:url",content:m}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),o&&(0,n.jsx)("meta",{name:"twitter:image",content:o}),(0,n.jsx)("meta",{itemProp:"name",content:t||h}),(0,n.jsx)("meta",{itemProp:"description",content:r}),o&&(0,n.jsx)("meta",{itemProp:"image",content:o}),(0,n.jsx)("link",{rel:"canonical",href:m})]})]})};u.propTypes={title:l().string};var p=u},27929:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(67294),a=r(35205),s="/_next/static/media/gallery-add.4c04fcd1.png",o=r(26447),l=r(2908);var d=e=>{let{label:t,maxWidth:r,width:i,error:d,borderRadius:c}=e;return(0,n.jsxs)(a.oC,{width:i,error:d,borderRadius:c,children:[(0,n.jsx)(l.Z,{src:s,width:"36px",height:"36px",objectfit:"cover",borderRadius:"0px"}),(0,n.jsx)(o.Z,{fontSize:"12px",marginTop:"10px",children:t})]})};var c=e=>{let t,{anchor:r,file:i,label:s,width:o,imageUrl:c,borderRadius:u,error:p,objectFit:h,height:m,hintText:x,marginLeft:g}=e;return t="string"!==typeof i?{url:URL.createObjectURL(i)}:i,(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.JL,{children:t?(0,n.jsx)(a.Ec,{marginLeft:g,onClick:()=>r.current.click(),width:o,objectFit:h,borderRadius:u,height:m,children:"string"!==typeof i?(0,n.jsx)("img",{src:t.url,alt:"preview"}):(0,n.jsx)(l.Z,{src:t,width:"100%",height:"130px",objectfit:"cover",borderRadius:u})}):(0,n.jsx)(a.Ec,{marginLeft:g,onClick:()=>r.current.click(),width:o,height:m,objectFit:!0,borderRadius:u,children:(0,n.jsx)(d,{label:s,width:o,error:p,borderRadius:u})})})})};var u=e=>{let{file:t,type:r,labelText:a,hintText:s,imageOnChange:o,onChange:l,width:d,imageUrl:u,borderRadius:p,error:h,objectFit:m,height:x,marginLeft:g}=e;const f=(0,i.useRef)();
1return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{anchor:f,file:t,label:a,hintText:s,width:d,imageUrl:u,borderRadius:p,error:h,height:x,objectFit:m,marginLeft:g}),(0,n.jsx)("input",{ref:f,id:"file",name:"file",type:"file",accept:"image/*",hidden:!0,onChange:e=>{l(e)}})]})}},32509:function(e,t,r){"use strict";var n=r(85893),i=r(23972),a=r(45697),s=r.n(a),o=r(22120),l=r(38405);const d=e=>{const{text:t,textAlign:r,textTransform:a,fontWeight:s,...d}=e,{t:c}=(0,o.$G)();return(0,n.jsx)(i.Z,{textAlign:r||"center",fontWeight:s||"700",lineHeight:(0,l.R)()?"10px":"30px",sx:{fontSize:{xs:"15px",md:"22px"}},textTransform:a,...d,children:c(t)})};d.propTypes={text:s().string.isRequired},t.Z=d},76313:function(e,t,r){"use strict";var n=r(85893),i=r(23972),a=r(22120),s=r(71257),o=r(38405);const l=e=>{const{text:t,...r}=e,{t:l}=(0,a.$G)(),d=(0,s.C)();return(0,n.jsx)(i.Z,{variant:(0,o.R)()?"h8":"subtitle2",className:d.singleLineEllipsis,maxHeight:"20px",...r,children:l(t)})};l.propTypes={},t.Z=l},9008:function(e,t,r){e.exports=r(18158)}},function(e){e.O(0,[1255,1137,7409,9774,2888,179],(function(){return t=38884,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.