PageSourceSearch

https://app.zenithdata.org/static/js/50.f31cd873.chunk.js

js zenithdata.org collected 2026-09-24 15:12:01 UTC 23,324 bytes, 2 lines download raw bytes

1(this.webpackJsonpadexdeveloper=this.webpackJsonpadexdeveloper||[]).push([[50],{1289:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(2),r=n(24),i=n(116),c=n.n(i),o=n(136),l=n(300),s=n(1182),d=n(25),j=n(1296),b=n(0),h=["links","activeLast"];function u(e){var t=e.links,n=e.activeLast,i=void 0!==n&&n,c=Object(r.a)(e,h),s=t[t.length-1].name,d=t.map((function(e){return Object(b.jsx)(O,{link:e},e.name)})),u=t.map((function(e){return Object(b.jsx)("div",{children:e.name!==s?Object(b.jsx)(O,{link:e}):Object(b.jsx)(l.a,{variant:"body2",sx:{maxWidth:260,overflow:"hidden",whiteSpace:"nowrap",color:"text.disabled",textOverflow:"ellipsis"},children:s})},e.name)}));return Object(b.jsx)(j.a,Object(a.a)(Object(a.a)({separator:Object(b.jsx)(o.a,{component:"span",sx:{width:4,height:4,borderRadius:"50%",bgcolor:"text.disabled"}})},c),{},{children:i?d:u}))}function O(e){var t=e.link,n=t.href,a=t.name,r=t.icon;return Object(b.jsxs)(s.a,{variant:"body2",component:d.b,to:n||"#",sx:{lineHeight:2,display:"flex",alignItems:"center",color:"text.primary","& > div":{display:"inherit"}},children:[r&&Object(b.jsx)(o.a,{sx:{mr:1,"& svg":{width:20,height:20}},children:r}),a]},a)}var x=["links","action","heading","moreLink","sx"];function g(e){var t=e.links,n=e.action,i=e.heading,d=e.moreLink,j=void 0===d?[]:d,h=e.sx,O=Object(r.a)(e,x);return Object(b.jsxs)(o.a,{sx:Object(a.a)({mb:5},h),children:[Object(b.jsxs)(o.a,{sx:{display:"flex",alignItems:"center"},children:[Object(b.jsxs)(o.a,{sx:{flexGrow:1},children:[Object(b.jsx)(l.a,{variant:"h4",gutterBottom:!0,children:i}),Object(b.jsx)(u,Object(a.a)({links:t},O))]}),n&&Object(b.jsx)(o.a,{sx:{flexShrink:0},children:n})]}),Object(b.jsx)(o.a,{sx:{mt:2},children:c()(j)?Object(b.jsx)(s.a,{href:j,target:"_blank",rel:"noopener",variant:"body2",children:j}):j.map((function(e){return Object(b.jsx)(s.a,{noWrap:!0,href:e,variant:"body2",target:"_blank",rel:"noopener",sx:{display:"table"},children:e},e)}))})]})}},1290:function(e,t,n){"use strict";var a=n(4),r=n(2),i=n(6),c=n(1251),o=Object(i.a)(c.a,{shouldForwardProp:function(e){return"stretchStart"!==e}})((function(e){var t=e.stretchStart,n=e.theme;return{"& .MuiOutlinedInput-root":Object(r.a)({transition:n.transitions.create(["box-shadow","width"],{easing:n.transitions.easing.easeInOut,duration:n.transitions.duration.shorter}),"&.Mui-focused":{boxShadow:n.customShadows.z12}},t&&{width:t,"&.Mui-focused":Object(a.a)({boxShadow:n.customShadows.z12},n.breakpoints.up("sm"),{width:t+60})}),"& fieldset":{borderWidth:"1px !important",borderColor:"".concat(n.palette.grey[50032]," !important")}}}));t.a=o},1291:function(e,t,n){"use strict";function a(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.d(t,"a",(function(){return a}))},1292:function(e,t,n){"use strict";n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return D})),n.d(t,"b",(function(){return P})),n.d(t,"e",(function(){return z})),n.d(t,"f",(function(){return T})),n.d(t,"a",(function(){return E})),n.d(t,"h",(function(){return U})),n.d(t,"g",(function(){return H})),n.d(t,"d",(function(){return Q})),n.d(t,"c",(function(){return q}));var a=n(2),r=n(1761),i=n(1313),c=n(1314),o=n(1256),l=n(1440),s=n(136),d=n(0),j={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function b(e){var t=e.order,n=e.orderBy,b=e.rowCount,h=e.headLabel,u=e.numSelected,O=e.onRequestSort,x=e.onSelectAllClick;return Object(d.jsx)(r.a,{children:Object(d.jsxs)(i.a,{children:[Object(d.jsx)(c.a,{padding:"checkbox",children:Object(d.jsx)(o.a,{indeterminate:u>0&&u<b,checked:b>0&&u===b,onChange:x})}),h.map((function(e){return Object(d.jsx)(c.a,{align:e.alignRight?"right":"left",sortDirection:n===e.id&&t,children:Object(d.jsxs)(l.a,{hideSortIcon:!0,active:n===e.id,direction:n===e.id?t:"asc",onClick:(r=e.id,function(e){O(e,r)}),children:[e.label,n===e.id?Object(d.jsx)(s.a,{sx:Object(a.a)({},j),children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},e.id);var r}))]})})}var h=n(6),u=n(54),O=n(1276),x=n(300),g=n(1185),p=n(1285),m=n(1178),f=n(1183),v=n(32),w=n(1290),y=n(1295),k=Object(h.a)(O.a)((function(e){return{height:96,display:"flex",justifyContent:"space-between",padding:e.theme.spacing(0,1,0,3)}}));function S(e){var t=e.numSelected,n=e.onFilterName,r=e.onDeleteUsers,i=e.onRoleUsers,c="light"===Object(u.a)().palette.mode;return Object(d.jsxs)(k,{sx:Object(a.a)({},t>0&&{color:c?"primary.main":"text.primary",bgcolor:c?"primary.lighter":"primary.dark"}),children:[t>0?Object(d.jsxs)(x.a,{component:"div",variant:"subtitle1",children:[t," selected"]}):Object(d.jsxs)(g.a,{direction:"row",spacing:1.5,children:[Object(d.jsx)(w.a,{select:!0,onChange:function(e){return i(e.target.value)},label:"Select Role",fullWidth:!0,SelectProps:{native:!0},children:null===y.a||void 0===y.a?void 0:y.a.map((function(e){return Object(d.jsx)("option",{value:null===e||void 0===e?void 0:e.code,children:null===e||void 0===e?void 0:e.label},null===e||void 0===e?void 0:e.label)}))}),Object(d.jsx)(w.a,{stretchStart:240,onChange:function(e){return n(e.target.value)},placeholder:"Search username",InputProps:{startAdornment:Object(d.jsx)(p.a,{position:"start",children:Object(d.jsx)(v.a,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}})]}),t>0?Object(d.jsx)(m.a,{title:"Delete",children:Object(d.jsx)(f.a,{onClick:r,children:Object(d.jsx)(v.a,{icon:"eva:tras
1h-2-outline"})})}):Object(d.jsx)(m.a,{title:"Filter list",children:Object(d.jsx)(f.a,{children:Object(d.jsx)(v.a,{icon:"ic:round-filter-list"})})})]})}var C=n(14),R=n(1441),F=n(1),_=n(25),I=n(1271),L=n(5),B=n(88);function D(e){var t=e.onDelete,n=e.userName,r=Object(F.useState)(null),i=Object(C.a)(r,2),c=i[0],o=i[1],l={mr:2,width:20,height:20};return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)(f.a,{onClick:function(e){o(e.currentTarget)},children:Object(d.jsx)(v.a,{icon:"eva:more-vertical-fill",width:20,height:20})}),Object(d.jsxs)(B.a,{open:Boolean(c),anchorEl:c,onClose:function(){o(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}},children:[Object(d.jsxs)(I.a,{onClick:t,sx:{color:"error.main"},children:[Object(d.jsx)(v.a,{icon:"eva:trash-2-outline",sx:Object(a.a)({},l)}),"Delete"]}),"no_edit"!==n&&Object(d.jsxs)(I.a,{component:_.b,to:"".concat(L.b.user.root,"/").concat(Object(R.a)(n),"/edit"),children:[Object(d.jsx)(v.a,{icon:"eva:edit-fill",sx:Object(a.a)({},l)}),"Edit"]})]})]})}var M=Object(h.a)(O.a)((function(e){return{height:96,display:"flex",justifyContent:"space-between",padding:e.theme.spacing(0,1,0,3)}}));function P(e){var t=e.numSelected,n=e.onFilterName,r=e.onDeleteUsers,i="light"===Object(u.a)().palette.mode;return Object(d.jsxs)(M,{sx:Object(a.a)({},t>0&&{color:i?"primary.main":"text.primary",bgcolor:i?"primary.lighter":"primary.dark"}),children:[t>0?Object(d.jsxs)(x.a,{component:"div",variant:"subtitle1",children:[t," selected"]}):Object(d.jsx)(g.a,{direction:"row",spacing:1.5,children:Object(d.jsx)(w.a,{stretchStart:240,onChange:function(e){return n(e.target.value)},placeholder:"Search username",InputProps:{startAdornment:Object(d.jsx)(p.a,{position:"start",children:Object(d.jsx)(v.a,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}})}),t>0?Object(d.jsx)(m.a,{title:"Delete",children:Object(d.jsx)(f.a,{onClick:r,children:Object(d.jsx)(v.a,{icon:"eva:trash-2-outline"})})}):Object(d.jsx)(m.a,{title:"Filter list",children:Object(d.jsx)(f.a,{children:Object(d.jsx)(v.a,{icon:"ic:round-filter-list"})})})]})}function z(e){var t=e.userName,n=e.route,r=Object(F.useState)(null),i=Object(C.a)(r,2),c=i[0],o=i[1];return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)(f.a,{onClick:function(e){o(e.currentTarget)},children:Object(d.jsx)(v.a,{icon:"eva:more-vertical-fill",width:20,height:20})}),Object(d.jsx)(B.a,{open:Boolean(c),anchorEl:c,onClose:function(){o(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}},children:Object(d.jsxs)(I.a,{component:_.b,to:"".concat(L.b.plan.root,"/").concat(Object(R.a)(t),"/").concat(n),children:[Object(d.jsx)(v.a,{icon:"eva:edit-fill",sx:Object(a.a)({},{mr:2,width:20,height:20})}),"Edit"]})})]})}var N=Object(h.a)(O.a)((function(e){return{height:96,display:"flex",justifyContent:"space-between",padding:e.theme.spacing(0,1,0,3)}}));function T(e){var t=e.numSelected,n=e.onFilterName,r=e.onDeleteUsers,i="light"===Object(u.a)().palette.mode;return Object(d.jsxs)(N,{sx:Object(a.a)({},t>0&&{color:i?"primary.main":"text.primary",bgcolor:i?"primary.lighter":"primary.dark"}),children:[t>0?Object(d.jsxs)(x.a,{component:"div",variant:"subtitle1",children:[t," selected"]}):Object(d.jsx)(g.a,{direction:"row",spacing:1.5,children:Object(d.jsx)(w.a,{stretchStart:240,onChange:function(e){return n(e.target.value)},placeholder:"Search ...",InputProps:{startAdornment:Object(d.jsx)(p.a,{position:"start",children:Object(d.jsx)(v.a,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}})}),t>0?Object(d.jsx)(m.a,{title:"Delete",children:Object(d.jsx)(f.a,{onClick:r,children:Object(d.jsx)(v.a,{icon:"eva:trash-2-outline"})})}):Object(d.jsx)(m.a,{title:"Filter list",children:Object(d.jsx)(f.a,{children:Object(d.jsx)(v.a,{icon:"ic:round-filter-list"})})})]})}var A={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function E(e){var t=e.order,n=e.orderBy,o=e.headLabel,j=e.onRequestSort;return Object(d.jsx)(r.a,{children:Object(d.jsx)(i.a,{children:o.map((function(e){return Object(d.jsx)(c.a,{align:e.alignRight?"right":"left",sortDirection:n===e.id&&t,children:Object(d.jsxs)(l.a,{hideSortIcon:!0,active:n===e.id,direction:n===e.id?t:"asc",onClick:(r=e.id,function(e){j(e,r)}),children:[e.label,n===e.id?Object(d.jsx)(s.a,{sx:Object(a.a)({},A),children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},e.id);var r}))})})}var W={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function U(e){var t=e.order,n=e.orderBy,o=e.headLabel;return Object(d.jsx)(r.a,{children:Object(d.jsx)(i.a,{children:o.map((function(e){return Object(d.jsx)(c.a,{align:e.alignRight?"right":"left",sortDirection:n===e.id&&t,children:Object(d.jsxs)(l.a,{hideSortIcon:!0,active:n===e.id,direction:n===e.id?t:"asc",children:[e.label,n===e.id?Object(d.jsx)(s.a,{sx:Object(a.a)({},W),children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},e.id)}))})})}function H(e){var t=e.onSuccess,n=e.onFail,r=e.plan_status,i=Object(F.useState)(null),c=Object(C.a)(i,2),o=c[0],l=c[1],s={mr:2,width:20,height:20};return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)(f.a,{onClick:function(e){l(e.currentTarget)},children:Object(d.jsx)(v.a,{icon:"eva:more-vertical-fill",width:20,height:20})}
1),Object(d.jsxs)(B.a,{open:Boolean(o),anchorEl:o,onClose:function(){l(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}},children:[0===r&&Object(d.jsxs)(d.Fragment,{children:[Object(d.jsxs)(I.a,{onClick:t,sx:{color:"success.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:white-heavy-check-mark",sx:Object(a.a)({},s)}),"Success"]}),Object(d.jsxs)(I.a,{onClick:n,sx:{color:"warning.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:cross-mark-button",sx:Object(a.a)({},s)}),"Refund (fail)"]})]}),1===r&&Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)(I.a,{onClick:n,sx:{color:"error.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:cross-mark-button",sx:Object(a.a)({},s)}),"Refund (fail)"]})}),2===r&&Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)(I.a,{onClick:t,sx:{color:"success.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:white-heavy-check-mark",sx:Object(a.a)({},s)}),"success"]})})]})]})}function Q(e){var t=e.onSuccess,n=e.onFail,r=e.plan_status,i=Object(F.useState)(null),c=Object(C.a)(i,2),o=c[0],l=c[1],s={mr:2,width:20,height:20};return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)(f.a,{onClick:function(e){l(e.currentTarget)},children:Object(d.jsx)(v.a,{icon:"eva:more-vertical-fill",width:20,height:20})}
1),Object(d.jsxs)(B.a,{open:Boolean(o),anchorEl:o,onClose:function(){l(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}},children:[0===r&&Object(d.jsxs)(d.Fragment,{children:[Object(d.jsxs)(I.a,{onClick:t,sx:{color:"success.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:white-heavy-check-mark",sx:Object(a.a)({},s)}),"Approve"]}),Object(d.jsxs)(I.a,{onClick:n,sx:{color:"warning.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:cross-mark-button",sx:Object(a.a)({},s)}),"Fail"]})]}),1===r&&Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)(I.a,{onClick:n,sx:{color:"error.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:cross-mark-button",sx:Object(a.a)({},s)}),"Fail"]})}),2===r&&Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)(I.a,{onClick:t,sx:{color:"success.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:white-heavy-check-mark",sx:Object(a.a)({},s)}),"Approve"]})})]})]})}function q(e){var t=e.onFail,n=e.plan_status,r=Object(F.useState)(null),i=Object(C.a)(r,2),c=i[0],o=i[1];return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)(f.a,{onClick:function(e){o(e.currentTarget)},children:Object(d.jsx)(v.a,{icon:"eva:more-vertical-fill",width:20,height:20})}),Object(d.jsx)(B.a,{open:Boolean(c),anchorEl:c,onClose:function(){o(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},arrow:"right-top",sx:{mt:-1,width:160,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}},children:0===n&&Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)(I.a,{onClick:t,sx:{color:"warning.main"},children:[Object(d.jsx)(v.a,{icon:"emojione:cross-mark-button",sx:Object(a.a)({},{mr:2,width:20,height:20})}),"Refund (fail)"]})})})]})}},1293:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(24),r=n(2),i=n(6),c=n(63),o=n(0),l=["color","variant","children"],s=Object(i.a)("span")((function(e){var t=e.theme,n=e.ownerState,a="light"===t.palette.mode,i=n.color,o=n.variant;return Object(r.a)({height:22,minWidth:22,lineHeight:0,borderRadius:8,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:t.spacing(0,1),color:t.palette.grey[800],fontSize:t.typography.pxToRem(12),fontFamily:t.typography.fontFamily,backgroundColor:t.palette.grey[300],fontWeight:t.typography.fontWeightBold},"default"!==i?Object(r.a)(Object(r.a)(Object(r.a)({},"filled"===o&&Object(r.a)({},function(e){return{color:t.palette[e].contrastText,backgroundColor:t.palette[e].main}}(i))),"outlined"===o&&Object(r.a)({},function(e){return{color:t.palette[e].main,backgroundColor:"transparent",border:"1px solid ".concat(t.palette[e].main)}}(i))),"ghost"===o&&Object(r.a)({},function(e){return{color:t.palette[e][a?"dark":"light"],backgroundColor:Object(c.a)(t.palette[e].main,.16)}}(i))):Object(r.a)(Object(r.a)({},"outlined"===o&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"1px solid ".concat(t.palette.grey[50032])}),"ghost"===o&&{color:a?t.palette.text.secondary:t.palette.common.white,backgroundColor:t.palette.grey[50016]}))}));function d(e){var t=e.color,n=void 0===t?"default":t,i=e.variant,c=void 0===i?"ghost":i,d=e.children,j=Object(a.a)(e,l);return Object(o.jsx)(s,Object(r.a)(Object(r.a)({ownerState:{color:n,variant:c}},j),{},{children:d}))}},1294:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(2),r=n(24),i=n(1262),c=n(300),o=n(0),l=["searchQuery"];function s(e){var t=e.searchQuery,n=void 0===t?"":t,s=Object(r.a)(e,l);return n?Object(o.jsxs)(i.a,Object(a.a)(Object(a.a)({},s),{},{children:[Object(o.jsx)(c.a,{gutterBottom:!0,align:"center",variant:"subtitle1",children:"Not found"}),Object(o.jsxs)(c.a,{variant:"body2",align:"center",children:["No results found for \xa0",Object(o.jsxs)("strong",{children:['"',n,'"']}),". Try checking for typos or using complete words."]})]})):Object(o.jsx)(c.a,{variant:"body2",children:"Your Data Will Show Here"})}},1300:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
1));var a=n(10),r=n(1189),i=n(1291);function c(e){return Object(i.a)(e.toLowerCase())}function o(e,t){return void 0===t&&(t={}),Object(r.a)(e,Object(a.a)({delimiter:" ",transform:c},t))}},1301:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(10),r=n(1189),i=n(1291);function c(e,t){var n=e.toLowerCase();return 0===t?Object(i.a)(n):n}function o(e,t){return void 0===t&&(t={}),Object(r.a)(e,Object(a.a)({delimiter:" ",transform:c},t))}},1660:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return T}));var a=n(18),r=n(28),i=n(14),c=n(1300),o=n(1301),l=n(1),s=n(25),d=n(54),j=n(1278),b=n(1287),h=n(1678),u=n(1764),O=n(1315),x=n(1321),g=n(1762),p=n(1313),m=n(1314),f=n(300),v=n(1180),w=n(1282),y=n(1691),k=n(1280),S=n(5),C=n(99),R=n(405),F=n(1293),_=n(80),I=n(1294),L=n(1289),B=n(219),D=n(1292),M=n(34),P=n(0),z=[{id:"referrence",label:"Referrence",alignRight:!1},{id:"disco_name",label:"Disco Name",alignRight:!1},{id:"meter_type",label:"Meter Type",alignRight:!1},{id:"meter_number",label:"Meter Number",alignRight:!1},{id:"customer_name",label:"Customer Name",alignRight:!1},{id:"amount",label:"Amount",alignRight:!1},{id:"charges",label:"charges",alignRight:!1},{id:"oldbal",label:"Old Bal",alignRight:!1},{id:"newbal",label:"New Bal",alignRight:!1},{id:"purchased_code",label:"Purchased Code",alignRight:!1},{id:"system",label:"System",alignRight:!1},{id:"date",label:"Purchased Date",alignRight:!1},{id:"plan_status",label:"Plan Status",alignRight:!1},{id:"invioce",label:"INVIOCE",alignRight:!1}],N=[{value:"ALL",label:"ALL"},{value:1,label:"success"},{value:0,label:"processing"},{value:2,label:"fail"}];function T(){var e=Object(d.a)(),t=Object(C.a)().themeStretch,n=Object(l.useState)([]),T=Object(i.a)(n,2),A=T[0],E=T[1],W=Object(l.useState)(0),U=Object(i.a)(W,2),H=U[0],Q=U[1],q=Object(l.useState)(!0),G=Object(i.a)(q,2),J=G[0],V=G[1],Y=Object(l.useState)(0),K=Object(i.a)(Y,2),X=K[0],Z=K[1],$=Object(l.useState)(""),ee=Object(i.a)($,2),te=ee[0],ne=ee[1],ae=Object(l.useState)(5),re=Object(i.a)(ae,2),ie=re[0],ce=re[1],oe=Object(l.useState)(!1),le=Object(i.a)(oe,2),se=le[0],de=le[1],je=Object(l.useState)(!1),be=Object(i.a)(je,2),he=be[0],ue=be[1],Oe=Object(l.useState)("ALL"),xe=Object(i.a)(Oe,2),ge=xe[0],pe=xe[1],me=window.localStorage.getItem("accessToken");Object(l.useEffect)((function(){fe(H,ie,ge,te)}),[]);var fe=function(){var e=Object(r.a)(Object(a.a)().mark((function e(t){var n,r,i,c,o,l,s,d,j,b,h,u=arguments;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:5,r=u.length>2?u[2]:void 0,i=u.length>3?u[3]:void 0,c=t>H?t+1:t,V(!0),e.prev=5,e.next=8,M.a.get("/api/system/all/trans/".concat(me,"/secure?page=").concat(c,"&adex=").concat(n,"&status=").concat(r,"&search=").concat(i,"&database_name=bill_trans"));case 8:h=e.sent,E(null===(o=h.data)||void 0===o||null===(l=o.bill_trans)||void 0===l?void 0:l.data),Z(null===(s=h.data)||void 0===s||null===(d=s.bill_trans)||void 0===d?void 0:d.total),V(!1),Q(t),ue(0===(null===(j=h.data)||void 0===j||null===(b=j.bill_trans)||void 0===b?void 0:b.total)),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(5),V(!1),E([]);case 20:case"end":return e.stop()}}),e,null,[[5,16]])})));return function(t){return e.apply(this,arguments)}}(),ve=function(){var e=Object(r.a)(Object(a.a)().mark((function e(t){return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(t),Q(0),t?fe(H,ie,ge,t):(fe(H,ie,ge,t),ue(!1),V(!1));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(P.jsx)(R.a,{title:"Transaction:  Electricity Bill",children:Object(P.jsxs)(j.a,{maxWidth:!t&&"lg",children:[Object(P.jsx)(L.a,{heading:"Electricity Subscription Transactions",links:[{name:"Dashboard",href:S.d.general.app},{name:"List"}]}),Object(P.jsxs)(b.a,{children:[Object(P.jsx)(h.a,{value:ge,scrollButtons:"auto",variant:"scrollable",allowScrollButtonsMobile:!0,onChange:function(e,t){pe(t),fe(H,ie,t,te)},children:N.map((function(e){return Object(P.jsx)(u.a,{disableRipple:!0,label:Object(c.a)(e.label),value:e.value},e.value)}))}),Object(P.jsx)(D.f,{filterName:te,onFilterName:ve}),Object(P.jsx)(_.a,{children:Object(P.jsx)(O.a,{sx:{minWidth:800},children:Object(P.jsxs)(x.a,{size:se?"small":"medium",children:[Object(P.jsx)(D.h,{order:"asc",orderBy:"id",headLabel:z,rowCount:A.length}
1),J?Object(P.jsx)(p.a,{children:Object(P.jsx)(m.a,{align:"center",colSpan:5,sx:{py:3},children:Object(P.jsx)(f.a,{variant:"body2",children:"Loading ..."})})}):Object(P.jsx)(g.a,{children:A.map((function(t){var n=t.system,a=t.customer_name,r=t.amount,i=t.oldbal,c=t.newbal,l=t.plan_date,d=t.meter_type,j=t.transid,b=t.plan_status,h=t.meter_number,u=t.disco_name,O=t.token,x=t.charges;return Object(P.jsxs)(p.a,{hover:!0,tabIndex:-1,role:"checkbox",children:[Object(P.jsx)(m.a,{sx:{display:"flex",alignItems:"center"},children:Object(P.jsx)(f.a,{variant:"subtitle2",noWrap:!0,children:j})}),Object(P.jsx)(m.a,{align:"left",children:u}),Object(P.jsx)(m.a,{align:"left",children:d}),Object(P.jsx)(m.a,{align:"left",children:h}),Object(P.jsx)(m.a,{align:"left",children:a}),Object(P.jsxs)(m.a,{align:"left",children:["\u20a6",Object(B.a)(r)]}),Object(P.jsxs)(m.a,{align:"left",children:["\u20a6",Object(B.a)(x)]}),Object(P.jsxs)(m.a,{align:"left",children:["\u20a6",Object(B.a)(i)]}),Object(P.jsxs)(m.a,{align:"left",children:["\u20a6",Object(B.a)(c)]}),Object(P.jsx)(m.a,{align:"left",children:O}),Object(P.jsx)(m.a,{align:"left",children:n}),Object(P.jsx)(m.a,{align:"left",children:l}),Object(P.jsx)(m.a,{align:"left",children:Object(P.jsx)(F.a,{variant:"light"===e.palette.mode?"ghost":"filled",color:1===b?"success":"error",children:Object(o.a)((0===b?"processing":1===b&&"successful")||2===b&&"failed")})}),Object(P.jsx)(m.a,{align:"left",children:Object(P.jsx)(v.a,{variant:"contained",component:s.b,to:"".concat(S.d.general.invioce,"/").concat(j,"/bill"),children:"Generate"})})]},j)}))}),he&&Object(P.jsx)(p.a,{children:Object(P.jsx)(m.a,{align:"center",colSpan:5,sx:{py:3},children:Object(P.jsx)(I.a,{searchQuery:te})})})]})})}),Object(P.jsx)(k.a,{control:Object(P.jsx)(w.a,{checked:se,onChange:function(e){return function(e){de(e.target.checked)}(e)}}),label:"Dense padding",align:"left"}),Object(P.jsx)(y.a,{rowsPerPageOptions:[5,10,25,100],component:"div",count:X,rowsPerPage:ie,page:H,onPageChange:function(e,t){return fe(t,ie,ge,te)},onRowsPerPageChange:function(e){ce(parseInt(e.target.value,10)),fe(0,e.target.value,ge,te),Q(0)}})]})]})})}}}]);
2//# sourceMappingURL=50.f31cd873.chunk.js.map

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.