import{e as _,H as h,w as C,ai as b,o as n,c as i,a as e,t as k,aj as t,h as d,m as p,d as r,_ as v}from"./DpdQcRr7.js";const y={key:0,class:"modal is-active"},B={class:"modal-card-head"},$={class:"modal-card-title"},w={class:"modal-card-body"},T={key:0,class:"modal-card-foot"},x=_({__name:"Modal",props:{isActive:{type:Boolean},title:{},size:{default:"medium"},showFooter:{type:Boolean,default:!0}},emits:["close","confirm","cancel"],setup(s,{emit:m}){const a=m,c=()=>{a("close")},u=()=>{a("confirm")},f=()=>{a("cancel"),a("close")};return(o,l)=>(n(),h(b,{name:"modal"},{default:C(()=>[s.isActive?(n(),i("div",y,[e("div",{class:"modal-background",onClick:c}),e("div",{class:p(["modal-card",`is-${s.size}`])},[e("header",B,[e("p",$,k(s.title),1),e("button",{class:"delete","aria-label":"close",onClick:c})]),e("section",w,[t(o.$slots,"body",{},()=>[t(o.$slots,"default",{},void 0,!0)],!0)]),s.showFooter?(n(),i("footer",T,[t(o.$slots,"footer",{},()=>[e("button",{class:"button is-primary",onClick:u},[t(o.$slots,"confirmText",{},()=>[l[0]||(l[0]=r("確定",-1))],!0)]),e("button",{class:"button",onClick:f},[t(o.$slots,"cancelText",{},()=>[l[1]||(l[1]=r("キャンセル",-1))],!0)])],!0)])):d("",!0)],2)])):d("",!0)]),_:3}))}}),N=v(x,[["__scopeId","data-v-3b1666ad"]]);export{N as _};
