/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var VueCompositionAPI = require('@vue/composition-api');
var cascader_components_Panel = require('./components/Panel.js');
var cascader_props = require('./props.js');
var cascader_hooks = require('./hooks.js');
require('../hooks/useConfig.js');
require('../config-provider/useConfig.js');
require('../config-provider/context.js');
require('lodash/merge');
require('lodash/mergeWith');
require('../_common/js/global-config/default-config.js');
require('../_common/js/global-config/locale/zh_CN.js');
require('@babel/runtime/helpers/typeof');
require('../_chunks/dep-7c884501.js');
require('dayjs');
require('../hooks/tnode.js');
require('lodash/isEmpty');
require('lodash/isFunction');
require('lodash/camelCase');
require('lodash/kebabCase');
require('../hooks/render-tnode.js');
require('lodash/isString');
require('lodash/isObject');
require('./core/helper.js');
require('./core/effect.js');
require('@babel/runtime/helpers/slicedToArray');
require('lodash/isNumber');
require('lodash/cloneDeep');
require('./components/Item.js');
require('../_chunks/dep-c3e1ffac.js');
require('@ldesign/icons-vue');
require('./core/className.js');
require('@babel/runtime/helpers/toConsumableArray');
require('../checkbox/index.js');
require('../utils/map-props.js');
require('@babel/runtime/helpers/objectWithoutProperties');
require('vue');
require('../utils/withInstall.js');
require('lodash/capitalize');
require('../checkbox/group.js');
require('lodash/intersection');
require('../utils/event.js');
require('../utils/helper.js');
require('../config-provider/config-receiver.js');
require('../utils/mixins.js');
require('../checkbox/checkbox.js');
require('../utils/render-tnode.js');
require('../checkbox/props.js');
require('../checkbox/checkbox-group-props.js');
require('../loading/index.js');
require('../loading/directive.js');
require('lodash/mapKeys');
require('lodash/isEqual');
require('../loading/plugin.js');
require('../config.js');
require('../utils/dom.js');
require('raf');
require('../utils/easing.js');
require('../loading/loading.js');
require('../utils/transfer-dom.js');
require('../loading/props.js');
require('../loading/icon/gradient.js');
require('../_common/js/loading/circle-adapter.js');
require('../_common/js/utils/set-style.js');
require('../_common/js/utils/helper.js');
require('lodash/isNull');
require('lodash/isUndefined');
require('lodash/isArray');
require('../hooks/useGlobalIcon.js');
require('../utils/ripple.js');
require('../_common/js/tree/tree-store.js');
require('@babel/runtime/helpers/classCallCheck');
require('@babel/runtime/helpers/createClass');
require('lodash/difference');
require('lodash/isPlainObject');
require('mitt');
require('../_common/js/tree/tree-node.js');
require('@babel/runtime/helpers/asyncToGenerator');
require('@babel/runtime/regenerator');
require('lodash/uniqueId');
require('lodash/isNil');
require('lodash/get');
require('../_common/js/log/log.js');
require('../_common/js/tree/tree-node-model.js');
require('lodash/isBoolean');
require('lodash/pick');
require('lodash/omit');
require('../hooks/useVModel.js');
require('../hooks/useDefaultValue.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);

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__default["default"](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 = VueCompositionAPI.defineComponent({
  name: "TCascaderPanel",
  props: _objectSpread({}, cascader_props["default"]),
  setup: function setup(props2, _ref) {
    var slots = _ref.slots,
      emit = _ref.emit;
    var _useCascaderContext = cascader_hooks.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(cascader_components_Panel["default"], {
      "attrs": {
        "empty": this.empty,
        "trigger": this.trigger,
        "cascaderContext": this.cascaderContext
      },
      "scopedSlots": {
        empty: this.slots.empty
      },
      "on": {
        "click": this.onClick
      }
    });
  }
});

exports["default"] = _CascaderPanel;
//# sourceMappingURL=cascader-panel.js.map
