1import{e as Ie,aq as ye,aj as Se,an as we,w as De,V as U,b as he,f as Ge,a0 as G,c as Ce,B as be,Q as Ae,K as se,as as Te}from"./DP0SV8bf.js";import{aq as x,Y as ke,ai as o,a0 as m,l as u,i as s,p as E,q as _,at as C,j as b,a as Oe,N as ae,F as z,a6 as q,b as Ne,L as $,k as A,ac as p,au as Le,ap as Pe,aw as Ee,T as J,a4 as g,g as B}from"./BniGHpbr.js";import $e from"./Bs6WsSlt.js";import{_ as Be}from"./9bLtOqrK.js";import{o as Fe}from"./C9w0qM2C.js";import{_ as He}from"./BCY5toRw.js";import{p as Me}from"./DO4nZtvR.js";const Ve={key:0,class:"fame-section"},Re={class:"fame-headline"},Ue={class:"fame-slider-wrap"},xe={class:"userinfo-wrap"},ze={class:"user-main"},qe={key:0,class:"pic-crown"},Je={class:"user-border-deco"},We=["onClick"],Ke=["src"],Ye={class:"user-info"},je={class:"player-nickname"},Qe={class:"player-tags"},Xe={class:"total-win-wrap"},Ze={class:"total-win-value"},et={class:"player-favorite-wrap"},tt=["onClick"],st=["src"],at={class:"popup-header"},ot={class:"popup-body"},nt={class:"intro-wrap"},it={class:"game-pic"},rt=["src"],lt={class:"game-info"},ct={class:"content-item"},mt={class:"info-detail"},ft={class:"content-item"},dt={class:"info-detail"},ut={class:"content-item"},pt={class:"info-detail"},gt={class:"content-item"},vt={class:"info-title"},_t={class:"Volatility-disc"},It={key:0,class:"info-detail"},yt={key:1,class:"info-detail"},St={key:2,class:"info-detail"},wt={key:3,class:"info-detail"},Dt={key:4,class:"info-detail"},ht={class:"content-item"},Gt={class:"info-detail"},Ct={class:"content-item"},bt={class:"info-detail"},At={class:"popup-footer"},Tt={__name:"fameSection",setup(kt){const I=Te();ye();const W=Se(),{defaultState:F}=W,{$req:K}=we(),S=De(),H=B(()=>`${I.public.gcsUrl}/Avatar/default/001-AdultFemale.webp`),N=g([]),h=g({}),w=g({}),T=g({gameInfo:!1}),f=g({}),D=g(!1),Y=g(null);Fe(Y,()=>{D.value=!1});const M=g(!1),y=g([]),V=g(!1),j=g(""),oe={0:{slidesPerView:1.1,spaceBetween:15},667:{slidesPerView:2.1,spaceBetween:15},768:{slidesPerView:3,spaceBetween:15},1024:{slidesPerView:3,spaceBetween:25},1440:{slidesPerView:3,spaceBetween:70},1800:{slidesPerView:3,spaceBetween:120}},ne={0:{slidesPerView:3,spaceBetween:10},768:{slidesPerView:3,spaceBetween:10},1181:{slidesPerView:"auto",spaceBetween:10}},ie=B(()=>F.imgType),v=B(()=>F.currentCoin),k=B(()=>F.lobbyGameList);function Q(t){const e=JSON.parse(JSON.stringify(t));return!e.members||!k.value||e.members.forEach(n=>{n.recommended_games=n.recommended_games.map(a=>{var l,d;const i=a.currency_name==="GC"?a.game_id:(l=S.find(c=>parseInt(c.offerID)===parseInt(a.offer_id)&&parseInt(c.SC_GameID)===parseInt(a.game_id)))==null?void 0:l.GC_GameID,r=a.currency_name==="SC"?a.game_id:(d=S.find(c=>parseInt(c.offerID)===parseInt(a.offer_id)&&parseInt(c.GC_GameID)===parseInt(a.game_id)))==null?void 0:d.SC_GameID,O=v.value==="GC"?i:r,P=k.value.find(c=>parseInt(c.offerID)===parseInt(a.offer_id)&&parseInt(c.gameID)===parseInt(O)&&c.currencyName===v.value);return P||void 0}).filter(a=>a!==void 0&&a.status!==0&&a.status!=="Closed"&&a.status)}),e}x(v,()=>{U(h.value)||(w.value=Q(h.value))}),x(h,()=>{U(h.value)||(w.value=Q(h.value))},{deep:!0}),x(k,t=>{t&&t.length>0&&X()}),ke(()=>{k.value&&k.value.length>0&&X()});function re(t){return{prevEl:`.fame-games-prev-${t}`,nextEl:`.fame-games-next-${t}`}}function le(t){switch(t){case"SLOT":return"SLOTS";case"FISH":return"SHOOTING";case"JACKPOT":return"JACKPOTS";case"TABLE":return"TABLES";case"SCRATCH":return"SCRATCH";case"INSTANT WIN":return"INSTANT WIN";default:return t}}async function X(){try{const t=await K.GetHallOfFameHistory();t&&t.Code===0&&(N.value=t.Data,N.value.length>0&&(h.value=N.value[0]))}catch{}}function ce(t){let e=se(t)+t.gameID;return`${I.public.gcsUrl}/GameIcon/${I.public.merchantId}/${e}`}const L={};function me(t){if(!t)return H.value;const e=t.startsWith("http")?t:`${I.public.gcsUrl}/Avatar/${t}`;if(e in L)return L[e]?e:H.value;const n=new window.Image;return n.src=e,n.onload=()=>{L[e]=!0},n.onerror=()=>{L[e]=!1},e}function Z(t){const e=t&&(t.target||t.srcElement);e&&(e.onerror=null,e.src=H.value)}function fe(t,e){let n=t.srcElement;n.src="/images/game-icon-landscape-dara.webp"}function de(t){const e=se(t)+"Main"+t.gameID;return{src:`${I.public.gcsUrl}/GameIcon/${I.public.merchantId}/${e}_${v.value}.webp`}}function ee(t){var n;const e=S.find(a=>{var i,r;return a.SC_GameID===((i=t.gameID)==null?void 0:i.toString())&&a.offerID===t.offerID||a.GC_GameID===((r=t.gameID)==null?void 0:r.toString())&&a.offerID===t.offerID});return e?e.gameTitle:(n=t.gameID)==null?void 0:n.toString()}function ue(t){if(!t||!t.gameID)return!1;const e=localStorage.getItem("highRollerGameList");if(!e)return!1;const n=JSON.parse(e);return!n||!n.length?!1:n.some(a=>(v.value==="GC"?a.GC_GameID:a.SC_GameID)===t.gameID&&a.offerID===t.offerID)}function pe(t,e,n){if(t.status===5||t.status==="Maintain"){M.value=!0;return}R(30,t.gameID,t.offerID,"",e),T.value.gameInfo=!0,t.game_content=t.game_title,f.value={...t,index:e}}function ge(){const t=f.value;if(!t||!t.gameID||!t.offerID)return;const e=t;sessionStorage.setItem("gameId",JSON.stringify(e)),localStorage.getItem("playAgain")&&(y.value=JSON.parse(localStorage.getItem("playAgain")));let n=y.value.findIndex(a=>(a.gameID===t.gameID||a.otherGameId===t.gameID)&&a.offerID===t.offerID);if(n!==-1)y.value.unshift(y.value.splice(n,1)[0]);else{let a={...t};v.value==="GC"?a.otherGameId=S.find(i=>i.GC_GameID===a.gameID&&i.offerID===a.offerID)?S.find(i=>i.GC_GameID===a.gameID&&i.offerID===a.offerID).SC_GameID:a.gameID:a.otherGameId=S.find(i=>i.SC_GameID===a.gameID&&i.offerID===a.offerID)?S.find(i=>i.SC_GameID===a.gameID&&i.offerID===a.offerID).GC_GameID:a.gameID,y.value.unshift(a)}y.value.length>7&&y.value.splice(7),localStorage.setItem("playAgain",JSON.stringify(y.value)),R(31,e.gameID,e.offerID,"",e.index),W.updateState("gameId",e),T.value.gameInfo=!1}function R(t,e,n,a="",i=""){const r={event_type:"EventLog",event_data:{MerchantID:I.public.merchantId,openType:"",UDID:localStorage.getItem("UDID")?localStorage.getItem("UDID"):"",UserID:sessionStorage.getItem("ApiAid")?parseInt(sessionStorage.getItem("ApiAid")):-1,MerchantUserAccount:sessionStorage.getItem("loginAccount")?sessionStorage.getItem("loginAccount"):"",NickName:"",PublishVer:I.public.version,GamePublishVer:"",EventID:0,memberOperatingStatus:sessionStorage.getItem("MemberOperatingStatus"),MerchantGameID:"",OfferID:"",TempStr4:"Hall of Fame",TempStr5:"",TempStr6:"",...Ae()}};t===30||t===31?(r.event_data.EventID=t,r.event_data.MerchantGameID=e,r.event_data.OfferID=n.toString(),r.event_data.TempStr1=ee({gameID:e,offerID:n}),r.event_data.TempStr2=v.value,r.event_data.TempStr3="Home",r.event_data.TempStr4="Hall of Fame",r.event_data.TempStr5=i):(r.event_data.EventID=t,r.event_data.TempStr1=e,r.event_data.TempStr2=v.value,r.event_data.TempStr3=a),ve(r)}async function ve(t){try{/DaraApp|CasinoApp/i.test(navigator.userAgent)?t.event_data.openType="APP":window.matchMedia("(display-mode: standalone)").matches?t.event_data.openType="PWA":t.event_data.openType="WEB",await K.eventlog(t)}catch{}}return(t,e)=>{const n=he,a=Ge,i=Ne,r=Oe,O=$e,P=Ce;return o(N).length>0?(m(),u("div",Ve,[s("div",Re,[e[10]||(e[10]=E(" HALL OF FAME ",-1)),_(n,{class:"fame-see-all",to:"/hall-of-fame"},{default:C(()=>[...e[9]||(e[9]=[E("SEE ALL",-1)])]),_:1})]),s("section",Ue,[_(P,null,{default:C(()=>[!o(U)(o(w))&&o(w).members&&o(w).members.length?(m(),b(r,{key:0,ref:"sliderFameRef",breakpoints:oe,navigation:!1,loop:!1,"watch-overflow":!0,"center-insufficient-slides":!1,modules:["
1SwiperNavigation"in t?t.SwiperNavigation:o(ae)],class:"slider-container top"},{default:C(()=>[(m(!0),u(z,null,q(o(w).members.slice(0,3),(l,d)=>(m(),b(i,{key:l.api_aid,class:"slider-item"},{default:C(()=>[s("div",{class:$({"top-1":d===0,"top-2":d===1,"top-3":d===2})},[s("div",xe,[s("div",ze,[d===0?(m(),u("div",qe,[_(a,{src:"/images/fame/pic-crown.webp",alt:"pic crown",quality:"100",loading:"lazy",width:"200",height:"176",decoding:"async"})])):A("",!0),s("div",Je,[s("div",{class:"user-avatar",onClick:c=>{V.value=!0,j.value=l.api_aid,R(309,"HallOfFame",o(v),l.api_aid)}},[s("img",{src:me(l.avatar),onError:e[0]||(e[0]=c=>Z(c)),quality:"100",loading:"lazy",alt:"avatar"},null,40,Ke)],8,We)]),s("div",Ye,[s("div",je,p(l.nickname),1),s("div",Qe,[(m(!0),u(z,null,q(l.tags.slice(0,3),c=>(m(),u("span",{key:c,class:"tag-item"},p(le(c)),1))),128))]),s("div",Xe,[s("div",Ze,[e[11]||(e[11]=s("img",{src:Be,alt:"coin GC",quality:"100",loading:"lazy"},null,-1)),E(" "+p(o(G)(l.period_total_win,2)),1)]),e[12]||(e[12]=s("div",{class:"total-win-title"},"TOTAL WIN",-1))])])])]),s("div",et,[e[13]||(e[13]=s("div",{class:"player-favorite-title"},"TOP 6 FAVORITE GAMES",-1)),_(r,{"slides-per-view":"auto","space-between":15,breakpoints:ne,navigation:re(d),"watch-overflow":!0,"center-insufficient-slides":!1,modules:["SwiperNavigation"in t?t.SwiperNavigation:o(ae)],class:"slider-container"},{default:C(()=>[(m(!0),u(z,null,q(l.recommended_games.slice(0,6),(c,_e)=>(m(),b(i,{key:c.gameID,class:"slider-item"},{default:C(()=>[s("div",{class:"game-preview",onClick:te=>pe(c,o(w).month+"_"+(d+1),_e+1)},[s("img",{src:ce(c)+o(ie),loading:"lazy",alt:"",onError:e[1]||(e[1]=te=>Z(te))},null,40,st)],8,tt)]),_:2},1024))),128))]),_:2},1032,["navigation","modules"]),s("div",{class:$(`swiper-button-prev fame-games-prev-${d}`)},[_(O,{name:"fa6-solid:angle-left",mode:"svg"})],2),s("div",{class:$(`swiper-button-next fame-games-next-${d}`)},[_(O,{name:"fa6-solid:angle-right",mode:"svg"})],2)])],2)]),_:2},1024))),128))]),_:1},8,["modules"])):A("",!0)]),_:1})]),o(T).gameInfo?(m(),b(J,{key:0,to:"#portalPopupPlace"},[s("div",{class:"popup-scroll",onClick:e[6]||(e[6]=Ee(l=>{o(T).gameInfo=!1,D.value=!1},["self"]))},[s("div",{class:$(["popup-wrap","game-intro",{noble:ue(o(f))}])},[s("div",{class:"btn-close",onClick:e[2]||(e[2]=l=>{o(T).gameInfo=!1,D.value=!1})},[_(O,{name:"fa6-solid:xmark",class:"fa-lg",mode:"svg"})]),s("div",at,p(ee(o(f))),1),s("div",ot,[s("div",nt,[s("div",it,[s("img",{src:de(o(f)).src,loading:"lazy",alt:"",onError:e[3]||(e[3]=l=>fe(l))},null,40,rt)]),s("div",lt,[s("div",ct,[e[14]||(e[14]=s("div",{class:"info-title"},"Max Prize",-1)),s("div",mt,p(o(G)(o(f).maxReward)),1)]),s("div",ft,[e[15]||(e[15]=s("div",{class:"info-title"},"Play Level Limits",-1)),s("div",dt,p(o(G)(o(f).minBetRange)||"")+p(o(G)(o(f).minBetRange)?"-":"")+p(o(G)(o(f).maxBetRange)||""),1)]),s("div",ut,[e[16]||(e[16]=s("div",{class:"info-title"},"Max Prize Multiplier",-1)),s("div",pt,p(o(G)(o(f).maxMultiple)),1)]),s("div",gt,[s("div",vt,[e[17]||(e[17]=E(" Volatility ",-1)),s("span",{ref_key:"infoRef",ref:Y,class:"icon-info",onClick:e[4]||(e[4]=l=>D.value=!o(D))},"i",512),Le(s("div",_t," This basically measures the size of the prizes. Low volatility games will give you lots of little prizes often, whereas high volatility games work the other way around. ",512),[[Pe,o(D)]])]),o(f).spicy===void 0?(m(),u("div",It,"Low")):o(f).spicy===0?(m(),u("div",yt," - ")):o(f).spicy===3?(m(),u("div",St,"Medium")):o(f).spicy>3?(m(),u("div",wt,"High")):(m(),u("div",Dt,"Low"))]),s("div",ht,[e[18]||(e[18]=s("div",{class:"info-title"},"Bonus Feature",-1)),s("div",Gt,p(o(f).bonusFeature?"YES":"NO"),1)]),s("div",Ct,[e[19]||(e[19]=s("div",{class:"info-title"},"Providers",-1)),s("div",bt,p(o(be)(o(f))),1)])])])]),s("div",At,[s("button",{class:"btn-play",onClick:e[5]||(e[5]=l=>{ge(),D.value=!1})},"PLAY")])],2)])])):A("",!0),o(M)?(m(),b(J,{key:1,to:"#portalPopupPlace"},[_(He,{onIsOpen:e[7]||(e[7]=l=>M.value=l)})])):A("",!0),o(V)?(m(),b(J,{key:2,to:"#portalPopupPlace"},[_(Me,{apiAid:o(j),onIsOpen:e[8]||(e[8]=l=>V.value=l)},null,8,["apiAid"])])):A("",!0)])):A("",!0)}}}
1,Ft=Ie(Tt,[["__scopeId","data-v-8f9c238b"]]);export{Ft 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.