@igamingcareer/igaming-components 1.2.12 → 1.2.13
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/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -42299,13 +42299,13 @@ const ZP = (t) => {
|
|
|
42299
42299
|
key: "parentCategory",
|
|
42300
42300
|
label: "Pillar",
|
|
42301
42301
|
type: "checkbox",
|
|
42302
|
-
options: L(o.map((C) => C.parentCategory)).map((C) => ({ value: C, label: C }))
|
|
42302
|
+
options: L(o.map((C) => C.parentCategory).filter(Boolean)).map((C) => ({ value: C, label: C }))
|
|
42303
42303
|
},
|
|
42304
42304
|
{
|
|
42305
42305
|
key: "complianceLevel",
|
|
42306
42306
|
label: "Compliance Level",
|
|
42307
42307
|
type: "checkbox",
|
|
42308
|
-
options: L(o.map((C) => C.complianceLevel)).map((C) => ({ value: C, label: C }))
|
|
42308
|
+
options: L(o.map((C) => C.complianceLevel).filter(Boolean)).map((C) => ({ value: C, label: C }))
|
|
42309
42309
|
},
|
|
42310
42310
|
{
|
|
42311
42311
|
key: "tags",
|
|
@@ -42330,7 +42330,7 @@ const ZP = (t) => {
|
|
|
42330
42330
|
}))
|
|
42331
42331
|
), [w]), I = re(() => {
|
|
42332
42332
|
const L = g.trim().toLowerCase();
|
|
42333
|
-
return o.filter((C) => !(L &&
|
|
42333
|
+
return o.filter((C) => !(L && ![C.name, C.description, C.parentCategory, ...C.synonyms ?? []].filter(Boolean).join(" ").toLowerCase().includes(L) || w.parentCategory.length && !w.parentCategory.includes(C.parentCategory) || w.complianceLevel.length && !w.complianceLevel.includes(C.complianceLevel) || w.tags.length && !w.tags.every((z) => C.tags.includes(z)) || w.signals.includes("featured") && !C.isFeatured || w.signals.includes("trending") && !C.isTrending));
|
|
42334
42334
|
}, [o, w, g]), S = re(() => {
|
|
42335
42335
|
const L = [...I];
|
|
42336
42336
|
return L.sort((C, z) => {
|
package/package.json
CHANGED