PageSourceSearch

https://client.apikurir.id/_next/static/chunks/pages/correction/return-22982c3942853ce4.js

js apikurir.id collected 2026-10-02 06:28:44 UTC 5,273 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2731],{47535:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/correction/return",function(){return r(52239)}])},10635:function(e,n,r){"use strict";var t=r(85893),i=r(83473),l=r(62616),s=r(34041),a=r(25675),d=r.n(a),c=r(67294);let o=e=>{let{showAll:n=!0,value:r,onChange:a,placeholder:o="Pilih Kurir",additional:u=[],style:h={},className:x=""}=e,[j,v]=(0,c.useState)(""),[g,Z]=(0,c.useState)(""),m=e=>{v(e),a(e)};return(0,c.useEffect)(()=>{let e=(0,l.cY)();Z(e)},[]),(0,c.useEffect)(()=>{v(r)},[r]),(0,t.jsx)(s.Z,{style:h,className:x,value:j,onChange:m,dropdownMatchSelectWidth:!1,placeholder:o,options:(()=>{let e=(0,i.V$)(),r=[];if(n&&r.push({value:"",label:(0,t.jsx)(t.Fragment,{children:"Semua Kurir"})}),u&&u.length)for(let l of u)r.push(l);for(let s of e)["Jibril","Mikail"].includes(g)&&s.onlyAdmin&&(s.hide=!1),s.hide||r.push({value:s.code,label:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(d(),{className:"my-auto",src:s.icon||s.image,height:24,width:24}),s.name]})});return r})()})};n.Z=o},52239:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return _}});var t=r(85893),i=r(67294),l=r(9008),s=r.n(l),a=r(11486),d=r(92477),c=r(26713),o=r(71577),u=r(73016),h=r(71230),x=r(15746),j=r(4393),v=r(76920),g=r(44689),Z=r(83473),m=r(59734),f=r(10635);let{Search:p}=a.Z;var y=function(){let{session:e}=(0,i.useContext)(g.Z),[n]=d.Z.useForm(),r={courier:"",search:""},[l,s]=(0,i.useState)(r),[a,y]=(0,i.useState)({current:1,total:0,pageSize:10,position:["bottomRight"]}),[S,_]=(0,i.useState)([]),{data:z,mutate:F,error:w}=(0,m.ZP)(["".concat(Z.v2,"/api/correction/shipping-fee?search=").concat(JSON.stringify(l),"&current=").concat(a.current,"&pageSize=").concat(a.pageSize),null==e?void 0:e.accessToken],Z._i);return(0,i.useEffect)(()=>{z&&(_(null==z?void 0:z.data),y(e=>({...e,total:null==z?void 0:z.total})))},[z]),(0,t.jsx)(h.Z,{gutter:[16,16],children:(0,t.jsx)(x.Z,{span:24,children:(0,t.jsx)(j.Z,{title:"Return",style:{width:"100%"},children:(0,t.jsxs)(h.Z,{gutter:[16,16],children:[(0,t.jsx)(x.Z,{span:24,children:(0,t.jsx)(d.Z,{form:n,initialValues:r,onValuesChange:function(e){let r=n.getFieldsValue();e.search?setTimeout(()=>{let e=n.getFieldsValue();s(e)},1e3):s(r)},children:(0,t.jsxs)(h.Z,{justify:"space-between",gutter:[16,16],align:"middle",children:[(0,t.jsx)(x.Z,{xs:24,lg:12,children:(0,t.jsx)(h.Z,{gutter:[16,16],align:"middle",children:(0,t.jsx)(x.Z,{xs:24,lg:6,children:(0,t.jsx)(d.Z.Item,{name:"courier",children:(0,t.jsx)(f.Z,{})})})})}),(0,t.jsx)(x.Z,{xs:24,lg:6,children:(0,t.jsx)(d.Z.Item,{name:"search",children:(0,t.jsx)(p,{placeholder:"Cari No. Order/Resi",enterButton:!0})})})]})})}),(0,t.jsx)(x.Z,{span:24,children:(0,t.jsx)(v.Z,{rowKey:e=>e.id,columns:[{title:"ID Pesanan",dataIndex:"no_order",render:(e,n)=>(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)(c.Z,{direction:"vertical",size:0,children:[(0,t.jsx)(o.ZP,{type:"link",style:{padding:0},children:e||""}),(0,t.jsxs)(u.Z.Text,{style:{color:"#8D99AE",fontSize:12},children:[(0,t.jsx)("span",{children:"No. Resi: "})," ",(null==n?void 0:n.resi)||""]})]})})},{title:"Penerima",dataIndex:"name",render:(e,n)=>(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)(c.Z,{direction:"vertical",size:0,children:[(0,t.jsxs)(o.ZP,{type:"link",style:{padding:0},children:[e||""," ",n.score]}),(0,t.jsx)(u.Z.Text,{style:{color:"#8D99AE",fontSize:12},children:(null==n?void 0:n.phone)||""})]})})},{title:"Kurir",dataIndex:"order",render:(e,n)=>(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(c.Z,{direction:"vertical",size:0,children:(0,t.jsxs)(u.Z.Text,{children:[e||null," ",(null==n?void 0:n.courier_type)||null]})})})},{title:"Biaya Sebelumnya",dataIndex:"return",render(e,n){var r;return(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(c.Z,{direction:"vertical",size:0,children:(0,t.jsx)(u.Z.Text,{children:(null==n?void 0:null===(r=n.return)||void 0===r?void 0:r.previous)||null})})})}},{title:"Biaya Sebenarnya",dataIndex:"return",render(e,n){var r;return(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(c.Z,{direction:"vertical",size:0,children:(0,t.jsx)(u.Z.Text,{children:(null==n?void 0:null===(r=n.return)||void 0===r?void 0:r.fee)||null})})})}},{title:"Selisih Biaya",dataIndex:"return",render(e,n){var r,l;return(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(c.Z,{direction:"vertical",size:0,children:(0,t.jsx)(u.Z.Text,{children:(null==n?void 0:null===(r=n.return)||void 0===r?void 0:r.fee)||0-(null==n?void 0:null===(l=n.return)||void 0===l?void 0:l.previous)||0})})})}},{title:"Keterangan",dataIndex:"return",render(e,n){var r;return(0,t.jsx)(i.Fragment,{children:(0,t.jsx)(c.Z,{direction:"vertical",size:0,children:(0,t.jsx)(u.Z.Text,{children:(null==n?void 0:null===(r=n.return)||void 0===r?void 0:r.note)||0})})})}}],loading:!z&&!w,pagination:a,dataSource:S,onChange:function(e){y(n=>({...n,current:e.current}))}})})]})})})})};function S(){return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"Correction Return"}),(0,t.jsx)("meta",{name:"Correction Return",content:"Correction Return Lincah.id"})]}),(0,t.jsx)("main",{children:(0,t.jsx)(y,{})})]})}S.layout="main";var _=S}},function(e){e.O(0,[4310,4393,2808,5742,4533,6920,9774,2888,179],function(){return e(e.s=47535)}),_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.