1"use strict";(self.webpackChunklottery=self.webpackChunklottery||[]).push([["1811"],{13460(e,t,s){s.d(t,{A:()=>a});var n=s(15632);let a={getListGame:e=>(0,n.A)("pools/".concat(e,"/games")),submitGameColokBebas:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/colok_bebas"),e),submitGameColokBebas2d:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/colok_bebas_2d"),e),submitGameColokNaga:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/colok_naga"),e),submitGameColokJitu:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/colok_jitu"),e),submitGameShio:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/shio"),e),submitGameTepiTengah:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/tepi_tengah"),e),submitGameDasar:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/dasar"),e),submitGame5050:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/5050"),e),submitGame50502D:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/5050_2d"),e),submitGameSilangHomo:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/silang_homo"),e),submitGameKembangKempis:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/kembang_kempis"),e),submitGameKombinasi:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/kombinasi"),e),confirmQuickBuy:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/validate_bet_txs_quick_buy"),e),submitQuickBuy:(e,t,s)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs_quick_buy"),e),validateGame:(e,t,s,a)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/validate_bet_txs/").concat(a),e),submitGame:(e,t,s,a)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs/").concat(a),e),validateWap:(e,t,s,a)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/validate_bet_txs_wap/").concat(a),e),submitWap:(e,t,s,a)=>(0,n.A)("pools/".concat(t,"/periods/").concat(s,"/create_bet_txs_wap/").concat(a),e)}},35106(e,t,s){s.d(t,{A:()=>i});var n=s(71893),a=s(55456),l=s(31105),o=s(74848);s(96540);let i=e=>{let{className:t,table:s,onRowClick:i=()=>{},setRowProps:r=()=>{},setCellProps:c=()=>{},renderFooter:u=!1}=e,_=(0,l._)(e,["className","table","onRowClick","setRowProps","setCellProps","renderFooter"]);return(0,o.jsxs)("table",(0,a._)((0,n._)((0,a._)((0,n._)({},s.getTableProps()),{className:t}),_),{children:[(0,o.jsx)("thead",{children:s.headerGroups.map(e=>(0,o.jsx)("tr",(0,a._)((0,n._)({},e.getHeaderGroupProps()),{children:e.headers.map(e=>(0,o.jsx)("th",(0,a._)((0,n._)({},null==e?void 0:e.getHeaderProps()),{children:null==e?void 0:e.render("Header")})))})))}),(0,o.jsx)("tbody",(0,a._)((0,n._)({},s.getTableBodyProps()),{children:s.rows.map(e=>(s.prepareRow(e),(0,o.jsx)("tr",(0,a._)((0,n._)({},e.getRowProps(r(e))),{onClick:()=>i(e),children:e.cells.map(t=>(0,o.jsx)("td",(0,a._)((0,n._)({},t.getCellProps(c(t))),{children:t.isGrouped?(0,o.jsxs)(o.Fragment,{children:[t.render("Cell",{editable:!1}),"(",e.subRows.length,")"]}):t.isAggregated?t.render("Aggregated"):t.isPlaceholder?null:t.render("Cell",{editable:!0})})))}))))})),u&&(0,o.jsx)("tfoot",{children:s.footerGroups.map(e=>(0,o.jsx)("tr",(0,a._)((0,n._)({},e.getFooterGroupProps()),{children:e.headers.map(e=>(0,o.jsx)("td",(0,a._)((0,n._)({},e.getFooterProps()),{children:e.render("Footer")})))})))})]}))}},57730(e,t,s){s.d(t,{A:()=>H,f:()=>D});var n=s(50595),a=s(71893),l=s(55456),o=s(74848),i=s(96540),r=s(18492),c=s(96338),u=s(20125),_=s(2543),d=s(88055),m=s.n(d),b=s(87612),p=s.n(b),x=s(58156),A=s.n(x),j=s(62193),y=s.n(j),g=s(55378),k=s.n(g),h=s(99374),K=s.n(h),v=s(25176),f=s(13460),T=s(91475),C=s(59545),w=s(29056),F=s(37730),P=s(23972),B=s(95869);let D=[{value:"as",label:"AS"},{value:"kop",label:"KOP"},{value:"kepala",label:"KEPALA"},{value:"ekor",label:"EKOR"}],E=[{no:"",guess:"",position:"",buy:""},...Array.from({length:10},(e,t)=>t).map((e,t)=>({no:t+1,guess:"",position:D[0],buy:""}))],H=e=>{let{ProcessBetModal:t,TransactionModal:s,InformModal:d}=e;return e=>b=>{let{}=b,x=(0,n._)({},b),j=(0,c.w)(),{t:g}=(0,r.B)(),[h,D]=(0,i.useState)(m()(E)),[H,O]=(0,i.useState)(!1),R=(0,i.useRef)([]),N=(0,i.useRef)([]),I=(0,i.useRef)([]),G=(0,v.vc)(B.mx),{showLoading:U,hideLoading:S}=(0,T.A)(),[L,M]=(0,i.useState)([]),[W,Y]=(0,i.useState)({}),[q,z]=(0,i.useState)(""),[Q,J]=(0,i.useState)(!1),V=(0,v.vc)(B.hK),X=(0,v.vc)(B.FT),[Z,$]=(0,i.useState)(0),ee=(0,u.d)(e=>e.user);(0,i.useEffect)(()=>{X.game_code===w.KP.COLOK_JITU&&Z>(null==ee?void 0:ee.credit)&&j((0,F.p)("notEnoughBalance"))},[j,X.game_code,Z,null==ee?void 0:ee.credit]);let et=(0,i.useCallback)(e=>{let t=0,s=K()(A()(X,"settings.discount"))||0,n=K()(e.buy);return{discount:t=s/100*n,pay:t?n-t:n}},[X]),es=(0,i.useCallback)((e,t,s)=>{let n=e;"guess"===s&&1===(n=n.replace(/\D/g,"")).length&&(N.current[t].focus(),N.current[t].setState({menuIsOpen:!0})),D(e=>e.map((o,i)=>(e[0].buy&&(e[t].buy=e[0].buy),i===t)?(0,l._)((0,a._)({},o),{[s]:n}):o))},[]),en=(0,i.useCallback)(()=>{O(!1)},[]),ea=(0,i.useCallback)(()=>{D(()=>m()(E))},[]),el=(0,i.useCallback)((e,t)=>{D(s=>s.map((s,n)=>n===t?(0,l._)((0,a._)({},s),{position:e}):s)),I.current[t].focus()},[]),eo=(0,i.useCallback)(()=>{let e=p()(h,function(e){return!!e.guess&&!!e.buy}),t={data:k()(e,e=>({numbers:[K()(e.guess)],amount:K()(e.buy),position:e.position.value}))};y()(t.data)?j((0,F.p)("err_no_guess_digits")):(O(!0),Y(t))},[j,h]),ei=(0,i.useCallback)((e,t,s)=>{if("Enter"===e.key)switch(s){case"guess":N.current[t].focus(),N.current[t].setState({menuIsOpen:!0});break;case"buy":R.current.length===t+1?eo():R.current[t+1].focus()}},[eo]),er=(0,i.useCallback)(async()=>{J(!1),U(),M(await f.A.submitGameColokJitu(W,G.id,V.id)),S()},[W,S,V.id,G.id,U]),ec=(0,i.useCallback)(()=>{O(!1),p()(h,function(e,t){return 0!==t&&(!!e.guess||!!e.buy)}).length>Object.values(W.data).length?(z(g("err_missing_some_bet_data")),J(!0)):er()},[W.data,h,er,g]),eu=(0,i.useMemo)(()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C.A,{i18nKey:"Discount"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:[A()(X,"settings.discount",""),"%"]}),(0,o.jsx)("br",{}),(0,o.jsx)(C.A,{i18nKey:"Prize"}),": ",(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(C.A,{i18nKey:"As"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(X,"settings.win.win_as","")]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(C.A,{i18nKey:"Kop"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(X,"settings.win.win_kop","")]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(C.A,{i18nKey:"Kepala"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(X,"settings.win.win_kepala","")]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(C.A,{i18nKey:"Ekor"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(X,"settings.win.win_ekor","")]})]})]}),[X]);return(0,i.useEffect)(()=>{let e=p()(h,function(e){return!!e.guess&&!!e.buy});$((0,_.sum)(k()(e,e=>K()(et(e).pay))))},[et,h]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,(0,l._)((0,a._)({},x),{ref:{guessElements:R,positionElements:N,betElements:I},mainGame:X,totalPay:Z,getPay:et,handleChangeInputFormat:es,handleChangeSearch:el,submitBet:eo,resetAllData:ea,listGuess:h,handleKeyPress:ei,resultTableProps:{title:"desc_colok_jitu",content:eu}})),(0,o.jsx)(t,{open:H,handleClose:en,nextAction:ec}),(0,o.jsx)(s,{response:L,resetAllData:ea}),(0,o.jsx)(d,{open:Q,isConfirmPopup:!0,nextAction:er,nextActionLabel:g("continue"),title:g("Confirm"),handleClose:()=>J(!1),message:(0,P.T)(q)})]})}}},30337(e,t,s){s.d(t,{A:()=>P,X:()=>F});var n=s(50595),a=s(71893),l=s(55456),o=s(74848),i=s(96540),r=s(18492),c=s(96338),u=s(20125),_=s(2543),d=s(87612),m=s.n(d),b=s(7309),p=s.n(b),x=s(58156),A=s.n(x),j=s(55378),y=s.n(j),g=s(25176),k=s(13460),h=s(91475),K=s(82758),v=s(59545),f=s(29056),T=s(37730),C=s(95869);let w=[{value:"small",label:(0,o.jsx)(v.A,{i18nKey:"small"})},{value:"big",label:(0,o.jsx)(v.A,{i18nKey:"big"})},{value:"odd",label:(0,o.jsx)(v.A,{i18nKey:"odd"})},{value:"even",label:(0,o.jsx)(v.A,{i18nKey:"even"})}],F=[{value:"2d_depan",label:(0,o.jsx)(v.A,{i18nKey:"Depan"})},{value:"2d_tengah",label:(0,o.jsx)(v.A,{i18nKey:"Tengah"})},{value:"2d",label:(0,o.jsx)(v.A,{i18nKey:"Belakang"})}],P=e=>{let{ProcessBetModal:t=(0,o.jsx)(o.Fragment,{}),TransactionModal:s=(0,o.jsx)(o.Fragment,{}),Tick:d,useStyles:b}=e;return e=>x=>{let{}=x,j=(0,n._)({},x),P=b(),B=(0,i.useRef)(null),{showLoading:D,hideLoading:E}=(0,h.A)(),[H,O]=(0,i.useState)([]),{t:R}=(0,r.B)(),N=(0,i.useRef)(),I=(0,c.w)(),G=(0,g.vc)(C.hK),U=(0,g.vc)(C.WV),S=(0,g.vc)(C.FT),[L,M]=(0,i.useState)(w[0]),[W,Y]=(0,i.useState)(F[0]),[q,z]=(0,i.useState)([]),[Q,J]=(0,i.useState)(""),[V,X]=(0,i.useState)(!1),Z=(0,g.v
1c)(C.mx),[$,ee]=(0,i.useState)(0),et=(0,u.d)(e=>e.user),es=(0,i.useMemo)(()=>(null==U?void 0:U.game_code)?U:S,[U,S]);(0,i.useEffect)(()=>{(null==es?void 0:es.game_code)===f.k4.FOURD_THREED_QUICK_TWOD&&$>(null==et?void 0:et.credit)&&I((0,T.p)("notEnoughBalance"))},[I,null==es?void 0:es.game_code,$,null==et?void 0:et.credit]);let[en,ea]=(0,i.useReducer)((e,t)=>(0,a._)({},e,t),{position:"",filter:"",amount:"",excepted_numbers:[]}),el=(0,i.useCallback)(e=>{M(e)},[L]),eo=(0,i.useCallback)(e=>{Y(e)},[W]),ei=(0,i.useCallback)(e=>{J(e)},[]),er=(0,i.useMemo)(()=>"2d_depan"===W.value?A()(es,"settings.max_bet.max_bet_2d_depan"):"2d_tengah"===W.value?A()(es,"settings.max_bet.max_bet_2d_tengah"):"2d"===W.value?A()(es,"settings.max_bet.max_bet_2d"):void 0,[es,W]),ec=(0,i.useCallback)(async e=>{let t,s;if(e.preventDefault(),!Q)return void N.current.focus();if(N.current.blur(),ea(t={position:W.value,filter:L.value,amount:Q}),D(),s=await k.A.validateGame(t,Z.id,G.id,f.k4.FOURD_THREED_QUICK_TWOD),E(),A()(s,"data.success")){var n;z(A()(s,"data.data").map((e,t)=>({no:t+1,bet:e.number,position:W,amount:e.amount,tick:!0}))),(null==B||null==(n=B.current)?void 0:n.scrollIntoView)&&B.current.scrollIntoView({behavior:"smooth",block:"start"})}else I((0,T.p)([{message:A()(s,"data.err",""),props:A()(s,"data.data")}]))},[Q,W,L.value,D,Z.id,G.id,E,I]),eu=(0,i.useCallback)(e=>{let t=(""+e).split("").map(e=>+e);return 1===t.length?[0].concat(t):t},[]),e_=(0,i.useCallback)(()=>{let e=m()(q,e=>!e.tick),t=y()(e,e=>eu(e.bet,e.bet.length));(ea({excepted_numbers:t}),t.length===q.length)?I((0,T.p)("err_no_guess_digits")):X(!0)},[I,q,eu]),ed=(0,i.useCallback)(()=>{X(!1)},[]),em=(0,i.useCallback)(async()=>{X(!1),D();let e=await k.A.submitGame(en,Z.id,G.id,f.k4.FOURD_THREED_QUICK_TWOD);E(),O(e)},[en,E,G.id,Z.id,D]),eb=(0,i.useCallback)(e=>{z(t=>{let s=[...t];return s[e].tick=!s[e].tick,s})},[]),ep=(0,i.useCallback)(()=>{z(e=>{let t=[...e],s=!!p()(e,{tick:!1});return y()(t,e=>(0,l._)((0,a._)({},e),{tick:s}))})},[]),ex=(0,i.useCallback)(e=>(0,o.jsx)("div",{className:P.quickTwoD__numbers,children:e}),[P]),eA=(0,i.useCallback)(e=>{"all"===e?ep():eb(e)},[ep,eb]),ej=(0,i.useCallback)((e,t)=>(0,o.jsx)("div",{className:P.quickTwoD__tick,onClick:()=>eA(t),children:(0,o.jsx)(d,{value:e})}),[P,eA]),ey=(0,i.useCallback)(e=>(0,o.jsx)("div",{style:{textTransform:"uppercase"},children:e}),[]),eg=(0,i.useMemo)(()=>[{Header:R("NOPoint"),accessor:"no"},{Header:R("Bet"),accessor:"bet",Cell:e=>ex(e.value)},{Header:R("Position"),accessor:"position",Cell:e=>ey(A()(e,"value.label"))},{Header:(0,o.jsx)("div",{style:{textAlign:"right"},children:R("Amount")}),accessor:"amount",Cell:e=>(0,o.jsx)(K.A,{value:e.value,tableFormat:!0})},{Header:e=>ej(!p()(e.data,{tick:!1}),"all"),accessor:"tick",Cell:e=>ej(e.value,e.row.index)}],[R,P]),ek=(0,i.useMemo)(()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v.A,{i18nKey:"Discount"}),":\xa0",(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Depan"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:[A()(es,"settings.discount.discount_2d_depan",""),"%"]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Tengah"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:[A()(es,"settings.discount.discount_2d_tengah",""),"%"]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Belakang"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:[A()(es,"settings.discount.discount_2d",""),"%"]})]}),(0,o.jsx)("br",{}),(0,o.jsx)(v.A,{i18nKey:"Prize"}),":\xa0",(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Depan"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(es,"settings.win.win_2d_depan","")]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Tengah"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(es,"settings.win.win_2d_tengah","")]}),",\xa0"]}),(0,o.jsxs)("span",{style:{display:"inline-block"},children:[(0,o.jsx)(v.A,{i18nKey:"Belakang"}),": ",(0,o.jsxs)("span",{className:"resultTable__value",children:["x",A()(es,"settings.win.win_2d","")]})]})]}),[es]);return(0,i.useEffect)(()=>{ee((0,_.sum)(y()(q,e=>{let t=0;if(e.tick){let s=A()(es,"settings.discount.discount_".concat(e.position.value)),n=(0,_.toNumber)(e.amount),a=(0,_.toNumber)(s)/100*n;t=n-a}return t})))},[q,es]),(0,i.useEffect)(()=>{$>(null==et?void 0:et.credit)&&I((0,T.p)("notEnoughBalance"))},[I,$,null==et?void 0:et.credit,es]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,(0,l._)((0,a._)({},j),{ref:{betRef:N,scrollRef:B},settings:A()(es,"settings",""),addDataTable:ec,listGuess:q,totalPay:$,numbers:w,number:L,handleChangeNumber:el,positions:F,position:W,handleChangePosition:eo,buy:Q,handleChangeBet:ei,maxBet:er,submitRow:e_,updateSubmitRow:eb,onSelectAllRow:ep,columnTable:eg,resultTableProps:{title:"desc_quick2d",content:ek}})),(0,o.jsx)(t,{open:V,handleClose:ed,nextAction:em}),(0,o.jsx)(s,{response:H,resetAllData:()=>{J(""),ee(0),z([]),M(w[0]),Y(F[0])}})]})}}},90535(e,t,s){s.d(t,{A:()=>R});var n=s(71893),a=s(55456),l=s(31105),o=s(74848),i=s(96540),r=s(18492),c=s(32885),u=s(7309),_=s.n(u),d=s(58156),m=s.n(d),b=s(55378),p=s.n(b),x=s(14174),A=s.n(x),j=s(83472),y=s.n(j),g=s(77126),k=s.n(g),h=s(31126),K=s.n(h),v=s(99374),f=s.n(v),T=s(25176),C=s(82758),w=s(59545),F=s(29056),P=s(57730),B=s(30337),D=s(38351),E=s(23972),H=s(95869),O=s(25302);let R=e=>{let{screen:t=""}=e;return e=>s=>{let{dataTransactionPaging:u,dataTransactions:d}=s,b=(0,l._)(s,["dataTransactionPaging","dataTransactions"]),{t:x}=(0,r.B)(),j=(0,i.useMemo)(()=>K()(d,e=>f()(e.net_amount)),[d]),{isWriter:g}=(0,T.vc)(O.l),h=(0,T.vc)(H.wg),v=(0,T.vc)(H.FB),R=(0,i.useMemo)(()=>({no:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"NOPoint"})},game:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Game"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:t.game_code_display}),(0,o.jsx)("br",{}),(0,o.jsx)("font",{color:"red",children:(0,E.T)(m()(t,"error"))})]})}},number:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"})},number1:{Header:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),"\xa01"]}),Cell:e=>{let{row:{original:t}}=e;return m()(t,"number[0]","")}},number2:{Header:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),"\xa02"]}),Cell:e=>{let{row:{original:t}}=e;return m()(t,"number[1]","")}},number3:{Header:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),"\xa03"]}),Cell:e=>{let{row:{original:t}}=e;return m()(t,"number[2]","")}},position:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),Cell:e=>{let{value:t}=e;return(0,o.jsx)(w.A,{i18nKey:t})}},position_bb_discount:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Position"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsx)(w.A,{i18nKey:t.position})}},position_colok_jitu:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Position"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsx)(w.A,{i18nKey:m()(_()(P.f,e=>e.value===t.position),"label","")})}},position_quick_2D:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Position"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsx)(w.A,{i18nKey:m()(_()(B.X,e=>e.value===t.position),"label","")})}},position_5050:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),Cell:e=>{let{row:{original:t}}=e,s=t.position.split(":");return p()(s,e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{i18nKey:e})," "]}))}},position_shilang_homo:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),Cell:e=>{let{row:{original:t}}=e,s=t.position.split(":");return p()(k()(s),e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{i18nKey:e})," "]}))}},position_1_kombinasi:{Header:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),"\xa01"]}),Cell:e=>{let{row:{original:t}}=e,s=m()(t,"position","").split(":").slice(0,2);return p()(s,e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{i18nKey:e})," "]}))}},position_2_kombinasi:{Header:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),"\xa02"]}),Cell:e=>{let{row:{original:t}}=e,s=m()(t,"position","").split(":").slice(2,4);return p()(s,e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{i18nKey:e})," "]}))}},position_shio:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsx)(w.A,{i18nKey:t.position})}},amount:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"Amount"}),Cell:e=>{let{value:t}=e;return(0,o.jsx)(C.A,{value:t,tableFormat:!0})}},prize:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"Kei"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsxs)("div",{style:{textAlign:"right"},children:[(0,D.A)(m()(t,"prize.kei_".concat(t.position))),"%"]})}},prize_5050:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"Kei"}),Cell:e=>{let{row:{original:t}}=e;return(0,o.jsxs)("div",{style:{textAlign:"right"},children:[(0,D.A)(m()(t,"prize.kei_".concat(y()(t.position,":","_")))),"%"]})}},discount:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"Discount"}),Cell:e=>{let{value:t}=e;return(0,o.jsxs)("div",{style:{float:"right"},children:[(0,D.A)(t),"%"]})}},net_amount:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"TotalAmount"}),Cell:e=>{let{value:t}=e;return(0,o.jsx)(C.A,{value:t,tableFormat:!0})},Footer:()=>(0,o.jsxs)("b",{style:{float:"right"},children:[(0,o.jsx)(w.A,{i18nKey:"Total"}),": ",(0,o.jsx)(C.A,{value:j})]})},win_amount:{Header:(0,o.jsx)(w.A,{style:{float:"right"},i18nKey:"XWin"}),Cell:e=>{let{value:t}=e;return(0,o.jsx)(C.A,{value:t,tableFormat:!0})}},bet_quickBuy:{Header:(0,o.jsx)(w.A,{style:{float:"left"},i18nKey:"Bet"}),Cell:e=>{let{row:{original:t}}=e,s=t.number||x(t.position);switch(t.game_code){case F.KP.FIFTY_FIFTY:let n=t.position.split(":");s=p()(n,e=>x(e)).join(" ");break;case F.KP.FIFTY_FIFTY_TWOD:case F.KP.DASAR:case F.KP.TEPI_TENGAH:break;case F.KP.COLOK_JITU:s=t.number+" "+x(t.position);break;case F.KP.SHIO:s=x(t.position)}return s}},discount_quickBuy:{Header:(0,o.jsxs)("div",{style:{float:"left"},children:[(0,o.jsx)(w.A,{i18nKey:"Discount"})," / ",(0,o.jsx)(w.A,{i18nKey:"Kei"})]}),Cell:e=>{let{row:{original:t}}=e,s=t.discount,n="";switch(t.game_code){case F.KP.FIFTY_FIFTY:let a=t.position.split(":");n=m()(t,"prize.kei_".concat(a.join("_")));break;case F.KP.FIFTY_FIFTY_TWOD:case F.KP.DASAR:case F.KP.TEPI_TENGAH:n=m()(t,"prize.kei_".concat(t.position))}return(0,o.jsxs)("div",{style:{float:"right"},children:[(0,D.A)(s),"%",n&&" / ".concat((0,D.A)(n),"%")]})}}}),[j,x]),N=(0,i.useMemo)(()=>{let e;switch(h){case F.KP.COLOK_BEBAS_TWOD:e=["no","number1","number2","amount","discount","net_amount","win_amount"];break;case F.KP.COLOK_NAGA:e=["no","number1","number2","number3","amount","discount","net_amount","win_amount"];break;case F.KP.COLOK_JITU:e=["no","number","position_colok_jitu","amount","discount","net_amount","win_amount"];break;case F.KP.TEPI_TENGAH:case F.KP.DASAR:case F.KP.FIFTY_FIFTY_TWOD:e=["no","position","amount","prize","discount","net_amount","win_amount"];break;case F.KP.FIFTY_FIFTY:e=["no","position_5050","amount","prize_5050","discount","net_amount","win_amount"];break;case F.KP.SHILANG_HOMO:case F.KP.KEMBANG_KEMPIS:e=["no","position_shilang_homo","amount","prize_5050","discount","net_amount","win_amount"];break;case F.KP.KOMBINASI:e=["no","position_1_kombinasi","position_2_kombinasi","amount","discount","net_amount","win_amount"];break;case F.KP.SHIO:e=["no","position","amount","discount","net_amount","win_amount"];break;case F.KP.QUICK_BUY:e=["no","bet_quickBuy","amount","discount_quickBuy","net_amount","win_amount"];break;case F.KP.BB_CAMPURAN:e=["no","number","position_bb_discount","amount","discount","net_amount","win_amount"];break;default:e=["no","number","amount","discount","net_amount","win_amount"]}switch(v){case F.k4.FOURD_THREED_QUICK_TWOD:e=["no","number","position_quick_2D","amount","discount","net_amount","win_amount"];break;case F.k4.FOURD_THREED_TWOD_FULLBET:case F.k4.FOURD_THREED_TWOD_PRIZE123:case F.k4.BB_CAMPURAN_PRIZE123:case F.k4.FOURD_THREED_TWOD_BET_BB:case F.k4.ANGKA_TARUNG_PRIZE123:case F.k4.FOURD_THREED_TWOD_3D_DEPAN_FULLBET:case F.k4.TOGEL_6D_FULLBET:e=["no","number","amount","net_amount","win_amount"];break;case F.k4.ANGKA_TARUNG_FULLBET:case F.k4.BB_CAMPURAN_FULLBET:case F.k4.BB_CAMPURAN_BET_BB:e=["no","number","position_bb_discount","amount","net_amount","win_amount"];break;case F.k4.ANGKA_TARUNG_DISCOUNT:case F.k4.BB_CAMPURAN_DISCOUNT:e=["no","number","position_bb_discount","amount","discount","net_amount","win_amount"]}return"wap"===t&&e.splice(1,0,"game"),g&&A()(e,e=>"discount"===e||"discount_quickBuy"===e),p()(e,e=>(0,a._)((0,n._)({},R[e]),{accessor:e}))},[R,h,v,g]),I=(0,c.useTable)({columns:N,data:p()(u,(e,t)=>(0,n._)({no:t+1},e))});return(0,o.jsx)(e,(0,a._)((0,n._)({},b),{dataTransactions:d,table:I,totalUserPayment:j}))}}},38351(e,t,s){s.d(t,{A:()=>i});var n=s(99374),a=s.n(n),l=s(13222),o=s.n(l);let i=e=>
1{let t=o()(e)+"00",s=t.indexOf(".");return -1!==s?s+=2:s=t.length,t=t.replace(".",""),a()(t.slice(0,s)+"."+t.slice(s,t.length-1))}}}]); 2//# sourceMappingURL=1811.e3c4fccb.js.map
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.