"use strict";
const vue = require("vue");
const useDefaults = require("./useDefaults-YXpmugKp.js");
const _hoisted_1 = ["id", "novalidate"];
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "BForm",
  props: {
    floating: { type: Boolean, default: false },
    id: { default: void 0 },
    novalidate: { type: Boolean, default: false },
    validated: { type: Boolean, default: false }
  },
  setup(__props, { expose: __expose }) {
    const _props = __props;
    const props = useDefaults.useDefaults(_props, "BForm");
    const element = vue.useTemplateRef("_element");
    const computedClasses = vue.computed(() => ({
      "form-floating": props.floating,
      "was-validated": props.validated
    }));
    __expose({
      element
    });
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createElementBlock("form", {
        id: vue.unref(props).id,
        ref: "_element",
        novalidate: vue.unref(props).novalidate,
        class: vue.normalizeClass(computedClasses.value)
      }, [
        vue.renderSlot(_ctx.$slots, "default")
      ], 10, _hoisted_1);
    };
  }
});
exports._sfc_main = _sfc_main;
//# sourceMappingURL=BForm.vue_vue_type_script_setup_true_lang-CA-O_9nU.js.map
