gearboxdownloadmodal 9.5.21 → 9.5.22

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
@@ -14200,7 +14200,7 @@ const Yt = 5, sK = ({
14200
14200
  ]
14201
14201
  }
14202
14202
  );
14203
- }, CK = ({
14203
+ }, gK = ({
14204
14204
  visible: e,
14205
14205
  closeModal: i,
14206
14206
  versionId: t,
@@ -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)
@@ -15557,6 +15554,33 @@ const IK = ({
15557
15554
  ] })
15558
15555
  ] }) }) });
15559
15556
  }, dK = ({
15557
+ selectedGtmThresholds: e,
15558
+ setSelectedGtmThresholds: i
15559
+ }) => /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-p-4 modal-tw-rounded-xl modal-tw-bg-slate-800/50 modal-tw-border modal-tw-border-slate-700/50 modal-tw-transition-all modal-tw-duration-300", children: [
15560
+ /* @__PURE__ */ q.jsx("h3", { className: "modal-tw-text-base modal-tw-font-semibold modal-tw-text-white modal-tw-mb-3", children: "Market Direction" }),
15561
+ /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-space-y-2", children: [
15562
+ /* @__PURE__ */ q.jsx("p", { className: "modal-tw-text-sm modal-tw-text-slate-400", children: "Go to market after" }),
15563
+ /* @__PURE__ */ q.jsx("div", { className: "modal-tw-grid modal-tw-grid-cols-3 modal-tw-gap-2", children: [2, 4, 10].map((t) => {
15564
+ const a = e.includes(t);
15565
+ return /* @__PURE__ */ q.jsxs(
15566
+ "button",
15567
+ {
15568
+ onClick: () => {
15569
+ i(
15570
+ (o) => a ? o.filter((r) => r !== t) : [...o, t]
15571
+ );
15572
+ },
15573
+ className: `modal-tw-px-3 modal-tw-py-2 modal-tw-rounded-lg modal-tw-text-base modal-tw-font-medium modal-tw-transition-all modal-tw-cursor-pointer ${a ? "modal-tw-bg-cyan-500 modal-tw-text-white modal-tw-border modal-tw-border-cyan-400" : "modal-tw-bg-slate-800 modal-tw-text-slate-300 modal-tw-border modal-tw-border-slate-700 modal-tw-hover:border-slate-600 modal-tw-hover:text-white"}`,
15574
+ children: [
15575
+ t,
15576
+ " clicks"
15577
+ ]
15578
+ },
15579
+ t
15580
+ );
15581
+ }) })
15582
+ ] })
15583
+ ] }), cK = ({
15560
15584
  gearboxAINetworkComponent: e,
15561
15585
  selectedGtmThresholds: i,
15562
15586
  setSelectedGtmThresholds: t,
@@ -15570,12 +15594,21 @@ const IK = ({
15570
15594
  }
15571
15595
  ),
15572
15596
  /* @__PURE__ */ q.jsx("div", { className: "modal-tw-h-0.5 modal-tw-w-full modal-tw-bg-slate-800" }),
15573
- /* @__PURE__ */ q.jsx("div", { className: "modal-tw-flex-1 modal-tw-overflow-y-auto modal-tw-p-4 modal-tw-space-y-4 custom-scrollbar", children: e })
15574
- ] }), cK = ({ versionList: e }) => /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-flex modal-tw-flex-col", children: [
15597
+ /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-flex-1 modal-tw-overflow-y-auto modal-tw-p-4 modal-tw-space-y-4 custom-scrollbar", children: [
15598
+ /* @__PURE__ */ q.jsx(
15599
+ dK,
15600
+ {
15601
+ selectedGtmThresholds: i,
15602
+ setSelectedGtmThresholds: t
15603
+ }
15604
+ ),
15605
+ e
15606
+ ] })
15607
+ ] }), ZK = ({ versionList: e }) => /* @__PURE__ */ q.jsxs("div", { className: "modal-tw-flex modal-tw-flex-col", children: [
15575
15608
  /* @__PURE__ */ q.jsx("div", { className: "modal-tw-sticky modal-tw-top-0 modal-tw-z-50 modal-tw-flex modal-tw-flex-col modal-tw-w-full modal-tw-justify-between modal-tw-gap-1 modal-tw-bg-slate-800/50 modal-tw-border-slate-700/50 modal-tw-border-b modal-tw-border-r modal-tw-px-4 modal-tw-py-4", children: /* @__PURE__ */ q.jsx("div", { className: "modal-tw-flex modal-tw-items-center modal-tw-justify-between modal-tw-pb-6", children: /* @__PURE__ */ q.jsx("div", { className: "modal-tw-flex modal-tw-items-center modal-tw-gap-3", children: /* @__PURE__ */ q.jsx("h2", { className: "modal-tw-text-base modal-tw-text-white modal-tw-font-medium modal-tw-py-1 ", children: "Select Versions" }) }) }) }),
15576
15609
  e
15577
15610
  ] });
15578
- const gK = ({
15611
+ const yK = ({
15579
15612
  visible: e,
15580
15613
  closeModal: i,
15581
15614
  versionId: t,
@@ -15596,7 +15629,7 @@ const gK = ({
15596
15629
  const [c, K] = E(window.innerWidth), [S, R] = E(!1), [W, V] = E(A);
15597
15630
  E(!1), E(!1);
15598
15631
  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 || []
15632
+ () => a || []
15600
15633
  ), [Z, M] = E([]);
15601
15634
  Ae(null), qi(() => {
15602
15635
  k(a || []);
@@ -15723,7 +15756,7 @@ const gK = ({
15723
15756
  ),
15724
15757
  /* @__PURE__ */ q.jsxs(os, { children: [
15725
15758
  /* @__PURE__ */ q.jsx(
15726
- cK,
15759
+ ZK,
15727
15760
  {
15728
15761
  versionList: /* @__PURE__ */ q.jsx(
15729
15762
  IK,
@@ -15738,7 +15771,7 @@ const gK = ({
15738
15771
  }
15739
15772
  ),
15740
15773
  /* @__PURE__ */ q.jsx(
15741
- dK,
15774
+ cK,
15742
15775
  {
15743
15776
  downloadableVersionIds: D,
15744
15777
  selectedGtmThresholds: Z,
@@ -15782,7 +15815,7 @@ const gK = ({
15782
15815
  );
15783
15816
  };
15784
15817
  export {
15785
- CK as DownloadModal,
15786
- gK as GearboxAIDownloadModal
15818
+ gK as DownloadModal,
15819
+ yK as GearboxAIDownloadModal
15787
15820
  };
15788
15821
  //# sourceMappingURL=index.es.js.map