import{b,s as v,i as y,w as C,o,e as l,k as t,l as r,f as n,n as x,q as h,v as c,T as i,m as u,F as w}from"./vendor-wgE37vvX.js";import{u as M}from"./index-_04Sks9N.js";const S=["id"],B={class:"modal-dialog d-flex flex-col my-0 mx-auto w-100 mw-100"},F={__name:"BaseModalFullscreen",props:{backgroundColor:{type:String,default:"bg-primary-450",validator:a=>a.includes("bg-")},paddingClass:{type:String,default:"px-3 py-2"},modalId:{type:String,required:!0}},setup(a){const m=a,f=b(),e=M(),{getId:p}=v(e),s=y(()=>p.value===m.modalId);return C(()=>f.fullPath,()=>{e.closeModal()}),(g,d)=>(o(),l(w,null,[t(i,{name:"modal"},{default:r(()=>[s.value?(o(),l("div",{key:0,id:a.modalId,class:"modal d-block",tabindex:"-1","aria-modal":"true",role:"dialog"},[n("div",B,[n("div",{class:x(["modal-content min-vh-100 border-0 rounded-0",[a.paddingClass,a.backgroundColor]])},[h(g.$slots,"default")],2)])],8,S)):c("",!0)]),_:3}),t(i,{name:"backdrop"},{default:r(()=>[s.value?(o(),l("div",{key:0,class:"modal-backdrop",onClick:d[0]||(d[0]=(...k)=>u(e).closeModal&&u(e).closeModal(...k))})):c("",!0)]),_:1})],64))}};export{F as _};