PageSourceSearch

https://www.beta191.net/_nuxt/MerchantGameSlider-rljhQBsY-179145342.js

js beta191.net collected 2026-10-09 00:42:38 UTC 8,404 bytes, 2 lines download raw bytes

1import{a as U,L as z,d as A,h as V,u as j,i as O,O as Y}from"./entry-BqTEyWMA-179145342.js";import{X as q,$ as B,V as R,w as J,av as i,aw as u,aF as r,a_ as n,az as $,b1 as w,b3 as M,a$ as F,bg as X,aB as y,b2 as G,aU as D,ba as E,e as I,r as L,ax as H,b5 as W,aA as T,W as K}from"./vendor-nuxt-aFXqTWQz-179145342.js";import{_ as Q}from"./Carousel-CXSjsWN2-179145342.js";const Z={key:0,class:"flex justify-between items-center gap-4 pb-3"},ee={class:"home-section-title"},te={class:"text"},se={class:"flex items-center"},ae={class:"flex gap-2"},oe={key:1,class:"skeleton h-6"},ne={class:"game_slider mt-2 mb-7 provider_slider"},re=["src","alt"],le=["src","alt"],ie={__name:"MerchantHomeProviderList",setup(v){const{isMobile:a}=q(),b=B(),C=z(),{$pub:c,$resolveUrl:h}=R(),m=L(),x=e=>e?h(`{d}game/provider_long_white/${e.toUpperCase()}.webp`):c("/img/logo.png"),S=e=>e?h(`{d}game/provider-dropdown/${e.toUpperCase()}.webp`):c("/img/logo.png"),g=I(()=>{if(!C.ready)return[];var e=C.data,t=[];return Object.keys(e).forEach(l=>{l.toLowerCase()!=="iblotto"&&l!="sport"&&e[l].forEach(s=>{t.find(d=>d.name==s.providerName)||t.push({name:s.providerName})})}),t}),o=L(),p=L({top:0,left:0,x:0,y:0}),_=e=>{o.value.style.userSelect="none",p.value={left:o.value.scrollLeft,top:o.value.scrollTop,x:e.clientX,y:e.clientY},document.addEventListener("mousemove",N),document.addEventListener("mouseup",P)},N=e=>{const t=e.clientX-p.value.x,l=e.clientY-p.value.y;o.value.scrollTop=p.value.top-l,o.value.scrollLeft=p.value.left-t},P=e=>{o.value.style.removeProperty("scrollBehavior"),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",P)};return J(o,e=>{e&&o.value.addEventListener("mousedown",_)}),(e,t)=>{const l=A,s=X,k=Q;return i(),u("div",null,[r(g).length>0?(i(),u("div",Z,[n("div",ee,[n("div",te,$(e.$t("our_providers")),1),n("div",se,[n("button",{class:"game_slider g-prev",onClick:t[0]||(t[0]=(...d)=>r(m).prev&&r(m).prev(...d))},[w(l,{iconClass:"icon-angle-back"})]),n("button",{class:"game_slider g-next",onClick:t[1]||(t[1]=(...d)=>r(m).next&&r(m).next(...d))},[w(l,{iconClass:"icon-angle-next"})])])]),n("div",ae,[w(s,{to:r(b)("/providers"),class:"btn_more"},{default:M(()=>[F($(e.$t("see_all")),1)]),_:1},8,["to"])])])):r(g).ready?y("",!0):(i(),u("div",oe)),n("div",ne,[r(g).length>0?(i(),G(k,{key:0,ref_key:"gameCarousel",ref:m,gap:12},{default:M(()=>[(i(!0),u(D,null,E(r(g),d=>(i(),u("div",{key:d.name,class:"flex-shrink-0 game-slide !pt-0"},[w(s,{to:r(b)(`/providers/${d.name}`),class:"provider_box"},{default:M(()=>[n("img",{class:"default",src:x(d.name),alt:d.name,draggable:"false",loading:"lazy"},null,8,re),n("img",{class:"active",src:S(d.name),alt:d.name,draggable:"false",loading:"lazy"},null,8,le)]),_:2},1032,["to"])]))),128))]),_:1},512)):y("",!0)])])}}},ze=U(ie,[["__scopeId","data-v-1f99dcd2"]]),ce={__name:"Scroller",props:{gap:{type:Number,default:8}},setup(v,{expose:a}){const b=v,C=I(()=>({gap:`${b.gap}px`})),c=L();let h=!1,m,x;const S=e=>{h=!0,m=e.pageX-c.value.offsetLeft,x=c.value.scrollLeft},g=e=>{if(!h)return;e.preventDefault();const l=(e.pageX-c.value.offsetLeft-m)*3;c.value.scrollLeft=x-l},o=e=>{h=!1},p=e=>new Promise(t=>{setTimeout(()=>{t()},e)}),_=L(!1);return a({prev:async()=>{if(_.value)return;const e=c.value.children,t=c.value.scrollWidth>c.value.clientWidth;if(!e.length<0||!t)return;_.value=!0,await p(30);const l=e[0].clientWidth+b.gap;c.value.scrollLeft>=0&&(c.value.scrollLeft-=l),await p(350),_.value=!1},next:async()=>{if(_.value)return;const e=c.value.children,t=c.value.scrollWidth>c.value.clientWidth;if(!e.length<0||!t)return;_.value=!0,await p(30);const l=e[0].clientWidth+b.gap;c.value.scrollLeft<c.value.scrollWidth&&(c.value.scrollLeft+=l),await p(350),_.value=!1}}),(e,t)=>(i(),u("div",{class:T(["w-full flex overflow-x-auto none-scrollbar padd-custom",{"scroll-smooth":r(_)}]),style:W(r(C)),ref_key:"container",ref:c,onMousedown:S,onMouseleave:o,onMouseup:o,onMousemove:g},[H(e.$slots,"default")],38))}},de={key:0},ue={key:0},me={key:0,class:"flex items-center justify-between gap-4"},pe={class:"home-section-title"},_e={class:"text"},ve={class:"flex items-center"},ge={class:"flex gap-2"},fe=["onClick"],he={class:"game_container_game_img_box"},ye={key:0,class:"game_container_tag new"},be={class:"game_container_game_img_box_relative"},xe=["src","alt"],ke={key:0,class:"maintenance_box"},$e={class:"maintenance_content"},we=["src"],Ce={class:"maintenance_text"},Le={key:0,class:"rtp_box"},Se={key:1},Ne={class:"none-scrollbar mt-2 flex gap-3 overflow-x-auto"},Pe={class:"game-slide flex-shrink-0 !pt-0"},De={class:"game_container_game_btn flex-shrink-0 !pt-0"},Ee={__name:"MerchantGameSlider",props:{containerClass:String,type:{type:String,required:!0},aspectRatio:Number,rows:{type:Number,default:1},more_url:String,provider:String,gameID:String,isFromGamePage:Boolean},setup(v){const a=v,{$resolveUrl:b}=R(),C=B(),{localeCurrency:c}=V(),h=()=>a.aspectRatio?{paddingTop:`calc(100% / ${a.aspectRatio})`}:{paddingTop:"100%"},m=L(),x=K(),S=e=>e?e.includes("https")?e:`https://d204vpor8h38p3.cdnfiles.club/220x290/${e}`:`/${x.public.MERCHANT}/img/logo.png`,g=j();O();const o=Y(),p=z(),_=I(()=>
1{if(!p.ready||!o[a.type].ready)return[];let e=[];if(a.provider){if(Array.isArray(o[a.type].list))for(let s=0;s<o[a.type].list.length;s++)s%a.rows==0?e.push([o[a.type].list[s]]):e[e.length-1].push(o[a.type].list[s]);else if(typeof o[a.type].list=="object")for(let s=0;s<o[a.type].list[a.provider.toUpperCase()].length;s++)s%a.rows==0?e.push([o[a.type].list[a.provider.toUpperCase()][s]]):e[e.length-1].push(o[a.type].list[a.provider.toUpperCase()][s])}else for(let s=0;s<o[a.type].list.length;s++)s%a.rows==0?e.push([o[a.type].list[s]]):e[e.length-1].push(o[a.type].list[s]);if(a.isFromGamePage){var t=a.gameID,l=e.findIndex(s=>s[0].game_id==t);l!=-1&&e.splice(l,1),e.sort((s,k)=>(k[0].hot_game&&k[0].hot_game==1)-(s[0].hot_game&&s[0].hot_game==1))}return e}),N=e=>{var t={provider_name:e.provider_name,currency:c.value,provider_id:e.provider_id,game_id:e.game_id,maintenance:g.maintenanceData[e.provider_id],img:e.img,game_name:e.game_name,provider_fullname:e.fullname,category:a.type};o.goCasinoPage(t)},P=e=>{if(p.data[a.type]){var t=p.data[a.type].find(l=>l.providerName==e);return!!(t&&t.id&&g.maintenanceData&&g.maintenanceData[t.id])}return!1};return(e,t)=>{const l=A,s=X,k=ce;return r(o)[v.type].noFound?y("",!0):(i(),u("div",de,[!r(o)[v.type].getting&&r(o)[v.type].ready?(i(),u("div",ue,[r(_).length>0?(i(),u("div",me,[n("div",pe,[n("div",_e,[H(e.$slots,"default",{},void 0,!0)]),n("div",ve,[n("button",{class:"game_slider g-prev",onClick:t[0]||(t[0]=(...d)=>r(m).prev&&r(m).prev(...d))},[w(l,{iconClass:"icon-angle-back"})]),n("button",{class:"game_slider g-next",onClick:t[1]||(t[1]=(...d)=>r(m).next&&r(m).next(...d))},[w(l,{iconClass:"icon-angle-next"})])])]),n("div",ge,[v.more_url?(i(),G(s,{key:0,to:r(C)(v.more_url),class:"btn_more"},{default:M(()=>[F($(e.$t("see_all")),1)]),_:1},8,["to"])):y("",!0)])])):y("",!0),r(_).length>0?(i(),u("div",{key:1,class:T(["md:mt-2",v.containerClass])},[w(k,{ref_key:"gameCarousel",ref:m,gap:12},{default:M(()=>[(i(!0),u(D,null,E(r(_),d=>(i(),u("div",{key:d,class:"game-slide flex-shrink-0 pb-1 pt-3"},[(i(!0),u(D,null,E(d,(f,Me)=>(i(),u("div",{key:f.id,class:T(["game_container_game_btn logo-placeholder !pt-0",f.rtp?"is_rtp":""]),style:W(`--logo: url('${e.$pub("/img/logo.png")}')`),onClick:We=>N(f)},[n("div",{style:W(h())},[n("div",he,[f.new==1&&!v.isFromGamePage?(i(),u("div",ye,$(e.$t("new")),1)):y("",!0),n("div",be,[n("img",{class:"game_container_game_img",src:S(f.img),alt:`${f.img}`,draggable:"false",loading:"lazy"},null,8,xe)])]),P(f.provider_name)?(i(),u("div",ke,[n("div",$e,[n("img",{class:"maintenance_icon",src:`${r(x).public.STATIC_ROOT}img/icons/warning.webp`,alt:"warning",draggable:"false",loading:"lazy"},null,8,we),n("div",Ce,$(e.$t("under_maintenance")),1)])])):y("",!0)],4),f.rtp?(i(),u("div",Le,$(e.$t("rtp"))+" "+$(e.$fn(f.rtp,2)),1)):y("",!0)],14,fe))),128))]))),128))]),_:1},512)],2)):y("",!0)])):(i(),u("div",Se,[t[2]||(t[2]=n("div",{class:"skeleton h-6"},null,-1)),n("div",Ne,[(i(),u(D,null,E(11,d=>n("div",Pe,[(i(),u(D,null,E(2,f=>n("div",De,[n("div",{style:W(h()),class:"skeleton"},null,4)])),64))])),64))])]))]))}}},Ae=U(Ee,[["__scopeId","data-v-c723cc30"]]);export{ze as _,Ae as a};
2//# sourceMappingURL=MerchantGameSlider-rljhQBsY-179145342.js.map

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.