import{ae as w,af as A,ag as u,aR as g,ah as L,ai as t,aj as V,ak as b,al as c,am as a,an as e,ao as f,aC as r,b7 as k,aP as l,az as n,at as i,bB as D,aW as h,aY as B,aA as M,aZ as S,ap as C,aX as j,as as R,bA as I}from"./index-D68iA7pN.js";import{M as N}from"./index-AOcxwHT9.js";const q={class:"px-3 ShortcutKeySettingsDialog"},z={class:"d-flex justify-end my-2"},E={class:"w-100 text-left"},F=["onClick"],T={class:"d-flex justify-start my-2"},$={class:"d-flex justify-space-between"},K={class:"d-flex justify-space-between my-2"},Z=w({__name:"index",setup(P){const{isShow:m,showDialog:Q}=A(!1,"MxCloud_QuickCommand"),v=u([{title:"功能",type:"",value:0,list:[{name:"A",cmd:"S",cmdList:[{cmd:"f"},{cmd:"l"}]},{name:"B",cmd:"S",cmdList:[{cmd:"a"},{cmd:"d"}]}]},{title:"绘图",type:"",value:1,list:[{name:"画线",cmd:"MxLine",cmdList:[{cmd:"line"},{cmd:"l"}]},{name:"画圆弧",cmd:"Mx_Arc",cmdList:[{cmd:"arc"},{cmd:"_arc"}]}]}]),_=u(0),x=g(()=>v.value[_.value].list),o=u(0),p=g(()=>x.value[o.value].cmdList);return(U,s)=>(c(),L(N,{title:"命令行快捷命令设置","max-width":"800",modelValue:V(m),"onUpdate:modelValue":s[0]||(s[0]=d=>b(m)?m.value=d:null)},{actions:t(()=>s[9]||(s[9]=[a("div",{class:"my-1"},null,-1)])),default:t(()=>[a("div",q,[e(R,{class:"mt-2","align-stretch":"","no-gutters":""},{default:t(()=>[e(f,{cols:"3","align-self":"stretch",class:"h-100"},{default:t(()=>[e(r,{title:"分类"},{default:t(()=>[e(k,{class:"mt-1",height:"300px",items:v.value,"active-class":"active",selected:[_.value]},null,8,["items","selected"])]),_:1}),a("div",z,[e(l,{isAction:"",class:"mr-4"},{default:t(()=>[e(n,{"key-name":"E"},{default:t(()=>s[1]||(s[1]=[i("导出设置文件")])),_:1})]),_:1})])]),_:1}),e(f,{cols:"6","align-self":"stretch",style:{height:"300px"}},{default:t(()=>[e(r,{title:"功能列表"},{default:t(()=>[e(D,{class:"mt-1 mx-table",height:"300px"},{default:t(()=>[s[2]||(s[2]=a("thead",null,[a("tr",null,[a("th",null,"功能名称"),a("th",null,"快捷键")])],-1)),a("tbody",E,[(c(!0),h(j,null,B(x.value,(d,y)=>M((c(),h("tr",{key:d.cmd,class:S(o.value===y?"active":""),onClick:W=>o.value=y},[a("td",null,C(d.name),1),a("td",null,C(d.cmd),1)],10,F)),[[I]])),128))])]),_:1})]),_:1}),a("div",T,[e(l,{isAction:"",class:"ml-4"},{default:t(()=>[e(n,{"key-name":"I"},{default:t(()=>s[3]||(s[3]=[i("导入设置文件")])),_:1})]),_:1}),e(l,{isAction:"",class:"ml-8"},{default:t(()=>[e(n,{"key-name":"R"},{default:t(()=>s[4]||(s[4]=[i("恢复默认设置")])),_:1})]),_:1})])]),_:1}),e(f,{cols:"3","align-self":"stretch",class:"h-100"},{default:t(()=>[e(r,{title:"快捷命令"},{default:t(()=>[a("div",$,[e(l,null,{default:t(()=>[e(n,{"key-name":"A"},{default:t(()=>s[5]||(s[5]=[i("新增")])),_:1})]),_:1}),e(l,{class:"ml-2"},{default:t(()=>[e(n,{"key-name":"D"},{default:t(()=>s[6]||(s[6]=[i("删除")])),_:1})]),_:1})]),e(k,{class:"mt-1",height:"279px",items:p.value,"item-title":"cmd","item-value":"cmd","active-class":"active",selected:[p.value[0].cmd]},null,8,["items","selected"])]),_:1}),a("div",K,[e(l,{primary:"",isAction:""},{default:t(()=>s[7]||(s[7]=[i(" 确定 ")])),_:1}),e(l,{class:"ml-2",isAction:""},{default:t(()=>s[8]||(s[8]=[i(" 取消 ")])),_:1})])]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}});export{Z as default};