1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3957],{1902:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/trucker/subscribe/history",function(){return t(63903)}])},50054:function(e,s,t){"use strict";var a=t(85893),n=t(1280),r=t(67294),i=t(5434);s.Z=(0,r.memo)(function(e){let{router:s,close:t}=e,r=()=>{s.replace("/trucker/subscribe/pending"),t()};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex justify-center w-full",children:(0,a.jsx)(i.vVM,{className:"text-danger w-[40px] h-[40px]"})}),(0,a.jsx)("p",{className:"font-medium text-neutral-1000 mt-[20px]",children:"Silahkan selesaikan pembayaran sebelumnya"}),(0,a.jsx)(n.Z,{className:"mt-[16px]",onClick:()=>r(),children:"Bayar Sekarang"})]})})})},54295:function(e,s,t){"use strict";var a=t(67294);let n=e=>{let s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=new IntersectionObserver(s=>{s[0].isIntersecting&&e()},{threshold:.5});return(null==s?void 0:s.current)&&t.observe(s.current),()=>{s.current&&t.unobserve(s.current)}},[s,e]),s};s.Z=n},63903:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return B}});var a=t(85893),n=t(85734),r=t(67294),i=t(11163),l=t(64035),c=t(8193),d=t(91594),u=t(1280),o=t(82755),x=t(77673),p=t(7498),h=t(70560),m=t(54427),j=t(50054),f=t(21311),b=t(147),k=t(6244),g=t(67639),v=t(18565),w=t(54295),y=(0,r.memo)(function(){var e;let s=(0,i.useRouter)(),t=(0,o.Z)(),{completed:{subscribeHistory:n},setCompleted:y}=(0,m.Z)(),{data:_,isFetched:B}=(0,b.DP)(),{data:C,fetchNextPage:S,hasNextPage:E,isFetched:F,isFetching:P,isLoading:A,isFetchingNextPage:H}=(0,b.k4)(),[R,T]=(0,r.useState)(!1),[L,O]=(0,r.useState)(0),V=(0,w.Z)(()=>{E&&F&&!A&&!H&&S()});return(0,r.useEffect)(()=>{B&&!n&&setTimeout(()=>{T(!0)},1500)},[B,n]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{isOwner:!0,children:[(0,a.jsx)(d.Z,{header:"Riwayat Berlangganan Trucker",onBack:()=>s.back()}),(0,a.jsx)(g.Z,{}),(0,a.jsx)("div",{className:"container mb-[5px] desktop:no-container desktop:mt-[24px]",children:(0,a.jsxs)("div",{className:"py-[16px] desktop:py-0",children:[(0,a.jsxs)("div",{className:"itemDesktops-center flex cursor-pointer justify-between rounded-[8px] border border-neutral-800 px-[12px] py-[11px]",onClick:()=>s.push("/trucker/subscribe/pending"),id:"coach-subscribe-history-1",children:[(0,a.jsx)("p",{className:"text-[12px] font-medium text-neutral-700",children:"Menunggu Pembayaran"}),(0,a.jsxs)("div",{className:"flex items-center gap-[8px]",children:[_&&(null==_?void 0:_.data)&&(null==_?void 0:null===(e=_.data)||void 0===e?void 0:e.total)>0&&(0,a.jsxs)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{y:"0.5",width:"18",height:"18",rx:"9",fill:"#CD3A31"}),(0,a.jsx)("path",{d:"M8.588 13.5V5.46L8.972 5.868H6.608V5.1H9.452V13.5H8.588Z",fill:"white"})]}),(0,a.jsx)(c.Td4,{})]})]}),null==C?void 0:C.pages.map((e,s)=>(0,a.jsx)(r.Fragment,{children:null==e?void 0:e.data.data.map((e,s)=>(0,a.jsx)("div",{className:"mt-[24px] grid gap-[16px]",children:(0,a.jsx)("div",{className:"truncate",children:(0,a.jsx)(k.Z,{data:e})})},s))},s)),F&&(null==C?void 0:C.pages[0].data.total)===0&&(0,a.jsxs)("div",{className:"mt-[32px] flex flex-col justify-center desktop:mt-[24px]",children:[(0,a.jsx)("div",{className:"flex w-full justify-center",children:(0,a.jsx)("picture",{children:(0,a.jsx)("img",{src:"/empty-state/subcribe_history.svg",alt:"",className:"h-[247px] max-h-[384px] w-[280px] max-w-[394]"})})}),(0,a.jsxs)("p",{className:"mt-[24px] text-center text-neutral-800",children:["Belum ada transaksi disini ! ",(0,a.jsx)("br",{className:"block desktop:hidden"})," Langganan sekarang yuk !"]}),(0,a.jsx)("div",{className:"mt-[16px] flex w-full justify-center desktop:mt-[32px]",children:(0,a.jsx)(u.Z,{className:"w-full desktop:w-fit",onClick:()=>{var e;_&&(null==_?void 0:_.data)&&(null==_?void 0:null===(e=_.data)||void 0===e?void 0:e.total)>0?(0,f.Z)(e=>(0,a.jsx)(j.Z,{router:s,close:e}),{disableBackdropClose:!0}):s.push("/trucker/subscribe/category?asPath=".concat(s.asPath))},children:"Berlangganan Sekarang"})})]}),(0,a.jsx)("div",{className:"flex-center",ref:V,children:H&&(0,a.jsx)(v.Z,{})})]})})]}),R&&(0,a.jsx)(p.default,{target:t<x.A?Z[L]:N[L],onSkip:()=>{(0,h.I)(),T(!1),O(0)},onResolve:e=>{e&&(T(!1),y({subscribeHistory:!0})),O(e=>0)}})]})});let N=[{id:"coach-subscribe-history-1",message:(0,a.jsxs)("span",{children:["Lanjutkan pembayaran disini untuk ",(0,a.jsx)("br",{})," mendapatkan paket berlangganan"]}),tooltipAnchor:"left-start",tooltipAlign:"right",isFinalStep:!0}],Z=[{id:"coach-subscribe-history-1",message:(0,a.jsxs)("span",{children:["Lanjutkan pembayaran disini untuk ",(0,a.jsx)("br",{})," mendapatkan paket berlangganan"]}),tooltipAnchor:"bottom-start",isFinalStep:!0}];var _=t(51354);function B(){let e=(0,i.useRouter)();return(0,_.Z)(()=>(0,f.Z)(s=>(0,a.jsx)(n.default,{close:s,router:e}),{disableBackdropClose:!0})),(0,a.jsx)("div",{className:"desktop:container no-container",children:(0,a.jsx)(y,{})})}}},function(e){e.O(0,[7847,5675,3412,3613,623,4035,3490,6244,9774,2888,179],function(){return e(e.s=1902)}),_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.