/*!
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
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Modal2.css');require('./Modal.css');const e=require("vue");/* empty css             */;/* empty css            */const o=require("../../_virtual/_plugin-vue_export-helper.js"),l={key:0,class:"gsc-overlay"},t={class:"gsc-modal",role:"dialog","aria-modal":"true"},a={class:"gsc-modal__header"},d={class:"gsc-modal__title"},s={class:"gsc-modal__body"},n={class:"gsc-modal__footer"},c={__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(o,{emit:c}){const u=o,r=c,m=e.computed(()=>u.modelValue);let i=0,f=null;function p(){"undefined"!=typeof document&&(i=Math.max(0,i-1),0===i&&(document.body.style.overflow=null!==f?f:"",f=null))}function v(){r("update:modelValue",!1),r("close")}function _(){u.maskClose&&v()}return e.watch(m,e=>{e?"undefined"!=typeof document&&(0===i&&(f=document.body.style.overflow,document.body.style.overflow="hidden"),i++):p()}),e.onBeforeUnmount(()=>{m.value&&m.value&&p()}),(c,r)=>m.value?(e.openBlock(),e.createElementBlock("div",l,[u.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-mask",onClick:_})):e.createCommentVNode("",!0),e.createElementVNode("div",t,[e.createElementVNode("header",a,[e.createElementVNode("h3",d,e.toDisplayString(o.title),1),e.createElementVNode("button",{class:"gsc-modal__close",onClick:v}," × ")]),e.createElementVNode("section",s,[e.renderSlot(c.$slots,"default",{},void 0,!0)]),e.createElementVNode("footer",n,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])])])):e.createCommentVNode("",!0)}},u=o.default(c,[["__scopeId","data-v-4101162e"]]);exports.default=u;