"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
;/* empty css                                               */
;/* empty css                                                */
;/* empty css                                               */
;/* empty css                                                     */
;/* empty css                                                */
;/* empty css                                                     */
const Vue = require("vue");
;/* empty css                */
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
const index = require("../../../../node_modules/vant/es/notice-bar/index.js");
const index$1 = require("../../../../node_modules/vant/es/swipe/index.js");
const index$2 = require("../../../../node_modules/vant/es/swipe-item/index.js");
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 = index$2.SwipeItem;
      const _component_van_swipe = index$1.Swipe;
      const _component_van_notice_bar = index.NoticeBar;
      return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
        Vue.createVNode(_component_van_notice_bar, {
          scrollable: false,
          class: "notice-bar",
          background: "#FFF"
        }, {
          "left-icon": Vue.withCtx(() => [
            Vue.createElementVNode("div", _hoisted_2, [
              Vue.renderSlot(_ctx.$slots, "label-image", {}, () => [
                __props.labelImage ? (Vue.openBlock(), Vue.createElementBlock("img", {
                  key: 0,
                  src: __props.labelImage,
                  class: "label-img"
                }, null, 8, _hoisted_3)) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, _cache[0] || (_cache[0] = [
                  Vue.createElementVNode("span", { class: "text-top" }, "公告", -1),
                  Vue.createElementVNode("span", { class: "text-bottom" }, "事项", -1)
                ])))
              ], true)
            ]),
            _cache[1] || (_cache[1] = Vue.createElementVNode("div", { class: "divider" }, null, -1))
          ]),
          default: Vue.withCtx(() => [
            Vue.createVNode(_component_van_swipe, {
              vertical: "",
              class: "notice-swipe",
              autoplay: 3e3,
              touchable: false,
              "show-indicators": false
            }, {
              default: Vue.withCtx(() => [
                (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.noticeList, (item, index2) => {
                  return Vue.openBlock(), Vue.createBlock(_component_van_swipe_item, {
                    key: index2,
                    class: "notice-item"
                  }, {
                    default: Vue.withCtx(() => [
                      Vue.createElementVNode("div", _hoisted_5, [
                        _cache[2] || (_cache[2] = Vue.createElementVNode("span", { class: "dot" }, null, -1)),
                        Vue.createElementVNode("span", _hoisted_6, Vue.toDisplayString(item.title), 1)
                      ]),
                      Vue.createElementVNode("div", _hoisted_7, Vue.toDisplayString(item.time), 1)
                    ]),
                    _: 2
                  }, 1024);
                }), 128))
              ]),
              _: 1
            })
          ]),
          _: 3
        })
      ]);
    };
  }
};
const _NoticeBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2b72b4f6"]]);
exports.default = _NoticeBar;
