PageSourceSearch

https://app.datapinter.com/_next/static/chunks/pages/app/admin/expiring-b8963ec5f59e7cf2.js

js datapinter.com collected 2026-10-02 00:02:48 UTC 6,648 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4684],{29340:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>N});var l=a(37876),d=a(44824),r=a(77328),n=a.n(r),i=a(48230),c=a.n(i),t=a(14232),x=a(88992),p=a(94976),o=a(32057),h=a(49138),m=a(71391),j=a(58317),f=a(35180),u=a(77306);let N=()=>{let e=(0,o.jL)(),{users:s,responses:a}=(0,o.GV)(e=>e.admin),{register:r,handleSubmit:i,reset:N}=(0,x.mN)(),[g,b]=(0,t.useState)(0),[y,w]=(0,t.useState)("");return(0,t.useEffect)(()=>{e((0,p.G$)({keyword:y,page:g}))},[y,g]),(0,l.jsxs)(m.A,{children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:"Dashboard - DataPinter"})}),(0,l.jsx)(u.A,{responses:a,type:h.r7.typePrefix,reset:h.zw}),(0,l.jsxs)("div",{className:"p-4 md:p-8 flex flex-col gap-2",children:[(0,l.jsx)(j.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"flex gap-2 justify-center",children:(0,l.jsxs)("p",{className:"font-bold",children:["Halaman ",g+1]})}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"hidden md:grid grid-cols-8 bg-orange-50 text-sm",children:[(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"ID"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Nama"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Email"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"HP"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Usaha"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Daftar"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Paket"}),(0,l.jsx)("p",{className:"px-2 py-1 font-bold",children:"Action"})]}),s.map((e,s)=>(0,l.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-8 text-sm items-center border-b py-2 gap-2 md:gap-0",children:[(0,l.jsx)("p",{className:"px-2",children:e.id}),(0,l.jsx)("p",{className:"px-2",children:e.name}),(0,l.jsx)("p",{className:"px-2",children:e.email}),(0,l.jsx)("p",{className:"px-2",children:e.phone}),(0,l.jsx)("p",{className:"px-2",children:e.persona||"-"}),(0,l.jsx)("p",{className:"px-2",children:d.c9.fromISO(e.createdAt).toFormat("DD")}),e.plan?(0,l.jsxs)("div",{className:"px-2 flex flex-col",children:[(0,l.jsx)("p",{children:e.plan}),(0,l.jsxs)("p",{children:[Math.ceil(d.c9.fromISO(e.expired_at).diffNow("days").days)," ","days lagi"]}),(0,l.jsx)("p",{children:d.c9.fromISO(e.expired_at).toFormat("DD")}),(0,l.jsx)("p",{children:e.purpose})]}):(0,l.jsx)("div",{className:"px-2",children:"-"}),(0,l.jsx)("div",{className:"px-2",children:(0,l.jsx)(c(),{href:"/app/admin/user/".concat(e.id),children:(0,l.jsx)(f.A,{wFit:!0,small:!0,children:"Edit"})})})]},s))]}),0===s.length&&(0,l.jsx)("div",{className:"p-12 flex justify-center text-zinc-400",children:(0,l.jsx)("p",{children:"Sudah habis"})}),(0,l.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,l.jsx)(f.A,{wFit:!0,onClick:()=>b(Math.max(g-1,0)),small:!0,disabled:0===g,secondary:!0,children:"Sebelumya"}),(0,l.jsxs)("p",{className:"font-bold",children:["Halaman ",g+1]}),(0,l.jsx)(f.A,{wFit:!0,onClick:()=>b(g+1),small:!0,disabled:0===s.length,secondary:!0,children:"Berikutnya"})]})]})]})]})}},58317:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});var l=a(37876),d=a(48230),r=a.n(d),n=a(32057),i=a(35180),c=a(49038);let t=e=>{let{label:s,isDashboard:a,backUrl:d,isAffiliate:t,userId:x}=e,{user:p}=(0,n.GV)(e=>e.user);return(0,l.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row md:justify-between md:items-center w-full",children:[(0,l.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,l.jsx)("img",{src:"/images/logo_icon.png",className:"h-10"}),!s&&(0,l.jsx)("p",{className:"font-bold text-xl md:text-3xl",children:"Dasbor Admin"}),s&&(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-bold text-sm md:text-base",children:"Dasbor Admin"}),(0,l.jsx)("p",{className:"font-bold text-xl md:text-3xl",children:s})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[!a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r(),{href:"/app/admin",children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Pengguna"]})}),(0,l.jsx)(r(),{href:"/app/admin/download",children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Downloads"]})}),(0,l.jsx)(r(),{href:"/app/admin/expiring",children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Expiring Users"]})}),(0,l.jsx)(r(),{href:"/app/admin/affiliate",children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Affiliate"]})}),["super"].includes(p.group)&&(0,l.jsx)(r(),{href:"/app/admin/analytics/sales",children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Penjualan"]})})]}),a&&(0,l.jsx)(r(),{href:"/app/admin/download?user_id=".concat(x),children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," History Download"]})}),t&&(0,l.jsx)(r(),{href:"/app/admin/affiliate/".concat(t),children:(0,l.jsxs)(i.A,{small:!0,hasIcon:!0,children:[(0,l.jsx)(c.$qz,{})," Detil Affiliate"]})}),(0,l.jsx)(r(),{href:d||"/app",children:(0,l.jsxs)(i.A,{secondary:!0,small:!0,hasIcon:!0,children:[(0,l.jsx)(c.QVr,{}),"Kembali"]})})]})]})}},74012:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/admin/expiring",function(){return a(29340)}])},77306:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});var l=a(37876);a(14232);var d=a(32057),r=a(69241),n=a(34846);let i=[200,201,202],c=[300,301,400,404,405,412,500,501,502],t=e=>{var s,a;let{responses:t,type:x,reset:p,className:o,successMessage:h,errorMessage:m}=e,{t:j}=(0,n.Bd)("dashboard"),f=t[x];if(!f)return(0,l.jsx)(l.Fragment,{});let u=(0,d.jL)();setTimeout(()=>{u(p(x))},3e3);let N=null==(s=f.payload)?void 0:s.statusText,g=null==(a=f.payload)?void 0:a.status,b="bg-zinc-50",y="border-zinc-200",w="text-zinc-500",_=j("loading");return i.includes(g)?(b="bg-green-100",y="border-green-500",w="text-green-800",N&&(_="".concat(j("Created"===N?"created_successfully":"updated_successfully"))),N||(_=j("success")),h&&(_=h)):c.includes(g)?(b="bg-red-100",y="border-red-500",w="text-red-800",_=j("request_failed_with_code",{code:g}),m&&(_=m),405===g&&(_="".concat(N))):f.type.includes("rejected")&&!N&&(b="bg-red-100",y="border-red-500",w="text-red-800",_=j("unexpected_error_contact_customer_service")),(0,l.jsx)("div",{className:(0,r.A)("fixed top-5 left-1/2 transform -translate-x-1/2 flex flex-row px-2 py-1 rounded-md shadow-lg justify-center z-[2000] whitespace-break-spaces text-xs max-w-sm border",y,b,w,o),children:(0,l.jsx)("p",{children:_})})}}},e=>{e.O(0,[4938,9897,5711,713,2517,8585,5015,8433,2768,8230,8992,8553,5994,9893,916,4696,1391,636,6593,8792],()=>e(e.s=74012)),_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.