@everymatrix/casino-sort 1.10.6 → 1.11.1

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.
@@ -92,12 +92,12 @@ const t=!D.length;for(const t of o)t[1](),D.push(t,e);if(t){for(let t=0;t<D.leng
92
92
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
93
93
  // Callbacks might already be placed in the queue which doesn't know it should no longer
94
94
  // invoke this derived store.
95
- i=!1}},{subscribe:G(i,c).subscribe};var c}var $=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===k}(t)}
95
+ i=!1}},{subscribe:G(i,c).subscribe};var c}var k=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===$}(t)}
96
96
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
97
- (t)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(t,e){return!1!==e.clone&&e.isMergeableObject(t)?z((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function j(t,e,r){return t.concat(e).map((function(t){return F(t,r)}))}function V(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}
97
+ (t)};var $="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(t,e){return!1!==e.clone&&e.isMergeableObject(t)?z((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function j(t,e,r){return t.concat(e).map((function(t){return F(t,r)}))}function V(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}
98
98
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
99
99
  function X(t,e,r){var n={};return r.isMergeableObject(t)&&V(t).forEach((function(e){n[e]=F(t[e],r)})),V(e).forEach((function(o){(function(t,e){return Z(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
100
- })(t,o)||(Z(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return z;var r=e.customMerge(t);return"function"==typeof r?r:z}(o,r)(t[o],e[o],r):n[o]=F(e[o],r))})),n}function z(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||$,
100
+ })(t,o)||(Z(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return z;var r=e.customMerge(t);return"function"==typeof r?r:z}(o,r)(t[o],e[o],r):n[o]=F(e[o],r))})),n}function z(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||k,
101
101
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
102
102
  // implementations can use it. The caller may not replace it.
103
103
  r.cloneUnlessOtherwiseSpecified=F;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):X(t,e,r):F(e,r)}z.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return z(t,r,e)}),{})};var K=z,Y=function(t,e){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Y(t,e)};function W(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Y(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var J,Q,q,tt=function(){return tt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tt.apply(this,arguments)};function et(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}
@@ -306,7 +306,7 @@ var Ct=!!String.prototype.startsWith,Ot=!!String.fromCodePoint,Mt=!!Object.fromE
306
306
  * Pattern_Syntax support: not supported
307
307
  * See https://github.com/formatjs/formatjs/issues/2822
308
308
  */
309
- xt="a"===(null===(_t=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_t?void 0:_t[0])}catch(t){xt=!1}var $t,kt=Ct?// Native
309
+ xt="a"===(null===(_t=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_t?void 0:_t[0])}catch(t){xt=!1}var kt,$t=Ct?// Native
310
310
  function(t,e,r){return t.startsWith(e,r)}:// For IE11
311
311
  function(t,e,r){return t.slice(r,r+e.length)===e},Ft=Ot?String.fromCodePoint:// IE11
312
312
  function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},jt=
@@ -324,9 +324,9 @@ function zt(t,e){return new RegExp(t,e)}
324
324
  // #endregion
325
325
  if(xt){
326
326
  // Native
327
- var Kt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$t=function(t,e){var r;return Kt.lastIndex=e,null!==(r=Kt.exec(t)[1])&&void 0!==r?r:""}}else
327
+ var Kt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kt=function(t,e){var r;return Kt.lastIndex=e,null!==(r=Kt.exec(t)[1])&&void 0!==r?r:""}}else
328
328
  // IE11
329
- $t=function(t,e){for(var r=[];;){var n=Vt(t,e);if(void 0===n||Qt(n)||qt(n))break;r.push(n),e+=n>=65536?2:1}return Ft.apply(void 0,r)};var Yt=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(J.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Wt(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:Q.pound,location:It(s,this.clonePosition())})}}}return{val:n,err:null}},
329
+ kt=function(t,e){for(var r=[];;){var n=Vt(t,e);if(void 0===n||Qt(n)||qt(n))break;r.push(n),e+=n>=65536?2:1}return Ft.apply(void 0,r)};var Yt=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(J.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Wt(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:Q.pound,location:It(s,this.clonePosition())})}}}return{val:n,err:null}},
330
330
  /**
331
331
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
332
332
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -393,7 +393,7 @@ this.bumpSpace(),this.isEOF()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,th
393
393
  * Advance the parser until the end of the identifier, if it is currently on
394
394
  * an identifier character. Return an empty string otherwise.
395
395
  */
