import{e as w,f as h,S as a,g as f,C as F,h as E,c as m,a as e,u as t,i as A,b as i,w as x,j as b,r as v,o as y,d as g}from"./index.7e07b943.js";const C=()=>{const o=w({isDebug:"false",isSupport:!1,config:{zipopen:!0,fixed:"1"},svg:{zipname:"",filenametype:!1},tscode:{zipname:"",tsname:"Ant",filenametype:!1},html:""}),s=async()=>{const n=(await a.getTab()).url;o.isSupport=/^https?:\/\/(www.)?iconfont.cn/.test(n)},c=()=>{let l={filenametype:o.svg.filenametype?"name":"code",zipname:f.isNull(o.svg.zipname)?void 0:o.svg.zipname};o.config.zipopen&&(l.fixed=parseInt(o.config.fixed+"")),a.send(F.allSVG,l)},p=()=>{if(f.isNull(o.tscode.tsname)){a.log("\u7EC4\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");return}else if(!/^[A-z]+$/.test(o.tscode.tsname)){a.log("\u53EA\u80FD\u8F93\u5165\u82F1\u6587");return}let l={tsname:o.tscode.tsname,filenametype:o.tscode.filenametype?"name":"code",zipname:f.isNull(o.tscode.zipname)?void 0:o.tscode.zipname};o.config.zipopen&&(l.fixed=parseInt(o.config.fixed+"")),a.send(F.tscode,l)};return h(()=>{s()}),{conf:o,downloadSVG:c,exportTS:p}},D={style:{width:"400px","background-color":"#f2f2f2",overflow:"hidden auto",padding:"10px 15px",color:"#788fc3"}},z={class:"column fit",style:{gap:"10px"}},B=e("div",{class:"row flex-center",style:{"font-size":"20px","border-bottom":"1px solid #0000003b",height:"40px","font-family":"'\u5B8B\u4F53'"}}," Iconfont\u5DE5\u5177 ",-1),S={class:"col column relative",style:{gap:"5px"}},V={key:0,class:"absolute fit flex flex-center",style:{background:"#46463f8f","z-index":"9999","pointer-events":"all"}},U=e("div",{style:{color:"#ffffff","font-size":"20px"}},"\u8BF7\u8FDB\u5165iconfont\u7F51\u7AD9",-1),k=[U],L=e("div",{style:{"font-size":"14px"}}," \u6253\u5305\u914D\u7F6E ",-1),j={class:"column relative",style:{gap:"10px"}},N={class:"fit-width",style:{border:"1px solid #dcdfe6","border-radius":"4px"}},T={class:"column",style:{padding:"10px",margin:"0.5px",gap:"10px"}},G={class:"row items-center justify-between no-wrap",style:{gap:"10px"}},I={class:"col row items-center",style:{width:"120px"}},P=e("span",null,"\u538B\u7F29\u5F00\u542F\uFF1A",-1),M={class:"col row items-center"},H=e("span",null,"\u538B\u7F29\u6570\u7387\uFF1A",-1),O=e("div",{style:{"font-size":"14px"}}," \u4E0B\u8F7D\u672C\u9875\u6240\u6709SVG ",-1),Q={class:"column relative",style:{gap:"10px"}},R={class:"fit-width",style:{border:"1px solid #dcdfe6","border-radius":"4px"}},$={class:"column",style:{padding:"10px",margin:"0.5px",gap:"10px"}},q={class:"row items-center justify-between no-wrap",style:{gap:"10px"}},J={class:"col row items-center",style:{width:"120px"}},K=e("span",null,"\u538B\u7F29\u5305\u540D\uFF1A",-1),W={class:"col row items-center"},X=e("span",null,"\u6587\u4EF6\u540D\u79F0\uFF1A",-1),Y=e("div",{style:{"font-size":"14px"}}," \u5C06\u56FE\u6807\u5BFC\u51FA\u4E3Avue\u7EC4\u4EF6 ",-1),Z={class:"column relative",style:{gap:"10px"}},ee={class:"fit-width",style:{border:"1px solid #dcdfe6","border-radius":"4px"}},se={class:"column",style:{padding:"10px",margin:"0.5px",gap:"10px"}},te={class:"row items-center justify-between no-wrap",style:{gap:"10px"}},oe={class:"col row items-center",style:{width:"120px"}},ne=e("span",null,"\u538B\u7F29\u5305\u540D\uFF1A",-1),ue={class:"col row items-center"},ie=e("span",null,"\u6587\u4EF6\u540D\u79F0\uFF1A",-1),le={class:"row items-center justify-between"},ae=e("span",null,"\u7EC4\u4EF6\u540D\u79F0\uFF1A",-1),de=b('