update www static files
This commit is contained in:
@@ -1 +1 @@
|
|||||||
import{nu as e}from"./messages-BovT1T-w.js";import{t}from"./_error-DGJYkCxd.js";import{h as n}from"./search-provider-Cx1K1ilz.js";import{n as r,t as i}from"./theme-switch-BjXQNOij.js";import{t as a}from"./general-error-DKtbS-qh.js";import{t as o}from"./not-found-error-toRsO1Fi.js";import{t as s}from"./unauthorized-error-CxmfHb-a.js";import{t as c}from"./forbidden-BEz-zjy_.js";import{t as l}from"./maintenance-error-PO6kK4Oj.js";import{n as u,r as d,t as f}from"./header-DbmR8lIc.js";var p=e();function m(){let{error:e}=t.useParams(),m={unauthorized:s,forbidden:c,"not-found":o,"internal-server-error":a,"maintenance-error":l}[e]||o;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(r,{}),(0,p.jsx)(i,{}),(0,p.jsx)(n,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component};
|
import{nu as e}from"./messages-BovT1T-w.js";import{t}from"./_error-pTC_lrQu.js";import{h as n}from"./search-provider-C8LIhlNg.js";import{n as r,t as i}from"./theme-switch-BjXQNOij.js";import{t as a}from"./general-error-DKtbS-qh.js";import{t as o}from"./not-found-error-toRsO1Fi.js";import{t as s}from"./unauthorized-error-CxmfHb-a.js";import{t as c}from"./forbidden-BEz-zjy_.js";import{t as l}from"./maintenance-error-PO6kK4Oj.js";import{n as u,r as d,t as f}from"./header-59tkUdc-.js";var p=e();function m(){let{error:e}=t.useParams(),m={unauthorized:s,forbidden:c,"not-found":o,"internal-server-error":a,"maintenance-error":l}[e]||o;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(r,{}),(0,p.jsx)(i,{}),(0,p.jsx)(n,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component};
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-Dttamloo.js","assets/messages-BovT1T-w.js","assets/search-provider-Cx1K1ilz.js","assets/dist-DG5UMlBd.js","assets/button-DJA4fnJ8.js","assets/command-BwVY_kli.js","assets/dist-BKfJQFVD.js","assets/dist-BEDXr2LC.js","assets/dist-15n4mVGL.js","assets/dropdown-menu-CUea1X0A.js","assets/dist-D21KDGR3.js","assets/dist-Cp1lAGZy.js","assets/createLucideIcon-D28ivbfF.js","assets/check-gDgbfVXu.js","assets/dist-DlZiaY1y.js","assets/dist-CGm-FpWw.js","assets/separator-CRLYw2cW.js","assets/wallet--XSRr4dT.js","assets/cookies-BNZcTwGc.js","assets/auth-store-BpIS8RMn.js","assets/dist-DvAgZMq72.js","assets/with-selector-D_dmjfol.js","assets/useRouter-D03zSgJO.js","assets/useNavigate-Dg8CkCoa.js","assets/useStore-1-QVtiLb.js","assets/circle-check-Dh8WOZF0.js","assets/input-DiRPHDd8.js","assets/font-provider-DvtNHF7l.js","assets/theme-provider-CRKya7Cx.js","assets/theme-switch-BjXQNOij.js","assets/header-DbmR8lIc.js","assets/link-CA4H4hTz.js","assets/ClientOnly-CtYi2y5F.js","assets/forbidden-BEz-zjy_.js","assets/general-error-DKtbS-qh.js","assets/maintenance-error-PO6kK4Oj.js","assets/not-found-error-toRsO1Fi.js","assets/unauthorized-error-CxmfHb-a.js"])))=>i.map(i=>d[i]);
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-Dyo3GUTa.js","assets/messages-BovT1T-w.js","assets/search-provider-C8LIhlNg.js","assets/dist-DG5UMlBd.js","assets/button-DJA4fnJ8.js","assets/command-BwVY_kli.js","assets/dist-BKfJQFVD.js","assets/dist-BEDXr2LC.js","assets/dist-15n4mVGL.js","assets/dropdown-menu-CUea1X0A.js","assets/dist-D21KDGR3.js","assets/dist-Cp1lAGZy.js","assets/createLucideIcon-D28ivbfF.js","assets/check-gDgbfVXu.js","assets/dist-DlZiaY1y.js","assets/dist-CGm-FpWw.js","assets/separator-CRLYw2cW.js","assets/wallet--XSRr4dT.js","assets/cookies-BNZcTwGc.js","assets/auth-store-ramu4Ja7.js","assets/dist-DvAgZMq72.js","assets/with-selector-D_dmjfol.js","assets/useRouter-D03zSgJO.js","assets/useNavigate-Dg8CkCoa.js","assets/useStore-1-QVtiLb.js","assets/circle-check-Dh8WOZF0.js","assets/input-DiRPHDd8.js","assets/font-provider-DvtNHF7l.js","assets/theme-provider-CRKya7Cx.js","assets/theme-switch-BjXQNOij.js","assets/header-59tkUdc-.js","assets/link-CA4H4hTz.js","assets/ClientOnly-CtYi2y5F.js","assets/forbidden-BEz-zjy_.js","assets/general-error-DKtbS-qh.js","assets/maintenance-error-PO6kK4Oj.js","assets/not-found-error-toRsO1Fi.js","assets/unauthorized-error-CxmfHb-a.js"])))=>i.map(i=>d[i]);
|
||||||
import{ou as e,ru as t}from"./messages-BovT1T-w.js";import{r as n}from"./useRouter-D03zSgJO.js";import{d as r}from"./useStore-1-QVtiLb.js";import{n as i}from"./route-BxpeArPd.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}var l=`modulepreload`,u=function(e){return`/`+e},d={},f=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=u(t,n),t in d)return;d[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:l,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},p=a(`/_authenticated/errors/$error`)({component:c(()=>f(()=>import(`./_error-Dttamloo.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])),`component`)});export{a as i,f as n,c as r,p as t};
|
import{ou as e,ru as t}from"./messages-BovT1T-w.js";import{r as n}from"./useRouter-D03zSgJO.js";import{d as r}from"./useStore-1-QVtiLb.js";import{n as i}from"./route-BxpeArPd.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}var l=`modulepreload`,u=function(e){return`/`+e},d={},f=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=u(t,n),t in d)return;d[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:l,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},p=a(`/_authenticated/errors/$error`)({component:c(()=>f(()=>import(`./_error-Dyo3GUTa.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])),`component`)});export{a as i,f as n,c as r,p as t};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{ou as e,ru as t}from"./messages-BovT1T-w.js";import{a as n,d as r,u as i}from"./auth-store-BpIS8RMn.js";import{t as a}from"./createLucideIcon-D28ivbfF.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(t(),1),c=new i({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),t=r(c,e=>e.loading),i=n.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:t,refetch:i.refetch}}export{o as n,d as t};
|
import{ou as e,ru as t}from"./messages-BovT1T-w.js";import{a as n,d as r,u as i}from"./auth-store-ramu4Ja7.js";import{t as a}from"./createLucideIcon-D28ivbfF.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(t(),1),c=new i({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),t=r(c,e=>e.loading),i=n.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:t,refetch:i.refetch}}export{o as n,d as t};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +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-CTYwzR3w.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};
|
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};
|
||||||
@@ -1 +1 @@
|
|||||||
import{Ds as e,Jl as t,Os as n,Ps as r,Ql as i,Yl as a,n as o,nu as s,ou as c,ru as l}from"./messages-BovT1T-w.js";import{i as u}from"./auth-store-BpIS8RMn.js";import{t as d}from"./link-CA4H4hTz.js";import{B as f,H as p,L as m,M as h,V as g,d as _,f as v,g as y,l as b,n as x,o as S,p as C,u as w}from"./search-provider-Cx1K1ilz.js";import{i as T,t as E}from"./button-DJA4fnJ8.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-CUea1X0A.js";import{g as P}from"./command-BwVY_kli.js";import{t as F}from"./separator-CRLYw2cW.js";var I=c(l(),1),L=s();function R(){let[i,s]=b(),[c,l]=(0,I.useState)(!1),{user:h}=u(),x=h?.username?.trim()||o(),T=x.charAt(0).toUpperCase()||`U`,P=h?.last_login_at?n({time:S(h.last_login_at)}):e();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(m,{onOpenChange:l,open:c,children:(0,L.jsx)(y,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(w,{className:`h-8 w-8`,children:[(0,L.jsx)(v,{alt:x,src:`/avatars/01.png`}),(0,L.jsx)(_,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(w,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(v,{alt:x,src:`/avatars/01.png`}),(0,L.jsx)(_,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:x}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),a()]})}),(0,L.jsxs)(D,{onClick:()=>l(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(f,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>s(!0),variant:`destructive`,children:[(0,L.jsx)(g,{className:`mr-2 size-4`}),t()]})]})]}),(0,L.jsx)(C,{onOpenChange:s,open:!!i})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=x();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(P,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??i()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(h,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(F,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t};
|
import{Ds as e,Jl as t,Os as n,Ps as r,Ql as i,Yl as a,n as o,nu as s,ou as c,ru as l}from"./messages-BovT1T-w.js";import{i as u}from"./auth-store-ramu4Ja7.js";import{t as d}from"./link-CA4H4hTz.js";import{B as f,H as p,L as m,M as h,V as g,d as _,f as v,g as y,l as b,n as x,o as S,p as C,u as w}from"./search-provider-C8LIhlNg.js";import{i as T,t as E}from"./button-DJA4fnJ8.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-CUea1X0A.js";import{g as P}from"./command-BwVY_kli.js";import{t as F}from"./separator-CRLYw2cW.js";var I=c(l(),1),L=s();function R(){let[i,s]=b(),[c,l]=(0,I.useState)(!1),{user:h}=u(),x=h?.username?.trim()||o(),T=x.charAt(0).toUpperCase()||`U`,P=h?.last_login_at?n({time:S(h.last_login_at)}):e();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(m,{onOpenChange:l,open:c,children:(0,L.jsx)(y,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(w,{className:`h-8 w-8`,children:[(0,L.jsx)(v,{alt:x,src:`/avatars/01.png`}),(0,L.jsx)(_,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(w,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(v,{alt:x,src:`/avatars/01.png`}),(0,L.jsx)(_,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:x}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),a()]})}),(0,L.jsxs)(D,{onClick:()=>l(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(f,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>s(!0),variant:`destructive`,children:[(0,L.jsx)(g,{className:`mr-2 size-4`}),t()]})]})]}),(0,L.jsx)(C,{onOpenChange:s,open:!!i})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=x();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(P,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??i()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(h,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(F,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{f as e}from"./messages-BovT1T-w.js";import{a as t}from"./auth-store-BpIS8RMn.js";import{n}from"./dist-DvAgZMq72.js";function r(e){return t.useQuery(`get`,`/admin/api/v1/settings`,e?{params:{query:{group:e}}}:void 0)}function i(){return t.useMutation(`put`,`/admin/api/v1/settings`)}function a(){return t.useMutation(`delete`,`/admin/api/v1/settings/{key}`)}function o(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function s(t,r,i=e()){await t({body:{items:r}}),n.success(i)}export{i as a,r as i,s as n,a as r,o as t};
|
import{f as e}from"./messages-BovT1T-w.js";import{a as t}from"./auth-store-ramu4Ja7.js";import{n}from"./dist-DvAgZMq72.js";function r(e){return t.useQuery(`get`,`/admin/api/v1/settings`,e?{params:{query:{group:e}}}:void 0)}function i(){return t.useMutation(`put`,`/admin/api/v1/settings`)}function a(){return t.useMutation(`delete`,`/admin/api/v1/settings/{key}`)}function o(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function s(t,r,i=e()){await t({body:{items:r}}),n.success(i)}export{i as a,r as i,s as n,a as r,o as t};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{Bt as e,Gt as t,Ht as n,It as r,Jt as i,Kt as a,Lt as o,Rc as s,Rt as c,Ut as l,Vt as u,Wt as d,nu as f,qt as p,zc as m,zt as h}from"./messages-BovT1T-w.js";import{a as g}from"./auth-store-BpIS8RMn.js";import{t as _}from"./button-DJA4fnJ8.js";import{n as v}from"./dist-DvAgZMq72.js";import{c as y,s as b}from"./zod-Cymc5bS-.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-DdHiBYMe.js";import{t as k}from"./password-input-B463LDkD.js";import{t as A}from"./page-header-BBJ9dE3-.js";var j=f(),M=b({old_password:y().min(1,i()),new_password:y().min(8,p()),confirm_password:y().min(1,a())}).refine(e=>e.new_password===e.confirm_password,{message:t(),path:[`confirm_password`]});function N(){let t=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=g.useMutation(`post`,`/admin/api/v1/auth/password`);async function a(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(d()),t.reset()}return(0,j.jsx)(O,{...t,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:t.handleSubmit(a),children:[(0,j.jsx)(C,{control:t.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:n(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:t.control,name:`new_password`,render:({field:t})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:u()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:e(),...t})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:t.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:h()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:c(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?o():r()})]})})}function P(){return(0,j.jsx)(A,{description:s(),title:m(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component};
|
import{Bt as e,Gt as t,Ht as n,It as r,Jt as i,Kt as a,Lt as o,Rc as s,Rt as c,Ut as l,Vt as u,Wt as d,nu as f,qt as p,zc as m,zt as h}from"./messages-BovT1T-w.js";import{a as g}from"./auth-store-ramu4Ja7.js";import{t as _}from"./button-DJA4fnJ8.js";import{n as v}from"./dist-DvAgZMq72.js";import{c as y,s as b}from"./zod-Cymc5bS-.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-DdHiBYMe.js";import{t as k}from"./password-input-B463LDkD.js";import{t as A}from"./page-header-BBJ9dE3-.js";var j=f(),M=b({old_password:y().min(1,i()),new_password:y().min(8,p()),confirm_password:y().min(1,a())}).refine(e=>e.new_password===e.confirm_password,{message:t(),path:[`confirm_password`]});function N(){let t=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=g.useMutation(`post`,`/admin/api/v1/auth/password`);async function a(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(d()),t.reset()}return(0,j.jsx)(O,{...t,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:t.handleSubmit(a),children:[(0,j.jsx)(C,{control:t.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:n(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:t.control,name:`new_password`,render:({field:t})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:u()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:e(),...t})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:t.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:h()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:c(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?o():r()})]})})}function P(){return(0,j.jsx)(A,{description:s(),title:m(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component};
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{ca as e,da as t,fa as n,la as r,nu as i,ou as a,pa as o,ru as s,sa as c,ua as l}from"./messages-BovT1T-w.js";import{a as u}from"./auth-store-BpIS8RMn.js";import{r as d}from"./route-BxpeArPd.js";import{i as f}from"./button-DJA4fnJ8.js";import{o as p,s as m}from"./select-DcStuzoT.js";import{_ as h,d as g,f as _,g as v,h as y,n as b,p as x,r as S,t as C,v as w,y as T}from"./data-table-CmcvKcj8.js";import{t as E}from"./page-header-BBJ9dE3-.js";import{t as D}from"./badge-BAmRBT3U.js";import{t as O}from"./use-table-url-state-C7-IMA3_.js";var k=a(s(),1),A=i();function j(){return[{accessorKey:`network`,header:({column:t})=>(0,A.jsx)(g,{column:t,title:e()}),cell:({row:e})=>e.original.network??`-`,meta:{label:e(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,A.jsx)(g,{column:e,title:c()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,A.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,A.jsx)(D,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:c(),skeleton:`short`}}]}var M=d(`/_authenticated/payment-assets/`);function N({data:e,isLoading:n,onRefresh:i}){let[a,o]=(0,k.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:u,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=O({search:M.useSearch(),navigate:M.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),g=_({data:e,columns:(0,k.useMemo)(()=>j(),[]),state:{sorting:a,columnFilters:u,globalFilter:s,pagination:f},onSortingChange:o,onColumnFiltersChange:d,onGlobalFilterChange:c,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:h(),getPaginationRowModel:w(),getSortedRowModel:T(),getFacetedRowModel:y(),getFacetedUniqueValues:v()});(0,k.useEffect)(()=>{m(g.getPageCount())},[g,m]);let E=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,A.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,A.jsx)(C,{filters:[{columnId:`network`,title:t(),options:E}],onRefresh:i,searchPlaceholder:l(),table:g}),(0,A.jsx)(S,{className:`min-w-[700px]`,emptyText:r(),loading:n,table:g}),(0,A.jsx)(b,{className:`mt-auto`,table:g})]})}function P(){let e=u.useQuery(`get`,`/admin/api/v1/supported-assets`);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m,{fixed:!0}),(0,A.jsxs)(p,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,A.jsx)(E,{description:o(),title:n()}),(0,A.jsx)(N,{data:e.data?.data?.supports??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})]})]})}var F=P;export{F as component};
|
import{ca as e,da as t,fa as n,la as r,nu as i,ou as a,pa as o,ru as s,sa as c,ua as l}from"./messages-BovT1T-w.js";import{a as u}from"./auth-store-ramu4Ja7.js";import{r as d}from"./route-BxpeArPd.js";import{i as f}from"./button-DJA4fnJ8.js";import{o as p,s as m}from"./select-KXe0_6v0.js";import{_ as h,d as g,f as _,g as v,h as y,n as b,p as x,r as S,t as C,v as w,y as T}from"./data-table-iTrs6rGi.js";import{t as E}from"./page-header-BBJ9dE3-.js";import{t as D}from"./badge-BAmRBT3U.js";import{t as O}from"./use-table-url-state-C7-IMA3_.js";var k=a(s(),1),A=i();function j(){return[{accessorKey:`network`,header:({column:t})=>(0,A.jsx)(g,{column:t,title:e()}),cell:({row:e})=>e.original.network??`-`,meta:{label:e(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,A.jsx)(g,{column:e,title:c()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,A.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,A.jsx)(D,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:c(),skeleton:`short`}}]}var M=d(`/_authenticated/payment-assets/`);function N({data:e,isLoading:n,onRefresh:i}){let[a,o]=(0,k.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:u,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=O({search:M.useSearch(),navigate:M.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),g=_({data:e,columns:(0,k.useMemo)(()=>j(),[]),state:{sorting:a,columnFilters:u,globalFilter:s,pagination:f},onSortingChange:o,onColumnFiltersChange:d,onGlobalFilterChange:c,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:h(),getPaginationRowModel:w(),getSortedRowModel:T(),getFacetedRowModel:y(),getFacetedUniqueValues:v()});(0,k.useEffect)(()=>{m(g.getPageCount())},[g,m]);let E=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,A.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,A.jsx)(C,{filters:[{columnId:`network`,title:t(),options:E}],onRefresh:i,searchPlaceholder:l(),table:g}),(0,A.jsx)(S,{className:`min-w-[700px]`,emptyText:r(),loading:n,table:g}),(0,A.jsx)(b,{className:`mt-auto`,table:g})]})}function P(){let e=u.useQuery(`get`,`/admin/api/v1/supported-assets`);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m,{fixed:!0}),(0,A.jsxs)(p,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,A.jsx)(E,{description:o(),title:n()}),(0,A.jsx)(N,{data:e.data?.data?.supports??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})]})]})}var F=P;export{F as component};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{Fc as e,Rl as t,at as n,ct as r,it as i,lt as a,nu as o,ot as s,ou as c,rt as l,ru as u,st as d}from"./messages-BovT1T-w.js";import{t as f}from"./button-DJA4fnJ8.js";import{c as p,s as m}from"./zod-Cymc5bS-.js";import{a as h,c as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./form-DdHiBYMe.js";import{t as w}from"./input-DiRPHDd8.js";import{t as T}from"./page-header-BBJ9dE3-.js";import{a as E,i as D,n as O,t as k}from"./lib-CTYwzR3w.js";var A=c(u(),1),j=o(),M=m({apiUrl:p().url(r()),forcedUsdtRate:p().min(1,d()).refine(e=>!Number.isNaN(Number(e))&&Number(e)>=0,{message:d()})});function N(){let e=D(`rate`),r=E(),a=v({resolver:g(M),defaultValues:{apiUrl:``,forcedUsdtRate:`0`}});(0,A.useEffect)(()=>{let t=e.data?.data;t&&a.reset({apiUrl:k(t,`rate.api_url`),forcedUsdtRate:k(t,`rate.forced_usdt_rate`,`0`)})},[e.data,a]);async function o(t){await O(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:t.apiUrl},{group:`rate`,key:`rate.forced_usdt_rate`,type:`string`,value:t.forcedUsdtRate}],s()),await e.refetch()}return(0,j.jsx)(C,{...a,children:(0,j.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(o),children:[(0,j.jsx)(_,{control:a.control,name:`apiUrl`,render:({field:e})=>(0,j.jsxs)(h,{children:[(0,j.jsx)(b,{children:n()}),(0,j.jsx)(y,{children:(0,j.jsx)(w,{...e})}),(0,j.jsx)(S,{})]})}),(0,j.jsx)(_,{control:a.control,name:`forcedUsdtRate`,render:({field:e})=>(0,j.jsxs)(h,{children:[(0,j.jsx)(b,{children:i()}),(0,j.jsx)(y,{children:(0,j.jsx)(w,{disabled:!0,step:`0.0001`,type:`number`,...e})}),(0,j.jsx)(x,{children:t()}),(0,j.jsx)(S,{})]})}),(0,j.jsx)(`div`,{className:`flex gap-2`,children:(0,j.jsx)(f,{disabled:r.isPending||e.isLoading,type:`submit`,children:l()})})]})})}function P(){return(0,j.jsx)(T,{description:a(),title:e(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component};
|
import{Fc as e,Rl as t,at as n,ct as r,it as i,lt as a,nu as o,ot as s,ou as c,rt as l,ru as u,st as d}from"./messages-BovT1T-w.js";import{t as f}from"./button-DJA4fnJ8.js";import{c as p,s as m}from"./zod-Cymc5bS-.js";import{a as h,c as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./form-DdHiBYMe.js";import{t as w}from"./input-DiRPHDd8.js";import{t as T}from"./page-header-BBJ9dE3-.js";import{a as E,i as D,n as O,t as k}from"./lib-CCbQO2oA.js";var A=c(u(),1),j=o(),M=m({apiUrl:p().url(r()),forcedUsdtRate:p().min(1,d()).refine(e=>!Number.isNaN(Number(e))&&Number(e)>=0,{message:d()})});function N(){let e=D(`rate`),r=E(),a=v({resolver:g(M),defaultValues:{apiUrl:``,forcedUsdtRate:`0`}});(0,A.useEffect)(()=>{let t=e.data?.data;t&&a.reset({apiUrl:k(t,`rate.api_url`),forcedUsdtRate:k(t,`rate.forced_usdt_rate`,`0`)})},[e.data,a]);async function o(t){await O(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:t.apiUrl},{group:`rate`,key:`rate.forced_usdt_rate`,type:`string`,value:t.forcedUsdtRate}],s()),await e.refetch()}return(0,j.jsx)(C,{...a,children:(0,j.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(o),children:[(0,j.jsx)(_,{control:a.control,name:`apiUrl`,render:({field:e})=>(0,j.jsxs)(h,{children:[(0,j.jsx)(b,{children:n()}),(0,j.jsx)(y,{children:(0,j.jsx)(w,{...e})}),(0,j.jsx)(S,{})]})}),(0,j.jsx)(_,{control:a.control,name:`forcedUsdtRate`,render:({field:e})=>(0,j.jsxs)(h,{children:[(0,j.jsx)(b,{children:i()}),(0,j.jsx)(y,{children:(0,j.jsx)(w,{disabled:!0,step:`0.0001`,type:`number`,...e})}),(0,j.jsx)(x,{children:t()}),(0,j.jsx)(S,{})]})}),(0,j.jsx)(`div`,{className:`flex gap-2`,children:(0,j.jsx)(f,{disabled:r.isPending||e.isLoading,type:`submit`,children:l()})})]})})}function P(){return(0,j.jsx)(T,{description:a(),title:e(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component};
|
||||||
@@ -1 +1 @@
|
|||||||
import{Bc as e,Hc as t,Vc as n,nu as r}from"./messages-BovT1T-w.js";import{n as i}from"./Match-B8-zI9ZJ.js";import{H as a}from"./search-provider-Cx1K1ilz.js";import{o,s}from"./select-DcStuzoT.js";import{t as c}from"./separator-CRLYw2cW.js";import{t as l}from"./page-header-BBJ9dE3-.js";import{t as u}from"./sidebar-nav-DgezD6QJ.js";var d=r();function f(){let r=[{title:e(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(o,{fixed:!0,children:[(0,d.jsx)(l,{description:n(),title:t()}),(0,d.jsx)(c,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:r})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component};
|
import{Bc as e,Hc as t,Vc as n,nu as r}from"./messages-BovT1T-w.js";import{n as i}from"./Match-B8-zI9ZJ.js";import{H as a}from"./search-provider-C8LIhlNg.js";import{o,s}from"./select-KXe0_6v0.js";import{t as c}from"./separator-CRLYw2cW.js";import{t as l}from"./page-header-BBJ9dE3-.js";import{t as u}from"./sidebar-nav-BS8UfIV-.js";var d=r();function f(){let r=[{title:e(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(o,{fixed:!0,children:[(0,d.jsx)(l,{description:n(),title:t()}),(0,d.jsx)(c,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:r})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{Fc as e,Ft as t,Ic as n,Lc as r,Pc as i,Pt as a,nu as o}from"./messages-BovT1T-w.js";import{n as s}from"./Match-B8-zI9ZJ.js";import{B as c,W as l}from"./search-provider-Cx1K1ilz.js";import{o as u,s as d}from"./select-DcStuzoT.js";import{t as f}from"./separator-CRLYw2cW.js";import{t as p}from"./createLucideIcon-D28ivbfF.js";import{t as m}from"./page-header-BBJ9dE3-.js";import{t as h}from"./sidebar-nav-DgezD6QJ.js";var g=p(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),_=p(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),v=o(),y=[{title:r(),href:`/settings`,icon:(0,v.jsx)(c,{size:18})},{title:n(),href:`/settings/telegram`,icon:(0,v.jsx)(g,{size:18})},{title:e(),href:`/settings/rate`,icon:(0,v.jsx)(_,{size:18})},{title:i(),href:`/settings/epay`,icon:(0,v.jsx)(l,{size:18})}];function b(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d,{}),(0,v.jsxs)(u,{fixed:!0,children:[(0,v.jsx)(m,{description:a(),title:t()}),(0,v.jsx)(f,{className:`my-4 lg:my-6`}),(0,v.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,v.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,v.jsx)(h,{items:y})}),(0,v.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,v.jsx)(s,{})})]})]})]})}var x=b;export{x as component};
|
import{Fc as e,Ft as t,Ic as n,Lc as r,Pc as i,Pt as a,nu as o}from"./messages-BovT1T-w.js";import{n as s}from"./Match-B8-zI9ZJ.js";import{B as c,W as l}from"./search-provider-C8LIhlNg.js";import{o as u,s as d}from"./select-KXe0_6v0.js";import{t as f}from"./separator-CRLYw2cW.js";import{t as p}from"./createLucideIcon-D28ivbfF.js";import{t as m}from"./page-header-BBJ9dE3-.js";import{t as h}from"./sidebar-nav-BS8UfIV-.js";var g=p(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),_=p(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),v=o(),y=[{title:r(),href:`/settings`,icon:(0,v.jsx)(c,{size:18})},{title:n(),href:`/settings/telegram`,icon:(0,v.jsx)(g,{size:18})},{title:e(),href:`/settings/rate`,icon:(0,v.jsx)(_,{size:18})},{title:i(),href:`/settings/epay`,icon:(0,v.jsx)(l,{size:18})}];function b(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d,{}),(0,v.jsxs)(u,{fixed:!0,children:[(0,v.jsx)(m,{description:a(),title:t()}),(0,v.jsx)(f,{className:`my-4 lg:my-6`}),(0,v.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,v.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,v.jsx)(h,{items:y})}),(0,v.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,v.jsx)(s,{})})]})]})]})}var x=b;export{x as component};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{Al as e,As as t,Bc as n,Cl as r,Dl as i,El as a,Fc as o,Fl as s,Gc as c,Gl as l,Hc as u,Ic as d,Il as f,Jc as p,Jl as m,Kc as h,Lc as g,Ml as _,Ms as v,Nl as ee,Ns as y,Ol as b,Pc as x,Pl as S,Sl as C,Tl as te,Uc as w,Ul as ne,Wc as re,Wl as ie,Xc as ae,Xl as oe,Yc as se,Zc as ce,Zl as le,bl as ue,jl as de,js as fe,kl as pe,ks as me,nu as he,ou as ge,qc as _e,ql as ve,ru as ye,t as be,wl as xe,xl as Se}from"./messages-BovT1T-w.js";import{a as Ce,c as we,l as Te,n as Ee}from"./auth-store-BpIS8RMn.js";import{t as De}from"./useRouter-D03zSgJO.js";import{g as Oe,t as ke}from"./useStore-1-QVtiLb.js";import{n as Ae}from"./with-selector-D_dmjfol.js";import{t as je}from"./useNavigate-Dg8CkCoa.js";import{t as T}from"./dist-15n4mVGL.js";import{d as E,i as D,l as Me,r as Ne,s as O,t as k}from"./button-DJA4fnJ8.js";import{a as Pe,i as Fe,o as Ie,r as Le,s as Re,t as ze}from"./wallet--XSRr4dT.js";import{i as A,o as Be,r as j}from"./dist-DG5UMlBd.js";import{t as M}from"./dist-Cp1lAGZy.js";import{r as Ve,t as N}from"./dist-BEDXr2LC.js";import{d as He,f as Ue,u as We}from"./dropdown-menu-CUea1X0A.js";import{C as Ge,E as Ke,S as qe,T as Je,_ as Ye,a as Xe,b as Ze,c as Qe,h as $e,i as et,n as tt,o as P,r as nt,s as rt,v as it,w as at,x as ot,y as st}from"./command-BwVY_kli.js";import{n as ct,r as F}from"./dist-DlZiaY1y.js";import"./separator-CRLYw2cW.js";import{r as lt,t as ut}from"./cookies-BNZcTwGc.js";import{n as dt,r as ft}from"./font-provider-DvtNHF7l.js";import{n as I}from"./theme-provider-CRKya7Cx.js";import{t as L}from"./createLucideIcon-D28ivbfF.js";import{t as pt}from"./circle-check-Dh8WOZF0.js";import"./input-DiRPHDd8.js";var R=ge(ye(),1);function mt(e){let t=De(),n=(0,R.useRef)(void 0);return ke(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Oe(n.current,i);return n.current=e,e}return i})}var z=he(),ht=`AlertDialog`,[gt,_t]=Be(ht,[Ke]),B=Ke(),vt=e=>{let{__scopeAlertDialog:t,...n}=e,r=B(t);return(0,z.jsx)(qe,{...r,...n,modal:!0})};vt.displayName=ht;var yt=`AlertDialogTrigger`,bt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(at,{...i,...r,ref:t})});bt.displayName=yt;var xt=`AlertDialogPortal`,St=e=>{let{__scopeAlertDialog:t,...n}=e,r=B(t);return(0,z.jsx)(ot,{...r,...n})};St.displayName=xt;var Ct=`AlertDialogOverlay`,wt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ze,{...i,...r,ref:t})});wt.displayName=Ct;var V=`AlertDialogContent`,[Tt,Et]=gt(V),Dt=Me(`AlertDialogContent`),Ot=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=B(n),o=R.useRef(null),s=E(t,o),c=R.useRef(null);return(0,z.jsx)(Je,{contentName:V,titleName:kt,docsSlug:`alert-dialog`,children:(0,z.jsx)(Tt,{scope:n,cancelRef:c,children:(0,z.jsxs)(it,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:A(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,z.jsx)(Dt,{children:r}),(0,z.jsx)(Lt,{contentRef:o})]})})})});Ot.displayName=V;var kt=`AlertDialogTitle`,At=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ge,{...i,...r,ref:t})});At.displayName=kt;var jt=`AlertDialogDescription`,Mt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(st,{...i,...r,ref:t})});Mt.displayName=jt;var Nt=`AlertDialogAction`,Pt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ye,{...i,...r,ref:t})});Pt.displayName=Nt;var Ft=`AlertDialogCancel`,It=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Et(Ft,n),a=B(n),o=E(t,i);return(0,z.jsx)(Ye,{...a,...r,ref:o})});It.displayName=Ft;var Lt=({contentRef:e})=>{let t=`\`${V}\` requires a description for the component to be accessible for screen reader users.
|
import{Al as e,As as t,Bc as n,Cl as r,Dl as i,El as a,Fc as o,Fl as s,Gc as c,Gl as l,Hc as u,Ic as d,Il as f,Jc as p,Jl as m,Kc as h,Lc as g,Ml as _,Ms as v,Nl as ee,Ns as y,Ol as b,Pc as x,Pl as S,Sl as C,Tl as te,Uc as w,Ul as ne,Wc as re,Wl as ie,Xc as ae,Xl as oe,Yc as se,Zc as ce,Zl as le,bl as ue,jl as de,js as fe,kl as pe,ks as me,nu as he,ou as ge,qc as _e,ql as ve,ru as ye,t as be,wl as xe,xl as Se}from"./messages-BovT1T-w.js";import{a as Ce,c as we,l as Te,n as Ee}from"./auth-store-ramu4Ja7.js";import{t as De}from"./useRouter-D03zSgJO.js";import{g as Oe,t as ke}from"./useStore-1-QVtiLb.js";import{n as Ae}from"./with-selector-D_dmjfol.js";import{t as je}from"./useNavigate-Dg8CkCoa.js";import{t as T}from"./dist-15n4mVGL.js";import{d as E,i as D,l as Me,r as Ne,s as O,t as k}from"./button-DJA4fnJ8.js";import{a as Pe,i as Fe,o as Ie,r as Le,s as Re,t as ze}from"./wallet--XSRr4dT.js";import{i as A,o as Be,r as j}from"./dist-DG5UMlBd.js";import{t as M}from"./dist-Cp1lAGZy.js";import{r as Ve,t as N}from"./dist-BEDXr2LC.js";import{d as He,f as Ue,u as We}from"./dropdown-menu-CUea1X0A.js";import{C as Ge,E as Ke,S as qe,T as Je,_ as Ye,a as Xe,b as Ze,c as Qe,h as $e,i as et,n as tt,o as P,r as nt,s as rt,v as it,w as at,x as ot,y as st}from"./command-BwVY_kli.js";import{n as ct,r as F}from"./dist-DlZiaY1y.js";import"./separator-CRLYw2cW.js";import{r as lt,t as ut}from"./cookies-BNZcTwGc.js";import{n as dt,r as ft}from"./font-provider-DvtNHF7l.js";import{n as I}from"./theme-provider-CRKya7Cx.js";import{t as L}from"./createLucideIcon-D28ivbfF.js";import{t as pt}from"./circle-check-Dh8WOZF0.js";import"./input-DiRPHDd8.js";var R=ge(ye(),1);function mt(e){let t=De(),n=(0,R.useRef)(void 0);return ke(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Oe(n.current,i);return n.current=e,e}return i})}var z=he(),ht=`AlertDialog`,[gt,_t]=Be(ht,[Ke]),B=Ke(),vt=e=>{let{__scopeAlertDialog:t,...n}=e,r=B(t);return(0,z.jsx)(qe,{...r,...n,modal:!0})};vt.displayName=ht;var yt=`AlertDialogTrigger`,bt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(at,{...i,...r,ref:t})});bt.displayName=yt;var xt=`AlertDialogPortal`,St=e=>{let{__scopeAlertDialog:t,...n}=e,r=B(t);return(0,z.jsx)(ot,{...r,...n})};St.displayName=xt;var Ct=`AlertDialogOverlay`,wt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ze,{...i,...r,ref:t})});wt.displayName=Ct;var V=`AlertDialogContent`,[Tt,Et]=gt(V),Dt=Me(`AlertDialogContent`),Ot=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=B(n),o=R.useRef(null),s=E(t,o),c=R.useRef(null);return(0,z.jsx)(Je,{contentName:V,titleName:kt,docsSlug:`alert-dialog`,children:(0,z.jsx)(Tt,{scope:n,cancelRef:c,children:(0,z.jsxs)(it,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:A(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,z.jsx)(Dt,{children:r}),(0,z.jsx)(Lt,{contentRef:o})]})})})});Ot.displayName=V;var kt=`AlertDialogTitle`,At=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ge,{...i,...r,ref:t})});At.displayName=kt;var jt=`AlertDialogDescription`,Mt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(st,{...i,...r,ref:t})});Mt.displayName=jt;var Nt=`AlertDialogAction`,Pt=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=B(n);return(0,z.jsx)(Ye,{...i,...r,ref:t})});Pt.displayName=Nt;var Ft=`AlertDialogCancel`,It=R.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Et(Ft,n),a=B(n),o=E(t,i);return(0,z.jsx)(Ye,{...a,...r,ref:o})});It.displayName=Ft;var Lt=({contentRef:e})=>{let t=`\`${V}\` requires a description for the component to be accessible for screen reader users.
|
||||||
|
|
||||||
You can add a description to the \`${V}\` by passing a \`${jt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
You can add a description to the \`${V}\` by passing a \`${jt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
||||||
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{At as e,Ct as t,Dt as n,Et as r,Lc as i,Mt as a,Nt as o,Ot as s,St as c,Tt as l,bt as u,jt as d,kt as f,nu as p,ou as m,ru as h,wt as g,xt as _,yt as v}from"./messages-BovT1T-w.js";import{t as y}from"./button-DJA4fnJ8.js";import{n as b}from"./dist-DvAgZMq72.js";import{c as x,o as S,s as C}from"./zod-Cymc5bS-.js";import{a as w,c as T,i as E,l as D,n as O,o as k,s as A,t as j}from"./form-DdHiBYMe.js";import{t as M}from"./input-DiRPHDd8.js";import{t as N}from"./page-header-BBJ9dE3-.js";import{t as P}from"./textarea-D_TrrVtD.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-CTYwzR3w.js";var B=m(h(),1),V=p(),H=C({checkoutName:x().min(1,a()),logoUrl:x().url(d()).or(S(``)),siteTitle:x().min(1,e()),successCopy:x().min(1,f()),supportUrl:x().url(s()).or(S(``))});function U(){let e=I(`brand`),i=F(),a=D({resolver:T(H),defaultValues:{checkoutName:``,logoUrl:``,siteTitle:``,successCopy:``,supportUrl:``}});(0,B.useEffect)(()=>{let t=e.data?.data;t&&a.reset({checkoutName:z(t,`brand.checkout_name`),logoUrl:z(t,`brand.logo_url`),siteTitle:z(t,`brand.site_title`),successCopy:z(t,`brand.success_copy`),supportUrl:z(t,`brand.support_url`)})},[e.data,a]);let o=R();async function s(){for(let e of[`brand.checkout_name`,`brand.logo_url`,`brand.site_title`,`brand.success_copy`,`brand.support_url`])await o.mutateAsync({params:{path:{key:e}}});b.success(n()),await e.refetch()}async function d(t){await L(i.mutateAsync,[{group:`brand`,key:`brand.checkout_name`,type:`string`,value:t.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:t.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:t.siteTitle},{group:`brand`,key:`brand.success_copy`,type:`string`,value:t.successCopy},{group:`brand`,key:`brand.support_url`,type:`string`,value:t.supportUrl}],r()),await e.refetch()}return(0,V.jsx)(j,{...a,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(d),children:[(0,V.jsx)(E,{control:a.control,name:`checkoutName`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:l()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`logoUrl`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:g()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`siteTitle`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:t()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`successCopy`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:c()}),(0,V.jsx)(O,{children:(0,V.jsx)(P,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`supportUrl`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:_()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(y,{disabled:i.isPending||e.isLoading,type:`submit`,children:u()}),(0,V.jsx)(y,{disabled:o.isPending,onClick:s,type:`button`,variant:`outline`,children:v()})]})]})})}function W(){return(0,V.jsx)(N,{description:o(),title:i(),variant:`section`,children:(0,V.jsx)(U,{})})}var G=W;export{G as component};
|
import{At as e,Ct as t,Dt as n,Et as r,Lc as i,Mt as a,Nt as o,Ot as s,St as c,Tt as l,bt as u,jt as d,kt as f,nu as p,ou as m,ru as h,wt as g,xt as _,yt as v}from"./messages-BovT1T-w.js";import{t as y}from"./button-DJA4fnJ8.js";import{n as b}from"./dist-DvAgZMq72.js";import{c as x,o as S,s as C}from"./zod-Cymc5bS-.js";import{a as w,c as T,i as E,l as D,n as O,o as k,s as A,t as j}from"./form-DdHiBYMe.js";import{t as M}from"./input-DiRPHDd8.js";import{t as N}from"./page-header-BBJ9dE3-.js";import{t as P}from"./textarea-D_TrrVtD.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-CCbQO2oA.js";var B=m(h(),1),V=p(),H=C({checkoutName:x().min(1,a()),logoUrl:x().url(d()).or(S(``)),siteTitle:x().min(1,e()),successCopy:x().min(1,f()),supportUrl:x().url(s()).or(S(``))});function U(){let e=I(`brand`),i=F(),a=D({resolver:T(H),defaultValues:{checkoutName:``,logoUrl:``,siteTitle:``,successCopy:``,supportUrl:``}});(0,B.useEffect)(()=>{let t=e.data?.data;t&&a.reset({checkoutName:z(t,`brand.checkout_name`),logoUrl:z(t,`brand.logo_url`),siteTitle:z(t,`brand.site_title`),successCopy:z(t,`brand.success_copy`),supportUrl:z(t,`brand.support_url`)})},[e.data,a]);let o=R();async function s(){for(let e of[`brand.checkout_name`,`brand.logo_url`,`brand.site_title`,`brand.success_copy`,`brand.support_url`])await o.mutateAsync({params:{path:{key:e}}});b.success(n()),await e.refetch()}async function d(t){await L(i.mutateAsync,[{group:`brand`,key:`brand.checkout_name`,type:`string`,value:t.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:t.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:t.siteTitle},{group:`brand`,key:`brand.success_copy`,type:`string`,value:t.successCopy},{group:`brand`,key:`brand.support_url`,type:`string`,value:t.supportUrl}],r()),await e.refetch()}return(0,V.jsx)(j,{...a,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(d),children:[(0,V.jsx)(E,{control:a.control,name:`checkoutName`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:l()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`logoUrl`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:g()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`siteTitle`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:t()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`successCopy`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:c()}),(0,V.jsx)(O,{children:(0,V.jsx)(P,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsx)(E,{control:a.control,name:`supportUrl`,render:({field:e})=>(0,V.jsxs)(w,{children:[(0,V.jsx)(k,{children:_()}),(0,V.jsx)(O,{children:(0,V.jsx)(M,{...e})}),(0,V.jsx)(A,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(y,{disabled:i.isPending||e.isLoading,type:`submit`,children:u()}),(0,V.jsx)(y,{disabled:o.isPending,onClick:s,type:`button`,variant:`outline`,children:v()})]})]})})}function W(){return(0,V.jsx)(N,{description:o(),title:i(),variant:`section`,children:(0,V.jsx)(U,{})})}var G=W;export{G as component};
|
||||||
@@ -1 +1 @@
|
|||||||
import{nu as e,p as t}from"./messages-BovT1T-w.js";import{t as n}from"./link-CA4H4hTz.js";import{t as r}from"./useNavigate-Dg8CkCoa.js";import{t as i}from"./useRouterState-DV1cSG1v.js";import{r as a}from"./search-provider-Cx1K1ilz.js";import{i as o,n as s}from"./button-DJA4fnJ8.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-DcStuzoT.js";var p=e();function m({className:e,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:t()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,e),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t};
|
import{nu as e,p as t}from"./messages-BovT1T-w.js";import{t as n}from"./link-CA4H4hTz.js";import{t as r}from"./useNavigate-Dg8CkCoa.js";import{t as i}from"./useRouterState-DV1cSG1v.js";import{r as a}from"./search-provider-C8LIhlNg.js";import{i as o,n as s}from"./button-DJA4fnJ8.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-KXe0_6v0.js";var p=e();function m({className:e,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:t()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,e),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{$s as e,Qs as t,Zs as n,ac as r,ec as i,ic as a,nc as o,nu as s,ou as c,rc as l,ru as u,tc as d}from"./messages-BovT1T-w.js";import{a as f,r as p}from"./auth-store-BpIS8RMn.js";import{t as m}from"./useSearch-B5ZWp8fU.js";import{t as h}from"./useNavigate-Dg8CkCoa.js";import{i as g,t as _}from"./button-DJA4fnJ8.js";import{t as v}from"./createLucideIcon-D28ivbfF.js";import{t as y}from"./loader-circle-fg8-aSyl.js";import{n as b}from"./dist-DvAgZMq72.js";import{c as x,s as S}from"./zod-Cymc5bS-.js";import{n as C}from"./auth-animation-context-zwGs7ZAM.js";import{a as w,c as T,i as E,l as D,n as O,o as k,s as A,t as j}from"./form-DdHiBYMe.js";import{t as M}from"./input-DiRPHDd8.js";import{t as N}from"./password-input-B463LDkD.js";var P=v(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),F=c(u(),1),I=s(),L=S({username:x().min(1,e()),password:x().min(1,t())});function R({className:e,redirectTo:t,...r}){let a=h(),{setIsTyping:s,setPasswordLength:c,setShowPassword:l}=C(),u=f.useMutation(`post`,`/admin/api/v1/auth/login`),m=D({resolver:T(L),defaultValues:{username:``,password:``}});(0,F.useEffect)(()=>()=>{s(!1),c(0),l(!1)},[s,c,l]);async function v(e){let n=await u.mutateAsync({body:{username:e.username,password:e.password}});n?.data?.token&&(p(n.data.token),b.success(`欢迎回来,${n.data.username??e.username}!`),a({to:t||`/dashboard`,replace:!0}))}function x(e){c(e.length)}return(0,I.jsx)(j,{...m,children:(0,I.jsxs)(`form`,{className:g(`grid gap-3`,e),onSubmit:m.handleSubmit(v),...r,children:[(0,I.jsx)(E,{control:m.control,name:`username`,render:({field:e})=>(0,I.jsxs)(w,{children:[(0,I.jsx)(k,{children:o()}),(0,I.jsx)(O,{children:(0,I.jsx)(M,{placeholder:d(),...e,onBlur:()=>{s(!1),e.onBlur()},onFocus:()=>s(!0)})}),(0,I.jsx)(A,{})]})}),(0,I.jsx)(E,{control:m.control,name:`password`,render:({field:e})=>(0,I.jsxs)(w,{children:[(0,I.jsx)(k,{children:i()}),(0,I.jsx)(O,{children:(0,I.jsx)(N,{placeholder:`********`,...e,onBlur:()=>{s(!1),e.onBlur()},onChange:t=>{x(t.target.value),e.onChange(t)},onFocus:()=>s(!0),onVisibilityChange:l})}),(0,I.jsx)(A,{})]})}),(0,I.jsxs)(_,{className:`mt-2`,disabled:u.isPending,children:[u.isPending?(0,I.jsx)(y,{className:`animate-spin`}):(0,I.jsx)(P,{}),n()]})]})})}function z(){let{redirect:e}=m({from:`/(auth)/sign-in`});return(0,I.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:r()}),(0,I.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:a()}),(0,I.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:l()})]}),(0,I.jsx)(R,{redirectTo:e})]})}var B=z;export{B as component};
|
import{$s as e,Qs as t,Zs as n,ac as r,ec as i,ic as a,nc as o,nu as s,ou as c,rc as l,ru as u,tc as d}from"./messages-BovT1T-w.js";import{a as f,r as p}from"./auth-store-ramu4Ja7.js";import{t as m}from"./useSearch-B5ZWp8fU.js";import{t as h}from"./useNavigate-Dg8CkCoa.js";import{i as g,t as _}from"./button-DJA4fnJ8.js";import{t as v}from"./createLucideIcon-D28ivbfF.js";import{t as y}from"./loader-circle-fg8-aSyl.js";import{n as b}from"./dist-DvAgZMq72.js";import{c as x,s as S}from"./zod-Cymc5bS-.js";import{n as C}from"./auth-animation-context-zwGs7ZAM.js";import{a as w,c as T,i as E,l as D,n as O,o as k,s as A,t as j}from"./form-DdHiBYMe.js";import{t as M}from"./input-DiRPHDd8.js";import{t as N}from"./password-input-B463LDkD.js";var P=v(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),F=c(u(),1),I=s(),L=S({username:x().min(1,e()),password:x().min(1,t())});function R({className:e,redirectTo:t,...r}){let a=h(),{setIsTyping:s,setPasswordLength:c,setShowPassword:l}=C(),u=f.useMutation(`post`,`/admin/api/v1/auth/login`),m=D({resolver:T(L),defaultValues:{username:``,password:``}});(0,F.useEffect)(()=>()=>{s(!1),c(0),l(!1)},[s,c,l]);async function v(e){let n=await u.mutateAsync({body:{username:e.username,password:e.password}});n?.data?.token&&(p(n.data.token),b.success(`欢迎回来,${n.data.username??e.username}!`),a({to:t||`/dashboard`,replace:!0}))}function x(e){c(e.length)}return(0,I.jsx)(j,{...m,children:(0,I.jsxs)(`form`,{className:g(`grid gap-3`,e),onSubmit:m.handleSubmit(v),...r,children:[(0,I.jsx)(E,{control:m.control,name:`username`,render:({field:e})=>(0,I.jsxs)(w,{children:[(0,I.jsx)(k,{children:o()}),(0,I.jsx)(O,{children:(0,I.jsx)(M,{placeholder:d(),...e,onBlur:()=>{s(!1),e.onBlur()},onFocus:()=>s(!0)})}),(0,I.jsx)(A,{})]})}),(0,I.jsx)(E,{control:m.control,name:`password`,render:({field:e})=>(0,I.jsxs)(w,{children:[(0,I.jsx)(k,{children:i()}),(0,I.jsx)(O,{children:(0,I.jsx)(N,{placeholder:`********`,...e,onBlur:()=>{s(!1),e.onBlur()},onChange:t=>{x(t.target.value),e.onChange(t)},onFocus:()=>s(!0),onVisibilityChange:l})}),(0,I.jsx)(A,{})]})}),(0,I.jsxs)(_,{className:`mt-2`,disabled:u.isPending,children:[u.isPending?(0,I.jsx)(y,{className:`animate-spin`}):(0,I.jsx)(P,{}),n()]})]})})}function z(){let{redirect:e}=m({from:`/(auth)/sign-in`});return(0,I.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:r()}),(0,I.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:a()}),(0,I.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:l()})]}),(0,I.jsx)(R,{redirectTo:e})]})}var B=z;export{B as component};
|
||||||
@@ -1 +1 @@
|
|||||||
import{Ic as e,_t as t,dt as n,ft as r,gt as i,ht as a,mt as o,nu as s,ou as c,pt as l,ru as u,ut as d,vt as f}from"./messages-BovT1T-w.js";import{t as p}from"./button-DJA4fnJ8.js";import{t as m}from"./switch-R6BNZUH1.js";import{a as h,c as g,s as _}from"./zod-Cymc5bS-.js";import{a as v,c as y,i as b,l as x,n as S,o as C,s as w,t as T}from"./form-DdHiBYMe.js";import{t as E}from"./input-DiRPHDd8.js";import{t as D}from"./page-header-BBJ9dE3-.js";import{a as O,i as k,n as A,t as j}from"./lib-CTYwzR3w.js";var M=c(u(),1),N=s(),P=_({botToken:g().min(1,t()),chatId:g().min(1,i()),paymentNoticeEnabled:h(),abnormalNoticeEnabled:h()});function F(){let e=k(`system`),t=O(),i=x({resolver:y(P),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,M.useEffect)(()=>{let t=e.data?.data;t&&i.reset({botToken:j(t,`system.telegram_bot_token`),chatId:j(t,`system.telegram_chat_id`),paymentNoticeEnabled:j(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:j(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,i]);async function s(n){await A(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],a()),await e.refetch()}return(0,N.jsx)(T,{...i,children:(0,N.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,N.jsx)(b,{control:i.control,name:`botToken`,render:({field:e})=>(0,N.jsxs)(v,{children:[(0,N.jsx)(C,{children:o()}),(0,N.jsx)(S,{children:(0,N.jsx)(E,{...e})}),(0,N.jsx)(w,{})]})}),(0,N.jsx)(b,{control:i.control,name:`chatId`,render:({field:e})=>(0,N.jsxs)(v,{children:[(0,N.jsx)(C,{children:l()}),(0,N.jsx)(S,{children:(0,N.jsx)(E,{...e})}),(0,N.jsx)(w,{})]})}),(0,N.jsx)(b,{control:i.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,N.jsxs)(v,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,N.jsx)(C,{children:r()}),(0,N.jsx)(S,{children:(0,N.jsx)(m,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,N.jsx)(b,{control:i.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,N.jsxs)(v,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,N.jsx)(C,{children:n()}),(0,N.jsx)(S,{children:(0,N.jsx)(m,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,N.jsx)(p,{disabled:t.isPending||e.isLoading,type:`submit`,children:d()})]})})}function I(){return(0,N.jsx)(D,{description:f(),title:e(),variant:`section`,children:(0,N.jsx)(F,{})})}var L=I;export{L as component};
|
import{Ic as e,_t as t,dt as n,ft as r,gt as i,ht as a,mt as o,nu as s,ou as c,pt as l,ru as u,ut as d,vt as f}from"./messages-BovT1T-w.js";import{t as p}from"./button-DJA4fnJ8.js";import{t as m}from"./switch-R6BNZUH1.js";import{a as h,c as g,s as _}from"./zod-Cymc5bS-.js";import{a as v,c as y,i as b,l as x,n as S,o as C,s as w,t as T}from"./form-DdHiBYMe.js";import{t as E}from"./input-DiRPHDd8.js";import{t as D}from"./page-header-BBJ9dE3-.js";import{a as O,i as k,n as A,t as j}from"./lib-CCbQO2oA.js";var M=c(u(),1),N=s(),P=_({botToken:g().min(1,t()),chatId:g().min(1,i()),paymentNoticeEnabled:h(),abnormalNoticeEnabled:h()});function F(){let e=k(`system`),t=O(),i=x({resolver:y(P),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,M.useEffect)(()=>{let t=e.data?.data;t&&i.reset({botToken:j(t,`system.telegram_bot_token`),chatId:j(t,`system.telegram_chat_id`),paymentNoticeEnabled:j(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:j(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,i]);async function s(n){await A(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],a()),await e.refetch()}return(0,N.jsx)(T,{...i,children:(0,N.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,N.jsx)(b,{control:i.control,name:`botToken`,render:({field:e})=>(0,N.jsxs)(v,{children:[(0,N.jsx)(C,{children:o()}),(0,N.jsx)(S,{children:(0,N.jsx)(E,{...e})}),(0,N.jsx)(w,{})]})}),(0,N.jsx)(b,{control:i.control,name:`chatId`,render:({field:e})=>(0,N.jsxs)(v,{children:[(0,N.jsx)(C,{children:l()}),(0,N.jsx)(S,{children:(0,N.jsx)(E,{...e})}),(0,N.jsx)(w,{})]})}),(0,N.jsx)(b,{control:i.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,N.jsxs)(v,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,N.jsx)(C,{children:r()}),(0,N.jsx)(S,{children:(0,N.jsx)(m,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,N.jsx)(b,{control:i.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,N.jsxs)(v,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,N.jsx)(C,{children:n()}),(0,N.jsx)(S,{children:(0,N.jsx)(m,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,N.jsx)(p,{disabled:t.isPending||e.isLoading,type:`submit`,children:d()})]})})}function I(){return(0,N.jsx)(D,{description:f(),title:e(),variant:`section`,children:(0,N.jsx)(F,{})})}var L=I;export{L as component};
|
||||||
+4
-4
@@ -155,7 +155,7 @@
|
|||||||
content="GMPay 收款管理后台 - 多链 USDT 支付中间件管理面板"
|
content="GMPay 收款管理后台 - 多链 USDT 支付中间件管理面板"
|
||||||
>
|
>
|
||||||
<meta name="twitter:image" content="/images/logo.png">
|
<meta name="twitter:image" content="/images/logo.png">
|
||||||
<script type="module" crossorigin src="/assets/index-CvQvpjMM.js"></script>
|
<script type="module" crossorigin src="/assets/index-DNz-9fvN.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/messages-BovT1T-w.js">
|
<link rel="modulepreload" crossorigin href="/assets/messages-BovT1T-w.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/with-selector-D_dmjfol.js">
|
<link rel="modulepreload" crossorigin href="/assets/with-selector-D_dmjfol.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/useStore-1-QVtiLb.js">
|
<link rel="modulepreload" crossorigin href="/assets/useStore-1-QVtiLb.js">
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
<link rel="modulepreload" crossorigin href="/assets/useNavigate-Dg8CkCoa.js">
|
<link rel="modulepreload" crossorigin href="/assets/useNavigate-Dg8CkCoa.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/redirect-dE0wk0WH.js">
|
<link rel="modulepreload" crossorigin href="/assets/redirect-dE0wk0WH.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/route-BxpeArPd.js">
|
<link rel="modulepreload" crossorigin href="/assets/route-BxpeArPd.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/_error-DGJYkCxd.js">
|
<link rel="modulepreload" crossorigin href="/assets/_error-pTC_lrQu.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/dist-DG5UMlBd.js">
|
<link rel="modulepreload" crossorigin href="/assets/dist-DG5UMlBd.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/dist-BEDXr2LC.js">
|
<link rel="modulepreload" crossorigin href="/assets/dist-BEDXr2LC.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/dist-BKfJQFVD.js">
|
<link rel="modulepreload" crossorigin href="/assets/dist-BKfJQFVD.js">
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
<link rel="modulepreload" crossorigin href="/assets/cookies-BNZcTwGc.js">
|
<link rel="modulepreload" crossorigin href="/assets/cookies-BNZcTwGc.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/wallet--XSRr4dT.js">
|
<link rel="modulepreload" crossorigin href="/assets/wallet--XSRr4dT.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/dist-DvAgZMq72.js">
|
<link rel="modulepreload" crossorigin href="/assets/dist-DvAgZMq72.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/auth-store-BpIS8RMn.js">
|
<link rel="modulepreload" crossorigin href="/assets/auth-store-ramu4Ja7.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/Match-B8-zI9ZJ.js">
|
<link rel="modulepreload" crossorigin href="/assets/Match-B8-zI9ZJ.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/useRouterState-DV1cSG1v.js">
|
<link rel="modulepreload" crossorigin href="/assets/useRouterState-DV1cSG1v.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/atom-DI1Bn-1s.js">
|
<link rel="modulepreload" crossorigin href="/assets/atom-DI1Bn-1s.js">
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
<link rel="modulepreload" crossorigin href="/assets/zod-Cymc5bS-.js">
|
<link rel="modulepreload" crossorigin href="/assets/zod-Cymc5bS-.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/general-error-DKtbS-qh.js">
|
<link rel="modulepreload" crossorigin href="/assets/general-error-DKtbS-qh.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/not-found-error-toRsO1Fi.js">
|
<link rel="modulepreload" crossorigin href="/assets/not-found-error-toRsO1Fi.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/router-Dohuf5K5.js">
|
<link rel="modulepreload" crossorigin href="/assets/router-SUB4Nwz5.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/Matches-LuvVcyUg.js">
|
<link rel="modulepreload" crossorigin href="/assets/Matches-LuvVcyUg.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/font-provider-DvtNHF7l.js">
|
<link rel="modulepreload" crossorigin href="/assets/font-provider-DvtNHF7l.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/theme-provider-CRKya7Cx.js">
|
<link rel="modulepreload" crossorigin href="/assets/theme-provider-CRKya7Cx.js">
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user