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, o as B } from "./AssetItem-CFsdMEwW.js";
import { v as j, x as z, y as D, z as p, t as P, n as c } from "./index-BxjwuJ6T.js";
import { p as S } from "./event-modifiers-D4czZCB6.js";
import { L as q } from "./Loader-BMEbL3GG.js";
var A = v("<button><!></button>");
function E(d, e) {
  if (new.target) return x({ component: E, ...d });
  j(e, !1);
  let i = o(e, "onClick", 12), l = o(e, "text", 12), s = o(e, "disabled", 12, !1), r = o(e, "isLoading", 12, !1);
  var w = {
    get onClick() {
      return i();
    },
    set onClick(t) {
      i(t), c();
    },
    get text() {
      return l();
    },
    set text(t) {
      l(t), c();
    },
    get disabled() {
      return s();
    },
    set disabled(t) {
      s(t), c();
    },
    get isLoading() {
      return r();
    },
    set isLoading(t) {
      r(t), c();
    },
    $set: C,
    $on: (t, n) => h(e, t, n)
  }, a = A();
  let f;
  var m = z(a);
  {
    var b = (t) => {
      q(t, {});
    }, g = (t) => {
      var n = L();
      p(() => B(n, l())), u(t, n);
    };
    _(m, (t) => {
      r() ? t(b) : t(g, -1);
    });
  }
  return D(a), p(() => f = 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, f, {
    "crtw-bg-gray-300": s() || r(),
    "crtw-pointer-events-none": s() || r()
  })), y("click", a, S(function(...t) {
    i()?.apply(this, t);
  })), u(d, a), P(w);
}
export {
  E as B
};
//# sourceMappingURL=Button-S2OwL6nP.js.map
