1import h from"./C666d358.js";import _ from"./C9yiaWcE.js";import p from"./BRvUn7YG.js";import{_ as u,c as v,a as i,b as n,t as a,w as l,o as g,d as c}from"./C_VzGqEg.js";import"./DWfGYNrX.js";import"./YpzxG479.js";import"./NUoIgR6R.js";import"./DrwGJLjZ.js";const x=["light","dark"],w={name:"ReviewDrawerHeader",props:{content:{type:Object,required:!0},iconTheme:{type:String,validator:t=>x.includes(t),default:"dark"}},data(){return{isMobile:!1,visitCasinoLabel:this.$t("reviewsLibrary.visitCasino"),readReviewLabel:this.$t("reviewsLibrary.readReview")}},computed:{favIconSize(){return this.isMobile?"sm":"md"},buttonSize(){return this.isMobile?"MD":"LG"},partnerLogo(){const t=this.$config.public.PHOENIX_IMAGE_SERVER,r=this.content?.favicon[this.iconTheme];return`${t}${r}?w=300&h=200&fm=avif`},favIconBlur(){return this.content?.favicon?.blur?this.content?.favicon?.blur:""},partnerName(){return this.content?.partnerName&&this.content?.partnerName.length?this.content?.partnerName:""},affiliateLink(){return this.content?.affiliateLink&&this.content?.affiliateLink.length?this.content?.affiliateLink:""},reviewLink(){return this.content?.reviewLink&&this.content?.reviewLink.length?this.content?.reviewLink:""}},beforeMount(){window.addEventListener("resize",this.handleResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.isMobile=window.innerWidth<768},handleReadReviewClick(){this.reviewLink&&this.$emit("handle-read-review",this.reviewLink)}}},b={class:"flex flex-col gap-md md:gap-lg z-50"},L={class:"flex flex-row md:flex-col gap-sm md:gap-lg px-md md:px-2xl"},k={class:"flex flex-col gap-fluid-sm md:gap-fluid-xs"},z={class:"text-lg md:text-2xl leading-md text-foreground-1"},R={class:"px-md md:px-2xl flex gap-xs md:gap-md"};function N(t,r,d,C,s,e){const m=h,o=_,f=p;return g(),v("div",b,[i("div",L,[n(m,{size:e.favIconSize,"image-path":e.partnerLogo,"image-name":`${e.partnerName} logo`,type:"circular",blur:e.favIconBlur},null,8,["size","image-path","image-name","blur"]),i("div",k,[i("h3",z,a(e.partnerName),1)])]),i("div",R,[n(o,{tag:"a",variant:"primary",href:e.affiliateLink,"prior-classes":"block text-xs",class:"w-full",size:e.buttonSize,target:"_blank",disabled:!e.affiliateLink?.length,rel:"noopener noreferrer nofollow"},{default:l(()=>[c(a(s.visitCasinoLabel),1)]),_:1},8,["href","size","disabled"]),n(o,{tag:"button",variant:"ghost","prior-classes":"flex text-xs w-full",class:"w-full",size:e.buttonSize,disabled:!e.reviewLink?.length,onClick:e.handleReadReviewClick},{default:l(()=>[c(a(s.readReviewLabel),1)]),_:1},8,["size","disabled","onClick"])]),n(f,{content:{size:"xxs",type:"visible"}})])}const T=Object.assign(u(w,[["render",N]]),{__name:"ReviewDrawerHeader"});export{T 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.