PageSourceSearch

https://rsdmrkt.com/assets/ApiEventsPage-BeNoSQcq.js

js rsdmrkt.com collected 2026-10-02 16:50:13 UTC 3,770 bytes, 1 lines download raw bytes

1import{j as e}from"./emotion-element-f0de968e.browser.esm-CkAcib9J.js";import{r as m}from"./chunk-KS7C4IRE-D5dXzlLW.js";import{a7 as L}from"./api-qiY2smlF.js";import{M as P}from"./react-moment-interop-Cejh4knc.js";import{P as k}from"./PagingControls-BeFwxpJN.js";import{R as w}from"./Refresh-DBsKPGNK.js";import{u as j}from"./useTheme-C_8o6ItC.js";import{B as t,T as i}from"./Box-Bu2Z2trI.js";import{I as C}from"./IconButton-C2igLTSk.js";import{G as x}from"./SearchResults-CnjpWGbS.js";import{F as M,S as z,u as A}from"./index-Ba4xS3j9.js";import{I as D}from"./TextField-CwHKLY54.js";import{M as p}from"./MenuItem-Cbws_f4j.js";import{D as E}from"./Drawer-Dxxn1p5J.js";import"./moment-BLMuvzoS.js";import"./Card-C8fRb0iU.js";import"./identifier-DCmdaooV.js";import"./ArrowRight-CiJ19GP_.js";import"./useSlotProps-Br-fPZ-p.js";import"./imageUtils-BWiJvnWv.js";import"./useId-D-VxNTxp.js";import"./OriginLink-NZs5VyL2.js";import"./seo-D5RPFqEx.js";import"./env-CHruRPRK.js";import"./appPaths-DLtVD8gm.js";import"./Star-VcYUfXEv.js";import"./mapLinks-BXFXGuFX.js";import"./Photo-BTaLaYYc.js";import"./useThemeProps-CUeDNTrx.js";import"./Chip-DBy7n3Mp.js";import"./ArrowDropDown-Dc3_CX8Q.js";import"./useAddToCart-CB7Sdaa6.js";import"./Snackbar-Fo0d5dST.js";import"./LocationOn-RbsU8tml.js";import"./Divider-jVf1TKX1.js";const je=()=>{var u;const r=j(),[o,l]=m.useState(1),[c,f]=m.useState(typeof window<"u"&&localStorage.getItem("apiEventsLimit")||20),[g,d]=m.useState(!1),[b,v]=m.useState(null),{data:a,error:h,isLoading:S,refetch:I}=L({page:o,limit:c});return e.jsxs(t,{sx:{color:r.palette.text.primary,p:2},children:[e.jsxs(t,{sx:{display:"flex",gap:1},children:[e.jsx(i,{variant:"h1",children:"API Events"}),e.jsx(C,{color:"warning",onClick:()=>{l(1),I()},children:e.jsx(w,{})})]}),S&&e.jsx("div",{children:"Loading..."}),h&&e.jsxs("div",{children:["Oh no... ",h.message]}),a&&e.jsxs(t,{sx:{mt:4},children:[(u=a.docs)==null?void 0:u.map((s,y)=>e.jsxs(x,{container:!0,sx:{p:1,backgroundColor:y%2===0?"background.paper":"background.default","&:hover":{backgroundColor:"action.hover",cursor:"pointer"}},onClick:()=>{v(s),d(!0)},children:[e.jsx(x,{size:3,children:e.jsx(i,{sx:{fontSize:"12px"},children:s.email})}),e.jsx(x,{size:7,children:e.jsx(i,{sx:{fontSize:"12px"},children:s.route})}),e.jsx(x,{size:2,children:e.jsx(i,{sx:{fontSize:"12px"},children:e.jsx(P,{format:"YYYY-MM-DD:HH:mm:ss",children:s.date})})})]},s._id)),e.jsx(t,{sx:{mx:2},children:e.jsxs(t,{sx:{display:"flex"},children:[e.jsx(k,{page:o,setPage:l,totalPages:a==null?void 0:a.totalPages}),e.jsxs(M,{sx:{my:1},size:"small",children:[e.jsx(D,{id:"limit-label",children:"Limit"}),e.jsxs(z,{labelId:"limit-label",id:"limit-select",label:"Limit",value:c,onChange:s=>{s.preventDefault(),l(1),localStorage.setItem("apiEventsLimit",s.target.value),f(s.target.value)},sx:{minWidth:"100px"},children:[e.jsx(p,{value:10,children:"10"}),e.jsx(p,{value:20,children:"20"}),e.jsx(p,{value:50,children:"50"}),e.jsx(p,{value:100,children:"100"})]})]})]})}),e.jsx(E,{anchor:"right",open:g,onClose:()=>d(!1),disableScrollLock:!0,children:e.jsx(R,{apiEvent:b})})]})]})},n=({label:r,value:o})=>e.jsxs(t,{sx:{display:"flex",gap:1}
1,children:[e.jsxs(i,{sx:{width:"6ch",fontWeight:"bold"},children:[r,":"," "]}),e.jsx(i,{children:e.jsx("code",{children:o})})]}),R=({apiEvent:r})=>{const o=j(),l=A(o.breakpoints.down("tablet"));return e.jsx(t,{sx:{width:l?"100%":"700px",pt:"7rem"},children:e.jsxs(t,{sx:{p:2,display:"flex",flexDirection:"column",gap:1},children:[e.jsx(i,{variant:"h1",children:"API Event"}),e.jsx(n,{label:"Email",value:r.email}),e.jsx(n,{label:"Route",value:r.route}),e.jsx(n,{label:"Date",value:r.date}),e.jsx(n,{label:"Store",value:r.storeName}),e.jsx(n,{label:"IP",value:r.ip})]})})};export{je as default};

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.