1import{a4 as l,a0 as n,g as c,i as r,f as u,a5 as z,h as f,a7 as g,F as S,a2 as B,ab as w,o as R,a3 as L,W as $,Y,R as N,S as T,ac as C,p as x}from"./pinia-DwddtulJ.js";import{u as J,b as P}from"./modalOverlayHandler-CQCsROgF.js";import{V as y}from"./VImage-C_FLHAjQ.js";import{_ as h}from"./ssr-registry-B48OwYJw.js";import{B as H,aq as A}from"./GallerySection-PA5f_F-d.js";import{I as Q,L as X,d as V,b as Z}from"./List-Y3VFxyWQ.js";import{_ as W}from"./sprite-K44gb4vE.js";import{u as tt,e as O}from"./viewport-AweakSXK.js";import{F as et}from"./settings-6nMneq24.js";import{B as M}from"./Button-CxIVoTHZ.js";import{R as it}from"./ContentBlock-CPKmVB_n.js";import{d as k,i as G}from"./environment-C2i0ZCrL.js";import{g as nt}from"./IconClose-CQe4YLUw.js";import"./index-Ct5UzjG2.js";import"./httpClient-S4L5wE_h.js";import"./arcadeFilters-DfofibbP.js";import"./CustomSlider-DeRfoiLN.js";import"./resolve-ontario-regulated-DQcFzYmf.js";import"./authors-DIDegHn-.js";import"./Tooltip-CusMHiQ6.js";import"./Divider-lK2stz0O.js";const at={name:"IconSecurityFairness",components:{VImage:y},props:{width:{type:[String,Number],default:260},height:{type:[String,Number],default:260}}};function st(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/security-fairness.svg",alt:"red circle icon",width:e.width,height:e.height},null,8,["width","height"])}const D=h(at,[["render",st]]),ot={name:"IconCustomerSupport",components:{VImage:y},props:{width:{type:[Number,String],default:261},height:{type:[Number,String],default:260}}};function rt(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/customer-support.svg",alt:"customer support",width:e.width,height:e.height},null,8,["width","height"])}const F=h(ot,[["render",rt]]),lt={name:"IconMobileFriendly",components:{VImage:y},props:{width:{type:[Number,String],default:261},height:{type:[Number,String],default:260}}};function ct(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/mobile-friendly.svg",alt:"Mobile friendly icon",width:e.width,height:e.height},null,8,["width","height"])}const E=h(lt,[["render",ct]]),dt={name:"IconBanking",components:{VImage:y},props:{width:{type:[Number,String],default:260},height:{type:[Number,String],default:265}}};function ut(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/banking.svg",alt:"icon banking",width:e.width,height:e.height},null,8,["width","height"])}const j=h(dt,[["render",ut]]),ht={name:"IconLocalization",components:{VImage:y},props:{width:{type:[Number,String],default:260},height:{type:[Number,String],default:260}}};function mt(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/localization.svg",alt:"localization icon",width:e.width,height:e.height},null,8,["width","height"])}const q=h(ht,[["render",mt]]),gt={name:"IconGameSoftware",components:{VImage:y},props:{width:{type:[Number,String],default:260},height:{type:[Number,String],default:260}}};function ft(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/game-software.svg",alt:"game software icon",width:e.width,height:e.height},null,8,["width","height"])}const K=h(gt,[["render",ft]]),pt={name:"IconBonus",components:{VImage:y},props:{width:{type:[Number,String],default:260},height:{type:[Number,String],default:260}}};function _t(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/bonus.svg",alt:"icon banking",width:e.width,height:e.height},null,8,["width","height"])}const U=h(pt,[["render",_t]]),yt={name:"IconBonuses",components:{VImage:y},props:{width:{type:[Number,String],default:263},height:{type:[Number,String],default:274}}};function wt(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/bonuses.svg",alt:"icon banking",width:e.width,height:e.height},null,8,["width","height"])}const bt=h(yt,[["render",wt]]),xt={name:"IconRTP",components:{VImage:y},props:{width:{type:[Number,String],default:260},height:{type:[Number,String],default:260}}};function vt(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/rtp.svg",alt:"RTP icon",width:e.width,height:e.height},null,8,["width","height"])}const kt=h(xt,[["render",vt]]),St={name:"IconGamePlay",components:{VImage:y},props:{width:{type:[Number,String],default:261},height:{type:[Number,String],default:260}}};function It(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/game-play.svg",alt:"game play icon",width:e.width,height:e.height},null,8,["width","height"])}const Bt=h(St,[["render",It]]),Rt={name:"IconGraphicSound",components:{VImage:y},props:{width:{type:[Number,String],default:263},height:{type:[Number,String],default:260}}};function $t(t,a,e,d,s,i){const o=l("VImage");return n(),c(o,{src:"/vue/assets/icons/graphic-sound.svg",alt:"Games icon",width:e.width,height:e.height},null,8,["width","height"])}const At=h(Rt,[["render",$t]]),Ct={name:"ContainerBlock",components:{IconSecurityFairness:D,IconCustomerSupport:F,IconMobileFriendly:E,IconBanking:j,IconLocalization:q,IconGameSoftware:K,IconBonus:U,IconBonuses:bt,IconRTP:kt,IconGamePlay:Bt,IconGraphicSound:At,Badge:H},props:{bgColor:{type:String,default:""},borderColor:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},tags:{type:Array,default:()=>[]},text:{type:String,default:""},icon:{type:String,default:""}},computed:{showTags(){return this.tags!==void 0&&Array.isArray(this.tags)&&this.tags.length>0}}},Pt={class:"flex flex-col gap-fluid-md p-md md:p-lg xl:p-2xl rounded-ui-md border-sm color-stroke-elevation background-elevation-2"},Ot={class:"flex flex-col gap-fluid-md"},zt={key:0,class:"flex flex-row gap-xs md:gap-md items-center title-sm"},Lt={key:0,class:"rounded-pill background-elevation-3"},Nt={class:"title-sm leading-150"},Tt=["innerHTML"],Ht={key:2,class:"flex flex-row flex-wrap gap-xs"},Vt=["innerHTML"];function Wt(t,a,e,d,s,i){const o=l("Badge");return n(),r("div",Pt,[u("div",Ot,[e.title?(n(),r("div",zt,[e.icon?(n(),r("div",Lt,[(n(),c(z(e.icon),{width:40,height:40,class:"pt-[5.35px] px-[5px] pb-[4.65px]"}
1))])):f("",!0),u("span",Nt,g(e.title),1)])):f("",!0),e.description?(n(),r("div",{key:1,class:"title-xs leading-150",innerHTML:e.description},null,8,Tt)):f("",!0),i.showTags?(n(),r("div",Ht,[(n(!0),r(S,null,B(e.tags,(p,_)=>(n(),c(o,{key:_,color:"greyscale",size:"sm"},{default:w(()=>[R(g(p),1)]),_:2},1024))),128))])):f("",!0),e.text?(n(),r("div",{key:3,class:"body-md leading-150",innerHTML:e.text},null,8,Vt)):f("",!0)]),L(t.$slots,"content-block")])}const Mt=h(Ct,[["render",Wt]]),Gt={name:"IconMinus",props:{width:{type:[String,Number],default:24},height:{type:[String,Number],default:4},colorClass:{type:String,default:""}}},Dt=W+"#icon-minus",Ft=["width","height"];function Et(t,a,e,d,s,i){return n(),r("svg",{width:e.width,height:e.height,fill:"currentColor",class:$(e.colorClass)},[...a[0]||(a[0]=[u("use",{href:Dt},null,-1)])],10,Ft)}const jt=h(Gt,[["render",Et]]),qt={name:"AccordionItem",components:{IconPlus:Q,IconMinus:jt,Badge:H,IconSecurityFairness:D,IconCustomerSupport:F,IconMobileFriendly:E,IconBanking:j,IconLocalization:q,IconGameSoftware:K,IconBonus:U},props:{title:{type:String,required:!0},description:{type:String,default:""},text:{type:String,default:""},icon:{type:String,default:""},tags:{type:Array,default:()=>[]},defaultExpanded:{type:Boolean,default:!1},expanded:{type:Boolean,default:null},contentVersion:{type:Number,default:0},accordionId:{type:String,required:!0}},data(){return{internalExpanded:this.defaultExpanded,bodyHeight:0}},computed:{isExpanded(){return this.expanded!==null?this.expanded:this.internalExpanded},showTags(){return this.tags!==void 0&&Array.isArray(this.tags)&&this.tags.length>0},bodyHeightStyle(){return this.isExpanded&&this.bodyHeight?`${this.bodyHeight+8}px`:"0"}},watch:{isExpanded:{immediate:!0,handler(t){t&&this.getBodyHeight()}},contentVersion(){this.isExpanded&&this.getBodyHeight()}},methods:{toggle(){if(this.expanded!==null){this.$emit("toggle",!this.isExpanded);return}this.getBodyHeight(),this.internalExpanded=!this.internalExpanded},getBodyHeight(){this.$nextTick(()=>{const t=this.$refs.body;if(t){const a=t.scrollHeight||t.offsetHeight||0;this.bodyHeight=a}})},handleResize(){this.getBodyHeight()}},beforeMount(){typeof window<"u"&&window.addEventListener("resize",this.handleResize)},mounted(){this.isExpanded&&this.getBodyHeight()},beforeUnmount(){typeof window<"u"&&window.removeEventListener("resize",this.handleResize)}},Kt={class:"flex flex-col rounded-ui-md border-sm color-stroke-elevation background-elevation-2 overflow-hidden"},Ut=["id","aria-expanded","aria-controls"],Yt={class:"flex items-center gap-sm md:gap-md flex-grow min-w-0"},Jt={key:0,class:"rounded-pill background-elevation-3 flex-shrink-0 w-lg h-lg md:w-xl md:h-xl flex items-center justify-center"},Qt={class:"flex flex-col gap-2xs min-w-0 flex-grow"},Xt={class:"title-xs leading-150 text-foreground-1 m-0"},Zt={class:"flex-shrink-0"},te=["id","aria-labelledby","aria-hidden","inert"],ee={class:"flex flex-col gap-sm"},ie=["innerHTML"],ne={key:1,class:"flex flex-row flex-wrap gap-xs"},ae=["innerHTML"];function se(t,a,e,d,s,i){const o=l("IconMinus"),p=l("IconPlus"),_=l("Badge");return n(),r("div",Kt,[u("button",{id:`accordion-header-${e.accordionId}`,"aria-expanded":i.isExpanded?"true":"false","aria-controls":`accordion-content-${e.accordionId}`,class:"flex items-center justify-between w-full gap-sm md:gap-md text-left cursor-pointer focus:outline-none focus:ring-2 focus:ring-accent-1 py-xs px-md md:py-md md:px-lg",onClick:a[0]||(a[0]=(...b)=>i.toggle&&i.toggle(...b))},[u("div",Yt,[e.icon?(n(),r("div",Jt,[(n(),c(z(e.icon),{class:"w-full h-full"}))])):f("",!0),u("div",Qt,[u("h3",Xt,g(e.title),1)])]),u("div",Zt,[i.isExpanded?(n(),c(o,{key:0,class:"w-sm md:w-md h-sm md:h-md transition-all duration-md ease-in-out","color-class":"text-foreground-2"})):(n(),c(p,{key:1,class:"w-sm md:w-md h-sm md:h-md transition-all duration-md ease-in-out"}))])],8,Ut),u("div",{id:`accordion-content-${e.accordionId}`,"aria-labelledby":`accordion-header-${e.accordionId}`,"aria-hidden":i.isExpanded?"false":"true",inert:!i.isExpanded,class:"overflow-hidden transition-all duration-md ease-in-out-4 px-md md:px-lg",style:Y({"max-height":i.bodyHeightStyle})},[u("div",{ref:"body",class:$(["pb-md md:pb-lg flex flex-col gap-sm md:gap-md",i.isExpanded?"opacity-100":"opacity-0"])},[u("div",ee,[e.description?(n(),r("div",{key:0,class:"title-2xs leading-150",innerHTML:e.description},null,8,ie)):f("",!0),i.showTags&&e.tags&&e.tags.length>0?(n(),r("div",ne,[(n(!0),r(S,null,B(e.tags,(b,I)=>(n(),c(_,{key:I,color:"greyscale",corner:"pill",size:"sm"},{default:w(()=>[R(g(b),1)]),_:2},1024))),128))])):f("",!0)]),e.text?(n(),r("div",{key:0,class:"body-md leading-150",innerHTML:e.text},null,8,ae)):f("",!0),L(t.$slots,"content",{},void 0,!0)],2)],12,te)])}const oe=h(qt,[["render",se],["__scopeId","data-v-35dff439"]]),re={name:"CasinoRow",components:{Favicon:et,Button:M,Rating:it},props:{data:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1},variant:{type:String,default:"casinos"},cardType:{type:String,default:""},buttonSizeMobile:{type:String,default:""}},data(){return{visitCasino:this.$t("commercialRow.visitCasino"),playNow:this.$t("playNow"),isOntarioPage:k(t=>t.location.pathname.includes("/ontario/"),!1),partnerData:{},gameData:{},loading:!0,rtp:this.$t("commercialRow.rtp"),isOntario:this.ontarioRegulated||this.isOntarioPage}}
1,computed:{...T(tt,["isMobile"]),buttonSize(){return this.isMobile&&this.buttonSizeMobile?this.buttonSizeMobile:"MD"},affiliateLink(){const t=Array.isArray(this.data?.item?.phoenix?.attributes?.offers)&&this.data.item.phoenix.attributes.offers[0]?.attributes?.afflinkProxy||this.data?.item?.phoenix?.attributes?.toplistOffer?.attributes?.afflinkProxy;return t?`${"https://links.casino.ca/play"+t}`:""},name(){return this.variant==="casinos"?nt(this.data?.item):this.gameData?.name},partnerLogo(){if(this.variant==="casinos"){const t=this.data?.item?.phoenix?.attributes?.faviconLight||"";return t?`https://images.casino.ca/${t}`:""}return this.getGameLogo},sizeFavicon(){return this.isMobile?"2xs":"xs"},rating(){return this.variant==="casinos"?Number(this.data?.item?.phoenix?.attributes?.rating):Number(this.data.rating)},textButton(){return this.variant==="casinos"?this.name?this.$t("commercialRow.visitPartner",{name:this.name}):this.visitCasino:this.playNow},buttonAriaLabel(){return this.variant==="casinos"?this.textButton:this.name?`${this.textButton} ${this.name}`:this.textButton},sizeSkeletonFavicon(){return this.isMobile?"w-xl h-xl":"w-52 h-52"},description(){return this.data?.description?this.data?.description:this.variant==="casinos"?this.getDescription:this.getRTP},getDescription(){switch(this.cardType){case"security":return this.isOntario?this.data?.item?.supplement?.howWeRate?.securityFairnessOn||this.data?.item?.supplement?.howWeRate?.securityFairness:this.data?.item?.supplement?.howWeRate?.securityFairness;case"bonuses":return this.isOntario?this.data?.item?.supplement?.howWeRate?.bonusesPromotionsOn||this.data?.item?.supplement?.howWeRate?.bonusesPromotions:this.data?.item?.supplement?.howWeRate?.bonusesPromotions;case"software":return this.isOntario?this.data?.item?.supplement?.howWeRate?.gamesSoftwareOn||this.data?.item?.supplement?.howWeRate?.gamesSoftware:this.data?.item?.supplement?.howWeRate?.gamesSoftware;case"mobileSupport":return this.isOntario?this.data?.item?.supplement?.howWeRate?.mobileFriendlinessOn||this.data?.item?.supplement?.howWeRate?.mobileFriendliness:this.data?.item?.supplement?.howWeRate?.mobileFriendliness;case"customerSupport":return this.isOntario?this.data?.item?.supplement?.howWeRate?.customerServiceOn||this.data?.item?.supplement?.howWeRate?.customerService:this.data?.item?.supplement?.howWeRate?.customerService;case"localization":return this.isOntario?this.data?.item?.supplement?.howWeRate?.localizationOn||this.data?.item?.supplement?.howWeRate?.localization:this.data?.item?.supplement?.howWeRate?.localization;default:return this.isOntario?this.data?.item?.supplement?.howWeRate?.bankingOptionsOn||this.data?.item?.supplement?.howWeRate?.bankingOptions:this.data?.item?.supplement?.howWeRate?.bankingOptions}},getRTP(){const t=this.gameData?.attributes?.find(a=>a.attributeType==="RTP")?.attributeValue;return t?`${this.rtp} ${t} %`:""},getGameLogo(){return`https://play.casino.ca/assets/${this.gameData.images.find(a=>a.tags.includes("logo"))?.hash}?resize=60,60&encode=webp`},border(){return this.variant==="games"},linkButton(){return this.variant==="casinos"?this.affiliateLink:this.gameData?.links[0].url},blurLogo(){return this.variant==="casinos"?this.data?.item?.phoenix?.attributes?.gradientStop2:this.data.blurLogo}},watch:{data:{immediate:!0,deep:!0,handler(t,a){t!==a&&Object.keys(t).length&&(this.variant==="games"&&this.fetchGameData(),this.variant==="casinos"&&(this.loading=!1))}}},methods:{...N(J,["queryGamesByCondition"]),async fetchGameData(){try{const t=await this.queryGamesByCondition({options:{ids:[this.data.gameId]},axios:this.$axios||null});if("results"in t){const[a]=t.results;this.gameData=a,this.gameData&&Object.keys(this.gameData).length>0&&(this.loading=!1)}}catch(t){console.error("[CasinoRow] fetchGameData failed:",t)}}}},le={class:"flex flex-col md:flex-row justify-between w-full items-start md:items-center gap-sm"},ce={class:"flex flex-row gap-sm md:gap-md items-center"},de={class:"flex flex-row md:flex-col gap-2xs"},ue={class:"flex flex-col md:flex-row gap-2xs"}
1,he={key:0,class:"h-21 w-100 bg-skeleton skeleton-animation"},me={key:1,class:"text-foreground-2 leading-150 body-sm"},ge={key:2,class:"h-21 w-20 bg-skeleton skeleton-animation"};function fe(t,a,e,d,s,i){const o=l("Favicon"),p=l("Rating"),_=l("Button");return n(),r("div",le,[u("div",ce,[s.loading?(n(),r("div",{key:0,class:$(["rounded-circle bg-skeleton skeleton-animation",i.sizeSkeletonFavicon])},null,2)):(n(),c(o,{key:1,"image-path":i.partnerLogo,"image-name":i.name,size:i.sizeFavicon,blur:i.blurLogo,border:i.border},null,8,["image-path","image-name","size","blur","border"])),u("div",de,[u("div",ue,[s.loading?(n(),r("span",he)):(n(),r("span",me,g(i.name),1)),s.loading?(n(),r("span",ge)):(n(),c(p,{key:3,variant:"single",rating:i.rating},null,8,["rating"]))]),C(u("div",{class:"body-xs leading-120"},g(i.description),513),[[O,!t.isMobile]])])]),C(u("div",{class:"leading-120 body-xs"},g(i.description),513),[[O,t.isMobile]]),s.loading?(n(),c(_,{key:0,tag:"a",size:i.buttonSize,variant:"primary",full:"",disabled:"",class:"w-full md:w-auto flex-shrink-0"},{default:w(()=>[R(g(i.textButton),1)]),_:1},8,["size"])):(n(),c(_,{key:1,tag:"a",size:i.buttonSize,href:i.linkButton||null,disabled:!i.linkButton,full:"",variant:"primary",rel:"noopener noreferrer nofollow",target:"_blank","aria-label":i.buttonAriaLabel,class:"w-full md:w-auto flex-shrink-0"},{default:w(()=>[R(g(i.textButton),1)]),_:1},8,["size","href","disabled","aria-label"]))])}const pe=h(re,[["render",fe]]),_e={name:"BicEatCard",components:{CasinoRow:pe},props:{items:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1},variant:{type:String,default:"casinos"},buttonSizeMobile:{type:String,default:""}},data(){return{viewAll:this.$t("viewAll"),reviewHubPageLink:A.reviews||null,freeGamesPageLink:A.freeGames||null}},computed:{titleCard(){return this.items?.title},isCasinoRow(){return Array.isArray(this.items?.casinos)},dataItems(){return this.isCasinoRow?this.items.casinos:this.items.games},linkHubPage(){return this.variant==="casinos"?this.reviewHubPageLink:this.freeGamesPageLink},itemId(){return this.items?.id}}},ye={class:"background-elevation-3 flex flex-col p-md md:p-xl rounded-ui-md border-sm color-stroke-elevation"},we={class:"flex flex-col md:flex-row justify-between w-full items-start md:items-center mb-md md:mb-lg"},be={class:"text-foreground-1 title-xs leading-150"},xe={key:0,class:"my-md md:my-lg background-stroke-2"};function ve(t,a,e,d,s,i){const o=l("CasinoRow");return n(),r("div",ye,[u("div",we,[u("div",be,g(i.titleCard),1)]),(n(!0),r(S,null,B(i.dataItems,(p,_)=>(n(),r("div",{key:_},[x(o,{"ontario-regulated":e.ontarioRegulated,data:p,variant:e.variant,"card-type":i.itemId,"button-size-mobile":e.buttonSizeMobile},null,8,["ontario-regulated","data","variant","card-type","button-size-mobile"]),_<i.dataItems.length-1?(n(),r("hr",xe)):f("",!0)]))),128))])}const ke=h(_e,[["render",ve]]),Se={name:"IconOval",props:{width:{type:[String,Number],default:13},height:{type:[String,Number],default:13},color:{type:String,default:"#222"}}},Ie=W+"#icon-oval",Be=["width","height"];function Re(t,a,e,d,s,i){return n(),r("svg",{width:e.width,height:e.height,class:$(e.color)},[...a[0]||(a[0]=[u("use",{href:Ie},null,-1)])],10,Be)}const $e=h(Se,[["render",Re]]),Ae={name:"IconHowWeRateCasinos",components:{VImage:y},props:{width:{type:[String,Number],default:307},height:{type:[String,Number],default:327},ontario:{type:Boolean,default:!1}}};function Ce(t,a,e,d,s,i){const o=l("VImage");return e.ontario?(n(),c(o,{key:0,src:"/vue/assets/icons/how-we-rate-casinos-chart-ontario.svg",alt:"How we rate casinos chart ontario version",width:e.width,height:e.height},null,8,["width","height"])):(n(),c(o,{key:1,src:"/vue/assets/icons/how-we-rate-casinos-chart.svg",alt:"How we rate casinos chart",width:e.width,height:e.height},null,8,["width","height"]))}const Pe=h(Ae,[["render",Ce]]),Oe={name:"IconHowWeRateGames",components:{VImage:y},props:{width:{type:[String,Number],default:371},height:{type:[String,Number],default:396},ontario:{type:Boolean,default:!1}},computed:{showBonus(){return this.ontario?"hidden":"visible"}}};function ze(t,a,e,d,s,i){const o=l("VImage");return e.ontario?(n(),c(o,{key:0,src:"/vue/assets/icons/how-we-rate-games-chart-ontario.svg",alt:"How we rate c
1asinos chart ontario version",width:e.width,height:e.height},null,8,["width","height"])):(n(),c(o,{key:1,src:"/vue/assets/icons/how-we-rate-games-chart.svg",alt:"How we rate casinos chart",width:e.width,height:e.height},null,8,["width","height"]))}const Le=h(Oe,[["render",ze]]),Ne={name:"ChartBanner",components:{List:X,IconOval:$e,IconHowWeRateCasinos:Pe,IconHowWeRateGames:Le},props:{title:{type:String,default:""},dataChart:{type:Array,default:()=>[]},ontarioRegulated:{type:Boolean,default:!1},variant:{type:String,default:"casinos"}},data(){return{isOntarioPage:G?k(t=>V(t.location.pathname),!1):!1,isCasinos:this.variant==="casinos"}},computed:{isOntario(){return this.ontarioRegulated||this.isOntarioPage}}},Te={class:"grid grid-cols-1 rounded-ui-md border-sm color-stroke-elevation background-elevation-2 xs:p-md md:px-2xl md:py-fluid-xl gap-lg md:gap-fluid-xl"},He={class:"flex flex-col items-center text-foreground-1 title-sm leading-150 text-center"},Ve={class:"grid grid-cols-1 md:grid-cols-2 gap-md md:gap-2xl items-center"},We={class:"flex flex-row justify-center md:justify-end w-full max-w-[232px] xs:max-w-[305px] md:max-w-[370px] mx-auto md:mx-0"},Me={class:"w-full aspect-[307/327] overflow-hidden"},Ge={class:"flex items-center gap-xs"},De={key:0,class:"body-lg leading-150 font-bold"},Fe={key:1,class:"body-lg leading-150 font-bold"},Ee={class:"body-lg leading-150"};function je(t,a,e,d,s,i){const o=l("IconHowWeRateCasinos"),p=l("ClientOnly"),_=l("IconHowWeRateGames"),b=l("IconOval"),I=l("List");return n(),r("div",Te,[u("div",He,g(e.title),1),u("div",Ve,[u("div",We,[u("div",Me,[s.isCasinos?(n(),c(p,{key:0},{default:w(()=>[x(o,{class:"w-full h-full",width:"100%",height:"100%",ontario:i.isOntario,"point-red":"chart-foreground-color-3","point-blue":"chart-foreground-color-4","point-green":"chart-foreground-color-1","point-orange":"chart-foreground-color-2"},null,8,["ontario"])]),_:1})):(n(),c(p,{key:1},{default:w(()=>[x(_,{class:"w-full h-full",width:"100%",height:"100%",ontario:i.isOntario,"point-blue":"chart-foreground-color-4","point-green":"chart-foreground-color-1","point-orange":"chart-foreground-color-2"},null,8,["ontario"])]),_:1}))])]),x(I,{items:e.dataChart},{item:w(({item:m})=>[u("div",Ge,[x(b,{color:m.color},null,8,["color"]),i.isOntario?(n(),r("span",De,g(m.percentageOntario),1)):(n(),r("span",Fe,g(m.percentage),1)),u("span",Ee,g(m.text),1)])]),_:1},8,["items"])])])}const qe=h(Ne,[["render",je]]),Ke={name:"HowWeRate",components:{BicEatCard:ke,ChartBanner:qe,Button:M,ContainerBlock:Mt,AccordionItem:oe},props:{ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},title:{type:String,default:""},description:{type:String,default:""},chart:{type:Object,default:()=>({})},variant:{type:String,default:"casinos"},useAccordion:{type:Boolean,default:null},collapsedByDefault:{type:Boolean,default:!1}},data(){const t=A.howWeRatePage||null;return{textButton:this.$t("checkOutFullProcess"),howWeRatePage:t,isOntarioPage:k(a=>V(a.location.pathname),!1),isAlbertaPage:k(a=>Z(a.location.pathname),!1),isHomePage:k(a=>a.location.pathname==="/",!1),bonusesPromotions:this.$t("bonusesPromotions"),bonusGamesFeatures:this.$t("bonusGamesFeatures"),loading:!0,activeAccordionIndex:null,contentVersion:0,hubPage:k(a=>a.location.pathname===t,!1)}},computed:{dataChartRegion(){const t=this.chart?.data||[];return this.isBonusRestricted?this.variant==="casinos"?t.filter(a=>!this.isBonusesPromotionsSection(a.text)):t.filter(a=>!this.isBonusGamesFeaturesSection(a.text)):t},...T(P,["toplists"]),defaultList(){return this.toplists.default||[]},itemsContent(){return this.variant==="casinos"&&this.isBonusRestricted?this.items.filter(t=>!this.isBonusesPromotionsSection(t.name)):this.variant==="games"&&this.isBonusRestricted?this.items.filter(t=>!this.isBonusGamesFeaturesSection(t.name)):this.items},isOntario(){return this.ontarioRegulated||this.isOntarioPage},isAlberta(){return this.albertaRegulated||this.isAlbertaPage},isBonusRestricted(){return this.isOntario||this.isAlberta},useAccordionMode(){return this.useAccordion!==null&&this.useAccordion!==void 0?this.useAccordion:!0}},watch:{itemsContent:{immediate:!0,handler(){this.setDefaultAccordionIndex()}},variant:{immediate:!1,deep:!1,handler(t,a){t!==a&&this.variant==="casinos"&&this.$axios&&this.setDefaultTopList()}},defaultList:{immediate:!0,handler(t){t.length>0&&(this.loading=!1,this.contentVersion+=1)}}},mounted(){G&&this.variant==="casinos"&&this.$axios&&!this.defaultList.length&&this.setDefaultTopList()},methods:{...N(P,["getToplistByType"]),setDefaultAccordionIndex(){if(!this.itemsContent||!this.itemsContent.length){this.activeAccordionIndex=null;return}this.activeAccordionIndex=this.collapsedByDefault?null:0},handleAccordionToggle(t){this.activeAccordionIndex===t?this.activeAccordionIndex=null:this.activeAccordionIndex=t},hasCards(t){return t?.cards&&typeof t.cards=="object"&&!Array.isArray(t.cards)},getContent(t){if(this.variant==="casinos"&&this.defaultList.length>0){switch(t.id){case"security":t.casinos=this.getBestTop3("security");break;case"bonuses":t.casinos=this.getBestTop3("bonuses");break;case"software":t.casinos=this.getBestTop3("software");break;case"mobileSupport":t.casinos=this.getBestTop3("mobileSupport");break;case"customerSupport":t.casinos=this.getBestTop3("customerSupport");break;case"localization":t.casinos=this.getBestLocalization();break;default:t.casinos=this.getBestTop3("banking");break}return{...t}}return t},normalizeSectionName(t){return String(t||"").trim().toLowerCase()},isBonusesPromotionsSection(t){const a=this.normalizeSectionName(t);return a===this.normalizeSectionName(this.bonusesPromotions)||a==="bonuses & promotions"},isBonusGamesFeaturesSection(t){const a=this.normalizeSectionName(t);return a===this.normalizeSectionName(this.bonusGamesFeatures)||a==="bonus games & features"},getPartnerKey(t){return t?.phoenix?.slug||t?.slug||t?.phoenix?.attributes?.casinoName||""},takeTopPartners(t,a=3){const e=t.slice(0,a);if(e.length>=a)return e;const d=new Set(e.map(s=>
1this.getPartnerKey(s.item)).filter(Boolean));for(const s of this.defaultList){if(e.length>=a)break;const i=this.getPartnerKey(s);i&&d.has(i)||(i&&d.add(i),e.push({item:s,value:0}))}return e},getBestTop3(t){const e=this.defaultList.map(d=>{const s=d.phoenix?.attributes?.ratings;if(Array.isArray(s)){const i=s.find(o=>o[t]!==void 0)?.[t];if(i!==void 0)return{item:d,value:i}}return null}).filter(d=>d!==null).sort((d,s)=>s.value-d.value);return this.takeTopPartners(e)},getBestLocalization(){return this.takeTopPartners(this.defaultList.map(t=>({item:t})))},setDefaultTopList(){this.defaultList.length>0||this.getToplistByType({axios:this.$axios,toplistType:"default",defaultToplist:"default",pageType:"real+money",pageLanguage:this.$i18n&&this.$i18n.locale?this.$i18n.locale:"en",isOntario:this.isOntario,isAlberta:this.isAlberta,contentRegion:this.isAlberta?"AB":this.isOntario?"ON":"default"})},getText(t){return this.isOntario?t.textOntario??t.text:this.isAlberta?t.textAlberta??t.text:t.text},getDescription(t){return this.isOntario?t.descriptionOntario??t.description:this.isAlberta?t.descriptionAlberta??t.description:t.description}}},Ue={class:"flex flex-col background-elevation-1 border-sm color-stroke-elevation 2xs:rounded-ui-md md:rounded-ui-lg 2xs:gap-fluid-md md:gap-md lg:gap-lg p-md md:p-lg lg:p-xl"},Ye={class:"flex flex-col 2xs:gap-fluid-md xl:gap-fluid-lg"},Je={class:"flex flex-col gap-fluid-sm"},Qe={key:0,class:"text-foreground-1 title-md leading-150 lg:leading-120"},Xe={key:1,class:"text-foreground-2 body-md leading-150"},Ze={key:0,class:"flex flex-col gap-sm md:gap-md"},ti={key:1,class:"flex justify-center"};function ei(t,a,e,d,s,i){const o=l("ChartBanner"),p=l("BicEatCard"),_=l("AccordionItem"),b=l("ContainerBlock"),I=l("Button");return n(),r("div",Ue,[u("div",Ye,[u("div",Je,[e.title?(n(),r("h2",Qe,g(e.title),1)):f("",!0),e.description?(n(),r("div",Xe,g(e.description),1)):f("",!0)]),x(o,{title:e.chart.title,"data-chart":i.dataChartRegion,"ontario-regulated":i.isBonusRestricted,variant:e.variant},null,8,["title","data-chart","ontario-regulated","variant"])]),e.items.length?(n(),r(S,{key:0},[i.useAccordionMode?(n(),r("div",Ze,[(n(!0),r(S,null,B(i.itemsContent,(m,v)=>(n(),c(_,{key:v,title:m.name,description:i.getDescription(m),tags:m.tags,text:i.getText(m),icon:m.icon,"accordion-id":`how-we-rate-${v}`,"default-expanded":!1,"content-version":s.contentVersion,expanded:v===s.activeAccordionIndex,onToggle:ii=>i.handleAccordionToggle(v)},{content:w(()=>[i.hasCards(m)?(n(),c(p,{key:0,items:i.getContent(m.cards),"ontario-regulated":e.ontarioRegulated,variant:e.variant,"button-size-mobile":"SM"},null,8,["items","ontario-regulated","variant"])):f("",!0)]),_:2},1032,["title","description","tags","text","icon","accordion-id","content-version","expanded","onToggle"]))),128))])):(n(!0),r(S,{key:1},B(i.itemsContent,(m,v)=>(n(),c(b,{key:v,title:m.name,description:i.getDescription(m),tags:m.tags,text:i.getText(m),icon:m.icon},{"content-block":w(()=>[i.hasCards(m)?(n(),c(p,{key:0,items:i.getContent(m.cards),"ontario-regulated":e.ontarioRegulated,variant:e.variant,"button-size-mobile":"SM"},null,8,["items","ontario-regulated","variant"])):f("",!0)]),_:2},1032,["title","description","tags","text","icon"]))),128))],64)):f("",!0),s.howWeRatePage&&!s.hubPage?(n(),r("div",ti,[x(I,{tag:"a",size:"LG",href:s.howWeRatePage,full:"",variant:"secondary",class:"w-full md:w-auto flex-shrink-0 md:mt-xs lg:mt-0"},{default:w(()=>[R(g(s.textButton),1)]),_:1},8,["href"])])):f("",!0)])}const Si=h(Ke,[["render",ei]]);export{Si 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.