"use strict";(self["webpackChunklinker_web"]=self["webpackChunklinker_web"]||[]).push([[199],{2322:function(e,s,t){t.d(s,{A:function(){return b}});var n=t(6768),a=t(4232);const l={class:"t-c"},c={class:"t-c w-100 mgt-1"};function o(e,s,t,o,r,d){const i=(0,n.g2)("Share"),u=(0,n.g2)("el-icon"),m=(0,n.g2)("el-button"),h=(0,n.g2)("el-transfer"),f=(0,n.g2)("el-dialog"),k=(0,n.g2)("AccessBoolean");return(0,n.uX)(),(0,n.Wv)(k,{value:"Sync"},{default:(0,n.k6)((({values:t})=>[(0,n.Lk)("div",null,[(0,n.RG)(e.$slots,"default",{},(()=>[(0,n.bF)(m,{class:"btn",size:"small",onClick:e=>o.handleShowSync(t)},{default:(0,n.k6)((()=>[(0,n.bF)(u,null,{default:(0,n.k6)((()=>[(0,n.bF)(i)])),_:1})])),_:2},1032,["onClick"])])),(0,n.bF)(f,{class:"options-center",title:e.$t("server.sync"),"destroy-on-close":"",modelValue:o.state.showNames,"onUpdate:modelValue":s[2]||(s[2]=e=>o.state.showNames=e),width:"54rem",top:"2vh"},{default:(0,n.k6)((()=>[(0,n.Lk)("div",null,[(0,n.Lk)("div",l,(0,a.v_)(`${e.$t("server.sync")}【${e.$t(`server.async${o.state.name}`)}】${e.$t("server.asyncText")}`),1),(0,n.bF)(h,{class:"src-tranfer mgt-1",modelValue:o.state.srcIdValues,"onUpdate:modelValue":s[0]||(s[0]=e=>o.state.srcIdValues=e),filterable:"","filter-method":o.srcFilterMethod,data:o.state.srcIds,titles:[e.$t("firewall.unselect"),e.$t("firewall.selected")],props:{key:"MachineId",label:"MachineName"}},null,8,["modelValue","filter-method","data","titles"]),(0,n.Lk)("div",c,[(0,n.bF)(m,{onClick:s[1]||(s[1]=e=>o.state.showNames=!1)},{default:(0,n.k6)((()=>[(0,n.eW)((0,a.v_)(e.$t("common.cancel")),1)])),_:1}),(0,n.bF)(m,{type:"primary",onClick:o.handleConfirm},{default:(0,n.k6)((()=>[(0,n.eW)((0,a.v_)(e.$t("common.confirm")),1)])),_:1},8,["onClick"])])])])),_:1},8,["title","modelValue"])])])),_:3})}var r=t(9299),d=t(4);const i=e=>(0,d.zG)("sync/Sync",e);var u=t(3830),m=t(7477),h=t(1219),f=t(144),k=t(5931),v={props:["name"],components:{Share:m.SYj},setup(e){const{t:s}=(0,k.s9)(),t=((0,u.B)(),(0,f.Kh)({name:e.name,loading:!1,showNames:!1,srcIdValues:[],srcIds:[]})),n=()=>{i({names:[e.name],ids:t.srcIdValues}).then((e=>{h.nk.success(s("common.oper")),t.showNames=!1}))},a=e=>{e.Sync?(t.showNames=!0,l()):h.nk.success(s("common.access"))},l=()=>{t.loading=!0,(0,r.NT)().then((e=>{t.loading=!1,t.srcIds=e})).catch((e=>{t.loading=!1}))},c=(e,s)=>s.MachineName.toLowerCase().includes(e.toLowerCase());return{state:t,handleShowSync:a,srcFilterMethod:c,handleConfirm:n}}},w=t(1241);const p=(0,w.A)(v,[["render",o]]);var b=p},2102:function(e,s,t){t.r(s),t.d(s,{default:function(){return m}});var n=t(6768);const a={class:"firewall-setting-wrap flex flex-column h-100"},l={class:"inner"};function c(e,s,t,c,o,r){const d=(0,n.g2)("Firewall");return(0,n.uX)(),(0,n.CE)("div",a,[(0,n.Lk)("div",l,[(0,n.bF)(d)])])}var o=t(144),r=t(5563),d={components:{Firewall:r.A},setup(e,{emit:s}){const t=(0,o.Kh)({});return{state:t}}},i=t(1241);const u=(0,i.A)(d,[["render",c],["__scopeId","data-v-c201dbbc"]]);var m=u}}]);