1import p from"./DGyb3Iwi.js";import c from"./YpzxG479.js";import h from"./tR7gS6Nu.js";import d from"./BoR7i6SS.js";import{_ as y,c as a,a as r,j as s,e as n,t as m,b as w,L as k,B as u,C as P,o}from"./C_VzGqEg.js";import A from"./Id585iTr.js";import{u as l}from"./SLKFLf4j.js";import"./CnhEJNgS.js";import"./DtfDc6gd.js";import"./NUoIgR6R.js";import"./DrwGJLjZ.js";import"./aNolhp5Q.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 I=new Set(["photo","hexagon"]),b={name:"AuthorQuote",components:{VImage:c,Avatar:p,IconQuote:h,Skeleton:d},props:{authorId:{type:String,default:""},casinoSlug:{type:String,default:""},quote:{type:String,default:""},avatarVariant:{type:String,default:"hexagon",validator:e=>I.has(e)}},data(){return{loading:!0,authors:A}},computed:{...u(l,["currentPartner"]),...u(P,["isMobile","isTablet"]),quoteIconSize(){return this.isMobile?48:this.isTablet?54:64},authorName(){return this.selectedAuthor?.name||null},authorRole(){return this.selectedAuthor?.authorRole||null},getCountryFlag(){return this.selectedAuthor?.countryFlagDark},getImageAuthor(){return this.selectedAuthor?.authorPhoto},avatarData(){return{name:this.authorName,authorPhoto:this.getImageAuthor}},reviewsWritten(){return this.selectedAuthor?.reviewsWritten},selectedAuthor(){return this.authors[this.authorId]||null},authorTitle(){if(this.casinoSlug&&!this.loading){const e=this.currentPartner?.supplement?.authorsReview?.find(i=>i.author===this.authorId);return e?`"${e.title}"`:null}else return this.quote}},watch:{currentPartner:{immediate:!0,deep:!0,handler(e,i){e!==i&&Object.keys(e).length&&(this.loading=!1)}}},mounted(){this.casinoSlug&&this.initPartner()},methods:{...k(l,["setCurrentPartner"]),initPartner(){!this.currentPartner?.phoenix?.slug&&this.casinoSlug&&this.fetchPartnerData()},async fetchPartnerData(){const e=await l().fetchCasinosBySlug({casinoSlugs:this.casinoSlug});await this.setCurrentPartner(e[0])}}},C={class:"flex flex-col lg:flex-row p-md md:p-lg lg:p-xl gap-fluid-md lg:gap-fluid-xl border-sm background-elevation-1 color-stroke-accent rounded-ui-md md:rounded-ui-lg"},V={class:"flex flex-col gap-xs md:gap-sm shrink-0"},D={class:"flex items-center gap-sm"},N={class:"flex flex-col gap-3xs md:gap-2xs"},T={class:"title-xs text-foreground-1 leading-150"},B={class:"body-sm leading-120 lg:leading-150"},q={key:0,class:"gap-xs flex items-start"},z={class:"flex flex-row gap-xs items-center"},M={class:"body-sm leading-120 lg:leading-150"},R={class:"flex flex-col md:flex-row items-start gap-xs md:gap-md"},F=["innerHTML"];function Q(e,i,g,W,_,t){const f=p,x=c,v=h,S=d;return o(),a("div",C,[r("div",V,[r("div",D,[t.getImageAuthor||t.authorName?(o(),s(f,{key:0,data:t.avatarData,variant:g.avatarVariant,size:e.isMobile?"md":"lg",verified:""},null,8,["data","variant","size"])):n("",!0),r("div",N,[r("p",T,m(t.authorName),1),r("p",B,m(t.authorRole),1)])]),t.reviewsWritten?(o(),a("div",q,[r("div",z,[t.getCountryFlag?(o(),s(x,{key:0,src:t.getCountryFlag,width:"20",height:"20",class:"w-[20px] h-[20px]"},null,8,["src"])):n("",!0),r("p",M,m(t.reviewsWritten),1)])])):n("",!0)]),r("div",R,[w(v,{width:t.quoteIconSize,height:t.quoteIconSize,class:"shrink-0"}
1,null,8,["width","height"]),_.loading&&!t.authorTitle?(o(),s(S,{key:0,class:"w-[100%] h-3xl rounded-ui-sm"})):(o(),a("p",{key:1,class:"title-xs text-foreground-2 leading-150",innerHTML:t.authorTitle},null,8,F))])])}const re=Object.assign(y(b,[["render",Q]]),{__name:"AuthorQuote"});export{re 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.