@golstats/gsc-table-scrollable 1.0.14 → 1.0.15

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.
@@ -1 +1 @@
1
- .checkbox[data-v-b6f124d8]{width:var(--7bd9d47b);height:var(--34dc7ddc);display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}.checkbox__teams[data-v-b6f124d8]{margin-left:6px;display:flex}.checkbox__teams__logo[data-v-b6f124d8]{height:22px;width:22px;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid .5px #cbee6b;background-color:#0d1d29}.checkbox__teams__logo[data-v-b6f124d8]:first-child{transform:translate(8px)}.checkbox__teams__logo>img[data-v-b6f124d8]{height:18px;width:18px}.checkbox.box-right[data-v-b6f124d8]{flex-direction:row-reverse;justify-content:flex-end}.checkbox.box-top[data-v-b6f124d8]{flex-direction:column;justify-content:flex-start;align-items:center}.checkbox.box-bottom[data-v-b6f124d8]{flex-direction:column-reverse;justify-content:flex-end;align-items:center}.checkbox__box[data-v-b6f124d8]{display:flex;justify-content:center;align-items:center}.checkbox__label[data-v-b6f124d8]{margin:.3em 0;width:var(--7bd9d47b)}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{padding:0 4px}svg[data-v-df83603b]{cursor:pointer}.parameters[data-v-df83603b]{border-radius:4px;border:solid 1px rgba(255,255,255,.4);padding:0 8px 2px;height:15px;cursor:pointer}.arrow[data-v-df83603b]{cursor:pointer}.expanded[data-v-df83603b]{transform:rotate(180deg)}.scrollable-row-2[data-v-df83603b]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-df83603b]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-df83603b]{width:100%}.column-title-2[data-v-df83603b]{height:70px;width:fit-content;display:flex;justify-content:center;align-items:center;gap:8px;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4;padding:0 17px}.row[data-v-df83603b]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-df83603b]{background-color:#172531}.scroll-columns[data-v-df83603b]{display:flex;flex-direction:column;position:relative}.overlay[data-v-df83603b]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-df83603b]{text-decoration:underline;cursor:pointer}.data-info[data-v-df83603b]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.data-info>svg[data-v-df83603b]{cursor:pointer}.restore[data-v-14d97ca7]{width:100%;padding-left:24px;justify-content:flex-start!important}.restore-button[data-v-14d97ca7]{display:flex;justify-content:center;align-items:center;gap:10px;padding:4px 10px 4px 8px;border-radius:4px;border:solid 1px rgba(255,255,255,.5);cursor:pointer}.button[data-v-14d97ca7]{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;padding:2px 18px;border-radius:50px;border:solid 1px rgba(255,255,255,.2);background-color:#ffffff1a;cursor:pointer;font-family:Poppins-Medium,sans-serif;font-size:10px;font-weight:500;font-stretch:normal;font-style:normal;line-height:2.4;letter-spacing:normal;text-align:left;color:#fff}.button.green[data-v-14d97ca7]{border:solid 1px #cbee6b}svg[data-v-14d97ca7]{cursor:pointer}.arrow[data-v-14d97ca7]{cursor:pointer;transition:ease .3s;min-width:12px;align-self:center}.expanded[data-v-14d97ca7]{transform:rotate(180deg)}.country-flag[data-v-14d97ca7]{width:14px;height:auto}.team-info[data-v-14d97ca7]{display:flex;justify-content:center;align-items:center;gap:12px}.team-info>.team-logo[data-v-14d97ca7]{width:25px;height:25px}.team-info>.team-logo>img[data-v-14d97ca7]{width:25px;height:25px}.underline[data-v-14d97ca7]{text-decoration:underline}.data-info[data-v-14d97ca7]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.scrollable-row[data-v-14d97ca7]{display:grid;grid-template-columns:104px 100px 100px 100px 150px 150px 104px 114px;transition:ease .3s}.titles[data-v-14d97ca7]{width:100%}.row[data-v-14d97ca7]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-14d97ca7]{background-color:#172531}.column-title[data-v-14d97ca7]{height:70px;display:flex;justify-content:center;align-items:center;gap:12px;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4}.details-row[data-v-14d97ca7]{width:var(--width-details);position:absolute;top:72px;left:0;z-index:1;background-color:#111d28;border-bottom:solid 1px rgba(255,255,255,.1)}.details-row>.container[data-v-14d97ca7]{width:calc(var(--width-details));padding:16px 0;display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap}.details-row>.container>div[data-v-14d97ca7]{margin-bottom:24px}.details-row__info[data-v-14d97ca7]{display:flex;align-items:flex-start;font-family:Poppins-Regular,sans-serif;font-weight:500;font-size:12px;color:#fff}.details-row__info>div[data-v-14d97ca7]{margin:0 40px}.details-row__info span.bold[data-v-14d97ca7]{font-family:Poppins-Medium,sans-serif}.details-row__buttons[data-v-14d97ca7]{display:flex;align-items:center;gap:16px;margin-left:40px}.details-row.odd[data-v-14d97ca7]{background-color:#172531}.static-row[data-v-14d97ca7]{display:grid;grid-template-columns:1fr min-content;column-gap:12px;padding-left:12px;position:relative;transition:all .3s ease}.static-row__info-player[data-v-14d97ca7]{display:flex;justify-content:flex-start;align-items:center;gap:var(--gap-static-row);overflow:hidden}.static-row__info-player>.position[data-v-14d97ca7]{font-family:Montserrat-SemiBold,sans-serif;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.static-row__info-player>.player-name[data-v-14d97ca7]{font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4;white-space:nowrap;overflow:hidden;flex-shrink:2}.player-photo[data-v-14d97ca7]{width:32px;height:32px;border-radius:50%;background-color:#fff}.player-photo>div[data-v-14d97ca7]{width:32px;height:32px;overflow:hidden;background-color:#fff;display:flex;justify-content:center;align-items:flex-start;border-radius:50%}.player-photo>div>img[data-v-14d97ca7]{width:auto;height:40px}.table[data-v-14d97ca7]{width:100%;height:fit-content;display:flex;justify-content:flex-start;align-items:flex-start}.table__static-column[data-v-14d97ca7]{width:var(--width-static-column);min-width:var(--width-static-column);background-color:#1e3142}.table__scrollable-columns[data-v-14d97ca7]{width:100%;overflow-x:scroll}
1
+ .checkbox[data-v-b6f124d8]{width:var(--7bd9d47b);height:var(--34dc7ddc);display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}.checkbox__teams[data-v-b6f124d8]{margin-left:6px;display:flex}.checkbox__teams__logo[data-v-b6f124d8]{height:22px;width:22px;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid .5px #cbee6b;background-color:#0d1d29}.checkbox__teams__logo[data-v-b6f124d8]:first-child{transform:translate(8px)}.checkbox__teams__logo>img[data-v-b6f124d8]{height:18px;width:18px}.checkbox.box-right[data-v-b6f124d8]{flex-direction:row-reverse;justify-content:flex-end}.checkbox.box-top[data-v-b6f124d8]{flex-direction:column;justify-content:flex-start;align-items:center}.checkbox.box-bottom[data-v-b6f124d8]{flex-direction:column-reverse;justify-content:flex-end;align-items:center}.checkbox__box[data-v-b6f124d8]{display:flex;justify-content:center;align-items:center}.checkbox__label[data-v-b6f124d8]{margin:.3em 0;width:var(--7bd9d47b)}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{padding:0 4px}svg[data-v-df83603b]{cursor:pointer}.parameters[data-v-df83603b]{border-radius:4px;border:solid 1px rgba(255,255,255,.4);padding:0 8px 2px;height:15px;cursor:pointer}.arrow[data-v-df83603b]{cursor:pointer}.expanded[data-v-df83603b]{transform:rotate(180deg)}.scrollable-row-2[data-v-df83603b]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-df83603b]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-df83603b]{width:100%}.column-title-2[data-v-df83603b]{height:70px;width:fit-content;display:flex;justify-content:center;align-items:center;gap:8px;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4;padding:0 17px}.row[data-v-df83603b]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-df83603b]{background-color:#172531}.scroll-columns[data-v-df83603b]{display:flex;flex-direction:column;position:relative}.overlay[data-v-df83603b]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-df83603b]{text-decoration:underline;cursor:pointer}.data-info[data-v-df83603b]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.data-info>svg[data-v-df83603b]{cursor:pointer}.restore[data-v-18f2714a]{width:100%;padding-left:8px;justify-content:space-between!important}.titles-left[data-v-18f2714a]{width:fit-content;display:flex;justify-content:center;gap:14px}.restore-button[data-v-18f2714a]{display:flex;justify-content:center;align-items:center;gap:10px;padding:4px 10px 4px 8px;border-radius:4px;border:solid 1px rgba(255,255,255,.5);cursor:pointer;margin-right:12px}.restore-button>div[data-v-18f2714a]{white-space:nowrap}.button[data-v-18f2714a]{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;padding:2px 18px;border-radius:50px;border:solid 1px rgba(255,255,255,.2);background-color:#ffffff1a;cursor:pointer;font-family:Poppins-Medium,sans-serif;font-size:10px;font-weight:500;font-stretch:normal;font-style:normal;line-height:2.4;letter-spacing:normal;text-align:left;color:#fff}.button.green[data-v-18f2714a]{border:solid 1px #cbee6b}svg[data-v-18f2714a]{cursor:pointer}.arrow[data-v-18f2714a]{cursor:pointer;transition:ease .3s;min-width:12px;align-self:center}.expanded[data-v-18f2714a]{transform:rotate(180deg)}.country-flag[data-v-18f2714a]{width:14px;height:auto}.team-info[data-v-18f2714a]{display:flex;justify-content:center;align-items:center;gap:12px}.team-info>.team-logo[data-v-18f2714a]{width:25px;height:25px}.team-info>.team-logo>img[data-v-18f2714a]{width:25px;height:25px}.underline[data-v-18f2714a]{text-decoration:underline}.data-info[data-v-18f2714a]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.scrollable-row[data-v-18f2714a]{display:grid;grid-template-columns:104px 100px 100px 100px 150px 150px 104px 114px;transition:ease .3s}.titles[data-v-18f2714a]{width:100%}.row[data-v-18f2714a]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-18f2714a]{background-color:#172531}.column-title[data-v-18f2714a]{height:70px;display:flex;justify-content:center;align-items:center;gap:12px;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4}.details-row[data-v-18f2714a]{width:var(--width-details);position:absolute;top:72px;left:0;z-index:1;background-color:#111d28;border-bottom:solid 1px rgba(255,255,255,.1)}.details-row>.container[data-v-18f2714a]{width:calc(var(--width-details));padding:16px 0;display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap}.details-row>.container>div[data-v-18f2714a]{margin-bottom:24px}.details-row__info[data-v-18f2714a]{display:flex;align-items:flex-start;font-family:Poppins-Regular,sans-serif;font-weight:500;font-size:12px;color:#fff}.details-row__info>div[data-v-18f2714a]{margin:0 40px}.details-row__info span.bold[data-v-18f2714a]{font-family:Poppins-Medium,sans-serif}.details-row__buttons[data-v-18f2714a]{display:flex;align-items:center;gap:16px;margin-left:40px}.details-row.odd[data-v-18f2714a]{background-color:#172531}.static-row[data-v-18f2714a]{width:436px;display:grid;grid-template-columns:1fr min-content;column-gap:12px;padding-left:12px;position:relative;transition:all .3s ease;padding-right:8px;border-right:solid 1px rgba(255,255,255,.1)}.static-row__info-player[data-v-18f2714a]{display:flex;justify-content:flex-start;align-items:center;gap:var(--gap-static-row);overflow:hidden}.static-row__info-player>.position[data-v-18f2714a]{display:flex;justify-content:center;width:40px;font-family:Montserrat-SemiBold,sans-serif;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.static-row__info-player>.add-to-list[data-v-18f2714a]{display:flex;justify-content:center;width:80px}.static-row__info-player>.player-name[data-v-18f2714a]{font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4;white-space:nowrap;overflow:hidden;flex-shrink:2}.player-photo[data-v-18f2714a]{width:32px;height:32px;border-radius:50%;background-color:#fff}.player-photo>div[data-v-18f2714a]{width:32px;height:32px;overflow:hidden;background-color:#fff;display:flex;justify-content:center;align-items:flex-start;border-radius:50%}.player-photo>div>img[data-v-18f2714a]{width:auto;height:40px}.table[data-v-18f2714a]{width:100%;height:fit-content;display:flex;justify-content:flex-start;align-items:flex-start}.table__static-column[data-v-18f2714a]{width:var(--width-static-column);min-width:var(--width-static-column);background-color:#1e3142}.table__scrollable-columns[data-v-18f2714a]{width:100%;overflow-x:scroll}
@@ -1,4 +1,4 @@
1
- import { useCssVars as at, ref as g, computed as O, watch as V, createElementBlock as r, openBlock as l, normalizeClass as y, createElementVNode as t, createCommentVNode as L, normalizeStyle as B, Fragment as T, toDisplayString as h, pushScopeId as W, popScopeId as H, onMounted as rt, renderList as z, onBeforeUnmount as Ct, createVNode as ot, createBlock as st, Transition as kt, withCtx as wt, withDirectives as bt, createTextVNode as D, vShow as yt, unref as it } from "vue";
1
+ import { useCssVars as at, ref as g, computed as O, watch as V, createElementBlock as r, openBlock as n, normalizeClass as y, createElementVNode as t, createCommentVNode as L, normalizeStyle as B, Fragment as T, toDisplayString as h, pushScopeId as W, popScopeId as H, onMounted as rt, renderList as z, onBeforeUnmount as Ct, createVNode as ot, createBlock as st, Transition as kt, withCtx as wt, withDirectives as bt, createTextVNode as D, vShow as yt, unref as it } from "vue";
2
2
  const xt = (s, u) => {
3
3
  const i = s.__vccOpts || s;
4
4
  for (const [f, _] of u)
@@ -167,7 +167,7 @@ const xt = (s, u) => {
167
167
  function E(p) {
168
168
  return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`;
169
169
  }
170
- return (p, I) => (l(), r("div", {
170
+ return (p, I) => (n(), r("div", {
171
171
  class: y(["checkbox", `box-${s.boxPosition}`]),
172
172
  onClick: R
173
173
  }, [
@@ -175,13 +175,13 @@ const xt = (s, u) => {
175
175
  class: "checkbox__box",
176
176
  style: B(_.value)
177
177
  }, [
178
- f.value ? (l(), r(T, { key: 0 }, [
179
- i.boxValue ? (l(), r("div", {
178
+ f.value ? (n(), r(T, { key: 0 }, [
179
+ i.boxValue ? (n(), r("div", {
180
180
  key: 0,
181
181
  class: "checkbox__box__value",
182
182
  style: B(m.value)
183
- }, h(s.boxValue), 5)) : (l(), r("div", St, [
184
- (l(), r("svg", Mt, [
183
+ }, h(s.boxValue), 5)) : (n(), r("div", St, [
184
+ (n(), r("svg", Mt, [
185
185
  t("path", {
186
186
  d: "M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",
187
187
  fill: s.boxValueColor
@@ -190,7 +190,7 @@ const xt = (s, u) => {
190
190
  ]))
191
191
  ], 64)) : L("", !0)
192
192
  ], 4),
193
- s.teamsIds && s.teamsIds.length ? (l(), r("div", $t, [
193
+ s.teamsIds && s.teamsIds.length ? (n(), r("div", $t, [
194
194
  t("div", Bt, [
195
195
  t("img", {
196
196
  src: E(s.teamsIds[0]),
@@ -289,7 +289,7 @@ const xt = (s, u) => {
289
289
  this.$emit("click", s), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
290
290
  }
291
291
  }
292
- }, nt = () => {
292
+ }, lt = () => {
293
293
  at((s) => ({
294
294
  "9d01acb4": s.height,
295
295
  "14e95081": s.borderWidthBtn,
@@ -305,8 +305,8 @@ const xt = (s, u) => {
305
305
  "93b87770": s.marginLeftStat,
306
306
  c7f7beba: s.fontSizeStat
307
307
  }));
308
- }, lt = N.setup;
309
- N.setup = lt ? (s, u) => (nt(), lt(s, u)) : nt;
308
+ }, nt = N.setup;
309
+ N.setup = nt ? (s, u) => (lt(), nt(s, u)) : lt;
310
310
  const Ft = (s) => (W("data-v-f3ee6b2b"), s = s(), H(), s), Dt = ["src"], Vt = {
311
311
  key: 1,
312
312
  class: "text"
@@ -315,28 +315,28 @@ const Ft = (s) => (W("data-v-f3ee6b2b"), s = s(), H(), s), Dt = ["src"], Vt = {
315
315
  src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
316
316
  }, null, -1)), Zt = { class: "numstats" }, Wt = { class: "leyend" };
317
317
  function Ht(s, u, i, f, _, m) {
318
- return l(), r("div", null, [
319
- i.type == 0 ? (l(), r("div", {
318
+ return n(), r("div", null, [
319
+ i.type == 0 ? (n(), r("div", {
320
320
  key: 0,
321
321
  class: y(["button", _.status && i.typeOnOff && "button-active"]),
322
322
  style: B([m.customStyle, _.status && i.typeOnOff && m.customActive]),
323
323
  onClick: u[0] || (u[0] = (...S) => m.btnClick && m.btnClick(...S))
324
324
  }, [
325
- i.icon && i.iconPosition.toLowerCase() === "left" ? (l(), r("img", {
325
+ i.icon && i.iconPosition.toLowerCase() === "left" ? (n(), r("img", {
326
326
  key: 0,
327
327
  class: "icon",
328
328
  style: B({ width: i.iconSize }),
329
329
  src: i.icon
330
330
  }, null, 12, Dt)) : L("", !0),
331
- i.textValue ? (l(), r("div", Vt, h(i.textValue), 1)) : L("", !0),
332
- i.icon && i.iconPosition.toLowerCase() === "right" ? (l(), r("img", {
331
+ i.textValue ? (n(), r("div", Vt, h(i.textValue), 1)) : L("", !0),
332
+ i.icon && i.iconPosition.toLowerCase() === "right" ? (n(), r("img", {
333
333
  key: 2,
334
334
  class: "icon",
335
335
  style: B({ width: i.iconSize }),
336
336
  src: i.icon
337
337
  }, null, 12, zt)) : L("", !0)
338
338
  ], 6)) : L("", !0),
339
- i.type == 1 ? (l(), r("div", {
339
+ i.type == 1 ? (n(), r("div", {
340
340
  key: 1,
341
341
  class: "button-target",
342
342
  onClick: u[1] || (u[1] = (...S) => m.btnClick && m.btnClick(...S))
@@ -434,28 +434,28 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
434
434
  p();
435
435
  }), u({
436
436
  setMarginTopDetails: I
437
- }), (c, v) => (l(), r("div", {
437
+ }), (c, v) => (n(), r("div", {
438
438
  class: "scroll-columns",
439
439
  style: B(E.value)
440
440
  }, [
441
- s.isEditMode ? (l(), r("div", Gt)) : L("", !0),
441
+ s.isEditMode ? (n(), r("div", Gt)) : L("", !0),
442
442
  t("div", {
443
443
  ref_key: "titlesRow",
444
444
  ref: m,
445
445
  class: "scrollable-row-2"
446
446
  }, [
447
- (l(!0), r(T, null, z(R.value, (w, M) => (l(), r("div", {
447
+ (n(!0), r(T, null, z(R.value, (w, M) => (n(), r("div", {
448
448
  key: `t-${M}`,
449
449
  class: "column-title-2"
450
450
  }, [
451
- w.parameters && w.parameters !== "no" ? (l(), r("div", {
451
+ w.parameters && w.parameters !== "no" ? (n(), r("div", {
452
452
  key: 0,
453
453
  class: "parameters",
454
454
  role: "button",
455
455
  onClick: (x) => k(w.parameters)
456
456
  }, Jt, 8, Ut)) : L("", !0),
457
457
  t("div", Xt, h(w.name), 1),
458
- (l(), r("svg", {
458
+ (n(), r("svg", {
459
459
  width: "18",
460
460
  height: "18",
461
461
  viewBox: "0 0 18 18",
@@ -466,11 +466,11 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
466
466
  ]))), 128)),
467
467
  te
468
468
  ], 512),
469
- (l(!0), r(T, null, z(s.availablePlayers, (w, M) => (l(), r("div", {
469
+ (n(!0), r(T, null, z(s.availablePlayers, (w, M) => (n(), r("div", {
470
470
  key: `i-${w.id}`,
471
471
  class: "row scrollable-row-totals"
472
472
  }, [
473
- (l(!0), r(T, null, z(w.stats, (x) => (l(), r("div", {
473
+ (n(!0), r(T, null, z(w.stats, (x) => (n(), r("div", {
474
474
  key: x.category_id,
475
475
  class: y(["row data-info", { odd: M % 2 !== 0, underline: !!x.total && x.total !== "0%" && x.seasons && x.seasons.length }])
476
476
  }, [
@@ -481,7 +481,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
481
481
  ]))), 128))
482
482
  ], 4));
483
483
  }
484
- }, se = /* @__PURE__ */ dt(oe, [["__scopeId", "data-v-df83603b"]]), d = (s) => (W("data-v-14d97ca7"), s = s(), H(), s), ie = { class: "table__static-column" }, ne = { class: "static-title column-title restore" }, le = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
484
+ }, se = /* @__PURE__ */ dt(oe, [["__scopeId", "data-v-df83603b"]]), d = (s) => (W("data-v-18f2714a"), s = s(), H(), s), ie = { class: "table__static-column" }, le = { class: "static-title column-title restore" }, ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "titles-left" }, [
485
+ /* @__PURE__ */ t("div", { class: "title" }, "Ranking"),
486
+ /* @__PURE__ */ t("div", { class: "title" }, "Agregar a lista")
487
+ ], -1)), ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
485
488
  width: "16",
486
489
  height: "16",
487
490
  viewBox: "0 0 16 16",
@@ -498,10 +501,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
498
501
  /* @__PURE__ */ t("path", { d: "M15.333 2.667v4h-4M.667 13.333v-4h4" }),
499
502
  /* @__PURE__ */ t("path", { d: "M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24" })
500
503
  ])
501
- ], -1)), ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Restaurar orden", -1)), re = [
502
- le,
503
- ae
504
- ], de = ["id"], ce = { class: "container" }, ue = { class: "details-row__info" }, fe = { class: "details-row__info__personal" }, he = { class: "bold" }, ve = { class: "bold" }, pe = { class: "bold" }, _e = { class: "bold" }, ge = { class: "details-row__info__games" }, me = { class: "bold" }, Ce = { class: "bold" }, ke = ["onClick"], we = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
504
+ ], -1)), re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Restaurar orden", -1)), de = [
505
+ ae,
506
+ re
507
+ ], ce = ["id"], ue = { class: "container" }, fe = { class: "details-row__info" }, he = { class: "details-row__info__personal" }, ve = { class: "bold" }, pe = { class: "bold" }, _e = { class: "bold" }, ge = { class: "bold" }, me = { class: "details-row__info__games" }, Ce = { class: "bold" }, ke = { class: "bold" }, we = ["onClick"], be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), ye = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
505
508
  width: "17",
506
509
  height: "16",
507
510
  viewBox: "0 0 17 16",
@@ -524,10 +527,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
524
527
  })
525
528
  ])
526
529
  ])
527
- ], -1)), ye = [
528
- we,
529
- be
530
- ], xe = ["onClick"], Se = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), Me = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
530
+ ], -1)), xe = [
531
+ be,
532
+ ye
533
+ ], Se = ["onClick"], Me = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), Le = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
531
534
  width: "17",
532
535
  height: "15",
533
536
  viewBox: "0 0 20 18",
@@ -558,10 +561,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
558
561
  "stroke-linecap": "round",
559
562
  "stroke-linejoin": "round"
560
563
  })
561
- ], -1)), Le = [
562
- Se,
563
- Me
564
- ], $e = ["onClick"], Be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), Re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
564
+ ], -1)), $e = [
565
+ Me,
566
+ Le
567
+ ], Be = ["onClick"], Re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), Ee = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
565
568
  width: "20",
566
569
  height: "20",
567
570
  viewBox: "0 0 20 20",
@@ -592,69 +595,72 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
592
595
  "stroke-linecap": "round",
593
596
  "stroke-linejoin": "round"
594
597
  })
595
- ], -1)), Ee = [
596
- Be,
597
- Re
598
- ], Pe = ["onClick"], Ie = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), Oe = [
599
- Ie
600
- ], Te = { class: "static-row__info-player" }, Fe = { class: "position" }, De = ["onClick"], Ve = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
598
+ ], -1)), Pe = [
599
+ Re,
600
+ Ee
601
+ ], Ie = ["onClick"], Oe = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), Te = [
602
+ Oe
603
+ ], Fe = { class: "static-row__info-player" }, De = { class: "position" }, Ve = ["onClick"], ze = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
601
604
  d: "M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",
602
605
  stroke: "white",
603
606
  "stroke-opacity": "0.5",
604
607
  "stroke-width": "1.5",
605
608
  "stroke-linecap": "round",
606
609
  "stroke-linejoin": "round"
607
- }, null, -1)), ze = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
610
+ }, null, -1)), je = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
608
611
  d: "M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",
609
612
  stroke: "white",
610
613
  "stroke-opacity": "0.5",
611
614
  "stroke-width": "1.5",
612
615
  "stroke-linecap": "round",
613
616
  "stroke-linejoin": "round"
614
- }, null, -1)), je = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
617
+ }, null, -1)), Ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
615
618
  d: "M18.332 8.16663H13.332",
616
619
  stroke: "white",
617
620
  "stroke-opacity": "0.5",
618
621
  "stroke-width": "1.5",
619
622
  "stroke-linecap": "round",
620
623
  "stroke-linejoin": "round"
621
- }, null, -1)), Ae = [
622
- Ve,
624
+ }, null, -1)), Ze = [
623
625
  ze,
624
- je
625
- ], Ze = ["onClick"], We = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
626
+ je,
627
+ Ae
628
+ ], We = {
629
+ key: 1,
630
+ class: "add-to-list"
631
+ }, He = ["onClick"], Ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
626
632
  d: "M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",
627
633
  stroke: "white",
628
634
  "stroke-opacity": "1",
629
635
  "stroke-width": "1.44023",
630
636
  "stroke-linecap": "round",
631
637
  "stroke-linejoin": "round"
632
- }, null, -1)), He = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
638
+ }, null, -1)), Ge = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
633
639
  d: "M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",
634
640
  stroke: "white",
635
641
  "stroke-opacity": "1",
636
642
  "stroke-width": "1.44023",
637
643
  "stroke-linecap": "round",
638
644
  "stroke-linejoin": "round"
639
- }, null, -1)), Ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
645
+ }, null, -1)), Ue = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
640
646
  d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
641
647
  stroke: "white",
642
648
  "stroke-opacity": "1",
643
649
  "stroke-width": "1.44023",
644
650
  "stroke-linecap": "round",
645
651
  "stroke-linejoin": "round"
646
- }, null, -1)), Ge = [
647
- We,
648
- He,
649
- Ne
650
- ], Ue = { class: "player-photo" }, qe = ["src"], Je = { class: "player-name" }, Xe = { class: "arrow" }, Ke = ["onClick"], Qe = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
652
+ }, null, -1)), qe = [
653
+ Ne,
654
+ Ge,
655
+ Ue
656
+ ], Je = { class: "player-photo" }, Xe = ["src"], Ke = { class: "player-name" }, Qe = { class: "arrow" }, Ye = ["onClick"], to = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
651
657
  "fill-rule": "evenodd",
652
658
  "clip-rule": "evenodd",
653
659
  d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
654
660
  fill: "#D9D9D9"
655
- }, null, -1)), Ye = [
656
- Qe
657
- ], to = { class: "titles scrollable-row" }, eo = { class: "column-title" }, oo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Equipo ", -1)), so = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
661
+ }, null, -1)), eo = [
662
+ to
663
+ ], oo = { class: "titles scrollable-row" }, so = { class: "column-title" }, io = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Equipo ", -1)), lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
658
664
  opacity: ".5",
659
665
  stroke: "#fff",
660
666
  "stroke-width": "1.677",
@@ -662,9 +668,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
662
668
  "stroke-linejoin": "round"
663
669
  }, [
664
670
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
665
- ], -1)), io = [
666
- so
667
- ], no = { class: "column-title" }, lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Posición ", -1)), ao = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
671
+ ], -1)), no = [
672
+ lo
673
+ ], ao = { class: "column-title" }, ro = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Posición ", -1)), co = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
668
674
  opacity: ".5",
669
675
  stroke: "#fff",
670
676
  "stroke-width": "1.677",
@@ -672,9 +678,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
672
678
  "stroke-linejoin": "round"
673
679
  }, [
674
680
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
675
- ], -1)), ro = [
676
- ao
677
- ], co = { class: "column-title" }, uo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Edad ", -1)), fo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
681
+ ], -1)), uo = [
682
+ co
683
+ ], fo = { class: "column-title" }, ho = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Edad ", -1)), vo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
678
684
  opacity: ".5",
679
685
  stroke: "#fff",
680
686
  "stroke-width": "1.677",
@@ -682,9 +688,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
682
688
  "stroke-linejoin": "round"
683
689
  }, [
684
690
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
685
- ], -1)), ho = [
686
- fo
687
- ], vo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "País", -1)), po = { class: "column-title" }, _o = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Partidos Jugados ", -1)), go = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
691
+ ], -1)), po = [
692
+ vo
693
+ ], _o = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "País", -1)), go = { class: "column-title" }, mo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Partidos Jugados ", -1)), Co = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
688
694
  opacity: ".5",
689
695
  stroke: "#fff",
690
696
  "stroke-width": "1.677",
@@ -692,9 +698,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
692
698
  "stroke-linejoin": "round"
693
699
  }, [
694
700
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
695
- ], -1)), mo = [
696
- go
697
- ], Co = { class: "column-title" }, ko = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Minutos Jugados ", -1)), wo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
701
+ ], -1)), ko = [
702
+ Co
703
+ ], wo = { class: "column-title" }, bo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Minutos Jugados ", -1)), yo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
698
704
  opacity: ".5",
699
705
  stroke: "#fff",
700
706
  "stroke-width": "1.677",
@@ -702,9 +708,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
702
708
  "stroke-linejoin": "round"
703
709
  }, [
704
710
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
705
- ], -1)), bo = [
706
- wo
707
- ], yo = { class: "column-title" }, xo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Liga ", -1)), So = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
711
+ ], -1)), xo = [
712
+ yo
713
+ ], So = { class: "column-title" }, Mo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Liga ", -1)), Lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
708
714
  opacity: ".5",
709
715
  stroke: "#fff",
710
716
  "stroke-width": "1.677",
@@ -712,9 +718,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
712
718
  "stroke-linejoin": "round"
713
719
  }, [
714
720
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
715
- ], -1)), Mo = [
716
- So
717
- ], Lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "Videos", -1)), $o = { class: "team-logo" }, Bo = ["src"], Ro = { class: "team-name data-info" }, Eo = ["src"], Po = {
721
+ ], -1)), $o = [
722
+ Lo
723
+ ], Bo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "Videos", -1)), Ro = { class: "team-logo" }, Eo = ["src"], Po = { class: "team-name data-info" }, Io = ["src"], Oo = {
718
724
  __name: "GSC-TableScrollable",
719
725
  props: {
720
726
  players: {
@@ -781,21 +787,21 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
781
787
  ]), w = g(0), M = O(() => ({
782
788
  "--width-details": `${E.value}px`,
783
789
  "--gap-static-row": `${x.value ? "8px" : "18px"}`,
784
- "--width-static-column": `${x.value ? "50%" : "256px"}`
790
+ "--width-static-column": `${x.value ? "50%" : "436px"}`
785
791
  })), x = O(() => E.value < 600);
786
792
  V(
787
793
  () => i.players,
788
794
  (e) => {
789
- e && e.length && (m.value = e.map((n, o) => {
795
+ e && e.length && (m.value = e.map((l, o) => {
790
796
  const a = o + 1, C = {
791
- ...n,
797
+ ...l,
792
798
  position: a < 10 ? `0${a}` : `${a}`,
793
799
  isSelected: !1,
794
800
  isExpanded: !1,
795
801
  isOdd: o % 2 !== 0,
796
802
  index: o
797
803
  };
798
- return n.stats && n.stats.length && (C.stats = n.stats.map((b) => ({
804
+ return l.stats && l.stats.length && (C.stats = l.stats.map((b) => ({
799
805
  ...b,
800
806
  isDesc: !1,
801
807
  isRoot: !1
@@ -803,32 +809,32 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
803
809
  const et = C.stats.find((mt) => mt.custom_category_id === Number(b));
804
810
  et && (et.parameters = $);
805
811
  }), C;
806
- }), c.value = m.value.map((n) => ({
807
- ...n
812
+ }), c.value = m.value.map((l) => ({
813
+ ...l
808
814
  })));
809
815
  },
810
816
  { immediate: !0, deep: !0 }
811
817
  ), V(
812
818
  () => i.isEditMode,
813
819
  (e) => {
814
- e && m.value.forEach((n) => {
815
- n.isSelected = !1;
820
+ e && m.value.forEach((l) => {
821
+ l.isSelected = !1;
816
822
  });
817
823
  }
818
824
  ), V(
819
825
  () => j.value,
820
826
  (e) => {
821
827
  if (e) {
822
- let n = [...c.value];
823
- e.isRoot ? n.sort((o, a) => typeof o[e.name] == "string" ? e.isDesc ? o[e.name].localeCompare(a[e.name]) : o[e.name].localeCompare(a[e.name]) * -1 : e.isDesc ? a[e.name] - o[e.name] : o[e.name] - a[e.name]) : n.sort((o, a) => {
828
+ let l = [...c.value];
829
+ e.isRoot ? l.sort((o, a) => typeof o[e.name] == "string" ? e.isDesc ? o[e.name].localeCompare(a[e.name]) : o[e.name].localeCompare(a[e.name]) * -1 : e.isDesc ? a[e.name] - o[e.name] : o[e.name] - a[e.name]) : l.sort((o, a) => {
824
830
  const C = o.stats.find(($) => $.name === e.name), b = a.stats.find(($) => $.name === e.name);
825
831
  return typeof C.value == "string" ? e.isDesc ? C.total.localeCompare(b.total) : C.total.localeCompare(b.total) * -1 : e.isDesc ? b.total - C.total : C.total - b.total;
826
- }), n.forEach((o, a) => {
832
+ }), l.forEach((o, a) => {
827
833
  o.isOdd = a % 2 !== 0;
828
- }), c.value = n;
834
+ }), c.value = l;
829
835
  } else
830
- c.value.sort((n, o) => n.index - o.index).forEach((n, o) => {
831
- n.isOdd = o % 2 !== 0;
836
+ c.value.sort((l, o) => l.index - o.index).forEach((l, o) => {
837
+ l.isOdd = o % 2 !== 0;
832
838
  });
833
839
  },
834
840
  { immediate: !0, deep: !0 }
@@ -839,9 +845,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
839
845
  o && (o.style.marginTop = `${e}px`), i.isGeneral ? U(I.value, e) : R.value && R.value.setMarginTopDetails(I.value, e), e === 0 && F.value && K(F.value);
840
846
  }
841
847
  );
842
- function U(e, n) {
848
+ function U(e, l) {
843
849
  const a = document.querySelectorAll(".scrollable-row")[e + 2];
844
- a && (a.style.marginTop = `${n}px`);
850
+ a && (a.style.marginTop = `${l}px`);
845
851
  }
846
852
  function ct(e) {
847
853
  u("click-parameters", e);
@@ -850,7 +856,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
850
856
  e && (e.isDesc = !e.isDesc), j.value = e;
851
857
  }
852
858
  function q(e) {
853
- const n = e.player || e.objeto_player, o = n ? n.player_id || n.id || n.playerId : e.id || e.player_id, a = {
859
+ const l = e.player || e.objeto_player, o = l ? l.player_id || l.id || l.playerId : e.id || e.player_id, a = {
854
860
  isFeaturedPlayers: !1,
855
861
  mainSectionType: 1,
856
862
  playListType: 2,
@@ -879,13 +885,13 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
879
885
  }
880
886
  function ut() {
881
887
  f = new ResizeObserver((e) => {
882
- for (const n of e)
883
- E.value = n.contentRect.width;
888
+ for (const l of e)
889
+ E.value = l.contentRect.width;
884
890
  }), f.observe(S.value);
885
891
  }
886
892
  function ft(e) {
887
- _ = new ResizeObserver((n) => {
888
- for (const o of n)
893
+ _ = new ResizeObserver((l) => {
894
+ for (const o of l)
889
895
  p.value = o.contentRect.height;
890
896
  }), _.observe(e);
891
897
  }
@@ -936,8 +942,8 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
936
942
  488
937
943
  ];
938
944
  }
939
- function vt(e, n) {
940
- n.isSelected = e;
945
+ function vt(e, l) {
946
+ l.isSelected = e;
941
947
  const o = m.value.filter((a) => a.isSelected);
942
948
  u("change-selected-players", o);
943
949
  }
@@ -958,8 +964,8 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
958
964
  e.isExpanded = !1, F.value = null;
959
965
  return;
960
966
  }
961
- const n = m.value.find((b) => b.isExpanded);
962
- if (n && (n.isExpanded = !1), n) {
967
+ const l = m.value.find((b) => b.isExpanded);
968
+ if (l && (l.isExpanded = !1), l) {
963
969
  F.value = e;
964
970
  return;
965
971
  }
@@ -988,7 +994,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
988
994
  ut(), gt();
989
995
  }), Ct(() => {
990
996
  f && f.disconnect(), _ && _.disconnect(), k.value && (k.value.removeEventListener("mousemove", tt, !1), k.value.removeEventListener("mouseup", A, !1), k.value.removeEventListener("mouseleave", A, !1));
991
- }), (e, n) => (l(), r("div", {
997
+ }), (e, l) => (n(), r("div", {
992
998
  class: "table",
993
999
  ref_key: "tableSC",
994
1000
  ref: S,
@@ -996,14 +1002,15 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
996
1002
  key: w.value
997
1003
  }, [
998
1004
  t("div", ie, [
999
- t("div", ne, [
1005
+ t("div", le, [
1006
+ ne,
1000
1007
  t("div", {
1001
1008
  role: "button",
1002
1009
  class: "restore-button",
1003
- onClick: n[0] || (n[0] = (o) => P(null))
1004
- }, re)
1010
+ onClick: l[0] || (l[0] = (o) => P(null))
1011
+ }, de)
1005
1012
  ]),
1006
- (l(!0), r(T, null, z(c.value, (o) => (l(), r("div", {
1013
+ (n(!0), r(T, null, z(c.value, (o) => (n(), r("div", {
1007
1014
  key: `s-${o.id}`,
1008
1015
  class: y(["row static-row", { odd: o.isOdd }])
1009
1016
  }, [
@@ -1013,34 +1020,34 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1013
1020
  id: `dr-${o.id}`,
1014
1021
  class: y(["details-row", { odd: o.isOdd }])
1015
1022
  }, [
1016
- t("div", ce, [
1017
- t("div", ue, [
1018
- t("div", fe, [
1023
+ t("div", ue, [
1024
+ t("div", fe, [
1025
+ t("div", he, [
1019
1026
  t("div", null, [
1020
1027
  D("Equipo: "),
1021
- t("span", he, h(o.team_name), 1)
1028
+ t("span", ve, h(o.team_name), 1)
1022
1029
  ]),
1023
1030
  t("div", null, [
1024
1031
  D("Edad: "),
1025
- t("span", ve, h(o.player_age) + " Años", 1)
1032
+ t("span", pe, h(o.player_age) + " Años", 1)
1026
1033
  ]),
1027
1034
  t("div", null, [
1028
1035
  D("Nacionalidad: "),
1029
- t("span", pe, h(o.player_country), 1)
1036
+ t("span", _e, h(o.player_country), 1)
1030
1037
  ]),
1031
1038
  t("div", null, [
1032
1039
  D("Posición: "),
1033
- t("span", _e, h(o.position_name), 1)
1040
+ t("span", ge, h(o.position_name), 1)
1034
1041
  ])
1035
1042
  ]),
1036
- t("div", ge, [
1043
+ t("div", me, [
1037
1044
  t("div", null, [
1038
1045
  D("Partidos Jugados: "),
1039
- t("span", me, h(o.player_games), 1)
1046
+ t("span", Ce, h(o.player_games), 1)
1040
1047
  ]),
1041
1048
  t("div", null, [
1042
1049
  D("Minutos Jugados: "),
1043
- t("span", Ce, h(o.player_min), 1)
1050
+ t("span", ke, h(o.player_min), 1)
1044
1051
  ])
1045
1052
  ])
1046
1053
  ]),
@@ -1052,41 +1059,41 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1052
1059
  role: "button",
1053
1060
  class: "button",
1054
1061
  onClick: (a) => _t(o)
1055
- }, ye, 8, ke),
1056
- s.isTableFromList ? (l(), r("div", {
1062
+ }, xe, 8, we),
1063
+ s.isTableFromList ? (n(), r("div", {
1057
1064
  key: 0,
1058
1065
  role: "button",
1059
1066
  class: "button",
1060
1067
  onClick: (a) => J(o)
1061
- }, Le, 8, xe)) : (l(), r("div", {
1068
+ }, $e, 8, Se)) : (n(), r("div", {
1062
1069
  key: 1,
1063
1070
  role: "button",
1064
1071
  class: "button",
1065
1072
  onClick: (a) => X(o)
1066
- }, Ee, 8, $e)),
1073
+ }, Pe, 8, Be)),
1067
1074
  t("div", {
1068
1075
  role: "button",
1069
1076
  class: "button green",
1070
1077
  onClick: (a) => pt(o)
1071
- }, Oe, 8, Pe)
1078
+ }, Te, 8, Ie)
1072
1079
  ], 4)
1073
1080
  ])
1074
- ], 10, de), [
1081
+ ], 10, ce), [
1075
1082
  [yt, o.isExpanded]
1076
1083
  ])
1077
1084
  ]),
1078
1085
  _: 2
1079
1086
  }, 1024),
1080
- s.isEditMode ? (l(), st(it(Ot), {
1087
+ s.isEditMode ? (n(), st(it(Ot), {
1081
1088
  key: 0,
1082
1089
  fontFamily: "Poppins-Regular",
1083
1090
  labelFontSize: "14px",
1084
1091
  "model-value": o.isSelected,
1085
1092
  "onUpdate:modelValue": (a) => vt(a, o)
1086
1093
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : L("", !0),
1087
- t("div", Te, [
1088
- t("div", Fe, h(o.position), 1),
1089
- s.isTableFromList ? (l(), r("svg", {
1094
+ t("div", Fe, [
1095
+ t("div", De, h(o.position), 1),
1096
+ s.isTableFromList ? (n(), r("svg", {
1090
1097
  key: 0,
1091
1098
  width: "20",
1092
1099
  height: "20",
@@ -1094,27 +1101,28 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1094
1101
  fill: "none",
1095
1102
  xmlns: "http://www.w3.org/2000/svg",
1096
1103
  onClick: (a) => J(o)
1097
- }, Ae, 8, De)) : (l(), r("svg", {
1098
- key: 1,
1099
- width: "20",
1100
- height: "20",
1101
- viewBox: "0 0 20 20",
1102
- fill: "none",
1103
- xmlns: "http://www.w3.org/2000/svg",
1104
- onClick: (a) => X(o)
1105
- }, Ge, 8, Ze)),
1106
- t("div", Ue, [
1104
+ }, Ze, 8, Ve)) : (n(), r("div", We, [
1105
+ (n(), r("svg", {
1106
+ width: "20",
1107
+ height: "20",
1108
+ viewBox: "0 0 20 20",
1109
+ fill: "none",
1110
+ xmlns: "http://www.w3.org/2000/svg",
1111
+ onClick: (a) => X(o)
1112
+ }, qe, 8, He))
1113
+ ])),
1114
+ t("div", Je, [
1107
1115
  t("div", null, [
1108
1116
  t("img", {
1109
1117
  src: o.player_photo,
1110
1118
  alt: "player photo"
1111
- }, null, 8, qe)
1119
+ }, null, 8, Xe)
1112
1120
  ])
1113
1121
  ]),
1114
- t("div", Je, h(o.player_name), 1)
1122
+ t("div", Ke, h(o.player_name), 1)
1115
1123
  ]),
1116
- t("div", Xe, [
1117
- (l(), r("svg", {
1124
+ t("div", Qe, [
1125
+ (n(), r("svg", {
1118
1126
  class: y(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: o.isExpanded }]),
1119
1127
  width: "12",
1120
1128
  height: "8",
@@ -1122,7 +1130,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1122
1130
  fill: "#D9D9D9",
1123
1131
  xmlns: "http://www.w3.org/2000/svg",
1124
1132
  onClick: (a) => K(o)
1125
- }, Ye, 10, Ke))
1133
+ }, eo, 10, Ye))
1126
1134
  ])
1127
1135
  ], 2))), 128))
1128
1136
  ]),
@@ -1131,91 +1139,91 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1131
1139
  ref: k,
1132
1140
  class: "table__scrollable-columns"
1133
1141
  }, [
1134
- s.isGeneral ? (l(), r(T, { key: 0 }, [
1135
- t("div", to, [
1136
- t("div", eo, [
1137
- oo,
1138
- (l(), r("svg", {
1142
+ s.isGeneral ? (n(), r(T, { key: 0 }, [
1143
+ t("div", oo, [
1144
+ t("div", so, [
1145
+ io,
1146
+ (n(), r("svg", {
1139
1147
  width: "18",
1140
1148
  height: "18",
1141
1149
  viewBox: "0 0 18 18",
1142
1150
  fill: "none",
1143
1151
  xmlns: "http://www.w3.org/2000/svg",
1144
- onClick: n[1] || (n[1] = (o) => P(v.value[0]))
1145
- }, io))
1152
+ onClick: l[1] || (l[1] = (o) => P(v.value[0]))
1153
+ }, no))
1146
1154
  ]),
1147
- t("div", no, [
1148
- lo,
1149
- (l(), r("svg", {
1155
+ t("div", ao, [
1156
+ ro,
1157
+ (n(), r("svg", {
1150
1158
  width: "18",
1151
1159
  height: "18",
1152
1160
  viewBox: "0 0 18 18",
1153
1161
  fill: "none",
1154
1162
  xmlns: "http://www.w3.org/2000/svg",
1155
- onClick: n[2] || (n[2] = (o) => P(v.value[1]))
1156
- }, ro))
1163
+ onClick: l[2] || (l[2] = (o) => P(v.value[1]))
1164
+ }, uo))
1157
1165
  ]),
1158
- t("div", co, [
1159
- uo,
1160
- (l(), r("svg", {
1166
+ t("div", fo, [
1167
+ ho,
1168
+ (n(), r("svg", {
1161
1169
  width: "18",
1162
1170
  height: "18",
1163
1171
  viewBox: "0 0 18 18",
1164
1172
  fill: "none",
1165
1173
  xmlns: "http://www.w3.org/2000/svg",
1166
- onClick: n[3] || (n[3] = (o) => P(v.value[2]))
1167
- }, ho))
1174
+ onClick: l[3] || (l[3] = (o) => P(v.value[2]))
1175
+ }, po))
1168
1176
  ]),
1169
- vo,
1170
- t("div", po, [
1171
- _o,
1172
- (l(), r("svg", {
1177
+ _o,
1178
+ t("div", go, [
1179
+ mo,
1180
+ (n(), r("svg", {
1173
1181
  width: "18",
1174
1182
  height: "18",
1175
1183
  viewBox: "0 0 18 18",
1176
1184
  fill: "none",
1177
1185
  xmlns: "http://www.w3.org/2000/svg",
1178
- onClick: n[4] || (n[4] = (o) => P(v.value[3]))
1179
- }, mo))
1186
+ onClick: l[4] || (l[4] = (o) => P(v.value[3]))
1187
+ }, ko))
1180
1188
  ]),
1181
- t("div", Co, [
1182
- ko,
1183
- (l(), r("svg", {
1189
+ t("div", wo, [
1190
+ bo,
1191
+ (n(), r("svg", {
1184
1192
  width: "18",
1185
1193
  height: "18",
1186
1194
  viewBox: "0 0 18 18",
1187
1195
  fill: "none",
1188
1196
  xmlns: "http://www.w3.org/2000/svg",
1189
- onClick: n[5] || (n[5] = (o) => P(v.value[4]))
1190
- }, bo))
1197
+ onClick: l[5] || (l[5] = (o) => P(v.value[4]))
1198
+ }, xo))
1191
1199
  ]),
1192
- t("div", yo, [
1193
- xo,
1194
- (l(), r("svg", {
1200
+ t("div", So, [
1201
+ Mo,
1202
+ (n(), r("svg", {
1195
1203
  width: "18",
1196
1204
  height: "18",
1197
1205
  viewBox: "0 0 18 18",
1198
1206
  fill: "none",
1199
1207
  xmlns: "http://www.w3.org/2000/svg",
1200
- onClick: n[6] || (n[6] = (o) => P(v.value[5]))
1201
- }, Mo))
1208
+ onClick: l[6] || (l[6] = (o) => P(v.value[5]))
1209
+ }, $o))
1202
1210
  ]),
1203
- Lo
1211
+ Bo
1204
1212
  ]),
1205
- (l(!0), r(T, null, z(c.value, (o) => (l(), r("div", {
1213
+ (n(!0), r(T, null, z(c.value, (o) => (n(), r("div", {
1206
1214
  key: `i-${o.id}`,
1207
1215
  class: "row scrollable-row"
1208
1216
  }, [
1209
1217
  t("div", {
1210
1218
  class: y(["row team-info", { odd: o.isOdd }])
1211
1219
  }, [
1212
- t("div", $o, [
1220
+ t("div", Ro, [
1213
1221
  t("img", {
1214
1222
  src: o.team_logo,
1215
1223
  alt: "team logo"
1216
- }, null, 8, Bo)
1224
+ }, null, 8, Eo)
1217
1225
  ]),
1218
- t("div", Ro, h(o.team_abrev), 1)
1226
+ t("div", Po, h(o.team_abrev), 1)
1219
1227
  ], 2),
1220
1228
  t("div", {
1221
1229
  class: y(["row data-info", { odd: o.isOdd }])
@@ -1230,7 +1238,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1230
1238
  src: o.player_country_flag,
1231
1239
  alt: "player country flag",
1232
1240
  class: "country-flag"
1233
- }, null, 8, Eo)
1241
+ }, null, 8, Io)
1234
1242
  ], 2),
1235
1243
  t("div", {
1236
1244
  class: y(["row data-info", { odd: o.isOdd }])
@@ -1261,7 +1269,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1261
1269
  }, null, 8, ["onClick"])
1262
1270
  ], 2)
1263
1271
  ]))), 128))
1264
- ], 64)) : (l(), st(se, {
1272
+ ], 64)) : (n(), st(se, {
1265
1273
  key: 1,
1266
1274
  ref_key: "scrollColumns",
1267
1275
  ref: R,
@@ -1274,7 +1282,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1274
1282
  ], 512)
1275
1283
  ], 4));
1276
1284
  }
1277
- }, Oo = /* @__PURE__ */ dt(Po, [["__scopeId", "data-v-14d97ca7"]]);
1285
+ }, Fo = /* @__PURE__ */ dt(Oo, [["__scopeId", "data-v-18f2714a"]]);
1278
1286
  export {
1279
- Oo as GSCTableScrollable
1287
+ Fo as GSCTableScrollable
1280
1288
  };
@@ -1 +1 @@
1
- (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.GSCTableScrollable={},S.Vue))})(this,function(S,e){"use strict";const U=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},q={key:1},J={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X=["fill"],K={key:0,class:"checkbox__teams"},Q={class:"checkbox__teams__logo"},Y=["src"],v={class:"checkbox__teams__logo"},ee=["src"],te={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(l){return["left","right","top","bottom"].includes(l)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(l,{emit:d}){const s=l;e.useCssVars(f=>({"7bd9d47b":l.width,"34dc7ddc":l.height}));const c=e.ref(!1),h=e.computed(()=>{const f={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return c.value?(f["background-color"]=s.boxBackgroundColor,f.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):f.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,f}),p=e.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),w=e.computed(()=>{const f={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(f[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),f});e.watch(()=>s.modelValue,f=>{f!==c.value&&(c.value=f)},{immediate:!0});function E(){s.avoidInteraction||!c.value&&s.avoidToCheck||(c.value=!c.value,d("update:modelValue",c.value))}function V(f){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${f}.png`}return(f,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${l.boxPosition}`]),onClick:E},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(h.value)},[c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(p.value)},e.toDisplayString(l.boxValue),5)):(e.openBlock(),e.createElementBlock("div",q,[(e.openBlock(),e.createElementBlock("svg",J,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:l.boxValueColor},null,8,X)]))]))],64)):e.createCommentVNode("",!0)],4),l.teamsIds&&l.teamsIds.length?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("img",{src:V(l.teamsIds[0]),alt:""},null,8,Y)]),e.createElementVNode("div",v,[e.createElementVNode("img",{src:V(l.teamsIds[1]),alt:""},null,8,ee)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(w.value)},e.toDisplayString(l.label),5)],2))}},oe=U(te,[["__scopeId","data-v-b6f124d8"]]),le=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},$={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(l){this.status=l}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(l){this.$emit("click",l),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},T=()=>{e.useCssVars(l=>({"9d01acb4":l.height,"14e95081":l.borderWidthBtn,"38fec285":l.borderType,34353510:l.borderColor,"20d20dc6":l.borderRadius,17130967:l.width,"4ccb7d36":l.backgroundColor,"5d1e86a2":l.cursorType,ce65d4a2:l.fontSize,fe4ac47a:l.fontStyle,f98e44dc:l.fontFamily,"93b87770":l.marginLeftStat,c7f7beba:l.fontSizeStat}))},R=$.setup;$.setup=R?(l,d)=>(T(),R(l,d)):T;const se=l=>(e.pushScopeId("data-v-f3ee6b2b"),l=l(),e.popScopeId(),l),ne=["src"],ie={key:1,class:"text"},ae=["src"],re={class:"stats"},de=se(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),ce={class:"numstats"},me={class:"leyend"};function fe(l,d,s,c,h,p){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",h.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([p.customStyle,h.status&&s.typeOnOff&&p.customActive]),onClick:d[0]||(d[0]=(...w)=>p.btnClick&&p.btnClick(...w))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,ne)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,ae)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:d[1]||(d[1]=(...w)=>p.btnClick&&p.btnClick(...w))},[e.createElementVNode("div",re,[de,e.createElementVNode("div",ce,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",me,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const he=le($,[["render",fe],["__scopeId","data-v-f3ee6b2b"]]),I=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},D=l=>(e.pushScopeId("data-v-df83603b"),l=l(),e.popScopeId(),l),pe={key:0,class:"overlay"},_e=["onClick"],ge=[D(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1))],ke={class:"name"},Ce=["onClick"],ye=[D(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],we=D(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),be=["onClick"],ue=I({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters","sort"],setup(l,{expose:d,emit:s}){const c=l,h=e.ref(null),p=e.ref(null),w=e.ref(0);e.ref(!1);const E=e.computed(()=>{const r=c.availablePlayers[0];return r?r.stats:[]}),V=e.computed(()=>{const r=`repeat(${E.value.length}, max-content) 36px`;let m="";return w.value>0&&document.querySelectorAll(".column-title-2").forEach(b=>{m+=`${b.offsetWidth}px `}),{"--grid-template-columns":r,"--grid-template-columns-totals":m||r}});function f(){h.value=new ResizeObserver(r=>{for(const m of r){const{width:k}=m.contentRect;w.value=k}}),h.value.observe(p.value)}function N(r,m){const b=document.querySelectorAll(".scrollable-row-totals")[r+1];b&&(b.style.marginTop=`${m}px`)}function B({player:r,stat:m}){!m.total||m==="0%"||!m.seasons||!m.seasons.length||s("open-media",{...r,stat:m})}function g(r){!r||r==="no"||s("click-parameters",r)}function M(r){s("sort",r)}return e.onMounted(()=>{f()}),d({setMarginTopDetails:N}),(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(V.value)},[l.isEditMode?(e.openBlock(),e.createElementBlock("div",pe)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:p,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${b}`,class:"column-title-2"},[k.parameters&&k.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:y=>g(k.parameters)},ge,8,_e)):e.createCommentVNode("",!0),e.createElementVNode("div",ke,e.toDisplayString(k.name),1),(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:y=>M(k)},ye,8,Ce))]))),128)),we],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.availablePlayers,(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${k.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.stats,y=>(e.openBlock(),e.createElementBlock("div",{key:y.category_id,class:e.normalizeClass(["row data-info",{odd:b%2!==0,underline:!!y.total&&y.total!=="0%"&&y.seasons&&y.seasons.length}])},[e.createElementVNode("span",{onClick:F=>B({player:k,stat:y})},e.toDisplayString(y.total),9,be)],2))),128))]))),128))],4))}},[["__scopeId","data-v-df83603b"]]),a=l=>(e.pushScopeId("data-v-14d97ca7"),l=l(),e.popScopeId(),l),Ee={class:"table__static-column"},Ve={class:"static-title column-title restore"},xe=[a(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),a(()=>e.createElementVNode("div",null,"Restaurar orden",-1))],Se=["id"],Ne={class:"container"},Be={class:"details-row__info"},Me={class:"details-row__info__personal"},Le={class:"bold"},$e={class:"bold"},De={class:"bold"},ze={class:"bold"},Te={class:"details-row__info__games"},Re={class:"bold"},Ie={class:"bold"},Fe=["onClick"],Pe=[a(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),a(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1))],Oe=["onClick"],je=[a(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),a(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],Ae=["onClick"],Ze=[a(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),a(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],We=["onClick"],He=[a(()=>e.createElementVNode("div",null,"Ver perfil",-1))],Ge={class:"static-row__info-player"},Ue={class:"position"},qe=["onClick"],Je=[a(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Xe=["onClick"],Ke=[a(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Qe={class:"player-photo"},Ye=["src"],ve={class:"player-name"},et={class:"arrow"},tt=["onClick"],ot=[a(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1))],lt={class:"titles scrollable-row"},st={class:"column-title"},nt=a(()=>e.createElementVNode("div",null," Equipo ",-1)),it=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],at={class:"column-title"},rt=a(()=>e.createElementVNode("div",null," Posición ",-1)),dt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],ct={class:"column-title"},mt=a(()=>e.createElementVNode("div",null," Edad ",-1)),ft=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],ht=a(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),pt={class:"column-title"},_t=a(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),gt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],kt={class:"column-title"},Ct=a(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),yt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],wt={class:"column-title"},bt=a(()=>e.createElementVNode("div",null," Liga ",-1)),ut=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],Et=a(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),Vt={class:"team-logo"},xt=["src"],St={class:"team-name data-info"},Nt=["src"],Bt=I({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(l,{emit:d}){const s=l;let c=null,h=null;const p=e.ref([]),w=e.ref(null),E=e.ref(null),V=e.ref(0),f=e.ref(0),N=e.ref(-1);e.ref(!1);const B=e.ref(null),g=e.ref(null),M=e.ref(null),r=e.ref([]),m=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),k=e.ref(0),b=e.computed(()=>({"--width-details":`${V.value}px`,"--gap-static-row":`${y.value?"8px":"18px"}`,"--width-static-column":`${y.value?"50%":"256px"}`})),y=e.computed(()=>V.value<600);e.watch(()=>s.players,t=>{t&&t.length&&(p.value=t.map((n,o)=>{const i=o+1,_={...n,position:i<10?`0${i}`:`${i}`,isSelected:!1,isExpanded:!1,isOdd:o%2!==0,index:o};return n.stats&&n.stats.length&&(_.stats=n.stats.map(C=>({...C,isDesc:!1,isRoot:!1}))),_.parameters&&Object.entries(_.parameters).forEach(([C,u])=>{const G=_.stats.find(Ft=>Ft.custom_category_id===Number(C));G&&(G.parameters=u)}),_}),r.value=p.value.map(n=>({...n})))},{immediate:!0,deep:!0}),e.watch(()=>s.isEditMode,t=>{t&&p.value.forEach(n=>{n.isSelected=!1})}),e.watch(()=>M.value,t=>{if(t){let n=[...r.value];t.isRoot?n.sort((o,i)=>typeof o[t.name]=="string"?t.isDesc?o[t.name].localeCompare(i[t.name]):o[t.name].localeCompare(i[t.name])*-1:t.isDesc?i[t.name]-o[t.name]:o[t.name]-i[t.name]):n.sort((o,i)=>{const _=o.stats.find(u=>u.name===t.name),C=i.stats.find(u=>u.name===t.name);return typeof _.value=="string"?t.isDesc?_.total.localeCompare(C.total):_.total.localeCompare(C.total)*-1:t.isDesc?C.total-_.total:_.total-C.total}),n.forEach((o,i)=>{o.isOdd=i%2!==0}),r.value=n}else r.value.sort((n,o)=>n.index-o.index).forEach((n,o)=>{n.isOdd=o%2!==0})},{immediate:!0,deep:!0}),e.watch(f,t=>{const o=document.querySelectorAll(".static-row")[N.value+1];o&&(o.style.marginTop=`${t}px`),s.isGeneral?F(N.value,t):E.value&&E.value.setMarginTopDetails(N.value,t),t===0&&B.value&&A(B.value)});function F(t,n){const i=document.querySelectorAll(".scrollable-row")[t+2];i&&(i.style.marginTop=`${n}px`)}function Mt(t){d("click-parameters",t)}function x(t){t&&(t.isDesc=!t.isDesc),M.value=t}function P(t){const n=t.player||t.objeto_player,o=n?n.player_id||n.id||n.playerId:t.id||t.player_id,i={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o?[o]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(t.stat&&t.stat.parameters&&(i.parameters=t.stat.parameters),t.stat&&t.stat.seasons&&t.stat.seasons.length||t.seasons&&t.seasons.length){const _=[...t.stat&&t.stat.seasons&&t.stat.seasons.length?t.stat.seasons:t.seasons];_.sort((C,u)=>C-u),i.seasonId=_.shift(),i.seasonsIds=_}else(t.season_id||t.seasonId)&&(i.seasonId=t.season_id||t.seasonId);t.stat?t.stat.category_id&&t.stat.category_id.length?i.categoryIds=t.stat.category_id:t.stat.custom_category_id&&(i.customCategoryIds=[t.stat.custom_category_id]):i.categoryIds=Dt(t.player_position),d("open-media",i)}function Lt(){c=new ResizeObserver(t=>{for(const n of t)V.value=n.contentRect.width}),c.observe(w.value)}function $t(t){h=new ResizeObserver(n=>{for(const o of n)f.value=o.contentRect.height}),h.observe(t)}function Dt(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function zt(t,n){n.isSelected=t;const o=p.value.filter(i=>i.isSelected);d("change-selected-players",o)}function Tt(t){d("view-profile",t)}function O(t){d("delete-from-list",t)}function j(t){d("add-to-list",t)}function Rt(t){d("show-graph",t)}function A(t){if(t.isExpanded){t.isExpanded=!1,B.value=null;return}const n=p.value.find(C=>C.isExpanded);if(n&&(n.isExpanded=!1),n){B.value=t;return}const o=document.querySelectorAll(".details-row");let i=-1;o.forEach((C,u)=>{C.id===`dr-${t.id}`&&(i=u)});const _=o[i];N.value=i,$t(_),t.isExpanded=!0}let z=!1,Z,W,H=function(t){z=!0,Z=t.pageX-g.value.offsetLeft,W=g.value.scrollLeft},L=function(){z=!1};function It(){g.value&&(g.value.addEventListener("mousemove",t=>{if(!z)return;const o=t.pageX-g.value.offsetLeft-Z;g.value.scrollLeft=W-o}),g.value.addEventListener("mousedown",H,!1),g.value.addEventListener("mouseup",L,!1),g.value.addEventListener("mouseleave",L,!1))}return e.onMounted(()=>{Lt(),It()}),e.onBeforeUnmount(()=>{c&&c.disconnect(),h&&h.disconnect(),g.value&&(g.value.removeEventListener("mousemove",H,!1),g.value.removeEventListener("mouseup",L,!1),g.value.removeEventListener("mouseleave",L,!1))}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:w,style:e.normalizeStyle(b.value),key:k.value},[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ve,[e.createElementVNode("div",{role:"button",class:"restore-button",onClick:n[0]||(n[0]=o=>x(null))},xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createElementBlock("div",{key:`s-${o.id}`,class:e.normalizeClass(["row static-row",{odd:o.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${o.id}`,class:e.normalizeClass(["details-row",{odd:o.isOdd}])},[e.createElementVNode("div",Ne,[e.createElementVNode("div",Be,[e.createElementVNode("div",Me,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",Le,e.toDisplayString(o.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",$e,e.toDisplayString(o.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",De,e.toDisplayString(o.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",ze,e.toDisplayString(o.position_name),1)])]),e.createElementVNode("div",Te,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",Re,e.toDisplayString(o.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",Ie,e.toDisplayString(o.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(y.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:i=>Rt(o)},Pe,8,Fe),l.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:i=>O(o)},je,8,Oe)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:i=>j(o)},Ze,8,Ae)),e.createElementVNode("div",{role:"button",class:"button green",onClick:i=>Tt(o)},He,8,We)],4)])],10,Se),[[e.vShow,o.isExpanded]])]),_:2},1024),l.isEditMode?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":o.isSelected,"onUpdate:modelValue":i=>zt(i,o)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ge,[e.createElementVNode("div",Ue,e.toDisplayString(o.position),1),l.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i=>O(o)},Je,8,qe)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i=>j(o)},Ke,8,Xe)),e.createElementVNode("div",Qe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:o.player_photo,alt:"player photo"},null,8,Ye)])]),e.createElementVNode("div",ve,e.toDisplayString(o.player_name),1)]),e.createElementVNode("div",et,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:o.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:i=>A(o)},ot,10,tt))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:g,class:"table__scrollable-columns"},[l.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",lt,[e.createElementVNode("div",st,[nt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[1]||(n[1]=o=>x(m.value[0]))},it))]),e.createElementVNode("div",at,[rt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[2]||(n[2]=o=>x(m.value[1]))},dt))]),e.createElementVNode("div",ct,[mt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[3]||(n[3]=o=>x(m.value[2]))},ft))]),ht,e.createElementVNode("div",pt,[_t,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[4]||(n[4]=o=>x(m.value[3]))},gt))]),e.createElementVNode("div",kt,[Ct,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[5]||(n[5]=o=>x(m.value[4]))},yt))]),e.createElementVNode("div",wt,[bt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[6]||(n[6]=o=>x(m.value[5]))},ut))]),Et]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createElementBlock("div",{key:`i-${o.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:o.isOdd}])},[e.createElementVNode("div",Vt,[e.createElementVNode("img",{src:o.team_logo,alt:"team logo"},null,8,xt)]),e.createElementVNode("div",St,e.toDisplayString(o.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},[e.createElementVNode("img",{src:o.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,Nt)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},[e.createVNode(e.unref(he),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:i=>P(o)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(ue,{key:1,ref_key:"scrollColumns",ref:E,"available-players":r.value,"is-edit-mode":l.isEditMode,onOpenMedia:P,onClickParameters:Mt,onSort:x},null,8,["available-players","is-edit-mode"]))],512)],4))}},[["__scopeId","data-v-14d97ca7"]]);S.GSCTableScrollable=Bt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
1
+ (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.GSCTableScrollable={},S.Vue))})(this,function(S,e){"use strict";const U=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},q={key:1},J={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X=["fill"],K={key:0,class:"checkbox__teams"},Q={class:"checkbox__teams__logo"},Y=["src"],v={class:"checkbox__teams__logo"},ee=["src"],te={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(l){return["left","right","top","bottom"].includes(l)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(l,{emit:d}){const s=l;e.useCssVars(f=>({"7bd9d47b":l.width,"34dc7ddc":l.height}));const c=e.ref(!1),h=e.computed(()=>{const f={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return c.value?(f["background-color"]=s.boxBackgroundColor,f.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):f.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,f}),p=e.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),w=e.computed(()=>{const f={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(f[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),f});e.watch(()=>s.modelValue,f=>{f!==c.value&&(c.value=f)},{immediate:!0});function u(){s.avoidInteraction||!c.value&&s.avoidToCheck||(c.value=!c.value,d("update:modelValue",c.value))}function V(f){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${f}.png`}return(f,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${l.boxPosition}`]),onClick:u},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(h.value)},[c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(p.value)},e.toDisplayString(l.boxValue),5)):(e.openBlock(),e.createElementBlock("div",q,[(e.openBlock(),e.createElementBlock("svg",J,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:l.boxValueColor},null,8,X)]))]))],64)):e.createCommentVNode("",!0)],4),l.teamsIds&&l.teamsIds.length?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("img",{src:V(l.teamsIds[0]),alt:""},null,8,Y)]),e.createElementVNode("div",v,[e.createElementVNode("img",{src:V(l.teamsIds[1]),alt:""},null,8,ee)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(w.value)},e.toDisplayString(l.label),5)],2))}},oe=U(te,[["__scopeId","data-v-b6f124d8"]]),le=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},$={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(l){this.status=l}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(l){this.$emit("click",l),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},R=()=>{e.useCssVars(l=>({"9d01acb4":l.height,"14e95081":l.borderWidthBtn,"38fec285":l.borderType,34353510:l.borderColor,"20d20dc6":l.borderRadius,17130967:l.width,"4ccb7d36":l.backgroundColor,"5d1e86a2":l.cursorType,ce65d4a2:l.fontSize,fe4ac47a:l.fontStyle,f98e44dc:l.fontFamily,"93b87770":l.marginLeftStat,c7f7beba:l.fontSizeStat}))},T=$.setup;$.setup=T?(l,d)=>(R(),T(l,d)):R;const se=l=>(e.pushScopeId("data-v-f3ee6b2b"),l=l(),e.popScopeId(),l),ne=["src"],ie={key:1,class:"text"},ae=["src"],re={class:"stats"},de=se(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),ce={class:"numstats"},me={class:"leyend"};function fe(l,d,s,c,h,p){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",h.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([p.customStyle,h.status&&s.typeOnOff&&p.customActive]),onClick:d[0]||(d[0]=(...w)=>p.btnClick&&p.btnClick(...w))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,ne)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,ae)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:d[1]||(d[1]=(...w)=>p.btnClick&&p.btnClick(...w))},[e.createElementVNode("div",re,[de,e.createElementVNode("div",ce,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",me,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const he=le($,[["render",fe],["__scopeId","data-v-f3ee6b2b"]]),I=(l,d)=>{const s=l.__vccOpts||l;for(const[c,h]of d)s[c]=h;return s},D=l=>(e.pushScopeId("data-v-df83603b"),l=l(),e.popScopeId(),l),pe={key:0,class:"overlay"},_e=["onClick"],ge=[D(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1))],ke={class:"name"},Ce=["onClick"],ye=[D(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],we=D(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),Ee=["onClick"],be=I({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters","sort"],setup(l,{expose:d,emit:s}){const c=l,h=e.ref(null),p=e.ref(null),w=e.ref(0);e.ref(!1);const u=e.computed(()=>{const r=c.availablePlayers[0];return r?r.stats:[]}),V=e.computed(()=>{const r=`repeat(${u.value.length}, max-content) 36px`;let m="";return w.value>0&&document.querySelectorAll(".column-title-2").forEach(E=>{m+=`${E.offsetWidth}px `}),{"--grid-template-columns":r,"--grid-template-columns-totals":m||r}});function f(){h.value=new ResizeObserver(r=>{for(const m of r){const{width:k}=m.contentRect;w.value=k}}),h.value.observe(p.value)}function N(r,m){const E=document.querySelectorAll(".scrollable-row-totals")[r+1];E&&(E.style.marginTop=`${m}px`)}function B({player:r,stat:m}){!m.total||m==="0%"||!m.seasons||!m.seasons.length||s("open-media",{...r,stat:m})}function g(r){!r||r==="no"||s("click-parameters",r)}function M(r){s("sort",r)}return e.onMounted(()=>{f()}),d({setMarginTopDetails:N}),(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(V.value)},[l.isEditMode?(e.openBlock(),e.createElementBlock("div",pe)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:p,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${E}`,class:"column-title-2"},[k.parameters&&k.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:y=>g(k.parameters)},ge,8,_e)):e.createCommentVNode("",!0),e.createElementVNode("div",ke,e.toDisplayString(k.name),1),(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:y=>M(k)},ye,8,Ce))]))),128)),we],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.availablePlayers,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${k.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.stats,y=>(e.openBlock(),e.createElementBlock("div",{key:y.category_id,class:e.normalizeClass(["row data-info",{odd:E%2!==0,underline:!!y.total&&y.total!=="0%"&&y.seasons&&y.seasons.length}])},[e.createElementVNode("span",{onClick:F=>B({player:k,stat:y})},e.toDisplayString(y.total),9,Ee)],2))),128))]))),128))],4))}},[["__scopeId","data-v-df83603b"]]),a=l=>(e.pushScopeId("data-v-18f2714a"),l=l(),e.popScopeId(),l),ue={class:"table__static-column"},Ve={class:"static-title column-title restore"},xe=a(()=>e.createElementVNode("div",{class:"titles-left"},[e.createElementVNode("div",{class:"title"},"Ranking"),e.createElementVNode("div",{class:"title"},"Agregar a lista")],-1)),Se=[a(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),a(()=>e.createElementVNode("div",null,"Restaurar orden",-1))],Ne=["id"],Be={class:"container"},Me={class:"details-row__info"},Le={class:"details-row__info__personal"},$e={class:"bold"},De={class:"bold"},ze={class:"bold"},Re={class:"bold"},Te={class:"details-row__info__games"},Ie={class:"bold"},Fe={class:"bold"},Pe=["onClick"],Oe=[a(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),a(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1))],je=["onClick"],Ae=[a(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),a(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],Ze=["onClick"],We=[a(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),a(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],He=["onClick"],Ge=[a(()=>e.createElementVNode("div",null,"Ver perfil",-1))],Ue={class:"static-row__info-player"},qe={class:"position"},Je=["onClick"],Xe=[a(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Ke={key:1,class:"add-to-list"},Qe=["onClick"],Ye=[a(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),a(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],ve={class:"player-photo"},et=["src"],tt={class:"player-name"},ot={class:"arrow"},lt=["onClick"],st=[a(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1))],nt={class:"titles scrollable-row"},it={class:"column-title"},at=a(()=>e.createElementVNode("div",null," Equipo ",-1)),rt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],dt={class:"column-title"},ct=a(()=>e.createElementVNode("div",null," Posición ",-1)),mt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],ft={class:"column-title"},ht=a(()=>e.createElementVNode("div",null," Edad ",-1)),pt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],_t=a(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),gt={class:"column-title"},kt=a(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),Ct=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],yt={class:"column-title"},wt=a(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),Et=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],bt={class:"column-title"},ut=a(()=>e.createElementVNode("div",null," Liga ",-1)),Vt=[a(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1))],xt=a(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),St={class:"team-logo"},Nt=["src"],Bt={class:"team-name data-info"},Mt=["src"],Lt=I({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(l,{emit:d}){const s=l;let c=null,h=null;const p=e.ref([]),w=e.ref(null),u=e.ref(null),V=e.ref(0),f=e.ref(0),N=e.ref(-1);e.ref(!1);const B=e.ref(null),g=e.ref(null),M=e.ref(null),r=e.ref([]),m=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),k=e.ref(0),E=e.computed(()=>({"--width-details":`${V.value}px`,"--gap-static-row":`${y.value?"8px":"18px"}`,"--width-static-column":`${y.value?"50%":"436px"}`})),y=e.computed(()=>V.value<600);e.watch(()=>s.players,t=>{t&&t.length&&(p.value=t.map((n,o)=>{const i=o+1,_={...n,position:i<10?`0${i}`:`${i}`,isSelected:!1,isExpanded:!1,isOdd:o%2!==0,index:o};return n.stats&&n.stats.length&&(_.stats=n.stats.map(C=>({...C,isDesc:!1,isRoot:!1}))),_.parameters&&Object.entries(_.parameters).forEach(([C,b])=>{const G=_.stats.find(Ot=>Ot.custom_category_id===Number(C));G&&(G.parameters=b)}),_}),r.value=p.value.map(n=>({...n})))},{immediate:!0,deep:!0}),e.watch(()=>s.isEditMode,t=>{t&&p.value.forEach(n=>{n.isSelected=!1})}),e.watch(()=>M.value,t=>{if(t){let n=[...r.value];t.isRoot?n.sort((o,i)=>typeof o[t.name]=="string"?t.isDesc?o[t.name].localeCompare(i[t.name]):o[t.name].localeCompare(i[t.name])*-1:t.isDesc?i[t.name]-o[t.name]:o[t.name]-i[t.name]):n.sort((o,i)=>{const _=o.stats.find(b=>b.name===t.name),C=i.stats.find(b=>b.name===t.name);return typeof _.value=="string"?t.isDesc?_.total.localeCompare(C.total):_.total.localeCompare(C.total)*-1:t.isDesc?C.total-_.total:_.total-C.total}),n.forEach((o,i)=>{o.isOdd=i%2!==0}),r.value=n}else r.value.sort((n,o)=>n.index-o.index).forEach((n,o)=>{n.isOdd=o%2!==0})},{immediate:!0,deep:!0}),e.watch(f,t=>{const o=document.querySelectorAll(".static-row")[N.value+1];o&&(o.style.marginTop=`${t}px`),s.isGeneral?F(N.value,t):u.value&&u.value.setMarginTopDetails(N.value,t),t===0&&B.value&&A(B.value)});function F(t,n){const i=document.querySelectorAll(".scrollable-row")[t+2];i&&(i.style.marginTop=`${n}px`)}function $t(t){d("click-parameters",t)}function x(t){t&&(t.isDesc=!t.isDesc),M.value=t}function P(t){const n=t.player||t.objeto_player,o=n?n.player_id||n.id||n.playerId:t.id||t.player_id,i={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o?[o]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(t.stat&&t.stat.parameters&&(i.parameters=t.stat.parameters),t.stat&&t.stat.seasons&&t.stat.seasons.length||t.seasons&&t.seasons.length){const _=[...t.stat&&t.stat.seasons&&t.stat.seasons.length?t.stat.seasons:t.seasons];_.sort((C,b)=>C-b),i.seasonId=_.shift(),i.seasonsIds=_}else(t.season_id||t.seasonId)&&(i.seasonId=t.season_id||t.seasonId);t.stat?t.stat.category_id&&t.stat.category_id.length?i.categoryIds=t.stat.category_id:t.stat.custom_category_id&&(i.customCategoryIds=[t.stat.custom_category_id]):i.categoryIds=Rt(t.player_position),d("open-media",i)}function Dt(){c=new ResizeObserver(t=>{for(const n of t)V.value=n.contentRect.width}),c.observe(w.value)}function zt(t){h=new ResizeObserver(n=>{for(const o of n)f.value=o.contentRect.height}),h.observe(t)}function Rt(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function Tt(t,n){n.isSelected=t;const o=p.value.filter(i=>i.isSelected);d("change-selected-players",o)}function It(t){d("view-profile",t)}function O(t){d("delete-from-list",t)}function j(t){d("add-to-list",t)}function Ft(t){d("show-graph",t)}function A(t){if(t.isExpanded){t.isExpanded=!1,B.value=null;return}const n=p.value.find(C=>C.isExpanded);if(n&&(n.isExpanded=!1),n){B.value=t;return}const o=document.querySelectorAll(".details-row");let i=-1;o.forEach((C,b)=>{C.id===`dr-${t.id}`&&(i=b)});const _=o[i];N.value=i,zt(_),t.isExpanded=!0}let z=!1,Z,W,H=function(t){z=!0,Z=t.pageX-g.value.offsetLeft,W=g.value.scrollLeft},L=function(){z=!1};function Pt(){g.value&&(g.value.addEventListener("mousemove",t=>{if(!z)return;const o=t.pageX-g.value.offsetLeft-Z;g.value.scrollLeft=W-o}),g.value.addEventListener("mousedown",H,!1),g.value.addEventListener("mouseup",L,!1),g.value.addEventListener("mouseleave",L,!1))}return e.onMounted(()=>{Dt(),Pt()}),e.onBeforeUnmount(()=>{c&&c.disconnect(),h&&h.disconnect(),g.value&&(g.value.removeEventListener("mousemove",H,!1),g.value.removeEventListener("mouseup",L,!1),g.value.removeEventListener("mouseleave",L,!1))}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:w,style:e.normalizeStyle(E.value),key:k.value},[e.createElementVNode("div",ue,[e.createElementVNode("div",Ve,[xe,e.createElementVNode("div",{role:"button",class:"restore-button",onClick:n[0]||(n[0]=o=>x(null))},Se)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createElementBlock("div",{key:`s-${o.id}`,class:e.normalizeClass(["row static-row",{odd:o.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${o.id}`,class:e.normalizeClass(["details-row",{odd:o.isOdd}])},[e.createElementVNode("div",Be,[e.createElementVNode("div",Me,[e.createElementVNode("div",Le,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",$e,e.toDisplayString(o.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",De,e.toDisplayString(o.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",ze,e.toDisplayString(o.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",Re,e.toDisplayString(o.position_name),1)])]),e.createElementVNode("div",Te,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",Ie,e.toDisplayString(o.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",Fe,e.toDisplayString(o.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(y.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:i=>Ft(o)},Oe,8,Pe),l.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:i=>O(o)},Ae,8,je)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:i=>j(o)},We,8,Ze)),e.createElementVNode("div",{role:"button",class:"button green",onClick:i=>It(o)},Ge,8,He)],4)])],10,Ne),[[e.vShow,o.isExpanded]])]),_:2},1024),l.isEditMode?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":o.isSelected,"onUpdate:modelValue":i=>Tt(i,o)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[e.createElementVNode("div",qe,e.toDisplayString(o.position),1),l.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i=>O(o)},Xe,8,Je)):(e.openBlock(),e.createElementBlock("div",Ke,[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i=>j(o)},Ye,8,Qe))])),e.createElementVNode("div",ve,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:o.player_photo,alt:"player photo"},null,8,et)])]),e.createElementVNode("div",tt,e.toDisplayString(o.player_name),1)]),e.createElementVNode("div",ot,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:o.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:i=>A(o)},st,10,lt))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:g,class:"table__scrollable-columns"},[l.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",nt,[e.createElementVNode("div",it,[at,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[1]||(n[1]=o=>x(m.value[0]))},rt))]),e.createElementVNode("div",dt,[ct,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[2]||(n[2]=o=>x(m.value[1]))},mt))]),e.createElementVNode("div",ft,[ht,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[3]||(n[3]=o=>x(m.value[2]))},pt))]),_t,e.createElementVNode("div",gt,[kt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[4]||(n[4]=o=>x(m.value[3]))},Ct))]),e.createElementVNode("div",yt,[wt,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[5]||(n[5]=o=>x(m.value[4]))},Et))]),e.createElementVNode("div",bt,[ut,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n[6]||(n[6]=o=>x(m.value[5]))},Vt))]),xt]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createElementBlock("div",{key:`i-${o.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:o.isOdd}])},[e.createElementVNode("div",St,[e.createElementVNode("img",{src:o.team_logo,alt:"team logo"},null,8,Nt)]),e.createElementVNode("div",Bt,e.toDisplayString(o.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},[e.createElementVNode("img",{src:o.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,Mt)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},e.toDisplayString(o.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:o.isOdd}])},[e.createVNode(e.unref(he),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:i=>P(o)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(be,{key:1,ref_key:"scrollColumns",ref:u,"available-players":r.value,"is-edit-mode":l.isEditMode,onOpenMedia:P,onClickParameters:$t,onSort:x},null,8,["available-players","is-edit-mode"]))],512)],4))}},[["__scopeId","data-v-18f2714a"]]);S.GSCTableScrollable=Lt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-table-scrollable",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"