PageSourceSearch

https://www.casino.us/_nuxt/Drw35qOB.js

js casino.us collected 2026-09-25 20:14:29 UTC 8,224 bytes, 1 lines download raw bytes

1import _ from"./B3f3TMO5.js";import P from"./Ly8VNLxn.js";import I from"./CI3hAHkC.js";import{_ as x,L as y,c as h,a as c,b as p,F as u,x as S,n as v,o as m}from"./C_VzGqEg.js";import{u as E}from"./SLKFLf4j.js";import"./bqZ_Bedm.js";import"./C9yiaWcE.js";import"./kDircuYl.js";import"./YpzxG479.js";import"./CA2EZako.js";import"./hAYur2Bi.js";import"./DvnYjAKn.js";import"./Q_y7I8tW.js";import"./DUMQntVJ.js";import"./D8vE4kZ_.js";import"./BhyboY_X.js";import"./NnXrcQGe.js";import"./BJ8DeCX5.js";import"./BVIQdDd4.js";import"./BgWJYXWU.js";import"./C-9dbQSY.js";import"./C4fTG6EF.js";import"./CIfc6IQW.js";import"./BSy4JHtP.js";import"./DKeVZpFc.js";import"./DY4SgOtO.js";import"./BA3S9Qb4.js";import"./CkEu89z3.js";import"./B3iim-KL.js";import"./BXUykJ2C.js";import"./Chyz3EDp.js";import"./2h_uk5DF.js";import"./8JGrCZUO.js";import"./Bw2cPcki.js";import"./BDmGCnhJ.js";import"./BuQBOjcE.js";import"./s3_Otaqs.js";import"./B-yGqZyG.js";import"./LfmN3RZR.js";import"./CY0PcdZl.js";import"./ZwuLzPRm.js";import"./BjYxkQw3.js";import"./Dj2vd1FS.js";import"./Cz7YsKok.js";import"./B0hBdtTj.js";import"./CqXCemgF.js";import"./DLPSkQwF.js";import"./BEsDnUJP.js";import"./BXbTEqmD.js";import"./JB-VHAAP.js";import"./C1G0POQs.js";import"./Bc1rArTd.js";import"./alWqIy3s.js";import"./Crr0GwaG.js";import"./XKaySTwn.js";import"./CtcVRfPe.js";import"./BmVA1Fhd.js";import"./B5UfoBF-.js";import"./C9R0TS7U.js";import"./BXGXhy4c.js";import"./BFCiwhB7.js";import"./aOjMXEfI.js";import"./BoBHCbwg.js";import"./GmToSYe4.js";import"./qd73kTeZ.js";import"./Bqsy2Yht.js";import"./B8KuNCeR.js";import"./CEvt6g13.js";import"./C7KChRbo.js";import"./CsxoMG-j.js";import"./cCsmyXn7.js";import"./pvNInfal.js";import"./DNtRt3-K.js";import"./CTtN8_V5.js";import"./C-UI_2aN.js";import"./JR_dtwf4.js";import"./DL61D00e.js";const A={name:"HeroSlider",components:{GameTile:P,SliderPagination:I,ControlButtons:_},props:{sliderId:{type:String,default:""},games:{type:Array,required:!0},lazy:{type:Boolean,default:!1}},data(){return{sliderName:`hero-slider-${Math.random().toString(36).substring(2,8)}`,currentIndex:0,slidesPerView:3,activeSlide:0,highlightSlide:1,currentSlides:[0,1,2],currentScrollPosition:0,sliderStartPosition:0,sliderEndPosition:0,firstItemStartPosition:0,lastItemEndPosition:0,sliderWidth:0,activeLeft:!1,activeRight:!0,slidesData:[],slidesDataIndexes:[],partner:{}}},computed:{sliderRef(){return this.sliderId?this.sliderId:this.sliderName},totalSlides(){return Math.ceil(this.games.length/this.slidesPerView)},activeSlideAlias(){return this.slidesDataIndexes[this.activeSlide]}},mounted(){if(!this.games.length)return;this.initSlideArray(),this.goToSlide(this.games.length,"auto"),this.activeSlide=this.games.length,this.highlightSlide=this.activeSlide+1;const t=this.highlightSlide%this.games.length,e=this.games[t];e&&this.$emit("active-game-changed",e);const i=this.$refs[this.sliderRef];i&&(i.addEventListener("scroll",this.detectActiveSlideOnScroll,{passive:!0}),i.addEventListener("touchend",()=>{setTimeout(()=>this.detectActiveSlideOnScroll(),100)}))},beforeUnmount(){const t=this.$refs[this.sliderRef];t&&t.removeEventListener("scroll",this.detectActiveSlideOnScroll)},methods:{getslideNumber(t,e){const i=this.games.length;return t*i+e},getItemsPosition(){if(this.windowWidth=window.innerWidth,this.$refs[this.sliderRef]){this.currentScrollPosition=this.$refs[this.sliderRef].scrollLeft;const t=this.$refs[this.sliderRef].getBoundingClientRect();this.sliderStartPosition=t.left,this.sliderEndPosition=t.right,this.sliderWidth=t.width;const e=this.$refs[this.sliderRef].children;Object.keys(e).length&&(this.firstItemStartPosition=this.getSlideElement(0).getBoundingClientRect().left,this.lastItemEndPosition=this.getSlideElement(this.slidesData.length-1).getBoundingClientRect().right)}},prev(){const t=this.slidesData.length;if(!t)return;const e=(this.activeSlide-1)%t,i=(this.activeSlide+1+t)%t;this.slidesData.push(this.slidesData.shift()),this.goToSlide(i,"auto"),this.setOrderStyle(),this.goToSlide(e),this.updateActiveSlide(e)},updateActiveSlide(t){this.activeSlide=t;const e=(t+1)%this.slidesData.length,i=Math.floor(e/this.games.length),l=e%this.games.length;this.highlightSlide=this.getslideNumber(i,l);const r=this.games[l];r&&this.$emit("active-game-changed",r)},next(){const t=this.slidesData.length;if(!t)return;const e=(this.activeSlide+1)%t,i=(this.activeSlide-1+t)%t;this.slidesData.unshift(this.slidesData.pop()),this.goToSlide(i,"auto"),this.setOrderStyle(),this.goToSlide(e),this.updateActiveSlide(e)},paginationGoToSlide(t){const e=parseInt(t,10),l=Object.entries(this.slidesDataIndexes).filter(o=>o[1]===e).map(o=>o[0]);let r=parseInt(Math.abs(l[0]-this.activeSlide),10),s=parseInt(l[0],10);l.forEach(o=>{Math.abs(o-this.activeSlide)<r&&(r=parseInt(Math.abs(o-this.activeSlide),10),s=parseInt(o,10))}),this.goToSlide(s),this.updateActiveSlide(s)},goToSlide(t,e="smooth"){this.getItemsPosition();const i=this.getSlideElement(t);if(i){const l=i.getBoundingClientRect();let r=0,s=null;l.left<this.sliderStartPosition?(r=Math.abs(this.sliderStartPosition-l.left),s="left"):(r=l.left-this.sliderStartPosition,s="right");let o=0;s==="left"?o=this.currentScrollPosition-r:o=this.currentScrollPosition+r;const d=this.currentScrollPosition-o;this.toggleControlButtons(this.firstItemStartPosition+d,this.lastItemEndPosition+d),this.updateScrollPosition(o,e)}},toggleControlButtons(t,e){this.activeLeft=t<this.sliderStartPosition,this.activeRight=!(e<=this.sliderEndPosition)},updateScrollPosition(t,e="smooth"){const i=this.$refs[this.sliderRef];i&&i.scroll({top:0,left:t,behavior:e})},playGame(t){}
1,getSlideRef(t){return`hero_slide_${t}`},getSlideElement(t){const e=this.$refs[this.getSlideRef(t)];return e?Array.isArray(e)?e[0]||null:e:null},initSlideArray(){for(let t=0;t<3;t++)this.games.forEach((e,i)=>{const l=this.getslideNumber(t,i);this.slidesData.push(l),this.slidesDataIndexes[l]=i});this.setOrderStyle()},setOrderStyle(){this.slidesData.forEach((t,e)=>{const i=this.getSlideElement(e);i&&i.setAttribute("style",`order: ${t+1};`)})},detectActiveSlideOnScroll(){this.$refs[this.sliderRef]&&window.requestAnimationFrame(()=>{let e=1/0,i=this.activeSlide;this.slidesData.forEach((l,r)=>{const s=this.getSlideElement(r);if(!s)return;const o=s.getBoundingClientRect(),d=Math.abs(o.left-this.sliderStartPosition);d<e&&(e=d,i=r)}),i!==this.activeSlide&&this.updateActiveSlide(i)})},...y(E,["randomPartnerByProviderId"]),async getProvider(t){return this.partner=await this.randomPartnerByProviderId({providerId:t}),this.partner}}},D={class:"relative w-full"},R={class:"relative"},w=["data-slide-number"];function T(t,e,i,l,r,s){const o=_,d=P,b=I;return m(),h("div",null,[c("div",D,[p(o,{size:"md",variant:"ghost",onGoPrev:e[0]||(e[0]=f=>s.prev()),onGoNext:e[1]||(e[1]=f=>s.next())}),c("div",R,[c("div",{ref:s.sliderRef,class:"flex overflow-x-auto no-scrollbar overflow-y-visible pt-[18px]"},[(m(),h(u,null,S(3,(f,n)=>(m(),h(u,{key:`slide_${n}_${t.index}`},[(m(!0),h(u,null,S(i.games,(g,a)=>(m(),h("div",{ref_for:!0,ref:s.getSlideRef(s.getslideNumber(n,a)),"data-slide-number":s.getslideNumber(n,a),class:v(["relative shrink-0",[r.highlightSlide===s.getslideNumber(n,a)?"w-[205px] h-[308px]":"w-[205px] h-[260px]"]])},[c("div",{class:v(["absolute transition-all duration-500 ease-in delay-0",{"inset-0 max-w-[205px] max-h-[260px]":r.highlightSlide!==s.getslideNumber(n,a),"-top-[15px] -bottom-[15px] -left-[27px] -right-[27px]":r.highlightSlide===s.getslideNumber(n,a),"active z-10 max-w-[245px] max-h-[308px]":r.highlightSlide===s.getslideNumber(n,a),"active z-0":r.highlightSlide===s.getslideNumber(n,a)}])},[p(d,{game:g,"src-image-game":g?.defaultLogo,lazy:i.lazy,partner:g.partner,variant:"heroSlide","is-active-slide":r.highlightSlide===s.getslideNumber(n,a)},null,8,["game","src-image-game","lazy","partner","is-active-slide"])],2)],10,w))),256))],64))),64))],512)])]),p(b,{"dots-count":i.games.length,"active-dot":s.activeSlideAlias,"without-padding-bottom":"","without-height":"","without-margin":"",variant:"transparent-center",onGoToDot:s.paginationGoToSlide},null,8,["dots-count","active-dot","onGoToDot"])])}const te=Object.assign(x(A,[["render",T]]),{__name:"HeroSlider"});export{te as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.