/*!
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 t,toRefs as e,openBlock as o,createElementBlock as c,Fragment as n,renderList as s,unref as i,createElementVNode as l,toDisplayString as r}from"vue";import './Notice2.css';import './Notice.css';/* empty css           *//* empty css           */import u from"../../_virtual/_plugin-vue_export-helper.js";const p={class:"gsc-notice-wrapper"},a={class:"gsc-notice__title"},d={class:"gsc-notice__content"},_=["onClick"],v=/* @__PURE__ */u({__name:"Notice",setup(u,{expose:v}){const m=t({notices:[]});let k=0;function f(t){const e=m.notices.findIndex(e=>e.key===t);e>=0&&m.notices.splice(e,1)}v({add:function({title:t="",content:e="",duration:o=0}={}){const c=++k;return m.notices.push({key:c,title:t,content:e}),o>0&&setTimeout(()=>f(c),o),c},remove:f});const{notices:g}=e(m);return(t,e)=>(o(),c("div",p,[(o(!0),c(n,null,s(i(g),t=>(o(),c("div",{key:t.key,class:"gsc-notice"},[l("div",a,r(t.title),1),l("div",d,r(t.content),1),l("button",{class:"gsc-notice__close",onClick:e=>f(t.key)}," × ",8,_)]))),128))]))}},[["__scopeId","data-v-7d702971"]]);export{v as default};