PageSourceSearch

https://www.tnlawsuit.com/_next/static/chunks/36af803f4f98dbb2.js?dpl=89013d4b35ac81437e45aeec2516e5e692cc55fd

js tnlawsuit.com collected 2026-10-02 11:45:20 UTC 23,684 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408721,e=>{"use strict";var t=e.i(901858),a=e.i(208838),n=e.i(932947),r=e.i(294237),s=e.i(715311),o=e.i(291967),i=e.i(144977),l=e.i(156207),c=e.i(60212),d=e.i(371353),u=e.i(89535),p=e.i(461194),m=e.i(301345),f=e.i(614952),h=e.i(653747),x=e.i(556872),g=e.i(93074),v=e.i(534643),b=e.i(73772),j=e.i(927499),C="Popover",[w,y]=(0,l.createContextScope)(C,[m.createPopperScope]),N=(0,m.createPopperScope)(),[k,O]=w(C),R=e=>{let{__scopePopover:a,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,c=N(a),d=s.useRef(null),[u,f]=s.useState(!1),[h,x]=(0,v.useControllableState)({prop:r,defaultProp:o??!1,onChange:i,caller:C});return(0,t.jsx)(m.Root,{...c,children:(0,t.jsx)(k,{scope:a,contentId:(0,p.useId)(),triggerRef:d,open:h,onOpenChange:x,onOpenToggle:s.useCallback(()=>x(e=>!e),[x]),hasCustomAnchor:u,onCustomAnchorAdd:s.useCallback(()=>f(!0),[]),onCustomAnchorRemove:s.useCallback(()=>f(!1),[]),modal:l,children:n})})};R.displayName=C;var S="PopoverAnchor";s.forwardRef((e,a)=>{let{__scopePopover:n,...r}=e,o=O(S,n),i=N(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=o;return s.useEffect(()=>(l(),()=>c()),[l,c]),(0,t.jsx)(m.Anchor,{...i,...r,ref:a})}).displayName=S;var P="PopoverTrigger",A=s.forwardRef((e,a)=>{let{__scopePopover:n,...r}=e,s=O(P,n),l=N(n),c=(0,i.useComposedRefs)(a,s.triggerRef),d=(0,t.jsx)(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Q(s.open),...r,ref:c,onClick:(0,o.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?d:(0,t.jsx)(m.Anchor,{asChild:!0,...l,children:d})});A.displayName=P;var E="PopoverPortal",[M,_]=w(E,{forceMount:void 0}),F=e=>{let{__scopePopover:a,forceMount:n,children:r,container:s}=e,o=O(E,a);return(0,t.jsx)(M,{scope:a,forceMount:n,children:(0,t.jsx)(h.Presence,{present:n||o.open,children:(0,t.jsx)(f.Portal,{asChild:!0,container:s,children:r})})})};F.displayName=E;var D="PopoverContent",I=s.forwardRef((e,a)=>{let n=_(D,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,o=O(D,e.__scopePopover);return(0,t.jsx)(h.Presence,{present:r||o.open,children:o.modal?(0,t.jsx)(T,{...s,ref:a}):(0,t.jsx)(L,{...s,ref:a})})});I.displayName=D;var z=(0,g.createSlot)("PopoverContent.RemoveScroll"),T=s.forwardRef((e,a)=>{let n=O(D,e.__scopePopover),r=s.useRef(null),l=(0,i.useComposedRefs)(a,r),c=s.useRef(!1);return s.useEffect(()=>{let e=r.current;if(e)return(0,b.hideOthers)(e)},[]),(0,t.jsx)(j.RemoveScroll,{as:z,allowPinchZoom:!0,children:(0,t.jsx)(H,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||a},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),L=s.forwardRef((e,a)=>{let n=O(D,e.__scopePopover),r=s.useRef(!1),o=s.useRef(!1);return(0,t.jsx)(H,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),H=s.forwardRef((e,a)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,...x}=e,g=O(D,n),v=N(n);return(0,d.useFocusGuards)(),(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:(0,t.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:h,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,t.jsx)(m.Content,{"data-state":Q(g.open),role:"dialog",id:g.contentId,...v,...x,ref:a,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose";function Q(e){return e?"open":"closed"}function X({...e}){return(0,t.jsx)(R,{"data-slot":"popover",...e})}function q({...e}){return(0,t.jsx)(A,{"data-slot":"popover-trigger",...e})}s.forwardRef((e,a)=>{let{__scopePopover:n,...r}=e,s=O(B,n);return(0,t.jsx)(x.Primitive.button,{type:"button",...r,ref:a,onClick:(0,o.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))})}).displayName=B,s.forwardRef((e,a)=>{let{__scopePopover:n,...r}=e,s=N(n);return(0,t.jsx)(m.Arrow,{...s,...r,ref:a})}).displayName="PopoverArrow";let V=(0,r.cva)("rounded-lg p-0 text-accent",{variants:{variant:{header:"border-popover-default-border bg-(image:--popover-header)","quick-depo":"border-popover-default-border bg-popover-quick-depo"}},defaultVariants:{variant:"header"}}),{LXPopoverContent:K}=(0,n.CreateComponentVariant)({LXPopoverContent:{component:function({className:e,align:n="center",sideOffset:r=4,...s}){return(0,t.jsx)(F,{children:(0,t.jsx)(I,{"data-slot":"popover-content",align:n,sideOffset:r,className:(0,a.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...s})})},variants:V}});e.s(["default",0,({variant:e,children:n,triggerChild:r,contentClassName:s,open:o,defaultOpen:i,onOpenChange:l,popOverTriggerAsChild:c=!1,modal:d,...u})=>(0,t.jsx)("div",{children:(0,t.jsxs)(X,{open:o,defaultOpen:i,onOpenChange:l,modal:d,children:[(0,t.jsx)(q,{asChild:c,children:r}),(0,t.jsx)(K,{...u,variant:e,className:(0,a.cn)(s),children:n})]})})],408721)},92171,e=>{"use strict";var t=e.i(901858),a=e.i(651898),n=e.i(98696),r=e.i(331373);let s=["supercell"];var o=e.i(286904),i=e.i(811482),l=e.i(715311),c=e.i(369013),d=e.i(272519);e.i(365540);var u=e.i(768249),u=u,p=e.i(408721),m=e.i(995671);e.s(["default",0,()=>{let{isAuthenticated:e,isPastPinGate:f}=(0,c.useAuth)(),[h,x]=(0,l.useState)(!1),{cashbackList:g,cashbackListMutate:v}=(0,a.useCashbackList)({config:{revalidateOnFocus:!0}}),{ongoingFreeRound:b}=(0,n.useOngoingFreeRound)({enabled:e&&f,provider:"supercell"}),{userMutate:j}=(0,r.useMe)({}),C=g?.filter(e=>!s.includes(e.provider))||[],w=!!b?.data?.length;return C.length?(0,t.jsxs)(p.default,{align:"end",sideOffset:17,alignOffset:-60,variant:"quick-depo",open:h,popOverTriggerAsChild:!0,onOpenChange:x,triggerChild:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(u.default,{height:20,width:20}),(0,t.jsx)("div",{className:"absolute size-2 top-0 right-0 bg-unread-notification rounded-full"})]}),contentClassName:"w-screen md:w-[375px] p-2.5 flex flex-col gap-y-3 bg-bonus-popover-content",children:[C.map(({cashback:e,created_at:a,end_date:n,game_type:r,provider:o,start_date:i})=>(0,t.jsx)(d.default,{cashback:e,endDate:n,gameType:r,provider:o,startDate:i,createdAt:a,showCountdown:!0,onClaim:async()=>{let e=await v();await j(),0===(e?.data?.filter(e=>!s.includes(e.provider))||[]).length&&x(!1)}},o)),(0,t.jsx)(m.LXButton,{className:"flex gap-x-1 items-center",variant:"secondary",size:"xs",asChild:!0,children:(0,t.jsxs)(i.default,{href:"/bonus",onClick:()=>x(!1),children:[(0,t.jsx)("span",{className:"capitalize text-xs",children:"bonus dashboard"}),(0,t.jsx)(o.ChevronRight,{})]})})]}):(0,t.jsxs)(i.default,{href:"/bonus",className:"relative",children:[(0,t.jsx)(u.default,{height:20,width:20}),(!!g?.length||w)&&(0,t.jsx)("div",{className:"absolute size-2 top-0 right-0 bg-unread-notification rounded-full"})]})}],92171)},45714,e=>{"use strict";var t=e.i(901858),a=e.i(331373),n=e.i(601950),r=e.i(208838),s=e.i(859621),o=e.i(769455),i=e.i(715311),l=e.i(594302),c=e.i(408721);let d=()=>(0,t.jsx)("div",{className:"h-7 w-24 rounded bg-container-lv2 animate-pulse"});e.s(["default",0,()=>{let e=(0,o.useTranslations)("common"),{userData:u,userLoading:p}=(0,a.useMe)({}),m=(0,i.useMemo)(()=>u?.balance,[u?.balance]),f=(0,i.useMemo)(()=>u?.promotion_balance,[u?.promotion_balance]),h=(0,t.jsxs)("span",{className:"flex items-center gap-x-1 text-xs text-muted-foreground [&[data-state=open]>svg]:rotate-180 cursor-pointer",children:[(0,t.jsx)("p",{className:"capitalize text-foreground/30",children:e("total_balance")}),(0,t.jsx)(s.ChevronDownIcon,{width:12,height:12,className:"transition-all duration-200"})]}),x=(0,i.useMemo)(()=>"number"==typeof m&&"number"==typeof f?m+f:void 0,[m,f]),g=(0,i.useRef)(x).current??x??0,v=x??0;return(0,t.jsxs)("div",{children:[(0,t.jsxs)(c.default,{variant:"header",sideOffset:35,triggerChild:h,popOverTriggerAsChild:!0,contentClassName:"p-2.5 flex flex-col gap-y-2 max-w-48 text-nowrap",children:[(0,t.jsx)("p",{className:"text-foreground/30 text-xs",children:e("main_balance")}),(0,t.jsxs)("span",{className:"flex items-start gap-x-1",children:[(0,t.jsx)("p",{className:"text-xs",children:"Rp"}),"number"==typeof m&&(0,t.jsx)("p",{className:"font-bold",children:(0,n.formatBalance)(m)})]}),(0,t.jsx)("hr",{className:"border-border/50"}),(0,t.jsxs)("div",{className:"bg-background/5 flex items-center gap-x-2 py-1 px-2 text-2xs font-medium text-nowrap rounded-md border-border/50",children:[(0,t.jsxs)("p",{className:"capitalize text-muted-foreground",children:[e("bonus_balance"),":"]}),"number"==typeof f&&(0,t.jsxs)("p",{className:"text-warning-main",children:["Rp",(0,n.formatBalance)(f)]})]})]}),(0,t.jsxs)("span",{className:"flex items-start gap-x-1",children:[(0,t.jsx)("p",{className:"text-xs",children:"Rp"}),p?(0,t.jsx)(d,{}):(0,t.jsx)(l.CountingNumber,{fromNumber:g,number:v,inViewOnce:!1,className:(0,r.cn)("font-bold text-lg",void 0===x&&"opacity-0"),transition:{stiffness:200,damping:25},initiallyStable:!0})]})]})}],45714)},621061,e=>{"use strict";var t,a,n,r,s,o,i,l,c=e.i(901858),d=e.i(811482),u=e.i(715311),p=e.i(56897),m=e.i(769455);function f(){return(f=Object.assign.bind()).apply(null,arguments)}let h=function(e){return u.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"transparent"},e),t||(t=u.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.417 6.3c.258-3 1.8-4.225 5.175-4.225h.108c3.725 0 5.217 1.492 5.217 5.217v5.433c0 3.725-1.492 5.217-5.217 5.217h-.108c-3.35 0-4.892-1.209-5.167-4.159M1.667 10H12.4"})),a||(a=u.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.542 7.208 13.334 10l-2.792 2.792"})))};function x(){return(x=Object.assign.bind()).apply(null,arguments)}let g=function(e){return u.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:17,height:16,fill:"none"},e),n||(n=u.createElement("path",{fill:"currentColor",d:"M8.498 10.076c3.155 0 5.818.461 5.818 2.242s-2.68 2.226-5.818 2.226c-3.155 0-5.818-.461-5.818-2.242s2.68-2.226 5.818-2.226m0-8.623c2.137 0 3.85 1.54 3.85 3.463S10.635 8.38 8.498 8.38s-3.85-1.541-3.85-3.464c0-1.922 1.713-3.463 3.85-3.463"})))};function v(){return(v=Object.assign.bind()).apply(null,arguments)}let b=function(e){return u.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=u.createElement("path",{fill:"#fff",d:"M17.75 9.033a.58.58 0 0 0 .583-.583v-.775c0-3.417-1.041-4.458-4.458-4.458h-7.75c-3.417 0-4.458 1.041-4.458 4.458v.392a.58.58 0 0 0 .583.583c.75 0 1.358.608 1.358 1.358S3 11.358 2.25 11.358a.58.58 0 0 0-.583.584v.391c0 3.417 1.041 4.459 4.458 4.459h7.75c3.417 0 4.458-1.
1042 4.458-4.459a.58.58 0 0 0-.583-.583 1.359 1.359 0 0 1 0-2.717M7.5 7.4c.458 0 .833.375.833.833a.83.83 0 0 1-.833.834.836.836 0 0 1-.833-.834A.83.83 0 0 1 7.5 7.4m5 5.833a.84.84 0 0 1-.842-.833c0-.458.375-.833.834-.833s.833.375.833.833a.823.823 0 0 1-.825.833m.75-5.333-5.608 5.608a.62.62 0 0 1-.442.184.62.62 0 0 1-.442-.184.63.63 0 0 1 0-.883l5.609-5.608a.63.63 0 0 1 .883 0 .63.63 0 0 1 0 .883"})))};function j(){return(j=Object.assign.bind()).apply(null,arguments)}let C=function(e){return u.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),s||(s=u.createElement("path",{fill:"#fff",d:"M7.5 1.667a3.96 3.96 0 0 0-3.958 3.958c0 2.142 1.675 3.875 3.858 3.95a.7.7 0 0 1 .183 0h.059000000000000004a3.95 3.95 0 0 0 3.816-3.95A3.96 3.96 0 0 0 7.5 1.667M11.733 11.792c-2.325-1.55-6.116-1.55-8.458 0-1.058.708-1.642 1.666-1.642 2.691s.584 1.975 1.634 2.675c1.166.784 2.7 1.175 4.233 1.175s3.067-.391 4.233-1.175c1.05-.708 1.634-1.658 1.634-2.691-.009-1.025-.584-1.975-1.634-2.675M16.659 6.117a2.983 2.983 0 0 1-2.609 3.225h-.041c-.05 0-.1 0-.142.016a3 3 0 0 1-2.109-.691 3.81 3.81 0 0 0 1.25-3.167 3.87 3.87 0 0 0-.641-1.817 2.994 2.994 0 0 1 4.292 2.433"})),o||(o=u.createElement("path",{fill:"#fff",d:"M18.325 13.825c-.067.808-.583 1.508-1.45 1.983-.833.459-1.883.675-2.925.65.6-.541.95-1.216 1.017-1.933.083-1.033-.409-2.025-1.392-2.817a6.9 6.9 0 0 0-1.917-1.05c1.842-.533 4.159-.175 5.584.975.766.617 1.158 1.392 1.083 2.192"})))};function w(){return(w=Object.assign.bind()).apply(null,arguments)}let y=function(e){return u.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),i||(i=u.createElement("path",{fill:"#fff",d:"M5.833 1.667H5C2.5 1.667 1.667 3.158 1.667 5v12.5A.83.83 0 0 0 3 18.167L4.425 17.1a.84.84 0 0 1 1.1.083l1.383 1.392a.84.84 0 0 0 1.184 0l1.4-1.4a.826.826 0 0 1 1.083-.075L12 18.167a.835.835 0 0 0 1.333-.667V3.333c0-.916.75-1.666 1.667-1.666zm3.542 9.791h-3.75A.63.63 0 0 1 5 10.833a.63.63 0 0 1 .625-.625h3.75a.63.63 0 0 1 .625.625.63.63 0 0 1-.625.625M10 8.125H5a.63.63 0 0 1-.625-.625A.63.63 0 0 1 5 6.875h5a.63.63 0 0 1 .625.625.63.63 0 0 1-.625.625"})),l||(l=u.createElement("path",{fill:"#fff",d:"M15.008 1.667v1.25c.55 0 1.075.225 1.459.6.4.408.616.933.616 1.483v2.017c0 .616-.275.9-.9.9h-1.6V3.342c0-.234.192-.425.425-.425zm0 0c-.925 0-1.675.75-1.675 1.675v5.825h2.85c1.317 0 2.15-.834 2.15-2.15V5c0-.917-.375-1.75-.975-2.358a3.37 3.37 0 0 0-2.35-.975c.009 0 0 0 0 0"})))},N=()=>{let e=(0,m.useTranslations)(),{formAction:t,isPending:a}=(0,p.useLogout)();return(0,c.jsx)("form",{action:t,className:"flex justify-start border-t border-border/50",children:(0,c.jsxs)("button",{className:"w-full px-4 py-2 hover:bg-background/10 flex gap-x-2 text-sm capitalize font-medium disabled:opacity-50",disabled:a,children:[(0,c.jsx)(h,{height:20,width:20}),a?`${e("common.processing")}...`:e("common.logout")]})})};var k=e.i(408721);e.s(["default",0,()=>{let e=[{Icon:g,label:"profile pengguna",href:"/user-information"},{Icon:b,label:"promosi saya",href:"/promo/my-promo"},{Icon:y,label:"transaksi",href:"/transaction"},{Icon:C,label:"referral",href:"/referral"}],[t,a]=(0,u.useState)(!1);return(0,c.jsx)(k.default,{variant:"header",align:"end",sideOffset:15,triggerChild:(0,c.jsx)("div",{className:"size-7.5 bg-profile bg-(image:--profile) text-profile-icon flex items-center justify-center rounded-full outline-5 outline-border cursor-pointer",children:(0,c.jsx)(g,{height:16,width:16})}),contentClassName:"w-min",open:t,onOpenChange:a,children:(0,c.jsxs)("ul",{className:"py-3 text-foreground flex flex-col text-nowrap",children:[e.map(({Icon:e,label:t,href:n})=>(0,c.jsx)("li",{children:(0,c.jsxs)(d.default,{href:n,onClick:()=>a(!1),className:"px-4 py-2 hover:bg-background/10 flex gap-x-2 text-sm capitalize font-medium",children:[(0,c.jsx)(e,{height:20,width:20}),t]},t)},t)),(0,c.jsx)("li",{children:(0,c.jsx)(N,{})})]})})}],621061)},969955,e=>{"use strict";var t=e.i(901858),a=e.i(811482),n=e.i(438929),r=e.i(995671);e.s(["default",0,()=>{let e=(0,n.usePathname)();return(0,t.jsxs)("div",{className:"flex gap-x-2",children:["/register"!==e&&(0,t.jsx)(r.LXButton,{asChild:!0,size:"default",children:(0,t.jsx)(a.default,{href:"/register",children:"Daftar"})}),"/login"!==e&&(0,t.jsx)(r.LXButton,{asChild:!0,variant:"secondary",size:"default",children:(0,t.jsx)(a.default,{href:"/login",children:"Masuk"})})]})}])},547840,e=>{"use strict";var t=e.i(901858),a=e.i(417121),n=e.i(715311),r=e.i(627897),s=e.i(578118);e.i(365540);var o=e.i(454896),i=e.i(408721),l=e.i(748315),c=e.i(264449),d=e.i(601950),u=e.i(114721),p=e.i(641164);let m=(0,e.i(591762).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var f=e.i(594973),h=e.i(578120),x=e.i(951761),g=e.i(995671),v=e.i(434631),b=e.i(783044),j=e.i(905274),C=e.i(497526),w=e.i(614868);let y=({selected:e,channelName:a,onClick:n,disabled:r=!1})=>(0,t.jsx)(w.Label,{htmlFor:"bank_code",onClick:r?void 0:n,children:(0,t.jsx)(h.default,{channel:a,className:`curs
1or-pointer ${e?"border-2 border-quick-depo-border":""} ${r?"opacity-50 cursor-not-allowed":""}`,variant:"color"})}),N=({...e})=>(0,t.jsx)(g.LXButton,{...e,variant:"secondary",size:"icon",className:"rounded-lg",type:"button"}),k=({form:e,handleSubmit:a,isPending:n,depositSettings:r})=>{let{amount:s,handleQuickAmountChange:o}=(0,c.useQuickAmount)(e,"amount");return(0,t.jsx)(C.Form,{...e,children:(0,t.jsxs)("form",{onSubmit:a,id:"quick-deposit",children:[(0,t.jsxs)("div",{className:"py-4 w-full",children:[(0,t.jsx)("p",{className:"capitalize text-muted-foreground text-xs font-normal",children:"masukkan jumlah deposit"}),(0,t.jsxs)("div",{className:"flex gap-x-2 items-center justify-between py-2 w-full",children:[(0,t.jsx)(N,{onClick:e=>{e.preventDefault(),o(Math.max(0,s-5e4))},children:(0,t.jsx)(m,{})}),(0,t.jsx)(C.FormField,{control:e.control,name:"amount",render:({field:e})=>(0,t.jsxs)(v.LXFormItem,{className:"gap-1 space-y-0",children:[(0,t.jsx)(C.FormControl,{children:(0,t.jsx)(b.default,{...e,id:"amount",name:"amount",value:(0,d.formatNumber)(s),containerClassName:"text-sm h-10 w-full",textFieldClassName:"text-lg md:text-lg font-semibold w-full",placeholder:(0,d.formatNumber)(r.min).toString(),onChange:t=>{let a=(0,d.parseFormattedNumber)(t.target.value);e.onChange(a)}})}),(0,t.jsx)(v.LXFormMessage,{className:"text-xs"})]})}),(0,t.jsx)(N,{onClick:e=>{e.preventDefault(),o(s+5e4)},children:(0,t.jsx)(f.PlusIcon,{})})]}),(0,t.jsx)(x.default,{value:s,onValueChange:o})]}),(0,t.jsx)(g.LXButton,{className:"w-full",disabled:n||!e.formState.isValid,type:"submit",form:"quick-deposit",children:"Submit"})]})})},O=({depositSettings:e,defaultDepositMethod:a,groupedPaymentChannels:r,userPaymentChannels:s,onDepositSuccess:o,idempotencyKey:i})=>{let c=["bank","e_wallet","pulsa"].map(e=>{let t=Object.values(r).flat().filter(t=>t.type===e&&"disabled"!==t.status),a=s.filter(t=>t.type===e);if(0===a.length)return null;for(let e of a){let a=t.find(t=>t.bank===e.name);if(a)return a}return t[0]??null}).filter(e=>null!==e),d=a===p.QRIS_METHOD,m=d?u.QRIS:c[0]?.bank??u.QRIS,[f,h]=(0,n.useState)(m),x=(0,n.useCallback)(e=>{(0,j.LXToast)("error",e.message,{id:"error-form"})},[]),g=(0,n.useCallback)(async e=>{e.success&&o&&await o()},[o]),v=m===u.QRIS,b=v?s[0]?.name:m,{form:C,isPending:w,handleSubmit:N,setMethod:O}=(0,l.useDeposit)({userPaymentChannels:s,defaultUserPaymentChannel:b,minAmount:e.min,maxAmount:e.max,currencySymbol:"Rp",idempotencyKey:i,initialMethod:v?p.QRIS_METHOD:p.BANK_TRANSFER_METHOD},{onSuccess:g,onError:x}),R=e=>{h(e),e===u.QRIS?O(p.QRIS_METHOD):(O(p.BANK_TRANSFER_METHOD),C.setValue("selected_channel",e))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"overflow-x-scroll scrollbar-hide flex gap-x-2 pt-2 pr-3",children:[(0,t.jsx)(y,{channelName:u.QRIS,onClick:()=>R(u.QRIS),selected:f===u.QRIS,disabled:!d}),c.map(e=>(0,t.jsx)(y,{channelName:e.bank,onClick:()=>R(e.bank),selected:f===e.bank},e.bank))]}),(0,t.jsx)(k,{form:C,handleSubmit:N,isPending:w,depositSettings:e})]})};var R=e.i(427996),S=e.i(444891),P=e.i(647903),A=e.i(128163),E=e.i(122447),M=e.i(252598);let _=({deposits:e})=>{let a=e[0],n=(0,R.mapWalletStatusToBadgeStatus)(a.status),r=a.display_account_number||a.bank_account_number,s=a.amount+(a.fees?.player_fee??0),o=a.fees?.player_fee??0;return(0,t.jsx)("div",{className:"flex flex-col gap-y-5 pb-content max-h-[calc(100vh-165px)] scrollbar-hide overflow-y-scroll",children:(0,t.jsx)(E.default,{className:"mx-0",upperContent:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"flex justify-between items-center",children:[(0,t.jsx)("p",{className:"uppercase text-xs",children:"jumlah deposit"}),(0,t.jsx)(S.default,{category:"general",status:n})]}),(0,t.jsxs)("span",{className:"flex gap-x-1 items-center pt-2 pb-1.5",children:[(0,t.jsx)("p",{className:"capitalize font-bold text-2xl",children:(0,d.formatCurrency)(s).replace(/\s/,"")}),(0,t.jsx)(M.LXCopy,{content:s.toString(),size:"sm",variant:"image"})]}),(0,t.jsxs)("div",{className:"capitalize text-xs text-muted-foreground *:flex *:justify-between *:items-center",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("p",{children:"deposit"}),(0,t.jsx)("p",{className:"text-base text-foreground font-bold",children:(0,d.formatCurrency)(a.amount).replace(/\s/,"")})]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("p",{children:"biaya layanan"}),(0,t.jsx)("p",{className:`${o?"text-warning-light":""}`,children:(0,d.formatCurrency)(o).replace(/\s/,"")})]})]})]}),lowerContent:a.method===p.QRIS_METHOD?(0,t.jsx)(A.default,{currentStatus:a.status,qrImageSrc:a.qr_image??"#"}):(0,t.jsx)(P.default,{accountName:a.bank_account_name||"-",accountNumber:r||"#",channelName:a.bank}),ticketCutOutColor:"bg-container-payment"})})};function F({initialDeposit:e,depositSettings:l,defaultDepositMethod:c,groupedPaymentChannels:d,userPaymentChannels:u,theme:p}
1){let[m,f]=(0,n.useState)(!1),h=e?.data&&e.data.length>0,[x,v]=(0,n.useState)(()=>(0,r.v4)()),{deposits:b,depositsMutate:j}=(0,a.useDepositQuery)({dto:{limit:1},config:{revalidateOnFocus:!1,revalidateOnMount:h,fallbackData:e}}),C=b?.data&&b.data.length>0,w=b?.data?.[0]?.status,y=async()=>{v((0,r.v4)()),await j()},N=(0,n.useCallback)(e=>{e?(C&&"pending"!==w&&(j(e=>e?{...e,data:[]}:e,{revalidate:!1}),v((0,r.v4)())),f(!0)):f(!1)},[C,w,j]);return(0,t.jsxs)(i.default,{open:m,align:"end",sideOffset:10,variant:"quick-depo",popOverTriggerAsChild:!0,modal:!0,onOpenChange:N,triggerChild:(0,t.jsx)(s.default,{theme:p,className:"md:w-25 md:[&>div]:w-25",children:(0,t.jsx)("span",{className:"hidden md:block md:after:content-['Deposit'] after:font-medium text-base"})}),contentClassName:"px-3.5 py-3 lg:min-w-110 w-[375px] max-w-screen bg-container-payment",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-xs capitalize",children:"deposit cepat"}),(0,t.jsx)(g.LXButton,{variant:"image",size:"icon",className:"p-0 text-foreground/30 [&_svg]:size-7",onClick:()=>f(!1),children:(0,t.jsx)(o.CancelCircle,{})})]}),C?(0,t.jsx)(_,{deposits:b.data}):(0,t.jsx)(O,{groupedPaymentChannels:d,defaultDepositMethod:c,depositSettings:l,userPaymentChannels:u,onDepositSuccess:y,idempotencyKey:x},x)]})}e.s(["default",()=>F],547840)}]);

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.