import{_ as y,o,b as m,d as r,s as f,c as n,a,p as l,t as _,l as i,a0 as g,aU as h,ag as k,f as w}from"./C8VztkeY.js";const C={props:{title:{type:String},show:{type:Boolean,required:!0},maxWidth:{type:String,required:!0},height:{type:String,default:""},allowClose:{type:Boolean,default:!0},padding:{type:String,default:"15px"},onClose:{type:Function,default(){return null}},overflowY:{type:String,default:"visible"},titleBackgroundColor:{type:String,default:"#aaa"},includeBorder:{type:Boolean,default:!1}}},v={key:0,class:"modal-mask"},b={class:"text"};function B(t,s,e,S,p,x){const c=w;return e.show?(o(),m(k,{key:0,to:"body"},[r(h,{appear:"",name:"modal"},{default:f(()=>{var d;return[e.show?(o(),n("div",v,[a("div",{class:"modal-wrapper",style:l({height:e.height})},[a("div",{class:"modal-container",style:l({maxWidth:e.maxWidth})},[e.title?(o(),n("div",{key:0,class:"title",style:l({fontFamily:t.$ss.primaryFontFamily,backgroundColor:e.titleBackgroundColor})},[a("div",b,_(e.title),1)],4)):i("",!0),e.allowClose?(o(),n("div",{key:1,class:"close",onClick:s[0]||(s[0]=(...u)=>e.onClose&&e.onClose(...u))},[r(c,{icon:"mdi:close-thick","icon-color":e.title?"white":"black",width:24},null,8,["icon-color"])])):i("",!0),a("div",{class:"body",style:l({overflowY:e.overflowY,padding:e.padding,borderRadius:!e.title&&!e.allowClose?"6px 6px 0 0":"0",border:e.includeBorder?`5px solid ${(d=t.$ss)!=null&&d.useNewDesign?t.$ss.colors.primary.main:t.$ss.baseStyles.primaryColor}`:""})},[g(t.$slots,"default",{},void 0,!0)],4)],4)],4)])):i("",!0)]}),_:3})])):i("",!0)}const N=y(C,[["render",B],["__scopeId","data-v-9b02e3b0"]]);export{N as _};