mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
5acb9d266f
commit
07e8128ecd
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.b289f6bb.js";/*! *****************************************************************************
|
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.f43727df.js";/*! *****************************************************************************
|
||||||
Copyright (c) Microsoft Corporation.
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
BIN
assets/chart.3c227ebb.js.gz
Normal file
BIN
assets/chart.3c227ebb.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
27
assets/default-layout.d6865378.js
Normal file
27
assets/default-layout.d6865378.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.d6865378.js.gz
Normal file
BIN
assets/default-layout.d6865378.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/default-layout.ff7a404b.css
Normal file
1
assets/default-layout.ff7a404b.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.ff7a404b.css.gz
Normal file
BIN
assets/default-layout.ff7a404b.css.gz
Normal file
Binary file not shown.
17
assets/dep-281dbb92.b7bdc3eb.js
Normal file
17
assets/dep-281dbb92.b7bdc3eb.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import{h as P,c as l,d as h}from"./arco.f43727df.js";import{w as S,Q as w,a9 as A,aa as E,ab as L,$,E as j,ac as F,ad as x,ae as D,af as z,ag as I,ah as N}from"./index.28b8c38d.js";import{d as O,e as R,m as K}from"./index.3c6542a6.js";function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function M(e){var n=["fillOpacity","fillRule","clipRule"];return n.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function m(e,n){var t=Object.keys(e.attrs).reduce((r,a)=>(r[M(a)]=e.attrs[a],r),{});return P(e.tag,f(f({},t),n),(e.children||[]).map(r=>m(r,{})))}var T="t",G="zh-CN",U={classPrefix:T,locale:G};const k=U;function Z(){var{classPrefix:e}=k;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function B(e){var n=Z().SIZE,t=l(()=>e.value in n?n[e.value]:""),r=l(()=>e.value===void 0||e.value in n?{}:{fontSize:e.value});return{style:r,className:t}}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var Q={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"}}]},X=h({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:t}=n,r=l(()=>e.size),{className:a,style:s}=B(r),c=l(()=>["t-icon","t-icon-close",a.value]),i=l(()=>b(b({},s.value),t.style)),C=l(()=>({class:c.value,style:i.value,onClick:y=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:y})}}));return()=>m(Q,C.value)}});const Me=X;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Te(e){var n=S("icon"),t=n.globalConfig,r={};return Object.keys(e).forEach(function(a){var s;r[a]=((s=t.value)===null||s===void 0?void 0:s[a])||e[a]}),r}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Y(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var q=Y;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var d=w,H=$,J=j,g=d?d.isConcatSpreadable:void 0;function V(e){return J(e)||H(e)||!!(g&&e&&e[g])}var W=V,ee=L,ne=W;function _(e,n,t,r,a){var s=-1,c=e.length;for(t||(t=ne),a||(a=[]);++s<c;){var i=e[s];n>0&&t(i)?n>1?_(i,n-1,t,r,a):ee(a,i):r||(a[a.length]=i)}return a}var te=_,re=te;function ae(e){var n=e==null?0:e.length;return n?re(e,1):[]}var se=ae,ie=se,le=A,ce=E;function oe(e){return ce(le(e,void 0,ie),e+"")}var ue=oe;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var fe=K,ve=I;function be(e,n){return n.length<2?e:fe(e,ve(n,0,-1))}var de=be,ge=O,Oe=q,pe=de,me=R;function _e(e,n){return n=ge(n,e),e=pe(e,n),e==null||delete e[me(Oe(n))]}var Ce=_e,ye=N;function Pe(e){return ye(e)?void 0:e}var he=Pe,Se=F,we=z,Ae=Ce,Ee=O,Le=x,$e=he,je=ue,Fe=D,xe=1,De=2,ze=4,Ie=je(function(e,n){var t={};if(e==null)return t;var r=!1;n=Se(n,function(s){return s=Ee(s,e),r||(r=s.length>1),s}),Le(e,Fe(e),t),r&&(t=we(t,xe|De|ze,$e));for(var a=n.length;a--;)Ae(t,n[a]);return t}),Ge=Ie;export{Me as C,p as _,Te as a,te as b,ue as c,q as l,Ge as o,m as r,B as u};
|
BIN
assets/dep-281dbb92.b7bdc3eb.js.gz
Normal file
BIN
assets/dep-281dbb92.b7bdc3eb.js.gz
Normal file
Binary file not shown.
@ -1,17 +0,0 @@
|
|||||||
import{h as P,c as l,d as h}from"./arco.b289f6bb.js";import{d as S,a4 as w,a5 as A,a6 as E,a7 as L,a8 as $,M as j,E as x,a9 as F,aa as D,ab as z,ac as I,ad as N}from"./index.3a834e58.js";import{v as O,w as M,x as R}from"./index.9e72de03.js";function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function K(e){var n=["fillOpacity","fillRule","clipRule"];return n.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function m(e,n){var t=Object.keys(e.attrs).reduce((r,a)=>(r[K(a)]=e.attrs[a],r),{});return P(e.tag,f(f({},t),n),(e.children||[]).map(r=>m(r,{})))}var T="t",G="zh-CN",U={classPrefix:T,locale:G};const k=U;function Z(){var{classPrefix:e}=k;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function B(e){var n=Z().SIZE,t=l(()=>e.value in n?n[e.value]:""),r=l(()=>e.value===void 0||e.value in n?{}:{fontSize:e.value});return{style:r,className:t}}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var X={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"}}]},Y=h({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:t}=n,r=l(()=>e.size),{className:a,style:s}=B(r),c=l(()=>["t-icon","t-icon-close",a.value]),i=l(()=>b(b({},s.value),t.style)),C=l(()=>({class:c.value,style:i.value,onClick:y=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:y})}}));return()=>m(X,C.value)}});const Ke=Y;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Te(e){var n=S("icon"),t=n.globalConfig,r={};return Object.keys(e).forEach(function(a){var s;r[a]=((s=t.value)===null||s===void 0?void 0:s[a])||e[a]}),r}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function q(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var H=q;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var d=w,J=$,Q=j,g=d?d.isConcatSpreadable:void 0;function V(e){return Q(e)||J(e)||!!(g&&e&&e[g])}var W=V,ee=L,ne=W;function _(e,n,t,r,a){var s=-1,c=e.length;for(t||(t=ne),a||(a=[]);++s<c;){var i=e[s];n>0&&t(i)?n>1?_(i,n-1,t,r,a):ee(a,i):r||(a[a.length]=i)}return a}var te=_,re=te;function ae(e){var n=e==null?0:e.length;return n?re(e,1):[]}var se=ae,ie=se,le=A,ce=E;function oe(e){return ce(le(e,void 0,ie),e+"")}var ue=oe;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var fe=R,ve=I;function be(e,n){return n.length<2?e:fe(e,ve(n,0,-1))}var de=be,ge=O,Oe=H,pe=de,me=M;function _e(e,n){return n=ge(n,e),e=pe(e,n),e==null||delete e[me(Oe(n))]}var Ce=_e,ye=N;function Pe(e){return ye(e)?void 0:e}var he=Pe,Se=x,we=z,Ae=Ce,Ee=O,Le=F,$e=he,je=ue,xe=D,Fe=1,De=2,ze=4,Ie=je(function(e,n){var t={};if(e==null)return t;var r=!1;n=Se(n,function(s){return s=Ee(s,e),r||(r=s.length>1),s}),Le(e,xe(e),t),r&&(t=we(t,Fe|De|ze,$e));for(var a=n.length;a--;)Ae(t,n[a]);return t}),Ge=Ie;export{Ke as C,p as _,te as a,Te as b,ue as c,H as l,Ge as o,m as r,B as u};
|
|
Binary file not shown.
1
assets/dep-6deb4e3a.7bd7913d.css
Normal file
1
assets/dep-6deb4e3a.7bd7913d.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
.t-tooltip .t-popup__content{display:inline-block;border:0;z-index:5600;margin-bottom:1px;max-width:480px;word-break:break-word;box-sizing:border-box;border-radius:var(--td-radius-medium);color:var(--td-text-color-primary)}.t-tooltip--default .t-popup__content{color:var(--td-text-color-anti);background:var(--td-gray-color-13);box-shadow:inset 0 .5px 0 var(--td-gray-color-9),inset .5px 0 0 var(--td-gray-color-9),inset 0 -.5px 0 var(--td-gray-color-9),inset -.5px 0 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=left] .t-popup__arrow:before{box-shadow:inset -.5px 0 0 var(--td-gray-color-9),inset 0 .5px 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=right] .t-popup__arrow:before{box-shadow:inset .5px 0 0 var(--td-gray-color-9),inset 0 -.5px 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=top] .t-popup__arrow:before{box-shadow:inset 0 -.5px 0 var(--td-gray-color-9),inset -.5px 0 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=bottom] .t-popup__arrow:before{box-shadow:inset .5px 0 0 var(--td-gray-color-9),inset 0 .5px 0 var(--td-gray-color-9)}.t-tooltip--primary .t-popup__content{color:var(--td-brand-color);background:var(--td-brand-color-light)}.t-tooltip--success .t-popup__content{color:var(--td-success-color);background:var(--td-success-color-light)}.t-tooltip--danger .t-popup__content{color:var(--td-error-color);background:var(--td-error-color-light)}.t-tooltip--warning .t-popup__content{color:var(--td-warning-color);background:var(--td-warning-color-light)}.t-tooltip .t-popup__arrow{background:inherit;height:auto}.t-tooltip .t-popup__arrow:before{background:inherit}.t-tooltip--noshadow .t-popup__content,.t-tooltip--noshadow[data-popper-placement] .t-popup__arrow:before{box-shadow:none}
|
BIN
assets/dep-6deb4e3a.7bd7913d.css.gz
Normal file
BIN
assets/dep-6deb4e3a.7bd7913d.css.gz
Normal file
Binary file not shown.
33
assets/dep-6deb4e3a.c77b8e7e.js
Normal file
33
assets/dep-6deb4e3a.c77b8e7e.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import{y as k,_ as X,u as J,c as N,f as K,E as Z,F as q,G as Q,H as ee}from"./index.3c6542a6.js";import{f as h,o as z,bs as te,d as ae,t as ne,c as O,w as A,aI as re,bB as le,g as ue}from"./arco.f43727df.js";import{G as oe,x as ie,B as ve,y as se,t as fe,a7 as L,Z as de}from"./index.28b8c38d.js";import{o as ce}from"./dep-281dbb92.b7bdc3eb.js";import{n as be,l as he,d as ge}from"./index.c6a389a9.js";import{b as me,e as pe}from"./dep-f6f516d9.c729faf9.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var ye={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","success","danger","warning","light"].includes(e):!0}}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Se=function(){var e=h(0),t=h(0),n=function(f){e.value=f.clientX,t.value=f.clientY};return k||(z(function(){window.addEventListener("mousemove",n,{passive:!0})}),te(function(){window.removeEventListener("mousemove",n)})),{x:e,y:t}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function B(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function _(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?B(Object(t),!0).forEach(function(n){N(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}var we=ae({name:"TTooltip",props:_(_({},be),ye),setup:function(e,t){var n=h(null),s=h(null),f=ne(e),b=f.visible,m=f.modelValue,c=me(b,m,e.defaultVisible,e.onVisibleChange,"visible"),p=X(c,2),R=p[0],y=p[1],d=ue(),g=h(e.visible||e.defaultVisible),j=J(),x=ie(),V=ve(),C=Se(),P=C.x,T=h(P.value);z(function(){e.duration&&g.value&&(n.value=setTimeout(function(){y(!1,{}),clearTimeout(n.value),n.value=null},e.duration))});var E=function(u,i){n.value&&(i==null?void 0:i.trigger)!=="document"||(u&&(T.value=P.value),y(u,i))},$=O(function(){return["".concat(j.value,"-tooltip"),N({},"".concat(j.value,"-tooltip--").concat(e.theme),e.theme),e.overlayClassName]}),o=O(function(){return _(_({},(d==null?void 0:d.vnode.props)||{}),{},{placement:e.placement==="mouse"?"bottom-left":e.placement,showArrow:e.placement==="mouse"?!1:e.showArrow,overlayClassName:$.value,onVisibleChange:E,disabled:e.disabled})}),r=O(function(){if(e.placement!=="mouse"||T.value===0)return e.overlayInnerStyle;var l=function(i){return{transform:"translateX(".concat(T.value-i.getBoundingClientRect().left,"px)")}};return e.overlayInnerStyle?function(u,i){return _(_({},l(u)),oe(e.overlayInnerStyle)?e.overlayInnerStyle(u,i):e.overlayInnerStyle)}:l});A(function(){return g.value},function(){n.value&&!g.value&&(clearTimeout(n.value),n.value=null)});var v=function(){var u,i;(u=s.value)===null||u===void 0||(i=u.update)===null||i===void 0||i.call(u)};return t.expose({updatePopper:v}),function(){var l=x("content");return!l&&!e.content?V("default","triggerElement"):re(he,le(ce(o.value,["content","default"]),{ref:s,overlayInnerStyle:r.value,visible:R.value}),{default:function(){return[V("default","triggerElement")]},content:function(){return l}})}}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var tt=se(we);/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function F(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function _e(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?F(Object(t),!0).forEach(function(n){N(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function at(a,e){for(var t=_e({},a),n=0;n<e.length;n++){var s=e[n];delete t[s]}return t}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Oe=ge,xe=fe,Te="Expected a function";function Ie(a,e,t){var n=!0,s=!0;if(typeof a!="function")throw new TypeError(Te);return xe(t)&&(n="leading"in t?!!t.leading:n,s="trailing"in t?!!t.trailing:s),Oe(a,e,{leading:n,maxWait:e,trailing:s})}var Re=Ie;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var je=de;function Ve(a,e,t){for(var n=-1,s=a.length;++n<s;){var f=a[n],b=e(f);if(b!=null&&(m===void 0?b===b&&!je(b):t(b,m)))var m=b,c=f}return c}var U=Ve;function Pe(a,e){return a>e}var Ee=Pe,Ce=U,$e=Ee,Me=L;function De(a){return a&&a.length?Ce(a,Me,$e):void 0}var He=De;function Ae(a,e){return a<e}var Ne=Ae,Le=U,Be=Ne,Fe=L;function Xe(a){return a&&a.length?Le(a,Fe,Be):void 0}var ze=Xe;function Ue(a,e){for(var t,n=-1,s=a.length;++n<s;){var f=e(a[n]);f!==void 0&&(t=t===void 0?f:t+f)}return t}var Ye=Ue,Ge=Ye,We=L;function ke(a){return a&&a.length?Ge(a,We):0}var H=ke,nt=function(e,t){var n,s,f=h([]),b=h((((n=t.value.data)===null||n===void 0?void 0:n.length)||0)*(((s=t.value.scroll)===null||s===void 0?void 0:s.rowHeight)||50)),m=h(0),c=[],p=h(0),R=h(0),y=h([0,15]),d=O(function(){var o,r=t.value.scroll;return r?{bufferSize:r.bufferSize||10,isFixedRowHeight:(o=r.isFixedRowHeight)!==null&&o!==void 0?o:!1,rowHeight:r.rowHeight||47,threshold:r.threshold||100,type:r.type}:{}}),g=O(function(){var o=t.value.data;return d.value.type==="virtual"&&d.value.threshold<o.length});function j(){for(var o,r,v=(o=(r=e.value)===null||r===void 0?void 0:r.scrollTop)!==null&&o!==void 0?o:0,l=[],u=0,i=-1,S=-1,I=0,w=0,Y=t.value.data.length;w<Y;w++){var M,D=(M=c[w])!==null&&M!==void 0?M:d.value.rowHeight;if(I=I+D,I>v&&i===-1&&(i=w,i-d.value.bufferSize>0&&(u=I-D-H(l))),i===-1&&(l.push(D),l.length>d.value.bufferSize&&l.shift()),S===-1&&(I>p.value+v||w===t.value.data.length-1)&&(S=w),i!==-1&&S!==-1)break}var G=He([i-d.value.bufferSize,0]),W=ze([S+d.value.bufferSize,t.value.data.length]);return{startIndex:G,endIndex:W,translateY:u}}var x=Re(function(){var o=j(),r=o.startIndex,v=o.endIndex,l=o.translateY;y.value.join()!==[r,v].join()&&r>=0&&(b.value=l,f.value=t.value.data.slice(r,v),y.value=[r,v])},100),V=function(r){var v;if(!(!g.value||!r||d.value.isFixedRowHeight||!e.value)){var l=(v=r.ref.value)===null||v===void 0?void 0:v.getBoundingClientRect().height,u=r.data.VIRTUAL_SCROLL_INDEX;if(c[u]!==l){var i=l-c[u];c[u]=l,m.value=m.value+i}}},C=function(){!g.value||x()},P=function(r){var v=X(r,1),l=v[0].contentRect,u=16;Math.abs(l.width-R.value)>u&&(e.value.scrollTop=0,b.value=0),R.value=l.width,p.value=l.height},T=function(r){r.forEach(function(v,l){v.VIRTUAL_SCROLL_INDEX=l})},E=function(r){var v=r.index,l=r.top,u=l===void 0?0:l,i=r.behavior,S=H(c.slice(0,v))-u;e.value.scrollTo({top:S,behavior:i||"auto"})},$=function(r){if(E(r),!d.value.isFixedRowHeight)var v,l=(v=r.time)!==null&&v!==void 0?v:60,u=setTimeout(function(){E(r),clearTimeout(u)},l)};return pe(O(function(){return g.value?e.value:void 0}),P),A(function(){return[K(t.value.data),d.value,g.value,e.value]},function(){if(!(!g.value||!e.value)){var o=t.value.data;if(T(o),p.value=e.value.getBoundingClientRect().height,c.length!==t.value.data.length){var r=Array.from(c);r.length=t.value.data.length,r.fill(d.value.rowHeight||47),c=r}m.value=H(c),y.value=[0,0],x()}},{immediate:!0}),A(function(){return p.value},function(){x()}),{visibleData:f,translateY:b,scrollHeight:m,isVirtualScroll:g,handleScroll:C,handleRowMounted:V,scrollToElement:$}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function rt(a){return Z(a)||q(a)||Q(a)||ee()}export{tt as T,rt as _,at as o,Re as t,nt as u};
|
BIN
assets/dep-6deb4e3a.c77b8e7e.js.gz
Normal file
BIN
assets/dep-6deb4e3a.c77b8e7e.js.gz
Normal file
Binary file not shown.
1
assets/dep-f6f516d9.2c2d0d48.css
Normal file
1
assets/dep-f6f516d9.2c2d0d48.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/dep-f6f516d9.2c2d0d48.css.gz
Normal file
BIN
assets/dep-f6f516d9.2c2d0d48.css.gz
Normal file
Binary file not shown.
69
assets/dep-f6f516d9.c729faf9.js
Normal file
69
assets/dep-f6f516d9.c729faf9.js
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
import{u as B,i as Te,g as Be,a as ce,_ as we,l as Ee,b as $e,c as _,d as Ae,e as Le}from"./index.3c6542a6.js";import{d as K,c as h,f as M,g as Oe,w as E,b as Ce,i as _e,o as Ie,t as Pe,n as ee,aI as C,bn as De,bo as Ke,bB as Re}from"./arco.f43727df.js";import{u as ne,r as te,_ as ae,a as ze}from"./dep-281dbb92.b7bdc3eb.js";import{s as He,t as Se,w as We,x as xe,y as Me,z as ke,A as Ue}from"./index.28b8c38d.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Ge(e,n){if(e==null)return{};var a={},t=Object.keys(e),r,m;for(m=0;m<t.length;m++)r=t[m],!(n.indexOf(r)>=0)&&(a[r]=e[r]);return a}function Je(e,n){if(e==null)return{};var a=Ge(e,n),t,r;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);for(r=0;r<m.length;r++)t=m[r],!(n.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Xe(e){return e===void 0}var Ze=Xe;function se(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function ve(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?se(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var qe={tag:"svg",attrs:{fill:"none",viewBox:"0 0 26 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4 1.59l6.17 6.17 7.07 7.07L23.41 21 22 22.41l-2.97-2.96A12.5 12.5 0 011.08 12.3L1 12l.1-.3c.77-2.4 2.24-4.5 4.18-6.02L2.59 3 4 1.59zM6.7 7.1A10.53 10.53 0 003.1 12a10.5 10.5 0 0014.45 5.97l-1.8-1.8a5 5 0 01-6.93-6.93L6.7 7.11zm3.6 3.6a3 3 0 004 4l-4-4zM13 5c-.58 0-1.14.05-1.7.14l-.98.16L10 3.32l.99-.16A12.5 12.5 0 0124.9 11.7l.1.31-.1.3c-.41 1.3-1.03 2.5-1.82 3.58l-.59.8-1.61-1.18.59-.8c.6-.82 1.08-1.73 1.42-2.7A10.5 10.5 0 0013 5zm.51 1.93l.96.29a5 5 0 013.31 3.31l.3.96-1.92.58-.3-.95a3 3 0 00-1.98-1.99l-.95-.3.58-1.9z"}}]},Qe=K({name:"BrowseOffIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-browse-off",r.value]),i=h(()=>ve(ve({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(qe,v.value)}});const Ye=Qe;function fe(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function de(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?fe(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fe(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var en={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"g",attrs:{clipPath:"url(#clip0_8726_7319)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.1 12a10.5 10.5 0 0019.8 0 10.5 10.5 0 00-19.8 0zm-2.01-.3a12.5 12.5 0 0123.82 0l.1.3-.1.3a12.5 12.5 0 01-23.82 0l-.1-.3.1-.3zM12 9a3 3 0 100 6 3 3 0 000-6zm-5 3a5 5 0 1110 0 5 5 0 01-10 0z"}}]}]},nn=K({name:"BrowseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-browse",r.value]),i=h(()=>de(de({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(en,v.value)}});const tn=nn;function me(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function pe(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?me(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var an={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"}}]},rn=K({name:"CloseCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-close-circle-filled",r.value]),i=h(()=>pe(pe({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(an,v.value)}});const ln=rn;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function on(e,n,a,t){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",m=Oe(),s=m.emit,i=m.vnode,v=M(),p=i.props||{},d=Object.prototype.hasOwnProperty.call(p,"modelValue")||Object.prototype.hasOwnProperty.call(p,"model-value"),l=Object.prototype.hasOwnProperty.call(p,r)||Object.prototype.hasOwnProperty.call(p,He(r));return d?[n,function(c){s("update:modelValue",c);for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}]:l?[e,function(c){s("update:".concat(r),c);for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}]:(v.value=a,[v,function(c){v.value=c;for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}])}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var k=new Set,un={warn:function(n,a){console.warn("TDesign ".concat(n," Warn: ").concat(a))},warnOnce:function(n,a){var t="TDesign ".concat(n," Warn: ").concat(a);k.has(t)||(k.add(t),console.warn(t))},error:function(n,a){console.error("TDesign ".concat(n," Error: ").concat(a))},errorOnce:function(n,a){var t="TDesign ".concat(n," Error: ").concat(a);k.has(t)||(k.add(t),console.error(t))},info:function(n,a){console.info("TDesign ".concat(n," Info: ").concat(a))}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function cn(e,n){if(!(typeof window>"u")){var a=window&&window.ResizeObserver;if(!!a){var t=null,r=function(){!t||!e.value||(t.unobserve(e.value),t.disconnect(),t=null)},m=function(i){t=new ResizeObserver(n),t.observe(i)};e&&E(e,function(s){r(),s&&m(s)},{immediate:!0,flush:"post"}),Ce(function(){r()})}}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var sn={align:{type:String,default:"left",validator:function(n){return n?["left","center","right"].includes(n):!0}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(n){return n?["small","medium","large"].includes(n):!0}},status:{type:String,default:void 0,validator:function(n){return n?["default","success","warning","error"].includes(n):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(n){return n?["text","number","url","tel","password","search","submit","hidden"].includes(n):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function je(e){var n=Oe(),a=h(function(){return n.props.disabled}),t=_e("formDisabled",Object.create(null)),r=t.disabled;return h(function(){return a.value||(r==null?void 0:r.value)||(e==null?void 0:e.value)||!1})}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Fn=function(){var n=B();return h(function(){var a="".concat(n.value,"-form"),t="".concat(n.value,"-input"),r="".concat(n.value,"-is");return{form:a,label:"".concat(a,"__label"),labelTop:"".concat(a,"__label--top"),inline:"".concat(a,"-inline"),formItem:"".concat(a,"__item"),formItemWithHelp:"".concat(a,"__item-with-help"),formItemWithExtra:"".concat(a,"__item-with-extra"),controls:"".concat(a,"__controls"),controlsContent:"".concat(a,"__controls-content"),status:"".concat(a,"__status"),extra:"".concat(t,"__extra"),help:"".concat(t,"__help"),success:"".concat(r,"-success"),successBorder:"".concat(a,"--success-border"),error:"".concat(r,"-error"),warning:"".concat(r,"-warning")}})},vn=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(vn||{}),Tn=Symbol("FormProvide"),fn=Symbol("FormItemProvide");/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function dn(e){var n=function(i){var v=e.value,p=v.allowInputOverMax,d=v.maxlength,l=v.maxcharacter;if(!(d||l)||p||!i)return i;if(d)return Ee(i,d);if(l){var c=ce(i,l);if(Se(c))return c.characters}},a=h(function(){var s=e.value,i=s.maxlength,v=s.maxcharacter,p=s.value;if(Te(p))return String(p);if(i&&v&&un.warn("Input","Pick one of maxlength and maxcharacter please."),i){var d=p!=null&&p.length?Be(p):0;return"".concat(d,"/").concat(i)}return v?"".concat(ce(p||""),"/").concat(v):""}),t=h(function(){if(a.value){var s=a.value.split("/"),i=we(s,2),v=i[0],p=i[1];return Number(v)>Number(p)?"error":""}return""}),r=h(function(){var s=e.value.status;return s||t.value}),m=function(){var i,v;(i=(v=e.value).onValidate)===null||i===void 0||i.call(v,{error:t.value?"exceed-maximum":void 0})};return E(t,m),Ie(function(){t.value&&m()}),{tStatus:r,limitNumber:a,getValueByLimitNumber:n}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function U(e,n){return n==="number"?e||e===0?Number(e):void 0:e}function mn(e,n){var a=Pe(e),t=a.value,r=a.modelValue,m=M(),s=M(!1),i=M(),v=M(null),p=M(),d=je(),l=on(t,r,e.defaultValue,e.onChange),c=we(l,2),f=c[0],w=c[1],b=M(!1),V=M(!1),S=M(e.type),I=M(null),P=h(function(){return{value:[void 0,null].includes(f.value)?void 0:String(f.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}}),$=dn(P),F=$.limitNumber,A=$.getValueByLimitNumber,L=$.tStatus,R=h(function(){return(f.value&&!d.value&&e.clearable&&!e.readonly||e.showClearIconOnEmpty)&&b.value}),D=function(){var u;V.value=!0,(u=I.value)===null||u===void 0||u.focus()},G=function(){var u;V.value=!1,(u=I.value)===null||u===void 0||u.blur()},J=function(u){var o;b.value&&V.value||(m.value=f.value,!e.disabled&&(V.value=!0,(o=e.onFocus)===null||o===void 0||o.call(e,f.value,{e:u})))},X=function(u){var o,y=u.e,N=e.type==="number"?void 0:"";w(N,{e:y,trigger:"clear"}),(o=e.onClear)===null||o===void 0||o.call(e,{e:y})},z=function(u){p.value=u.target},H=function(){var u=S.value==="password"?"text":"password";S.value=u},O=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=I.value;if(!!o){var y=String(u);!o.value||o.value!==y&&(o.value=y)}},W=function(u){var o,y=u.target,N=y.value;e.type!=="number"&&typeof f.value=="string"&&N.length>((o=f.value)===null||o===void 0?void 0:o.length)&&(N=A(N)),w(U(N,e.type),{e:u,trigger:"input"}),ee(function(){O(f.value)})},Z=function(u){var o=u.inputType&&u.inputType==="insertCompositionText",y=u.currentTarget.value;if(o||s.value){i.value=y;return}W(u)},j=function(){var u,o=p.value;if(!o||!o.tagName||!((u=v.value)!==null&&u!==void 0&&u.$el)||!["path","svg"].includes(o.tagName))return!1;for(;o;){var y;if(((y=v.value)===null||y===void 0?void 0:y.$el)===o)return!0;o=o.parentNode}return!1},T=_e(fn,void 0),q=function(u){if(j())D();else{var o;e.format&&(m.value=typeof f.value=="number"||e.type==="number"?f.value:e.format(f.value)),V.value=!1,(o=e.onBlur)===null||o===void 0||o.call(e,f.value,{e:u}),T==null||T.handleBlur()}},Q=function(u){var o;s.value=!1,i.value="",W(u),(o=e.onCompositionend)===null||o===void 0||o.call(e,String(f.value),{e:u})},Y=function(u){var o;s.value=!0;var y=u.currentTarget.value;i.value=y,(o=e.onCompositionstart)===null||o===void 0||o.call(e,String(f.value),{e:u})},x=function(u){var o,y;(o=I.value)===null||o===void 0||o.focus(),(y=e.onClick)===null||y===void 0||y.call(e,{e:u})};return E(function(){return e.autofocus},function(g){g===!0&&ee(function(){var u;(u=I.value)===null||u===void 0||u.focus()})},{immediate:!0}),E(f,function(g,u){var o=e.type==="number";u===void 0&&e.format&&typeof g!="number"&&!o?m.value=e.format(g):m.value=g;var y=typeof g=="number"?g:A(g);y!==g&&!o&&w(y,{trigger:"initial"})},{immediate:!0}),E(function(){return e.type},function(g){S.value=g},{immediate:!0}),n({inputRef:I,focus:D,blur:G}),{isHover:b,focused:V,renderType:S,showClear:R,inputRef:I,clearIconRef:v,inputValue:m,isComposition:s,compositionValue:i,limitNumber:F,tStatus:L,emitFocus:J,formatAndEmitBlur:q,onHandleCompositionend:Q,onHandleCompositionstart:Y,onRootClick:x,emitPassword:H,handleInput:Z,emitClear:X,onClearIconMousedown:z,innerValue:f}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function pn(e,n){var a=function(l){if(!e.disabled){var c=l.code,f=U(l.currentTarget.value,e.type);if(/enter/i.test(c)||/enter/i.test(l.key)){var w;(w=e.onEnter)===null||w===void 0||w.call(e,f,{e:l})}else{var b;(b=e.onKeydown)===null||b===void 0||b.call(e,f,{e:l})}}},t=function(l){var c;if(!e.disabled){var f=U(l.currentTarget.value,e.type);(c=e.onKeyup)===null||c===void 0||c.call(e,f,{e:l})}},r=function(l){var c;if(!e.disabled){var f=U(l.currentTarget.value,e.type);(c=e.onKeypress)===null||c===void 0||c.call(e,f,{e:l})}},m=function(l){var c;if(!e.disabled){var f=l.clipboardData||window.clipboardData;(c=e.onPaste)===null||c===void 0||c.call(e,{e:l,pasteValue:f==null?void 0:f.getData("text/plain")})}},s=function(l){return n.value=l},i=function(l){var c;return(c=e.onWheel)===null||c===void 0?void 0:c.call(e,{e:l})},v=function(l){var c;s(!0),(c=e.onMouseenter)===null||c===void 0||c.call(e,{e:l})},p=function(l){var c;s(!1),(c=e.onMouseleave)===null||c===void 0||c.call(e,{e:l})};return{isHover:n,handleKeydown:a,handleKeyUp:t,handleKeypress:r,onHandlePaste:m,onHandleMousewheel:i,onInputMouseenter:v,onInputMouseleave:p}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var gn=100;function yn(e,n,a){var t=Pe(e),r=t.autoWidth,m=t.placeholder,s=M(null),i=M(null),v=function(){if(!(!s.value||!n.value)){var l=s.value.getBoundingClientRect(),c=l.width;n.value.style.width="".concat(c||0,"px")}};cn(n,function(){r.value&&(i.value=setTimeout(function(){v(),clearTimeout(i.value)},gn))}),Ce(function(){clearTimeout(i.value)});var p=function(){E([a,m],function(){!r.value||ee(function(){v()})},{immediate:!0})};return Ie(function(){r.value&&p()}),{inputPreRef:s}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var bn=["isHover","tStatus","inputRef","renderType","showClear","focused","inputValue","isComposition","compositionValue","innerValue","limitNumber"];function ge(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function ye(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?ge(Object(a),!0).forEach(function(t){_(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function be(e){var n={};return Object.keys(e).forEach(function(a){Ze(e[a])||(n[a]=e[a])}),n}var hn=K({name:"TInput",props:ye(ye({},sn),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(n,a){var t=a.expose,r=We("input"),m=r.globalConfig,s=ze({BrowseIcon:tn,BrowseOffIcon:Ye,CloseCircleFilledIcon:ln}),i=s.BrowseIcon,v=s.BrowseOffIcon,p=s.CloseCircleFilledIcon,d=je(),l=B("input"),c=B("input__wrap"),f=B("input__tips"),w=$e(),b=w.STATUS,V=w.SIZE,S=B(),I=xe(),P=mn(n,t),$=P.isHover,F=P.tStatus,A=P.inputRef,L=P.renderType,R=P.showClear,D=P.focused,G=P.inputValue,J=P.isComposition,X=P.compositionValue,z=P.innerValue,H=P.limitNumber,O=Je(P,bn),W=yn(n,A,z),Z=W.inputPreRef,j=pn(n,$),T=h(function(){var x;return(x=n.placeholder)!==null&&x!==void 0?x:m.value.placeholder}),q=h(function(){var x;return be({autofocus:n.autofocus,disabled:d.value,readonly:n.readonly,placeholder:T.value,maxlength:!n.allowInputOverMax&&n.maxlength||void 0,name:n.name||void 0,type:L.value,autocomplete:(x=n.autocomplete)!==null&&x!==void 0?x:m.value.autocomplete||void 0,unselectable:n.readonly?"on":void 0})}),Q=h(function(){return[c.value,_({},"".concat(l.value,"--auto-width"),n.autoWidth&&!n.keepWrapperWidth)]}),Y=be({onFocus:O.emitFocus,onBlur:O.formatAndEmitBlur,onKeydown:j.handleKeydown,onKeyup:j.handleKeyUp,onKeypress:j.handleKeypress,onPaste:j.onHandlePaste,onCompositionend:O.onHandleCompositionend,onCompositionstart:O.onHandleCompositionstart});return function(){var x,g,u=I("prefixIcon"),o=I("suffixIcon"),y=I("passwordIcon"),N=I("label",{silent:!0}),re=I("suffix"),le=H.value&&n.showLimitNumber?C("div",{class:["".concat(S.value,"-input__limit-number"),_({},"".concat(S.value,"-is-disabled"),d.value)]},[H.value]):null,oe=N?C("div",{class:"".concat(l.value,"__prefix")},[N]):null,ue=re||le?C("div",{class:"".concat(l.value,"__suffix")},[re,le]):null;n.type==="password"&&(L.value==="password"?o=C(v,{class:"".concat(l.value,"__suffix-clear"),onClick:O.emitPassword},null):L.value==="text"&&(o=C(i,{class:"".concat(l.value,"__suffix-clear"),onClick:O.emitPassword},null))),R.value&&(n.type==="password"?y=C(p,{ref:O.clearIconRef,class:"".concat(l.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null):o=C(p,{ref:O.clearIconRef,class:"".concat(l.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var Ne=[l.value,n.inputClass,_(_(_(_(_(_(_(_(_({},V.value[n.size],n.size!=="medium"),b.value.disabled,d.value),b.value.focused,d.value?!1:D.value),"".concat(S.value,"-is-").concat(F.value),F.value&&F.value!=="default"),"".concat(S.value,"-align-").concat(n.align),n.align!=="left"),"".concat(S.value,"-is-readonly"),n.readonly),"".concat(l.value,"--prefix"),u||oe),"".concat(l.value,"--suffix"),o||ue),"".concat(l.value,"--focused"),D.value)],ie=I("tips"),Ve=[f.value,"".concat(S.value,"-tips"),"".concat(S.value,"-is-").concat(F.value||"default")];return De(C("div",{class:Q.value},[C("div",{class:Ne,onClick:O.onRootClick,onMouseenter:j.onInputMouseenter,onMouseleave:j.onInputMouseleave,onWheel:j.onHandleMousewheel},[u?C("span",{class:["".concat(l.value,"__prefix"),"".concat(l.value,"__prefix-icon")]},[u]):null,oe,C("input",Re({class:["".concat(l.value,"__inner"),_({},"".concat(l.value,"--soft-hidden"),!n.showInput)]},q.value,Y,{ref:A,value:J.value?(x=X.value)!==null&&x!==void 0?x:"":(g=G.value)!==null&&g!==void 0?g:"",onInput:function(Fe){return O.handleInput(Fe)}}),null),n.autoWidth&&C("span",{ref:Z,class:"".concat(S.value,"-input__input-pre")},[z.value||T.value]),ue,y?C("span",{class:["".concat(l.value,"__suffix"),"".concat(l.value,"__suffix-icon"),"".concat(l.value,"__clear")]},[y]):null,o?C("span",{class:["".concat(l.value,"__suffix"),"".concat(l.value,"__suffix-icon"),_({},"".concat(l.value,"__clear"),R.value)]},[o]):null]),ie&&C("div",{class:Ve},[ie])]),[[Ke,n.type!=="hidden"]])}}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var wn={separate:Boolean};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var On=K({name:"TInputGroup",props:wn,setup:function(n){var a=B("input-group"),t=xe(),r=h(function(){return[a.value,_({},"".concat(a.value,"--separate"),n.separate)]});return function(){return C("div",{class:r.value},[t("default")])}}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Bn=Me(hn);Me(On);/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Cn=ke,_n=Ae,In=Ue,he=Se,Pn=Le;function Sn(e,n,a,t){if(!he(e))return e;n=_n(n,e);for(var r=-1,m=n.length,s=m-1,i=e;i!=null&&++r<m;){var v=Pn(n[r]),p=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(r!=s){var d=i[v];p=t?t(d,v,i):void 0,p===void 0&&(p=he(d)?d:In(n[r+1])?[]:{})}Cn(i,v,p),i=i[v]}return e}var En=Sn;export{tn as B,ln as C,Tn as F,Bn as I,vn as V,En as _,fn as a,on as b,je as c,Je as d,cn as e,dn as f,Ze as i,un as l,Fn as u};
|
BIN
assets/dep-f6f516d9.c729faf9.js.gz
Normal file
BIN
assets/dep-f6f516d9.c729faf9.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/dialog.d73192f7.js.gz
Normal file
BIN
assets/dialog.d73192f7.js.gz
Normal file
Binary file not shown.
20
assets/form-model.17724711.js
Normal file
20
assets/form-model.17724711.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/form-model.17724711.js.gz
Normal file
BIN
assets/form-model.17724711.js.gz
Normal file
Binary file not shown.
1
assets/index.00fff3cd.css
Normal file
1
assets/index.00fff3cd.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.00fff3cd.css.gz
Normal file
BIN
assets/index.00fff3cd.css.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/index.02b321c9.js
Normal file
1
assets/index.02b321c9.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as v,ar as B,_ as E}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.c3c7e121.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.3c6542a6.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=262144){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-02011918"]]);export{nt as default};
|
BIN
assets/index.02b321c9.js.gz
Normal file
BIN
assets/index.02b321c9.js.gz
Normal file
Binary file not shown.
1
assets/index.04239ee6.js
Normal file
1
assets/index.04239ee6.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as B,ar as D,_ as L}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
BIN
assets/index.04239ee6.js.gz
Normal file
BIN
assets/index.04239ee6.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{h as B,Y as E,_ as k}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bD as N,C as $,D,aI as i,aH as c,aM as p,aN as f,G as I,n as y,a$ as P,ba as S,bB as T,bE as H,bJ as M}from"./arco.b289f6bb.js";import{h as V}from"./vue.e0867ae8.js";import{d as b,c as q,r as _,j as x,k as h,l as R,m as j}from"./serial.c741fbda.js";import"./chart.7501771f.js";const L={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=R(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=j(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=H,w=M;return $(),D("div",L,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),I("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{h as P,Y as F,_ as L}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css */import{d as R,r as V,o as A,bD as H,bO as O,C as b,D as w,aI as g,aH as _,G as v,aK as C,aJ as E,F as T,aM as M,aN as $,a$ as U,ba as q,bE as z,bJ as J,be as K,bf as j}from"./arco.b289f6bb.js";import{h as G}from"./vue.e0867ae8.js";import{e as Y,b as Q,g as W}from"./serial.c741fbda.js";import"./chart.7501771f.js";const B=y=>(K("data-v-2d8f1ddd"),y=y(),j(),y),X={class:"container"},Z=B(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=B(()=>v("br",null,null,-1)),nt={name:"Backup"},at=R({...nt,setup(y){const f=P(),i=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=G();A(()=>{I.query.url&&D(I.query.url)});const S=(e,s)=>{if(i.mousedown){const l=i.matrix;l[s][e]=i.matrix[s][e]=="#fff"?"#000":"#fff",i.matrix=l}},D=e=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=e,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(t,n){const a=(n*128+t)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let t=0;t<64;t++){u.push([]),u[t]=[];for(let n=0;n<128;n++){const c=!d(n,t);u[t][n]=c?"#fff":"#000"}}i.matrix=u}},N=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const s=new Blob([e.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function t(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!t(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},e.click()},k=async()=>{var p,r,m,d,u;const e=new Uint8Array(1024);let s=0;for(let t=0;t<64;t+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[t+a][n]=="#000"?1:0)<<a;e[s++]=c}if(i.binaryFile=e,f.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=f.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=f.configuration)==null?void 0:r.charset)!="losehu"&&((m=f.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=f.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Y(f.connectPort);const o=i.binaryFile;for(let t=l;t<o.length+l;t+=128)await Q(f.connectPort,t,o.slice(t-l,t-l+128),128,(u=f.configuration)==null?void 0:u.uart);await W(f.connectPort),i.loading=!1};return(e,s)=>{const l=F,o=U,p=q,r=H,m=O,d=z,u=J;return b(),w("div",X,[g(l,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),g(u,{gutter:20,align:"stretch"},{default:_(()=>[g(d,{span:24},{default:_(()=>[g(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[g(r,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,E(i.matrix,(t,n)=>(b(),w("tr",null,[(b(!0),w(C,null,E(t,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,g(p,null,{default:_(()=>[g(o,{onClick:N},{default:_(()=>[M($(e.$t("tool.selectImage")),1)]),_:1}),g(o,{type:"primary",disabled:i.matrix.length<64,onClick:k},{default:_(()=>[M($(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=L(at,[["__scopeId","data-v-2d8f1ddd"]]);export{pt as default};
|
|
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
import{u as A,a as B,_ as d,b as N}from"./useConfig.1a69b527.js";import{f as R,o as I,bs as z,d as D,c as P,aI as k,h as F}from"./arco.b289f6bb.js";import{L as M}from"./index.9e72de03.js";import{a3 as w,d as X,c as $,b as K,w as U}from"./index.3a834e58.js";import{u as V}from"./useDisabled.e7ff81a3.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var W={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},ghost:Boolean,href:{type:String,default:""},icon:{type:Function},loading:Boolean,shape:{type:String,default:"rectangle",validator:function(e){return e?["rectangle","square","round","circle"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["extra-small","small","medium","large"].includes(e):!0}},suffix:{type:Function},tag:{type:String,validator:function(e){return e?["button","a","div"].includes(e):!0}},theme:{type:String,validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},type:{type:String,default:"button",validator:function(e){return e?["submit","reset","button"].includes(e):!0}},variant:{type:String,default:"base",validator:function(e){return e?["base","outline","dashed","text"].includes(e):!0}},onClick:Function};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var J=w.expand,Z=w.ripple,q=w.fade;function H(){var t=X("animation"),e=t.globalConfig,n=function(s){var u,c,r=e.value;return r&&!((u=r.exclude)!==null&&u!==void 0&&u.includes(s))&&((c=r.include)===null||c===void 0?void 0:c.includes(s))};return{keepExpand:n(J),keepRipple:n(Z),keepFade:n(q)}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function j(t,e){var n=Object.keys(e);n.forEach(function(a){t.style[a]=e[a]})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var O=200,G="rgba(0, 0, 0, 0)",Q="rgba(0, 0, 0, 0.35)",Y=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var s=e.dataset.ripple;return s}var u=getComputedStyle(e).getPropertyValue("--ripple-color");return u||Q};function ee(t,e){var n=R(null),a=A(),s=H(),u=s.keepRipple,c=function(b){var i=t.value,h=Y(i,e==null?void 0:e.value);if(!(b.button!==0||!t||!u)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var m=getComputedStyle(i),v=parseInt(m.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,o=i.offsetHeight;n.value.parentNode===null&&(j(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(o,"px"),borderRadius:m.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var l=document.createElement("div");j(l,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(O,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(O*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var x=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",x.set(p,!0))}var S=i.style.position?i.style.position:getComputedStyle(i).position;(S===""||S==="static")&&(i.style.position="relative"),n.value.insertBefore(l,n.value.firstChild),setTimeout(function(){l.style.transform="translateX(".concat(f,"px)")},0);var T=function _(){l.style.backgroundColor=G,t.value&&(t.value.removeEventListener("pointerup",_,!1),t.value.removeEventListener("pointerleave",_,!1),setTimeout(function(){l.remove(),n.value.children.length===0&&n.value.remove()},O*2+100))};t.value.addEventListener("pointerup",T,!1),t.value.addEventListener("pointerleave",T,!1)}};I(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),z(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var te=D({name:"TButton",props:W,setup:function(e,n){var a=n.attrs,s=n.slots,u=$(),c=K(),r=A("button"),b=B(),i=b.STATUS,h=b.SIZE,m=R();ee(m);var v=V(),y=P(function(){var o=e.theme,l=e.variant;return o||(l==="base"?"primary":"default")}),f=P(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var o=c("default","content"),l=e.loading?k(M,{inheritColor:!0},null):u("icon"),x=l&&!o,C=e.suffix||s.suffix?k("span",{className:"".concat(r.value,"__suffix")},[u("suffix")]):null;o=o?k("span",{class:"".concat(r.value,"__text")},[o]):"",l&&(o=[l,o]),C&&(o=[o].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(N(f.value),[d({},"".concat(r.value,"--icon-only"),x)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return F(g(),E(E(E({ref:m},a),p),{},{onClick:e.onClick}),[o])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ue=U(te);export{ue as B,ee as u};
|
|
Binary file not shown.
1
assets/index.1a2d525d.js
Normal file
1
assets/index.1a2d525d.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as P,ar as F,_ as L}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css */import{d as R,r as V,o as H,bH as A,bO as O,C as b,D as w,aI as g,aH as _,G as v,aK as C,aJ as M,F as T,aM as $,aN as B,a$ as U,ba as q,bI as z,bL as K,be as j,bf as G}from"./arco.f43727df.js";import{h as J}from"./vue.cbdb927d.js";import{e as Q,b as W,g as X}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=y=>(j("data-v-2d8f1ddd"),y=y(),G(),y),Y={class:"container"},Z=E(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=E(()=>v("br",null,null,-1)),nt={name:"Backup"},at=R({...nt,setup(y){const f=P(),i=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=J();H(()=>{I.query.url&&D(I.query.url)});const S=(e,s)=>{if(i.mousedown){const l=i.matrix;l[s][e]=i.matrix[s][e]=="#fff"?"#000":"#fff",i.matrix=l}},D=e=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=e,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(t,n){const a=(n*128+t)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let t=0;t<64;t++){u.push([]),u[t]=[];for(let n=0;n<128;n++){const c=!d(n,t);u[t][n]=c?"#fff":"#000"}}i.matrix=u}},N=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const s=new Blob([e.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function t(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!t(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},e.click()},k=async()=>{var p,r,m,d,u;const e=new Uint8Array(1024);let s=0;for(let t=0;t<64;t+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[t+a][n]=="#000"?1:0)<<a;e[s++]=c}if(i.binaryFile=e,f.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=f.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=f.configuration)==null?void 0:r.charset)!="losehu"&&((m=f.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=f.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Q(f.connectPort);const o=i.binaryFile;for(let t=l;t<o.length+l;t+=128)await W(f.connectPort,t,o.slice(t-l,t-l+128),128,(u=f.configuration)==null?void 0:u.uart);await X(f.connectPort),i.loading=!1};return(e,s)=>{const l=F,o=U,p=q,r=A,m=O,d=z,u=K;return b(),w("div",Y,[g(l,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),g(u,{gutter:20,align:"stretch"},{default:_(()=>[g(d,{span:24},{default:_(()=>[g(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[g(r,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,M(i.matrix,(t,n)=>(b(),w("tr",null,[(b(!0),w(C,null,M(t,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,g(p,null,{default:_(()=>[g(o,{onClick:N},{default:_(()=>[$(B(e.$t("tool.selectImage")),1)]),_:1}),g(o,{type:"primary",disabled:i.matrix.length<64,onClick:k},{default:_(()=>[$(B(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=L(at,[["__scopeId","data-v-2d8f1ddd"]]);export{pt as default};
|
BIN
assets/index.1a2d525d.js.gz
Normal file
BIN
assets/index.1a2d525d.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.28b8c38d.js.gz
Normal file
BIN
assets/index.28b8c38d.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{h as E,Y as h,_ as w}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as F,r as k,bP as v,bD as L,C as H,D as S,aI as t,aH as e,aM as l,aN as r,bQ as $,b9 as y,bR as O,bE as U,bJ as C}from"./arco.b289f6bb.js";import{f as P}from"./vue.e0867ae8.js";import{h as A}from"./index.a4c8797a.js";import"./chart.7501771f.js";import"./index.9e72de03.js";import"./useConfig.1a69b527.js";import"./dep-281dbb92.fa8dfc7c.js";import"./index.1865e741.js";import"./useDisabled.e7ff81a3.js";const K={class:"container"},B={name:"Backup"},I=F({...B,setup(N){E();const p=P();k({binaryFile:void 0,loading:!1});const s=o=>{p.push({path:"/tool/flash",query:{url:o}})};return(o,i)=>{const _=h,n=$,a=y,u=O,c=v,d=A,f=L,b=U,g=C;return H(),S("div",K,[t(_,{items:[o.$t("menu.workshop"),o.$t("menu.firmware")]},null,8,["items"]),t(g,{gutter:20,align:"stretch"},{default:e(()=>[t(b,{span:24},{default:e(()=>[t(f,{class:"general-card",title:o.$t("menu.firmware")},{default:e(()=>[t(c,null,{default:e(()=>[t(u,{style:{width:"100%"}},{actions:e(()=>[t(a,{onClick:i[0]||(i[0]=m=>s("/LOSEHU126.bin"))},{default:e(()=>[l(r(o.$t("global.use")),1)]),_:1})]),default:e(()=>[t(n,{title:"LOSEHU126.bin",description:"https://github.com/losehu/uv-k5-firmware-custom"})]),_:1}),t(u,{style:{width:"100%"}},{actions:e(()=>[t(a,{onClick:i[1]||(i[1]=m=>s("/LOSEHU126K.bin"))},{default:e(()=>[l(r(o.$t("global.use")),1)]),_:1})]),default:e(()=>[t(n,{title:"LOSEHU126K.bin",description:"https://github.com/losehu/uv-k5-firmware-custom"})]),_:1}),t(u,{style:{width:"100%"}},{actions:e(()=>[t(a,{onClick:i[2]||(i[2]=m=>s("/LOSEHU126H.bin"))},{default:e(()=>[l(r(o.$t("global.use")),1)]),_:1})]),default:e(()=>[t(n,{title:"LOSEHU126H.bin",description:"https://github.com/losehu/uv-k5-firmware-custom"})]),_:1}),t(u,{style:{width:"100%"}},{actions:e(()=>[t(a,{onClick:i[3]||(i[3]=m=>s("/LOSEHU117P6.bin"))},{default:e(()=>[l(r(o.$t("global.use")),1)]),_:1})]),default:e(()=>[t(n,{title:"LOSEHU117P6\uFF08\u6211\u57FA\u4E8E LOSEHU117 \u4FEE\u6539\u7684\u56FA\u4EF6\uFF09",description:"https://github.com/silenty4ng/uv-k5-firmware-chinese-lts"})]),_:1}),t(u,{style:{width:"100%"}},{actions:e(()=>[t(a,{onClick:i[4]||(i[4]=m=>s("/LOSEHU117P6K.bin"))},{default:e(()=>[l(r(o.$t("global.use")),1)]),_:1})]),default:e(()=>[t(n,{title:"LOSEHU117P6K\uFF08\u6211\u57FA\u4E8E LOSEHU117K \u4FEE\u6539\u7684\u56FA\u4EF6\uFF09",description:"https://github.com/silenty4ng/uv-k5-firmware-chinese-lts"})]),_:1})]),_:1}),t(d,{style:{margin:"10px"},total:5,showPageNumber:"",showPageSize:!1})]),_:1},8,["title"])]),_:1})]),_:1})])}}});const et=w(I,[["__scopeId","data-v-0828accd"]]);export{et as default};
|
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_}from"./index.3a834e58.js";/* empty css */import{d as F,r as f,o as h,bB as g,a$ as m,D as y,bo as i,bp as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.b289f6bb.js";import"./chart.7501771f.js";import"./vue.e0867ae8.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},B={style:{"background-color":"#fff",padding:"10%"}},C=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",B,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),C,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
import{_}from"./index.28b8c38d.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
BIN
assets/index.39178712.js.gz
Normal file
BIN
assets/index.39178712.js.gz
Normal file
Binary file not shown.
Binary file not shown.
99
assets/index.3c6542a6.js
Normal file
99
assets/index.3c6542a6.js
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
import{N,O as Pe,P as sr,Q as or,M as Ee,S as Te,T as lr,U as ur,E as G,V as cr,W as fr,X as vr,Y as dr,Z as xe,$ as gr,A as hr,a0 as mr,K as yr,w as Ie,a1 as Le,G as R,F as Me,a2 as le,a3 as pr,a4 as _r,t as Fe,a5 as br,a6 as Ne,a7 as Cr,a8 as wr,y as Ar}from"./index.28b8c38d.js";import{c as d,d as ne,o as ae,g as Sr,n as Or,aI as m,f as H,w as Re,t as $r,bB as K,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function J(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function De(e,r){if(!!e){if(typeof e=="string")return J(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,r)}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function xr(e){if(Array.isArray(e))return J(e)}function Ir(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e){return xr(e)||Ir(e)||De(e)||Lr()}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Mr(e,r){if(N(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r||"default");if(N(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Fr(e){var r=Mr(e,"string");return N(r)=="symbol"?r:r+""}function F(e,r,n){return r=Fr(r),r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Nr="__lodash_hash_undefined__";function Rr(e){return this.__data__.set(e,Nr),this}var Dr=Rr;function Gr(e){return this.__data__.has(e)}var Kr=Gr,zr=Pe,qr=Dr,Br=Kr;function U(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new zr;++r<n;)this.add(e[r])}U.prototype.add=U.prototype.push=qr;U.prototype.has=Br;var Hr=U;function Ur(e,r){return e.has(r)}var Wr=Ur;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Xr(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var Zr=Xr;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Yr(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var jr=Yr,Jr=Hr,Qr=jr,Vr=Wr,kr=1,en=2;function rn(e,r,n,a,t,i){var s=n&kr,o=e.length,l=r.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(r);if(u&&c)return u==r&&c==e;var f=-1,v=!0,p=n&en?new Jr:void 0;for(i.set(e,r),i.set(r,e);++f<o;){var g=e[f],h=r[f];if(a)var b=s?a(h,g,f,r,e,i):a(g,h,f,e,r,i);if(b!==void 0){if(b)continue;v=!1;break}if(p){if(!Qr(r,function(C,w){if(!Vr(p,w)&&(g===C||t(g,C,n,a,i)))return p.push(w)})){v=!1;break}}else if(!(g===h||t(g,h,n,a,i))){v=!1;break}}return i.delete(e),i.delete(r),v}var Ge=rn;function nn(e){var r=-1,n=Array(e.size);return e.forEach(function(a,t){n[++r]=[t,a]}),n}var an=nn,ce=or,fe=cr,tn=fr,sn=Ge,on=an,ln=Zr,un=1,cn=2,fn="[object Boolean]",vn="[object Date]",dn="[object Error]",gn="[object Map]",hn="[object Number]",mn="[object RegExp]",yn="[object Set]",pn="[object String]",_n="[object Symbol]",bn="[object ArrayBuffer]",Cn="[object DataView]",ve=ce?ce.prototype:void 0,Z=ve?ve.valueOf:void 0;function wn(e,r,n,a,t,i,s){switch(n){case Cn:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case bn:return!(e.byteLength!=r.byteLength||!i(new fe(e),new fe(r)));case fn:case vn:case hn:return tn(+e,+r);case dn:return e.name==r.name&&e.message==r.message;case mn:case pn:return e==r+"";case gn:var o=on;case yn:var l=a&un;if(o||(o=ln),e.size!=r.size&&!l)return!1;var u=s.get(e);if(u)return u==r;a|=cn,s.set(e,r);var c=sn(o(e),o(r),a,t,i,s);return s.delete(e),c;case _n:if(Z)return Z.call(e)==Z.call(r)}return!1}var An=wn,de=vr,Sn=1,On=Object.prototype,$n=On.hasOwnProperty;function Pn(e,r,n,a,t,i){var s=n&Sn,o=de(e),l=o.length,u=de(r),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var v=o[f];if(!(s?v in r:$n.call(r,v)))return!1}var p=i.get(e),g=i.get(r);if(p&&g)return p==r&&g==e;var h=!0;i.set(e,r),i.set(r,e);for(var b=s;++f<l;){v=o[f];var C=e[v],w=r[v];if(a)var S=s?a(w,C,v,r,e,i):a(C,w,v,e,r,i);if(!(S===void 0?C===w||t(C,w,n,a,i):S)){h=!1;break}b||(b=v=="constructor")}if(h&&!b){var P=e.constructor,O=r.constructor;P!=O&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(h=!1)}return i.delete(e),i.delete(r),h}var En=Pn,Y=Te,Tn=Ge,xn=An,In=En,ge=lr,he=G,me=sr.exports,Ln=ur,Mn=1,ye="[object Arguments]",pe="[object Array]",z="[object Object]",Fn=Object.prototype,_e=Fn.hasOwnProperty;function Nn(e,r,n,a,t,i){var s=he(e),o=he(r),l=s?pe:ge(e),u=o?pe:ge(r);l=l==ye?z:l,u=u==ye?z:u;var c=l==z,f=u==z,v=l==u;if(v&&me(e)){if(!me(r))return!1;s=!0,c=!1}if(v&&!c)return i||(i=new Y),s||Ln(e)?Tn(e,r,n,a,t,i):xn(e,r,l,n,a,t,i);if(!(n&Mn)){var p=c&&_e.call(e,"__wrapped__"),g=f&&_e.call(r,"__wrapped__");if(p||g){var h=p?e.value():e,b=g?r.value():r;return i||(i=new Y),t(h,b,n,a,i)}}return v?(i||(i=new Y),In(e,r,n,a,t,i)):!1}var Rn=Nn,Dn=Rn,be=Ee;function Ke(e,r,n,a,t){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:Dn(e,r,n,a,Ke,t)}var te=Ke,Gn=te;function Kn(e,r){return Gn(e,r)}var zn=Kn;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var qn=G,Bn=xe,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Un=/^\w*$/;function Wn(e,r){if(qn(e))return!1;var n=N(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||Bn(e)?!0:Un.test(e)||!Hn.test(e)||r!=null&&e in Object(r)}var ie=Wn,ze=Pe,Xn="Expected a function";function se(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Xn);var n=function a(){var t=arguments,i=r?r.apply(this,t):t[0],s=a.cache;if(s.has(i))return s.get(i);var o=e.apply(this,t);return a.cache=s.set(i,o)||s,o};return n.cache=new(se.Cache||ze),n}se.Cache=ze;var Zn=se,Yn=Zn,jn=500;function Jn(e){var r=Yn(e,function(a){return n.size===jn&&n.clear(),a}),n=r.cache;return r}var Qn=Jn,Vn=Qn,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ra=Vn(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(kn,function(n,a,t,i){r.push(t?i.replace(ea,"$1"):a||n)}),r}),na=ra,aa=G,ta=ie,ia=na,sa=dr;function oa(e,r){return aa(e)?e:ta(e,r)?[e]:ia(sa(e))}var qe=oa,la=xe,ua=1/0;function ca(e){if(typeof e=="string"||la(e))return e;var r=e+"";return r=="0"&&1/e==-ua?"-0":r}var W=ca,fa=qe,va=W;function da(e,r){r=fa(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[va(r[n++])];return n&&n==a?e:void 0}var Be=da;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var ga=Be;function ha(e,r,n){var a=e==null?void 0:ga(e,r);return a===void 0?n:a}var ma=ha;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function ya(e,r){return e!=null&&r in Object(e)}var pa=ya,_a=qe,ba=gr,Ca=G,wa=hr,Aa=mr,Sa=W;function Oa(e,r,n){r=_a(r,e);for(var a=-1,t=r.length,i=!1;++a<t;){var s=Sa(r[a]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&Aa(t)&&wa(s,t)&&(Ca(e)||ba(e)))}var $a=Oa,Pa=pa,Ea=$a;function Ta(e,r){return e!=null&&Ea(e,r,Pa)}var xa=Ta;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Ia(e){return function(r){return r==null?void 0:r[e]}}var La=Ia;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Ma(e){if(Array.isArray(e))return e}function Fa(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,t,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(o.push(a.value),o.length!==r);l=!0);}catch(c){u=!0,t=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw t}}return o}}function Na(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ra(e,r){return Ma(e)||Fa(e,r)||De(e,r)||Na()}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Ce(e,r){var n=Object.keys(r);n.forEach(function(a){e.style[a]=r[a]})}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Da=yr,Ga=Ee,Ka="[object Number]";function za(e){return typeof e=="number"||Ga(e)&&Da(e)==Ka}var qa=za;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function He(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,r=e.userAgent,n=r.indexOf("compatible")>-1&&r.indexOf("MSIE")>-1,a=r.indexOf("Trident")>-1&&r.indexOf("rv:11.0")>-1;if(n){var t=new RegExp("MSIE (\\d+\\.\\d+);"),i=r.match(t);if(!i)return-1;var s=parseFloat(i[1]);return s<7?6:s}return a?11:Number.MAX_SAFE_INTEGER}function ii(){var e,r,n;if(typeof navigator>"u"||!navigator)return!1;var a=navigator.userAgent,t=a.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(t==null||(e=t[1])===null||e===void 0?void 0:e.split(".")[0])<100)return!0;var i=a.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(i==null||(r=i[1])===null||r===void 0?void 0:r.split(".")[0])<12)return!0;var s=He();if(s<=11)return!0;var o=a.match(/Firefox\/(.+)/i);return Number(o==null||(n=o[1])===null||n===void 0?void 0:n.split(".")[0])<100}function si(e,r){var n=qa(r);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var a=0,t=0;t<e.length;t++){var i=0;if(e.charCodeAt(t)>127?i=2:i=1,n&&a+i>r)return{length:a,characters:e.slice(0,t)};a+=i}return n?{length:a,characters:e}:a}function oi(e){return Q(e!=null?e:"").length}function li(e,r,n){return Q(n!=null?n:"").slice().length===r?n||"":Q(e!=null?e:"").slice(0,r).join("")}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function we(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function q(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?we(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Ba(e){var r,n,a,t={};if(!(!e||typeof window>"u")){var i=(r=window)===null||r===void 0||(n=r.getComputedStyle)===null||n===void 0?void 0:n.call(r,e),s=i.color,o=i.fontSize,l=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(l)&&!/Chrome/.test(l),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(l)&&!/Chrome/.test(l);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(o,10)/12,")")}),s&&He()>11){var f=s.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";Ce(e,q(q({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(s," 360deg)")}))}else Ce(e,q(q({},t),{},{background:""}))}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function y(e){var r=Ie("classPrefix"),n=r.classPrefix;return d(function(){return e?"".concat(n.value,"-").concat(e):n.value})}function Ha(){var e=Ie("classPrefix"),r=e.classPrefix;return{SIZE:d(function(){return{small:"".concat(r.value,"-size-s"),medium:"".concat(r.value,"-size-m"),large:"".concat(r.value,"-size-l"),default:"",xs:"".concat(r.value,"-size-xs"),xl:"".concat(r.value,"-size-xl"),block:"".concat(r.value,"-size-full-width")}}),STATUS:d(function(){return{loading:"".concat(r.value,"-is-loading"),loadMore:"".concat(r.value,"-is-load-more"),disabled:"".concat(r.value,"-is-disabled"),focused:"".concat(r.value,"-is-focused"),success:"".concat(r.value,"-is-success"),error:"".concat(r.value,"-is-error"),warning:"".concat(r.value,"-is-warning"),selected:"".concat(r.value,"-is-selected"),active:"".concat(r.value,"-is-active"),checked:"".concat(r.value,"-is-checked"),current:"".concat(r.value,"-is-current"),hidden:"".concat(r.value,"-is-hidden"),visible:"".concat(r.value,"-is-visible"),expanded:"".concat(r.value,"-is-expanded"),indeterminate:"".concat(r.value,"-is-indeterminate")}})}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Ua=ne({name:"TLoadingGradient",setup:function(){var r=y();return ae(function(){var n=Sr().refs.circle;Or(function(){Ba(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var oe={exports:{}},M={exports:{}};(function(){var e,r,n,a,t,i;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,t=a-i):Date.now?(M.exports=function(){return Date.now()-n},n=Date.now()):(M.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Le);var Wa=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],T="AnimationFrame",x=A["request"+T],D=A["cancel"+T]||A["cancelRequest"+T];for(var L=0;!x&&L<B.length;L++)x=A[B[L]+"Request"+T],D=A[B[L]+"Cancel"+T]||A[B[L]+"CancelRequest"+T];if(!x||!D){var j=0,Ae=0,$=[],Xa=1e3/60;x=function(r){if($.length===0){var n=Wa(),a=Math.max(0,Xa-(n-j));j=a+n,setTimeout(function(){var t=$.slice(0);$.length=0;for(var i=function(){if(!t[s].cancelled)try{t[s].callback(j)}catch(l){setTimeout(function(){throw l},0)}},s=0;s<t.length;s++)i()},Math.round(a))}return $.push({handle:++Ae,callback:r,cancelled:!1}),Ae},D=function(r){for(var n=0;n<$.length;n++)$[n].handle===r&&($[n].cancelled=!0)}}oe.exports=function(e){return x.call(A,e)};oe.exports.cancel=function(){D.apply(A,arguments)};oe.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=x,e.cancelAnimationFrame=D};var Ue=typeof window>"u",Za=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ya=function(){return!Ue&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),ja=function(){return!Ue&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function ui(e,r,n,a){var t=R(n)?n:n.handleEvent,i=function s(o){t(o),ja(e,r,s,a)};Ya(e,r,i,a)}function We(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function V(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),t=0,i=a.length;t<i;t++){var s=a[t];!s||(e.classList?e.classList.add(s):We(e,s)||(n+=" ".concat(s)))}e.classList||(e.className=n)}}function k(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),t=0,i=n.length;t<i;t++){var s=n[t];!s||(e.classList?e.classList.remove(s):We(e,s)&&(a=a.replace(" ".concat(s," ")," ")))}e.classList||(e.className=Za(a))}}var Xe=function(r,n){var a=R(r)?r(n):r;return a?Me(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ja=function(){},ci=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Me(r)?document.querySelector(r):R(r)?r():r},fi=function(r){var n=r.clientWidth,a=n===void 0?0:n,t=r.scrollWidth,i=t===void 0?0:t;return i>a},vi=function(r){if(!(r instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,r.appendChild(n),n.click(),r.removeChild(n)};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Qa={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Va=function(r,n){var a=R(r)?d(r):H(r),t=R(n)?d(n):H(n),i=H(),s=function(){i.value=Ja()||Xe(a.value,t.value)};return ae(function(){return s()}),Re([a,t],function(){return s()}),i};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var ka=function(){return{name:y("loading"),centerClass:y("loading--center"),fullscreenClass:y("loading__fullscreen"),lockClass:y("loading--lock"),overlayClass:y("loading__overlay"),relativeClass:y("loading__parent"),fullClass:y("loading--full"),inheritColorClass:y("loading--inherit-color")}},ee=ne({name:"TLoading",inheritAttrs:!1,props:Qa,setup:function(r,n){var a=n.slots,t=H(!1),i=ka(),s=i.name,o=i.centerClass,l=i.fullscreenClass,u=i.lockClass,c=i.overlayClass,f=i.relativeClass,v=i.fullClass,p=i.inheritColorClass,g=y(),h=Ha(),b=h.SIZE,C=function(){t.value=!1;var I=setTimeout(function(){t.value=!0,clearTimeout(I)},r.delay)},w=Va(function(){return r.attach}),S=d(function(){return Boolean(!r.delay||r.delay&&t.value)}),P=d(function(){var _={};return r.zIndex!==void 0&&(_.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(_["font-size"]=r.size),_}),O=d(function(){return Boolean(r.default||a.default||r.content||a.content)}),X=d(function(){return r.preventScrollThrough&&r.fullscreen}),Qe=d(function(){return Boolean(r.text||a.text)}),Ve=d(function(){return O.value&&r.loading&&S.value}),ke=d(function(){return r.fullscreen&&r.loading&&S.value}),er=d(function(){return r.attach&&r.loading&&S.value}),rr=d(function(){return r.attach&&r.loading&&S.value}),nr=d(function(){var _=[o.value,b.value[r.size],F({},p.value,r.inheritColor)],I=[s.value,l.value,o.value,c.value];return{baseClasses:_,attachClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),withContentClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),fullScreenClasses:I,normalClasses:_.concat([s.value])}}),ar=$r(r),tr=ar.loading;return Re([tr],function(_){var I=Ra(_,1),ir=I[0];ir?(C(),X.value&&V(document.body,u.value)):X.value&&k(document.body,u.value)}),ae(function(){r.delay&&C()}),{classPrefix:g,relativeClass:f,delayShowLoading:t,styles:P,showText:Qe,hasContent:O,classes:nr,lockFullscreen:X,showWrapLoading:Ve,showNormalLoading:er,showFullScreenLoading:ke,showAttachedLoading:rr,teleportElement:w}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,t=n.baseClasses,i=n.withContentClasses,s=n.attachClasses,o=n.normalClasses,l=m(Ua,{size:this.size},null),u=this.loading&&le(this,"indicator",l),c=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[le(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:a,style:r.styles},r.$attrs),[m("div",{class:t},[u,c])])]}}):this.hasContent?m("div",K({class:this.relativeClass},this.$attrs),[pr(this,"default","content"),this.showWrapLoading&&m("div",{class:i,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:s,style:r.styles},r.$attrs),[u,c])]}}):this.loading?m("div",K({class:o,style:this.styles},this.$attrs),[u,c]):null}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Se(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Se(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var E=null;function rt(e){var r=_r({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Oe(e){var r=rt(e);if(r.fullscreen&&E)return E;var n=ne({setup:function(){var f=Pr(r);return{loadingOptions:f}},render:function(){return Er(ee,et({},this.loadingOptions))}}),a=Xe(r.fullscreen?"body":r.attach),t=Tr(n),i=t.mount(document.createElement("div")),s=y("loading__parent--relative").value,o=y("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&V(document.body,o.value),a?V(a,s):console.error("attach is not exist");var u={hide:function(){i.loading=!1,k(a,s),k(document.body,o.value),t.unmount()}};return u}function Ze(e){if(e===!0)return E=Oe({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),E;if(e===!1){var r;(r=E)===null||r===void 0||r.hide(),E=null;return}return Oe(e)}var Ye=Ze;Ye.install=function(e){e.config.globalProperties.$loading=Ze};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var nt=br,at=Ne;function tt(e,r){return e&&nt(e,r,at)}var it=tt,st=Te,ot=te,lt=1,ut=2;function ct(e,r,n,a){var t=n.length,i=t,s=!a;if(e==null)return!i;for(e=Object(e);t--;){var o=n[t];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++t<i;){o=n[t];var l=o[0],u=e[l],c=o[1];if(s&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new st;if(a)var v=a(u,c,l,e,r,f);if(!(v===void 0?ot(c,u,lt|ut,a,f):v))return!1}}return!0}var ft=ct,vt=Fe;function dt(e){return e===e&&!vt(e)}var je=dt,gt=je,ht=Ne;function mt(e){for(var r=ht(e),n=r.length;n--;){var a=r[n],t=e[a];r[n]=[a,t,gt(t)]}return r}var yt=mt;function pt(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var Je=pt,_t=ft,bt=yt,Ct=Je;function wt(e){var r=bt(e);return r.length==1&&r[0][2]?Ct(r[0][0],r[0][1]):function(n){return n===e||_t(n,e,r)}}var At=wt,St=te,Ot=ma,$t=xa,Pt=ie,Et=je,Tt=Je,xt=W,It=1,Lt=2;function Mt(e,r){return Pt(e)&&Et(r)?Tt(xt(e),r):function(n){var a=Ot(n,e);return a===void 0&&a===r?$t(n,e):St(r,a,It|Lt)}}var Ft=Mt,Nt=Be;function Rt(e){return function(r){return Nt(r,e)}}var Dt=Rt,Gt=La,Kt=Dt,zt=ie,qt=W;function Bt(e){return zt(e)?Gt(qt(e)):Kt(e)}var Ht=Bt,Ut=At,Wt=Ft,Xt=Cr,Zt=G,Yt=Ht;function jt(e){return typeof e=="function"?e:e==null?Xt:N(e)=="object"?Zt(e)?Wt(e[0],e[1]):Ut(e):Yt(e)}var Jt=jt,Qt=wr,Vt=it,kt=Jt;function ei(e,r){var n={};return r=kt(r),Vt(e,function(a,t,i){Qt(n,r(a,t,i),a)}),n}var ri=ei,re=Symbol("TdLoading"),$e=function(r,n){var a=n.modifiers,t=a.fullscreen,i=a.inheritColor,s={attach:function(){return r},fullscreen:t!=null?t:!1,inheritColor:i!=null?i:!1,loading:n.value};Fe(n.value)&&ri(n.value,function(o,l){s[l]=o}),r[re]={options:s,instance:Ye(s)}},ni={mounted:function(r,n){n.value&&$e(r,n)},updated:function(r,n){var a=r[re],t=n.value,i=n.oldValue;if(!zn(t,i)){var s,o=(s=t==null?void 0:t.loading)!==null&&s!==void 0?s:t;o?$e(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[re])===null||n===void 0||n.instance.hide()}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var di=Ar(ee,ee.name,{name:"loading",comp:ni});export{Ja as A,ui as B,Ce as C,xa as D,Ma as E,Ir as F,De as G,Na as H,ii as I,di as L,Ra as _,si as a,Ha as b,F as c,qe as d,W as e,Q as f,oi as g,ma as h,qa as i,He as j,Va as k,li as l,Be as m,ci as n,ja as o,Ya as p,Hr as q,vi as r,Wr as s,Fr as t,y as u,Xe as v,fi as w,Zr as x,Ue as y,We as z};
|
BIN
assets/index.3c6542a6.js.gz
Normal file
BIN
assets/index.3c6542a6.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.43afdcdf.css
Normal file
1
assets/index.43afdcdf.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.43afdcdf.css.gz
Normal file
BIN
assets/index.43afdcdf.css.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_ as t}from"./index.3a834e58.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.b289f6bb.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
import{_ as t}from"./index.28b8c38d.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
@ -1 +1 @@
|
|||||||
import{d as U,r as Q,bD as W,C as j,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bo as Y,bp as Z,bn as tt,bE as ot,bB as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.b289f6bb.js";import{v as st,h as ut,_ as G}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.7501771f.js";import"./vue.e0867ae8.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=U({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),H=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,R;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const L=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const O=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==O.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,L,8,(C=t.configuration)==null?void 0:C.uart);const q=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const F=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==F.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,q,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(R=t.configuration)==null?void 0:R.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return j(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:H},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=G(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=U({...kt,setup(_){return(r,t)=>(j(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=G(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
import{d as R,r as Q,bH as W,C as U,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),F=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,H;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const G=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==L.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,G,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return U(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:F},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=R({...kt,setup(_){return(r,t)=>(U(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
BIN
assets/index.504d7bf1.js.gz
Normal file
BIN
assets/index.504d7bf1.js.gz
Normal file
Binary file not shown.
@ -1,33 +0,0 @@
|
|||||||
import{G as y,M as P,c as M,w as R,h as q,Y as X,_ as W}from"./index.3a834e58.js";/* empty css *//* empty css */import{d as g,c as m,o as Y,b as Q,f as Z,t as ee,p as te,r as z,aI as p,aU as I,i as ne,bD as re,C as w,D as C,aH as b,aK as ae,aJ as oe,aE as ce,G as se,u as x,bE as ie,bJ as ue}from"./arco.b289f6bb.js";import{f as le}from"./vue.e0867ae8.js";import{u as T,r as L,_ as V}from"./dep-281dbb92.fa8dfc7c.js";import{B as pe}from"./index.1865e741.js";import{_ as f,u as G}from"./useConfig.1a69b527.js";import{i as j,h as fe}from"./index.a4c8797a.js";import{d as O,i as S}from"./index.9e72de03.js";import{C as de}from"./index.417ea4e6.js";import"./chart.7501771f.js";import"./useDisabled.e7ff81a3.js";function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(r){V(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var be={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},me=g({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=m(()=>e.size),{className:c,style:s}=T(r),o=m(()=>["t-icon","t-icon-check-double",c.value]),a=m(()=>E(E({},s.value),n.style)),u=m(()=>({class:o.value,style:a.value,onClick:l=>{var i;return(i=e.onClick)===null||i===void 0?void 0:i.call(e,{e:l})}}));return()=>L(be,u.value)}});const ve=me;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(r){V(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ye={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},Oe=g({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=m(()=>e.size),{className:c,style:s}=T(r),o=m(()=>["t-icon","t-icon-thumb-up",c.value]),a=m(()=>k(k({},s.value),n.style)),u=m(()=>({class:o.value,style:a.value,onClick:l=>{var i;return(i=e.onClick)===null||i===void 0?void 0:i.call(e,{e:l})}}));return()=>L(ye,u.value)}});const ge=Oe;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var _e={align:{type:String,default:"top",validator:function(t){return t?["start","end","center","stretch","baseline","top","middle","bottom"].includes(t):!0}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start",validator:function(t){return t?["start","end","center","space-around","space-between"].includes(t):!0}},tag:{type:String,default:"div"}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var $=function(t){var n="xs";return t<768?n="xs":t>=768&&t<992?n="sm":t>=992&&t<1200?n="md":t>=1200&&t<1400?n="lg":t>=1400&&t<1880?n="xl":n="xxl",n};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function je(e,t){Y(function(){window.addEventListener(e,t)}),Q(function(){window.removeEventListener(e,t)})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K(){var e=Z($(S?0:window.innerWidth)),t=function(){e.value=$(S?0:window.innerWidth)};return je("resize",t),e}function we(e,t){var n=t.justify,r=t.align;return[e,f(f({},"".concat(e,"--").concat(n),n),"".concat(e,"--align-").concat(r),r)]}function he(e,t){var n={},r=function(a){return Object.assign(n,{marginLeft:"".concat(a/-2,"px"),marginRight:"".concat(a/-2,"px")})},c=function(a){return Object.assign(n,{rowGap:"".concat(a,"px")})},s={isNumber:function(a){O(a)&&r(a)},isArray:function(a){P(a)&&a.length&&(s.isNumber(a[0]),O(a[1])&&c(a[1]),y(a[0])&&!j(a[0][t])&&r(a[0][t]),y(a[1])&&!j(a[1][t])&&c(a[1][t]))},isObject:function(a){y(a)&&a[t]&&(P(a)&&a.length?(r(a[t][0]),c(a[t][1])):r(a[t]))}};return Object.keys(s).forEach(function(o){s[o](e)}),n}function Pe(e){return O(e)?"".concat(e," ").concat(e," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?"0 0 ".concat(e):e}function Ce(e,t){var n={},r=function(o){return Object.assign(n,{paddingLeft:"".concat(o/2,"px"),paddingRight:"".concat(o/2,"px")})},c={isNumber:function(o){O(o)&&r(o)},isArray:function(o){P(o)&&o.length&&(O(o[0])&&r(o[0]),y(o[0])&&o[0][t]&&r(o[0][t]))},isObject:function(o){y(o)&&o[t]&&r(o[t])}};return Object.keys(c).forEach(function(s){c[s](e)}),n}function xe(e,t){var n=t.span,r=t.order,c=t.offset,s=t.push,o=t.pull,a=["xs","sm","md","lg","xl","xxl"],u=a.reduce(function(l,i){var v=t[i],d={};return O(v)?d.span=v:y(v)&&(d=v||{}),h(h({},l),{},f(f(f(f(f({},"".concat(e,"-").concat(i,"-").concat(d.span),!j(d.span)),"".concat(e,"-").concat(i,"-order-").concat(d.order),parseInt(d.order,10)>=0),"".concat(e,"-").concat(i,"-offset-").concat(d.offset),parseInt(d.offset,10)>=0),"".concat(e,"-").concat(i,"-push-").concat(d.push),parseInt(d.push,10)>=0),"".concat(e,"-").concat(i,"-pull-").concat(d.pull),parseInt(d.pull,10)>=0))},{});return h(f(f(f(f(f(f({},"".concat(e),!0),"".concat(e,"-").concat(n),!j(n)),"".concat(e,"-order-").concat(r),r),"".concat(e,"-offset-").concat(c),c),"".concat(e,"-push-").concat(s),s),"".concat(e,"-pull-").concat(o),o),u)}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!I(e)}var Ee=g({name:"TRow",props:Se({},_e),setup:function(t){var n=ee(t),r=n.gutter,c=M();te("rowContext",z({gutter:r}));var s=K(),o=G("row"),a=m(function(){return we(o.value,t)}),u=m(function(){return he(t.gutter,s.value)});return function(){var l,i=t.tag;return p(i,{class:a.value,style:u.value},Ne(l=c("default"))?l:{default:function(){return[l]}})}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var De={flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:"div"},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!I(e)}var Ae=g({name:"TCol",inject:["rowContext"],props:ke({},De),setup:function(t){var n=G("col"),r=M(),c=ne("rowContext",Object.create(null)),s=K(),o=m(function(){return xe(n.value,t)}),a=m(function(){var u={},l=t.flex;if(l&&(u.flex=Pe(l)),c){var i=c.gutter;Object.assign(u,Ce(i,s.value))}return u});return function(){var u,l=t.tag;return p(l,{class:o.value,style:a.value},$e(u=r("default"))?u:{default:function(){return[u]}})}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Fe=R(Ee),Be=R(Ae);const Me={class:"container"},Re=["title","src"],ze={name:"Backup"},Ie=g({...ze,setup(e){q();const t=le();z({binaryFile:void 0,loading:!1});const n=c=>{alert("\u56FE\u7247\u5DE5\u574A\u5373\u5C06\u63A8\u51FA")},r=c=>{t.push({path:"/tool/image",query:{url:c.url}})};return(c,s)=>{const o=X,a=pe,u=Be,l=Fe,i=de,v=ie,d=ue,U=fe,J=re;return w(),C("div",Me,[p(o,{items:[c.$t("menu.workshop"),c.$t("menu.image")]},null,8,["items"]),p(d,{gutter:20,align:"stretch"},{default:b(()=>[p(v,{span:24},{default:b(()=>[p(J,{class:"general-card",title:c.$t("menu.image")},{default:b(()=>[p(d,{gutter:20},{default:b(()=>[(w(!0),C(ae,null,oe([{name:"\u7F57\u72EE\u864E",url:"/img1.png"},{name:"\u79BB\u7EBF\u5C0F\u6050\u9F99",url:"/img2.png"},{name:"\u4E0D\u5FD8\u521D\u5FC3\u7262\u8BB0\u4F7F\u547D",url:"/img3.png"},{name:"\u4E3A\u4EBA\u6C11\u670D\u52A1",url:"/img4.png"},{name:"\u4E25\u7981\u6536\u542C\u654C\u53F0\u5E7F\u64AD",url:"/img5.png"},{name:"\u7231\u56E0\u65AF\u5766",url:"/img6.png"}],_=>(w(),ce(v,{span:4},{default:b(()=>[p(i,{style:{width:"100%",marginBottom:"10px"}},{cover:b(()=>[se("img",{title:_.name,src:_.url},null,8,Re)]),footer:b(()=>[p(l,{align:"middle",justify:"center",style:{gap:"24px"}},{default:b(()=>[p(u,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:b(()=>[p(a,{variant:"text",shape:"square",onClick:H=>n(_)},{default:b(()=>[p(x(ge))]),_:2},1032,["onClick"])]),_:2},1024),p(u,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:b(()=>[p(a,{variant:"text",shape:"square",onClick:H=>r(_)},{default:b(()=>[p(x(ve))]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),p(U,{style:{margin:"10px"},total:6,showPageNumber:"",showPageSize:!1})]),_:1},8,["title"])]),_:1})]),_:1})])}}});const Ze=W(Ie,[["__scopeId","data-v-e4b43687"]]);export{Ze as default};
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{d as o,D as r,C as a}from"./arco.b289f6bb.js";import{f as s,h as n}from"./vue.e0867ae8.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
|
@ -1 +1 @@
|
|||||||
import{_ as n}from"./index.3a834e58.js";import{d as c,bC as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.b289f6bb.js";import{f as m}from"./vue.e0867ae8.js";import"./chart.7501771f.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
import{_ as n}from"./index.28b8c38d.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.f43727df.js";import{f as m}from"./vue.cbdb927d.js";import"./chart.3c227ebb.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
37
assets/index.6cb0bdc2.js
Normal file
37
assets/index.6cb0bdc2.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.6cb0bdc2.js.gz
Normal file
BIN
assets/index.6cb0bdc2.js.gz
Normal file
Binary file not shown.
1
assets/index.6d577145.js
Normal file
1
assets/index.6d577145.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.6d577145.js.gz
Normal file
BIN
assets/index.6d577145.js.gz
Normal file
Binary file not shown.
1
assets/index.72c9994e.js
Normal file
1
assets/index.72c9994e.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as B,ar as E,_ as k}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bL as M}from"./arco.f43727df.js";import{h as V}from"./vue.cbdb927d.js";import{d as b,c as q,r as _,j as x,k as h,l as L,m as R}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const j={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=R(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",j,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
BIN
assets/index.72c9994e.js.gz
Normal file
BIN
assets/index.72c9994e.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{h as k,Y as B,_ as N}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as T,r as E,aX as K,bO as L,bD as R,C as F,D as H,aI as e,aH as r,aM as V,aN as A,u as J,a6 as M,a$ as O,ba as W,bE as X,bJ as Y,b7 as j,bc as q}from"./arco.b289f6bb.js";import{u as x}from"./loading.78cf5ab2.js";import{e as $,a as S,f as w,s as h,b as P,g as z}from"./serial.c741fbda.js";import"./chart.7501771f.js";import"./vue.e0867ae8.js";const G={class:"container"},Q={name:"Chi"},Z=T({...Q,setup(oo){const o=k(),{loading:I,setLoading:C}=x(!1),t=E({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},D=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await z(o.connectPort),C(!1)};return(n,i)=>{const f=B,c=M,u=O,m=W,_=X,g=Y,d=j,s=q,b=K,y=L,a=R;return F(),H("div",G,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:D},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:J(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=N(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
|
Binary file not shown.
1
assets/index.7c6a20fa.css
Normal file
1
assets/index.7c6a20fa.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.7c6a20fa.css.gz
Normal file
BIN
assets/index.7c6a20fa.css.gz
Normal file
Binary file not shown.
8
assets/index.7d787a5a.js
Normal file
8
assets/index.7d787a5a.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.7d787a5a.js.gz
Normal file
BIN
assets/index.7d787a5a.js.gz
Normal file
Binary file not shown.
1
assets/index.92de26eb.js
Normal file
1
assets/index.92de26eb.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{d as o,D as r,C as a}from"./arco.f43727df.js";import{f as s,h as n}from"./vue.cbdb927d.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
1
assets/index.999cadc4.css
Normal file
1
assets/index.999cadc4.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.999cadc4.css.gz
Normal file
BIN
assets/index.999cadc4.css.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,82 +0,0 @@
|
|||||||
import{ae as $e,af as rn,a4 as an,A as Se,ag as Ee,ah as tn,ai as sn,M as D,aj as ln,ak as on,al as un,am as cn,O as Te,y as Pe,a8 as fn,a1 as vn,an as dn,z as gn,ao as Le,C as N,J as xe,a2 as ie,P as hn,ap as yn,G as Ie,aq as pn,ar as Me,N as mn,as as _n,w as Cn}from"./index.3a834e58.js";import{d as wn,b as J,_ as R,u as p,a as bn}from"./useConfig.1a69b527.js";import{d as ee,o as ne,g as An,n as On,aI as h,c as y,f as z,w as Re,t as $n,bH as G,bL as le,r as Sn,h as En,b4 as Tn}from"./arco.b289f6bb.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Pn="__lodash_hash_undefined__";function Ln(e){return this.__data__.set(e,Pn),this}var xn=Ln;function In(e){return this.__data__.has(e)}var Mn=In,Rn=$e,Nn=xn,Fn=Mn;function H(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Rn;++n<r;)this.add(e[n])}H.prototype.add=H.prototype.push=Nn;H.prototype.has=Fn;var Dn=H;function Gn(e,n){return e.has(n)}var qn=Gn;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Kn(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}var Bn=Kn;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function zn(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}var Hn=zn,Un=Dn,Wn=Hn,Xn=qn,Zn=1,Yn=2;function Jn(e,n,r,a,t,s){var i=r&Zn,l=e.length,o=n.length;if(l!=o&&!(i&&o>l))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,v=!0,m=r&Yn?new Un:void 0;for(s.set(e,n),s.set(n,e);++f<l;){var d=e[f],g=n[f];if(a)var C=i?a(g,d,f,n,e,s):a(d,g,f,e,n,s);if(C!==void 0){if(C)continue;v=!1;break}if(m){if(!Wn(n,function(w,b){if(!Xn(m,b)&&(d===w||t(d,w,r,a,s)))return m.push(b)})){v=!1;break}}else if(!(d===g||t(d,g,r,a,s))){v=!1;break}}return s.delete(e),s.delete(n),v}var Ne=Jn;function jn(e){var n=-1,r=Array(e.size);return e.forEach(function(a,t){r[++n]=[t,a]}),r}var Qn=jn,oe=an,ue=ln,kn=on,Vn=Ne,er=Qn,nr=Bn,rr=1,ar=2,tr="[object Boolean]",sr="[object Date]",ir="[object Error]",lr="[object Map]",or="[object Number]",ur="[object RegExp]",cr="[object Set]",fr="[object String]",vr="[object Symbol]",dr="[object ArrayBuffer]",gr="[object DataView]",ce=oe?oe.prototype:void 0,X=ce?ce.valueOf:void 0;function hr(e,n,r,a,t,s,i){switch(r){case gr:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dr:return!(e.byteLength!=n.byteLength||!s(new ue(e),new ue(n)));case tr:case sr:case or:return kn(+e,+n);case ir:return e.name==n.name&&e.message==n.message;case ur:case fr:return e==n+"";case lr:var l=er;case cr:var o=a&rr;if(l||(l=nr),e.size!=n.size&&!o)return!1;var u=i.get(e);if(u)return u==n;a|=ar,i.set(e,n);var c=Vn(l(e),l(n),a,t,s,i);return i.delete(e),c;case vr:if(X)return X.call(e)==X.call(n)}return!1}var yr=hr,fe=un,pr=1,mr=Object.prototype,_r=mr.hasOwnProperty;function Cr(e,n,r,a,t,s){var i=r&pr,l=fe(e),o=l.length,u=fe(n),c=u.length;if(o!=c&&!i)return!1;for(var f=o;f--;){var v=l[f];if(!(i?v in n:_r.call(n,v)))return!1}var m=s.get(e),d=s.get(n);if(m&&d)return m==n&&d==e;var g=!0;s.set(e,n),s.set(n,e);for(var C=i;++f<o;){v=l[f];var w=e[v],b=n[v];if(a)var O=i?a(b,w,v,n,e,s):a(w,b,v,e,n,s);if(!(O===void 0?w===b||t(w,b,r,a,s):O)){g=!1;break}C||(C=v=="constructor")}if(g&&!C){var E=e.constructor,$=n.constructor;E!=$&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof $=="function"&&$ instanceof $)&&(g=!1)}return s.delete(e),s.delete(n),g}var wr=Cr,Z=Ee,br=Ne,Ar=yr,Or=wr,ve=tn,de=D,ge=rn.exports,$r=sn,Sr=1,he="[object Arguments]",ye="[object Array]",q="[object Object]",Er=Object.prototype,pe=Er.hasOwnProperty;function Tr(e,n,r,a,t,s){var i=de(e),l=de(n),o=i?ye:ve(e),u=l?ye:ve(n);o=o==he?q:o,u=u==he?q:u;var c=o==q,f=u==q,v=o==u;if(v&&ge(e)){if(!ge(n))return!1;i=!0,c=!1}if(v&&!c)return s||(s=new Z),i||$r(e)?br(e,n,r,a,t,s):Ar(e,n,o,r,a,t,s);if(!(r&Sr)){var m=c&&pe.call(e,"__wrapped__"),d=f&&pe.call(n,"__wrapped__");if(m||d){var g=m?e.value():e,C=d?n.value():n;return s||(s=new Z),t(g,C,r,a,s)}}return v?(s||(s=new Z),Or(e,n,r,a,t,s)):!1}var Pr=Tr,Lr=Pr,me=Se;function Fe(e,n,r,a,t){return e===n?!0:e==null||n==null||!me(e)&&!me(n)?e!==e&&n!==n:Lr(e,n,r,a,Fe,t)}var re=Fe,xr=re;function Ir(e,n){return xr(e,n)}var Mr=Ir;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Rr=D,Nr=Te,Fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;function Gr(e,n){if(Rr(e))return!1;var r=Pe(e);return r=="number"||r=="symbol"||r=="boolean"||e==null||Nr(e)?!0:Dr.test(e)||!Fr.test(e)||n!=null&&e in Object(n)}var ae=Gr,De=$e,qr="Expected a function";function te(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qr);var r=function a(){var t=arguments,s=n?n.apply(this,t):t[0],i=a.cache;if(i.has(s))return i.get(s);var l=e.apply(this,t);return a.cache=i.set(s,l)||i,l};return r.cache=new(te.Cache||De),r}te.Cache=De;var Kr=te,Br=Kr,zr=500;function Hr(e){var n=Br(e,function(a){return r.size===zr&&r.clear(),a}),r=n.cache;return n}var Ur=Hr,Wr=Ur,Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/\\(\\)?/g,Yr=Wr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Xr,function(r,a,t,s){n.push(t?s.replace(Zr,"$1"):a||r)}),n}),Jr=Yr,jr=D,Qr=ae,kr=Jr,Vr=cn;function ea(e,n){return jr(e)?e:Qr(e,n)?[e]:kr(Vr(e))}var Ge=ea,na=Te,ra=1/0;function aa(e){if(typeof e=="string"||na(e))return e;var n=e+"";return n=="0"&&1/e==-ra?"-0":n}var U=aa,ta=Ge,sa=U;function ia(e,n){n=ta(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[sa(n[r++])];return r&&r==a?e:void 0}var qe=ia;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var la=qe;function oa(e,n,r){var a=e==null?void 0:la(e,n);return a===void 0?r:a}var ua=oa;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function ca(e,n){return e!=null&&n in Object(e)}var fa=ca,va=Ge,da=fn,ga=D,ha=vn,ya=dn,pa=U;function ma(e,n,r){n=va(n,e);for(var a=-1,t=n.length,s=!1;++a<t;){var i=pa(n[a]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++a!=t?s:(t=e==null?0:e.length,!!t&&ya(t)&&ha(i,t)&&(ga(e)||da(e)))}var _a=ma,Ca=fa,wa=_a;function ba(e,n){return e!=null&&wa(e,n,Ca)}var Aa=ba;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Oa(e){return function(n){return n==null?void 0:n[e]}}var $a=Oa;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Sa(e){if(Array.isArray(e))return e}function Ea(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,t,s,i,l=[],o=!0,u=!1;try{if(s=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=s.call(r)).done)&&(l.push(a.value),l.length!==n);o=!0);}catch(c){u=!0,t=c}finally{try{if(!o&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw t}}return l}}function Ta(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
||||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(e,n){return Sa(e)||Ea(e,n)||wn(e,n)||Ta()}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function _e(e,n){var r=Object.keys(n);r.forEach(function(a){e.style[a]=n[a]})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var La=gn,xa=Se,Ia="[object Number]";function Ma(e){return typeof e=="number"||xa(e)&&La(e)==Ia}var Ra=Ma;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Na(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,n=e.userAgent,r=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1,a=n.indexOf("Trident")>-1&&n.indexOf("rv:11.0")>-1;if(r){var t=new RegExp("MSIE (\\d+\\.\\d+);"),s=n.match(t);if(!s)return-1;var i=parseFloat(s[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Vt(e,n){var r=Ra(n);if(!e||e.length===0)return r?{length:0,characters:e}:0;for(var a=0,t=0;t<e.length;t++){var s=0;if(e.charCodeAt(t)>127?s=2:s=1,r&&a+s>n)return{length:a,characters:e.slice(0,t)};a+=s}return r?{length:a,characters:e}:a}function es(e){return J(e!=null?e:"").length}function ns(e,n,r){return J(r!=null?r:"").slice().length===n?r||"":J(e!=null?e:"").slice(0,n).join("")}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function K(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ce(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Fa(e){var n,r,a,t={};if(!(!e||typeof window>"u")){var s=(n=window)===null||n===void 0||(r=n.getComputedStyle)===null||r===void 0?void 0:r.call(n,e),i=s.color,l=s.fontSize,o=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(o)&&!/Chrome/.test(o),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(o)&&!/Chrome/.test(o);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(l,10)/12,")")}),i&&Na()>11){var f=i.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";_e(e,K(K({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else _e(e,K(K({},t),{},{background:""}))}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Da=ee({name:"TLoadingGradient",setup:function(){var n=p();return ne(function(){var r=An().refs.circle;On(function(){Fa(r)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,r="".concat(n,"-loading__gradient"),a=[r,"".concat(n,"-icon-loading")];return h("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[h("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[h("div",{class:"".concat(r,"-conic"),ref:"circle"},null)])])}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var se={exports:{}},M={exports:{}};(function(){var e,n,r,a,t,s;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},a=e(),s=process.uptime()*1e9,t=a-s):Date.now?(M.exports=function(){return Date.now()-r},r=Date.now()):(M.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Le);var Ga=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],P="AnimationFrame",L=A["request"+P],F=A["cancel"+P]||A["cancelRequest"+P];for(var I=0;!L&&I<B.length;I++)L=A[B[I]+"Request"+P],F=A[B[I]+"Cancel"+P]||A[B[I]+"CancelRequest"+P];if(!L||!F){var Y=0,we=0,S=[],qa=1e3/60;L=function(n){if(S.length===0){var r=Ga(),a=Math.max(0,qa-(r-Y));Y=a+r,setTimeout(function(){var t=S.slice(0);S.length=0;for(var s=function(){if(!t[i].cancelled)try{t[i].callback(Y)}catch(o){setTimeout(function(){throw o},0)}},i=0;i<t.length;i++)s()},Math.round(a))}return S.push({handle:++we,callback:n,cancelled:!1}),we},F=function(n){for(var r=0;r<S.length;r++)S[r].handle===n&&(S[r].cancelled=!0)}}se.exports=function(e){return L.call(A,e)};se.exports.cancel=function(){F.apply(A,arguments)};se.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=L,e.cancelAnimationFrame=F};var Ke=typeof window>"u",Ka=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ba=function(){return!Ke&&document.addEventListener?function(e,n,r,a){e&&n&&r&&e.addEventListener(n,r,a)}:function(e,n,r){e&&n&&r&&e.attachEvent("on".concat(n),r)}}(),za=function(){return!Ke&&document.removeEventListener?function(e,n,r,a){e&&n&&e.removeEventListener(n,r,a)}:function(e,n,r){e&&n&&e.detachEvent("on".concat(n),r)}}();function rs(e,n,r,a){var t=N(r)?r:r.handleEvent,s=function i(l){t(l),za(e,n,i,a)};Ba(e,n,s,a)}function Be(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):" ".concat(e.className," ").indexOf(" ".concat(n," "))>-1}function j(e,n){if(!!e){for(var r=e.className,a=(n||"").split(" "),t=0,s=a.length;t<s;t++){var i=a[t];!i||(e.classList?e.classList.add(i):Be(e,i)||(r+=" ".concat(i)))}e.classList||(e.className=r)}}function Q(e,n){if(!(!e||!n)){for(var r=n.split(" "),a=" ".concat(e.className," "),t=0,s=r.length;t<s;t++){var i=r[t];!i||(e.classList?e.classList.remove(i):Be(e,i)&&(a=a.replace(" ".concat(i," ")," ")))}e.classList||(e.className=Ka(a))}}var ze=function(n,r){var a=N(n)?n(r):n;return a?xe(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ha=function(){},as=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return xe(n)?document.querySelector(n):N(n)?n():n},ts=function(n){var r=n.clientWidth,a=r===void 0?0:r,t=n.scrollWidth,s=t===void 0?0:t;return s>a};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Ua={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Wa=function(n,r){var a=N(n)?y(n):z(n),t=N(r)?y(r):z(r),s=z(),i=function(){s.value=Ha()||ze(a.value,t.value)};return ne(function(){return i()}),Re([a,t],function(){return i()}),s};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Xa=function(){return{name:p("loading"),centerClass:p("loading--center"),fullscreenClass:p("loading__fullscreen"),lockClass:p("loading--lock"),overlayClass:p("loading__overlay"),relativeClass:p("loading__parent"),fullClass:p("loading--full"),inheritColorClass:p("loading--inherit-color")}},k=ee({name:"TLoading",inheritAttrs:!1,props:Ua,setup:function(n,r){var a=r.slots,t=z(!1),s=Xa(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,v=s.fullClass,m=s.inheritColorClass,d=p(),g=bn(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Wa(function(){return n.attach}),O=y(function(){return Boolean(!n.delay||n.delay&&t.value)}),E=y(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),$=y(function(){return Boolean(n.default||a.default||n.content||a.content)}),W=y(function(){return n.preventScrollThrough&&n.fullscreen}),Ze=y(function(){return Boolean(n.text||a.text)}),Ye=y(function(){return $.value&&n.loading&&O.value}),Je=y(function(){return n.fullscreen&&n.loading&&O.value}),je=y(function(){return n.attach&&n.loading&&O.value}),Qe=y(function(){return n.attach&&n.loading&&O.value}),ke=y(function(){var _=[l.value,C.value[n.size],R({},m.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),Ve=$n(n),en=Ve.loading;return Re([en],function(_){var x=Pa(_,1),nn=x[0];nn?(w(),W.value&&j(document.body,u.value)):W.value&&Q(document.body,u.value)}),ne(function(){n.delay&&w()}),{classPrefix:d,relativeClass:f,delayShowLoading:t,styles:E,showText:Ze,hasContent:$,classes:ke,lockFullscreen:W,showWrapLoading:Ye,showNormalLoading:je,showFullScreenLoading:Je,showAttachedLoading:Qe,teleportElement:b}},render:function(){var n=this,r=this.classes,a=r.fullScreenClasses,t=r.baseClasses,s=r.withContentClasses,i=r.attachClasses,l=r.normalClasses,o=h(Da,{size:this.size},null),u=this.loading&&ie(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[ie(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:a,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",G({class:this.relativeClass},this.$attrs),[hn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",G({class:l,style:this.styles},this.$attrs),[u,c]):null}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function be(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Za(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?be(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var T=null;function Ya(e){var n=yn({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return n}function Ae(e){var n=Ya(e);if(n.fullscreen&&T)return T;var r=ee({setup:function(){var f=Sn(n);return{loadingOptions:f}},render:function(){return En(k,Za({},this.loadingOptions))}}),a=ze(n.fullscreen?"body":n.attach),t=Tn(r),s=t.mount(document.createElement("div")),i=p("loading__parent--relative").value,l=p("loading--lock"),o=n.preventScrollThrough&&n.fullscreen;o&&j(document.body,l.value),a?j(a,i):console.error("attach is not exist");var u={hide:function(){s.loading=!1,Q(a,i),Q(document.body,l.value),t.unmount()}};return u}function He(e){if(e===!0)return T=Ae({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),T;if(e===!1){var n;(n=T)===null||n===void 0||n.hide(),T=null;return}return Ae(e)}var Ue=He;Ue.install=function(e){e.config.globalProperties.$loading=He};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Ja=pn,ja=Me;function Qa(e,n){return e&&Ja(e,n,ja)}var ka=Qa,Va=Ee,et=re,nt=1,rt=2;function at(e,n,r,a){var t=r.length,s=t,i=!a;if(e==null)return!s;for(e=Object(e);t--;){var l=r[t];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++t<s;){l=r[t];var o=l[0],u=e[o],c=l[1];if(i&&l[2]){if(u===void 0&&!(o in e))return!1}else{var f=new Va;if(a)var v=a(u,c,o,e,n,f);if(!(v===void 0?et(c,u,nt|rt,a,f):v))return!1}}return!0}var tt=at,st=Ie;function it(e){return e===e&&!st(e)}var We=it,lt=We,ot=Me;function ut(e){for(var n=ot(e),r=n.length;r--;){var a=n[r],t=e[a];n[r]=[a,t,lt(t)]}return n}var ct=ut;function ft(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}var Xe=ft,vt=tt,dt=ct,gt=Xe;function ht(e){var n=dt(e);return n.length==1&&n[0][2]?gt(n[0][0],n[0][1]):function(r){return r===e||vt(r,e,n)}}var yt=ht,pt=re,mt=ua,_t=Aa,Ct=ae,wt=We,bt=Xe,At=U,Ot=1,$t=2;function St(e,n){return Ct(e)&&wt(n)?bt(At(e),n):function(r){var a=mt(r,e);return a===void 0&&a===n?_t(r,e):pt(n,a,Ot|$t)}}var Et=St,Tt=qe;function Pt(e){return function(n){return Tt(n,e)}}var Lt=Pt,xt=$a,It=Lt,Mt=ae,Rt=U;function Nt(e){return Mt(e)?xt(Rt(e)):It(e)}var Ft=Nt,Dt=yt,Gt=Et,qt=mn,Kt=D,Bt=Ft;function zt(e){return typeof e=="function"?e:e==null?qt:Pe(e)=="object"?Kt(e)?Gt(e[0],e[1]):Dt(e):Bt(e)}var Ht=zt,Ut=_n,Wt=ka,Xt=Ht;function Zt(e,n){var r={};return n=Xt(n),Wt(e,function(a,t,s){Ut(r,n(a,t,s),a)}),r}var Yt=Zt,V=Symbol("TdLoading"),Oe=function(n,r){var a=r.modifiers,t=a.fullscreen,s=a.inheritColor,i={attach:function(){return n},fullscreen:t!=null?t:!1,inheritColor:s!=null?s:!1,loading:r.value};Ie(r.value)&&Yt(r.value,function(l,o){i[o]=l}),n[V]={options:i,instance:Ue(i)}},Jt={mounted:function(n,r){r.value&&Oe(n,r)},updated:function(n,r){var a=n[V],t=r.value,s=r.oldValue;if(!Mr(t,s)){var i,l=(i=t==null?void 0:t.loading)!==null&&i!==void 0?i:t;l?Oe(n,r):a==null||a.instance.hide()}},unmounted:function(n){var r;(r=n[V])===null||r===void 0||r.instance.hide()}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ss=Cn(k,k.name,{name:"loading",comp:Jt});export{ss as L,Pa as _,Ba as a,Dn as b,qn as c,Ra as d,Vt as e,ze as f,as as g,ts as h,Ke as i,Na as j,Bn as k,ua as l,Be as m,Sa as n,za as o,Ta as p,Ha as q,rs as r,_e as s,es as t,ns as u,Ge as v,U as w,qe as x,Aa as y,Wa as z};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{d as R,c as t,aI as a,aU as V}from"./arco.b289f6bb.js";import{u,a as W}from"./useConfig.1a69b527.js";import{c as X,J as Z,w as U}from"./index.3a834e58.js";import{L as k}from"./index.9e72de03.js";/**
|
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.3c6542a6.js";import{x as Z,F as U,y as k}from"./index.28b8c38d.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
@ -6,8 +6,8 @@ import{d as R,c as t,aI as a,aU as V}from"./arco.b289f6bb.js";import{u,a as W}fr
|
|||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function G(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var K=R({name:"TCard",props:q,setup:function(e,w){var o=w.slots,n=X(),l=u("card"),y=W(),b=y.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),O=u("card__description"),c=u("card__actions"),P=u("card__body"),j=u("card__cover"),x=u("card__footer"),A=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),J=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),L=t(function(){return E.value||s.value&&v.value}),D=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:O.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=Z(e.cover);return a("div",{class:j.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[J.value?D():null,H.value?M():null,z.value&&a("div",{class:P.value},[n("default")||n("content")]),L.value&&a("div",{class:x.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(k,e.loadingProps,G(r)?r:{default:function(){return[r]}}):r}}});/**
|
*/function G(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var K=R({name:"TCard",props:q,setup:function(e,y){var o=y.slots,n=Z(),l=u("card"),w=W(),b=w.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),x=u("card__description"),c=u("card__actions"),O=u("card__body"),P=u("card__cover"),j=u("card__footer"),A=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:x.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=U(e.cover);return a("div",{class:P.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:O.value},[n("default")||n("content")]),D.value&&a("div",{class:j.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(X,e.loadingProps,G(r)?r:{default:function(){return[r]}}):r}}});/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var ae=U(K);export{ae as C};
|
*/var ee=k(K);export{ee as C};
|
BIN
assets/index.c3c7e121.js.gz
Normal file
BIN
assets/index.c3c7e121.js.gz
Normal file
Binary file not shown.
296
assets/index.c6a389a9.js
Normal file
296
assets/index.c6a389a9.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.c6a389a9.js.gz
Normal file
BIN
assets/index.c6a389a9.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.b289f6bb.js";import{F as oe}from"./index.7e4d0707.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.3a834e58.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.e0867ae8.js";import{u as le}from"./loading.78cf5ab2.js";import"./chart.7501771f.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.4d70dbb2.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
BIN
assets/index.c7223355.js.gz
Normal file
BIN
assets/index.c7223355.js.gz
Normal file
Binary file not shown.
353
assets/index.cc658fd0.js
Normal file
353
assets/index.cc658fd0.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.cc658fd0.js.gz
Normal file
BIN
assets/index.cc658fd0.js.gz
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user