/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

import _defineProperty from '@babel/runtime/helpers/defineProperty';
import { defineComponent } from '@vue/composition-api';
import Panel from './components/Panel.js';
import props from './props.js';
import { useCascaderContext } from './hooks/index.js';
import './components/Item.js';
import '../../_chunks/dep-b13ef886.js';
import '@ldesign/icons-vue';
import './utils/helper.js';
import '@babel/runtime/helpers/typeof';
import 'lodash/isEmpty';
import './utils/className.js';
import '@babel/runtime/helpers/toConsumableArray';
import '../checkbox/index.js';
import '../checkbox/group.js';
import 'lodash/intersection';
import '../checkbox/checkbox.js';
import 'vue';
import '../../utils/render-node.js';
import 'lodash/camelCase';
import 'lodash/kebabCase';
import '../checkbox/props.js';
import '../../utils/helper.js';
import '@babel/runtime/helpers/objectWithoutProperties';
import '@babel/runtime/helpers/slicedToArray';
import '../../utils/event.js';
import '../config-provider/config-receiver.js';
import 'lodash/mergeWith';
import 'lodash';
import '../config-provider/context.js';
import '../../_chunks/dep-a0f2090c.js';
import '../../utils/mixins.js';
import '../../utils/map-props.js';
import '../../utils/with-install.js';
import '../../config.js';
import '../loading/index.js';
import '../loading/loading.js';
import '../loading/icon/gradient.js';
import '../../_chunks/dep-33b15d9d.js';
import '../../_chunks/dep-85e8b23b.js';
import '../../_chunks/dep-fc383775.js';
import '../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../utils/easing.js';
import '../../utils/transfer-dom.js';
import '../loading/props.js';
import '../loading/plugin.js';
import '../../hooks/use-config.js';
import '../config-provider/useConfig.js';
import '../../hooks/use-global-icon.js';
import '../../utils/ripple.js';
import '../../hooks/lnode.js';
import 'lodash/isFunction';
import '../../hooks/render-lnode.js';
import 'lodash/isObject';
import './utils/effect.js';
import 'lodash/isNumber';
import 'lodash/cloneDeep';
import 'lodash/isEqual';
import '../../_chunks/dep-360db93c.js';
import '@babel/runtime/helpers/classCallCheck';
import '@babel/runtime/helpers/createClass';
import '../../_chunks/dep-40125abf.js';
import '@babel/runtime/regenerator';
import '../../_chunks/dep-d204d516.js';
import '../../_chunks/dep-64cbbe92.js';
import '../../_chunks/dep-5c5da9dd.js';
import '../../_chunks/dep-53d4956d.js';
import '../../_chunks/dep-a65fe6e9.js';
import '../../hooks/use-vmodel.js';
import '../../hooks/use-default-value.js';

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _CascaderPanel = defineComponent({
  name: "LCascaderPanel",
  props: _objectSpread({}, props),
  setup: function setup(props2, _ref) {
    var slots = _ref.slots,
        emit = _ref.emit;

    var _useCascaderContext = useCascaderContext(props2),
        cascaderContext = _useCascaderContext.cascaderContext;

    var onClick = function onClick(value, node) {
      emit("click", value, node);
    };

    return {
      cascaderContext: cascaderContext,
      slots: slots,
      onClick: onClick
    };
  },
  render: function render() {
    var h = arguments[0];
    return h(Panel, {
      "attrs": {
        "empty": this.empty,
        "trigger": this.trigger,
        "cascaderContext": this.cascaderContext
      },
      "scopedSlots": {
        empty: this.slots.empty
      },
      "on": {
        "click": this.onClick
      }
    });
  }
});

export { _CascaderPanel as default };
//# sourceMappingURL=cascader-panel.js.map
