PageSourceSearch

https://www.wishyork.com/_next/static/chunks/7721.88ed1cfa5c7cb0cb.js

js wishyork.com collected 2026-10-02 01:52:18 UTC 7,868 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c2a17a8e-a6ac-4d84-a4a6-683ecdd0992d",e._sentryDebugIdIdentifier="sentry-dbid-c2a17a8e-a6ac-4d84-a4a6-683ecdd0992d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7721],{77721:(e,t,a)=>{a.r(t),a.d(t,{AuditLogTab:()=>c});var r=a(95155),n=a(12115),s=a(92033),l=a(18955),d=a(30926);let i=(0,d.createServerReference)("40c62527ab559b8be957cc34137514ea6958137ee2",d.callServer,void 0,d.findSourceMapURL,"getAuditLogAction");function o(e){let{details:t,t:a}=e,[s,l]=(0,n.useState)(!1);if(null==t)return(0,r.jsx)("span",{className:"text-xs text-[#8A8A80] dark:text-neutral-500",children:"-"});let d="string"==typeof t?t:JSON.stringify(t,null,2),i=d.length>80&&!s;return(0,r.jsxs)("button",{type:"button",onClick:()=>l(e=>!e),className:"max-w-[280px] text-left font-mono text-xs text-[#6B6B6B] dark:text-neutral-400",title:d,children:[(0,r.jsx)("span",{className:s?"whitespace-pre-wrap break-words":"line-clamp-2",children:i?"".concat(d.slice(0,80),"..."):d}),d.length>80?(0,r.jsx)("span",{className:"mt-0.5 block text-[10px] font-semibold uppercase tracking-wide text-[#8A8A80] dark:text-neutral-500",children:a(s?"showLess":"showMore")}):null]})}function c(e){let{initialRows:t,initialHasMore:a,initialActionTypes:d,initialAdmins:c}=e,x=(0,l.c)("Admin.AuditLog"),u=(0,l.c)("Admin.Analytics"),[p,b]=(0,n.useState)(t),[m,h]=(0,n.useState)(a),[g,f]=(0,n.useState)(null),[k,y]=(0,n.useState)(null),[w,j]=(0,n.useState)(!1),[A,N]=(0,n.useTransition)();function E(e,t){f(e),y(t),N(()=>{(async()=>{let a=await i({offset:0,actionType:e,adminSlug:t});a.success&&(b(a.data.rows),h(a.data.hasMore))})()})}async function B(){j(!0);try{let e=await i({offset:p.length,actionType:g,adminSlug:k});e.success&&(b(t=>[...t,...e.data.rows]),h(e.data.hasMore))}finally{j(!1)}}return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] px-5 py-4 text-sm font-medium text-[#171717] dark:border-neutral-800 dark:bg-neutral-800/60 dark:text-neutral-100",children:[x("instructionsBanner"),A?(0,r.jsxs)("span",{className:"ml-2 inline-flex items-center gap-1 text-xs text-[#8A8A80] dark:text-neutral-500",children:[(0,r.jsx)(s.A,{className:"h-3 w-3 animate-spin"})," ",x("filtering")]}):null]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-[#8A8A80] dark:text-neutral-500",children:x("actionTypeLabel")}),(0,r.jsx)("button",{type:"button",onClick:()=>E(null,k),className:"rounded-[8px] border border-[#EBEBEB] dark:border-neutral-800 px-3 py-1.5 text-xs font-semibold transition-colors ".concat(null===g?"bg-[#171717] text-white":"bg-white dark:bg-neutral-800 text-[#8E8D8A] dark:text-neutral-400"),children:x("filterAll")}),d.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>E(e,k),className:"rounded-[8px] border border-[#EBEBEB] dark:border-neutral-800 px-3 py-1.5 text-xs font-semibold transition-colors ".concat(g===e?"bg-[#171717] text-white":"bg-white dark:bg-neutral-800 text-[#8E8D8A] dark:text-neutral-400"),children:e},e))]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-[#8A8A80] dark:text-neutral-500",children:x("adminLabel")}),(0,r.jsx)("button",{type:"button",onClick:()=>E(g,null),className:"rounded-[8px] border border-[#EBEBEB] dark:border-neutral-800 px-3 py-1.5 text-xs font-semibold transition-colors ".concat(null===k?"bg-[#171717] text-white":"bg-white dark:bg-neutral-800 text-[#8E8D8A] dark:text-neutral-400"),children:x("filterAll")}),c.map(e=>{var t;return(0,r.jsx)("button",{type:"button",onClick:()=>
1E(g,e.slug),className:"rounded-[8px] border border-[#EBEBEB] dark:border-neutral-800 px-3 py-1.5 text-xs font-semibold transition-colors ".concat(k===e.slug?"bg-[#171717] text-white":"bg-white dark:bg-neutral-800 text-[#8E8D8A] dark:text-neutral-400"),children:null!=(t=e.displayName)?t:e.slug},e.slug)})]})]}),(0,r.jsx)("div",{className:"overflow-hidden rounded-[12px] border border-[#EBEBEB] bg-white shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] dark:border-neutral-800 dark:bg-neutral-900",children:(0,r.jsxs)("table",{className:"w-full",children:[(0,r.jsx)("thead",{className:"border-b border-[#EBEBEB] bg-[#F9F9F9] dark:border-neutral-800 dark:bg-neutral-800/50",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:x("colAdmin")}),(0,r.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:x("colActionType")}),(0,r.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:x("colTarget")}),(0,r.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:x("colDetails")}),(0,r.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:x("colTimestamp")})]})}),(0,r.jsx)("tbody",{className:"divide-y divide-[#EBEBEB] dark:divide-neutral-800",children:0===p.length?(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:5,className:"px-6 py-12 text-center text-sm text-[#8A8A80] dark:text-neutral-500",children:x("noEntries")})}):p.map(e=>{var t,a;return(0,r.jsxs)("tr",{className:"transition-colors hover:bg-[#F9F9F9] dark:hover:bg-neutral-800/40",children:[(0,r.jsxs)("td",{className:"px-6 py-3",children:[(0,r.jsx)("div",{className:"text-xs text-[#171717] dark:text-neutral-100",children:null!=(t=e.adminDisplayName)?t:x("unknownAdmin")}),e.adminSlug?(0,r.jsxs)("div",{className:"font-mono text-[10px] text-[#8A8A80] dark:text-neutral-500",children:["@",e.adminSlug]}):null]}),(0,r.jsx)("td",{className:"px-6 py-3",children:(0,r.jsx)("span",{className:"rounded-full bg-[#F9F9F9] px-2 py-0.5 font-mono text-[10px] font-semibold text-[#8E8D8A] dark:bg-neutral-800 dark:text-neutral-400",children:e.actionType})}),(0,r.jsx)("td",{className:"px-6 py-3",children:(0,r.jsxs)("span",{className:"font-mono text-xs text-[#171717] dark:text-neutral-100",children:[null!=(a=e.targetType)?a:"-",null!=e.targetId?"/".concat(e.targetId):""]})}),(0,r.jsx)("td",{className:"px-6 py-3",children:(0,r.jsx)(o,{details:e.details,t:x})}),(0,r.jsx)("td",{className:"px-6 py-3",children:(0,r.jsx)("span",{className:"text-xs text-[#171717] dark:text-neutral-100",children:function(e,t){let a="string"==typeof e?new Date(e):e,r=Math.floor((Date.now()-a.getTime())/6e4);if(r<1)return t("justNow");if(r<60)return t("minutesAgo",{count:r});let n=Math.floor(r/60);return n<24?t("hoursAgo",{count:n}):t("daysAgo",{count:Math.floor(n/24)})}(e.createdAt,u)})})]},e.id)})})]})}),m&&p.length>0?(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("button",{type:"button",onClick:()=>void B(),disabled:w,className:"inline-flex items-center gap-2 rounded-[8px] border border-[#EBEBEB] bg-white px-6 py-2.5 text-xs font-semibold text-[#171717] transition-colors hover:bg-[#F9F9F9] disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-800 dark:text-neutral-100 dark:hover:bg-neutral-700",children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{className:"h-3.5 w-3.5 animate-spin"})," ",x("loading")]}):x("loadMore",{count:50})})}):null]})}}}]);

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.