@gamelearn/arcade-components 3.14.2 → 3.14.3

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.
@@ -27330,20 +27330,18 @@ var domToReact_1 = domToReact$1, CASE_SENSITIVE_TAG_NAMES$1 = [
27330
27330
  "textPath"
27331
27331
  ], constants$2 = {
27332
27332
  CASE_SENSITIVE_TAG_NAMES: CASE_SENSITIVE_TAG_NAMES$1
27333
- }, node = {}, lib$3 = {}, hasRequiredLib$1;
27334
- function requireLib$1() {
27335
- return hasRequiredLib$1 || (hasRequiredLib$1 = 1, function(l) {
27336
- Object.defineProperty(l, "__esModule", { value: !0 }), l.Doctype = l.CDATA = l.Tag = l.Style = l.Script = l.Comment = l.Directive = l.Text = l.Root = l.isTag = l.ElementType = void 0;
27337
- var e;
27338
- (function(t) {
27339
- t.Root = "root", t.Text = "text", t.Directive = "directive", t.Comment = "comment", t.Script = "script", t.Style = "style", t.Tag = "tag", t.CDATA = "cdata", t.Doctype = "doctype";
27340
- })(e = l.ElementType || (l.ElementType = {}));
27341
- function n(t) {
27342
- return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27343
- }
27344
- l.isTag = n, l.Root = e.Root, l.Text = e.Text, l.Directive = e.Directive, l.Comment = e.Comment, l.Script = e.Script, l.Style = e.Style, l.Tag = e.Tag, l.CDATA = e.CDATA, l.Doctype = e.Doctype;
27345
- }(lib$3)), lib$3;
27346
- }
27333
+ }, node = {}, lib$3 = {};
27334
+ (function(l) {
27335
+ Object.defineProperty(l, "__esModule", { value: !0 }), l.Doctype = l.CDATA = l.Tag = l.Style = l.Script = l.Comment = l.Directive = l.Text = l.Root = l.isTag = l.ElementType = void 0;
27336
+ var e;
27337
+ (function(t) {
27338
+ t.Root = "root", t.Text = "text", t.Directive = "directive", t.Comment = "comment", t.Script = "script", t.Style = "style", t.Tag = "tag", t.CDATA = "cdata", t.Doctype = "doctype";
27339
+ })(e = l.ElementType || (l.ElementType = {}));
27340
+ function n(t) {
27341
+ return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27342
+ }
27343
+ l.isTag = n, l.Root = e.Root, l.Text = e.Text, l.Directive = e.Directive, l.Comment = e.Comment, l.Script = e.Script, l.Style = e.Style, l.Tag = e.Tag, l.CDATA = e.CDATA, l.Doctype = e.Doctype;
27344
+ })(lib$3);
27347
27345
  var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
27348
27346
  var l = function(e, n) {
27349
27347
  return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
@@ -27374,7 +27372,7 @@ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ fu
27374
27372
  };
27375
27373
  Object.defineProperty(node, "__esModule", { value: !0 });
27376
27374
  node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
27377
- var domelementtype_1 = requireLib$1(), nodeTypes = /* @__PURE__ */ new Map([
27375
+ var domelementtype_1 = lib$3, nodeTypes = /* @__PURE__ */ new Map([
27378
27376
  [domelementtype_1.ElementType.Tag, 1],
27379
27377
  [domelementtype_1.ElementType.Script, 1],
27380
27378
  [domelementtype_1.ElementType.Style, 1],
@@ -27782,7 +27780,7 @@ function requireLib() {
27782
27780
  p !== "default" && !Object.prototype.hasOwnProperty.call(u, p) && e(u, f, p);
27783
27781
  };
27784
27782
  Object.defineProperty(l, "__esModule", { value: !0 }), l.DomHandler = void 0;
27785
- var t = requireLib$1(), s = node;
27783
+ var t = lib$3, s = node;
27786
27784
  n(node, l);
27787
27785
  var o = /\s+/g, d = {
27788
27786
  normalizeWhitespace: !1,
@@ -29964,6 +29962,10 @@ function BasicDecision({
29964
29962
  hasRewards: f,
29965
29963
  options: u
29966
29964
  }) {
29965
+ const [p, x] = useState(!1);
29966
+ function T() {
29967
+ (t == null ? void 0 : t.id) !== void 0 && !p && (x(!0), d());
29968
+ }
29967
29969
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
29968
29970
  "div",
29969
29971
  {
@@ -29979,8 +29981,8 @@ function BasicDecision({
29979
29981
  "button",
29980
29982
  {
29981
29983
  type: "button",
29982
- className: `gat--btn__navigation ${(t == null ? void 0 : t.id) !== void 0 ? "" : "disabled"}`,
29983
- onClick: () => (t == null ? void 0 : t.id) !== void 0 && d(),
29984
+ className: `gat--btn__navigation ${p || (t == null ? void 0 : t.id) === void 0 ? "disabled" : ""}`,
29985
+ onClick: () => T(),
29984
29986
  "aria-label": h("storylines.misc.closePiece"),
29985
29987
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: LangIsRtl() ? "icon-back" : "icon-next" })
29986
29988
  }