PageSourceSearch

https://merchant.wata.pro/assets/TransactionDetailModalContent-FJZV0Lkf.js

js wata.pro collected 2026-10-06 06:12:02 UTC 34,887 bytes, 1 lines download raw bytes

1import{i as e,r as t}from"./rolldown-runtime-Bq0epICq.js";import{Y as a,h as s}from"./@gravity-ui-Enuc-IwO.js";import{Cn as i,Mn as l,St as r,Ut as n,Vt as d,Xt as c,cn as o,hn as h,ht as p,un as m}from"./@front-8msnzfD4.js";import{g as u,h as f,l as C,t as x}from"./hooks-BQcZuKJT.js";import{c as g}from"./dayjs-YJOiQelf.js";import{t as w}from"./clsx-BUm1h715.js";import{t as y}from"./class-name-DH1gMof0.js";import{A as v,E as L,f as j,j as N,k as M}from"./withdrawal-DxgjKLgX.js";import{t as F}from"./mask-string-CjlkaWM_.js";import{I as D,L as b}from"./@floating-ui-Ds9Lmfct.js";import{i as A,n as Z,s as V,t as I}from"./@tanstack-CdU4S-75.js";import{n as _}from"./react-router-je8IhtYo.js";import{I as H,N as W}from"./index-DzDVflDn.js";import{i as P,r as T,t as k}from"./getApiErrorMessage-D0vO79qC.js";var B=e(g(),1),R=e(b(),1),z={New:"Новая",Completed:"Выполнено",Processing:"В обработке",Canceled:"Отклонено",Failed:"Ошибка"},S={WithdrawalCrypto:"Перевод",WithdrawalFiat:"Перевод",DepositTerminal:"Пополнение",DepositCrypto:"Пополнение",DepositFiat:"Пополнение",Exchange:"Обмен",Undefined:"",DigitalGoodsPurchase:"",InternalTransfer:"Перевод"},$={DepositCrypto:"Пополнение",DepositFiat:"Пополнение",DigitalGoodsPurchase:"Списание",InternalTransfer:"Пополнение"},E={WithdrawalCrypto:"Перевод крипто",WithdrawalFiat:"Перевод фиат",DepositTerminal:"Пополнение с терминала",DepositCrypto:"Пополнение крипто",DepositFiat:"Пополнение фиат",Exchange:"Обмен",Undefined:"",InternalTransfer:"Внутренний перевод",DigitalGoodsPurchase:""},G={InternalTransfer:"Пополнение с Wata кошелька",DigitalGoodsPurchase:"Списание",DepositCrypto:"Пополнение с внешнего кошелька"},U={all_time:"Всё время","24_hour":"24 часа","7_days":"7 дней","30_days":"30 дней","6_month":"6 месяцев","1_year":"1 год"},q={MAIN:{WithdrawalFiat:["date","method","recipient","bank","rate","operationId"],WithdrawalCrypto:["date","method","recipient","operationId","hash"],DepositTerminal:["date","terminal","operationId"]},DG:{DigitalGoodsPurchase:["date","orderId","terminal","terminalId","operationId"],InternalTransfer:["date","operationId"],DepositCrypto:["date","sender","recipient","hash","operationId"]}},K=[{value:"all",label:"Все",variants:["all"]},{value:"deposit",label:"Пополнение",variants:["DepositTerminal"]},{value:"withdrawal",label:"Перевод",variants:["WithdrawalCrypto","WithdrawalFiat","InternalTransfer"]}],O=[{value:"all",label:"Все",variants:["all"]},{value:"deposit",label:"Пополнение",variants:["InternalTransfer","DepositCrypto"]},{value:"withdrawal",label:"Списание",variants:["DigitalGoodsPurchase"]}],Q=e=>e?N(e,"RUB",6):"––",X=e=>{const t=ne(e);switch(e.type){case"WithdrawalFiat":case"WithdrawalCrypto":return`${N(e.amount,"USDT")} -> ${t}`;default:return t}},Y=D(),J=(e,t)=>{const a=(0,B.default)();if(void 0!==t)return{startDate:a.subtract(t,"day").format(),endDate:a.format()};if(!e||"all_time"===e)return{startDate:"",endDate:""};const s={"1_year":[1,"year"],"6_month":[6,"month"],"30_days":[30,"day"],"7_days":[7,"day"],"24_hour":[24,"hour"]}[e];return s?{startDate:a.subtract(s[0],s[1]).format(),endDate:a.format()}:{startDate:"",endDate:""}},ee=(e,t="m")=>{const s=z[e];switch(e){case"Completed":return(0,Y.jsx)(r,{size:t,theme:"success",icon:(0,Y.jsx)(l,{data:i}),children:s});case"Processing":return(0,Y.jsx)(r,{size:t,theme:"warning",icon:(0,Y.jsx)(l,{data:a}),children:s});case"New":return(0,Y.jsx)(r,{size:t,theme:"info",icon:(0,Y.jsx)(l,{data:a}),children:s});case"Failed":case"Canceled":return(0,Y.jsx)(r,{size:t,theme:"danger",icon:(0,Y.jsx)(l,{data:m}),children:s})}},te=e=>{switch(e){case"Completed":return(0,Y.jsx)(l,{size:16,className:"text-positive",data:i});case"Processing":case"New":return(0,Y.jsx)(l,{size:16,className:"text-info-heavy",data:a});case"Failed":case"Canceled":return(0,Y.jsx)(l,{size:16,className:"text-danger-heavy",data:m})}},ae=(e,t)=>"InternalTransfer"===e.type&&"DG"===t?"Перевод на депозит ЦТ":"WithdrawalCrypto"===e.type?e.details?.toAddress?F(e.details?.toAddress,void 0,void 0,"●"):"--":"WithdrawalFiat"===e.type&&"Card"===e.details?.paymentMethod?e.details?.cardMaskedNumber?`●● ${(e.details?.cardMaskedNumber)?.slice(-4)}`:"Карта":"DepositTerminal"===e.type&&e.details?.terminalName||"",se=(e,t)=>{if("InternalTransfer"===e.type&&"DG"===t)return"Перевод на депозит ЦТ";if("WithdrawalCrypto"===e.type)return"Crypto"+(e.details?.isAutomatic?" (Автоперевод)":"");if("WithdrawalFiat"===e.type){if("Card"===e.details?.paymentMethod)return"Банковская карта";if("SBP"===e.details?.paymentMethod)return"СБП"}return"DepositTerminal"===e.type&&e.details?.terminalName||""},ie=e=>{let t="";return e?(e.startsWith("9112")&&(t="belcart"),e.startsWith("22")&&(t="mir"),e.startsWith("4")&&(t="visa"),(e=>{for(let t=51;
1t<=55;t++)if(e.startsWith(t.toString()))return!0;for(let t=23;t<=27;t++)if(e.startsWith(t.toString()))return!0;return!1})(e)&&(t="mastercard"),t):t},le=(e,t)=>{if("WithdrawalFiat"===e.type&&"Card"===e.details?.paymentMethod){if(e.details?.cardMaskedNumber){return(e=>{let t="";return"mir"===e?t="data:image/svg+xml,%3csvg%20width='34'%20height='24'%20viewBox='0%200%2034%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_38)'%3e%3cpath%20d='M10.6123%207.00195V7.00545C10.6088%207.00545%209.50852%207.00195%209.21511%208.05333C8.94615%209.01738%208.18818%2011.6778%208.16723%2011.7512H7.95765C7.95765%2011.7512%207.18222%209.03135%206.90977%208.04984C6.61636%206.99846%205.51259%207.00195%205.51259%207.00195H3V14.9985H5.51375V10.2492H5.72333L7.19037%2014.9984H8.93567L10.4027%2010.2527H10.6123V14.9984H13.126V7.00195H10.6123ZM19.7952%207.00195C19.7952%207.00195%2019.0582%207.06832%2018.7124%207.8403L16.9322%2011.7512H16.7226V7.00195H14.2089V14.9985H16.5829C16.5829%2014.9985%2017.3548%2014.9286%2017.7007%2014.1602L19.446%2010.2492H19.6556V14.9985H22.1693V7.00195H19.7952ZM23.287%2010.6334V14.9985H25.8008V12.4498H28.5241C29.7117%2012.4498%2030.7165%2011.6918%2031.0903%2010.6346H23.287V10.6334Z'%20fill='%234DB45E'/%3e%3cpath%20d='M28.5253%207.00174H22.9342C23.2137%208.52466%2024.3558%209.74603%2025.8322%2010.1442C26.1749%2010.2371%2026.5284%2010.284%2026.8835%2010.284H31.1927C31.2311%2010.1023%2031.2486%209.91722%2031.2486%209.72511C31.2486%208.22078%2030.0295%207.00174%2028.5253%207.00174Z'%20fill='url(%23paint0_linear_1_38)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1_38'%20x1='22.9342'%20y1='8.64285'%20x2='31.2486'%20y2='8.64285'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.3'%20stop-color='%2300B4E6'/%3e%3cstop%20offset='1'%20stop-color='%23088CCB'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1_38'%3e%3crect%20width='28.2486'%20height='8'%20fill='white'%20transform='translate(3%207)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":"visa"===e?t="data:image/svg+xml,%3csvg%20width='29'%20height='10'%20viewBox='0%200%2029%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.0223%200.717904C20.5749%200.535095%2019.8653%200.333252%2018.9879%200.333252C16.748%200.333252%2015.1706%201.56347%2015.1609%203.32232C15.1423%204.61999%2016.2903%205.34075%2017.1488%205.77344C18.0264%206.21558%2018.3247%206.50416%2018.3247%206.89827C18.3157%207.50354%2017.6156%207.78254%2016.9625%207.78254C16.057%207.78254%2015.5717%207.6387%2014.8344%207.30195L14.5357%207.1576L14.2183%209.18574C14.7503%209.43536%2015.7304%209.65688%2016.748%209.66658C19.1279%209.66658%2020.6773%208.4554%2020.6957%206.58107C20.7047%205.55256%2020.0986%204.76448%2018.7918%204.1205C17.9985%203.7071%2017.5126%203.42835%2017.5126%203.00538C17.5219%202.62085%2017.9235%202.227%2018.8191%202.227C19.5564%202.20771%2020.0982%202.39026%2020.5086%202.57295L20.7138%202.66888L21.0223%200.717904Z'%20fill='%230085FF'/%3e%3cpath%20d='M12.7998%209.53193H10.5316L11.9503%200.49703H14.2184L12.7998%209.53193Z'%20fill='%230085FF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.8367%200.49703H25.0822C24.5412%200.49703%2024.1301%200.660292%2023.8967%201.24666L20.5276%209.53181H22.9075C22.9075%209.53181%2023.2994%208.41669%2023.3836%208.17652H26.2958C26.3609%208.49372%2026.5664%209.53181%2026.5664%209.53181H28.6665L26.8367%200.49703ZM24.0369%206.33119C24.2237%205.81215%2024.9424%203.8033%2024.9424%203.8033C24.9386%203.81109%2024.9683%203.72635%2025.0124%203.6004L25.0127%203.59956C25.0778%203.41367%2025.1742%203.13849%2025.2409%202.93831L25.3994%203.71681C25.3994%203.71681%2025.8289%205.87947%2025.9222%206.33119H24.0369Z'%20fill='%230085FF'/%3e%3cpath%20d='M8.63713%200.49703L6.41582%206.65798L6.17309%205.40847L6.17287%205.4077L5.37977%201.2565C5.24916%200.679455%204.84779%200.516064%204.35315%200.49703H0.703838L0.666504%200.679583C1.55656%200.914004%202.35263%201.2518%203.05015%201.67182L5.07179%209.52237H7.47035L11.0356%200.49703H8.63713Z'%20fill='%230085FF'/%3e%3c/svg%3e":"mastercard"===e?t="data:image/svg+xml,%3csvg%20width='34'%20height='24'%20viewBox='0%200%2034%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_29)'%3e%3cpath%20d='M20.5026%205.71109H13.4751V18.2889H20.5026V5.71109Z'%20fill='%23FF5F00'/%3e%3cpath%20d='M13.9212%2012C13.9212%209.55554%2015.059%207.22221%2016.9777%205.7111C13.4974%202.97777%208.43306%203.57777%205.68896%207.06665C2.96718%2010.5333%203.56954%2015.5555%207.07217%2018.2889C9.99474%2020.5778%2014.0774%2020.5778%2017%2018.2889C15.059%2016.7778%2013.9212%2014.4444%2013.9212%2012Z'%20fill='%23EB001B'/%3e%3cpath%20d='M29.9843%2012C29.9843%2016.4222%2026.3924%2020%2021.9528%2020C20.1457%2020%2018.4055%2019.4%2017%2018.2889C20.4803%2015.5555%2021.0827%2010.5333%2018.3386%207.04443C17.937%206.55554%2017.4908%206.08888%2017%205.7111C20.4803%202.97777%2025.5446%203.57777%2028.2664%207.06665C29.3819%208.46665%2029.9843%2010.2%2029.9843%2012Z'%20fill='%23F79E1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_29'%3e%3crect%20width='34'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":"belcart"===e&&(t="data:image/svg+xml,%3csvg%20width='34'%20height='24'%20viewBox='0%200%2034%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2066_2)'%3e%3cpath%20d='M15.9381%2017.728L12.6812%2020.9218C12.463%2021.1358%2012.4656%2021.4104%2012.5413%2021.5962C12.617%2021.7818%2012.8065%202
11.9807%2013.1121%2021.9817L18.8426%2022C19.2835%2022.0013%2019.6489%2021.6437%2019.657%2021.2029C19.6575%2021.1794%2019.6578%2021.1556%2019.6578%2021.1322C19.6617%2019.8767%2019.1631%2018.6484%2018.2835%2017.7513C17.6433%2017.098%2016.5911%2017.0878%2015.9381%2017.728Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M12.1986%2015.2993L7.63747%2015.2547C7.33182%2015.2516%207.13946%2015.4479%207.06167%2015.6327C6.98389%2015.8174%206.97737%2016.092%207.1927%2016.3089L11.2321%2020.3739C11.543%2020.6866%2012.054%2020.6921%2012.3717%2020.3859C12.3887%2020.3697%2012.4056%2020.353%2012.4223%2020.3366C13.3126%2019.4518%2013.8289%2018.2305%2013.8412%2016.9742C13.8501%2016.0594%2013.1132%2015.3082%2012.1986%2015.2993Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M7.79739%2014.6567C7.82088%2014.6572%207.84463%2014.6575%207.86813%2014.6575C9.12359%2014.6614%2010.3519%2014.1628%2011.249%2013.2832C11.9021%2012.643%2011.9122%2011.5908%2011.272%2010.9378L8.07824%207.68088C7.86421%207.46267%207.58963%207.46528%207.40379%207.54098C7.21821%207.61641%207.01932%207.80617%207.01827%208.11181L7%2013.8423C6.99896%2014.2834%207.35654%2014.6486%207.79739%2014.6567Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M8.66342%207.42167C9.54824%208.31198%2010.7695%208.82826%2012.0258%208.84053C12.9403%208.8494%2013.6915%208.11283%2013.7004%207.19824L13.745%202.63707C13.7482%202.33142%2013.5519%202.13906%2013.3671%202.06128C13.1823%201.9835%2012.9077%201.97697%2012.6908%202.19231L8.62609%206.23172C8.3134%206.54258%208.30792%207.05364%208.61408%207.37129C8.63027%207.388%208.64697%207.40496%208.66342%207.42167Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M18.0622%206.27172L21.3191%203.07798C21.5373%202.86395%2021.5347%202.58937%2021.459%202.40353C21.3835%202.21795%2021.1938%202.01906%2020.8881%202.01801L15.1574%202C14.7165%201.9987%2014.3511%202.35628%2014.343%202.79713C14.3425%202.82062%2014.3422%202.84438%2014.3422%202.86787C14.3383%204.12333%2014.8369%205.35165%2015.7165%206.24875C16.357%206.90154%2017.4091%206.91198%2018.0622%206.27172Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M21.8017%208.70052L26.3629%208.74515C26.6685%208.74829%2026.8609%208.552%2026.9386%208.36721C27.0164%208.18241%2027.023%207.90783%2026.8076%207.69093L22.7682%203.62594C22.4573%203.31325%2021.9463%203.30777%2021.6286%203.61393C21.6117%203.63011%2021.5947%203.64682%2021.5783%203.66326C20.688%204.54809%2020.1717%205.76936%2020.1594%207.02561C20.1503%207.94019%2020.8871%208.69138%2021.8017%208.70052Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M26.2029%209.34315C26.1794%209.34263%2026.1556%209.34237%2026.1321%209.34237C24.8767%209.33845%2023.6484%209.83699%2022.7513%2010.7166C22.0982%2011.3569%2022.088%2012.409%2022.7283%2013.062L25.922%2016.3189C26.136%2016.5371%2026.4106%2016.5345%2026.5965%2016.4588C26.7821%2016.3834%2026.9809%2016.1937%2026.982%2015.888L27.0003%2010.1575C27.0013%209.7164%2026.6437%209.35098%2026.2029%209.34315Z'%20fill='%2332A8FF'/%3e%3cpath%20d='M25.3369%2016.5781C24.452%2015.6877%2023.2308%2015.1715%2021.9745%2015.1592C21.0599%2015.1503%2020.3087%2015.8869%2020.2999%2016.8015L20.2552%2021.3627C20.2521%2021.6683%2020.4484%2021.8607%2020.6332%2021.9384C20.818%2022.0162%2021.0925%2022.0228%2021.3094%2021.8074L25.3744%2017.768C25.6871%2017.4571%2025.6926%2016.9461%2025.3864%2016.6284C25.37%2016.6117%2025.3533%2016.5948%2025.3369%2016.5781Z'%20fill='%2332A8FF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2066_2'%3e%3crect%20width='34'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"),t})(ie(e.details?.cardMaskedNumber))}return null}return"WithdrawalFiat"===e.type&&"SBP"===e.details?.paymentMethod?"dark"===t?"data:image/svg+xml,%3csvg%20width='96'%20height='48'%20viewBox='0%200%2096%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_502_1700)'%3e%3cpath%20d='M0%2010.4485L5.81279%2020.8385V27.1761L0.0068%2037.5456L0%2010.4485Z'%20fill='%235B57A2'/%3e%3cpath%20d='M22.3186%2017.0569L27.7655%2013.7185L38.9126%2013.7081L22.3186%2023.8738V17.0569Z'%20fill='%23D90751'/%3e%3cpath%20d='M22.2882%2010.3868L22.3189%2024.1428L16.4926%2020.5628V0L22.2882%2010.3868Z'%20fill='%23FAB718'/%3e%3cpath%20d='M38.9129%2013.7084L27.7654%2013.7188L22.2882%2010.3868L16.4926%200L38.9129%2013.7084Z'%20fill='%23ED6F26'/%3e%3cpath%20d='M22.3189%2
1037.6032V30.9292L16.4926%2027.4172L16.4957%2048.0004L22.3189%2037.6032Z'%20fill='%2363B22F'/%3e%3cpath%20d='M27.752%2034.2953L5.8124%2020.8385L0%2010.4485L38.8891%2034.2816L27.752%2034.2953Z'%20fill='%231487C9'/%3e%3cpath%20d='M16.4962%2048.0004L22.3186%2037.6032L27.7518%2034.2952L38.889%2034.2816L16.4962%2048.0004Z'%20fill='%23017F36'/%3e%3cpath%20d='M0.00708008%2037.5449L16.5403%2027.4169L10.9819%2024.0065L5.81307%2027.1753L0.00708008%2037.5449Z'%20fill='%23984995'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M66.4356%2032C70.6154%2032%2073.7193%2029.4392%2073.7193%2025.557C73.7193%2021.7993%2071.4294%2019.3598%2067.6019%2019.3598C65.8356%2019.3598%2064.378%2019.9808%2063.2802%2021.0529C63.5423%2018.8374%2065.4174%2017.2195%2067.482%2017.2195C67.9585%2017.2195%2071.5456%2017.2121%2071.5456%2017.2121L73.5742%2013.3334C73.5742%2013.3334%2069.0706%2013.436%2066.9771%2013.436C62.1936%2013.5191%2058.9626%2017.8636%2058.9626%2023.1401C58.9626%2029.2879%2062.1138%2032%2066.4356%2032ZM66.461%2022.7953C68.013%2022.7953%2069.0887%2023.8142%2069.0887%2025.5566C69.0887%2027.1246%2068.1329%2028.4167%2066.461%2028.4201C64.8616%2028.4201%2063.7857%2027.2228%2063.7857%2025.5831C63.7857%2023.8404%2064.8616%2022.7953%2066.461%2022.7953ZM89.8596%2018.4668V31.5329H85.1903V22.3673H80.6943V31.5329H76.025V18.466L89.8596%2018.4668ZM52.4122%2027.9139C54.0593%2027.7939%2055.1618%2027.1584%2055.1618%2027.1584L56.8898%2030.353C55.7832%2031.0633%2053.9674%2031.5251%2052.6511%2031.5739C47.9422%2031.6604%2044.6666%2028.7972%2044.6666%2024.6258C44.6666%2020.5071%2048.1516%2017.5757%2052.6511%2017.5757C54.434%2017.5757%2055.9669%2018.0536%2057.1177%2018.9253C56.8755%2019.3541%2056.5462%2019.9482%2056.2332%2020.5166L55.732%2021.4291L55.2761%2022.2624C55.2761%2022.2624%2053.618%2021.3943%2052.3646%2021.3943C50.3205%2021.3943%2048.8319%2022.5813%2048.8319%2024.6519C48.8319%2026.7752%2050.5188%2027.97%2052.4122%2027.9139Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_502_1700'%3e%3crect%20width='96'%20height='48'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20width='96'%20height='48'%20viewBox='0%200%2096%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_529_2179)'%3e%3cpath%20d='M0%2010.4485L5.81279%2020.8385V27.1761L0.0068%2037.5456L0%2010.4485Z'%20fill='%235B57A2'/%3e%3cpath%20d='M22.3186%2017.0569L27.7655%2013.7185L38.9126%2013.7081L22.3186%2023.8738V17.0569Z'%20fill='%23D90751'/%3e%3cpath%20d='M22.2882%2010.3868L22.3189%2024.1428L16.4926%2020.5628V0L22.2882%2010.3868Z'%20fill='%23FAB718'/%3e%3cpath%20d='M38.9129%2013.7084L27.7654%2013.7188L22.2882%2010.3868L16.4926%200L38.9129%2013.7084Z'%20fill='%23ED6F26'/%3e%3cpath%20d='M22.3189%2037.6032V30.9292L16.4926%2027.4172L16.4957%2048.0004L22.3189%2037.6032Z'%20fill='%2363B22F'/%3e%3cpath%20d='M27.752%2034.2953L5.8124%2020.8385L0%2010.4485L38.8891%2034.2816L27.752%2034.2953Z'%20fill='%231487C9'/%3e%3cpath%20d='M16.4962%2048.0004L22.3186%2037.6032L27.7518%2034.2952L38.889%2034.2816L16.4962%2048.0004Z'%20fill='%23017F36'/%3e%3cpath%20d='M0.00708008%2037.5449L16.5403%2027.4169L10.9819%2024.0065L5.81307%2027.1753L0.00708008%2037.5449Z'%20fill='%23984995'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M66.4356%2032C70.6154%2032%2073.7193%2029.4392%2073.7193%2025.557C73.7193%2021.7993%2071.4294%2019.3598%2067.6019%2019.3598C65.8356%2019.3598%2064.378%2019.9808%2063.2802%2021.0529C63.5423%2018.8374%2065.4174%2017.2195%2067.482%2017.2195C67.9585%2017.2195%2071.5456%2017.2121%2071.5456%2017.2121L73.5742%2013.3334C73.5742%2013.3334%2069.0706%2013.436%2066.9771%2013.436C62.1936%2013.5191%2058.9626%2017.8636%2058.9626%2023.1401C58.9626%2029.2879%2062.1138%2032%2066.4356%2032ZM66.461%2022.7953C68.013%2022.7953%2069.0887%2023.8142%2069.0887%2025.5566C69.0887%2027.1246%2068.1329%2028.4167%2066.461%2028.4201C64.8616%2028.4201%2063.7857%2027.2228%2063.7857%2025.5831C63.7857%2023.8404%2064.8616%2022.7953%2066.461%2022.7953ZM89.8596%2018.4668V31.5329H85.1903V22.3673H80.6943V31.5329H76.025V18.466L89.8596%2018.4668ZM52.4122%2027.9139C54.0593%2027.7939%2055.1618%2027.
11584%2055.1618%2027.1584L56.8898%2030.353C55.7832%2031.0633%2053.9674%2031.5251%2052.6511%2031.5739C47.9422%2031.6604%2044.6666%2028.7972%2044.6666%2024.6258C44.6666%2020.5071%2048.1516%2017.5757%2052.6511%2017.5757C54.434%2017.5757%2055.9669%2018.0536%2057.1177%2018.9253C56.8755%2019.3541%2056.5462%2019.9482%2056.2332%2020.5166L55.732%2021.4291L55.2761%2022.2624C55.2761%2022.2624%2053.618%2021.3943%2052.3646%2021.3943C50.3205%2021.3943%2048.8319%2022.5813%2048.8319%2024.6519C48.8319%2026.7752%2050.5188%2027.97%2052.4122%2027.9139Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_529_2179'%3e%3crect%20width='96'%20height='48'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":"WithdrawalCrypto"===e.type?"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_776_59265)'%3e%3cpath%20d='M16%2032C24.8366%2032%2032%2024.8366%2032%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032Z'%20fill='white'%20fill-opacity='0.1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.922%2017.3833V17.3813C17.812%2017.3893%2017.245%2017.4233%2015.98%2017.4233C14.97%2017.4233%2014.259%2017.3933%2014.009%2017.3813V17.3843C10.121%2017.2133%207.21903%2016.5363%207.21903%2015.7263C7.21903%2014.9173%2010.121%2014.2403%2014.009%2014.0663V16.7103C14.263%2016.7283%2014.991%2016.7713%2015.997%2016.7713C17.204%2016.7713%2017.809%2016.7213%2017.922%2016.7113V14.0683C21.802%2014.2413%2024.697%2014.9183%2024.697%2015.7263C24.697%2016.5363%2021.802%2017.2113%2017.922%2017.3833V17.3833ZM17.922%2013.7933V11.4273H23.336V7.81934H8.59503V11.4273H14.009V13.7923C9.60903%2013.9943%206.30003%2014.8663%206.30003%2015.9103C6.30003%2016.9543%209.60903%2017.8253%2014.009%2018.0283V25.6103H17.922V18.0263C22.315%2017.8243%2025.616%2016.9533%2025.616%2015.9103C25.616%2014.8673%2022.315%2013.9963%2017.922%2013.7933'%20fill='%234DB09B'%20fill-opacity='0.8'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_776_59265'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":null},re=e=>{if("WithdrawalCrypto"===e.type||"DepositCrypto"===e.type)return e.details?.toAddress||"––";if("WithdrawalFiat"===e.type){if(e.details?.phone)return e.details?.phone;if(e.details?.cardMaskedNumber){const t=ie(e.details?.cardMaskedNumber);return`${t?t.toUpperCase():""} ${e.details.cardMaskedNumber.replace(/\*/g,"●").replace(/(.{4})(?=.)/g,"$1 ")}`}return"––"}},ne=(e,t)=>{let a="";return"WithdrawalCrypto"!==e.type&&"DepositTerminal"!==e.type||(a=N(e.amount-e.clientCommission,e.currency?.code||"",t)),"WithdrawalFiat"===e.type&&(a=e.details?.rate&&e.details?.fiatCurrency?M((e.amount-e.clientCommission)*e.details.rate,e.details.fiatCurrency):M(e.amount,e.currency)),"InternalTransfer"===e.type&&(a=N(e.amount,e.currency.code||"",t)),a},de=e=>"DepositCrypto"===e.type?"Crypto":"InternalTransfer"===e.type?"Wata кошелек":"DigitalGoodsPurchase"===e.type?"Цифровые товары":"",ce=e=>y({"text-hint":"Processing"===e.status||"New"===e.status,"text-positive":("DepositCrypto"===e.type||"DepositTerminal"===e.type)&&"Failed"!==e.status&&"Canceled"!==e.status&&"Processing"!==e.status&&"New"!==e.status,"text-danger":"Failed"===e.status||"Canceled"===e.status}),oe={date:e=>({title:"Дата",value:f(e.createdAt)}),method:e=>({title:"Способ",value:se(e)}),recipient:e=>({title:"Получатель",value:re(e),copyText:"WithdrawalCrypto"===e.type||"DepositCrypto"===e.type?e.details?.toAddress:null}),bank:(e,t)=>"SBP"!==e.details?.paymentMethod?null:{title:"Банк получателя",value:t.bankInfo?.name??"––"},rate:e=>({title:"Курс",value:Q(e.details?.rate)||"––"}),terminal:e=>({title:"Терминал",value:e.details?.terminalName||"––"}),terminalId:e=>({title:"ID терминала",value:e.details?.terminalId||"––",copyText:e.details?.terminalId}),operationId:e=>({title:"ID операции",value:e.id,copyText:e.id}),sender:e=>({title:"Отправитель",value:e.details?.fromAddress||"––",copyText:e.details?.fromAddress}),orderId:e=>({title:"ID заказа",value:e.details?.orderId||"––",copyText:e.details?.orderId}),hash:e=>"Completed"!==e.status?null:{title:"Hash",value:(0,Y.jsx)(_,{target:"_blank",className:"text-[var(--g-color-text-info)] text-body-1",to:`https://tronscan.org/#/transaction/${e.details?.transactionId}`,children:"Открыть в обозревателе"}),copyText:e.details?.transactionId}}
1,he=["date","operationId"],pe=(e,t)=>{switch(e){case"MAIN":return S[t.type];case"DG":return G[t.type]}},me=e=>"number"==typeof e&&Number.isFinite(e),ue=new class extends T{getTransactions(e){return this.client.get("/api/wallet/client/operations",{params:e})}getTransactionById(e){return this.client.get("/api/wallet/client/operations/{id}",{pathParams:{id:e}})}}(P),fe=({pageSize:e=20,...t})=>{const a=I({queryKey:[H.transactions,t,e],initialPageParam:0,queryFn:({pageParam:a})=>ue.getTransactions({...t,SkipCount:a,MaxResultCount:e}),getNextPageParam:(t,a,s)=>a.reduce((e,t)=>e+(t.items?.length??0),0)<(t.totalCount??0)?s+e:void 0,refetchInterval:e=>{return t=e.state.data,!!(t?.pages[0]?.items?.slice(0,5)??[]).some(e=>"Processing"===e.status||"New"===e.status)&&1e4;var t}}),s=(0,R.useMemo)(()=>a.data?.pages.flatMap(e=>e.items??[])??[],[a.data]);return{...a,items:s,totalCount:a.data?.pages[0]?.totalCount??0}},Ce=new class extends T{getAmlCases(){return this.client.get("/api/wallet/client/aml/cases")}postAmlConfirmReturn(e){return this.client.post("/api/wallet/client/aml/cases/{id}/confirm-return",void 0,{pathParams:{id:e}})}}(P),xe=()=>{const{add:e}=p();return{showMessage:(0,R.useCallback)((t,a)=>{e({theme:t,name:"toaster-message",content:(0,Y.jsx)("span",{className:"flex items-center text-body-2 mt-2",children:a}),autoHiding:u()})},[e])}},ge=({transaction:e})=>{const{isMobileView:t}=C(),{mutateAsync:a,isPending:s}=Z({mutationFn:({id:e})=>Ce.postAmlConfirmReturn(e)}),{showMessage:i}=xe(),[l,r]=(0,R.useState)("info"),d=V(),o=(e=>{switch(e?.status){case"Screening":return{title:"Проводится AML-проверка",description:null,theme:"info"};case"ManualReview":{const t="Failed"===e.returnStatus;return{title:t?"Возврат не выполнен":"Проводится AML-проверка",description:t?"Не удалось оформить возврат средств. Обратитесь в службу поддержки":"Транзакция передана на дополнительную AML-проверку",theme:t?"warning":"info"}}case"AwaitingReturnAddress":return{title:"AML-проверка не пройдена",description:`Отправленные средства не прошли автоматическую проверку безопасности, поэтому мы не можем их зачислить. Оформите возврат средств. Средства будут отправлены на адрес ${e?.fromAddress||"отправителя"}. Если вам необходимо вернуть средства на другой адрес, обратитесь в службу поддержки`,theme:"danger"};case"ReturnInProgress":return{title:"Возврат средств выполняется",description:e.fromAddress?`Мы отправляем средства на адрес: ${e.fromAddress}`:"Выполняется возврат средств",theme:"normal"};case"Returned":return{title:"Возврат средств выполнен",description:e.fromAddress?`Возврат выполнен. Средства отправлены на адрес: ${e.fromAddress}`:"Средства возвращены",theme:"normal"};case"Rejected":return{title:"Адрес не прошел AML-проверку",description:"Мы не можем вывести средства на указанный адрес, так как он не прошел AML-проверку. Укажите другой адрес для вывода средств",theme:"danger"};default:return null}})(e?.amlDetails),h=e?.amlDetails?.status;return"Released"!==h&&e?.amlDetails?{info:(0,Y.jsx)(n,{className:"border-none",theme:o?.theme,title:(0,Y.jsx)("span",{className:"text-body-3-strong",children:o?.title}),message:(0,Y.jsx)("span",{className:"text-complementary",children:o?.description}),actions:"AwaitingReturnAddress"===h&&(0,Y.jsx)("div",{className:y(t?"w-full":"ml-auto"),children:(0,Y.jsx)(c,{width:"max",size:t?"l":"m",view:"outlined-danger",onClick:()=>r("confirmReturn"),children:"Оформить возврат"})})}),confirmReturn:(0,Y.jsx)(n,{className:"border-none",theme:o?.theme,title:(0,Y.jsx)("span",{className:"text-body-3-strong",children:"Подтвердите возврат средств"}),message:(0,Y.jsx)("span",{className:"text-complementary",children:`Средства будут отправлены на адрес ${e?.amlDetails?.fromAddress||"отправителя"}`}
1),actions:"AwaitingReturnAddress"===h&&(0,Y.jsx)("div",{className:y(t?"w-full":"ml-auto"),children:(0,Y.jsx)(c,{width:"max",size:t?"l":"m",view:"outlined-danger",onClick:async()=>{try{if(!e?.amlDetails?.id)return;await a({id:e?.amlDetails.id}),await d.invalidateQueries({queryKey:[H.transaction,e.id]}),r("info")}catch(t){i("danger",k(t)||"При оформлении возврата возникла ошибка")}},loading:s,disabled:s,children:"Подтвердить возврат"})})})}[l]:null},we=({title:e,value:t,copyText:a})=>{const{handleCopy:s}=x();return(0,Y.jsxs)("div",{className:"flex flex-col ga-4 text-body-1",children:[(0,Y.jsx)("div",{className:"text-secondary",children:e}),(0,Y.jsxs)("div",{className:"flex items-center gap-4 truncate",children:[(0,Y.jsx)("span",{className:"truncate",children:t}),a&&(0,Y.jsx)(c,{onClick:()=>{s(a)},view:"flat",size:"xs",className:"self-end shrink-1",children:(0,Y.jsx)(l,{size:12,data:h})})]})]})},ye=({onClose:e})=>{const{isMobileView:t}=C();return(0,R.useEffect)(()=>{const t=t=>{"Escape"===t.key&&e?.()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e]),(0,Y.jsxs)("div",{className:"flex flex-col gap-24 md:p-24",children:[(0,Y.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Y.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,Y.jsx)("div",{className:"flex items-center w-[340px]",children:(0,Y.jsx)(s,{className:"h-24 w-full max-w-[250px]",height:24})}),(0,Y.jsx)(s,{className:"h-20 w-full max-w-[320px]",height:20})]}),!t&&(0,Y.jsx)(c,{view:"flat",onClick:e,children:(0,Y.jsx)(l,{data:o,size:16,className:"cursor-pointer text-secondary"})})]}),(0,Y.jsx)(d,{}),(0,Y.jsxs)("div",{className:" flex flex-col gap-20",children:[(0,Y.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,Y.jsx)("div",{className:"flex items-center",children:(0,Y.jsx)(s,{className:"h-24 w-full max-w-[250px]",height:24})}),(0,Y.jsx)("div",{className:"flex items-center",children:(0,Y.jsx)(s,{className:"h-24 w-full max-w-[300px]",height:24})})]}),(0,Y.jsx)(d,{}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)("div",{className:"flex items-center",children:(0,Y.jsx)("div",{className:"w-[200px] text-subheader-2",children:"Детали операции"})}),(0,Y.jsx)("div",{className:"flex items-center mt-14",children:(0,Y.jsx)(s,{className:"h-18 w-full",height:18})}),(0,Y.jsx)("div",{className:"flex items-center mt-14",children:(0,Y.jsx)(s,{className:"h-18 w-full",height:18})}),(0,Y.jsx)("div",{className:"flex items-center mt-14",children:(0,Y.jsx)(s,{className:"h-18 w-full",height:18})}),(0,Y.jsx)("div",{className:"flex items-center mt-14",children:(0,Y.jsx)(s,{className:"h-18 w-full",height:18})})]}),(0,Y.jsx)(d,{className:""}),(0,Y.jsx)("div",{className:"pt-20",children:(0,Y.jsx)(c,{onClick:e,view:"action",size:"xl",width:"max",children:"Закрыть"})})]})]})},ve=t({default:()=>je}),Le=({transaction:e})=>{if("Processing"===e.status||"New"===e.status){if("WithdrawalFiat"===e.type)return(0,Y.jsx)(n,{theme:"info",className:"border-none",message:(0,Y.jsx)("span",{className:"text-body-1 text-[var(--g-color-text-info-heavy)]",children:"Деньги списаны с нашего расчетного баланса и переданы в банк для зачисления получателю. Обычно это занимает несколько минут, но иногда банк-получатель обрабатывает зачисление дольше. Мы отслеживаем статус автоматически."})});if("WithdrawalCrypto"===e.type)return(0,Y.jsx)(n,{theme:"info",className:"border-none",message:(0,Y.jsx)("span",{className:"text-body-1 text-[var(--g-color-text-info-heavy)]",children:"Обработка может занять несколько минут."})})}return null},je=W(({transactionId:e,onClose:t})=>{const{isMobileView:a}=C(),{data:s}=j(),{activeAccount:i}=L(),{data:r,isLoading:n}=(h=e,A({queryFn:()=>ue.getTransactionById(h),queryKey:[H.transaction,h],enabled:!!h,refetchInterval:5e3}));var h;const p=(0,R.useMemo)(()=>r?"WithdrawalFiat"===r.type&&r.details?.bankNumber&&s?s.find(e=>e.bankNumber===r.details?.bankNumber):void 0:null,[s,r]),m=(0,R.useMemo)(()=>r?ne(r,r?.currency?.decimals):"––",[r]),u=(0,R.useMemo)(()=>r&&i?((e,t)=>
1q[t][e.type]??he)(r,i).map(e=>oe[e](r,{bankInfo:p})):[],[r,i,p]),f=(0,R.useMemo)(()=>r?(e=>{const t=me(e.clientCommission)?e.clientCommission:null;if(null===t)return"";if("WithdrawalFiat"===e.type){const a=me(e.rate)?v(t*e.rate,"RUB"):N(t,"USDT");return me(e.clientCommissionRate)?`${e.clientCommissionRate} % (${a})`:a}return"WithdrawalCrypto"===e.type?e.currency?M(t,e.currency):N(t,"USDT"):""})(r):"––",[r]);return!r||n?(0,Y.jsx)(ye,{onClose:t}):(0,Y.jsxs)("div",{className:"md:p-24 flex flex-col",children:[(0,Y.jsxs)("div",{className:"flex flex-col gap-12 md:pb-24",children:[(0,Y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Y.jsx)("div",{className:"text-header-1 md:text-subheader-3",children:pe(i,r)||""}),r.failedReason&&(0,Y.jsx)("div",{className:"text-body-1 text-secondary",children:r.failedReason})]}),!a&&(0,Y.jsx)(c,{view:"flat",onClick:t,children:(0,Y.jsx)(l,{data:o,size:16,className:"text-secondary"})})]}),(0,Y.jsx)("div",{children:ee(r.status)})]}),!a&&(0,Y.jsx)(d,{}),(0,Y.jsxs)("div",{className:"py-20 flex flex-col gap-20",children:[(0,Y.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,Y.jsx)("div",{className:w("text-header-2",ce(r)),children:`${"WithdrawalFiat"===r.type||"WithdrawalCrypto"===r.type||"DigitalGoodsPurchase"===r.type?"-":""}${M(r.amount,r.currency)}`}),("WithdrawalFiat"===r.type||"WithdrawalCrypto"===r.type)&&(0,Y.jsx)("div",{className:"text-secondary text-body-3",children:m})]}),(0,Y.jsx)(Le,{transaction:r}),(0,Y.jsx)(d,{}),(0,Y.jsx)(ge,{transaction:r}),(0,Y.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,Y.jsx)("div",{className:"text-subheader-2",children:"Детали операции"}),(0,Y.jsx)("div",{className:"flex flex-col gap-12",children:u.map(e=>e?(0,Y.jsx)(we,{title:e.title,value:e.value,copyText:e?.copyText},e.title):null)})]}),(0,Y.jsx)(d,{}),("WithdrawalFiat"===r.type||"WithdrawalCrypto"===r.type)&&(0,Y.jsx)(we,{title:"Комиссия",value:f})]}),(0,Y.jsx)("div",{className:"pt-20",children:(0,Y.jsx)(c,{onClick:t,view:"action",size:"xl",width:"max",children:"Закрыть"})})]})});export{K as C,S,$ as _,de as a,z as b,ne as c,te as d,ee as f,G as g,X as h,fe as i,ce as l,Q as m,ve as n,le as o,se as p,xe as r,J as s,je as t,ae as u,O as v,E as x,U as y};

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.