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