import { defineComponent as i, useCssModule as p, openBlock as u, createBlock as f, normalizeClass as s, unref as n, createSlots as m, withCtx as e, createVNode as a, createTextVNode as _, toDisplayString as b, renderSlot as w } from "vue";
import { t as C } from "./locale.js";
import x from "./Button.js";
import g from "./Dropdown.js";
import B from "./Icon.js";
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const y = /* @__PURE__ */ i({
  name: "ll-actions-dropdown",
  __name: "ActionsDropdown",
  props: {
    align: { default: "left" },
    disabled: { type: Boolean, default: !1 },
    contentClass: { default: "" },
    buttonText: { default: () => C("ll.actions") }
  },
  setup(d) {
    const o = d, t = p();
    return (l, v) => (u(), f(g, {
      align: o.align,
      "content-class": [n(t).dropdownContent, o.contentClass],
      class: s(n(t).actionsDropdown)
    }, m({
      toggle: e(({ isActive: c, toggle: r }) => [
        a(x, {
          class: s(["button flex w-full items-center justify-between border border-blue-500 text-blue-500", [n(t).actionButton, { [n(t).disabled]: o.disabled }]]),
          secondary: "",
          "aria-expanded": c.toString(),
          disabled: o.disabled,
          onClick: r
        }, {
          default: e(() => [
            _(b(o.buttonText) + " ", 1),
            a(B, {
              class: "ml-1.5",
              name: "caret-down"
            })
          ]),
          _: 1
        }, 8, ["aria-expanded", "class", "disabled", "onClick"])
      ]),
      _: 2
    }, [
      o.disabled ? void 0 : {
        name: "default",
        fn: e(() => [
          w(l.$slots, "default")
        ]),
        key: "0"
      }
    ]), 1032, ["align", "content-class", "class"]));
  }
}), k = "_actionButton_xTZGa", T = "_disabled_TIIiE", M = "_dropdownContent_0FoMa", S = "_actionsDropdown_Rvs91", I = {
  actionButton: k,
  disabled: T,
  dropdownContent: M,
  actionsDropdown: S
}, h = {
  $style: I
}, E = /* @__PURE__ */ D(y, [["__cssModules", h]]);
export {
  E as default
};
//# sourceMappingURL=ActionsDropdown.js.map
