PageSourceSearch

https://www.casino.ca/_nuxt/chunks/BonusToplist-V31rVlML.js

js casino.ca collected 2026-10-04 00:01:33 UTC 8,706 bytes, 1 lines download raw bytes

1import{a9 as c,a4 as l,i as a,f as T,F as b,a7 as B,g as p,ag as x,o as S,ac as h,Y as C,h as d,p as k,U as D,V as L}from"./pinia-CJFjDXBK.js";import{b as w}from"./modalOverlayHandler-BXlJJdSv.js";import{B as I}from"./BonusCard-D5sDLRek.js";import{B as F}from"./Button-CC940ygM.js";import{A as N,C as V}from"./CustomSlider-B8aRtnCX.js";import{_ as v}from"./ssr-registry-B48OwYJw.js";import{q as A,ar as z}from"./GallerySection-BX0oQDvG.js";import{i as y,s as O,c as R,d as U}from"./environment-DcKnU7JZ.js";import"./index-C4cwZYuf.js";import"./httpClient-S4L5wE_h.js";import"./arcadeFilters-B6jgMIak.js";import"./viewport-spvtSCdE.js";import"./Tooltip-Bl99aZTF.js";import"./authors-Dye2wj1p.js";import"./sprite-K44gb4vE.js";import"./resolve-ontario-regulated-DQcFzYmf.js";import"./settings-BV_jh_9j.js";import"./VImage-DyJF26Vw.js";import"./ContentBlock-D7bAHo8E.js";import"./Divider-DMyQ1vFK.js";import"./IconClose-CM9RIm-X.js";const P={name:"BonusFilters",mixins:[N],components:{Button:F},props:{selectToplist:{type:String,default:"bonus"},bonusTypes:{type:Array,default:()=>["bonus","1+dollar+deposit","5+dollar+deposit","10+dollar+deposit","20+dollar+deposit","free+spins","no+deposit","cashback"]},paddingForLastItem:{type:String,default:""}},emits:["filter-bonuses"],data(){return{currentActive:this.selectToplist}},computed:{bonusLabels(){return{bonus:this.$t("bonusFilters.allBonuses"),"1+dollar+deposit":this.$t("bonusFilters.oneDeposits"),"5+dollar+deposit":this.$t("bonusFilters.fiveDeposits"),"10+dollar+deposit":this.$t("bonusFilters.tenDeposits"),"20+dollar+deposit":this.$t("bonusFilters.twentyDeposits"),"free+spins":this.$t("bonusFilters.freeSpins"),"no+deposit":this.$t("bonusFilters.noDeposit"),cashback:this.$t("bonusFilters.cashback")}}},methods:{filterBonuses(t){this.currentActive=t,this.$emit("filter-bonuses",t)}}},E={class:"flex overflow-x-auto lg:[overflow:initial] no-scrollbar gap-xs snap-x"};function G(t,e,i,n,s,o){const m=c("Button");return l(),a("div",null,[T("div",E,[(l(!0),a(b,null,B(i.bonusTypes,(r,f)=>(l(),p(m,{key:r,size:"LG",variant:s.currentActive===r?"secondary":"ghost",class:C(["text-nowrap",f===i.bonusTypes.length-1?i.paddingForLastItem:""]),"data-aa-tracker":`BonusFilterTabs ${o.bonusLabels[r]}`,onClick:_=>{t.addCustomTracking(`BonusFilterTabs ${o.bonusLabels[r]}`,"Click","Not Applicable","BonusFilterTabs","Click","Not Applicable"),o.filterBonuses(r)}},{default:x(()=>[S(h(o.bonusLabels[r]),1)]),_:2},1032,["variant","class","data-aa-tracker","onClick"]))),128))])])}const q=v(P,[["render",G]]),j={name:"BonusToplist",components:{Button:F,BonusCard:I,BonusFilters:q,CustomSlider:V},props:{ukRegulated:{type:Boolean,default:!1},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},isUSA:{type:Boolean,default:!1},useLocale:{type:String,default:""},showCta:{type:Boolean,default:!0},selectToplist:{type:String,default:"bonus"},partnersToShow:{type:String,default:"all"},ctaData:{type:Object,default:()=>({})},bonusVariant:{type:String,default:"carousel"},pageLanguage:{type:String,default:""},bonusTitle:{type:String,default:"Bonus Toplist"},lazyLoadFavicons:{type:Boolean,default:!1}},data(){return{loadingDelay:!0,currentToplist:null,showFeature:!this.ontarioRegulated,textNoDataFound:this.$t("sortingFilters.noDataFound"),buttonViewAllCasinos:this.$t("viewAllCasinos"),bonusTypes:["bonus","1+dollar+deposit","5+dollar+deposit","10+dollar+deposit","20+dollar+deposit","free+spins","no+deposit","cashback"],selectedToplist:this.selectToplist,isShowCta:this.showCta,ctaText:this.buttonViewAllCasinos,ctaLink:z.reviews,isOntarioPage:U(t=>t.location.pathname.includes("/ontario/"),!1),isOntario:this.ontarioRegulated||this.isOntarioPage,maxItemsToShow:50}},computed:{...L(w,["toplists","toplistByType"]),isAlberta(){return this.albertaRegulated},shouldIgnoreUsGeo(){return this.isOntario||this.useLocale==="fr"||["ontario","france"].includes(this.selectToplist)},effectiveIsUSA(){return this.shouldIgnoreUsGeo?!1:this.isUSA||R()},hasAxios(){return!!this.$axios},totalPartners(){return this.partnersToShow==="all"?"all":Number(this.partnersToShow)},filteredItems(){const t=this.maxItemsToShow,e=Array.isArray(this.currentToplist)?this.currentToplist:[];
1if(this.totalPartners==="all")return e.slice(0,t);const i=Number(this.totalPartners);if(!Number.isFinite(i))return e;const n=Math.max(0,Math.floor(i));return e.slice(0,n)},ctaButtonText(){return this.ctaData!==null?this.ctaData.text:this.buttonViewAllCasinos},ctaButtonLink(){return this.ctaData!==null?this.ctaData.link:this.ctaLink}},watch:{toplists:{immediate:!0,deep:!0,handler(t){const e=this.ontarioRegulated?"bonus":this.selectedToplist;t[e]&&(this.currentToplist=this.toplistByType(e),this.loadingDelay=!1,this.hideSkeleton()),this.currentToplist?.length&&y&&A(this.currentToplist)}}},created(){this.loadingDelay=!1;try{this.hasAxios&&this.loadToplistData([this.selectedToplist,...this.bonusTypes])}catch(t){console.error("[Bonus Toplist/created] Failed to load toplist data:",t)}},methods:{hideSkeleton(){O(t=>{const e=t.getElementById("bonusToplistSkeleton");e&&e.classList.add("hidden")})},filterBonuses(t){if(this.ontarioRegulated)this.currentToplist=this.toplistByType("bonus");else{this.selectedToplist=t;const e=this.toplistByType(t);this.currentToplist=Array.isArray(e)?e:[],!this.currentToplist.length&&this.hasAxios&&this.loadToplistData([t])}this.currentToplist?.length&&y&&A(this.currentToplist),y&&setTimeout(()=>{this.$refs&&this.$refs.toplistCustomSlider&&typeof this.$refs.toplistCustomSlider.goToSlide=="function"&&this.$refs.toplistCustomSlider.goToSlide(0)},200)},...D(w,["getToplistByType"]),async loadToplistData(t){try{const e=Array.isArray(t)?t:[t],i=[...new Set(e.filter(Boolean))],n=this.toplists,s=i.filter(o=>!(n&&Array.isArray(n[o])&&n[o].length>0));if(!s.length)return;this.loadingDelay=!0,await Promise.all(s.map(o=>this.getToplistByType({toplistType:o,pageType:o,isOntario:this.isOntario,isAlberta:this.isAlberta,contentRegion:this.isAlberta?"AB":this.isOntario?"ON":"default",isUSA:this.effectiveIsUSA,pageLanguage:this.pageLanguage,axios:this.$axios})))}catch(e){console.error("[Bonus Toplist] Failed to load toplist data:",e)}finally{this.loadingDelay=!1,this.hideSkeleton()}}}},M={class:"flex flex-col gap-md lg:gap-lg background-elevation-1 border-sm rounded-lg md:rounded-xl color-stroke-elevation py-md md:py-lg lg:py-xl pl-md md:pl-lg lg:pl-xl"}
1,Q={key:0,class:"title-md leading-120 pr-md md:pr-lg lg:pr-xl"},W={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-fluid-sm md:gap-md pr-md md:pr-lg lg:pr-xl"},Y={key:2,class:"pr-md md:pr-lg lg:pr-xl"},H={key:3,class:"flex w-full justify-center items-center pr-md md:pr-lg lg:pr-xl"},J={class:"text-center"},K={key:4,class:"flex flex-col justify-center md:m-auto md:max-w-[260px] pr-md md:pr-[0px]"};function X(t,e,i,n,s,o){const m=c("BonusFilters"),r=c("BonusCard"),f=c("CustomSlider"),_=c("Button");return l(),a("div",M,[i.bonusTitle?(l(),a("div",Q,h(i.bonusTitle),1)):d("",!0),T("div",null,[s.showFeature?(l(),p(m,{key:0,"select-toplist":s.selectedToplist,"bonus-types":s.bonusTypes,"padding-for-last-item":"pr-md md:pr-lg lg:pr-xl",onFilterBonuses:o.filterBonuses},null,8,["select-toplist","bonus-types","onFilterBonuses"])):d("",!0)]),s.currentToplist.length&&i.bonusVariant==="grid"?(l(),a("div",W,[(l(!0),a(b,null,B(o.filteredItems,(g,u)=>(l(),p(r,{key:u,partner:g,index:u,"show-feature":s.showFeature,"ontario-regulated":s.isOntario,"is-bonus-code-variant":"","lazy-load":i.lazyLoadFavicons},null,8,["partner","index","show-feature","ontario-regulated","lazy-load"]))),128))])):d("",!0),s.currentToplist.length&&i.bonusVariant==="carousel"?(l(),a("div",Y,[k(f,{ref:"toplistCustomSlider","slider-items-classes":"gap-fluid-sm lg:gap-md","buttons-size":"lg","buttons-position":"inside-padding",shadow:""},{default:x(()=>[(l(!0),a(b,null,B(o.filteredItems,(g,u)=>(l(),p(r,{key:u,partner:g,index:u,"last-item-index":o.filteredItems.length-1,"slider-type":!0,"show-feature":s.showFeature,"ontario-regulated":s.isOntario,"is-bonus-code-variant":"",class:"bonus-card shrink-0","lazy-load":i.lazyLoadFavicons},null,8,["partner","index","last-item-index","show-feature","ontario-regulated","lazy-load"]))),128))]),_:1},512)])):s.currentToplist.length===0?(l(),a("div",H,[T("p",J,h(s.textNoDataFound),1)])):d("",!0),s.isShowCta?(l(),a("div",K,[k(_,{tag:"a",size:"LG",href:o.ctaButtonLink,variant:"secondary",class:"self-center contents w-full md:w-auto flex-shrink-0","data-aa-tracker":"BonusToplist::ViewAll"},{default:x(()=>[S(h(o.ctaButtonText),1)]),_:1},8,["href"])])):d("",!0)])}const bt=v(j,[["render",X],["__scopeId","data-v-5c28cea6"]]);export{bt 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.