@partex/one-core 2.0.69 → 2.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +263 -263
- package/lib/one-core.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/one-core.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var bC=Object.defineProperty;var SC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ho=(e,t,r)=>(SC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),O=require("naive-ui"),$t=require("vue-router"),Kt=require("vue-i18n"),Uh=require("axios"),Bs=require("md5"),CC=require("jsqr"),xC=require("vuedraggable"),X0=v.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>pn(e.data)}}),X=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},TC={},NC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},DC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1),AC=[DC];function MC(e,t){return v.openBlock(),v.createElementBlock("svg",NC,AC)}const Ul=X(TC,[["render",MC]]),kC={},EC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},PC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1),IC=[PC];function LC(e,t){return v.openBlock(),v.createElementBlock("svg",EC,IC)}const Wh=X(kC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=v.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v.createElementVNode("path",{d:"M8 6h12"}),v.createElementVNode("path",{d:"M6 12h12"}),v.createElementVNode("path",{d:"M4 18h12"})],-1),VC=[BC];function $C(e,t){return v.openBlock(),v.createElementBlock("svg",RC,VC)}const Yh=X(OC,[["render",$C]]),FC={},zC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},GC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1),HC=[GC];function UC(e,t){return v.openBlock(),v.createElementBlock("svg",zC,HC)}const qh=X(FC,[["render",UC]]),WC={},YC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1),jC=[qC];function XC(e,t){return v.openBlock(),v.createElementBlock("svg",YC,jC)}const jh=X(WC,[["render",XC]]),ZC={},KC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},JC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1),QC=[JC];function ex(e,t){return v.openBlock(),v.createElementBlock("svg",KC,QC)}const Wl=X(ZC,[["render",ex]]),tx={},rx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},nx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1),ax=[nx];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",rx,ax)}const Yl=X(tx,[["render",ix]]),ox={},sx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1),ux=[lx];function cx(e,t){return v.openBlock(),v.createElementBlock("svg",sx,ux)}const Xh=X(ox,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1),vx=[dx];function px(e,t){return v.openBlock(),v.createElementBlock("svg",hx,vx)}const ql=X(fx,[["render",px]]),gx={},mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1),_x=[yx];function bx(e,t){return v.openBlock(),v.createElementBlock("svg",mx,_x)}const Wa=X(gx,[["render",bx]]),Sx={},Cx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1),Tx=[xx];function Nx(e,t){return v.openBlock(),v.createElementBlock("svg",Cx,Tx)}const Ao=X(Sx,[["render",Nx]]),Dx={},Ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1),kx=[Mx];function Ex(e,t){return v.openBlock(),v.createElementBlock("svg",Ax,kx)}const jl=X(Dx,[["render",Ex]]),Px={},Ix={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1),Ox=[Lx];function Rx(e,t){return v.openBlock(),v.createElementBlock("svg",Ix,Ox)}const Z0=X(Px,[["render",Rx]]),Bx={},Vx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$x=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1),Fx=[$x];function zx(e,t){return v.openBlock(),v.createElementBlock("svg",Vx,Fx)}const Zh=X(Bx,[["render",zx]]),Gx={},Hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Ux=v.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1),Wx=[Ux];function Yx(e,t){return v.openBlock(),v.createElementBlock("svg",Hx,Wx)}const Xl=X(Gx,[["render",Yx]]),qx={},jx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Xx=v.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),Zx=v.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1),Kx=[Xx,Zx];function Jx(e,t){return v.openBlock(),v.createElementBlock("svg",jx,Kx)}const Kh=X(qx,[["render",Jx]]),Qx={},eT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1),rT=[tT];function nT(e,t){return v.openBlock(),v.createElementBlock("svg",eT,rT)}const Jh=X(Qx,[["render",nT]]),aT={},iT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},oT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1),sT=[oT];function lT(e,t){return v.openBlock(),v.createElementBlock("svg",iT,sT)}const cn=X(aT,[["render",lT]]),uT={},cT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},fT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1),hT=[fT];function dT(e,t){return v.openBlock(),v.createElementBlock("svg",cT,hT)}const Mo=X(uT,[["render",dT]]),vT={},pT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},gT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1),mT=[gT];function yT(e,t){return v.openBlock(),v.createElementBlock("svg",pT,mT)}const Zl=X(vT,[["render",yT]]),_T={},wT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},bT=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),ST=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),CT=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),xT=[bT,ST,CT];function TT(e,t){return v.openBlock(),v.createElementBlock("svg",wT,xT)}const Kl=X(_T,[["render",TT]]),NT={},DT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},AT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1),MT=[AT];function kT(e,t){return v.openBlock(),v.createElementBlock("svg",DT,MT)}const Qh=X(NT,[["render",kT]]),ET={},PT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1),LT=[IT];function OT(e,t){return v.openBlock(),v.createElementBlock("svg",PT,LT)}const ed=X(ET,[["render",OT]]),RT={},BT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},VT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),$T=[VT];function FT(e,t){return v.openBlock(),v.createElementBlock("svg",BT,$T)}const Jl=X(RT,[["render",FT]]),zT={},GT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},HT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1),UT=[HT];function WT(e,t){return v.openBlock(),v.createElementBlock("svg",GT,UT)}const td=X(zT,[["render",WT]]),YT={},qT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},jT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1),XT=[jT];function ZT(e,t){return v.openBlock(),v.createElementBlock("svg",qT,XT)}const rd=X(YT,[["render",ZT]]),KT={},JT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},QT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1),e2=[QT];function t2(e,t){return v.openBlock(),v.createElementBlock("svg",JT,e2)}const nd=X(KT,[["render",t2]]),ad=window.localStorage;function Gu(e,t){ad.setItem(e,JSON.stringify(t))}function Kv(e){const t=ad.getItem(e);return t?JSON.parse(t):null}function r2(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const n2="local-";class a2{constructor(t=""){Ho(this,"namespace");Ho(this,"mapKey");Ho(this,"map");this.namespace=t,this.mapKey=n2+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:Jv()};Gu(a,r),this.map[t]=i,Gu(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const i=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return i===!1||i?i:r;this.delete(t)}else return i===!1||i?i:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),r2(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const id=new a2("partex"),Ea=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Yt(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}id.set(e,t,r)}function Et(e,t){return id.get(e,t)}const ko=e=>{id.delete(e)},Ks=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},K0=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function Eo(e,t=!1){let r=e.records;t&&(r=r.map((a,i)=>({key:i,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>v.h("div",{},{default:()=>oe.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Po(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const Tr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let i=n[a];RegExp.$1.length!==1&&(i=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,i)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},vo=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},i2=(e,t=500)=>{const r=e;let n;const a=function(...o){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,o)},t))};return a};function o2(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function s2(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),i=r[a];return i?(e/Math.pow(10,a*3)).toFixed(t)+i:(e/Math.pow(10,a*3)).toFixed(0)}const l2={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"},scan:{label:"扫一扫"}}},u2={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"},scan:{label:"Scan"}}},c2=Kt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...u2},"zh-CN":{...l2},"fr-FR":{}}}),yt=c2,J0="2.0.69",Qv={Components:{platformName:()=>`${yt.global.t("Platform.components")} v${J0}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>yt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>yt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>yt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>yt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>yt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>yt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},oe=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function od(e){oe.download=e}function f2(e){oe.language=e}function Ya(e){let t;e?t=e:oe.lang==="zh-CN"?t="en-US":t="zh-CN",Yt("lang",t,0),oe.lang=t;const r=document.body;r.dataset.lang=t,yt.global.locale.value=t}function h2(e){const t=Qv[e]||Qv.iot;oe.platformName=t.platformName,oe.platformType=t.platformType,oe.platformUrl=t.platformUrl,oe.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function Io(e){oe.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function d2(e){oe.needUpdate=e}const Q0=()=>{oe.isMobile=window.screen.availWidth<769,oe.isPad=window.screen.availWidth<1024};window.addEventListener("resize",Q0);Q0();const Uo=(e,t)=>v.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Nr=(e,t="default",r,n,a)=>{const i={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},o={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;i.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(i.onClick=e.onClick.bind(void 0,n,a))}return r&&(o.icon=()=>v.h(O.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(O.NButton,i,o)},Js=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const i=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",i)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(O.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},v2=(e,t,r)=>{let n;if(e.type==="detail"){const a=Nr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Nr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Nr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Uo(a,oe.lang==="zh-CN"?"删除":"Delete"),n=Js(a,{...e,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Nr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Uo(a,e.tooltipText)}return e.confirmText&&(n=Js(n,e,t,r)),n},p2=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=Js(Nr({...a,onClick:"",buttonText:oe.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=Nr(a,a.color,void 0,t,r)),a.confirmText&&(i=Js(i,a,t,r)),n.push(i)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=p2(a.children,t,r);n.push(v.h(O.NPopover,{trigger:"hover"},{trigger:()=>Nr({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>v.h(O.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=v2(a,t,r);n.push(i)}}),v.h("div",{class:"action-flex"},{default:()=>n})},g2=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Yt("token",r,0):ko("token"),t.replace(oe.platformUrl)}}),m2={class:"com-card flex-center",style:{flex:"1"}},y2=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),_2=[y2];function w2(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("div",m2,_2)}const e_=X(g2,[["render",w2]]),b2=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function S2(e,t,r,n,a,i){const o=v.resolveComponent("IconChevronLeft"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton");return v.openBlock(),v.createBlock(l,{text:"",onClick:e.back},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const t_=X(b2,[["render",S2]]),C2=v.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=v.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),x2={viewBox:"40 20 120 120"},T2=v.createElementVNode("defs",null,[v.createElementVNode("filter",{id:"blurs"},[v.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),v.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),v.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),N2=["stroke"],D2=["stroke"],A2=["r","transform","fill"],M2=["r","transform","fill"],k2={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function E2(e,t,r,n,a,i){const o=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",x2,[T2,v.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,N2),v.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:v.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,D2),e.pointA?(v.openBlock(),v.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,A2)):v.createCommentVNode("",!0),e.pointB?(v.openBlock(),v.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,M2)):v.createCommentVNode("",!0),v.createElementVNode("text",k2,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(o,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const r_=X(C2,[["render",E2]]);/*! *****************************************************************************
|
|
1
|
+
"use strict";var bC=Object.defineProperty;var SC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ho=(e,t,r)=>(SC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),O=require("naive-ui"),$t=require("vue-router"),Kt=require("vue-i18n"),Uh=require("axios"),Bs=require("md5"),CC=require("jsqr"),xC=require("vuedraggable"),X0=v.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>pn(e.data)}}),X=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},TC={},NC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},DC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1),AC=[DC];function MC(e,t){return v.openBlock(),v.createElementBlock("svg",NC,AC)}const Ul=X(TC,[["render",MC]]),kC={},EC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},PC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1),IC=[PC];function LC(e,t){return v.openBlock(),v.createElementBlock("svg",EC,IC)}const Wh=X(kC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=v.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v.createElementVNode("path",{d:"M8 6h12"}),v.createElementVNode("path",{d:"M6 12h12"}),v.createElementVNode("path",{d:"M4 18h12"})],-1),VC=[BC];function $C(e,t){return v.openBlock(),v.createElementBlock("svg",RC,VC)}const Yh=X(OC,[["render",$C]]),FC={},zC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},GC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1),HC=[GC];function UC(e,t){return v.openBlock(),v.createElementBlock("svg",zC,HC)}const qh=X(FC,[["render",UC]]),WC={},YC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1),jC=[qC];function XC(e,t){return v.openBlock(),v.createElementBlock("svg",YC,jC)}const jh=X(WC,[["render",XC]]),ZC={},KC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},JC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1),QC=[JC];function ex(e,t){return v.openBlock(),v.createElementBlock("svg",KC,QC)}const Wl=X(ZC,[["render",ex]]),tx={},rx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},nx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1),ax=[nx];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",rx,ax)}const Yl=X(tx,[["render",ix]]),ox={},sx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1),ux=[lx];function cx(e,t){return v.openBlock(),v.createElementBlock("svg",sx,ux)}const Xh=X(ox,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1),vx=[dx];function px(e,t){return v.openBlock(),v.createElementBlock("svg",hx,vx)}const ql=X(fx,[["render",px]]),gx={},mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1),_x=[yx];function bx(e,t){return v.openBlock(),v.createElementBlock("svg",mx,_x)}const Wa=X(gx,[["render",bx]]),Sx={},Cx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1),Tx=[xx];function Nx(e,t){return v.openBlock(),v.createElementBlock("svg",Cx,Tx)}const Ao=X(Sx,[["render",Nx]]),Dx={},Ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1),kx=[Mx];function Ex(e,t){return v.openBlock(),v.createElementBlock("svg",Ax,kx)}const jl=X(Dx,[["render",Ex]]),Px={},Ix={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1),Ox=[Lx];function Rx(e,t){return v.openBlock(),v.createElementBlock("svg",Ix,Ox)}const Z0=X(Px,[["render",Rx]]),Bx={},Vx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$x=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1),Fx=[$x];function zx(e,t){return v.openBlock(),v.createElementBlock("svg",Vx,Fx)}const Zh=X(Bx,[["render",zx]]),Gx={},Hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Ux=v.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1),Wx=[Ux];function Yx(e,t){return v.openBlock(),v.createElementBlock("svg",Hx,Wx)}const Xl=X(Gx,[["render",Yx]]),qx={},jx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Xx=v.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),Zx=v.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1),Kx=[Xx,Zx];function Jx(e,t){return v.openBlock(),v.createElementBlock("svg",jx,Kx)}const Kh=X(qx,[["render",Jx]]),Qx={},eT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1),rT=[tT];function nT(e,t){return v.openBlock(),v.createElementBlock("svg",eT,rT)}const Jh=X(Qx,[["render",nT]]),aT={},iT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},oT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1),sT=[oT];function lT(e,t){return v.openBlock(),v.createElementBlock("svg",iT,sT)}const cn=X(aT,[["render",lT]]),uT={},cT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},fT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1),hT=[fT];function dT(e,t){return v.openBlock(),v.createElementBlock("svg",cT,hT)}const Mo=X(uT,[["render",dT]]),vT={},pT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},gT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1),mT=[gT];function yT(e,t){return v.openBlock(),v.createElementBlock("svg",pT,mT)}const Zl=X(vT,[["render",yT]]),_T={},wT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},bT=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),ST=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),CT=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),xT=[bT,ST,CT];function TT(e,t){return v.openBlock(),v.createElementBlock("svg",wT,xT)}const Kl=X(_T,[["render",TT]]),NT={},DT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},AT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1),MT=[AT];function kT(e,t){return v.openBlock(),v.createElementBlock("svg",DT,MT)}const Qh=X(NT,[["render",kT]]),ET={},PT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1),LT=[IT];function OT(e,t){return v.openBlock(),v.createElementBlock("svg",PT,LT)}const ed=X(ET,[["render",OT]]),RT={},BT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},VT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),$T=[VT];function FT(e,t){return v.openBlock(),v.createElementBlock("svg",BT,$T)}const Jl=X(RT,[["render",FT]]),zT={},GT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},HT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1),UT=[HT];function WT(e,t){return v.openBlock(),v.createElementBlock("svg",GT,UT)}const td=X(zT,[["render",WT]]),YT={},qT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},jT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1),XT=[jT];function ZT(e,t){return v.openBlock(),v.createElementBlock("svg",qT,XT)}const rd=X(YT,[["render",ZT]]),KT={},JT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},QT=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1),e2=[QT];function t2(e,t){return v.openBlock(),v.createElementBlock("svg",JT,e2)}const nd=X(KT,[["render",t2]]),ad=window.localStorage;function Gu(e,t){ad.setItem(e,JSON.stringify(t))}function Kv(e){const t=ad.getItem(e);return t?JSON.parse(t):null}function r2(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const n2="local-";class a2{constructor(t=""){Ho(this,"namespace");Ho(this,"mapKey");Ho(this,"map");this.namespace=t,this.mapKey=n2+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:Jv()};Gu(a,r),this.map[t]=i,Gu(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const i=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return i===!1||i?i:r;this.delete(t)}else return i===!1||i?i:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),r2(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const id=new a2("partex"),Ea=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Yt(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}id.set(e,t,r)}function Et(e,t){return id.get(e,t)}const ko=e=>{id.delete(e)},Ks=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},K0=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function Eo(e,t=!1){let r=e.records;t&&(r=r.map((a,i)=>({key:i,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>v.h("div",{},{default:()=>oe.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Po(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const Tr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let i=n[a];RegExp.$1.length!==1&&(i=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,i)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},vo=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},i2=(e,t=500)=>{const r=e;let n;const a=function(...o){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,o)},t))};return a};function o2(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function s2(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),i=r[a];return i?(e/Math.pow(10,a*3)).toFixed(t)+i:(e/Math.pow(10,a*3)).toFixed(0)}const l2={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"},scan:{label:"扫一扫"}}},u2={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"},scan:{label:"Scan"}}},c2=Kt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...u2},"zh-CN":{...l2},"fr-FR":{}}}),yt=c2,J0="2.0.70",Qv={Components:{platformName:()=>`${yt.global.t("Platform.components")} v${J0}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>yt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>yt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>yt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>yt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>yt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>yt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},oe=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function od(e){oe.download=e}function f2(e){oe.language=e}function Ya(e){let t;e?t=e:oe.lang==="zh-CN"?t="en-US":t="zh-CN",Yt("lang",t,0),oe.lang=t;const r=document.body;r.dataset.lang=t,yt.global.locale.value=t}function h2(e){const t=Qv[e]||Qv.iot;oe.platformName=t.platformName,oe.platformType=t.platformType,oe.platformUrl=t.platformUrl,oe.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function Io(e){oe.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function d2(e){oe.needUpdate=e}const Q0=()=>{oe.isMobile=window.screen.availWidth<769,oe.isPad=window.screen.availWidth<1024};window.addEventListener("resize",Q0);Q0();const Uo=(e,t)=>v.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Nr=(e,t="default",r,n,a)=>{const i={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},o={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;i.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(i.onClick=e.onClick.bind(void 0,n,a))}return r&&(o.icon=()=>v.h(O.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(O.NButton,i,o)},Js=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const i=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",i)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(O.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},v2=(e,t,r)=>{let n;if(e.type==="detail"){const a=Nr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Nr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Nr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Uo(a,oe.lang==="zh-CN"?"删除":"Delete"),n=Js(a,{...e,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Nr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Uo(a,e.tooltipText)}return e.confirmText&&(n=Js(n,e,t,r)),n},p2=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=Js(Nr({...a,onClick:"",buttonText:oe.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=Nr(a,a.color,void 0,t,r)),a.confirmText&&(i=Js(i,a,t,r)),n.push(i)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=p2(a.children,t,r);n.push(v.h(O.NPopover,{trigger:"hover"},{trigger:()=>Nr({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>v.h(O.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=v2(a,t,r);n.push(i)}}),v.h("div",{class:"action-flex"},{default:()=>n})},g2=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Yt("token",r,0):ko("token"),t.replace(oe.platformUrl)}}),m2={class:"com-card flex-center",style:{flex:"1"}},y2=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),_2=[y2];function w2(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("div",m2,_2)}const e_=X(g2,[["render",w2]]),b2=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function S2(e,t,r,n,a,i){const o=v.resolveComponent("IconChevronLeft"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton");return v.openBlock(),v.createBlock(l,{text:"",onClick:e.back},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const t_=X(b2,[["render",S2]]),C2=v.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=v.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),x2={viewBox:"40 20 120 120"},T2=v.createElementVNode("defs",null,[v.createElementVNode("filter",{id:"blurs"},[v.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),v.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),v.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),N2=["stroke"],D2=["stroke"],A2=["r","transform","fill"],M2=["r","transform","fill"],k2={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function E2(e,t,r,n,a,i){const o=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",x2,[T2,v.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,N2),v.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:v.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,D2),e.pointA?(v.openBlock(),v.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,A2)):v.createCommentVNode("",!0),e.pointB?(v.openBlock(),v.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,M2)):v.createCommentVNode("",!0),v.createElementVNode("text",k2,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(o,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const r_=X(C2,[["render",E2]]);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|