PageSourceSearch

https://golektruk.com/_next/static/chunks/pages/gokil/history/quot…/quota-wallet-88d34eccb66ad183.js

js golektruk.com collected 2026-10-01 15:16:59 UTC 27,735 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5560],{11176:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gokil/history/quota/[quotaType]/quota-wallet",function(){return a(82334)}])},24095:function(e,t,a){"use strict";var r=a(85893);let n=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"54",height:"64",viewBox:"0 0 54 64",fill:"#000",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_7243_41241)",children:[(0,r.jsx)("path",{d:"M0 0V56.8056H26.2281C25.6491 55.2724 25.2982 53.6193 25.2368 51.9062H7.95614C7 51.9062 6.2193 51.1439 6.2193 50.2103V49.1995C6.2193 48.2659 7 47.5122 7.95614 47.5122H25.6842C26.0877 45.8847 26.7544 44.3515 27.6404 42.9639H7.95614C7 42.9639 6.2193 42.2102 6.2193 41.2766V40.3001C6.2193 39.3665 7 38.6127 7.95614 38.6127H31.7018C34.4211 36.6084 37.7982 35.4264 41.4649 35.4264C43.1491 35.4264 44.7719 35.6748 46.2982 36.1373V0H0ZM40.0789 32.3343C40.0789 33.2679 39.2982 34.0303 38.3421 34.0303H7.95614C7 34.0303 6.2193 33.2679 6.2193 32.3343V31.4007C6.2193 30.4671 7 29.7133 7.95614 29.7133H38.3421C39.2982 29.7133 40.0789 30.4671 40.0789 31.4007V32.3343ZM40.0789 22.0216C40.0789 23.6404 38.7368 24.9509 37.0789 24.9509H9.2193C7.5614 24.9509 6.2193 23.6404 6.2193 22.0216V8.89086C6.2193 7.27201 7.5614 5.9615 9.2193 5.9615H37.0789C38.7368 5.9615 40.0789 7.27201 40.0789 8.89086V22.0216Z"}),(0,r.jsx)("path",{d:"M41.465 63.5294C48.388 63.5294 54.0001 58.0494 54.0001 51.2895C54.0001 44.5296 48.388 39.0496 41.465 39.0496C34.5421 39.0496 28.9299 44.5296 28.9299 51.2895C28.9299 58.0494 34.5421 63.5294 41.465 63.5294Z"}),(0,r.jsx)("path",{d:"M43.7369 44.8655V56.3859H41.0088V47.0068H38.6492V44.8655H43.7369Z",fill:"white"}),(0,r.jsx)("path",{d:"M25.1141 8.53117L26.1141 11.5291C26.2808 12.0258 26.7545 12.3685 27.2896 12.3685H30.5176C31.7194 12.3685 32.2194 13.8674 31.2457 14.5612L28.6317 16.4113C28.1931 16.7197 28.0176 17.2679 28.1843 17.7646L29.1843 20.7625C29.5527 21.876 28.2457 22.8011 27.2808 22.1159L24.6668 20.2657C24.2282 19.9574 23.6404 19.9574 23.2106 20.2657L20.5966 22.1159C19.6229 22.8011 18.3159 21.876 18.6931 20.7625L19.6931 17.7646C19.8597 17.2679 19.6755 16.7197 19.2457 16.4113L16.6317 14.5612C15.658 13.876 16.158 12.3685 17.3597 12.3685H20.5878C21.1229 12.3685 21.5966 12.0344 21.7632 11.5291L22.7632 8.53117C23.1317 7.41767 24.7457 7.41767 25.1229 8.53117H25.1141Z"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_7243_41241",children:(0,r.jsx)("rect",{width:"54",height:"63.5294",fill:"white"})})})]})};t.Z=n},27142:function(e,t,a){"use strict";var r=a(85893);let n=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"54",height:"64",viewBox:"0 0 54 64",fill:"#000",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_7243_41345)",children:[(0,r.jsx)("path",{d:"M0 0V56.6821H26.2281C25.6491 55.1522 25.2982 53.5027 25.2368 51.7934H7.95614C7 51.7934 6.2193 51.0327 6.2193 50.1011V49.0926C6.2193 48.161 7 47.4089 7.95614 47.4089H25.6842C26.0877 45.785 26.7544 44.2551 27.6403 42.8705H7.95614C7 42.8705 6.2193 42.1184 6.2193 41.1868V40.2125C6.2193 39.2809 7 38.5288 7.95614 38.5288H31.7018C34.4211 36.5289 37.7982 35.3494 41.4649 35.3494C43.1491 35.3494 44.7719 35.5973 46.2982 36.0588V0H0ZM40.0789 32.264C40.0789 33.1956 39.2982 33.9563 38.3421 33.9563H7.95614C7 33.9563 6.2193 33.1956 6.2193 32.264V31.3324C6.2193 30.4008 7 29.6487 7.95614 29.6487H38.3421C39.2982 29.6487 40.0789 30.4008 40.0789 31.3324V32.264ZM40.0789 21.9737C40.0789 23.5891 38.7368 24.8967 37.0789 24.8967H9.2193C7.5614 24.8967 6.2193 23.5891 6.2193 21.9737V8.87154C6.2193 7.2562 7.5614 5.94854 9.2193 5.94854H37.0789C38.7368 5.94854 40.0789 7.2562 40.0789 8.87154V21.9737Z"}),(0,r.jsx)("path",{d:"M41.465 63.3913C48.388 63.3913 54.0001 57.9232 54.0001 51.178C54.0001 44.4328 48.388 38.9647 41.465 38.9647C34.5421 38.9647 28.9299 44.4328 28.9299 51.178C28.9299 57.9232 34.5421 63.3913 41.465 63.3913Z"}),(0,r.jsx)("path",{d:"M43.7369 44.7679V56.2633H41.0088V46.9046H38.6492V44.7679H43.7369Z",fill:"white"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_7243_41345",children:(0,r.jsx)("rect",{width:"54",height:"63.3913",fill:"white"})})})]})};t.Z=n},74068:function(e,t,a){"use strict";var r=a(85893),n=a(67294),l=a(54270),s=a(5434),i=a(6202),o=a(57632),c=a(20745),d=a(53892),u=a(72728),g=a(70560),h=a(63761),m=a(11163);let x=new Date().getFullYear(),p=x-5,y=x+75,v=e=>{let{fieldRef:t,startDate:a,endDate:x,onChange:v,onClose:k,minDate:f,maxDate:j,
1customParentId:b,customFn:w,limitRange:C,mode:N,selectYearRange:D={min:p,max:y},descendingOrderYearList:Z,disableScrollLock:M=!1,..._}=e,H=(0,n.useRef)(null),[F,V]=(0,n.useState)(!1),q=(0,n.useRef)(""),{push:B,back:K}=(0,m.useRouter)();(0,h.Z)(()=>{q.current&&R(q.current)});let R=function(e){var t,a;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];V(!1),null==k||k(),null===(t=H.current)||void 0===t||t.unmount(),null===(a=document.getElementById("date-".concat(e)))||void 0===a||a.remove(),q.current="",M||(0,g.I)(),r&&K()};(0,h.Z)(()=>{q.current&&R(q.current)});let U=()=>{let e=(0,o.Z)();B("#openRangeCalendar".concat(e)).then(()=>{var t=document.createElement("div");t.id="rangedate-".concat(e),t.style.position="relative",q.current=e;let n=b?document.getElementById(b):document.body;if(!n)return;n.appendChild(t),M||(0,g.l)();let l=(0,c.createRoot)(t);H.current=l,l.render((0,r.jsx)("div",{className:"flex-center fixed inset-0 z-[2000] bg-[#16161680]",children:(0,r.jsx)(i.Z,{startDate:null!=a?a:void 0,endDate:null!=x?x:void 0,selectRange:!0,onChange:(t,a)=>{null==v||v(t,a),R(e,!0)},onClose:()=>R(e,!0),minDate:f,maxDate:j,limitRange:C,mode:N,selectYearRange:D,descendingOrderYearList:Z})}))})};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.Z,{innerRefContainer:t,readOnly:!0,onClick:e=>{e.preventDefault(),e.stopPropagation(),F||(V(!0),U())},onKeyDown:e=>{(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),U())},endAdornment:a||x?(0,r.jsx)(s.FU5,{className:_.disabled?void 0:"cursor-pointer",onClick:e=>{e.preventDefault(),_.disabled||null==v||v(void 0)}}):(0,r.jsx)(s.f$3,{}),value:w?w(a,x):a&&x?a.getTime()===x.getTime()?(0,d.Z)(a,"dd MMM yyyy",{locale:u.Z}):"".concat((0,d.Z)(a,"dd MMM yyyy",{locale:u.Z})," - ").concat((0,d.Z)(x,"dd MMM yyyy",{locale:u.Z})):a?(0,d.Z)(a,"dd MMM yyyy",{locale:u.Z}):x?(0,d.Z)(x,"dd MMM yyyy",{locale:u.Z}):"",..._})})};t.Z=v},3800:function(e,t,a){"use strict";var r=a(85893),n=a(1280),l=a(5434);let s=e=>{let{showBadge:t,onClick:a}=e;return(0,r.jsx)("div",{className:"container pointer-events-none fixed bottom-16 left-0 right-0 flex justify-end desktop:hidden",children:(0,r.jsx)(n.Z,{className:"group pointer-events-auto",starticon:t?(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute right-0 top-0 h-2 w-2 rounded-full border border-primary bg-danger transition duration-300 group-hover:border-primary-hover"}),(0,r.jsx)(l.O$5,{size:20})]}):(0,r.jsx)(l.O$5,{size:20}),onClick:e=>null==a?void 0:a(e),children:"Filter"})})};t.Z=s},96522:function(e,t,a){"use strict";var r=a(67294);let n=e=>{let{values:t,callback:a}=e;return(0,r.useEffect)(()=>{a(t)},[t]),null};t.Z=n},45328:function(e,t,a){"use strict";var r=a(85893),n=a(67294),l=a(69227),s=a(82175),i=a(74068);let o=e=>{let{name:t,onChange:a,...o}=e,[c,d,u]=(0,s.U$)(t),g=(0,n.useRef)(null);return(0,l.Z)(g,t),(0,r.jsx)(i.Z,{fieldRef:g,startDate:d.value.startDate,endDate:d.value.endDate,onChange:(e,t)=>
1{null==a||a({startDate:e,endDate:t}),u.setValue({startDate:e,endDate:t})},helperText:d.touched&&d.error?d.error:o.helperText,isError:d.touched&&!!d.error,...o})};t.Z=o},61922:function(e,t,a){"use strict";var r=a(85893),n=a(62729),l=a(69227),s=a(82175),i=a(67294);t.Z=function(e){let{name:t,color:a,onValue:o,helperText:c,...d}=e,[,u,g]=(0,s.U$)({name:t}),h=(0,i.useRef)(null);return(0,l.Z)(h,t),(0,r.jsx)(n.Z,{innerRef:h,name:t,value:u.value,onChange:e=>{o&&o(e),g.setValue(e)},helperText:u.touched&&u.error?u.error:c,color:u.touched&&u.error?"danger":a,...d})}},5696:function(e,t,a){"use strict";var r=a(85893),n=a(1280),l=a(91594),s=a(66921),i=a(11163),o=a(67294),c=a(5434),d=a(25675),u=a.n(d);let g=e=>{let{onClick:t,onSave:a,category:c,alternativeStyle:d=!1,title:u="",crossIcon:g=!1,includeAllOpt:m=!1}=e,{back:x}=(0,i.useRouter)(),p=(0,o.useMemo)(()=>[...m?[{value:"all",label:"Semua",imageUrl:"/golekiklan/category/all.svg"}]:[],...s.wA],[m]),[y,v]=(0,o.useState)(),[k,f]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{v(p.find(e=>e.value==c))},[p]),(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(l.Z,{header:u,color:"success",crossIcon:g,hideOnDesktop:!0,onBack:()=>x()}),(0,r.jsx)("div",{className:"container pb-22",children:p.map((e,n)=>(0,r.jsx)(h,{selected:e.value==(null==y?void 0:y.value),name:e.label,onClick:()=>{v(e),t(e)},imageUrl:e.imageUrl,isPicker:!!a,alternativeStyle:d},e.value))}),!!a&&(0,r.jsx)("div",{className:"container-no-padding fixed bottom-0 left-1/2 w-full -translate-x-1/2 bg-neutral-100 px-4 pb-6 pt-2 text-left shadow-2 ",children:(0,r.jsx)(n.Z,{disabled:!y||k,onClick:()=>{y&&(f(!0),a(y.value),x())},wFull:!0,children:"Pilih"})})]})},h=e=>{let{selected:t=!1,name:a,imageUrl:n,onClick:l,isPicker:s=!1,alternativeStyle:i}=e;return(0,r.jsxs)("button",{className:"flex w-full cursor-pointer items-center justify-between gap-4 border-b border-b-neutral-400 py-4",onClick:l,children:[!i&&(0,r.jsx)("div",{className:"flex-center rounded bg-primary-surface",children:n&&(0,r.jsx)(u(),{src:n,alt:a,className:"aspect-square h-14 object-contain",width:54,height:54})}),(0,r.jsx)("div",{className:"min-w-0 flex-1 truncate text-left text-14",children:a}),!s&&(0,r.jsx)(c.KEG,{}),s&&!i&&(0,r.jsx)("input",{type:"radio",checked:t,className:"accent-primary focus:outline-primary",readOnly:!0}),s&&i&&t&&(0,r.jsx)(c.HhX,{})]})};t.Z=g},39586:function(e,t,a){"use strict";var r=a(85893),n=a(1280),l=a(91594),s=a(48379),i=a(66921),o=a(36492),c=a(11163),d=a(67294),u=a(80471),g=a(5434),h=a(25675),m=a.n(h);let x=e=>{var t;let{onClick:a,category:s,subCategory:o,onSave:u,title:g,showQuotaInformation:h=!1}=e,{back:m,push:x,query:y}=(0,c.useRouter)(),[v,k]=(0,d.useState)([]),[f,j]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{k(null!=o?o:[])},[o]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{header:g||"".concat(i.AN[s]),color:"success",hideOnDesktop:!0,onBack:()=>m()}),(0,r.jsx)("div",{className:"container-no-padding divide-y divide-neutral-400 pb-22",children:null===(t=i.NM[s])||void 0===t?void 0:t.children.map((e,t)=>(0,r.jsx)(p,{showQuotaInformation:h,item:e,onClick:t=>{u&&k(t=>t.find(t=>t==e.value)?t.filter(t=>t!=e.value):[...t,e.value]),a(e,t)},isPicker:!!u,selected:!!v.find(t=>t==e.value)},t))}),!!u&&(0,r.jsx)("div",{className:"container-no-padding fixed bottom-0 left-1/2 w-full -translate-x-1/2 bg-neutral-100 px-4 pb-6 pt-2 text-left shadow-2 ",children:(0,r.jsx)(n.Z,{disabled:v.length<=0||f,onClick:()=>{v.length<=0||(j(!0),u(v),m())},wFull:!0,children:"Pilih"})})]})},p=e=>{let{item:t,onClick:a,selected:n,isPicker:l,showQuotaInformation:i=!1}=e,{data:c,isFetching:h}=(0,o.a)({queryKey:["post-wallet-quota",t.value],queryFn:()=>s.Z.get("/gi/wallet-quota/listing",{params:{sub_category:t.value,package:"iklan",show_eligible:!0}}),enabled:i}),x=(0,d.useMemo)(()=>c?c.data.reduce((e,t)=>e+t.balance,0):0,[c]);return(0,r.jsxs)("button",{className:"flex w-full cursor-pointer items-center justify-between gap-4 bg-gradient-to-r from-[#CEE7DE4D] to-[#FFFFFF4D] px-[10px] py-4 font-medium",onClick:()=>{if(!i){null==a||a();return}c&&!h&&(null==a||a(c.data))},children:[(0,r.jsx)("div",{className:"flex-center bg-primary-surface rounded-lg overflow-hidden",children:(0,r.jsx)(m(),{src:t.imageUrl,alt:t.value,className:"aspect-square h-8 object-contain",width:32,height:32})}),(0,r.jsx)("div",{className:"min-w-0 flex-1 truncate text-left text-14",children:t.label}),i&&(h||!c?(0,r.jsx)(u.frZ,{className:"mx-auto animate-spin text-14 text-primary/50"}):c.data.length>0&&(0,r.jsxs)("span",{className:"text-12 text-primary",children:[x," Kuota"]})),!l&&(0,r.jsx)(g.KEG,{}),l&&n&&(0,r.jsx)(g.HhX,{})]})};t.Z=x},82334:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var r=a(85893),n=a(67294),l=a(11163),s=a(91594),i=a(3800),o=a(64035),c=a(66921);let d=(e,t,a,r)=>{switch(e){case"add":return"Penambahan Kuota Iklan ".concat("highlight"===t?"Highlight ":"").concat(c.AN[a]," - ").concat(c.Vy[r]);case"reward":return"Hadiah Kuota Iklan ".concat("highlight"===t?"Highlight ":"").concat(c.AN[a]," - ").concat(c.Vy[r]);case"used":return"Pemakaian Kuota Iklan ".concat("highlight"===t?"Highlight ":"").concat(c.AN[a]," - ").concat(c.Vy[r]);case"expired":return"Kuota Iklan ".concat("highlight"===t?"Highlight ":"").concat(c.AN[a]," - ").concat(c.Vy[r]," Kadaluarsa");default:return"".concat(e,"_").concat(t,"_").concat(a,"_").concat(r)}},u=e=>{switch(e){case"add":case"reward":return"text-primary before:content-['+']";case"used":case"expired":return"text-danger before:content-['-']";default:return""}},g=(e,t)=>{switch(t){case"add":case"reward":return"+"+e;case"used":case"expired":return"-"+e;default:return""}};var h=a(49165),m=a(53892),x=a(72728),p=a(27142),y=a(24095);let v=e=>{let{data:t,router:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{header:"Detail",onBack:a.back,hideOnDesktop:!0}),(0,r.jsxs)("main",{className:"container desktop:no-container desktop:text-left",children:[(0,r.jsxs)("header",{children:[(0,r.jsx)("h3",{className:"hidden text-18 font-bold text-primary desktop:block",children:"Detail"}),(0,r.jsxs)("div",{className:"flex flex-col items-center p-4 desktop:mt-8 desktop:grid desktop:grid-cols-[min-content_auto]",children:["iklan"===t.package_type?(0,r.jsx)(p.Z,{className:"fill-neutral-800"}):(0,r.jsx)(y.Z,{className:"fill-neutral-800"}),(0,r.jsxs)("p",{className:"mt-3 text-20 font-bold text-secondary desktop:mt-0",children:[g(t.quota.toLocaleStr
1ing("id-ID"),t.activity)," Kuota"]}),(0,r.jsx)("p",{className:"mt-1 text-12 font-bold text-neutral-800",children:d(t.activity,t.package_type,t.category,t.sub_category)}),"used"===t.activity&&!!t.gi_id&&(0,r.jsxs)("p",{className:"mt-1 text-11 font-medium text-neutral-800",children:["ID Iklan : ",t.gi_id]})]})]}),(0,r.jsx)("hr",{className:"border-4 border-neutral-200"}),(0,r.jsxs)("section",{className:"grid grid-cols-[auto_auto] gap-3 p-4 text-12",children:[(0,r.jsx)(k,{label:"Tanggal Transaksi",children:(0,m.Z)(new Date("".concat(t.create_date,"Z")),"dd MMMM yyyy HH:mm:ss",{locale:x.Z})}),(0,r.jsx)(k,{label:"Jenis Kuota",children:(0,h.sP)(t.package_type)}),(0,r.jsx)(k,{label:"Jenis Kategori",children:"".concat(c.AN[t.category]," - ").concat(c.Vy[t.sub_category])}),(0,r.jsxs)(k,{label:"Durasi Masa Aktif Iklan",children:[t.post_duration.toLocaleString("id-ID")," Hari"]}),(0,r.jsx)(k,{label:"Jumlah Kuota",children:g(t.quota.toLocaleString("id-ID"),t.activity)})]})]})]})},k=e=>{let{label:t,children:a}=e;return a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{children:t}),(0,r.jsx)("div",{className:"flex justify-end text-right font-semibold",children:a})]}):(0,r.jsx)(r.Fragment,{})};var f=a(25675),j=a.n(f);let b=e=>{let{innerRef:t,obj:a,onButtonClick:n}=e;return(0,r.jsxs)("section",{ref:t,className:"grid grid-cols-[1fr_max-content] gap-1 py-4 text-12 font-semibold",children:[(0,r.jsx)("p",{children:d(a.activity,a.package_type,a.category,a.sub_category)}),(0,r.jsx)("p",{className:"text-right ".concat(u(a.activity)),children:a.quota.toLocaleString("id-ID")}),(0,r.jsx)("div",{children:(0,r.jsx)("button",{type:"button",className:"col-span-2 text-11 font-medium text-secondary",onClick:n,children:"Lihat detail"})})]})},w=e=>{let{setLogDetail:t,reactQueryInfinite:a,filterHasDefaultValues:s}=e,i=(0,l.useRouter)(),{data:o,isFetching:c,isLoading:d,hasNextPage:u,isFetchingNextPage:g,fetchNextPage:h}=a,p=!(null==o?void 0:o.pages[0].data.total),y=(0,n.useRef)(null),v=(0,n.useCallback)(e=>{!g&&(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(e=>{e[0].isIntersecting&&u&&h()}),e&&y.current.observe(e))},[g,h,u]);return d?(0,r.jsx)(C,{}):p?(0,r.jsxs)("section",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"mx-4 flex justify-center",children:s?(0,r.jsx)(j(),{src:"/empty-state/Riwayat_Dompet_Kuota.webp",alt:"empty wallet transaction history",width:306,height:281}):(0,r.jsx)(j(),{src:"/empty-state/Dompet_Kuota_Filter.webp",alt:"empty filter",width:304,height:246})}),(0,r.jsx)("p",{className:"text-center text-14 desktop:text-16",children:s?"Belum ada transaksi disini":"Oops! Kami tidak menemukan yang kamu cari. Coba ubah filter lainnya !"})]}):(0,r.jsxs)("section",{children:[null==o?void 0:o.pages.map((e,a,l)=>(0,r.jsx)(n.Fragment,{children:e.data.data.map((e,s,o)=>{let c;let d=s+1===o.length-3,u=!!l[a-1],g=!!l[a].data.data[s-1],h=!0;if(g)c=(0,m.Z)(new Date("".concat(l[a].data.data[s-1].create_date,"Z")),"dd MMMM yyyy"),(0,m.Z)(new Date("".concat(l[a].data.data[s].create_date,"Z")),"dd MMMM yyyy")===c&&(h=!1);else if(u){let e=l[a-1].data.data.length-1;c=(0,m.Z)(new Date("".concat(l[a-1].data.data[e].create_date,"Z")),"dd MMMM yyyy"),(0,m.Z)(new Date("".concat(l[a].data.data[0].create_date,"Z")),"dd MMMM yyyy")===c&&(h=!1)}return(0,r.jsxs)(n.Fragment,{children:[!h&&(0,r.jsx)("hr",{className:"border-neutral-400"}),h&&(0,r.jsx)("p",{className:"mt-8 text-14 font-bold text-neutral-1000 first:mt-0",children:(0,m.Z)(new Date("".concat(e.create_date,"Z")),"EEEE, dd MMMM yyyy",{locale:x.Z})}),(0,r.jsx)(b,{innerRef:d?v:null,obj:e,onButtonClick:()=>{t(e),i.push({query:{...i.query,id:e.id}},void 0,{shallow:!0})}})]},"history-item-[".concat(a,",").concat(s,"]"))})},"group-".concat(a))),c&&g&&(0,r.jsx)(C,{})]})},C=e=>{let{count:t=2}=e,a=[];for(let e=0;e<t;e++)a.push((0,r.jsxs)("div",{className:"mt-8 first:mt-0",children:[(0,r.jsx)("div",{className:"mb-4 h-4 w-40 animate-pulse rounded-full bg-neutral-300 desktop:h-5"}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("div",{className:"h-3 w-36 animate-pulse rounded-full bg-neutral-300"}),(0,r.jsx)("div",{className:"h-3 w-12 animate-pulse rounded-full bg-neutral-300"})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,r.jsx)("div",{className:"h-3 w-16 animate-pulse rounded-full bg-neutral-300"}),(0,r.jsx)("div",{className:"h-3 w-20 animate-pulse rounded-full bg-neutral-300"})]})]},"skeleton-".concat(e)));return(0,r.jsx)(r.Fragment,{children:a})};var N=a(7726),D=a(1280),Z=a(96522),M=a(82175),_=a(43903),H=a(56718),F=a(45328),V=a(61922),q=a(7867),B=a(5434),K=a(53854),R=a(5696),U=a(39586);let A=e=>{var t;let{filters:a,setFilters:n}=e,i=(0,l.useRouter)(),o=(0,_.Z)(),d={sortDateAsc:null!==(t=a.sortDateAsc)&&void 0!==t&&t,category:a.category,subCategory:a.subCategory,rangeDate:{startDate:a.startDate?new Date(a.startDate):void 0,endDate:a.endDate?new Date(a.endDate):void 0},shouldRouteBack:!0};return(0,r.jsx)(M.J9,{enableReinitialize:!0,initialValues:d,onSubmit:(e,t)=>
1{let{setFieldError:a}=t,r=e.rangeDate.startDate?(0,m.Z)(new Date(e.rangeDate.startDate),"yyyy-MM-dd"):void 0;n({sortDateAsc:e.sortDateAsc,category:e.category?e.category:void 0,subCategory:e.subCategory?e.subCategory:void 0,startDate:r,endDate:e.rangeDate.endDate?(0,m.Z)(new Date(e.rangeDate.endDate),"yyyy-MM-dd"):r}),"android"===o&&e.shouldRouteBack&&i.back()},children:e=>{let{values:t,setFieldValue:a,submitForm:n}=e;if("android"===o){if(i.query.showCategoryMenu)return(0,r.jsx)(R.Z,{title:"Kategori",onClick:e=>{a("category",e.value),t.subCategory&&a("subCategory",""),i.back()}});if(i.query.showSubCategoryMenu&&!i.query.showCategoryMenu)return(0,r.jsx)(U.Z,{onClick:e=>{a("subCategory",e.value),i.back()},category:t.category})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{header:"Filter",onBack:()=>i.back(),children:(0,r.jsx)(P,{})}),(0,r.jsx)("section",{className:"container my-5 desktop:no-container desktop:card desktop:mt-4 desktop:p-4",children:(0,r.jsxs)(M.l0,{children:[(0,r.jsx)("p",{className:"mb-3 text-14 font-semibold text-neutral-900 desktop:mb-4 desktop:text-16",children:"Berdasarkan"}),(0,r.jsx)(H.Z,{name:"sortDateAsc",options:[{label:"Waktu terbaru",value:!1},{label:"Waktu terlama",value:!0}],flexDirection:"col"}),(0,r.jsxs)("div",{className:"mt-8 space-y-3 desktop:space-y-4",children:[(0,r.jsx)("p",{className:"text-16 font-semibold text-neutral-900",children:"Tanggal"}),(0,r.jsx)(F.Z,{name:"rangeDate",placeholder:"Pilih tanggal",limitRange:29,disableScrollLock:!0})]}),(0,r.jsxs)("div",{className:"mt-8 space-y-3 desktop:space-y-4",children:[(0,r.jsx)("p",{className:"text-14 font-semibold text-neutral-900 desktop:text-16",children:"Kategori"}),(0,r.jsx)("div",{className:"hidden desktop:block",children:(0,r.jsx)(V.Z,{name:"category",onValue:()=>{t.subCategory&&a("subCategory","")},options:c.wA,placeholder:"Pilih kategori"})}),(0,r.jsx)("div",{className:"desktop:hidden",children:(0,r.jsx)(q.Z,{name:"category",placeholder:"Pilih kategori",wFull:!0,value:t.category?c.AN[t.category]:void 0,onClick:()=>i.push({query:{...i.query,showCategoryMenu:!0}},void 0,{shallow:!0}),endAdornment:t.category?(0,r.jsx)("div",{className:"flex h-6 w-6 cursor-pointer items-center justify-end",onClick:e=>{e.preventDefault(),a("category",""),a("subCategory","")},children:(0,r.jsx)(B.FU5,{})}):(0,r.jsx)(K.kzR,{}),readOnly:!0})})]}),(0,r.jsxs)("div",{className:"mt-8 space-y-3 desktop:space-y-4",children:[(0,r.jsx)("p",{className:"text-14 font-semibold text-neutral-900 desktop:text-16",children:"Jenis Kategori"}),(0,r.jsx)("div",{className:"hidden desktop:block",children:(0,r.jsx)(V.Z,{name:"subCategory",options:t.category?c.NM[t.category].children:[],disabled:!t.category,placeholder:"Pilih jenis kategori"})}),(0,r.jsx)("div",{className:"desktop:hidden",children:(0,r.jsx)(q.Z,{name:"subCategory",placeholder:"Pilih jenis kategori",wFull:!0,disabled:!t.category,value:t.subCategory?c.Vy[t.subCategory]:void 0,onClick:()=>i.push({query:{...i.query,showSubCategoryMenu:!0}},void 0,{shallow:!0}),endAdornment:t.subCategory?(0,r.jsx)("div",{className:"flex h-6 w-6 cursor-pointer items-center justify-end",onClick:e=>{e.preventDefault(),a("subCategory","")},children:(0,r.jsx)(B.FU5,{})}):(0,r.jsx)(K.kzR,{}),readOnly:!0})})]}),(0,r.jsx)("div",{className:"container-no-padding fixed bottom-0 left-0 right-0 bg-neutral-100 px-4 pb-4 pt-2 shadow-2 desktop:hidden",children:(0,r.jsx)(D.Z,{type:"submit",wFull:!0,onClick:()=>a("shouldRouteBack",!0),children:"Tampilkan"})}),(0,r.jsx)(Z.Z,{values:t,callback:()=>{"desktop"===o&&n()}})]})})]})}})},P=()=>{let{values:e,setFieldValue:t,submitForm:a}=(0,M.u6)(),n=!1===e.sortDateAsc&&!e.rangeDate.startDate&&!e.rangeDate.endDate&&!e.category&&!e.subCategory;return(0,r.jsx)("button",{className:"text-14 font-medium text-primary disabled:text-neutral-500",disabled:n,onClick:()=>{t("sortDateAsc",!1),t("rangeDate",{startDate:void 0,endDate:void 0}),t("category",void 0),t("subCategory",void 0),t("shouldRouteBack",!1),a()},children:"Reset"})};var I=a(48379),E=a(75849);let L=()=>{let e=(0,l.useRouter)(),{user:t}
1=(0,E.Z)(),[a,c]=(0,n.useState)(),[d,u]=(0,n.useState)({sortDateAsc:!1}),g=!1===d.sortDateAsc&&!d.startDate&&!d.endDate&&!d.category&&!d.subCategory,h=(0,N.H_)({quotaType:e.query.quotaType,...d});return((0,n.useEffect)(()=>{e.query.id&&!a&&t&&I.Z.get("/gi/log/wallet-quota/view/".concat(e.query.id)).then(e=>c(e.data)).catch(e=>{})},[t,a]),e.query.id&&a&&a.id===parseInt(e.query.id))?(0,r.jsx)(v,{data:a,router:e}):e.query.showFilter?(0,r.jsx)(A,{filters:d,setFilters:u}):(0,r.jsxs)(o.Z,{isOwner:!0,golekIklanMenu:!0,children:[(0,r.jsx)(s.Z,{header:"Riwayat Dompet Kuota",onBack:e.back,desktopIconNonHidden:!1}),(0,r.jsx)("main",{className:"container py-6 desktop:no-container desktop:flex desktop:space-x-12",children:(0,r.jsx)(w,{setLogDetail:c,reactQueryInfinite:h,filterHasDefaultValues:g})}),(0,r.jsx)(i.Z,{showBadge:!g,onClick:()=>e.push({query:{...e.query,showFilter:!0}},void 0,{shallow:!0})})]})};var S=L},76701:function(e,t,a){"use strict";a.d(t,{Fp:function(){return l},b7:function(){return r},kE:function(){return n}});let r=e=>"Rp "+new Intl.NumberFormat("ID-id").format(e),n=e=>{let t=new Intl.NumberFormat("id-ID").format(e);return t};function l(e,t){return 0===t?0:Math.round(e/t*100)}},49165:function(e,t,a){"use strict";a.d(t,{KP:function(){return l},QK:function(){return i},k7:function(){return s},sP:function(){return n},wf:function(){return o}});var r=a(76701);let n=e=>e.replace(/\b\w/g,e=>e.toUpperCase()),l=e=>void 0===e?"":Number(e).toLocaleString("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).toLowerCase(),s=e=>"string"==typeof e?e.replace(/\B(?=(\d{3})+(?!\d))/g,"."):e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),i=e=>e?e.replace(/^-/g,"•").replace(/\n-/g,"\n•").replace(/\n/g,"<br/>"):"";function o(e,t){return"Diskon ".concat(function(e,t){let a=(0,r.Fp)(e,t);return 0===a?"":"".concat(a,"%")}(t-e,t))}},66921:function(e,t,a){"use strict";a.d(t,{AN:function(){return s},M5:function(){return c},NM:function(){return o},Vy:function(){return i},Yb:function(){return n},ln:function(){return l},wA:function(){return r}});let r=[{value:"item",label:"Barang",imageUrl:"/golekiklan/category/item.svg"},{value:"service",label:"Jasa",imageUrl:"/golekiklan/category/service.svg"}],n=(e,t)=>"string"==typeof t?e===t:t.some(t=>t===e),l=(e,t)=>"string"==typeof t?e===t:t.some(t=>t===e),s={item:"Barang",service:"Jasa",promo:"Promo",property:"Properti",job_listing:"Lowongan Kerja",company_profile:"Perusahaan"},i={tire:"Ban",velg:"Velg",lubricant:"Oli",accu:"Aki",container:"Kontainer",truck:"Truk Baru dan Bekas",tools:"Perlengkapan Angkutan",spare_part:"Suku Cadang(sparepart)",karoseri_item:"Produk Karoseri",other_item:"Barang Lainnya",karoseri_service:"Karoseri",mechanic:"Mekanik / Teknisi",autoshop:"Bengkel",finance:"Keuangan",insurance:"Asuransi",warehouse:"Pergudangan",other_service:"Jasa Lainnya"},o={item:{name:"Barang",children:[{value:"tire",label:"Ban",imageUrl:"/golekiklan/category/item/tire.svg"},{value:"velg",label:"Velg",imageUrl:"/golekiklan/category/item/velg.svg"},{value:"lubricant",label:"Oli",imageUrl:"/golekiklan/category/item/lubricant.svg"},{value:"accu",label:"Aki",imageUrl:"/golekiklan/category/item/accu.svg"},{value:"container",label:"Kontainer",imageUrl:"/golekiklan/category/item/container.svg"},{value:"truck",label:"Truk Baru dan Bekas",imageUrl:"/golekiklan/category/item/truck.svg"},{value:"tools",label:"Perlengkapan Angkutan",imageUrl:"/golekiklan/category/item/tools.svg"},{value:"spare_part",label:"Suku Cadang(sparepart)",imageUrl:"/golekiklan/category/item/spare_part.svg"},{value:"karoseri_item",label:"Produk Karoseri",imageUrl:"/golekiklan/category/item/karoseri_item.svg"},{value:"other_item",label:"Barang Lainnya",imageUrl:"/golekiklan/category/item/other_item.svg"}]},service:{name:"Iklan Jasa",children:[{value:"karoseri_service",label:"Karoseri",imageUrl:"/golekiklan/category/service/karoseri_service.svg"},{value:"mechanic",label:"Mekanik / Teknisi",imageUrl:"/golekiklan/category/service/mechanic.svg"},{value:"autoshop",label:"Bengkel",imageUrl:"/golekiklan/category/service/autoshop.svg"},{value:"finance",label:"Keuangan",imageUrl:"/golekiklan/category/service/finance.svg"},{value:"insurance",label:"Asuransi",imageUrl:"/golekiklan/category/service/insurance.svg"},{value:"warehouse",label:"Pergudangan",imageUrl:"/golekiklan/category/service/warehouse.svg"},{value:"other_service",label:"Jasa Lainnya",imageUrl:"/golekiklan/category/service/other_service.svg"}]}},c=e=>[{label:"Semua",value:"",imageUrl:"#"},...o[e].children]}},function(e){e.O(0,[6556,955,5675,3613,623,4035,6202,9774,2888,179],function(){return e(e.s=11176)}),_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.