import { c as x, p as o, f as v, i as _, k, e as y, b as u, d as h, u as C, t as L, r as B } from "./AssetItem-BxjLUzNd.js";
import { t as j, w as D, x as P, y as p, r as S, l } from "./index-BBXAtvZr.js";
import { p as q } from "./event-modifiers-D4czZCB6.js";
import { L as z } from "./Loader-Byv7_nwE.js";
var A = v("<button><!></button>");
function E(f, e) {
  if (new.target) return x({ component: E, ...f });
  j(e, !1);
  let c = o(e, "onClick", 12), i = o(e, "text", 12), s = o(e, "disabled", 12, !1), r = o(e, "isLoading", 12, !1);
  var w = {
    get onClick() {
      return c();
    },
    set onClick(t) {
      c(t), l();
    },
    get text() {
      return i();
    },
    set text(t) {
      i(t), l();
    },
    get disabled() {
      return s();
    },
    set disabled(t) {
      s(t), l();
    },
    get isLoading() {
      return r();
    },
    set isLoading(t) {
      r(t), l();
    },
    $set: C,
    $on: (t, n) => h(e, t, n)
  }, a = A();
  let d;
  var m = D(a);
  {
    var b = (t) => {
      z(t, {});
    }, g = (t) => {
      var n = L();
      p(() => B(n, i())), u(t, n);
    };
    _(m, (t) => {
      r() ? t(b) : t(g, !1);
    });
  }
  return P(a), p(() => d = k(a, 1, `crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer
  crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium`, null, d, {
    "crtw-bg-gray-300": s() || r(),
    "crtw-pointer-events-none": s() || r()
  })), y("click", a, q(function(...t) {
    c()?.apply(this, t);
  })), u(f, a), S(w);
}
export {
  E as B
};
//# sourceMappingURL=Button-CqLZSfSk.js.map
