gearboxdownloadmodal 9.5.21 → 9.5.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -14807,7 +14807,7 @@ const ho = 15, mK = ({
14807
14807
  onClickDownload: async (Vi) => {
14808
14808
  Vi.stopPropagation(), console.log("user in onclickdownload", W), J("download");
14809
14809
  const ti = I.iosUrl, ei = I.googleUrl;
14810
- o === "cdn" && K && K.willSpendCredit && !z || o !== "cdn" && K && K.willSpendCredit ? (c(!0), U("download"), k(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!ti || !ei) ? (c(!0), M(!0)) : (M(!1), k(!1), await li(o, "download"));
14810
+ o === "cdn" && K && K.willSpendCredit && !z || o !== "cdn" && K && K.willSpendCredit ? (c(!0), U("download"), k(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!ti || !ei) ? (c(!0), M(!0)) : (M(!1), k(!1), await li(e, "download"));
14811
14811
  },
14812
14812
  children: L ? /* @__PURE__ */ q.jsx(Ze, {}) : /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-flex modal-tw-flex-row modal-tw-gap-1", children: [
14813
14813
  /* @__PURE__ */ q.jsx(At, { className: "modal-tw-w-5 modal-tw-h-5" }),
@@ -14825,7 +14825,7 @@ const ho = 15, mK = ({
14825
14825
  return;
14826
14826
  J("copyLink");
14827
14827
  const ti = I.iosUrl, ei = I.googleUrl;
14828
- K && (K != null && K.willSpendCredit) ? (U("copy"), c(!0), k(!0)) : l !== "Import" && (!ti || !ei) ? (c(!0), M(!0)) : (k(!1), M(!1), await li(o, "copy"), ii(!0), setTimeout(() => ii(!1), 2e3));
14828
+ K && (K != null && K.willSpendCredit) ? (U("copy"), c(!0), k(!0)) : l !== "Import" && (!ti || !ei) ? (c(!0), M(!0)) : (k(!1), M(!1), await li(e, "copy"), ii(!0), setTimeout(() => ii(!1), 2e3));
14829
14829
  },
14830
14830
  disabled: R,
14831
14831
  isCopied: $,
@@ -14849,10 +14849,10 @@ const ho = 15, mK = ({
14849
14849
  {
14850
14850
  creditConfirmType: b,
14851
14851
  handleCopyLink: async () => {
14852
- M(!1), c(!1), await li(o, "copy");
14852
+ M(!1), c(!1), await li(e, "copy");
14853
14853
  },
14854
14854
  download: async () => {
14855
- M(!1), c(!1), await li(o, "download");
14855
+ M(!1), c(!1), await li(e, "download");
14856
14856
  },
14857
14857
  onClose: () => {
14858
14858
  k(!1), c(!1);
@@ -14899,18 +14899,15 @@ const ho = 15, mK = ({
14899
14899
  width: "100%"
14900
14900
  },
14901
14901
  children: a ? /* @__PURE__ */ q.jsx(
14902
- "div",
14902
+ "button",
14903
14903
  {
14904
14904
  style: {
14905
- display: "flex",
14906
- width: "auto",
14907
- minWidth: "12rem",
14908
- height: "2.5rem",
14909
- borderRadius: "0.5rem",
14910
- alignItems: "center",
14911
- justifyContent: "center",
14912
- padding: "0 1.5rem"
14905
+ backgroundImage: "linear-gradient(to right, #06b6d4, #14b8a6)"
14913
14906
  },
14907
+ disabled: !0,
14908
+ className: `modal-tw-flex modal-tw-items-center modal-tw-gap-2 modal-tw-px-8 modal-tw-py-3 modal-tw-rounded-xl modal-tw--mb-4\r
14909
+ modal-tw-text-white modal-tw-font-medium modal-tw-text-base modal-tw-drop-shadow-xl \r
14910
+ modal-tw-hover:shadow-lg modal-tw-hover:shadow-cyan-500/25 modal-tw-transition-all`,
14914
14911
  children: /* @__PURE__ */ q.jsx(Ze, {})
14915
14912
  }
14916
14913
  ) : /* @__PURE__ */ q.jsxs(
@@ -14976,7 +14973,7 @@ const ho = 15, mK = ({
14976
14973
  } else
14977
14974
  ei.push(ti), f([...z, ti]);
14978
14975
  }, ni = async () => new Promise(async (ti, ei) => {
14979
- const Ji = ci.filter((mi) => [...z].includes(mi.id)).map((mi) => mi.name);
14976
+ const Ji = ci.filter((mi) => [...z].includes(mi.id)).map((mi) => mi.id);
14980
14977
  if (J(!0), h && h.length > 0)
14981
14978
  try {
14982
14979
  if (!A || !A._id)
@@ -15596,7 +15593,7 @@ const gK = ({
15596
15593
  const [c, K] = E(window.innerWidth), [S, R] = E(!1), [W, V] = E(A);
15597
15594
  E(!1), E(!1);
15598
15595
  const [h, G] = E(null), [N, Q] = E(""), [z, f] = E("Loading..."), [B, v] = E("Loading..."), [P, g] = E("game"), [L, Y] = Ci(Ge), [C, J] = Ci(ha), [D, k] = E(
15599
- a || []
15596
+ () => a || []
15600
15597
  ), [Z, M] = E([]);
15601
15598
  Ae(null), qi(() => {
15602
15599
  k(a || []);