import{_ as C,b as k,r as i,ah as w,o as E,y as U,q as o,p as l,n as s,P as d,x as r,v as $,s as R,c5 as x,c0 as B,k as M,m as q,l as I,bv as L}from"./index.8d733f79.js";const N={class:"tip-text"},S={__name:"firstUploadConfigModal",emits:["confirm"],setup(D,{expose:_,emit:p}){const{t:m}=k(),a=i(!1),g=i(!1),f=i(null),t=w({localProjectFlag:null}),v={localProjectFlag:[{required:!0,message:m("pleaseSelectLocalProject"),trigger:"change"}]},b=()=>{a.value=!0,t.localProjectFlag=null},P=()=>{f.value.validate(e=>{!e||(p("confirm",{localProjectFlag:t.localProjectFlag}),a.value=!1)})};return _({showModal:b}),(e,n)=>{const u=x,j=B,y=M,F=q,V=I,h=L;return E(),U(h,{title:e.$t("otherConfig"),modelValue:s(a),"onUpdate:modelValue":n[1]||(n[1]=c=>R(a)?a.value=c:null),width:"440px","align-center":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"destroy-on-close":""},{footer:o(()=>[l(V,{type:"primary",onClick:P,loading:s(g)},{default:o(()=>[d(r(e.$t("confirm")),1)]),_:1},8,["loading"])]),default:o(()=>[$("p",N,r(e.$t("firstUploadLicenceTip")),1),l(F,{ref_key:"formRef",ref:f,model:s(t),rules:v,"label-width":"110px","label-position":"left"},{default:o(()=>[l(y,{label:e.$t("isLocalProject"),prop:"localProjectFlag",required:""},{default:o(()=>[l(j,{modelValue:s(t).localProjectFlag,"onUpdate:modelValue":n[0]||(n[0]=c=>s(t).localProjectFlag=c)},{default:o(()=>[l(u,{value:!0},{default:o(()=>[d(r(e.$t("yes")),1)]),_:1}),l(u,{value:!1},{default:o(()=>[d(r(e.$t("no")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title","modelValue"])}}},G=C(S,[["__scopeId","data-v-708a27b8"]]);export{G as default};
