Files
Express_console_build/build/static/js/54.1e40d7c3.chunk.js
2026-05-25 16:32:21 +05:30

1 line
33 KiB
JavaScript

(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[54],{39009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se});var a=n(89379),i=n(9950),o=n(52351),s=n(14857),l=n(50027),r=n(26910),c=n(7762),d=n(90421),u=n(94118),p=n(27379),m=n(60767),h=n(13838),g=n(87942),x=n(30633),A=n(81831),f=n(95359),v=n(4159),j=n.n(v),y=n(8881),S=n(28429),w=n(50847),Y=n.n(w),k=n(55271),C=n(55158),b=n(60899),M=n(93230),D=n(82053),T=n(77922),P=n(29925),E=n(2046),W=n(16491),L=n(82223),z=n(25979),R=n(29277),H=n(58567),I=n(16497),F=n(85815),J=n(1320),N=n(2235),O=n(15769),U=n(69780),q=n(9213),V=n(21671),B=n(34075),G=n(46639),K=n(96583),Z=n(40033),Q=n(2660),X=n(25333),_=n(74745),$=n(28170),ee=n(96557),te=n(93038),ne=n(79739),ae=n(94826),ie=n(44414),oe=n(36220);j().extend(oe);const se=()=>{var e;const t=(0,S.Zp)(),n=(0,s.A)(),v=(0,i.useRef)(null),w=(0,i.useRef)(null),oe=localStorage.getItem("userid"),[se,le]=(0,i.useState)([]),[re,ce]=(0,i.useState)([]),[de,ue]=(0,i.useState)(!1),[pe,me]=(0,i.useState)(!1),[he,ge]=(0,i.useState)(0),[xe,Ae]=(0,i.useState)([]),[fe,ve]=(0,i.useState)(0),[je,ye]=(0,i.useState)(0),[Se,we]=(0,i.useState)(0),[Ye,ke]=(0,i.useState)(0),[Ce,be]=(0,i.useState)(0),[Me,De]=(0,i.useState)(null),[Te,Pe]=(0,i.useState)([]),[Ee,We]=(0,i.useState)(!1),[Le,ze]=(0,i.useState)(""),[Re,He]=(0,i.useState)([]),[Ie,Fe]=(0,i.useState)([]),[Je,Ne]=(0,i.useState)(j()().format("MM-DD-YYYY")),[Oe,Ue]=(0,i.useState)(""),[qe,Ve]=(0,i.useState)(""),[Be,Ge]=(0,i.useState)(""),[Ke,Ze]=(0,i.useState)(),[Qe,Xe]=(0,i.useState)(0),[_e,$e]=(0,i.useState)(0),[et,tt]=(0,i.useState)(0),[nt,at]=(0,i.useState)(0),[it,ot]=(0,i.useState)([]),[st,lt]=(0,i.useState)(null),[rt,ct]=(0,i.useState)(null),[dt,ut]=(0,i.useState)(null),[pt,mt]=(0,i.useState)(null),[ht,gt]=(0,i.useState)(null);(0,i.useEffect)((()=>{ve(0),ct(null),ye(0),ut(null)}),[he]),(0,i.useEffect)((()=>{ye(0),ut(null)}),[fe]),(0,i.useEffect)((()=>{if(Ie[0]){let e=[];Ie.map((t=>{j()().diff(j()("".concat(j()(Je).format("MM-DD-YYYY")," ").concat(j()(t).format("HH:mm:ss"))),"m")<=0&&e.push(t)}))}}),[Ie]);const xt=(e,t,n)=>{(0,y.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:n||1500}),console.log(qe)};let At={};const ft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;const a="".concat(t,"-").concat(e);At[a]||(xt(e,t,n),At[a]=!0,setTimeout((()=>delete At[a]),3e3))};(0,i.useEffect)((()=>{(async()=>{ue(!0);try{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(oe));console.log("fetchAppLocations",e.data.details),le(e.data.details)}catch(e){console.log("locationRes",e),ft(e.message,"error",5e3)}finally{ue(!1)}})()}),[]);(0,i.useEffect)((()=>{he&&(async()=>{ue(!0),await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(he,"&status=active")).then((e=>{if(console.log(e),e.data.status){let t=[];e.data.details.map((e=>{t.push((0,a.A)((0,a.A)({},e),{},{label:"".concat(e.tenantname)}))})),ce(t)}ue(!1)})).catch((e=>{console.log(e),ue(!1)}))})()}),[he]);(0,i.useEffect)((()=>{fe&&(async()=>{try{let e=""==Le?"".concat("https://jupiter.nearle.app/live/api/v1","/customers/gettenantcustomers/?tenantid=").concat(fe,"&pageno=1&pagesize=30"):"".concat("https://jupiter.nearle.app/live/api/v1","/customers/search/?tenantid=").concat(fe,"&keyword=").concat(Le);await r.A.get(e).then((e=>{if(e.data.status){console.log("clientdetails",e.data.details),He(e.data.details);let t=[];e.data.details.map((e=>{t.push((0,a.A)({label:"".concat(e.firstname," | ").concat(e.contactno)},e))}))}})).catch((e=>{console.log(e),xt("server error","warning")}))}catch(e){console.log(e)}})()}),[Le.length>3,""==Le,fe]);(0,i.useEffect)((()=>{(()=>{let e=0,t=0,n=0,a=0;Te.map((i=>{e+=i.distance,t+=i.totalcharge,n+=i.quantity,a+=i.collectionamt})),Xe(e),$e(t),tt(n),at(a)})()}),[Te]);const vt=async e=>{console.log("customer",e),ue(!0);try{Pe((t=>t.some((t=>t.firstname===e.firstname))?t.filter((t=>t.firstname!==e.firstname)):t));if(!Te.some((t=>t.firstname===e.firstname))){const t=await jt(e),{roundedDistance:n,totalcharge:i}=t,o=(0,a.A)((0,a.A)({},e),{},{distance:n,totalcharge:i});Pe((e=>[...e,o])),console.log("Rounded Distance: ".concat(n," km"))}}catch(t){console.error("Failed to calculate distance:",t)}finally{ue(!1)}},jt=async e=>{const t=new google.maps.DistanceMatrixService;try{var n,a,i,o;if(!e||"object"!==typeof e)throw new Error("Invalid customer data: expected an object.");if(!Me||"object"!==typeof Me)throw new Error("Origin (pickCust) data missing or invalid.");const r=await(s=Me,l=e,new Promise(((e,n)=>{try{if(!s||!l)return n(new Error("Origin or destination data missing."));t.getDistanceMatrix({origins:[new google.maps.LatLng(s.latitude,s.longitude)],destinations:[new google.maps.LatLng(l.latitude,l.longitude)],travelMode:"DRIVING",unitSystem:google.maps.UnitSystem.METRIC},((t,a)=>{"OK"===a?e(t):n(new Error("Google API error: ".concat(a)))}))}catch(a){n(new Error("Unexpected error inside DistanceMatrixService: ".concat(a.message)))}})));if(null===(n=r.rows)||void 0===n||null===(a=n[0])||void 0===a||null===(i=a.elements)||void 0===i||!i[0]||null===(o=r.rows[0].elements[0].distance)||void 0===o||!o.value)throw new Error("Malformed Distance Matrix response: missing distance value.");const c=r.rows[0].elements[0].distance.value/1e3,d=Math.round(c);let u;return u=d<Ce?Se:(d-Ce)*Ye+Se,{roundedDistance:d,totalcharge:u}}catch(r){throw console.log("on calculateDistance",r.message),r.message.includes("Google API")?(console.log("\ud83d\udea8 Google Maps API Error:",r.message),ft("Invalid file format, upload valid file","error",5e3)):r.message.includes("Invalid coordinates")?(console.log("\ud83d\udccd Invalid coordinate format:",r.message,3e3),ft("Invalid coordinate format. Check location data.","warning")):r.message.includes("Malformed Distance Matrix")?(console.log("\u26a0\ufe0f Unexpected Google response structure:",r.message),ft("Google Distance Matrix returned invalid data.","error",3e3)):r.message.includes("Origin")||r.message.includes("customer")?(console.log("\u274c Missing or invalid input data:",r.message),ft("Missing or invalid input data for distance calculation.","warning",3e3)):(console.log("\ud83d\udca5 Unexpected error calculating distance:",r),ft("Unexpected error during distance calculation.","error",3e3)),r}var s,l};(0,i.useEffect)((()=>{he&&(async()=>{await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocations/?applocationid=").concat(he)).then((e=>{console.log("fetchTiming",e);const{opentime:t,closetime:n}=e.data.details[0];if(e.data.status){console.log("starttime","".concat(j()().format("MM-DD-YYYY")," ").concat(t)),console.log("endtime","".concat(j()().format("MM-DD-YYYY")," ").concat(n," "));let e=[];for(let a="".concat(j()().format("MM-DD-YYYY")," ").concat(t);j()("".concat(j()().format("MM-DD-YYYY")," ").concat(n," ")).diff(a,"m")>=0;a=j()(a).add(30,"m"))e.push(a);console.log("setTimeslotarr",e),Fe(e)}ue(!1)})).catch((e=>{console.log(e),ue(!1)}))})()}),[he]);(0,i.useEffect)((()=>{he&&(async()=>{ue(!0),await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocationconfig/?applocationid=").concat(he)).then((e=>{const t=e.data.details.applocationadmins.map((e=>e.userfcmtokem));console.log("fetchAppAdminTokens",e),console.log("userfcmtokemArray",t),e.data.status&&Ze(t),ue(!1)})).catch((e=>{console.log(e),ue(!1)}))})()}),[he]),(0,i.useEffect)((()=>{console.log("pickCust",Me)}),[Me]),(0,i.useEffect)((()=>{console.log("dropCust",Te)}),[Te]);(0,i.useEffect)((()=>{fe&&(async()=>{ue(!0),console.log("tenantid",fe),await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(fe)).then((e=>{console.log("fetchtenantinfo",e),e.data.status&&ve(e.data.details.tenantid),ue(!1)})).catch((e=>{console.log(e),ue(!1)}))})()}),[fe]);const yt={"pickupdate(yyyy-mmm-dd)":"date","sendername*":"locationname","senderphone*":"locationcontact","senderaddress*":"locationaddress","receivername*":"firstname","receiverphone*":"contactno","receiveralternatephone*":"altcontactno",receiverfulladdress:"address",receiverlatitude:"latitude",receiverlongitude:"longitude","itemdescription*":"description",Quantity:"quantity"," Collect Cash":"collectionamt"},St=e=>null===e||void 0===e?void 0:e.toString().trim().toLowerCase().replace(/\s+/g,""),wt=e=>{try{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return void xt("No file selected.","warning");const a=n.name.toLowerCase(),i=a.endsWith(".csv"),o=a.endsWith(".xls")||a.endsWith(".xlsx");if(!i&&!o)return void xt("Invalid file type. Please upload a CSV or Excel file.","warning");const s=(e,t)=>{console.log("data",e);const n={};for(const o in yt)n[St(o)]=yt[o];console.log("normalizedMap",n);const a=e.map((e=>{const t={};for(const i in e){const o=St(i),s=n[o]||o;let l=e[i];"firstname"===s&&(l="string"!==typeof(a=l)?a:a.replace(/^[\d.\s]+/,"").trim()),t[s]=l}var a;return t})),i=Object.keys(yt).filter((e=>!t.includes(St(e))));i.length>0&&o&&xt("Missing columns: ".concat(i.join(", ")),"warning"),console.log("\u2705 Final Processed Data:",a),ot(a),xt("File uploaded and successfully ","success",3e3),xt("Press Continue","warning",3e3)};if(i&&Y().parse(n,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,complete:e=>{var t;if(null===(t=e.data)||void 0===t||!t.length)return xt("CSV file is empty or has no valid rows.","warning"),void ot([]);const n=e.meta.fields.map(St);s(e.data,n)},error:e=>{console.error("\u274c CSV Parsing Error:",e),xt("CSV parsing failed: ".concat(e.message),"warning")}}),o){const e=new FileReader;e.onload=e=>{try{const n=e.target.result;let a;try{a=k.LF(n,{type:"binary"})}catch(t){const e=new Uint8Array(n);a=k.LF(e,{type:"array"})}const i=a.SheetNames[0],o=a.Sheets[i],l=k.Wp.sheet_to_json(o,{defval:""});if(null===l||void 0===l||!l.length)return xt("Excel file is empty or invalid.","warning"),void ot([]);const r=Object.keys(l[0]).map(St);s(l,r)}catch(n){console.error("\u274c Error processing Excel:",n),xt("Error reading Excel: ".concat(n.message),"warning")}},e.readAsBinaryString(n)}}catch(n){console.error("Unexpected error during file upload:",n),xt("Unexpected error: ".concat(n.message),"warning")}},Yt=async()=>{const e=Te.map((e=>{var t,n,a,i;return{applocationid:Me.applocationid,configid:9,partnerid:Me.partnerid,partneruserid:+oe,paymentstatus:1,paymenttype:42,pickupaddress:Me.address||"",pickupcity:Me.city||"",pickupcontactno:Me.contactno||"",pickupcustomer:Me.locationname||"",pickuplandmark:Me.landmark||"",pickuplat:Me.latitude,pickuplocation:Me.suburb||"",pickuplocationid:Me.locationid||0,pickuplong:Me.longitude,tenantid:Me.tenantid,customerid:+(null===e||void 0===e?void 0:e.customerid),deliveryaddress:e.address||"",deliverycharge:+e.totalcharge||0,deliverycity:e.city||"",deliverycontactno:(null===(t=e.contactno)||void 0===t?void 0:t.toString())||"",deliverycustomer:e.firstname||"",deliveryid:+e.customerid,deliverylandmark:e.landmark||"",deliverylat:(null===(n=e.latitude)||void 0===n?void 0:n.toString())||"",deliverylocation:e.suburb||"",deliverylocationid:e.deliverylocationid||0,deliverylong:(null===(a=e.longitude)||void 0===a?void 0:a.toString())||"",deliverytime:"".concat(j()(Je).format("YYYY-MM-DD")," ").concat(j()(Oe.$d).format("HH:mm:ss")),deliverytype:"B",itemcount:1,quantity:e.quantity,collectionamt:e.collectionamt,kms:(null===(i=e.distance)||void 0===i?void 0:i.toString())||"0",locationid:+Me.locationid,moduleid:+Me.moduleid,orderamount:+e.totalcharge||0,ordercharges:0,orderdate:j()().format("YYYY-MM-DD HH:mm:ss"),ordernotes:Be,orderstatus:"created",ordervalue:+e.totalcharge||0,pickupSlot:ht}}));if(console.log("arr",e),fe){ue(!0);try{const a=await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/orders/createorders"),e);var n;if(a.data.status)xt("Order Created Successfully","success",2e3),Ke&&(async()=>{ue(!0),await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/sendnotifications"),{priority:"high",registration_ids:Ke,data:{accessid:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk"},notification:{title:"Nearle Merchant",body:"An Order has been placed successfully,kindly process the same",sound:"ring"}}).then((e=>{console.log(e),"Success"==e.data.message&&(0,y.M8)("Notification sent Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),ue(!1)})).catch((e=>{console.log(e),(0,y.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),ue(!1)}))})(),t("/nearle/orders"),ue(!1);else console.log(a.data),console.error("Create order failed (API response):",a.data),xt((null===a||void 0===a||null===(n=a.data)||void 0===n?void 0:n.message)||"Order creation failed. Please try again.","warning",3e3)}catch(i){xt(i.message,"error",2e3),console.log("create orders",i.message),console.error("Create order error:",{message:i.message,response:i.response,request:i.request,stack:i.stack});let e="Something went wrong. Please try again.";var a;if(i.response)e=(null===(a=i.response.data)||void 0===a?void 0:a.message)||"Server error (".concat(i.response.status,")");else i.request&&(e="Network error. Check your internet connection.");xt(e,"error"),ue(!1)}finally{ue(!1),me(!1)}}else xt("Choose Client","warning")},[kt,Ct]=(0,i.useState)(""),bt=(e,t)=>{Pe((n=>n.map((n=>n.customerid===e?(0,a.A)((0,a.A)({},n),{},{collectionamt:Number(t)||0}):n))))};return(0,ie.jsxs)(ie.Fragment,{children:[de&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(o.A,{})}),(0,ie.jsx)(C.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:pe,children:(0,ie.jsx)(ae.A,{color:"inherit"})}),(0,ie.jsxs)(b.Ay,{container:!0,spacing:3,sx:{position:"sticky",top:"60px",bgcolor:n.palette.background.default,zIndex:100,display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"center",spacing:5},children:[(0,ie.jsx)(b.Ay,{item:!0,xs:12,sx:{width:"100%",mt:-1},children:(0,ie.jsx)(M.A,{children:(0,ie.jsx)(D.A,{variant:"h3",children:" Create Multiple Order"})})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sx:{width:"100%",mt:-2},children:(0,ie.jsx)(l.A,{sx:{height:"100%"},children:(0,ie.jsxs)(b.Ay,{container:!0,spacing:3,sx:{},children:[(0,ie.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:(0,ie.jsx)(T.A,{fullWidth:!0,ref:v,options:se||[],getOptionLabel:e=>"".concat(e.locationname),onChange:(e,t,n)=>{"clear"===n?(ge(0),ve(0),ct(null),ce([]),ye(0),ut(null),Ae([]),De(null),Pe([]),lt(null)):(ge(t.applocationid),Pe([]),De(null))},renderInput:e=>(0,ie.jsx)(P.A,(0,a.A)((0,a.A)({},e),{},{label:"App Location"}))})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:(0,ie.jsx)(T.A,{fullWidth:!0,options:re||[],value:rt,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",isOptionEqualToValue:(e,t)=>e.tenantid===t.tenantid,renderOption:(e,t)=>(0,i.createElement)("li",(0,a.A)((0,a.A)({},e),{},{key:t.tenantid}),t.tenantname),onOpen:e=>{he||(e.preventDefault(),ft("Please select your location first!","warning",3e3),setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),0))},onChange:(e,t,n)=>{"clear"===n?(ve(0),ct(null),ye(0),ut(null),Ae([]),De(null),Pe([]),lt(null)):t&&(ve(t.tenantid),ct(t),ye(0),ut(null),(async e=>{try{const t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e));console.log("pricingResponse",t.data.details),we(t.data.details.baseprice),ke(t.data.details.priceperkm),be(t.data.details.minkm)}catch(t){console.log("fetchTenantPricing error",t)}})(t.tenantid),(async e=>{try{const t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e));console.log("gettenantlocations",t.data.details),1==t.data.details.length?(Ae(t.data.details),De(t.data.details[0]),ye(t.data.details[0].locationid),ut(t.data.details[0].locationid),mt(t.data.details[0].slots)):Ae(t.data.details)}catch(t){console.log("gettenantlocations",t)}})(t.tenantid),Pe([]))},renderInput:e=>(0,ie.jsx)(P.A,(0,a.A)((0,a.A)({},e),{},{inputRef:w,label:"Choose Client"}))})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:1==(null===xe||void 0===xe?void 0:xe.length)?(0,ie.jsx)(P.A,{variant:"outlined",fullWidth:!0,label:"Business Location",value:(null===(e=xe[0])||void 0===e?void 0:e.locationname)||"",focused:!0,InputProps:{style:{color:n.palette.primary.main},startAdornment:(0,ie.jsx)(E.A,{position:"start",children:(0,ie.jsx)(g.A,{color:"primary"})})}}):(0,ie.jsx)(T.A,{fullWidth:!0,options:xe||[],getOptionLabel:e=>"".concat(e.locationname," (").concat(e.suburb,")")||0,value:dt,onOpen:e=>{he||fe?fe||(e.preventDefault(),ft("Please select Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=w.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),ft("Please select Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),0))},onChange:(e,t,n)=>{"clear"===n?(ye(0),ut(null),De(null)):(ye(t.locationid||0),ut(t),De(t),mt(null===t||void 0===t?void 0:t.slots))},renderInput:e=>(0,ie.jsx)(P.A,(0,a.A)((0,a.A)({},e),{},{label:"Select Business Locations",color:"primary"}))})})]})})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sx:{width:"100%",mt:0},children:(0,ie.jsxs)(b.Ay,{container:!0,xs:12,spacing:3,children:[0!==je&&(0,ie.jsx)(b.Ay,{item:!0,xs:12,children:(0,ie.jsx)(W.A,{display:"flex",alignItems:"center",sx:{},children:(0,ie.jsx)(P.A,{label:"Pickup Location",fullWidth:!0,value:"".concat(null===Me||void 0===Me?void 0:Me.locationname," (").concat(null===Me||void 0===Me?void 0:Me.address,")"),InputProps:{readOnly:!0,style:{fontSize:"1rem",fontWeight:"bold",color:n.palette.primary.main}}})})}),0!==he&&(0,ie.jsxs)(i.Fragment,{children:[(0,ie.jsx)(b.Ay,{item:!0,xs:6,children:(0,ie.jsx)(M.A,{children:(0,ie.jsx)(A.$,{dateAdapter:f.R,sx:{},children:(0,ie.jsx)(x.l,{format:"DD-MM-YYYY",onChange:e=>{Ne(e);let t=j()().diff(j()("".concat(j()(e).format("YYYY-MM-DD"))),"d");if(console.log("dateres11"),console.log(t),Ue(""),t<=0){console.log("startdate",e),Ne(e);let t=[];Ie.map((n=>{j()().diff(j()("".concat(j()(e).format("MM-DD-YYYY")," ").concat(j()(n).format("HH:mm:ss"))),"m")<=0&&t.push(n)}))}else Ve("choose Upcoming Date"),xt("choose Upcoming Date","warning"),Ne(NaN)},value:j()(Je),sx:{width:"auto",mt:0},disablePast:!0})})})}),(0,ie.jsx)(b.Ay,{item:!0,xs:6,children:(0,ie.jsx)(T.A,{options:pt||[],onChange:(e,t,n)=>{if("clear"===n)Ue(null),gt(null);else{const e=j()(t.time,"HH:mm").format("hh:mm A");Ue(e);const n=j()("".concat(Je," ").concat(e),"MM-DD-YYYY hh:mm A").format("YYYY-MM-DD hh:mm A");gt(n)}},getOptionLabel:e=>"".concat(e.name," (").concat(j()(e.time,"HH:mm").format("hh:mm A"),")"),renderInput:e=>(0,ie.jsx)(P.A,(0,a.A)((0,a.A)({},e),{},{placeholder:"Select Pickup Slot"}))})})]})]})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sx:{width:"100%",mt:0},children:(0,ie.jsx)(l.A,{sx:{height:"100%"},title:(0,ie.jsxs)(M.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",sx:{mr:1},children:[(0,ie.jsxs)(D.A,{variant:"h5",sx:{p:3,whiteSpace:"nowrap"},children:["Drop (",(null===Te||void 0===Te?void 0:Te.length)||0,")"]}),(0,ie.jsxs)(M.A,{direction:"row",gap:2,alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",sx:{m:3},children:[0===st&&(0,ie.jsxs)(ie.Fragment,{children:[kt&&(0,ie.jsxs)(M.A,{direction:"row",spacing:1,children:[(0,ie.jsx)(d.A,{}),(0,ie.jsx)(D.A,{variant:"body2",color:"text.secondary",children:kt})]}),(0,ie.jsx)("input",{accept:".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",id:"upload-file",type:"file",hidden:!0,onChange:e=>{const t=e.target.files[0];if(!t)return;const n=(e=>e.replace(/\.[^/.]+$/,""))(t.name);Ct((e=>e?"".concat(e,", ").concat(n):n)),wt(e)}}),(0,ie.jsx)("label",{htmlFor:"upload-file",children:(0,ie.jsx)(L.A,{variant:"contained",size:"small",component:"span",sx:{minHeight:36},children:(null===Te||void 0===Te?void 0:Te.length)>0?"Add More Files":" Upload CSV"})})]}),it.length>=1&&0===st&&(0,ie.jsx)(L.A,{variant:"contained",size:"small",color:"warning",sx:(0,a.A)({minHeight:36},!(null!==Te&&void 0!==Te&&Te.length)&&{"@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}},animation:"blink 1s infinite"}),onClick:()=>{it.forEach((e=>vt(e)))},children:"Continue"}),1===st&&(0,ie.jsx)(L.A,{variant:"outlined",size:"small",sx:{minHeight:36},onClick:()=>{We(!0),ze("")},children:"Select Customers"}),(0,ie.jsx)(M.A,{sx:{bgcolor:"secondary.lighter",py:.5,px:1,borderRadius:2},children:(0,ie.jsxs)(z.A,{size:"small",children:[(0,ie.jsx)(R.A,{sx:{fontSize:12},children:"Upload Type"}),(0,ie.jsxs)(H.A,{row:!0,value:st,onChange:e=>{he&&fe&&je?(lt(Number(e.target.value)),Pe([]),ot([]),Ct("")):ft("Please select Location, Tenant, Business!","warning",3e3)},children:[(0,ie.jsx)(I.A,{value:0,control:(0,ie.jsx)(F.A,{size:"small"}),label:"Excel / CSV"}),(0,ie.jsx)(I.A,{value:1,control:(0,ie.jsx)(F.A,{size:"small"}),label:"Selection"})]})]})})]})]}),children:(0,ie.jsx)(J.A,{component:N.A,children:(0,ie.jsx)(O.A,{children:(null===Te||void 0===Te?void 0:Te.length)>0?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(U.A,{children:(0,ie.jsxs)(q.A,{children:[(0,ie.jsx)(V.A,{children:"S.No"}),(0,ie.jsx)(V.A,{children:"Customer"}),(0,ie.jsx)(V.A,{children:"Address"}),(0,ie.jsx)(V.A,{align:0==st?"right":"center",children:"Quantity"}),(0,ie.jsx)(V.A,{sx:{whiteSpace:"nowrap"},align:0==st?"right":"center",children:"Cash Collect"}),(0,ie.jsx)(V.A,{children:"Kms"}),(0,ie.jsx)(V.A,{align:"right",children:"Charge"}),(0,ie.jsx)(V.A,{align:"center",children:"Action"})]})}),(0,ie.jsxs)(B.A,{children:[null===Te||void 0===Te?void 0:Te.map(((e,t)=>{var n;return(0,ie.jsxs)(q.A,{children:[(0,ie.jsx)(V.A,{children:t+1}),(0,ie.jsx)(V.A,{sx:{whiteSpace:"nowrap"},children:e.firstname}),(0,ie.jsx)(V.A,{children:e.address}),(0,ie.jsx)(V.A,{align:"center",children:0==st?(0,ie.jsx)(D.A,{children:e.quantity}):(0,ie.jsx)(P.A,{size:"small",type:"number",value:e.quantity,onChange:t=>{return n=e.customerid,i=t.target.value,void Pe((e=>e.map((e=>e.customerid===n?(0,a.A)((0,a.A)({},e),{},{quantity:Number(i)||0}):e))));var n,i},inputProps:{min:0}})}),(0,ie.jsx)(V.A,{align:"center",children:0==st?(0,ie.jsxs)(D.A,{children:["\u20b9",Number(e.collectionamt||0).toFixed(2)]}):(0,ie.jsx)(P.A,{size:"small",type:"number",value:e.collectionamt?e.collectionamt:"",placeholder:"0",onChange:t=>{t.target.value<=0?bt(e.customerid,0):bt(e.customerid,t.target.value)},inputProps:{min:0},InputProps:{startAdornment:(0,ie.jsx)(E.A,{position:"start",children:"\u20b9"})}})}),(0,ie.jsx)(V.A,{children:e.distance}),(0,ie.jsx)(V.A,{align:"right",children:"\u20b9".concat(null===e||void 0===e||null===(n=e.totalcharge)||void 0===n?void 0:n.toFixed(2))}),(0,ie.jsx)(V.A,{align:"center",children:(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(u.A,{style:{cursor:"pointer",color:"red"},onClick:()=>vt(e)})})})]},t)})),0!=(null===Te||void 0===Te?void 0:Te.length)&&(0,ie.jsxs)(q.A,{children:[(0,ie.jsx)(V.A,{children:"Total"}),(0,ie.jsx)(V.A,{colSpan:2}),(0,ie.jsx)(V.A,{children:(0,ie.jsx)(D.A,{variant:"h5",align:"center",children:"".concat(et," ")})}),(0,ie.jsx)(V.A,{children:(0,ie.jsx)(D.A,{align:"center",variant:"h5",children:"".concat(null===nt||void 0===nt?void 0:nt.toFixed(2)," ")})}),(0,ie.jsx)(V.A,{children:(0,ie.jsx)(D.A,{variant:"h5",children:"".concat(Qe," ")})}),(0,ie.jsx)(V.A,{align:"right",children:(0,ie.jsx)(D.A,{align:"right",variant:"h5",children:"\u20b9".concat(null===_e||void 0===_e?void 0:_e.toFixed(2))})}),(0,ie.jsx)(V.A,{})]})]})]}):(0,ie.jsxs)(M.A,{spacing:2,elevation:0,sx:{bgcolor:"primary.lighter",border:"none",p:2.5,borderRadius:1},children:[(0,ie.jsxs)(M.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,ie.jsx)(p.A,{style:{color:"red",fontSize:18}})," ",(0,ie.jsx)(D.A,{variant:"h5",sx:{fontWeight:600,color:"red"},children:"Important Instructions"})]}),(0,ie.jsxs)(M.A,{elevation:0,component:"ol",sx:{pl:4,m:0},children:[(0,ie.jsxs)(D.A,{component:"li",sx:{fontSize:15,mb:1},children:["Choose either ",(0,ie.jsx)("b",{children:"Upload Type"})," to upload CSV/Excel files, or",(0,ie.jsx)("b",{children:" Selection Type"})," to select from saved customers."]}),(0,ie.jsx)(D.A,{component:"li",sx:{fontSize:15,mb:1},children:"Uploaded CSV or Excel files must follow the required format and contain the correct column names."}),(0,ie.jsxs)(D.A,{component:"li",sx:{fontSize:15,mb:1},children:["Multiple files can be uploaded, but only ",(0,ie.jsx)("b",{children:"one file at a time"}),"."]}),(0,ie.jsx)(D.A,{component:"li",sx:{fontSize:15,color:"error.main"},children:"Invalid or incorrectly formatted files will not be processed."})]})]})})})})}),(0,ie.jsx)(b.Ay,{item:!0,xs:12,sx:{width:"100%",mt:-2},children:(0,ie.jsx)(l.A,{sx:{mt:2,p:3},title:"Notes",children:(0,ie.jsxs)(b.Ay,{container:!0,children:[(0,ie.jsx)(b.Ay,{item:!0,xs:12,children:(0,ie.jsx)(P.A,{focused:!0,id:"outlined-multiline-static",sx:{width:"100%",height:"100%",mb:2},multiline:!0,rows:1,placeholder:"Notes",value:Be,onChange:e=>Ge(e.target.value)})}),(0,ie.jsx)(M.A,{direction:"row",justifyContent:"end",sx:{mt:2,width:"100%"},children:(0,ie.jsx)(L.A,{disabled:0==Te.length||!ht,size:"medium",variant:"outlined",onClick:()=>{ue(!0),me(!0),Yt()},sx:{"&:hover":{transform:"scale(1.05)",transition:"transform 0.3s ease"}},children:pe?(0,ie.jsx)(G.A,{color:"primary",size:20,thickness:10}):"Create"})})]})})})]}),(0,ie.jsxs)(K.A,{open:Ee,onClose:()=>{We(!1)},fullWidth:!0,sx:{minWidth:"lg"},children:[(0,ie.jsx)(Z.A,{sx:{bgcolor:n.palette.primary.main,color:"white"},children:(0,ie.jsxs)(M.A,{children:[(0,ie.jsxs)(D.A,{variant:"h4",children:[" ","Select Drop Customers (".concat(Te.length||0,")")]}),(0,ie.jsx)(z.A,{sx:{width:"100%",mt:1},children:(0,ie.jsx)(M.A,{spacing:2,sx:{py:.2},children:(0,ie.jsx)(Q.A,{fullWidth:!0,id:"input-search-header",placeholder:"Search",value:Le,onChange:e=>ze(e.target.value),sx:{"& .MuiOutlinedInput-input":{p:"10.5px 0px 12px"},bgcolor:"white"},startAdornment:(0,ie.jsx)(E.A,{position:"start",children:(0,ie.jsx)(m.A,{style:{fontSize:"small"}})}),endAdornment:(0,ie.jsx)(X.A,{sx:{visibility:Le?"visible":"hidden"},onClick:()=>{ze("")},children:(0,ie.jsx)(c.A,{})}),autoComplete:"off"})})})]})}),(0,ie.jsx)(_.A,{}),(0,ie.jsx)($.A,{sx:{p:2.5},children:0==(null===Re||void 0===Re?void 0:Re.length)?(0,ie.jsx)(M.A,{spacing:2,direction:"row",alignItems:"center",justifyContent:"center",sx:{minHeight:600,maxHeight:600},children:(0,ie.jsx)(h.A,{})}):(0,ie.jsx)(M.A,{spacing:2,sx:{minHeight:600,maxHeight:600},children:Re&&(null===Re||void 0===Re?void 0:Re.map(((e,t)=>(0,ie.jsx)(ee.A,{children:(0,ie.jsx)(I.A,{control:(0,ie.jsx)(te.A,{checked:Te.some((t=>t.customerid===e.customerid)),onChange:t=>(async(e,t)=>{if(ue(!0),e.target.checked)try{const e=await jt(t),{roundedDistance:n,totalcharge:i}=e,o=(0,a.A)((0,a.A)({},t),{},{distance:n,totalcharge:i});Pe((e=>[...e,o]))}catch(n){console.error("Failed to calculate distance:",n)}finally{ue(!1)}else Pe((e=>e.filter((e=>e.customerid!==t.customerid)))),ue(!1)})(t,e)}),label:(0,ie.jsxs)("div",{style:{width:"100%"},children:[(0,ie.jsx)(D.A,{variant:"subtitle1",sx:{textAlign:"left"},children:"".concat(e.firstname," (").concat(e.contactno,")")}),(0,ie.jsx)(D.A,{variant:"body2",color:"secondary",sx:{textAlign:"left"},children:e.address})]})})},t))))})}),(0,ie.jsx)(_.A,{}),(0,ie.jsx)(ne.A,{sx:{p:2.5},children:(0,ie.jsx)(L.A,{color:0==Te.length?"error":"primary",variant:"outlined",sx:{"&:hover":{bgcolor:0==Te.length?"red":n.palette.primary.main,color:"white"}},onClick:()=>{We(!1)},children:0==Te.length?"Close":"Continue"})})]})]})}},62217:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbm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zmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},83686:()=>{},94826:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(59254),i=n(46639),o=n(62217),s=n(44414);const l=(0,a.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),r=(0,a.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(l,{children:[(0,s.jsx)(i.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(r,{children:(0,s.jsx)("img",{src:o,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]);