物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

190 lines
56 KiB

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Show-goqU6zjl.js","./RelatedComps.vue_vue_type_script_setup_true_lang-DyVZQ5A1.js","./index-DPltKIjj.js","./index-bVOhw2NF.js","./index-DB_sRdQO.css","./index-xXhpGjLP.js","./vue-repl-jaFwbjhK.js","./vue-repl-B3ZhTsYW.css","./codemirror-editor-CFwWTn8s.js","./helpers-CjmtV6uB.js","./common-CalHcBJp.js","./index-C8mAaM2V.js","./editor-ouq_SSv2.js","./cloneDeep-C6NKQlMO.js","./_initCloneObject-K-Y0ueWp.js","./_getTag-BJ2nhJXz.js","./http-D9Asdp-z.js","./light-Cua7cqmF.js","./context-KbjOeZY_.js","./_baseFor-mOzdmxoL.js","./fade-in.cssr-CltBGdAW.js","./light-BKuBIbLH.js","./index-C-nsH7mf.js","./use-compitable-DMmt6sIs.js","./Loading-CByrJVhO.js","./icon-switch.cssr-BCTOxvoq.js","./use-is-mounted-wlrzLfZo.js","./use-style-qLHIyj3D.js","./dayjs.min-tKPc2Ebd.js","./toggleHighContrast-BiNrcRtm.js","./editorWorker-UB-8rWUJ.js","./toggleHighContrast-CaWkxAnq.css","./index-DJ3sd9uB.css","./codemirror-editor-BnxxqG2t.css","./GridRect-B5GXph4N.js","./GridRect-DWlZiPcU.css","./style-D4sssT3k.js","./style-DHpdUmiT.css","./index--DvuvRtv.css","./upload-DeP_4dQB.js","./Scrollbar-Db3aKfvv.js","./use-rtl-CRyak7TN.js","./light-uWHRDFKR.js","./light-CE5Kvs_2.js","./light-B00G814I.js","./Scrollbar-DVK2lT9w.js","./delegate-CI_DDEu_.js","./VResizeObserver-Tzd5ds8d.js","./get-precise-event-target-DhO46Lpt.js","./light-MOj96jwO.js","./use-locale-CFjRjALw.js","./index-Dn5RNViO.js","./use-merged-state-CzrzZJbg.js","./resolve-slot-Dzko3qih.js","./Input-CFQSA5NN.js","./browser-DLIXj5nt.js","./is-browser-DqcmxZSF.js","./use-form-item-CNgNT5jP.js","./use-memo-BgHp9YyU.js","./Suffix-BqBRFVnL.js","./Icon-Ck7Ij_E6.js","./upperFirst-Bq7Kgunw.js","./toString-eibgRg41.js","./call-f2ri57Kd.js","./Select-BpXzRZdb.js","./fade-in-scale-up.cssr-CTZmXn_X.js","./use-false-until-truthy-BNJRTcsy.js","./Follower-DJGS5Fnl.js","./cssr-CS9sbUmO.js","./utils-BKyMmInE.js","./render-BxFg9-7m.js","./light-BOD3MGQo.js","./color-to-class-B0iQgAn2.js","./Close-D6FODkWY.js","./Popover-DLIip8wF.js","./_baseEach-BwxcRWC6.js","./get-BuNGRF3A.js","./clickoutside-CCtiUDaG.js","./format-length-B-p6aW7q.js","./index-C9vhMoZJ.js","./flatten-7z_8MaI9.js","./index-L98eAIry.js","./keep-B1eBS8j0.js","./FocusDetector-DcygY9Tk.js","./happens-in-CM8LO42l.js","./index-DsSU6HIH.js","./Forward-B4Y9XmRi.js","./keysOf-HiGXOwLp.js","./omit-DbnPTcif.js","./context-CNWzaUOd.js","./Button-B7xQqa1N.js","./Tree-CzaEbcLe.js","./Checkbox-DAl6jmZx.js","./light-DU0-KyAX.js","./fade-in-height-expand.cssr-Bx380MfO.js","./light-D6zEcTvP.js","./FormItem-Cp_SJVoE.js","./Form-BZRGTIxb.js","./light-CUlEsFk3.js","./Modal-BHLPhdX-.js","./context-ELq7iLHP.js","./Card-BhgyLFi8.js","./light-BqIgj82_.js","./light-rvBL92Ju.js","./Warning-WCOp46KX.js","./Image-CAe7wDsQ.js","./light-jvBBpnb8.js","./light-C52Zdmem.js","./_createCompounder-D746aL6M.js","./Tooltip-C_3SXSAr.js","./download-C2161hUv.js","./noImage-CAsvTj-5.js","./light-Blmb_y9V.js","./Add-CgLKrdZy.js","./Progress-BpvQ1C2a.js","./light-DH15IGTV.js","./light-DWk6YUKo.js","./Icon-C8ZbiYW7.js","./light-DD97CHyt.js","./upload-CV8--ysU.css","./Switch-DWvSWYoO.js","./light-CdWU_bnm.js","./_common-CtIASumb.js","./text-ClDrYWYc.js","./Slider-C2GzLvgH.js","./light-CnxA-8p4.js","./_common-D9N4yDJ1.js","./CollapseItem-CnymMNIl.js","./light-BIogERFh.js","./ChevronRight-DjG_plXV.js","./Icon-B67kcA2X.js","./RadioGroup-5BphoArv.js","./light-CbIbiWrk.js","./get-slot-Bk_rJcZu.js","./use-keyboard-D_rBVq9u.js","./light-DGVaJDoA.js","./Icon-DK26VZIf.css","./ButtonGroup-BHJkQOUq.js","./InputNumber-BUVD-lKD.js","./light-BULoejUF.js","./dashboard-YyjCL4ge.js","./ColorPicker-PXaqdINa.js","./InputGroup-CLUcMivF.js","./light-BJxzOxOf.js","./Divider-aR5nu9et.js","./light-DiXDfyIH.js","./Search-Bp-OOsbn.js","./Grid-C11Tqhv0.js","./componentList-BKZexaIE.js","./index.vue_vue_type_script_setup_true_lang-Q6sPmgzz.js","./dark-C1gkUD1h.js","./light-CVXL3bIM.js","./light-DhWiRhmf.js","./light-DjE_cXZL.js","./_common-h0mJDxlK.js","./light-DiBdiU84.js","./light-B52QuVq1.js","./ConfigProvider-DuxYoVXL.js","./light-D7R7aswA.js","./route-block-B_A1xBdJ.js","./index-CzI4W9QJ.css","./Hide-CP-yit0w.js","./Animate-D-hlVtgO.js","./Transform-DSyh1DMV.js","./Tabs-ZZwx8VB9.js","./toNumber-C7_OyJEx.js","./Filter-uD1f35HG.js","./PageSwitch-BVZ_2zKv.js","./JumpToBigScreen-UPniLFWU.js","./KeyValue.vue_vue_type_script_setup_true_lang-BdTxAH94.js","./dashboardList-gGJtVfX3.js","./JumpToBigScreen-D7sp8vxH.css","./JumpToNewUrl-BBEiUjrv.js","./RequestData-Bm8sbmGx.js","./Badge-DsyC0t2f.js","./light-BklEEixl.js","./RequestData-CvAeh-ED.css","./UpdateStyles-Cd4lCy3N.js","./DispatchCommand-B5a87Ga2.js","./TransferData-R11epiOe.js"])))=>i.map(i=>d[i]);
import{d as Y,G as y,i as re,c as b,P as ve,F as se,s as W,E as He,O as Ve,o as L,f as he,w as l,J as x,b as Z,r as ge,u as R,q as s,e as S,j as io,N as le,l as q,_ as G,p as we,g as lo,K as xe}from"./index-bVOhw2NF.js";import{c as ao}from"./cloneDeep-C6NKQlMO.js";import{l as so,_ as je,a as Fe}from"./LayoutSider-DeJZf5oa.js";import{c as Ie}from"./context-KbjOeZY_.js";import{r as ae}from"./render-BxFg9-7m.js";import{N as co}from"./Icon-Ck7Ij_E6.js";import{u as _e}from"./use-memo-BgHp9YyU.js";import{a as uo,S as Le}from"./Icon-B67kcA2X.js";import{N as mo,B as Ke}from"./Button-B7xQqa1N.js";import{_ as Be}from"./Tooltip-C_3SXSAr.js";import{k as be}from"./keep-B1eBS8j0.js";import{k as Se}from"./keysOf-HiGXOwLp.js";import{f as vo}from"./fade-in-height-expand.cssr-Bx380MfO.js";import{b as I,c as C,d as j,a as _,e as me,u as po,f as Ue,h as fo}from"./light-Cua7cqmF.js";import{u as ho}from"./dark-C1gkUD1h.js";import{c as ye,V as go,g as qe}from"./Select-BpXzRZdb.js";import{u as Oe}from"./use-merged-state-CzrzZJbg.js";import{u as xo}from"./use-compitable-DMmt6sIs.js";import{c as te}from"./call-f2ri57Kd.js";import{c as bo}from"./index-L98eAIry.js";import{V as yo}from"./VResizeObserver-Tzd5ds8d.js";import{S as _o}from"./Scrollbar-Db3aKfvv.js";import{_ as Re}from"./text-ClDrYWYc.js";import{_ as Co}from"./Input-CFQSA5NN.js";import{_ as Pe}from"./Card-BhgyLFi8.js";import{_ as Ge,a as We}from"./Tabs-ZZwx8VB9.js";import{_ as De}from"./index.vue_vue_type_script_setup_true_lang-Q6sPmgzz.js";import{u as Je}from"./editor-ouq_SSv2.js";import{N as Ze}from"./noImage-CAsvTj-5.js";import{_ as zo}from"./Divider-aR5nu9et.js";import{_ as wo}from"./Badge-DsyC0t2f.js";import{_ as Io}from"./Modal-BHLPhdX-.js";import"./_initCloneObject-K-Y0ueWp.js";import"./_getTag-BJ2nhJXz.js";import"./ChevronRight-DjG_plXV.js";import"./light-kqX_tTNW.js";import"./Scrollbar-DVK2lT9w.js";import"./fade-in.cssr-CltBGdAW.js";import"./use-rtl-CRyak7TN.js";import"./index-C-nsH7mf.js";import"./delegate-CI_DDEu_.js";import"./get-precise-event-target-DhO46Lpt.js";import"./format-length-B-p6aW7q.js";import"./upperFirst-Bq7Kgunw.js";import"./toString-eibgRg41.js";import"./use-style-qLHIyj3D.js";import"./Checkbox-DAl6jmZx.js";import"./use-form-item-CNgNT5jP.js";import"./icon-switch.cssr-BCTOxvoq.js";import"./use-is-mounted-wlrzLfZo.js";import"./light-DU0-KyAX.js";import"./resolve-slot-Dzko3qih.js";import"./RadioGroup-5BphoArv.js";import"./light-CbIbiWrk.js";import"./flatten-7z_8MaI9.js";import"./get-slot-Bk_rJcZu.js";import"./Popover-DLIip8wF.js";import"./fade-in-scale-up.cssr-CTZmXn_X.js";import"./use-false-until-truthy-BNJRTcsy.js";import"./_baseEach-BwxcRWC6.js";import"./get-BuNGRF3A.js";import"./_baseFor-mOzdmxoL.js";import"./light-B00G814I.js";import"./clickoutside-CCtiUDaG.js";import"./Follower-DJGS5Fnl.js";import"./cssr-CS9sbUmO.js";import"./utils-BKyMmInE.js";import"./index-C9vhMoZJ.js";import"./Suffix-BqBRFVnL.js";import"./Loading-CByrJVhO.js";import"./Icon-C8ZbiYW7.js";import"./light-DD97CHyt.js";import"./happens-in-CM8LO42l.js";import"./use-keyboard-D_rBVq9u.js";import"./light-DGVaJDoA.js";import"./light-uWHRDFKR.js";import"./light-CE5Kvs_2.js";import"./light-MOj96jwO.js";import"./light-C52Zdmem.js";import"./FocusDetector-DcygY9Tk.js";import"./use-locale-CFjRjALw.js";import"./index-Dn5RNViO.js";import"./download-C2161hUv.js";import"./browser-DLIXj5nt.js";import"./is-browser-DqcmxZSF.js";import"./color-to-class-B0iQgAn2.js";import"./light-CVXL3bIM.js";import"./light-BqIgj82_.js";import"./light-DhWiRhmf.js";import"./light-BIogERFh.js";import"./light-BJxzOxOf.js";import"./light-DjE_cXZL.js";import"./light-rvBL92Ju.js";import"./light-DiXDfyIH.js";import"./_common-h0mJDxlK.js";import"./light-CUlEsFk3.js";import"./light-DH15IGTV.js";import"./_common-D9N4yDJ1.js";import"./light-BKuBIbLH.js";import"./light-DiBdiU84.js";import"./_common-CtIASumb.js";import"./light-B52QuVq1.js";import"./light-D6zEcTvP.js";import"./light-Blmb_y9V.js";import"./light-DWk6YUKo.js";import"./light-BOD3MGQo.js";import"./Close-D6FODkWY.js";import"./index-DsSU6HIH.js";import"./Forward-B4Y9XmRi.js";import"./omit-DbnPTcif.js";import"./context-CNWzaUOd.js";import"./Add-CgLKrdZy.js";import"./toNumber-C7_OyJEx.js";import"./toggleHighContrast-BiNrcRtm.js";import"./editorWorker-UB-8rWUJ.js";import"./light-BklEEixl.js";import"./context-ELq7iLHP.js";import"./Warning-WCOp46KX.js";const So=Y({name:"ChevronDownFilled",render(){return y("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),pe=Ie("n-menu"),Ae=Ie("n-submenu"),Ne=Ie("n-menu-item-group"),fe=8;function ke(e){const i=re(pe),{props:r,mergedCollapsedRef:p}=i,m=re(Ae,null),v=re(Ne,null),u=b(()=>r.mode==="horizontal"),c=b(()=>u.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),d=b(()=>{var f;return Math.max((f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize,r.iconSize)}),N=b(()=>{var f;return!u.value&&e.root&&p.value&&(f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize}),$=b(()=>{if(u.value)return;const{collapsedWidth:f,indent:k,rootIndent:V}=r,{root:F,isGroup:H}=e,M=V===void 0?k:V;return F?p.value?f/2-d.value/2:M:v&&typeof v.paddingLeftRef.value=="number"?k/2+v.paddingLeftRef.value:m&&typeof m.paddingLeftRef.value=="number"?(H?k/2:k)+m.paddingLeftRef.value:0}),w=b(()=>{const{collapsedWidth:f,indent:k,rootIndent:V}=r,{value:F}=d,{root:H}=e;return u.value||!H||!p.value?fe:(V===void 0?k:V)+F+fe-(f+F)/2});return{dropdownPlacement:c,activeIconSize:N,maxIconSize:d,paddingLeft:$,iconMarginRight:w,NMenu:i,NSubmenu:m}}const Ee={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Qe=Object.assign(Object.assign({},Ee),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Ro=Y({name:"MenuOptionGroup",props:Qe,setup(e){ve(Ae,null);const i=ke(e);ve(Ne,{paddingLeftRef:i.paddingLeft});const{mergedClsPrefixRef:r,props:p}=re(pe);return function(){const{value:m}=r,v=i.paddingLeft.value,{nodeProps:u}=p,c=u==null?void 0:u(e.tmNode.rawNode);return y("div",{class:`${m}-menu-item-group`,role:"group"},y("div",Object.assign({},c,{class:[`${m}-menu-item-group-title`,c==null?void 0:c.class],style:[(c==null?void 0:c.style)||"",v!==void 0?`padding-left: ${v}px;`:""]}),ae(e.title),e.extra?y(se,null," ",ae(e.extra)):null),y("div",null,e.tmNodes.map(d=>Te(d,p))))}}}),Xe=Y({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:i}=re(pe);return{menuProps:i,style:b(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:b(()=>{const{maxIconSize:r,activeIconSize:p,iconMarginRight:m}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${p}px`,marginRight:`${m}px`}})}},render(){const{clsPrefix:e,tmNode:i,menuProps:{renderIcon:r,renderLabel:p,renderExtra:m,expandIcon:v}}=this,u=r?r(i.rawNode):ae(this.icon);return y("div",{onClick:c=>{var d;(d=this.onClick)===null||d===void 0||d.call(this,c)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},u&&y("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[u]),y("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:p?p(i.rawNode):ae(this.title),this.extra||m?y("span",{class:`${e}-menu-item-content-header__extra`}," ",m?m(i.rawNode):ae(this.extra)):null),this.showArrow?y(co,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>v?v(i.rawNode):y(So,null)}):null)}}),Ye=Object.assign(Object.assign({},Ee),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Ce=Y({name:"Submenu",props:Ye,setup(e){const i=ke(e),{NMenu:r,NSubmenu:p}=i,{props:m,mergedCollapsedRef:v,mergedThemeRef:u}=r,c=b(()=>{const{disabled:f}=e;return p!=null&&p.mergedDisabledRef.value||m.disabled?!0:f}),d=W(!1);ve(Ae,{paddingLeftRef:i.paddingLeft,mergedDisabledRef:c}),ve(Ne,null);function N(){const{onClick:f}=e;f&&f()}function $(){c.value||(v.value||r.toggleExpand(e.internalKey),N())}function w(f){d.value=f}return{menuProps:m,mergedTheme:u,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:i.maxIconSize,activeIconSize:i.activeIconSize,iconMarginRight:i.iconMarginRight,dropdownPlacement:i.dropdownPlacement,dropdownShow:d,paddingLeft:i.paddingLeft,mergedDisabled:c,mergedValue:r.mergedValueRef,childActive:_e(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:r.activePathRef.value.includes(e.internalKey)}),collapsed:b(()=>m.mode==="horizontal"?!1:v.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:b(()=>!c.value&&(m.mode==="horizontal"||v.value)),handlePopoverShowChange:w,handleClick:$}},render(){var e;const{mergedClsPrefix:i,menuProps:{renderIcon:r,renderLabel:p}}=this,m=()=>{const{isHorizontal:u,paddingLeft:c,collapsed:d,mergedDisabled:N,maxIconSize:$,activeIconSize:w,title:f,childActive:k,icon:V,handleClick:F,menuProps:{nodeProps:H},dropdownShow:M,iconMarginRight:O,tmNode:z,mergedClsPrefix:o,isEllipsisPlaceholder:K,extra:U}=this,D=H==null?void 0:H(z.rawNode);return y("div",Object.assign({},D,{class:[`${o}-menu-item`,D==null?void 0:D.class],role:"menuitem"}),y(Xe,{tmNode:z,paddingLeft:c,collapsed:d,disabled:N,iconMarginRight:O,maxIconSize:$,activeIconSize:w,title:f,extra:U,showArrow:!u,childActive:k,clsPrefix:o,icon:V,hover:M,onClick:F,isEllipsisPlaceholder:K}))},v=()=>y(mo,null,{default:()=>{const{tmNodes:u,collapsed:c}=this;return c?null:y("div",{class:`${i}-submenu-children`,role:"menu"},u.map(d=>Te(d,this.menuProps)))}});return this.root?y(uo,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:p}),{default:()=>y("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},m(),this.isHorizontal?null:v())}):y("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},m(),v())}}),eo=Object.assign(Object.assign({},Ee),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Po=Y({name:"MenuOption",props:eo,setup(e){const i=ke(e),{NSubmenu:r,NMenu:p}=i,{props:m,mergedClsPrefixRef:v,mergedCollapsedRef:u}=p,c=r?r.mergedDisabledRef:{value:!1},d=b(()=>c.value||e.disabled);function N(w){const{onClick:f}=e;f&&f(w)}function $(w){d.value||(p.doSelect(e.internalKey,e.tmNode.rawNode),N(w))}return{mergedClsPrefix:v,dropdownPlacement:i.dropdownPlacement,paddingLeft:i.paddingLeft,iconMarginRight:i.iconMarginRight,maxIconSize:i.maxIconSize,activeIconSize:i.activeIconSize,mergedTheme:p.mergedThemeRef,menuProps:m,dropdownEnabled:_e(()=>e.root&&u.value&&m.mode!=="horizontal"&&!d.value),selected:_e(()=>p.mergedValueRef.value===e.internalKey),mergedDisabled:d,handleClick:$}},render(){const{mergedClsPrefix:e,mergedTheme:i,tmNode:r,menuProps:{renderLabel:p,nodeProps:m}}=this,v=m==null?void 0:m(r.rawNode);return y("div",Object.assign({},v,{role:"menuitem",class:[`${e}-menu-item`,v==null?void 0:v.class]}),y(Be,{theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>p?p(r.rawNode):ae(this.title),trigger:()=>y(Xe,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Ao=Y({name:"MenuDivider",setup(){const e=re(pe),{mergedClsPrefixRef:i,isHorizontalRef:r}=e;return()=>r.value?null:y("div",{class:`${i.value}-menu-divider`})}}),No=Se(Qe),ko=Se(eo),Eo=Se(Ye);function ze(e){return e.type==="divider"||e.type==="render"}function To(e){return e.type==="divider"}function Te(e,i){const{rawNode:r}=e,{show:p}=r;if(p===!1)return null;if(ze(r))return To(r)?y(Ao,Object.assign({key:e.key},r.props)):null;const{labelField:m}=i,{key:v,level:u,isGroup:c}=e,d=Object.assign(Object.assign({},r),{title:r.title||r[m],extra:r.titleExtra||r.extra,key:v,internalKey:v,level:u,root:u===0,isGroup:c});return e.children?e.isGroup?y(Ro,be(d,No,{tmNode:e,tmNodes:e.children,key:v})):y(Ce,be(d,Eo,{key:v,rawNodes:r[i.childrenField],tmNodes:e.children,tmNode:e})):y(Po,be(d,ko,{key:v,tmNode:e}))}const $e=[I("&::before","background-color: var(--n-item-color-hover);"),_("arrow",`
color: var(--n-arrow-color-hover);
`),_("icon",`
color: var(--n-item-icon-color-hover);
`),C("menu-item-content-header",`
color: var(--n-item-text-color-hover);
`,[I("a",`
color: var(--n-item-text-color-hover);
`),_("extra",`
color: var(--n-item-text-color-hover);
`)])],Me=[_("icon",`
color: var(--n-item-icon-color-hover-horizontal);
`),C("menu-item-content-header",`
color: var(--n-item-text-color-hover-horizontal);
`,[I("a",`
color: var(--n-item-text-color-hover-horizontal);
`),_("extra",`
color: var(--n-item-text-color-hover-horizontal);
`)])],Ho=I([C("menu",`
background-color: var(--n-color);
color: var(--n-item-text-color);
overflow: hidden;
transition: background-color .3s var(--n-bezier);
box-sizing: border-box;
font-size: var(--n-font-size);
padding-bottom: 6px;
`,[j("horizontal",`
max-width: 100%;
width: 100%;
display: flex;
overflow: hidden;
padding-bottom: 0;
`,[C("submenu","margin: 0;"),C("menu-item","margin: 0;"),C("menu-item-content",`
padding: 0 20px;
border-bottom: 2px solid #0000;
`,[I("&::before","display: none;"),j("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),C("menu-item-content",[j("selected",[_("icon","color: var(--n-item-icon-color-active-horizontal);"),C("menu-item-content-header",`
color: var(--n-item-text-color-active-horizontal);
`,[I("a","color: var(--n-item-text-color-active-horizontal);"),_("extra","color: var(--n-item-text-color-active-horizontal);")])]),j("child-active",`
border-bottom: 2px solid var(--n-border-color-horizontal);
`,[C("menu-item-content-header",`
color: var(--n-item-text-color-child-active-horizontal);
`,[I("a",`
color: var(--n-item-text-color-child-active-horizontal);
`),_("extra",`
color: var(--n-item-text-color-child-active-horizontal);
`)]),_("icon",`
color: var(--n-item-icon-color-child-active-horizontal);
`)]),me("disabled",[me("selected, child-active",[I("&:focus-within",Me)]),j("selected",[ne(null,[_("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),C("menu-item-content-header",`
color: var(--n-item-text-color-active-hover-horizontal);
`,[I("a","color: var(--n-item-text-color-active-hover-horizontal);"),_("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),j("child-active",[ne(null,[_("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),C("menu-item-content-header",`
color: var(--n-item-text-color-child-active-hover-horizontal);
`,[I("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),_("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ne("border-bottom: 2px solid var(--n-border-color-horizontal);",Me)]),C("menu-item-content-header",[I("a","color: var(--n-item-text-color-horizontal);")])])]),me("responsive",[C("menu-item-content-header",`
overflow: hidden;
text-overflow: ellipsis;
`)]),j("collapsed",[C("menu-item-content",[j("selected",[I("&::before",`
background-color: var(--n-item-color-active-collapsed) !important;
`)]),C("menu-item-content-header","opacity: 0;"),_("arrow","opacity: 0;"),_("icon","color: var(--n-item-icon-color-collapsed);")])]),C("menu-item",`
height: var(--n-item-height);
margin-top: 6px;
position: relative;
`),C("menu-item-content",`
box-sizing: border-box;
line-height: 1.75;
height: 100%;
display: grid;
grid-template-areas: "icon content arrow";
grid-template-columns: auto 1fr auto;
align-items: center;
cursor: pointer;
position: relative;
padding-right: 18px;
transition:
background-color .3s var(--n-bezier),
padding-left .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[I("> *","z-index: 1;"),I("&::before",`
z-index: auto;
content: "";
background-color: #0000;
position: absolute;
left: 8px;
right: 8px;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: var(--n-border-radius);
transition: background-color .3s var(--n-bezier);
`),j("disabled",`
opacity: .45;
cursor: not-allowed;
`),j("collapsed",[_("arrow","transform: rotate(0);")]),j("selected",[I("&::before","background-color: var(--n-item-color-active);"),_("arrow","color: var(--n-arrow-color-active);"),_("icon","color: var(--n-item-icon-color-active);"),C("menu-item-content-header",`
color: var(--n-item-text-color-active);
`,[I("a","color: var(--n-item-text-color-active);"),_("extra","color: var(--n-item-text-color-active);")])]),j("child-active",[C("menu-item-content-header",`
color: var(--n-item-text-color-child-active);
`,[I("a",`
color: var(--n-item-text-color-child-active);
`),_("extra",`
color: var(--n-item-text-color-child-active);
`)]),_("arrow",`
color: var(--n-arrow-color-child-active);
`),_("icon",`
color: var(--n-item-icon-color-child-active);
`)]),me("disabled",[me("selected, child-active",[I("&:focus-within",$e)]),j("selected",[ne(null,[_("arrow","color: var(--n-arrow-color-active-hover);"),_("icon","color: var(--n-item-icon-color-active-hover);"),C("menu-item-content-header",`
color: var(--n-item-text-color-active-hover);
`,[I("a","color: var(--n-item-text-color-active-hover);"),_("extra","color: var(--n-item-text-color-active-hover);")])])]),j("child-active",[ne(null,[_("arrow","color: var(--n-arrow-color-child-active-hover);"),_("icon","color: var(--n-item-icon-color-child-active-hover);"),C("menu-item-content-header",`
color: var(--n-item-text-color-child-active-hover);
`,[I("a","color: var(--n-item-text-color-child-active-hover);"),_("extra","color: var(--n-item-text-color-child-active-hover);")])])]),j("selected",[ne(null,[I("&::before","background-color: var(--n-item-color-active-hover);")])]),ne(null,$e)]),_("icon",`
grid-area: icon;
color: var(--n-item-icon-color);
transition:
color .3s var(--n-bezier),
font-size .3s var(--n-bezier),
margin-right .3s var(--n-bezier);
box-sizing: content-box;
display: inline-flex;
align-items: center;
justify-content: center;
`),_("arrow",`
grid-area: arrow;
font-size: 16px;
color: var(--n-arrow-color);
transform: rotate(180deg);
opacity: 1;
transition:
color .3s var(--n-bezier),
transform 0.2s var(--n-bezier),
opacity 0.2s var(--n-bezier);
`),C("menu-item-content-header",`
grid-area: content;
transition:
color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
opacity: 1;
white-space: nowrap;
color: var(--n-item-text-color);
`,[I("a",`
outline: none;
text-decoration: none;
transition: color .3s var(--n-bezier);
color: var(--n-item-text-color);
`,[I("&::before",`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),_("extra",`
font-size: .93em;
color: var(--n-group-text-color);
transition: color .3s var(--n-bezier);
`)])]),C("submenu",`
cursor: pointer;
position: relative;
margin-top: 6px;
`,[C("menu-item-content",`
height: var(--n-item-height);
`),C("submenu-children",`
overflow: hidden;
padding: 0;
`,[vo({duration:".2s"})])]),C("menu-item-group",[C("menu-item-group-title",`
margin-top: 6px;
color: var(--n-group-text-color);
cursor: default;
font-size: .93em;
height: 36px;
display: flex;
align-items: center;
transition:
padding-left .3s var(--n-bezier),
color .3s var(--n-bezier);
`)])]),C("menu-tooltip",[I("a",`
color: inherit;
text-decoration: none;
`)]),C("menu-divider",`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 6px 18px;
`)]);function ne(e,i){return[j("hover",e,i),I("&:hover",e,i)]}const Vo=Object.assign(Object.assign({},Ue.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),oo=Y({name:"Menu",props:Vo,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:r}=po(e),p=Ue("Menu","-menu",Ho,ho,e,i),m=re(so,null),v=b(()=>{var a;const{collapsed:g}=e;if(g!==void 0)return g;if(m){const{collapseModeRef:t,collapsedRef:h}=m;if(t.value==="width")return(a=h.value)!==null&&a!==void 0?a:!1}return!1}),u=b(()=>{const{keyField:a,childrenField:g,disabledField:t}=e;return ye(e.items||e.options,{getIgnored(h){return ze(h)},getChildren(h){return h[g]},getDisabled(h){return h[t]},getKey(h){var A;return(A=h[a])!==null&&A!==void 0?A:h.name}})}),c=b(()=>new Set(u.value.treeNodes.map(a=>a.key))),{watchProps:d}=e,N=W(null);d!=null&&d.includes("defaultValue")?He(()=>{N.value=e.defaultValue}):N.value=e.defaultValue;const $=Ve(e,"value"),w=Oe($,N),f=W([]),k=()=>{f.value=e.defaultExpandAll?u.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||u.value.getPath(w.value,{includeSelf:!1}).keyPath};d!=null&&d.includes("defaultExpandedKeys")?He(k):k();const V=xo(e,["expandedNames","expandedKeys"]),F=Oe(V,f),H=b(()=>u.value.treeNodes),M=b(()=>u.value.getPath(w.value).keyPath);ve(pe,{props:e,mergedCollapsedRef:v,mergedThemeRef:p,mergedValueRef:w,mergedExpandedKeysRef:F,activePathRef:M,mergedClsPrefixRef:i,isHorizontalRef:b(()=>e.mode==="horizontal"),invertedRef:Ve(e,"inverted"),doSelect:O,toggleExpand:o});function O(a,g){const{"onUpdate:value":t,onUpdateValue:h,onSelect:A}=e;h&&te(h,a,g),t&&te(t,a,g),A&&te(A,a,g),N.value=a}function z(a){const{"onUpdate:expandedKeys":g,onUpdateExpandedKeys:t,onExpandedNamesChange:h,onOpenNamesChange:A}=e;g&&te(g,a),t&&te(t,a),h&&te(h,a),A&&te(A,a),f.value=a}function o(a){const g=Array.from(F.value),t=g.findIndex(h=>h===a);if(~t)g.splice(t,1);else{if(e.accordion&&c.value.has(a)){const h=g.findIndex(A=>c.value.has(A));h>-1&&g.splice(h,1)}g.push(a)}z(g)}const K=a=>{const g=u.value.getPath(a??w.value,{includeSelf:!1}).keyPath;if(!g.length)return;const t=Array.from(F.value),h=new Set([...t,...g]);e.accordion&&c.value.forEach(A=>{h.has(A)&&!g.includes(A)&&h.delete(A)}),z(Array.from(h))},U=b(()=>{const{inverted:a}=e,{common:{cubicBezierEaseInOut:g},self:t}=p.value,{borderRadius:h,borderColorHorizontal:A,fontSize:to,itemHeight:no,dividerColor:ro}=t,n={"--n-divider-color":ro,"--n-bezier":g,"--n-font-size":to,"--n-border-color-horizontal":A,"--n-border-radius":h,"--n-item-height":no};return a?(n["--n-group-text-color"]=t.groupTextColorInverted,n["--n-color"]=t.colorInverted,n["--n-item-text-color"]=t.itemTextColorInverted,n["--n-item-text-color-hover"]=t.itemTextColorHoverInverted,n["--n-item-text-color-active"]=t.itemTextColorActiveInverted,n["--n-item-text-color-child-active"]=t.itemTextColorChildActiveInverted,n["--n-item-text-color-child-active-hover"]=t.itemTextColorChildActiveInverted,n["--n-item-text-color-active-hover"]=t.itemTextColorActiveHoverInverted,n["--n-item-icon-color"]=t.itemIconColorInverted,n["--n-item-icon-color-hover"]=t.itemIconColorHoverInverted,n["--n-item-icon-color-active"]=t.itemIconColorActiveInverted,n["--n-item-icon-color-active-hover"]=t.itemIconColorActiveHoverInverted,n["--n-item-icon-color-child-active"]=t.itemIconColorChildActiveInverted,n["--n-item-icon-color-child-active-hover"]=t.itemIconColorChildActiveHoverInverted,n["--n-item-icon-color-collapsed"]=t.itemIconColorCollapsedInverted,n["--n-item-text-color-horizontal"]=t.itemTextColorHorizontalInverted,n["--n-item-text-color-hover-horizontal"]=t.itemTextColorHoverHorizontalInverted,n["--n-item-text-color-active-horizontal"]=t.itemTextColorActiveHorizontalInverted,n["--n-item-text-color-child-active-horizontal"]=t.itemTextColorChildActiveHorizontalInverted,n["--n-item-text-color-child-active-hover-horizontal"]=t.itemTextColorChildActiveHoverHorizontalInverted,n["--n-item-text-color-active-hover-horizontal"]=t.itemTextColorActiveHoverHorizontalInverted,n["--n-item-icon-color-horizontal"]=t.itemIconColorHorizontalInverted,n["--n-item-icon-color-hover-horizontal"]=t.itemIconColorHoverHorizontalInverted,n["--n-item-icon-color-active-horizontal"]=t.itemIconColorActiveHorizontalInverted,n["--n-item-icon-color-active-hover-horizontal"]=t.itemIconColorActiveHoverHorizontalInverted,n["--n-item-icon-color-child-active-horizontal"]=t.itemIconColorChildActiveHorizontalInverted,n["--n-item-icon-color-child-active-hover-horizontal"]=t.itemIconColorChildActiveHoverHorizontalInverted,n["--n-arrow-color"]=t.arrowColorInverted,n["--n-arrow-color-hover"]=t.arrowColorHoverInverted,n["--n-arrow-color-active"]=t.arrowColorActiveInverted,n["--n-arrow-color-active-hover"]=t.arrowColorActiveHoverInverted,n["--n-arrow-color-child-active"]=t.arrowColorChildActiveInverted,n["--n-arrow-color-child-active-hover"]=t.arrowColorChildActiveHoverInverted,n["--n-item-color-hover"]=t.itemColorHoverInverted,n["--n-item-color-active"]=t.itemColorActiveInverted,n["--n-item-color-active-hover"]=t.itemColorActiveHoverInverted,n["--n-item-color-active-collapsed"]=t.itemColorActiveCollapsedInverted):(n["--n-group-text-color"]=t.groupTextColor,n["--n-color"]=t.color,n["--n-item-text-color"]=t.itemTextColor,n["--n-item-text-color-hover"]=t.itemTextColorHover,n["--n-item-text-color-active"]=t.itemTextColorActive,n["--n-item-text-color-child-active"]=t.itemTextColorChildActive,n["--n-item-text-color-child-active-hover"]=t.itemTextColorChildActiveHover,n["--n-item-text-color-active-hover"]=t.itemTextColorActiveHover,n["--n-item-icon-color"]=t.itemIconColor,n["--n-item-icon-color-hover"]=t.itemIconColorHover,n["--n-item-icon-color-active"]=t.itemIconColorActive,n["--n-item-icon-color-active-hover"]=t.itemIconColorActiveHover,n["--n-item-icon-color-child-active"]=t.itemIconColorChildActive,n["--n-item-icon-color-child-active-hover"]=t.itemIconColorChildActiveHover,n["--n-item-icon-color-collapsed"]=t.itemIconColorCollapsed,n["--n-item-text-color-horizontal"]=t.itemTextColorHorizontal,n["--n-item-text-color-hover-horizontal"]=t.itemTextColorHoverHorizontal,n["--n-item-text-color-active-horizontal"]=t.itemTextColorActiveHorizontal,n["--n-item-text-color-child-active-horizontal"]=t.itemTextColorChildActiveHorizontal,n["--n-item-text-color-child-active-hover-horizontal"]=t.itemTextColorChildActiveHoverHorizontal,n["--n-item-text-color-active-hover-horizontal"]=t.itemTextColorActiveHoverHorizontal,n["--n-item-icon-color-horizontal"]=t.itemIconColorHorizontal,n["--n-item-icon-color-hover-horizontal"]=t.itemIconColorHoverHorizontal,n["--n-item-icon-color-active-horizontal"]=t.itemIconColorActiveHorizontal,n["--n-item-icon-color-active-hover-horizontal"]=t.itemIconColorActiveHoverHorizontal,n["--n-item-icon-color-child-active-horizontal"]=t.itemIconColorChildActiveHorizontal,n["--n-item-icon-color-child-active-hover-horizontal"]=t.itemIconColorChildActiveHoverHorizontal,n["--n-arrow-color"]=t.arrowColor,n["--n-arrow-color-hover"]=t.arrowColorHover,n["--n-arrow-color-active"]=t.arrowColorActive,n["--n-arrow-color-active-hover"]=t.arrowColorActiveHover,n["--n-arrow-color-child-active"]=t.arrowColorChildActive,n["--n-arrow-color-child-active-hover"]=t.arrowColorChildActiveHover,n["--n-item-color-hover"]=t.itemColorHover,n["--n-item-color-active"]=t.itemColorActive,n["--n-item-color-active-hover"]=t.itemColorActiveHover,n["--n-item-color-active-collapsed"]=t.itemColorActiveCollapsed),n}),D=r?fo("menu",b(()=>e.inverted?"a":"b"),U,e):void 0,B=bo(),ie=W(null),E=W(null);let P=!0;const Q=()=>{var a;P?P=!1:(a=ie.value)===null||a===void 0||a.sync({showAllItemsBeforeCalculate:!0})};function J(){return document.getElementById(B)}const X=W(-1);function de(a){X.value=e.options.length-a}function ce(a){a||(X.value=-1)}const oe=b(()=>{const a=X.value;return{children:a===-1?[]:e.options.slice(a)}}),T=b(()=>{const{childrenField:a,disabledField:g,keyField:t}=e;return ye([oe.value],{getIgnored(h){return ze(h)},getChildren(h){return h[a]},getDisabled(h){return h[g]},getKey(h){var A;return(A=h[t])!==null&&A!==void 0?A:h.name}})}),ue=b(()=>ye([{}]).treeNodes[0]);function ee(){var a;if(X.value===-1)return y(Ce,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ue.value,domId:B,isEllipsisPlaceholder:!0});const g=T.value.treeNodes[0],t=M.value,h=!!(!((a=g.children)===null||a===void 0)&&a.some(A=>t.includes(A.key)));return y(Ce,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:h,tmNode:g,domId:B,rawNodes:g.rawNode.children||[],tmNodes:g.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:i,controlledExpandedKeys:V,uncontrolledExpanededKeys:f,mergedExpandedKeys:F,uncontrolledValue:N,mergedValue:w,activePath:M,tmNodes:H,mergedTheme:p,mergedCollapsed:v,cssVars:r?void 0:U,themeClass:D==null?void 0:D.themeClass,overflowRef:ie,counterRef:E,updateCounter:()=>{},onResize:Q,onUpdateOverflow:ce,onUpdateCount:de,renderCounter:ee,getCounter:J,onRender:D==null?void 0:D.onRender,showOption:K,deriveResponsiveState:Q}},render(){const{mergedClsPrefix:e,mode:i,themeClass:r,onRender:p}=this;p==null||p();const m=()=>this.tmNodes.map(d=>Te(d,this.$props)),u=i==="horizontal"&&this.responsive,c=()=>y("div",{role:i==="horizontal"?"menubar":"menu",class:[`${e}-menu`,r,`${e}-menu--${i}`,u&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},u?y(go,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:m,counter:this.renderCounter}):m());return u?y(yo,{onResize:this.onResize},{default:c}):c()}}),Oo={show:{animationEnabled:!0,animationOptions:{name:"fadeIn",iterationCount:1,timingFunction:"linear",direction:"normal",duration:.5,delay:0}},hide:{animationEnabled:!0,animationOptions:{name:"fadeOut",iterationCount:1,timingFunction:"linear",direction:"normal",duration:.5,delay:0}},animate:{animationEnabled:!0,animationOptions:{name:"lrd__opacity",iterationCount:1,timingFunction:"linear",direction:"normal",duration:.5,delay:0}},transform:{animationConfig:{"animation-iteration-count":1,"animation-direction":"normal","animation-delay":0},transformList:[{name:"变换1",translate:{x:0,y:0},rotate:{x:0,y:0,z:0},scale:{x:1,y:1},opacity:1,"animation-timing-function":"None","animation-duration":2}]},filter:{enabled:!1,"hue-rotate":0,saturate:100,brightness:100,contrast:100,blur:0},jumpToBigScreen:{params:[{key:"",value:"",result:"格式通过"}],bigscreenUrl:"",delay:0},jumpToNewUrl:{newUrl:"",openNewTab:!0,delay:0},requestData:{delay:0,globalVariablesUpdate:""},updateStyles:{delay:0},dispatchCommand:{delay:0,device:"",command:"",params:`
// console.log('deviceInfo', deviceInfo, 'command', command, 'event', event);
// 入参提示: deviceInfo -- 设备信息,command -- 指令信息, event -- 事件传参(当前部件所绑定的立即值,或当前部件经过计算后的自定义值), 入参计算。。。然后返回出参
return {
"condition": "",
"controlId": command.id,
"event": event
}`,method:"POST",url:"/thing/device/control/control"},transferData:{params:`
// console.log('datasets', datasets, 'eventData', eventData, 'components', components, 'component', component);
`}},Do=Y({__name:"Actions",props:{modelValue:{default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:i}){const r=e,p=i,m=q(()=>G(()=>import("./Show-goqU6zjl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160]),import.meta.url)),v=q(()=>G(()=>import("./Hide-CP-yit0w.js"),__vite__mapDeps([161,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160]),import.meta.url)),u=q(()=>G(()=>import("./Animate-D-hlVtgO.js"),__vite__mapDeps([162,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160]),import.meta.url)),c=q(()=>G(()=>import("./Transform-DSyh1DMV.js"),__vite__mapDeps([163,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,164,165]),import.meta.url)),d=q(()=>G(()=>import("./Filter-uD1f35HG.js"),__vite__mapDeps([166,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1]),import.meta.url)),N=q(()=>G(()=>import("./PageSwitch-BVZ_2zKv.js"),__vite__mapDeps([167,12,3,4,13,14,15,123,17,18,19,112,23,64,65,66,43,44,45,20,41,22,46,47,48,52,50,51,57,26,67,58,68,69,70,59,25,27,53,60,61,62,24,71,72,73,63,74,75,76,77,78,79,80,81,82,83,84,85,96,97,98,87,138,139,90,55,56,49,54,113]),import.meta.url)),$=q(()=>G(()=>import("./JumpToBigScreen-UPniLFWU.js"),__vite__mapDeps([168,169,90,17,18,14,19,3,4,41,55,56,25,26,58,57,72,53,27,24,63,54,49,50,51,52,22,59,60,61,62,45,20,46,47,48,64,65,66,43,44,23,67,68,69,70,71,73,74,75,15,76,77,78,79,80,81,82,83,84,85,130,92,93,131,132,133,117,118,129,134,135,42,107,40,86,87,88,89,109,110,136,123,112,170,16,21,96,97,98,138,139,113,171]),import.meta.url)),w=q(()=>G(()=>import("./JumpToNewUrl-BBEiUjrv.js"),__vite__mapDeps([172,3,4,123,17,18,14,19,112,23,54,55,56,41,53,49,27,50,51,52,57,58,22,59,25,26,60,61,62,24,45,20,46,47,48,63,96,97,98,87,78,76,81,92,93,138,139,90,72,113]),import.meta.url)),f=q(()=>G(()=>import("./RequestData-Bm8sbmGx.js"),__vite__mapDeps([173,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,174,175,176]),import.meta.url)),k=q(()=>G(()=>import("./UpdateStyles-Cd4lCy3N.js"),__vite__mapDeps([177,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160]),import.meta.url)),V=q(()=>G(()=>import("./DispatchCommand-B5a87Ga2.js"),__vite__mapDeps([178,149,3,4,29,30,31,140,16,17,18,14,19,20,21,22,23,24,25,26,27,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,15,76,77,78,79,80,81,82,83,84,85,86,87,88,89,123,112,96,97,98,174,175,90,109,107,101,102,120,121,122,138,139,113]),import.meta.url)),F=q(()=>G(()=>import("./TransferData-R11epiOe.js"),__vite__mapDeps([179,149,3,4,29,30,31,123,17,18,14,19,112,23,174,41,65,66,175,53,72,64,43,44,45,20,22,46,47,48,52,50,51,57,26,67,58,68,69,70,59,25,27,60,61,62,24,71,73,63,74,75,15,76,77,78,79,80,81,82,83,84,85,90,55,56,109,107,101,102,87,96,97,98]),import.meta.url)),H={show:m,hide:v,animate:u,transform:c,filter:d,pageSwitch:N,jumpToBigScreen:$,jumpToNewUrl:w,requestData:f,updateStyles:k,dispatchCommand:V,transferData:F},M=W("动作1"),O=b({get(){return r.modelValue},set(E){p("update:modelValue",E)}}),z=b(()=>({disabled:O.value.length>=10}));function o(){const E=`动作${O.value.length+1}`;O.value.push({name:E,type:"show",targetId:"",targetProps:{}}),M.value=E}function K(E){const{value:P}=O,Q=P.findIndex(X=>X.name===E);if(Q===-1)return;O.value.splice(Q,1);const J=O.value[O.value.length-1];J&&(M.value=J.name)}const U=W([{label:"显示",key:"show"},{label:"隐藏",key:"hide"},{label:"设置动画",key:"animate"},{label:"变换动画",key:"transform"},{label:"滤镜",key:"filter"},{label:"页面切换",key:"pageSwitch"},{label:"跳转大屏",key:"jumpToBigScreen"},{label:"跳转新地址",key:"jumpToNewUrl"},{label:"请求数据",key:"requestData"},{label:"更新组件样式",key:"updateStyles"},{label:"下发指令",key:"dispatchCommand"},{label:"数据传输",key:"transferData"}]),D={show:"显示",hide:"隐藏",animate:"设置动画",transform:"变换动画",filter:"滤镜",pageSwitch:"页面切换",jumpToBigScreen:"跳转大屏",jumpToNewUrl:"跳转新地址",requestData:"请求数据",updateStyles:"更新组件样式",dispatchCommand:"下发指令",transferData:"数据传输"};function B(E,P){return`动作${P+1}-${D[E]}`}function ie(E,P){const J=ao(Oo[E]);P.targetProps=J,P.type=E}return(E,P)=>{const Q=Re,J=Co,X=oo,de=je,ce=_o,oe=Fe,T=Pe,ue=Ge,ee=We;return L(),he(ee,{value:R(M),"onUpdate:value":P[0]||(P[0]=a=>le(M)?M.value=a:null),type:"card",addable:R(z),closable:"",size:"small","tab-style":"min-width: 80px;",class:"action-tabs h-full",onClose:K,onAdd:o},{prefix:l(()=>P[2]||(P[2]=[x(" 动作 ")])),default:l(()=>[(L(!0),Z(se,null,ge(R(O),(a,g)=>(L(),he(ue,{key:a.type,name:a.name,tab:B(a.type,g),class:"h-full"},{default:l(()=>[s(T,{class:"action-card h-full"},{default:l(()=>[s(oe,{"has-sider":"",class:"h-full bg-transparent"},{default:l(()=>[s(de,{bordered:"","content-style":"padding: 12px;",class:"bg-transparent",width:"200px"},{default:l(()=>[S("div",null,[s(Q,{class:"color-[#999]"},{default:l(()=>P[1]||(P[1]=[x(" 执行动作 ")])),_:1})]),s(J,{placeholder:"请输入关键词",class:"my-2",size:"tiny"}),s(X,{value:a.type,mode:"vertical",options:R(U),size:"small",class:"actions-menu","on-update:value":t=>{ie(t,a)},responsive:""},null,8,["value","options","on-update:value"])]),_:2},1024),s(oe,{class:"h-[500px] bg-transparent px-3 py-2"},{default:l(()=>[s(ce,{class:"h-full"},{default:l(()=>[(L(),he(io(H[a.type]),{modelValue:R(O)[g].targetProps,"onUpdate:modelValue":t=>R(O)[g].targetProps=t,"curr-action":R(O)[g]},null,8,["modelValue","onUpdate:modelValue","curr-action"]))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["name","tab"]))),128))]),_:1},8,["value","addable"])}}}),$o=we(Do,[["__scopeId","data-v-0e596548"]]),Mo={class:"flex items-center justify-between"},jo={class:"flex items-center justify-start"},Fo={class:"function-card-header"},Lo={class:"function-card-footer"},Ko={class:"action-container h-full w-full px-5 py-3"},Bo={key:0,class:"h-[580px] flex flex-col items-center justify-center"},Uo=["src"],qo={class:"w-full flex items-center justify-between"},Go={class:"flex flex-auto items-center justify-start"},Wo={class:"flex flex-auto items-center justify-end"},Jo={class:"function-card-header"},Zo={class:"function-card-footer"},Qo={class:"w-full flex items-center justify-end"},Xo={class:"flex flex-auto items-center justify-end"},Yo=Y({__name:"InteractDialog",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:i}){const r=e,p=i,m=Je(),v=b({get(){return r.modelValue},set(z){p("update:modelValue",z)}}),u=W("交互1"),c=b({get(){return m.current.interactions},set(z){m.current.interactions=z}}),d=b(()=>({disabled:c.value.length>=10}));function N(){const z=`交互${c.value.length+1}`;c.value.push({name:z,eventType:"click",triggerCondtion:"return true",action:[{name:"动作1",type:"show",targetId:"",targetProps:{}}]}),u.value=z}function $(z){const{value:o}=c,K=o.findIndex(D=>D.name===z);if(K===-1)return;c.value.splice(K,1);const U=c.value[c.value.length-1];U&&(u.value=U.name)}const w=b({get(){const{value:z}=c,o=z.findIndex(K=>K.name===u.value);return z[o]},set(z){const o=c.value.findIndex(K=>K.name===u.value);c.value[o]=z}}),f=b({get(){const{value:z}=w;return z.action},set(z){const{value:o}=w;o.action=z}}),k=W([{label:"单击",key:"click"},{label:"双击",key:"dblclick"},{label:"鼠标移入",key:"mouseenter"},{label:"鼠标移出",key:"mouseleave"},{label:"数据更新",key:"change"}]),V={click:"单击",dblclick:"双击",mouseenter:"鼠标移入",mouseleave:"鼠标移出",change:"数据更新"};function F(z,o){return`交互${o+1}-${V[z.eventType]}`}const H=W(!1);function M(){H.value=!0}function O(){v.value=!1}return(z,o)=>{const K=oo,U=Pe,D=zo,B=Re,ie=wo,E=Be,P=Ke,Q=je,J=Fe,X=Ge,de=We,ce=qe,oe=Io;return L(),Z(se,null,[s(oe,{show:R(v),"onUpdate:show":o[4]||(o[4]=T=>le(v)?v.value=T:null),"show-icon":!1,title:"交互编辑器",draggable:"",preset:"dialog",closable:!1,style:{width:"1150px",height:"750px"},class:"interact-dialog bg-[#E5E6EB] dark:bg-[rgb(24,24,28)]"},{action:l(()=>[S("div",qo,[S("div",Go,[s(ce,{class:"mx-2",type:"info"},{default:l(()=>o[26]||(o[26]=[x(" 说明 ")])),_:1}),s(B,null,{default:l(()=>o[27]||(o[27]=[x(" 请在预览页面查看结果 ")])),_:1})]),S("div",Wo,[s(P,{type:"info",secondary:"",class:"mr-2",onClick:o[3]||(o[3]=T=>v.value=!1)},{default:l(()=>o[28]||(o[28]=[x(" 取消 ")])),_:1}),s(P,{type:"primary",secondary:"",class:"mr-2",onClick:O},{default:l(()=>o[29]||(o[29]=[x(" 确认 ")])),_:1})])])]),default:l(()=>[s(de,{value:R(u),"onUpdate:value":o[2]||(o[2]=T=>le(u)?u.value=T:null),type:"card",addable:R(d),closable:"",size:"small","tab-style":"min-width: 80px;",onClose:$,onAdd:N},{prefix:l(()=>[o[23]||(o[23]=x(" 事件 ")),s(Le,{name:"单击",size:"16px",color:"#1890ff",class:"ml-2"})]),default:l(()=>[(L(!0),Z(se,null,ge(R(c),(T,ue)=>(L(),he(X,{key:T.eventType,name:T.name,tab:F(T,ue)},{default:l(()=>[s(J,{"has-sider":"",class:"interact-panel h-full bg-transparent"},{default:l(()=>[s(Q,{bordered:"","content-style":"padding: 10px 20px 10px 10px;",width:"230px"},{default:l(()=>[o[22]||(o[22]=S("h3",null,"类型",-1)),s(U,{class:"interact-type-card mt-2"},{default:l(()=>[s(K,{value:T.eventType,"onUpdate:value":ee=>T.eventType=ee,mode:"vertical",options:R(k),size:"small",responsive:""},null,8,["value","onUpdate:value","options"])]),_:2},1024),s(D,{style:{margin:"15px 0 10px 0"}}),S("div",Mo,[S("div",jo,[s(B,{class:"font-size-3"},{default:l(()=>o[9]||(o[9]=[x(" 自定义条件判断 ")])),_:1}),s(E,null,{trigger:l(()=>[s(ie,{value:"?",class:"ml-2",color:"gray"})]),default:l(()=>[o[10]||(o[10]=x(" 自定义条件判断,当满足条件时触发交互动作 "))]),_:1})]),s(P,{type:"primary",size:"tiny",secondary:"",onClick:M},{default:l(()=>o[11]||(o[11]=[x(" 弹窗编辑 ")])),_:1})]),s(U,{class:"filter-function-card mt-3"},{header:l(()=>[S("div",Fo,[s(B,{style:{"font-size":"13px","font-weight":"500"}},{default:l(()=>[s(E,null,{trigger:l(()=>o[12]||(o[12]=[S("span",{class:"mr-1 color-[#b478cf] decoration-underline"},"filter",-1)])),default:l(()=>[o[13]||(o[13]=x(" 自定义条件过滤函数,返回 true 或 false "))]),_:1}),o[18]||(o[18]=x(" ( ")),s(E,null,{trigger:l(()=>o[14]||(o[14]=[S("span",{class:"decoration-underline"},"dataset",-1)])),default:l(()=>[o[15]||(o[15]=x(" 当前组件的数据集:任意类型 "))]),_:1}),o[19]||(o[19]=x(", ")),s(E,null,{trigger:l(()=>o[16]||(o[16]=[S("span",{class:"decoration-underline"},"eventData",-1)])),default:l(()=>[o[17]||(o[17]=x(" 事件触发值 "))]),_:1}),o[20]||(o[20]=x(" ) { "))]),_:1})])]),default:l(()=>[s(De,{modelValue:R(w).triggerCondtion,"onUpdate:modelValue":o[0]||(o[0]=ee=>R(w).triggerCondtion=ee),mode:"javascript","show-line-numbers":!1,"show-gutter":!1,height:"200px"},null,8,["modelValue"])]),footer:l(()=>[S("div",Lo,[s(B,{style:{"font-size":"14px","font-weight":"500"}},{default:l(()=>o[21]||(o[21]=[x(" } ")])),_:1})])]),_:1})]),_:2},1024),s(J,{class:"bg-transparent"},{default:l(()=>[S("div",Ko,[s($o,{modelValue:R(f),"onUpdate:modelValue":o[1]||(o[1]=ee=>le(f)?f.value=ee:null)},null,8,["modelValue"])])]),_:1})]),_:2},1024)]),_:2},1032,["name","tab"]))),128))]),_:1},8,["value","addable"]),R(c).length===0?(L(),Z("div",Bo,[S("img",{src:R(Ze),alt:"noImage",class:"h-[200px] w-[200px]"},null,8,Uo),s(B,null,{default:l(()=>o[24]||(o[24]=[x(" 暂无事件 ")])),_:1}),s(P,{type:"primary",secondary:"",size:"large",class:"mt-2",onClick:N},{default:l(()=>o[25]||(o[25]=[x(" 新增事件 ")])),_:1})])):lo("",!0)]),_:1},8,["show"]),s(oe,{show:R(H),"onUpdate:show":o[8]||(o[8]=T=>le(H)?H.value=T:null),"show-icon":!1,title:"通过条件判断",draggable:"",preset:"dialog",closable:!1,style:{width:"1150px",height:"750px"},class:"interact-dialog bg-[#E5E6EB] dark:bg-[rgb(24,24,28)]"},{action:l(()=>[S("div",Qo,[S("div",Xo,[s(P,{type:"info",secondary:"",class:"mr-2",onClick:o[6]||(o[6]=T=>H.value=!1)},{default:l(()=>o[40]||(o[40]=[x(" 取消 ")])),_:1}),s(P,{type:"primary",secondary:"",class:"mr-2",onClick:o[7]||(o[7]=T=>H.value=!1)},{default:l(()=>o[41]||(o[41]=[x(" 确认 ")])),_:1})])])]),default:l(()=>[S("div",Jo,[s(B,{style:{"font-size":"13px","font-weight":"500"}},{default:l(()=>[s(E,null,{trigger:l(()=>o[30]||(o[30]=[S("span",{class:"mr-1 color-[#b478cf] decoration-underline"},"filter",-1)])),default:l(()=>[o[31]||(o[31]=x(" 自定义条件过滤函数,返回 true 或 false "))]),_:1}),o[36]||(o[36]=x(" ( ")),s(E,null,{trigger:l(()=>o[32]||(o[32]=[S("span",{class:"decoration-underline"},"dataset",-1)])),default:l(()=>[o[33]||(o[33]=x(" 当前组件的数据集:任意类型 "))]),_:1}),o[37]||(o[37]=x(", ")),s(E,null,{trigger:l(()=>o[34]||(o[34]=[S("span",{class:"decoration-underline"},"eventData",-1)])),default:l(()=>[o[35]||(o[35]=x(" 事件触发值 "))]),_:1}),o[38]||(o[38]=x(" ) { "))]),_:1})]),s(De,{modelValue:R(w).triggerCondtion,"onUpdate:modelValue":o[5]||(o[5]=T=>R(w).triggerCondtion=T),mode:"javascript","show-line-numbers":!1,"show-gutter":!1,height:"580px"},null,8,["modelValue"]),S("div",Zo,[s(B,{style:{"font-size":"14px","font-weight":"500"}},{default:l(()=>o[39]||(o[39]=[x(" } ")])),_:1})])]),_:1},8,["show"])],64)}}}),et=we(Yo,[["__scopeId","data-v-6393e7b5"]]),ot={class:"interact"},tt={class:"interact-title border-b border-b-1 border-light pb-2 dark:border-[#333]"},nt={class:"interact-content flex items-center justify-between border-b border-b-1 border-light py-2 dark:border-[#333]"},rt={key:0,class:"h-full flex flex-col items-center justify-center"},it=["src"],lt={key:1,class:"interact-list"},at=Y({__name:"interact",setup(e){const i=W(!1),r=Je(),p=b(()=>r.current),m=b(()=>r.current.interactions),v={click:"单击",dblclick:"双击",mouseenter:"鼠标移入",mouseleave:"鼠标移出",change:"数据更新"},u={show:"显示",hide:"隐藏",animate:"设置动画",transform:"变换动画",filter:"滤镜",jumpToBigScreen:"跳转大屏",jumpToNewUrl:"跳转新地址",requestData:"请求数据",updateStyles:"更新组件样式",dispatchCommand:"下发指令",transferData:"数据传输"};return(c,d)=>{const N=Re,$=Ke,w=qe,f=Pe;return L(),Z("div",ot,[S("div",tt,[s(N,{class:"color-[#999]"},{default:l(()=>[x(" 组件ID:"+xe(R(p).id),1)]),_:1}),d[2]||(d[2]=S("span",null,null,-1))]),S("div",nt,[s(N,{class:"color-[#999]"},{default:l(()=>d[3]||(d[3]=[x(" 交互事件配置 ")])),_:1}),s($,{size:"small",secondary:"",type:"primary",onClick:d[0]||(d[0]=k=>i.value=!0)},{icon:l(()=>[s(Le,{name:"修改",size:"14px"})]),default:l(()=>[d[4]||(d[4]=x(" 编辑 "))]),_:1})]),R(m).length===0?(L(),Z("div",rt,[S("img",{src:R(Ze),alt:"noImage",class:"h-[100px] w-[100px]"},null,8,it),s(N,null,{default:l(()=>d[5]||(d[5]=[x(" 暂无数据 ")])),_:1})])):(L(),Z("div",lt,[s(f,{class:"interact-item p-2"},{default:l(()=>[(L(!0),Z(se,null,ge(R(m),k=>(L(),Z("div",{key:k.eventType},[(L(!0),Z(se,null,ge(k.action,V=>(L(),Z("div",{key:V.type,class:"mb-2 flex items-center justify-between"},[s(w,{type:"info"},{default:l(()=>[x(xe(v[k.eventType]),1)]),_:2},1024),s($,{secondary:"",size:"small"},{default:l(()=>[x(xe(u[V.type]),1)]),_:2},1024)]))),128))]))),128))]),_:1})])),s(et,{modelValue:R(i),"onUpdate:modelValue":d[1]||(d[1]=k=>le(i)?i.value=k:null)},null,8,["modelValue"])])}}}),br=we(at,[["__scopeId","data-v-836a05f7"]]);export{br as default};