PageSourceSearch

https://client.apikurir.id/_next/static/chunks/pages/reconciliation/[id]-751d89ca1ad42a80.js

js apikurir.id collected 2026-10-02 06:30:32 UTC 8,176 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2306],{35823:function(e){e.exports=function(e,t,a,n){var i=new Blob(void 0!==n?[n,e]:[e],{type:a||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,t);else{var r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),s=document.createElement("a");s.style.display="none",s.href=r,s.setAttribute("download",t),void 0===s.download&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(r)},200)}}},95803:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reconciliation/[id]",function(){return a(25948)}])},15135:function(e,t,a){"use strict";var n=a(85893);t.Z=function(e){let{children:t}=e;return(0,n.jsx)("div",{class:"mx-auto container",children:(0,n.jsx)("div",{class:"flex flex-col gap-y-4",children:t})})}},50349:function(e,t,a){"use strict";var n=a(85893),i=a(83473),r=a(7851),s=a(76920),l=a(67294);let c=(0,l.forwardRef)((e,t)=>{let{url:a,search:c,pageSize:o=10,className:d,rowKey:u,pageSizeOptions:x=[10,20,50,100],setCustomLoading:h=()=>{},onLoad:p}=e,m={current:1,pageSize:o,pageSizeOptions:x,showSizeChanger:!0,showTotal:e=>"Total ".concat((0,i.W_)(e))},[j,g]=(0,l.useState)([]),[f,v]=(0,l.useState)(!1),[w,Z]=(0,l.useState)({pagination:m}),b=(e,t,a)=>{Z({pagination:e,filters:t,...a})},N=()=>{v(!0),h&&h(!0),a&&r.api.get(a,{params:{search:JSON.stringify(c),current:w.pagination.current,pageSize:w.pagination.pageSize,sort:w.field?"".concat(w.field,":").concat(w.order||"descend"):void 0}}).then(e=>{let{data:t,total:a}=e.data;v(!1),h&&h(!1),g(t),p&&"function"==typeof p&&p(e.data),Z({...w,pagination:{...m,...w.pagination,total:a}})}).catch(e=>{v(!1),h&&h(!1)})};(0,l.useEffect)(()=>{N()},[w.field,w.order,w.pagination.current,w.pagination.pageSize]);let S=(0,l.useRef)(!0);return(0,l.useEffect)(()=>{if(S.current){S.current=!1;return}w.pagination.current>1?Z(e=>({...e,pagination:{...e.pagination,current:1}})):N()},[c,a]),t&&(t.reload=N,t.loading=f),(0,n.jsx)("div",{className:d,children:(0,n.jsx)(s.Z,{...e,rowKey:e=>"function"==typeof u?u(e):e.id||e._id,pagination:w.pagination,dataSource:j,loading:f,onChange:b,scroll:{x:!0}})})});t.Z=c},10635:function(e,t,a){"use strict";var n=a(85893),i=a(83473),r=a(62616),s=a(34041),l=a(25675),c=a.n(l),o=a(67294);let d=e=>{let{showAll:t=!0,value:a,onChange:l,placeholder:d="Pilih Kurir",additional:u=[],style:x={},className:h=""}=e,[p,m]=(0,o.useState)(""),[j,g]=(0,o.useState)(""),f=e=>{m(e),l(e)};return(0,o.useEffect)(()=>{let e=(0,r.cY)();g(e)},[]),(0,o.useEffect)(()=>{m(a)},[a]),(0,n.jsx)(s.Z,{style:x,className:h,value:p,onChange:f,dropdownMatchSelectWidth:!1,placeholder:d,options:(()=>{let e=(0,i.V$)(),a=[];if(t&&a.push({value:"",label:(0,n.jsx)(n.Fragment,{children:"Semua Kurir"})}),u&&u.length)for(let r of u)a.push(r);for(let s of e)["Jibril","Mikail"].includes(j)&&s.onlyAdmin&&(s.hide=!1),s.hide||a.push({value:s.code,label:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c(),{className:"my-auto",src:s.icon||s.image,height:24,width:24}),s.name]})});return a})()})};t.Z=d},25948:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return k}});var n=a(85893),i=a(67294),r=a(9008),s=a.n(r),l=a(11486),c=a(92477),o=a(73016),d=a(26855),u=a(4393),x=a(71230),h=a(15746),p=a(34041),m=a(71577),j=a(27484),g=a.n(j),f=a(44689),v=a(11163),w=a(50349),Z=a(57333);a(15135);var b=a(10635);a(35823);var N=a(7851);let{Search:S}=l.Z;var y=function(){let{couriers:e}=(0,i.useContext)(f.Z),{push:t,query:a}=(0,v.useRouter)(),r=(0,i.useRef)(null),[s]=c.Z.useForm(),l={courier:"",status:"",search:""},[j,y]=(0,i.useState)(l),[R,k]=(0,i.useState)(!1),_=()=>{k(!0),N.api.post("/api/reconsiliation/".concat(null==a?void 0:a.id,"/export/order"),{url:1}).then(e=>{k(!1),window.open(e.data.url,"_blank")}).catch(e=>{var t;let{response:a}=e;(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)&&d.Z.warning({message:null==a?void 0:a.data.message}),k(!1)})};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(u.Z,{title:"Reconsiliation Order List",children:[(0,n.jsx)(c.Z,{form:s,initialValues:l,onValuesChange:function(e){let t=s.getFieldsValue();e.search?setTimeout(()=>{let e=s.getFieldsValue();y(e)},1e3):y(t)},children:(0,n.jsxs)(x.Z,{justify:"space-between",children:[(0,n.jsx)(h.Z,{xs:24,lg:12,children:(0,n.jsxs)(x.Z,{gutter:[16,16],children:[(0,n.jsx)(h.Z,{xs:24,lg:8,children:(0,n.jsx)(c.Z.Item,{name:"courier",children:(0,n.jsx)(b.Z,{})})}),(0,n.jsx)(h.Z,{xs:24,lg:8,children:(0,n.jsx)(c.Z.Item,{name:"status",children:(0,n.jsxs)(p.Z,{placeholder:"Semua Status",children:[(0,n.jsx)(p.Z.Option,{value:"",children:"Semua Status"}),(0,n.jsx)(p.Z.Option,{value:"complete",children:"Complete"}),(0,n.jsx)(p.Z.Option,{value:"return",children:"Return"})]})})}),(0,n.jsx)(h.Z,{xs:24,lg:8,children:(0,n.jsx)(m.ZP,{loading:R,onClick:()=>_(),type:"dashed",danger:!0,children:"Export Order"})})]})}),(0,n.jsx)(h.Z,{xs:24,lg:5,children:(0,n.jsx)(c.Z.Item,{name:"search",children:(0,n.jsx)(S,{placeholder:"Search",enterButton:!0})})})]})}),(0,n.jsx)(w.Z,{ref:r,className:"order-table",url:"/api/reconsiliation/".concat(null==a?void 0:a.id,"/order"),columns:[{title:"ID Pesanan",dataIndex:"no_order",render:(e,a)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col whitespace-nowrap",children:[(0,n.jsx)(o.Z.Link,{onClick:()=>t("/order/detail/".concat(a.id||a._id)),copyable:!0,children:e}),(0,n.jsx)(o.Z.Text,{className:"text-xs text-[#8D99AE]",children:g()(a.createdAt).format("dddd DD MMM YYYY")})]})})},{title:"Penerima",dataIndex:"name",render:(e,t)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(o.Z.Text,{children:e}),(0,n.jsx)(o.Z.Text,{className:"text-xs whitespace-nowrap text-[#8D99AE]",children:t.phone||""})]})})},{title:"Paket",dataIndex:"name",render(e,t){var a;return(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col mb-5",children:[(0,n.jsxs)(o.Z.Text,{className:"max-w-[250px]",children:[(0,n.jsx)("span",{children:t.product_name})," (",t.weight," kg)"]}),(0,n.jsxs)(o.Z.Text,{className:"text-xs text-[#8D99AE]",children:["Ongkos Kirim:\xa0",(0,n.jsx)(Z.h3,{className:"text-black",prefix:"Rp ",value:(null===(a=t.ongkir)||void 0===a?void 0:a.fee)||0,allowLeadingZeros:!0,thousandSeparator:",",displayType:"text"}),"cod"===t.type?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),"Nilai COD:\xa0",(0,n.jsx)(Z.h3,{className:"text-black",prefix:"Rp ",value:t.cod_price||0,allowLeadingZeros:!0,thousandSeparator:",",displayType:"text"}),(0,n.jsx)("br",{}),"Nilai Dicairkan:\xa0",(0,n.jsx)(Z.h3,{className:"text-black",prefix:"Rp ",value:t.cod_estimation||0,allowLeadingZeros:!0,thousandSeparator:",",displayType:"text"})]}):(0,n.jsx)(n.Fragment,{})]})]})})}},{title:"Kurir",dataIndex:"courier",render:(e,t)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)(o.Z.Text,{children:[e.toUpperCase()," ",t.courier_type||""]}),t.resi&&t.resi.length?(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)(o.Z.Text,{className:"text-xs text-[#8D99AE]",copyable:{text:t.resi},children:[(0,n.jsx)("span",{children:"No. Resi: "})," ",(0,n.jsx)("br",{}),(0,n.jsx)("span",{children:t.resi||""})]})}):(0,n.jsx)(n.Fragment,{})]})})},{title:"Status",dataIndex:"status",render:(e,t)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsx)(o.Z.Text,{children:"pending"===e?"Belum Dibayar":"waiting"===e?"Menunggu Dijemput/Diantar":"shipping"===e?"Dalam Pengiriman":"complete"===e?"Diterima":"return"===e?"Return":"canceled"===e?"Dibatalkan":null})})})}],search:j})]})})};function R(){return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)(s(),{children:[(0,n.jsx)("title",{children:"Reconciliation"}),(0,n.jsx)("meta",{name:"Reconciliation",content:"Reconciliation Lincah.id"})]}),(0,n.jsx)("main",{children:(0,n.jsx)(y,{})})]})}R.layout="main";var k=R}},function(e){e.O(0,[4310,4393,2808,5742,4533,6920,9774,2888,179],function(){return e(e.s=95803)}),_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.