@golstats/gsc-reports 1.0.42 → 1.0.43

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.
@@ -112273,11 +112273,11 @@ const jD = {
112273
112273
  },
112274
112274
  setup(r) {
112275
112275
  const a = r, g = N1(
112276
- () => import("./FilterSubcategories-a9b32cc9-DNpw7zPl-DNn_qksa-DrmWd504.js")
112276
+ () => import("./FilterSubcategories-a9b32cc9-DNpw7zPl-DAwYH-cF-BNoi4ZJU.js")
112277
112277
  ), F = N1(
112278
- () => import("./FilterConditions-55d68355-DgmObXIt-CKD2eOTx-r19opn2H.js")
112278
+ () => import("./FilterConditions-55d68355-DgmObXIt-DEf9DwkD-CcY-4VP9.js")
112279
112279
  ), K = N1(
112280
- () => import("./FilterField-59a73e38-09cJ-DRW-pptdl7Vm-CZt4ndD_.js")
112280
+ () => import("./FilterField-59a73e38-09cJ-DRW-DJuikEa2-DBccs69P.js")
112281
112281
  ), E = [
112282
112282
  {
112283
112283
  name: "Sub categorías",
@@ -118066,40 +118066,55 @@ const _w = /* @__PURE__ */ BV(jV, [["render", hq], ["__scopeId", "data-v-9de012a
118066
118066
  }), l = ci(() => {
118067
118067
  var w;
118068
118068
  return ((w = a.game.minutes) == null ? void 0 : w.away_red_cards_minutes) || [];
118069
- }), p = ci(() => h.value.length), m = ci(() => n.value.length), T = ci(() => i.value.length), S = ci(() => u.value.length), k = ci(() => s.value.length), C = ci(() => l.value.length), P = (w) => w.map((O) => O.split(" ").pop()).join(", "), A = (w) => {
118069
+ }), p = ci(() => h.value.length), m = ci(() => n.value.length), T = ci(() => i.value.length), S = ci(() => u.value.length), k = ci(() => s.value.length), C = ci(() => l.value.length), P = (w) => w.map((O) => {
118070
+ const b = O.match(/(\d+\s*\+\s*\d+|\d+)\'?$/);
118071
+ return b ? b[1] + "'" : O;
118072
+ }).join(", "), A = (w) => {
118070
118073
  if (w.length === 0) return [];
118071
118074
  const O = [];
118072
118075
  for (let b = 0; b < w.length; b += 4) {
118073
- const R = w.slice(b, b + 4).map((I) => I.split(" ").pop()).join(", ");
118076
+ const R = w.slice(b, b + 4).map((I) => {
118077
+ const U = I.match(/(\d+\s*\+\s*\d+|\d+)\'?$/);
118078
+ return U ? U[1] + "'" : I;
118079
+ }).join(", ");
118074
118080
  O.push(R);
118075
118081
  }
118076
118082
  return O;
118077
118083
  }, L = ci(() => {
118078
118084
  const w = [];
118079
118085
  if (h.value.forEach((O) => {
118080
- const [b, R] = O.split(" ");
118081
- w.push({
118082
- type: "gol",
118083
- player: b,
118084
- minute: R,
118085
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/gol.svg"
118086
- });
118086
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118087
+ if (b) {
118088
+ const [, R, I] = b;
118089
+ w.push({
118090
+ type: "gol",
118091
+ player: R.trim(),
118092
+ minute: I + "'",
118093
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/gol.svg"
118094
+ });
118095
+ }
118087
118096
  }), i.value.forEach((O) => {
118088
- const [b, R] = O.split(" ");
118089
- w.push({
118090
- type: "amarilla",
118091
- player: b,
118092
- minute: R,
118093
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-amarilla.svg"
118094
- });
118097
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118098
+ if (b) {
118099
+ const [, R, I] = b;
118100
+ w.push({
118101
+ type: "amarilla",
118102
+ player: R.trim(),
118103
+ minute: I + "'",
118104
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-amarilla.svg"
118105
+ });
118106
+ }
118095
118107
  }), s.value.forEach((O) => {
118096
- const [b, R] = O.split(" ");
118097
- w.push({
118098
- type: "roja",
118099
- player: b,
118100
- minute: R,
118101
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-roja.svg"
118102
- });
118108
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118109
+ if (b) {
118110
+ const [, R, I] = b;
118111
+ w.push({
118112
+ type: "roja",
118113
+ player: R.trim(),
118114
+ minute: I + "'",
118115
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-roja.svg"
118116
+ });
118117
+ }
118103
118118
  }), w.length > 9) {
118104
118119
  const O = w.slice(0, 9);
118105
118120
  return O.push({
@@ -118113,29 +118128,38 @@ const _w = /* @__PURE__ */ BV(jV, [["render", hq], ["__scopeId", "data-v-9de012a
118113
118128
  }), M = ci(() => {
118114
118129
  const w = [];
118115
118130
  if (n.value.forEach((O) => {
118116
- const [b, R] = O.split(" ");
118117
- w.push({
118118
- type: "gol",
118119
- player: b,
118120
- minute: R,
118121
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/gol.svg"
118122
- });
118131
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118132
+ if (b) {
118133
+ const [, R, I] = b;
118134
+ w.push({
118135
+ type: "gol",
118136
+ player: R.trim(),
118137
+ minute: I + "'",
118138
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/gol.svg"
118139
+ });
118140
+ }
118123
118141
  }), u.value.forEach((O) => {
118124
- const [b, R] = O.split(" ");
118125
- w.push({
118126
- type: "amarilla",
118127
- player: b,
118128
- minute: R,
118129
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-amarilla.svg"
118130
- });
118142
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118143
+ if (b) {
118144
+ const [, R, I] = b;
118145
+ w.push({
118146
+ type: "amarilla",
118147
+ player: R.trim(),
118148
+ minute: I + "'",
118149
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-amarilla.svg"
118150
+ });
118151
+ }
118131
118152
  }), l.value.forEach((O) => {
118132
- const [b, R] = O.split(" ");
118133
- w.push({
118134
- type: "roja",
118135
- player: b,
118136
- minute: R,
118137
- icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-roja.svg"
118138
- });
118153
+ const b = O.match(/^(.+?)\s+(\d+\s*\+\s*\d+|\d+)\'?$/);
118154
+ if (b) {
118155
+ const [, R, I] = b;
118156
+ w.push({
118157
+ type: "roja",
118158
+ player: R.trim(),
118159
+ minute: I + "'",
118160
+ icon: "https://golstatsimages.blob.core.windows.net/reports-images/icn-tarjeta-roja.svg"
118161
+ });
118162
+ }
118139
118163
  }), w.length > 9) {
118140
118164
  const O = w.slice(0, 9);
118141
118165
  return O.push({
@@ -118430,7 +118454,7 @@ const _w = /* @__PURE__ */ BV(jV, [["render", hq], ["__scopeId", "data-v-9de012a
118430
118454
  ], 2)) : Ar("", !0)
118431
118455
  ], 2));
118432
118456
  }
118433
- }, kw = /* @__PURE__ */ pq(IW, [["__scopeId", "data-v-38864507"]]);
118457
+ }, kw = /* @__PURE__ */ pq(IW, [["__scopeId", "data-v-83b8ef3b"]]);
118434
118458
  function m6(r, a) {
118435
118459
  return function() {
118436
118460
  return r.apply(a, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@golstats/gsc-checkbox": "^1.0.13",
50
- "@golstats/gsc-template-report-maker": "^1.0.55",
50
+ "@golstats/gsc-template-report-maker": "^1.0.56",
51
51
  "@golstats/gsc-volumetric-field": "^1.0.1",
52
52
  "axios": "^1.10.0",
53
53
  "gridstack": "^12.1.1",