import{_ as u,o as t,b as y,d as s,w as m,c as i,a as o,n as a,t as _,i as l,V as f,aB as h,a8 as g,f as k}from"./entry.DPwc-EV0.js";const w={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}}},C={key:0,class:"modal-mask"},v={class:"text"};function B(n,d,e,x,S,b){const r=k;return e.show?(t(),y(g,{key:0,to:"body"},[s(h,{appear:"",name:"modal"},{default:m(()=>[e.show?(t(),i("div",C,[o("div",{class:"modal-wrapper",style:a({height:e.height})},[o("div",{class:"modal-container",style:a({maxWidth:e.maxWidth})},[e.title?(t(),i("div",{key:0,class:"title",style:a({fontFamily:n.$ss.primaryFontFamily,backgroundColor:e.titleBackgroundColor})},[o("div",v,_(e.title),1)],4)):l("",!0),e.allowClose?(t(),i("div",{key:1,class:"close",onClick:d[0]||(d[0]=(...c)=>e.onClose&&e.onClose(...c))},[s(r,{icon:"mdi:close-thick","icon-color":e.title?"white":"black",width:24},null,8,["icon-color"])])):l("",!0),o("div",{class:"body",style:a({overflowY:e.overflowY,padding:e.padding,borderRadius:!e.title&&!e.allowClose?"6px 6px 0 0":"0",border:e.includeBorder?`5px solid ${n.$ss.baseStyles.primaryColor}`:""})},[f(n.$slots,"default",{},void 0,!0)],4)],4)],4)])):l("",!0)]),_:3})])):l("",!0)}const F=u(w,[["render",B],["__scopeId","data-v-ed08c594"]]);export{F as _};