import{f as Te,r as u,q as h,G as b,b as a,z as n,J as k,M as Ae,x as _,K as ee,L as ze,y as r,A as w,s as p,F as y,H,E as We,N as Me,O as Ne,X as le,P as Be,I as Fe}from"./index-CriPLLD7.js";import{s as te,C as Oe,a as je}from"./index-Df5zok-J.js";import{s as Re,Y as oe,a as K,F as Ge,L as Xe}from"./index-ZxaD-jjV.js";import{P as Ye}from"./index-WY9jkSm6.js";Te(Re);const Je={class:"stdout"},el={__name:"Setting",props:["theme"],setup(qe){const V=u(!1),Q=u(h.global.t("common.waiting-text")),L=u(!1),C=[{text:"true",value:!0},{text:"false",value:!1}],ae=[{text:"v2ray",value:"v2ray"},{text:"xray",value:"xray"},{text:"sing-box",value:"sing-box"},{text:"mihomo",value:"mihomo"},{text:"hysteria2",value:"hysteria2"}],ne=o=>{l.value.xrayHelper.coreType=o.value,s(),K({message:h.global.t("setting.switch-core")}).then(()=>{const e="/data/adb/xray",i=`${e}/bin/${o.value}`;switch(l.value.xrayHelper.corePath=i,o.value){case"v2ray":l.value.xrayHelper.coreConfig=`${e}/v2rayconfs/config.json`;break;case"xray":l.value.xrayHelper.coreConfig=`${e}/confs/`;break;case"sing-box":l.value.xrayHelper.coreConfig=`${e}/singconfs/`;break;case"mihomo":l.value.xrayHelper.coreConfig=`${e}/mihomoconfs/`,l.value.clash.template=`${e}/mihomoconfs/template.yaml`;break;case"hysteria2":l.value.xrayHelper.coreConfig=`${e}/hy2confs/config.yaml`;break}s(),pe(i)}).catch(()=>{})},U=u(!1),P=u(!1),S=u(!1),E=u(!1),D=u(!1),I=u(!1),T=u(!1),ie=o=>{l.value.xrayHelper.allowInsecure=o.value,s()},A=u(!1),se=(o,e)=>{l.value.xrayHelper.subList[e]=o},ue=o=>{l.value.xrayHelper.subList.splice(o,1)},re=()=>{l.value.xrayHelper.subList.push("")},z=u(!1),W=u(!1),M=u(!1),N=u(!1),de=o=>{l.value.adgHome.enable=o.value,s()},B=u(!1),F=u(!1),O=u(!1),ve=[{text:"tproxy",value:"tproxy"},{text:"tun",value:"tun"},{text:"tun2socks",value:"tun2socks"}],me=o=>{l.value.proxy.method=o.value,s()},j=u(!1),R=u(!1),G=u(!1),pe=o=>{Me(`ls ${o}`).then(e=>{e!==0&&K({message:h.global.t("setting.core-not-found")}).then(()=>{L.value=!0,setTimeout(()=>{ee("update core").then(i=>{Q.value=i})},300)}).catch(()=>{})})},ge=o=>{l.value.proxy.enableIPv6=o.value,s()},ye=o=>{l.value.proxy.autoDNSStrategy=o.value,s()},xe=[{text:"whitelist",value:"whitelist"},{text:"blacklist",value:"blacklist"}],he=o=>{l.value.proxy.mode=o.value,s()},X=u(!1),we=(o,e)=>{l.value.proxy.pkgList[e]=o},fe=o=>{l.value.proxy.pkgList.splice(o,1)},be=()=>{l.value.proxy.pkgList.push("")},Y=u(!1),ke=(o,e)=>{l.value.proxy.apList[e]=o},$e=o=>{l.value.proxy.apList.splice(o,1)},He=()=>{l.value.proxy.apList.push("")},J=u(!1),Ce=(o,e)=>{l.value.proxy.ignoreList[e]=o},ce=o=>{l.value.proxy.ignoreList.splice(o,1)},Ve=()=>{l.value.proxy.ignoreList.push("")},q=u(!1),Le=(o,e)=>{l.value.proxy.intraList[e]=o},Ue=o=>{l.value.proxy.intraList.splice(o,1)},Pe=()=>{l.value.proxy.intraList.push("")},l=u();function Se(){return{xrayHelper:{coreType:"",corePath:"",coreConfig:"",dataDir:"",runDir:"",cpuLimit:0,memLimit:0,proxyTag:"",allowInsecure:!1,subList:[],userAgent:""},clash:{dnsPort:0,template:"",panelUrl:""},adgHome:{enable:!1,address:"",workDir:"",dnsPort:0},proxy:{method:"",tproxyPort:0,socksPort:0,tunDevice:"",enableIPv6:!1,autoDNSStrategy:!1,mode:"",pkgList:[],apList:[],ignoreList:[],intraList:[]}}}const Ee=async()=>await Ne(le).then(o=>oe.parse(o)).catch(o=>{te(h.global.t("setting.cannot-get-config")+o)}),s=()=>{Ae(oe.stringify(l.value,{indent:4}),le),setTimeout(()=>{_("get status").then(o=>{o.pid.length>0&&ee("proxy refresh").then(()=>{te(h.global.t("setting.refresh-proxy"))})})},50)},De=()=>{setTimeout(()=>{Z(),V.value=!1},500)},Z=()=>{let o=localStorage.getItem("runningWarn");typeof o<"u"&&o!=null?o=JSON.parse(o):(o=!0,localStorage.setItem("runningWarn","true")),o&&_("get status").then(e=>{typeof e.pid=="string"&&e.pid.length>0&&K({title:h.global.t("common.tips"),message:h.global.t("setting.running-warn"),confirmButtonText:h.global.t("common.confirm-text"),cancelButtonText:h.global.t("common.ignore-text")}).catch(()=>{localStorage.setItem("runningWarn","false")})}),l.value=Se(),Ee().then(e=>{Object.assign(l.value.xrayHelper,e.xrayHelper),Object.assign(l.value.clash,e.clash),Object.assign(l.value.adgHome,e.adgHome),Object.assign(l.value.proxy,e.proxy)})};return Z(),(o,e)=>{const i=Oe,f=Be,c=je,Ie=Ye,v=Ge,d=ze,x=Fe,$=Xe;return r(),b(k,null,[a(Ie,{modelValue:V.value,"onUpdate:modelValue":e[22]||(e[22]=t=>V.value=t),onRefresh:De,"pulling-text":o.$t("common.pulling-text"),"loosing-text":o.$t("common.loosing-text"),"loading-text":o.$t("common.loading-text")},{default:n(()=>[a(c,{title:o.$t("setting.xrayhelper"),inset:""},{default:n(()=>[a(f,{actions:ae,onSelect:ne,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.xrayhelper-core-type"),"title-style":"max-width:35%;",value:l.value.xrayHelper.coreType,clickable:""},null,8,["title","value"]),e[63]||(e[63]=w("div",null,null,-1))]),_:1}),a(i,{title:o.$t("setting.xrayhelper-core-path"),"title-style":"max-width:35%;",value:l.value.xrayHelper.corePath,clickable:"",onClick:e[0]||(e[0]=t=>U.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-core-config"),"title-style":"max-width:35%;",value:l.value.xrayHelper.coreConfig,clickable:"",onClick:e[1]||(e[1]=t=>P.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-data-dir"),"title-style":"max-width:35%;",value:l.value.xrayHelper.dataDir,clickable:"",onClick:e[2]||(e[2]=t=>S.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-run-dir"),"title-style":"max-width:35%;",value:l.value.xrayHelper.runDir,clickable:"",onClick:e[3]||(e[3]=t=>E.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-cpu-limit"),"title-style":"max-width:35%;",value:l.value.xrayHelper.cpuLimit.toString(),clickable:"",onClick:e[4]||(e[4]=t=>D.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-mem-limit"),"title-style":"max-width:35%;",value:l.value.xrayHelper.memLimit.toString(),clickable:"",onClick:e[5]||(e[5]=t=>I.value=!0)},null,8,["title","value"]),l.value.xrayHelper.coreType!=="mihomo"?(r(),p(i,{key:0,title:o.$t("setting.xrayhelper-proxy-tag"),"title-style":"max-width:35%;",value:l.value.xrayHelper.proxyTag,clickable:"",onClick:e[6]||(e[6]=t=>T.value=!0)},null,8,["title","value"])):y("",!0),l.value.xrayHelper.coreType!=="mihomo"?(r(),p(f,{key:1,actions:C,onSelect:ie,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.xrayhelper-allow-insecure"),"title-style":"max-width:35%;",value:l.value.xrayHelper.allowInsecure.toString(),clickable:""},null,8,["title","value"]),e[64]||(e[64]=w("div",null,null,-1))]),_:1})):y("",!0),a(i,{title:o.$t("setting.xrayhelper-sub-list"),"title-style":"max-width:35%;",value:l.value.xrayHelper.subList.toString(),clickable:"",onClick:e[7]||(e[7]=t=>A.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.xrayhelper-user-agent"),"title-style":"max-width:35%;",value:l.value.xrayHelper.userAgent,clickable:"",onClick:e[8]||(e[8]=t=>z.value=!0)},null,8,["title","value"])]),_:1},8,["title"]),l.value.xrayHelper.coreType==="mihomo"?(r(),p(c,{key:0,title:o.$t("setting.clash"),inset:""},{default:n(()=>[a(i,{title:o.$t("setting.clash-dns-port"),"title-style":"max-width:35%;",value:l.value.clash.dnsPort.toString(),clickable:"",onClick:e[9]||(e[9]=t=>W.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.clash-template"),"title-style":"max-width:35%;",value:l.value.clash.template,clickable:"",onClick:e[10]||(e[10]=t=>M.value=!0)},null,8,["title","value"]),a(i,{title:o.$t("setting.panel-url"),"title-style":"max-width:35%;",value:l.value.clash.panelUrl,clickable:"",onClick:e[11]||(e[11]=t=>N.value=!0)},null,8,["title","value"])]),_:1},8,["title"])):y("",!0),a(c,{title:o.$t("setting.adghome"),inset:""},{default:n(()=>[a(f,{actions:C,onSelect:de,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.adghome-enable"),"title-style":"max-width:35%;",value:l.value.adgHome.enable.toString(),clickable:""},null,8,["title","value"]),e[65]||(e[65]=w("div",null,null,-1))]),_:1}),l.value.adgHome.enable?(r(),p(i,{key:0,title:o.$t("setting.adghome-address"),"title-style":"max-width:35%;",value:l.value.adgHome.address,clickable:"",onClick:e[12]||(e[12]=t=>B.value=!0)},null,8,["title","value"])):y("",!0),l.value.adgHome.enable?(r(),p(i,{key:1,title:o.$t("setting.adghome-work-dir"),"title-style":"max-width:35%;",value:l.value.adgHome.workDir,clickable:"",onClick:e[13]||(e[13]=t=>F.value=!0)},null,8,["title","value"])):y("",!0),l.value.adgHome.enable?(r(),p(i,{key:2,title:o.$t("setting.adghome-dns-port"),"title-style":"max-width:35%;",value:l.value.adgHome.dnsPort.toString(),clickable:"",onClick:e[14]||(e[14]=t=>O.value=!0)},null,8,["title","value"])):y("",!0)]),_:1},8,["title"]),a(c,{title:o.$t("setting.proxy"),inset:""},{default:n(()=>[a(f,{actions:ve,onSelect:me,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.proxy-method"),"title-style":"max-width:35%;",value:l.value.proxy.method,clickable:""},null,8,["title","value"]),e[66]||(e[66]=w("div",null,null,-1))]),_:1}),l.value.proxy.method==="tproxy"?(r(),p(i,{key:0,title:o.$t("setting.proxy-tproxy-port"),"title-style":"max-width:35%;",value:l.value.proxy.tproxyPort.toString(),clickable:"",onClick:e[15]||(e[15]=t=>j.value=!0)},null,8,["title","value"])):y("",!0),l.value.proxy.method==="tun2socks"?(r(),p(i,{key:1,title:o.$t("setting.proxy-socks-port"),"title-style":"max-width:35%;",value:l.value.proxy.socksPort.toString(),clickable:"",onClick:e[16]||(e[16]=t=>R.value=!0)},null,8,["title","value"])):y("",!0),l.value.proxy.method==="tun2socks"||l.value.proxy.method==="tun"?(r(),p(i,{key:2,title:o.$t("setting.proxy-tun-device"),"title-style":"max-width:35%;",value:l.value.proxy.tunDevice,clickable:"",onClick:e[17]||(e[17]=t=>G.value=!0)},null,8,["title","value"])):y("",!0),a(f,{actions:C,onSelect:ge,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.proxy-enable-ipv6"),"title-style":"max-width:35%;",value:l.value.proxy.enableIPv6.toString(),clickable:""},null,8,["title","value"]),e[67]||(e[67]=w("div",null,null,-1))]),_:1}),a(f,{actions:C,onSelect:ye,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.proxy-auto-dns-strategy"),"title-style":"max-width:35%;",value:l.value.proxy.autoDNSStrategy.toString(),clickable:""},null,8,["title","value"]),e[68]||(e[68]=w("div",null,null,-1))]),_:1}),l.value.proxy.method!=="tun"?(r(),p(f,{key:3,actions:xe,onSelect:he,placement:"bottom-end"},{reference:n(()=>[a(i,{title:o.$t("setting.proxy-mode"),"title-style":"max-width:35%;",value:l.value.proxy.mode,clickable:""},null,8,["title","value"]),e[69]||(e[69]=w("div",null,null,-1))]),_:1})):y("",!0),l.value.proxy.method!=="tun"?(r(),p(i,{key:4,title:o.$t("setting.proxy-pkg-list"),"title-style":"max-width:35%;",value:l.value.proxy.pkgList.toString(),clickable:"",onClick:e[18]||(e[18]=t=>X.value=!0)},null,8,["title","value"])):y("",!0),a(i,{title:o.$t("setting.proxy-ap-list"),"title-style":"max-width:35%;",value:l.value.proxy.apList.toString(),clickable:"",onClick:e[19]||(e[19]=t=>Y.value=!0)},null,8,["title","value"]),l.value.proxy.method!=="tun"?(r(),p(i,{key:5,title:o.$t("setting.proxy-ignore-list"),"title-style":"max-width:35%;",value:l.value.proxy.ignoreList.toString(),clickable:"",onClick:e[20]||(e[20]=t=>J.value=!0)},null,8,["title","value"])):y("",!0),l.value.proxy.method!=="tun"?(r(),p(i,{key:6,title:o.$t("setting.proxy-intra-list"),"title-style":"max-width:35%;",value:l.value.proxy.intraList.toString(),clickable:"",onClick:e[21]||(e[21]=t=>q.value=!0)},null,8,["title","value"])):y("",!0)]),_:1},8,["title"])]),_:1},8,["modelValue","pulling-text","loosing-text","loading-text"]),a(d,{show:U.value,"onUpdate:show":e[24]||(e[24]=t=>U.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-core-path"),modelValue:l.value.xrayHelper.corePath,"onUpdate:modelValue":e[23]||(e[23]=t=>l.value.xrayHelper.corePath=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:P.value,"onUpdate:show":e[26]||(e[26]=t=>P.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-core-config"),modelValue:l.value.xrayHelper.coreConfig,"onUpdate:modelValue":e[25]||(e[25]=t=>l.value.xrayHelper.coreConfig=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:S.value,"onUpdate:show":e[28]||(e[28]=t=>S.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-data-dir"),modelValue:l.value.xrayHelper.dataDir,"onUpdate:modelValue":e[27]||(e[27]=t=>l.value.xrayHelper.dataDir=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:E.value,"onUpdate:show":e[30]||(e[30]=t=>E.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-run-dir"),modelValue:l.value.xrayHelper.runDir,"onUpdate:modelValue":e[29]||(e[29]=t=>l.value.xrayHelper.runDir=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:D.value,"onUpdate:show":e[32]||(e[32]=t=>D.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-cpu-limit"),modelValue:l.value.xrayHelper.cpuLimit,"onUpdate:modelValue":e[31]||(e[31]=t=>l.value.xrayHelper.cpuLimit=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:I.value,"onUpdate:show":e[34]||(e[34]=t=>I.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-mem-limit"),modelValue:l.value.xrayHelper.memLimit,"onUpdate:modelValue":e[33]||(e[33]=t=>l.value.xrayHelper.memLimit=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:T.value,"onUpdate:show":e[36]||(e[36]=t=>T.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-proxy-tag"),modelValue:l.value.xrayHelper.proxyTag,"onUpdate:modelValue":e[35]||(e[35]=t=>l.value.xrayHelper.proxyTag=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:A.value,"onUpdate:show":e[37]||(e[37]=t=>A.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(i,{title:o.$t("setting.xrayhelper-sub-list"),"title-style":"max-width:100%;"},{"right-icon":n(()=>[a(x,{size:"1.2rem",name:"plus",onClick:re})]),_:1},8,["title"]),a($,null,{default:n(()=>[(r(!0),b(k,null,H(l.value.xrayHelper.subList,(t,m)=>(r(),p(v,{label:m+":",labelWidth:"1.5em","model-value":t,"onUpdate:modelValue":g=>se(g,m)},{"right-icon":n(()=>[a(x,{size:"1rem",name:"cross",onClick:g=>ue(m)},null,8,["onClick"])]),_:2},1032,["label","model-value","onUpdate:modelValue"]))),256))]),_:1})]),_:1},8,["show"]),a(d,{show:z.value,"onUpdate:show":e[39]||(e[39]=t=>z.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.xrayhelper-user-agent"),modelValue:l.value.xrayHelper.userAgent,"onUpdate:modelValue":e[38]||(e[38]=t=>l.value.xrayHelper.userAgent=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:W.value,"onUpdate:show":e[41]||(e[41]=t=>W.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.clash-dns-port"),modelValue:l.value.clash.dnsPort,"onUpdate:modelValue":e[40]||(e[40]=t=>l.value.clash.dnsPort=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:M.value,"onUpdate:show":e[43]||(e[43]=t=>M.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.clash-template"),modelValue:l.value.clash.template,"onUpdate:modelValue":e[42]||(e[42]=t=>l.value.clash.template=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:N.value,"onUpdate:show":e[45]||(e[45]=t=>N.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.panel-url"),modelValue:l.value.clash.panelUrl,"onUpdate:modelValue":e[44]||(e[44]=t=>l.value.clash.panelUrl=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:B.value,"onUpdate:show":e[47]||(e[47]=t=>B.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.adghome-address"),modelValue:l.value.adgHome.address,"onUpdate:modelValue":e[46]||(e[46]=t=>l.value.adgHome.address=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:F.value,"onUpdate:show":e[49]||(e[49]=t=>F.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.adghome-work-dir"),modelValue:l.value.adgHome.workDir,"onUpdate:modelValue":e[48]||(e[48]=t=>l.value.adgHome.workDir=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:O.value,"onUpdate:show":e[51]||(e[51]=t=>O.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.adghome-dns-port"),modelValue:l.value.adgHome.dnsPort,"onUpdate:modelValue":e[50]||(e[50]=t=>l.value.adgHome.dnsPort=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:j.value,"onUpdate:show":e[53]||(e[53]=t=>j.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.proxy-tproxy-port"),modelValue:l.value.proxy.tproxyPort,"onUpdate:modelValue":e[52]||(e[52]=t=>l.value.proxy.tproxyPort=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:R.value,"onUpdate:show":e[55]||(e[55]=t=>R.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.proxy-socks-port"),modelValue:l.value.proxy.socksPort,"onUpdate:modelValue":e[54]||(e[54]=t=>l.value.proxy.socksPort=t),modelModifiers:{number:!0}},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:G.value,"onUpdate:show":e[57]||(e[57]=t=>G.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(v,{class:"config",label:o.$t("setting.proxy-tun-device"),modelValue:l.value.proxy.tunDevice,"onUpdate:modelValue":e[56]||(e[56]=t=>l.value.proxy.tunDevice=t)},null,8,["label","modelValue"])]),_:1},8,["show"]),a(d,{show:X.value,"onUpdate:show":e[58]||(e[58]=t=>X.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(i,{title:o.$t("setting.proxy-pkg-list"),"title-style":"max-width:100%;"},{"right-icon":n(()=>[a(x,{size:"1.2rem",name:"plus",onClick:be})]),_:1},8,["title"]),a($,null,{default:n(()=>[(r(!0),b(k,null,H(l.value.proxy.pkgList,(t,m)=>(r(),p(v,{label:m+":",labelWidth:"1.5em","model-value":t,"onUpdate:modelValue":g=>we(g,m)},{"right-icon":n(()=>[a(x,{size:"1rem",name:"cross",onClick:g=>fe(m)},null,8,["onClick"])]),_:2},1032,["label","model-value","onUpdate:modelValue"]))),256))]),_:1})]),_:1},8,["show"]),a(d,{show:Y.value,"onUpdate:show":e[59]||(e[59]=t=>Y.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(i,{title:o.$t("setting.proxy-ap-list"),"title-style":"max-width:100%;"},{"right-icon":n(()=>[a(x,{size:"1.2rem",name:"plus",onClick:He})]),_:1},8,["title"]),a($,null,{default:n(()=>[(r(!0),b(k,null,H(l.value.proxy.apList,(t,m)=>(r(),p(v,{label:m+":",labelWidth:"1.5em","model-value":t,"onUpdate:modelValue":g=>ke(g,m)},{"right-icon":n(()=>[a(x,{size:"1rem",name:"cross",onClick:g=>$e(m)},null,8,["onClick"])]),_:2},1032,["label","model-value","onUpdate:modelValue"]))),256))]),_:1})]),_:1},8,["show"]),a(d,{show:J.value,"onUpdate:show":e[60]||(e[60]=t=>J.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(i,{title:o.$t("setting.proxy-ignore-list"),"title-style":"max-width:100%;"},{"right-icon":n(()=>[a(x,{size:"1.2rem",name:"plus",onClick:Ve})]),_:1},8,["title"]),a($,null,{default:n(()=>[(r(!0),b(k,null,H(l.value.proxy.ignoreList,(t,m)=>(r(),p(v,{label:m+":",labelWidth:"1.5em","model-value":t,"onUpdate:modelValue":g=>Ce(g,m)},{"right-icon":n(()=>[a(x,{size:"1rem",name:"cross",onClick:g=>ce(m)},null,8,["onClick"])]),_:2},1032,["label","model-value","onUpdate:modelValue"]))),256))]),_:1})]),_:1},8,["show"]),a(d,{show:q.value,"onUpdate:show":e[61]||(e[61]=t=>q.value=t),round:"",style:{width:"90%",maxHeight:"85%"},onClosed:s},{default:n(()=>[a(i,{title:o.$t("setting.proxy-intra-list"),"title-style":"max-width:100%;"},{"right-icon":n(()=>[a(x,{size:"1.2rem",name:"plus",onClick:Pe})]),_:1},8,["title"]),a($,null,{default:n(()=>[(r(!0),b(k,null,H(l.value.proxy.intraList,(t,m)=>(r(),p(v,{label:m+":",labelWidth:"1.5em","model-value":t,"onUpdate:modelValue":g=>Le(g,m)},{"right-icon":n(()=>[a(x,{size:"1rem",name:"cross",onClick:g=>Ue(m)},null,8,["onClick"])]),_:2},1032,["label","model-value","onUpdate:modelValue"]))),256))]),_:1})]),_:1},8,["show"]),a(d,{show:L.value,"onUpdate:show":e[62]||(e[62]=t=>L.value=t),round:"",style:{width:"90%",minHeight:"30%",maxHeight:"85%"}},{default:n(()=>[a(i,{title:o.$t("common.stdout"),"title-style":"max-width:100%;",size:"large"},null,8,["title"]),w("div",Je,[w("p",null,We(Q.value),1)])]),_:1},8,["show"])],64)}}};export{el as default};
