@gamelearn/arcade-components 3.9.5 → 3.9.7

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.
@@ -27647,9 +27647,9 @@ function CartelComponent({
27647
27647
  y && S();
27648
27648
  }
27649
27649
  });
27650
- const S = () => {
27650
+ const S = useCallback(() => {
27651
27651
  x("click-ui"), a({ type: "success" });
27652
- };
27652
+ }, [a, x]);
27653
27653
  c(null, S, S);
27654
27654
  const A = (P, w) => window.matchMedia("(min-width: 1280px)").matches ? w : P, R = useCallback(() => {
27655
27655
  if (h !== !0 && e && p.current) {
@@ -27666,21 +27666,19 @@ function CartelComponent({
27666
27666
  return useEffect(() => {
27667
27667
  p.current && new ResizeObserver(() => A(24, 48) && R()).observe(p.current);
27668
27668
  }), useEffect(() => {
27669
- if (e && y && !f && !r) {
27669
+ if (y && !f && !r) {
27670
27670
  const P = characterMs$1 * (e.length || 0);
27671
27671
  C(
27672
27672
  () => {
27673
27673
  S();
27674
27674
  },
27675
- P < 2e3 ? 2e3 : P
27675
+ P < 2400 ? 2400 : P
27676
27676
  );
27677
27677
  }
27678
- return !e && y && !f && !r && C(() => {
27679
- S();
27680
- }, 1400), () => {
27678
+ return () => {
27681
27679
  T();
27682
27680
  };
27683
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
27681
+ }, [r, y, S, f, C, T, e]), /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
27684
27682
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `cartel ${h ? "cartel--cover" : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "cartel__imagewrap", children: [
27685
27683
  /* @__PURE__ */ jsxRuntimeExports.jsx(
27686
27684
  "img",