import{ae as oe,af as z,bN as ne,aQ as ue,b4 as ie,ag as R,aR as V,a$ as q,aW as P,an as e,ai as l,aj as s,ak as F,aX as W,bx as de,al as k,am as m,ap as i,as as B,ao as f,az as r,at as d,aA as me,ah as E,aY as re,b9 as ve,b8 as fe,aZ as pe,b7 as ye,aF as N,aC as U,aG as ge,au as c,aP as p,bw as Ve,aw as ke}from"./index-D68iA7pN.js";import{M as H}from"./index-AOcxwHT9.js";const ce={class:"px-3 mt-2"},be={class:"h-100"},we={class:"h-100"},Ce={class:"w-50"},Se={class:"w-50"},xe={class:"mr-1"},Fe={class:"ml-5"},Be=oe({__name:"index",setup(Ne){const{isShow:y,showDialog:O}=z(!1,"Mx_Style"),_=ne(),{list:D,current:g,index:n,fontNames:T,fontStyles:A,isUpdate:X,newStyleName:b}=ue(_),{setIndex:Y,putCurrent:j,add:G,remove:Q,apply:L,init:Z}=_,J=[{name:"应用",fun:()=>{L()},disabled:()=>!X.value,primary:!0,labelProps:{"key-name":"A"}},{name:"关闭",fun:()=>O(!1)}],K={a:()=>{L()}},{isShow:w,showDialog:C}=z(!1),{open:ee}=ie(),S=R("所有样式"),h=V(()=>S.value==="正在使用样式"),u=V(()=>h.value?[g.value]:D.value),le=V(()=>u.value[n.value]===g.value),x=R(!1),ae=()=>{x.value=!0,Ve(()=>{x.value=!1})};q(h,()=>{n.value=u.value.indexOf(g.value)}),q(y,a=>{a&&Z()});const $=()=>{G(),C(!1),ae()},te={enter:$},v=V(()=>D.value[n.value].isBigFont),I=a=>v.value?(a=a.endsWith(".shx")?a:a+".shx",a.toLocaleLowerCase()):a;return(a,t)=>{const se=de("scroll-bottom");return k(),P(W,null,[e(H,{title:a.t("230"),"max-width":"600",modelValue:s(y),"onUpdate:modelValue":t[9]||(t[9]=o=>F(y)?y.value=o:null),footerBtnList:J,keys:K},{default:l(()=>[m("div",ce,[m("p",null,i(a.t("727"))+": "+i(s(g).name),1),e(B,{"align-stretch":""},{default:l(()=>[e(f,{cols:"4",class:"h-100","align-self":"start"},{default:l(()=>[m("div",be,[e(r,{"key-name":"S",colon:""},{default:l(()=>[d(i(a.t("422")),1)]),_:1}),me((k(),E(ye,{density:"compact",class:"overflow-y py-0 list-border",height:"230"},{default:l(()=>[(k(!0),P(W,null,re(u.value,(o,M)=>(k(),E(ve,{key:o.id,onClick:Ue=>s(Y)(M),value:o,class:"pa-0","min-height":"24",height:"24"},{prepend:l(()=>t[14]||(t[14]=[m("div",{style:{width:"24px"}},null,-1)])),default:l(()=>[e(fe,{textContent:i(o.name),class:pe(["",s(n)===M?"bg-light-blue-darken-2":""])},null,8,["textContent","class"])]),_:2},1032,["onClick","value"]))),128))]),_:1})),[[se,x.value]]),e(N,{class:"mt-2",modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=o=>S.value=o),items:["所有样式","正在使用样式"]},null,8,["modelValue"])])]),_:1}),e(f,{cols:"6",class:"h-100"},{default:l(()=>[m("div",we,[e(U,{title:a.t("662"),class:"mb-1"},{default:l(()=>[e(B,null,{default:l(()=>[m("div",Ce,[e(r,{"key-name":v.value?"X":"B",class:"ml-1"},{default:l(()=>[d(i(v.value?a.t("728"):a.t("729")),1)]),_:1},8,["key-name"]),e(N,{class:"mx-1","menu-props":{maxHeight:"200px"},items:s(T),"model-value":I((u.value[s(n)].isBigFont?u.value[s(n)].fileName:u.value[s(n)].typeFace)||s(T)[0]),"onUpdate:modelValue":t[1]||(t[1]=o=>{u.value[s(n)].isBigFont?u.value[s(n)].fileName=o:u.value[s(n)].typeFace=o})},null,8,["items","model-value"])]),m("div",Se,[e(r,{"key-name":v.value?"B":"Y",class:"ml-1"},{default:l(()=>[d(i(v.value?a.t("730"):a.t("731")),1)]),_:1},8,["key-name"]),e(N,{class:"mx-1","menu-props":{maxHeight:"200px"},items:s(A),"model-value":I(u.value[s(n)].isBigFont?u.value[s(n)].bigFontFileName||s(A)[0]:"常规"),"onUpdate:modelValue":t[2]||(t[2]=o=>{u.value[s(n)].isBigFont&&(u.value[s(n)].bigFontFileName=o)})},null,8,["items","model-value"])])]),_:1}),e(ge,{class:"mt-2","model-value":v.value,"onUpdate:modelValue":t[3]||(t[3]=o=>{o!==null&&(u.value[s(n)].isBigFont=o)})},{label:l(()=>[e(r,{"key-name":"U"},{default:l(()=>[d(i(a.t("732")),1)]),_:1})]),_:1},8,["model-value"])]),_:1},8,["title"]),e(U,{title:a.t("170"),class:"mt-4"},{default:l(()=>[e(c,{modelValue:u.value[s(n)].textSize,"onUpdate:modelValue":t[4]||(t[4]=o=>u.value[s(n)].textSize=o),type:"number",min:"0",step:"0.001"},{prepend:l(()=>[e(r,{"key-name":"T"},{default:l(()=>[d(i(a.t("544")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),e(U,{title:a.t("733"),class:"mt-4"},{default:l(()=>[e(c,{modelValue:u.value[s(n)].xScale,"onUpdate:modelValue":t[5]||(t[5]=o=>u.value[s(n)].xScale=o),type:"number",step:"0.001"},{prepend:l(()=>[e(r,{"key-name":"W",colon:""},{default:l(()=>[d(i(a.t("734")),1)]),_:1})]),_:1},8,["modelValue"]),e(c,{class:"mt-2",modelValue:u.value[s(n)].obliquingAngle,"onUpdate:modelValue":t[6]||(t[6]=o=>u.value[s(n)].obliquingAngle=o),type:"number",step:"0.001"},{prepend:l(()=>[e(r,{"key-name":"O",colon:""},{default:l(()=>[d(i(a.t("735")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"])])]),_:1}),e(f,{cols:"2","align-self":"start"},{default:l(()=>[e(p,{class:"mt-5 w-100",isAction:""},{default:l(()=>[e(r,{"key-name":"C",onClick:s(j)},{default:l(()=>[d(i(a.t("574")),1)]),_:1},8,["onClick"])]),_:1}),e(p,{class:"mt-4 w-100",isAction:""},{default:l(()=>[e(r,{"key-name":"N",onClick:t[7]||(t[7]=o=>s(C)())},{default:l(()=>[d(i(a.t("204")),1)]),_:1})]),_:1}),e(p,{class:"mt-4 w-100",isAction:"",onClick:t[8]||(t[8]=o=>s(ee)({text:a.t("736")+":"+a.t("422")+"1?",define:()=>s(Q)()})),disabled:le.value},{default:l(()=>[e(r,{"key-name":"D"},{default:l(()=>[d(i(a.t("148")),1)]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})])]),_:1},8,["title","modelValue"]),e(H,{title:a.t("737"),modelValue:s(w),"onUpdate:modelValue":t[13]||(t[13]=o=>F(w)?w.value=o:null),"max-width":"300",keys:te},{actions:l(()=>t[15]||(t[15]=[m("div",{class:"pa-1"},null,-1)])),default:l(()=>[e(B,{class:"py-3"},{default:l(()=>[e(f,{cols:"7","align-self":"start"},{default:l(()=>[e(c,{class:"mt-1 ml-8",modelValue:s(b),"onUpdate:modelValue":t[10]||(t[10]=o=>F(b)?b.value=o:null)},{prepend:l(()=>[m("span",xe,i(a.t("738"))+":",1)]),_:1},8,["modelValue"])]),_:1}),e(f,{cols:"5"},{default:l(()=>[m("div",Fe,[e(p,{primary:"",onClick:t[11]||(t[11]=o=>$()),isAction:""},{default:l(()=>[d(i(a.t("158")),1)]),_:1}),e(p,{class:"mt-2",onClick:t[12]||(t[12]=o=>s(C)()),isAction:""},{default:l(()=>[d(i(a.t("579")),1)]),_:1})])]),_:1})]),_:1})]),_:1},8,["title","modelValue"])],64)}}}),Te=ke(Be,[["__scopeId","data-v-6f9ef171"]]);export{Te as default};