import { c as d, p as a, h as g, f as m, i as v, j as k, o as h, e as C, b as p, d as j, u as B, s as S } from "./AssetItem-CFsdMEwW.js";
import { v as z, x as A, A as L, y as O, z as w, t as V, n as c } from "./index-BxjwuJ6T.js";
var q = 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 o = a(e, "onClick", 12), n = a(e, "icon", 12, void 0), i = a(e, "text", 12), l = a(e, "styles", 28, () => ({}));
  const x = Object.entries(l()).map(([t, s]) => `${t}:${s}`).join(";");
  var _ = {
    get onClick() {
      return o();
    },
    set onClick(t) {
      o(t), c();
    },
    get icon() {
      return n();
    },
    set icon(t) {
      n(t), c();
    },
    get text() {
      return i();
    },
    set text(t) {
      i(t), c();
    },
    get styles() {
      return l();
    },
    set styles(t) {
      l(t), c();
    },
    $set: B,
    $on: (t, s) => j(e, t, s)
  };
  g();
  var r = D(), f = A(r);
  {
    var y = (t) => {
      var s = q();
      w(() => S(s, "src", n())), p(t, s);
    };
    v(f, (t) => {
      n() && t(y);
    });
  }
  var b = L(f);
  return O(r), w(() => {
    k(r, x), h(b, ` ${i() ?? ""}`);
  }), C("click", r, function(...t) {
    o()?.apply(this, t);
  }), p(u, r), V(_);
}
export {
  E as B
};
//# sourceMappingURL=ButtonLink-Cq6T9Cl0.js.map
