@feedmepos/mf-hrm-portal 2.0.16 → 2.0.17-dev.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.
Files changed (47) hide show
  1. package/dist/{AuditLogList-iyCwZoot.js → AuditLogList-DQOiwup5.js} +324 -350
  2. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  3. package/dist/EmployeeList-oERrzrAd.js +828 -0
  4. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CoorkndT.js +34 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  6. package/dist/{Main-C-_jj0hE.js → Main-2uJvk5L7.js} +15 -14
  7. package/dist/{Main-Br1NK5Nk.js → Main-5nIpv-Sp.js} +9 -9
  8. package/dist/{Main-CVLdj0vm.js → Main-C8ja5xs6.js} +8 -8
  9. package/dist/PermissionSetList-CtpaWlVM.js +323 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B-hvBqE0.js +3439 -0
  11. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  12. package/dist/RoleList-CDBP2W5v.js +544 -0
  13. package/dist/TeamMemberList-DSzNjP4y.js +996 -0
  14. package/dist/{TimesheetList-Cvco7hQ7.js → TimesheetList-D1ByiuwP.js} +6 -6
  15. package/dist/{app-Deq-BbQg.js → app-hS6MBhCw.js} +211 -163
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-BC7eDcw3.js → dayjs.min-DFcH-XYr.js} +1 -1
  18. package/dist/{employee-CSb8K1_S.js → employee-fBtBUEwZ.js} +3 -3
  19. package/dist/{iteration-CzlBzD5p.js → iteration-D23fqAQH.js} +2 -2
  20. package/dist/{lodash-BxgA1s7j.js → lodash-Cqc7y4P5.js} +1 -1
  21. package/dist/{rule-BYb8TfeP.js → rule-BBJzenE1.js} +2 -2
  22. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  23. package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
  24. package/dist/src/composables/useBasePermission.d.ts +1 -0
  25. package/dist/src/views/hr/locales/index.d.ts +16 -0
  26. package/dist/src/views/team/components/BasePermission.vue.d.ts +2 -6
  27. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  28. package/dist/src/views/team/locales/index.d.ts +32 -0
  29. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -3
  30. package/dist/style.css +1 -1
  31. package/dist/team-Dq3VcGNH.js +33 -0
  32. package/dist/{timesheet-BlHG7Fw5.js → timesheet-OfLQjuvO.js} +2 -2
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useAppStore-tV67t5M2.js → useAppStore-Du6PRBq0.js} +1 -1
  35. package/dist/{useLoading-DWaMwG8t.js → useLoading-DkTCR5A7.js} +1 -1
  36. package/dist/{useReportPermissions-DJvfurhn.js → useReportPermissions-DhhjBwPs.js} +3 -3
  37. package/dist/useSearch-BAPEUu1R.js +15 -0
  38. package/package.json +1 -1
  39. package/dist/EmployeeList-CJvHFQnQ.js +0 -736
  40. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
  41. package/dist/HorizontalSplitter-o860F4xM.js +0 -12
  42. package/dist/PermissionSetList-4lJbnJsE.js +0 -334
  43. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DJniPhu1.js +0 -3476
  44. package/dist/RoleList-C0NI4ooY.js +0 -528
  45. package/dist/TeamMemberList-CGjxliOv.js +0 -1108
  46. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  47. package/dist/useSearch-B6WK1LBB.js +0 -15
@@ -1,7 +1,7 @@
1
1
  var $a = Object.defineProperty;
2
2
  var es = (e, c, u) => c in e ? $a(e, c, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[c] = u;
3
3
  var Re = (e, c, u) => es(e, typeof c != "symbol" ? c + "" : c, u);
4
- import { isRef as ts, ref as Be, shallowRef as as, watchEffect as kt, computed as Yt, h as Qt, defineComponent as xe, createBlock as Se, renderSlot as St, createCommentVNode as ss, unref as Me, openBlock as Ve, createElementBlock as Kt, createElementVNode as we, toDisplayString as It, watch as Zt, nextTick as Nt, onMounted as Jt, onBeforeUnmount as rs, normalizeStyle as ns, resolveComponent as Gt, withCtx as os, createVNode as is, defineAsyncComponent as As, readonly as Bt } from "vue";
4
+ import { isRef as ts, ref as he, shallowRef as as, watchEffect as kt, computed as Yt, h as Qt, defineComponent as xe, createBlock as Se, renderSlot as St, createCommentVNode as ss, unref as Me, openBlock as Ve, createElementBlock as Kt, createElementVNode as we, toDisplayString as It, watch as Zt, nextTick as Nt, onMounted as Jt, onBeforeUnmount as rs, normalizeStyle as ns, resolveComponent as Gt, withCtx as os, createVNode as is, defineAsyncComponent as As, readonly as ht } from "vue";
5
5
  import { useBreakpoints as ls } from "@feedmepos/ui-library";
6
6
  import { useRoute as cs, useRouter as us } from "vue-router";
7
7
  import { useCoreStore as jt, useI18n as Lt } from "@feedmepos/mf-common";
@@ -551,16 +551,16 @@ const _t = {
551
551
  }, vs = {
552
552
  date: ra,
553
553
  auditLog: na
554
- }, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
554
+ }, hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
555
555
  __proto__: null,
556
556
  auditLog: na,
557
557
  date: ra,
558
558
  default: vs
