@golstats/gsc-reports 1.0.105 → 1.0.106

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.
@@ -121153,11 +121153,11 @@ const k4t = {
121153
121153
  },
121154
121154
  setup(t) {
121155
121155
  const e = t, r = pN(
121156
- () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-BzcFeKur-CPTutrTz.js")
121156
+ () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-CqO6PoWc-Db1llsCs.js")
121157
121157
  ), g = pN(
121158
- () => import("./FilterConditions-55d68355-DMqzcKBO-CEFMaO2Z-IC20dnaM.js")
121158
+ () => import("./FilterConditions-55d68355-DMqzcKBO-B7GnDT-p-fyW3_-9z.js")
121159
121159
  ), Q = pN(
121160
- () => import("./FilterField-59a73e38-CNaE03Ge-kMprNe0m-Bl2l8wBt.js")
121160
+ () => import("./FilterField-59a73e38-CNaE03Ge-OhjUVWVe-Cag-zdeA.js")
121161
121161
  ), d = [
121162
121162
  {
121163
121163
  name: "Sub categorías",
@@ -287647,7 +287647,7 @@ const joe = /* @__PURE__ */ Poe(EV, [["render", qoe], ["__scopeId", "data-v-f3ee
287647
287647
  or.isHomeTeamForAnalysis = Mr ? Ye : !Ye;
287648
287648
  }
287649
287649
  if (!Ze) {
287650
- or.teamIdForAnalysis = or.isHomeTeamForAnalysis ? Ee.home_team : Ee.visiting_team;
287650
+ console.log("1818181818181818181818181818181818181818181818181818181818181818181818181818181818"), or.teamIdForAnalysis = or.isHomeTeamForAnalysis ? Ee.home_team : Ee.visiting_team, console.log("propsAux.teamIdForAnalysis for Corner Kicks View:", or.teamIdForAnalysis), console.log("specificPlaysCorners:", [...Ut]), console.log("game:", Ee);
287651
287651
  const Mr = Ut.findIndex((la) => (or.isAgainstMode ? 1 : 0) === la.is_against && or.teamIdForAnalysis === la.team_id);
287652
287652
  let Rr = null;
287653
287653
  Mr !== -1 && (Rr = { ...Ut[Mr] }, Ut.splice(Mr, 1)), Rr ? (or.specificPlaysCornersData = Rr, or.playIdForAnalysis = Rr.play_id, or.gameIdForAnalysis = Rr.game_id, or.seasonIdForAnalysis = Ee.season_id, or.isTemplateMode = Ze, or.isGameOnly = !0, or.isCornerInfoVisible = !0) : (or.isNullCornerData = !0, or.isViewNull = !0, console.warn("No specific plays corner data available for this component"));
@@ -288353,7 +288353,7 @@ const joe = /* @__PURE__ */ Poe(EV, [["render", qoe], ["__scopeId", "data-v-f3ee
288353
288353
  ]))
288354
288354
  ], 64));
288355
288355
  }
288356
- }, Lde = /* @__PURE__ */ Y2(kde, [["__scopeId", "data-v-dd6e7678"]]);
288356
+ }, Lde = /* @__PURE__ */ Y2(kde, [["__scopeId", "data-v-504f086d"]]);
288357
288357
  function LQ(t, e) {
288358
288358
  return function() {
288359
288359
  return t.apply(e, arguments);
@@ -292051,7 +292051,7 @@ let xE = null;
292051
292051
  function Y1e() {
292052
292052
  return xE || (xE = H1e.reduce((t, e, r) => (t[r] = e, t), {})), xE;
292053
292053
  }
292054
- const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "corners-view" }, $1e = { class: "corners-header" }, tye = { class: "team-logo-container" }, eye = ["src", "alt"], rye = { class: "header-content" }, aye = { class: "corners-title" }, nye = { class: "corners-description" }, iye = { class: "corners-container" }, oye = { class: "matches-header" }, sye = {
292054
+ const FP = (t) => (L0("data-v-7f431c81"), t = t(), O0(), t), Q1e = { class: "corners-view" }, $1e = { class: "corners-header" }, tye = { class: "team-logo-container" }, eye = ["src", "alt"], rye = { class: "header-content" }, aye = { class: "corners-title" }, nye = { class: "corners-description" }, iye = { class: "corners-container" }, oye = { class: "matches-header" }, sye = {
292055
292055
  key: 0,
292056
292056
  class: "post-match-game"
292057
292057
  }, lye = { class: "post-match-game__match-day" }, uye = { class: "post-match-game__game-info" }, cye = { class: "team-info" }, pye = { class: "team-logo-post" }, dye = ["src"], hye = { class: "team-name" }, fye = { class: "score" }, mye = { class: "team-info" }, yye = { class: "team-name" }, gye = { class: "team-logo-post" }, vye = ["src"], bye = ["onClick"], xye = { class: "team-logo-match" }, _ye = ["src"], wye = { class: "match-score" }, Tye = { class: "team-logo-match" }, Sye = ["src"], kye = { class: "team-acronym" }, Lye = { class: "team-match-day" }, Oye = { class: "team-acronym" }, Cye = { class: "categorias-tabs segmented" }, Mye = ["onClick"], zye = { class: "corners-list" }, Pye = ["onClick"], Aye = { class: "check-col" }, Nye = { class: "badge-col" }, Eye = { class: "count-badge" }, Rye = { class: "content-col" }, Uye = { class: "title-row" }, Vye = { class: "time" }, Fye = /* @__PURE__ */ FP(() => /* @__PURE__ */ Jt("span", { class: "title" }, "Tiro de esquina", -1)), Iye = { class: "player" }, qye = { class: "meta-row" }, jye = /* @__PURE__ */ FP(() => /* @__PURE__ */ Jt("span", null, "/", -1)), Wye = { class: "corners-footer" }, Dye = {
@@ -292273,7 +292273,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
292273
292273
  return [];
292274
292274
  });
292275
292275
  function ot(tr) {
292276
- (!k.value || tr.isSelected) && (tr.isSelected = !tr.isSelected);
292276
+ console.log("onClickCorner", tr), console.log("areCornersFilled", k.value), (!k.value || tr.isSelected) && (tr.isSelected = !tr.isSelected);
292277
292277
  }
292278
292278
  function ft(tr) {
292279
292279
  It.value.forEach((or) => {
@@ -292399,7 +292399,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
292399
292399
  la.isSelected = !1;
292400
292400
  });
292401
292401
  }
292402
- }), Q("corners-fetched", a.value);
292402
+ }), console.log("props.isAgainstMode", g.isAgainstMode), console.log("allGamesCorners", a.value), Q("corners-fetched", a.value);
292403
292403
  }
