PageSourceSearch

https://simulahealth-2a3be.web.app/_next/static/chunks/pages/app/customer/customer-list-825c62f2dd4b4ed4.js

js simulahealth-2a3be.web.app collected 2026-10-03 12:36:13 UTC 11,640 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6506],{41733:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=l},70422:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)([(0,s.jsx)("path",{d:"M5 18.08V19h.92l9.06-9.06-.92-.92z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83zM3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19z"},"1")],"EditTwoTone");t.Z=l},22467:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)([(0,s.jsx)("path",{d:"M14 7H8v14h11v-9h-5z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zm4 16H8V7h6v5h5v9z"},"1")],"FileCopyTwoTone");t.Z=l},9126:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)((0,s.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterListTwoTone");t.Z=l},64009:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)([(0,s.jsx)("path",{d:"M8 5h8v3H8z",opacity:".3"},"0"),(0,s.jsx)("circle",{cx:"18",cy:"11.5",r:"1"},"1"),(0,s.jsx)("path",{d:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 14H8v-4h8v4zm4-4h-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4z"},"2"),(0,s.jsx)("path",{d:"M6 13h12v2h2v-4c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4h2v-2zm12-2.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z",opacity:".3"},"3")],"PrintTwoTone");t.Z=l},51201:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)((0,s.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=l},35433:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),s=i(85893),l=(0,n.default)([(0,s.jsx)("path",{d:"M12 6c-3.79 0-7.17 2.13-8.82 5.5C4.83 14.87 8.21 17 12 17s7.17-2.13 8.82-5.5C19.17 8.13 15.79 6 12 6zm0 10c-2.48 0-4.5-2.02-4.5-4.5S9.52 7 12 7s4.5 2.02 4.5 4.5S14.48 16 12 16z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 13c-3.79 0-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6s7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17zm0-10c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7zm0 7c-1.38 0-2.5-1.12-2.5-2.5S10.62 9 12 9s2.5 1.12 2.5 2.5S13.38 14 12 14z"},"1")],"VisibilityTwoTone");t.Z=l},26280:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var r=i(63366),n=i(87462),s=i(94780),l=i(63961),a=i(67294),c=i(49990),o=i(82066),d=i(85893),h=(0,o.Z)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),u=i(90948),x=i(71657),p=i(98216),Z=i(1588),v=i(34867);function m(e){return(0,v.Z)("MuiTableSortLabel",e)}let j=(0,Z.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),g=["active","children","className","direction","hideSortIcon","IconComponent"],f=e=>{let{classes:t,direction:i,active:r}=e,n={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,p.Z)(i)}`]};return(0,s.Z)(n,m,t)},b=(0,u.ZP)(c.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${j.icon}`]:{opacity:.5}},[`&.${j.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${j.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),z=(0,u.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.icon,t[`iconDirection${(0,p.Z)(i.direction)}`]]}})(({theme:e,ownerState:t})=>(0,n.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"})),S=a.forwardRef(function(e,t){let i=(0,x.Z)({props:e,name:"MuiTableSortLabel"}),{active:s=!1,children:a,className:c,direction:o="asc",hideSortIcon:u=!1,IconComponent:p=h}=i,Z=(0,r.Z)(i,g),v=(0,n.Z)({},i,{active:s,direction:o,hideSortIcon:u,IconComponent:p}),m=f(v);
1return(0,d.jsxs)(b,(0,n.Z)({className:(0,l.Z)(m.root,c),component:"span",disableRipple:!0,ownerState:v,ref:t},Z,{children:[a,u&&!s?null:(0,d.jsx)(z,{as:p,className:(0,l.Z)(m.icon),ownerState:v})]}))});var y=S},13113:function(e,t){"use strict";t.Z={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},5473:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/customer/customer-list",function(){return i(47746)}])},47746:function(e,t,i){"use strict";i.r(t);var r=i(85893),n=i(67294),s=i(2734),l=i(10155),a=i(15861),c=i(87357),o=i(21023),d=i(93946),h=i(53184),u=i(53816),x=i(98102),p=i(69368),Z=i(26280),v=i(44267),m=i(86886),j=i(50135),g=i(87109),f=i(72882),b=i(7906),z=i(295),S=i(36125),y=i(13113),C=i(95312),w=i(58823),M=i(33430),L=i(50011),P=i(8781),T=i(2634),H=i(41733),k=i(9126),V=i(64009),_=i(22467),D=i(51201),N=i(35433),E=i(70422);function I(e,t,i){return t[i]<e[i]?-1:t[i]>e[i]?1:0}let R=(e,t)=>"desc"===e?(e,i)=>I(e,i,t):(e,i)=>-I(e,i,t),O=[{id:"name",numeric:!1,label:"Customer Name",align:"left"},{id:"location",numeric:!0,label:"Location",align:"left"},{id:"orders",numeric:!0,label:"Orders",align:"right"},{id:"date",numeric:!0,label:"Registered",align:"center"},{id:"status",numeric:!1,label:"Status",align:"center"}],A=e=>{let{numSelected:t}=e;return(0,r.jsxs)(l.Z,{sx:{p:0,pl:1,pr:1,...t>0&&{color:e=>e.palette.secondary.main}},children:[t>0?(0,r.jsxs)(a.Z,{color:"inherit",variant:"h4",children:[t," Selected"]}):(0,r.jsx)(a.Z,{variant:"h6",id:"tableTitle",children:"Nutrition"}),(0,r.jsx)(c.Z,{sx:{flexGrow:1}}),t>0&&(0,r.jsx)(o.Z,{title:"Delete",children:(0,r.jsx)(d.Z,{size:"large","aria-label":"delete",children:(0,r.jsx)(H.Z,{fontSize:"small"})})})]})};function $(e){let{onSelectAllClick:t,order:i,orderBy:n,numSelected:s,rowCount:l,onRequestSort:a,selected:o}=e,d=e=>t=>{a(t,e)};return(0,r.jsx)(h.Z,{children:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(x.Z,{padding:"checkbox",sx:{pl:3},children:(0,r.jsx)(p.Z,{color:"primary",indeterminate:s>0&&s<l,checked:l>0&&s===l,onChange:t,inputProps:{"aria-label":"select all desserts"}})}),s>0&&(0,r.jsx)(x.Z,{padding:"none",colSpan:6,children:(0,r.jsx)(A,{numSelected:o.length})}),s<=0&&O.map(e=>(0,r.jsx)(x.Z,{align:e.align,padding:e.disablePadding?"none":"normal",sortDirection:n===e.id&&i,children:(0,r.jsxs)(Z.Z,{active:n===e.id,direction:n===e.id?i:"asc",onClick:d(e.id),children:[e.label,n===e.id?(0,r.jsx)(c.Z,{component:"span",sx:y.Z,children:"desc"===i?"sorted descending":"sorted ascending"}):null]})},e.id)),s<=0&&(0,r.jsx)(x.Z,{sortDirection:!1,align:"center",sx:{pr:3},children:"Action"})]})})}let F=()=>{let e=(0,s.Z)(),t=(0,P.I0)(),[i,l]=n.useState("asc"),[c,h]=n.useState("calories"),[Z,y]=n.useState([]),[C,H]=n.useState(0),[I,O]=n.useState(5),[A,F]=n.useState(""),[X,q]=n.useState([]),{customers:B}=(0,P.v9)(e=>e.customer);n.useEffect(()=>{t((0,T.OL)())},[t]),n.useEffect(()=>{q(B)},[B]);let G=e=>{let t=null==e?void 0:e.target.value;if(F(t||""),t){let e=X.filter(e=>{let i=!0,r=!1;return["name","email","location","orders"].forEach(i=>{e[i].toString().toLowerCase().includes(t.toString().toLowerCase())&&(r=!0)}),r||(i=!1),i});q(e)}else q(B)},W=(e,t)=>{l(c===t&&"asc"===i?"desc":"asc"),h(t)},J=e=>{if(e.target.checked){if(Z.length>0)y([]);else{let e=X.map(e=>e.name);y(e)}return}y([])},K=(e,t)=>{let i=Z.indexOf(t),r=[];-1===i?r=r.concat(Z,t):0===i?r=r.concat(Z.slice(1)):i===Z.length-1?r=r.concat(Z.slice(0,-1)):i>0&&(r=r.concat(Z.slice(0,i),Z.slice(i+1))),y(r)},Q=(e,t)=>{H(t)},U=e=>{(null==e?void 0:e.target.value)&&O(parseInt(null==e?void 0:e.target.value,10)),H(0)},Y=e=>-1!==Z.indexOf(e),ee=C>0?Math.max(0,(1+C)*I-X.length):0;return(0,r.jsx)(w.Z,{title:"Customer List",children:(0,r.jsxs)(L.Z,{title:"Customer List",content:!1,children:[(0,r.jsx)(v.Z,{children:(0,r.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,r.jsx)(m.ZP,{item:!0,xs:12,sm:6,children:(0,r.jsx)(j.Z,{InputProps:{startAdornment:(0,r.jsx)(g.Z,{position:"start",children:(0,r.jsx)(D.Z,{fontSize:"small"})})},onChange:G,placeholder:"Search Customer",value:A,size:"small"})}),(0,r.jsxs)(m.ZP,{item:!0,xs:12,sm:6,sx:{textAlign:"right"},children:[(0,r.jsx)(o.Z,{title:"Copy",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(_.Z,{})})}),(0,r.jsx)(o.Z,{title:"Print",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(V.Z,{})})}),(0,r.jsx)(o.Z,{title:"Filter",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(k.Z,{})})})]})]})}),(0,r.jsx)(f.Z,{children:(0,r.jsxs)(b.Z,{sx:{minWidth:750},"aria-labelledby":"tableTitle",children:[(0,r.jsx)($,{theme:e,numSelected:Z.length,order:i,orderBy:c,onSelectAllClick:J,onRequestSort:W,rowCount:X.length,selected:Z}),(0,r.jsxs)(z.Z,{children:[(function(e,t){let i=e.map((e,t)=>[e,t]);return i.sort((e,i)=>{let r=t(e[0],i[0]);return 0!==r?r:e[1]-i[1]}),i.map(e=>e[0])})(X,R(i,c)).slice(C*I,C*I+I).map((t,i)=>{if("number"==typeof t)return null;let n=Y(t.name),s="enhanced-table-checkbox-".concat(i);return(0,r.jsxs)(u.Z,{hover:!0,role:"checkbox","aria-checked":n,tabIndex:-1,selected:n,children:[(0,r.jsx)(x.Z,{padding:"checkbox",sx:{pl:3},onClick:e=>K(e,t.name),children:(0,r.jsx)(p.Z,{color:"primary",checked:n,inputProps:{"aria-labelledby":s}})}),(0,r.jsxs)(x.Z,{component:"th",id:s,scope:"row",onClick:e=>K(e,t.name),sx:{cursor:"pointer"},children:[(0,r.jsxs)(a.Z,{variant:"subtitle1",sx:{color:"dark"===e.palette.mode?"grey.600":"grey.900"},children:[" ",t.name," "]}),(0,r.jsxs)(a.Z,{variant:"caption",children:[" ",t.email," "]})]}),(0,r.jsx)(x.Z,{children:t.location}),(0,r.jsx)(x.Z,{align:"right",children:t.orders}),(0,r.jsx)(x.Z,{align:"center",children:t.date}),(0,r.jsxs)(x.Z,{align:"center",children:[1===t.status&&(0,r.jsx)(M.Z,{label:"Complete",size:"small",chipcolor:"success"}),2===t.status&&(0,r.jsx)(M.Z,{label:"Processing",size:"small",chipcolor:"orange"}),3===t.status&&(0,r.jsx)(M.Z,{label:"Confirm",size:"small",chipcolor:"primary"})]}),(0,r.jsxs)(x.Z,{align:"center",sx:{pr:3},children:[(0,r.jsx)(d.Z,{color:"primary",size:"large","aria-label":"view",children:(0,r.jsx)(N.Z,{sx:{fontSize:"1.3rem"}})}),(0,r.jsx)(d.Z,{color:"secondary",size:"large","aria-label":"delete",children:(0,r.jsx)(E.Z,{sx:{fontSize:"1.3rem"}})})]})]},i)}),ee>0&&(0,r.jsx)(u.Z,{style:{height:53*ee},children:(0,r.jsx)(x.Z,{colSpan:6})})]})]})}),(0,r.jsx)(S.Z,{rowsPerPageOptions:[5,10,25],component:"div",count:X.length,rowsPerPage:I,page:C,onPageChange:Q,onRowsPerPageChange:U})]})})};F.getLayout=function(e){return(0,r.jsx)(C.Z,{children:e})},t.default=F}},function(e){e.O(0,[9584,7819,7520,8220,350,3394,676,8246,5312,9774,2888,179],function(){return e(e.s=5473)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.