PageSourceSearch

https://www.alltap.co.uk/_next/static/chunks/pages/parcel-delivery-info-1e26f7ba6e267ae3.js

js alltap.co.uk collected 2026-10-01 14:29:53 UTC 30,860 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5109],{12538:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var n=t(37876);t(14232);var l=t(77328),o=t.n(l);let i=e=>{var r;let{configData:t}=e,l=null==t?void 0:t.fav_icon_full_url;return(!l&&(null==t?void 0:t.fav_icon)&&(null==t||null==(r=t.base_urls)?void 0:r.business_logo_url)&&(l="".concat(t.base_urls.business_logo_url,"/").concat(t.fav_icon)),l||(l="https://back-api.alltap.co.uk/storage/app/public/business/2025-09-20-68cf02d7c5952.png"),l)?(0,n.jsxs)(o(),{children:[(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:l}),(0,n.jsx)("link",{rel:"icon",href:l}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:l}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:l})]}):null}},13152:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},21970:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(37876),l=t(77328),o=t.n(l),i=t(95062),s=t.n(i),a=t(89099),d=t(12538);let c=e=>{let{title:r,description:t,keywords:l,image:i,businessName:s,configData:c}=e,{asPath:u}=(0,a.useRouter)(),h="".concat("we").concat(u);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{configData:c}),(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:r?"".concat(r," | ").concat(s):s}),(0,n.jsx)("meta",{itemProp:"name",content:r}),(0,n.jsx)("meta",{itemProp:"description",content:t}),(0,n.jsx)("meta",{itemProp:"image",content:i}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:r||s}),(0,n.jsx)("meta",{property:"og:description",content:t}),(0,n.jsx)("meta",{property:"og:url",content:h}),(0,n.jsx)("meta",{property:"og:site_name",content:s}),i&&(0,n.jsx)("meta",{property:"og:image",content:i}),(0,n.jsx)("meta",{name:"twitter:title",content:r||s}),(0,n.jsx)("meta",{name:"twitter:description",content:t}),(0,n.jsx)("meta",{name:"twitter:url",content:h}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),i&&(0,n.jsx)("meta",{name:"twitter:image",content:i}),(0,n.jsx)("meta",{itemProp:"name",content:r||s}),(0,n.jsx)("meta",{itemProp:"description",content:t}),i&&(0,n.jsx)("meta",{itemProp:"image",content:i}),(0,n.jsx)("link",{rel:"canonical",href:h})]})]})};c.propTypes={title:s().string};let u=c},22478:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"}),"PinDrop")},25991:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.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")},30469:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var n=t(37876),l=t(49794),o=t(95062),i=t.n(o),s=t(82),a=t(84278);let d=e=>{let{text:r,textAlign:t,textTransform:o,fontWeight:i,...d}=e,{t:c}=(0,s.Bd)();return(0,n.jsx)(l.A,{textAlign:t||"center",fontWeight:i||"700",lineHeight:(0,a.u)()?"10px":"30px",sx:{fontSize:{xs:"15px",md:"22px"}},textTransform:o,...d,children:c(r)})};d.propTypes={text:i().string.isRequired};let c=d},39265:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/parcel-delivery-info",function(){return t(95594)}])},45675:(e,r,t)=>{"use strict";t.d(r,{A:()=>g});var n=t(44501),l=t(40670),o=t(14232),i=t(69241),s=t(4697),a=t(54773),d=t(52196),c=t(47951),u=t(45879);
1function h(e){return(0,u.Ay)("MuiBottomNavigation",e)}(0,c.A)("MuiBottomNavigation",["root"]);var p=t(37876);let x=["children","className","component","onChange","showLabels","value"],m=e=>{let{classes:r}=e;return(0,s.A)({root:["root"]},h,r)},v=(0,a.Ay)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,r)=>r.root})(e=>{let{theme:r}=e;return{display:"flex",justifyContent:"center",height:56,backgroundColor:(r.vars||r).palette.background.paper}}),g=o.forwardRef(function(e,r){let t=(0,d.b)({props:e,name:"MuiBottomNavigation"}),{children:s,className:a,component:c="div",onChange:u,showLabels:h=!1,value:g}=t,j=(0,l.A)(t,x),f=(0,n.A)({},t,{component:c,showLabels:h}),A=m(f);return(0,p.jsx)(v,(0,n.A)({as:c,className:(0,i.A)(A.root,a),ref:r,ownerState:f},j,{children:o.Children.map(s,(e,r)=>{if(!o.isValidElement(e))return null;let t=void 0===e.props.value?r:e.props.value;return o.cloneElement(e,{selected:t===g,showLabel:void 0!==e.props.showLabel?e.props.showLabel:h,value:t,onChange:u})})}))})},50931:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},67512:(e,r,t)=>{"use strict";t.d(r,{A:()=>O});var n=t(37876),l=t(30566),o=t(6995),i=t(89099),s=t(95062),a=t.n(s),d=t(14232),c=t(74695),u=t(13731),h=t(65581),p=t(60746),x=t(58873),m=t(48614),v=t(25991),g=t(50931),j=t(80630),f=t(79675),A=t(46084),b=t(90233);t(16394);var S=t(2799),y=t(45675),w=t(19090),C=t(61535),P=t(35244),H=t(94653),_=t(72370),E=t(66129),F=t(91657),L=t(97685),k=t(78333),B=t(67578),I=t(30290),N=t(39883);let R={maxWidth:2e3,width:"100%",height:"100%",padding:"0px 1rem"},D=d.memo(()=>{var e,r,t,l,o,s;let{wishLists:a}=(0,c.d4)(e=>e.wishList),{cartList:u}=(0,c.d4)(e=>e.cart),{selectedModule:h}=(0,c.d4)(e=>e.utilsData),x=(null==a||null==(e=a.item)?void 0:e.length)+(null==a||null==(r=a.store)?void 0:r.length),m=(null==a||null==(t=a.providers)?void 0:t.length)+(null==a||null==(l=a.vehicles)?void 0:l.length),[D,V]=(0,d.useState)(!1),[z,M]=(0,d.useState)(!1),O=(0,i.useRouter)(),q=O.pathname.replace("/",""),T=()=>{V(!0)},W=()=>{(0,F.g)()?M(!0):L.oR.error((0,P.t)("Please login"))};return(0,n.jsx)(p.jB,{children:(0,n.jsxs)(S.A,{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)(b.A,{style:R,children:(0,n.jsxs)(y.A,{showLabels:!0,value:q,onChange:(e,r)=>{"cart"!==r&&"wishlist"!==r&&("home"!==r?(0,F.g)()?O.push({pathname:"/profile",query:{page:r}},void 0,{shallow:!0}):L.oR.error((0,P.t)("Please login")):O.push("/".concat(r)))},children:[(0,n.jsx)(C.vf,{label:(0,P.t)("Home"),value:"home",icon:(0,n.jsx)(g.A,{})}),(null==h?void 0:h.module_type)==="rental"?(0,n.jsx)(C.vf,{label:(0,P.t)("My Trips"),value:"my-trips",icon:(0,n.jsx)(w.A,{color:"error",children:(0,n.jsx)(N.A,{})})}):(0,n.jsx)(C.vf,{label:(0,P.t)("My Orders"),value:"my-orders",icon:(0,n.jsx)(w.A,{color:"error",children:(0,n.jsx)(v.A,{})})}),(null==h?void 0:h.module_type)!=="parcel"&&(null==h?void 0:h.module_type)!=="rental"&&(0,n.jsx)(C.vf,{onClick:()=>T(),label:(0,P.t)("Cart"),value:"cart",icon:(0,n.jsx)(w.A,{badgeContent:null==(o=(0,_.X)(u))?void 0:o.length,color:"error",children:(0,n.jsx)(f.A,{})})}),(null==h?void 0:h.module_type)==="rental"&&(0,n.jsx)(B.A,{sx:{marginTop:"2px",marginInlineStart:"4px"},children:(0,n.jsx)(k.X$,{color:e=>e.palette.neutral[1e3],label:(0,P.t)("Carts")})}),(0,n.jsx)(C.vf,{label:(0,P.t)("Chat"),value:"inbox",icon:(0,n.jsx)(w.A,{badgeContent:0,color:"error",children:(0,n.jsx)(j.A,{})})}),!!D&&(0,n.jsx)(H.A,{sideDrawerOpen:D,setSideDrawerOpen:V}),(0,n.jsx)(C.vf,{label:(0,P.t)("WishList"),value:"wishlist",onClick:()=>W(),icon:(0,n.jsx)(w.A,{badgeContent:(null==(s=(0,I.f)())?void 0:s.module_type)!=="rental"?x:m||0,color:"error",children:(0,n.jsx)(A.A,{})})})]})}),!!D&&(0,n.jsx)(H.A,{sideDrawerOpen:D,setSideDrawerOpen:V,cartList:u}),!!z&&(0,n.jsx)(E.A,{sideDrawerOpen:z,setSideDrawerOpen:M})]})})});var V=t(90428),z=t(57277);let M=e=>{let{children:r,configData:t}=e,[s,a]=(0,d.useState)(!1),{data:v,refetch:g}=(0,u.A)();(0,l.A)();let j=(0,o.A)("(max-width:1180px)"),f=(0,i.useRouter)(),{page:A}=f.query,b=(0,c.wA)();if((0,d.useEffect)(()=>{"/home"===f.pathname&&g()},[]),v){var S;let e=null==(S=JSON.parse(localStorage.getItem("module")))?void 0:S.module_type;if(0===v.length)localStorage.removeItem("module"),f.push("/",void 0,{shallow:!0});else if(!(null==v?void 0:v.find(r=>r.module_type===e))){let e=v[0];localStorage.setItem("module",JSON.stringify(e)),b((0,h.EQ)(e))}}let{landingPageData:y}=(0,c.d4)(e=>e.configData),{data:w,refetch:C}=(0,z.A)();return(0,d.useEffect)(()=>{y||C()},[]),(0,n.jsxs)(V.e,{justifyContent:"space-between",children:[(0,n.jsx)("header",{children:(0,n.jsx)(m.A,{configData:t})}),(0,n.jsx)(p.jB,{mt:j?"3.5rem":"5.9rem",children:(0,n.jsx)(p.jB,{sx:{minHeight:"70vh"},children:r})}),(0,n.jsx)("footer",{children:(0,n.jsx)(x.A,{configData:t,landingPageData:null!=y?y:w})}),j&&"parcel"!==A&&(0,n.jsx)(D,{})]},s)};M.propTypes={children:a().node};let O=d.memo(M)},73302:(e,r,t)=>{"use strict";t.d(r,{G:()=>a});var n=t(1992),l=t(42107),o=t(65904),i=t(70190);let s=async()=>{let{data:e}=await l.A.get(i.Ck);return e},a=e=>(0,n.useQuery)("getConfig",()=>s(),{enabled:!0,onError:o.P1,retry:1,cacheTime:400})},77328:(e,r,t)=>{e.exports=t(89836)},79675:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.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")},80630:(e,r,t)=>{"use strict";var n=t(29563);r.A=void 0;var l=n(t(31405)),o=t(37876);r.A=(0,l.default)((0,o.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")},95594:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>ed});var n=t(37876),l=t(14232),o=t(67512),i=t(64410),s=t(82179),a=t(39593),d=t(91657),c=t(35244),u=t(89099),h=t(66807),p=t(97685),x=t(74695),m=t(36405),v=t(60746),g=t(7905),j=t(30469),f=t(54538),A=t(49794),b=t(37235),S=t(99691),y=t(74202);let w=e=>{let{parcelCategories:r}=e;
1return(0,n.jsx)(v.jB,{children:(0,n.jsx)(f.A,{sx:{padding:"1.2rem "},children:(0,n.jsxs)(v.jB,{spacing:3,children:[(0,n.jsx)(s.A,{direction:"row",justifyCenter:"center",alignItems:"center",children:(0,n.jsx)(s.A,{justifyCenter:"center",alignItems:"center",flexGrow:"1",children:(0,n.jsx)(A.A,{variant:"h6",children:(0,c.t)("Parcel Info")})})}),(0,n.jsxs)(s.A,{width:"100%",justifyContent:"center",alignItems:"center",spacing:2,paddingTop:"20px",paddingBottom:{xs:"20px",sm:"40px",md:"50px"},children:[(0,n.jsx)(b.A,{src:null==r?void 0:r.image_full_url,height:"216px",width:"216px",smWidth:"172px",smHeight:"172px",objectfit:"contain"}),(0,n.jsxs)(s.A,{width:"100%",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(A.A,{variant:"h6",fontWeight:"500",children:null==r?void 0:r.name}),(0,n.jsx)(A.A,{children:null==r?void 0:r.description})]})]}),(0,n.jsx)(y.EI,{width:"100%",paddingBottom:"25px",children:(0,n.jsx)(S.mg,{fullwidth:"true",type:"submit",children:(0,c.t)("Proceed to Checkout")})})]})})})};var C=t(30566),P=t(47737),H=t(82),_=t(80626),E=t(22478),F=t(19023),L=t(60288),k=t(9738),B=t(32083),I=t(97886);let N=e=>{let{fromparcel:r,formattedAddress:t,currentLocationValue:o,handleLocation:i,testLocation:s,setCurrentLactionValue:a,toReceiver:d}=e,[c,u]=(0,l.useState)(void 0),[p,x]=(0,l.useState)(!1),[m,g]=(0,l.useState)(""),[j,f]=(0,l.useState)(!1),[A,b]=(0,l.useState)(!1),[S,y]=(0,l.useState)([]),[w,C]=(0,l.useState)(t),[P,H]=(0,l.useState)(!1),[_,E]=(0,l.useState)(!1),[N,R]=(0,l.useState)(""),[D,V]=(0,l.useState)(void 0),[z,M]=(0,l.useState)(!1),{coords:O,isGeolocationAvailable:q,isGeolocationEnabled:T,getPosition:W}=(0,h.L)({positionOptions:{enableHighAccuracy:!1},userDecisionTimeout:5e3,isGeolocationEnabled:!0}),{data:G,isLoading:X}=(0,F.A)(m,j);(0,l.useEffect)(()=>{if(G){var e;y(null==G||null==(e=G.suggestions)?void 0:e.map(e=>{var r,t,n,l,o,i,s;return{place_id:null==e||null==(r=e.placePrediction)?void 0:r.placeId,description:"".concat(null==e||null==(l=e.placePrediction)||null==(n=l.structuredFormat)||null==(t=n.mainText)?void 0:t.text,", ").concat(null==e||null==(s=e.placePrediction)||null==(i=s.structuredFormat)||null==(o=i.secondaryText)?void 0:o.text)}}))}},[G]);let{data:Y}=(0,L.A)(c,p);(0,l.useEffect)(()=>{if((null==Y?void 0:Y.results)&&P){var e;C(null==Y||null==(e=Y.results[0])?void 0:e.formatted_address)}},[Y,c]);let{data:Z}=(0,k.A)(c,_);(0,l.useEffect)(()=>{Z&&localStorage.setItem("zoneid",null==Z?void 0:Z.zone_id)},[Z]);let{isLoading:J,data:Q}=(0,B.A)(N,z);return(0,l.useEffect)(()=>{if(Q){var e,r;u({lat:null==Q||null==(e=Q.location)?void 0:e.latitude,lng:null==Q||null==(r=Q.location)?void 0:r.longitude})}},[Q]),(0,l.useEffect)(()=>{D&&C(D)},[D]),(0,l.useEffect)(()=>{i(c,w)},[c,w]),(0,n.jsx)(v.jB,{children:(0,n.jsx)(I.A,{showCurrentLocation:P,predictions:S,handleChange:(e,r)=>{r&&(R(null==r?void 0:r.place_id),V(null==r?void 0:r.description),E(!1),x(!0)),M(!0)},HandleChangeForSearch:e=>{g(e.target.value),e.target.value?(f(!0),x(!0),C(e.target.value)):(f(!1),C(void 0))},handleAgreeLocation:()=>{O&&(u({lat:null==O?void 0:O.latitude,lng:null==O?void 0:O.longitude}),b(!1),H(!0),x(!0),b(!0))},currentLocation:w,handleCloseLocation:()=>{b(!1),H(!1),x(!1),C(void 0),a({description:""})},frommap:"false",fromparcel:r,currentLocationValue:o,testLocation:s,toReceiver:d})})};var R=t(92177),D=t(30290),V=t(18847),z=t.n(V);let M=z()(()=>t.e(5162).then(t.bind(t,35162)),{loadableGenerated:{webpack:()=>[35162]}}),O=e=>{let{addAddressFormik:r,receiverNameHandler:t,receiverPhoneHandler:o,roadHandler:i,houseHandler:a,floorHandler:d,handleLocation:c,coords:u,receiverFormattedAddress:h,receiverEmailHandler:p,configData:x}=e,{t:m}=(0,H.Bd)(),g=(0,C.A)(),[j,b]=(0,l.useState)({}),[S,y]=(0,l.useState)(!1),[w,F]=(0,l.useState)(null),[L,k]=(0,l.useState)({description:null}),B=()=>y(!0);(0,l.useEffect)(()=>{h?(k({description:h}),F(h)):k({description:""})},[h]),(0,l.useEffect)(()=>{i((null==j?void 0:j.road)?null==j?void 0:j.road:r.values.road),d((null==j?void 0:j.floor)?null==j?void 0:j.floor:r.values.floor),a((null==j?void 0:j.house)?null==j?void 0:j.house:r.values.house)},[j]);let I=(0,D.Z)()?(0,D.Z)():"ltr";return(0,n.jsxs)(v.jB,{height:"100%",children:[(0,n.jsx)(f.A,{sx:{padding:"1.2rem",height:"100%"},children:(0,n.jsxs)(v.jB,{spacing:2,children:[(0,n.jsx)(s.A,{align:"center",children:(0,n.jsx)(A.A,{fontWeight:500,fontSize:"16px",children:m("Receiver Information")})}),(0,n.jsxs)(v.jB,{alignItems:"center",spacing:3,children:[(0,n.jsx)(v.jB,{alignItems:"center",children:(0,n.jsx)(_.A,{required:"true",type:"text",label:m("Receiver Name"),touched:r.touched.receiverName,errors:r.errors.receiverName,fieldProps:r.getFieldProps("receiverName"),onChangeHandler:t,value:r.values.receiverName})}),(0,n.jsx)(_.A,{required:!0,label:m("Email"),touched:r.touched.receiver
1Email,errors:r.errors.receiverEmail,fieldProps:r.getFieldProps("receiverEmail"),onChangeHandler:p,value:r.values.receiverEmail}),(0,n.jsx)(v.jB,{alignItems:"center",children:(0,n.jsx)(R.A,{value:r.values.receiverPhone,onHandleChange:o,initCountry:null==x?void 0:x.country,touched:r.touched.receiverPhone,errors:r.errors.receiverPhone,rtlChange:"true",lanDirection:I,height:"45px",borderRadius:"8px"})}),(0,n.jsxs)(v.jB,{pb:"4px",children:[(0,n.jsxs)(v.jB,{direction:"row",justifyContent:"space-between",alignItems:"center",pb:"5px",children:[(0,n.jsx)(A.A,{children:m("Delivery Address")}),(0,n.jsx)(P.A,{onClick:()=>B(),children:(0,n.jsxs)(s.A,{gap:"5px",alignItems:"center",justifyContent:"center",direction:"row",children:[(0,n.jsx)(A.A,{color:g.palette.primary.main,fontSize:"12px",children:m("Set from map")}),(0,n.jsx)(E.A,{sx:{width:"20px",height:"20px"},color:"primary"})]})})]}),(0,n.jsx)(N,{fromparcel:"true",handleLocation:c,formattedAddress:h,currentLocationValue:L,setCurrentLactionValue:k,testLocation:w,toReceiver:"true"})]}),(0,n.jsx)(v.jB,{children:(0,n.jsx)(_.A,{type:"text",label:m("Street number"),touched:r.touched.road,errors:r.errors.road,fieldProps:r.getFieldProps("road"),onChangeHandler:i,value:r.values.road})}),(0,n.jsxs)(v.jB,{direction:"row",spacing:1.3,children:[(0,n.jsx)(_.A,{type:"text",label:m("House no."),touched:r.touched.house,errors:r.errors.house,fieldProps:r.getFieldProps("house"),onChangeHandler:a,value:r.values.senderPhone}),(0,n.jsx)(_.A,{type:"text",label:m("Floor no."),touched:r.touched.floor,errors:r.errors.floor,fieldProps:r.getFieldProps("floor"),onChangeHandler:d,value:r.values.floor})]})]})]})}),S&&(0,n.jsx)(M,{open:S,handleClose:()=>{y(!1)},coords:u,toparcel:"1",handleLocation:c,fromReceiver:"1"})]})};var q=t(74441),T=t(50931),W=t(18710),G=t(90233);t(16394);var X=t(36573),Y=t(76776),Z=t(64276);let J=e=>{var r,t;let{handleSenderLocation:o,configData:i,setSenderFormattedAddress:a,setSenderLocation:d,setSenderOptionalAddress:c,setReceiverFormattedAddress:u,setReceiverLocation:h,sender:p,setReceiverOptionalAddress:m}=e,{t:g}=(0,H.Bd)(),j=(0,C.A)(),{profileInfo:f}=(0,x.d4)(e=>e.profileInfo),[b,S]=(0,l.useState)(null),{data:y,refetch:w,isRefetching:P,isLoading:_}=(0,W.A)(),{openAddressModal:E}=(0,x.d4)(e=>e.addressModel);(0,l.useEffect)(()=>{w()},[]);let F=e=>{let r={lat:null==e?void 0:e.latitude,lng:null==e?void 0:e.longitude};"true"===p?(d(r),a(e.address),c(e)):(h(r),u(e.address),m(e)),S(null==e?void 0:e.id)};return(0,n.jsxs)(v.jB,{spacing:2.5,children:[(0,n.jsxs)(s.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(A.A,{fontWeight:"bold",children:g("Saved Addresses")}),(0,n.jsx)(Z.A,{parcel:"true"}),E&&(0,n.jsx)(X.A,{refetch:w,t:g,configData:i,openAddressModal:E,profileInfo:f})]}),(0,n.jsxs)(G.A,{style:{maxHeight:130},children:[(null==y||null==(r=y.addresses)?void 0:r.length)>0&&(null==(t=y.addresses)?void 0:t.map((e,r)=>(0,n.jsxs)(s.A,{justifyContent:"flex-start",direction:"row",spacing:1,sx:{cursor:"pointer"},backgroundColor:e.id===b&&(0,q.X4)(j.palette.primary.main,.3),onClick:()=>F(e),padding:"1rem",children:[(0,n.jsx)(T.A,{sx:{width:"16.5px",height:"16.5px"},color:"primary"}),(0,n.jsxs)(s.A,{children:[(0,n.jsx)(A.A,{fontSize:{xs:"12px",md:"14px"},fontWeight:"600",textTransform:"capitalize",children:g(null==e?void 0:e.address_type)}),(0,n.jsx)(A.A,{fontSize:{xs:"12px",md:"14px"},children:null==e?void 0:e.address})]})]},e.id))),_&&(0,n.jsx)(Y.A,{width:"100%",height:120})]})]})},Q=z()(()=>t.e(5162).then(t.bind(t,35162)),{loadableGenerated:{webpack:()=>[35162]}}),$=e=>{let{addAddressFormik:r,senderNameHandler:t,senderPhoneHandler:o,handleLocation:i,coords:a,configData:c,senderFormattedAddress:u,setSenderFormattedAddress:h,setSenderLocation:p,senderRoadHandler:x,senderHouseHandler:m,senderFloorHandler:g,senderEmailHandler:j}=e,{t:b}=(0,H.Bd)(),[S,y]=(0,l.useState)(!1),[w,F]=(0,l.useState)({description:null}),[L,k]=(0,l.useState)({}),[B,I]=(0,l.useState)(null),V=(0,C.A)();(0,l.useEffect)(()=>{u?(F({description:u}),I(u)):F({description:""})},[u]),(0,l.useEffect)(()=>{x((null==L?void 0:L.road)?null==L?void 0:L.road:r.values.senderRoad),g((null==L?void 0:L.floor)?null==L?void 0:L.floor:r.values.senderFloor),m((null==L?void 0:L.house)?null==L?void 0:L.house:r.values.senderHouse)},[L]);let z=(0,D.Z)()?(0,D.Z)():"ltr";return(0,n.jsxs)(v.jB,{height:"100%",children:[(0,n.jsx)(f.A,{sx:{padding:"1.2rem",height:"100%"},children:(0,n.jsxs)(v.jB,{spacing:2,children:[(0,n.jsx)(s.A,{align:"center",width:"100%",children:(0,n.jsx)(A.A,{fontWeight:500,fontSize:"16px",children:b("Sender Information")})}),(0,n.jsxs)(v.jB,{alignItems:"center",spacing:3,children:[(0,n.jsx)(v.jB,{alignItems:"center",children:(0,n.jsx)(_.A,{required:"true",type:"text",label:b("Sender Name"),touched:r.touched.senderName,errors:r.errors.senderName,fieldProps:r.getFieldProps("senderName"),onChangeHandler:t,value:r.values.senderName})}),(0,n.jsx)(_.A,{required:!0,label:b("Email"),touched:r.touched.senderEmail,errors:r.errors.senderEmail,fieldProps:r.getFieldProps("senderEmail"),onChangeHandler:j,value:r.values.senderEmail}),(0,n.jsx)(v.jB,{alignItems:"center",children:(0,n.jsx)(R.A,{value:r.values.senderPhone,onHandleChange:o,initCountry:null==c?void 0:c.country,touched:r.touched.senderPhone,errors:r.errors.senderPhone,rtlChange:"true",lanDirection:z,height:"45px",borderRadius:"8px"})}
1),(0,n.jsxs)(v.jB,{children:[(0,n.jsxs)(v.jB,{direction:"row",justifyContent:"space-between",alignItems:"center",pb:"5px",children:[(0,n.jsx)(A.A,{children:b("Pickup Address")}),(0,n.jsx)(P.A,{onClick:()=>y(!0),children:(0,n.jsxs)(s.A,{gap:"5px",alignItems:"center",justifyContent:"center",direction:"row",children:[(0,n.jsx)(A.A,{color:V.palette.primary.main,fontSize:"12px",children:b("Set from map")}),(0,n.jsx)(E.A,{sx:{width:"20px",height:"20px"},color:"primary"})]})})]}),(0,n.jsx)(N,{handleLocation:i,sender:"true",fromparcel:"true",formattedAddress:u,currentLocationValue:w,testLocation:B,setCurrentLactionValue:F})]}),(0,n.jsx)(_.A,{type:"text",label:b("Street number"),touched:r.touched.road,errors:r.errors.road,fieldProps:r.getFieldProps("senderRoad"),onChangeHandler:x,value:r.values.road}),(0,n.jsxs)(v.jB,{direction:"row",spacing:1.3,children:[(0,n.jsx)(_.A,{type:"text",label:b("House no."),touched:r.touched.house,errors:r.errors.house,fieldProps:r.getFieldProps("senderHouse"),onChangeHandler:m,value:r.values.senderPhone}),(0,n.jsx)(_.A,{type:"text",label:b("Floor no."),touched:r.touched.floor,errors:r.errors.floor,fieldProps:r.getFieldProps("senderFloor"),onChangeHandler:g,value:r.values.floor})]}),(0,d.g)()&&(0,n.jsx)(v.jB,{children:(0,n.jsx)(f.A,{sx:{padding:".5rem"},elevation:9,children:(0,n.jsx)(J,{handleLocation:i,configData:c,setSenderFormattedAddress:h,setSenderLocation:p,setSenderOptionalAddress:k,sender:"true"})})})]})]})}),S&&(0,n.jsx)(Q,{open:S,handleClose:()=>{y(!1)},coords:a,setSenderFormattedAddress:h,setSenderLocation:p,handleLocation:i,toparcel:"1"})]})};var K=t(39091);let U=()=>K.Ik({senderName:K.Yj().required((0,c.t)("Sender name required")),senderEmail:!(0,d.g)()&&K.Yj().email((0,c.t)("Must be a valid email")).max(255).required((0,c.t)("Email is required")),senderPhone:K.Yj().required((0,c.t)("Sender phone required")).min(10,"Number must be 10 digits"),receiverName:K.Yj().required((0,c.t)("Receiver name required")),receiverPhone:K.Yj().required((0,c.t)("Receiver phone required")).min(10,"Number must be 10 digits")}),ee=z()(()=>Promise.resolve().then(t.bind(t,79185)),{loadableGenerated:{webpack:()=>[79185]}}),er=e=>{let{configData:r}=e,t=(0,u.useRouter)(),o=(0,x.wA)(),{parcelInfo:f}=(0,x.d4)(e=>e.parcelInfoData),{parcelCategories:A}=(0,x.d4)(e=>e.parcelCategories),{profileInfo:b}=(0,x.d4)(e=>e.profileInfo),[S,y]=(0,l.useState)(f?null==f?void 0:f.senderLocations:{}),[C,P]=(0,l.useState)(""),[H,_]=(0,l.useState)(f?null==f?void 0:f.receiverLocations:{}),[E,F]=(0,l.useState)(f?null==f?void 0:f.receiverAddress:""),[L,k]=(0,l.useState)(!1),[B,I]=(0,l.useState)(!1),N=(0,d.g)(),[R,D]=(0,l.useState)(!1),[V,z]=(0,l.useState)("sign-in"),{coords:M,isGeolocationAvailable:q,isGeolocationEnabled:T,getPosition:W}=(0,h.L)({positionOptions:{enableHighAccuracy:!1},userDecisionTimeout:5e3,isGeolocationEnabled:!0}),G=(0,a.Wx)({initialValues:{senderName:N?(null==b?void 0:b.f_name)?null==b?void 0:b.f_name:"":(null==f?void 0:f.senderName)?null==f?void 0:f.senderName:"",senderPhone:N?(null==b?void 0:b.phone)?null==b?void 0:b.phone:"":(null==f?void 0:f.senderPhone)?null==f?void 0:f.senderPhone:"",senderEmail:b?null==b?void 0:b.email:(null==f?void 0:f.senderEmail)?null==f?void 0:f.senderEmail:"",receiverName:(null==f?void 0:f.receiverName)?null==f?void 0:f.receiverName:"",receiverPhone:(null==f?void 0:f.receiverPhone)?null==f?void 0:f.receiverPhone:"",receiverEmail:(null==f?void 0:f.receiverEmail)?null==f?void 0:f.receiverEmail:"",senderRoad:(null==f?void 0:f.senderRoad)?null==f?void 0:f.senderRoad:"",senderHouse:(null==f?void 0:f.senderHouse)?null==f?void 0:f.senderHouse:"",senderFloor:(null==f?void 0:f.senderFloor)?null==f?void 0:f.senderFloor:"",road:(null==f?void 0:f.road)?null==f?void 0:f.road:"",house:(null==f?void 0:f.house)?null==f?void 0:f.house:"",floor:(null==f?void 0:f.floor)?null==f?void 0:f.floor:""},validationSchema:U(),onSubmit:async(e,r)=>{await X(e)}});(0,l.useEffect)(()=>{let e=JSON.parse(localStorage.getItem("currentLatLng")),r=localStorage.getItem("location");y(e),P(r)},[]),(0,l.useEffect)(()=>{G.setFieldValue("senderPhone",(null==b?void 0:b.phone)?null==b?void 0:b.phone:null==f?void 0:f.senderPhone)},[null==b?void 0:b.phone]);let X=e=>{let n={...e,senderLocations:S,senderAddress:C,receiverLocations:H,receiverAddress:E,name:null==A?void 0:A.name,image:null==A?void 0:A.image_full_url,description:null==A?void 0:A.description};S&&H?(o((0,m.aV)(n)),N||(null==r?void 0:r.guest_checkout_status)!==1?N?t.push({pathname:"/checkout",query:{page:"parcel"}},void 0,{shallow:!0}):D(!0):k(!0)):p.Ay.error((0,c.t)("Sender or Receiver location is missing"))};return(0,n.jsxs)(v.jB,{paddingBottom:{xs:"20px",sm:"20px",md:"80px"},pt:"1.5rem",children:[(0,n.jsx)(s.A,{paddingBottom:"30px",children:(0,n.jsx)(j.A,{text:"Parcel Delivery Information",textAlign:"left",fontWeight:"600",component:"h1"})}),(0,n.jsx)("form",{noValidate:!0,onSubmit:G.handleSubmit,children:(0,n.jsxs)(i.Ay,{container:!0,spacing:4,children:[(0,n.jsx)(i.Ay,{item:!0,xs:12,sm:12,md:4,children:(0,n.jsx)($,{addAddressFormik:G,senderNameHandler:e=>{G.setFieldValue("senderName",e)},senderPhoneHandler:e=>{G.setFieldValue("senderPhone",e)},coords:M,configData:r,senderFormattedAddress:C,handleLocation:(e,r)=>{y(e),P(r)},setSenderFormattedAddress:P,setSenderLocation:y,senderRoadHandler:e=>{G.setFieldValue("senderRoad",e)},senderHouseHandler:e=>{G.setFieldValue("senderHouse",e)},senderFloorHandler:e=>{G.setFieldValue("senderFloor",e)},senderEmailHandler:e=>{null==G||G.setFieldValue("senderEmail",e)}})}),(0,n.jsx)(i.Ay,{item:!0,xs:12,sm:12,md:4,children:(0,n.jsx)(O,{addAddressFormik:G,receiverNameHandler:e=>{G.setFieldValue("receiverName",e)},receiverPhoneHandler:e=>{G.setFieldValue("receiverPhone",e)},roadHandler:e=>{G.setFieldValue("road",e)},houseHandler:e=>{G.setFieldValue("house",e)},floorHandler:e=>{G.setFieldValue("floor",e)},coords:M,handleLocation:(e,r)=>{_(e),F(r)},receiverFormattedAddress:E,setReceiverLocation:_,setReceiverFormattedAddress:F,configData:r,receiver
1EmailHandler:e=>{null==G||G.setFieldValue("receiverEmail",e)}})}),(0,n.jsx)(i.Ay,{item:!0,xs:12,sm:12,md:4,children:(0,n.jsx)(w,{parcelCategories:A})})]})}),L&&(0,n.jsx)(g.A,{open:L,setOpen:k,setSideDrawerOpen:I,handleRoute:()=>{t.push("/checkout?page=parcel",void 0,{shallow:!0})},setModalFor:z,setOpenAuth:D}),(0,n.jsx)(ee,{modalFor:V,setModalFor:z,open:R,handleClose:()=>D(!1)})]})};var et=t(68050),en=t(52158),el=t(21970),eo=t(54500),ei=t(59719),es=t(73302),ea=t(61482);let ed=()=>{let e=(0,x.wA)(),{landingPageData:r,configData:t}=(0,x.d4)(e=>e.configData),{data:i,refetch:s}=(0,es.G)();return(0,l.useEffect)(()=>{t||s()},[t]),(0,l.useEffect)(()=>{i&&e((0,ea.ff)(i))},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(et.Ay,{}),(0,n.jsx)(el.A,{configData:t,title:t?"Parcel Deliver information":"Loading...",image:"".concat((0,ei.VG)({value:null==t?void 0:t.logo_storage},"business_logo_url",t),"/").concat(null==t?void 0:t.fav_icon),businessName:null==t?void 0:t.business_name}),(0,n.jsx)(o.A,{configData:t,landingPageData:r,children:(0,n.jsx)(en.A,{children:(0,n.jsx)(eo.A,{children:(0,n.jsx)(er,{configData:t})})})})]})}},97886:(e,r,t)=>{"use strict";t.d(r,{A:()=>g});var n=t(37876);t(14232);var l=t(55327),o=t(30566),i=t(6995),s=t(21460),a=t(2799),d=t(70946),c=t(7042),u=t(33188),h=t(35244),p=t(13152),x=t(82179),m=t(14379);let v=()=>{let e=(0,o.A)(),r=(0,i.A)(e.breakpoints.down("sm")),t=(0,m.A)("div")({position:"relative",textAlign:"center",width:"35px",height:"100%",marginLeft:"auto",marginRight:"auto"}),l=(0,m.A)("span")(e=>{let{theme:t}=e;return{display:"inline-block",width:r?"4px":"5px",height:r?"4px":"5px",borderRadius:"50%",marginRight:"3px",background:t.palette.primary.main,animation:"wave 1.3s linear infinite","&:nth-child(2)":{animationDelay:"-1.1s"},"&:nth-child(3)":{animationDelay:"-0.9s"},"@keyframes wave":{"0%, 60%, 100%":{transform:"initial"},"30%":{transform:"translateY(-15px)"}}}});return(0,n.jsxs)(t,{isXsmall:r,children:[(0,n.jsx)(l,{}),(0,n.jsx)(l,{}),(0,n.jsx)(l,{})]})},g=e=>{let{showCurrentLocation:r,predictions:t,handleChange:m,HandleChangeForSearch:g,handleAgreeLocation:j,currentLocation:f,handleCloseLocation:A,frommap:b,placesIsLoading:S,currentLocationValue:y,fromparcel:w,isLoading:C,noleftborder:P,testLocation:H,borderRadius:_,toReceiver:E,isLanding:F=!1,isRefetching:L,searchHeight:k}=e,B=(0,o.A)(),I=(0,i.A)(B.breakpoints.down("sm"));return(0,n.jsx)(n.Fragment,{children:r?(0,n.jsx)(l.ZP,{margin_top:"true",size:"small",variant:"outlined",id:"outlined-basic",placeholder:F?(0,h.t)("Search for food, groceries, halal, flowers..."):(0,h.t)("Search location here..."),value:H||f,onChange:e=>g(e),required:!0,isLanding:!0,isXSmall:!0,frommap:b,fromparcel:w,InputProps:{endAdornment:r?(0,n.jsx)(x.A,{mr:F?"50px":"0",children:C||L?(0,n.jsx)(v,{}):(0,n.jsx)(d.A,{sx:{padding:"5px",marginRight:"0px"},children:(0,n.jsx)(u.A,{sx:{cursor:"pointer",fontSize:I?"16px":"24px"},onClick:()=>A()})})}):(0,n.jsx)(d.A,{onClick:()=>j(),children:(0,n.jsx)(c.A,{color:"primary"})})}}):(0,n.jsx)(s.A,{fullWidth:!0,options:t,getOptionLabel:e=>e.description,onChange:(e,r)=>m(e,r),value:y,clearOnBlur:!1,loading:"true"===b?S:null,loadingText:"true"===b?(0,h.t)("Search suggestions are loading..."):"",sx:{"& .MuiOutlinedInput-root":{padding:k?"0px":"9px"}},PaperComponent:e=>(0,n.jsx)(a.A,{sx:{borderRadius:"0 0 4px 4px"},...e}),renderInput:e=>(0,n.jsx)(l.ZP,{searchHeight:k,noleftborder:P,frommap:b,fromparcel:w,id:"outlined-basic",...e,placeholder:F?(0,h.t)("Search for food, groceries, halal, flowers..."):(0,h.t)("Search location here..."),isLanding:!0,isXSmall:!0,onChange:e=>g(e),InputProps:{...e.InputProps,endAdornment:"true"===b?(0,n.jsx)(d.A,{sx:{mr:"-31px",borderRadius:_||"0px",padding:"7px 10px"},children:(0,n.jsx)(p.A,{})}):(null==y?void 0:y.description)?(0,n.jsx)(d.A,{sx:{mr:"-61px",padding:"5px"},children:(0,n.jsx)(u.A,{style:{cursor:"pointer",height:"20px"},onClick:()=>A()})}):(0,n.jsx)(n.Fragment,{children:"true"===E?null:(0,n.jsx)(d.A,{sx:{mr:"true"===w?"-61px":"-31px",padding:"5px",display:"true"!==w&&"none"},onClick:()=>j(),children:(0,n.jsx)(c.A,{color:"primary"})})})},required:!0})})})}}},e=>{var r=r=>e(e.s=r);e.O(0,[3716,9759,3347,7861,5131,9128,2450,5115,1970,4181,7182,6193,1292,1388,2285,1758,1505,6417,8227,746,8873,7136,636,6593,8792],()=>r(39265)),_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.