/*!
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('./Message2.css');require('./Message.css');const e=require("vue");/* empty css               */;/* empty css              */const s=require("../../_virtual/_plugin-vue_export-helper.js"),t={class:"gsc-message-wrapper"},o={class:"gsc-message__content"},n=["onClick"],a={__name:"Message",setup(s,{expose:a}){const r=e.reactive({messages:[]});let c=0;function l(e){const s=r.messages.findIndex(s=>s.key===e);s>=0&&r.messages.splice(s,1)}a({add:function({text:e="",type:s="info",duration:t=3e3}={}){const o=++c;return r.messages.push({key:o,text:e,type:s}),t>0&&setTimeout(()=>l(o),t),o},remove:l});const{messages:u}=e.toRefs(r);return(s,a)=>(e.openBlock(),e.createElementBlock("div",t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),s=>(e.openBlock(),e.createElementBlock("div",{key:s.key,class:e.normalizeClass(["gsc-message",s.type])},[e.createElementVNode("div",o,e.toDisplayString(s.text),1),e.createElementVNode("button",{class:"gsc-message__close",onClick:e=>l(s.key)}," × ",8,n)],2))),128))]))}},r=s.default(a,[["__scopeId","data-v-8e148566"]]);exports.default=r;