@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.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(o)) {
25365
- const l = o.find(
25366
- (d) => String(d?.value) === t
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 l?.label == "string") return l.label;
25369
- } else if (o !== null && typeof o == "object") {
25370
- const l = o[t];
25371
- if (typeof l == "string") return l;
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
  }