@golstats/gsc-lists 1.0.40 → 1.0.42

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.
@@ -6684,11 +6684,19 @@ const {
6684
6684
  var i, o, s, r;
6685
6685
  if (this.isGeneral)
6686
6686
  return this.formatPlayerDataGeneral(e);
6687
- const t = this.playerStats[e.player_id] || {}, a = this.isLillini ? Object.entries(t).map(([l, u]) => ({
6688
- id_variable: l,
6689
- name: u.name || l,
6690
- parameters: "no"
6691
- })) : this.categories;
6687
+ const t = this.playerStats[e.player_id] || {}, a = this.isLillini ? Object.entries(t).map(([l, u]) => {
6688
+ const d = l.split("_"), f = [];
6689
+ let m = null;
6690
+ return d.forEach((g) => {
6691
+ g.length >= 5 ? m = parseInt(g) : f.push(parseInt(g));
6692
+ }), {
6693
+ id: l,
6694
+ id_category: f.length > 0 ? f : null,
6695
+ id_variable: m,
6696
+ name: u.name || l,
6697
+ parameters: null
6698
+ };
6699
+ }) : this.categories;
6692
6700
  return {
6693
6701
  objeto_player: e,
6694
6702
  player_photo: e.photo,
@@ -6706,21 +6714,24 @@ const {
6706
6714
  player_min: ((s = this.playerAddtionalData[e.player_id]) == null ? void 0 : s.minutes) || 0,
6707
6715
  league_name: "-",
6708
6716
  seasons: [...new Set(
6709
- a.map((l) => {
6717
+ this.isLillini ? a.map((l) => {
6718
+ var u;
6719
+ return ((u = t[l.id]) == null ? void 0 : u.season) || [];
6720
+ }).flat() : a.map((l) => {
6710
6721
  var u;
6711
6722
  return ((u = t[l.id_variable]) == null ? void 0 : u.season) || [];
6712
6723
  }).flat()
6713
6724
  )].filter((l) => l && l !== 0),
6714
6725
  season_id: ((r = this.playerAddtionalData[e.player_id]) == null ? void 0 : r.season_id) || 0,
6715
6726
  stats: a.map((l) => {
6716
- var u, d, f, m;
6727
+ var u, d, f, m, g, p;
6717
6728
  return {
6718
- category_id: ((u = t[l.id_variable]) == null ? void 0 : u.categories) || null,
6719
- custom_category_id: ((d = t[l.id_variable]) == null ? void 0 : d.variable_id) || null,
6729
+ category_id: this.isLillini ? l.id_category || null : ((u = t[l.id_variable]) == null ? void 0 : u.categories) || null,
6730
+ custom_category_id: this.isLillini ? l.id_variable || null : ((d = t[l.id_variable]) == null ? void 0 : d.variable_id) || null,
6720
6731
  name: l.name,
6721
6732
  parameters: l.parameters,
6722
- total: ((f = t[l.id_variable]) == null ? void 0 : f.value) || 0,
6723
- seasons: ((m = t[l.id_variable]) == null ? void 0 : m.season) || null
6733
+ total: this.isLillini ? ((f = t[l.id]) == null ? void 0 : f.value) || 0 : ((m = t[l.id_variable]) == null ? void 0 : m.value) || 0,
6734
+ seasons: this.isLillini ? ((g = t[l.id]) == null ? void 0 : g.season) || null : ((p = t[l.id_variable]) == null ? void 0 : p.season) || null
6724
6735
  };
6725
6736
  })
6726
6737
  };
@@ -6764,7 +6775,7 @@ function E3(e, t, a, i, o, s) {
6764
6775
  ])
6765
6776
  ], 64);
6766
6777
  }
6767
- const T3 = /* @__PURE__ */ Lt(x3, [["render", E3], ["__scopeId", "data-v-918ba327"]]), F3 = (e, t) => {
6778
+ const T3 = /* @__PURE__ */ Lt(x3, [["render", E3], ["__scopeId", "data-v-6a948f44"]]), F3 = (e, t) => {
6768
6779
  const a = e.__vccOpts || e;
6769
6780
  for (const [i, o] of t)
6770
6781
  a[i] = o;
@@ -17795,11 +17806,11 @@ const Cx = { class: "dropdown" }, xx = { class: "selected-item" }, kx = {
17795
17806
  },
17796
17807
  setup(e) {
17797
17808
  const t = e, a = Ja(
17798
- () => import("./FilterSubcategories-a4dcceba-DsDqzmmW-CUoHqeOf.js")
17809
+ () => import("./FilterSubcategories-a4dcceba-DsDqzmmW-CGAt4XRV.js")
17799
17810
  ), i = Ja(
17800
- () => import("./FilterConditions-26bfd48d-Dpn0v6rz-BJ0tIV9G.js")
17811
+ () => import("./FilterConditions-26bfd48d-Dpn0v6rz-CDgaERZX.js")
17801
17812
  ), o = Ja(
17802
- () => import("./FilterField-47f7a283-Bhv31dlJ-B5je4Ecx.js")
17813
+ () => import("./FilterField-47f7a283-Bhv31dlJ-B50FHclx.js")
17803
17814
  ), s = [
17804
17815
  {
17805
17816
  name: "Sub categorías",
@@ -33123,11 +33134,11 @@ const xj = { class: "dropdown" }, kj = { class: "selected-item" }, Ej = {
33123
33134
  },
33124
33135
  setup(e) {
33125
33136
  const t = e, a = Ja(
33126
- () => import("./FilterSubcategories-a4dcceba-DUjG7tG9.js")
33137
+ () => import("./FilterSubcategories-a4dcceba-CdlOXc-M.js")
33127
33138
  ), i = Ja(
33128
- () => import("./FilterConditions-26bfd48d-Dr7rfwJG.js")
33139
+ () => import("./FilterConditions-26bfd48d-CaGBdgbj.js")
33129
33140
  ), o = Ja(
33130
- () => import("./FilterField-47f7a283-qoY9aRBE.js")
33141
+ () => import("./FilterField-47f7a283-DwVJrxe6.js")
33131
33142
  ), s = [
33132
33143
  {
33133
33144
  name: "Sub categorías",
@@ -40175,7 +40186,7 @@ const WJ = /* @__PURE__ */ Lt(LJ, [["render", HJ], ["__scopeId", "data-v-b20b2a5
40175
40186
  _e.isSelected = !1, _e.seasons.forEach((H) => {
40176
40187
  H.isSelected = !1;
40177
40188
  });
40178
- }), b.value.clear(), ae.value++, B.value = "", D.value = !1, T.value = !0, _.value = null, g.value = [], p.value = [], y.value = [], t("close");
40189
+ }), b.value.clear(), ae.value++, B.value = "", D.value = !1, T.value = !0, _.value = null, g.value = [], p.value = [], t("close");
40179
40190
  }, fe = () => {
40180
40191
  if (s.value === 1) {
40181
40192
  if (!r.value.title || !r.value.position)
@@ -40698,7 +40709,7 @@ function FZ(e, t, a, i, o, s) {
40698
40709
  _: 1
40699
40710
  });
40700
40711
  }
40701
- const AZ = /* @__PURE__ */ Lt(qJ, [["render", FZ], ["__scopeId", "data-v-455cba60"]]), $Z = {
40712
+ const AZ = /* @__PURE__ */ Lt(qJ, [["render", FZ], ["__scopeId", "data-v-cab0aaa2"]]), $Z = {
40702
40713
  name: "ModalDeleteLista",
40703
40714
  data() {
40704
40715
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-lists",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"