@dskripchenko/laravel-admin 1.23.1 → 1.23.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -25360,15 +25360,15 @@ function sw(a, t) {
|
|
|
25360
25360
|
}
|
|
25361
25361
|
function OS(a, t) {
|
|
25362
25362
|
if (t === null) return null;
|
|
25363
|
-
const o = sw(a, "status")?.options;
|
|
25364
|
-
if (Array.isArray(
|
|
25365
|
-
const
|
|
25366
|
-
(
|
|
25363
|
+
const o = sw(a, "status"), d = o?.attributes?.options ?? o?.options;
|
|
25364
|
+
if (Array.isArray(d)) {
|
|
25365
|
+
const i = d.find(
|
|
25366
|
+
(s) => String(s?.value) === t
|
|
25367
25367
|
);
|
|
25368
|
-
if (typeof
|
|
25369
|
-
} else if (
|
|
25370
|
-
const
|
|
25371
|
-
if (typeof
|
|
25368
|
+
if (typeof i?.label == "string") return i.label;
|
|
25369
|
+
} else if (d !== null && typeof d == "object") {
|
|
25370
|
+
const i = d[t];
|
|
25371
|
+
if (typeof i == "string") return i;
|
|
25372
25372
|
}
|
|
25373
25373
|
return t;
|
|
25374
25374
|
}
|