PageSourceSearch

https://goso.ma/_next/static/chunks/7931-bf3a2e0e7001f50d.js

js goso.ma collected 2026-09-24 15:08:04 UTC 12,641 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7931],{1383:(e,t,n)=>{n.d(t,{EI:()=>S,Ky:()=>f,NV:()=>y,Pd:()=>b,Zs:()=>g,dR:()=>A,nY:()=>v,q$:()=>h,t1:()=>m,vU:()=>_});var l=n(35268),i=n(35003),r=n(38388),a=n(84812),o=n(41316),d=n(60595),p=n(58582),c=n(42224),u=n(22533),x=n(67282),s=n(79303);(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{textAlign:"center",color:t.palette.neutral[500],fontSize:"16px",fontWeight:"700",paddingBottom:"20px"}});let g=(0,l.Ay)(i.A)(e=>{let{theme:t,parcel:n}=e;return{textAlign:"true"===n?"center":"left",fontSize:"16px",fontWeight:"500",color:"".concat("dark"===t.palette.mode?"#fff":"#414141"),[t.breakpoints.down("md")]:{fontSize:"14px"}}});(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"16px",fontWeight:"700",color:"".concat("dark"===t.palette.mode?"#fff":"#414141"),paddingTop:"30px",paddingBottom:"20px",[t.breakpoints.up("xs")]:{textAlign:"center"},[t.breakpoints.up("md")]:{textAlign:"inherit"}}}),(0,l.Ay)(r.A)(()=>({padding:"1rem",textAlign:"center"})),(0,l.Ay)(a.A)(()=>({color:"#EF7822",fontSize:"14px",fontWeight:"700",background:"rgba(239, 120, 34, 0.1)",borderRadious:"5px"})),(0,l.Ay)(o.Ay)(()=>({boxShadow:" 0px 0px 10px rgba(0, 0, 0, 0.05)",borderRadius:"5px 5px 0px 0px",padding:"25px"})),(0,l.Ay)(d.A)(()=>({padding:"30px"})),(0,l.Ay)(p.A)(()=>({padding:"30px"})),(0,l.Ay)(o.Ay)(()=>({padding:"10px"})),(0,l.Ay)(c.A)(e=>{let{theme:t}=e;return{borderRadius:"10px","&.MuiAutocomplete-option":{backgroundColor:t.palette.primary.main,height:"100%"},".MuiAutocomplete-paper":{zIndex:99999,height:"100%"}}}),(0,l.Ay)(o.Ay)(()=>({boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.05)",borderRadius:"5px 5px 0px 0px",padding:"25px",alignItems:"center",marginTop:"20px"}));let m=(0,l.Ay)(i.A)(e=>{let{theme:t,textAlign:n}=e;return{color:t.palette.neutral[1e3],fontWeight:"700",fontSize:"16px",textAlign:n||"center",[t.breakpoints.up("xs")]:{textAlign:n||"center"},[t.breakpoints.up("md")]:{textAlign:n||"center"}}});(0,l.Ay)(x.A)(e=>{let{theme:t}=e;return{width:"100%",height:"100%",borderRadius:"5px"}}),(0,l.Ay)(p.A)(()=>({border:"1px solid rgba(251, 222, 201)"})),(0,l.Ay)(o.Ay)(e=>{let{theme:t}=e;return{boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.05)",borderRadius:"5px 5px 0px 0px",padding:"25px",margin:"20px 0",color:"".concat("dark"===t.palette.mode?"#fff":"#000"),[t.breakpoints.up("xs")]:{textAlign:"center"},[t.breakpoints.up("md")]:{textAlign:"inherit"}}}),(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{textAlign:"center",fontSize:"16px",fontWeight:"700",color:"".concat("dark"===t.palette.mode?"#fff":"#414141"),paddingBottom:"16px"}}),(0,l.Ay)(o.Ay)(()=>({display:"flex",justifyContent:"space-between"})),(0,l.Ay)(a.A)(e=>{let{selected:t,theme:n}=e;return{background:t?"rgba(45, 200, 88, 0.1)":"",height:"60px",borderRadius:"10px",gap:"5px",color:"".concat("dark"===n.palette.mode?"#fff":"#000")}}),(0,l.Ay)(i.A)(()=>({color:"#9B9B9B",textAlign:"center",fontSize:"16px",paddingTop:"15px",paddingBottom:"20px"}));let A=(0,l.Ay)(s.A)(e=>{let{theme:t,background:n,padding:l,border:i,boxshadow:r}=e;return{borderRadius:"50%",padding:l,border:i||"2px solid ".concat(t.palette.primary.main),background:n,boxShadow:r&&r}});(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{color:"".concat("dark"===t.palette.mode?"#fff":"#414141"),fontSize:"18px",fontWeight:"700",paddingBottom:"25px",textTransform:"capitalize",marginLeft:"auto",marginRight:"auto"}});let f=(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"12px",fontWeight:"500",color:"".concat("dark"===t.palette.mode?t.palette.whiteContainer.main:t.palette.footer.appDownloadButtonBgGray),textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"199px"}}),v=(0,l.Ay)(i.A)(e=>{let{theme:t,orderdetailscolor:n}=e;return{fontSize:"true"===n?"14px":"12px",color:"true"===n?t.palette.neutral[1e3]:t.palette.neutral[500]}}),y=(0,l.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"16px",fontWeight:"600"}}),h=(0,l.Ay)(o.Ay)(()=>({fontSize:"14px"})),b=(0,l.Ay)(o.Ay)(()=>({color:"#EF7822",fontSize:"16px",fontWeight:"600",padding:"0px"})),_=(0,l.Ay)(a.A)(e=>{let{theme:t,minWidth:n,padding:l}=e;return{backgroundColor:(0,u.X4)(t.palette.primary.main,.1),color:t.palette.primary.main,minWidth:n,border:"1px solid ".concat(t.palette.primary.main),borderRadius:"50%",textAlign:"center",fontWeight:"600",padding:l}}),S=(0,l.Ay)(s.A)(e=>{let{theme:t}=e;return{[t.breakpoints.down("sm")]:{width:"100%"}}})},29978:(e,t,n)=>{n.d(t,{k:()=>i});var l=n(60398);let i={placeApiAutocomplete:e=>{if(e&&""!==e)return l.A.get("/api/v1/config/place-api-autocomplete?search_text=".concat(e))},placeApiDetails:e=>
1l.A.get("/api/v1/config/place-api-details?placeid=".concat(e)),getZoneId:e=>l.A.get("/api/v1/config/get-zone-id?lat=".concat(e.lat,"&lng=").concat(e.lng)),distanceApi:(e,t)=>{if(!e||!t)throw Error("Origin and destination must be provided");return l.A.get("/api/v1/config/distance-api?origin_lat=".concat(e.latitude,"&origin_lng=").concat(e.longitude,"&destination_lat=").concat(t.lat?t.lat:null==t?void 0:t.latitude,"&destination_lng=").concat(t.lng?t.lng:null==t?void 0:t.longitude,"&mode=WALK"))},geoCodeApi:e=>l.A.get("/api/v1/config/geocode-api?lat=".concat(e.lat,"&lng=").concat(e.lng))}},46274:(e,t,n)=>{n.d(t,{Dl:()=>d,Ox:()=>u,f:()=>x,qA:()=>c,zM:()=>p});var l=n(35268),i=n(38388),r=n(92705),a=n(22533),o=n(79303);let d=(0,l.Ay)(i.A)(e=>{let{theme:t,authortype:n,usertype:l,language_direction:i}=e;return{display:"flex",flexDirection:n===l?"row-reverse":"row",alignItems:"center",gap:"10px",width:"100%",maxWidth:"450px",marginLeft:n===l?"rtl"===i?0:"auto":0,marginBottom:"1rem",marginRight:n===l&&"rtl"===i?"auto":0}}),p=(0,l.Ay)(r.A)(e=>{let{theme:t,authortype:n,usertype:l}=e;return{height:32,marginLeft:2*(n===l),marginRight:2*(n!==l),width:32}}),c=(0,l.Ay)(i.A)(e=>{let{theme:t,authortype:n,usertype:l}=e;return{flexGrow:1,maxWidth:"500 !important",display:"flex",flexDirection:"column",alignItems:n===l?"flex-end":"flex-start",width:"100%"}}),u=(0,l.Ay)(o.A)(e=>{let{theme:t,authortype:n,usertype:l}=e;return{backgroundColor:n===l?t.palette.primary.main:(0,a.X4)(t.palette.primary.main,.2),color:n===l?t.palette.primary.contrastText:"text.primary",padding:"8px 20px",borderRadius:n===l?"25px 25px 0px 25px":"25px 25px 25px 0px"}}),x=(0,l.Ay)(i.A)(e=>{let{theme:t,authortype:n,usertype:l}=e;return{display:"flex",justifyContent:n===l?"flex-end":"flex-start",marginTop:1,paddingTop:2}})},47931:(e,t,n)=>{n.d(t,{A:()=>D});var l=n(37876),i=n(14232);n(89099),n(19608);var r=n(28343),a=n(35268),o=n(62148),d=n(95955),p=n(89925),c=n(22533),u=n(85495),x=n(38595),s=n(3218),g=n(35003);n(89886),n(75644),n(74695);var m=n(85097),A=n(82),f=(n(60795),n(52904)),v=n(48230);n(10249),n(1992),n(29978),n(77165),n(16226);n(46274),n(75599),n(68628),n(90233),n(62415),n(38390);var y=n(21398);n(97914);let h={src:"/_next/static/media/order-confirmed.5101de51.png"},b={src:"/_next/static/media/shhiped.1280b948.png"},_={src:"/_next/static/media/out-for-delivery.5778f777.png"},S={src:"/_next/static/media/delivery.a125dcaf.png"};var w=n(1383),k=n(33865),j=n(79303),I=n(66807),z=n(18847);let C=n.n(z)()(()=>Promise.all([n.e(9759),n.e(1511),n.e(3428)]).then(n.bind(n,93892)),{loadableGenerated:{webpack:()=>[93892]},ssr:!1}),L=e=>{var t,n,r,a,o;let{trackOrderData:d,userLocation:p,getCurrentLocation:c}=e,[u,x]=i.useState({lat:0,lng:0});return(0,i.useEffect)(()=>{(null==d?void 0:d.delivery_man)&&x({lat:d.delivery_man.lat,lng:d.delivery_man.lng})},[null==d||null==(t=d.delivery_man)?void 0:t.lat]),(0,l.jsx)(j.A,{paddingInline:{xs:"0px",md:"25px"},position:"relative",width:"100%",children:(0,l.jsx)(C,{latitude:p.lat,longitude:null==p?void 0:p.lng,deliveryManLat:(null==d?void 0:d.delivery_man)!==null?null==u?void 0:u.lat:(null==d?void 0:d.module_type)==="parcel"?null==d||null==(n=d.receiver_details)?void 0:n.latitude:null==d||null==(r=d.store)?void 0:r.latitude,deliveryManLng:(null==d?void 0:d.delivery_man)!==null?null==u?void 0:u.lng:(null==d?void 0:d.module_type)==="parcel"?null==d||null==(a=d.receiver_details)?void 0:a.longitude:null==d||null==(o=d.store)?void 0:o.longitude,isStore:(null==d?void 0:d.order_status)!=="picked_up"&&(null==d?void 0:d.order_status)!=="handover",store:null==d?void 0:d.store,deliveryMan:null==d?void 0:d.delivery_man,receiver:null==d?void 0:d.delivery_address})})},M=(0,a.Ay)(o.A)(e=>{let{theme:t}=e;return{"& .MuiStepLabel-label.MuiStepLabel-alternativeLabel":{marginTop:"-80px"},"& .MuiStepLabel-label.Mui-completed":{color:t.palette.primary.main}}}),R=(0,a.Ay)(d.A)(e=>{let{theme:t,isMobile:n}=e;return{["&.".concat(p.A.alternativeLabel)]:{top:10,left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},["&.".concat(p.A.active)]:{["& .".concat(p.A.line)]:{borderColor:t.palette.primary.main}},["&.".concat(p.A.completed)]:{["& .".concat(p.A.line)]:{borderColor:t.palette.primary.main}},["& .".concat(p.A.line)]:{borderColor:t.palette.neutral[400],borderTopWidth:2,borderRadius:1,borderLeftWidth:"true"===n&&3,marginTop:"true"===n&&"-41px",marginBottom:"true"===n&&"-41px",minHeight:"true"===n&&"100px"}}}),W=(0,a.Ay)("div")(e=>{let{theme:t,ownerState:n}=e;return{color:t.palette.primary.main,display:"flex",height:22,alignItems:"center",...n.active&&{color:t.palette.primary.main},"& .QontoStepIcon-completedIcon":{color:t.palette.neutral[100],zIndex:1,fontSize:0,padding:"7px"}}});function B(e){let{active:t,completed:n,className:i}=e,r=(0,y.u)();return(0,l.jsx)(W,{ownerState:{active:t},className:i,children:n?(0,l.jsx)(w.dR,{background:r.palette.primary.main,padding:"5px",border:"3px solid ".concat(r.palette.neutral[100]),boxshadow:"0px 4px 10px ".concat((0,c.X4)(r.palette.neutral[400],.3)),children:(0,l.jsx)(k.A,{className:"QontoStepIcon-completedIcon"})}):(0,l.jsx)(w.dR,{background:r.palette.neutral[400],padding:"10px",border:"3px solid ".concat(r.palette.neutral[100]),boxshadow:"0px 4px 10px ".concat((0,c.X4)(r.palette.neutral[400],.3)),children:(0,l.jsx)("div",{className:"QontoStepIcon-circle"})})})}let T=e=>{var t,n;let{configData:a,trackOrderData:d}=e,[p,c]=(0,i.useState)({}),{t:v}=(0,A.Bd)(),[w,k]=(0,i.useState)(1),z=(0,y.u)(),C=(0,u.A)(z.breakpoints.down("md"));JSON.parse(window.localStorage.getItem("currentLatLng")),(0,i.useEffect)(()=>{var e,t;
1c({lat:null==d||null==(e=d.delivery_address)?void 0:e.latitude,lng:null==d||null==(t=d.delivery_address)?void 0:t.longitude})},[]);let W=[{label:"Order Confirmed",time:null==d?void 0:d.confirmed,img:h.src},{label:"Preparing ".concat((null==d||null==(t=d.module)?void 0:t.module_type)==="food"?"foods":"items"),time:null==d?void 0:d.processing,img:b.src},{label:" ".concat((null==d||null==(n=d.module)?void 0:n.module_type)==="food"?"Foods":"Items"," is on the way"),time:null==d?void 0:d.picked_up,img:_.src},{label:"Delivered",time:null==d?void 0:d.delivered,img:S.src}];(0,i.useEffect)(()=>{(null==d?void 0:d.order_status)==="pending"?k(1):(null==d?void 0:d.order_status)==="confirmed"?k(2):(null==d?void 0:d.order_status)==="processing"||(null==d?void 0:d.order_status)==="handover"?k(3):(null==d?void 0:d.order_status)==="picked_up"?k(4):((null==d?void 0:d.order_status)==="delivered"||(null==d?void 0:d.order_status)==="returned")&&k(5)},[w,d]);let{coords:T,isGeolocationAvailable:D,isGeolocationEnabled:E,getPosition:N}=(0,I.L)({positionOptions:{enableHighAccuracy:!1},userDecisionTimeout:5e3,isGeolocationEnabled:!0});return(0,l.jsxs)(r.jB,{mt:{xs:"20px",md:"70px"},minHeight:"30vh",alignItems:C?"center":"initial",spacing:4,children:[C?(0,l.jsx)(o.A,{activeStep:w,orientation:"vertical",connector:(0,l.jsx)(R,{isMobile:"true"}),children:W.map((e,t)=>(0,l.jsx)(x.A,{children:(0,l.jsx)(s.A,{StepIconComponent:B,children:(0,l.jsxs)(j.A,{justifyContent:"center",alignItems:"center",gap:{xs:"5px",md:"10px"},marginBottom:"25px",children:[(0,l.jsx)(f.A,{src:e.img,width:"29px",height:"29px",alt:e.label}),v(null==e?void 0:e.label),(null==e?void 0:e.time)&&(0,l.jsx)(g.A,{mt:"10px",variant:"body2",textAlign:"center",children:(0,m.A)(null==e?void 0:e.time).format("ddd, Do MMM")})]})})},e.label))}):(0,l.jsx)(M,{activeStep:w,alternativeLabel:!0,connector:(0,l.jsx)(R,{}),children:W.map((e,t)=>(0,l.jsxs)(x.A,{children:[(0,l.jsx)(s.A,{StepIconComponent:B,children:(0,l.jsxs)(j.A,{justifyContent:"center",alignItems:"center",gap:{xs:"5px",md:"10px"},children:[(0,l.jsx)(f.A,{src:e.img,width:"29px",height:"29px",alt:e.label}),v(null==e?void 0:e.label)]})}),(null==e?void 0:e.time)&&(0,l.jsx)(g.A,{mt:"10px",variant:"body2",textAlign:"center",children:(0,m.A)(null==e?void 0:e.time).format("ddd, Do MMM")})]},e))}),(0,l.jsx)(L,{getCurrentLocation:()=>{c({lat:T.latitude,lng:T.longitude})},trackOrderData:d,userLocation:p})]})};T.propTypes={};let D=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.