import { c as d, p as a, h as g, f as m, i as v, j as k, r as h, e as C, b as p, d as j, u as B, s as S } from "./AssetItem-BxjLUzNd.js";
import { t as z, w as L, z as O, x as V, y as w, r as q, l as c } from "./index-BBXAtvZr.js";
var A = m('<img alt="" class="crtw-mr-2 crtw-h-3"/>'), D = m(`<button class="crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline"><!> </button>`);
function E(u, e) {
  if (new.target) return d({ component: E, ...u });
  z(e, !1);
  let i = a(e, "onClick", 12), n = a(e, "icon", 12, void 0), o = a(e, "text", 12), l = a(e, "styles", 28, () => ({}));
  const x = Object.entries(l()).map(([t, r]) => `${t}:${r}`).join(";");
  var _ = {
    get onClick() {
      return i();
    },
    set onClick(t) {
      i(t), c();
    },
    get icon() {
      return n();
    },
    set icon(t) {
      n(t), c();
    },
    get text() {
      return o();
    },
    set text(t) {
      o(t), c();
    },
    get styles() {
      return l();
    },
    set styles(t) {
      l(t), c();
    },
    $set: B,
    $on: (t, r) => j(e, t, r)
  };
  g();
  var s = D(), f = L(s);
  {
    var y = (t) => {
      var r = A();
      w(() => S(r, "src", n())), p(t, r);
    };
    v(f, (t) => {
      n() && t(y);
    });
  }
  var b = O(f);
  return V(s), w(() => {
    k(s, x), h(b, ` ${o() ?? ""}`);
  }), C("click", s, function(...t) {
    i()?.apply(this, t);
  }), p(u, s), q(_);
}
export {
  E as B
};
//# sourceMappingURL=ButtonLink-BnG9q4HI.js.map
