"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const index_esm = require("../../../@vant/use/dist/index.esm.js");
const usePlaceholder = require("../composables/use-placeholder.js");
const props = require("../utils/props.js");
const create = require("../utils/create.js");
const [name, bem] = create.createNamespace("action-bar");
const ACTION_BAR_KEY = Symbol(name);
const actionBarProps = {
  placeholder: Boolean,
  safeAreaInsetBottom: props.truthProp
};
var stdin_default = Vue.defineComponent({
  name,
  props: actionBarProps,
  setup(props2, {
    slots
  }) {
    const root = Vue.ref();
    const renderPlaceholder = usePlaceholder.usePlaceholder(root, bem);
    const {
      linkChildren
    } = index_esm.useChildren(ACTION_BAR_KEY);
    linkChildren();
    const renderActionBar = () => {
      var _a;
      return Vue.createVNode("div", {
        "ref": root,
        "class": [bem(), {
          "van-safe-area-bottom": props2.safeAreaInsetBottom
        }]
      }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
    };
    return () => {
      if (props2.placeholder) {
        return renderPlaceholder(renderActionBar);
      }
      return renderActionBar();
    };
  }
});
exports.ACTION_BAR_KEY = ACTION_BAR_KEY;
exports.actionBarProps = actionBarProps;
exports.default = stdin_default;
