PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/pages/log-49c7180e50d16624.js

js firmapp-backend.netlify.app collected 2026-10-03 10:45:14 UTC 5,113 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1192],{84173:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/log",function(){return t(53133)}])},69149:function(e,n,t){"use strict";t.d(n,{t:function(){return x}});var a=t(85893),s=t(82183),i=t(20013),r=t(17524),l=t(30347),c=t(67294),o=t(93054),u=[5,10,20,50,100].map((function(e){return{value:e,label:e.toString()}})),d=function(e){return(0,a.jsx)("button",{className:"\n        text-xs font-semibold\n        px-2 py-1\n        rounded\n        transition-colors\n        flex justify-center basis-8 flex-shrink-0\n        hover:bg-boni-blue/25\n        disabled:text-slate-200 disabled:bg-slate-50 disabled:hover:bg-slate-50\n        ".concat(e.active?"bg-boni-blue text-white":"bg-slate-100","\n      "),disabled:e.disabled,onClick:e.onClick,type:"button",children:e.children})},x=function(e){var n=function(){return e.pageIndex==h},t=function(){var n=h+x-1;return e.pageIndex==n},x=Math.ceil(e.itemsCount/e.itemsPerPage),f=(0,c.useState)(0),h=f[0],v=f[1],m=(0,c.useState)(0),g=m[0],p=m[1],b=(0,c.useState)(e.itemsPerPage||20),j=b[0],N=b[1],w=(0,c.useCallback)((function(e){var n=Math.max(0,e-Math.floor(2.5)),t=Math.min(n+5,x),a=t-n;a<5&&(n=Math.max(0,n-(5-a))),v(n),p(t)}),[x]);return(0,c.useEffect)((function(){w(e.pageIndex)}),[e.pageIndex,w]),(0,a.jsxs)("div",{className:"flex gap-2 justify-between py-2 text-slate-600",children:[(0,a.jsx)("div",{className:"w-32"}),(0,a.jsxs)("div",{className:"flex overflow-hidden flex-1 gap-2 justify-center items-center",children:[(0,a.jsx)(d,{onClick:function(){w(0)},disabled:n(),children:(0,a.jsx)(s.Z,{className:"h-4"})}),(0,a.jsx)(d,{onClick:function(){w(h-5)},disabled:n(),children:(0,a.jsx)(i.Z,{className:"h-4"})}),function(e){for(var n=[],t=e;t<g;t++)n.push(t);return n}(h).map((function(n,t){return(0,a.jsx)(d,{active:e.pageIndex==n,onClick:function(){e.onClickPage(n)},children:n+1},t)})),(0,a.jsx)(d,{onClick:function(){w(g)},disabled:t(),children:(0,a.jsx)(r.Z,{className:"h-4"})}),(0,a.jsx)(d,{onClick:function(){w(x-5)},disabled:t(),children:(0,a.jsx)(l.Z,{className:"h-4"})})]}),(0,a.jsx)("div",{className:"w-32",children:(0,a.jsx)(o.ZP,{options:u,value:{value:j,label:j.toString()},onChange:function(n){return function(n){N(n),e.onClickPage(0),e.onItemsPerPageChange(n)}(n.value)},isSearchable:!1,menuPlacement:"auto"})})]})}},53133:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return x},default:function(){return f}});var a=t(34051),s=t.n(a),i=t(85893),r=t(6983),l=t(97568),c=t(47153),o=t(69149),u=t(67294);function d(e,n,t,a,s,i,r){try{var l=e[i](r),c=l.value}catch(o){return void t(o)}l.done?n(c):Promise.resolve(c).then(a,s)}var x=!0;function f(){var e=(0,l.$G)("actionlog").t,n=(0,u.useState)(20),t=n[0],a=n[1],x=(0,u.useState)(0),f=x[0],h=x[1],v=(0,u.useState)([]),m=v[0],g=v[1],p=(0,u.useState)(0),b=p[0],j=p[1],N=(0,u.useCallback)(function(){var e,n=(e=s().mark((function e(n,t){var a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,r.Gu)(n*t,t);case 3:a=e.sent,g(null===a||void 0===a?void 0:a.action_logs),j(null===a||void 0===a?void 0:a.count),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var n=this,t=arguments;return new Promise((function(a,s){var i=e.apply(n,t);function r(e){d(i,a,s,r,l,"next",e)}function l(e){d(i,a,s,r,l,"throw",e)}r(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),[]);return(0,u.useEffect)((function(){N(f,t).catch(console.error)}),[f,t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"flow-root px-48 sm:px-48 lg:px-48",children:(0,i.jsx)("ul",{role:"list",className:"-mb-8",children:m.length&&m.map((function(n,t){var a,s;return(0,i.jsx)("li",{children:(0,i.jsxs)("div",{className:"relative pb-8",children:[t!==m.length-1?(0,i.jsx)("span",{className:"absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-500","aria-hidden":"true"}):null,(0,i.jsxs)("div",{className:"relative flex space-x-3",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("span",{className:"relative h-8 w-8 rounded-full flex items-center justify-center ring-8 ring-white bg-gray-500",children:[c.uu[n.source],(0,i.jsx)("span",{className:"absolute top-0 right-0 block h-3 w-3 ".concat(c.zN[n.action]," rounded-full ring-2 ring-white")})]})}),(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 justify-between space-x-4 pt-1.5",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("p",{className:"text-sm text-gray-500",children:[e("actionlog:actions.".concat(n.action))," ",n.text,(null===(a=n.created_by)||void 0===a?void 0:a.first_name)||"Super"," ",(null===(s=n.created_by)||void 0===s?void 0:s.last_name)||"Admin"]})}),(0,i.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-gray-500",children:(0,i.jsx)("time",{children:(0,c.Z3)(n.created_at)})})]})]})]})},n.id)}))})}),(0,i.jsx)(o.t,{itemsCount:b||0,itemsPerPage:t,pageIndex:f,onClickPage:h,onItemsPerPageChange:a})]})}}},function(e){e.O(0,[3054,7153,9774,2888,179],(function(){return n=84173,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.