PageSourceSearch

https://golektruk.com/_next/static/chunks/pages/gokil/history/account-72c24ce297669d90.js

js golektruk.com collected 2026-10-01 15:16:53 UTC 5,876 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3045],{82003:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gokil/history/account",function(){return a(69180)}])},51953:function(t,e,a){"use strict";a.d(e,{Z:function(){return c}});var n=a(85893);a(67294);var r=a(94184),o=a.n(r),l=a(25675),u=a.n(l),i=a(1280),s=a(11163);function c(t){let{src:e="empty-company-log.svg",text:a,height:r=225,width:l=268,imageClass:c,className:d,textClass:v,showButton:p=!0}=t,{push:h}=(0,s.useRouter)();return(0,n.jsx)("div",{className:o()(null!=d?d:"flex h-[78vh] flex-col items-center justify-center"),children:(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)(u(),{alt:"empty data",src:"/empty-state/".concat(e),width:l,height:r,className:o()(null!=c?c:"mx-auto")}),(0,n.jsx)("p",{className:o()(null!=v?v:"text-14 font-normal"),children:a}),p&&(0,n.jsx)(i.Z,{wFull:!0,onClick:()=>h("/gokil"),children:"Cari Iklan Sekarang"})]})})}},93997:function(t,e,a){"use strict";a.d(e,{Z:function(){return i}});var n=a(85893),r=a(18565);a(67294);var o=a(94184),l=a.n(o),u=a(54295);function i(t){let{isFetchingNextPage:e,fetchNextPage:a,hasNextPage:o,isFetched:i,className:s}=t,c=(0,u.Z)(()=>{o&&i&&a()});return(0,n.jsx)("div",{className:l()(null!=s?s:"flex-center h-32 pb-8 pt-4",!o&&"hidden"),ref:c,children:e&&(0,n.jsx)(r.Z,{})})}},54295:function(t,e,a){"use strict";var n=a(67294);let r=t=>{let e=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let a=new IntersectionObserver(e=>{e[0].isIntersecting&&t()},{threshold:.5});return(null==e?void 0:e.current)&&a.observe(e.current),()=>{e.current&&a.unobserve(e.current)}},[e,t]),e};e.Z=r},69180:function(t,e,a){"use strict";a.r(e),a.d(e,{__N_SSP:function(){return g},default:function(){return f}});var n=a(85893),r=a(51953),o=a(65778),l=a(93997),u=a(88884),i=a(82871),s=a(64035),c=a(40856),d=a(53892),v=a(72728),p=a(11163);a(67294);var h=a(94184),y=a.n(h),g=!0;function f(t){let{query:e}=t,{back:a}=(0,p.useRouter)(),{data:h,isFetching:g,fetchNextPage:f,refetch:m,hasNextPage:x,isFetched:_,isFetchingNextPage:Z,isRefetching:j}=(0,c.B)();return(0,n.jsx)(s.Z,{isOwner:!0,children:(0,n.jsxs)(i.Z,{refetch:m,history:"account",navHeader:{header:"Riwayat Aktivitas Akun",onBack:a},filter:e.filter,children:[g&&(0,n.jsx)(u.Z,{totalCard:5}),!g&&0===h.length&&(0,n.jsx)(r.Z,{text:"Tidak Ada Riwayat Aktivitas Akun",showButton:!1,src:"empty-account-log.svg"}),(0,n.jsx)("div",{className:y()("container mb-20",j&&"hidden"),children:h.map((t,e)=>(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-4 mt-6 text-14 font-semibold desktop:text-16",children:(0,d.Z)(new Date(t.date),"EEEE, dd MMM yyyy",{locale:v.Z})}),(0,n.jsx)("div",{className:"space-y-4",children:t.items.map((t,e)=>(0,n.jsx)(o.Z,{logObject:t},e))})]},e))}),(0,n.jsx)(l.Z,{fetchNextPage:f,hasNextPage:x,isFetched:_,isFetchingNextPage:Z})]})})}},40856:function(t,e,a){"use strict";a.d(e,{B:function(){return s},h:function(){return i}});var n=a(48379),r=a(96986),o=a(59403),l=a(53892),u=a(67294);function i(){var t,e,a,i,s,c,d;let{filter:v}=(0,r.Z)(),p={...(null===(t=v.post)||void 0===t?void 0:t.categoryValue)&&{category:null===(e=v.post)||void 0===e?void 0:e.categoryValue},...(null===(a=v.post)||void 0===a?void 0:a.subCategoryValue)&&{sub_category:null===(i=v.post)||void 0===i?void 0:i.subCategoryValue},...(null===(s=v.post)||void 0===s?void 0:s.start)&&{date_activity:(0,l.Z)(new Date(v.post.start),"yyyy-MM-dd")},sort_date:(null===(c=v.post)||void 0===c?void 0:c.order)=="new"},h=(0,o.N)({queryKey:["my-post-history"],queryFn:async t=>{let{pageParam:e=1}=t;return await (0,n.Z)("/gi/general/activity-log/listing",{params:{page:e,...p}})},getNextPageParam:(t,e)=>{let a=Math.ceil(t.data.total/5);if(t&&0!==t.data.data.length&&t.config.params.page<a)return e.length+1}}),y=(0,u.useMemo)(()=>{var t;let e={};return null===(t=h.data)||void 0===t||t.pages.forEach(t=>{t.data.data.forEach(t=>{let a=t.date.split("T")[0];e[a]||(e[a]=[]),e[a].push(t)})}),Object.entries(e).map(t=>{let[e,a]=t;return{date:e,items:a}})},[null===(d=h.data)||void 0===d?void 0:d.pages]);return{...h,data:y}}function s(){var t,e,a,i,s,c,d,v,p,h,y,g,f;let{filter:m}=(0,r.Z)(),x=[];(null===(t=m.account)||void 0===t?void 0:t.ban)&&x.push("ban"),(null===(e=m.account)||void 0===e?void 0:e.unban)&&x.push("unban"),(null===(a=m.account)||void 0===a?void 0:a.generate_otp)&&x.push("generate_otp"),(null===(i=m.account)||void 0===i?void 0:i.update)&&x.push("update"),(null===(s=m.account)||void 0===s?void 0:s.update_email)&&x.push("update_email"),(null===(c=m.account)||void 0===c?void 0:c.update_phone)&&x.push("update_phone"),(null===(d=m.account)||void 0===d?void 0:d.login)&&x.push("login");let _={sort_date:(null===(v=m.account)||void 0===v?void 0:v.order)!=="old",...(null===(p=m.account)||void 0===p?void 0:p.start)&&{start_date:(0,l.Z)(new Date(m.account.start),"yyyy-MM-dd")},...(null===(h=m.account)||void 0===h?void 0:h.end)&&{end_date:null!==(f=(0,l.Z)(new Date(m.account.end),"yyyy-MM-dd"))&&void 0!==f?f:(null===(y=m.account)||void 0===y?void 0:y.start)&&(0,l.Z)(new Date(m.account.start),"yyyy-MM-dd")},...x.length>0&&{log_type:x}},Z=(0,o.N)({queryKey:["my-account-history"],queryFn:async t=>{let{pageParam:e=1}=t;return await (0,n.Z)("/users/activity-log",{params:{..._,page:e},paramsSerializer:{indexes:null}})},getNextPageParam:(t,e)=>{let a=Math.ceil(t.data.total/5);if(t&&0!==t.data.data.length&&t.config.params.page<a)return e.length+1}}),j=(0,u.useMemo)(()=>{var t;let e={};
1return null===(t=Z.data)||void 0===t||t.pages.forEach(t=>{t.data.data.forEach(t=>{let a=t.date.split("T")[0];e[a]||(e[a]=[]),e[a].push(t)})}),Object.entries(e).map(t=>{let[e,a]=t;return{date:e,items:a}})},[null===(g=Z.data)||void 0===g?void 0:g.pages]);return{...Z,data:j}}}},function(t){t.O(0,[6556,5937,5675,3613,623,4035,6202,2871,8317,9774,2888,179],function(){return t(t.s=82003)}),_N_E=t.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.