/* empty css                                               */
/* empty css                                                */
/* empty css                                               */
/* empty css                                                     */
/* empty css                                                */
/* empty css                                                     */
import { createElementBlock, openBlock, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, renderSlot } from "vue";
/* empty css                */
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
import { NoticeBar } from "../../../../node_modules/vant/es/notice-bar/index.mjs";
import { Swipe } from "../../../../node_modules/vant/es/swipe/index.mjs";
import { SwipeItem } from "../../../../node_modules/vant/es/swipe-item/index.mjs";
const _hoisted_1 = { class: "notice-wrap" };
const _hoisted_2 = { class: "notice-label" };
const _hoisted_3 = ["src"];
const _hoisted_4 = {
  key: 1,
  class: "label-text"
};
const _hoisted_5 = { class: "notice-title" };
const _hoisted_6 = { class: "title-text" };
const _hoisted_7 = { class: "notice-time" };
const _sfc_main = {
  __name: "NoticeBar",
  props: {
    labelImage: {
      type: String,
      default: ""
    },
    noticeList: {
      type: Array,
      default: () => [
        {
          title: "集团公告 客研体系和品牌升级项目定义会...",
          time: "2020-09-02 11:31"
        },
        {
          title: "关于中秋节放假安排的通知...",
          time: "2020-09-01 09:00"
        }
      ]
    }
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_van_swipe_item = SwipeItem;
      const _component_van_swipe = Swipe;
      const _component_van_notice_bar = NoticeBar;
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createVNode(_component_van_notice_bar, {
          scrollable: false,
          class: "notice-bar",
          background: "#FFF"
        }, {
          "left-icon": withCtx(() => [
            createElementVNode("div", _hoisted_2, [
              renderSlot(_ctx.$slots, "label-image", {}, () => [
                __props.labelImage ? (openBlock(), createElementBlock("img", {
                  key: 0,
                  src: __props.labelImage,
                  class: "label-img"
                }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock("div", _hoisted_4, _cache[0] || (_cache[0] = [
                  createElementVNode("span", { class: "text-top" }, "公告", -1),
                  createElementVNode("span", { class: "text-bottom" }, "事项", -1)
                ])))
              ], true)
            ]),
            _cache[1] || (_cache[1] = createElementVNode("div", { class: "divider" }, null, -1))
          ]),
          default: withCtx(() => [
            createVNode(_component_van_swipe, {
              vertical: "",
              class: "notice-swipe",
              autoplay: 3e3,
              touchable: false,
              "show-indicators": false
            }, {
              default: withCtx(() => [
                (openBlock(true), createElementBlock(Fragment, null, renderList(__props.noticeList, (item, index) => {
                  return openBlock(), createBlock(_component_van_swipe_item, {
                    key: index,
                    class: "notice-item"
                  }, {
                    default: withCtx(() => [
                      createElementVNode("div", _hoisted_5, [
                        _cache[2] || (_cache[2] = createElementVNode("span", { class: "dot" }, null, -1)),
                        createElementVNode("span", _hoisted_6, toDisplayString(item.title), 1)
                      ]),
                      createElementVNode("div", _hoisted_7, toDisplayString(item.time), 1)
                    ]),
                    _: 2
                  }, 1024);
                }), 128))
              ]),
              _: 1
            })
          ]),
          _: 3
        })
      ]);
    };
  }
};
const _NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b72b4f6"]]);
export {
  _NoticeBar as default
};
