PageSourceSearch

https://arabia365.com/assets/TransactionRequest-Cwvi__AD.js

js arabia365.com collected 2026-10-03 18:21:13 UTC 16,855 bytes, 1 lines download raw bytes

1import{e as i,H as _e,J as ve,a as Me,b3 as Oe,v as ge,bJ as ke,cP as Le,cI as Ye,w as we,g as We,E as x,b9 as Fe,f as Ge,aE as Be,j as s,I as J,bx as z,h as Ue,aU as He,bQ as X,z as K,s as Ve}from"./index-BP99-Kiy.js";import{d as $}from"./CloseOutlined-D8XNPwe3.js";import{A as Q}from"./agpayKeywordMapping-CbKiLqU0.js";import{C as Ze}from"./CustomTableMob-CwNLIgIV.js";import{D}from"./DateAndTimeTemplate-CwHrn9zU.js";import{r as qe,R as Je}from"./UserRouter-0lY9qO-N.js";import{S as ee}from"./SelectTemplate-BSJxuxdC.js";import{S as ze}from"./Spinner-C8En8sma.js";import{C as Xe}from"./CurrencyTypeFactor-BXiaQXLY.js";import Ke from"./Deposit-BqJoChQL.js";import{W as $e}from"./Withdrawal-BJCycwJP.js";import{W as te}from"./WhatsApp-D46CCk94.js";import{T as Qe,a as De,b as et,c as O,d as a,e as tt}from"./TableRow-CFSDyUhF.js";import{T as st}from"./Tooltip-BWJIkSHZ.js";import{D as se}from"./Drawer-BmkU9H-V.js";import"./DatePicker-D8V8U4Ku.js";import"./Menu-BFMZz2zl.js";import"./debounce-DtXjJkxj.js";import"./Grow-CSsOp4CC.js";import"./DialogActions-DqP0oj-U.js";import"./createStyles-yD3y8ldD.js";import"./Button-DgnPDEVz.js";import"./TextField-B_ihO7_s.js";import"./OutlinedInput-OS5VWFgC.js";import"./useFormControl-BSJlwtVR.js";import"./Select-CT8JDHwO.js";import"./useControlled-2mnCc5iv.js";import"./createSvgIcon-Lcqb3FMo.js";import"./FormHelperText-fsXwnzfI.js";import"./InputAdornment-CBUiIFhP.js";import"./___vite-browser-external_commonjs-proxy-Be4j4IkX.js";import"./CustomButton-DgoUqeqd.js";import"./trackApkDownload-1DCe7sUx.js";import"./MenuItem-BRBCcvOz.js";import"./Tabs-CMbrVkzF.js";import"./Tab-BVLrDO2d.js";var g={},ne=ve;Object.defineProperty(g,"__esModule",{value:!0});var re=g.default=void 0,nt=ne(i),rt=ne(_e()),ot=(0,rt.default)(nt.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");re=g.default=ot;const it=({title:t,titleId:r,...c},d)=>i.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:d,"aria-labelledby":r,...c},t?i.createElement("title",{id:r},t):null,i.createElement("path",{d:"M3 11C2.58333 11 2.22917 10.8542 1.9375 10.5625C1.64583 10.2708 1.5 9.91667 1.5 9.5V8H3V1L3.75 1.75L4.5 1L5.25 1.75L6 1L6.75 1.75L7.5 1L8.25 1.75L9 1L9.75 1.75L10.5 1V9.5C10.5 9.91667 10.3542 10.2708 10.0625 10.5625C9.77083 10.8542 9.41667 11 9 11H3ZM9 10C9.14167 10 9.26042 9.95208 9.35625 9.85625C9.45208 9.76042 9.5 9.64167 9.5 9.5V2.5H4V8H8.5V9.5C8.5 9.64167 8.54792 9.76042 8.64375 9.85625C8.73958 9.95208 8.85833 10 9 10ZM4.5 4.5V3.5H7.5V4.5H4.5ZM4.5 6V5H7.5V6H4.5ZM8.5 4.5C8.35833 4.5 8.23958 4.45208 8.14375 4.35625C8.04792 4.26042 8 4.14167 8 4C8 3.85833 8.04792 3.73958 8.14375 3.64375C8.23958 3.54792 8.35833 3.5 8.5 3.5C8.64167 3.5 8.76042 3.54792 8.85625 3.64375C8.95208 3.73958 9 3.85833 9 4C9 4.14167 8.95208 4.26042 8.85625 4.35625C8.76042 4.45208 8.64167 4.5 8.5 4.5ZM8.5 6C8.35833 6 8.23958 5.95208 8.14375 5.85625C8.04792 5.76042 8 5.64167 8 5.5C8 5.35833 8.04792 5.23958 8.14375 5.14375C8.23958 5.04792 8.35833 5 8.5 5C8.64167 5 8.76042 5.04792 8.85625 5.14375C8.95208 5.23958 9 5.35833 9 5.5C9 5.64167 8.95208 5.76042 8.85625 5.85625C8.76042 5.95208 8.64167 6 8.5 6ZM3 10H7.5V9H2.5V9.5C2.5 9.64167 2.54792 9.76042 2.64375 9.85625C2.73958 9.95208 2.85833 10 3 10Z",fill:"currentColor"})),at=i.forwardRef(it),ct="/space/v2",oe={JP:"ZENPAY",JP1:"ZENPAY1",JP2:"ZENPAY2",JPREDIRECT:"ZENPAYREDIRECT",JPREDIRECT1:"ZENPAYREDIRECT1",JPREDIRECT2:"ZENPAYREDIRECT2",JPC:"ZENPAYCRYPTO",JPCS:"ZENPAYCRYPTOSEAMLESS",JPCDIRECT:"ZENPAYCRYPTOREDIRECT",PM:"PGMAN",XYZM:"ABCMONEY",SP:"SHARKPE",TP:"TRUSTLYPAY",PT:"PAYTRING",XEP:"XEINPAY",XEPZ:"XENONPAYZ",NOM:"NOOMOPAY"},lt=Object.fromEntries(Object.entries(oe).map(([t,r])=>[r,t])),dt={GETIN:"DEPOSIT",GETOUT:"WITHDRAW"},pt={DEPOSIT:"GETIN",WITHDRAW:"GETOUT"},mt={PENDING:"IN_PROGRESS"},ut={IN_PROGRESS:"PENDING"},ht={BT:"BANK_TRANSFER",XP:"UPI",UPT:"UPI_TRANSFER",PWT:"PAYTM_WALLET_TRANSFER",TPT:"TRUSTPAY_TRANSFER",XPBT:"XENON_PAY_BANK_TRANSFER",CWT:"CRYPTO_WALLET_TRANSFER",PTTR:"PAYTRING_TRANSFER"};function ft(t){return t&&(oe[t.toUpperCase()]??t)}function Tt(t){return t&&(lt[t.toUpperCase()]??t)}function xt(t){return t&&(dt[t.toUpperCase()]??t)}function At(t){return t&&(pt[t.toUpperCase()]??t)}function Pt(t){return t&&(mt[t.toUpperCase()]??t)}function Et(t){return t&&(ut[t.toUpperCase()]??t)}function bt(t){return t&&(ht[t]??t)}function Nt(...t){return`${ct}/${t.filter(Boolean).join("/")}`}function It(t){const r={...t};if("pgProvider"in t){delete r.pgProvider;const c=t.pgProvider;c!=null&&c!==""&&(r.hfrt=Tt(String(c)))}return"pgRefId"in t&&(delete r.pgRefId,t.pgRefId!=null&&t.pgRefId!==""&&(r.hfRefId=t.pgRefId)),"utr"in t&&(delete r.utr,t.utr!=null&&t.utr!==""&&(r.rtf=t.utr)),"sportsBook"in t&&(delete r.sportsBook,t.sportsBook!=null&&t.sportsBook!==""&&(r.sb=t.sportsBook)),"type"in t&&t.type&&(r.type=At(String(t.type))),"status"in t&&t.status&&(r.status=Et(String(t.status))),r}function Ct(t){const r=t.tType??t.transactionType,c=t.txStatus??t.status,d=t.queueWay??t.paymentGatewayProvider,u=t.queueMethod??t.paymentMethod;return{...t,transactionId:t.tId??t.transactionId,referenceId:t.rId??t.referenceId,transactionType:r&&xt(String(r)),paymentGatewayProvider:d&&ft(String(d)),providerReferenceId:t.rtRefId??t.providerReferenceId,paymentMethod:u&&bt(String(u)),cryptoCurrency:t.crCur??t.cryptoCurrency,cryptoAmount:t.crAmt??t.cryptoAmount,cryptoApprovedAmount:t.crAprvdAmt??t.cryptoApprovedAmount,txStatus:c&&Pt(String(c)),sportsBook:t.sb??t.sbook??t.sportsBook}}function St(t){const r=t.yuri??t.transactions,c=Array.isArray(r)?r.map(u=>Ct(u)):[],d=t.nextPageToken??t.next_page_token;
1return{transactions:c,nextPageToken:d!=null&&d!==""?String(d):null,summary:t.summary}}const N={IN_PROGRESS:"In Progress",INITIATED:"Initiated",APPROVAL_PENDING:"Approval Pending",APPROVED:"Approved",REJECTED:"Rejected",SUCCEEDED:"Succeeded",FAILED:"Failed",CANCELLED:"Cancelled"},yt=t=>{const{openDepositModal:r,openWithdrawModal:c,setOpenDepositModal:d,setOpenWithdrawModal:u,whatsappDetails:k,langData:e,fetchBalance:ie}=t,h=we(n=>n.common.domainConfig),A=We(),[_t,L]=i.useState(null),[I,P]=i.useState(!1),[E,ae]=i.useState([]),[C,ce]=i.useState(x().subtract(3,"d")),[S,le]=i.useState(x()),[y,de]=i.useState("ALL"),[R,pe]=i.useState("ALL"),me=Xe[Fe()],[vt,Mt]=i.useState(1),ue=25,[m,j]=i.useState([]),[_,v]=i.useState(null),[Ot,gt]=i.useState(0),[Y,w]=i.useState(!0),[W,F]=i.useState(!0),[G,M]=i.useState(!1),he=Ge(),fe=[{label:"Transaction Type",langKey:"transaction_type",param:"",widthInPercent:40},{label:"Status",langKey:"status",param:"",widthInPercent:20},{label:"Amount",langKey:"amount",param:"",widthInPercent:20},{label:"Txn ID",langKey:"txn_id",param:"",widthInPercent:20}],Te=[{param:"",widthInPercent:40,cellRender:Ae},{param:"txStatus",widthInPercent:20,cellRender:Pe},{param:"amount",widthInPercent:20},{param:"transactionId",widthInPercent:20}],xe=[{param:"",widthInPercent:40,cellRender:Ee},{param:"",widthInPercent:60,cellRender:be}];function Ae(n,o){return s.jsxs("div",{className:"mb-event-name-date",children:[s.jsx("div",{className:"b-700",children:o.transactionType}),s.jsx("div",{className:"mb-bet-date",children:x(o==null?void 0:o.startTime).format("DD-MM-YY, h:mm:ss A")})]})}function Pe(n,o){return s.jsx("div",{className:"p-5",children:s.jsx("div",{className:"b-700",children:N[o.txStatus]})})}function Ee(n,o){return s.jsxs("div",{className:"display-flex",children:[s.jsx("div",{className:"b-500",children:"Payment Method:"})," ",s.jsx("div",{className:"b-400",children:(o==null?void 0:o.paymentMethod)=="UNRECOGNIZED"?"-":o==null?void 0:o.paymentMethod})]})}function be(n,o){return s.jsxs("div",{className:"display-flex space-between p-5",children:[s.jsx(s.Fragment,{children:o.txStatus==="INITIATED"&&s.jsx("span",{className:"cancel-btn",onClick:()=>H(o.transactionId,o.paymentGatewayProvider),children:"Cancel"})}),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"b-700",children:"Notes:"}),s.jsx("div",{className:"b-400",children:o.notes})]})]})}const T=i.useCallback(async()=>{P(!0),L(null);try{const n=await Be.get(Nt("rp","queue-yuri",":search"),{headers:{Authorization:sessionStorage.getItem("jwt_token")},params:It({startDate:C.startOf("day").toISOString(),endDate:S.endOf("day").toISOString(),pageSize:ue,pageToken:m[m.length-1],status:y==="ALL"?"":y,type:R==="ALL"?"":R,isAscending:!1})}),o=St(n.data),p=o.transactions;v(o.nextPageToken);for(const f of p)typeof f.amount=="number"&&(f.amount=f.amount/me);ae(p)}catch(n){n.response&&n.response.data&&L(n.response.data.error),v(null)}P(!1)},[m]),Ne=()=>{_&&j([...m,_])},Ie=()=>{if(m.length>0){let n=m;n.pop(),j([...n])}},B=i.useRef(T);B.current=T;const U=i.useRef(!0);i.useEffect(()=>{if(U.current){U.current=!1;return}!r&&!c&&B.current()},[r,c]),i.useEffect(()=>{T()},[T]);const Ce=n=>{ce(n),b()},Se=n=>{le(n),b()};i.useEffect(()=>{ie()},[]);const ye=async()=>{var o,p,f,V,Z,q;const n=sessionStorage.getItem("aid");try{const l=await Q.get(`/agpay/v2/payment-settings/accounts/${n}`,{headers:{Authorization:sessionStorage.getItem("jwt_token"),"Content-Type":"application/json"}});l.status===200&&((o=l==null?void 0:l.data)!=null&&o.withdraw_provider_list&&((f=(p=l==null?void 0:l.data)==null?void 0:p.withdraw_provider_list)==null?void 0:f.length)>0?F(!0):F(!1),(V=l==null?void 0:l.data)!=null&&V.deposit_provider_list&&((q=(Z=l==null?void 0:l.data)==null?void 0:Z.deposit_provider_list)==null?void 0:q.length)>0?w(!0):w(!1))}catch(l){console.log(l)}};i.useEffect(()=>{ye()},[]);const b=()=>{j([]),v(null)},H=async(n,o)=>{if(o){P(!0);try{(await Q.delete(`/agpay/v2/${o.toLowerCase()}/transactions/${n}`,{headers:{Authorization:sessionStorage.getItem("jwt_token"),"Content-Type":"application/json"}})).status===204&&(he(Ve({type:"success",message:"Transaction is cancelled."})),T())}catch(p){console.log(p)}P(!1)}},Re=[{value:"ALL",name:e==null?void 0:e.all},{value:"DEPOSIT",name:e==null?void 0:e.deposit},{value:"WITHDRAW",name:e==null?void 0:e.withdraw}],je=[{value:"ALL",name:e==null?void 0:e.all},{value:"APPROVAL_PENDING",name:e==null?void 0:e.approval_pending},{value:"IN_PROGRESS",name:e==null?void 0:e.in_progress},{value:"INITIATED",name:e==null?void 0:e.initiated},{value:"APPROVED",name:e==null?void 0:e.approved},{value:"REJECTED",name:e==null?void 0:e.rejected},{value:"SUCCEEDED",name:e==null?void 0:e.succeeded},{value:"FAILED",name:e==null?void 0:e.failed}];return s.jsxs("div",{className:"support-container tx-request-ctn tr-ctn",children:[s.jsx(qe,{back:e==null?void 0:e.back}),s.jsxs(J,{className:"as-ctn  ",children:[s.jsx(Je,{titleIcon:at,reportName:e==null?void 0:e.my_txns,tabsOrBtns:[{label:e==null?void 0:e.payment_related_queries,onSelect:()=>window.open(k,"_blank"),className:"whatsapp-tr-btn web-view",icon:s.jsx(te,{className:"whatsapp-icon"}),cond:h.b2cEnabled},{label:e==null?void 0:e.withdraw,onSelect:()=>A.push("/transaction/withdraw"),className:"withdraw-tr-btn web-view",cond:Y&&h.payments&&h.b2cEnabled},{label:e==null?void 0:e.deposit,onSelect:()=>A.push("/transaction/deposit"),className:"depoosit-tr-btn web-view",cond:W&&h.payments&&h.b2cEnabled}],reportFilters:[{element:s.jsx(ee,{label:e==null?void 0:e.transaction_type,list:Re,value:R,onChange:n=>{pe(n.target.value),b()},placeholder:e==null?void 0:e.select_one}),fullWidthInMob:!1},{element:s.jsx(ee,{label:e==null?void 0:e.transaction_status,list:je,value:y,onChange:n=>{de(n.target.value),b()},placeholder:e==null?void 0:e.select_one}),fullWidthInMob:!1},{element:s.jsx(D,{value:C,label:e==null?void 0:e.from,onChange:n=>
1Ce(n),minDate:x().subtract(1,"months").calendar(),maxDate:S})},{element:s.jsx(D,{value:S,label:e==null?void 0:e.to,onChange:n=>Se(n),minDate:C})},{element:s.jsx(s.Fragment,{children:Y&&h.payments&&z()&&s.jsx("button",{className:"withdraw-tr-btn mob-view",onClick:()=>A.push("/transaction/withdraw"),children:e==null?void 0:e.withdraw})}),fullWidthInMob:!1},{element:s.jsx(s.Fragment,{children:W&&h.payments&&z()&&s.jsx("button",{className:"depoosit-tr-btn mob-view",onClick:()=>A.push("/transaction/deposit"),children:e==null?void 0:e.deposit})}),fullWidthInMob:!1},{element:s.jsx(s.Fragment,{children:h.b2cEnabled&&s.jsxs("button",{className:"whatsapp-tr-btn mob-view",onClick:()=>window.open(k,"_blank"),children:[s.jsx(te,{className:"whatsapp-icon"}),e==null?void 0:e.payment_related_queries]})}),fullWidthInMob:!1}]}),s.jsx(Ue,{className:"tr-table-ctn",children:s.jsxs("div",{className:"reports-ctn my-bets-ctn",children:[s.jsx("div",{className:"content-ctn light-bg my-bets-content",children:s.jsxs("div",{className:"myb-bets-div",children:[I?s.jsx(ze,{}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"tbl-ctn my-bets-tbl no-hov-style web-view",children:s.jsx(Qe,{component:He,children:s.jsxs(De,{className:"myb-table",size:"small",children:[s.jsxs(et,{className:"myb-table-header  trx-request-table",children:[s.jsxs(O,{className:"trx-webView-head",children:[s.jsx(a,{children:e==null?void 0:e.transaction_time}),s.jsx(a,{children:e==null?void 0:e.transaction_id}),s.jsx(a,{children:e==null?void 0:e.transaction_type}),s.jsx(a,{children:e==null?void 0:e.amount}),s.jsx(a,{children:e==null?void 0:e.approved_amount}),s.jsx(a,{children:e==null?void 0:e.transaction_status}),s.jsx(a,{children:e==null?void 0:e.notes}),s.jsx(a,{children:e==null?void 0:e.payment_method}),s.jsx(a,{children:e==null?void 0:e.action})]}),s.jsxs(O,{className:"trx-mobView-head",children:[s.jsx(a,{children:e==null?void 0:e.transaction_type}),s.jsxs(a,{className:"trx-status",children:[e==null?void 0:e.status," "]}),s.jsx(a,{children:e==null?void 0:e.amount}),s.jsx(a,{children:e==null?void 0:e.txn_id})]})]}),E&&E.length>0?s.jsx(s.Fragment,{children:s.jsx(tt,{className:"apl-table-body trx-webView-body",children:E.map((n,o)=>{var p;return s.jsx(s.Fragment,{children:s.jsxs(O,{className:"apl-table-row",children:[s.jsx(a,{align:"left",children:x(n==null?void 0:n.startTime).format("DD-MM-YY, h:mm:ss A")}),s.jsx(a,{align:"left",children:n==null?void 0:n.transactionId}),s.jsx(a,{align:"left",className:"text-capitalize",children:(p=n.transactionType)==null?void 0:p.toLowerCase()}),s.jsx(a,{align:"left",children:n.amount.toFixed(2)}),s.jsx(a,{children:n!=null&&n.approvedAmount?n.approvedAmount:"-"}),s.jsxs(a,{align:"left",children:[N[n.txStatus]?N[n.txStatus]:n.txStatus,"  ",N[n.txStatus]==="Rejected"?s.jsx(st,{title:n==null?void 0:n.remarks,open:G,onOpen:()=>M(!0),onClose:()=>M(!1),children:s.jsx(re,{onClick:()=>M(!G)})}):null]}),s.jsx(a,{align:"left",children:n==null?void 0:n.remarks}),s.jsx(a,{align:"left",children:(n==null?void 0:n.paymentMethod)=="UNRECOGNIZED"?"-":n==null?void 0:n.paymentMethod}),s.jsx(a,{align:"left",children:n.txStatus==="INITIATED"?s.jsx("span",{className:"cancel-btn",onClick:()=>H(n.transactionId,n.paymentGatewayProvider),children:e==null?void 0:e.cancel}):"-"})]},o)})})})}):s.jsx(a,{className:"no-data-row",colSpan:9,children:s.jsx("div",{className:"no-bets-msg",children:e==null?void 0:e.no_data_found})})]})})}),s.jsx(Ze,{headerParams:fe,bodyData:E,upperRow:Te,lowerRow:xe,noDataMessage:e==null?void 0:e.no_data_found,langData:e})]}),s.jsxs(J,{children:[m.length>0&&!I&&s.jsxs(X,{className:"led-btn-prev",onClick:n=>Ie(),children:["(",e==null?void 0:e.prev,")(",m.length-1,")"]}),_&&!I?s.jsxs(X,{className:"led-btn-next",onClick:n=>Ne(),children:["(",e==null?void 0:e.next,")(",m.length+1,")"]}):null]})]})}),s.jsx(K,{className:"backdrop-ctn",open:r,children:s.jsxs(se,{anchor:"right",open:r,onClose:()=>d(!1),className:"light-bg-title game-rules-drawer",title:"",children:[s.jsxs("div",{className:"game-rules-header",children:[s.jsx("div",{className:"game-rules-title",children:e==null?void 0:e.deposit}),s.jsx("div",{className:"game-rules-close cursor",onClick:()=>d(!1),children:s.jsx($,{})})]}),s.jsx(Ke,{})]})}),s.jsx(K,{className:"backdrop-ctn",open:c,children:s.jsxs(se,{anchor:"right",open:c,onClose:()=>
1u(!1),className:"light-bg-title game-rules-drawer",title:"",children:[s.jsxs("div",{className:"game-rules-header",children:[s.jsx("div",{className:"game-rules-title",children:e==null?void 0:e.withdraw}),s.jsx("div",{className:"game-rules-close cursor",onClick:()=>u(!1),children:s.jsx($,{})})]}),s.jsx($e,{})]})})]})})]})]})},Rt=t=>({loggedIn:t.auth.loggedIn,bettingCurrency:t.common.bettingCurrency,currenciesAllowed:t.common.currenciesAllowed,openDepositModal:t.auth.openDepositModal,openWithdrawModal:t.auth.openWithdrawModal,whatsappDetails:Oe()?t.common.demoUserWhatsappDetails:t.common.whatsappDetails,langData:t.common.langData}),jt=t=>({setOpenDepositModal:r=>t(Ye(r)),setOpenWithdrawModal:r=>t(Le(r)),fetchBettingCurrency:()=>t(ke()),fetchBalance:()=>t(ge())}),Ts=Me(Rt,jt)(yt);export{Ts as default};

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.