Files
Express_console_build/build/static/js/9521.e24db89d.chunk.js

1 line
39 KiB
JavaScript

(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9521],{12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var o=r(57528),i=r(84849),n=r(27326),s=r(85672),a=r(72574),l=r(25234),c=r(8913),d=r(16775),h=r(38009),x=r(60308),u=r(37300),p=r(10644);function g(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,u.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,m,f,v,j=r(65908);const b=["className","color","disableShrink","size","style","thickness","value","variant"];let S,y,w,k;const C=44,P=(0,c.i7)(S||(S=A||(A=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),W=(0,c.i7)(y||(y=m||(m=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),R=(0,x.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.AH)(w||(w=f||(f=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),P)})),z=(0,x.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),M=(0,x.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.AH)(k||(k=v||(v=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),W)})),T=s.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,size:x=40,style:u,thickness:p=3.6,value:A=0,variant:m="indeterminate"}=r,f=(0,i.A)(r,b),v=(0,n.A)({},r,{color:s,disableShrink:c,size:x,thickness:p,value:A,variant:m}),S=(e=>{const{classes:t,variant:r,color:o,disableShrink:i}=e,n={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),i&&"circleDisableShrink"]};return(0,l.A)(n,g,t)})(v),y={},w={},k={};if("determinate"===m){const e=2*Math.PI*((C-p)/2);y.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(A),y.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,j.jsx)(R,(0,n.A)({className:(0,a.A)(S.root,o),style:(0,n.A)({width:x,height:x},w,u),ownerState:v,ref:t,role:"progressbar"},k,f,{children:(0,j.jsx)(z,{className:S.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,j.jsx)(M,{className:S.circle,style:y,ownerState:v,cx:C,cy:C,r:(C-p)/2,fill:"none",strokeWidth:p})})}))}))},19521:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ne});var o=r(22555),i=r(85672),n=r(66157),s=r(81600),a=r(58691),l=r(55235),c=r(97043),d=r(69039),h=r(76264),x=r(1939),u=r(71392),p=r(2866),g=r(48738),A=r(23440),m=r(11969),f=r(83209),v=r(72486),j=r(54016),b=r(50755),S=r(1596),y=r(81802),w=r(58689),k=r(19619),C=r(5670),P=r(86270),W=r(17488),R=r(17450),z=r(80911),M=r(48952),T=r(76453),I=r(58355),Y=r(75153),N=r.n(Y),L=r(56691),E=r(52351),J=r(56311),H=r(59212),B=r(27001),D=r(36803),F=r(41033),K=r(68320),O=r(81425),Z=r(20466),q=r(96646),V=r(23787),G=r(65908);const U={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},Q=(e,t)=>"".concat(e).concat(t),X=e=>Q(e,"08"),_=e=>Q(e,"18"),$=e=>Q(e,"26"),ee=e=>Q(e,"55"),te=e=>(0,G.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:U.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),re=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,G.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:_(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},oe="AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8";const ie={current:null};function ne(){var e,t;const r=(0,d.A)(),Y=(0,h.A)(r.breakpoints.down("md")),Q=(0,i.useRef)(),ne=(0,i.useRef)(),[se]=(0,i.useState)(50),[ae]=(0,i.useState)(0),[le,ce]=(0,i.useState)(0),[de,he]=(0,i.useState)("All"),[xe,ue]=(0,i.useState)({}),[pe,ge]=(0,i.useState)(!1),[Ae,me]=(0,i.useState)(""),[fe,ve]=(0,i.useState)({}),[je,be]=(0,i.useState)(""),[Se,ye]=(0,i.useState)(""),[we,ke]=(0,i.useState)(""),[Ce,Pe]=(0,i.useState)(""),[We,Re]=(0,i.useState)(""),[ze,Me]=(0,i.useState)(""),[Te,Ie]=(0,i.useState)(null),[Ye,Ne]=(0,i.useState)(""),[Le,Ee]=(0,i.useState)([]),Je=(0,i.useRef)(!1);"undefined"===typeof window||Je.current||(document.querySelector("#google-maps")||function(e,t,r){if(!t)return;const o=document.createElement("script");o.setAttribute("async",""),o.setAttribute("id",r),o.src=e,t.appendChild(o)}("https://maps.googleapis.com/maps/api/js?key=".concat(oe,"&libraries=places"),document.querySelector("head"),"google-maps"),Je.current=!0);const He=(0,i.useMemo)((()=>(0,L.A)(((e,t)=>{ie.current.getPlacePredictions(e,t)}),400)),[]);(0,i.useEffect)((()=>{let e=!0;if(!ie.current&&window.google&&(ie.current=new window.google.maps.places.AutocompleteService),ie.current){if(""!==Ye)return He({input:Ye},(t=>{if(e){let e=[];Te&&(e=[Te]),t&&(e=[...e,...t]),Ee(e)}})),()=>{e=!1};Ee(Te?[Te]:[])}}),[Te,Ye,He]),T.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,i.useEffect)((()=>{try{console.log("selected address =>",Ae),T.A.fromAddress(Ae).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:r}=e.results[0].geometry.location;if(ve({lat:t,lng:r}),e.results[0].address_components){let i,n,s,a,l=e.results[0];for(let e=0;e<l.address_components.length;e++)for(let t=0;t<l.address_components[e].types.length;t++)switch(l.address_components[e].types[t]){case"locality":i=l.address_components[e].long_name;break;case"administrative_area_level_1":s=l.address_components[e].long_name;break;case"postal_code":n=l.address_components[e].long_name;break;case"sublocality":a=l.address_components[e].long_name}be(i||""),ke(s||""),ye(n||""),Pe(a||""),ue((e=>(0,o.A)((0,o.A)({},e),{},{city:i||"",state:s||"",postcode:n||"",suburb:a||"",latitude:t||"",longitude:r||""})))}}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[Ae]);const{data:Be,isLoading:De,isFetchingNextPage:Fe,fetchNextPage:Ke,hasNextPage:Oe,refetch:Ze}=(0,F.q)({queryKey:["getAllCustomers",le,ze,se],queryFn:O.jO,getNextPageParam:e=>e.nextPage,keepPreviousData:!0}),qe=(null===Be||void 0===Be?void 0:Be.pages.flatMap((e=>e.data)))||[];(0,i.useEffect)((()=>{if(!Oe)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Ke()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return ne.current&&e.observe(ne.current),()=>{ne.current&&e.unobserve(ne.current)}}),[Oe,Ke]);const Ve=e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&Oe&&!Fe&&Ke()},{data:Ge,isLoading:Ue}=(0,K.I)({queryKey:["customersummary",le],queryFn:O.zf});(0,i.useEffect)((()=>{console.log("pageCount",Ge)}),[Ge]);const Qe=[{key:"total",label:"Total Customers",color:"#662582",icon:M.AYP,value:null!==(e=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==e?e:0},{key:"loaded",label:"Loaded in View",color:"#0ea5e9",icon:M.$Nl,value:qe.length},{key:"zone",label:"Active Zone",color:"#10b981",icon:M.XXh,value:de||"All Zones"}];return(0,G.jsxs)(G.Fragment,{children:[(Ue||De)&&(0,G.jsx)(E.A,{}),(0,G.jsx)(B.A,{title:"Customers",subtitle:"Live \xb7 ".concat(de||"All Zones"),live:!0,action:(0,G.jsx)(H.A,{locaName:de,setAppId:ce,setLocoName:he,pill:!0,accentColor:"#662582",icon:(0,G.jsx)(M.HPi,{size:14}),placeholder:"Select Zone",paperComponent:te,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,G.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Qe.map((e=>{var t;const r=e.icon;return(0,G.jsx)(x.Ay,{item:!0,xs:6,sm:4,children:(0,G.jsx)(D.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,G.jsx)(r,{size:20}),color:e.color,loading:Ue})},e.key)}))}),(0,G.jsx)(l.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:U.radiusCard/8,borderTopRightRadius:U.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:U.borderSubtle,borderBottom:0,background:"#fff"},children:(0,G.jsxs)(u.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,G.jsx)(re,{color:"#662582",size:32,children:(0,G.jsx)(M.Itr,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:800,color:U.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Directory"}),(0,G.jsxs)(p.A,{variant:"body2",sx:{color:U.textPrimary,fontWeight:700},children:[null!==(t=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==t?t:0," total \xb7 ",qe.length," loaded"]})]})]}),(0,G.jsx)(g.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,G.jsx)(J.A,{value:We,onChange:Re,onDebouncedChange:Me,placeholder:"Search customers (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:X("#662582"),"& fieldset":{borderColor:ee("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($("#662582"))}}})})]})}),(0,G.jsx)(l.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:U.radiusCard/8,borderBottomRightRadius:U.radiusCard/8,border:"1px solid",borderColor:U.borderSubtle,overflow:"hidden",background:"#fff"},children:Y?(0,G.jsxs)(V.nV,{scroll:!0,onScroll:Ve,children:[De&&(0,G.jsx)(a.A,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||De?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,G.jsx)(V.pg,{accent:"#662582",header:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,G.jsx)(re,{color:"#662582",size:36,children:(0,G.jsx)(M.Azs,{size:18})}),(0,G.jsxs)(u.A,{sx:{minWidth:0},children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary},noWrap:!0,children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]}),(0,G.jsx)(A.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(m.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>ge(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),flexShrink:0,"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(M.Yvo,{size:16})})})]}),children:(0,G.jsxs)(V.FG,{children:[(0,G.jsx)(V.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,G.jsx)(V.pY,{label:"Location",children:e.suburb?(0,G.jsxs)(g.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(M.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(V.pY,{label:"Address",full:!0,children:(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textPrimary},children:e.address||"\u2014"})})]})},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(M.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,textAlign:"center"},children:We?"Try a different keyword.":"Pick a zone above to load the directory."})]}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,G.jsx)("div",{ref:ne,style:{height:40,textAlign:"center"},children:Fe||Oe?(0,G.jsx)(a.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})]}):(0,G.jsx)(f.A,{ref:Q,onScroll:Ve,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ee("#662582"),borderRadius:8,"&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:U.surfaceAlt}},children:(0,G.jsxs)(v.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,G.jsx)(j.A,{children:(0,G.jsxs)(b.A,{sx:{"& th":{backgroundColor:U.surfaceAlt,color:U.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(U.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,G.jsx)(S.A,{children:"#"}),(0,G.jsx)(S.A,{children:"Customer"}),(0,G.jsx)(S.A,{children:"Contact"}),(0,G.jsx)(S.A,{children:"Address"}),(0,G.jsx)(S.A,{children:"Location"}),(0,G.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,G.jsxs)(y.A,{children:[De&&(0,G.jsx)(q.r,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||De?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,G.jsxs)(b.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(U.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:U.surfaceAlt}},children:[(0,G.jsx)(S.A,{children:(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:U.textMuted},children:String(t+1+ae*se).padStart(2,"0")})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,G.jsx)(re,{color:"#662582",size:36,children:(0,G.jsx)(M.Azs,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,G.jsx)(M.EZw,{size:12,color:U.textMuted}),(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.contactno||"\u2014"})]}),e.email&&(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:e.email})]})}),(0,G.jsx)(S.A,{sx:{maxWidth:280},children:(0,G.jsx)(A.A,{title:e.address||"",placement:"top",children:(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,G.jsx)(S.A,{children:e.suburb?(0,G.jsxs)(g.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(M.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(S.A,{align:"right",children:(0,G.jsx)(A.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(m.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>ge(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(M.Yvo,{size:16})})})})]},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsx)(b.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(M.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:We?"Try a different keyword.":"Pick a zone above to load the directory."})]})})}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,G.jsx)(b.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{borderBottom:"none"},children:(0,G.jsx)("div",{ref:ne,style:{height:40,textAlign:"center"},children:Fe||Oe?(0,G.jsx)(a.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})})})]})]})})}),(0,G.jsxs)(w.A,{open:pe,onClose:()=>ge(!1),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",fullWidth:!0,fullScreen:Y,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,G.jsx)(k.A,{id:"alert-dialog-title",sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",py:2},children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.2)",color:"#fff"},children:(0,G.jsx)(s.wwX,{style:{fontSize:18}})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Customer"}),(0,G.jsxs)(p.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:["Edit ",(null===xe||void 0===xe?void 0:xe.firstname)||"Customer"]})]})]})}),(0,G.jsx)(C.A,{children:(0,G.jsxs)(x.Ay,{container:!0,spacing:2,sx:{mt:2},children:[(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Customer Name"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,defaultValue:null===xe||void 0===xe?void 0:xe.firstname,onChange:e=>{ue((0,o.A)((0,o.A)({},xe),{},{firstname:e.target.value}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Contact Number"}),(0,G.jsxs)(u.A,{direction:"row",spacing:1,children:[(0,G.jsx)(P.A,{readonly:!0,variant:"outlined",value:"+91",sx:{width:60}}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,type:"text",value:(null===xe||void 0===xe?void 0:xe.contactno)||"",inputProps:{maxLength:10,inputMode:"numeric",pattern:"[0-9]*"},onChange:e=>{const t=e.target.value.replace(/\D/g,"");ue((e=>(0,o.A)((0,o.A)({},e),{},{contactno:t})))}})]})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Address"}),(0,G.jsx)(W.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:Le,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null===xe||void 0===xe?void 0:xe.address,noOptionsText:"No locations",onChange:(e,t)=>{Ee(t?[t,...Le]:Le),Ie(t),console.log("newValue",t||""),me(null===t||void 0===t?void 0:t.description),ue((0,o.A)((0,o.A)({},xe),{},{address:null===t||void 0===t?void 0:t.description}))},onInputChange:(e,t)=>{Ne(t)},renderInput:e=>(0,G.jsx)(P.A,(0,o.A)((0,o.A)({},e),{},{fullWidth:!0})),renderOption:(e,t)=>{const r=t.structured_formatting.main_text_matched_substrings||[],i=N()(t.structured_formatting.main_text,r.map((e=>[e.offset,e.offset+e.length])));return(0,G.jsx)("li",(0,o.A)((0,o.A)({},e),{},{children:(0,G.jsxs)(x.Ay,{container:!0,alignItems:"center",children:[(0,G.jsx)(x.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,G.jsx)(I.A,{sx:{color:"text.secondary"}})}),(0,G.jsxs)(x.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[null===i||void 0===i?void 0:i.map(((e,t)=>(0,G.jsx)(g.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,G.jsx)(p.A,{variant:"body2",color:"text.secondary",children:null===t||void 0===t?void 0:t.structured_formatting.secondary_text})]})]})}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Location"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:null===xe||void 0===xe?void 0:xe.suburb,onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{suburb:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"City"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:xe.city||je||"",onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{city:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"State"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:xe.state||we||"",onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{state:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Postcode"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:""==Se?xe.postcode:Se,onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{postcode:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Landmark"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,defaultValue:xe.landmark,onChange:e=>{ue((0,o.A)((0,o.A)({},xe),{},{landmark:e.target.value}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Latitude"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:fe.lat,sx:{cursor:"not-allowed"}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Longitude"}),(0,G.jsx)(P.A,{readonly:!0,variant:"outlined",fullWidth:!0,value:fe.lng})]})]})}),(0,G.jsxs)(R.A,{sx:{mr:2,mb:2},children:[(0,G.jsx)(z.A,{onClick:()=>ge(!1),variant:"contained",color:"error",sx:{mr:2},children:"Close"}),(0,G.jsx)(z.A,{onClick:()=>{(async()=>{if(console.log("selectedCustomer",xe),xe.firstname)if(xe.contactno)if(xe.address)if(xe.suburb)if(xe.city)if(xe.state)if(xe.postcode)if(xe.landmark)if(xe.latitude)if(xe.longitude)try{const e=await n.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/customers/update"),{customerid:xe.customerid,configid:1,firstname:xe.firstname,applocationid:xe.applocationid,profileimage:"",dialcode:"+91",contactno:xe.contactno,devicetype:"",deviceid:"",customertoken:"123",address:xe.address,suburb:Ce,city:je,state:we,postcode:Se,landmark:xe.landmark,doorno:xe.doorno,latitude:xe.latitude.toString(),longitude:xe.longitude.toString()});console.log("postUpdateResponse",e),e.data.status&&((0,Z.k)(e.data.message,"success",1500),ge(!1),Ze())}catch(e){console.log("postUpdate error",e)}else(0,Z.k)("Enter Longitude","warning",1500);else(0,Z.k)("Enter Latitude","warning",1500);else(0,Z.k)("Enter Landmark","warning",1500);else(0,Z.k)("Enter PostCode","warning",1500);else(0,Z.k)("Enter State","warning",1500);else(0,Z.k)("Enter City ","warning",1500);else(0,Z.k)("Enter Suburb","warning",1500);else(0,Z.k)("Enter Valid Address","warning",1500);else(0,Z.k)("Enter Contact Number ","warning",1500);else(0,Z.k)("Enter Door NO","warning",1500)})()},variant:"contained",autoFocus:!0,children:"Update"})]})]})]})}},23787:(e,t,r)=>{"use strict";r.d(t,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var o=r(22555),i=r(53986),n=r(71392),s=r(55235),a=r(48738),l=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:a}=e,l=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:s,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},l),{},{children:t}))},x=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:l,children:d,sx:h}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:l,sx:(0,o.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"},h),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},u=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(l.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(l.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(71392),i=r(48738),n=r(2866),s=r(65908);function a(e){let{title:t,subtitle:r,live:a=!1,action:l}=e;return(0,s.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,s.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),l&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:l})]})}},36803:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var o=r(84007),i=r(75953),n=r(71392),s=r(48738),a=r(2866),l=r(91834),c=r(97043),d=r(65908);function h(e){let{title:t,value:r,icon:h,color:x="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(l.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),h&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:h})]})})})}},41033:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var o=r(22555),i=r(48149),n=r(59949),s=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,o.A)((0,o.A)({},e),{},{behavior:(0,n.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,n.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,o.A)((0,o.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,o.A)((0,o.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var r,i,s,a;const{state:l}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:h}=c,x=d&&"forward"===(null===(r=l.fetchMeta)||void 0===r||null===(i=r.fetchMore)||void 0===i?void 0:i.direction),u=d&&"backward"===(null===(s=l.fetchMeta)||void 0===s||null===(a=s.fetchMore)||void 0===a?void 0:a.direction);return(0,o.A)((0,o.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,l.data),hasPreviousPage:(0,n.RQ)(t,l.data),isFetchingNextPage:x,isFetchingPreviousPage:u,isRefetching:h&&!x&&!u})}},a=r(59363);function l(e,t){return(0,a.t)(e,s,t)}},56311:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(22555),i=r(85672),n=r(29776),s=r(43318),a=r(23440),l=r(11969),c=r(80795),d=r(51808),h=r(93811),x=r(65908);const u=e=>{let{value:t,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:g="Search (ctrl+k)",sx:A}=e;const m=(0,i.useRef)(null),[f]=(0,h.d7)(t,p);return(0,i.useEffect)((()=>{u&&u(f)}),[f,u]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=m.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,o.A)({},A),inputRef:m,placeholder:g,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,x.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(c.A,{})}),endAdornment:(0,x.jsx)(a.A,{title:"Clear",children:(0,x.jsx)(l.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,x.jsx)(d.A,{})})})})}},58355:(e,t,r)=>{"use strict";var o=r(39744);t.A=void 0;var i=o(r(24956)),n=r(65908);t.A=(0,i.default)((0,n.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},58691:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(85672);var o=r(48738),i=r(12010),n=r(62217),s=r(65908);function a(e){let{size:t=70,imgSize:r=40,alt:a="loader"}=e;return(0,s.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,s.jsx)(i.A,{size:t}),(0,s.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,s.jsx)("img",{src:n,alt:a,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var o=r(22555),i=r(85672),n=r(71392),s=r(97043),a=r(17488),l=r(86270),c=r(66157),d=r(48952),h=r(65908);const x=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:x,setPage:u,sx:p,textfeildSx:g,textfieldSx:A,pill:m=!1,accentColor:f="#6366f1",icon:v,placeholder:j="Select Zone",paperComponent:b}=e;const[S,y]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.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)),y(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const w=e=>"".concat(f).concat(e),k=w("26"),C=w("18"),P=m?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:f,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},W=m&&(0,h.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,h.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:f,transition:"background-color 0.15s, color 0.15s"},children:v||(0,h.jsx)(d.HPi,{size:14})})});return(0,h.jsx)(a.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:b,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===x||void 0===x||x(""),null===u||void 0===u||u(0)):t&&(null===r||void 0===r||r(t.applocationid),null===x||void 0===x||x(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>m?(0,h.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:j,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:W}),sx:(0,o.A)((0,o.A)({},P),A||g||{})})):(0,h.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||g||{})}))})}))},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+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIH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FqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},68320:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var o=r(48149),i=r(59363);function n(e,t){return(0,i.t)(e,o.$,t)}},75153:function(e){e.exports=(()=>{return e={705:e=>{e.exports=function(e,t){const r=[];return 0===t.length?r.push({text:e,highlight:!1}):t[0][0]>0&&r.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((o,i)=>{const n=o[0],s=o[1];r.push({text:e.slice(n,s),highlight:!0}),i===t.length-1?s<e.length&&r.push({text:e.slice(s,e.length),highlight:!1}):s<t[i+1][0]&&r.push({text:e.slice(s,t[i+1][0]),highlight:!1})})),r}}},t={},function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}(705);var e,t})()},96646:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var o=r(50755),i=r(1596),n=r(91834),s=r(71392),a=r(65908);const l=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,a.jsx)(a.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,a.jsxs)(o.A,{children:[(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,a.jsx)(i.A,{children:(0,a.jsxs)(s.A,{spacing:.5,children:[(0,a.jsx)(n.A,{variant:"text",width:100}),(0,a.jsx)(n.A,{variant:"text",width:80})]})},t))),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"text",width:150})}),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,a.jsx)(i.A,{align:"center",children:(0,a.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,a.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,a.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]);