PageSourceSearch

https://client.apikurir.id/_next/static/chunks/pages/report/city-8c0e86992bd4609a.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3496],{64775:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/report/city",function(){return a(56450)}])},15135:function(e,s,a){"use strict";var t=a(85893);s.Z=function(e){let{children:s}=e;return(0,t.jsx)("div",{class:"mx-auto container",children:(0,t.jsx)("div",{class:"flex flex-col gap-y-4",children:s})})}},70850:function(e,s,a){"use strict";var t=a(85893),l=a(28611),n=a(27484),r=a.n(n);let i=e=>{let{value:s,onChange:a,style:n={},className:i=""}=e,c=[{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)(l.Z.RangePicker,{className:i,style:n,value:s,onChange:a,presets:c})};s.Z=i},10635:function(e,s,a){"use strict";var t=a(85893),l=a(83473),n=a(62616),r=a(34041),i=a(25675),c=a.n(i),d=a(67294);let x=e=>{let{showAll:s=!0,value:a,onChange:i,placeholder:x="Pilih Kurir",additional:h=[],style:o={},className:m=""}=e,[j,u]=(0,d.useState)(""),[Z,p]=(0,d.useState)(""),f=e=>{u(e),i(e)};return(0,d.useEffect)(()=>{let e=(0,n.cY)();p(e)},[]),(0,d.useEffect)(()=>{u(a)},[a]),(0,t.jsx)(r.Z,{style:o,className:m,value:j,onChange:f,dropdownMatchSelectWidth:!1,placeholder:x,options:(()=>{let e=(0,l.V$)(),a=[];if(s&&a.push({value:"",label:(0,t.jsx)(t.Fragment,{children:"Semua Kurir"})}),h&&h.length)for(let n of h)a.push(n);for(let r of e)["Jibril","Mikail"].includes(Z)&&r.onlyAdmin&&(r.hide=!1),r.hide||a.push({value:r.code,label:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(c(),{className:"my-auto",src:r.icon||r.image,height:24,width:24}),r.name]})});return a})()})};s.Z=x},56450:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return T}});var t=a(85893),l=a(67294),n=a(9008),r=a.n(n),i=a(28611),c=a(73016),d=a(71577),x=a(71230),h=a(15746),o=a(4393),m=a(4310),j=a(59117),u=a(15135),Z=a(27484),p=a.n(Z),f=a(7851),N=a(70850),g=a(10635);let{RangePicker:v}=i.Z;var y=function(){let[e,s]=(0,l.useState)(!1),[a,n]=(0,l.useState)([p()().subtract(30,"days"),p()()]),[r,i]=(0,l.useState)([]),[Z,v]=(0,l.useState)([]),[y,b]=(0,l.useState)([]),[T,S]=(0,l.useState)([]),[w,C]=(0,l.useState)(!1),[D,F]=(0,l.useState)(!1),[R,_]=(0,l.useState)(!1),[Y,L]=(0,l.useState)(!1),[k,E]=(0,l.useState)("");return(0,l.useEffect)(()=>{if(!e||!e||2!=e.length)return;let s=e[0].format("YYYY-MM-DD"),a=e[1].format("YYYY-MM-DD");C(!0),F(!0),_(!0),L(!0),i([]),v([]),f.api.get("/api/dashboard/leaderboard/rts-city",{params:{from:s,to:a,courier:k}}).then(e=>{let{data:s}=e;i(s),C(!1)}).catch(()=>{C(!1)}),f.api.get("/api/dashboard/leaderboard/complete-city",{params:{from:s,to:a,courier:k}}).then(e=>{let{data:s}=e;v(s),F(!1)}).catch(()=>{F(!1)}),b([]),S([]),f.api.get("/api/dashboard/leaderboard/rts-city",{params:{from:s,to:a,seller:1,courier:k}}).then(e=>{let{data:s}=e;b(s),_(!1)}).catch(()=>{_(!1)}),f.api.get("/api/dashboard/leaderboard/complete-city",{params:{from:s,to:a,seller:1,courier:k}}).then(e=>{let{data:s}=e;S(s),L(!1)}).catch(()=>{L(!1)})},[e,k]),(0,t.jsxs)(u.Z,{children:[(0,t.jsxs)("div",{className:"flex justify-between items-center flex-wrap",children:[(0,t.jsxs)("div",{className:"flex gap-x-3 items-center",children:[(0,t.jsx)(c.Z.Text,{className:"text-primary text-2xl",children:(0,t.jsx)(j.Z,{})}),(0,t.jsx)(c.Z.Text,{className:"font-semibold",children:"City RTS Rate report"})]}),(0,t.jsxs)("div",{className:"flex gap-x-3 items-center",children:[(0,t.jsx)(N.Z,{value:a,onChange:e=>n(e)}),(0,t.jsx)(g.Z,{value:k,onChange:E}),(0,t.jsx)(d.ZP,{type:"primary",size:"small",onClick:()=>s(a),children:"Tampilkan"})]})]}),e&&(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(h.Z,{xs:24,lg:12,children:(0,t.jsxs)(o.Z,{children:[(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(h.Z,{span:24,children:(0,t.jsx)(c.Z.Text,{className:"font-semibold",children:"RTS by City - Lincah Data"})}),(0,t.jsx)(h.Z,{span:16,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Name"})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Rate"})})]}),(0,t.jsx)(m.Z,{loading:w,active:!0,children:(0,t.jsx)("div",{className:"max-h-96 overflow-auto w-full",children:(0,t.jsx)(x.Z,{gutter:[16,16],children:r.map(e=>{let{name:s,province:a,count:l,total:n,sort:r}=e;if(s)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{span:16,children:(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:[a," - ",s]})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsxs)("div",{className:"flex gap-x-2",children:[(0,t.jsxs)(c.Z.Text,{className:"text-green-500",children:[parseFloat(r).toFixed(2),"%"]}),(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:["(",l,"/",n,")"]})]})})]})})})})})]})}),(0,t.jsx)(h.Z,{xs:24,lg:12,children:(0,t.jsxs)(o.Z,{children:[(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(h.Z,{span:24,children:(0,t.jsx)(c.Z.Text,{className:"font-semibold",children:"Delivered by City - Lincah Data"})}),(0,t.jsx)(h.Z,{span:16,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Name"})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Rate"})})]}),(0,t.jsx)(m.Z,{loading:w,active:!0,children:(0,t.jsx)("div",{className:"max-h-96 overflow-auto w-full",children:(0,t.jsx)(x.Z,{gutter:[16,16],children:Z.map(e=>{let{name:s,province:a,count:l,total:n,sort:r}=e;if(s)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{span:16,children:(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:[a," - ",s]})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsxs)("div",{className:"flex gap-x-2",children:[(0,t.jsxs)(c.Z.Text,{className:"text-green-500",children:[parseFloat(r).toFixed(2),"%"]}),(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:["(",l,"/",n,")"]})]})})]})})})})})]})}),(0,t.jsx)(h.Z,{xs:24,lg:12,children:(0,t.jsxs)(o.Z,{children:[(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(h.Z,{span:24,children:(0,t.jsx)(c.Z.Text,{className:"font-semibold",children:"RTS by City - Seller Data"})}),(0,t.jsx)(h.Z,{span:16,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Name"})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Rate"})})]}),(0,t.jsx)(m.Z,{loading:w,active:!0,children:(0,t.jsx)("div",{className:"max-h-96 overflow-auto w-full",children:(0,t.jsx)(x.Z,{gutter:[16,16],children:y.map(e=>{let{name:s,province:a,count:l,total:n,sort:r}=e;if(s)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{span:16,children:(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:[a," - ",s]})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsxs)("div",{className:"flex gap-x-2",children:[(0,t.jsxs)(c.Z.Text,{className:"text-green-500",children:[parseFloat(r).toFixed(2),"%"]}),(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:["(",l,"/",n,")"]})]})})]})})})})})]})}),(0,t.jsx)(h.Z,{xs:24,lg:12,children:(0,t.jsxs)(o.Z,{children:[(0,t.jsxs)(x.Z,{gutter:[16,16],children:[(0,t.jsx)(h.Z,{span:24,children:(0,t.jsx)(c.Z.Text,{className:"font-semibold",children:"Delivered by City - Seller Data"})}),(0,t.jsx)(h.Z,{span:16,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Name"})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsx)(c.Z.Text,{className:"text-secondary",children:"Rate"})})]}),(0,t.jsx)(m.Z,{loading:w,active:!0,children:(0,t.jsx)("div",{className:"max-h-96 overflow-auto w-full",children:(0,t.jsx)(x.Z,{gutter:[16,16],children:T.map(e=>{let{name:s,province:a,count:l,total:n,sort:r}=e;if(s)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{span:16,children:(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:[a," - ",s]})}),(0,t.jsx)(h.Z,{span:8,children:(0,t.jsxs)("div",{className:"flex gap-x-2",children:[(0,t.jsxs)(c.Z.Text,{className:"text-green-500",children:[parseFloat(r).toFixed(2),"%"]}),(0,t.jsxs)(c.Z.Text,{className:"font-semibold",children:["(",l,"/",n,")"]})]})})]})})})})})]})})]})]})};function b(){return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)(r
1(),{children:[(0,t.jsx)("title",{children:"Report City"}),(0,t.jsx)("meta",{name:"Report City Lincah.id",content:"Report City Lincah.id"})]}),(0,t.jsx)("main",{children:(0,t.jsx)(y,{})})]})}b.layout="main";var T=b}},function(e){e.O(0,[4310,4393,8611,9774,2888,179],function(){return e(e.s=64775)}),_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.