292404
292404
  }
292405
292405
  function Ue() {
@@ -292853,7 +292853,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
292853
292853
  ])
292854
292854
  ]));
292855
292855
  }
292856
- }, SC = /* @__PURE__ */ Bv(gge, [["__scopeId", "data-v-b6d6ec51"]]), Vx = (t) => (L0("data-v-f3b19d0b"), t = t(), O0(), t), vge = { class: "modal-overlay" }, bge = { class: "modal-content" }, xge = { class: "modal-header" }, _ge = { class: "header-left" }, wge = /* @__PURE__ */ Vx(() => /* @__PURE__ */ Jt("img", {
292856
+ }, SC = /* @__PURE__ */ Bv(gge, [["__scopeId", "data-v-7f431c81"]]), Vx = (t) => (L0("data-v-aa7b3a17"), t = t(), O0(), t), vge = { class: "modal-overlay" }, bge = { class: "modal-content" }, xge = { class: "modal-header" }, _ge = { class: "header-left" }, wge = /* @__PURE__ */ Vx(() => /* @__PURE__ */ Jt("img", {
292857
292857
  src: "https://golstatsimages.blob.core.windows.net/reports-images/icn-report-white.svg",
292858
292858
  class: "icon-title",
292859
292859
  alt: "icono reporte blanco"
@@ -292898,7 +292898,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
292898
292898
  "stroke-linecap": "round",
292899
292899
  "stroke-linejoin": "round"
292900
292900
  })
292901
- ], -1)), sve = { class: "footer-actions" }, lve = ["disabled"], uve = /* @__PURE__ */ Xg('<div class="modal-header" data-v-f3b19d0b><div class="header-left" data-v-f3b19d0b><span class="modal-title" data-v-f3b19d0b>Confirmación</span></div></div><div class="header-separator" data-v-f3b19d0b></div><div class="modal-body" data-v-f3b19d0b><div class="step-content" data-v-f3b19d0b><h3 class="confirm-dialog-title" data-v-f3b19d0b>¿Estás seguro de regresar?</h3><p class="confirm-dialog-message" data-v-f3b19d0b>Se perderá la información seleccionada</p></div></div>', 3), cve = {
292901
+ ], -1)), sve = { class: "footer-actions" }, lve = ["disabled"], uve = /* @__PURE__ */ Xg('<div class="modal-header" data-v-aa7b3a17><div class="header-left" data-v-aa7b3a17><span class="modal-title" data-v-aa7b3a17>Confirmación</span></div></div><div class="header-separator" data-v-aa7b3a17></div><div class="modal-body" data-v-aa7b3a17><div class="step-content" data-v-aa7b3a17><h3 class="confirm-dialog-title" data-v-aa7b3a17>¿Estás seguro de regresar?</h3><p class="confirm-dialog-message" data-v-aa7b3a17>Se perderá la información seleccionada</p></div></div>', 3), cve = {
292902
292902
  __name: "ModalConfigurarContenido",
292903
292903
  props: {
292904
292904
  hasRival: {
@@ -293009,8 +293009,12 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293009
293009
  }
293010
293010
  if (It === "cornersEquipoAgainst") {
293011
293011
  if (!z.value) return !1;
293012
- const re = y.value.length, pe = l.value.homeTeamViews.length, ue = M.value.cornersEquipoAgainst.length;
293013
- return re === pe || re === ue;
293012
+ const re = y.value.length, pe = l.value.homeTeamAgainstViews.length, ue = M.value.cornersEquipoAgainst.length;
293013
+ return console.log("canContinue cornersEquipoAgainst:", {
293014
+ selected: re,
293015
+ totalRequerido: pe,
293016
+ availableCorners: ue
293017
+ }), re === pe || re === ue;
293014
293018
  }
293015
293019
  if (It === "cornersRival") {
293016
293020
  if (!X.value) return !1;
@@ -293019,7 +293023,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293019
293023
  }
293020
293024
  if (It === "cornersRivalAgainst") {
293021
293025
  if (!C.value) return !1;
293022
- const re = k.value.length, pe = l.value.awayTeamViews.length, ue = M.value.cornersRivalAgainst.length;
293026
+ const re = k.value.length, pe = l.value.awayTeamAgainstViews.length, ue = M.value.cornersRivalAgainst.length;
293023
293027
  return re === pe || re === ue;
293024
293028
  }
293025
293029
  }
@@ -293204,8 +293208,8 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293204
293208
  return console.log("allSelectedCorners:", It), console.log("selectedCornersEquipo:", h.value), console.log("selectedCornersEquipoAgainst:", y.value), console.log("selectedCornersRival:", T.value), console.log("selectedCornersRivalAgainst:", k.value), Ut = It.map((Rt) => ({
293205
293209
  play_id: Rt.play_id,
293206
293210
  game_id: Rt.game.game_id,
293207
- team_id: Rt.team_id,
293208
- is_against: Rt.is_against ? 1 : 0
293211
+ team_id: Rt.isAgainst ? Rt.game.home_team === Rt.team_id ? Rt.game.visiting_team : Rt.game.home_team : Rt.team_id,
293212
+ is_against: Rt.isAgainst ? 1 : 0
293209
293213
  })), console.log("payload specificPlays:", Ut), Ut;
293210
293214
  }
