@everymatrix/casino-filter 1.7.3 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -625,20 +625,20 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
625
625
  PERFORMANCE OF THIS SOFTWARE.
626
626
  ***************************************************************************** */function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}const Vr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Xr(){return Vr}const zr=Xe(!1);let Kr;const Wr=Xe(null);function Yr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Zr(e,t=Xr().fallbackLocale){const r=Yr(e);return t?[...new Set([...r,...Yr(t)])]:r}function qr(){return null!=Kr?Kr:void 0}Wr.subscribe((e=>{Kr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Jr=Object.assign(Object.assign({},Wr),{set:e=>{if(e&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Nr(r))return r}}(e)&&kr(e)){const{loadingDelay:t}=Xr();let r;return"undefined"!=typeof window&&null!=qr()&&t?r=window.setTimeout((()=>zr.set(!0)),t):zr.set(!0),$r(e).then((()=>{Wr.set(e)})).finally((()=>{clearTimeout(r),zr.set(!1)}))}return Wr.set(e)}}),Qr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},en=(e,t)=>{const{formats:r}=Xr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},tn=Qr((e=>{var{locale:t,format:r}=e,n=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=en("number",r)),new Intl.NumberFormat(t,n)})),rn=Qr((e=>{var{locale:t,format:r}=e,n=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=en("date",r):0===Object.keys(n).length&&(n=en("date","short")),new Intl.DateTimeFormat(t,n)})),nn=Qr((e=>{var{locale:t,format:r}=e,n=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=en("time",r):0===Object.keys(n).length&&(n=en("time","short")),new Intl.DateTimeFormat(t,n)})),on=Qr(((e,t=qr())=>new Cr(e,t,Xr().formats,{ignoreTag:Xr().ignoreTag}))),sn=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=qr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ir(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(o=null!==(i=null===(n=(r=Xr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==o?o:e;if(!a)return u;let h=u;try{h=on(u,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},an=(e,t)=>((e={})=>{var{locale:t=qr()}=e,r=jr(e,["locale"]);return nn(Object.assign({locale:t},r))})(t).format(e),ln=(e,t)=>((e={})=>{var{locale:t=qr()}=e,r=jr(e,["locale"]);return rn(Object.assign({locale:t},r))})(t).format(e),cn=(e,t)=>((e={})=>{var{locale:t=qr()}=e,r=jr(e,["locale"]);return tn(Object.assign({locale:t},r))})(t).format(e),un=(e,t=qr())=>Ir(e,t),hn=ze([Jr,xr],(()=>sn));ze([Jr],(()=>an)),ze([Jr],(()=>ln)),ze([Jr],(()=>cn)),ze([Jr,xr],(()=>un)),window.emWidgets={topic:(e,t=0)=>{if(-1==$e.indexOf(e)){let r=new Ge(t);je[e]=r,$e.push(e)}return je[e]}};function fn(e,t){Mr(e,t)}const pn={en:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},zh:{Translations:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"}},de:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},it:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},fr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},es:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},tr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ru:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ro:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hu:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pt:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}}};
627
627
  /* src/CasinoFilter.svelte generated by Svelte v3.48.0 */function dn(e,t,r){const n=e.slice();return n[35]=t[r],n[36]=t,n[37]=r,n}
628
- // (166:4) {#if !isLoading}
628
+ // (164:4) {#if !isLoading}
629
629
  function mn(e){let t,r,i,o,s,a,l,c,E,_,T,w,A,B,S,H,P,C,L,O,I,F,x,N,R,M,U,D,k,G,$,j=/*$_*/e[11]("Translations.filterby")+"",V=/*$_*/e[11]("Translations.providers")+"",X=/*$_*/e[11]("Translations.clear")+"";function z(e,t){/*fullSelection*/
630
630
  return e[7]?gn:bn}let K=z(e),W=K(e),Y=/*vendorArray*/e[5],Z=[];for(let t=0;t<Y.length;t+=1)Z[t]=_n(dn(e,Y,t));return{c(){t=p("div"),r=p("div"),i=p("div"),o=d("svg"),s=d("path"),a=y(),l=p("div"),c=p("span"),E=m(j),_=y(),T=p("div"),w=p("span"),A=m(V),B=y(),W.c(),S=y(),H=p("span"),P=d("svg"),C=d("path"),I=y(),F=p("div"),x=p("ul");for(let e=0;e<Z.length;e+=1)Z[e].c();N=y(),R=p("button"),M=m(X),g(s,"id","noun_filter_736223"),g(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),g(s,"transform","translate(-5 -6.2)"),g(s,"fill","#fff"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","16"),g(o,"height","16"),g(o,"viewBox","0 0 16 16"),g(c,"class","FilterName"),g(T,"class","FilterValueContainer"),g(l,"class","FilterTextContainer"),g(i,"class","FilterMainArea"),g(C,"id","arrow"),g(C,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),g(C,"transform","translate(-274.511 -441.088)"),g(C,"fill","#d1d1d1"),g(P,"xmlns","http://www.w3.org/2000/svg"),g(P,"width","14"),g(P,"height","6.835"),g(P,"viewBox","0 0 14 6.835"),g(H,"class",L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":"")),g(r,"class",O="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":"")),g(x,"class","FilterDropdown"),g(R,"class","ClearFilters"),R.disabled=U=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length,g(F,"class",D="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":"")),g(t,"class",k="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))},m(n,f){h(n,t,f),u(t,r),u(r,i),u(i,o),u(o,s),u(i,a),u(i,l),u(l,c),u(c,E),u(l,_),u(l,T),u(T,w),u(w,A),u(T,B),W.m(T,null),u(r,S),u(r,H),u(H,P),u(P,C),u(t,I),u(t,F),u(F,x);for(let e=0;e<Z.length;e+=1)Z[e].m(x,null);u(F,N),u(F,R),u(R,M),G||($=[b(r,"click",/*click_handler*/e[22]),b(R,"click",/*click_handler_2*/e[25])],G=!0)},p(e,n){if(/*$_*/2048&n[0]&&j!==(j=/*$_*/e[11]("Translations.filterby")+"")&&v(E,j),/*$_*/2048&n[0]&&V!==(V=/*$_*/e[11]("Translations.providers")+"")&&v(A,V),K===(K=z(e))&&W?W.p(e,n):(W.d(1),W=K(e),W&&(W.c(),W.m(T,null))),/*isFilterActive*/16&n[0]&&L!==(L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":""))&&g(H,"class",L),/*isFilterActive*/16&n[0]&&O!==(O="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":""))&&g(r,"class",O),/*filterbylogo, vendorArray, filterByVendors*/8228&n[0]){let t;for(Y=/*vendorArray*/e[5],t=0;t<Y.length;t+=1){const r=dn(e,Y,t);Z[t]?Z[t].p(r,n):(Z[t]=_n(r),Z[t].c(),Z[t].m(x,null))}for(;t<Z.length;t+=1)Z[t].d(1);Z.length=Y.length}/*$_*/2048&n[0]&&X!==(X=/*$_*/e[11]("Translations.clear")+"")&&v(M,X),/*fullSelection, selectedVendorArray, vendorArray*/224&n[0]&&U!==(U=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length)&&(R.disabled=U),/*isFilterActive*/16&n[0]&&D!==(D="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":""))&&g(F,"class",D),/*addfilterselector, addsortingselector*/3&n[0]&&k!==(k="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))&&g(t,"class",k)},d(e){e&&f(t),W.d(),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(Z,e),G=!1,n($)}}}
631
- // (163:2) {#if hasErrors}
631
+ // (161:2) {#if hasErrors}
632
632
  function yn(e){let t,r,n=/*$_*/e[11]("casinoPage.500")+"";return{c(){t=p("p"),r=m(n),g(t,"class","SearchLoading"),g(t,"part","SearchLoading")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*$_*/2048&t[0]&&n!==(n=/*$_*/e[11]("casinoPage.500")+"")&&v(r,n)},d(e){e&&f(t)}}}
633
- // (179:14) {:else}
633
+ // (177:14) {:else}
634
634
  function bn(e){let t,r;return{c(){t=p("span"),r=m(/*selectionNumber*/e[8]),g(t,"class","FilterCounter")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*selectionNumber*/256&t[0]&&v(r,/*selectionNumber*/e[8])},d(e){e&&f(t)}}}
635
- // (177:14) {#if fullSelection}
635
+ // (175:14) {#if fullSelection}
636
636
  function gn(e){let t,r,n=/*$_*/e[11]("Translations.all")+"";return{c(){t=p("span"),r=m(n),g(t,"class","FilterCounter")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*$_*/2048&t[0]&&n!==(n=/*$_*/e[11]("Translations.all")+"")&&v(r,n)},d(e){e&&f(t)}}}
637
- // (201:50)
637
+ // (199:50)
638
638
  function vn(e){let t,r;return{c(){t=p("img"),l(t.src,r=/*vendor*/e[35].logo)||g(t,"src",r),g(t,"alt","vendor logo")},m(e,r){h(e,t,r)},p(e,n){/*vendorArray*/32&n[0]&&!l(t.src,r=/*vendor*/e[35].logo)&&g(t,"src",r)},d(e){e&&f(t)}}}
639
- // (199:16) {#if filterbylogo === "false"}
639
+ // (197:16) {#if filterbylogo === "false"}
640
640
  function En(e){let t,r,n=/*vendor*/e[35].name+"";return{c(){t=p("span"),r=m(n)},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*vendorArray*/32&t[0]&&n!==(n=/*vendor*/e[35].name+"")&&v(r,n)},d(e){e&&f(t)}}}
641
- // (194:10) {#each vendorArray as vendor}
641
+ // (192:10) {#each vendorArray as vendor}
642
642
  function _n(e){let t,r,i,o,s,a,l,c,d,m,v,E;function _(){
643
643
  /*input_change_handler*/e[23].call(i,/*each_value*/e[36],/*vendor_index*/e[37])}function T(){/*click_handler_1*/
644
644
  return e[24](/*vendor*/e[35])}function w(e,t){/*filterbylogo*/
@@ -655,5 +655,7 @@ T[d]&&(T={[d]:[]});const P=()=>{r(4,g=!g)},C=e=>{let t=localStorage.getItem("ven
655
655
  // update filters value
656
656
  r(7,A=_.length===E.length||0==_.length),r(8,B=_.length)},O=()=>{const e=new URL(`${a}/casino/vendors`);e.searchParams.append("fields","id,name,logo,subVendors"),e.searchParams.append("language",u),e.searchParams.append("datasource",l),e.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(v)),(d.match(/\$/g)||[]).length>1?(e.searchParams.append("filter",`games(subGroups=${d})`),e.searchParams.append("subVendors",`games(subGroups=${d})`)):e.searchParams.append("filter",`games(groups=${d})`),(e=>{r(9,S=!0),new Promise(((t,n)=>{fetch(e).then((e=>e.json())).then((e=>{e=e.items,t(e.items),r(6,_=[]);let n=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));e.forEach((e=>{var t;n||(n={currentCategoryId:[]}),(null===(t=n[d])||void 0===t?void 0:t.indexOf(e.id))>=0?(e.isFilterSelected=!0,_.push(e)):e.isFilterSelected=!1})),r(5,E=e),
657
657
  // needed to force the update of the filters value
658
- L()})).catch((e=>{console.error(e),r(10,H=!0),n(e)})).finally((()=>{r(9,S=!1)}))}))})(e)},I=()=>{r(9,S=!0),r(6,_=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(T={[d]:_.map((e=>e.id))})),E.forEach((e=>e.isFilterSelected=!1)),setTimeout((()=>{r(9,S=!1)}),50),window.postMessage({type:"ApplyFilters"},window.location.href),r(7,A=!0),r(4,g=!1)};return e.$$set=e=>{"endpoint"in e&&r(15,a=e.endpoint),"datasource"in e&&r(16,l=e.datasource),"lang"in e&&r(17,u=e.lang),"translationurl"in e&&r(18,h=e.translationurl),"clientstyling"in e&&r(19,f=e.clientstyling),"clientstylingurl"in e&&r(20,p=e.clientstylingurl),"categoryid"in e&&r(21,d=e.categoryid),"addfilterselector"in e&&r(0,m=e.addfilterselector),"addsortingselector"in e&&r(1,y=e.addsortingselector),"filterbylogo"in e&&r(2,b=e.filterbylogo)},e.$$.update=()=>{/*endpoint, datasource, categoryid, filterbylogo*/2195460&e.$$.dirty[0]&&a&&l&&d&&b&&O(),/*clientstyling, customStylingContainer*/524296&e.$$.dirty[0]&&f&&s&&(()=>{let e=document.createElement("style");e.innerHTML=f,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048584&e.$$.dirty[0]&&p&&s&&(()=>{let e=document.createElement("style");fetch(new URL(p)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&h&&fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{fn(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,b,s,g,E,_,A,B,S,H,n,P,C,I,a,l,u,h,f,p,d,()=>P(),function(e,t){e[t].isFilterSelected=this.checked,r(5,E)},e=>C(e),()=>I(),function(e){w[e?"unshift":"push"]((()=>{s=e,r(3,s)}))}]}class An extends R{constructor(e){super(),this.shadowRoot.innerHTML='<style>.FilterContainer{color:#fff;position:relative;z-index:16}.FilterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all .5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:#58586b;background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem{position:relative}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid #D0046C}.FilterItem input:checked~.FiltersCheckmark{background-color:#D0046C;border:1px solid #D0046C}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin:0 15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid #fff}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{display:grid;grid-template-columns:minmax(150px, 150px) minmax(150px, 150px);gap:30px;margin-block-start:0}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{grid-template-columns:1fr}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:10px 25px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}}</style>',N(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},wn,Tn,o,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["endpoint","datasource","lang","translationurl","clientstyling","clientstylingurl","categoryid","addfilterselector","addsortingselector","filterbylogo"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),O()}get datasource(){return this.$$.ctx[16]}set datasource(e){this.$$set({datasource:e}),O()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),O()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}get categoryid(){return this.$$.ctx[21]}set categoryid(e){this.$$set({categoryid:e}),O()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(e){this.$$set({addfilterselector:e}),O()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(e){this.$$set({addsortingselector:e}),O()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(e){this.$$set({filterbylogo:e}),O()}}return!customElements.get("casino-filter")&&customElements.define("casino-filter",An),An}));
658
+ L()})).catch((e=>{console.error(e),r(10,H=!0),n(e)})).finally((()=>{r(9,S=!1)}))}))})(e)},I=()=>{r(6,_=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(T={[d]:_.map((e=>e.id))})),E.forEach((e=>e.isFilterSelected=!1)),
659
+ // this reassignation of the pointer value is required in order to have Svelte trigger a re-render
660
+ r(5,E),window.postMessage({type:"ApplyFilters"},window.location.href),r(7,A=!0),r(4,g=!1)};return e.$$set=e=>{"endpoint"in e&&r(15,a=e.endpoint),"datasource"in e&&r(16,l=e.datasource),"lang"in e&&r(17,u=e.lang),"translationurl"in e&&r(18,h=e.translationurl),"clientstyling"in e&&r(19,f=e.clientstyling),"clientstylingurl"in e&&r(20,p=e.clientstylingurl),"categoryid"in e&&r(21,d=e.categoryid),"addfilterselector"in e&&r(0,m=e.addfilterselector),"addsortingselector"in e&&r(1,y=e.addsortingselector),"filterbylogo"in e&&r(2,b=e.filterbylogo)},e.$$.update=()=>{/*endpoint, datasource, categoryid, filterbylogo*/2195460&e.$$.dirty[0]&&a&&l&&d&&b&&O(),/*clientstyling, customStylingContainer*/524296&e.$$.dirty[0]&&f&&s&&(()=>{let e=document.createElement("style");e.innerHTML=f,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048584&e.$$.dirty[0]&&p&&s&&(()=>{let e=document.createElement("style");fetch(new URL(p)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&h&&fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{fn(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,b,s,g,E,_,A,B,S,H,n,P,C,I,a,l,u,h,f,p,d,()=>P(),function(e,t){e[t].isFilterSelected=this.checked,r(5,E)},e=>C(e),()=>I(),function(e){w[e?"unshift":"push"]((()=>{s=e,r(3,s)}))}]}class An extends R{constructor(e){super(),this.shadowRoot.innerHTML='<style>.FilterContainer{color:#fff;position:relative;z-index:16}.FilterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem{position:relative}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid #D0046C}.FilterItem input:checked~.FiltersCheckmark{background-color:#D0046C;border:1px solid #D0046C}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin:0 15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid #fff}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{display:grid;grid-template-columns:minmax(150px, 150px) minmax(150px, 150px);gap:30px;margin-block-start:0}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{grid-template-columns:1fr}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:10px 25px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}}</style>',N(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},wn,Tn,o,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["endpoint","datasource","lang","translationurl","clientstyling","clientstylingurl","categoryid","addfilterselector","addsortingselector","filterbylogo"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),O()}get datasource(){return this.$$.ctx[16]}set datasource(e){this.$$set({datasource:e}),O()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),O()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}get categoryid(){return this.$$.ctx[21]}set categoryid(e){this.$$set({categoryid:e}),O()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(e){this.$$set({addfilterselector:e}),O()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(e){this.$$set({addsortingselector:e}),O()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(e){this.$$set({filterbylogo:e}),O()}}return!customElements.get("casino-filter")&&customElements.define("casino-filter",An),An}));
659
661
  //# sourceMappingURL=casino-filter.js.map