PageSourceSearch

https://app.medicratic.com/_next/static/chunks/pages/admin/credential-alerts-82da620c09dee965.js

js medicratic.com collected 2026-10-07 03:28:09 UTC 3,967 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[401],{44676:e=>{e.exports={valueOK:"table-cells_valueOK__wA44k",valueWarning:"table-cells_valueWarning__2QcFw",valueCritical:"table-cells_valueCritical___Rwmg",valueInfo:"table-cells_valueInfo__AAdsu"}},63712:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/credential-alerts",function(){return l(82906)}])},82906:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>f});var a=l(37876),i=l(95322),r=l(34243),s=l(14232),n=l(31408),u=l(79021),o=l(44736),d=l(86463),c=l(74188),v=l(44706),m=l(11210),p=l(45050),g=l(76820),A=l(97282),h=l(49655),j=l(44676),x=l.n(j);let C=()=>{var e,t,l,j,C,f,_,b,w,y;let{mutateAsync:T}=r.i.security.credentialAlertBulkDestroy.useMutation(),[E,I]=(0,s.useState)({attemptKey:void 0,failureCount:void 0,lastAttempt:{lte:void 0,gte:void 0},id:{equals:void 0}}),[k,K]=(0,s.useState)(""),[q,S]=(0,s.useState)("ignore"),N=async e=>{await T({ids:e.map(e=>e.id)})};return(0,s.useEffect)(()=>{I(e=>({...e,failureCount:""===k||"ignore"===q?void 0:{[q]:k}}))},[k,q]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.YC,{title:"Authentication Failures by Credential",titleSingular:"Auth Failure",listQuery:r.i.adminLists.credentialAlert,filters:E,columns:[{accessor:"attemptKey",title:"Credential Attempted",sortable:!0,filter:(0,a.jsx)(n.k,{value:null!=(w=null==(e=E.attemptKey)?void 0:e.contains)?w:"",onChange:e=>I(t=>({...t,ip:""===e.currentTarget.value?void 0:{contains:e.currentTarget.value}})),label:"Credential search",placeholder:"TommyBommy@..."}),filtering:!!(null==(t=E.attemptKey)?void 0:t.contains)},{accessor:"failureCount",title:"Times Failed",sortable:!0,cellsClassName:e=>{let{failureCount:t}=e;return t>=30?x().valueCritical:t>=10?x().valueWarning:x().valueOK},filter:(0,a.jsxs)(u.B,{children:[(0,a.jsxs)(o.s.Group,{label:"Comparator",onChange:e=>S(e),value:q,children:[(0,a.jsx)(o.s,{value:"ignore",label:"Ignore"}),(0,a.jsx)(o.s,{value:"equals",label:"Equals"}),(0,a.jsx)(o.s,{value:"gte",label:"Greater Than or Equal"}),(0,a.jsx)(o.s,{value:"lte",label:"Less Than or Equal"})]}),(0,a.jsx)(d.Q,{label:"Failure Count",value:k,onChange:e=>K(e)})]}),filtering:!!E.failureCount},{accessor:"lastAttempt",title:"Last attempted at",sortable:!0,render:e=>{let{lastAttempt:t}=e;return t.toString()},cellsClassName:e=>{let{lastAttempt:t}=e;return new Date().getTime()-t.getTime()<7776e6?void 0:x().valueInfo},filter:(0,a.jsxs)(u.B,{children:[(0,a.jsx)(g.K,{clearable:!0,value:null==(l=E.lastAttempt)?void 0:l.gte,onChange:e=>I(t=>({...t,lastAttempt:{...t.lastAttempt,gte:e||void 0}})),label:"At/After"}),"<= Last attempted at <=",(0,a.jsx)(g.K,{clearable:!0,value:null==(j=E.lastAttempt)?void 0:j.lte,onChange:e=>I(t=>({...t,lastAttempt:{...t.lastAttempt,lte:e||void 0}})),label:"At/Before"})]}),filtering:!!(null==(C=E.lastAttempt)?void 0:C.lte)||!!(null==(f=E.lastAttempt)?void 0:f.gte)},{accessor:"attemptIPs",title:"Attempting IPs",render:e=>(0,a.jsxs)(c.Y,{wrap:"nowrap",children:[(0,a.jsx)(v.i,{value:e.attemptIPs.join(", "),children:e=>{let{copied:t,copy:l}=e;return(0,a.jsx)(m.M,{onClick:l,children:t?(0,a.jsx)(A.A,{}):(0,a.jsx)(h.A,{})})}}),(0,a.jsx)(p.E,{lineClamp:1,children:e.attemptIPs.join(", ")})]})},{accessor:"id",title:"Row ID",render:e=>(0,a.jsxs)(c.Y,{wrap:"nowrap",children:[(0,a.jsx)(p.E,{lineClamp:1,children:e.id}),(0,a.jsx)(v.i,{value:e.id,children:e=>{let{copied:t,copy:l}=e;return(0,a.jsx)(m.M,{onClick:l,children:t?(0,a.jsx)(A.A,{}):(0,a.jsx)(h.A,{})})}})]}),filter:(0,a.jsx)(n.k,{value:null!=(y=null==(_=E.id)?void 0:_.equals)?y:"",onChange:e=>I(t=>({...t,id:""===e.currentTarget.value?void 0:{equals:e.currentTarget.value}})),label:"Row ID (exact match)"}),filtering:(null==(b=E.id)?void 0:b.equals)!==void 0}],defaultSortColumn:"lastAttempt",defaultSortDirection:"desc",deleteSelectedRows:N})})};C.securityLevel="superAdmin",C.title="IP Authentication Restrictions Admin";let f=C}},e=>{e.O(0,[727,855,292,636,593,792],()=>e(e.s=63712)),_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.