import { defineComponent, useAttrs, resolveComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot, renderList, normalizeProps, guardReactiveProps } from 'vue';
import '../../../utils/index.mjs';
import { timelineProps } from './timeline.mjs';
import { createNamespace } from '../../../utils/create-namespace.mjs';

"use strict";
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{ name: "LlTimeline" },
  __name: "timeline",
  props: timelineProps,
  setup(__props) {
    const attrs = useAttrs();
    const bem = createNamespace("timeline");
    return (_ctx, _cache) => {
      const _component_a_timeline = resolveComponent("a-timeline");
      return openBlock(), createBlock(_component_a_timeline, mergeProps(unref(attrs), {
        class: unref(bem).b(),
        pending: _ctx.pending
      }), createSlots({
        pending: withCtx(() => [
          renderSlot(_ctx.$slots, "pending")
        ]),
        _: 2
        /* DYNAMIC */
      }, [
        renderList(Object.keys(_ctx.$slots).filter((slot) => slot !== "pending"), (item) => {
          return {
            name: item,
            fn: withCtx((data) => [
              renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class", "pending"]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=timeline.vue2.mjs.map
