@feedmepos/mf-hrm-portal 2.0.19-dev.1 → 2.0.20-dev.1
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/AuditLogList-Bsj-qg8n.js +1037 -0
- package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
- package/dist/EmployeeList-Cy2ayCko.js +824 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{Main-CsUo2UeJ.js → Main-BGc6kNaR.js} +758 -761
- package/dist/{Main-D_dew1Zy.js → Main-CSMAtoMj.js} +181 -175
- package/dist/Main-D7bV8EuC.js +86 -0
- package/dist/PermissionSetList-CuHhDqWl.js +347 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CdWgTjZw.js +3443 -0
- package/dist/RoleList-e0WUqt4Y.js +545 -0
- package/dist/TeamMemberList-CpPa1KyV.js +1097 -0
- package/dist/{TimesheetList-Bu47lfyS.js → TimesheetList-tFjvFHqH.js} +132 -126
- package/dist/{app-rZIFa5rc.js → app-CL7rUfL3.js} +552 -504
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BGndyuOo.js → dayjs.min-ChdFPuFV.js} +1 -1
- package/dist/employee-kKV7UnHU.js +204 -0
- package/dist/{iteration-BOjSUDXb.js → iteration-BbD0nOgO.js} +9253 -9209
- package/dist/{lodash-C3mSRK8f.js → lodash-CDf3aG6G.js} +1 -1
- package/dist/{rule-CPun0Q97.js → rule-BJ-y3Sp8.js} +263 -265
- package/dist/src/api/audit-log/index.d.ts +9 -0
- package/dist/src/api/index.d.ts +0 -1
- package/dist/src/api/restaurant/index.d.ts +5 -0
- package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
- package/dist/src/components/Skeleton.vue.d.ts +7 -0
- package/dist/src/composables/useBasePermission.d.ts +1 -0
- package/dist/src/composables/useRestaurantMap.d.ts +2 -329
- package/dist/src/stores/restaurant.d.ts +181 -0
- package/dist/src/stores/role.d.ts +7 -7
- package/dist/src/stores/team.d.ts +6 -6
- package/dist/src/types/restaurant.d.ts +11 -0
- package/dist/src/types/team.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +16 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -7
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +32 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +5 -3
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{timesheet-BKF3Ow4F.js → timesheet-BmV02Rkz.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-D8QAGZ02.js +171 -0
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-EAY7xVQ0.js → useLoading-KpcQw0p4.js} +1 -1
- package/dist/{useReportPermissions-C0Bay1Db.js → useReportPermissions-CmGJAz_N.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-ayMV64G1.js +0 -980
- package/dist/EmployeeList-D_ZkY6oL.js +0 -736
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
- package/dist/HorizontalSplitter-o860F4xM.js +0 -12
- package/dist/Main-Dc9eZBpa.js +0 -85
- package/dist/PermissionSetList-CkRVYnaB.js +0 -341
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DF26-RE9.js +0 -3480
- package/dist/RoleList-D6BdbJhj.js +0 -530
- package/dist/TeamMemberList-Cf82_HoM.js +0 -1114
- package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang--Ukpicpg.js +0 -34
- package/dist/employee-C9_9zcbo.js +0 -204
- package/dist/src/api/account/index.d.ts +0 -4
- package/dist/src/composables/useSupportedCountries.d.ts +0 -5
- package/dist/useAppStore-DBeAz_oF.js +0 -171
- package/dist/useDebounce-B8ZPVS5C.js +0 -15
- package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
- package/dist/useSearch-B6WK1LBB.js +0 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var $s = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { isRef as
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
import { useRoute as
|
|
2
|
+
var en = (e, A, u) => A in e ? $s(e, A, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[A] = u;
|
|
3
|
+
var Ze = (e, A, u) => en(e, typeof A != "symbol" ? A + "" : A, u);
|
|
4
|
+
import { isRef as tn, ref as ve, shallowRef as sn, watchEffect as St, computed as jt, h as Qt, defineComponent as xe, createBlock as ke, renderSlot as kt, createCommentVNode as nn, unref as Me, openBlock as Ve, createElementBlock as Kt, createElementVNode as we, toDisplayString as It, watch as Rt, nextTick as Nt, onMounted as Lt, onBeforeUnmount as rn, normalizeStyle as an, resolveComponent as Gt, withCtx as on, createVNode as ln, defineAsyncComponent as cn, readonly as vt } from "vue";
|
|
5
|
+
import { useBreakpoints as An } from "@feedmepos/ui-library";
|
|
6
|
+
import { useRoute as un, useRouter as mn } from "vue-router";
|
|
7
7
|
import { useCoreStore as Yt, useI18n as Jt } from "@feedmepos/mf-common";
|
|
8
8
|
const _t = {
|
|
9
9
|
predefinedRanges: {
|
|
@@ -134,14 +134,14 @@ const _t = {
|
|
|
134
134
|
requestPath: "Request Path",
|
|
135
135
|
requestBody: "Request Body"
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, gn = {
|
|
138
138
|
date: _t,
|
|
139
139
|
auditLog: $t
|
|
140
|
-
},
|
|
140
|
+
}, dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
141
141
|
__proto__: null,
|
|
142
142
|
auditLog: $t,
|
|
143
143
|
date: _t,
|
|
144
|
-
default:
|
|
144
|
+
default: gn
|
|
145
145
|
}, Symbol.toStringTag, { value: "Module" })), es = {
|
|
146
146
|
predefinedRanges: {
|
|
147
147
|
today: "วันนี้",
|
|
@@ -272,14 +272,14 @@ const _t = {
|
|
|
272
272
|
requestPath: "เส้นทางร้องขอ",
|
|
273
273
|
requestBody: "เนื้อหาคำขอ"
|
|
274
274
|
}
|
|
275
|
-
},
|
|
275
|
+
}, pn = {
|
|
276
276
|
date: es,
|
|
277
277
|
auditLog: ts
|
|
278
|
-
},
|
|
278
|
+
}, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
279
279
|
__proto__: null,
|
|
280
280
|
auditLog: ts,
|
|
281
281
|
date: es,
|
|
282
|
-
default:
|
|
282
|
+
default: pn
|
|
283
283
|
}, Symbol.toStringTag, { value: "Module" })), ss = {
|
|
284
284
|
predefinedRanges: {
|
|
285
285
|
today: "今天",
|
|
@@ -290,7 +290,7 @@ const _t = {
|
|
|
290
290
|
thisMonth: "本月",
|
|
291
291
|
lastMonth: "上月"
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, ns = {
|
|
294
294
|
title: "审计日志",
|
|
295
295
|
export: "导出",
|
|
296
296
|
dateRange: {
|
|
@@ -410,15 +410,15 @@ const _t = {
|
|
|
410
410
|
requestPath: "请求路径",
|
|
411
411
|
requestBody: "请求内容"
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, fn = {
|
|
414
414
|
date: ss,
|
|
415
|
-
auditLog:
|
|
416
|
-
},
|
|
415
|
+
auditLog: ns
|
|
416
|
+
}, yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
417
417
|
__proto__: null,
|
|
418
|
-
auditLog:
|
|
418
|
+
auditLog: ns,
|
|
419
419
|
date: ss,
|
|
420
|
-
default:
|
|
421
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
420
|
+
default: fn
|
|
421
|
+
}, Symbol.toStringTag, { value: "Module" })), rs = {
|
|
422
422
|
predefinedRanges: {
|
|
423
423
|
today: "今天",
|
|
424
424
|
yesterday: "昨天",
|
|
@@ -548,19 +548,19 @@ const _t = {
|
|
|
548
548
|
requestPath: "請求路徑",
|
|
549
549
|
requestBody: "請求內容"
|
|
550
550
|
}
|
|
551
|
-
},
|
|
552
|
-
date:
|
|
551
|
+
}, vn = {
|
|
552
|
+
date: rs,
|
|
553
553
|
auditLog: as
|
|
554
|
-
},
|
|
554
|
+
}, hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
555
|
__proto__: null,
|
|
556
556
|
auditLog: as,
|
|
557
|
-
date:
|
|
558
|
-
default:
|
|
559
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
560
|
-
"en-US":
|
|
561
|
-
"zh-CN":
|
|
562
|
-
"th-TH":
|
|
563
|
-
"zh-Hant":
|
|
557
|
+
date: rs,
|
|
558
|
+
default: vn
|
|
559
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = {
|
|
560
|
+
"en-US": dn,
|
|
561
|
+
"zh-CN": yn,
|
|
562
|
+
"th-TH": bn,
|
|
563
|
+
"zh-Hant": hn
|
|
564
564
|
}, os = {
|
|
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"
|
|
@@ -757,11 +761,11 @@ const _t = {
|
|
|
757
761
|
placeholder: "Search restaurant"
|
|
758
762
|
}
|
|
759
763
|
}
|
|
760
|
-
},
|
|
764
|
+
}, wn = {
|
|
761
765
|
hr: os
|
|
762
|
-
},
|
|
766
|
+
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
763
767
|
__proto__: null,
|
|
764
|
-
default:
|
|
768
|
+
default: wn,
|
|
765
769
|
hr: os
|
|
766
770
|
}, Symbol.toStringTag, { value: "Module" })), is = {
|
|
767
771
|
employee: {
|
|
@@ -772,12 +776,15 @@ const _t = {
|
|
|
772
776
|
code: "รหัส",
|
|
773
777
|
name: "ชื่อ",
|
|
774
778
|
restaurants: "ร้านอาหาร",
|
|
779
|
+
assignedRole: "บทบาทที่ได้รับมอบหมาย",
|
|
775
780
|
since: "เข้าร่วมตั้งแต่"
|
|
776
781
|
},
|
|
777
782
|
form: {
|
|
778
783
|
add: "สร้างพนักงาน",
|
|
779
784
|
update: "อัพเดทพนักงาน",
|
|
780
785
|
employeeSetting: "ตั้งค่าพนักงาน",
|
|
786
|
+
assignmentSection: "การกำหนดสาขาและบทบาท",
|
|
787
|
+
addAnother: "เพิ่มอีกหนึ่งรายการ",
|
|
781
788
|
masterUserConfig: "ตั้งค่าผู้ใช้หลัก",
|
|
782
789
|
code: "รหัส",
|
|
783
790
|
masterUser: "ผู้ใช้หลัก",
|
|
@@ -787,6 +794,7 @@ const _t = {
|
|
|
787
794
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
788
795
|
passcodeGenerate: "สร้างรหัส",
|
|
789
796
|
atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
|
|
797
|
+
roleRequired: "กรุณาเลือกบทบาทให้ทุกร้านอาหาร",
|
|
790
798
|
all: "ทั้งหมด",
|
|
791
799
|
role: "บทบาท",
|
|
792
800
|
name: "ชื่อ"
|
|
@@ -958,11 +966,11 @@ const _t = {
|
|
|
958
966
|
placeholder: "ค้นหาร้านอาหาร"
|
|
959
967
|
}
|
|
960
968
|
}
|
|
961
|
-
},
|
|
969
|
+
}, Cn = {
|
|
962
970
|
hr: is
|
|
963
|
-
},
|
|
971
|
+
}, Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
964
972
|
__proto__: null,
|
|
965
|
-
default:
|
|
973
|
+
default: Cn,
|
|
966
974
|
hr: is
|
|
967
975
|
}, Symbol.toStringTag, { value: "Module" })), ls = {
|
|
968
976
|
employee: {
|
|
@@ -973,12 +981,15 @@ const _t = {
|
|
|
973
981
|
code: "工号",
|
|
974
982
|
name: "姓名",
|
|
975
983
|
restaurants: "餐厅",
|
|
984
|
+
assignedRole: "分配角色",
|
|
976
985
|
since: "入职时间"
|
|
977
986
|
},
|
|
978
987
|
form: {
|
|
979
988
|
add: "添加员工",
|
|
980
989
|
update: "更新员工",
|
|
981
990
|
employeeSetting: "员工设置",
|
|
991
|
+
assignmentSection: "门店与角色分配",
|
|
992
|
+
addAnother: "新增一项",
|
|
982
993
|
masterUserConfig: "主用户配置",
|
|
983
994
|
code: "工号",
|
|
984
995
|
masterUser: "主用户",
|
|
@@ -988,6 +999,7 @@ const _t = {
|
|
|
988
999
|
passcodeRequired: "密码必须为4位数字",
|
|
989
1000
|
passcodeGenerate: "生成密码",
|
|
990
1001
|
atLeastOneRestaurant: "至少选择一个餐厅",
|
|
1002
|
+
roleRequired: "请为每个餐厅选择角色",
|
|
991
1003
|
all: "全选",
|
|
992
1004
|
role: "角色",
|
|
993
1005
|
name: "姓名"
|
|
@@ -1160,11 +1172,11 @@ const _t = {
|
|
|
1160
1172
|
placeholder: "搜索餐厅"
|
|
1161
1173
|
}
|
|
1162
1174
|
}
|
|
1163
|
-
},
|
|
1175
|
+
}, jn = {
|
|
1164
1176
|
hr: ls
|
|
1165
|
-
},
|
|
1177
|
+
}, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1166
1178
|
__proto__: null,
|
|
1167
|
-
default:
|
|
1179
|
+
default: jn,
|
|
1168
1180
|
hr: ls
|
|
1169
1181
|
}, Symbol.toStringTag, { value: "Module" })), cs = {
|
|
1170
1182
|
employee: {
|
|
@@ -1175,12 +1187,15 @@ const _t = {
|
|
|
1175
1187
|
code: "工號",
|
|
1176
1188
|
name: "姓名",
|
|
1177
1189
|
restaurants: "餐廳",
|
|
1190
|
+
assignedRole: "分配角色",
|
|
1178
1191
|
since: "入職時間"
|
|
1179
1192
|
},
|
|
1180
1193
|
form: {
|
|
1181
1194
|
add: "添加員工",
|
|
1182
1195
|
update: "更新員工",
|
|
1183
1196
|
employeeSetting: "員工設置",
|
|
1197
|
+
assignmentSection: "門店與角色分配",
|
|
1198
|
+
addAnother: "新增一項",
|
|
1184
1199
|
masterUserConfig: "主用户配置",
|
|
1185
1200
|
code: "工號",
|
|
1186
1201
|
masterUser: "主用户",
|
|
@@ -1190,6 +1205,7 @@ const _t = {
|
|
|
1190
1205
|
passcodeRequired: "密碼必須為4位數字",
|
|
1191
1206
|
passcodeGenerate: "生成密碼",
|
|
1192
1207
|
atLeastOneRestaurant: "至少選擇一個餐廳",
|
|
1208
|
+
roleRequired: "請為每個餐廳選擇角色",
|
|
1193
1209
|
all: "全選",
|
|
1194
1210
|
role: "角色",
|
|
1195
1211
|
name: "姓名"
|
|
@@ -1357,17 +1373,17 @@ const _t = {
|
|
|
1357
1373
|
subtitle: ""
|
|
1358
1374
|
}
|
|
1359
1375
|
}
|
|
1360
|
-
},
|
|
1376
|
+
}, Yn = {
|
|
1361
1377
|
hr: cs
|
|
1362
|
-
},
|
|
1378
|
+
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1363
1379
|
__proto__: null,
|
|
1364
|
-
default:
|
|
1380
|
+
default: Yn,
|
|
1365
1381
|
hr: cs
|
|
1366
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1367
|
-
"en-US":
|
|
1368
|
-
"zh-CN":
|
|
1369
|
-
"th-TH":
|
|
1370
|
-
"zh-Hant":
|
|
1382
|
+
}, Symbol.toStringTag, { value: "Module" })), xn = {
|
|
1383
|
+
"en-US": Mn,
|
|
1384
|
+
"zh-CN": Gn,
|
|
1385
|
+
"th-TH": Dn,
|
|
1386
|
+
"zh-Hant": En
|
|
1371
1387
|
}, As = {
|
|
1372
1388
|
title: "Team members",
|
|
1373
1389
|
actions: {
|
|
@@ -1411,7 +1427,9 @@ const _t = {
|
|
|
1411
1427
|
},
|
|
1412
1428
|
filter: {
|
|
1413
1429
|
permission_placeholder: "Filter by permission",
|
|
1414
|
-
selected_permission_prefix: "Selected permissions: "
|
|
1430
|
+
selected_permission_prefix: "Selected permissions: ",
|
|
1431
|
+
assigned_role_placeholder: "Assigned Role",
|
|
1432
|
+
selected_assigned_role_prefix: "Assigned roles: "
|
|
1415
1433
|
},
|
|
1416
1434
|
emptyState: {
|
|
1417
1435
|
title: "No team members found",
|
|
@@ -1433,6 +1451,7 @@ const _t = {
|
|
|
1433
1451
|
emailAddress: "Email address"
|
|
1434
1452
|
},
|
|
1435
1453
|
permissions: {
|
|
1454
|
+
title: "Permissions",
|
|
1436
1455
|
manageable: "Manageable {context}",
|
|
1437
1456
|
search: "Search {context}",
|
|
1438
1457
|
general: "General permissions",
|
|
@@ -1442,13 +1461,18 @@ const _t = {
|
|
|
1442
1461
|
includedFuture: "Include future {context}",
|
|
1443
1462
|
includedNewRole: "Include new added role",
|
|
1444
1463
|
roles: "Usable POS roles",
|
|
1445
|
-
inherited: "Inherited permission from:"
|
|
1464
|
+
inherited: "Inherited permission from:",
|
|
1465
|
+
allowedCount: "{count} permissions allowed",
|
|
1466
|
+
columnName: "Name",
|
|
1467
|
+
columnManage: "Manage"
|
|
1446
1468
|
},
|
|
1447
1469
|
masterUser: {
|
|
1448
1470
|
title: "Master user",
|
|
1449
1471
|
passcode: "Master user passcode",
|
|
1450
1472
|
passcodeRequired: "Passcode must be 4 digits",
|
|
1451
1473
|
sublabel: "Master user can access restaurant POS system.",
|
|
1474
|
+
assignmentSection: "Outlet & Role Assignment",
|
|
1475
|
+
addAnother: "Add another",
|
|
1452
1476
|
code: "Code",
|
|
1453
1477
|
name: "Name",
|
|
1454
1478
|
role: "Role",
|
|
@@ -1586,12 +1610,12 @@ const _t = {
|
|
|
1586
1610
|
permissions: "Permissions"
|
|
1587
1611
|
}
|
|
1588
1612
|
}
|
|
1589
|
-
},
|
|
1613
|
+
}, Vn = {
|
|
1590
1614
|
team: As,
|
|
1591
1615
|
permissionSet: us
|
|
1592
|
-
},
|
|
1616
|
+
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1593
1617
|
__proto__: null,
|
|
1594
|
-
default:
|
|
1618
|
+
default: Vn,
|
|
1595
1619
|
permissionSet: us,
|
|
1596
1620
|
team: As
|
|
1597
1621
|
}, Symbol.toStringTag, { value: "Module" })), ms = {
|
|
@@ -1637,7 +1661,9 @@ const _t = {
|
|
|
1637
1661
|
},
|
|
1638
1662
|
filter: {
|
|
1639
1663
|
permission_placeholder: "กรองตามสิทธิ์อนุญาต",
|
|
1640
|
-
selected_permission_prefix: "สิทธิ์ที่เลือก: "
|
|
1664
|
+
selected_permission_prefix: "สิทธิ์ที่เลือก: ",
|
|
1665
|
+
assigned_role_placeholder: "บทบาทที่กำหนด",
|
|
1666
|
+
selected_assigned_role_prefix: "บทบาทที่เลือก: "
|
|
1641
1667
|
},
|
|
1642
1668
|
emptyState: {
|
|
1643
1669
|
title: "ไม่พบสมาชิกในทีม",
|
|
@@ -1659,6 +1685,7 @@ const _t = {
|
|
|
1659
1685
|
emailAddress: "ที่อยู่อีเมล"
|
|
1660
1686
|
},
|
|
1661
1687
|
permissions: {
|
|
1688
|
+
title: "สิทธิ์อนุญาต",
|
|
1662
1689
|
manageable: "จัดการได้ {context}",
|
|
1663
1690
|
search: "ค้นหา {context}",
|
|
1664
1691
|
general: "สิทธิ์ทั่วไป",
|
|
@@ -1668,13 +1695,18 @@ const _t = {
|
|
|
1668
1695
|
includedFuture: "รวม {context} ในอนาคต",
|
|
1669
1696
|
includedNewRole: "รวมบทบาทใหม่ที่เพิ่มเข้ามา",
|
|
1670
1697
|
roles: "บทบาท POS ที่สามารถใช้ได้",
|
|
1671
|
-
inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:"
|
|
1698
|
+
inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:",
|
|
1699
|
+
allowedCount: "{count} สิทธิ์ที่อนุญาต",
|
|
1700
|
+
columnName: "ชื่อ",
|
|
1701
|
+
columnManage: "จัดการ"
|
|
1672
1702
|
},
|
|
1673
1703
|
masterUser: {
|
|
1674
1704
|
title: "ผู้ใช้หลัก",
|
|
1675
1705
|
passcode: "รหัสผ่านผู้ใช้หลัก",
|
|
1676
1706
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
1677
1707
|
sublabel: "ผู้ใช้หลักสามารถเข้าถึงระบบ POS ของร้านอาหารได้",
|
|
1708
|
+
assignmentSection: "การกำหนดสาขาและบทบาท",
|
|
1709
|
+
addAnother: "เพิ่มอีก",
|
|
1678
1710
|
code: "รหัส",
|
|
1679
1711
|
name: "ชื่อ",
|
|
1680
1712
|
role: "บทบาท",
|
|
@@ -1812,12 +1844,12 @@ const _t = {
|
|
|
1812
1844
|
permissions: "สิทธิ์อนุญาต"
|
|
1813
1845
|
}
|
|
1814
1846
|
}
|
|
1815
|
-
},
|
|
1847
|
+
}, Fn = {
|
|
1816
1848
|
team: ms,
|
|
1817
1849
|
permissionSet: gs
|
|
1818
|
-
},
|
|
1850
|
+
}, On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1819
1851
|
__proto__: null,
|
|
1820
|
-
default:
|
|
1852
|
+
default: Fn,
|
|
1821
1853
|
permissionSet: gs,
|
|
1822
1854
|
team: ms
|
|
1823
1855
|
}, Symbol.toStringTag, { value: "Module" })), ds = {
|
|
@@ -1863,7 +1895,9 @@ const _t = {
|
|
|
1863
1895
|
},
|
|
1864
1896
|
filter: {
|
|
1865
1897
|
permission_placeholder: "按权限筛选",
|
|
1866
|
-
selected_permission_prefix: "已选权限: "
|
|
1898
|
+
selected_permission_prefix: "已选权限: ",
|
|
1899
|
+
assigned_role_placeholder: "分配角色",
|
|
1900
|
+
selected_assigned_role_prefix: "已选角色: "
|
|
1867
1901
|
},
|
|
1868
1902
|
emptyState: {
|
|
1869
1903
|
title: "没有团队成员",
|
|
@@ -1885,6 +1919,7 @@ const _t = {
|
|
|
1885
1919
|
emailAddress: "邮箱地址"
|
|
1886
1920
|
},
|
|
1887
1921
|
permissions: {
|
|
1922
|
+
title: "权限",
|
|
1888
1923
|
manageable: "可管理{context}",
|
|
1889
1924
|
search: "搜索{context}",
|
|
1890
1925
|
general: "通用权限",
|
|
@@ -1894,13 +1929,18 @@ const _t = {
|
|
|
1894
1929
|
includedFuture: "包含未来{context}",
|
|
1895
1930
|
includedNewRole: "包含新添加的角色",
|
|
1896
1931
|
roles: "可用 POS 角色",
|
|
1897
|
-
inherited: "继承权限来自:"
|
|
1932
|
+
inherited: "继承权限来自:",
|
|
1933
|
+
allowedCount: "{count} 个权限已启用",
|
|
1934
|
+
columnName: "名称",
|
|
1935
|
+
columnManage: "管理"
|
|
1898
1936
|
},
|
|
1899
1937
|
masterUser: {
|
|
1900
1938
|
title: "主用户",
|
|
1901
1939
|
passcode: "主用户密码",
|
|
1902
1940
|
passcodeRequired: "密码必须为4位数字",
|
|
1903
1941
|
sublabel: "主用户可以访问餐厅 POS 系统。",
|
|
1942
|
+
assignmentSection: "门店与角色分配",
|
|
1943
|
+
addAnother: "再添加一项",
|
|
1904
1944
|
code: "工号",
|
|
1905
1945
|
name: "姓名",
|
|
1906
1946
|
role: "角色",
|
|
@@ -2038,12 +2078,12 @@ const _t = {
|
|
|
2038
2078
|
permissions: "权限"
|
|
2039
2079
|
}
|
|
2040
2080
|
}
|
|
2041
|
-
},
|
|
2081
|
+
}, qn = {
|
|
2042
2082
|
team: ds,
|
|
2043
2083
|
permissionSet: ps
|
|
2044
|
-
},
|
|
2084
|
+
}, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2045
2085
|
__proto__: null,
|
|
2046
|
-
default:
|
|
2086
|
+
default: qn,
|
|
2047
2087
|
permissionSet: ps,
|
|
2048
2088
|
team: ds
|
|
2049
2089
|
}, Symbol.toStringTag, { value: "Module" })), bs = {
|
|
@@ -2089,7 +2129,9 @@ const _t = {
|
|
|
2089
2129
|
},
|
|
2090
2130
|
filter: {
|
|
2091
2131
|
permission_placeholder: "按權限篩選",
|
|
2092
|
-
selected_permission_prefix: "已選權限: "
|
|
2132
|
+
selected_permission_prefix: "已選權限: ",
|
|
2133
|
+
assigned_role_placeholder: "分配角色",
|
|
2134
|
+
selected_assigned_role_prefix: "已選角色: "
|
|
2093
2135
|
},
|
|
2094
2136
|
emptyState: {
|
|
2095
2137
|
title: "沒有團隊成員",
|
|
@@ -2111,6 +2153,7 @@ const _t = {
|
|
|
2111
2153
|
emailAddress: "郵箱地址"
|
|
2112
2154
|
},
|
|
2113
2155
|
permissions: {
|
|
2156
|
+
title: "權限",
|
|
2114
2157
|
manageable: "可管理{context}",
|
|
2115
2158
|
search: "搜索{context}",
|
|
2116
2159
|
general: "通用權限",
|
|
@@ -2120,13 +2163,18 @@ const _t = {
|
|
|
2120
2163
|
includedFuture: "包含未來{context}",
|
|
2121
2164
|
includedNewRole: "包含新添加的角色",
|
|
2122
2165
|
roles: "可用 POS 角色",
|
|
2123
|
-
inherited: "繼承權限來自:"
|
|
2166
|
+
inherited: "繼承權限來自:",
|
|
2167
|
+
allowedCount: "{count} 個權限已啟用",
|
|
2168
|
+
columnName: "名稱",
|
|
2169
|
+
columnManage: "管理"
|
|
2124
2170
|
},
|
|
2125
2171
|
masterUser: {
|
|
2126
2172
|
title: "主用户",
|
|
2127
2173
|
passcode: "主用户密碼",
|
|
2128
2174
|
passcodeRequired: "密碼必須為4位數字",
|
|
2129
2175
|
sublabel: "主用户可以訪問餐廳 POS 系統。",
|
|
2176
|
+
assignmentSection: "門店與角色分配",
|
|
2177
|
+
addAnother: "再新增一項",
|
|
2130
2178
|
code: "工號",
|
|
2131
2179
|
name: "姓名",
|
|
2132
2180
|
role: "角色",
|
|
@@ -2271,19 +2319,19 @@ const _t = {
|
|
|
2271
2319
|
permissions: "權限"
|
|
2272
2320
|
}
|
|
2273
2321
|
}
|
|
2274
|
-
},
|
|
2322
|
+
}, Xn = {
|
|
2275
2323
|
team: bs,
|
|
2276
2324
|
permissionSet: fs
|
|
2277
|
-
},
|
|
2325
|
+
}, Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2278
2326
|
__proto__: null,
|
|
2279
|
-
default:
|
|
2327
|
+
default: Xn,
|
|
2280
2328
|
permissionSet: fs,
|
|
2281
2329
|
team: bs
|
|
2282
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2283
|
-
"en-US":
|
|
2284
|
-
"zh-CN":
|
|
2285
|
-
"th-TH":
|
|
2286
|
-
"zh-Hant":
|
|
2330
|
+
}, Symbol.toStringTag, { value: "Module" })), In = {
|
|
2331
|
+
"en-US": Pn,
|
|
2332
|
+
"zh-CN": Hn,
|
|
2333
|
+
"th-TH": On,
|
|
2334
|
+
"zh-Hant": Qn
|
|
2287
2335
|
}, ys = {
|
|
2288
2336
|
title: "POS Grant",
|
|
2289
2337
|
actions: {
|
|
@@ -2338,11 +2386,11 @@ const _t = {
|
|
|
2338
2386
|
passcode: {
|
|
2339
2387
|
copied: "Passcode copied"
|
|
2340
2388
|
}
|
|
2341
|
-
},
|
|
2389
|
+
}, Rn = {
|
|
2342
2390
|
grantUser: ys
|
|
2343
|
-
},
|
|
2391
|
+
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2344
2392
|
__proto__: null,
|
|
2345
|
-
default:
|
|
2393
|
+
default: Rn,
|
|
2346
2394
|
grantUser: ys
|
|
2347
2395
|
}, Symbol.toStringTag, { value: "Module" })), vs = {
|
|
2348
2396
|
title: "POS Grant",
|
|
@@ -2398,11 +2446,11 @@ const _t = {
|
|
|
2398
2446
|
passcode: {
|
|
2399
2447
|
copied: "คัดลอกรหัสผ่านแล้ว"
|
|
2400
2448
|
}
|
|
2401
|
-
},
|
|
2449
|
+
}, Zn = {
|
|
2402
2450
|
grantUser: vs
|
|
2403
|
-
},
|
|
2451
|
+
}, zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2404
2452
|
__proto__: null,
|
|
2405
|
-
default:
|
|
2453
|
+
default: Zn,
|
|
2406
2454
|
grantUser: vs
|
|
2407
2455
|
}, Symbol.toStringTag, { value: "Module" })), hs = {
|
|
2408
2456
|
title: "POS 授予",
|
|
@@ -2458,11 +2506,11 @@ const _t = {
|
|
|
2458
2506
|
passcode: {
|
|
2459
2507
|
copied: "密码已复制"
|
|
2460
2508
|
}
|
|
2461
|
-
},
|
|
2509
|
+
}, Un = {
|
|
2462
2510
|
grantUser: hs
|
|
2463
|
-
},
|
|
2511
|
+
}, Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2464
2512
|
__proto__: null,
|
|
2465
|
-
default:
|
|
2513
|
+
default: Un,
|
|
2466
2514
|
grantUser: hs
|
|
2467
2515
|
}, Symbol.toStringTag, { value: "Module" })), Bs = {
|
|
2468
2516
|
title: "POS 授予",
|
|
@@ -2518,17 +2566,17 @@ const _t = {
|
|
|
2518
2566
|
passcode: {
|
|
2519
2567
|
copied: "密碼已複製"
|
|
2520
2568
|
}
|
|
2521
|
-
},
|
|
2569
|
+
}, Tn = {
|
|
2522
2570
|
grantUser: Bs
|
|
2523
|
-
},
|
|
2571
|
+
}, Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2524
2572
|
__proto__: null,
|
|
2525
|
-
default:
|
|
2573
|
+
default: Tn,
|
|
2526
2574
|
grantUser: Bs
|
|
2527
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2528
|
-
"en-US":
|
|
2529
|
-
"zh-CN":
|
|
2530
|
-
"th-TH":
|
|
2531
|
-
"zh-Hant":
|
|
2575
|
+
}, Symbol.toStringTag, { value: "Module" })), kn = {
|
|
2576
|
+
"en-US": Nn,
|
|
2577
|
+
"zh-CN": Wn,
|
|
2578
|
+
"th-TH": zn,
|
|
2579
|
+
"zh-Hant": Sn
|
|
2532
2580
|
};
|
|
2533
2581
|
var t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), o = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e))(o || {}), U = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(U || {}), ws = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ws || {});
|
|
2534
2582
|
const b = {
|
|
@@ -2544,7 +2592,7 @@ const b = {
|
|
|
2544
2592
|
reports: "Default Report",
|
|
2545
2593
|
customReports: "Custom Report",
|
|
2546
2594
|
miniProgram: "Mini Program"
|
|
2547
|
-
},
|
|
2595
|
+
}, Kn = "access-denied", We = {
|
|
2548
2596
|
Action: t,
|
|
2549
2597
|
Subject: {
|
|
2550
2598
|
Business: o,
|
|
@@ -3180,7 +3228,7 @@ const R = [
|
|
|
3180
3228
|
subject: q.crm,
|
|
3181
3229
|
actions: [t.read]
|
|
3182
3230
|
}
|
|
3183
|
-
], $ = (...e) => e.flat(),
|
|
3231
|
+
], $ = (...e) => e.flat(), Ln = [
|
|
3184
3232
|
...R,
|
|
3185
3233
|
{
|
|
3186
3234
|
label: "User",
|
|
@@ -3192,7 +3240,7 @@ const R = [
|
|
|
3192
3240
|
t.delete
|
|
3193
3241
|
]
|
|
3194
3242
|
}
|
|
3195
|
-
],
|
|
3243
|
+
], Jn = [
|
|
3196
3244
|
...R,
|
|
3197
3245
|
{
|
|
3198
3246
|
label: "Segmentation",
|
|
@@ -3228,7 +3276,7 @@ const R = [
|
|
|
3228
3276
|
t.delete
|
|
3229
3277
|
]
|
|
3230
3278
|
}
|
|
3231
|
-
],
|
|
3279
|
+
], _n = [
|
|
3232
3280
|
...R,
|
|
3233
3281
|
{
|
|
3234
3282
|
label: "Location",
|
|
@@ -3240,7 +3288,7 @@ const R = [
|
|
|
3240
3288
|
t.delete
|
|
3241
3289
|
]
|
|
3242
3290
|
}
|
|
3243
|
-
],
|
|
3291
|
+
], $n = [
|
|
3244
3292
|
...R,
|
|
3245
3293
|
{
|
|
3246
3294
|
label: "Effect",
|
|
@@ -3252,14 +3300,14 @@ const R = [
|
|
|
3252
3300
|
t.delete
|
|
3253
3301
|
]
|
|
3254
3302
|
}
|
|
3255
|
-
],
|
|
3303
|
+
], er = [
|
|
3256
3304
|
...R,
|
|
3257
3305
|
{
|
|
3258
3306
|
label: "Setting",
|
|
3259
3307
|
subject: q.crm_setting,
|
|
3260
3308
|
actions: [t.read, t.update]
|
|
3261
3309
|
}
|
|
3262
|
-
],
|
|
3310
|
+
], tr = [
|
|
3263
3311
|
...R,
|
|
3264
3312
|
{
|
|
3265
3313
|
label: "Reward",
|
|
@@ -3295,7 +3343,7 @@ const R = [
|
|
|
3295
3343
|
t.delete
|
|
3296
3344
|
]
|
|
3297
3345
|
}
|
|
3298
|
-
],
|
|
3346
|
+
], sr = [
|
|
3299
3347
|
...R,
|
|
3300
3348
|
{
|
|
3301
3349
|
label: "Marketing Material",
|
|
@@ -3314,7 +3362,7 @@ const R = [
|
|
|
3314
3362
|
subject: q.crm_analytic,
|
|
3315
3363
|
actions: [t.read]
|
|
3316
3364
|
}
|
|
3317
|
-
],
|
|
3365
|
+
], nr = [
|
|
3318
3366
|
...R,
|
|
3319
3367
|
{
|
|
3320
3368
|
label: "Tier",
|
|
@@ -3326,7 +3374,7 @@ const R = [
|
|
|
3326
3374
|
t.delete
|
|
3327
3375
|
]
|
|
3328
3376
|
}
|
|
3329
|
-
],
|
|
3377
|
+
], rr = [
|
|
3330
3378
|
...R,
|
|
3331
3379
|
{
|
|
3332
3380
|
label: "Title",
|
|
@@ -3338,7 +3386,7 @@ const R = [
|
|
|
3338
3386
|
t.delete
|
|
3339
3387
|
]
|
|
3340
3388
|
}
|
|
3341
|
-
],
|
|
3389
|
+
], ar = [
|
|
3342
3390
|
...R,
|
|
3343
3391
|
{
|
|
3344
3392
|
label: "Broadcast",
|
|
@@ -3350,7 +3398,7 @@ const R = [
|
|
|
3350
3398
|
t.delete
|
|
3351
3399
|
]
|
|
3352
3400
|
}
|
|
3353
|
-
],
|
|
3401
|
+
], or = [
|
|
3354
3402
|
...R,
|
|
3355
3403
|
{
|
|
3356
3404
|
label: "Point",
|
|
@@ -3362,7 +3410,7 @@ const R = [
|
|
|
3362
3410
|
t.delete
|
|
3363
3411
|
]
|
|
3364
3412
|
}
|
|
3365
|
-
],
|
|
3413
|
+
], ir = [
|
|
3366
3414
|
...R,
|
|
3367
3415
|
{
|
|
3368
3416
|
label: "Credit",
|
|
@@ -3374,7 +3422,7 @@ const R = [
|
|
|
3374
3422
|
t.delete
|
|
3375
3423
|
]
|
|
3376
3424
|
}
|
|
3377
|
-
],
|
|
3425
|
+
], lr = [
|
|
3378
3426
|
...R,
|
|
3379
3427
|
{
|
|
3380
3428
|
label: "Experience",
|
|
@@ -3386,7 +3434,7 @@ const R = [
|
|
|
3386
3434
|
t.delete
|
|
3387
3435
|
]
|
|
3388
3436
|
}
|
|
3389
|
-
],
|
|
3437
|
+
], cr = [
|
|
3390
3438
|
...R,
|
|
3391
3439
|
{
|
|
3392
3440
|
label: "Game",
|
|
@@ -3398,7 +3446,7 @@ const R = [
|
|
|
3398
3446
|
t.delete
|
|
3399
3447
|
]
|
|
3400
3448
|
}
|
|
3401
|
-
],
|
|
3449
|
+
], Ar = [
|
|
3402
3450
|
...R,
|
|
3403
3451
|
{
|
|
3404
3452
|
label: "Mission",
|
|
@@ -3455,35 +3503,35 @@ const R = [
|
|
|
3455
3503
|
}
|
|
3456
3504
|
], Ps = $(
|
|
3457
3505
|
oe,
|
|
3458
|
-
|
|
3506
|
+
nr
|
|
3459
3507
|
), Fs = $(
|
|
3460
3508
|
oe,
|
|
3461
|
-
|
|
3509
|
+
rr
|
|
3462
3510
|
), Os = $(
|
|
3463
3511
|
oe,
|
|
3464
|
-
|
|
3512
|
+
ar
|
|
3465
3513
|
), qs = $(
|
|
3466
3514
|
oe,
|
|
3467
|
-
|
|
3515
|
+
or
|
|
3468
3516
|
), Hs = $(
|
|
3469
3517
|
oe,
|
|
3470
|
-
|
|
3518
|
+
ir
|
|
3471
3519
|
), Xs = $(
|
|
3472
3520
|
oe,
|
|
3473
|
-
|
|
3521
|
+
lr
|
|
3474
3522
|
), Qs = $(
|
|
3475
3523
|
oe,
|
|
3476
|
-
|
|
3524
|
+
cr
|
|
3477
3525
|
), Is = $(
|
|
3478
3526
|
oe,
|
|
3479
|
-
|
|
3480
|
-
),
|
|
3527
|
+
Ar
|
|
3528
|
+
), ur = $(
|
|
3481
3529
|
oe,
|
|
3482
3530
|
js
|
|
3483
3531
|
), Rs = $(
|
|
3484
3532
|
oe,
|
|
3485
|
-
|
|
3486
|
-
),
|
|
3533
|
+
er
|
|
3534
|
+
), mr = [
|
|
3487
3535
|
...R,
|
|
3488
3536
|
{
|
|
3489
3537
|
label: "Voucher",
|
|
@@ -3495,7 +3543,7 @@ const R = [
|
|
|
3495
3543
|
t.delete
|
|
3496
3544
|
]
|
|
3497
3545
|
}
|
|
3498
|
-
],
|
|
3546
|
+
], gr = [
|
|
3499
3547
|
...R,
|
|
3500
3548
|
{
|
|
3501
3549
|
label: "Membership",
|
|
@@ -3507,15 +3555,15 @@ const R = [
|
|
|
3507
3555
|
t.delete
|
|
3508
3556
|
]
|
|
3509
3557
|
}
|
|
3510
|
-
],
|
|
3511
|
-
|
|
3512
|
-
|
|
3558
|
+
], dr = $(
|
|
3559
|
+
Ln,
|
|
3560
|
+
Jn,
|
|
3513
3561
|
Cs,
|
|
3514
3562
|
Ds,
|
|
3515
|
-
|
|
3516
|
-
|
|
3563
|
+
_n,
|
|
3564
|
+
$n,
|
|
3517
3565
|
Rs,
|
|
3518
|
-
|
|
3566
|
+
tr,
|
|
3519
3567
|
Gs,
|
|
3520
3568
|
Ps,
|
|
3521
3569
|
Fs,
|
|
@@ -3529,33 +3577,33 @@ const R = [
|
|
|
3529
3577
|
Es,
|
|
3530
3578
|
xs,
|
|
3531
3579
|
Vs
|
|
3532
|
-
),
|
|
3580
|
+
), pr = $(
|
|
3533
3581
|
oe,
|
|
3534
3582
|
js,
|
|
3535
|
-
|
|
3536
|
-
),
|
|
3583
|
+
sr
|
|
3584
|
+
), br = $(
|
|
3537
3585
|
oe,
|
|
3538
|
-
|
|
3539
|
-
),
|
|
3586
|
+
mr
|
|
3587
|
+
), fr = $(gr), yr = {
|
|
3540
3588
|
[`set_${o.crm}`]: {
|
|
3541
3589
|
key: "sys:crm:access",
|
|
3542
3590
|
name: "CRM Access",
|
|
3543
|
-
permissions:
|
|
3591
|
+
permissions: dr
|
|
3544
3592
|
},
|
|
3545
3593
|
[`set_${o.crm_promotion}`]: {
|
|
3546
3594
|
key: "sys:crm:promotion",
|
|
3547
3595
|
name: "CRM Promotion",
|
|
3548
|
-
permissions:
|
|
3596
|
+
permissions: pr
|
|
3549
3597
|
},
|
|
3550
3598
|
[`set_${o.crm_voucher}`]: {
|
|
3551
3599
|
key: "sys:crm:voucher",
|
|
3552
3600
|
name: "CRM Voucher",
|
|
3553
|
-
permissions:
|
|
3601
|
+
permissions: br
|
|
3554
3602
|
},
|
|
3555
3603
|
[`set_${o.crm_membership}`]: {
|
|
3556
3604
|
key: "sys:crm:membership",
|
|
3557
3605
|
name: "CRM Membership",
|
|
3558
|
-
permissions:
|
|
3606
|
+
permissions: fr
|
|
3559
3607
|
},
|
|
3560
3608
|
[`set_${o.crm_analytic}`]: {
|
|
3561
3609
|
key: "sys:crm:analytic",
|
|
@@ -3620,7 +3668,7 @@ const R = [
|
|
|
3620
3668
|
[`set_${o.crm_referral}`]: {
|
|
3621
3669
|
key: "sys:crm:referral",
|
|
3622
3670
|
name: "CRM Referral",
|
|
3623
|
-
permissions:
|
|
3671
|
+
permissions: ur
|
|
3624
3672
|
},
|
|
3625
3673
|
[`set_${o.crm_store}`]: {
|
|
3626
3674
|
key: "sys:crm:store",
|
|
@@ -3672,21 +3720,21 @@ const K = [
|
|
|
3672
3720
|
subject: G.inventory_unitCostHistory,
|
|
3673
3721
|
actions: [t.read]
|
|
3674
3722
|
}
|
|
3675
|
-
],
|
|
3723
|
+
], vr = [
|
|
3676
3724
|
...K,
|
|
3677
3725
|
{
|
|
3678
3726
|
label: "Stock Adjustment",
|
|
3679
3727
|
subject: G.inventory_stockAdjustment,
|
|
3680
3728
|
actions: [t.update]
|
|
3681
3729
|
}
|
|
3682
|
-
],
|
|
3730
|
+
], Ns = [
|
|
3683
3731
|
...K,
|
|
3684
3732
|
{
|
|
3685
3733
|
label: "Unit Cost History",
|
|
3686
3734
|
subject: G.inventory_unitCostHistory,
|
|
3687
3735
|
actions: [t.read, t.update]
|
|
3688
3736
|
}
|
|
3689
|
-
],
|
|
3737
|
+
], Zs = [
|
|
3690
3738
|
...K,
|
|
3691
3739
|
{
|
|
3692
3740
|
label: "Wastage Template",
|
|
@@ -3701,8 +3749,8 @@ const K = [
|
|
|
3701
3749
|
];
|
|
3702
3750
|
[
|
|
3703
3751
|
...Et,
|
|
3704
|
-
...
|
|
3705
|
-
...
|
|
3752
|
+
...Ns,
|
|
3753
|
+
...Zs
|
|
3706
3754
|
];
|
|
3707
3755
|
const xt = [
|
|
3708
3756
|
...K,
|
|
@@ -3771,7 +3819,7 @@ const xt = [
|
|
|
3771
3819
|
...zs,
|
|
3772
3820
|
...Us
|
|
3773
3821
|
];
|
|
3774
|
-
const
|
|
3822
|
+
const hr = [
|
|
3775
3823
|
{
|
|
3776
3824
|
label: "Inventory",
|
|
3777
3825
|
subject: G.inventory,
|
|
@@ -3792,19 +3840,19 @@ const hn = [
|
|
|
3792
3840
|
subject: G.inventory_closingTemplate,
|
|
3793
3841
|
actions: [t.read, t.update]
|
|
3794
3842
|
}
|
|
3795
|
-
],
|
|
3843
|
+
], Br = [
|
|
3796
3844
|
{
|
|
3797
3845
|
label: "Inventory",
|
|
3798
3846
|
subject: G.inventory,
|
|
3799
3847
|
actions: [t.read, t.update]
|
|
3800
3848
|
}
|
|
3801
|
-
],
|
|
3849
|
+
], wr = [
|
|
3802
3850
|
{
|
|
3803
3851
|
label: "Inventory",
|
|
3804
3852
|
subject: G.inventory,
|
|
3805
3853
|
actions: [t.read, t.update]
|
|
3806
3854
|
}
|
|
3807
|
-
],
|
|
3855
|
+
], Mr = [
|
|
3808
3856
|
{
|
|
3809
3857
|
label: "Inventory",
|
|
3810
3858
|
subject: G.inventory,
|
|
@@ -3911,7 +3959,7 @@ const hn = [
|
|
|
3911
3959
|
subject: G.inventory_shipment,
|
|
3912
3960
|
actions: [t.read, t.update]
|
|
3913
3961
|
}
|
|
3914
|
-
],
|
|
3962
|
+
], Cr = [
|
|
3915
3963
|
...K,
|
|
3916
3964
|
{
|
|
3917
3965
|
label: "Order Draft Approval",
|
|
@@ -3925,7 +3973,7 @@ const hn = [
|
|
|
3925
3973
|
...Ss,
|
|
3926
3974
|
...ks
|
|
3927
3975
|
];
|
|
3928
|
-
const
|
|
3976
|
+
const Dr = [
|
|
3929
3977
|
...K,
|
|
3930
3978
|
{
|
|
3931
3979
|
label: "Supplier",
|
|
@@ -3942,7 +3990,7 @@ const Dn = [
|
|
|
3942
3990
|
subject: G.inventory_orderTemplate,
|
|
3943
3991
|
actions: [t.read, t.update]
|
|
3944
3992
|
}
|
|
3945
|
-
],
|
|
3993
|
+
], jr = [
|
|
3946
3994
|
...K,
|
|
3947
3995
|
{
|
|
3948
3996
|
label: "Warehouse",
|
|
@@ -3954,20 +4002,20 @@ const Dn = [
|
|
|
3954
4002
|
t.delete
|
|
3955
4003
|
]
|
|
3956
4004
|
}
|
|
3957
|
-
],
|
|
4005
|
+
], Gr = [
|
|
3958
4006
|
{
|
|
3959
4007
|
label: "Inventory",
|
|
3960
4008
|
subject: G.inventory,
|
|
3961
4009
|
actions: [t.read, t.update]
|
|
3962
4010
|
}
|
|
3963
|
-
],
|
|
4011
|
+
], Yr = [
|
|
3964
4012
|
...K,
|
|
3965
4013
|
{
|
|
3966
4014
|
label: "Inventory",
|
|
3967
4015
|
subject: G.inventory,
|
|
3968
4016
|
actions: [t.update]
|
|
3969
4017
|
}
|
|
3970
|
-
],
|
|
4018
|
+
], Er = [
|
|
3971
4019
|
...K,
|
|
3972
4020
|
{
|
|
3973
4021
|
label: "Integration",
|
|
@@ -3980,7 +4028,7 @@ const Dn = [
|
|
|
3980
4028
|
...Et,
|
|
3981
4029
|
...xt
|
|
3982
4030
|
];
|
|
3983
|
-
const
|
|
4031
|
+
const xr = {
|
|
3984
4032
|
[`set_${o.inventory_stockBalance}`]: {
|
|
3985
4033
|
key: "sys:inventory:stock_balance",
|
|
3986
4034
|
name: "Stock Balance",
|
|
@@ -3989,17 +4037,17 @@ const xn = {
|
|
|
3989
4037
|
[`set_${o.inventory_stockAdjustment}`]: {
|
|
3990
4038
|
key: "sys:inventory:stock_adjustment",
|
|
3991
4039
|
name: "Stock Adjustment",
|
|
3992
|
-
permissions:
|
|
4040
|
+
permissions: vr
|
|
3993
4041
|
},
|
|
3994
4042
|
[`set_${o.inventory_unitCostHistory}`]: {
|
|
3995
4043
|
key: "sys:inventory:unit_cost_history",
|
|
3996
4044
|
name: "Unit Cost History",
|
|
3997
|
-
permissions:
|
|
4045
|
+
permissions: Ns
|
|
3998
4046
|
},
|
|
3999
4047
|
[`set_${o.inventory_wastageTemplate}`]: {
|
|
4000
4048
|
key: "sys:inventory:wastage_template",
|
|
4001
4049
|
name: "Wastage Template",
|
|
4002
|
-
permissions:
|
|
4050
|
+
permissions: Zs
|
|
4003
4051
|
},
|
|
4004
4052
|
[`set_${o.inventory_closingHistory}`]: {
|
|
4005
4053
|
key: "sys:inventory:closing_history",
|
|
@@ -4019,22 +4067,22 @@ const xn = {
|
|
|
4019
4067
|
[`set_${o.inventory_ingredient}`]: {
|
|
4020
4068
|
key: "sys:inventory:ingredient",
|
|
4021
4069
|
name: "Ingredient",
|
|
4022
|
-
permissions:
|
|
4070
|
+
permissions: hr
|
|
4023
4071
|
},
|
|
4024
4072
|
[`set_${o.inventory_ingredientGroup}`]: {
|
|
4025
4073
|
key: "sys:inventory:ingredient_group",
|
|
4026
4074
|
name: "Ingredient Group",
|
|
4027
|
-
permissions:
|
|
4075
|
+
permissions: Br
|
|
4028
4076
|
},
|
|
4029
4077
|
[`set_${o.inventory_recipe}`]: {
|
|
4030
4078
|
key: "sys:inventory:recipe",
|
|
4031
4079
|
name: "Recipe",
|
|
4032
|
-
permissions:
|
|
4080
|
+
permissions: wr
|
|
4033
4081
|
},
|
|
4034
4082
|
[`set_${o.inventory_unit}`]: {
|
|
4035
4083
|
key: "sys:inventory:unit",
|
|
4036
4084
|
name: "Unit",
|
|
4037
|
-
permissions:
|
|
4085
|
+
permissions: Mr
|
|
4038
4086
|
},
|
|
4039
4087
|
[`set_${o.inventory_purchaseTransfer}`]: {
|
|
4040
4088
|
key: "sys:inventory:purchase_transfer",
|
|
@@ -4044,7 +4092,7 @@ const xn = {
|
|
|
4044
4092
|
[`set_${o.inventory_orderDraftApproval}`]: {
|
|
4045
4093
|
key: "sys:inventory:order_draft_approval",
|
|
4046
4094
|
name: "Order Draft Approval",
|
|
4047
|
-
permissions:
|
|
4095
|
+
permissions: Cr
|
|
4048
4096
|
},
|
|
4049
4097
|
[`set_${o.inventory_transferOut}`]: {
|
|
4050
4098
|
key: "sys:inventory:transfer_out",
|
|
@@ -4064,31 +4112,31 @@ const xn = {
|
|
|
4064
4112
|
[`set_${o.inventory_supplier}`]: {
|
|
4065
4113
|
key: "sys:inventory:supplier",
|
|
4066
4114
|
name: "Supplier",
|
|
4067
|
-
permissions:
|
|
4115
|
+
permissions: Dr
|
|
4068
4116
|
},
|
|
4069
4117
|
[`set_${o.inventory_warehouse}`]: {
|
|
4070
4118
|
key: "sys:inventory:warehouse",
|
|
4071
4119
|
name: "Warehouse",
|
|
4072
|
-
permissions:
|
|
4120
|
+
permissions: jr
|
|
4073
4121
|
},
|
|
4074
4122
|
[`set_${o.inventory_publish}`]: {
|
|
4075
4123
|
key: "sys:inventory:publish",
|
|
4076
4124
|
name: "Publish",
|
|
4077
|
-
permissions:
|
|
4125
|
+
permissions: Gr
|
|
4078
4126
|
},
|
|
4079
4127
|
[`set_${o.inventory_import}`]: {
|
|
4080
4128
|
key: "sys:inventory:import",
|
|
4081
4129
|
name: "Import",
|
|
4082
|
-
permissions:
|
|
4130
|
+
permissions: Yr
|
|
4083
4131
|
},
|
|
4084
4132
|
[`set_${o.inventory_integration}`]: {
|
|
4085
4133
|
key: "sys:inventory:integration",
|
|
4086
4134
|
name: "Integration",
|
|
4087
|
-
permissions:
|
|
4135
|
+
permissions: Er
|
|
4088
4136
|
}
|
|
4089
4137
|
};
|
|
4090
4138
|
var Ee = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e))(Ee || {});
|
|
4091
|
-
const
|
|
4139
|
+
const Vr = {
|
|
4092
4140
|
/**
|
|
4093
4141
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
4094
4142
|
* Injects: team member list read + pos role read
|
|
@@ -4159,7 +4207,7 @@ const Vn = {
|
|
|
4159
4207
|
}
|
|
4160
4208
|
};
|
|
4161
4209
|
var Ks = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(Ks || {});
|
|
4162
|
-
const
|
|
4210
|
+
const Zt = [
|
|
4163
4211
|
{
|
|
4164
4212
|
label: "Payout Account",
|
|
4165
4213
|
subject: o.payment_payoutAccount,
|
|
@@ -4170,24 +4218,24 @@ const Nt = [
|
|
|
4170
4218
|
subject: Ks.payment_terminals,
|
|
4171
4219
|
actions: [t.read]
|
|
4172
4220
|
}
|
|
4173
|
-
],
|
|
4221
|
+
], Pr = {
|
|
4174
4222
|
[`set_${o.payment_transactions}`]: {
|
|
4175
4223
|
key: "sys:payment:transactions",
|
|
4176
4224
|
name: "Payment Transactions Access",
|
|
4177
|
-
permissions:
|
|
4225
|
+
permissions: Zt
|
|
4178
4226
|
},
|
|
4179
4227
|
[`set_${o.payment_settlements}`]: {
|
|
4180
4228
|
key: "sys:payment:settlements",
|
|
4181
4229
|
name: "Payment Settlements Access",
|
|
4182
|
-
permissions:
|
|
4230
|
+
permissions: Zt
|
|
4183
4231
|
}
|
|
4184
|
-
},
|
|
4185
|
-
...
|
|
4186
|
-
...
|
|
4187
|
-
...
|
|
4188
|
-
...
|
|
4232
|
+
}, Fr = {
|
|
4233
|
+
...yr,
|
|
4234
|
+
...xr,
|
|
4235
|
+
...Vr,
|
|
4236
|
+
...Pr
|
|
4189
4237
|
}, _a = Object.values(
|
|
4190
|
-
|
|
4238
|
+
Fr
|
|
4191
4239
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
4192
4240
|
(e, A) => {
|
|
4193
4241
|
var u;
|
|
@@ -4196,7 +4244,7 @@ const Nt = [
|
|
|
4196
4244
|
{}
|
|
4197
4245
|
);
|
|
4198
4246
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4199
|
-
function
|
|
4247
|
+
function Or(e) {
|
|
4200
4248
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4201
4249
|
}
|
|
4202
4250
|
var Ls = { exports: {} };
|
|
@@ -4206,21 +4254,21 @@ var Ls = { exports: {} };
|
|
|
4206
4254
|
})(Re, function() {
|
|
4207
4255
|
return function(u) {
|
|
4208
4256
|
var c = {};
|
|
4209
|
-
function
|
|
4257
|
+
function n(m) {
|
|
4210
4258
|
if (c[m]) return c[m].exports;
|
|
4211
4259
|
var y = c[m] = { i: m, l: !1, exports: {} };
|
|
4212
|
-
return u[m].call(y.exports, y, y.exports,
|
|
4260
|
+
return u[m].call(y.exports, y, y.exports, n), y.l = !0, y.exports;
|
|
4213
4261
|
}
|
|
4214
|
-
return
|
|
4215
|
-
|
|
4216
|
-
},
|
|
4262
|
+
return n.m = u, n.c = c, n.d = function(m, y, h) {
|
|
4263
|
+
n.o(m, y) || Object.defineProperty(m, y, { enumerable: !0, get: h });
|
|
4264
|
+
}, n.r = function(m) {
|
|
4217
4265
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4218
|
-
},
|
|
4219
|
-
if (1 & y && (m =
|
|
4266
|
+
}, n.t = function(m, y) {
|
|
4267
|
+
if (1 & y && (m = n(m)), 8 & y || 4 & y && typeof m == "object" && m && m.__esModule) return m;
|
|
4220
4268
|
var h = /* @__PURE__ */ Object.create(null);
|
|
4221
|
-
if (
|
|
4269
|
+
if (n.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: m }), 2 & y && typeof m != "string")
|
|
4222
4270
|
for (var E in m)
|
|
4223
|
-
|
|
4271
|
+
n.d(
|
|
4224
4272
|
h,
|
|
4225
4273
|
E,
|
|
4226
4274
|
(function(Y) {
|
|
@@ -4228,21 +4276,21 @@ var Ls = { exports: {} };
|
|
|
4228
4276
|
}).bind(null, E)
|
|
4229
4277
|
);
|
|
4230
4278
|
return h;
|
|
4231
|
-
},
|
|
4279
|
+
}, n.n = function(m) {
|
|
4232
4280
|
var y = m && m.__esModule ? function() {
|
|
4233
4281
|
return m.default;
|
|
4234
4282
|
} : function() {
|
|
4235
4283
|
return m;
|
|
4236
4284
|
};
|
|
4237
|
-
return
|
|
4238
|
-
},
|
|
4285
|
+
return n.d(y, "a", y), y;
|
|
4286
|
+
}, n.o = function(m, y) {
|
|
4239
4287
|
return Object.prototype.hasOwnProperty.call(m, y);
|
|
4240
|
-
},
|
|
4288
|
+
}, n.p = "", n(n.s = 0);
|
|
4241
4289
|
}([
|
|
4242
|
-
function(u, c,
|
|
4243
|
-
u.exports =
|
|
4290
|
+
function(u, c, n) {
|
|
4291
|
+
u.exports = n(1);
|
|
4244
4292
|
},
|
|
4245
|
-
function(u, c,
|
|
4293
|
+
function(u, c, n) {
|
|
4246
4294
|
function m(i) {
|
|
4247
4295
|
return (m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
4248
4296
|
return typeof g;
|
|
@@ -4256,11 +4304,11 @@ var Ls = { exports: {} };
|
|
|
4256
4304
|
return Object.prototype.toString.call(f) === g;
|
|
4257
4305
|
};
|
|
4258
4306
|
}
|
|
4259
|
-
|
|
4260
|
-
return
|
|
4261
|
-
}),
|
|
4307
|
+
n.r(c), n.d(c, "default", function() {
|
|
4308
|
+
return Ne;
|
|
4309
|
+
}), n.d(c, "compare", function() {
|
|
4262
4310
|
return Fe;
|
|
4263
|
-
}),
|
|
4311
|
+
}), n.d(c, "comparable", function() {
|
|
4264
4312
|
return Oe;
|
|
4265
4313
|
});
|
|
4266
4314
|
var h = y("Array"), E = y("Object"), Y = y("Function");
|
|
@@ -4491,11 +4539,11 @@ var Ls = { exports: {} };
|
|
|
4491
4539
|
var V = D[0];
|
|
4492
4540
|
return H(B, V[0], V[1], V[2]);
|
|
4493
4541
|
}
|
|
4494
|
-
for (var F = C && C.$ne !== void 0,
|
|
4495
|
-
var d = D[W],
|
|
4496
|
-
F ?
|
|
4542
|
+
for (var F = C && C.$ne !== void 0, Z = F, W = 0; W < D.length; W++) {
|
|
4543
|
+
var d = D[W], r = H(B, d[0], d[1], d[2]);
|
|
4544
|
+
F ? Z &= r : Z |= r;
|
|
4497
4545
|
}
|
|
4498
|
-
return
|
|
4546
|
+
return Z;
|
|
4499
4547
|
}
|
|
4500
4548
|
function Le(i, g, f) {
|
|
4501
4549
|
return te({ keyPath: i, child: g, query: f }, k);
|
|
@@ -4507,24 +4555,24 @@ var Ls = { exports: {} };
|
|
|
4507
4555
|
}, C = function(V) {
|
|
4508
4556
|
V = g(V);
|
|
4509
4557
|
var F = [];
|
|
4510
|
-
for (var
|
|
4511
|
-
var W = V[
|
|
4512
|
-
if (
|
|
4513
|
-
var d = z[
|
|
4514
|
-
if (d) S[
|
|
4558
|
+
for (var Z in V) {
|
|
4559
|
+
var W = V[Z];
|
|
4560
|
+
if (Z !== "$options") {
|
|
4561
|
+
var d = z[Z] || i && f && f[Z];
|
|
4562
|
+
if (d) S[Z] && (W = S[Z](W, V, i)), F.push(te(g(W), d));
|
|
4515
4563
|
else {
|
|
4516
|
-
if (
|
|
4517
|
-
throw new Error("Unknown operation " +
|
|
4518
|
-
var
|
|
4519
|
-
F.push(Le(
|
|
4564
|
+
if (Z.charCodeAt(0) === 36)
|
|
4565
|
+
throw new Error("Unknown operation " + Z);
|
|
4566
|
+
var r = Z.split(".");
|
|
4567
|
+
F.push(Le(r, D(W), W));
|
|
4520
4568
|
}
|
|
4521
4569
|
}
|
|
4522
4570
|
}
|
|
4523
4571
|
return F.length === 1 ? F[0] : te(F, z.$and);
|
|
4524
4572
|
}, D = function(V) {
|
|
4525
|
-
return V = B(V), function F(
|
|
4526
|
-
if (!E(
|
|
4527
|
-
for (var d in
|
|
4573
|
+
return V = B(V), function F(Z, W) {
|
|
4574
|
+
if (!E(Z)) return W;
|
|
4575
|
+
for (var d in Z) W.push(d), F(Z[d], W);
|
|
4528
4576
|
return W;
|
|
4529
4577
|
}(V, []).join(",").search(/[$.]/) === -1 ? te(V, he) : C(V);
|
|
4530
4578
|
};
|
|
@@ -4557,7 +4605,7 @@ var Ls = { exports: {} };
|
|
|
4557
4605
|
}
|
|
4558
4606
|
}), f;
|
|
4559
4607
|
}
|
|
4560
|
-
function
|
|
4608
|
+
function Ne(i, g) {
|
|
4561
4609
|
var f = Pe(i, g = Object.assign({ compare: Fe, comparable: Oe }, g));
|
|
4562
4610
|
return function(B, C, D) {
|
|
4563
4611
|
return H(f, B, C, D);
|
|
@@ -4577,18 +4625,18 @@ var Ls = { exports: {} };
|
|
|
4577
4625
|
]);
|
|
4578
4626
|
});
|
|
4579
4627
|
})(Ls);
|
|
4580
|
-
var
|
|
4581
|
-
const
|
|
4582
|
-
function
|
|
4628
|
+
var qr = Ls.exports;
|
|
4629
|
+
const Hr = /* @__PURE__ */ Or(qr);
|
|
4630
|
+
function Xr(e, A) {
|
|
4583
4631
|
for (var u = 0; u < A.length; u++) {
|
|
4584
4632
|
var c = A[u];
|
|
4585
4633
|
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
4586
4634
|
}
|
|
4587
4635
|
}
|
|
4588
|
-
function
|
|
4589
|
-
return A &&
|
|
4636
|
+
function Qr(e, A, u) {
|
|
4637
|
+
return A && Xr(e.prototype, A), e;
|
|
4590
4638
|
}
|
|
4591
|
-
function
|
|
4639
|
+
function Ir(e, A) {
|
|
4592
4640
|
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
4593
4641
|
}
|
|
4594
4642
|
function Bt(e) {
|
|
@@ -4597,11 +4645,11 @@ function Bt(e) {
|
|
|
4597
4645
|
}, Bt(e);
|
|
4598
4646
|
}
|
|
4599
4647
|
function Se(e, A) {
|
|
4600
|
-
return Se = Object.setPrototypeOf || function(c,
|
|
4601
|
-
return c.__proto__ =
|
|
4648
|
+
return Se = Object.setPrototypeOf || function(c, n) {
|
|
4649
|
+
return c.__proto__ = n, c;
|
|
4602
4650
|
}, Se(e, A);
|
|
4603
4651
|
}
|
|
4604
|
-
function
|
|
4652
|
+
function Rr() {
|
|
4605
4653
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
4606
4654
|
if (typeof Proxy == "function") return !0;
|
|
4607
4655
|
try {
|
|
@@ -4612,37 +4660,37 @@ function Rn() {
|
|
|
4612
4660
|
}
|
|
4613
4661
|
}
|
|
4614
4662
|
function Te(e, A, u) {
|
|
4615
|
-
return
|
|
4663
|
+
return Rr() ? Te = Reflect.construct : Te = function(n, m, y) {
|
|
4616
4664
|
var h = [null];
|
|
4617
4665
|
h.push.apply(h, m);
|
|
4618
|
-
var E = Function.bind.apply(
|
|
4666
|
+
var E = Function.bind.apply(n, h), Y = new E();
|
|
4619
4667
|
return y && Se(Y, y.prototype), Y;
|
|
4620
4668
|
}, Te.apply(null, arguments);
|
|
4621
4669
|
}
|
|
4622
|
-
function
|
|
4670
|
+
function Nr(e) {
|
|
4623
4671
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
4624
4672
|
}
|
|
4625
4673
|
function wt(e) {
|
|
4626
4674
|
var A = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
4627
4675
|
return wt = function(c) {
|
|
4628
|
-
if (c === null || !
|
|
4676
|
+
if (c === null || !Nr(c)) return c;
|
|
4629
4677
|
if (typeof c != "function")
|
|
4630
4678
|
throw new TypeError("Super expression must either be null or a function");
|
|
4631
4679
|
if (typeof A < "u") {
|
|
4632
4680
|
if (A.has(c)) return A.get(c);
|
|
4633
|
-
A.set(c,
|
|
4681
|
+
A.set(c, n);
|
|
4634
4682
|
}
|
|
4635
|
-
function
|
|
4683
|
+
function n() {
|
|
4636
4684
|
return Te(c, arguments, Bt(this).constructor);
|
|
4637
4685
|
}
|
|
4638
|
-
return
|
|
4686
|
+
return n.prototype = Object.create(c.prototype, {
|
|
4639
4687
|
constructor: {
|
|
4640
|
-
value:
|
|
4688
|
+
value: n,
|
|
4641
4689
|
enumerable: !1,
|
|
4642
4690
|
writable: !0,
|
|
4643
4691
|
configurable: !0
|
|
4644
4692
|
}
|
|
4645
|
-
}), Se(
|
|
4693
|
+
}), Se(n, c);
|
|
4646
4694
|
}, wt(e);
|
|
4647
4695
|
}
|
|
4648
4696
|
function zt(e) {
|
|
@@ -4652,31 +4700,31 @@ function zt(e) {
|
|
|
4652
4700
|
}
|
|
4653
4701
|
var Js = function(A) {
|
|
4654
4702
|
return 'Cannot execute "' + A.action + '" on "' + A.subjectName + '"';
|
|
4655
|
-
}, ze = Js,
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
return
|
|
4659
|
-
} :
|
|
4660
|
-
}, A.from = function(
|
|
4703
|
+
}, ze = Js, Zr = /* @__PURE__ */ function(e) {
|
|
4704
|
+
Ir(A, e), A.setDefaultMessage = function(n) {
|
|
4705
|
+
n === null ? ze = Js : ze = typeof n == "string" ? function() {
|
|
4706
|
+
return n;
|
|
4707
|
+
} : n;
|
|
4708
|
+
}, A.from = function(n) {
|
|
4661
4709
|
var m = new this("");
|
|
4662
4710
|
return Object.defineProperty(m, "ability", {
|
|
4663
|
-
value:
|
|
4711
|
+
value: n
|
|
4664
4712
|
}), m;
|
|
4665
4713
|
};
|
|
4666
|
-
function A(c,
|
|
4714
|
+
function A(c, n) {
|
|
4667
4715
|
var m;
|
|
4668
|
-
return
|
|
4716
|
+
return n === void 0 && (n = {}), m = e.call(this, c) || this, m._setMetadata(n), m.message = c || ze(zt(m)), m._customMessage = null, typeof Error.captureStackTrace == "function" && (m.name = m.constructor.name, Error.captureStackTrace(zt(m), m.constructor)), m;
|
|
4669
4717
|
}
|
|
4670
4718
|
var u = A.prototype;
|
|
4671
|
-
return u.setMessage = function(
|
|
4672
|
-
return this._customMessage =
|
|
4673
|
-
}, u.throwUnlessCan = function(
|
|
4719
|
+
return u.setMessage = function(n) {
|
|
4720
|
+
return this._customMessage = n, this;
|
|
4721
|
+
}, u.throwUnlessCan = function(n, m, y) {
|
|
4674
4722
|
if (!this.ability)
|
|
4675
4723
|
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
4676
|
-
var h = this.ability.relevantRuleFor(
|
|
4724
|
+
var h = this.ability.relevantRuleFor(n, m, y);
|
|
4677
4725
|
if (!(h && !h.inverted)) {
|
|
4678
4726
|
this._setMetadata({
|
|
4679
|
-
action:
|
|
4727
|
+
action: n,
|
|
4680
4728
|
subject: m,
|
|
4681
4729
|
field: y,
|
|
4682
4730
|
subjectName: this.ability.subjectName(m)
|
|
@@ -4684,52 +4732,52 @@ var Js = function(A) {
|
|
|
4684
4732
|
var E = h ? h.reason : "";
|
|
4685
4733
|
throw this.message = this._customMessage || E || ze(this), this;
|
|
4686
4734
|
}
|
|
4687
|
-
}, u._setMetadata = function(
|
|
4688
|
-
this.subject =
|
|
4735
|
+
}, u._setMetadata = function(n) {
|
|
4736
|
+
this.subject = n.subject, this.subjectName = n.subjectName, this.action = n.action, this.field = n.field;
|
|
4689
4737
|
}, A;
|
|
4690
4738
|
}(wt(Error));
|
|
4691
4739
|
function Mt(e) {
|
|
4692
4740
|
return Array.isArray(e) ? e : [e];
|
|
4693
4741
|
}
|
|
4694
|
-
function
|
|
4742
|
+
function zr(e) {
|
|
4695
4743
|
if (!e || typeof e == "string")
|
|
4696
4744
|
return e;
|
|
4697
4745
|
var A = typeof e == "object" ? e.constructor : e;
|
|
4698
4746
|
return A.modelName || A.name;
|
|
4699
4747
|
}
|
|
4700
|
-
function
|
|
4748
|
+
function Ur(e) {
|
|
4701
4749
|
return JSON.parse(JSON.stringify(e));
|
|
4702
4750
|
}
|
|
4703
|
-
var
|
|
4704
|
-
function
|
|
4705
|
-
var c = u[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*",
|
|
4751
|
+
var Wr = /[-/\\^$+?.()|[\]{}]/g, Tr = /\.?\*+\.?/g, Sr = /\*+/, kr = /\./g;
|
|
4752
|
+
function Kr(e, A, u) {
|
|
4753
|
+
var c = u[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", m = e.replace(kr, "\\$&").replace(Sr, n + c);
|
|
4706
4754
|
return A + e.length === u.length ? "(?:" + m + ")?" : m;
|
|
4707
4755
|
}
|
|
4708
|
-
function
|
|
4756
|
+
function Lr(e, A, u) {
|
|
4709
4757
|
return e === "." && (u[A - 1] === "*" || u[A + 1] === "*") ? e : "\\" + e;
|
|
4710
4758
|
}
|
|
4711
|
-
function
|
|
4759
|
+
function Jr(e) {
|
|
4712
4760
|
var A = e.map(function(c) {
|
|
4713
|
-
return c.replace(
|
|
4761
|
+
return c.replace(Wr, Lr).replace(Tr, Kr);
|
|
4714
4762
|
}), u = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
4715
4763
|
return new RegExp("^" + u + "$");
|
|
4716
4764
|
}
|
|
4717
|
-
var
|
|
4765
|
+
var _r = /* @__PURE__ */ function() {
|
|
4718
4766
|
function e(u) {
|
|
4719
4767
|
this.actions = u.actions || u.action, this.subject = u.subject, this.fields = !u.fields || u.fields.length === 0 ? void 0 : Mt(u.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
4720
4768
|
writable: !0
|
|
4721
4769
|
}), this.inverted = !!u.inverted, this.conditions = u.conditions, Object.defineProperty(this, "_matches", {
|
|
4722
4770
|
writable: !0,
|
|
4723
|
-
value: this.conditions ?
|
|
4771
|
+
value: this.conditions ? Hr(this.conditions) : void 0
|
|
4724
4772
|
}), this.reason = u.reason;
|
|
4725
4773
|
}
|
|
4726
4774
|
var A = e.prototype;
|
|
4727
4775
|
return A.matches = function(c) {
|
|
4728
4776
|
return this._matches ? typeof c == "string" ? !this.inverted : this._matches(c) : !0;
|
|
4729
|
-
}, A.isRelevantFor = function(c,
|
|
4730
|
-
return this.fields ?
|
|
4777
|
+
}, A.isRelevantFor = function(c, n) {
|
|
4778
|
+
return this.fields ? n ? this.matchesField(n) : !this.inverted : !0;
|
|
4731
4779
|
}, A.matchesField = function(c) {
|
|
4732
|
-
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null :
|
|
4780
|
+
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : Jr(this.fields)), this._fieldsPattern === null || c.indexOf("*") !== -1 ? this.fields.indexOf(c) !== -1 : this._fieldsPattern.test(c);
|
|
4733
4781
|
}, e;
|
|
4734
4782
|
}(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), Ut = {
|
|
4735
4783
|
crud: ["create", "read", "update", "delete"]
|
|
@@ -4737,85 +4785,85 @@ var _n = /* @__PURE__ */ function() {
|
|
|
4737
4785
|
function Wt(e, A) {
|
|
4738
4786
|
return e === A || Array.isArray(A) && A.indexOf(e) !== -1;
|
|
4739
4787
|
}
|
|
4740
|
-
var $
|
|
4741
|
-
e.addAlias = function(c,
|
|
4742
|
-
if (c === "manage" || Wt("manage",
|
|
4788
|
+
var $r = /* @__PURE__ */ function() {
|
|
4789
|
+
e.addAlias = function(c, n) {
|
|
4790
|
+
if (c === "manage" || Wt("manage", n))
|
|
4743
4791
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
4744
|
-
if (Wt(c,
|
|
4745
|
-
throw new Error("Attempt to alias action to itself: " + c + " -> " +
|
|
4746
|
-
return Ut[c] =
|
|
4792
|
+
if (Wt(c, n))
|
|
4793
|
+
throw new Error("Attempt to alias action to itself: " + c + " -> " + n.toString());
|
|
4794
|
+
return Ut[c] = n, this;
|
|
4747
4795
|
};
|
|
4748
4796
|
function e(u, c) {
|
|
4749
4797
|
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
4750
|
-
value: c.subjectName ||
|
|
4798
|
+
value: c.subjectName || zr
|
|
4751
4799
|
}), this[ee] = {
|
|
4752
|
-
RuleType: c.RuleType ||
|
|
4800
|
+
RuleType: c.RuleType || _r,
|
|
4753
4801
|
originalRules: u || [],
|
|
4754
4802
|
hasPerFieldRules: !1,
|
|
4755
4803
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
4756
4804
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
4757
4805
|
events: {},
|
|
4758
|
-
aliases:
|
|
4806
|
+
aliases: Ur(Ut)
|
|
4759
4807
|
}, this.update(u);
|
|
4760
4808
|
}
|
|
4761
4809
|
var A = e.prototype;
|
|
4762
4810
|
return A.update = function(c) {
|
|
4763
4811
|
if (!Array.isArray(c))
|
|
4764
4812
|
return this;
|
|
4765
|
-
var
|
|
4813
|
+
var n = {
|
|
4766
4814
|
rules: c,
|
|
4767
4815
|
ability: this
|
|
4768
4816
|
};
|
|
4769
|
-
this.emit("update",
|
|
4817
|
+
this.emit("update", n), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
4770
4818
|
var m = this.buildIndexFor(c);
|
|
4771
|
-
return this[ee].indexedRules = m.rules, this[ee].hasPerFieldRules = m.hasPerFieldRules, this.emit("updated",
|
|
4819
|
+
return this[ee].indexedRules = m.rules, this[ee].hasPerFieldRules = m.hasPerFieldRules, this.emit("updated", n), this;
|
|
4772
4820
|
}, A.buildIndexFor = function(c) {
|
|
4773
|
-
for (var
|
|
4821
|
+
for (var n = /* @__PURE__ */ Object.create(null), m = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
4774
4822
|
var Y = new m(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
4775
4823
|
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
4776
4824
|
for (var H = 0; H < P.length; H++) {
|
|
4777
4825
|
var z = P[H];
|
|
4778
|
-
|
|
4826
|
+
n[z] = n[z] || /* @__PURE__ */ Object.create(null);
|
|
4779
4827
|
for (var S = 0; S < w.length; S++) {
|
|
4780
4828
|
var te = w[S];
|
|
4781
|
-
|
|
4829
|
+
n[z][te] = n[z][te] || /* @__PURE__ */ Object.create(null), n[z][te][I] = Y;
|
|
4782
4830
|
}
|
|
4783
4831
|
}
|
|
4784
4832
|
}
|
|
4785
4833
|
return {
|
|
4786
4834
|
isAllInverted: y,
|
|
4787
4835
|
hasPerFieldRules: h,
|
|
4788
|
-
rules:
|
|
4836
|
+
rules: n
|
|
4789
4837
|
};
|
|
4790
4838
|
}, A.expandActions = function(c) {
|
|
4791
|
-
for (var
|
|
4839
|
+
for (var n = this[ee].aliases, m = Mt(c), y = 0; y < m.length; ) {
|
|
4792
4840
|
var h = m[y++];
|
|
4793
|
-
|
|
4841
|
+
n.hasOwnProperty(h) && (m = m.concat(n[h]));
|
|
4794
4842
|
}
|
|
4795
4843
|
return m;
|
|
4796
|
-
}, A.can = function(c,
|
|
4844
|
+
}, A.can = function(c, n, m) {
|
|
4797
4845
|
if (m && typeof m != "string")
|
|
4798
4846
|
throw new Error("Ability.can expects 3rd parameter to be a string. See https://stalniy.github.io/casl/abilities/2017/07/21/check-abilities.html#checking-fields for details");
|
|
4799
|
-
var y = this.relevantRuleFor(c,
|
|
4847
|
+
var y = this.relevantRuleFor(c, n, m);
|
|
4800
4848
|
return !!y && !y.inverted;
|
|
4801
|
-
}, A.relevantRuleFor = function(c,
|
|
4802
|
-
for (var y = this.rulesFor(c,
|
|
4803
|
-
if (y[h].matches(
|
|
4849
|
+
}, A.relevantRuleFor = function(c, n, m) {
|
|
4850
|
+
for (var y = this.rulesFor(c, n, m), h = 0; h < y.length; h++)
|
|
4851
|
+
if (y[h].matches(n))
|
|
4804
4852
|
return y[h];
|
|
4805
4853
|
return null;
|
|
4806
|
-
}, A.possibleRulesFor = function(c,
|
|
4807
|
-
var m = this.subjectName(
|
|
4854
|
+
}, A.possibleRulesFor = function(c, n) {
|
|
4855
|
+
var m = this.subjectName(n), y = this[ee].mergedRules, h = m + "_" + c;
|
|
4808
4856
|
return y[h] || (y[h] = this.mergeRulesFor(c, m)), y[h];
|
|
4809
|
-
}, A.mergeRulesFor = function(c,
|
|
4810
|
-
var m = this[ee].indexedRules, y = [
|
|
4857
|
+
}, A.mergeRulesFor = function(c, n) {
|
|
4858
|
+
var m = this[ee].indexedRules, y = [n, "all"].reduce(function(h, E) {
|
|
4811
4859
|
var Y = m[E];
|
|
4812
4860
|
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
4813
4861
|
}, []);
|
|
4814
4862
|
return y.filter(Boolean);
|
|
4815
|
-
}, A.rulesFor = function(c,
|
|
4816
|
-
var y = this.possibleRulesFor(c,
|
|
4863
|
+
}, A.rulesFor = function(c, n, m) {
|
|
4864
|
+
var y = this.possibleRulesFor(c, n);
|
|
4817
4865
|
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
4818
|
-
return h.isRelevantFor(
|
|
4866
|
+
return h.isRelevantFor(n, m);
|
|
4819
4867
|
}) : y;
|
|
4820
4868
|
}, A.cannot = function() {
|
|
4821
4869
|
return !this.can.apply(this, arguments);
|
|
@@ -4824,21 +4872,21 @@ var $n = /* @__PURE__ */ function() {
|
|
|
4824
4872
|
console.warn(`
|
|
4825
4873
|
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
4826
4874
|
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
4827
|
-
`.trim()), (c =
|
|
4828
|
-
}, A.on = function(c,
|
|
4875
|
+
`.trim()), (c = Zr.from(this)).throwUnlessCan.apply(c, arguments);
|
|
4876
|
+
}, A.on = function(c, n) {
|
|
4829
4877
|
var m = this[ee].events, y = !0;
|
|
4830
|
-
return m[c] || (m[c] = []), m[c].push(
|
|
4878
|
+
return m[c] || (m[c] = []), m[c].push(n), function() {
|
|
4831
4879
|
if (y) {
|
|
4832
|
-
var h = m[c].indexOf(
|
|
4880
|
+
var h = m[c].indexOf(n);
|
|
4833
4881
|
m[c].splice(h, 1), y = !1;
|
|
4834
4882
|
}
|
|
4835
4883
|
};
|
|
4836
|
-
}, A.emit = function(c,
|
|
4884
|
+
}, A.emit = function(c, n) {
|
|
4837
4885
|
var m = this[ee].events[c];
|
|
4838
4886
|
m && m.slice(0).forEach(function(y) {
|
|
4839
|
-
return y(
|
|
4887
|
+
return y(n);
|
|
4840
4888
|
});
|
|
4841
|
-
},
|
|
4889
|
+
}, Qr(e, [{
|
|
4842
4890
|
key: "rules",
|
|
4843
4891
|
get: function() {
|
|
4844
4892
|
return this[ee].originalRules;
|
|
@@ -4860,12 +4908,12 @@ function ta(e) {
|
|
|
4860
4908
|
}));
|
|
4861
4909
|
}
|
|
4862
4910
|
function sa(e) {
|
|
4863
|
-
return new $
|
|
4911
|
+
return new $r(ta(e));
|
|
4864
4912
|
}
|
|
4865
|
-
function
|
|
4866
|
-
const c = Array.isArray(e) ? e : [e],
|
|
4913
|
+
function na(e, A, u) {
|
|
4914
|
+
const c = Array.isArray(e) ? e : [e], n = sa(A), m = (w) => w.subject, y = (w) => n.can(w.action, m(w), w.field) ? !0 : w.coverSubject !== void 0 ? n.can(w.action, w.coverSubject, w.field) : !1, h = c.find((w) => !y(w));
|
|
4867
4915
|
if (h) {
|
|
4868
|
-
const w =
|
|
4916
|
+
const w = n.relevantRuleFor(
|
|
4869
4917
|
h.action,
|
|
4870
4918
|
m(h),
|
|
4871
4919
|
h.field
|
|
@@ -4876,23 +4924,23 @@ function ra(e, A, u) {
|
|
|
4876
4924
|
decisiveRule: w ?? null
|
|
4877
4925
|
};
|
|
4878
4926
|
}
|
|
4879
|
-
const E = c[0], Y =
|
|
4927
|
+
const E = c[0], Y = n.relevantRuleFor(E.action, m(E), E.field);
|
|
4880
4928
|
return { granted: !0, decisivePermission: E, decisiveRule: Y ?? null };
|
|
4881
4929
|
}
|
|
4882
4930
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4883
|
-
const
|
|
4931
|
+
const ra = () => {
|
|
4884
4932
|
};
|
|
4885
4933
|
function aa(e, A, u) {
|
|
4886
4934
|
let c;
|
|
4887
|
-
|
|
4935
|
+
tn(u) ? c = {
|
|
4888
4936
|
evaluating: u
|
|
4889
4937
|
} : c = {};
|
|
4890
4938
|
const {
|
|
4891
|
-
lazy:
|
|
4939
|
+
lazy: n = !1,
|
|
4892
4940
|
evaluating: m = void 0,
|
|
4893
4941
|
shallow: y = !0,
|
|
4894
|
-
onError: h =
|
|
4895
|
-
} = c, E = ve(!
|
|
4942
|
+
onError: h = ra
|
|
4943
|
+
} = c, E = ve(!n), Y = y ? sn(A) : ve(A);
|
|
4896
4944
|
let w = 0;
|
|
4897
4945
|
return St(async (P) => {
|
|
4898
4946
|
if (!E.value)
|
|
@@ -4915,10 +4963,10 @@ function aa(e, A, u) {
|
|
|
4915
4963
|
} finally {
|
|
4916
4964
|
m && I === w && (m.value = !1), H = !0;
|
|
4917
4965
|
}
|
|
4918
|
-
}),
|
|
4966
|
+
}), n ? jt(() => (E.value = !0, Y.value)) : Y;
|
|
4919
4967
|
}
|
|
4920
4968
|
async function oa(e) {
|
|
4921
|
-
const { sessionUser: A, validationManifest: u } = e, { requiredRoles: c, requiredCaslPermissions:
|
|
4969
|
+
const { sessionUser: A, validationManifest: u } = e, { requiredRoles: c, requiredCaslPermissions: n, customValidationFunction: m } = u;
|
|
4922
4970
|
if (!A)
|
|
4923
4971
|
return { canAccess: !1 };
|
|
4924
4972
|
if (c && c.length > 0 && !c.includes(A._role || ""))
|
|
@@ -4926,8 +4974,8 @@ async function oa(e) {
|
|
|
4926
4974
|
canAccess: !1,
|
|
4927
4975
|
message: "User does not have permission to access"
|
|
4928
4976
|
});
|
|
4929
|
-
if (
|
|
4930
|
-
const { granted: y } =
|
|
4977
|
+
if (n && n.length > 0) {
|
|
4978
|
+
const { granted: y } = na(n, A.permissions);
|
|
4931
4979
|
if (!y)
|
|
4932
4980
|
return Promise.resolve({
|
|
4933
4981
|
canAccess: !1,
|
|
@@ -4952,7 +5000,7 @@ async function ia(e, A) {
|
|
|
4952
5000
|
return {
|
|
4953
5001
|
canAccess: !1,
|
|
4954
5002
|
message: c.message,
|
|
4955
|
-
redirectTo:
|
|
5003
|
+
redirectTo: Kn
|
|
4956
5004
|
};
|
|
4957
5005
|
}
|
|
4958
5006
|
return {
|
|
@@ -4961,7 +5009,7 @@ async function ia(e, A) {
|
|
|
4961
5009
|
}
|
|
4962
5010
|
var Ct = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Ct || {});
|
|
4963
5011
|
function la() {
|
|
4964
|
-
const e =
|
|
5012
|
+
const e = un(), { sessionUser: A } = Yt();
|
|
4965
5013
|
return aa(
|
|
4966
5014
|
async () => {
|
|
4967
5015
|
e.matched;
|
|
@@ -5030,7 +5078,7 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5030
5078
|
__name: "PermissionWrapper",
|
|
5031
5079
|
setup(e) {
|
|
5032
5080
|
const A = la();
|
|
5033
|
-
return (u, c) => Me(A) === Me(Ct).Denied ? (Ve(), ke(Ca, { key: 0 })) : Me(A) === Me(Ct).Allowed ? kt(u.$slots, "default", { key: 1 }) :
|
|
5081
|
+
return (u, c) => Me(A) === Me(Ct).Denied ? (Ve(), ke(Ca, { key: 0 })) : Me(A) === Me(Ct).Allowed ? kt(u.$slots, "default", { key: 1 }) : nn("", !0);
|
|
5034
5082
|
}
|
|
5035
5083
|
});
|
|
5036
5084
|
function Ke(e) {
|
|
@@ -5045,29 +5093,29 @@ function ja(e, A) {
|
|
|
5045
5093
|
const u = ve({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5046
5094
|
function c() {
|
|
5047
5095
|
if (e.value) {
|
|
5048
|
-
const
|
|
5096
|
+
const n = e.value.getBoundingClientRect();
|
|
5049
5097
|
u.value = {
|
|
5050
|
-
top:
|
|
5051
|
-
bottom:
|
|
5052
|
-
left:
|
|
5053
|
-
right:
|
|
5098
|
+
top: n.top,
|
|
5099
|
+
bottom: n.bottom,
|
|
5100
|
+
left: n.left,
|
|
5101
|
+
right: n.right
|
|
5054
5102
|
};
|
|
5055
5103
|
}
|
|
5056
5104
|
}
|
|
5057
5105
|
return Rt(A, async () => {
|
|
5058
|
-
await
|
|
5059
|
-
}), Rt(e, async (
|
|
5060
|
-
|
|
5106
|
+
await Nt(), c();
|
|
5107
|
+
}), Rt(e, async (n) => {
|
|
5108
|
+
n && (await Nt(), c());
|
|
5061
5109
|
}), Lt(() => {
|
|
5062
5110
|
window.addEventListener("resize", c);
|
|
5063
|
-
}),
|
|
5111
|
+
}), rn(() => {
|
|
5064
5112
|
window.removeEventListener("resize", c);
|
|
5065
5113
|
}), u;
|
|
5066
5114
|
}
|
|
5067
5115
|
const Ga = /* @__PURE__ */ xe({
|
|
5068
5116
|
__name: "FullWrapper",
|
|
5069
5117
|
setup(e) {
|
|
5070
|
-
const A =
|
|
5118
|
+
const A = An(), u = ve(null), c = ja(u), n = jt(() => {
|
|
5071
5119
|
var h;
|
|
5072
5120
|
const y = A.isAtMost("sm") ? 56 : 0;
|
|
5073
5121
|
return {
|
|
@@ -5077,7 +5125,7 @@ const Ga = /* @__PURE__ */ xe({
|
|
|
5077
5125
|
return (m, y) => (Ve(), Kt("div", {
|
|
5078
5126
|
ref_key: "wrapper",
|
|
5079
5127
|
ref: u,
|
|
5080
|
-
style:
|
|
5128
|
+
style: an(n.value)
|
|
5081
5129
|
}, [
|
|
5082
5130
|
kt(m.$slots, "default")
|
|
5083
5131
|
], 4));
|
|
@@ -5088,16 +5136,16 @@ const Ga = /* @__PURE__ */ xe({
|
|
|
5088
5136
|
return (A, u) => {
|
|
5089
5137
|
const c = Gt("FmCircularProgress");
|
|
5090
5138
|
return Ve(), ke(Ga, null, {
|
|
5091
|
-
default:
|
|
5139
|
+
default: on(() => [
|
|
5092
5140
|
we("div", Ya, [
|
|
5093
|
-
|
|
5141
|
+
ln(c, { size: "xl" })
|
|
5094
5142
|
])
|
|
5095
5143
|
]),
|
|
5096
5144
|
_: 1
|
|
5097
5145
|
});
|
|
5098
5146
|
};
|
|
5099
5147
|
}
|
|
5100
|
-
}), be = (e) =>
|
|
5148
|
+
}), be = (e) => cn({
|
|
5101
5149
|
loader: e,
|
|
5102
5150
|
loadingComponent: Ea
|
|
5103
5151
|
});
|
|
@@ -5111,10 +5159,10 @@ const ht = (e) => ({
|
|
|
5111
5159
|
}
|
|
5112
5160
|
]
|
|
5113
5161
|
}
|
|
5114
|
-
}), xa = Ke(be(() => import("./Main-
|
|
5115
|
-
be(() => import("./AuditLogList-
|
|
5116
|
-
), Fa = Ke(be(() => import("./Main-
|
|
5117
|
-
() => import("./PermissionSetList-
|
|
5162
|
+
}), xa = Ke(be(() => import("./Main-BGc6kNaR.js"))), Va = Ke(be(() => import("./Main-D7bV8EuC.js"))), Pa = Ke(
|
|
5163
|
+
be(() => import("./AuditLogList-Bsj-qg8n.js"))
|
|
5164
|
+
), Fa = Ke(be(() => import("./Main-CSMAtoMj.js"))), Oa = be(() => import("./EmployeeList-Cy2ayCko.js")), qa = be(() => import("./RoleList-e0WUqt4Y.js")), Ha = be(() => import("./TimesheetList-tFjvFHqH.js")), Xa = be(() => import("./TeamMemberList-CpPa1KyV.js")), Qa = be(
|
|
5165
|
+
() => import("./PermissionSetList-CuHhDqWl.js")
|
|
5118
5166
|
), eo = [
|
|
5119
5167
|
{
|
|
5120
5168
|
path: "/",
|
|
@@ -5180,32 +5228,32 @@ const ht = (e) => ({
|
|
|
5180
5228
|
__name: "Navigator",
|
|
5181
5229
|
emits: ["close-navigation"],
|
|
5182
5230
|
setup(e, { emit: A }) {
|
|
5183
|
-
const u = A, { t: c } = Jt(),
|
|
5231
|
+
const u = A, { t: c } = Jt(), n = mn(), { sessionUser: m } = Yt(), y = jt(() => {
|
|
5184
5232
|
var Y;
|
|
5185
5233
|
const E = [];
|
|
5186
5234
|
return E.push({
|
|
5187
5235
|
label: c("hr.employee.title"),
|
|
5188
5236
|
value: "employee",
|
|
5189
5237
|
action: () => {
|
|
5190
|
-
|
|
5238
|
+
n.push({
|
|
5191
5239
|
name: T.EMPLOYEE,
|
|
5192
|
-
query:
|
|
5240
|
+
query: n.currentRoute.value.query
|
|
5193
5241
|
}), u("close-navigation");
|
|
5194
5242
|
}
|
|
5195
5243
|
}), E.push({
|
|
5196
5244
|
label: c("team.title"),
|
|
5197
5245
|
value: "team-member",
|
|
5198
5246
|
action: () => {
|
|
5199
|
-
|
|
5247
|
+
n.push({
|
|
5200
5248
|
name: T.TEAM,
|
|
5201
|
-
query:
|
|
5249
|
+
query: n.currentRoute.value.query
|
|
5202
5250
|
}), u("close-navigation");
|
|
5203
5251
|
}
|
|
5204
5252
|
}), E.push({
|
|
5205
5253
|
label: c("auditLog.title"),
|
|
5206
5254
|
value: "audit-log",
|
|
5207
5255
|
action: () => {
|
|
5208
|
-
|
|
5256
|
+
n.push({
|
|
5209
5257
|
name: T.AUDIT_LOG
|
|
5210
5258
|
}), u("close-navigation");
|
|
5211
5259
|
}
|
|
@@ -5213,16 +5261,16 @@ const ht = (e) => ({
|
|
|
5213
5261
|
label: c("grantUser.title"),
|
|
5214
5262
|
value: "pos-grant",
|
|
5215
5263
|
action: () => {
|
|
5216
|
-
|
|
5264
|
+
n.push({
|
|
5217
5265
|
name: T.POS_GRANT,
|
|
5218
|
-
query:
|
|
5266
|
+
query: n.currentRoute.value.query
|
|
5219
5267
|
}), u("close-navigation");
|
|
5220
5268
|
}
|
|
5221
5269
|
}), E;
|
|
5222
5270
|
}), h = ve();
|
|
5223
5271
|
return St(() => {
|
|
5224
5272
|
var Y;
|
|
5225
|
-
let E = (Y =
|
|
5273
|
+
let E = (Y = n.currentRoute.value) == null ? void 0 : Y.name;
|
|
5226
5274
|
switch (E) {
|
|
5227
5275
|
case T.EMPLOYEE:
|
|
5228
5276
|
case T.ROLE:
|
|
@@ -5265,31 +5313,31 @@ var Dt = { exports: {} };
|
|
|
5265
5313
|
} catch {
|
|
5266
5314
|
return null;
|
|
5267
5315
|
}
|
|
5268
|
-
}, getItem: function(d,
|
|
5316
|
+
}, getItem: function(d, r) {
|
|
5269
5317
|
var s = this;
|
|
5270
5318
|
return new Promise(function(l, a) {
|
|
5271
5319
|
try {
|
|
5272
5320
|
var p = s.getItemSync(d);
|
|
5273
|
-
|
|
5321
|
+
r == null || r(null, p), l(p);
|
|
5274
5322
|
} catch (v) {
|
|
5275
|
-
|
|
5323
|
+
r && r(v, null), a(v);
|
|
5276
5324
|
}
|
|
5277
5325
|
});
|
|
5278
|
-
}, setItem: function(d,
|
|
5326
|
+
}, setItem: function(d, r, s) {
|
|
5279
5327
|
return new Promise(function(l, a) {
|
|
5280
5328
|
try {
|
|
5281
|
-
localStorage.setItem(d,
|
|
5329
|
+
localStorage.setItem(d, r), s && s(null, r), l(r);
|
|
5282
5330
|
} catch (p) {
|
|
5283
5331
|
s && s(p, null), a(p);
|
|
5284
5332
|
}
|
|
5285
5333
|
});
|
|
5286
|
-
} },
|
|
5287
|
-
return
|
|
5288
|
-
for (var
|
|
5334
|
+
} }, n = function() {
|
|
5335
|
+
return n = Object.assign || function(d) {
|
|
5336
|
+
for (var r, s = 1, l = arguments.length; s < l; s++) for (var a in r = arguments[s]) Object.prototype.hasOwnProperty.call(r, a) && (d[a] = r[a]);
|
|
5289
5337
|
return d;
|
|
5290
|
-
},
|
|
5338
|
+
}, n.apply(this, arguments);
|
|
5291
5339
|
};
|
|
5292
|
-
function m(d,
|
|
5340
|
+
function m(d, r, s, l) {
|
|
5293
5341
|
return new (s || (s = Promise))(function(a, p) {
|
|
5294
5342
|
function v(O) {
|
|
5295
5343
|
try {
|
|
@@ -5314,7 +5362,7 @@ var Dt = { exports: {} };
|
|
|
5314
5362
|
x((l = l.apply(d, [])).next());
|
|
5315
5363
|
});
|
|
5316
5364
|
}
|
|
5317
|
-
function y(d,
|
|
5365
|
+
function y(d, r) {
|
|
5318
5366
|
var s, l, a, p, v = { label: 0, sent: function() {
|
|
5319
5367
|
if (1 & a[0]) throw a[1];
|
|
5320
5368
|
return a[1];
|
|
@@ -5361,7 +5409,7 @@ var Dt = { exports: {} };
|
|
|
5361
5409
|
a[2] && v.ops.pop(), v.trys.pop();
|
|
5362
5410
|
continue;
|
|
5363
5411
|
}
|
|
5364
|
-
M =
|
|
5412
|
+
M = r.call(d, v);
|
|
5365
5413
|
} catch (X) {
|
|
5366
5414
|
M = [6, X], l = 0;
|
|
5367
5415
|
} finally {
|
|
@@ -5373,87 +5421,87 @@ var Dt = { exports: {} };
|
|
|
5373
5421
|
};
|
|
5374
5422
|
}
|
|
5375
5423
|
}
|
|
5376
|
-
function h(d,
|
|
5377
|
-
for (var l, a = 0, p =
|
|
5378
|
-
return d.concat(l || Array.prototype.slice.call(
|
|
5424
|
+
function h(d, r, s) {
|
|
5425
|
+
for (var l, a = 0, p = r.length; a < p; a++) !l && a in r || (l || (l = Array.prototype.slice.call(r, 0, a)), l[a] = r[a]);
|
|
5426
|
+
return d.concat(l || Array.prototype.slice.call(r));
|
|
5379
5427
|
}
|
|
5380
|
-
var E = function d(
|
|
5381
|
-
if (
|
|
5382
|
-
if (
|
|
5383
|
-
if (
|
|
5428
|
+
var E = function d(r, s) {
|
|
5429
|
+
if (r === s) return !0;
|
|
5430
|
+
if (r && s && typeof r == "object" && typeof s == "object") {
|
|
5431
|
+
if (r.constructor !== s.constructor) return !1;
|
|
5384
5432
|
var l, a, p;
|
|
5385
|
-
if (Array.isArray(
|
|
5386
|
-
if ((l =
|
|
5387
|
-
for (a = l; a-- != 0; ) if (!d(
|
|
5433
|
+
if (Array.isArray(r)) {
|
|
5434
|
+
if ((l = r.length) != s.length) return !1;
|
|
5435
|
+
for (a = l; a-- != 0; ) if (!d(r[a], s[a])) return !1;
|
|
5388
5436
|
return !0;
|
|
5389
5437
|
}
|
|
5390
|
-
if (
|
|
5391
|
-
if (
|
|
5392
|
-
if (
|
|
5393
|
-
if ((l = (p = Object.keys(
|
|
5438
|
+
if (r.constructor === RegExp) return r.source === s.source && r.flags === s.flags;
|
|
5439
|
+
if (r.valueOf !== Object.prototype.valueOf) return r.valueOf() === s.valueOf();
|
|
5440
|
+
if (r.toString !== Object.prototype.toString) return r.toString() === s.toString();
|
|
5441
|
+
if ((l = (p = Object.keys(r)).length) !== Object.keys(s).length) return !1;
|
|
5394
5442
|
for (a = l; a-- != 0; ) if (!Object.prototype.hasOwnProperty.call(s, p[a])) return !1;
|
|
5395
5443
|
for (a = l; a-- != 0; ) {
|
|
5396
5444
|
var v = p[a];
|
|
5397
|
-
if (!d(
|
|
5445
|
+
if (!d(r[v], s[v])) return !1;
|
|
5398
5446
|
}
|
|
5399
5447
|
return !0;
|
|
5400
5448
|
}
|
|
5401
|
-
return
|
|
5449
|
+
return r != r && s != s;
|
|
5402
5450
|
};
|
|
5403
|
-
function Y(d,
|
|
5404
|
-
var s = Object.keys(
|
|
5405
|
-
var a = d == null ? void 0 : d[l], p =
|
|
5451
|
+
function Y(d, r) {
|
|
5452
|
+
var s = Object.keys(r || {}).filter(function(l) {
|
|
5453
|
+
var a = d == null ? void 0 : d[l], p = r == null ? void 0 : r[l];
|
|
5406
5454
|
return !E(a, p);
|
|
5407
5455
|
});
|
|
5408
5456
|
return Object.keys(d || {}).filter(function(l) {
|
|
5409
|
-
Object.keys(
|
|
5457
|
+
Object.keys(r || {}).includes(l) || s.push(l);
|
|
5410
5458
|
}), Object.keys(s).length ? s : null;
|
|
5411
5459
|
}
|
|
5412
5460
|
var w, P;
|
|
5413
|
-
function I(d,
|
|
5461
|
+
function I(d, r, s) {
|
|
5414
5462
|
var l = "shortString", a = !0;
|
|
5415
|
-
typeof s == "number" && (l = "javaDouble", a = !1), d[l] = d[l] || {}, d[l][
|
|
5463
|
+
typeof s == "number" && (l = "javaDouble", a = !1), d[l] = d[l] || {}, d[l][r] = a ? s + "" : s;
|
|
5416
5464
|
}
|
|
5417
5465
|
function H(d) {
|
|
5418
5466
|
return !!d && typeof d == "object" && d.value !== void 0;
|
|
5419
5467
|
}
|
|
5420
5468
|
function z(d) {
|
|
5421
|
-
return Object.fromEntries(Object.entries(d).map(function(
|
|
5422
|
-
var s =
|
|
5469
|
+
return Object.fromEntries(Object.entries(d).map(function(r) {
|
|
5470
|
+
var s = r[0], l = r[1];
|
|
5423
5471
|
return [s, H(l) ? l : { value: l }];
|
|
5424
5472
|
}));
|
|
5425
5473
|
}
|
|
5426
5474
|
function S(d) {
|
|
5427
|
-
return
|
|
5475
|
+
return n(n({}, d), { identity: d.identity ? n(n({}, d.identity), { traits: z(d.identity.traits || {}) }) : void 0 });
|
|
5428
5476
|
}
|
|
5429
5477
|
(function(d) {
|
|
5430
5478
|
d.NONE = "NONE", d.DEFAULT_FLAGS = "DEFAULT_FLAGS", d.CACHE = "CACHE", d.SERVER = "SERVER";
|
|
5431
5479
|
})(w || (w = {}));
|
|
5432
|
-
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le, he = "https://edge.api.flagsmith.com/api/v1/", Pe = "flagsmith_value_",
|
|
5433
|
-
function d(
|
|
5480
|
+
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le, he = "https://edge.api.flagsmith.com/api/v1/", Pe = "flagsmith_value_", Ne = "flagsmith_enabled_", Fe = "flagsmith_trait_", Oe = function() {
|
|
5481
|
+
function d(r) {
|
|
5434
5482
|
var s = this;
|
|
5435
5483
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
5436
5484
|
var l = s, a = l.api, p = l.evaluationContext;
|
|
5437
|
-
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(
|
|
5485
|
+
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(n(n({}, s.loadingState), { isFetching: !0 }));
|
|
5438
5486
|
var v = "".concat(s.getContext().identity), j = function(x) {
|
|
5439
5487
|
var O, M, X, L;
|
|
5440
5488
|
if (x && v === "".concat(s.getContext().identity)) {
|
|
5441
5489
|
var Ae = x.flags, se = x.traits, le = x.identifier;
|
|
5442
5490
|
s.isLoading = !1;
|
|
5443
|
-
var
|
|
5491
|
+
var ne = {}, re = {};
|
|
5444
5492
|
se = se || [], (Ae = Ae || []).forEach(function(Q) {
|
|
5445
|
-
|
|
5493
|
+
ne[Q.feature.name.toLowerCase().replace(/ /g, "_")] = { id: Q.feature.id, enabled: Q.enabled, value: Q.feature_state_value };
|
|
5446
5494
|
}), se.forEach(function(Q) {
|
|
5447
|
-
|
|
5448
|
-
}), s.oldFlags =
|
|
5449
|
-
var ue = Y(s.oldFlags,
|
|
5450
|
-
if ((le || Object.keys(
|
|
5495
|
+
re[Q.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: Q.transient, value: Q.trait_value };
|
|
5496
|
+
}), s.oldFlags = n({}, s.flags);
|
|
5497
|
+
var ue = Y(s.oldFlags, ne), qe = Y((O = s.evaluationContext.identity) === null || O === void 0 ? void 0 : O.traits, re);
|
|
5498
|
+
if ((le || Object.keys(re).length) && (s.evaluationContext.identity = n(n({}, s.evaluationContext.identity), { traits: re }), le && (s.evaluationContext.identity.identifier = le)), s.flags = ne, s.updateStorage(), s._onChange(s.oldFlags, { isFromServer: !0, flagsChanged: ue, traitsChanged: qe }, s._loadedState(null, w.SERVER)), s.datadogRum) try {
|
|
5451
5499
|
if (s.datadogRum.trackTraits) {
|
|
5452
5500
|
var He = {};
|
|
5453
5501
|
Object.keys(((M = s.evaluationContext.identity) === null || M === void 0 ? void 0 : M.traits) || {}).map(function(Q) {
|
|
5454
5502
|
He[Fe + Q] = s.getTrait(Q);
|
|
5455
5503
|
});
|
|
5456
|
-
var Ce =
|
|
5504
|
+
var Ce = n(n(n({}, s.datadogRum.client.getUser()), { id: s.datadogRum.client.getUser().id || ((X = s.evaluationContext.identity) === null || X === void 0 ? void 0 : X.identifier) }), He);
|
|
5457
5505
|
s.log("Setting Datadog user", Ce), s.datadogRum.client.setUser(Ce);
|
|
5458
5506
|
}
|
|
5459
5507
|
} catch (Q) {
|
|
@@ -5462,7 +5510,7 @@ var Dt = { exports: {} };
|
|
|
5462
5510
|
if (s.dtrum) try {
|
|
5463
5511
|
var J = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
|
|
5464
5512
|
Object.keys(s.flags).map(function(Q) {
|
|
5465
|
-
I(J, Pe + Q, s.getValue(Q, { skipAnalytics: !0 })), I(J,
|
|
5513
|
+
I(J, Pe + Q, s.getValue(Q, { skipAnalytics: !0 })), I(J, Ne + Q, s.hasFeature(Q, { skipAnalytics: !0 }));
|
|
5466
5514
|
}), Object.keys(((L = s.evaluationContext.identity) === null || L === void 0 ? void 0 : L.traits) || {}).map(function(Q) {
|
|
5467
5515
|
I(J, Fe + Q, s.getTrait(Q));
|
|
5468
5516
|
}), s.log("Sending javaLongOrObject traits to dynatrace", J.javaLongOrObject), s.log("Sending date traits to dynatrace", J.date), s.log("Sending shortString traits to dynatrace", J.shortString), s.log("Sending javaDouble to dynatrace", J.javaDouble), s.dtrum.sendSessionProperties(J.javaLongOrObject, J.date, J.shortString, J.javaDouble);
|
|
@@ -5477,7 +5525,7 @@ var Dt = { exports: {} };
|
|
|
5477
5525
|
}).filter(function(x) {
|
|
5478
5526
|
return x.trait_value !== void 0 || (s.log("Warning - attempted to set an undefined trait value for key", x.trait_key), !1);
|
|
5479
5527
|
}) })) : s.getJSON(a + "identities/?identifier=" + encodeURIComponent(p.identity.identifier) + (p.identity.transient ? "&transient=true" : ""))]).then(function(x) {
|
|
5480
|
-
return s.evaluationContext.identity =
|
|
5528
|
+
return s.evaluationContext.identity = n(n({}, s.evaluationContext.identity), { traits: {} }), j(x == null ? void 0 : x[0]);
|
|
5481
5529
|
}).catch(function(x) {
|
|
5482
5530
|
var O = x.message, M = new Error(O);
|
|
5483
5531
|
return Promise.reject(M);
|
|
@@ -5489,7 +5537,7 @@ var Dt = { exports: {} };
|
|
|
5489
5537
|
if (s.evaluationEvent && s.evaluationContext.environment && s.evaluationEvent[s.evaluationContext.environment.apiKey]) return s.evaluationEvent && Object.getOwnPropertyNames(s.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(s.evaluationEvent[s.evaluationContext.environment.apiKey]).length !== 0 ? s.getJSON(l + "analytics/flags/", "POST", JSON.stringify(s.evaluationEvent[s.evaluationContext.environment.apiKey])).then(function(a) {
|
|
5490
5538
|
if (s.evaluationContext.environment) {
|
|
5491
5539
|
var p = s.getState();
|
|
5492
|
-
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(
|
|
5540
|
+
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(n(n({}, p), { evaluationEvent: s.evaluationEvent })), s.updateEventStorage();
|
|
5493
5541
|
}
|
|
5494
5542
|
}).catch(function(a) {
|
|
5495
5543
|
s.log("Exception fetching evaluationEvent", a);
|
|
@@ -5514,17 +5562,17 @@ var Dt = { exports: {} };
|
|
|
5514
5562
|
}));
|
|
5515
5563
|
}, this.setContext = function(l) {
|
|
5516
5564
|
var a = S(l);
|
|
5517
|
-
return s.evaluationContext =
|
|
5565
|
+
return s.evaluationContext = n(n({}, a), { environment: a.environment || s.evaluationContext.environment }), s.initialised ? s.getFlags() : Promise.resolve();
|
|
5518
5566
|
}, this.getContext = function() {
|
|
5519
5567
|
return s.evaluationContext;
|
|
5520
5568
|
}, this.updateContext = function(l) {
|
|
5521
|
-
return s.setContext(
|
|
5569
|
+
return s.setContext(n(n({}, s.getContext()), l));
|
|
5522
5570
|
}, this.setTrait = function(l, a) {
|
|
5523
5571
|
var p;
|
|
5524
|
-
if (s.api) return s.setContext(
|
|
5572
|
+
if (s.api) return s.setContext(n(n({}, s.evaluationContext), { identity: n(n({}, s.evaluationContext.identity), { traits: n(n({}, (p = s.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits), z(Object.fromEntries([[l, a]]))) }) }));
|
|
5525
5573
|
}, this.setTraits = function(l) {
|
|
5526
5574
|
var a;
|
|
5527
|
-
if (s.api) return s.setContext(
|
|
5575
|
+
if (s.api) return s.setContext(n(n({}, s.evaluationContext), { identity: n(n({}, s.evaluationContext.identity), { traits: n(n({}, (a = s.evaluationContext.identity) === null || a === void 0 ? void 0 : a.traits), Object.fromEntries(Object.entries(l).map(function(p) {
|
|
5528
5576
|
var v = p[0], j = p[1];
|
|
5529
5577
|
return [v, H(j) ? j : { value: j }];
|
|
5530
5578
|
}))) }) }));
|
|
@@ -5546,16 +5594,16 @@ var Dt = { exports: {} };
|
|
|
5546
5594
|
if (M === se) {
|
|
5547
5595
|
var le = (Ae = X.headers) === null || Ae === void 0 ? void 0 : Ae.get("x-flagsmith-document-updated-at");
|
|
5548
5596
|
if (le) try {
|
|
5549
|
-
var
|
|
5550
|
-
if (isNaN(
|
|
5551
|
-
s.timestamp =
|
|
5552
|
-
} catch (
|
|
5553
|
-
s.log(
|
|
5597
|
+
var ne = parseFloat(le);
|
|
5598
|
+
if (isNaN(ne)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
5599
|
+
s.timestamp = ne;
|
|
5600
|
+
} catch (re) {
|
|
5601
|
+
s.log(re, "Failed to parse x-flagsmith-document-updated-at", le);
|
|
5554
5602
|
}
|
|
5555
|
-
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 + l), X.text().then(function(
|
|
5556
|
-
var ue =
|
|
5603
|
+
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 + l), X.text().then(function(re) {
|
|
5604
|
+
var ue = re;
|
|
5557
5605
|
try {
|
|
5558
|
-
ue = JSON.parse(
|
|
5606
|
+
ue = JSON.parse(re);
|
|
5559
5607
|
} catch {
|
|
5560
5608
|
}
|
|
5561
5609
|
return !ue && X.status && (ue = "API Response: ".concat(X.status)), X.status && X.status >= 200 && X.status < 300 ? ue : Promise.reject(new Error(ue));
|
|
@@ -5564,7 +5612,7 @@ var Dt = { exports: {} };
|
|
|
5564
5612
|
s.log("Received response with identity mismatch, ignoring response. Requested: ".concat(M, ", Current: ").concat(se));
|
|
5565
5613
|
});
|
|
5566
5614
|
}, this.evaluateFlag = function(l, a) {
|
|
5567
|
-
if (s.datadogRum && (s.datadogRum.client.addFeatureFlagEvaluation ? a === "VALUE" ? s.datadogRum.client.addFeatureFlagEvaluation(Pe + l, s.getValue(l, {}, !0)) : s.datadogRum.client.addFeatureFlagEvaluation(
|
|
5615
|
+
if (s.datadogRum && (s.datadogRum.client.addFeatureFlagEvaluation ? a === "VALUE" ? s.datadogRum.client.addFeatureFlagEvaluation(Pe + l, s.getValue(l, {}, !0)) : s.datadogRum.client.addFeatureFlagEvaluation(Ne + l, s.hasFeature(l, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), s.enableAnalytics) {
|
|
5568
5616
|
if (!s.evaluationEvent || !s.evaluationContext.environment) return;
|
|
5569
5617
|
s.evaluationEvent[s.evaluationContext.environment.apiKey] || (s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey][l] === void 0 && (s.evaluationEvent[s.evaluationContext.environment.apiKey][l] = 0), s.evaluationEvent[s.evaluationContext.environment.apiKey][l] += 1;
|
|
5570
5618
|
}
|
|
@@ -5572,27 +5620,27 @@ var Dt = { exports: {} };
|
|
|
5572
5620
|
}, this._onChange = function(l, a, p) {
|
|
5573
5621
|
var v, j;
|
|
5574
5622
|
s.setLoadingState(p), (v = s.onChange) === null || v === void 0 || v.call(s, l, a, s.loadingState), (j = s._trigger) === null || j === void 0 || j.call(s);
|
|
5575
|
-
}, P =
|
|
5623
|
+
}, P = r.fetch ? r.fetch : typeof fetch < "u" ? fetch : Re == null ? void 0 : Re.fetch, this.canUseStorage = typeof window < "u" || !!r.browserlessStorage, this.log("Constructing flagsmith instance " + r), r.eventSource && (te = r.eventSource), r.AsyncStorage && (k = r.AsyncStorage);
|
|
5576
5624
|
}
|
|
5577
|
-
return d.prototype.init = function(
|
|
5625
|
+
return d.prototype.init = function(r) {
|
|
5578
5626
|
var s, l, a;
|
|
5579
5627
|
return m(this, void 0, void 0, function() {
|
|
5580
|
-
var p, v, j, x, O, M, X, L, Ae, se, le,
|
|
5628
|
+
var p, v, j, x, O, M, X, L, Ae, se, le, ne, re, ue, qe, He, Ce, J, Q, Je, Xe, Vt, De, _e, Pt, Ft, $e, Ot, et, Qe, je, qt, _ = this;
|
|
5581
5629
|
return y(this, function(ce) {
|
|
5582
5630
|
switch (ce.label) {
|
|
5583
5631
|
case 0:
|
|
5584
|
-
p = S(
|
|
5632
|
+
p = S(r.evaluationContext || this.evaluationContext), ce.label = 1;
|
|
5585
5633
|
case 1:
|
|
5586
|
-
if (ce.trys.push([1, 13, , 14]), v =
|
|
5634
|
+
if (ce.trys.push([1, 13, , 14]), v = r.environmentID, j = r.api, x = j === void 0 ? he : j, O = r.headers, M = r.onChange, X = r.cacheFlags, L = r.datadogRum, Ae = r.onError, se = r.defaultFlags, le = r.fetch, ne = r.preventFetch, re = r.enableLogs, ue = r.enableDynatrace, qe = r.enableAnalytics, He = r.realtime, Ce = r.eventSourceUrl, J = Ce === void 0 ? "https://realtime.flagsmith.com/" : Ce, Q = r.AsyncStorage, Je = r.identity, Xe = r.traits, Vt = r.state, De = r.cacheOptions, _e = r.angularHttpClient, Pt = r._trigger, Ft = r._triggerLoadingState, p.environment = v ? { apiKey: v } : p.environment, !p.environment || !p.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
5587
5635
|
if (p.identity = Je || Xe ? { identifier: Je, traits: Xe ? Object.fromEntries(Object.entries(Xe).map(function(ae) {
|
|
5588
5636
|
return [ae[0], { value: ae[1] }];
|
|
5589
5637
|
})) : {} } : 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 = Pt || this._trigger, this._triggerLoadingState = Ft || this._triggerLoadingState, this.onError = function(ae) {
|
|
5590
|
-
_.setLoadingState(
|
|
5591
|
-
}, this.enableLogs =
|
|
5638
|
+
_.setLoadingState(n(n({}, _.loadingState), { isFetching: !1, isLoading: !1, error: ae })), Ae == null || Ae(ae);
|
|
5639
|
+
}, this.enableLogs = re || !1, this.cacheOptions = De ? { skipAPI: !!De.skipAPI, ttl: De.ttl || 0, storageKey: De.storageKey, loadStale: !!De.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), le && (P = le), this.enableAnalytics = qe || !1, this.flags = Object.assign({}, se) || {}, this.datadogRum = L || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = k !== void 0 && !!X, ie = "FLAGSMITH_EVENT_" + p.environment.apiKey, Q && (k = Q), He && typeof window < "u" && this.setupRealtime(J, p.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Vt), this.log("Initialising with properties", r, this), ue && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), _e && (P = /* @__PURE__ */ function(ae) {
|
|
5592
5640
|
return function(me, ge) {
|
|
5593
|
-
var fe = ge.headers,
|
|
5641
|
+
var fe = ge.headers, N = ge.method, Ge = ge.body;
|
|
5594
5642
|
return new Promise(function(Be) {
|
|
5595
|
-
switch (
|
|
5643
|
+
switch (N) {
|
|
5596
5644
|
case "GET":
|
|
5597
5645
|
return ae.get(me, { headers: fe }).subscribe(function(pe) {
|
|
5598
5646
|
Be({ ok: !0, text: function() {
|
|
@@ -5621,26 +5669,26 @@ var Dt = { exports: {} };
|
|
|
5621
5669
|
var ge = JSON.parse(me);
|
|
5622
5670
|
if (ge[_.evaluationContext.environment.apiKey]) {
|
|
5623
5671
|
var fe = _.getState();
|
|
5624
|
-
_.log("Retrieved events from cache", me), _.setState(
|
|
5672
|
+
_.log("Retrieved events from cache", me), _.setState(n(n({}, fe), { evaluationEvent: ge[_.evaluationContext.environment.apiKey] }));
|
|
5625
5673
|
}
|
|
5626
5674
|
}
|
|
5627
5675
|
})), !X) return [3, 9];
|
|
5628
5676
|
if (!k || !this.canUseStorage) return [3, 8];
|
|
5629
5677
|
Ot = function(ae, me) {
|
|
5630
5678
|
return m(_, void 0, void 0, function() {
|
|
5631
|
-
var ge, fe,
|
|
5679
|
+
var ge, fe, N, Ge, Be, pe, tt, Ht, st, nt, rt, at, ot, it, lt, ct, At, ut, mt, gt, dt, pt, bt, ft, Xt = this;
|
|
5632
5680
|
return y(this, function(ye) {
|
|
5633
5681
|
switch (ye.label) {
|
|
5634
5682
|
case 0:
|
|
5635
5683
|
if (!me) return [3, 7];
|
|
5636
5684
|
ge = null, fe = null, ye.label = 1;
|
|
5637
5685
|
case 1:
|
|
5638
|
-
return ye.trys.push([1, 5, , 6]),
|
|
5686
|
+
return ye.trys.push([1, 5, , 6]), N = JSON.parse(me), Ge = !1, Be = !1, N && N.api === this.api && ((nt = (st = N.evaluationContext) === null || st === void 0 ? void 0 : st.environment) === null || nt === void 0 ? void 0 : nt.apiKey) === ((rt = this.evaluationContext.environment) === null || rt === void 0 ? void 0 : rt.apiKey) && (pe = !0, this.evaluationContext.identity && ((ot = (at = N.evaluationContext) === null || at === void 0 ? void 0 : at.identity) === null || ot === void 0 ? void 0 : ot.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((lt = (it = N.evaluationContext) === null || it === void 0 ? void 0 : it.identity) === null || lt === void 0 ? void 0 : lt.identifier) + " to " + this.evaluationContext.identity.identifier), pe = !1), this.cacheOptions.ttl && (!N.ts || (/* @__PURE__ */ new Date()).valueOf() - N.ts > this.cacheOptions.ttl) && (N.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + N.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - N.ts) + "ms"), pe = !1) : N.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + N.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - N.ts) + "ms"), Be = !0, pe = !0)), pe && (Ge = !0, fe = Y((ct = this.evaluationContext.identity) === null || ct === void 0 ? void 0 : ct.traits, (ut = (At = N.evaluationContext) === null || At === void 0 ? void 0 : At.identity) === null || ut === void 0 ? void 0 : ut.traits), ge = Y(this.flags, N.flags), this.setState(n(n({}, N), { evaluationContext: S(n(n({}, N.evaluationContext), { identity: !((mt = N.evaluationContext) === null || mt === void 0) && mt.identity ? n(n({}, (gt = N.evaluationContext) === null || gt === void 0 ? void 0 : gt.identity), { traits: n(n({}, ((pt = (dt = N.evaluationContext) === null || dt === void 0 ? void 0 : dt.identity) === null || pt === void 0 ? void 0 : pt.traits) || {}), Xe || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", N))), Ge ? (tt = !ne && (!this.cacheOptions.skipAPI || Be), this._onChange(null, { isFromServer: !1, flagsChanged: ge, traitsChanged: fe }, this._loadedState(null, w.CACHE, tt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ge && !Be && this.log("Skipping API, using cache"), tt && this.getFlags().catch(function(_s) {
|
|
5639
5687
|
var yt;
|
|
5640
5688
|
(yt = Xt.onError) === null || yt === void 0 || yt.call(Xt, _s);
|
|
5641
5689
|
}), [3, 4]) : [3, 2];
|
|
5642
5690
|
case 2:
|
|
5643
|
-
return
|
|
5691
|
+
return ne ? [3, 4] : [4, this.getFlags()];
|
|
5644
5692
|
case 3:
|
|
5645
5693
|
ye.sent(), ye.label = 4;
|
|
5646
5694
|
case 4:
|
|
@@ -5650,7 +5698,7 @@ var Dt = { exports: {} };
|
|
|
5650
5698
|
case 6:
|
|
5651
5699
|
return [3, 10];
|
|
5652
5700
|
case 7:
|
|
5653
|
-
return
|
|
5701
|
+
return ne ? [3, 9] : [4, this.getFlags()];
|
|
5654
5702
|
case 8:
|
|
5655
5703
|
return ye.sent(), [3, 10];
|
|
5656
5704
|
case 9:
|
|
@@ -5680,7 +5728,7 @@ var Dt = { exports: {} };
|
|
|
5680
5728
|
case 8:
|
|
5681
5729
|
return [3, 12];
|
|
5682
5730
|
case 9:
|
|
5683
|
-
return
|
|
5731
|
+
return ne ? [3, 11] : [4, this.getFlags()];
|
|
5684
5732
|
case 10:
|
|
5685
5733
|
return ce.sent(), [3, 12];
|
|
5686
5734
|
case 11:
|
|
@@ -5698,44 +5746,44 @@ var Dt = { exports: {} };
|
|
|
5698
5746
|
});
|
|
5699
5747
|
}, d.prototype.getAllFlags = function() {
|
|
5700
5748
|
return this.flags;
|
|
5701
|
-
}, d.prototype.identify = function(
|
|
5702
|
-
return this.evaluationContext.identity = { identifier:
|
|
5749
|
+
}, d.prototype.identify = function(r, s, l) {
|
|
5750
|
+
return this.evaluationContext.identity = { identifier: r, transient: l, 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), s && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(s).map(function(a) {
|
|
5703
5751
|
var p = a[0], v = a[1];
|
|
5704
5752
|
return [p, H(v) ? v : { value: v }];
|
|
5705
5753
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
5706
5754
|
}, d.prototype.getState = function() {
|
|
5707
5755
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
5708
|
-
}, d.prototype.setState = function(
|
|
5709
|
-
|
|
5756
|
+
}, d.prototype.setState = function(r) {
|
|
5757
|
+
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));
|
|
5710
5758
|
}, d.prototype.logout = function() {
|
|
5711
5759
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
5712
|
-
}, d.prototype.startListening = function(
|
|
5713
|
-
|
|
5760
|
+
}, d.prototype.startListening = function(r) {
|
|
5761
|
+
r === void 0 && (r = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, r);
|
|
5714
5762
|
}, d.prototype.stopListening = function() {
|
|
5715
5763
|
this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
|
|
5716
|
-
}, d.prototype._loadedState = function(
|
|
5717
|
-
return
|
|
5764
|
+
}, d.prototype._loadedState = function(r, s, l) {
|
|
5765
|
+
return r === void 0 && (r = null), l === void 0 && (l = !1), { error: r, isFetching: l, isLoading: !1, source: s };
|
|
5718
5766
|
}, d.prototype.log = function() {
|
|
5719
|
-
for (var
|
|
5720
|
-
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"],
|
|
5767
|
+
for (var r = [], s = 0; s < arguments.length; s++) r[s] = arguments[s];
|
|
5768
|
+
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], r));
|
|
5721
5769
|
}, d.prototype.updateStorage = function() {
|
|
5722
5770
|
if (this.cacheFlags) {
|
|
5723
5771
|
this.ts = (/* @__PURE__ */ new Date()).valueOf();
|
|
5724
|
-
var
|
|
5725
|
-
this.log("Setting storage",
|
|
5772
|
+
var r = JSON.stringify(this.getState());
|
|
5773
|
+
this.log("Setting storage", r), k.setItem(this.getStorageKey(), r);
|
|
5726
5774
|
}
|
|
5727
5775
|
}, d.prototype.updateEventStorage = function() {
|
|
5728
5776
|
if (this.enableAnalytics) {
|
|
5729
|
-
var
|
|
5730
|
-
k.setItem(ie,
|
|
5777
|
+
var r = JSON.stringify(this.getState().evaluationEvent);
|
|
5778
|
+
k.setItem(ie, r).catch(function(s) {
|
|
5731
5779
|
return console.error("Flagsmith: Error setting item in async storage", s);
|
|
5732
5780
|
});
|
|
5733
5781
|
}
|
|
5734
|
-
}, d.prototype.setLoadingState = function(
|
|
5782
|
+
}, d.prototype.setLoadingState = function(r) {
|
|
5735
5783
|
var s;
|
|
5736
|
-
E(
|
|
5737
|
-
}, d.prototype.setupRealtime = function(
|
|
5738
|
-
var l = this, a =
|
|
5784
|
+
E(r, this.loadingState) || (this.loadingState = n({}, r), this.log("Loading state changed", r), (s = this._triggerLoadingState) === null || s === void 0 || s.call(this));
|
|
5785
|
+
}, d.prototype.setupRealtime = function(r, s) {
|
|
5786
|
+
var l = this, a = r + "sse/environments/" + s + "/stream";
|
|
5739
5787
|
te ? this.eventSource || (this.log("Creating event source with url " + a), this.eventSource = new te(a), this.eventSource.addEventListener("environment_updated", function(p) {
|
|
5740
5788
|
var v;
|
|
5741
5789
|
try {
|
|
@@ -5748,34 +5796,34 @@ var Dt = { exports: {} };
|
|
|
5748
5796
|
}, d;
|
|
5749
5797
|
}();
|
|
5750
5798
|
function i(d) {
|
|
5751
|
-
var
|
|
5752
|
-
return new Oe({ fetch:
|
|
5799
|
+
var r = d.fetch, s = d.AsyncStorage, l = d.eventSource;
|
|
5800
|
+
return new Oe({ fetch: r, AsyncStorage: s, eventSource: l });
|
|
5753
5801
|
}
|
|
5754
|
-
var g, f = (g = function(d,
|
|
5802
|
+
var g, f = (g = function(d, r) {
|
|
5755
5803
|
return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, l) {
|
|
5756
5804
|
s.__proto__ = l;
|
|
5757
5805
|
} || function(s, l) {
|
|
5758
5806
|
for (var a in l) Object.prototype.hasOwnProperty.call(l, a) && (s[a] = l[a]);
|
|
5759
|
-
}, g(d,
|
|
5760
|
-
}, function(d,
|
|
5761
|
-
if (typeof
|
|
5807
|
+
}, g(d, r);
|
|
5808
|
+
}, function(d, r) {
|
|
5809
|
+
if (typeof r != "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
5762
5810
|
function s() {
|
|
5763
5811
|
this.constructor = d;
|
|
5764
5812
|
}
|
|
5765
|
-
g(d,
|
|
5813
|
+
g(d, r), d.prototype = r === null ? Object.create(r) : (s.prototype = r.prototype, new s());
|
|
5766
5814
|
}), B = function(d) {
|
|
5767
|
-
var
|
|
5815
|
+
var r = typeof Symbol == "function" && Symbol.iterator, s = r && d[r], l = 0;
|
|
5768
5816
|
if (s) return s.call(d);
|
|
5769
5817
|
if (d && typeof d.length == "number") return { next: function() {
|
|
5770
5818
|
return d && l >= d.length && (d = void 0), { value: d && d[l++], done: !d };
|
|
5771
5819
|
} };
|
|
5772
|
-
throw new TypeError(
|
|
5773
|
-
}, C = function(d,
|
|
5820
|
+
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
5821
|
+
}, C = function(d, r) {
|
|
5774
5822
|
var s = typeof Symbol == "function" && d[Symbol.iterator];
|
|
5775
5823
|
if (!s) return d;
|
|
5776
5824
|
var l, a, p = s.call(d), v = [];
|
|
5777
5825
|
try {
|
|
5778
|
-
for (; (
|
|
5826
|
+
for (; (r === void 0 || r-- > 0) && !(l = p.next()).done; ) v.push(l.value);
|
|
5779
5827
|
} catch (j) {
|
|
5780
5828
|
a = { error: j };
|
|
5781
5829
|
} finally {
|
|
@@ -5786,27 +5834,27 @@ var Dt = { exports: {} };
|
|
|
5786
5834
|
}
|
|
5787
5835
|
}
|
|
5788
5836
|
return v;
|
|
5789
|
-
}, D = function(d,
|
|
5790
|
-
if (arguments.length === 2) for (var l, a = 0, p =
|
|
5791
|
-
return d.concat(l || Array.prototype.slice.call(
|
|
5837
|
+
}, D = function(d, r, s) {
|
|
5838
|
+
if (arguments.length === 2) for (var l, a = 0, p = r.length; a < p; a++) !l && a in r || (l || (l = Array.prototype.slice.call(r, 0, a)), l[a] = r[a]);
|
|
5839
|
+
return d.concat(l || Array.prototype.slice.call(r));
|
|
5792
5840
|
}, V = function(d) {
|
|
5793
|
-
function
|
|
5841
|
+
function r() {
|
|
5794
5842
|
return d.call(this, `EventSource not available.
|
|
5795
5843
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
5796
5844
|
}
|
|
5797
|
-
return f(
|
|
5845
|
+
return f(r, d), r;
|
|
5798
5846
|
}(Error), F = function() {
|
|
5799
|
-
function d(
|
|
5847
|
+
function d(r, s) {
|
|
5800
5848
|
var l = this;
|
|
5801
|
-
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = s != null ? Object.assign({}, s) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url =
|
|
5849
|
+
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = s != null ? Object.assign({}, s) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = r.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new V();
|
|
5802
5850
|
this._onevent_wrapped = function(a) {
|
|
5803
5851
|
l._onevent(a);
|
|
5804
5852
|
}, this._start();
|
|
5805
5853
|
}
|
|
5806
|
-
return d.prototype.dispatchEvent = function(
|
|
5854
|
+
return d.prototype.dispatchEvent = function(r) {
|
|
5807
5855
|
throw new Error("Method not implemented.");
|
|
5808
5856
|
}, d.prototype._start = function() {
|
|
5809
|
-
var
|
|
5857
|
+
var r, s, l = this, a = this.url;
|
|
5810
5858
|
this._lastEventId && (a.indexOf("?") === -1 ? a += "?" : a += "&", a += "lastEventId=" + encodeURIComponent(this._lastEventId)), this._eventSource = new this.eventSourceClass(a, this._configuration), this._eventSource.onopen = function(x) {
|
|
5811
5859
|
l._onopen(x);
|
|
5812
5860
|
}, this._eventSource.onerror = function(x) {
|
|
@@ -5820,32 +5868,32 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5820
5868
|
this._eventSource.addEventListener(j, this._onevent_wrapped);
|
|
5821
5869
|
}
|
|
5822
5870
|
} catch (x) {
|
|
5823
|
-
|
|
5871
|
+
r = { error: x };
|
|
5824
5872
|
} finally {
|
|
5825
5873
|
try {
|
|
5826
5874
|
v && !v.done && (s = p.return) && s.call(p);
|
|
5827
5875
|
} finally {
|
|
5828
|
-
if (
|
|
5876
|
+
if (r) throw r.error;
|
|
5829
5877
|
}
|
|
5830
5878
|
}
|
|
5831
|
-
}, d.prototype._onopen = function(
|
|
5832
|
-
this.readyState === 0 && (this.readyState = 1, this.onopen(
|
|
5833
|
-
}, d.prototype._onerror = function(
|
|
5879
|
+
}, d.prototype._onopen = function(r) {
|
|
5880
|
+
this.readyState === 0 && (this.readyState = 1, this.onopen(r));
|
|
5881
|
+
}, d.prototype._onerror = function(r) {
|
|
5834
5882
|
var s = this;
|
|
5835
|
-
if (this.readyState === 1 && (this.readyState = 0, this.onerror(
|
|
5883
|
+
if (this.readyState === 1 && (this.readyState = 0, this.onerror(r)), this._eventSource) {
|
|
5836
5884
|
this._eventSource.close(), this._eventSource = null;
|
|
5837
5885
|
var l = Math.round(this.max_retry_time * Math.random());
|
|
5838
5886
|
this._timer = setTimeout(function() {
|
|
5839
5887
|
return s._start();
|
|
5840
5888
|
}, l);
|
|
5841
5889
|
}
|
|
5842
|
-
}, d.prototype._onevent = function(
|
|
5890
|
+
}, d.prototype._onevent = function(r) {
|
|
5843
5891
|
var s, l;
|
|
5844
|
-
|
|
5845
|
-
var a = this._listeners[
|
|
5892
|
+
r && r.lastEventId && (this._lastEventId = r.lastEventId);
|
|
5893
|
+
var a = this._listeners[r.type];
|
|
5846
5894
|
if (a != null) try {
|
|
5847
5895
|
for (var p = B(D([], C(a), !1)), v = p.next(); !v.done; v = p.next())
|
|
5848
|
-
v.value.call(this,
|
|
5896
|
+
v.value.call(this, r);
|
|
5849
5897
|
} catch (j) {
|
|
5850
5898
|
s = { error: j };
|
|
5851
5899
|
} finally {
|
|
@@ -5855,26 +5903,26 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5855
5903
|
if (s) throw s.error;
|
|
5856
5904
|
}
|
|
5857
5905
|
}
|
|
5858
|
-
|
|
5859
|
-
}, d.prototype.onopen = function(
|
|
5860
|
-
}, d.prototype.onerror = function(
|
|
5861
|
-
}, d.prototype.onmessage = function(
|
|
5906
|
+
r.type === "message" && this.onmessage(r);
|
|
5907
|
+
}, d.prototype.onopen = function(r) {
|
|
5908
|
+
}, d.prototype.onerror = function(r) {
|
|
5909
|
+
}, d.prototype.onmessage = function(r) {
|
|
5862
5910
|
}, d.prototype.close = function() {
|
|
5863
5911
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
5864
|
-
}, d.prototype.addEventListener = function(
|
|
5865
|
-
this._listeners[
|
|
5866
|
-
var a = this._listeners[
|
|
5867
|
-
a.includes(s) || (this._listeners[
|
|
5868
|
-
}, d.prototype.removeEventListener = function(
|
|
5869
|
-
var a = this._listeners[
|
|
5870
|
-
this._listeners[
|
|
5912
|
+
}, d.prototype.addEventListener = function(r, s, l) {
|
|
5913
|
+
this._listeners[r] == null && (this._listeners[r] = [], this._eventSource != null && this._eventSource.addEventListener(r, this._onevent_wrapped));
|
|
5914
|
+
var a = this._listeners[r];
|
|
5915
|
+
a.includes(s) || (this._listeners[r] = D(D([], C(a), !1), [s], !1));
|
|
5916
|
+
}, d.prototype.removeEventListener = function(r, s, l) {
|
|
5917
|
+
var a = this._listeners[r];
|
|
5918
|
+
this._listeners[r] = a.filter(function(p) {
|
|
5871
5919
|
return p !== s;
|
|
5872
5920
|
});
|
|
5873
5921
|
}, d;
|
|
5874
5922
|
}();
|
|
5875
5923
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
5876
|
-
var
|
|
5877
|
-
return
|
|
5924
|
+
var Z = function(d, r) {
|
|
5925
|
+
return r = r || {}, new Promise(function(s, l) {
|
|
5878
5926
|
var a = new XMLHttpRequest(), p = [], v = [], j = {}, x = function() {
|
|
5879
5927
|
return { ok: (a.status / 100 | 0) == 2, statusText: a.statusText, status: a.status, url: a.responseURL, text: function() {
|
|
5880
5928
|
return Promise.resolve(a.responseText);
|
|
@@ -5892,38 +5940,38 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5892
5940
|
return M.toLowerCase() in j;
|
|
5893
5941
|
} } };
|
|
5894
5942
|
};
|
|
5895
|
-
for (var O in a.open(
|
|
5943
|
+
for (var O in a.open(r.method || "get", d, !0), a.onload = function() {
|
|
5896
5944
|
a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(M, X, L) {
|
|
5897
5945
|
p.push(X = X.toLowerCase()), v.push([X, L]), j[X] = j[X] ? j[X] + "," + L : L;
|
|
5898
5946
|
}), s(x());
|
|
5899
|
-
}, a.onerror = l, a.withCredentials =
|
|
5900
|
-
a.send(
|
|
5947
|
+
}, a.onerror = l, a.withCredentials = r.credentials == "include", r.headers) a.setRequestHeader(O, r.headers[O]);
|
|
5948
|
+
a.send(r.body || null);
|
|
5901
5949
|
});
|
|
5902
|
-
}, W = i({ AsyncStorage: c, fetch:
|
|
5950
|
+
}, W = i({ AsyncStorage: c, fetch: Z, eventSource: F });
|
|
5903
5951
|
typeof window < "u" && (window.flagsmith = W), u.createFlagsmithInstance = function() {
|
|
5904
|
-
return i({ AsyncStorage: c, fetch:
|
|
5952
|
+
return i({ AsyncStorage: c, fetch: Z, eventSource: F });
|
|
5905
5953
|
}, u.default = W, Object.defineProperty(u, "__esModule", { value: !0 });
|
|
5906
5954
|
});
|
|
5907
5955
|
})(Dt, Dt.exports);
|
|
5908
|
-
var Ra = Dt.exports,
|
|
5956
|
+
var Ra = Dt.exports, Na = {
|
|
5909
5957
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
|
|
5910
|
-
}, Tt = "business", de,
|
|
5958
|
+
}, Tt = "business", de, Za = (de = class {
|
|
5911
5959
|
constructor() {
|
|
5912
|
-
|
|
5913
|
-
|
|
5960
|
+
Ze(this, "flagsmithClient", null);
|
|
5961
|
+
Ze(this, "userContext", null);
|
|
5914
5962
|
}
|
|
5915
5963
|
static getInstance() {
|
|
5916
5964
|
return de.instance || (de.instance = new de()), de.instance;
|
|
5917
5965
|
}
|
|
5918
5966
|
ensureInitialized() {
|
|
5919
5967
|
if (!this.flagsmithClient)
|
|
5920
|
-
throw new Error(
|
|
5968
|
+
throw new Error(Na.NOT_INITIALIZED);
|
|
5921
5969
|
}
|
|
5922
5970
|
async init(A, u = []) {
|
|
5923
5971
|
if (!this.flagsmithClient)
|
|
5924
5972
|
try {
|
|
5925
5973
|
this.flagsmithClient = Ra.createFlagsmithInstance();
|
|
5926
|
-
const c = u.reduce((
|
|
5974
|
+
const c = u.reduce((n, m) => (n[m.feature.name] = m, n), {});
|
|
5927
5975
|
await this.flagsmithClient.init({
|
|
5928
5976
|
environmentID: A.apiKey,
|
|
5929
5977
|
api: (A == null ? void 0 : A.url) ?? "https://feature-flag-proxy.feedme.farm/api/v1/",
|
|
@@ -5954,14 +6002,14 @@ var Ra = Dt.exports, Za = {
|
|
|
5954
6002
|
this.ensureInitialized();
|
|
5955
6003
|
const A = this.flagsmithClient.getAllFlags();
|
|
5956
6004
|
return Object.entries(A).map(([u, c]) => {
|
|
5957
|
-
var
|
|
6005
|
+
var n;
|
|
5958
6006
|
return {
|
|
5959
6007
|
feature: {
|
|
5960
6008
|
name: u,
|
|
5961
6009
|
id: (c == null ? void 0 : c.id) ?? 0
|
|
5962
6010
|
},
|
|
5963
6011
|
enabled: c.enabled,
|
|
5964
|
-
value: ((
|
|
6012
|
+
value: ((n = c.value) == null ? void 0 : n.toString()) ?? null
|
|
5965
6013
|
};
|
|
5966
6014
|
});
|
|
5967
6015
|
}
|
|
@@ -5971,10 +6019,10 @@ var Ra = Dt.exports, Za = {
|
|
|
5971
6019
|
if (c == null)
|
|
5972
6020
|
return null;
|
|
5973
6021
|
try {
|
|
5974
|
-
const
|
|
5975
|
-
return u ? u(
|
|
5976
|
-
} catch (
|
|
5977
|
-
return console.error("Error transforming flag value:",
|
|
6022
|
+
const n = c.toString();
|
|
6023
|
+
return u ? u(n) : typeof {} == "number" ? isNaN(Number(n)) ? null : Number(n) : typeof {} == "boolean" ? n.toLowerCase() === "true" : n;
|
|
6024
|
+
} catch (n) {
|
|
6025
|
+
return console.error("Error transforming flag value:", n), null;
|
|
5978
6026
|
}
|
|
5979
6027
|
}
|
|
5980
6028
|
getFlag(A) {
|
|
@@ -5991,11 +6039,11 @@ var Ra = Dt.exports, Za = {
|
|
|
5991
6039
|
value: u.toString()
|
|
5992
6040
|
};
|
|
5993
6041
|
}
|
|
5994
|
-
async getUserFlagValue(A, u, c = null,
|
|
6042
|
+
async getUserFlagValue(A, u, c = null, n) {
|
|
5995
6043
|
var y;
|
|
5996
6044
|
const m = this.userContext;
|
|
5997
6045
|
try {
|
|
5998
|
-
return await this.setUser(A), this.getFlagValue(u,
|
|
6046
|
+
return await this.setUser(A), this.getFlagValue(u, n) ?? c;
|
|
5999
6047
|
} catch (h) {
|
|
6000
6048
|
return console.error(`Error getting user flag value for ${u}:`, h), c;
|
|
6001
6049
|
} finally {
|
|
@@ -6009,7 +6057,7 @@ var Ra = Dt.exports, Za = {
|
|
|
6009
6057
|
reset() {
|
|
6010
6058
|
this.flagsmithClient = null, this.userContext = null;
|
|
6011
6059
|
}
|
|
6012
|
-
},
|
|
6060
|
+
}, Ze(de, "instance"), de), za = Za.getInstance(), Ie = ve(!1), Ue = ve([]), Ye = ve(null);
|
|
6013
6061
|
function Ua(e = za) {
|
|
6014
6062
|
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), u = async (w, P = []) => {
|
|
6015
6063
|
if (Ie.value) {
|
|
@@ -6028,7 +6076,7 @@ function Ua(e = za) {
|
|
|
6028
6076
|
} catch (P) {
|
|
6029
6077
|
console.error("Failed to set user:", P), Ye.value = P;
|
|
6030
6078
|
}
|
|
6031
|
-
},
|
|
6079
|
+
}, n = async (w) => c(`${Tt}-${w}`), m = (w, P, I = null) => {
|
|
6032
6080
|
if (!A()) return I;
|
|
6033
6081
|
try {
|
|
6034
6082
|
return e.getFlagValue(w, P) ?? I;
|
|
@@ -6064,7 +6112,7 @@ function Ua(e = za) {
|
|
|
6064
6112
|
error: vt(Ye),
|
|
6065
6113
|
init: u,
|
|
6066
6114
|
setUser: c,
|
|
6067
|
-
setBusiness:
|
|
6115
|
+
setBusiness: n,
|
|
6068
6116
|
getFlagValue: m,
|
|
6069
6117
|
getFlag: y,
|
|
6070
6118
|
getUserFlagValue: h,
|
|
@@ -6081,19 +6129,19 @@ const to = /* @__PURE__ */ xe({
|
|
|
6081
6129
|
A.registerSidebarComponent(Ia), await u({
|
|
6082
6130
|
apiKey: A.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
6083
6131
|
});
|
|
6084
|
-
}), (c,
|
|
6132
|
+
}), (c, n) => {
|
|
6085
6133
|
const m = Gt("RouterView");
|
|
6086
6134
|
return Ve(), ke(m);
|
|
6087
6135
|
};
|
|
6088
6136
|
}
|
|
6089
6137
|
}), so = () => {
|
|
6090
|
-
const e = [
|
|
6138
|
+
const e = [In, xn, Bn, kn], A = new Set(e.flatMap((u) => Object.keys(u)));
|
|
6091
6139
|
return Array.from(A).reduce(
|
|
6092
6140
|
(u, c) => {
|
|
6093
|
-
const
|
|
6141
|
+
const n = c;
|
|
6094
6142
|
return u[c] = e.reduce((m, y) => ({
|
|
6095
6143
|
...m,
|
|
6096
|
-
...y[
|
|
6144
|
+
...y[n] || {}
|
|
6097
6145
|
}), {}), u;
|
|
6098
6146
|
},
|
|
6099
6147
|
{}
|
|
@@ -6110,8 +6158,8 @@ export {
|
|
|
6110
6158
|
We as d,
|
|
6111
6159
|
ea as e,
|
|
6112
6160
|
to as f,
|
|
6113
|
-
|
|
6114
|
-
|
|
6161
|
+
Or as g,
|
|
6162
|
+
Fr as h,
|
|
6115
6163
|
so as i,
|
|
6116
6164
|
t as l,
|
|
6117
6165
|
$a as m,
|