1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4750],{94750:function(e,t,r){r.r(t),r.d(t,{default:function(){return h}});var i=r(57437),o=r(2265),n=r(60033),s=r(76975),l=r(57099),d=r(27050),a=r(12713),u=r(19643),c=r(92566),p=r(67116),v=r(1899),g=r(46387);function h(e){let{data:t,setSelectedOption:r,selectedOption:h,title:x,showAmount:m,setGames:w,setCurrentPage:f,setLoading:j,currentPage:b}=e,{t:Z}=(0,n.i)(),[C,S]=(0,o.useState)({}),k=e=>{S(t=>({...t,[e]:!0}))},_=e=>{if(!e){r(null),f(1),w([]);return}h===e.providerSlug?r(null):r(e.providerSlug),f(1),w([])};return(0,i.jsx)(d.Z,{id:"provider-filter",options:t,value:t.find(e=>e.providerSlug===h)||null,getOptionLabel:e=>e.providerName,isOptionEqualToValue:(e,t)=>e._id===t._id,filterOptions:(e,t)=>{let{inputValue:r}=t,i=r.toLowerCase();return e.filter(e=>{var t;return null===(t=e.providerName)||void 0===t?void 0:t.toLowerCase().includes(i)}).sort((e,t)=>{var r,o;let n=null===(r=e.providerName)||void 0===r?void 0:r.toLowerCase().startsWith(i),s=null===(o=t.providerName)||void 0===o?void 0:o.toLowerCase().startsWith(i);return n&&!s?-1:!n&&s?1:0})},onChange:(e,t)=>
1{_(t)},style:{width:"auto"},renderInput:e=>(0,i.jsx)(a.Z,{...e,label:h?(0,i.jsxs)(u.Z,{direction:"row",alignItems:"center",spacing:1,sx:{color:"text.disabled"},children:[(0,i.jsx)(s.Z,{icon:"hugeicons:joystick-02",width:24,sx:{color:"text.disabled"}})," ",Z("casino.tabs.providers")]}):Z("casino.allProviders"),variant:"outlined"}),renderTags:()=>null,disableCloseOnSelect:!1,renderOption:(e,t)=>{var r,n;return(0,o.createElement)("li",{...e,key:t._id},(0,i.jsxs)(u.Z,{direction:"row",alignItems:"center",width:"100%",children:[(0,i.jsx)(c.Z,{checked:h===t.providerSlug,onChange:e=>{e.stopPropagation(),_(t)}}),(0,i.jsxs)(u.Z,{width:"100%",direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(u.Z,{direction:"row",alignItems:"center",children:[(0,i.jsx)(p.Z,{src:C[null!==(n=t.providerSlug)&&void 0!==n?n:"default"]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat("https://img.xyes.com/","assets/images/providers/logos/").concat(null===(r=t.providerSlug)||void 0===r?void 0:r.split("_")[1],".png"),sx:{mr:2,height:28,width:28,borderRadius:0},onError:()=>{var e;return k(null!==(e=t.providerSlug)&&void 0!==e?e:"default")}}),t.providerName]}),m&&(0,i.jsx)(v.Z,{children:t.totalGames})]})]}))},noOptionsText:(0,i.jsx)(u.Z,{direction:"column",alignItems:"center",justifyContent:"center",width:"100%",children:(0,i.jsx)(g.Z,{variant:"h6",gutterBottom:!0,children:Z("wallet.noResultsFunds")})}),ListboxProps:{sx:(0,l.Tw)("300px")}})}}}]);
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.