@golstats/gsc-reports 1.0.96 → 1.0.97

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 T4t = {
121153
121153
  },
121154
121154
  setup(t) {
121155
121155
  const e = t, r = pN(
121156
- () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-CFlI92KX-AHPjJh-x.js")
121156
+ () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-CFlI92KX-DWKajOR_.js")
121157
121157
  ), m = pN(
121158
- () => import("./FilterConditions-55d68355-DMqzcKBO-DLYWbhyJ-BjwdV2qp.js")
121158
+ () => import("./FilterConditions-55d68355-DMqzcKBO-DLYWbhyJ-DKyo0zDq.js")
121159
121159
  ), G = pN(
121160
- () => import("./FilterField-59a73e38-CNaE03Ge-RRGIltM_-BRPxFDfe.js")
121160
+ () => import("./FilterField-59a73e38-CNaE03Ge-RRGIltM_-CQsQr-tT.js")
121161
121161
  ), p = [
121162
121162
  {
121163
121163
  name: "Sub categorías",
@@ -292841,7 +292841,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
292841
292841
  ])
292842
292842
  ]));
292843
292843
  }
292844
- }, SC = /* @__PURE__ */ Bv(wge, [["__scopeId", "data-v-3821a3b3"]]), Vx = (t) => (L0("data-v-e7e7ecf6"), t = t(), O0(), t), Tge = { class: "modal-overlay" }, Sge = { class: "modal-content" }, kge = { class: "modal-header" }, Lge = { class: "header-left" }, Oge = /* @__PURE__ */ Vx(() => /* @__PURE__ */ Zt("img", {
292844
+ }, SC = /* @__PURE__ */ Bv(wge, [["__scopeId", "data-v-3821a3b3"]]), Vx = (t) => (L0("data-v-403972c1"), t = t(), O0(), t), Tge = { class: "modal-overlay" }, Sge = { class: "modal-content" }, kge = { class: "modal-header" }, Lge = { class: "header-left" }, Oge = /* @__PURE__ */ Vx(() => /* @__PURE__ */ Zt("img", {
292845
292845
  src: "https://golstatsimages.blob.core.windows.net/reports-images/icn-report-white.svg",
292846
292846
  class: "icon-title",
292847
292847
  alt: "icono reporte blanco"
@@ -292886,7 +292886,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
292886
292886
  "stroke-linecap": "round",
292887
292887
  "stroke-linejoin": "round"
292888
292888
  })
292889
- ], -1)), dve = { class: "footer-actions" }, hve = ["disabled"], fve = /* @__PURE__ */ Xg('<div class="modal-header" data-v-e7e7ecf6><div class="header-left" data-v-e7e7ecf6><span class="modal-title" data-v-e7e7ecf6>Confirmación</span></div></div><div class="header-separator" data-v-e7e7ecf6></div><div class="modal-body" data-v-e7e7ecf6><div class="step-content" data-v-e7e7ecf6><h3 class="confirm-dialog-title" data-v-e7e7ecf6>¿Estás seguro de regresar?</h3><p class="confirm-dialog-message" data-v-e7e7ecf6>Se perderá la información seleccionada</p></div></div>', 3), mve = {
292889
+ ], -1)), dve = { class: "footer-actions" }, hve = ["disabled"], fve = /* @__PURE__ */ Xg('<div class="modal-header" data-v-403972c1><div class="header-left" data-v-403972c1><span class="modal-title" data-v-403972c1>Confirmación</span></div></div><div class="header-separator" data-v-403972c1></div><div class="modal-body" data-v-403972c1><div class="step-content" data-v-403972c1><h3 class="confirm-dialog-title" data-v-403972c1>¿Estás seguro de regresar?</h3><p class="confirm-dialog-message" data-v-403972c1>Se perderá la información seleccionada</p></div></div>', 3), mve = {
292890
292890
  __name: "ModalConfigurarContenido",
292891
292891
  props: {
292892
292892
  hasRival: {
@@ -292966,7 +292966,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
292966
292966
  return null;
292967
292967
  }), n = ji(0), L = ji([1, 2, 3, 4, 5]), w = ji(!1), b = ji(!1), c = ji("manual"), o = ji("manual"), s = ji([]), i = ji([]), h = ji([]), y = ji([]), T = ji([]), S = ji([]), M = Ks(() => {
292968
292968
  let Ft = 0;
292969
- return u.value && c.value === "manual" && (a.value.equipo > 0 && (Ft += 1), a.value.rival > 0 && (Ft += 1)), l.value && o.value === "manual" && (l.value.homeTeamViews.length > 0 && (Ft += 1), l.value.awayTeamViews.length > 0 && (Ft += 1)), Math.max(Ft, 1);
292969
+ return u.value && c.value === "manual" && (a.value.equipo > 0 && (Ft += 1), a.value.rival > 0 && (Ft += 1)), l.value && o.value === "manual" && (l.value.homeTeamViews.length > 0 && (Ft += 1), l.value.homeTeamAgainstViews.length > 0 && (Ft += 1), l.value.awayTeamViews.length > 0 && (Ft += 1), l.value.awayTeamAgainstViews.length > 0 && (Ft += 1)), Math.max(Ft, 1);
292970
292970
  }), N = Ks(() => {
292971
292971
  var Vt, jt;
292972
292972
  if (n.value === 0)
@@ -293030,10 +293030,10 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
293030
293030
  b.value = !1;
293031
293031
  }
293032
293032
  async function ft() {
293033
- if (n.value === 0) {
293033
+ if (console.log("continueToNext, currentStep:", n.value), console.log("canContinue:", N.value), console.log("specificPlaysDetails:", l.value), console.log("tirosEsquinaOption:", o.value), n.value === 0) {
293034
293034
  if (!N.value)
293035
293035
  return;
293036
- if (u.value && c.value === "automatico" && l.value && o.value === "automatico") {
293036
+ if (u.value && c.value === "automatico" && l.value && o.value === "automatico" || !u.value && l.value && o.value === "automatico" || u.value && c.value === "automatico" && !l.value) {
293037
293037
  r("next", {
293038
293038
  fortalezas: c.value,
293039
293039
  tirosEsquina: o.value,
@@ -293377,7 +293377,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
293377
293377
  ], 512)), [
293378
293378
  [k0, A()[n.value] === "cornersEquipo"]
293379
293379
  ]) : pi("", !0),
293380
- l.value.homeTeamViews.length > 0 ? fh((Or(), Kr("div", ove, [
293380
+ l.value.homeTeamAgainstViews.length > 0 ? fh((Or(), Kr("div", ove, [
293381
293381
  uc(SC, {
293382
293382
  modelValue: y.value,
293383
293383
  "onUpdate:modelValue": xt[7] || (xt[7] = (Ze) => y.value = Ze),
@@ -293411,7 +293411,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
293411
293411
  ], 512)), [
293412
293412
  [k0, A()[n.value] === "cornersRival"]
293413
293413
  ]) : pi("", !0),
293414
- l.value.awayTeamViews.length > 0 ? fh((Or(), Kr("div", lve, [
293414
+ l.value.awayTeamAgainstViews.length > 0 ? fh((Or(), Kr("div", lve, [
293415
293415
  uc(SC, {
293416
293416
  modelValue: S.value,
293417
293417
  "onUpdate:modelValue": xt[9] || (xt[9] = (Ze) => S.value = Ze),
@@ -293482,7 +293482,7 @@ const IP = (t) => (L0("data-v-3821a3b3"), t = t(), O0(), t), nye = { class: "cor
293482
293482
  ], 64);
293483
293483
  };
293484
293484
  }
293485
- }, yve = /* @__PURE__ */ Bv(mve, [["__scopeId", "data-v-e7e7ecf6"]]), qP = (t) => (L0("data-v-55dfb8d7"), t = t(), O0(), t), gve = { class: "templates-header" }, vve = { class: "count" }, bve = {
293485
+ }, yve = /* @__PURE__ */ Bv(mve, [["__scopeId", "data-v-403972c1"]]), qP = (t) => (L0("data-v-55dfb8d7"), t = t(), O0(), t), gve = { class: "templates-header" }, vve = { class: "count" }, bve = {
293486
293486
  key: 0,
293487
293487
  class: "sort-options"
293488
293488
  }, xve = ["onClick"], _ve = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
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.129",
50
+ "@golstats/gsc-template-report-maker": "^1.0.130",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",
@@ -149,7 +149,7 @@
149
149
  </template>
150
150
 
151
151
  <template
152
- v-if="specificPlaysDetails.homeTeamViews.length > 0"
152
+ v-if="specificPlaysDetails.homeTeamAgainstViews.length > 0"
153
153
  >
154
154
  <div v-show="buildStepMap()[currentStep] === 'cornersEquipoAgainst'" class="step-content">
155
155
  <TirosEsquinaView
@@ -185,7 +185,7 @@
185
185
  </template>
186
186
 
187
187
  <template
188
- v-if="specificPlaysDetails.awayTeamViews.length > 0"
188
+ v-if="specificPlaysDetails.awayTeamAgainstViews.length > 0"
189
189
  >
190
190
  <div v-show="buildStepMap()[currentStep] === 'cornersRivalAgainst'" class="step-content">
191
191
  <TirosEsquinaView
@@ -501,10 +501,19 @@ const totalSteps = computed(() => {
501
501
  if (specificPlaysDetails.value.homeTeamViews.length > 0) {
502
502
  steps += 1
503
503
  }
504
+
505
+ if (specificPlaysDetails.value.homeTeamAgainstViews.length > 0) {
506
+ steps += 1
507
+ }
508
+
504
509
  // Si hay vistas de tiros de esquina del rival, agregar paso
505
510
  if (specificPlaysDetails.value.awayTeamViews.length > 0) {
506
511
  steps += 1
507
512
  }
513
+
514
+ if (specificPlaysDetails.value.awayTeamAgainstViews.length > 0) {
515
+ steps += 1
516
+ }
508
517
  }
509
518
 
510
519
  // Pasos de Tiros de esquina - OCULTOS POR EL MOMENTO
@@ -704,6 +713,10 @@ function cancelGoBack() {
704
713
  }
705
714
 
706
715
  async function continueToNext() {
716
+ console.log('continueToNext, currentStep:', currentStep.value)
717
+ console.log('canContinue:', canContinue.value)
718
+ console.log('specificPlaysDetails:', specificPlaysDetails.value)
719
+ console.log('tirosEsquinaOption:', tirosEsquinaOption.value)
707
720
  if (currentStep.value === 0) {
708
721
  // Validar que al menos una opción esté seleccionada
709
722
  if (!canContinue.value) {
@@ -711,10 +724,17 @@ async function continueToNext() {
711
724
  }
712
725
 
713
726
  // Si está en automático, finalizar directamente sin construir payload
714
- if (hasFortalezas.value &&
715
- fortalezasOption.value === 'automatico' &&
716
- specificPlaysDetails.value
717
- && tirosEsquinaOption.value === 'automatico'
727
+ if (
728
+ (hasFortalezas.value &&
729
+ fortalezasOption.value === 'automatico' &&
730
+ specificPlaysDetails.value &&
731
+ tirosEsquinaOption.value === 'automatico') ||
732
+ (!hasFortalezas.value &&
733
+ specificPlaysDetails.value &&
734
+ tirosEsquinaOption.value === 'automatico') ||
735
+ (hasFortalezas.value &&
736
+ fortalezasOption.value === 'automatico' &&
737
+ !specificPlaysDetails.value)
718
738
  ) {
719
739
  // Emitir evento sin payload de strengths (se generarán automáticamente)
720
740
  emit('next', {
@@ -754,7 +774,7 @@ async function continueToNext() {
754
774
  }
755
775
 
756
776
  if (specificPlaysDetails.value && tirosEsquinaOption.value === 'manual') {
757
- specificPlaysPayload= getSpecificPlaysPayload()
777
+ specificPlaysPayload = getSpecificPlaysPayload()
758
778
  }
759
779
 
760
780
  // Emitir evento con las opciones seleccionadas y el payload de fortalezas
@@ -1033,7 +1053,7 @@ function getSpecificPlaysPayload() {
1033
1053
  payload = allSelectedCorners.map((corner) => {
1034
1054
  return {
1035
1055
  play_id: corner.play_id,
1036
- game_id: corner.game.game_id,
1056
+ game_id: corner.game.game_id
1037
1057
  }
1038
1058
  })
1039
1059
  console.log('payload specificPlays:', payload)