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