import{d as S,r as y,x as h,w as o,O as g,f as v,i as l,h as n,G as _,L as d,I as N,t as C,E as D,A as b,j as I,l as m,k as f,y as w,_ as A}from"./index-N7CMQwFv.js";const E={class:"d-flex justify-end"},T={class:"text-h4 text-center mb-2"},k={class:"d-flex justify-end align-center mt-10"},B=S({__name:"editStoreName",props:["type","editInputDialogVisible"],emits:["change:confirmEdit","update:editInputDialogVisible"],setup(a,{emit:x}){const s=a,u=x,i=y(null),c=()=>{u("update:editInputDialogVisible",!1),i.value=null},V=()=>{u("change:confirmEdit",i.value,s.type),i.value=null},p=e=>{if(e===1)return{text:"Set Store Name",title:"Set Store Name"};if(e===2)return{text:"Add your Shopify store URL to connect with ArtShiney",title:"Connect Shopify"};if(e===3)return{text:"Add your Woocommerce store URL to connect with ArtShiney",title:"Connect Woocommerce"};if(e===4)return{text:"Add your Tags Name",title:"Add Tags"};if(e===-1)return{text:"Set Store Name",title:"Set Store Name"};if(e===6)return{text:"Set Store Name",title:"Set Store Name"}};return(e,t)=>(v(),h(g,{modelValue:s.editInputDialogVisible,"onUpdate:modelValue":t[1]||(t[1]=r=>s.editInputDialogVisible=r),width:e.$vuetify.display.smAndDown?"auto":800,persistent:""},{default:o(()=>[l(w,{class:"pa-6 pa-2 pause-dialog"},{default:o(()=>[n("div",E,[l(_,{icon:"custom-close-line",onClick:d(c,["prevent"])})]),l(N,{class:"pa-5 pt-2"},{default:o(()=>[n("h4",T,C(p(a.type).title),1),n("div",null,[l(D,{modelValue:I(i),"onUpdate:modelValue":t[0]||(t[0]=r=>b(i)?i.value=r:null),label:p(a.type).text,inset:"",variant:"outlined",height:"50"},null,8,["modelValue","label"])]),n("div",k,[l(m,{variant:"outlined",color:"#6D788D",height:"42px",onClick:d(c,["prevent"])},{default:o(()=>t[2]||(t[2]=[f(" Cancel ")])),_:1,__:[2]}),l(m,{class:"text-none text-subtitle-1 ml-5",color:"#000000",height:"42px",variant:"flat",onClick:d(V,["prevent"])},{default:o(()=>t[3]||(t[3]=[f(" Confirm ")])),_:1,__:[3]})])]),_:1})]),_:1})]),_:1},8,["modelValue","width"]))}}),j=A(B,[["__scopeId","data-v-649f21c5"]]);export{j as E};