import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{V}from"./VCard-Bmgf52Hv.js";import{c as g,w as b,ap as v,p as h,o as l,q as a,e as n,d as i,r as c,a as r,b as u,V as B,f as E,t as L}from"./main-CJbVOHh0.js";import{V as x}from"./VDialog-DRr8_TqS.js";const k={class:"dialog-physical-spacer"},w={class:"dialog-header-theme"},I={class:"header-title"},N={key:0,class:"dialog-actions-theme"},$={__name:"ReusableDialog",props:{modelValue:{type:Boolean,required:!0},title:{type:String,required:!0},maxWidth:{type:[String,Number],default:600},persistent:{type:Boolean,default:!1},fullscreenOnMobile:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:m}){const f=o,p=m,s=g({get:()=>f.modelValue,set:t=>p("update:modelValue",t)});return b(s,t=>{if(t){document.documentElement.classList.add("force-no-scroll"),document.body.classList.add("force-no-scroll");const e=document.getElementById("app");e&&e.classList.add("force-no-scroll")}else{document.documentElement.classList.remove("force-no-scroll"),document.body.classList.remove("force-no-scroll");const e=document.getElementById("app");e&&e.classList.remove("force-no-scroll")}}),v(()=>{document.documentElement.classList.remove("force-no-scroll"),document.body.classList.remove("force-no-scroll");const t=document.getElementById("app");t&&t.classList.remove("force-no-scroll")}),(t,e)=>(l(),h(x,{modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=d=>s.value=d),"max-width":o.maxWidth,persistent:o.persistent,fullscreen:t.$vuetify.display.mobile&&o.fullscreenOnMobile,transition:"dialog-bottom-transition"},{default:a(()=>[n("div",k,[i(V,{class:"reusable-dialog-card"},{default:a(()=>[n("div",w,[o.loading?u("",!0):(l(),r("button",{key:0,class:"close-icon",onClick:e[0]||(e[0]=d=>s.value=!1)},[i(B,null,{default:a(()=>e[2]||(e[2]=[E("bx-x",-1)])),_:1,__:[2]})])),n("h2",I,L(o.title),1)]),c(t.$slots,"default",{},void 0,!0),!o.hideActions&&t.$slots.actions?(l(),r("div",N,[c(t.$slots,"actions",{},void 0,!0)])):u("",!0)]),_:3})])]),_:3},8,["modelValue","max-width","persistent","fullscreen"]))}},R=y($,[["__scopeId","data-v-12f7808e"]]);export{R};
