detect/detect.gui/Embedded/dist/assets/index-bf5147ab.js

2 lines
7.9 KiB
JavaScript
Raw Normal View History

2025-05-08 11:41:35 +08:00
var de=Object.defineProperty,fe=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var J=(e,s,o)=>s in e?de(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o,D=(e,s)=>{for(var o in s||(s={}))we.call(s,o)&&J(e,o,s[o]);if(G)for(var o of G(s))he.call(s,o)&&J(e,o,s[o]);return e},L=(e,s)=>fe(e,ge(s));var U=(e,s,o)=>new Promise((c,l)=>{var p=i=>{try{n(o.next(i))}catch(u){l(u)}},t=i=>{try{n(o.throw(i))}catch(u){l(u)}},n=i=>i.done?c(i.value):Promise.resolve(i.value).then(p,t);n((o=o.apply(e,s)).next())});import{x as Y,u as A,_ as E,aD as ye,p as N,a5 as me,d as De,aS as Z,c as Ce,f as x,as as ee,h as ke,aH as te,w as $e}from"./index.js";import{d as z,c as w,a6 as C,Z as f,_ as b,F as Be,ab as g,a4 as O,a5 as h,G as R,a0 as P,a9 as T,a8 as S,a1 as $,ad as oe,$ as K,k as V,f as k,g as _,u as a,J as v,w as Q,y as se,n as ve,aa as W,m as be,a7 as Se,ag as Oe,ah as Pe,r as ne,h as Te}from"./vue-72a104e4.js";import{aS as _e,a5 as Fe,b as He}from"./antd-0b1a4d04.js";const{t:X}=Y(),re={confirmLoading:{type:Boolean},showCancelBtn:{type:Boolean,default:!0},cancelButtonProps:Object,cancelText:{type:String,default:X("common.cancelText")},showOkBtn:{type:Boolean,default:!0},okButtonProps:Object,okText:{type:String,default:X("common.okText")},okType:{type:String,default:"primary"},showFooter:{type:Boolean},footerHeight:{type:[String,Number],default:60}},Le=D({isDetail:{type:Boolean},title:{type:String,default:""},loadingText:{type:String},showDetailBack:{type:Boolean,default:!0},open:{type:Boolean},loading:{type:Boolean},maskClosable:{type:Boolean,default:!0},getContainer:{type:[Object,String]},closeFunc:{type:[Function,Object],default:null},destroyOnClose:{type:Boolean}},re),Ne=z({name:"BasicDrawerFooter",props:L(D({},re),{height:{type:String,default:"60px"}}),emits:["ok","close"],setup(e,{emit:s}){const{prefixCls:o}=A("basic-drawer-footer"),c=w(()=>{const t=`${e.height}`;return{height:t,lineHeight:`calc(${t} - 1px)`}});function l(){s("ok")}function p(){s("close")}return{handleOk:l,prefixCls:o,handleClose:p,getStyle:c}}});function Re(e,s,o,c,l,p){const t=C("a-button");return e.showFooter||e.$slots.footer?(f(),b("div",{key:0,class:$(e.prefixCls),style:oe([e.getStyle,{background:"#13265a"}])},[e.$slots.footer?g(e.$slots,"footer",{key:1}):(f(),b(Be,{key:0},[g(e.$slots,"insertFooter"),e.showCancelBtn?(f(),O(t,T({key:0},e.cancelButtonProps,{onClick:e.handleClose,class:"mr-2 form-cancel"}),{default:h(()=>[R(P(e.cancelText),1)]),_:1},16,["onClick"])):S("",!0),g(e.$slots,"centerFooter"),e.showOkBtn?(f(),O(t,T({key:1,type:e.okType,onClick:e.handleOk},e.okButtonProps,{class:"mr-2 form-ok",loading:e.confirmLoading}),{default:h(()=>[R(P(e.okText),1)]),_:1},16,["type","onClick","loading"])):S("",!0),g(e.$slots,"appendFooter")],64))],6)):S("",!0)}const Ve=E(Ne,[["render",Re]]),je=z({name:"BasicDrawerHeader",components:{BasicTitle:ye,ArrowLeftOutlined:_e},props:{isDetail:N.bool,showDetailBack:N.bool,title:N.string},emits:["close"],setup(e,{emit:s}){const{prefixCls:o}=A("basic-drawer-header");function c(){s("close")}return{prefixCls:o,handleClose:c}}});const Ae={key:1};function Ee(e,s,o,c,l,p){const t=C("BasicTitle"),n=C("ArrowLeftOutlined");return e.isDetail?(f(),b("div",{key:1,class:$([e.prefixCls,`${e.prefixCls}--detail`])},[K("span",{class:$(`${e.prefixCls}__twrap`)},[e.showDetailBack?(f(),b("span",{key:0,onClick:s[0]||(s[0]=(...i)=>e.handleClose&&e.handleClose(...i))},[V(n,{class:$(`${e.prefixCls}__back`)},null,8,["class"])])):S("",!0),e.title?(f(),b("span",Ae,P(e.title),1)):S("",!0)],2),K("span",{class:$(`${e.prefixCls}__toolbar`)},[g(e.$slots,"titleToolbar")],2)],2)):(f(),O(t,{key:0,class:$(e.prefixCls),style:{"font-family":'"Noto Sans SC", serif',"font-size":"16px",color:"#ffffff"}},{default:h(()=>[g(e.$slots,"title"),R(" "+P(e.$slots.title?"":e.title),1)]),_:3},8,["class"]))}const ze=E(je,[["render",Ee]]),Ie=z({components:{Drawer:Fe,ScrollContainer:me,DrawerFooter:Ve,DrawerHeader:ze},inheritAttrs:!1,props:Le