@golstats/gsc-landing 1.0.98 → 1.0.99
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.
- package/dist/gsc-landing.js +94 -94
- package/dist/gsc-landing.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Vue 3 Carousel 0.3.1
|
|
13
13
|
* (c) 2023
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/const Ee={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},er={itemsToShow:{default:Ee.itemsToShow,type:Number},itemsToScroll:{default:Ee.itemsToScroll,type:Number},wrapAround:{default:Ee.wrapAround,type:Boolean},throttle:{default:Ee.throttle,type:Number},snapAlign:{default:Ee.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Ee.transition,type:Number},breakpoints:{default:Ee.breakpoints,type:Object},autoplay:{default:Ee.autoplay,type:Number},pauseAutoplayOnHover:{default:Ee.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ee.mouseDrag,type:Boolean},touchDrag:{default:Ee.touchDrag,type:Boolean},dir:{default:Ee.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Ee.i18n,type:Object},settings:{default(){return{}},type:Object}};function Dh({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Gh({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Wa({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Hh({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:Wa({val:r,max:t-i,min:0})}function tr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...tr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function Ja({val:e,max:a,min:t=0}){return e>a?Ja({val:e-(a+1),max:a,min:t}):e<t?Ja({val:e+(a+1),max:a,min:t}):e}function Lh(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function Kh(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function qh(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Zh=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Ee))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},qh(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),Qh=o.defineComponent({name:"Carousel",props:er,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},Ee));let d=Object.assign({},Ee),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),u=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function k(){h=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),L(d)}function j(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,K)=>+K-+x);let R=Object.assign({},d);w.some(x=>{const K=window.matchMedia(`(min-width: ${x}px)`).matches;return K&&(R=Object.assign(Object.assign({},R),h[x])),K}),L(R)}function L(w){Object.entries(w).forEach(([R,x])=>c[R]=x)}const D=Kh(()=>{j(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function _(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=Dh({config:c,slidesCount:p.value}),b.value=Gh({config:c,slidesCount:p.value}),c.wrapAround||(f.value=Wa({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),j(),N(),window.addEventListener("resize",D,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",D,{passive:!0})});let P=!1;const oe={x:0,y:0},ie={x:0,y:0},Y=o.reactive({x:0,y:0}),se=o.ref(!1),pe=o.ref(!1),He=()=>{se.value=!0},_e=()=>{se.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(P=w.type==="touchstart",P||w.preventDefault(),!(!P&&w.button!==0||V.value)&&(oe.x=P?w.touches[0].clientX:w.clientX,oe.y=P?w.touches[0].clientY:w.clientY,document.addEventListener(P?"touchmove":"mousemove",Te,!0),document.addEventListener(P?"touchend":"mouseup",Ne,!0)))}const Te=Lh(w=>{pe.value=!0,ie.x=P?w.touches[0].clientX:w.clientX,ie.y=P?w.touches[0].clientY:w.clientY;const R=ie.x-oe.x,x=ie.y-oe.y;Y.y=x,Y.x=R},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,R=Math.sign(Y.x)*.4,x=Math.round(Y.x/l.value+R)*w;if(x&&!P){const K=Oe=>{Oe.stopPropagation(),window.removeEventListener("click",K,!0)};window.addEventListener("click",K,!0)}M(f.value-x),Y.x=0,Y.y=0,pe.value=!1,document.removeEventListener(P?"touchmove":"mousemove",Te,!0),document.removeEventListener(P?"touchend":"mouseup",Ne,!0)}function N(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||F()},c.autoplay))}function v(){A&&(clearInterval(A),A=null),N()}const V=o.ref(!1);function M(w){const R=c.wrapAround?w:Wa({val:w,max:g.value,min:b.value});f.value===R||V.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!0,m.value=f.value,f.value=R,C=setTimeout(()=>{if(c.wrapAround){const x=Ja({val:R,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!1,v()},c.transition))}function F(){M(f.value+c.itemsToScroll)}function I(){M(f.value-c.itemsToScroll)}const G={slideTo:M,next:F,prev:I};o.provide("nav",G),o.provide("isSliding",V);const W=o.computed(()=>Hh({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",W);const ce=o.computed(()=>{const w=c.dir==="rtl"?-1:1,R=W.value*l.value*w;return{transform:`translateX(${Y.x-R}px)`,transition:`${V.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function le(){k(),j(),_(),U(),v()}Object.keys(er).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],le)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&M(Number(w))}),o.watch(p,_),t("before-init"),k();const Re={config:c,slidesCount:p,slideWidth:l,next:F,prev:I,slideTo:M,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:u};n({updateBreakpointsConfigs:j,updateSlidesData:_,updateSlideWidth:U,initDefaultConfigs:k,restartCarousel:le,slideTo:M,next:F,prev:I,nav:G,data:Re});const Be=a.default||a.slides,ve=a.addons,Ie=o.reactive(Re);return()=>{const w=tr(Be==null?void 0:Be(Ie)),R=(ve==null?void 0:ve(Ie))||[];w.forEach((we,Ae)=>we.props.index=Ae);let x=w;if(c.wrapAround){const we=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:-w.length+ae,isClone:!0,key:`clone-before-${ae}`})),Ae=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:w.length+ae,isClone:!0,key:`clone-after-${ae}`}));x=[...we,...w,...Ae]}r.value=w,p.value=Math.max(w.length,1);const K=o.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),Oe=o.h("div",{class:"carousel__viewport"},K);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":V.value,"is-dragging":pe.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:He,onMouseleave:_e},[Oe,R,o.h(Zh)])}}}),or;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(or||(or={}));var Yh=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Ee))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=h};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Wh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Jh=e=>(o.pushScopeId("data-v-54620d25"),e=e(),o.popScopeId(),e),Xh={class:"gsc-carousel"},_h={key:0},$h=Jh(()=>o.createElementVNode("div",null,"no hay",-1)),eg=[$h],tg={class:"gsc-carousel__2d__slides"},og={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ag=["fill"],ng={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ig=["fill"],sg={class:"gsc-carousel__2d__navigation"},rg={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lg=["stroke"],cg={key:1,class:"gsc-carousel__2d__navigation__pagination"},dg=["onClick"],mg={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pg=["stroke"],ug={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,p(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.defaultItemByIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?p(g):l.value=!0},{immediate:!0});function p(g){g&&g.length&&s.value&&setTimeout(()=>{if(n.defaultItemByProp){const b=n.items.findIndex(A=>A[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),i.value&&r.value===0&&t("input",{selectedItem:i.value,selectedItemIndex:r.value})},500)}function c(){s.value&&s.value.next()}function d(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function m(g){s.value.slideTo(g)}function u(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:d,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",Xh,[n.is3d?(o.openBlock(),o.createElementBlock("div",_h,eg)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",tg,[o.createVNode(o.unref(Qh),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(A,C)=>(o.openBlock(),o.createBlock(o.unref(Yh),{key:C},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:A},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:o.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:b[0]||(b[0]=A=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",og,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,ag)]))],2)],4)):o.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:o.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:b[1]||(b[1]=A=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",ng,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,ig)]))],2)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",sg,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=A=>d())},[(o.openBlock(),o.createElementBlock("svg",rg,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,lg)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",cg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${C}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===C?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===C?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:k=>m(C)},null,12,dg))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=A=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",mg,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,pg)]))])):o.createCommentVNode("",!0)])],2))]))}},hg=Wh(ug,[["__scopeId","data-v-54620d25"]]),gg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Xa={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(e){this.status=e}}},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(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ar=()=>{o.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},nr=Xa.setup;Xa.setup=nr?(e,a)=>(ar(),nr(e,a)):ar;const fg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),yg=["src"],bg={key:1,class:"text"},wg=["src"],Ag={class:"stats"},Cg=fg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),kg={class:"numstats"},Sg={class:"leyend"};function Bg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,yg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",bg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,wg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Ag,[Cg,o.createElementVNode("div",kg,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Sg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Og=gg(Xa,[["render",Bg],["__scopeId","data-v-fb269a1e"]]),Eg={class:"gsc-dropdown__main-container__item-selected"},xg=["height","width"],Mg=["stroke"],Vg={class:"gsc-dropdown__items-container"},Rg=["onClick"],Fg={key:0,class:"gsc-dropdown__items-footer"},zg={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(m,u)=>{if(!t.modelValue&&(!t.onlyFirstTime||!u||!u.length)&&m&&m.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=m[g]):(i.value=0,n.value=m[0])}else n.value=m[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,m=>{if(m){const u=t.items.findIndex(g=>typeof m=="object"?JSON.stringify(g)===JSON.stringify(m):g===m);u!==-1&&(i.value=u,n.value=t.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),p=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function d(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function h(m,u){t.isMultipleOption?i.value=-1:(i.value=u,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",d)}),o.onBeforeMount(()=>{document.removeEventListener("click",d)}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Eg,[o.renderSlot(m.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(p.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Mg)],8,xg))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Vg,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:A=>h(g,b)},[o.renderSlot(m.$slots,"availableItem",{item:g})],10,Rg))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Fg,[o.createVNode(o.unref(Og),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Tg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ng={class:"tournament-select__selected-tournament"},vg={class:"tournament-select__selected-tournament__logo"},Pg=["src"],Ig={class:"tournament-select__selected-tournament__name"},jg="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",Ug={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const m={};return t.fontFamily&&(m["font-family"]=`${t.fontFamily}`),m}),i=o.computed(()=>t.tournamentsIdsToInclude.size?p(n.value):n.value),r=o.computed(()=>i.value.find(m=>m.seasonsIds.has(t.currentSeasonId))||i.value[0]);async function l(){try{if(t.items&&t.items.length)n.value=[...t.items];else{const m=await d();n.value=m.map(u=>({...u.tournament,seasons:u.seasons,seasonsIds:u.seasons.reduce((g,b)=>(g.add(b.id),g),new Set)})).sort((u,g)=>u.order-g.order)}}catch(m){throw new Error(m)}}function p(m){return m.filter(u=>t.tournamentsIdsToInclude.has(u._id||u.id))}function c(m){const u=new XMLHttpRequest,g=`${t.logosUrl}${m}.${t.logoFileType}`;return u.open("HEAD",g,!1),u.send(),u.status!==404}async function d(){try{return(await fetch(t.apiUrl||jg)).json()}catch(m){return Promise.reject(m)}}function h(m){a("input",m)}function f(m){a("input",m)}return o.onMounted(()=>{l()}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(zg),o.mergeProps(t,{"model-value":r.value,items:i.value,onInput:h,"onUpdate:modelValue":f}),{default:o.withCtx(({selectedItem:g})=>[o.createElementVNode("div",Ng,[o.createElementVNode("div",vg,[c(g.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${g.id}.${t.logoFileType}`,alt:""},null,8,Pg)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ig,o.toDisplayString(g.name),1)])]),availableItem:o.withCtx(({item:g})=>[o.createElementVNode("div",null,o.toDisplayString(g.name),1)]),_:1},16,["model-value","items"])],4))}},Dg=Tg(Ug,[["__scopeId","data-v-5da910ed"]]),Gg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},_a={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(e){this.status=e}}},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(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ir=()=>{o.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},sr=_a.setup;_a.setup=sr?(e,a)=>(ir(),sr(e,a)):ir;const Hg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Lg=["src"],Kg={key:1,class:"text"},qg=["src"],Zg={class:"stats"},Qg=Hg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Yg={class:"numstats"},Wg={class:"leyend"};function Jg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Lg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Kg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,qg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Zg,[Qg,o.createElementVNode("div",Yg,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Wg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Xg=Gg(_a,[["render",Jg],["__scopeId","data-v-fb269a1e"]]),_g={class:"gsc-dropdown__main-container__item-selected"},$g=["height","width"],ef=["stroke"],tf={class:"gsc-dropdown__items-container"},of=["onClick"],af={key:0,class:"gsc-dropdown__items-footer"},nf={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(m,u)=>{if(!t.modelValue&&(!t.onlyFirstTime||!u||!u.length)&&m&&m.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=m[g]):(i.value=0,n.value=m[0])}else n.value=m[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,m=>{if(m){const u=t.items.findIndex(g=>typeof m=="object"?JSON.stringify(g)===JSON.stringify(m):g===m);u!==-1&&(i.value=u,n.value=t.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),p=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function d(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function h(m,u){t.isMultipleOption?i.value=-1:(i.value=u,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",d)}),o.onBeforeMount(()=>{document.removeEventListener("click",d)}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",_g,[o.renderSlot(m.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(p.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ef)],8,$g))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",tf,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:A=>h(g,b)},[o.renderSlot(m.$slots,"availableItem",{item:g})],10,of))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",af,[o.createVNode(o.unref(Xg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},sf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},rf={class:"season-name"},lf={class:"items-list-season"},cf={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(nf),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:p})=>[o.createElementVNode("div",rf,[o.createElementVNode("span",null,o.toDisplayString(p.name),1)])]),availableItem:o.withCtx(({item:p})=>[o.createElementVNode("span",lf,o.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},df=sf(cf,[["__scopeId","data-v-3a11087d"]]);function mf(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const pf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},$a={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},rr=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},lr=$a.setup;$a.setup=lr?(e,a)=>(rr(),lr(e,a)):rr;const uf={ref:"gscScrollableContainer",class:"scrollable-container"},hf={class:"scrollable-arrows"},gf=["width","height","viewBox"],ff=["stroke"],yf={class:"scrollable-wrapper"},bf={class:"scrollable-arrows"},wf=["width","height","viewBox"],Af=["stroke"];function Cf(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",uf,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",hf,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,ff)],8,gf))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",yf,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",bf,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,Af)],8,wf))])],2)):o.createCommentVNode("",!0)],512)}const kf=pf($a,[["render",Cf],["__scopeId","data-v-b548a08d"]]),Sf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},en={components:{GSCSlider:kf},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=mf(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},cr=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},dr=en.setup;en.setup=dr?(e,a)=>(cr(),dr(e,a)):cr;const Bf={ref:"myDivRef"},Of={key:0,class:"gs-switch-container"},Ef=["onClick"],xf={key:1,class:"gs-switch-container-type"},Mf=["onClick"],Vf={key:2,class:"gs-switch-container-carousel"},Rf=["onClick"];function Ff(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Bf,[t.type==0?(o.openBlock(),o.createElementBlock("div",Of,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Ef))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",xf,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Mf))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",Vf,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Rf))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const zf=Sf(en,[["render",Ff],["__scopeId","data-v-8a86dfaf"]]),mr=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Tf={components:{},props:{tournamentId:{type:Number,default:0},seasonId:{type:Number,default:0},widthComponent:{type:Number,default:0}},data(){},computed:{},methods:{}},pr=e=>(o.pushScopeId("data-v-a618c42e"),e=e(),o.popScopeId(),e),Nf={class:"container-img"},vf=pr(()=>o.createElementVNode("div",{class:"sep-playoff-top"},null,-1)),Pf=pr(()=>o.createElementVNode("div",{class:"sep-playoff-home"},null,-1));function If(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",Nf,[vf,t.widthComponent>=1100?(o.openBlock(),o.createElementBlock("div",{key:0,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_1010_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(850px - 50px);`)},null,4)):t.widthComponent>=985&&t.widthComponent<1100?(o.openBlock(),o.createElementBlock("div",{key:1,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(760px - 50px);`)},null,4)):t.widthComponent>=915&&t.widthComponent<985?(o.openBlock(),o.createElementBlock("div",{key:2,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_1010_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(740px - 90px);`)},null,4)):t.widthComponent>=855&&t.widthComponent<915?(o.openBlock(),o.createElementBlock("div",{key:3,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(720px - 110px);`)},null,4)):t.widthComponent>=740&&t.widthComponent<855?(o.openBlock(),o.createElementBlock("div",{key:4,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(700px - 180px);`)},null,4)):t.widthComponent>=670&&t.widthComponent<740?(o.openBlock(),o.createElementBlock("div",{key:5,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(700px - 200px);`)},null,4)):t.widthComponent>=595&&t.widthComponent<670?(o.openBlock(),o.createElementBlock("div",{key:6,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 50px); height: calc(700px - 240px);`)},null,4)):t.widthComponent>=545&&t.widthComponent<595?(o.openBlock(),o.createElementBlock("div",{key:7,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 50px); height: calc(700px - 280px);`)},null,4)):t.widthComponent>=485&&t.widthComponent<545?(o.openBlock(),o.createElementBlock("div",{key:8,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 320px);`)},null,4)):t.widthComponent>=445&&t.widthComponent<485?(o.openBlock(),o.createElementBlock("div",{key:9,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 360px);`)},null,4)):t.widthComponent>=385&&t.widthComponent<445?(o.openBlock(),o.createElementBlock("div",{key:10,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 410px);`)},null,4)):t.widthComponent>=350&&t.widthComponent<385?(o.openBlock(),o.createElementBlock("div",{key:11,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 20px); height: calc(700px - 420px);`)},null,4)):t.widthComponent<350?(o.openBlock(),o.createElementBlock("div",{key:12,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 20px); height: calc(700px - 440px);`)},null,4)):o.createCommentVNode("",!0),Pf])}const jf=mr(Tf,[["render",If],["__scopeId","data-v-a618c42e"]]);function Uf(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Df={components:{GSCFilterperteam:lh,GSCTableperteam:Uh,GscSwitchComponent:zf,GSCCarousel:hg,GSCTournamentSelect:Dg,GSCSeasonSelect:df,PlayOffIMG:jf},computed:{tableOfPhases(){return this.tournamentSelected?this.tournamentSelected.tournament_type===1?"Fases":this.tournamentSelected.tournament_type===2?"Play Off":"Tabla General":"Tabla General"},customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{tournamentsApiUrl:{type:String,default:""},teamsVideos:{type:Array,default:()=>[]},showVideos:{type:Boolean,default:!0},teamId:{type:Number,default:0},filtersTeams:{type:Boolean,default:!0},teamDefaultSelect:{type:Number,default:0},season:{type:Number},currentSeasonId:{type:Number,default:0},tournament:{type:Number,default:-1},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},typeView:{type:Number,default:-1},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Uf(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,typeTournament:0,tableData:null,optionSelectedGroup:"Grupos",tableFull:!0,indexMyTeam:0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{teamDefaultSelect:{async handler(e,a){this.teamselect=e},immediate:!0},currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const t in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].id=e[a].seasons[t].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].name=e[a].seasons[t].name}if(this.currentSeasonId===0){const a=e.find(t=>t._id===1).seasons[0];await this.getTableList(a.id)}}catch(e){throw new Error(e)}},methods:{changeType(e){this.optionSelectedGroup=e},setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},t=[1,2,3],n=a[e.category]||[607,608,12,55,54,35,14,52,15,53,466,477];let s={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:t,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.typeTournament=e.tournament_type,this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[],this.tableData=[],this.pagesteams=[];const a=await Qs.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tournamentSelected.tournament_type==0||this.typeView==0){if(this.tableData=a.data.data,this.indexMyTeam=this.tableData.findIndex(t=>t.team_id===this.teamId),this.indexMyTeam>4){let t=[];for(let n=0;n<this.tableData.length;n++)n==4?(t.push(this.tableData[this.indexMyTeam]),t.push(this.tableData[n])):t.push(this.tableData[n]);this.tableData=t}if(this.teamperpage>0){let t=[];this.tableData.forEach((n,s)=>{t.push(n),(s+1)%this.teamperpage===0&&(this.pagesteams.push([...t]),t=[])}),t.length&&this.pagesteams.push([...t])}for(let t=0;t<this.tableData.length;t++)this.teams.findIndex(n=>n.id===this.tableData[t].team_id)==-1&&this.teams.push({id:this.tableData[t].team_id,team:this.tableData[t].team_name,logo:this.tableData[t].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}else if(this.tournamentSelected.tournament_type==2||this.typeView==2)this.tableData=a.data.data;else if(this.tournamentSelected.tournament_type==1||this.typeView==1){this.tableData=a.data.groups;for(let t=0;t<this.tableData.length;t++)for(let n=0;n<this.tableData[t].data.length;n++)this.teams.findIndex(s=>s.id===this.tableData[t].data[n].team_id)==-1&&this.teams.push({id:this.tableData[t].data[n].team_id,team:this.tableData[t].data[n].team_name,logo:this.tableData[t].data[n].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=Qs.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},ur=e=>(o.pushScopeId("data-v-ddaea350"),e=e(),o.popScopeId(),e),Gf={key:0,class:"gsc-generaltable__container"},Hf={key:1,class:"gsc-generaltable__row-sep"},Lf=ur(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"},null,-1)),Kf=[Lf],qf={key:1,class:"gsc-generaltable__container"},Zf={class:"header-switch-option-groups"},Qf={key:1,class:"gsc-generaltable__row-sep"},Yf=ur(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"},null,-1)),Wf=[Yf],Jf={class:"title-group"},Xf={class:"row-table-carrousel"},_f={class:"group-table"},$f={class:"title-group"},e0={key:1,class:"carousel-table-landing"},t0={class:"row-table-carrousel"},o0={class:"header-switch-option-groups-home"},a0={class:"row-table-carrousel"},n0={class:"group-table"},i0={class:"title-group"};function s0(e,a,t,n,s,i){const r=o.resolveComponent("GSCTournamentSelect"),l=o.resolveComponent("GSCSeasonSelect"),p=o.resolveComponent("GSCFilterperteam"),c=o.resolveComponent("GSCTableperteam"),d=o.resolveComponent("GscSwitchComponent"),h=o.resolveComponent("GSCCarousel"),f=o.resolveComponent("PlayOffIMG");return o.openBlock(),o.createElementBlock("div",{class:"gsc-generaltable",style:o.normalizeStyle(t.type==0?i.customStyle:i.customStyleLanding),ref:"myDivRef"},[t.type==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:o.normalizeStyle(i.customStyleTitle)},o.toDisplayString(i.tableOfPhases),7),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(r,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament,"tournaments-ids-to-include":t.tournamentsIdsToInclude,"api-url":t.tournamentsApiUrl},null,8,["current-season-id","onInput","tournaments-ids-to-include","api-url"])],2),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(l,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),s.typeTournament==0?(o.openBlock(),o.createElementBlock("div",Gf,[t.filtersTeams?(o.openBlock(),o.createBlock(p,{key:0,data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"])):o.createCommentVNode("",!0),t.filtersTeams?(o.openBlock(),o.createElementBlock("div",Hf,Kf)):o.createCommentVNode("",!0),s.tableData?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(s.tableData,(m,u)=>(o.openBlock(),o.createBlock(c,{key:u,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:u==0,"background-color":s.teamselect!=0&&s.teamselect==m.team_id?"rgba(30, 60, 81, 0.5)":u%2===0?"#172531":"#0d1d29",data:m},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),s.typeTournament==1?(o.openBlock(),o.createElementBlock("div",qf,[o.createElementVNode("div",Zf,[o.createElementVNode("div",{class:o.normalizeClass(n.elementSize.width>880?"switch-size-group":"switch-size-group-movil")},[o.createVNode(d,{type:1,buttons:["Grupos","Play Off"],"selected-option":s.optionSelectedGroup,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#cbee6b","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])],2)]),s.optionSelectedGroup=="Grupos"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.filtersTeams?(o.openBlock(),o.createBlock(p,{key:0,data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"])):o.createCommentVNode("",!0),t.filtersTeams?(o.openBlock(),o.createElementBlock("div",Qf,Wf)):o.createCommentVNode("",!0),n.elementSize.width>600?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(s.tableData,(m,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"group-table"},[o.createElementVNode("div",Jf,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(g,b)=>(o.openBlock(),o.createBlock(c,{key:b,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:b==0,"background-color":s.teamselect!=0&&s.teamselect==g.team_id?"rgba(30, 60, 81, 0.5)":b%2===0?"#172531":"#0d1d29",data:g},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))]))),128)):(o.openBlock(),o.createBlock(h,{key:3,isPaginationVisible:t.isPaginationVisible,items:s.tableData},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",Xf,[o.createElementVNode("div",_f,[o.createElementVNode("div",$f,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":(e.index%2,"#172531"),data:u},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))])])]),_:1},8,["isPaginationVisible","items"]))],64)):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))])):o.createCommentVNode("",!0),s.typeTournament==2?(o.openBlock(),o.createBlock(f,{key:2,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock("div",e0,[t.typeView==0?(o.openBlock(),o.createBlock(h,{key:0,isPaginationVisible:t.isPaginationVisible,items:s.pagesteams},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",t0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-games":!1,"teams-videos":t.teamsVideos,"is-videos":t.showVideos,ItemHeight:"60px",teamSelected:s.teamselect,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":g%2===0?"#172531":"#0d1d29",data:u},null,8,["onOpenmedia","onOpenTableProfile","teams-videos","is-videos","teamSelected","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])):o.createCommentVNode("",!0),t.typeView==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",o0,[o.createElementVNode("div",{class:o.normalizeClass(n.elementSize.width>880?"switch-size-group":"switch-size-group-movil")},[o.createVNode(d,{type:1,buttons:["Grupos","Play Off"],"selected-option":s.optionSelectedGroup,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#cbee6b","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])],2)]),s.optionSelectedGroup=="Grupos"?(o.openBlock(),o.createBlock(h,{key:0,isPaginationVisible:t.isPaginationVisible,items:s.tableData},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",a0,[o.createElementVNode("div",n0,[o.createElementVNode("div",i0,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":(e.index%2,"#172531"),data:u},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))])])]),_:1},8,["isPaginationVisible","items"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s.tournamentSelected.id?(o.openBlock(),o.createBlock(f,{key:0,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":t.tournament,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))],64))],64)):o.createCommentVNode("",!0),t.typeView==2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[s.tournamentSelected.id?(o.openBlock(),o.createBlock(f,{key:0,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":t.tournament,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))],64)):o.createCommentVNode("",!0)]))],4)}const r0=mr(Df,[["render",s0],["__scopeId","data-v-ddaea350"]]);function l0(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const c0=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},tn={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},hr=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},gr=tn.setup;tn.setup=gr?(e,a)=>(hr(),gr(e,a)):hr;const d0={ref:"gscScrollableContainer",class:"scrollable-container"},m0={class:"scrollable-arrows"},p0=["width","height","viewBox"],u0=["stroke"],h0={class:"scrollable-wrapper"},g0={class:"scrollable-arrows"},f0=["width","height","viewBox"],y0=["stroke"];function b0(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",d0,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",m0,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,u0)],8,p0))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",h0,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",g0,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,y0)],8,f0))])],2)):o.createCommentVNode("",!0)],512)}const w0=c0(tn,[["render",b0],["__scopeId","data-v-b548a08d"]]),A0=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},on={components:{GSCSlider:w0},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=l0(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},fr=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},yr=on.setup;on.setup=yr?(e,a)=>(fr(),yr(e,a)):fr;const C0={ref:"myDivRef"},k0={key:0,class:"gs-switch-container"},S0=["onClick"],B0={key:1,class:"gs-switch-container-type"},O0=["onClick"],E0={key:2,class:"gs-switch-container-carousel"},x0=["onClick"];function M0(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",C0,[t.type==0?(o.openBlock(),o.createElementBlock("div",k0,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,S0))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,O0))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",E0,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,x0))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const an=A0(on,[["render",M0],["__scopeId","data-v-8a86dfaf"]]);function br(e,a){return function(){return e.apply(a,arguments)}}const{toString:V0}=Object.prototype,{getPrototypeOf:nn}=Object,Vo=(e=>a=>{const t=V0.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),$e=e=>(e=e.toLowerCase(),a=>Vo(a)===e),Ro=e=>a=>typeof a===e,{isArray:xt}=Array,Gt=Ro("undefined");function R0(e){return e!==null&&!Gt(e)&&e.constructor!==null&&!Gt(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wr=$e("ArrayBuffer");function F0(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&wr(e.buffer),a}const z0=Ro("string"),De=Ro("function"),Ar=Ro("number"),Fo=e=>e!==null&&typeof e=="object",T0=e=>e===!0||e===!1,zo=e=>{if(Vo(e)!=="object")return!1;const a=nn(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},N0=$e("Date"),v0=$e("File"),P0=$e("Blob"),I0=$e("FileList"),j0=e=>Fo(e)&&De(e.pipe),U0=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((a=Vo(e))==="formdata"||a==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},D0=$e("URLSearchParams"),G0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ht(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Cr(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sr=e=>!Gt(e)&&e!==kr;function sn(){const{caseless:e}=Sr(this)&&this||{},a={},t=(n,s)=>{const i=e&&Cr(a,s)||s;zo(a[i])&&zo(n)?a[i]=sn(a[i],n):zo(n)?a[i]=sn({},n):xt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ht(arguments[n],t);return a}const H0=(e,a,t,{allOwnKeys:n}={})=>(Ht(a,(s,i)=>{t&&De(s)?e[i]=br(s,t):e[i]=s},{allOwnKeys:n}),e),L0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K0=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},q0=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&nn(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Z0=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Q0=e=>{if(!e)return null;if(xt(e))return e;let a=e.length;if(!Ar(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Y0=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&nn(Uint8Array)),W0=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},J0=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},X0=$e("HTMLFormElement"),_0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Br=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),$0=$e("RegExp"),Or=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Ht(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},ey=e=>{Or(e,(a,t)=>{if(De(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(De(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ty=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return xt(e)?n(e):n(String(e).split(a)),t},oy=()=>{},ay=(e,a)=>(e=+e,Number.isFinite(e)?e:a),rn="abcdefghijklmnopqrstuvwxyz",Er="0123456789",xr={DIGIT:Er,ALPHA:rn,ALPHA_DIGIT:rn+rn.toUpperCase()+Er},ny=(e=16,a=xr.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function iy(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sy=e=>{const a=new Array(10),t=(n,s)=>{if(Fo(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xt(n)?[]:{};return Ht(n,(r,l)=>{const p=t(r,s+1);!Gt(p)&&(i[l]=p)}),a[s]=void 0,i}}return n};return t(e,0)},ry=$e("AsyncFunction"),ly=e=>e&&(Fo(e)||De(e))&&De(e.then)&&De(e.catch),O={isArray:xt,isArrayBuffer:wr,isBuffer:R0,isFormData:U0,isArrayBufferView:F0,isString:z0,isNumber:Ar,isBoolean:T0,isObject:Fo,isPlainObject:zo,isUndefined:Gt,isDate:N0,isFile:v0,isBlob:P0,isRegExp:$0,isFunction:De,isStream:j0,isURLSearchParams:D0,isTypedArray:Y0,isFileList:I0,forEach:Ht,merge:sn,extend:H0,trim:G0,stripBOM:L0,inherits:K0,toFlatObject:q0,kindOf:Vo,kindOfTest:$e,endsWith:Z0,toArray:Q0,forEachEntry:W0,matchAll:J0,isHTMLForm:X0,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:Or,freezeMethods:ey,toObjectSet:ty,toCamelCase:_0,noop:oy,toFiniteNumber:ay,findKey:Cr,global:kr,isContextDefined:Sr,ALPHABET:xr,generateString:ny,isSpecCompliantForm:iy,toJSONObject:sy,isAsyncFn:ry,isThenable:ly};function J(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Mr=J.prototype,Vr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vr[e]={value:e}}),Object.defineProperties(J,Vr),Object.defineProperty(Mr,"isAxiosError",{value:!0}),J.from=(e,a,t,n,s,i)=>{const r=Object.create(Mr);return O.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),J.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const cy=null;function ln(e){return O.isPlainObject(e)||O.isArray(e)}function Rr(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Fr(e,a,t){return e?e.concat(a).map(function(n,s){return n=Rr(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function dy(e){return O.isArray(e)&&!e.some(ln)}const my=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function To(e,a,t){if(!O.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=O.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,u){return!O.isUndefined(u[m])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(a);if(!O.isFunction(s))throw new TypeError("visitor must be a function");function p(m){if(m===null)return"";if(O.isDate(m))return m.toISOString();if(!l&&O.isBlob(m))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(m)||O.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,u,g){let b=m;if(m&&!g&&typeof m=="object"){if(O.endsWith(u,"{}"))u=n?u:u.slice(0,-2),m=JSON.stringify(m);else if(O.isArray(m)&&dy(m)||(O.isFileList(m)||O.endsWith(u,"[]"))&&(b=O.toArray(m)))return u=Rr(u),b.forEach(function(A,C){!(O.isUndefined(A)||A===null)&&a.append(r===!0?Fr([u],C,i):r===null?u:u+"[]",p(A))}),!1}return ln(m)?!0:(a.append(Fr(g,u,i),p(m)),!1)}const d=[],h=Object.assign(my,{defaultVisitor:c,convertValue:p,isVisitable:ln});function f(m,u){if(!O.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+u.join("."));d.push(m),O.forEach(m,function(g,b){(!(O.isUndefined(g)||g===null)&&s.call(a,g,O.isString(b)?b.trim():b,u,h))===!0&&f(g,u?u.concat(b):[b])}),d.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return f(e),a}function zr(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function cn(e,a){this._pairs=[],e&&To(e,this,a)}const Tr=cn.prototype;Tr.append=function(e,a){this._pairs.push([e,a])},Tr.toString=function(e){const a=e?function(t){return e.call(this,t,zr)}:zr;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function py(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nr(e,a,t){if(!a)return e;const n=t&&t.encode||py,s=t&&t.serialize;let i;if(s?i=s(a,t):i=O.isURLSearchParams(a)?a.toString():new cn(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const vr=class{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){O.forEach(this.handlers,function(t){t!==null&&a(t)})}},Pr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uy=typeof URLSearchParams<"u"?URLSearchParams:cn,hy=typeof FormData<"u"?FormData:null,gy=typeof Blob<"u"?Blob:null,fy={isBrowser:!0,classes:{URLSearchParams:uy,FormData:hy,Blob:gy},protocols:["http","https","file","blob","url","data"]},Ir=typeof window<"u"&&typeof document<"u",yy=(e=>Ir&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),by=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ir,hasStandardBrowserEnv:yy,hasStandardBrowserWebWorkerEnv:by},Symbol.toStringTag,{value:"Module"})),et={...wy,...fy};function Ay(e,a){return To(e,new et.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return et.isNode&&O.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Cy(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function ky(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function jr(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),p=i>=t.length;return r=!r&&O.isArray(s)?s.length:r,p?(O.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!O.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&O.isArray(s[r])&&(s[r]=ky(s[r])),!l)}if(O.isFormData(e)&&O.isFunction(e.entries)){const t={};return O.forEachEntry(e,(n,s)=>{a(Cy(n),s,t,0)}),t}return null}function Sy(e,a,t){if(O.isString(e))try{return(a||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const dn={transitional:Pr,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=O.isObject(e);if(s&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return n?JSON.stringify(jr(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Ay(e,this.formSerializer).toString();if((i=O.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return To(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),Sy(e)):e}],transformResponse:[function(e){const a=this.transitional||dn.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&O.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{dn.headers[e]={}});const mn=dn,By=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oy=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
15
|
+
*/const Ee={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},er={itemsToShow:{default:Ee.itemsToShow,type:Number},itemsToScroll:{default:Ee.itemsToScroll,type:Number},wrapAround:{default:Ee.wrapAround,type:Boolean},throttle:{default:Ee.throttle,type:Number},snapAlign:{default:Ee.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Ee.transition,type:Number},breakpoints:{default:Ee.breakpoints,type:Object},autoplay:{default:Ee.autoplay,type:Number},pauseAutoplayOnHover:{default:Ee.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ee.mouseDrag,type:Boolean},touchDrag:{default:Ee.touchDrag,type:Boolean},dir:{default:Ee.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Ee.i18n,type:Object},settings:{default(){return{}},type:Object}};function Dh({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Gh({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Wa({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Hh({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:Wa({val:r,max:t-i,min:0})}function tr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...tr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function Ja({val:e,max:a,min:t=0}){return e>a?Ja({val:e-(a+1),max:a,min:t}):e<t?Ja({val:e+(a+1),max:a,min:t}):e}function Lh(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function Kh(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function qh(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Zh=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Ee))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},qh(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),Qh=o.defineComponent({name:"Carousel",props:er,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},Ee));let d=Object.assign({},Ee),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),u=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function k(){h=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),L(d)}function j(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,K)=>+K-+x);let R=Object.assign({},d);w.some(x=>{const K=window.matchMedia(`(min-width: ${x}px)`).matches;return K&&(R=Object.assign(Object.assign({},R),h[x])),K}),L(R)}function L(w){Object.entries(w).forEach(([R,x])=>c[R]=x)}const D=Kh(()=>{j(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function _(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=Dh({config:c,slidesCount:p.value}),b.value=Gh({config:c,slidesCount:p.value}),c.wrapAround||(f.value=Wa({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),j(),N(),window.addEventListener("resize",D,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",D,{passive:!0})});let P=!1;const oe={x:0,y:0},ie={x:0,y:0},Y=o.reactive({x:0,y:0}),se=o.ref(!1),pe=o.ref(!1),He=()=>{se.value=!0},_e=()=>{se.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(P=w.type==="touchstart",P||w.preventDefault(),!(!P&&w.button!==0||V.value)&&(oe.x=P?w.touches[0].clientX:w.clientX,oe.y=P?w.touches[0].clientY:w.clientY,document.addEventListener(P?"touchmove":"mousemove",Te,!0),document.addEventListener(P?"touchend":"mouseup",Ne,!0)))}const Te=Lh(w=>{pe.value=!0,ie.x=P?w.touches[0].clientX:w.clientX,ie.y=P?w.touches[0].clientY:w.clientY;const R=ie.x-oe.x,x=ie.y-oe.y;Y.y=x,Y.x=R},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,R=Math.sign(Y.x)*.4,x=Math.round(Y.x/l.value+R)*w;if(x&&!P){const K=Oe=>{Oe.stopPropagation(),window.removeEventListener("click",K,!0)};window.addEventListener("click",K,!0)}M(f.value-x),Y.x=0,Y.y=0,pe.value=!1,document.removeEventListener(P?"touchmove":"mousemove",Te,!0),document.removeEventListener(P?"touchend":"mouseup",Ne,!0)}function N(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||F()},c.autoplay))}function v(){A&&(clearInterval(A),A=null),N()}const V=o.ref(!1);function M(w){const R=c.wrapAround?w:Wa({val:w,max:g.value,min:b.value});f.value===R||V.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!0,m.value=f.value,f.value=R,C=setTimeout(()=>{if(c.wrapAround){const x=Ja({val:R,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!1,v()},c.transition))}function F(){M(f.value+c.itemsToScroll)}function I(){M(f.value-c.itemsToScroll)}const G={slideTo:M,next:F,prev:I};o.provide("nav",G),o.provide("isSliding",V);const W=o.computed(()=>Hh({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",W);const ce=o.computed(()=>{const w=c.dir==="rtl"?-1:1,R=W.value*l.value*w;return{transform:`translateX(${Y.x-R}px)`,transition:`${V.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function le(){k(),j(),_(),U(),v()}Object.keys(er).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],le)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&M(Number(w))}),o.watch(p,_),t("before-init"),k();const Re={config:c,slidesCount:p,slideWidth:l,next:F,prev:I,slideTo:M,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:u};n({updateBreakpointsConfigs:j,updateSlidesData:_,updateSlideWidth:U,initDefaultConfigs:k,restartCarousel:le,slideTo:M,next:F,prev:I,nav:G,data:Re});const Be=a.default||a.slides,ve=a.addons,Ie=o.reactive(Re);return()=>{const w=tr(Be==null?void 0:Be(Ie)),R=(ve==null?void 0:ve(Ie))||[];w.forEach((we,Ae)=>we.props.index=Ae);let x=w;if(c.wrapAround){const we=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:-w.length+ae,isClone:!0,key:`clone-before-${ae}`})),Ae=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:w.length+ae,isClone:!0,key:`clone-after-${ae}`}));x=[...we,...w,...Ae]}r.value=w,p.value=Math.max(w.length,1);const K=o.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),Oe=o.h("div",{class:"carousel__viewport"},K);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":V.value,"is-dragging":pe.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:He,onMouseleave:_e},[Oe,R,o.h(Zh)])}}}),or;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(or||(or={}));var Yh=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Ee))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=h};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Wh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Jh=e=>(o.pushScopeId("data-v-54620d25"),e=e(),o.popScopeId(),e),Xh={class:"gsc-carousel"},_h={key:0},$h=Jh(()=>o.createElementVNode("div",null,"no hay",-1)),eg=[$h],tg={class:"gsc-carousel__2d__slides"},og={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ag=["fill"],ng={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ig=["fill"],sg={class:"gsc-carousel__2d__navigation"},rg={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lg=["stroke"],cg={key:1,class:"gsc-carousel__2d__navigation__pagination"},dg=["onClick"],mg={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pg=["stroke"],ug={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,p(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.defaultItemByIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?p(g):l.value=!0},{immediate:!0});function p(g){g&&g.length&&s.value&&setTimeout(()=>{if(n.defaultItemByProp){const b=n.items.findIndex(A=>A[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),i.value&&r.value===0&&t("input",{selectedItem:i.value,selectedItemIndex:r.value})},500)}function c(){s.value&&s.value.next()}function d(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function m(g){s.value.slideTo(g)}function u(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:d,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",Xh,[n.is3d?(o.openBlock(),o.createElementBlock("div",_h,eg)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",tg,[o.createVNode(o.unref(Qh),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(A,C)=>(o.openBlock(),o.createBlock(o.unref(Yh),{key:C},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:A},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:o.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:b[0]||(b[0]=A=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",og,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,ag)]))],2)],4)):o.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:o.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:b[1]||(b[1]=A=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",ng,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,ig)]))],2)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",sg,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=A=>d())},[(o.openBlock(),o.createElementBlock("svg",rg,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,lg)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",cg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${C}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===C?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===C?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:k=>m(C)},null,12,dg))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=A=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",mg,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,pg)]))])):o.createCommentVNode("",!0)])],2))]))}},hg=Wh(ug,[["__scopeId","data-v-54620d25"]]),gg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Xa={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(e){this.status=e}}},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(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ar=()=>{o.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},nr=Xa.setup;Xa.setup=nr?(e,a)=>(ar(),nr(e,a)):ar;const fg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),yg=["src"],bg={key:1,class:"text"},wg=["src"],Ag={class:"stats"},Cg=fg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),kg={class:"numstats"},Sg={class:"leyend"};function Bg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,yg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",bg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,wg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Ag,[Cg,o.createElementVNode("div",kg,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Sg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Og=gg(Xa,[["render",Bg],["__scopeId","data-v-fb269a1e"]]),Eg={class:"gsc-dropdown__main-container__item-selected"},xg=["height","width"],Mg=["stroke"],Vg={class:"gsc-dropdown__items-container"},Rg=["onClick"],Fg={key:0,class:"gsc-dropdown__items-footer"},zg={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(m,u)=>{if(!t.modelValue&&(!t.onlyFirstTime||!u||!u.length)&&m&&m.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=m[g]):(i.value=0,n.value=m[0])}else n.value=m[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,m=>{if(m){const u=t.items.findIndex(g=>typeof m=="object"?JSON.stringify(g)===JSON.stringify(m):g===m);u!==-1&&(i.value=u,n.value=t.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),p=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function d(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function h(m,u){t.isMultipleOption?i.value=-1:(i.value=u,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",d)}),o.onBeforeMount(()=>{document.removeEventListener("click",d)}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Eg,[o.renderSlot(m.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(p.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Mg)],8,xg))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Vg,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:A=>h(g,b)},[o.renderSlot(m.$slots,"availableItem",{item:g})],10,Rg))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Fg,[o.createVNode(o.unref(Og),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Tg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ng={class:"tournament-select__selected-tournament"},vg={class:"tournament-select__selected-tournament__logo"},Pg=["src"],Ig={class:"tournament-select__selected-tournament__name"},jg="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",Ug={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const m={};return t.fontFamily&&(m["font-family"]=`${t.fontFamily}`),m}),i=o.computed(()=>t.tournamentsIdsToInclude.size?p(n.value):n.value),r=o.computed(()=>i.value.find(m=>m.seasonsIds.has(t.currentSeasonId))||i.value[0]);async function l(){try{if(t.items&&t.items.length)n.value=[...t.items];else{const m=await d();n.value=m.map(u=>({...u.tournament,seasons:u.seasons,seasonsIds:u.seasons.reduce((g,b)=>(g.add(b.id),g),new Set)})).sort((u,g)=>u.order-g.order)}}catch(m){throw new Error(m)}}function p(m){return m.filter(u=>t.tournamentsIdsToInclude.has(u._id||u.id))}function c(m){const u=new XMLHttpRequest,g=`${t.logosUrl}${m}.${t.logoFileType}`;return u.open("HEAD",g,!1),u.send(),u.status!==404}async function d(){try{return(await fetch(t.apiUrl||jg)).json()}catch(m){return Promise.reject(m)}}function h(m){a("input",m)}function f(m){a("input",m)}return o.onMounted(()=>{l()}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(zg),o.mergeProps(t,{"model-value":r.value,items:i.value,onInput:h,"onUpdate:modelValue":f}),{default:o.withCtx(({selectedItem:g})=>[o.createElementVNode("div",Ng,[o.createElementVNode("div",vg,[c(g.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${g.id}.${t.logoFileType}`,alt:""},null,8,Pg)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ig,o.toDisplayString(g.name),1)])]),availableItem:o.withCtx(({item:g})=>[o.createElementVNode("div",null,o.toDisplayString(g.name),1)]),_:1},16,["model-value","items"])],4))}},Dg=Tg(Ug,[["__scopeId","data-v-5da910ed"]]),Gg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},_a={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(e){this.status=e}}},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(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ir=()=>{o.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},sr=_a.setup;_a.setup=sr?(e,a)=>(ir(),sr(e,a)):ir;const Hg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Lg=["src"],Kg={key:1,class:"text"},qg=["src"],Zg={class:"stats"},Qg=Hg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Yg={class:"numstats"},Wg={class:"leyend"};function Jg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Lg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Kg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,qg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Zg,[Qg,o.createElementVNode("div",Yg,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Wg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Xg=Gg(_a,[["render",Jg],["__scopeId","data-v-fb269a1e"]]),_g={class:"gsc-dropdown__main-container__item-selected"},$g=["height","width"],ef=["stroke"],tf={class:"gsc-dropdown__items-container"},of=["onClick"],af={key:0,class:"gsc-dropdown__items-footer"},nf={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(m,u)=>{if(!t.modelValue&&(!t.onlyFirstTime||!u||!u.length)&&m&&m.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=m[g]):(i.value=0,n.value=m[0])}else n.value=m[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,m=>{if(m){const u=t.items.findIndex(g=>typeof m=="object"?JSON.stringify(g)===JSON.stringify(m):g===m);u!==-1&&(i.value=u,n.value=t.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),p=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function d(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function h(m,u){t.isMultipleOption?i.value=-1:(i.value=u,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",d)}),o.onBeforeMount(()=>{document.removeEventListener("click",d)}),(m,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",_g,[o.renderSlot(m.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(p.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ef)],8,$g))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",tf,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:A=>h(g,b)},[o.renderSlot(m.$slots,"availableItem",{item:g})],10,of))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",af,[o.createVNode(o.unref(Xg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},sf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},rf={class:"season-name"},lf={class:"items-list-season"},cf={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(nf),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:p})=>[o.createElementVNode("div",rf,[o.createElementVNode("span",null,o.toDisplayString(p.name),1)])]),availableItem:o.withCtx(({item:p})=>[o.createElementVNode("span",lf,o.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},df=sf(cf,[["__scopeId","data-v-3a11087d"]]);function mf(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const pf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},$a={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},rr=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},lr=$a.setup;$a.setup=lr?(e,a)=>(rr(),lr(e,a)):rr;const uf={ref:"gscScrollableContainer",class:"scrollable-container"},hf={class:"scrollable-arrows"},gf=["width","height","viewBox"],ff=["stroke"],yf={class:"scrollable-wrapper"},bf={class:"scrollable-arrows"},wf=["width","height","viewBox"],Af=["stroke"];function Cf(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",uf,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",hf,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,ff)],8,gf))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",yf,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",bf,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,Af)],8,wf))])],2)):o.createCommentVNode("",!0)],512)}const kf=pf($a,[["render",Cf],["__scopeId","data-v-b548a08d"]]),Sf=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},en={components:{GSCSlider:kf},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=mf(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},cr=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},dr=en.setup;en.setup=dr?(e,a)=>(cr(),dr(e,a)):cr;const Bf={ref:"myDivRef"},Of={key:0,class:"gs-switch-container"},Ef=["onClick"],xf={key:1,class:"gs-switch-container-type"},Mf=["onClick"],Vf={key:2,class:"gs-switch-container-carousel"},Rf=["onClick"];function Ff(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Bf,[t.type==0?(o.openBlock(),o.createElementBlock("div",Of,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Ef))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",xf,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Mf))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",Vf,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Rf))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const zf=Sf(en,[["render",Ff],["__scopeId","data-v-8a86dfaf"]]),mr=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Tf={components:{},props:{tournamentId:{type:Number,default:0},seasonId:{type:Number,default:0},widthComponent:{type:Number,default:0}},data(){},computed:{},methods:{}},pr=e=>(o.pushScopeId("data-v-a618c42e"),e=e(),o.popScopeId(),e),Nf={class:"container-img"},vf=pr(()=>o.createElementVNode("div",{class:"sep-playoff-top"},null,-1)),Pf=pr(()=>o.createElementVNode("div",{class:"sep-playoff-home"},null,-1));function If(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",Nf,[vf,t.widthComponent>=1100?(o.openBlock(),o.createElementBlock("div",{key:0,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_1010_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(850px - 50px);`)},null,4)):t.widthComponent>=985&&t.widthComponent<1100?(o.openBlock(),o.createElementBlock("div",{key:1,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(760px - 50px);`)},null,4)):t.widthComponent>=915&&t.widthComponent<985?(o.openBlock(),o.createElementBlock("div",{key:2,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_1010_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(740px - 90px);`)},null,4)):t.widthComponent>=855&&t.widthComponent<915?(o.openBlock(),o.createElementBlock("div",{key:3,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(720px - 110px);`)},null,4)):t.widthComponent>=740&&t.widthComponent<855?(o.openBlock(),o.createElementBlock("div",{key:4,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_429_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(700px - 180px);`)},null,4)):t.widthComponent>=670&&t.widthComponent<740?(o.openBlock(),o.createElementBlock("div",{key:5,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 80px); height: calc(700px - 200px);`)},null,4)):t.widthComponent>=595&&t.widthComponent<670?(o.openBlock(),o.createElementBlock("div",{key:6,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 50px); height: calc(700px - 240px);`)},null,4)):t.widthComponent>=545&&t.widthComponent<595?(o.openBlock(),o.createElementBlock("div",{key:7,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 50px); height: calc(700px - 280px);`)},null,4)):t.widthComponent>=485&&t.widthComponent<545?(o.openBlock(),o.createElementBlock("div",{key:8,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 320px);`)},null,4)):t.widthComponent>=445&&t.widthComponent<485?(o.openBlock(),o.createElementBlock("div",{key:9,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 360px);`)},null,4)):t.widthComponent>=385&&t.widthComponent<445?(o.openBlock(),o.createElementBlock("div",{key:10,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 40px); height: calc(700px - 410px);`)},null,4)):t.widthComponent>=350&&t.widthComponent<385?(o.openBlock(),o.createElementBlock("div",{key:11,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 20px); height: calc(700px - 420px);`)},null,4)):t.widthComponent<350?(o.openBlock(),o.createElementBlock("div",{key:12,class:"img-container-playoff-home",style:o.normalizeStyle(`background-image: url('/brackets_400_${t.seasonId}.png?r=${Math.floor(Math.random()*1e4+1)}'); width: calc(100% - 20px); height: calc(700px - 440px);`)},null,4)):o.createCommentVNode("",!0),Pf])}const jf=mr(Tf,[["render",If],["__scopeId","data-v-a618c42e"]]);function Uf(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Df={components:{GSCFilterperteam:lh,GSCTableperteam:Uh,GscSwitchComponent:zf,GSCCarousel:hg,GSCTournamentSelect:Dg,GSCSeasonSelect:df,PlayOffIMG:jf},computed:{tableOfPhases(){return this.tournamentSelected?this.tournamentSelected.tournament_type===1?"Fases":this.tournamentSelected.tournament_type===2?"Play Off":"Tabla General":"Tabla General"},customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{tournamentsApiUrl:{type:String,default:""},teamsVideos:{type:Array,default:()=>[]},showVideos:{type:Boolean,default:!0},teamId:{type:Number,default:0},filtersTeams:{type:Boolean,default:!0},teamDefaultSelect:{type:Number,default:0},season:{type:Number},currentSeasonId:{type:Number,default:0},tournament:{type:Number,default:-1},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},typeView:{type:Number,default:-1},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Uf(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,typeTournament:0,tableData:null,optionSelectedGroup:"Grupos",tableFull:!0,indexMyTeam:0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{teamDefaultSelect:{async handler(e,a){this.teamselect=e},immediate:!0},currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const t in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].id=e[a].seasons[t].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].name=e[a].seasons[t].name}if(this.currentSeasonId===0){const a=e.find(t=>t._id===1).seasons[0];await this.getTableList(a.id)}}catch(e){throw new Error(e)}},methods:{changeType(e){this.optionSelectedGroup=e},setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},t=[1,2,3],n=a[e.category]||[39,607,608,12,55,54,35,14,52,15,53,466,477,40,257];let s={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:t,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.typeTournament=e.tournament_type,this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[],this.tableData=[],this.pagesteams=[];const a=await Qs.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tournamentSelected.tournament_type==0||this.typeView==0){if(this.tableData=a.data.data,this.indexMyTeam=this.tableData.findIndex(t=>t.team_id===this.teamId),this.indexMyTeam>4){let t=[];for(let n=0;n<this.tableData.length;n++)n==4?(t.push(this.tableData[this.indexMyTeam]),t.push(this.tableData[n])):t.push(this.tableData[n]);this.tableData=t}if(this.teamperpage>0){let t=[];this.tableData.forEach((n,s)=>{t.push(n),(s+1)%this.teamperpage===0&&(this.pagesteams.push([...t]),t=[])}),t.length&&this.pagesteams.push([...t])}for(let t=0;t<this.tableData.length;t++)this.teams.findIndex(n=>n.id===this.tableData[t].team_id)==-1&&this.teams.push({id:this.tableData[t].team_id,team:this.tableData[t].team_name,logo:this.tableData[t].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}else if(this.tournamentSelected.tournament_type==2||this.typeView==2)this.tableData=a.data.data;else if(this.tournamentSelected.tournament_type==1||this.typeView==1){this.tableData=a.data.groups;for(let t=0;t<this.tableData.length;t++)for(let n=0;n<this.tableData[t].data.length;n++)this.teams.findIndex(s=>s.id===this.tableData[t].data[n].team_id)==-1&&this.teams.push({id:this.tableData[t].data[n].team_id,team:this.tableData[t].data[n].team_name,logo:this.tableData[t].data[n].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=Qs.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},ur=e=>(o.pushScopeId("data-v-bddd6b49"),e=e(),o.popScopeId(),e),Gf={key:0,class:"gsc-generaltable__container"},Hf={key:1,class:"gsc-generaltable__row-sep"},Lf=ur(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"},null,-1)),Kf=[Lf],qf={key:1,class:"gsc-generaltable__container"},Zf={class:"header-switch-option-groups"},Qf={key:1,class:"gsc-generaltable__row-sep"},Yf=ur(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"},null,-1)),Wf=[Yf],Jf={class:"title-group"},Xf={class:"row-table-carrousel"},_f={class:"group-table"},$f={class:"title-group"},e0={key:1,class:"carousel-table-landing"},t0={class:"row-table-carrousel"},o0={class:"header-switch-option-groups-home"},a0={class:"row-table-carrousel"},n0={class:"group-table"},i0={class:"title-group"};function s0(e,a,t,n,s,i){const r=o.resolveComponent("GSCTournamentSelect"),l=o.resolveComponent("GSCSeasonSelect"),p=o.resolveComponent("GSCFilterperteam"),c=o.resolveComponent("GSCTableperteam"),d=o.resolveComponent("GscSwitchComponent"),h=o.resolveComponent("GSCCarousel"),f=o.resolveComponent("PlayOffIMG");return o.openBlock(),o.createElementBlock("div",{class:"gsc-generaltable",style:o.normalizeStyle(t.type==0?i.customStyle:i.customStyleLanding),ref:"myDivRef"},[t.type==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:o.normalizeStyle(i.customStyleTitle)},o.toDisplayString(i.tableOfPhases),7),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(r,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament,"tournaments-ids-to-include":t.tournamentsIdsToInclude,"api-url":t.tournamentsApiUrl},null,8,["current-season-id","onInput","tournaments-ids-to-include","api-url"])],2),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(l,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),s.typeTournament==0?(o.openBlock(),o.createElementBlock("div",Gf,[t.filtersTeams?(o.openBlock(),o.createBlock(p,{key:0,data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"])):o.createCommentVNode("",!0),t.filtersTeams?(o.openBlock(),o.createElementBlock("div",Hf,Kf)):o.createCommentVNode("",!0),s.tableData?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(s.tableData,(m,u)=>(o.openBlock(),o.createBlock(c,{key:u,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:u==0,"background-color":s.teamselect!=0&&s.teamselect==m.team_id?"rgba(30, 60, 81, 0.5)":u%2===0?"#172531":"#0d1d29",data:m},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),s.typeTournament==1?(o.openBlock(),o.createElementBlock("div",qf,[o.createElementVNode("div",Zf,[o.createElementVNode("div",{class:o.normalizeClass(n.elementSize.width>880?"switch-size-group":"switch-size-group-movil")},[o.createVNode(d,{type:1,buttons:["Grupos","Play Off"],"selected-option":s.optionSelectedGroup,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#cbee6b","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])],2)]),s.optionSelectedGroup=="Grupos"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.filtersTeams?(o.openBlock(),o.createBlock(p,{key:0,data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"])):o.createCommentVNode("",!0),t.filtersTeams?(o.openBlock(),o.createElementBlock("div",Qf,Wf)):o.createCommentVNode("",!0),n.elementSize.width>600?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(s.tableData,(m,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"group-table"},[o.createElementVNode("div",Jf,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(g,b)=>(o.openBlock(),o.createBlock(c,{key:b,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:b==0,"background-color":s.teamselect!=0&&s.teamselect==g.team_id?"rgba(30, 60, 81, 0.5)":b%2===0?"#172531":"#0d1d29",data:g},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))]))),128)):(o.openBlock(),o.createBlock(h,{key:3,isPaginationVisible:t.isPaginationVisible,items:s.tableData},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",Xf,[o.createElementVNode("div",_f,[o.createElementVNode("div",$f,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":(e.index%2,"#172531"),data:u},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))])])]),_:1},8,["isPaginationVisible","items"]))],64)):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))])):o.createCommentVNode("",!0),s.typeTournament==2?(o.openBlock(),o.createBlock(f,{key:2,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock("div",e0,[t.typeView==0?(o.openBlock(),o.createBlock(h,{key:0,isPaginationVisible:t.isPaginationVisible,items:s.pagesteams},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",t0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-games":!1,"teams-videos":t.teamsVideos,"is-videos":t.showVideos,ItemHeight:"60px",teamSelected:s.teamselect,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":g%2===0?"#172531":"#0d1d29",data:u},null,8,["onOpenmedia","onOpenTableProfile","teams-videos","is-videos","teamSelected","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])):o.createCommentVNode("",!0),t.typeView==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",o0,[o.createElementVNode("div",{class:o.normalizeClass(n.elementSize.width>880?"switch-size-group":"switch-size-group-movil")},[o.createVNode(d,{type:1,buttons:["Grupos","Play Off"],"selected-option":s.optionSelectedGroup,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#cbee6b","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])],2)]),s.optionSelectedGroup=="Grupos"?(o.openBlock(),o.createBlock(h,{key:0,isPaginationVisible:t.isPaginationVisible,items:s.tableData},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",a0,[o.createElementVNode("div",n0,[o.createElementVNode("div",i0,o.toDisplayString(m.name),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.data,(u,g)=>(o.openBlock(),o.createBlock(c,{key:g,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-videos":t.showVideos,"teams-videos":t.teamsVideos,isheader:g==0,"background-color":s.teamselect!=0&&s.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":(e.index%2,"#172531"),data:u},null,8,["onOpenmedia","onOpenTableProfile","is-videos","teams-videos","isheader","background-color","data"]))),128))])])]),_:1},8,["isPaginationVisible","items"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s.tournamentSelected.id?(o.openBlock(),o.createBlock(f,{key:0,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":t.tournament,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))],64))],64)):o.createCommentVNode("",!0),t.typeView==2?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[s.tournamentSelected.id?(o.openBlock(),o.createBlock(f,{key:0,"tournament-id":s.tournamentSelected.id,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"])):(o.openBlock(),o.createBlock(f,{key:1,"tournament-id":t.tournament,"season-id":s.seasonSelect,"width-component":n.elementSize.width},null,8,["tournament-id","season-id","width-component"]))],64)):o.createCommentVNode("",!0)]))],4)}const r0=mr(Df,[["render",s0],["__scopeId","data-v-bddd6b49"]]);function l0(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const c0=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},tn={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},hr=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},gr=tn.setup;tn.setup=gr?(e,a)=>(hr(),gr(e,a)):hr;const d0={ref:"gscScrollableContainer",class:"scrollable-container"},m0={class:"scrollable-arrows"},p0=["width","height","viewBox"],u0=["stroke"],h0={class:"scrollable-wrapper"},g0={class:"scrollable-arrows"},f0=["width","height","viewBox"],y0=["stroke"];function b0(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",d0,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",m0,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,u0)],8,p0))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",h0,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",g0,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,y0)],8,f0))])],2)):o.createCommentVNode("",!0)],512)}const w0=c0(tn,[["render",b0],["__scopeId","data-v-b548a08d"]]),A0=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},on={components:{GSCSlider:w0},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=l0(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},fr=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},yr=on.setup;on.setup=yr?(e,a)=>(fr(),yr(e,a)):fr;const C0={ref:"myDivRef"},k0={key:0,class:"gs-switch-container"},S0=["onClick"],B0={key:1,class:"gs-switch-container-type"},O0=["onClick"],E0={key:2,class:"gs-switch-container-carousel"},x0=["onClick"];function M0(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",C0,[t.type==0?(o.openBlock(),o.createElementBlock("div",k0,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,S0))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,O0))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",E0,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,x0))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const an=A0(on,[["render",M0],["__scopeId","data-v-8a86dfaf"]]);function br(e,a){return function(){return e.apply(a,arguments)}}const{toString:V0}=Object.prototype,{getPrototypeOf:nn}=Object,Vo=(e=>a=>{const t=V0.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),$e=e=>(e=e.toLowerCase(),a=>Vo(a)===e),Ro=e=>a=>typeof a===e,{isArray:xt}=Array,Gt=Ro("undefined");function R0(e){return e!==null&&!Gt(e)&&e.constructor!==null&&!Gt(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wr=$e("ArrayBuffer");function F0(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&wr(e.buffer),a}const z0=Ro("string"),De=Ro("function"),Ar=Ro("number"),Fo=e=>e!==null&&typeof e=="object",T0=e=>e===!0||e===!1,zo=e=>{if(Vo(e)!=="object")return!1;const a=nn(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},N0=$e("Date"),v0=$e("File"),P0=$e("Blob"),I0=$e("FileList"),j0=e=>Fo(e)&&De(e.pipe),U0=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((a=Vo(e))==="formdata"||a==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},D0=$e("URLSearchParams"),G0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ht(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Cr(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sr=e=>!Gt(e)&&e!==kr;function sn(){const{caseless:e}=Sr(this)&&this||{},a={},t=(n,s)=>{const i=e&&Cr(a,s)||s;zo(a[i])&&zo(n)?a[i]=sn(a[i],n):zo(n)?a[i]=sn({},n):xt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ht(arguments[n],t);return a}const H0=(e,a,t,{allOwnKeys:n}={})=>(Ht(a,(s,i)=>{t&&De(s)?e[i]=br(s,t):e[i]=s},{allOwnKeys:n}),e),L0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K0=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},q0=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&nn(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Z0=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Q0=e=>{if(!e)return null;if(xt(e))return e;let a=e.length;if(!Ar(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Y0=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&nn(Uint8Array)),W0=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},J0=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},X0=$e("HTMLFormElement"),_0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Br=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),$0=$e("RegExp"),Or=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Ht(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},ey=e=>{Or(e,(a,t)=>{if(De(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(De(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ty=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return xt(e)?n(e):n(String(e).split(a)),t},oy=()=>{},ay=(e,a)=>(e=+e,Number.isFinite(e)?e:a),rn="abcdefghijklmnopqrstuvwxyz",Er="0123456789",xr={DIGIT:Er,ALPHA:rn,ALPHA_DIGIT:rn+rn.toUpperCase()+Er},ny=(e=16,a=xr.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function iy(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sy=e=>{const a=new Array(10),t=(n,s)=>{if(Fo(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xt(n)?[]:{};return Ht(n,(r,l)=>{const p=t(r,s+1);!Gt(p)&&(i[l]=p)}),a[s]=void 0,i}}return n};return t(e,0)},ry=$e("AsyncFunction"),ly=e=>e&&(Fo(e)||De(e))&&De(e.then)&&De(e.catch),O={isArray:xt,isArrayBuffer:wr,isBuffer:R0,isFormData:U0,isArrayBufferView:F0,isString:z0,isNumber:Ar,isBoolean:T0,isObject:Fo,isPlainObject:zo,isUndefined:Gt,isDate:N0,isFile:v0,isBlob:P0,isRegExp:$0,isFunction:De,isStream:j0,isURLSearchParams:D0,isTypedArray:Y0,isFileList:I0,forEach:Ht,merge:sn,extend:H0,trim:G0,stripBOM:L0,inherits:K0,toFlatObject:q0,kindOf:Vo,kindOfTest:$e,endsWith:Z0,toArray:Q0,forEachEntry:W0,matchAll:J0,isHTMLForm:X0,hasOwnProperty:Br,hasOwnProp:Br,reduceDescriptors:Or,freezeMethods:ey,toObjectSet:ty,toCamelCase:_0,noop:oy,toFiniteNumber:ay,findKey:Cr,global:kr,isContextDefined:Sr,ALPHABET:xr,generateString:ny,isSpecCompliantForm:iy,toJSONObject:sy,isAsyncFn:ry,isThenable:ly};function J(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Mr=J.prototype,Vr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vr[e]={value:e}}),Object.defineProperties(J,Vr),Object.defineProperty(Mr,"isAxiosError",{value:!0}),J.from=(e,a,t,n,s,i)=>{const r=Object.create(Mr);return O.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),J.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const cy=null;function ln(e){return O.isPlainObject(e)||O.isArray(e)}function Rr(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Fr(e,a,t){return e?e.concat(a).map(function(n,s){return n=Rr(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function dy(e){return O.isArray(e)&&!e.some(ln)}const my=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function To(e,a,t){if(!O.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=O.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,u){return!O.isUndefined(u[m])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(a);if(!O.isFunction(s))throw new TypeError("visitor must be a function");function p(m){if(m===null)return"";if(O.isDate(m))return m.toISOString();if(!l&&O.isBlob(m))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(m)||O.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,u,g){let b=m;if(m&&!g&&typeof m=="object"){if(O.endsWith(u,"{}"))u=n?u:u.slice(0,-2),m=JSON.stringify(m);else if(O.isArray(m)&&dy(m)||(O.isFileList(m)||O.endsWith(u,"[]"))&&(b=O.toArray(m)))return u=Rr(u),b.forEach(function(A,C){!(O.isUndefined(A)||A===null)&&a.append(r===!0?Fr([u],C,i):r===null?u:u+"[]",p(A))}),!1}return ln(m)?!0:(a.append(Fr(g,u,i),p(m)),!1)}const d=[],h=Object.assign(my,{defaultVisitor:c,convertValue:p,isVisitable:ln});function f(m,u){if(!O.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+u.join("."));d.push(m),O.forEach(m,function(g,b){(!(O.isUndefined(g)||g===null)&&s.call(a,g,O.isString(b)?b.trim():b,u,h))===!0&&f(g,u?u.concat(b):[b])}),d.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return f(e),a}function zr(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function cn(e,a){this._pairs=[],e&&To(e,this,a)}const Tr=cn.prototype;Tr.append=function(e,a){this._pairs.push([e,a])},Tr.toString=function(e){const a=e?function(t){return e.call(this,t,zr)}:zr;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function py(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nr(e,a,t){if(!a)return e;const n=t&&t.encode||py,s=t&&t.serialize;let i;if(s?i=s(a,t):i=O.isURLSearchParams(a)?a.toString():new cn(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const vr=class{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){O.forEach(this.handlers,function(t){t!==null&&a(t)})}},Pr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uy=typeof URLSearchParams<"u"?URLSearchParams:cn,hy=typeof FormData<"u"?FormData:null,gy=typeof Blob<"u"?Blob:null,fy={isBrowser:!0,classes:{URLSearchParams:uy,FormData:hy,Blob:gy},protocols:["http","https","file","blob","url","data"]},Ir=typeof window<"u"&&typeof document<"u",yy=(e=>Ir&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),by=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ir,hasStandardBrowserEnv:yy,hasStandardBrowserWebWorkerEnv:by},Symbol.toStringTag,{value:"Module"})),et={...wy,...fy};function Ay(e,a){return To(e,new et.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return et.isNode&&O.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Cy(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function ky(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function jr(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),p=i>=t.length;return r=!r&&O.isArray(s)?s.length:r,p?(O.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!O.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&O.isArray(s[r])&&(s[r]=ky(s[r])),!l)}if(O.isFormData(e)&&O.isFunction(e.entries)){const t={};return O.forEachEntry(e,(n,s)=>{a(Cy(n),s,t,0)}),t}return null}function Sy(e,a,t){if(O.isString(e))try{return(a||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const dn={transitional:Pr,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=O.isObject(e);if(s&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return n?JSON.stringify(jr(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Ay(e,this.formSerializer).toString();if((i=O.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return To(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),Sy(e)):e}],transformResponse:[function(e){const a=this.transitional||dn.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&O.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{dn.headers[e]={}});const mn=dn,By=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oy=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
16
16
|
`).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&By[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},Ur=Symbol("internals");function Lt(e){return e&&String(e).trim().toLowerCase()}function No(e){return e===!1||e==null?e:O.isArray(e)?e.map(No):String(e)}function Ey(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const xy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pn(e,a,t,n,s){if(O.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!O.isString(a)){if(O.isString(n))return a.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(a)}}function My(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function Vy(e,a){const t=O.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let vo=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,p,c){const d=Lt(p);if(!d)throw new Error("header name must be a non-empty string");const h=O.findKey(s,d);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||p]=No(l))}const r=(l,p)=>O.forEach(l,(c,d)=>i(c,d,p));return O.isPlainObject(a)||a instanceof this.constructor?r(a,t):O.isString(a)&&(a=a.trim())&&!xy(a)?r(Oy(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Lt(a),a){const n=O.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return Ey(s);if(O.isFunction(t))return t.call(this,s,n);if(O.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Lt(a),a){const n=O.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||pn(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Lt(r),r){const l=O.findKey(n,r);l&&(!t||pn(n,n[l],l,t))&&(delete n[l],s=!0)}}return O.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||pn(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return O.forEach(this,(s,i)=>{const r=O.findKey(n,i);if(r){t[r]=No(s),delete t[i];return}const l=a?My(i):String(i).trim();l!==i&&delete t[i],t[l]=No(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return O.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&O.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
|
|
17
17
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[Ur]=this[Ur]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Lt(i);t[r]||(Vy(n,i),t[r]=!0)}return O.isArray(a)?a.forEach(s):s(a),this}};vo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),O.reduceDescriptors(vo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),O.freezeMethods(vo);const it=vo;function un(e,a){const t=this||mn,n=a||t,s=it.from(n.headers);let i=n.data;return O.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function Dr(e){return!!(e&&e.__CANCEL__)}function Kt(e,a,t){J.call(this,e??"canceled",J.ERR_CANCELED,a,t),this.name="CanceledError"}O.inherits(Kt,J,{__CANCEL__:!0});function Ry(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new J("Request failed with status code "+t.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Fy=et.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];O.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),O.isString(n)&&r.push("path="+n),O.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ty(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Gr(e,a){return e&&!zy(a)?Ty(e,a):a}const Ny=et.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=O.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function vy(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Py(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[i];r||(r=p),t[s]=l,n[s]=p;let d=i,h=0;for(;d!==s;)h+=t[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),p-r<a)return;const f=c&&p-c;return f?Math.round(h*1e3/f):void 0}}function Hr(e,a){let t=0;const n=Py(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,p=n(l),c=i<=r;t=i;const d={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:p||void 0,estimated:p&&r&&c?(r-i)/p:void 0,event:s};d[a?"download":"upload"]=!0,e(d)}}const Iy=typeof XMLHttpRequest<"u",jy=Iy&&function(e){return new Promise(function(a,t){let n=e.data;const s=it.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(O.isFormData(n)){if(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[u,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...g].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(u+":"+g))}const h=Gr(e.baseURL,e.url);d.open(e.method.toUpperCase(),Nr(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function f(){if(!d)return;const u=it.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:u,config:e,request:d};Ry(function(b){a(b),p()},function(b){t(b),p()},g),d=null}if("onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(t(new J("Request aborted",J.ECONNABORTED,e,d)),d=null)},d.onerror=function(){t(new J("Network Error",J.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Pr;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),t(new J(u,g.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,d)),d=null},et.hasStandardBrowserEnv&&(r&&O.isFunction(r)&&(r=r(e)),r||r!==!1&&Ny(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Fy.read(e.xsrfCookieName);u&&s.set(e.xsrfHeaderName,u)}n===void 0&&s.setContentType(null),"setRequestHeader"in d&&O.forEach(s.toJSON(),function(u,g){d.setRequestHeader(g,u)}),O.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Hr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Hr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=u=>{d&&(t(!u||u.type?new Kt(null,e,d):u),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=vy(h);if(m&&et.protocols.indexOf(m)===-1){t(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e));return}d.send(n||null)})},hn={http:cy,xhr:jy};O.forEach(hn,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Lr=e=>`- ${e}`,Uy=e=>O.isFunction(e)||e===null||e===!1,Kr={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!Uy(t)&&(n=hn[(r=String(t)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
18
18
|
`+i.map(Lr).join(`
|