import{r as h,ah as P,o as j,y,q as t,v as w,p as a,P as m,x as u,n,s as E,eT as $,S as b,cK as k,k as C,m as S,l as U,bv as x}from"./index.8d733f79.js";const B={class:"dialog-footer"},M={__name:"localUrlConfig",emits:["refesh"],setup(D,{expose:d,emit:f}){const l=h(!1),o=P({factoryId:"",localProjectFlag:""});function p(e){l.value=!0,o.factoryId=e.id,o.localProjectFlag=e.localProjectFlag}function _(){$(o).then(e=>{b.success(e.msg),f("refesh"),c()})}function c(){l.value=!1}return d({showModal:p}),(e,s)=>{const g=k,v=C,F=S,i=U,V=x;return j(),y(V,{title:e.$t("localUrlSet"),modelValue:n(l),"onUpdate:modelValue":s[1]||(s[1]=r=>E(l)?l.value=r:null),width:"400px","align-center":!0,onClose:c},{footer:t(()=>[w("div",B,[a(i,{onClick:c},{default:t(()=>[m(u(e.$t("cancel")),1)]),_:1}),a(i,{type:"primary",onClick:_},{default:t(()=>[m(u(e.$t("confirm")),1)]),_:1})])]),default:t(()=>[a(F,{ref:"setFormRef",model:n(o)},{default:t(()=>[a(v,{label:e.$t("isLocalProject"),prop:"localProjectFlag"},{default:t(()=>[a(g,{modelValue:n(o).localProjectFlag,"onUpdate:modelValue":s[0]||(s[0]=r=>n(o).localProjectFlag=r),"inline-prompt":"","active-text":e.$t("yes"),"inactive-text":e.$t("no")},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title","modelValue"])}}};export{M as default};
