PageSourceSearch

https://client.apikurir.id/_next/static/chunks/pages/debit-kredit-3d3f1b27fcf4d05a.js

js apikurir.id collected 2026-10-02 06:28:49 UTC 8,950 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3450],{35823:function(e){e.exports=function(e,n,a,t){var i=new Blob(void 0!==t?[t,e]:[e],{type:a||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,n);else{var l=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),r=document.createElement("a");r.style.display="none",r.href=l,r.setAttribute("download",n),void 0===r.download&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),setTimeout(function(){document.body.removeChild(r),window.URL.revokeObjectURL(l)},200)}}},56113:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/debit-kredit",function(){return a(23340)}])},15135:function(e,n,a){"use strict";var t=a(85893);n.Z=function(e){let{children:n}=e;return(0,t.jsx)("div",{class:"mx-auto container",children:(0,t.jsx)("div",{class:"flex flex-col gap-y-4",children:n})})}},70850:function(e,n,a){"use strict";var t=a(85893),i=a(28611),l=a(27484),r=a.n(l);let d=e=>{let{value:n,onChange:a,style:l={},className:d=""}=e,s=[{label:"Yesterday",value:[r()().add(-1,"d"),r()().add(-1,"d")]},{label:"Today",value:[r()(),r()()]},{label:"This Month",value:[r()().startOf("month"),r()()]},{label:"Last Month",value:[r()().add(-1,"month").startOf("month"),r()().add(-1,"month").endOf("month")]},{label:"Last 7 Days",value:[r()().add(-7,"d"),r()()]},{label:"Last 14 Days",value:[r()().add(-14,"d"),r()()]},{label:"Last 30 Days",value:[r()().add(-30,"d"),r()()]},{label:"Last 90 Days",value:[r()().add(-90,"d"),r()()]}];return(0,t.jsx)(i.Z.RangePicker,{className:d,style:l,value:n,onChange:a,presets:s})};n.Z=d},50349:function(e,n,a){"use strict";var t=a(85893),i=a(83473),l=a(7851),r=a(76920),d=a(67294);let s=(0,d.forwardRef)((e,n)=>{let{url:a,search:s,pageSize:o=10,className:c,rowKey:u,pageSizeOptions:h=[10,20,50,100],setCustomLoading:x=()=>{},onLoad:p}=e,m={current:1,pageSize:o,pageSizeOptions:h,showSizeChanger:!0,showTotal:e=>"Total ".concat((0,i.W_)(e))},[f,j]=(0,d.useState)([]),[v,b]=(0,d.useState)(!1),[Z,g]=(0,d.useState)({pagination:m}),y=(e,n,a)=>{g({pagination:e,filters:n,...a})},k=()=>{b(!0),x&&x(!0),a&&l.api.get(a,{params:{search:JSON.stringify(s),current:Z.pagination.current,pageSize:Z.pagination.pageSize,sort:Z.field?"".concat(Z.field,":").concat(Z.order||"descend"):void 0}}).then(e=>{let{data:n,total:a}=e.data;b(!1),x&&x(!1),j(n),p&&"function"==typeof p&&p(e.data),g({...Z,pagination:{...m,...Z.pagination,total:a}})}).catch(e=>{b(!1),x&&x(!1)})};(0,d.useEffect)(()=>{k()},[Z.field,Z.order,Z.pagination.current,Z.pagination.pageSize]);let w=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{if(w.current){w.current=!1;return}Z.pagination.current>1?g(e=>({...e,pagination:{...e.pagination,current:1}})):k()},[s,a]),n&&(n.reload=k,n.loading=v),(0,t.jsx)("div",{className:c,children:(0,t.jsx)(r.Z,{...e,rowKey:e=>"function"==typeof u?u(e):e.id||e._id,pagination:Z.pagination,dataSource:f,loading:v,onChange:y,scroll:{x:!0}})})});n.Z=s},23340:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return P}});var t=a(85893),i=a(67294),l=a(9008),r=a.n(l),d=a(97175),s=a(92477),o=a(26713),c=a(73016),u=a(4393),h=a(71577),x=a(71230),p=a(15746),m=a(34041),f=a(27484),j=a.n(f),v=a(48702),b=a(83473),Z=a(15135),g=a(50349),y=a(70850),k=a(26855),w=a(7851),O=a(35823),S=a.n(O),T=function(e){let{destroy:n}=e,[a]=s.Z.useForm(),[l,r]=(0,i.useState)(!1),[d,o]=(0,i.useState)(!1);return(0,t.jsxs)(s.Z,{form:a,layout:"vertical",onFinish:function(){a.validateFields().then(e=>{r(!0),w.api.post("/api/debit-kredit/export",e,{responseType:"blob"}).then(e=>{r(!1);let a=j()().format("YYYYMMDD"),t=j()().unix();S()(e.data,"export-debit-kredit-".concat(a,"_").concat(t,".xlsx")),"function"==typeof n&&n()}).catch(e=>{var n;let{response:a}=e;console.log(a),(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.message)&&k.Z.warning({message:null==a?void 0:a.data.message}),r(!1)})})},children:[(0,t.jsx)(s.Z.Item,{name:["ref","type"],label:"Jenis Invoice",children:(0,t.jsxs)(m.Z,{placeholder:"Semua Transaksi",children:[(0,t.jsx)(m.Z.Option,{value:"",children:"Semua Transaksi"}),(0,t.jsx)(m.Z.Option,{value:"add balance",children:"Tambah Saldo"}),(0,t.jsx)(m.Z.Option,{value:"payment",children:"Pembayaran"}),(0,t.jsx)(m.Z.Option,{value:"payment-return",children:"Pembayaran - Return"}),(0,t.jsx)(m.Z.Option,{value:"payment-ongkir",children:"Pembayaran - Ongkir"}),(0,t.jsx)(m.Z.Option,{value:"reconsiliation",children:"Rekonsiliasi COD"}),(0,t.jsx)(m.Z.Option,{value:"withdrawal",children:"Penarikan Saldo"}),(0,t.jsx)(m.Z.Option,{value:"refund",children:"Refund"}),(0,t.jsx)(m.Z.Option,{value:"affiliate",children:"Komisi Affiliate"})]})}),(0,t.jsx)(s.Z.Item,{name:"date",label:"Tanggal Invoice",children:(0,t.jsx)(y.Z,{})}),(0,t.jsx)("div",{className:"modal-form-button",children:(0,t.jsx)(h.ZP,{type:"primary",disabled:d,loading:l,htmlType:"submit",children:"Export Debit Kredit"})})]})},R=a(41664),_=a.n(R),D=function(){let{showModal:e}=(0,i.useContext)(v.Z),n=(0,i.useRef)(),[a]=s.Z.useForm(),l={type:"",status:"",createdAt:[j()().subtract(1,"month"),j()()]},[r,f]=(0,i.useState)(l),k={"add balance":"Tambah Saldo",payment:"Pembayaran",re
1consiliation:"Rekonsiliasi COD",withdrawal:"Penarikan Saldo",refund:"Refund",debit:"Debit",kredit:"Kredit",affiliate:"Komisi Affiliate"};return(0,t.jsx)(Z.Z,{children:(0,t.jsx)(u.Z,{style:{width:"100%"},title:"Invoice",extra:(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsx)(h.ZP,{type:"dashed",danger:!0,icon:(0,t.jsx)(d.Z,{}),onClick:function(){let{destroy:n,update:a}=e();a({title:"Export Invoice",closable:!0,width:500,content:(0,t.jsx)(T,{destroy:n}),icon:null,maskClosable:!0,okButtonProps:{style:{display:"none"}}})},children:"Export Debit Kredit"})}),children:(0,t.jsxs)(Z.Z,{children:[(0,t.jsx)(s.Z,{form:a,initialValues:l,onValuesChange:function(e){let n=a.getFieldsValue();e.search?setTimeout(()=>{let e=a.getFieldsValue();f(e)},1e3):f(n)},children:(0,t.jsxs)(x.Z,{justify:"space-between",children:[(0,t.jsx)(p.Z,{xs:24,lg:12,children:(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(p.Z,{xs:24,lg:8,children:(0,t.jsx)(s.Z.Item,{name:"type",children:(0,t.jsxs)(m.Z,{placeholder:"Semua Tipe",children:[(0,t.jsx)(m.Z.Option,{value:"",children:"Semua Tipe"}),(0,t.jsx)(m.Z.Option,{value:"debit",children:"Debit"}),(0,t.jsx)(m.Z.Option,{value:"kredit",children:"Kredit"})]})})}),(0,t.jsx)(p.Z,{xs:24,lg:8,children:(0,t.jsx)(s.Z.Item,{name:["ref","type"],children:(0,t.jsxs)(m.Z,{placeholder:"Semua Transaksi",children:[(0,t.jsx)(m.Z.Option,{value:"",children:"Semua Transaksi"}),(0,t.jsx)(m.Z.Option,{value:"add balance",children:"Tambah Saldo"}),(0,t.jsx)(m.Z.Option,{value:"payment",children:"Pembayaran"}),(0,t.jsx)(m.Z.Option,{value:"payment-return",children:"Pembayaran - Return"}),(0,t.jsx)(m.Z.Option,{value:"payment-ongkir",children:"Pembayaran - Ongkir"}),(0,t.jsx)(m.Z.Option,{value:"reconsiliation",children:"Rekonsiliasi COD"}),(0,t.jsx)(m.Z.Option,{value:"withdrawal",children:"Penarikan Saldo"}),(0,t.jsx)(m.Z.Option,{value:"refund",children:"Refund"}),(0,t.jsx)(m.Z.Option,{value:"affiliate",children:"Komisi Affiliate"})]})})})]})}),(0,t.jsx)(p.Z,{xs:24,lg:5,children:(0,t.jsx)(s.Z.Item,{name:"date",children:(0,t.jsx)(y.Z,{})})})]})}),(0,t.jsx)(g.Z,{ref:n,size:"small",columns:[{title:"No. Transaction",dataIndex:"no_invoice",key:"no_invoice"},{title:"Tipe",dataIndex:"type",key:"type",render:e=>k[e]||e},{title:"Jumlah",dataIndex:"amount",key:"amount",render:(e,n)=>(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(o.Z,{direction:"vertical",size:0,children:(0,t.jsx)(c.Z.Text,{children:(0,b.OH)(e)})})})},{title:"Deskripsi",dataIndex:"note",key:"note",render(e,n){var a,i;let{ref:l}=n;return(0,t.jsxs)(t.Fragment,{children:[e||"-",l.order&&(0,t.jsxs)("div",{children:["Resi: ",(0,t.jsx)(_(),{href:"/order/detail/".concat(l.order._id),target:"_blank",children:(0,t.jsx)(c.Z.Text,{copyable:!0,className:"text-blue-500 text-sm",children:(null===(a=l.order)||void 0===a?void 0:a.resi)||(null===(i=l.order)||void 0===i?void 0:i.no_order)})})]}),l.reconciliation&&(0,t.jsx)("div",{children:(0,t.jsx)(_(),{className:"text-blue-600",href:"/reconciliation/".concat(l.reconciliation._id,"/invoice"),target:"_blank",children:"Lihat Rekonsiliasi"})})]})}},{title:"Tanggal",dataIndex:"date",key:"date",render:(e,n)=>(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(o.Z,{direction:"vertical",size:0,children:(0,t.jsx)(c.Z.Text,{children:j()(e).format("dddd, DD MMM YYYY")})})})}],url:"/api/debit-kredit",search:r})]})})})};function L(){return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)(r(),{children:[(0,t.jsx)("title",{children:"Debit Kredit"}),(0,t.jsx)("meta",{name:"Debit Kredit",content:"Debit Kredit Lincah.id"})]}),(0,t.jsx)("main",{children:(0,t.jsx)(D,{})})]})}L.layout="main";var P=L}},function(e){e.O(0,[4310,4393,2808,5742,4533,6920,8611,9774,2888,179],function(){return e(e.s=56113)}),_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.