1import{r as s,a as t,u as r}from"./BKYcg_5K.js";import{u as a}from"./CCduaAoa.js";import{A as o}from"./C_dDoqqV.js";const c={data(){return{sweepstakesHubUrl:"/sweepstakes/"}},computed:{pageConfig(){return r().pageConfig||{}},bonusReviewPage(){return this.pageConfig?.bonusReviewPage},isBonusPageType(){return this.pageConfig?.pageType==="bonus"},casinoSlug(){return a().casinoSlug},partnerData(){return a().partnersBySlug[this.casinoSlug]},regulatedAffiliateLinkState(){return t().regulatedAffiliateLinkState},userLocation(){return t().userLocation},commercialLocation(){return t().commercialLocation},notActive(){return this.partnerData?.supplement?.notActive},acceptedGeo(){const e=this.partnerData?.supplement?.acceptedGeo;return Array.isArray(e)?e:[]},isSweepstakesCasino(){return!!this.partnerData?.supplement?.sweepstakesCasino},userRegionCode(){return this.userLocation?.regionCode||null},isUserInAcceptedGeo(){return!this.userRegionCode||!this.acceptedGeo.length?!1:this.acceptedGeo.includes(this.userRegionCode)},isUserInRegulatedGeo(){const e=s[0]?.regions||[];return this.userRegionCode?e.some(i=>i.region===this.userRegionCode):!1},afflinkProxy(){return this.partnerData?.phoenix?.offers?.attributes?.afflinkProxy},affiliateBaseUrl(){return o().public.PHOENIX_AFFLINK_SERVER||""},canUseAffiliateOnBonusPage(){return this.isBonusPageType&&this.isSweepstakesCasino?!this.isUserInRegulatedGeo:this.isUserInAcceptedGeo},commercialHubMeta(){return{hasRegion:!!this.commercialLocation?.regionCode,hasHubPage:!!this.commercialLocation?.hubPage,regionCode:this.commercialLocation?.regionCode||null,hubPage:this.commercialLocation?.hubPage||null}},affiliateLink(){return!this.afflinkProxy||!this.affiliateBaseUrl||this.notActive||this.partnerData?.supplement?.hideAffiliateByGeo?"":this.isBonusPageType?this.canUseAffiliateOnBonusPage?`${this.affiliateBaseUrl}${this.afflinkProxy}`:"":this.regulatedAffiliateLinkState?"":`${this.affiliateBaseUrl}${this.afflinkProxy}`},fallbackData(){return this.isBonusPageType&&this.isSweepstakesCasino&&this.isUserInRegulatedGeo&&this.commercialHubMeta.hasHubPage?{isSweepstakesFallback:!1,href:this.commercialHubMeta.hubPage,regionCode:this.commercialHubMeta.regionCode}:this.isBonusPageType?{isSweepstakesFallback:!0,href:this.sweepstakesHubUrl,regionCode:null}:this.commercialHubMeta.hasRegion&&this.commercialHubMeta.hasHubPage?{isSweepstakesFallback:!1,href:this.commercialHubMeta.hubPage,regionCode:this.commercialHubMeta.regionCode}:{isSweepstakesFallback:!0,href:this.sweepstakesHubUrl,regionCode:null}},fallbackButtonHref(){return this.fallbackData.href},fallbackButtonText(){return this.fallbackData.isSweepstakesFallback?this.$t("bonusHero.sweepstakesCasinos"):this.$t("bonusHero.casinosAvailableInState",{regionCode:this.fallbackData.regionCode})},stateHubPage(){return this.regulatedAffiliateLinkState&&this.bonusReviewPage?this.commercialLocation:this.userLocation}}};export{c as a};
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.