mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
update www static files
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{Mc as e,Nc as t,Pc as n,et as r,jc as i,nt as a,nu as o,ou as s,ru as c,tt as l}from"./messages-BovT1T-w.js";import{t as u}from"./button-DJA4fnJ8.js";import{c as d,s as f}from"./zod-Cymc5bS-.js";import{a as p,c as m,i as h,l as g,n as _,o as v,s as y,t as b}from"./form-DdHiBYMe.js";import{t as x}from"./input-DiRPHDd8.js";import{t as S}from"./page-header-BBJ9dE3-.js";import{a as C,i as w,n as T,t as E}from"./lib-CCbQO2oA.js";var D=s(c(),1),O=o(),k=f({defaultToken:d().min(1,t()),defaultCurrency:d().min(1,e()),defaultNetwork:d().min(1,i())});function A(){let n=w(`epay`),a=C(),o=g({resolver:m(k),defaultValues:{defaultToken:``,defaultCurrency:``,defaultNetwork:``}});(0,D.useEffect)(()=>{let e=n.data?.data;e&&o.reset({defaultToken:E(e,`epay.default_token`),defaultCurrency:E(e,`epay.default_currency`),defaultNetwork:E(e,`epay.default_network`)})},[n.data,o]);async function s(e){await T(a.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:e.defaultToken},{group:`epay`,key:`epay.default_currency`,type:`string`,value:e.defaultCurrency},{group:`epay`,key:`epay.default_network`,type:`string`,value:e.defaultNetwork}],l()),await n.refetch()}return(0,O.jsx)(b,{...o,children:(0,O.jsxs)(`form`,{className:`space-y-6`,onSubmit:o.handleSubmit(s),children:[(0,O.jsx)(h,{control:o.control,name:`defaultToken`,render:({field:e})=>(0,O.jsxs)(p,{children:[(0,O.jsx)(v,{children:t()}),(0,O.jsx)(_,{children:(0,O.jsx)(x,{placeholder:`usdt`,...e})}),(0,O.jsx)(y,{})]})}),(0,O.jsx)(h,{control:o.control,name:`defaultCurrency`,render:({field:t})=>(0,O.jsxs)(p,{children:[(0,O.jsx)(v,{children:e()}),(0,O.jsx)(_,{children:(0,O.jsx)(x,{placeholder:`cny`,...t})}),(0,O.jsx)(y,{})]})}),(0,O.jsx)(h,{control:o.control,name:`defaultNetwork`,render:({field:e})=>(0,O.jsxs)(p,{children:[(0,O.jsx)(v,{children:i()}),(0,O.jsx)(_,{children:(0,O.jsx)(x,{placeholder:`tron`,...e})}),(0,O.jsx)(y,{})]})}),(0,O.jsx)(u,{disabled:a.isPending||n.isLoading,type:`submit`,children:r()})]})})}function j(){return(0,O.jsx)(S,{description:a(),title:n(),variant:`section`,children:(0,O.jsx)(A,{})})}var M=j;export{M as component};
|
||||
Reference in New Issue
Block a user