559
- }, Symbol.toStringTag, { value: "Module" })), hs = {
559
+ }, Symbol.toStringTag, { value: "Module" })), Bs = {
560
560
  "en-US": ms,
561
561
  "zh-CN": bs,
562
562
  "th-TH": ps,
563
- "zh-Hant": Bs
563
+ "zh-Hant": hs
564
564
  }, oa = {
565
565
  employee: {
566
566
  title: "Employee",
@@ -570,12 +570,15 @@ const _t = {
570
570
  code: "Code",
571
571
  name: "Name",
572
572
  restaurants: "Restaurant",
573
+ assignedRole: "Assigned Role",
573
574
  since: "Join Since"
574
575
  },
575
576
  form: {
576
577
  add: "Create employee",
577
578
  update: "Update employee",
578
579
  employeeSetting: "Employee setting",
580
+ assignmentSection: "Outlet & Role Assignment",
581
+ addAnother: "Add another",
579
582
  masterUserConfig: "Master user configuration",
580
583
  code: "Code",
581
584
  masterUser: "Master User",
@@ -585,6 +588,7 @@ const _t = {
585
588
  passcodeRequired: "Passcode must be 4 digits",
586
589
  passcodeGenerate: "Generate code",
587
590
  atLeastOneRestaurant: "Select at least one restaurant",
591
+ roleRequired: "Select a role for every restaurant",
588
592
  all: "All",
589
593
  role: "Role",
590
594
  name: "Name"
@@ -729,12 +733,15 @@ const _t = {
729
733
  code: "รหัส",
730
734
  name: "ชื่อ",
731
735
  restaurants: "ร้านอาหาร",
736
+ assignedRole: "บทบาทที่ได้รับมอบหมาย",
732
737
  since: "เข้าร่วมตั้งแต่"
733
738
  },
734
739
  form: {
735
740
  add: "สร้างพนักงาน",
736
741
  update: "อัพเดทพนักงาน",
737
742
  employeeSetting: "ตั้งค่าพนักงาน",
743
+ assignmentSection: "การกำหนดสาขาและบทบาท",
744
+ addAnother: "เพิ่มอีกหนึ่งรายการ",
738
745
  masterUserConfig: "ตั้งค่าผู้ใช้หลัก",
739
746
  code: "รหัส",
740
747
  masterUser: "ผู้ใช้หลัก",
@@ -744,6 +751,7 @@ const _t = {
744
751
  passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
745
752
  passcodeGenerate: "สร้างรหัส",
746
753
  atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
754
+ roleRequired: "กรุณาเลือกบทบาทให้ทุกร้านอาหาร",
747
755
  all: "ทั้งหมด",
748
756
  role: "บทบาท",
749
757
  name: "ชื่อ"
@@ -887,12 +895,15 @@ const _t = {
887
895
  code: "工号",
888
896
  name: "姓名",
889
897
  restaurants: "餐厅",
898
+ assignedRole: "分配角色",
890
899
  since: "入职时间"
891
900
  },
892
901
  form: {
893
902
  add: "添加员工",
894
903
  update: "更新员工",
895
904
  employeeSetting: "员工设置",
905
+ assignmentSection: "门店与角色分配",
906
+ addAnother: "新增一项",
896
907
  masterUserConfig: "主用户配置",
897
908
  code: "工号",
898
909
  masterUser: "主用户",
@@ -902,6 +913,7 @@ const _t = {
902
913
  passcodeRequired: "密码必须为4位数字",
903
914
  passcodeGenerate: "生成密码",
904
915
  atLeastOneRestaurant: "至少选择一个餐厅",
916
+ roleRequired: "请为每个餐厅选择角色",
905
917
  all: "全选",
906
918
  role: "角色",
907
919
  name: "姓名"
@@ -1046,12 +1058,15 @@ const _t = {
1046
1058
  code: "工號",
1047
1059
  name: "姓名",
1048
1060
  restaurants: "餐廳",
1061
+ assignedRole: "分配角色",
1049
1062
  since: "入職時間"
1050
1063
  },
1051
1064
  form: {
1052
1065
  add: "添加員工",
1053
1066
  update: "更新員工",
1054
1067
  employeeSetting: "員工設置",
1068
+ assignmentSection: "門店與角色分配",
1069
+ addAnother: "新增一項",
1055
1070
  masterUserConfig: "主用户配置",
1056
1071
  code: "工號",
1057
1072
  masterUser: "主用户",
@@ -1061,6 +1076,7 @@ const _t = {
1061
1076
  passcodeRequired: "密碼必須為4位數字",
1062
1077
  passcodeGenerate: "生成密碼",
1063
1078
  atLeastOneRestaurant: "至少選擇一個餐廳",
1079
+ roleRequired: "請為每個餐廳選擇角色",
1064
1080
  all: "全選",
1065
1081
  role: "角色",
1066
1082
  name: "姓名"
@@ -1239,7 +1255,9 @@ const _t = {
1239
1255
  },
1240
1256
  filter: {
1241
1257
  permission_placeholder: "Filter by permission",
1242
- selected_permission_prefix: "Selected permissions: "
1258
+ selected_permission_prefix: "Selected permissions: ",
1259
+ assigned_role_placeholder: "Assigned Role",
1260
+ selected_assigned_role_prefix: "Assigned roles: "
1243
1261
  },
1244
1262
  emptyState: {
1245
1263
  title: "No team members found",
@@ -1261,6 +1279,7 @@ const _t = {
1261
1279
  emailAddress: "Email address"
1262
1280
  },
1263
1281
  permissions: {
1282
+ title: "Permissions",
1264
1283
  manageable: "Manageable {context}",
1265
1284
  search: "Search {context}",
1266
1285
  general: "General permissions",
@@ -1270,13 +1289,18 @@ const _t = {
1270
1289
  includedFuture: "Include future {context}",
1271
1290
  includedNewRole: "Include new added role",
1272
1291
  roles: "Usable POS roles",
1273
- inherited: "Inherited permission from:"
1292
+ inherited: "Inherited permission from:",
1293
+ allowedCount: "{count} permissions allowed",
1294
+ columnName: "Name",
1295
+ columnManage: "Manage"
1274
1296
  },
1275
1297
  masterUser: {
1276
1298
  title: "Master user",
1277
1299
  passcode: "Master user passcode",
1278
1300
  passcodeRequired: "Passcode must be 4 digits",
1279
1301
  sublabel: "Master user can access restaurant POS system.",
1302
+ assignmentSection: "Outlet & Role Assignment",
1303
+ addAnother: "Add another",
1280
1304
  code: "Code",
1281
1305
  name: "Name",
1282
1306
  role: "Role",
@@ -1380,7 +1404,9 @@ const _t = {
1380
1404
  },
1381
1405
  filter: {
1382
1406
  permission_placeholder: "กรองตามสิทธิ์อนุญาต",
1383
- selected_permission_prefix: "สิทธิ์ที่เลือก: "
1407
+ selected_permission_prefix: "สิทธิ์ที่เลือก: ",
1408
+ assigned_role_placeholder: "บทบาทที่กำหนด",
1409
+ selected_assigned_role_prefix: "บทบาทที่เลือก: "
1384
1410
  },
1385
1411
  emptyState: {
1386
1412
  title: "ไม่พบสมาชิกในทีม",
@@ -1402,6 +1428,7 @@ const _t = {
1402
1428
  emailAddress: "ที่อยู่อีเมล"
1403
1429
  },
1404
1430
  permissions: {
1431
+ title: "สิทธิ์อนุญาต",
1405
1432
  manageable: "จัดการได้ {context}",
1406
1433
  search: "ค้นหา {context}",
1407
1434
  general: "สิทธิ์ทั่วไป",
@@ -1411,13 +1438,18 @@ const _t = {
1411
1438
  includedFuture: "รวม {context} ในอนาคต",
1412
1439
  includedNewRole: "รวมบทบาทใหม่ที่เพิ่มเข้ามา",
1413
1440
  roles: "บทบาท POS ที่สามารถใช้ได้",
1414
- inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:"
1441
+ inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:",
1442
+ allowedCount: "{count} สิทธิ์ที่อนุญาต",
1443
+ columnName: "ชื่อ",
1444
+ columnManage: "จัดการ"
1415
1445
  },
1416
1446
  masterUser: {
1417
1447
  title: "ผู้ใช้หลัก",
1418
1448
  passcode: "รหัสผ่านผู้ใช้หลัก",
1419
1449
  passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
1420
1450
  sublabel: "ผู้ใช้หลักสามารถเข้าถึงระบบ POS ของร้านอาหารได้",
1451
+ assignmentSection: "การกำหนดสาขาและบทบาท",
1452
+ addAnother: "เพิ่มอีก",
1421
1453
  code: "รหัส",
1422
1454
  name: "ชื่อ",
1423
1455
  role: "บทบาท",
@@ -1521,7 +1553,9 @@ const _t = {
1521
1553
  },
1522
1554
  filter: {
1523
1555
  permission_placeholder: "按权限筛选",
1524
- selected_permission_prefix: "已选权限: "
1556
+ selected_permission_prefix: "已选权限: ",
1557
+ assigned_role_placeholder: "分配角色",
1558
+ selected_assigned_role_prefix: "已选角色: "
1525
1559
  },
1526
1560
  emptyState: {
1527
1561
  title: "没有团队成员",
@@ -1543,6 +1577,7 @@ const _t = {
1543
1577
  emailAddress: "邮箱地址"
1544
1578
  },
1545
1579
  permissions: {
1580
+ title: "权限",
1546
1581
  manageable: "可管理{context}",
1547
1582
  search: "搜索{context}",
1548
1583
  general: "通用权限",
@@ -1552,13 +1587,18 @@ const _t = {
1552
1587
  includedFuture: "包含未来{context}",
1553
1588
  includedNewRole: "包含新添加的角色",
1554
1589
  roles: "可用 POS 角色",
1555
- inherited: "继承权限来自:"
1590
+ inherited: "继承权限来自:",
1591
+ allowedCount: "{count} 个权限已启用",
1592
+ columnName: "名称",
1593
+ columnManage: "管理"
1556
1594
  },
1557
1595
  masterUser: {
1558
1596
  title: "主用户",
1559
1597
  passcode: "主用户密码",
1560
1598
  passcodeRequired: "密码必须为4位数字",
1561
1599
  sublabel: "主用户可以访问餐厅 POS 系统。",
1600
+ assignmentSection: "门店与角色分配",
1601
+ addAnother: "再添加一项",
1562
1602
  code: "工号",
1563
1603
  name: "姓名",
1564
1604
  role: "角色",
@@ -1662,7 +1702,9 @@ const _t = {
1662
1702
  },
1663
1703
  filter: {
1664
1704
  permission_placeholder: "按權限篩選",
1665
- selected_permission_prefix: "已選權限: "
1705
+ selected_permission_prefix: "已選權限: ",
1706
+ assigned_role_placeholder: "分配角色",
1707
+ selected_assigned_role_prefix: "已選角色: "
1666
1708
  },
1667
1709
  emptyState: {
1668
1710
  title: "沒有團隊成員",
@@ -1684,6 +1726,7 @@ const _t = {
1684
1726
  emailAddress: "郵箱地址"
1685
1727
  },
1686
1728
  permissions: {
1729
+ title: "權限",
1687
1730
  manageable: "可管理{context}",
1688
1731
  search: "搜索{context}",
1689
1732
  general: "通用權限",
@@ -1693,13 +1736,18 @@ const _t = {
1693
1736
  includedFuture: "包含未來{context}",
1694
1737
  includedNewRole: "包含新添加的角色",
1695
1738
  roles: "可用 POS 角色",
1696
- inherited: "繼承權限來自:"
1739
+ inherited: "繼承權限來自:",
1740
+ allowedCount: "{count} 個權限已啟用",
1741
+ columnName: "名稱",
1742
+ columnManage: "管理"
1697
1743
  },
1698
1744
  masterUser: {
1699
1745
  title: "主用户",
1700
1746
  passcode: "主用户密碼",
1701
1747
  passcodeRequired: "密碼必須為4位數字",
1702
1748
  sublabel: "主用户可以訪問餐廳 POS 系統。",
1749
+ assignmentSection: "門店與角色分配",
1750
+ addAnother: "再新增一項",
1703
1751
  code: "工號",
1704
1752
  name: "姓名",
1705
1753
  role: "角色",
@@ -1832,7 +1880,7 @@ const _t = {
1832
1880
  __proto__: null,
1833
1881
  default: Is,
1834
1882
  grantUser: va
1835
- }, Symbol.toStringTag, { value: "Module" })), Ba = {
1883
+ }, Symbol.toStringTag, { value: "Module" })), ha = {
1836
1884
  title: "POS Grant",
1837
1885
  actions: {
1838
1886
  create: "สร้างรหัสผ่าน",
@@ -1887,12 +1935,12 @@ const _t = {
1887
1935
  copied: "คัดลอกรหัสผ่านแล้ว"
1888
1936
  }
1889
1937
  }, Ns = {
1890
- grantUser: Ba
1938
+ grantUser: ha
1891
1939
  }, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1892
1940
  __proto__: null,
1893
1941
  default: Ns,
1894
- grantUser: Ba
1895
- }, Symbol.toStringTag, { value: "Module" })), ha = {
1942
+ grantUser: ha
1943
+ }, Symbol.toStringTag, { value: "Module" })), Ba = {
1896
1944
  title: "POS 授予",
1897
1945
  actions: {
1898
1946
  create: "创建密码",
@@ -1947,11 +1995,11 @@ const _t = {
1947
1995
  copied: "密码已复制"
1948
1996
  }
1949
1997
  }, zs = {
1950
- grantUser: ha
1998
+ grantUser: Ba
1951
1999
  }, Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1952
2000
  __proto__: null,
1953
2001
  default: zs,
1954
- grantUser: ha
2002
+ grantUser: Ba
1955
2003
  }, Symbol.toStringTag, { value: "Module" })), ya = {
1956
2004
  title: "POS 授予",
1957
2005
  actions: {
@@ -2034,23 +2082,23 @@ var wa = { exports: {} };
2034
2082
  var b = A[g] = { i: g, l: !1, exports: {} };
2035
2083
  return u[g].call(b.exports, b, b.exports, s), b.l = !0, b.exports;
2036
2084
  }
2037
- return s.m = u, s.c = A, s.d = function(g, b, h) {
2038
- s.o(g, b) || Object.defineProperty(g, b, { enumerable: !0, get: h });
2085
+ return s.m = u, s.c = A, s.d = function(g, b, B) {
2086
+ s.o(g, b) || Object.defineProperty(g, b, { enumerable: !0, get: B });
2039
2087
  }, s.r = function(g) {
2040
2088
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(g, "__esModule", { value: !0 });
2041
2089
  }, s.t = function(g, b) {
2042
2090
  if (1 & b && (g = s(g)), 8 & b || 4 & b && typeof g == "object" && g && g.__esModule) return g;
2043
- var h = /* @__PURE__ */ Object.create(null);
2044
- if (s.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: g }), 2 & b && typeof g != "string")
2091
+ var B = /* @__PURE__ */ Object.create(null);
2092
+ if (s.r(B), Object.defineProperty(B, "default", { enumerable: !0, value: g }), 2 & b && typeof g != "string")
2045
2093
  for (var E in g)
2046
2094
  s.d(
2047
- h,
2095
+ B,
2048
2096
  E,
2049
2097
  (function(j) {
2050
2098
  return g[j];
2051
2099
  }).bind(null, E)
2052
2100
  );
2053
- return h;
2101
+ return B;
2054
2102
  }, s.n = function(g) {
2055
2103
  var b = g && g.__esModule ? function() {
2056
2104
  return g.default;
@@ -2086,13 +2134,13 @@ var wa = { exports: {} };
2086
2134
  }), s.d(A, "comparable", function() {
2087
2135
  return Oe;
2088
2136
  });
2089
- var h = b("Array"), E = b("Object"), j = b("Function");
2137
+ var B = b("Array"), E = b("Object"), j = b("Function");
2090
2138
  function w(o, m) {
2091
2139
  return j(o.get) ? o.get(m) : o[m];
2092
2140
  }
2093
2141
  function F(o) {
2094
2142
  return function(m, f) {
2095
- if (!h(f) || !f.length) return o(m, f);
2143
+ if (!B(f) || !f.length) return o(m, f);
2096
2144
  for (var y = 0, C = f.length; y < C; y++)
2097
2145
  if (o(m, w(f, y))) return !0;
2098
2146
  return !1;
@@ -2100,7 +2148,7 @@ var wa = { exports: {} };
2100
2148
  }
2101
2149
  function I(o) {
2102
2150
  return function(m, f) {
2103
- if (!h(f) || !f.length) return o(m, f);
2151
+ if (!B(f) || !f.length) return o(m, f);
2104
2152
  for (var y = 0, C = f.length; y < C; y++)
2105
2153
  if (!o(m, w(f, y))) return !1;
2106
2154
  return !0;
@@ -2169,7 +2217,7 @@ var wa = { exports: {} };
2169
2217
  return o.call(m, m, f, y);
2170
2218
  },
2171
2219
  $elemMatch: function(o, m, f, y) {
2172
- return h(m) ? !!~function(C, D) {
2220
+ return B(m) ? !!~function(C, D) {
2173
2221
  for (var V = 0; V < C.length; V++)
2174
2222
  if (w(C, V), H(D, w(C, V))) return V;
2175
2223
  return -1;
@@ -2183,8 +2231,8 @@ var wa = { exports: {} };
2183
2231
  var y = f.comparable, C = f.compare;
2184
2232
  return o instanceof RegExp ? F(function(D) {
2185
2233
  return typeof D == "string" && o.test(D);
2186
- }) : o instanceof Function ? F(o) : h(o) && !o.length ? F(function(D) {
2187
- return h(D) && !D.length;
2234
+ }) : o instanceof Function ? F(o) : B(o) && !o.length ? F(function(D) {
2235
+ return B(D) && !D.length;
2188
2236
  }) : F(
2189
2237
  o === null ? function(D) {
2190
2238
  return D == null;
@@ -2303,11 +2351,11 @@ var wa = { exports: {} };
2303
2351
  }
2304
2352
  function S(o, m) {
2305
2353
  var f = o.keyPath, y = o.child, C = o.query, D = [];
2306
- if (function a(i, n, p, B, Y) {
2354
+ if (function a(i, n, p, h, Y) {
2307
2355
  if (p === n.length || i == null)
2308
- return void Y.push([i, n[p - 1], B]);
2356
+ return void Y.push([i, n[p - 1], h]);
2309
2357
  var x = w(n, p);
2310
- if (h(i) && isNaN(Number(x)))
2358
+ if (B(i) && isNaN(Number(x)))
2311
2359
  for (var O = 0, M = i.length; O < M; O++) a(w(i, O), n, p, i, Y);
2312
2360
  else a(w(i, x), n, p + 1, i, Y);
2313
2361
  }(m, f, 0, m, D), D.length === 1) {
@@ -2349,24 +2397,24 @@ var wa = { exports: {} };
2349
2397
  if (!E(R)) return W;
2350
2398
  for (var d in R) W.push(d), P(R[d], W);
2351
2399
  return W;
2352
- }(V, []).join(",").search(/[$.]/) === -1 ? te(V, he) : C(V);
2400
+ }(V, []).join(",").search(/[$.]/) === -1 ? te(V, Be) : C(V);
2353
2401
  };
2354
2402
  return function(V) {
2355
2403
  return C(y(V));
2356
2404
  };
2357
2405
  }
2358
- function he(o, m) {
2406
+ function Be(o, m) {
2359
2407
  if (Object.prototype.toString.call(o) !== Object.prototype.toString.call(m))
2360
2408
  return !1;
2361
2409
  if (E(o)) {
2362
2410
  if (Object.keys(o).length !== Object.keys(m).length) return !1;
2363
- for (var f in o) if (!he(o[f], m[f])) return !1;
2411
+ for (var f in o) if (!Be(o[f], m[f])) return !1;
2364
2412
  return !0;
2365
2413
  }
2366
- if (h(o)) {
2414
+ if (B(o)) {
2367
2415
  if (o.length !== m.length) return !1;
2368
2416
  for (var y = 0, C = o.length; y < C; y++)
2369
- if (!he(o[y], m[y])) return !1;
2417
+ if (!Be(o[y], m[y])) return !1;
2370
2418
  return !0;
2371
2419
  }
2372
2420
  return o === m;
@@ -2387,14 +2435,14 @@ var wa = { exports: {} };
2387
2435
  };
2388
2436
  }
2389
2437
  function Pe(o, m) {
2390
- if (he(o, m)) return 0;
2438
+ if (Be(o, m)) return 0;
2391
2439
  if (g(o) === g(m)) {
2392
2440
  if (o > m) return 1;
2393
2441
  if (o < m) return -1;
2394
2442
  }
2395
2443
  }
2396
2444
  function Oe(o) {
2397
- return o instanceof Date ? o.getTime() : h(o) ? o.map(Oe) : o && typeof o.toJSON == "function" ? o.toJSON() : o;
2445
+ return o instanceof Date ? o.getTime() : B(o) ? o.map(Oe) : o && typeof o.toJSON == "function" ? o.toJSON() : o;
2398
2446
  }
2399
2447
  }
2400
2448
  ]);
@@ -2436,9 +2484,9 @@ function er() {
2436
2484
  }
2437
2485
  function We(e, c, u) {
2438
2486
  return er() ? We = Reflect.construct : We = function(s, g, b) {
2439
- var h = [null];
2440
- h.push.apply(h, g);
2441
- var E = Function.bind.apply(s, h), j = new E();
2487
+ var B = [null];
2488
+ B.push.apply(B, g);
2489
+ var E = Function.bind.apply(s, B), j = new E();
2442
2490
  return b && ke(j, b.prototype), j;
2443
2491
  }, We.apply(null, arguments);
2444
2492
  }
@@ -2496,15 +2544,15 @@ var Ma = function(c) {
2496
2544
  }, u.throwUnlessCan = function(s, g, b) {
2497
2545
  if (!this.ability)
2498
2546
  throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
2499
- var h = this.ability.relevantRuleFor(s, g, b);
2500
- if (!(h && !h.inverted)) {
2547
+ var B = this.ability.relevantRuleFor(s, g, b);
2548
+ if (!(B && !B.inverted)) {
2501
2549
  this._setMetadata({
2502
2550
  action: s,
2503
2551
  subject: g,
2504
2552
  field: b,
2505
2553
  subjectName: this.ability.subjectName(g)
2506
2554
  });
2507
- var E = h ? h.reason : "";
2555
+ var E = B ? B.reason : "";
2508
2556
  throw this.message = this._customMessage || E || ze(this), this;
2509
2557
  }
2510
2558
  }, u._setMetadata = function(s) {
@@ -2593,9 +2641,9 @@ var mr = /* @__PURE__ */ function() {
2593
2641
  var g = this.buildIndexFor(A);
2594
2642
  return this[ee].indexedRules = g.rules, this[ee].hasPerFieldRules = g.hasPerFieldRules, this.emit("updated", s), this;
2595
2643
  }, c.buildIndexFor = function(A) {
2596
- for (var s = /* @__PURE__ */ Object.create(null), g = this[ee].RuleType, b = !0, h = !1, E = 0; E < A.length; E++) {
2644
+ for (var s = /* @__PURE__ */ Object.create(null), g = this[ee].RuleType, b = !0, B = !1, E = 0; E < A.length; E++) {
2597
2645
  var j = new g(A[E]), w = this.expandActions(j.actions), F = Mt(j.subject), I = A.length - E - 1;
2598
- b = !!(b && j.inverted), !h && j.fields && (h = !0);
2646
+ b = !!(b && j.inverted), !B && j.fields && (B = !0);
2599
2647
  for (var H = 0; H < F.length; H++) {
2600
2648
  var z = F[H];
2601
2649
  s[z] = s[z] || /* @__PURE__ */ Object.create(null);
@@ -2607,13 +2655,13 @@ var mr = /* @__PURE__ */ function() {
2607
2655
  }
2608
2656
  return {
2609
2657
  isAllInverted: b,
2610
- hasPerFieldRules: h,
2658
+ hasPerFieldRules: B,
2611
2659
  rules: s
2612
2660
  };
2613
2661
  }, c.expandActions = function(A) {
2614
2662
  for (var s = this[ee].aliases, g = Mt(A), b = 0; b < g.length; ) {
2615
- var h = g[b++];
2616
- s.hasOwnProperty(h) && (g = g.concat(s[h]));
2663
+ var B = g[b++];
2664
+ s.hasOwnProperty(B) && (g = g.concat(s[B]));
2617
2665
  }
2618
2666
  return g;
2619
2667
  }, c.can = function(A, s, g) {
@@ -2622,23 +2670,23 @@ var mr = /* @__PURE__ */ function() {
2622
2670
  var b = this.relevantRuleFor(A, s, g);
2623
2671
  return !!b && !b.inverted;
2624
2672
  }, c.relevantRuleFor = function(A, s, g) {
2625
- for (var b = this.rulesFor(A, s, g), h = 0; h < b.length; h++)
2626
- if (b[h].matches(s))
2627
- return b[h];
2673
+ for (var b = this.rulesFor(A, s, g), B = 0; B < b.length; B++)
2674
+ if (b[B].matches(s))
2675
+ return b[B];
2628
2676
  return null;
2629
2677
  }, c.possibleRulesFor = function(A, s) {
2630
- var g = this.subjectName(s), b = this[ee].mergedRules, h = g + "_" + A;
2631
- return b[h] || (b[h] = this.mergeRulesFor(A, g)), b[h];
2678
+ var g = this.subjectName(s), b = this[ee].mergedRules, B = g + "_" + A;
2679
+ return b[B] || (b[B] = this.mergeRulesFor(A, g)), b[B];
2632
2680
  }, c.mergeRulesFor = function(A, s) {
2633
- var g = this[ee].indexedRules, b = [s, "all"].reduce(function(h, E) {
2681
+ var g = this[ee].indexedRules, b = [s, "all"].reduce(function(B, E) {
2634
2682
  var j = g[E];
2635
- return j ? Object.assign(h, j[A], j.manage) : h;
2683
+ return j ? Object.assign(B, j[A], j.manage) : B;
2636
2684
  }, []);
2637
2685
  return b.filter(Boolean);
2638
2686
  }, c.rulesFor = function(A, s, g) {
2639
2687
  var b = this.possibleRulesFor(A, s);
2640
- return this[ee].hasPerFieldRules ? b.filter(function(h) {
2641
- return h.isRelevantFor(s, g);
2688
+ return this[ee].hasPerFieldRules ? b.filter(function(B) {
2689
+ return B.isRelevantFor(s, g);
2642
2690
  }) : b;
2643
2691
  }, c.cannot = function() {
2644
2692
  return !this.can.apply(this, arguments);
@@ -2652,8 +2700,8 @@ var mr = /* @__PURE__ */ function() {
2652
2700
  var g = this[ee].events, b = !0;
2653
2701
  return g[A] || (g[A] = []), g[A].push(s), function() {
2654
2702
  if (b) {
2655
- var h = g[A].indexOf(s);
2656
- g[A].splice(h, 1), b = !1;
2703
+ var B = g[A].indexOf(s);
2704
+ g[A].splice(B, 1), b = !1;
2657
2705
  }
2658
2706
  };
2659
2707
  }, c.emit = function(A, s) {
@@ -3290,7 +3338,7 @@ const Z = [
3290
3338
  t.delete
3291
3339
  ]
3292
3340
  }
3293
- ], Br = [
3341
+ ], hr = [
3294
3342
  ...Z,
3295
3343
  {
3296
3344
  label: "Effect",
@@ -3302,7 +3350,7 @@ const Z = [
3302
3350
  t.delete
3303
3351
  ]
3304
3352
  }
3305
- ], hr = [
3353
+ ], Br = [
3306
3354
  ...Z,
3307
3355
  {
3308
3356
  label: "Setting",
@@ -3532,7 +3580,7 @@ const Z = [
3532
3580
  ja
3533
3581
  ), Ra = $(
3534
3582
  oe,
3535
- hr
3583
+ Br
3536
3584
  ), Fr = [
3537
3585
  ...Z,
3538
3586
  {
@@ -3563,7 +3611,7 @@ const Z = [
3563
3611
  Ya,
3564
3612
  Ga,
3565
3613
  vr,
3566
- Br,
3614
+ hr,
3567
3615
  Ra,
3568
3616
  yr,
3569
3617
  Ea,
@@ -4256,16 +4304,16 @@ function tn(e) {
4256
4304
  return new mr(en(e));
4257
4305
  }
4258
4306
  function an(e, c, u) {
4259
- const A = Array.isArray(e) ? e : [e], s = tn(c), g = (w) => w.subject, b = (w) => s.can(w.action, g(w), w.field) ? !0 : w.coverSubject !== void 0 ? s.can(w.action, w.coverSubject, w.field) : !1, h = A.find((w) => !b(w));
4260
- if (h) {
4307
+ const A = Array.isArray(e) ? e : [e], s = tn(c), g = (w) => w.subject, b = (w) => s.can(w.action, g(w), w.field) ? !0 : w.coverSubject !== void 0 ? s.can(w.action, w.coverSubject, w.field) : !1, B = A.find((w) => !b(w));
4308
+ if (B) {
4261
4309
  const w = s.relevantRuleFor(
4262
- h.action,
4263
- g(h),
4264
- h.field
4310
+ B.action,
4311
+ g(B),
4312
+ B.field
4265
4313
  );
4266
4314
  return {
4267
4315
  granted: !1,
4268
- decisivePermission: h,
4316
+ decisivePermission: B,
4269
4317
  decisiveRule: w ?? null
4270
4318
  };
4271
4319
  }
@@ -4284,8 +4332,8 @@ function rn(e, c, u) {
4284
4332
  lazy: s = !1,
4285
4333
  evaluating: g = void 0,
4286
4334
  shallow: b = !0,
4287
- onError: h = sn
4288
- } = A, E = Be(!s), j = b ? as(c) : Be(c);
4335
+ onError: B = sn
4336
+ } = A, E = he(!s), j = b ? as(c) : he(c);
4289
4337
  let w = 0;
4290
4338
  return kt(async (F) => {
4291
4339
  if (!E.value)
@@ -4304,7 +4352,7 @@ function rn(e, c, u) {
4304
4352
  });
4305
4353
  I === w && (j.value = z);
4306
4354
  } catch (z) {
4307
- h(z);
4355
+ B(z);
4308
4356
  } finally {
4309
4357
  g && I === w && (g.value = !1), H = !0;
4310
4358
  }
@@ -4393,7 +4441,7 @@ const ln = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
4393
4441
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
4394
4442
  }, bn = {
4395
4443
  noPermission: fn
4396
- }, vn = { class: "w-full h-full flex justify-center items-center" }, Bn = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, hn = { class: "w-[300px] h-[300px]" }, yn = ["src"], wn = { class: "text-2xl" }, Mn = { class: "text-xl" }, Cn = /* @__PURE__ */ xe({
4444
+ }, vn = { class: "w-full h-full flex justify-center items-center" }, hn = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Bn = { class: "w-[300px] h-[300px]" }, yn = ["src"], wn = { class: "text-2xl" }, Mn = { class: "text-xl" }, Cn = /* @__PURE__ */ xe({
4397
4445
  __name: "NoPermission",
4398
4446
  setup(e) {
4399
4447
  const { t: c } = Lt({
@@ -4405,8 +4453,8 @@ const ln = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
4405
4453
  }
4406
4454
  });
4407
4455
  return (u, A) => (Ve(), Kt("div", vn, [
4408
- we("div", Bn, [
4409
- we("div", hn, [
4456
+ we("div", hn, [
4457
+ we("div", Bn, [
4410
4458
  we("img", {
4411
4459
  src: Me(ln),
4412
4460
  class: "w-full h-full"
@@ -4435,7 +4483,7 @@ function Ke(e) {
4435
4483
  };
4436
4484
  }
4437
4485
  function Yn(e, c) {
4438
- const u = Be({ top: 0, bottom: 0, left: 0, right: 0 });
4486
+ const u = he({ top: 0, bottom: 0, left: 0, right: 0 });
4439
4487
  function A() {
4440
4488
  if (e.value) {
4441
4489
  const s = e.value.getBoundingClientRect();
@@ -4460,11 +4508,11 @@ function Yn(e, c) {
4460
4508
  const Gn = /* @__PURE__ */ xe({
4461
4509
  __name: "FullWrapper",
4462
4510
  setup(e) {
4463
- const c = ls(), u = Be(null), A = Yn(u), s = Yt(() => {
4464
- var h;
4511
+ const c = ls(), u = he(null), A = Yn(u), s = Yt(() => {
4512
+ var B;
4465
4513
  const b = c.isAtMost("sm") ? 56 : 0;
4466
4514
  return {
4467
- height: `calc(100dvh - ${((h = A.value) == null ? void 0 : h.top) + 24 + b}px)`
4515
+ height: `calc(100dvh - ${((B = A.value) == null ? void 0 : B.top) + 24 + b}px)`
4468
4516
  };
4469
4517
  });
4470
4518
  return (g, b) => (Ve(), Kt("div", {
@@ -4495,7 +4543,7 @@ const Gn = /* @__PURE__ */ xe({
4495
4543
  loadingComponent: En
4496
4544
  });
4497
4545
  var T = /* @__PURE__ */ ((e) => (e.HOME = "home", e.EMPLOYEE = "employee", e.ROLE = "role", e.TIMESHEET = "timesheet", e.AUDIT_LOG = "audit-log", e.TEAM = "team", e.TEAM_MEMBER = "team-member", e.TEAM_ROLE = "team-role", e.POS_GRANT = "pos-grant", e))(T || {});
4498
- const ht = (e) => ({
4546
+ const Bt = (e) => ({
4499
4547
  validationManifest: {
4500
4548
  requiredCaslPermissions: [
4501
4549
  {
@@ -4504,16 +4552,16 @@ const ht = (e) => ({
4504
4552
  }
4505
4553
  ]
4506
4554
  }
4507
- }), xn = Ke(fe(() => import("./Main-Br1NK5Nk.js"))), Vn = Ke(fe(() => import("./Main-C-_jj0hE.js"))), Fn = Ke(
4508
- fe(() => import("./AuditLogList-iyCwZoot.js"))
4509
- ), Pn = Ke(fe(() => import("./Main-CVLdj0vm.js"))), On = fe(() => import("./EmployeeList-CJvHFQnQ.js")), qn = fe(() => import("./RoleList-C0NI4ooY.js")), Hn = fe(() => import("./TimesheetList-Cvco7hQ7.js")), Xn = fe(() => import("./TeamMemberList-CGjxliOv.js")), Qn = fe(
4510
- () => import("./PermissionSetList-4lJbnJsE.js")
4555
+ }), xn = Ke(fe(() => import("./Main-5nIpv-Sp.js"))), Vn = Ke(fe(() => import("./Main-2uJvk5L7.js"))), Fn = Ke(
4556
+ fe(() => import("./AuditLogList-DQOiwup5.js"))
4557
+ ), Pn = Ke(fe(() => import("./Main-C8ja5xs6.js"))), On = fe(() => import("./EmployeeList-oERrzrAd.js")), qn = fe(() => import("./RoleList-CDBP2W5v.js")), Hn = fe(() => import("./TimesheetList-D1ByiuwP.js")), Xn = fe(() => import("./TeamMemberList-DSzNjP4y.js")), Qn = fe(
4558
+ () => import("./PermissionSetList-CtpaWlVM.js")
4511
4559
  ), eo = [
4512
4560
  {
4513
4561
  path: "/",
4514
4562
  name: "home",
4515
4563
  component: xn,
4516
- meta: ht(Te.Subject.Business.hrm_employee),
4564
+ meta: Bt(Te.Subject.Business.hrm_employee),
4517
4565
  redirect: {
4518
4566
  name: "employee"
4519
4567
  /* EMPLOYEE */
@@ -4540,13 +4588,13 @@ const ht = (e) => ({
4540
4588
  path: "/audit-log",
4541
4589
  name: "audit-log",
4542
4590
  component: Fn,
4543
- meta: ht(Te.Subject.Business.hrm_auditLog)
4591
+ meta: Bt(Te.Subject.Business.hrm_auditLog)
4544
4592
  },
4545
4593
  {
4546
4594
  path: "/team",
4547
4595
  name: "team",
4548
4596
  component: Vn,
4549
- meta: ht(Te.Subject.Business.hrm_teamMember),
4597
+ meta: Bt(Te.Subject.Business.hrm_teamMember),
4550
4598
  redirect: {
4551
4599
  name: "team-member"
4552
4600
  /* TEAM_MEMBER */
@@ -4612,7 +4660,7 @@ const ht = (e) => ({
4612
4660
  }), u("close-navigation");
4613
4661
  }
4614
4662
  }), E;
4615
- }), h = Be();
4663
+ }), B = he();
4616
4664
  return kt(() => {
4617
4665
  var j;
4618
4666
  let E = (j = s.currentRoute.value) == null ? void 0 : j.name;
@@ -4635,12 +4683,12 @@ const ht = (e) => ({
4635
4683
  default:
4636
4684
  E = T.EMPLOYEE;
4637
4685
  }
4638
- h.value !== E && (h.value = E);
4686
+ B.value !== E && (B.value = E);
4639
4687
  }), (E, j) => {
4640
4688
  const w = Gt("FmCollapsibleTabs");
4641
4689
  return Ve(), Se(w, {
4642
- modelValue: h.value,
4643
- "onUpdate:modelValue": j[0] || (j[0] = (F) => h.value = F),
4690
+ modelValue: B.value,
4691
+ "onUpdate:modelValue": j[0] || (j[0] = (F) => B.value = F),
4644
4692
  items: b.value,
4645
4693
  class: "py-16"
4646
4694
  }, null, 8, ["modelValue", "items"]);
@@ -4664,8 +4712,8 @@ var Dt = { exports: {} };
4664
4712
  try {
4665
4713
  var p = a.getItemSync(d);
4666
4714
  r == null || r(null, p), i(p);
4667
- } catch (B) {
4668
- r && r(B, null), n(B);
4715
+ } catch (h) {
4716
+ r && r(h, null), n(h);
4669
4717
  }
4670
4718
  });
4671
4719
  }, setItem: function(d, r, a) {
@@ -4684,7 +4732,7 @@ var Dt = { exports: {} };
4684
4732
  };
4685
4733
  function g(d, r, a, i) {
4686
4734
  return new (a || (a = Promise))(function(n, p) {
4687
- function B(O) {
4735
+ function h(O) {
4688
4736
  try {
4689
4737
  x(i.next(O));
4690
4738
  } catch (M) {
@@ -4702,13 +4750,13 @@ var Dt = { exports: {} };
4702
4750
  var M;
4703
4751
  O.done ? n(O.value) : (M = O.value, M instanceof a ? M : new a(function(X) {
4704
4752
  X(M);
4705
- })).then(B, Y);
4753
+ })).then(h, Y);
4706
4754
  }
4707
4755
  x((i = i.apply(d, [])).next());
4708
4756
  });
4709
4757
  }
4710
4758
  function b(d, r) {
4711
- var a, i, n, p, B = { label: 0, sent: function() {
4759
+ var a, i, n, p, h = { label: 0, sent: function() {
4712
4760
  if (1 & n[0]) throw n[1];
4713
4761
  return n[1];
4714
4762
  }, trys: [], ops: [] };
@@ -4719,7 +4767,7 @@ var Dt = { exports: {} };
4719
4767
  return function(O) {
4720
4768
  return function(M) {
4721
4769
  if (a) throw new TypeError("Generator is already executing.");
4722
- for (; B; ) try {
4770
+ for (; h; ) try {
4723
4771
  if (a = 1, i && (n = 2 & M[0] ? i.return : M[0] ? i.throw || ((n = i.return) && n.call(i), 0) : i.next) && !(n = n.call(i, M[1])).done) return n;
4724
4772
  switch (i = 0, n && (M = [2 & M[0], n.value]), M[0]) {
4725
4773
  case 0:
@@ -4727,34 +4775,34 @@ var Dt = { exports: {} };
4727
4775
  n = M;
4728
4776
  break;
4729
4777
  case 4:
4730
- return B.label++, { value: M[1], done: !1 };
4778
+ return h.label++, { value: M[1], done: !1 };
4731
4779
  case 5:
4732
- B.label++, i = M[1], M = [0];
4780
+ h.label++, i = M[1], M = [0];
4733
4781
  continue;
4734
4782
  case 7:
4735
- M = B.ops.pop(), B.trys.pop();
4783
+ M = h.ops.pop(), h.trys.pop();
4736
4784
  continue;
4737
4785
  default:
4738
- if (n = B.trys, !((n = n.length > 0 && n[n.length - 1]) || M[0] !== 6 && M[0] !== 2)) {
4739
- B = 0;
4786
+ if (n = h.trys, !((n = n.length > 0 && n[n.length - 1]) || M[0] !== 6 && M[0] !== 2)) {
4787
+ h = 0;
4740
4788
  continue;
4741
4789
  }
4742
4790
  if (M[0] === 3 && (!n || M[1] > n[0] && M[1] < n[3])) {
4743
- B.label = M[1];
4791
+ h.label = M[1];
4744
4792
  break;
4745
4793
  }
4746
- if (M[0] === 6 && B.label < n[1]) {
4747
- B.label = n[1], n = M;
4794
+ if (M[0] === 6 && h.label < n[1]) {
4795
+ h.label = n[1], n = M;
4748
4796
  break;
4749
4797
  }
4750
- if (n && B.label < n[2]) {
4751
- B.label = n[2], B.ops.push(M);
4798
+ if (n && h.label < n[2]) {
4799
+ h.label = n[2], h.ops.push(M);
4752
4800
  break;
4753
4801
  }
4754
- n[2] && B.ops.pop(), B.trys.pop();
4802
+ n[2] && h.ops.pop(), h.trys.pop();
4755
4803
  continue;
4756
4804
  }
4757
- M = r.call(d, B);
4805
+ M = r.call(d, h);
4758
4806
  } catch (X) {
4759
4807
  M = [6, X], i = 0;
4760
4808
  } finally {
@@ -4766,7 +4814,7 @@ var Dt = { exports: {} };
4766
4814
  };
4767
4815
  }
4768
4816
  }
4769
- function h(d, r, a) {
4817
+ function B(d, r, a) {
4770
4818
  for (var i, n = 0, p = r.length; n < p; n++) !i && n in r || (i || (i = Array.prototype.slice.call(r, 0, n)), i[n] = r[n]);
4771
4819
  return d.concat(i || Array.prototype.slice.call(r));
4772
4820
  }
@@ -4786,8 +4834,8 @@ var Dt = { exports: {} };
4786
4834
  if ((i = (p = Object.keys(r)).length) !== Object.keys(a).length) return !1;
4787
4835
  for (n = i; n-- != 0; ) if (!Object.prototype.hasOwnProperty.call(a, p[n])) return !1;
4788
4836
  for (n = i; n-- != 0; ) {
4789
- var B = p[n];
4790
- if (!d(r[B], a[B])) return !1;
4837
+ var h = p[n];
4838
+ if (!d(r[h], a[h])) return !1;
4791
4839
  }
4792
4840
  return !0;
4793
4841
  }
@@ -4822,15 +4870,15 @@ var Dt = { exports: {} };
4822
4870
  (function(d) {
4823
4871
  d.NONE = "NONE", d.DEFAULT_FLAGS = "DEFAULT_FLAGS", d.CACHE = "CACHE", d.SERVER = "SERVER";
4824
4872
  })(w || (w = {}));
4825
- var te, S = null, Je = "FLAGSMITH_EVENT", ie = Je, he = "https://edge.api.flagsmith.com/api/v1/", Fe = "flagsmith_value_", Ne = "flagsmith_enabled_", Pe = "flagsmith_trait_", Oe = function() {
4873
+ var te, S = null, Je = "FLAGSMITH_EVENT", ie = Je, Be = "https://edge.api.flagsmith.com/api/v1/", Fe = "flagsmith_value_", Ne = "flagsmith_enabled_", Pe = "flagsmith_trait_", Oe = function() {
4826
4874
  function d(r) {
4827
4875
  var a = this;
4828
4876
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
4829
4877
  var i = a, n = i.api, p = i.evaluationContext;
4830
4878
  a.log("Get Flags"), a.isLoading = !0, a.loadingState.isFetching || a.setLoadingState(s(s({}, a.loadingState), { isFetching: !0 }));
4831
- var B = "".concat(a.getContext().identity), Y = function(x) {
4879
+ var h = "".concat(a.getContext().identity), Y = function(x) {
4832
4880
  var O, M, X, J;
4833
- if (x && B === "".concat(a.getContext().identity)) {
4881
+ if (x && h === "".concat(a.getContext().identity)) {
4834
4882
  var ce = x.flags, ae = x.traits, Ae = x.identifier;
4835
4883
  a.isLoading = !1;
4836
4884
  var se = {}, re = {};
@@ -4888,8 +4936,8 @@ var Dt = { exports: {} };
4888
4936
  a.log("Exception fetching evaluationEvent", n);
4889
4937
  }) : void 0;
4890
4938
  }, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(i, n, p) {
4891
- var B = a.flags && a.flags[i.toLowerCase().replace(/ /g, "_")], Y = null;
4892
- if (B && (Y = B.value), n != null && n.skipAnalytics || p || a.evaluateFlag(i, "VALUE"), Y === null && (n == null ? void 0 : n.fallback) !== void 0) return n.fallback;
4939
+ var h = a.flags && a.flags[i.toLowerCase().replace(/ /g, "_")], Y = null;
4940
+ if (h && (Y = h.value), n != null && n.skipAnalytics || p || a.evaluateFlag(i, "VALUE"), Y === null && (n == null ? void 0 : n.fallback) !== void 0) return n.fallback;
4893
4941
  if (n != null && n.json) try {
4894
4942
  return Y === null ? (a.log("Tried to parse null flag as JSON: " + i), null) : JSON.parse(Y);
4895
4943
  } catch {
@@ -4902,8 +4950,8 @@ var Dt = { exports: {} };
4902
4950
  }, this.getAllTraits = function() {
4903
4951
  var i;
4904
4952
  return Object.fromEntries(Object.entries(((i = a.evaluationContext.identity) === null || i === void 0 ? void 0 : i.traits) || {}).map(function(n) {
4905
- var p = n[0], B = n[1];
4906
- return [p, B == null ? void 0 : B.value];
4953
+ var p = n[0], h = n[1];
4954
+ return [p, h == null ? void 0 : h.value];
4907
4955
  }));
4908
4956
  }, this.setContext = function(i) {
4909
4957
  var n = k(i);
@@ -4918,22 +4966,22 @@ var Dt = { exports: {} };
4918
4966
  }, this.setTraits = function(i) {
4919
4967
  var n;
4920
4968
  if (a.api) return a.setContext(s(s({}, a.evaluationContext), { identity: s(s({}, a.evaluationContext.identity), { traits: s(s({}, (n = a.evaluationContext.identity) === null || n === void 0 ? void 0 : n.traits), Object.fromEntries(Object.entries(i).map(function(p) {
4921
- var B = p[0], Y = p[1];
4922
- return [B, H(Y) ? Y : { value: Y }];
4969
+ var h = p[0], Y = p[1];
4970
+ return [h, H(Y) ? Y : { value: Y }];
4923
4971
  }))) }) }));
4924
4972
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
4925
4973
  }, this.hasFeature = function(i, n) {
4926
- var p = typeof n == "object", B = a.flags && a.flags[i.toLowerCase().replace(/ /g, "_")], Y = !1;
4927
- return !B && p && n.fallback !== void 0 ? Y = n == null ? void 0 : n.fallback : B && B.enabled && (Y = !0), (p && !n.skipAnalytics || !n) && a.evaluateFlag(i, "ENABLED"), Y;
4974
+ var p = typeof n == "object", h = a.flags && a.flags[i.toLowerCase().replace(/ /g, "_")], Y = !1;
4975
+ return !h && p && n.fallback !== void 0 ? Y = n == null ? void 0 : n.fallback : h && h.enabled && (Y = !0), (p && !n.skipAnalytics || !n) && a.evaluateFlag(i, "ENABLED"), Y;
4928
4976
  }, this.getStorageKey = function() {
4929
4977
  var i, n;
4930
4978
  return ((i = a.cacheOptions) === null || i === void 0 ? void 0 : i.storageKey) || "FLAGSMITH_DB_" + ((n = a.evaluationContext.environment) === null || n === void 0 ? void 0 : n.apiKey);
4931
4979
  }, this.getJSON = function(i, n, p) {
4932
- var B, Y = a;
4980
+ var h, Y = a;
4933
4981
  Y.evaluationContext;
4934
4982
  var x = Y.headers, O = { method: n || "GET", body: p, cache: "no-cache", headers: {} };
4935
4983
  a.evaluationContext.environment && (O.headers["X-Environment-Key"] = a.evaluationContext.environment.apiKey), n && n !== "GET" && (O.headers["Content-Type"] = "application/json; charset=utf-8"), x && Object.assign(O.headers, x), F || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
4936
- var M = "".concat((B = a.evaluationContext.identity) === null || B === void 0 ? void 0 : B.identifier);
4984
+ var M = "".concat((h = a.evaluationContext.identity) === null || h === void 0 ? void 0 : h.identifier);
4937
4985
  return F(i, O).then(function(X) {
4938
4986
  var J, ce, ae = "".concat((J = a.evaluationContext.identity) === null || J === void 0 ? void 0 : J.identifier);
4939
4987
  if (M === ae) {
@@ -4963,20 +5011,20 @@ var Dt = { exports: {} };
4963
5011
  }
4964
5012
  a.updateEventStorage();
4965
5013
  }, this._onChange = function(i, n, p) {
4966
- var B, Y;
4967
- a.setLoadingState(p), (B = a.onChange) === null || B === void 0 || B.call(a, i, n, a.loadingState), (Y = a._trigger) === null || Y === void 0 || Y.call(a);
5014
+ var h, Y;
5015
+ a.setLoadingState(p), (h = a.onChange) === null || h === void 0 || h.call(a, i, n, a.loadingState), (Y = a._trigger) === null || Y === void 0 || Y.call(a);
4968
5016
  }, F = r.fetch ? r.fetch : typeof fetch < "u" ? fetch : Ze == null ? void 0 : Ze.fetch, this.canUseStorage = typeof window < "u" || !!r.browserlessStorage, this.log("Constructing flagsmith instance " + r), r.eventSource && (te = r.eventSource), r.AsyncStorage && (S = r.AsyncStorage);
4969
5017
  }
4970
5018
  return d.prototype.init = function(r) {
4971
5019
  var a, i, n;
4972
5020
  return g(this, void 0, void 0, function() {
4973
- var p, B, Y, x, O, M, X, J, ce, ae, Ae, se, re, ue, qe, He, Ce, L, Q, Le, Xe, Vt, De, _e, Ft, Pt, $e, Ot, et, Qe, Ye, qt, _ = this;
5021
+ var p, h, Y, x, O, M, X, J, ce, ae, Ae, se, re, ue, qe, He, Ce, L, Q, Le, Xe, Vt, De, _e, Ft, Pt, $e, Ot, et, Qe, Ye, qt, _ = this;
4974
5022
  return b(this, function(le) {
4975
5023
  switch (le.label) {
4976
5024
  case 0:
4977
5025
  p = k(r.evaluationContext || this.evaluationContext), le.label = 1;
4978
5026
  case 1:
4979
- if (le.trys.push([1, 13, , 14]), B = r.environmentID, Y = r.api, x = Y === void 0 ? he : Y, O = r.headers, M = r.onChange, X = r.cacheFlags, J = r.datadogRum, ce = r.onError, ae = r.defaultFlags, Ae = r.fetch, se = r.preventFetch, re = r.enableLogs, ue = r.enableDynatrace, qe = r.enableAnalytics, He = r.realtime, Ce = r.eventSourceUrl, L = Ce === void 0 ? "https://realtime.flagsmith.com/" : Ce, Q = r.AsyncStorage, Le = r.identity, Xe = r.traits, Vt = r.state, De = r.cacheOptions, _e = r.angularHttpClient, Ft = r._trigger, Pt = r._triggerLoadingState, p.environment = B ? { apiKey: B } : p.environment, !p.environment || !p.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
5027
+ if (le.trys.push([1, 13, , 14]), h = r.environmentID, Y = r.api, x = Y === void 0 ? Be : Y, O = r.headers, M = r.onChange, X = r.cacheFlags, J = r.datadogRum, ce = r.onError, ae = r.defaultFlags, Ae = r.fetch, se = r.preventFetch, re = r.enableLogs, ue = r.enableDynatrace, qe = r.enableAnalytics, He = r.realtime, Ce = r.eventSourceUrl, L = Ce === void 0 ? "https://realtime.flagsmith.com/" : Ce, Q = r.AsyncStorage, Le = r.identity, Xe = r.traits, Vt = r.state, De = r.cacheOptions, _e = r.angularHttpClient, Ft = r._trigger, Pt = r._triggerLoadingState, p.environment = h ? { apiKey: h } : p.environment, !p.environment || !p.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
4980
5028
  if (p.identity = Le || Xe ? { identifier: Le, traits: Xe ? Object.fromEntries(Object.entries(Xe).map(function(ne) {
4981
5029
  return [ne[0], { value: ne[1] }];
4982
5030
  })) : {} } : p.identity, this.evaluationContext = p, this.api = x, this.headers = O, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = M, $e = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ft || this._trigger, this._triggerLoadingState = Pt || this._triggerLoadingState, this.onError = function(ne) {
@@ -5093,13 +5141,13 @@ var Dt = { exports: {} };
5093
5141
  return this.flags;
5094
5142
  }, d.prototype.identify = function(r, a, i) {
5095
5143
  return this.evaluationContext.identity = { identifier: r, transient: i, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == r ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = r, this.log("Identify: " + this.evaluationContext.identity.identifier), a && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(a).map(function(n) {
5096
- var p = n[0], B = n[1];
5097
- return [p, H(B) ? B : { value: B }];
5144
+ var p = n[0], h = n[1];
5145
+ return [p, H(h) ? h : { value: h }];
5098
5146
  }))), this.initialised ? this.getFlags() : Promise.resolve();
5099
5147
  }, d.prototype.getState = function() {
5100
5148
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
5101
5149
  }, d.prototype.setState = function(r) {
5102
- r && (this.initialised = !0, this.api = r.api || this.api || he, this.flags = r.flags || this.flags, this.evaluationContext = r.evaluationContext || this.evaluationContext, this.evaluationEvent = r.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
5150
+ r && (this.initialised = !0, this.api = r.api || this.api || Be, this.flags = r.flags || this.flags, this.evaluationContext = r.evaluationContext || this.evaluationContext, this.evaluationEvent = r.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
5103
5151
  }, d.prototype.logout = function() {
5104
5152
  return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
5105
5153
  }, d.prototype.startListening = function(r) {
@@ -5110,7 +5158,7 @@ var Dt = { exports: {} };
5110
5158
  return r === void 0 && (r = null), i === void 0 && (i = !1), { error: r, isFetching: i, isLoading: !1, source: a };
5111
5159
  }, d.prototype.log = function() {
5112
5160
  for (var r = [], a = 0; a < arguments.length; a++) r[a] = arguments[a];
5113
- this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], r));
5161
+ this.enableLogs && console.log.apply(this, B(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], r));
5114
5162
  }, d.prototype.updateStorage = function() {
5115
5163
  if (this.cacheFlags) {
5116
5164
  this.ts = (/* @__PURE__ */ new Date()).valueOf();
@@ -5130,13 +5178,13 @@ var Dt = { exports: {} };
5130
5178
  }, d.prototype.setupRealtime = function(r, a) {
5131
5179
  var i = this, n = r + "sse/environments/" + a + "/stream";
5132
5180
  te ? this.eventSource || (this.log("Creating event source with url " + n), this.eventSource = new te(n), this.eventSource.addEventListener("environment_updated", function(p) {
5133
- var B;
5181
+ var h;
5134
5182
  try {
5135
- B = JSON.parse(p.data).updated_at;
5183
+ h = JSON.parse(p.data).updated_at;
5136
5184
  } catch (Y) {
5137
5185
  i.log("Could not parse sse event", Y);
5138
5186
  }
5139
- B ? !i.timestamp || B > i.timestamp ? i.isLoading ? i.log("updated_at is new, but flags are loading", p.data, i.timestamp) : (i.log("updated_at is new, fetching flags", p.data, i.timestamp), i.getFlags()) : i.log("updated_at is outdated, skipping get flags", p.data, i.timestamp) : i.log("No updated_at received, fetching flags", p);
5187
+ h ? !i.timestamp || h > i.timestamp ? i.isLoading ? i.log("updated_at is new, but flags are loading", p.data, i.timestamp) : (i.log("updated_at is new, fetching flags", p.data, i.timestamp), i.getFlags()) : i.log("updated_at is outdated, skipping get flags", p.data, i.timestamp) : i.log("No updated_at received, fetching flags", p);
5140
5188
  })) : this.log("Error, EventSource is undefined");
5141
5189
  }, d;
5142
5190
  }();
@@ -5166,9 +5214,9 @@ var Dt = { exports: {} };
5166
5214
  }, C = function(d, r) {
5167
5215
  var a = typeof Symbol == "function" && d[Symbol.iterator];
5168
5216
  if (!a) return d;
5169
- var i, n, p = a.call(d), B = [];
5217
+ var i, n, p = a.call(d), h = [];
5170
5218
  try {
5171
- for (; (r === void 0 || r-- > 0) && !(i = p.next()).done; ) B.push(i.value);
5219
+ for (; (r === void 0 || r-- > 0) && !(i = p.next()).done; ) h.push(i.value);
5172
5220
  } catch (Y) {
5173
5221
  n = { error: Y };
5174
5222
  } finally {
@@ -5178,7 +5226,7 @@ var Dt = { exports: {} };
5178
5226
  if (n) throw n.error;
5179
5227
  }
5180
5228
  }
5181
- return B;
5229
+ return h;
5182
5230
  }, D = function(d, r, a) {
5183
5231
  if (arguments.length === 2) for (var i, n = 0, p = r.length; n < p; n++) !i && n in r || (i || (i = Array.prototype.slice.call(r, 0, n)), i[n] = r[n]);
5184
5232
  return d.concat(i || Array.prototype.slice.call(r));
@@ -5208,15 +5256,15 @@ Consider loading an EventSource polyfill and making it available globally as Eve
5208
5256
  i.onmessage(x);
5209
5257
  };
5210
5258
  try {
5211
- for (var p = y(Object.keys(this._listeners)), B = p.next(); !B.done; B = p.next()) {
5212
- var Y = B.value;
5259
+ for (var p = y(Object.keys(this._listeners)), h = p.next(); !h.done; h = p.next()) {
5260
+ var Y = h.value;
5213
5261
  this._eventSource.addEventListener(Y, this._onevent_wrapped);
5214
5262
  }
5215
5263
  } catch (x) {
5216
5264
  r = { error: x };
5217
5265
  } finally {
5218
5266
  try {
5219
- B && !B.done && (a = p.return) && a.call(p);
5267
+ h && !h.done && (a = p.return) && a.call(p);
5220
5268
  } finally {
5221
5269
  if (r) throw r.error;
5222
5270
  }
@@ -5237,13 +5285,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
5237
5285
  r && r.lastEventId && (this._lastEventId = r.lastEventId);
5238
5286
  var n = this._listeners[r.type];
5239
5287
  if (n != null) try {
5240
- for (var p = y(D([], C(n), !1)), B = p.next(); !B.done; B = p.next())
5241
- B.value.call(this, r);
5288
+ for (var p = y(D([], C(n), !1)), h = p.next(); !h.done; h = p.next())
5289
+ h.value.call(this, r);
5242
5290
  } catch (Y) {
5243
5291
  a = { error: Y };
5244
5292
  } finally {
5245
5293
  try {
5246
- B && !B.done && (i = p.return) && i.call(p);
5294
+ h && !h.done && (i = p.return) && i.call(p);
5247
5295
  } finally {
5248
5296
  if (a) throw a.error;
5249
5297
  }
@@ -5268,7 +5316,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
5268
5316
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
5269
5317
  var R = function(d, r) {
5270
5318
  return r = r || {}, new Promise(function(a, i) {
5271
- var n = new XMLHttpRequest(), p = [], B = [], Y = {}, x = function() {
5319
+ var n = new XMLHttpRequest(), p = [], h = [], Y = {}, x = function() {
5272
5320
  return { ok: (n.status / 100 | 0) == 2, statusText: n.statusText, status: n.status, url: n.responseURL, text: function() {
5273
5321
  return Promise.resolve(n.responseText);
5274
5322
  }, json: function() {
@@ -5278,7 +5326,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
5278
5326
  }, clone: x, headers: { keys: function() {
5279
5327
  return p;
5280
5328
  }, entries: function() {
5281
- return B;
5329
+ return h;
5282
5330
  }, get: function(M) {
5283
5331
  return Y[M.toLowerCase()];
5284
5332
  }, has: function(M) {
@@ -5287,7 +5335,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
5287
5335
  };
5288
5336
  for (var O in n.open(r.method || "get", d, !0), n.onload = function() {
5289
5337
  n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(M, X, J) {
5290
- p.push(X = X.toLowerCase()), B.push([X, J]), Y[X] = Y[X] ? Y[X] + "," + J : J;
5338
+ p.push(X = X.toLowerCase()), h.push([X, J]), Y[X] = Y[X] ? Y[X] + "," + J : J;
5291
5339
  }), a(x());
5292
5340
  }, n.onerror = i, n.withCredentials = r.credentials == "include", r.headers) n.setRequestHeader(O, r.headers[O]);
5293
5341
  n.send(r.body || null);
@@ -5389,20 +5437,20 @@ var Zn = Dt.exports, Nn = {
5389
5437
  const g = this.userContext;
5390
5438
  try {
5391
5439
  return await this.setUser(c), this.getFlagValue(u, s) ?? A;
5392
- } catch (h) {
5393
- return console.error(`Error getting user flag value for ${u}:`, h), A;
5440
+ } catch (B) {
5441
+ return console.error(`Error getting user flag value for ${u}:`, B), A;
5394
5442
  } finally {
5395
5443
  try {
5396
5444
  await ((b = this.flagsmithClient) == null ? void 0 : b.logout()), this.userContext = null, g && await this.setUser(g.identifier);
5397
- } catch (h) {
5398
- console.error("Error during cleanup:", h);
5445
+ } catch (B) {
5446
+ console.error("Error during cleanup:", B);
5399
5447
  }
5400
5448
  }
5401
5449
  }
5402
5450
  reset() {
5403
5451
  this.flagsmithClient = null, this.userContext = null;
5404
5452
  }
5405
- }, Re(de, "instance"), de), zn = Rn.getInstance(), Ie = Be(!1), Ue = Be([]), je = Be(null);
5453
+ }, Re(de, "instance"), de), zn = Rn.getInstance(), Ie = he(!1), Ue = he([]), je = he(null);
5406
5454
  function Un(e = zn) {
5407
5455
  const c = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), u = async (w, F = []) => {
5408
5456
  if (Ie.value) {
@@ -5435,14 +5483,14 @@ function Un(e = zn) {
5435
5483
  } catch (I) {
5436
5484
  return console.error(`Error getting flag for ${w}:`, I), F ?? null;
5437
5485
  }
5438
- }, h = async (w, F, I = null, H) => {
5486
+ }, B = async (w, F, I = null, H) => {
5439
5487
  if (!c()) return I;
5440
5488
  try {
5441
5489
  return await e.getUserFlagValue(w, F, I, H);
5442
5490
  } catch (z) {
5443
5491
  return console.error(`Error getting user flag value for ${F}:`, z), I;
5444
5492
  }
5445
- }, E = async (w, F, I = null, H) => h(`${Tt}-${w}`, F, I, H), j = () => {
5493
+ }, E = async (w, F, I = null, H) => B(`${Tt}-${w}`, F, I, H), j = () => {
5446
5494
  try {
5447
5495
  e.reset();
5448
5496
  } catch (w) {
@@ -5452,15 +5500,15 @@ function Un(e = zn) {
5452
5500
  }
5453
5501
  };
5454
5502
  return {
5455
- flags: Bt(Ue),
5456
- isInitialized: Bt(Ie),
5457
- error: Bt(je),
5503
+ flags: ht(Ue),
5504
+ isInitialized: ht(Ie),
5505
+ error: ht(je),
5458
5506
  init: u,
5459
5507
  setUser: A,
5460
5508
  setBusiness: s,
5461
5509
  getFlagValue: g,
5462
5510
  getFlag: b,
5463
- getUserFlagValue: h,
5511
+ getUserFlagValue: B,
5464
5512
  getBusinessFlagValue: E,
5465
5513
  reset: j
5466
5514
  };
@@ -5480,7 +5528,7 @@ const to = /* @__PURE__ */ xe({
5480
5528
  };
5481
5529
  }
5482
5530
  }), ao = () => {
5483
- const e = [Qs, Es, hs, ks], c = new Set(e.flatMap((u) => Object.keys(u)));
5531
+ const e = [Qs, Es, Bs, ks], c = new Set(e.flatMap((u) => Object.keys(u)));
5484
5532
  return Array.from(c).reduce(
5485
5533
  (u, A) => {
5486
5534
  const s = A;