@adstore/templates 2.16.1 → 2.16.2
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.
- package/dist/templates.js.js +9 -9
- package/package.json +1 -1
package/dist/templates.js.js
CHANGED
@@ -3439,26 +3439,26 @@ const zf = (t) => {
|
|
3439
3439
|
onClick: e
|
3440
3440
|
};
|
3441
3441
|
}, dm = (t, n) => {
|
3442
|
-
var c;
|
3442
|
+
var c, i;
|
3443
3443
|
const e = (c = n == null ? void 0 : n.root) == null ? void 0 : c.orderControl, o = e.type === "spadsRating", {
|
3444
3444
|
data: r
|
3445
3445
|
} = qt(`${t}/bookmaker/rating`, {
|
3446
3446
|
method: "GET",
|
3447
3447
|
params: {
|
3448
3448
|
slug: e.rating,
|
3449
|
-
location: e.location
|
3449
|
+
location: (i = e.location) == null ? void 0 : i.toLowerCase()
|
3450
3450
|
},
|
3451
3451
|
pause: !t || !o || !e.location || !e.rating
|
3452
3452
|
});
|
3453
3453
|
return {
|
3454
3454
|
children: xt(() => {
|
3455
|
-
var
|
3456
|
-
const
|
3457
|
-
return o ? ((
|
3458
|
-
var
|
3459
|
-
const
|
3460
|
-
return (
|
3461
|
-
}) : (
|
3455
|
+
var _, d;
|
3456
|
+
const l = r != null ? r : [];
|
3457
|
+
return o ? ((_ = n == null ? void 0 : n.children) != null ? _ : []).sort((u, p) => {
|
3458
|
+
var g, C;
|
3459
|
+
const m = l.indexOf((g = u.root) == null ? void 0 : g.connectorBookmakerSlug), b = l.indexOf((C = p.root) == null ? void 0 : C.connectorBookmakerSlug);
|
3460
|
+
return (m === -1 ? 1 / 0 : m) - (b === -1 ? 1 / 0 : b);
|
3461
|
+
}) : (d = n == null ? void 0 : n.children) != null ? d : [];
|
3462
3462
|
}, [r, n])
|
3463
3463
|
};
|
3464
3464
|
}, um = Qt(({
|