/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
import{computed as e,watch as o,onBeforeUnmount as l,openBlock as t,createElementBlock as a,createCommentVNode as s,createElementVNode as d,toDisplayString as u,renderSlot as c}from"vue";import './Modal2.css';import './Modal.css';/* empty css          *//* empty css          */import n from"../../_virtual/_plugin-vue_export-helper.js";const m={key:0,class:"gsc-overlay"},i={class:"gsc-modal",role:"dialog","aria-modal":"true"},r={class:"gsc-modal__header"},f={class:"gsc-modal__title"},p={class:"gsc-modal__body"},v={class:"gsc-modal__footer"},_=/* @__PURE__ */n({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},maskClose:{type:Boolean,default:!0},showMask:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(n,{emit:_}){const y=n,g=_,k=e(()=>y.modelValue);let h=0,M=null;function b(){"undefined"!=typeof document&&(h=Math.max(0,h-1),0===h&&(document.body.style.overflow=null!==M?M:"",M=null))}function w(){g("update:modelValue",!1),g("close")}function C(){y.maskClose&&w()}return o(k,e=>{e?"undefined"!=typeof document&&(0===h&&(M=document.body.style.overflow,document.body.style.overflow="hidden"),h++):b()}),l(()=>{k.value&&k.value&&b()}),(e,o)=>k.value?(t(),a("div",m,[y.showMask?(t(),a("div",{key:0,class:"gsc-mask",onClick:C})):s("",!0),d("div",i,[d("header",r,[d("h3",f,u(n.title),1),d("button",{class:"gsc-modal__close",onClick:w}," × ")]),d("section",p,[c(e.$slots,"default",{},void 0,!0)]),d("footer",v,[c(e.$slots,"footer",{},void 0,!0)])])])):s("",!0)}},[["__scopeId","data-v-4101162e"]]);export{_ as default};