293211
293215
  function qt(Ut, It) {
@@ -293404,7 +293408,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293404
293408
  uc(SC, {
293405
293409
  modelValue: y.value,
293406
293410
  "onUpdate:modelValue": It[8] || (It[8] = (sr) => y.value = sr),
293407
- "team-views": l.value.homeTeamViews,
293411
+ "team-views": l.value.homeTeamAgainstViews,
293408
293412
  "is-rival": !1,
293409
293413
  "is-against-mode": !0,
293410
293414
  title: "Tiros de esquina en contra de mi equipo",
@@ -293442,7 +293446,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293442
293446
  "onUpdate:modelValue": It[12] || (It[12] = (sr) => k.value = sr),
293443
293447
  "is-rival": !0,
293444
293448
  "is-against-mode": !0,
293445
- "team-views": l.value.awayTeamViews,
293449
+ "team-views": l.value.awayTeamAgainstViews,
293446
293450
  title: "Tiros de esquina en contra del rival",
293447
293451
  "team-logo-url": t.configData.partido.visitanteLogo,
293448
293452
  "config-data": t.configData,
@@ -293508,7 +293512,7 @@ const FP = (t) => (L0("data-v-b6d6ec51"), t = t(), O0(), t), Q1e = { class: "cor
293508
293512
  ], 64);
293509
293513
  };
293510
293514
  }
