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

"use strict";
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{ name: "LlDatePicker" },
  __name: "date-picker",
  props: datePickerProps,
  setup(__props) {
    const attrs = useAttrs();
    const bem = createNamespace("date-picker");
    return (_ctx, _cache) => {
      const _component_a_date_picker = resolveComponent("a-date-picker");
      return openBlock(), createBlock(_component_a_date_picker, mergeProps(unref(attrs), {
        class: [unref(bem).b(), unref(bem).is(_ctx.isGray ? "gray-date-picker" : "")]
      }), createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        renderList(Object.keys(_ctx.$slots), (item) => {
          return {
            name: item,
            fn: withCtx((data) => [
              renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class"]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=date-picker.vue2.mjs.map
