import{s as t,i as k}from"./index-EFlNRwTR.js";import{B,I as i,X as F,C as s,D as m,G as u,u as n,Z as g,U as d,H as l,P as a,W as p,_ as C,O as $,V as h}from"./vue-DweYBrEc.js";import{_ as N}from"./index-fNs72j9w.js";import"./index-CLJRKiC0.js";import"./terminal-B3G_hUkG.js";const T={class:"confirm-file-conflict"},U={class:"conflict-title"},I={class:"conflict-title"},z={key:0},E={class:"center-buttons"},G=B({__name:"confirmFileConflict",setup(H){const w=()=>{t.dialog.common=!1,t.goodsInfo.enable=!0};return(e,r)=>{const D=i("el-alert"),c=i("el-table-column"),b=i("el-table"),f=i("el-option"),y=i("el-select"),_=i("el-button"),v=F("blur");return s(),m("div",null,[u("div",T,[n(t).common.disableConflictFile.length?(s(),m(g,{key:0},[u("div",U,d(e.$t("module.File conflict")),1),l(D,{closable:!1,center:!0,title:e.$t("module.Update warning"),class:"alert-warning",type:"warning"},null,8,["title"]),l(b,{data:n(t).common.disableConflictFile,stripe:"",border:"",style:{width:"100%",marginBottom:"20px"}},{default:a(()=>[l(c,{prop:"file",label:e.$t("module.Conflict file")},null,8,["label"])]),_:1},8,["data"])],64)):p("",!0),n(t).common.disableDependConflict.length>0?(s(),m(g,{key:1},[u("div",I,d(e.$t("module.The module declares the added dependencies")),1),l(b,{data:n(t).common.disableDependConflict,stripe:"",border:"",style:{width:"100%"}},{default:a(()=>[l(c,{prop:"env",label:e.$t("module.environment")},{default:a(o=>[o.row.env?(s(),m("span",z,d(e.$t("module.env "+o.row.env)),1)):p("",!0)]),_:1},8,["label"]),l(c,{prop:"dependTitle",label:e.$t("module.Dependencies")},null,8,["label"]),l(c,{prop:"solution",width:"200",label:e.$t("module.Treatment scheme"),align:"center"},{default:a(o=>[l(y,{modelValue:o.row.solution,"onUpdate:modelValue":V=>o.row.solution=V},{default:a(()=>[l(f,{label:e.$t("Delete"),value:"delete"},null,8,["label"]),l(f,{label:e.$t("module.retain"),value:"retain"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data"])],64)):p("",!0)]),u("div",E,[C((s(),$(_,{class:"center-button",loading:n(t).loading.common,disabled:n(t).loading.common,size:"large",type:"primary",onClick:r[0]||(r[0]=o=>n(k)(!0))},{default:a(()=>[h(d(e.$t("module.Confirm to disable the module")),1)]),_:1},8,["loading","disabled"])),[[v]]),C((s(),$(_,{class:"center-button",size:"large",onClick:r[1]||(r[1]=o=>w())},{default:a(()=>[h(d(e.$t("Cancel")),1)]),_:1})),[[v]])])])}}}),Z=N(G,[["__scopeId","data-v-c638e996"]]);export{Z as default};
