Files
Express_console_build/build/static/js/9521.15393fd8.chunk.js

1 line
34 KiB
JavaScript

"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9521],{19521:(e,t,o)=>{o.r(t),o.d(t,{default:()=>re});var r=o(89379),s=o(9950),n=o(26910),i=o(54826),l=o(58691),a=o(2235),c=o(41413),d=o(14857),x=o(47223),h=o(93230),u=o(82053),p=o(16491),m=o(60899),g=o(83274),A=o(25333),f=o(1320),j=o(15769),b=o(69780),v=o(9213),S=o(21671),w=o(34075),y=o(96583),k=o(40033),C=o(28170),W=o(29925),R=o(77922),z=o(79739),P=o(82223),T=o(31222),Y=o(99459),I=o(28217),M=o(55471),L=o.n(M),E=o(21209),J=o(52351),N=o(56311),H=o(59212),B=o(60010),K=o(36150),Z=o(81425),F=o(20466),q=o(96646),D=o(23787),O=o(44414);const V={radiusPill:999,radiusCard:16,shadowSoft:"0 14px 40px rgba(15, 23, 42, 0.10)",shadowMd:"0 8px 24px rgba(15, 23, 42, 0.08)",shadowPop:"0 18px 50px rgba(15, 23, 42, 0.18)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},G=(e,t)=>"".concat(e).concat(t),U=e=>G(e,"08"),Q=e=>G(e,"18"),X=e=>G(e,"26"),_=e=>G(e,"55"),$=e=>(0,O.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:V.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),ee=e=>{let{color:t,selected:o,size:r=24,children:s}=e;return(0,O.jsx)(c.A,{sx:{width:r,height:r,bgcolor:o?t:Q(t),color:o?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:s})},te="AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8";const oe={current:null};function re(){var e,t;const o=(0,d.A)(),M=(0,x.A)(o.breakpoints.down("md")),G=(0,s.useRef)(),re=(0,s.useRef)(),[se]=(0,s.useState)(50),[ne]=(0,s.useState)(0),[ie,le]=(0,s.useState)(0),[ae,ce]=(0,s.useState)("All"),[de,xe]=(0,s.useState)({}),[he,ue]=(0,s.useState)(!1),[pe,me]=(0,s.useState)(""),[ge,Ae]=(0,s.useState)({}),[fe,je]=(0,s.useState)(""),[be,ve]=(0,s.useState)(""),[Se,we]=(0,s.useState)(""),[ye,ke]=(0,s.useState)(""),[Ce,We]=(0,s.useState)(""),[Re,ze]=(0,s.useState)(""),[Pe,Te]=(0,s.useState)(null),[Ye,Ie]=(0,s.useState)(""),[Me,Le]=(0,s.useState)([]),Ee=(0,s.useRef)(!1);"undefined"===typeof window||Ee.current||(document.querySelector("#google-maps")||function(e,t,o){if(!t)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",o),r.src=e,t.appendChild(r)}("https://maps.googleapis.com/maps/api/js?key=".concat(te,"&libraries=places"),document.querySelector("head"),"google-maps"),Ee.current=!0);const Je=(0,s.useMemo)((()=>(0,E.A)(((e,t)=>{oe.current.getPlacePredictions(e,t)}),400)),[]);(0,s.useEffect)((()=>{let e=!0;if(!oe.current&&window.google&&(oe.current=new window.google.maps.places.AutocompleteService),oe.current){if(""!==Ye)return Je({input:Ye},(t=>{if(e){let e=[];Pe&&(e=[Pe]),t&&(e=[...e,...t]),Le(e)}})),()=>{e=!1};Le(Pe?[Pe]:[])}}),[Pe,Ye,Je]),Y.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,s.useEffect)((()=>{try{console.log("selected address =>",pe),Y.A.fromAddress(pe).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:o}=e.results[0].geometry.location;if(Ae({lat:t,lng:o}),e.results[0].address_components){let s,n,i,l,a=e.results[0];for(let e=0;e<a.address_components.length;e++)for(let t=0;t<a.address_components[e].types.length;t++)switch(a.address_components[e].types[t]){case"locality":s=a.address_components[e].long_name;break;case"administrative_area_level_1":i=a.address_components[e].long_name;break;case"postal_code":n=a.address_components[e].long_name;break;case"sublocality":l=a.address_components[e].long_name}je(s||""),we(i||""),ve(n||""),ke(l||""),xe((e=>(0,r.A)((0,r.A)({},e),{},{city:s||"",state:i||"",postcode:n||"",suburb:l||"",latitude:t||"",longitude:o||""})))}}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[pe]);const{data:Ne,isLoading:He,isFetchingNextPage:Be,fetchNextPage:Ke,hasNextPage:Ze,refetch:Fe}=(0,B.q)({queryKey:["getAllCustomers",ie,Re,se],queryFn:Z.jO,getNextPageParam:e=>e.nextPage,keepPreviousData:!0}),qe=(null===Ne||void 0===Ne?void 0:Ne.pages.flatMap((e=>e.data)))||[];(0,s.useEffect)((()=>{if(!Ze)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Ke()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return re.current&&e.observe(re.current),()=>{re.current&&e.unobserve(re.current)}}),[Ze,Ke]);const De=e=>{const{scrollTop:t,scrollHeight:o,clientHeight:r}=e.currentTarget;t+r>=o-50&&Ze&&!Be&&Ke()},{data:Oe,isLoading:Ve}=(0,K.I)({queryKey:["customersummary",ie],queryFn:Z.zf});(0,s.useEffect)((()=>{console.log("pageCount",Oe)}),[Oe]);const Ge=[{key:"total",label:"Total Customers",color:"#662582",icon:T.Itr,value:null!==(e=null===Oe||void 0===Oe?void 0:Oe.Total)&&void 0!==e?e:0},{key:"loaded",label:"Loaded in View",color:"#0ea5e9",icon:T.lbm,value:qe.length},{key:"zone",label:"Active Zone",color:"#10b981",icon:T.JFD,value:ae||"All Zones"}];return(0,O.jsxs)(O.Fragment,{children:[(Ve||He)&&(0,O.jsx)(J.A,{}),(0,O.jsx)(a.A,{elevation:0,sx:{mb:{xs:1.5,md:2},p:{xs:1.5,sm:2,md:2.5},borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,background:"linear-gradient(135deg, ".concat(U("#662582")," 0%, ").concat(U("#9255AB")," 100%)"),boxShadow:V.shadowMd},children:(0,O.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",spacing:{xs:1.5,sm:2},children:[(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:{xs:1.25,sm:1.75},children:[(0,O.jsx)(c.A,{sx:{width:{xs:40,sm:48},height:{xs:40,sm:48},bgcolor:"#662582",color:"#fff",boxShadow:"0 6px 18px rgba(99,102,241,0.32)"},children:(0,O.jsx)(T._pN,{size:22})}),(0,O.jsxs)(h.A,{children:[(0,O.jsx)(u.A,{variant:"h3",sx:{fontWeight:800,color:V.textPrimary,lineHeight:1.1,fontSize:{xs:"1.25rem",sm:"1.5rem",md:"1.75rem"}},children:"Customers"}),(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[(0,O.jsx)(p.A,{sx:{width:8,height:8,borderRadius:"50%",bgcolor:"#10b981",boxShadow:"0 0 0 4px rgba(16,185,129,0.18)"}}),(0,O.jsxs)(u.A,{variant:"caption",sx:{color:V.textSecondary,fontWeight:600},children:["Live \xb7 ",ae||"All Zones"]})]})]})]}),(0,O.jsx)(H.A,{locaName:ae,setAppId:le,setLocoName:ce,pill:!0,accentColor:"#662582",icon:(0,O.jsx)(T.HPi,{size:14}),placeholder:"Select Zone",paperComponent:$,sx:{width:{xs:"100%",sm:280},zIndex:100}})]})}),(0,O.jsx)(m.Ay,{container:!0,spacing:{xs:1.25,sm:1.5,md:2},sx:{mt:"1px"},children:Ge.map((e=>{const t=e.icon;return(0,O.jsx)(m.Ay,{item:!0,xs:6,sm:4,children:(0,O.jsxs)(a.A,{elevation:0,sx:{position:"relative",overflow:"hidden",p:{xs:1.25,sm:1.75,md:2.25},borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,background:"#fff",transition:"transform 0.2s, box-shadow 0.2s, border-color 0.2s","&:hover":{transform:"translateY(-3px)",boxShadow:V.shadowMd,borderColor:_(e.color)}},children:[(0,O.jsx)(p.A,{sx:{position:"absolute",top:0,left:0,right:0,height:3,background:"linear-gradient(90deg, ".concat(e.color," 0%, ").concat(Q(e.color)," 100%)")}}),(0,O.jsxs)(h.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,O.jsxs)(h.A,{spacing:.5,sx:{minWidth:0,flex:1},children:[(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textSecondary,fontWeight:700,letterSpacing:.4,textTransform:"uppercase",fontSize:{xs:10,sm:11},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label}),(0,O.jsx)(u.A,{sx:{fontWeight:800,color:V.textPrimary,lineHeight:1.1,fontSize:{xs:"1.25rem",sm:"1.5rem",md:"1.75rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.value})]}),(0,O.jsx)(c.A,{sx:{width:{xs:36,sm:42,md:48},height:{xs:36,sm:42,md:48},bgcolor:Q(e.color),color:e.color,boxShadow:"inset 0 0 0 1px ".concat(_(e.color)),flexShrink:0},children:(0,O.jsx)(t,{size:20})})]})]})},e.key)}))}),(0,O.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:V.radiusCard/8,borderTopRightRadius:V.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:V.borderSubtle,borderBottom:0,background:"#fff"},children:(0,O.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,O.jsx)(ee,{color:"#662582",size:32,children:(0,O.jsx)(T.Itr,{size:18})}),(0,O.jsxs)(h.A,{children:[(0,O.jsx)(u.A,{variant:"caption",sx:{fontWeight:800,color:V.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Directory"}),(0,O.jsxs)(u.A,{variant:"body2",sx:{color:V.textPrimary,fontWeight:700},children:[null!==(t=null===Oe||void 0===Oe?void 0:Oe.Total)&&void 0!==t?t:0," total \xb7 ",qe.length," loaded"]})]})]}),(0,O.jsx)(p.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,O.jsx)(N.A,{value:Ce,onChange:We,onDebouncedChange:ze,placeholder:"Search customers (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:U("#662582"),"& fieldset":{borderColor:_("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(X("#662582"))}}})})]})}),(0,O.jsx)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:V.radiusCard/8,borderBottomRightRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",background:"#fff"},children:M?(0,O.jsxs)(D.nV,{scroll:!0,onScroll:De,children:[He&&(0,O.jsx)(l.A,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||He?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,O.jsx)(D.pg,{accent:"#662582",header:(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,O.jsx)(ee,{color:"#662582",size:36,children:(0,O.jsx)(T.Azs,{size:18})}),(0,O.jsxs)(h.A,{sx:{minWidth:0},children:[(0,O.jsx)(u.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary},noWrap:!0,children:e.firstname||"\u2014"}),(0,O.jsxs)(u.A,{variant:"caption",sx:{color:V.textSecondary},children:["ID #",e.customerid]})]})]}),(0,O.jsx)(g.A,{title:"Edit customer",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{xe(e),setTimeout((()=>ue(!0)),0)},sx:{bgcolor:Q("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(_("#8b5cf6")),flexShrink:0,"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,O.jsx)(T.Yvo,{size:16})})})]}),children:(0,O.jsxs)(D.FG,{children:[(0,O.jsx)(D.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,O.jsx)(D.pY,{label:"Location",children:e.suburb?(0,O.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#10b981"),border:"1px solid ".concat(_("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,O.jsx)(T.gwi,{size:12})," ",e.suburb]}):(0,O.jsx)(u.A,{sx:{fontSize:13,fontWeight:600,color:V.textMuted},children:"\u2014"})}),(0,O.jsx)(D.pY,{label:"Address",full:!0,children:(0,O.jsx)(u.A,{sx:{fontSize:13,fontWeight:600,color:V.textPrimary},children:e.address||"\u2014"})})]})},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,O.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,O.jsx)(c.A,{sx:{width:64,height:64,bgcolor:Q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(T.Itr,{size:28})}),(0,O.jsx)(u.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No customers to show"}),(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textSecondary,textAlign:"center"},children:Ce?"Try a different keyword.":"Pick a zone above to load the directory."})]}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,O.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:Be||Ze?(0,O.jsx)(l.A,{}):(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:600},children:"No more customers"})})]}):(0,O.jsx)(f.A,{ref:G,onScroll:De,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:_("#662582"),borderRadius:8,"&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:V.surfaceAlt}},children:(0,O.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,O.jsx)(b.A,{children:(0,O.jsxs)(v.A,{sx:{"& th":{backgroundColor:V.surfaceAlt,color:V.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(V.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,O.jsx)(S.A,{children:"#"}),(0,O.jsx)(S.A,{children:"Customer"}),(0,O.jsx)(S.A,{children:"Contact"}),(0,O.jsx)(S.A,{children:"Address"}),(0,O.jsx)(S.A,{children:"Location"}),(0,O.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,O.jsxs)(w.A,{children:[He&&(0,O.jsx)(q.r,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||He?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,O.jsxs)(v.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(V.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:V.surfaceAlt}},children:[(0,O.jsx)(S.A,{children:(0,O.jsx)(u.A,{variant:"caption",sx:{fontWeight:700,color:V.textMuted},children:String(t+1+ne*se).padStart(2,"0")})}),(0,O.jsx)(S.A,{children:(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,O.jsx)(ee,{color:"#662582",size:36,children:(0,O.jsx)(T.Azs,{size:18})}),(0,O.jsxs)(h.A,{children:[(0,O.jsx)(u.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:e.firstname||"\u2014"}),(0,O.jsxs)(u.A,{variant:"caption",sx:{color:V.textSecondary},children:["ID #",e.customerid]})]})]})}),(0,O.jsx)(S.A,{children:(0,O.jsxs)(h.A,{children:[(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,O.jsx)(T.EZw,{size:12,color:V.textMuted}),(0,O.jsx)(u.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:e.contactno||"\u2014"})]}),e.email&&(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textSecondary},children:e.email})]})}),(0,O.jsx)(S.A,{sx:{maxWidth:280},children:(0,O.jsx)(g.A,{title:e.address||"",placement:"top",children:(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,O.jsx)(S.A,{children:e.suburb?(0,O.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#10b981"),border:"1px solid ".concat(_("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,O.jsx)(T.gwi,{size:12})," ",e.suburb]}):(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textMuted},children:"\u2014"})}),(0,O.jsx)(S.A,{align:"right",children:(0,O.jsx)(g.A,{title:"Edit customer",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{xe(e),setTimeout((()=>ue(!0)),0)},sx:{bgcolor:Q("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(_("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,O.jsx)(T.Yvo,{size:16})})})})]},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,O.jsx)(v.A,{children:(0,O.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,O.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,O.jsx)(c.A,{sx:{width:64,height:64,bgcolor:Q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(T.Itr,{size:28})}),(0,O.jsx)(u.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No customers to show"}),(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textSecondary},children:Ce?"Try a different keyword.":"Pick a zone above to load the directory."})]})})}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,O.jsx)(v.A,{children:(0,O.jsx)(S.A,{colSpan:6,sx:{borderBottom:"none"},children:(0,O.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:Be||Ze?(0,O.jsx)(l.A,{}):(0,O.jsx)(u.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:600},children:"No more customers"})})})})]})]})})}),(0,O.jsxs)(y.A,{open:he,onClose:()=>ue(!1),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",fullWidth:!0,fullScreen:M,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,O.jsx)(k.A,{id:"alert-dialog-title",sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",py:2},children:(0,O.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,O.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.2)",color:"#fff"},children:(0,O.jsx)(i.wwX,{style:{fontSize:18}})}),(0,O.jsxs)(h.A,{children:[(0,O.jsx)(u.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Customer"}),(0,O.jsxs)(u.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:["Edit ",(null===de||void 0===de?void 0:de.firstname)||"Customer"]})]})]})}),(0,O.jsx)(C.A,{children:(0,O.jsxs)(m.Ay,{container:!0,spacing:2,sx:{mt:2},children:[(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Customer Name"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,defaultValue:null===de||void 0===de?void 0:de.firstname,onChange:e=>{xe((0,r.A)((0,r.A)({},de),{},{firstname:e.target.value}))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Contact Number"}),(0,O.jsxs)(h.A,{direction:"row",spacing:1,children:[(0,O.jsx)(W.A,{readonly:!0,variant:"outlined",value:"+91",sx:{width:60}}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,type:"text",value:(null===de||void 0===de?void 0:de.contactno)||"",inputProps:{maxLength:10,inputMode:"numeric",pattern:"[0-9]*"},onChange:e=>{const t=e.target.value.replace(/\D/g,"");xe((e=>(0,r.A)((0,r.A)({},e),{},{contactno:t})))}})]})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:12,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Address"}),(0,O.jsx)(R.A,{id:"google-map-demo",sx:{},fullWidth:!0,getOptionLabel:e=>"string"===typeof e?e:(null===e||void 0===e?void 0:e.description)||"",filterOptions:e=>e,options:Me,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null===de||void 0===de?void 0:de.address,noOptionsText:"No locations",onChange:(e,t)=>{Le(t?[t,...Me]:Me),Te(t),console.log("newValue",t||""),me(null===t||void 0===t?void 0:t.description),xe((0,r.A)((0,r.A)({},de),{},{address:null===t||void 0===t?void 0:t.description}))},onInputChange:(e,t)=>{Ie(t)},renderInput:e=>(0,O.jsx)(W.A,(0,r.A)((0,r.A)({},e),{},{fullWidth:!0})),renderOption:(e,t)=>{const o=t.structured_formatting.main_text_matched_substrings||[],s=L()(t.structured_formatting.main_text,o.map((e=>[e.offset,e.offset+e.length])));return(0,O.jsx)("li",(0,r.A)((0,r.A)({},e),{},{children:(0,O.jsxs)(m.Ay,{container:!0,alignItems:"center",children:[(0,O.jsx)(m.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,O.jsx)(I.A,{sx:{color:"text.secondary"}})}),(0,O.jsxs)(m.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[null===s||void 0===s?void 0:s.map(((e,t)=>(0,O.jsx)(p.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,O.jsx)(u.A,{variant:"body2",color:"text.secondary",children:null===t||void 0===t?void 0:t.structured_formatting.secondary_text})]})]})}))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Location"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:null===de||void 0===de?void 0:de.suburb,onChange:e=>{const t=e.target.value;xe((e=>(0,r.A)((0,r.A)({},e),{},{suburb:t})))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"City"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:de.city||fe||"",onChange:e=>{const t=e.target.value;xe((e=>(0,r.A)((0,r.A)({},e),{},{city:t})))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"State"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:de.state||Se||"",onChange:e=>{const t=e.target.value;xe((e=>(0,r.A)((0,r.A)({},e),{},{state:t})))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Postcode"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:""==be?de.postcode:be,onChange:e=>{const t=e.target.value;xe((e=>(0,r.A)((0,r.A)({},e),{},{postcode:t})))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:12,children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Landmark"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,defaultValue:de.landmark,onChange:e=>{xe((0,r.A)((0,r.A)({},de),{},{landmark:e.target.value}))}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Latitude"}),(0,O.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:ge.lat,sx:{cursor:"not-allowed"}})]}),(0,O.jsxs)(m.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,O.jsx)(u.A,{sx:{mb:1},children:"Longitude"}),(0,O.jsx)(W.A,{readonly:!0,variant:"outlined",fullWidth:!0,value:ge.lng})]})]})}),(0,O.jsxs)(z.A,{sx:{mr:2,mb:2},children:[(0,O.jsx)(P.A,{onClick:()=>ue(!1),variant:"contained",color:"error",sx:{mr:2},children:"Close"}),(0,O.jsx)(P.A,{onClick:()=>{(async()=>{if(console.log("selectedCustomer",de),de.firstname)if(de.contactno)if(de.address)if(de.suburb)if(de.city)if(de.state)if(de.postcode)if(de.landmark)if(de.latitude)if(de.longitude)try{const e=await n.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/customers/update"),{customerid:de.customerid,configid:1,firstname:de.firstname,applocationid:de.applocationid,profileimage:"",dialcode:"+91",contactno:de.contactno,devicetype:"",deviceid:"",customertoken:"123",address:de.address,suburb:ye,city:fe,state:Se,postcode:be,landmark:de.landmark,doorno:de.doorno,latitude:de.latitude.toString(),longitude:de.longitude.toString()});console.log("postUpdateResponse",e),e.data.status&&((0,F.k)(e.data.message,"success",1500),ue(!1),Fe())}catch(e){console.log("postUpdate error",e)}else(0,F.k)("Enter Longitude","warning",1500);else(0,F.k)("Enter Latitude","warning",1500);else(0,F.k)("Enter Landmark","warning",1500);else(0,F.k)("Enter PostCode","warning",1500);else(0,F.k)("Enter State","warning",1500);else(0,F.k)("Enter City ","warning",1500);else(0,F.k)("Enter Suburb","warning",1500);else(0,F.k)("Enter Valid Address","warning",1500);else(0,F.k)("Enter Contact Number ","warning",1500);else(0,F.k)("Enter Door NO","warning",1500)})()},variant:"contained",autoFocus:!0,children:"Update"})]})]})]})}},23787:(e,t,o)=>{o.d(t,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var r=o(89379),s=o(80045),n=o(93230),i=o(2235),l=o(16491),a=o(82053),c=o(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:o=!1,onScroll:i,sx:l}=e,a=(0,s.A)(e,d);return(0,c.jsx)(n.A,(0,r.A)((0,r.A)({spacing:1.25,onScroll:i,sx:(0,r.A)((0,r.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:o,footer:s,selected:n=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(i.A,{elevation:0,onClick:a,sx:(0,r.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[o,d,s]})]})},u=e=>{let{children:t,columns:o=2,sx:s}=e;return(0,c.jsx)(l.A,{sx:(0,r.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:t})},p=e=>{let{label:t,value:o,children:r,full:s=!1,align:n="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==r?r:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},56311:(e,t,o)=>{o.d(t,{A:()=>u});var r=o(89379),s=o(9950),n=o(2660),i=o(2046),l=o(83274),a=o(25333),c=o(97125),d=o(7762),x=o(52097),h=o(44414);const u=e=>{let{value:t,onChange:o,onDebouncedChange:u,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:g}=e;const A=(0,s.useRef)(null),[f]=(0,x.d7)(t,p);return(0,s.useEffect)((()=>{u&&u(f)}),[f,u]),(0,s.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=A.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===A.current&&A.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(n.A,{sx:(0,r.A)({},g),inputRef:A,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,h.jsx)(i.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>o(""),children:(0,h.jsx)(d.A,{})})})})}},58691:(e,t,o)=>{o.d(t,{A:()=>l});o(9950);var r=o(16491),s=o(46639),n=o(62217),i=o(44414);function l(e){let{size:t=70,imgSize:o=40,alt:l="loader"}=e;return(0,i.jsxs)(r.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(s.A,{size:t}),(0,i.jsx)(r.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:o,height:o},children:(0,i.jsx)("img",{src:n,alt:l,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,o)=>{o.d(t,{A:()=>h});var r=o(89379),s=o(9950),n=o(93230),i=o(41413),l=o(77922),a=o(29925),c=o(26910),d=o(31222),x=o(44414);const h=(0,s.forwardRef)(((e,t)=>{let{setAppId:o,setLocoName:h,setPage:u,sx:p,textfeildSx:m,textfieldSx:g,pill:A=!1,accentColor:f="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[S,w]=(0,s.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,s.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const y=e=>"".concat(f).concat(e),k=y("08"),C=y("26"),W=y("55"),R=y("18"),z=A?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"999px",bgcolor:k,fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s, background-color 0.2s","& fieldset":{borderColor:W,borderWidth:1.5},"&:hover fieldset":{borderColor:f},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:f,borderWidth:2}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:f}}:{},P=A&&(0,x.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(i.A,{sx:{width:24,height:24,bgcolor:R,color:f,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,r.A)({},p),onChange:(e,t,r)=>{"clear"===r?(null===o||void 0===o||o(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):t&&(null===o||void 0===o||o(t.applocationid),null===h||void 0===h||h(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>A?(0,x.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,r.A)((0,r.A)({},e.InputProps),{},{startAdornment:P}),sx:(0,r.A)((0,r.A)({},z),g||m||{})})):(0,x.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,r.A)({},g||m||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7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AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},96646:(e,t,o)=>{o.d(t,{r:()=>a});var r=o(9213),s=o(21671),n=o(82917),i=o(93230),l=o(44414);const a=e=>{let{rowsPerPage:t=5,col:o=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(r.A,{children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:o}).map(((e,t)=>(0,l.jsx)(s.A,{children:(0,l.jsxs)(i.A,{spacing:.5,children:[(0,l.jsx)(n.A,{variant:"text",width:100}),(0,l.jsx)(n.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(s.A,{children:(0,l.jsx)(n.A,{variant:"text",width:150})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(s.A,{align:"center",children:(0,l.jsxs)(i.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]);