293511
- }, pve = /* @__PURE__ */ Bv(cve, [["__scopeId", "data-v-f3b19d0b"]]), IP = (t) => (L0("data-v-55dfb8d7"), t = t(), O0(), t), dve = { class: "templates-header" }, hve = { class: "count" }, fve = {
293515
+ }, pve = /* @__PURE__ */ Bv(cve, [["__scopeId", "data-v-aa7b3a17"]]), IP = (t) => (L0("data-v-55dfb8d7"), t = t(), O0(), t), dve = { class: "templates-header" }, hve = { class: "count" }, fve = {
293512
293516
  key: 0,
293513
293517
  class: "sort-options"
293514
293518
  }, mve = ["onClick"], yve = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -155,7 +155,7 @@
155
155
  <div v-show="buildStepMap()[currentStep] === 'cornersEquipoAgainst'" class="step-content">
156
156
  <TirosEsquinaView
157
157
  v-model="selectedCornersEquipoAgainst"
158
- :team-views="specificPlaysDetails.homeTeamViews"
158
+ :team-views="specificPlaysDetails.homeTeamAgainstViews"
159
159
  :is-rival="false"
160
160
  :is-against-mode="true"
161
161
  title="Tiros de esquina en contra de mi equipo"
@@ -195,7 +195,7 @@
195
195
  v-model="selectedCornersRivalAgainst"
196
196
  :is-rival="true"
197
197
  :is-against-mode="true"
198
- :team-views="specificPlaysDetails.awayTeamViews"
198
+ :team-views="specificPlaysDetails.awayTeamAgainstViews"
199
199
  title="Tiros de esquina en contra del rival"
200
200
  :team-logo-url="configData.partido.visitanteLogo"
201
201
  :config-data="configData"
@@ -594,8 +594,13 @@ const canContinue = computed(() => {
594
594
  const ref = cornersEquipoAgainstRef.value
595
595
  if (!ref) return false
596
596
  const selected = selectedCornersEquipoAgainst.value.length
597
- const totalRequerido = specificPlaysDetails.value.homeTeamViews.length
597
+ const totalRequerido = specificPlaysDetails.value.homeTeamAgainstViews.length
598
598
  const availableCorners = cornersFetched.value.cornersEquipoAgainst.length
599
+ console.log('canContinue cornersEquipoAgainst:', {
600
+ selected,
601
+ totalRequerido,
602
+ availableCorners
603
+ })
599
604
 
600
605
  return selected === totalRequerido ||
601
606
  selected === availableCorners
@@ -616,7 +621,7 @@ const canContinue = computed(() => {
616
621
  const ref = cornersRivalAgainstRef.value
617
622
  if (!ref) return false
618
623
  const selected = selectedCornersRivalAgainst.value.length
619
- const totalRequerido = specificPlaysDetails.value.awayTeamViews.length
624
+ const totalRequerido = specificPlaysDetails.value.awayTeamAgainstViews.length
620
625
  const availableCorners = cornersFetched.value.cornersRivalAgainst.length
621
626
 
622
627
  return selected === totalRequerido ||
@@ -1077,8 +1082,12 @@ function getSpecificPlaysPayload() {
1077
1082
  return {
1078
1083
  play_id: corner.play_id,
1079
1084
  game_id: corner.game.game_id,
1080
- team_id: corner.team_id,
1081
- is_against: corner.is_against ? 1 : 0
1085
+ team_id: corner.isAgainst
1086
+ ? corner.game.home_team === corner.team_id
1087
+ ? corner.game.visiting_team
1088
+ : corner.game.home_team
1089
+ :corner.team_id,
1090
+ is_against: corner.isAgainst ? 1 : 0
1082
1091
  }
1083
1092
  })
1084
1093
  console.log('payload specificPlays:', payload)
@@ -241,6 +241,8 @@ const gameCorners = computed(() => {
241
241
 
242
242
  function onClickCorner(corner) {
243
243
  // corner.isSelected = !corner.isSelected
244
+ console.log('onClickCorner', corner)
245
+ console.log('areCornersFilled', areCornersFilled.value)
244
246
 
245
247
  if (!areCornersFilled.value || corner.isSelected) {
246
248
  corner.isSelected = !corner.isSelected
@@ -510,6 +512,8 @@ function filterCorners() {
510
512
  }
511
513
  }
512
514
  })
515
+ console.log('props.isAgainstMode', props.isAgainstMode)
516
+ console.log('allGamesCorners', allGamesCorners.value)
513
517
  emit('corners-fetched', allGamesCorners.value)
514
518
  }
515
519
  }