@partex/one-core 2.0.91 → 2.0.92
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 +177 -177
- package/lib/one-core.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/one-core.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var SC=Object.defineProperty;var CC=(e,t,r)=>t in e?SC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hi=(e,t,r)=>(CC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),R=require("naive-ui"),$t=require("vue-router"),Zt=require("vue-i18n"),Bs=require("md5"),Uh=require("axios"),xC=require("jsqr"),TC=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},NC={},DC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},AC=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),MC=[AC];function kC(e,t){return v.openBlock(),v.createElementBlock("svg",DC,MC)}const Ul=X(NC,[["render",kC]]),EC={},PC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IC=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),LC=[IC];function OC(e,t){return v.openBlock(),v.createElementBlock("svg",PC,LC)}const Wh=X(EC,[["render",OC]]),RC={},BC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},VC=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),$C=[VC];function FC(e,t){return v.openBlock(),v.createElementBlock("svg",BC,$C)}const Yh=X(RC,[["render",FC]]),zC={},GC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},HC=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),UC=[HC];function WC(e,t){return v.openBlock(),v.createElementBlock("svg",GC,UC)}const qh=X(zC,[["render",WC]]),YC={},qC={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:"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),XC=[jC];function ZC(e,t){return v.openBlock(),v.createElementBlock("svg",qC,XC)}const jh=X(YC,[["render",ZC]]),KC={},JC={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:"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),ex=[QC];function tx(e,t){return v.openBlock(),v.createElementBlock("svg",JC,ex)}const Wl=X(KC,[["render",tx]]),rx={},nx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ax=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),ox=[ax];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",nx,ox)}const Yl=X(rx,[["render",ix]]),sx={},lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ux=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),cx=[ux];function fx(e,t){return v.openBlock(),v.createElementBlock("svg",lx,cx)}const Xh=X(sx,[["render",fx]]),hx={},dx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},vx=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),px=[vx];function gx(e,t){return v.openBlock(),v.createElementBlock("svg",dx,px)}const ql=X(hx,[["render",gx]]),mx={},yx={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 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),bx=[_x];function Sx(e,t){return v.openBlock(),v.createElementBlock("svg",yx,bx)}const Wa=X(mx,[["render",Sx]]),Cx={},xx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Tx=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),Nx=[Tx];function Dx(e,t){return v.openBlock(),v.createElementBlock("svg",xx,Nx)}const Ai=X(Cx,[["render",Dx]]),Ax={},Mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},kx=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),Ex=[kx];function Px(e,t){return v.openBlock(),v.createElementBlock("svg",Mx,Ex)}const jl=X(Ax,[["render",Px]]),Ix={},Lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Ox=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),Rx=[Ox];function Bx(e,t){return v.openBlock(),v.createElementBlock("svg",Lx,Rx)}const Z0=X(Ix,[["render",Bx]]),Vx={},$x={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Fx=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),zx=[Fx];function Gx(e,t){return v.openBlock(),v.createElementBlock("svg",$x,zx)}const Zh=X(Vx,[["render",Gx]]),Hx={},Ux={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Wx=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),Yx=[Wx];function qx(e,t){return v.openBlock(),v.createElementBlock("svg",Ux,Yx)}const Xl=X(Hx,[["render",qx]]),jx={},Xx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Zx=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),Kx=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),Jx=[Zx,Kx];function Qx(e,t){return v.openBlock(),v.createElementBlock("svg",Xx,Jx)}const Kh=X(jx,[["render",Qx]]),e2={},t2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},r2=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),n2=[r2];function a2(e,t){return v.openBlock(),v.createElementBlock("svg",t2,n2)}const Jh=X(e2,[["render",a2]]),o2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s2=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),l2=[s2];function u2(e,t){return v.openBlock(),v.createElementBlock("svg",i2,l2)}const cn=X(o2,[["render",u2]]),c2={},f2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},h2=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),d2=[h2];function v2(e,t){return v.openBlock(),v.createElementBlock("svg",f2,d2)}const Mi=X(c2,[["render",v2]]),p2={},g2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},m2=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),y2=[m2];function _2(e,t){return v.openBlock(),v.createElementBlock("svg",g2,y2)}const Zl=X(p2,[["render",_2]]),w2={},b2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},S2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),C2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),x2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),T2=[S2,C2,x2];function N2(e,t){return v.openBlock(),v.createElementBlock("svg",b2,T2)}const Kl=X(w2,[["render",N2]]),D2={},A2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},M2=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),k2=[M2];function E2(e,t){return v.openBlock(),v.createElementBlock("svg",A2,k2)}const Qh=X(D2,[["render",E2]]),P2={},I2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},L2=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),O2=[L2];function R2(e,t){return v.openBlock(),v.createElementBlock("svg",I2,O2)}const ed=X(P2,[["render",R2]]),B2={},V2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$2=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),F2=[$2];function z2(e,t){return v.openBlock(),v.createElementBlock("svg",V2,F2)}const Jl=X(B2,[["render",z2]]),G2={},H2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},U2=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),W2=[U2];function Y2(e,t){return v.openBlock(),v.createElementBlock("svg",H2,W2)}const td=X(G2,[["render",Y2]]),q2={},j2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},X2=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),Z2=[X2];function K2(e,t){return v.openBlock(),v.createElementBlock("svg",j2,Z2)}const rd=X(q2,[["render",K2]]),J2={},Q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},eT=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),tT=[eT];function rT(e,t){return v.openBlock(),v.createElementBlock("svg",Q2,tT)}const nd=X(J2,[["render",rT]]),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 nT(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const aT="local-";class oT{constructor(t=""){Hi(this,"namespace");Hi(this,"mapKey");Hi(this,"map");this.namespace=t,this.mapKey=aT+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:Jv()};Gu(a,r),this.map[t]=o,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 o=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return o===!1||o?o:r;this.delete(t)}else return o===!1||o?o:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),nT(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const od=new oT("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 Et(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}od.set(e,t,r)}function yt(e,t){return od.get(e,t)}const ki=e=>{od.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 Ei(e,t=!1){let r=e.records;t&&(r=r.map((a,o)=>({key:o,...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:()=>K.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Pi(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 xr=(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 o=n[a];RegExp.$1.length!==1&&(o=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,o)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},vi=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},iT=(e,t=500)=>{const r=e;let n;const a=function(...i){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,i)},t))};return a};function sT(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 lT(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)),o=r[a];return o?(e/Math.pow(10,a*3)).toFixed(t)+o:(e/Math.pow(10,a*3)).toFixed(0)}const uT={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:"扫一扫"}}},cT={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"}}},fT=Zt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...cT},"zh-CN":{...uT},"fr-FR":{}}}),Ir=fT,Cr=$t.createRouter({history:$t.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Hu=document.querySelector("html");Cr.beforeEach(()=>{Hu==null||Hu.removeAttribute("style")});const hT=Object.prototype.hasOwnProperty;function J0(e,t){const r=[];for(const n in e){if(!hT.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=J0(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:Uu}=R.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),to=Uh.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let If=Uh.CancelToken.source();to.interceptors.request.use(e=>{var r;e.cancelToken=If.token;const t=yt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=J0(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));to.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return r&&(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Uu.error({content:r||"网络错误,请稍后重试",duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(K0(),Cr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:ki("token"),window.location.href="/login";break;default:return Uu.destroyAll(),Uu.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const dT=()=>{If.cancel(),If=Uh.CancelToken.source()},id="/apiserver/",Q0=(e,t,r="json")=>to({url:`${id}${e}`,method:"GET",data:t,responseType:r}),ut=(e,t={},r="json",n=3e5)=>to({url:`${id}${e}`,method:"POST",data:t,responseType:r,timeout:n}),e_=e=>to(e),sd=(e,t)=>to({headers:{"Content-Type":"multipart/form-data"},url:`${id}${e}`,method:"POST",data:t}),t_="2.0.91";function vT(){const e=yt("platformListOwned",!1);if(e){const t=JSON.parse(e);return Qv(t),Promise.resolve(t.platformList)}return new Promise((t,r)=>{e_({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform.json",method:"GET",responseType:"text"}).then(n=>{const a=JSON.parse(n),o={Components:{platformName:"Platform.components",platformType:"T0",platformUrl:"/"},...a.platform},i={platformList:o,owned:a.owned};Qv(i),Et("platformListOwned",i,"1 Day"),t(o)}).catch(()=>{r(!1)})})}const K=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>Ir.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{}});function Qv(e){K.platformList=e.platformList,K.owned=e.owned}function pT(e){K.platformMenu=e}function ld(e){K.download=e}function gT(e){K.language=e}function Ya(e){let t;e?t=e:K.lang==="zh-CN"?t="en-US":t="zh-CN",Et("lang",t,0),K.lang=t;const r=document.body;r.dataset.lang=t,Ir.global.locale.value=t}async function mT(e){const t=await vT();if(t){const r=t[e]||t.iot;K.platformName=()=>Ir.global.t(r.platformName),e==="Components"&&(K.platformName=()=>`${Ir.global.t(r.platformName)} ${t_}`),K.platformType=r.platformType,K.platformUrl=r.platformUrl,document.title=K.platformName()}}function Ii(e){K.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 yT(e){K.needUpdate=e}const r_=()=>{K.isMobile=window.screen.availWidth<769,K.isPad=window.screen.availWidth<1024};window.addEventListener("resize",r_);r_();const Ui=(e,t)=>v.h(R.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Tr=(e,t="default",r,n,a)=>{const o={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},i={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;o.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(o.onClick=e.onClick.bind(void 0,n,a))}return r&&(i.icon=()=>v.h(R.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(R.NButton,o,i)},Js=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const o=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",o)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(R.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},_T=(e,t,r)=>{let n;if(e.type==="detail"){const a=Tr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Ui(a,K.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Tr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Ui(a,K.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Tr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Ui(a,K.lang==="zh-CN"?"删除":"Delete"),n=Js(a,{...e,confirmText:K.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Tr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Ui(a,e.tooltipText)}return e.confirmText&&(n=Js(n,e,t,r)),n},wT=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=Tr({...a,buttonText:K.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=Tr({...a,buttonText:K.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=Js(Tr({...a,onClick:"",buttonText:K.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:K.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(o=Tr(a,a.color,void 0,t,r)),a.confirmText&&(o=Js(o,a,t,r)),n.push(o)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=wT(a.children,t,r);n.push(v.h(R.NPopover,{trigger:"hover"},{trigger:()=>Tr({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(R.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=_T(a,t,r);n.push(o)}}),v.h("div",{class:"action-flex"},{default:()=>n})},bT=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Et("token",r,0):ki("token"),t.replace(K.platformUrl)}}),ST={class:"com-card flex-center",style:{flex:"1"}},CT=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),xT=[CT];function TT(e,t,r,n,a,o){return v.openBlock(),v.createElementBlock("div",ST,xT)}const n_=X(bT,[["render",TT]]),NT=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:R.NButton,NIcon:R.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function DT(e,t,r,n,a,o){const i=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(i)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const a_=X(NT,[["render",DT]]),AT=v.defineComponent({name:"OcCircle",components:{NPopover:R.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}}}}),MT={viewBox:"40 20 120 120"},kT=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),ET=["stroke"],PT=["stroke"],IT=["r","transform","fill"],LT=["r","transform","fill"],OT={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function RT(e,t,r,n,a,o){const i=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",MT,[kT,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,ET),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,PT),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,IT)):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,LT)):v.createCommentVNode("",!0),v.createElementVNode("text",OT,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(i,{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 o_=X(AT,[["render",RT]]);/*! *****************************************************************************
|
|
1
|
+
"use strict";var SC=Object.defineProperty;var CC=(e,t,r)=>t in e?SC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hi=(e,t,r)=>(CC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),R=require("naive-ui"),$t=require("vue-router"),Zt=require("vue-i18n"),Bs=require("md5"),Uh=require("axios"),xC=require("jsqr"),TC=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},NC={},DC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},AC=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),MC=[AC];function kC(e,t){return v.openBlock(),v.createElementBlock("svg",DC,MC)}const Ul=X(NC,[["render",kC]]),EC={},PC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IC=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),LC=[IC];function OC(e,t){return v.openBlock(),v.createElementBlock("svg",PC,LC)}const Wh=X(EC,[["render",OC]]),RC={},BC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},VC=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),$C=[VC];function FC(e,t){return v.openBlock(),v.createElementBlock("svg",BC,$C)}const Yh=X(RC,[["render",FC]]),zC={},GC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},HC=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),UC=[HC];function WC(e,t){return v.openBlock(),v.createElementBlock("svg",GC,UC)}const qh=X(zC,[["render",WC]]),YC={},qC={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:"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),XC=[jC];function ZC(e,t){return v.openBlock(),v.createElementBlock("svg",qC,XC)}const jh=X(YC,[["render",ZC]]),KC={},JC={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:"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),ex=[QC];function tx(e,t){return v.openBlock(),v.createElementBlock("svg",JC,ex)}const Wl=X(KC,[["render",tx]]),rx={},nx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ax=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),ox=[ax];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",nx,ox)}const Yl=X(rx,[["render",ix]]),sx={},lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ux=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),cx=[ux];function fx(e,t){return v.openBlock(),v.createElementBlock("svg",lx,cx)}const Xh=X(sx,[["render",fx]]),hx={},dx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},vx=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),px=[vx];function gx(e,t){return v.openBlock(),v.createElementBlock("svg",dx,px)}const ql=X(hx,[["render",gx]]),mx={},yx={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 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),bx=[_x];function Sx(e,t){return v.openBlock(),v.createElementBlock("svg",yx,bx)}const Wa=X(mx,[["render",Sx]]),Cx={},xx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Tx=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),Nx=[Tx];function Dx(e,t){return v.openBlock(),v.createElementBlock("svg",xx,Nx)}const Ai=X(Cx,[["render",Dx]]),Ax={},Mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},kx=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),Ex=[kx];function Px(e,t){return v.openBlock(),v.createElementBlock("svg",Mx,Ex)}const jl=X(Ax,[["render",Px]]),Ix={},Lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Ox=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),Rx=[Ox];function Bx(e,t){return v.openBlock(),v.createElementBlock("svg",Lx,Rx)}const Z0=X(Ix,[["render",Bx]]),Vx={},$x={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Fx=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),zx=[Fx];function Gx(e,t){return v.openBlock(),v.createElementBlock("svg",$x,zx)}const Zh=X(Vx,[["render",Gx]]),Hx={},Ux={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Wx=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),Yx=[Wx];function qx(e,t){return v.openBlock(),v.createElementBlock("svg",Ux,Yx)}const Xl=X(Hx,[["render",qx]]),jx={},Xx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Zx=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),Kx=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),Jx=[Zx,Kx];function Qx(e,t){return v.openBlock(),v.createElementBlock("svg",Xx,Jx)}const Kh=X(jx,[["render",Qx]]),e2={},t2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},r2=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),n2=[r2];function a2(e,t){return v.openBlock(),v.createElementBlock("svg",t2,n2)}const Jh=X(e2,[["render",a2]]),o2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s2=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),l2=[s2];function u2(e,t){return v.openBlock(),v.createElementBlock("svg",i2,l2)}const cn=X(o2,[["render",u2]]),c2={},f2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},h2=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),d2=[h2];function v2(e,t){return v.openBlock(),v.createElementBlock("svg",f2,d2)}const Mi=X(c2,[["render",v2]]),p2={},g2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},m2=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),y2=[m2];function _2(e,t){return v.openBlock(),v.createElementBlock("svg",g2,y2)}const Zl=X(p2,[["render",_2]]),w2={},b2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},S2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),C2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),x2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),T2=[S2,C2,x2];function N2(e,t){return v.openBlock(),v.createElementBlock("svg",b2,T2)}const Kl=X(w2,[["render",N2]]),D2={},A2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},M2=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),k2=[M2];function E2(e,t){return v.openBlock(),v.createElementBlock("svg",A2,k2)}const Qh=X(D2,[["render",E2]]),P2={},I2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},L2=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),O2=[L2];function R2(e,t){return v.openBlock(),v.createElementBlock("svg",I2,O2)}const ed=X(P2,[["render",R2]]),B2={},V2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$2=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),F2=[$2];function z2(e,t){return v.openBlock(),v.createElementBlock("svg",V2,F2)}const Jl=X(B2,[["render",z2]]),G2={},H2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},U2=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),W2=[U2];function Y2(e,t){return v.openBlock(),v.createElementBlock("svg",H2,W2)}const td=X(G2,[["render",Y2]]),q2={},j2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},X2=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),Z2=[X2];function K2(e,t){return v.openBlock(),v.createElementBlock("svg",j2,Z2)}const rd=X(q2,[["render",K2]]),J2={},Q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},eT=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),tT=[eT];function rT(e,t){return v.openBlock(),v.createElementBlock("svg",Q2,tT)}const nd=X(J2,[["render",rT]]),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 nT(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const aT="local-";class oT{constructor(t=""){Hi(this,"namespace");Hi(this,"mapKey");Hi(this,"map");this.namespace=t,this.mapKey=aT+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:Jv()};Gu(a,r),this.map[t]=o,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 o=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return o===!1||o?o:r;this.delete(t)}else return o===!1||o?o:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),nT(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const od=new oT("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 Et(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}od.set(e,t,r)}function yt(e,t){return od.get(e,t)}const ki=e=>{od.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 Ei(e,t=!1){let r=e.records;t&&(r=r.map((a,o)=>({key:o,...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:()=>K.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Pi(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 xr=(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 o=n[a];RegExp.$1.length!==1&&(o=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,o)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},vi=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},iT=(e,t=500)=>{const r=e;let n;const a=function(...i){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,i)},t))};return a};function sT(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 lT(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)),o=r[a];return o?(e/Math.pow(10,a*3)).toFixed(t)+o:(e/Math.pow(10,a*3)).toFixed(0)}const uT={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:"扫一扫"}}},cT={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"}}},fT=Zt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...cT},"zh-CN":{...uT},"fr-FR":{}}}),Ir=fT,Cr=$t.createRouter({history:$t.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Hu=document.querySelector("html");Cr.beforeEach(()=>{Hu==null||Hu.removeAttribute("style")});const hT=Object.prototype.hasOwnProperty;function J0(e,t){const r=[];for(const n in e){if(!hT.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=J0(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:Uu}=R.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),to=Uh.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let If=Uh.CancelToken.source();to.interceptors.request.use(e=>{var r;e.cancelToken=If.token;const t=yt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=J0(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));to.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return r&&(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Uu.error({content:r||"网络错误,请稍后重试",duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(K0(),Cr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:ki("token"),window.location.href="/login";break;default:return Uu.destroyAll(),Uu.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const dT=()=>{If.cancel(),If=Uh.CancelToken.source()},id="/apiserver/",Q0=(e,t,r="json")=>to({url:`${id}${e}`,method:"GET",data:t,responseType:r}),ut=(e,t={},r="json",n=3e5)=>to({url:`${id}${e}`,method:"POST",data:t,responseType:r,timeout:n}),e_=e=>to(e),sd=(e,t)=>to({headers:{"Content-Type":"multipart/form-data"},url:`${id}${e}`,method:"POST",data:t}),t_="2.0.92";function vT(){const e=yt("platformListOwned",!1);if(e){const t=JSON.parse(e);return Qv(t),Promise.resolve(t.platformList)}return new Promise((t,r)=>{e_({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform.json",method:"GET",responseType:"text"}).then(n=>{const a=n,o={Components:{platformName:"Platform.components",platformType:"T0",platformUrl:"/"},...a.platform},i={platformList:o,owned:a.owned};Qv(i),Et("platformListOwned",i,"1 Day"),t(o)}).catch(()=>{r(!1)})})}const K=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>Ir.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{}});function Qv(e){K.platformList=e.platformList,K.owned=e.owned}function pT(e){K.platformMenu=e}function ld(e){K.download=e}function gT(e){K.language=e}function Ya(e){let t;e?t=e:K.lang==="zh-CN"?t="en-US":t="zh-CN",Et("lang",t,0),K.lang=t;const r=document.body;r.dataset.lang=t,Ir.global.locale.value=t}async function mT(e){const t=await vT();if(t){const r=t[e]||t.iot;K.platformName=()=>Ir.global.t(r.platformName),e==="Components"&&(K.platformName=()=>`${Ir.global.t(r.platformName)} ${t_}`),K.platformType=r.platformType,K.platformUrl=r.platformUrl,document.title=K.platformName()}}function Ii(e){K.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 yT(e){K.needUpdate=e}const r_=()=>{K.isMobile=window.screen.availWidth<769,K.isPad=window.screen.availWidth<1024};window.addEventListener("resize",r_);r_();const Ui=(e,t)=>v.h(R.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Tr=(e,t="default",r,n,a)=>{const o={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},i={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;o.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(o.onClick=e.onClick.bind(void 0,n,a))}return r&&(i.icon=()=>v.h(R.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(R.NButton,o,i)},Js=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const o=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",o)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(R.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},_T=(e,t,r)=>{let n;if(e.type==="detail"){const a=Tr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Ui(a,K.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Tr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Ui(a,K.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Tr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Ui(a,K.lang==="zh-CN"?"删除":"Delete"),n=Js(a,{...e,confirmText:K.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Tr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Ui(a,e.tooltipText)}return e.confirmText&&(n=Js(n,e,t,r)),n},wT=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=Tr({...a,buttonText:K.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=Tr({...a,buttonText:K.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=Js(Tr({...a,onClick:"",buttonText:K.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:K.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(o=Tr(a,a.color,void 0,t,r)),a.confirmText&&(o=Js(o,a,t,r)),n.push(o)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=wT(a.children,t,r);n.push(v.h(R.NPopover,{trigger:"hover"},{trigger:()=>Tr({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(R.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=_T(a,t,r);n.push(o)}}),v.h("div",{class:"action-flex"},{default:()=>n})},bT=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Et("token",r,0):ki("token"),t.replace(K.platformUrl)}}),ST={class:"com-card flex-center",style:{flex:"1"}},CT=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),xT=[CT];function TT(e,t,r,n,a,o){return v.openBlock(),v.createElementBlock("div",ST,xT)}const n_=X(bT,[["render",TT]]),NT=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:R.NButton,NIcon:R.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function DT(e,t,r,n,a,o){const i=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(i)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const a_=X(NT,[["render",DT]]),AT=v.defineComponent({name:"OcCircle",components:{NPopover:R.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}}}}),MT={viewBox:"40 20 120 120"},kT=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),ET=["stroke"],PT=["stroke"],IT=["r","transform","fill"],LT=["r","transform","fill"],OT={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function RT(e,t,r,n,a,o){const i=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",MT,[kT,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,ET),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,PT),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,IT)):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,LT)):v.createCommentVNode("",!0),v.createElementVNode("text",OT,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(i,{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 o_=X(AT,[["render",RT]]);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|