396
- t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=$t(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:It(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
396
+ t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=kt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:It(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
397
397
  // Parse this range:
398
398
  // {name, type, style}
399
399
  // ^---^
@@ -405,7 +405,7 @@ return this.error(J.EXPECT_ARGUMENT_TYPE,It(i,a));case"number":case"date":case"t
405
405
  // ^-------^
406
406
  this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Xt(b.val)).length)return this.error(J.EXPECT_ARGUMENT_STYLE,It(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:It(h,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var c=It(n,this.clonePosition());
407
407
  // Extract style or skeleton
408
- if(l&&kt(null==l?void 0:l.style,"::",0)){
408
+ if(l&&$t(null==l?void 0:l.style,"::",0)){
409
409
  // Skeleton starts with `::`.
410
410
  var u=Zt(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?b:{val:{type:Q.number,value:r,location:c,style:b.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,c);var f=u;
411
411
  // Get "best match" pattern only if locale is passed, if not, let it
@@ -482,7 +482,7 @@ this.position.offset+=t<65536?1:2)}},
482
482
  * following the prefix and return true. Otherwise, don't bump the parser
483
483
  * and return false.
484
484
  */
485
- t.prototype.bumpIf=function(t){if(kt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
485
+ t.prototype.bumpIf=function(t){if($t(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
486
486
  /**
487
487
  * Bump the parser until the pattern character is found and return `true`.
488
488
  * Otherwise bump to the end of the file and return `false`.
@@ -580,15 +580,15 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
580
580
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
581
581
  Copyrights licensed under the New BSD License.
582
582
  See the accompanying LICENSE file for terms.
583
- */const Ae={},He=(t,e,r)=>r?(e in Ae||(Ae[e]={}),t in Ae[e]||(Ae[e][t]=r),r):r,Be=(t,e)=>{if(null==e)return;if(e in Ae&&t in Ae[e])return Ae[e][t];const r=Fe(e);for(let n=0;n<r.length;n++){const o=Ne(r[n],t);if(o)return He(t,e,o)}};let _e;const we=G({});function Le(t){return t in _e}function Ne(t,e){if(!Le(t))return null;const r=function(t){return _e[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Pe(t,...e){delete Ae[t],we.update((r=>(r[t]=K.all([r[t]||{},...e]),r)))}x([we],(([t])=>Object.keys(t))),we.subscribe((t=>_e=t));const Ie={};function Ce(t){return Ie[t]}function Oe(t){return null!=t&&Fe(t).some((t=>{var e;return null===(e=Ce(t))||void 0===e?void 0:e.size}))}const Me={};function Re(t){if(!Oe(t))return t in Me?Me[t]:Promise.resolve();const e=function(t){return Fe(t).map((t=>{const e=Ce(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Me[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Ie[t].delete(e),0===Ie[t].size&&delete Ie[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Pe(t,...e)))}(t,e)))).then((()=>{if(Oe(t))return Re(t);delete Me[t]})),Me[t]}const Ue={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 De(){return Ue}const Ge=G(!1);let xe;const $e=G(null);function ke(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Fe(t,e=De().fallbackLocale){const r=ke(t);return e?[...new Set([...r,...ke(e)])]:r}function je(){return null!=xe?xe:void 0}$e.subscribe((t=>{xe=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ve={...$e,set:t=>{if(t&&function(t){if(null==t)return;const e=Fe(t);for(let t=0;t<e.length;t++){const r=e[t];if(Le(r))return r}}(t)&&Oe(t)){const{loadingDelay:e}=De();let r;return"undefined"!=typeof window&&null!=je()&&e?r=window.setTimeout((()=>Ge.set(!0)),e):Ge.set(!0),Re(t).then((()=>{$e.set(t)})).finally((()=>{clearTimeout(r),Ge.set(!1)}))}return $e.set(t)}},Ze=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Xe=(t,e)=>{const{formats:r}=De();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},ze=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return e&&(r=Xe("number",e)),new Intl.NumberFormat(t,r)})),Ke=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return e?r=Xe("date",e):0===Object.keys(r).length&&(r=Xe("date","short")),new Intl.DateTimeFormat(t,r)})),Ye=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return e?r=Xe("time",e):0===Object.keys(r).length&&(r=Xe("time","short")),new Intl.DateTimeFormat(t,r)})),We=Ze(((t,e=je())=>new Se(t,e,De().formats,{ignoreTag:De().ignoreTag}))),Je=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=je(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Be(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=De()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:t,defaultValue:h}))&&void 0!==o?o:h)&&void 0!==i?i:t;if(!a)return c;let u=c;try{u=We(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},Qe=(t,e)=>(({locale:t=je(),...e}={})=>Ye({locale:t,...e}))(e).format(t),qe=(t,e)=>(({locale:t=je(),...e}={})=>Ke({locale:t,...e}))(e).format(t),tr=(t,e)=>(({locale:t=je(),...e}={})=>ze({locale:t,...e}))(e).format(t),er=(t,e=je())=>Be(t,e),rr=x([Ve,we],(()=>Je));function nr(t,e){Pe(t,e)}x([Ve],(()=>Qe)),x([Ve],(()=>qe)),x([Ve],(()=>tr)),x([Ve,we],(()=>er));const or={en:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},zh:{Translations:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},de:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},it:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},fr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},es:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},tr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ru:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ro:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hu:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pt:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}}};
584
- /* src/CasinoSort.svelte generated by Svelte v3.58.0 */function ir(t,e,r){const n=t.slice();return n[25]=e[r],n}
585
- // (115:4) {#if !isLoading}
586
- function sr(t){let e,r,n,o,i,s,b,y,E,v,T,S,A,H,B,_,w,L,N,P,I,C,O,M,R,U,D,G,x=/*$_*/t[4]("Translations.sortby")+"",$=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("Translations.all"))+"",k=Object.values(/*vendorMap*/t[5]),F=[];for(let e=0;e<k.length;e+=1)F[e]=ar(ir(t,k,e));return{c(){e=c("div"),r=c("div"),n=c("div"),o=u("svg"),i=u("g"),s=u("path"),b=u("path"),y=u("path"),E=p(),v=c("div"),T=c("span"),S=f(x),A=p(),H=c("div"),B=c("span"),_=f($),w=p(),L=c("span"),N=u("svg"),P=u("path"),O=p(),M=c("div"),R=c("ul");for(let t=0;t<F.length;t+=1)F[t].c();g(s,"id","Path_5267"),g(s,"data-name","Path 5267"),g(s,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),g(s,"transform","translate(-206.448 0)"),g(s,"fill","#fff"),g(b,"id","Path_5268"),g(b,"data-name","Path 5268"),g(b,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),g(b,"transform","translate(0 0)"),g(b,"fill","#fff"),g(y,"id","Path_5269"),g(y,"data-name","Path 5269"),g(y,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),g(y,"transform","translate(-412.896 0)"),g(y,"fill","#fff"),g(i,"id","sortby"),g(i,"transform","translate(-306 -342)"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","20"),g(o,"height","20"),g(o,"viewBox","0 0 26.003 22.819"),g(T,"class","SorterName"),g(H,"class","SorterValueContainer"),g(v,"class","SorterTextContainer"),g(n,"class","SorterMainArea"),g(P,"id","arrow"),g(P,"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(P,"transform","translate(-274.511 -441.088)"),g(P,"fill","#d1d1d1"),g(N,"xmlns","http://www.w3.org/2000/svg"),g(N,"width","14"),g(N,"height","6.835"),g(N,"viewBox","0 0 14 6.835"),g(L,"class",I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":"")),g(r,"class",C="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":"")),g(R,"class","SorterDropdown"),g(M,"class",U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":"")),g(e,"class","SorterContainer")},m(h,c){l(h,e,c),a(e,r),a(r,n),a(n,o),a(o,i),a(i,s),a(i,b),a(i,y),a(n,E),a(n,v),a(v,T),a(T,S),a(v,A),a(v,H),a(H,B),a(B,_),a(r,w),a(r,L),a(L,N),a(N,P),a(e,O),a(e,M),a(M,R);for(let t=0;t<F.length;t+=1)F[t]&&F[t].m(R,null);D||(G=m(r,"click",/*click_handler*/t[15]),D=!0)},p(t,e){if(/*$_*/16&e&&x!==(x=/*$_*/t[4]("Translations.sortby")+"")&&d(S,x),/*vendorSortingBy, $_*/24&e&&$!==($=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("Translations.all"))+"")&&d(_,$),/*isSorterActive*/2&e&&I!==(I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":""))&&g(L,"class",I),/*isSorterActive*/2&e&&C!==(C="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":""))&&g(r,"class",C),/*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/120&e){let r;for(k=Object.values(/*vendorMap*/t[5]),r=0;r<k.length;r+=1){const n=ir(t,k,r);F[r]?F[r].p(n,e):(F[r]=ar(n),F[r].c(),F[r].m(R,null))}for(;r<F.length;r+=1)F[r].d(1);F.length=k.length}/*isSorterActive*/2&e&&U!==(U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":""))&&g(M,"class",U)},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(F,t),D=!1,G()}}}
587
- // (141:10) {#each Object.values(vendorMap) as sort}
588
- function ar(t){let e,r,n,o,i,s,u,d,b,y,E,v,T=/*sort*/t[25]+"";function S(){/*click_handler_1*/
589
- return t[16](/*sort*/t[25])}return{c(){e=c("li"),r=c("label"),n=c("input"),i=p(),s=c("span"),u=p(),d=c("span"),b=f(T),y=p(),g(n,"type","radio"),g(n,"name","radio"),n.value=/*sort*/t[25],n.checked=o=/*vendorSortingBy*/t[3]==/*sort*/t[25]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[25]==/*$_*/t[4]("Translations.all"),g(s,"class","SortersCheckmark"),g(r,"class","SorterLabel CustomRadioButton"),g(e,"class","SorterItem"),e.value=/*sort*/t[25]},m(t,o){l(t,e,o),a(e,r),a(r,n),a(r,i),a(r,s),a(r,u),a(r,d),a(d,b),a(e,y),E||(v=m(n,"click",S),E=!0)},p(e,r){t=e,/*vendorSortingBy, $_*/24&r&&o!==(o=/*vendorSortingBy*/t[3]==/*sort*/t[25]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[25]==/*$_*/t[4]("Translations.all"))&&(n.checked=o)},d(t){t&&h(e),E=!1,v()}}}function lr(e){let r;function n(t,e){if(!/*isLoading*/t[2])return sr}let o=n(e),i=o&&o(e);return{c(){r=c("div"),i&&i.c(),this.c=t},m(t,n){l(t,r,n),i&&i.m(r,null)
590
- /*div_binding*/,e[17](r)},p(t,[e]){o===(o=n(t))&&i?i.p(t,e):(i&&i.d(1),i=o&&o(t),i&&(i.c(),i.m(r,null)))},i:t,o:t,d(t){t&&h(r),i&&i.d()
591
- /*div_binding*/,e[17](null)}}}function hr(t,e,r){let n;var o,i;o=rr,i=t=>r(4,n=t),t.$$.on_destroy.push(s(o,i));let a,{lang:l=""}=e,{translationurl:h=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{addSorterSelector:f="false"}=e,{addsortingselector:p="false"}=e,{categoryid:m=""}=e,g=!1,d=!0,b="",y="All";!function({withLocale:t,translations:e}){Ve.subscribe((r=>{null==r&&(we.set(e),Ve.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
583
+ */const Ae={},He=(t,e,r)=>r?(e in Ae||(Ae[e]={}),t in Ae[e]||(Ae[e][t]=r),r):r,Be=(t,e)=>{if(null==e)return;if(e in Ae&&t in Ae[e])return Ae[e][t];const r=Fe(e);for(let n=0;n<r.length;n++){const o=Ne(r[n],t);if(o)return He(t,e,o)}};let _e;const we=G({});function Le(t){return t in _e}function Ne(t,e){if(!Le(t))return null;const r=function(t){return _e[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Pe(t,...e){delete Ae[t],we.update((r=>(r[t]=K.all([r[t]||{},...e]),r)))}x([we],(([t])=>Object.keys(t))),we.subscribe((t=>_e=t));const Ie={};function Ce(t){return Ie[t]}function Oe(t){return null!=t&&Fe(t).some((t=>{var e;return null===(e=Ce(t))||void 0===e?void 0:e.size}))}const Me={};function Re(t){if(!Oe(t))return t in Me?Me[t]:Promise.resolve();const e=function(t){return Fe(t).map((t=>{const e=Ce(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Me[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Ie[t].delete(e),0===Ie[t].size&&delete Ie[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Pe(t,...e)))}(t,e)))).then((()=>{if(Oe(t))return Re(t);delete Me[t]})),Me[t]}const Ue={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 De(){return Ue}const Ge=G(!1);let xe;const ke=G(null);function $e(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Fe(t,e=De().fallbackLocale){const r=$e(t);return e?[...new Set([...r,...$e(e)])]:r}function je(){return null!=xe?xe:void 0}ke.subscribe((t=>{xe=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ve={...ke,set:t=>{if(t&&function(t){if(null==t)return;const e=Fe(t);for(let t=0;t<e.length;t++){const r=e[t];if(Le(r))return r}}(t)&&Oe(t)){const{loadingDelay:e}=De();let r;return"undefined"!=typeof window&&null!=je()&&e?r=window.setTimeout((()=>Ge.set(!0)),e):Ge.set(!0),Re(t).then((()=>{ke.set(t)})).finally((()=>{clearTimeout(r),Ge.set(!1)}))}return ke.set(t)}},Ze=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Xe=(t,e)=>{const{formats:r}=De();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},ze=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return e&&(r=Xe("number",e)),new Intl.NumberFormat(t,r)})),Ke=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return e?r=Xe("date",e):0===Object.keys(r).length&&(r=Xe("date","short")),new Intl.DateTimeFormat(t,r)})),Ye=Ze((({locale:t,format:e,...r})=>{if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return e?r=Xe("time",e):0===Object.keys(r).length&&(r=Xe("time","short")),new Intl.DateTimeFormat(t,r)})),We=Ze(((t,e=je())=>new Se(t,e,De().formats,{ignoreTag:De().ignoreTag}))),Je=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=je(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Be(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(i=null!==(o=null===(n=(r=De()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:t,defaultValue:h}))&&void 0!==o?o:h)&&void 0!==i?i:t;if(!a)return c;let u=c;try{u=We(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},Qe=(t,e)=>(({locale:t=je(),...e}={})=>Ye({locale:t,...e}))(e).format(t),qe=(t,e)=>(({locale:t=je(),...e}={})=>Ke({locale:t,...e}))(e).format(t),tr=(t,e)=>(({locale:t=je(),...e}={})=>ze({locale:t,...e}))(e).format(t),er=(t,e=je())=>Be(t,e),rr=x([Ve,we],(()=>Je));function nr(t,e){Pe(t,e)}x([Ve],(()=>Qe)),x([Ve],(()=>qe)),x([Ve],(()=>tr)),x([Ve,we],(()=>er));const or={en:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},zh:{Translations:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},de:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},it:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},fr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},es:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},tr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ru:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ro:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hu:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pt:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}}};
584
+ /* src/CasinoSort.svelte generated by Svelte v3.58.0 */function ir(t,e,r){const n=t.slice();return n[23]=e[r],n}
585
+ // (113:4) {#if !isLoading}
586
+ function sr(t){let e,r,n,o,i,s,b,y,E,v,T,S,A,H,B,_,w,L,N,P,I,C,O,M,R,U,D,G,x=/*$_*/t[4]("Translations.sortby")+"",k=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("Translations.all"))+"",$=Object.values(/*vendorMap*/t[5]),F=[];for(let e=0;e<$.length;e+=1)F[e]=ar(ir(t,$,e));return{c(){e=c("div"),r=c("div"),n=c("div"),o=u("svg"),i=u("g"),s=u("path"),b=u("path"),y=u("path"),E=p(),v=c("div"),T=c("span"),S=f(x),A=p(),H=c("div"),B=c("span"),_=f(k),w=p(),L=c("span"),N=u("svg"),P=u("path"),O=p(),M=c("div"),R=c("ul");for(let t=0;t<F.length;t+=1)F[t].c();g(s,"id","Path_5267"),g(s,"data-name","Path 5267"),g(s,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),g(s,"transform","translate(-206.448 0)"),g(s,"fill","#fff"),g(b,"id","Path_5268"),g(b,"data-name","Path 5268"),g(b,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),g(b,"transform","translate(0 0)"),g(b,"fill","#fff"),g(y,"id","Path_5269"),g(y,"data-name","Path 5269"),g(y,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),g(y,"transform","translate(-412.896 0)"),g(y,"fill","#fff"),g(i,"id","sortby"),g(i,"transform","translate(-306 -342)"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","20"),g(o,"height","20"),g(o,"viewBox","0 0 26.003 22.819"),g(T,"class","SorterName"),g(H,"class","SorterValueContainer"),g(v,"class","SorterTextContainer"),g(n,"class","SorterMainArea"),g(P,"id","arrow"),g(P,"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(P,"transform","translate(-274.511 -441.088)"),g(P,"fill","#d1d1d1"),g(N,"xmlns","http://www.w3.org/2000/svg"),g(N,"width","14"),g(N,"height","6.835"),g(N,"viewBox","0 0 14 6.835"),g(L,"class",I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":"")),g(r,"class",C="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":"")),g(R,"class","SorterDropdown"),g(M,"class",U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":"")),g(e,"class","SorterContainer")},m(h,c){l(h,e,c),a(e,r),a(r,n),a(n,o),a(o,i),a(i,s),a(i,b),a(i,y),a(n,E),a(n,v),a(v,T),a(T,S),a(v,A),a(v,H),a(H,B),a(B,_),a(r,w),a(r,L),a(L,N),a(N,P),a(e,O),a(e,M),a(M,R);for(let t=0;t<F.length;t+=1)F[t]&&F[t].m(R,null);D||(G=m(r,"click",/*click_handler*/t[13]),D=!0)},p(t,e){if(/*$_*/16&e&&x!==(x=/*$_*/t[4]("Translations.sortby")+"")&&d(S,x),/*vendorSortingBy, $_*/24&e&&k!==(k=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("Translations.all"))+"")&&d(_,k),/*isSorterActive*/2&e&&I!==(I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":""))&&g(L,"class",I),/*isSorterActive*/2&e&&C!==(C="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":""))&&g(r,"class",C),/*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/120&e){let r;for($=Object.values(/*vendorMap*/t[5]),r=0;r<$.length;r+=1){const n=ir(t,$,r);F[r]?F[r].p(n,e):(F[r]=ar(n),F[r].c(),F[r].m(R,null))}for(;r<F.length;r+=1)F[r].d(1);F.length=$.length}/*isSorterActive*/2&e&&U!==(U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":""))&&g(M,"class",U)},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(F,t),D=!1,G()}}}
587
+ // (139:10) {#each Object.values(vendorMap) as sort}
588
+ function ar(t){let e,r,n,o,i,s,u,d,b,y,E,v,T=/*sort*/t[23]+"";function S(){/*click_handler_1*/
589
+ return t[14](/*sort*/t[23])}return{c(){e=c("li"),r=c("label"),n=c("input"),i=p(),s=c("span"),u=p(),d=c("span"),b=f(T),y=p(),g(n,"type","radio"),g(n,"name","radio"),n.value=/*sort*/t[23],n.checked=o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("Translations.all"),g(s,"class","SortersCheckmark"),g(r,"class","SorterLabel CustomRadioButton"),g(e,"class","SorterItem"),e.value=/*sort*/t[23]},m(t,o){l(t,e,o),a(e,r),a(r,n),a(r,i),a(r,s),a(r,u),a(r,d),a(d,b),a(e,y),E||(v=m(n,"click",S),E=!0)},p(e,r){t=e,/*vendorSortingBy, $_*/24&r&&o!==(o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("Translations.all"))&&(n.checked=o)},d(t){t&&h(e),E=!1,v()}}}function lr(e){let r;function n(t,e){if(!/*isLoading*/t[2])return sr}let o=n(e),i=o&&o(e);return{c(){r=c("div"),i&&i.c(),this.c=t},m(t,n){l(t,r,n),i&&i.m(r,null)
590
+ /*div_binding*/,e[15](r)},p(t,[e]){o===(o=n(t))&&i?i.p(t,e):(i&&i.d(1),i=o&&o(t),i&&(i.c(),i.m(r,null)))},i:t,o:t,d(t){t&&h(r),i&&i.d()
591
+ /*div_binding*/,e[15](null)}}}function hr(t,e,r){let n;var o,i;o=rr,i=t=>r(4,n=t),t.$$.on_destroy.push(s(o,i));let a,{lang:l=""}=e,{translationurl:h=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{categoryid:f=""}=e,p=!1,m=!0,g="",d="All";!function({withLocale:t,translations:e}){Ve.subscribe((r=>{null==r&&(we.set(e),Ve.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
592
592
  /*dictionary.set(translations);
593
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(or).forEach((t=>{nr(t,or[t])}));const E={All:n("Translations.all"),name:n("Translations.az"),isNew:n("Translations.newest"),"advancedTags(name(hot))":n("Translations.hottest")},T=t=>{r(3,y=t);let e=localStorage.getItem("vendorSortingBy");b=t;for(let e in E)if(E[e]===t){b=e;break}null==e?localStorage.setItem("vendorSortingBy",JSON.stringify({[m]:b})):(e=JSON.parse(e),e[m]=b,localStorage.setItem("vendorSortingBy",JSON.stringify(e))),window.postMessage({type:"ApplySorter",sortBy:b,itemId:m},window.location.href)},A=()=>{r(1,g=!g),window.postMessage({type:"SortingOpened"},window.location.href)},H=t=>{"FilterOpened"==t.data.type&&r(1,g=!1)};v((()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H)})));return t.$$set=t=>{"lang"in t&&r(8,l=t.lang),"translationurl"in t&&r(9,h=t.translationurl),"clientstyling"in t&&r(10,c=t.clientstyling),"clientstylingurl"in t&&r(11,u=t.clientstylingurl),"addSorterSelector"in t&&r(12,f=t.addSorterSelector),"addsortingselector"in t&&r(13,p=t.addsortingselector),"categoryid"in t&&r(14,m=t.categoryid)},t.$$.update=()=>{/*categoryid*/16384&t.$$.dirty&&m&&(()=>{var t;r(3,y="All"),r(2,d=!1),r(1,g=!1);let e=null===(t=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===t?void 0:t[m];r(3,y=e||"All"),r(3,y=E[e])})(),/*clientstyling, customStylingContainer*/1025&t.$$.dirty&&c&&a&&(()=>{let t=document.createElement("style");t.innerHTML=c,a.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/2049&t.$$.dirty&&u&&a&&(()=>{let t=document.createElement("style");fetch(new URL(u)).then((t=>t.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/512&t.$$.dirty&&h&&fetch(h).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{nr(e,t[e])}))})).catch((t=>{console.log(t)}))},[a,g,d,y,n,E,T,A,l,h,c,u,f,p,m,()=>A(),t=>T(t),function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class cr extends U{constructor(t){super();const e=document.createElement("style");e.textContent='.SorterContainer{color:#fff;position:relative;z-index:16}.SorterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{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}.SorterDropdownContainer{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:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{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;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem 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}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid #fff;height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-color-primary, #D0046C);width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}',this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},hr,lr,i,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,addSorterSelector:12,addsortingselector:13,categoryid:14},null),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),P()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","addSorterSelector","addsortingselector","categoryid"]}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),P()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),P()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),P()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),P()}get addSorterSelector(){return this.$$.ctx[12]}set addSorterSelector(t){this.$$set({addSorterSelector:t}),P()}get addsortingselector(){return this.$$.ctx[13]}set addsortingselector(t){this.$$set({addsortingselector:t}),P()}get categoryid(){return this.$$.ctx[14]}set categoryid(t){this.$$set({categoryid:t}),P()}}return!customElements.get("casino-sort")&&customElements.define("casino-sort",cr),cr}));
593
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(or).forEach((t=>{nr(t,or[t])}));const b={All:n("Translations.all"),name:n("Translations.az"),isNew:n("Translations.newest"),"advancedTags(name(hot))":n("Translations.hottest")},y=t=>{r(3,d=t);let e=localStorage.getItem("vendorSortingBy");g=t;for(let e in b)if(b[e]===t){g=e;break}null==e?localStorage.setItem("vendorSortingBy",JSON.stringify({[f]:g})):(e=JSON.parse(e),e[f]=g,localStorage.setItem("vendorSortingBy",JSON.stringify(e))),window.postMessage({type:"ApplySorter",sortBy:g,itemId:f},window.location.href)},E=()=>{r(1,p=!p),window.postMessage({type:"SortingOpened"},window.location.href)},T=t=>{"FilterOpened"==t.data.type&&r(1,p=!1)};v((()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})));return t.$$set=t=>{"lang"in t&&r(8,l=t.lang),"translationurl"in t&&r(9,h=t.translationurl),"clientstyling"in t&&r(10,c=t.clientstyling),"clientstylingurl"in t&&r(11,u=t.clientstylingurl),"categoryid"in t&&r(12,f=t.categoryid)},t.$$.update=()=>{/*categoryid*/4096&t.$$.dirty&&f&&(()=>{var t;r(3,d="All"),r(2,m=!1),r(1,p=!1);let e=null===(t=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===t?void 0:t[f];r(3,d=e||"All"),r(3,d=b[e])})(),/*clientstyling, customStylingContainer*/1025&t.$$.dirty&&c&&a&&(()=>{let t=document.createElement("style");t.innerHTML=c,a.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/2049&t.$$.dirty&&u&&a&&(()=>{let t=document.createElement("style");fetch(new URL(u)).then((t=>t.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/512&t.$$.dirty&&h&&fetch(h).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{nr(e,t[e])}))})).catch((t=>{console.log(t)}))},[a,p,m,d,n,b,y,E,l,h,c,u,f,()=>E(),t=>y(t),function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class cr extends U{constructor(t){super();const e=document.createElement("style");e.textContent='.SorterContainer{color:#fff;position:relative;z-index:16}.SorterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{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}.SorterDropdownContainer{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:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{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;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem 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}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid #fff;height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-color-primary, #D0046C);width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}',this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},hr,lr,i,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12},null),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),P()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","categoryid"]}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),P()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),P()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),P()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),P()}get categoryid(){return this.$$.ctx[12]}set categoryid(t){this.$$set({categoryid:t}),P()}}return!customElements.get("casino-sort")&&customElements.define("casino-sort",cr),cr}));
594
594
  //# sourceMappingURL=casino-sort.js.map