jaml-ui 0.25.3 → 0.26.2

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.
@@ -5929,93 +5929,93 @@ function Vo(e) {
5929
5929
  }
5930
5930
  //#endregion
5931
5931
  //#region src/decode/motelyItemDecoder.ts
5932
- var Ho = {
5933
- [W.MotelyItemTypeCategory.Standardcard]: "playing",
5934
- [W.MotelyItemTypeCategory.SpectralCard]: "spectral",
5935
- [W.MotelyItemTypeCategory.TarotCard]: "tarot",
5936
- [W.MotelyItemTypeCategory.PlanetCard]: "planet",
5937
- [W.MotelyItemTypeCategory.Joker]: "joker"
5932
+ var Ho = W, Uo = {
5933
+ [Ho.MotelyItemTypeCategory.Standardcard]: "playing",
5934
+ [Ho.MotelyItemTypeCategory.SpectralCard]: "spectral",
5935
+ [Ho.MotelyItemTypeCategory.TarotCard]: "tarot",
5936
+ [Ho.MotelyItemTypeCategory.PlanetCard]: "planet",
5937
+ [Ho.MotelyItemTypeCategory.Joker]: "joker"
5938
5938
  };
5939
- function Uo(e, t) {
5939
+ function Wo(e, t) {
5940
5940
  let n = e[String(t)];
5941
5941
  return typeof n == "string" ? n : null;
5942
5942
  }
5943
- function Wo(e) {
5944
- return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
5945
- }
5946
5943
  function Go(e) {
5947
- return e == null ? null : typeof e == "number" ? Number.isFinite(e) ? e : null : e.value ?? e.type ?? null;
5944
+ return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
5948
5945
  }
5949
5946
  function Ko(e) {
5950
- let t = Go(e);
5951
- return t === null ? null : t & 65535;
5947
+ return e == null ? null : typeof e == "number" ? Number.isFinite(e) ? e : null : e.value ?? e.type ?? null;
5952
5948
  }
5953
5949
  function qo(e) {
5954
5950
  let t = Ko(e);
5955
- return t === null ? "Unknown" : Uo(W.MotelyItemType, t) ?? `item#${t}`;
5951
+ return t === null ? null : t & 65535;
5956
5952
  }
5957
5953
  function Jo(e) {
5958
- return Ho[e >> 12 & 15] ?? "unknown";
5954
+ let t = qo(e);
5955
+ return t === null ? "Unknown" : Wo(W.MotelyItemType, t) ?? `item#${t}`;
5959
5956
  }
5960
5957
  function Yo(e) {
5961
- let t = Ko(e);
5962
- return t === null ? "unknown" : Jo(t);
5958
+ return Uo[e >> 12 & 15] ?? "unknown";
5963
5959
  }
5964
5960
  function Xo(e) {
5965
- return Wo(qo(e));
5961
+ let t = qo(e);
5962
+ return t === null ? "unknown" : Yo(t);
5966
5963
  }
5967
5964
  function Zo(e) {
5965
+ return Go(Jo(e));
5966
+ }
5967
+ function Qo(e) {
5968
5968
  if (e == null) return null;
5969
5969
  let t = typeof e == "number" ? e : e.edition;
5970
5970
  if (t == null) return null;
5971
- let n = Uo(W.MotelyItemEdition, t);
5971
+ let n = Wo(W.MotelyItemEdition, t);
5972
5972
  return !n || n === "None" ? null : n;
5973
5973
  }
5974
- function Qo(e) {
5974
+ function $o(e) {
5975
5975
  if (e == null) return null;
5976
5976
  let t = typeof e == "number" ? null : e.seal;
5977
5977
  if (t == null) return null;
5978
- let n = Uo(W.MotelyItemSeal, t);
5978
+ let n = Wo(W.MotelyItemSeal, t);
5979
5979
  return !n || n === "None" ? null : n;
5980
5980
  }
5981
- function $o(e) {
5981
+ function es(e) {
5982
5982
  if (e == null) return null;
5983
5983
  let t = typeof e == "number" ? null : e.enhancement;
5984
5984
  if (t == null) return null;
5985
- let n = Uo(W.MotelyItemEnhancement, t);
5985
+ let n = Wo(W.MotelyItemEnhancement, t);
5986
5986
  return !n || n === "None" ? null : n;
5987
5987
  }
5988
- function es(e) {
5988
+ function ts(e) {
5989
5989
  if (e == null) return null;
5990
5990
  let t = typeof e == "number" ? null : e.rank;
5991
- return t == null ? null : Uo(W.MotelyStandardcardRank, t);
5991
+ return t == null ? null : Wo(W.MotelyStandardcardRank, t);
5992
5992
  }
5993
- function ts(e) {
5993
+ function ns(e) {
5994
5994
  if (e == null) return null;
5995
5995
  let t = typeof e == "number" ? null : e.suit;
5996
- return t == null ? null : Uo(W.MotelyStandardcardSuit, t);
5997
- }
5998
- function ns(e) {
5999
- return qo(e);
5996
+ return t == null ? null : Wo(W.MotelyStandardcardSuit, t);
6000
5997
  }
6001
5998
  function rs(e) {
6002
- let t = Ko(e);
5999
+ return Jo(e);
6000
+ }
6001
+ function is(e) {
6002
+ let t = qo(e);
6003
6003
  if (t === null) return null;
6004
- let n = Uo(W.MotelyItemType, t) ?? `Unknown_${t}`, r = Jo(t);
6004
+ let n = Wo(W.MotelyItemType, t) ?? `Unknown_${t}`, r = Yo(t);
6005
6005
  return {
6006
6006
  itemType: t,
6007
6007
  enumKey: n,
6008
- displayName: Wo(n),
6008
+ displayName: Go(n),
6009
6009
  category: r,
6010
- edition: Zo(e),
6011
- seal: Qo(e),
6012
- enhancement: $o(e),
6013
- rank: es(e),
6014
- suit: ts(e)
6010
+ edition: Qo(e),
6011
+ seal: $o(e),
6012
+ enhancement: es(e),
6013
+ rank: ts(e),
6014
+ suit: ns(e)
6015
6015
  };
6016
6016
  }
6017
- function is(e, t) {
6018
- let n = rs(e);
6017
+ function as(e, t) {
6018
+ let n = is(e);
6019
6019
  return n ? {
6020
6020
  type: n.category === "joker" ? "joker" : n.category === "playing" ? "playing" : "consumable",
6021
6021
  card: {
@@ -6029,11 +6029,11 @@ function is(e, t) {
6029
6029
  }
6030
6030
  } : null;
6031
6031
  }
6032
- function as() {}
6033
- function os() {
6032
+ function os() {}
6033
+ function ss() {
6034
6034
  return 0;
6035
6035
  }
6036
6036
  //#endregion
6037
- export { Lo as C, W as E, Io as S, Fo as T, zo as _, Jo as a, Bo as b, $o as c, qo as d, es as f, Ro as g, as as h, os as i, Yo as l, Ko as m, ns as n, Xo as o, ts as p, is as r, Zo as s, rs as t, Qo as u, Mo as v, Po as w, Vo as x, No as y };
6037
+ export { Lo as C, W as E, Io as S, Fo as T, zo as _, Yo as a, Bo as b, es as c, Jo as d, ts as f, Ro as g, os as h, ss as i, Xo as l, qo as m, rs as n, Zo as o, ns as p, as as r, Qo as s, is as t, $o as u, Mo as v, Po as w, Vo as x, No as y };
6038
6038
 
6039
- //# sourceMappingURL=motelyItemDecoder-CueyZ0XD.js.map
6039
+ //# sourceMappingURL=motelyItemDecoder-DdhlU_Ko.js.map