import{s as t}from"./store-F66kEjW2.js";import{d as V}from"./index-3qA-WN0K.js";import{d as F,K as i,aq as B,e as s,f as m,i as u,u as n,F as g,t as d,j as l,L as a,C as p,am as C,y as $,m as h}from"./vue-A59npLRR.js";import{_ as N}from"./index-EwE51S_X.js";import"./echarts-cxb9vJr1.js";const T={class:"confirm-file-conflict"},U={class:"conflict-title"},z={class:"conflict-title"},I={key:0},j={class:"center-buttons"},q=F({__name:"confirmFileConflict",setup(E){const w=()=>{t.dialog.common=!1,t.goodsInfo.enable=!0};return(e,r)=>{const y=i("el-alert"),c=i("el-table-column"),f=i("el-table"),b=i("el-option"),D=i("el-select"),_=i("el-button"),v=B("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(y,{closable:!1,center:!0,title:e.$t("module.Update warning"),class:"alert-warning",type:"warning"},null,8,["title"]),l(f,{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",z,d(e.$t("module.The module declares the added dependencies")),1),l(f,{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",I,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(D,{modelValue:o.row.solution,"onUpdate:modelValue":k=>o.row.solution=k},{default:a(()=>[l(b,{label:e.$t("Delete"),value:"delete"},null,8,["label"]),l(b,{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",j,[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(V)(!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]])])])}}}),H=N(q,[["__scopeId","data-v-c638e996"]]);export{H as default};