@feedmepos/mf-hrm-portal 2.0.18-dev.2 → 2.0.18
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-CfvB_c7-.js +980 -0
- package/dist/EmployeeList-Whx8sBTA.js +736 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/Main-C_Tm3462.js +85 -0
- package/dist/{Main-dqgR1UXY.js → Main-CoGNATjU.js} +175 -181
- package/dist/{Main-BbOMNP31.js → Main-D2LWkcaI.js} +761 -758
- package/dist/PermissionSetList-RYl82f1k.js +341 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BiImcVpI.js +3480 -0
- package/dist/RoleList-D0KdTM9G.js +530 -0
- package/dist/TeamMemberList-DDBFCFlj.js +1108 -0
- package/dist/{TimesheetList-D29EFj1Q.js → TimesheetList-BzYGHK7n.js} +126 -132
- package/dist/{app-SadE2J6-.js → app-BMnTcaqa.js} +1210 -1186
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DKCxxK08.js → dayjs.min-CTzjqhN9.js} +1 -1
- package/dist/employee-DeAtPDRi.js +204 -0
- package/dist/{iteration-QZxp7XeE.js → iteration-L53uoXdY.js} +5762 -5807
- package/dist/{lodash-DrksHyHu.js → lodash-t9DlqugD.js} +1 -1
- package/dist/{rule-CSsgDC6F.js → rule-BCN5fKAA.js} +265 -263
- package/dist/src/api/audit-log/index.d.ts +0 -9
- package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
- package/dist/src/composables/useBasePermission.d.ts +0 -1
- package/dist/src/composables/useRestaurantMap.d.ts +329 -2
- 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 +0 -11
- package/dist/src/types/team.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +0 -16
- package/dist/src/views/team/components/BasePermission.vue.d.ts +7 -3
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +28 -32
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -5
- package/dist/style.css +1 -1
- package/dist/{timesheet-sBe_HCZh.js → timesheet-D41pctAm.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-fl7zMdUR.js +171 -0
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
- package/dist/{useLoading-PTqnaz_W.js → useLoading-BbpH9pow.js} +1 -1
- package/dist/{useReportPermissions-C3Uzu7vB.js → useReportPermissions-qEea7Dnt.js} +3 -3
- package/dist/useSearch-B6WK1LBB.js +15 -0
- package/package.json +2 -2
- package/dist/AuditLogList-D4E8pss5.js +0 -1037
- package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
- package/dist/EmployeeList-BfJO89pN.js +0 -827
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-XmxzThcC.js +0 -86
- package/dist/PermissionSetList-DO0PRS6Z.js +0 -347
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DL4_xvBZ.js +0 -3443
- package/dist/RoleList-DB3NfUYF.js +0 -545
- package/dist/TeamMemberList-4hEx6L5r.js +0 -1090
- package/dist/employee-3KJs872J.js +0 -204
- package/dist/src/api/restaurant/index.d.ts +0 -5
- package/dist/src/components/Skeleton.vue.d.ts +0 -7
- package/dist/src/stores/restaurant.d.ts +0 -181
- package/dist/useAppStore-BDADkWuX.js +0 -171
- package/dist/useDebounce-CWb5QR9G.js +0 -28
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var $s = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var Ne = (e, A, u) =>
|
|
4
|
-
import { isRef as
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import { useCoreStore as
|
|
2
|
+
var er = (e, A, u) => A in e ? $s(e, A, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[A] = u;
|
|
3
|
+
var Ne = (e, A, u) => er(e, typeof A != "symbol" ? A + "" : A, u);
|
|
4
|
+
import { isRef as tr, ref as ve, shallowRef as sr, watchEffect as St, computed as jt, h as Qt, defineComponent as xe, createBlock as ke, renderSlot as kt, createCommentVNode as rr, unref as Me, openBlock as Ve, createElementBlock as Kt, createElementVNode as we, toDisplayString as It, watch as Rt, nextTick as Zt, onMounted as Lt, onBeforeUnmount as nr, normalizeStyle as ar, resolveComponent as Gt, withCtx as or, createVNode as ir, defineAsyncComponent as lr, readonly as vt } from "vue";
|
|
5
|
+
import { useBreakpoints as cr } from "@feedmepos/ui-library";
|
|
6
|
+
import { useRoute as Ar, useRouter as ur } from "vue-router";
|
|
7
|
+
import { useCoreStore as Yt, useI18n as Jt } from "@feedmepos/mf-common";
|
|
8
8
|
const _t = {
|
|
9
9
|
predefinedRanges: {
|
|
10
10
|
today: "Today",
|
|
@@ -134,14 +134,14 @@ const _t = {
|
|
|
134
134
|
requestPath: "Request Path",
|
|
135
135
|
requestBody: "Request Body"
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, mr = {
|
|
138
138
|
date: _t,
|
|
139
139
|
auditLog: $t
|
|
140
|
-
},
|
|
140
|
+
}, gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
141
141
|
__proto__: null,
|
|
142
142
|
auditLog: $t,
|
|
143
143
|
date: _t,
|
|
144
|
-
default:
|
|
144
|
+
default: mr
|
|
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
|
+
}, dr = {
|
|
276
276
|
date: es,
|
|
277
277
|
auditLog: ts
|
|
278
|
-
},
|
|
278
|
+
}, pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
279
279
|
__proto__: null,
|
|
280
280
|
auditLog: ts,
|
|
281
281
|
date: es,
|
|
282
|
-
default:
|
|
282
|
+
default: dr
|
|
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
|
+
}, rs = {
|
|
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
|
+
}, br = {
|
|
414
414
|
date: ss,
|
|
415
|
-
auditLog:
|
|
416
|
-
},
|
|
415
|
+
auditLog: rs
|
|
416
|
+
}, fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
417
417
|
__proto__: null,
|
|
418
|
-
auditLog:
|
|
418
|
+
auditLog: rs,
|
|
419
419
|
date: ss,
|
|
420
|
-
default:
|
|
421
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
420
|
+
default: br
|
|
421
|
+
}, Symbol.toStringTag, { value: "Module" })), ns = {
|
|
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
|
+
}, yr = {
|
|
552
|
+
date: ns,
|
|
553
553
|
auditLog: as
|
|
554
|
-
},
|
|
554
|
+
}, vr = /* @__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: ns,
|
|
558
|
+
default: yr
|
|
559
|
+
}, Symbol.toStringTag, { value: "Module" })), hr = {
|
|
560
|
+
"en-US": gr,
|
|
561
|
+
"zh-CN": fr,
|
|
562
|
+
"th-TH": pr,
|
|
563
|
+
"zh-Hant": vr
|
|
564
564
|
}, os = {
|
|
565
565
|
employee: {
|
|
566
566
|
title: "Employee",
|
|
@@ -570,15 +570,12 @@ const _t = {
|
|
|
570
570
|
code: "Code",
|
|
571
571
|
name: "Name",
|
|
572
572
|
restaurants: "Restaurant",
|
|
573
|
-
assignedRole: "Assigned Role",
|
|
574
573
|
since: "Join Since"
|
|
575
574
|
},
|
|
576
575
|
form: {
|
|
577
576
|
add: "Create employee",
|
|
578
577
|
update: "Update employee",
|
|
579
578
|
employeeSetting: "Employee setting",
|
|
580
|
-
assignmentSection: "Outlet & Role Assignment",
|
|
581
|
-
addAnother: "Add another",
|
|
582
579
|
masterUserConfig: "Master user configuration",
|
|
583
580
|
code: "Code",
|
|
584
581
|
masterUser: "Master User",
|
|
@@ -588,7 +585,6 @@ const _t = {
|
|
|
588
585
|
passcodeRequired: "Passcode must be 4 digits",
|
|
589
586
|
passcodeGenerate: "Generate code",
|
|
590
587
|
atLeastOneRestaurant: "Select at least one restaurant",
|
|
591
|
-
roleRequired: "Select a role for every restaurant",
|
|
592
588
|
all: "All",
|
|
593
589
|
role: "Role",
|
|
594
590
|
name: "Name"
|
|
@@ -761,11 +757,11 @@ const _t = {
|
|
|
761
757
|
placeholder: "Search restaurant"
|
|
762
758
|
}
|
|
763
759
|
}
|
|
764
|
-
},
|
|
760
|
+
}, Br = {
|
|
765
761
|
hr: os
|
|
766
|
-
},
|
|
762
|
+
}, wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
767
763
|
__proto__: null,
|
|
768
|
-
default:
|
|
764
|
+
default: Br,
|
|
769
765
|
hr: os
|
|
770
766
|
}, Symbol.toStringTag, { value: "Module" })), is = {
|
|
771
767
|
employee: {
|
|
@@ -776,15 +772,12 @@ const _t = {
|
|
|
776
772
|
code: "รหัส",
|
|
777
773
|
name: "ชื่อ",
|
|
778
774
|
restaurants: "ร้านอาหาร",
|
|
779
|
-
assignedRole: "บทบาทที่ได้รับมอบหมาย",
|
|
780
775
|
since: "เข้าร่วมตั้งแต่"
|
|
781
776
|
},
|
|
782
777
|
form: {
|
|
783
778
|
add: "สร้างพนักงาน",
|
|
784
779
|
update: "อัพเดทพนักงาน",
|
|
785
780
|
employeeSetting: "ตั้งค่าพนักงาน",
|
|
786
|
-
assignmentSection: "การกำหนดสาขาและบทบาท",
|
|
787
|
-
addAnother: "เพิ่มอีกหนึ่งรายการ",
|
|
788
781
|
masterUserConfig: "ตั้งค่าผู้ใช้หลัก",
|
|
789
782
|
code: "รหัส",
|
|
790
783
|
masterUser: "ผู้ใช้หลัก",
|
|
@@ -794,7 +787,6 @@ const _t = {
|
|
|
794
787
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
795
788
|
passcodeGenerate: "สร้างรหัส",
|
|
796
789
|
atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
|
|
797
|
-
roleRequired: "กรุณาเลือกบทบาทให้ทุกร้านอาหาร",
|
|
798
790
|
all: "ทั้งหมด",
|
|
799
791
|
role: "บทบาท",
|
|
800
792
|
name: "ชื่อ"
|
|
@@ -966,11 +958,11 @@ const _t = {
|
|
|
966
958
|
placeholder: "ค้นหาร้านอาหาร"
|
|
967
959
|
}
|
|
968
960
|
}
|
|
969
|
-
},
|
|
961
|
+
}, Mr = {
|
|
970
962
|
hr: is
|
|
971
|
-
},
|
|
963
|
+
}, Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
972
964
|
__proto__: null,
|
|
973
|
-
default:
|
|
965
|
+
default: Mr,
|
|
974
966
|
hr: is
|
|
975
967
|
}, Symbol.toStringTag, { value: "Module" })), ls = {
|
|
976
968
|
employee: {
|
|
@@ -981,15 +973,12 @@ const _t = {
|
|
|
981
973
|
code: "工号",
|
|
982
974
|
name: "姓名",
|
|
983
975
|
restaurants: "餐厅",
|
|
984
|
-
assignedRole: "分配角色",
|
|
985
976
|
since: "入职时间"
|
|
986
977
|
},
|
|
987
978
|
form: {
|
|
988
979
|
add: "添加员工",
|
|
989
980
|
update: "更新员工",
|
|
990
981
|
employeeSetting: "员工设置",
|
|
991
|
-
assignmentSection: "门店与角色分配",
|
|
992
|
-
addAnother: "新增一项",
|
|
993
982
|
masterUserConfig: "主用户配置",
|
|
994
983
|
code: "工号",
|
|
995
984
|
masterUser: "主用户",
|
|
@@ -999,7 +988,6 @@ const _t = {
|
|
|
999
988
|
passcodeRequired: "密码必须为4位数字",
|
|
1000
989
|
passcodeGenerate: "生成密码",
|
|
1001
990
|
atLeastOneRestaurant: "至少选择一个餐厅",
|
|
1002
|
-
roleRequired: "请为每个餐厅选择角色",
|
|
1003
991
|
all: "全选",
|
|
1004
992
|
role: "角色",
|
|
1005
993
|
name: "姓名"
|
|
@@ -1172,11 +1160,11 @@ const _t = {
|
|
|
1172
1160
|
placeholder: "搜索餐厅"
|
|
1173
1161
|
}
|
|
1174
1162
|
}
|
|
1175
|
-
},
|
|
1163
|
+
}, Dr = {
|
|
1176
1164
|
hr: ls
|
|
1177
|
-
},
|
|
1165
|
+
}, jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1178
1166
|
__proto__: null,
|
|
1179
|
-
default:
|
|
1167
|
+
default: Dr,
|
|
1180
1168
|
hr: ls
|
|
1181
1169
|
}, Symbol.toStringTag, { value: "Module" })), cs = {
|
|
1182
1170
|
employee: {
|
|
@@ -1187,15 +1175,12 @@ const _t = {
|
|
|
1187
1175
|
code: "工號",
|
|
1188
1176
|
name: "姓名",
|
|
1189
1177
|
restaurants: "餐廳",
|
|
1190
|
-
assignedRole: "分配角色",
|
|
1191
1178
|
since: "入職時間"
|
|
1192
1179
|
},
|
|
1193
1180
|
form: {
|
|
1194
1181
|
add: "添加員工",
|
|
1195
1182
|
update: "更新員工",
|
|
1196
1183
|
employeeSetting: "員工設置",
|
|
1197
|
-
assignmentSection: "門店與角色分配",
|
|
1198
|
-
addAnother: "新增一項",
|
|
1199
1184
|
masterUserConfig: "主用户配置",
|
|
1200
1185
|
code: "工號",
|
|
1201
1186
|
masterUser: "主用户",
|
|
@@ -1205,7 +1190,6 @@ const _t = {
|
|
|
1205
1190
|
passcodeRequired: "密碼必須為4位數字",
|
|
1206
1191
|
passcodeGenerate: "生成密碼",
|
|
1207
1192
|
atLeastOneRestaurant: "至少選擇一個餐廳",
|
|
1208
|
-
roleRequired: "請為每個餐廳選擇角色",
|
|
1209
1193
|
all: "全選",
|
|
1210
1194
|
role: "角色",
|
|
1211
1195
|
name: "姓名"
|
|
@@ -1373,17 +1357,17 @@ const _t = {
|
|
|
1373
1357
|
subtitle: ""
|
|
1374
1358
|
}
|
|
1375
1359
|
}
|
|
1376
|
-
},
|
|
1360
|
+
}, Gr = {
|
|
1377
1361
|
hr: cs
|
|
1378
|
-
},
|
|
1362
|
+
}, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1379
1363
|
__proto__: null,
|
|
1380
|
-
default:
|
|
1364
|
+
default: Gr,
|
|
1381
1365
|
hr: cs
|
|
1382
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1383
|
-
"en-US":
|
|
1384
|
-
"zh-CN":
|
|
1385
|
-
"th-TH":
|
|
1386
|
-
"zh-Hant":
|
|
1366
|
+
}, Symbol.toStringTag, { value: "Module" })), Er = {
|
|
1367
|
+
"en-US": wr,
|
|
1368
|
+
"zh-CN": jr,
|
|
1369
|
+
"th-TH": Cr,
|
|
1370
|
+
"zh-Hant": Yr
|
|
1387
1371
|
}, As = {
|
|
1388
1372
|
title: "Team members",
|
|
1389
1373
|
actions: {
|
|
@@ -1427,9 +1411,7 @@ const _t = {
|
|
|
1427
1411
|
},
|
|
1428
1412
|
filter: {
|
|
1429
1413
|
permission_placeholder: "Filter by permission",
|
|
1430
|
-
selected_permission_prefix: "Selected permissions: "
|
|
1431
|
-
assigned_role_placeholder: "Assigned Role",
|
|
1432
|
-
selected_assigned_role_prefix: "Assigned roles: "
|
|
1414
|
+
selected_permission_prefix: "Selected permissions: "
|
|
1433
1415
|
},
|
|
1434
1416
|
emptyState: {
|
|
1435
1417
|
title: "No team members found",
|
|
@@ -1451,7 +1433,6 @@ const _t = {
|
|
|
1451
1433
|
emailAddress: "Email address"
|
|
1452
1434
|
},
|
|
1453
1435
|
permissions: {
|
|
1454
|
-
title: "Permissions",
|
|
1455
1436
|
manageable: "Manageable {context}",
|
|
1456
1437
|
search: "Search {context}",
|
|
1457
1438
|
general: "General permissions",
|
|
@@ -1461,18 +1442,13 @@ const _t = {
|
|
|
1461
1442
|
includedFuture: "Include future {context}",
|
|
1462
1443
|
includedNewRole: "Include new added role",
|
|
1463
1444
|
roles: "Usable POS roles",
|
|
1464
|
-
inherited: "Inherited permission from:"
|
|
1465
|
-
allowedCount: "{count} permissions allowed",
|
|
1466
|
-
columnName: "Name",
|
|
1467
|
-
columnManage: "Manage"
|
|
1445
|
+
inherited: "Inherited permission from:"
|
|
1468
1446
|
},
|
|
1469
1447
|
masterUser: {
|
|
1470
1448
|
title: "Master user",
|
|
1471
1449
|
passcode: "Master user passcode",
|
|
1472
1450
|
passcodeRequired: "Passcode must be 4 digits",
|
|
1473
1451
|
sublabel: "Master user can access restaurant POS system.",
|
|
1474
|
-
assignmentSection: "Outlet & Role Assignment",
|
|
1475
|
-
addAnother: "Add another",
|
|
1476
1452
|
code: "Code",
|
|
1477
1453
|
name: "Name",
|
|
1478
1454
|
role: "Role",
|
|
@@ -1530,7 +1506,8 @@ const _t = {
|
|
|
1530
1506
|
Settings: "Settings",
|
|
1531
1507
|
Report: "Report",
|
|
1532
1508
|
"Default Report": "Default Report",
|
|
1533
|
-
"Custom Report": "Custom Report"
|
|
1509
|
+
"Custom Report": "Custom Report",
|
|
1510
|
+
"Mini Program": "Mini Program"
|
|
1534
1511
|
},
|
|
1535
1512
|
actionLabels: {
|
|
1536
1513
|
read: "View",
|
|
@@ -1540,6 +1517,12 @@ const _t = {
|
|
|
1540
1517
|
},
|
|
1541
1518
|
permissionLabels: {
|
|
1542
1519
|
"business::restaurant": "Restaurant Owner",
|
|
1520
|
+
"business::miniProgram::profile": "Business Profile Management",
|
|
1521
|
+
"business::miniProgram::brandkit": "Brand Kit Management",
|
|
1522
|
+
"business::miniProgram::template": "Template Management",
|
|
1523
|
+
"business::miniProgram::publish": "Publish Management",
|
|
1524
|
+
"business::miniProgram::assets": "Assets Management",
|
|
1525
|
+
"business::miniProgram::nativeCredentials": "Credentials Management",
|
|
1543
1526
|
"business::menu": "Menu Management",
|
|
1544
1527
|
"business::inventory::stockBalance": "Stock Balance Management",
|
|
1545
1528
|
"business::inventory::stockAdjustment": "Stock Adjustment Management",
|
|
@@ -1603,15 +1586,15 @@ const _t = {
|
|
|
1603
1586
|
permissions: "Permissions"
|
|
1604
1587
|
}
|
|
1605
1588
|
}
|
|
1606
|
-
},
|
|
1589
|
+
}, xr = {
|
|
1607
1590
|
team: As,
|
|
1608
1591
|
permissionSet: us
|
|
1609
|
-
},
|
|
1592
|
+
}, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1610
1593
|
__proto__: null,
|
|
1611
|
-
default:
|
|
1594
|
+
default: xr,
|
|
1612
1595
|
permissionSet: us,
|
|
1613
1596
|
team: As
|
|
1614
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1597
|
+
}, Symbol.toStringTag, { value: "Module" })), ms = {
|
|
1615
1598
|
title: "สมาชิกในทีม",
|
|
1616
1599
|
actions: {
|
|
1617
1600
|
addMember: "เพิ่มสมาชิก",
|
|
@@ -1654,9 +1637,7 @@ const _t = {
|
|
|
1654
1637
|
},
|
|
1655
1638
|
filter: {
|
|
1656
1639
|
permission_placeholder: "กรองตามสิทธิ์อนุญาต",
|
|
1657
|
-
selected_permission_prefix: "สิทธิ์ที่เลือก: "
|
|
1658
|
-
assigned_role_placeholder: "บทบาทที่กำหนด",
|
|
1659
|
-
selected_assigned_role_prefix: "บทบาทที่เลือก: "
|
|
1640
|
+
selected_permission_prefix: "สิทธิ์ที่เลือก: "
|
|
1660
1641
|
},
|
|
1661
1642
|
emptyState: {
|
|
1662
1643
|
title: "ไม่พบสมาชิกในทีม",
|
|
@@ -1678,7 +1659,6 @@ const _t = {
|
|
|
1678
1659
|
emailAddress: "ที่อยู่อีเมล"
|
|
1679
1660
|
},
|
|
1680
1661
|
permissions: {
|
|
1681
|
-
title: "สิทธิ์อนุญาต",
|
|
1682
1662
|
manageable: "จัดการได้ {context}",
|
|
1683
1663
|
search: "ค้นหา {context}",
|
|
1684
1664
|
general: "สิทธิ์ทั่วไป",
|
|
@@ -1688,18 +1668,13 @@ const _t = {
|
|
|
1688
1668
|
includedFuture: "รวม {context} ในอนาคต",
|
|
1689
1669
|
includedNewRole: "รวมบทบาทใหม่ที่เพิ่มเข้ามา",
|
|
1690
1670
|
roles: "บทบาท POS ที่สามารถใช้ได้",
|
|
1691
|
-
inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:"
|
|
1692
|
-
allowedCount: "{count} สิทธิ์ที่อนุญาต",
|
|
1693
|
-
columnName: "ชื่อ",
|
|
1694
|
-
columnManage: "จัดการ"
|
|
1671
|
+
inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:"
|
|
1695
1672
|
},
|
|
1696
1673
|
masterUser: {
|
|
1697
1674
|
title: "ผู้ใช้หลัก",
|
|
1698
1675
|
passcode: "รหัสผ่านผู้ใช้หลัก",
|
|
1699
1676
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
1700
1677
|
sublabel: "ผู้ใช้หลักสามารถเข้าถึงระบบ POS ของร้านอาหารได้",
|
|
1701
|
-
assignmentSection: "การกำหนดสาขาและบทบาท",
|
|
1702
|
-
addAnother: "เพิ่มอีก",
|
|
1703
1678
|
code: "รหัส",
|
|
1704
1679
|
name: "ชื่อ",
|
|
1705
1680
|
role: "บทบาท",
|
|
@@ -1715,7 +1690,7 @@ const _t = {
|
|
|
1715
1690
|
selectPlaceholder: "เลือกบทบาทสิทธิ์"
|
|
1716
1691
|
}
|
|
1717
1692
|
}
|
|
1718
|
-
},
|
|
1693
|
+
}, gs = {
|
|
1719
1694
|
title: "ชุดสิทธิ์",
|
|
1720
1695
|
createButtonLabel: "สร้างชุดสิทธิ์",
|
|
1721
1696
|
search: {
|
|
@@ -1757,7 +1732,8 @@ const _t = {
|
|
|
1757
1732
|
Settings: "การตั้งค่า",
|
|
1758
1733
|
Report: "รายงาน",
|
|
1759
1734
|
"Default Report": "รายงานเริ่มต้น",
|
|
1760
|
-
"Custom Report": "รายงานกำหนดเอง"
|
|
1735
|
+
"Custom Report": "รายงานกำหนดเอง",
|
|
1736
|
+
"Mini Program": "Mini Program"
|
|
1761
1737
|
},
|
|
1762
1738
|
actionLabels: {
|
|
1763
1739
|
read: "ดู",
|
|
@@ -1767,6 +1743,12 @@ const _t = {
|
|
|
1767
1743
|
},
|
|
1768
1744
|
permissionLabels: {
|
|
1769
1745
|
"business::restaurant": "เจ้าของร้านอาหาร",
|
|
1746
|
+
"business::miniProgram::profile": "จัดการข้อมูลธุรกิจ",
|
|
1747
|
+
"business::miniProgram::brandkit": "จัดการ Brand Kit",
|
|
1748
|
+
"business::miniProgram::template": "จัดการเทมเพลต",
|
|
1749
|
+
"business::miniProgram::publish": "จัดการการเผยแพร่",
|
|
1750
|
+
"business::miniProgram::assets": "จัดการแอสเซ็ต",
|
|
1751
|
+
"business::miniProgram::nativeCredentials": "จัดการข้อมูลรับรอง",
|
|
1770
1752
|
"business::menu": "จัดการเมนู",
|
|
1771
1753
|
"business::inventory::stockBalance": "การจัดการยอดคงเหลือสินค้าคงคลัง",
|
|
1772
1754
|
"business::inventory::stockAdjustment": "การจัดการการปรับปรุงสินค้าคงคลัง",
|
|
@@ -1830,14 +1812,14 @@ const _t = {
|
|
|
1830
1812
|
permissions: "สิทธิ์อนุญาต"
|
|
1831
1813
|
}
|
|
1832
1814
|
}
|
|
1833
|
-
},
|
|
1834
|
-
team:
|
|
1835
|
-
permissionSet:
|
|
1836
|
-
},
|
|
1815
|
+
}, Pr = {
|
|
1816
|
+
team: ms,
|
|
1817
|
+
permissionSet: gs
|
|
1818
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1837
1819
|
__proto__: null,
|
|
1838
|
-
default:
|
|
1839
|
-
permissionSet:
|
|
1840
|
-
team:
|
|
1820
|
+
default: Pr,
|
|
1821
|
+
permissionSet: gs,
|
|
1822
|
+
team: ms
|
|
1841
1823
|
}, Symbol.toStringTag, { value: "Module" })), ds = {
|
|
1842
1824
|
title: "团队成员",
|
|
1843
1825
|
actions: {
|
|
@@ -1881,9 +1863,7 @@ const _t = {
|
|
|
1881
1863
|
},
|
|
1882
1864
|
filter: {
|
|
1883
1865
|
permission_placeholder: "按权限筛选",
|
|
1884
|
-
selected_permission_prefix: "已选权限: "
|
|
1885
|
-
assigned_role_placeholder: "分配角色",
|
|
1886
|
-
selected_assigned_role_prefix: "已选角色: "
|
|
1866
|
+
selected_permission_prefix: "已选权限: "
|
|
1887
1867
|
},
|
|
1888
1868
|
emptyState: {
|
|
1889
1869
|
title: "没有团队成员",
|
|
@@ -1905,7 +1885,6 @@ const _t = {
|
|
|
1905
1885
|
emailAddress: "邮箱地址"
|
|
1906
1886
|
},
|
|
1907
1887
|
permissions: {
|
|
1908
|
-
title: "权限",
|
|
1909
1888
|
manageable: "可管理{context}",
|
|
1910
1889
|
search: "搜索{context}",
|
|
1911
1890
|
general: "通用权限",
|
|
@@ -1915,18 +1894,13 @@ const _t = {
|
|
|
1915
1894
|
includedFuture: "包含未来{context}",
|
|
1916
1895
|
includedNewRole: "包含新添加的角色",
|
|
1917
1896
|
roles: "可用 POS 角色",
|
|
1918
|
-
inherited: "继承权限来自:"
|
|
1919
|
-
allowedCount: "{count} 个权限已启用",
|
|
1920
|
-
columnName: "名称",
|
|
1921
|
-
columnManage: "管理"
|
|
1897
|
+
inherited: "继承权限来自:"
|
|
1922
1898
|
},
|
|
1923
1899
|
masterUser: {
|
|
1924
1900
|
title: "主用户",
|
|
1925
1901
|
passcode: "主用户密码",
|
|
1926
1902
|
passcodeRequired: "密码必须为4位数字",
|
|
1927
1903
|
sublabel: "主用户可以访问餐厅 POS 系统。",
|
|
1928
|
-
assignmentSection: "门店与角色分配",
|
|
1929
|
-
addAnother: "再添加一项",
|
|
1930
1904
|
code: "工号",
|
|
1931
1905
|
name: "姓名",
|
|
1932
1906
|
role: "角色",
|
|
@@ -1984,7 +1958,8 @@ const _t = {
|
|
|
1984
1958
|
Settings: "设置",
|
|
1985
1959
|
Report: "报告",
|
|
1986
1960
|
"Default Report": "默认报告",
|
|
1987
|
-
"Custom Report": "自定义报告"
|
|
1961
|
+
"Custom Report": "自定义报告",
|
|
1962
|
+
"Mini Program": "小程序"
|
|
1988
1963
|
},
|
|
1989
1964
|
actionLabels: {
|
|
1990
1965
|
read: "查看",
|
|
@@ -1994,6 +1969,12 @@ const _t = {
|
|
|
1994
1969
|
},
|
|
1995
1970
|
permissionLabels: {
|
|
1996
1971
|
"business::restaurant": "餐厅负责人",
|
|
1972
|
+
"business::miniProgram::profile": "商户资料管理",
|
|
1973
|
+
"business::miniProgram::brandkit": "品牌套件管理",
|
|
1974
|
+
"business::miniProgram::template": "模板管理",
|
|
1975
|
+
"business::miniProgram::publish": "发布管理",
|
|
1976
|
+
"business::miniProgram::assets": "资源管理",
|
|
1977
|
+
"business::miniProgram::nativeCredentials": "凭证管理",
|
|
1997
1978
|
"business::menu": "菜单管理",
|
|
1998
1979
|
"business::inventory::stockBalance": "库存余额管理",
|
|
1999
1980
|
"business::inventory::stockAdjustment": "库存调整管理",
|
|
@@ -2057,12 +2038,12 @@ const _t = {
|
|
|
2057
2038
|
permissions: "权限"
|
|
2058
2039
|
}
|
|
2059
2040
|
}
|
|
2060
|
-
},
|
|
2041
|
+
}, Or = {
|
|
2061
2042
|
team: ds,
|
|
2062
2043
|
permissionSet: ps
|
|
2063
|
-
},
|
|
2044
|
+
}, qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2064
2045
|
__proto__: null,
|
|
2065
|
-
default:
|
|
2046
|
+
default: Or,
|
|
2066
2047
|
permissionSet: ps,
|
|
2067
2048
|
team: ds
|
|
2068
2049
|
}, Symbol.toStringTag, { value: "Module" })), bs = {
|
|
@@ -2108,9 +2089,7 @@ const _t = {
|
|
|
2108
2089
|
},
|
|
2109
2090
|
filter: {
|
|
2110
2091
|
permission_placeholder: "按權限篩選",
|
|
2111
|
-
selected_permission_prefix: "已選權限: "
|
|
2112
|
-
assigned_role_placeholder: "分配角色",
|
|
2113
|
-
selected_assigned_role_prefix: "已選角色: "
|
|
2092
|
+
selected_permission_prefix: "已選權限: "
|
|
2114
2093
|
},
|
|
2115
2094
|
emptyState: {
|
|
2116
2095
|
title: "沒有團隊成員",
|
|
@@ -2132,7 +2111,6 @@ const _t = {
|
|
|
2132
2111
|
emailAddress: "郵箱地址"
|
|
2133
2112
|
},
|
|
2134
2113
|
permissions: {
|
|
2135
|
-
title: "權限",
|
|
2136
2114
|
manageable: "可管理{context}",
|
|
2137
2115
|
search: "搜索{context}",
|
|
2138
2116
|
general: "通用權限",
|
|
@@ -2142,18 +2120,13 @@ const _t = {
|
|
|
2142
2120
|
includedFuture: "包含未來{context}",
|
|
2143
2121
|
includedNewRole: "包含新添加的角色",
|
|
2144
2122
|
roles: "可用 POS 角色",
|
|
2145
|
-
inherited: "繼承權限來自:"
|
|
2146
|
-
allowedCount: "{count} 個權限已啟用",
|
|
2147
|
-
columnName: "名稱",
|
|
2148
|
-
columnManage: "管理"
|
|
2123
|
+
inherited: "繼承權限來自:"
|
|
2149
2124
|
},
|
|
2150
2125
|
masterUser: {
|
|
2151
2126
|
title: "主用户",
|
|
2152
2127
|
passcode: "主用户密碼",
|
|
2153
2128
|
passcodeRequired: "密碼必須為4位數字",
|
|
2154
2129
|
sublabel: "主用户可以訪問餐廳 POS 系統。",
|
|
2155
|
-
assignmentSection: "門店與角色分配",
|
|
2156
|
-
addAnother: "再新增一項",
|
|
2157
2130
|
code: "工號",
|
|
2158
2131
|
name: "姓名",
|
|
2159
2132
|
role: "角色",
|
|
@@ -2218,7 +2191,8 @@ const _t = {
|
|
|
2218
2191
|
Settings: "設置",
|
|
2219
2192
|
Report: "報告",
|
|
2220
2193
|
"Default Report": "默認報告",
|
|
2221
|
-
"Custom Report": "自訂報告"
|
|
2194
|
+
"Custom Report": "自訂報告",
|
|
2195
|
+
"Mini Program": "小程式"
|
|
2222
2196
|
},
|
|
2223
2197
|
actionLabels: {
|
|
2224
2198
|
read: "查看",
|
|
@@ -2228,6 +2202,12 @@ const _t = {
|
|
|
2228
2202
|
},
|
|
2229
2203
|
permissionLabels: {
|
|
2230
2204
|
"business::restaurant": "餐廳負責人",
|
|
2205
|
+
"business::miniProgram::profile": "商戶資料管理",
|
|
2206
|
+
"business::miniProgram::brandkit": "品牌套件管理",
|
|
2207
|
+
"business::miniProgram::template": "模板管理",
|
|
2208
|
+
"business::miniProgram::publish": "發佈管理",
|
|
2209
|
+
"business::miniProgram::assets": "資源管理",
|
|
2210
|
+
"business::miniProgram::nativeCredentials": "憑證管理",
|
|
2231
2211
|
"business::menu": "菜單管理",
|
|
2232
2212
|
"business::inventory::stockBalance": "庫存餘額管理",
|
|
2233
2213
|
"business::inventory::stockAdjustment": "庫存調整管理",
|
|
@@ -2291,19 +2271,19 @@ const _t = {
|
|
|
2291
2271
|
permissions: "權限"
|
|
2292
2272
|
}
|
|
2293
2273
|
}
|
|
2294
|
-
},
|
|
2274
|
+
}, Hr = {
|
|
2295
2275
|
team: bs,
|
|
2296
2276
|
permissionSet: fs
|
|
2297
|
-
},
|
|
2277
|
+
}, Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2298
2278
|
__proto__: null,
|
|
2299
|
-
default:
|
|
2279
|
+
default: Hr,
|
|
2300
2280
|
permissionSet: fs,
|
|
2301
2281
|
team: bs
|
|
2302
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2303
|
-
"en-US":
|
|
2304
|
-
"zh-CN":
|
|
2305
|
-
"th-TH":
|
|
2306
|
-
"zh-Hant":
|
|
2282
|
+
}, Symbol.toStringTag, { value: "Module" })), Qr = {
|
|
2283
|
+
"en-US": Vr,
|
|
2284
|
+
"zh-CN": qr,
|
|
2285
|
+
"th-TH": Fr,
|
|
2286
|
+
"zh-Hant": Xr
|
|
2307
2287
|
}, ys = {
|
|
2308
2288
|
title: "POS Grant",
|
|
2309
2289
|
actions: {
|
|
@@ -2358,11 +2338,11 @@ const _t = {
|
|
|
2358
2338
|
passcode: {
|
|
2359
2339
|
copied: "Passcode copied"
|
|
2360
2340
|
}
|
|
2361
|
-
},
|
|
2341
|
+
}, Ir = {
|
|
2362
2342
|
grantUser: ys
|
|
2363
|
-
},
|
|
2343
|
+
}, Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2364
2344
|
__proto__: null,
|
|
2365
|
-
default:
|
|
2345
|
+
default: Ir,
|
|
2366
2346
|
grantUser: ys
|
|
2367
2347
|
}, Symbol.toStringTag, { value: "Module" })), vs = {
|
|
2368
2348
|
title: "POS Grant",
|
|
@@ -2418,11 +2398,11 @@ const _t = {
|
|
|
2418
2398
|
passcode: {
|
|
2419
2399
|
copied: "คัดลอกรหัสผ่านแล้ว"
|
|
2420
2400
|
}
|
|
2421
|
-
},
|
|
2401
|
+
}, Zr = {
|
|
2422
2402
|
grantUser: vs
|
|
2423
|
-
},
|
|
2403
|
+
}, Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2424
2404
|
__proto__: null,
|
|
2425
|
-
default:
|
|
2405
|
+
default: Zr,
|
|
2426
2406
|
grantUser: vs
|
|
2427
2407
|
}, Symbol.toStringTag, { value: "Module" })), hs = {
|
|
2428
2408
|
title: "POS 授予",
|
|
@@ -2478,11 +2458,11 @@ const _t = {
|
|
|
2478
2458
|
passcode: {
|
|
2479
2459
|
copied: "密码已复制"
|
|
2480
2460
|
}
|
|
2481
|
-
},
|
|
2461
|
+
}, zr = {
|
|
2482
2462
|
grantUser: hs
|
|
2483
|
-
},
|
|
2463
|
+
}, Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2484
2464
|
__proto__: null,
|
|
2485
|
-
default:
|
|
2465
|
+
default: zr,
|
|
2486
2466
|
grantUser: hs
|
|
2487
2467
|
}, Symbol.toStringTag, { value: "Module" })), Bs = {
|
|
2488
2468
|
title: "POS 授予",
|
|
@@ -2538,348 +2518,348 @@ const _t = {
|
|
|
2538
2518
|
passcode: {
|
|
2539
2519
|
copied: "密碼已複製"
|
|
2540
2520
|
}
|
|
2541
|
-
},
|
|
2521
|
+
}, Wr = {
|
|
2542
2522
|
grantUser: Bs
|
|
2543
|
-
},
|
|
2523
|
+
}, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2544
2524
|
__proto__: null,
|
|
2545
|
-
default:
|
|
2525
|
+
default: Wr,
|
|
2546
2526
|
grantUser: Bs
|
|
2547
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2548
|
-
"en-US":
|
|
2549
|
-
"zh-CN":
|
|
2550
|
-
"th-TH":
|
|
2551
|
-
"zh-Hant":
|
|
2527
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = {
|
|
2528
|
+
"en-US": Rr,
|
|
2529
|
+
"zh-CN": Ur,
|
|
2530
|
+
"th-TH": Nr,
|
|
2531
|
+
"zh-Hant": Tr
|
|
2552
2532
|
};
|
|
2553
2533
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2554
|
-
function
|
|
2534
|
+
function kr(e) {
|
|
2555
2535
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2556
2536
|
}
|
|
2557
2537
|
var ws = { exports: {} };
|
|
2558
2538
|
(function(e, A) {
|
|
2559
|
-
(function(u,
|
|
2560
|
-
e.exports =
|
|
2539
|
+
(function(u, c) {
|
|
2540
|
+
e.exports = c();
|
|
2561
2541
|
})(Re, function() {
|
|
2562
2542
|
return function(u) {
|
|
2563
|
-
var
|
|
2564
|
-
function
|
|
2565
|
-
if (
|
|
2566
|
-
var y =
|
|
2567
|
-
return u[
|
|
2543
|
+
var c = {};
|
|
2544
|
+
function r(m) {
|
|
2545
|
+
if (c[m]) return c[m].exports;
|
|
2546
|
+
var y = c[m] = { i: m, l: !1, exports: {} };
|
|
2547
|
+
return u[m].call(y.exports, y, y.exports, r), y.l = !0, y.exports;
|
|
2568
2548
|
}
|
|
2569
|
-
return
|
|
2570
|
-
|
|
2571
|
-
},
|
|
2572
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
2573
|
-
},
|
|
2574
|
-
if (1 & y && (
|
|
2549
|
+
return r.m = u, r.c = c, r.d = function(m, y, h) {
|
|
2550
|
+
r.o(m, y) || Object.defineProperty(m, y, { enumerable: !0, get: h });
|
|
2551
|
+
}, r.r = function(m) {
|
|
2552
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
2553
|
+
}, r.t = function(m, y) {
|
|
2554
|
+
if (1 & y && (m = r(m)), 8 & y || 4 & y && typeof m == "object" && m && m.__esModule) return m;
|
|
2575
2555
|
var h = /* @__PURE__ */ Object.create(null);
|
|
2576
|
-
if (
|
|
2577
|
-
for (var E in
|
|
2578
|
-
|
|
2556
|
+
if (r.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: m }), 2 & y && typeof m != "string")
|
|
2557
|
+
for (var E in m)
|
|
2558
|
+
r.d(
|
|
2579
2559
|
h,
|
|
2580
2560
|
E,
|
|
2581
|
-
(function(
|
|
2582
|
-
return
|
|
2561
|
+
(function(Y) {
|
|
2562
|
+
return m[Y];
|
|
2583
2563
|
}).bind(null, E)
|
|
2584
2564
|
);
|
|
2585
2565
|
return h;
|
|
2586
|
-
},
|
|
2587
|
-
var y =
|
|
2588
|
-
return
|
|
2566
|
+
}, r.n = function(m) {
|
|
2567
|
+
var y = m && m.__esModule ? function() {
|
|
2568
|
+
return m.default;
|
|
2589
2569
|
} : function() {
|
|
2590
|
-
return
|
|
2570
|
+
return m;
|
|
2591
2571
|
};
|
|
2592
|
-
return
|
|
2593
|
-
},
|
|
2594
|
-
return Object.prototype.hasOwnProperty.call(
|
|
2595
|
-
},
|
|
2572
|
+
return r.d(y, "a", y), y;
|
|
2573
|
+
}, r.o = function(m, y) {
|
|
2574
|
+
return Object.prototype.hasOwnProperty.call(m, y);
|
|
2575
|
+
}, r.p = "", r(r.s = 0);
|
|
2596
2576
|
}([
|
|
2597
|
-
function(u,
|
|
2598
|
-
u.exports =
|
|
2577
|
+
function(u, c, r) {
|
|
2578
|
+
u.exports = r(1);
|
|
2599
2579
|
},
|
|
2600
|
-
function(u,
|
|
2601
|
-
function
|
|
2602
|
-
return (
|
|
2603
|
-
return typeof
|
|
2604
|
-
} : function(
|
|
2605
|
-
return
|
|
2606
|
-
})(
|
|
2580
|
+
function(u, c, r) {
|
|
2581
|
+
function m(i) {
|
|
2582
|
+
return (m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
2583
|
+
return typeof g;
|
|
2584
|
+
} : function(g) {
|
|
2585
|
+
return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
|
|
2586
|
+
})(i);
|
|
2607
2587
|
}
|
|
2608
|
-
function y(
|
|
2609
|
-
var
|
|
2588
|
+
function y(i) {
|
|
2589
|
+
var g = "[object " + i + "]";
|
|
2610
2590
|
return function(f) {
|
|
2611
|
-
return Object.prototype.toString.call(f) ===
|
|
2591
|
+
return Object.prototype.toString.call(f) === g;
|
|
2612
2592
|
};
|
|
2613
2593
|
}
|
|
2614
|
-
|
|
2594
|
+
r.r(c), r.d(c, "default", function() {
|
|
2615
2595
|
return Ze;
|
|
2616
|
-
}),
|
|
2617
|
-
return
|
|
2618
|
-
}),
|
|
2596
|
+
}), r.d(c, "compare", function() {
|
|
2597
|
+
return Fe;
|
|
2598
|
+
}), r.d(c, "comparable", function() {
|
|
2619
2599
|
return Oe;
|
|
2620
2600
|
});
|
|
2621
|
-
var h = y("Array"), E = y("Object"),
|
|
2622
|
-
function w(
|
|
2623
|
-
return
|
|
2601
|
+
var h = y("Array"), E = y("Object"), Y = y("Function");
|
|
2602
|
+
function w(i, g) {
|
|
2603
|
+
return Y(i.get) ? i.get(g) : i[g];
|
|
2624
2604
|
}
|
|
2625
|
-
function
|
|
2626
|
-
return function(
|
|
2627
|
-
if (!h(f) || !f.length) return
|
|
2605
|
+
function P(i) {
|
|
2606
|
+
return function(g, f) {
|
|
2607
|
+
if (!h(f) || !f.length) return i(g, f);
|
|
2628
2608
|
for (var B = 0, C = f.length; B < C; B++)
|
|
2629
|
-
if (
|
|
2609
|
+
if (i(g, w(f, B))) return !0;
|
|
2630
2610
|
return !1;
|
|
2631
2611
|
};
|
|
2632
2612
|
}
|
|
2633
|
-
function I(
|
|
2634
|
-
return function(
|
|
2635
|
-
if (!h(f) || !f.length) return
|
|
2613
|
+
function I(i) {
|
|
2614
|
+
return function(g, f) {
|
|
2615
|
+
if (!h(f) || !f.length) return i(g, f);
|
|
2636
2616
|
for (var B = 0, C = f.length; B < C; B++)
|
|
2637
|
-
if (!
|
|
2617
|
+
if (!i(g, w(f, B))) return !1;
|
|
2638
2618
|
return !0;
|
|
2639
2619
|
};
|
|
2640
2620
|
}
|
|
2641
|
-
function H(
|
|
2642
|
-
return
|
|
2621
|
+
function H(i, g, f, B) {
|
|
2622
|
+
return i.validate(i.options, g, f, B);
|
|
2643
2623
|
}
|
|
2644
2624
|
var z = {
|
|
2645
|
-
$eq:
|
|
2646
|
-
return
|
|
2625
|
+
$eq: P(function(i, g) {
|
|
2626
|
+
return i(g);
|
|
2647
2627
|
}),
|
|
2648
|
-
$ne: I(function(
|
|
2649
|
-
return
|
|
2628
|
+
$ne: I(function(i, g) {
|
|
2629
|
+
return i(g);
|
|
2650
2630
|
}),
|
|
2651
|
-
$gt:
|
|
2652
|
-
return
|
|
2631
|
+
$gt: P(function(i, g) {
|
|
2632
|
+
return i(g);
|
|
2653
2633
|
}),
|
|
2654
|
-
$gte:
|
|
2655
|
-
return
|
|
2634
|
+
$gte: P(function(i, g) {
|
|
2635
|
+
return i(g);
|
|
2656
2636
|
}),
|
|
2657
|
-
$lt:
|
|
2658
|
-
return
|
|
2637
|
+
$lt: P(function(i, g) {
|
|
2638
|
+
return i(g);
|
|
2659
2639
|
}),
|
|
2660
|
-
$lte:
|
|
2661
|
-
return
|
|
2640
|
+
$lte: P(function(i, g) {
|
|
2641
|
+
return i(g);
|
|
2662
2642
|
}),
|
|
2663
|
-
$mod:
|
|
2664
|
-
return
|
|
2643
|
+
$mod: P(function(i, g) {
|
|
2644
|
+
return i(g);
|
|
2665
2645
|
}),
|
|
2666
|
-
$in: function(
|
|
2667
|
-
return
|
|
2646
|
+
$in: function(i, g) {
|
|
2647
|
+
return i(g);
|
|
2668
2648
|
},
|
|
2669
|
-
$nin: function(
|
|
2670
|
-
return
|
|
2649
|
+
$nin: function(i, g) {
|
|
2650
|
+
return i(g);
|
|
2671
2651
|
},
|
|
2672
|
-
$not: function(
|
|
2673
|
-
return
|
|
2652
|
+
$not: function(i, g, f, B) {
|
|
2653
|
+
return i(g, f, B);
|
|
2674
2654
|
},
|
|
2675
|
-
$type: function(
|
|
2676
|
-
return
|
|
2655
|
+
$type: function(i, g) {
|
|
2656
|
+
return i(g);
|
|
2677
2657
|
},
|
|
2678
|
-
$all: function(
|
|
2679
|
-
return z.$and(
|
|
2658
|
+
$all: function(i, g, f, B) {
|
|
2659
|
+
return z.$and(i, g, f, B);
|
|
2680
2660
|
},
|
|
2681
|
-
$size: function(
|
|
2682
|
-
return !!
|
|
2661
|
+
$size: function(i, g) {
|
|
2662
|
+
return !!g && i === g.length;
|
|
2683
2663
|
},
|
|
2684
|
-
$or: function(
|
|
2685
|
-
for (var C = 0, D =
|
|
2686
|
-
if (H(w(
|
|
2664
|
+
$or: function(i, g, f, B) {
|
|
2665
|
+
for (var C = 0, D = i.length; C < D; C++)
|
|
2666
|
+
if (H(w(i, C), g, f, B)) return !0;
|
|
2687
2667
|
return !1;
|
|
2688
2668
|
},
|
|
2689
|
-
$nor: function(
|
|
2690
|
-
return !z.$or(
|
|
2669
|
+
$nor: function(i, g, f, B) {
|
|
2670
|
+
return !z.$or(i, g, f, B);
|
|
2691
2671
|
},
|
|
2692
|
-
$and: function(
|
|
2693
|
-
for (var C = 0, D =
|
|
2694
|
-
if (!H(w(
|
|
2672
|
+
$and: function(i, g, f, B) {
|
|
2673
|
+
for (var C = 0, D = i.length; C < D; C++)
|
|
2674
|
+
if (!H(w(i, C), g, f, B)) return !1;
|
|
2695
2675
|
return !0;
|
|
2696
2676
|
},
|
|
2697
|
-
$regex:
|
|
2698
|
-
return typeof
|
|
2677
|
+
$regex: P(function(i, g) {
|
|
2678
|
+
return typeof g == "string" && i.test(g);
|
|
2699
2679
|
}),
|
|
2700
|
-
$where: function(
|
|
2701
|
-
return
|
|
2680
|
+
$where: function(i, g, f, B) {
|
|
2681
|
+
return i.call(g, g, f, B);
|
|
2702
2682
|
},
|
|
2703
|
-
$elemMatch: function(
|
|
2704
|
-
return h(
|
|
2683
|
+
$elemMatch: function(i, g, f, B) {
|
|
2684
|
+
return h(g) ? !!~function(C, D) {
|
|
2705
2685
|
for (var V = 0; V < C.length; V++)
|
|
2706
2686
|
if (w(C, V), H(D, w(C, V))) return V;
|
|
2707
2687
|
return -1;
|
|
2708
|
-
}(
|
|
2688
|
+
}(g, i) : H(i, g, f, B);
|
|
2709
2689
|
},
|
|
2710
|
-
$exists: function(
|
|
2711
|
-
return B.hasOwnProperty(f) ===
|
|
2690
|
+
$exists: function(i, g, f, B) {
|
|
2691
|
+
return B.hasOwnProperty(f) === i;
|
|
2712
2692
|
}
|
|
2713
2693
|
}, S = {
|
|
2714
|
-
$eq: function(
|
|
2694
|
+
$eq: function(i, g, f) {
|
|
2715
2695
|
var B = f.comparable, C = f.compare;
|
|
2716
|
-
return
|
|
2717
|
-
return typeof D == "string" &&
|
|
2718
|
-
}) :
|
|
2696
|
+
return i instanceof RegExp ? P(function(D) {
|
|
2697
|
+
return typeof D == "string" && i.test(D);
|
|
2698
|
+
}) : i instanceof Function ? P(i) : h(i) && !i.length ? P(function(D) {
|
|
2719
2699
|
return h(D) && !D.length;
|
|
2720
|
-
}) :
|
|
2721
|
-
|
|
2700
|
+
}) : P(
|
|
2701
|
+
i === null ? function(D) {
|
|
2722
2702
|
return D == null;
|
|
2723
2703
|
} : function(D) {
|
|
2724
|
-
return C(B(D), B(
|
|
2704
|
+
return C(B(D), B(i)) === 0;
|
|
2725
2705
|
}
|
|
2726
2706
|
);
|
|
2727
2707
|
},
|
|
2728
|
-
$gt: function(
|
|
2708
|
+
$gt: function(i, g, f) {
|
|
2729
2709
|
var B = f.comparable, C = f.compare;
|
|
2730
2710
|
return function(D) {
|
|
2731
|
-
return C(B(D), B(
|
|
2711
|
+
return C(B(D), B(i)) > 0;
|
|
2732
2712
|
};
|
|
2733
2713
|
},
|
|
2734
|
-
$gte: function(
|
|
2714
|
+
$gte: function(i, g, f) {
|
|
2735
2715
|
var B = f.comparable, C = f.compare;
|
|
2736
2716
|
return function(D) {
|
|
2737
|
-
return C(B(D), B(
|
|
2717
|
+
return C(B(D), B(i)) >= 0;
|
|
2738
2718
|
};
|
|
2739
2719
|
},
|
|
2740
|
-
$lt: function(
|
|
2720
|
+
$lt: function(i, g, f) {
|
|
2741
2721
|
var B = f.comparable, C = f.compare;
|
|
2742
2722
|
return function(D) {
|
|
2743
|
-
return C(B(D), B(
|
|
2723
|
+
return C(B(D), B(i)) < 0;
|
|
2744
2724
|
};
|
|
2745
2725
|
},
|
|
2746
|
-
$lte: function(
|
|
2726
|
+
$lte: function(i, g, f) {
|
|
2747
2727
|
var B = f.comparable, C = f.compare;
|
|
2748
2728
|
return function(D) {
|
|
2749
|
-
return C(B(D), B(
|
|
2729
|
+
return C(B(D), B(i)) <= 0;
|
|
2750
2730
|
};
|
|
2751
2731
|
},
|
|
2752
|
-
$in: function(
|
|
2732
|
+
$in: function(i, g, f) {
|
|
2753
2733
|
var B = f.comparable;
|
|
2754
2734
|
return function(C) {
|
|
2755
2735
|
if (!(C instanceof Array)) {
|
|
2756
2736
|
var D = B(C);
|
|
2757
|
-
if (D === C &&
|
|
2758
|
-
for (
|
|
2759
|
-
if (String(
|
|
2737
|
+
if (D === C && m(C) === "object") {
|
|
2738
|
+
for (F = i.length; F--; )
|
|
2739
|
+
if (String(i[F]) === String(C) && String(C) !== "[object Object]")
|
|
2760
2740
|
return !0;
|
|
2761
2741
|
}
|
|
2762
2742
|
if (D === void 0) {
|
|
2763
|
-
for (
|
|
2743
|
+
for (F = i.length; F--; ) if (i[F] == null) return !0;
|
|
2764
2744
|
}
|
|
2765
|
-
for (
|
|
2766
|
-
var V = H(
|
|
2745
|
+
for (F = i.length; F--; ) {
|
|
2746
|
+
var V = H(Pe(w(i, F), f), D, F, i);
|
|
2767
2747
|
if (V && String(V) !== "[object Object]" && String(D) !== "[object Object]")
|
|
2768
2748
|
return !0;
|
|
2769
2749
|
}
|
|
2770
|
-
return !!~
|
|
2750
|
+
return !!~i.indexOf(D);
|
|
2771
2751
|
}
|
|
2772
|
-
for (var
|
|
2773
|
-
if (~
|
|
2752
|
+
for (var F = C.length; F--; )
|
|
2753
|
+
if (~i.indexOf(B(w(C, F)))) return !0;
|
|
2774
2754
|
return !1;
|
|
2775
2755
|
};
|
|
2776
2756
|
},
|
|
2777
|
-
$nin: function(
|
|
2778
|
-
var B = S.$in(
|
|
2779
|
-
return function(C, D, V,
|
|
2780
|
-
return !B(C, D, V,
|
|
2757
|
+
$nin: function(i, g, f) {
|
|
2758
|
+
var B = S.$in(i, g, f);
|
|
2759
|
+
return function(C, D, V, F) {
|
|
2760
|
+
return !B(C, D, V, F);
|
|
2781
2761
|
};
|
|
2782
2762
|
},
|
|
2783
|
-
$mod: function(
|
|
2784
|
-
return function(
|
|
2785
|
-
return
|
|
2763
|
+
$mod: function(i) {
|
|
2764
|
+
return function(g) {
|
|
2765
|
+
return g % i[0] == i[1];
|
|
2786
2766
|
};
|
|
2787
2767
|
},
|
|
2788
|
-
$ne: function(
|
|
2789
|
-
var B = S.$eq(
|
|
2790
|
-
return I(function(C, D, V,
|
|
2791
|
-
return !B(C, D, V,
|
|
2768
|
+
$ne: function(i, g, f) {
|
|
2769
|
+
var B = S.$eq(i, g, f);
|
|
2770
|
+
return I(function(C, D, V, F) {
|
|
2771
|
+
return !B(C, D, V, F);
|
|
2792
2772
|
});
|
|
2793
2773
|
},
|
|
2794
|
-
$and: function(
|
|
2795
|
-
return
|
|
2774
|
+
$and: function(i, g, f) {
|
|
2775
|
+
return i.map(ie(f));
|
|
2796
2776
|
},
|
|
2797
|
-
$all: function(
|
|
2798
|
-
return S.$and(
|
|
2777
|
+
$all: function(i, g, f) {
|
|
2778
|
+
return S.$and(i, g, f);
|
|
2799
2779
|
},
|
|
2800
|
-
$or: function(
|
|
2801
|
-
return
|
|
2780
|
+
$or: function(i, g, f) {
|
|
2781
|
+
return i.map(ie(f));
|
|
2802
2782
|
},
|
|
2803
|
-
$nor: function(
|
|
2804
|
-
return
|
|
2783
|
+
$nor: function(i, g, f) {
|
|
2784
|
+
return i.map(ie(f));
|
|
2805
2785
|
},
|
|
2806
|
-
$not: function(
|
|
2807
|
-
var B = ie(f)(
|
|
2786
|
+
$not: function(i, g, f) {
|
|
2787
|
+
var B = ie(f)(i);
|
|
2808
2788
|
return function(C, D, V) {
|
|
2809
2789
|
return !H(B, C, D, V);
|
|
2810
2790
|
};
|
|
2811
2791
|
},
|
|
2812
|
-
$type: function(
|
|
2813
|
-
return function(
|
|
2814
|
-
return
|
|
2792
|
+
$type: function(i) {
|
|
2793
|
+
return function(g, f, B) {
|
|
2794
|
+
return g != null && (g instanceof i || g.constructor == i);
|
|
2815
2795
|
};
|
|
2816
2796
|
},
|
|
2817
|
-
$regex: function(
|
|
2818
|
-
return new RegExp(
|
|
2797
|
+
$regex: function(i, g) {
|
|
2798
|
+
return new RegExp(i, g.$options);
|
|
2819
2799
|
},
|
|
2820
|
-
$where: function(
|
|
2821
|
-
if (typeof
|
|
2800
|
+
$where: function(i) {
|
|
2801
|
+
if (typeof i == "function") return i;
|
|
2822
2802
|
throw new Error(
|
|
2823
2803
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
2824
2804
|
);
|
|
2825
2805
|
},
|
|
2826
|
-
$elemMatch: function(
|
|
2827
|
-
return ie(f)(
|
|
2806
|
+
$elemMatch: function(i, g, f) {
|
|
2807
|
+
return ie(f)(i);
|
|
2828
2808
|
},
|
|
2829
|
-
$exists: function(
|
|
2830
|
-
return !!
|
|
2809
|
+
$exists: function(i) {
|
|
2810
|
+
return !!i;
|
|
2831
2811
|
}
|
|
2832
2812
|
};
|
|
2833
|
-
function te(
|
|
2834
|
-
return { options:
|
|
2813
|
+
function te(i, g) {
|
|
2814
|
+
return { options: i, validate: g };
|
|
2835
2815
|
}
|
|
2836
|
-
function k(
|
|
2837
|
-
var f =
|
|
2838
|
-
if (function s(
|
|
2839
|
-
if (p === a.length ||
|
|
2840
|
-
return void
|
|
2816
|
+
function k(i, g) {
|
|
2817
|
+
var f = i.keyPath, B = i.child, C = i.query, D = [];
|
|
2818
|
+
if (function s(l, a, p, v, j) {
|
|
2819
|
+
if (p === a.length || l == null)
|
|
2820
|
+
return void j.push([l, a[p - 1], v]);
|
|
2841
2821
|
var x = w(a, p);
|
|
2842
|
-
if (h(
|
|
2843
|
-
for (var O = 0, M =
|
|
2844
|
-
else s(w(
|
|
2845
|
-
}(
|
|
2822
|
+
if (h(l) && isNaN(Number(x)))
|
|
2823
|
+
for (var O = 0, M = l.length; O < M; O++) s(w(l, O), a, p, l, j);
|
|
2824
|
+
else s(w(l, x), a, p + 1, l, j);
|
|
2825
|
+
}(g, f, 0, g, D), D.length === 1) {
|
|
2846
2826
|
var V = D[0];
|
|
2847
2827
|
return H(B, V[0], V[1], V[2]);
|
|
2848
2828
|
}
|
|
2849
|
-
for (var
|
|
2850
|
-
var d = D[W],
|
|
2851
|
-
|
|
2829
|
+
for (var F = C && C.$ne !== void 0, N = F, W = 0; W < D.length; W++) {
|
|
2830
|
+
var d = D[W], n = H(B, d[0], d[1], d[2]);
|
|
2831
|
+
F ? N &= n : N |= n;
|
|
2852
2832
|
}
|
|
2853
2833
|
return N;
|
|
2854
2834
|
}
|
|
2855
|
-
function Le(
|
|
2856
|
-
return te({ keyPath:
|
|
2835
|
+
function Le(i, g, f) {
|
|
2836
|
+
return te({ keyPath: i, child: g, query: f }, k);
|
|
2857
2837
|
}
|
|
2858
|
-
function ie(
|
|
2859
|
-
var
|
|
2860
|
-
var
|
|
2861
|
-
return (!V || !(
|
|
2838
|
+
function ie(i) {
|
|
2839
|
+
var g = i.comparable, f = i.expressions, B = function(V) {
|
|
2840
|
+
var F;
|
|
2841
|
+
return (!V || !(F = V) || F.constructor !== Object && F.constructor !== Array && F.constructor.toString() !== "function Object() { [native code] }" && F.constructor.toString() !== "function Array() { [native code] }" || F.toJSON) && (V = { $eq: V }), V;
|
|
2862
2842
|
}, C = function(V) {
|
|
2863
|
-
V =
|
|
2864
|
-
var
|
|
2843
|
+
V = g(V);
|
|
2844
|
+
var F = [];
|
|
2865
2845
|
for (var N in V) {
|
|
2866
2846
|
var W = V[N];
|
|
2867
2847
|
if (N !== "$options") {
|
|
2868
|
-
var d = z[N] ||
|
|
2869
|
-
if (d) S[N] && (W = S[N](W, V,
|
|
2848
|
+
var d = z[N] || i && f && f[N];
|
|
2849
|
+
if (d) S[N] && (W = S[N](W, V, i)), F.push(te(g(W), d));
|
|
2870
2850
|
else {
|
|
2871
2851
|
if (N.charCodeAt(0) === 36)
|
|
2872
2852
|
throw new Error("Unknown operation " + N);
|
|
2873
|
-
var
|
|
2874
|
-
|
|
2853
|
+
var n = N.split(".");
|
|
2854
|
+
F.push(Le(n, D(W), W));
|
|
2875
2855
|
}
|
|
2876
2856
|
}
|
|
2877
2857
|
}
|
|
2878
|
-
return
|
|
2858
|
+
return F.length === 1 ? F[0] : te(F, z.$and);
|
|
2879
2859
|
}, D = function(V) {
|
|
2880
|
-
return V = B(V), function
|
|
2860
|
+
return V = B(V), function F(N, W) {
|
|
2881
2861
|
if (!E(N)) return W;
|
|
2882
|
-
for (var d in N) W.push(d),
|
|
2862
|
+
for (var d in N) W.push(d), F(N[d], W);
|
|
2883
2863
|
return W;
|
|
2884
2864
|
}(V, []).join(",").search(/[$.]/) === -1 ? te(V, he) : C(V);
|
|
2885
2865
|
};
|
|
@@ -2887,63 +2867,63 @@ var ws = { exports: {} };
|
|
|
2887
2867
|
return C(B(V));
|
|
2888
2868
|
};
|
|
2889
2869
|
}
|
|
2890
|
-
function he(
|
|
2891
|
-
if (Object.prototype.toString.call(
|
|
2870
|
+
function he(i, g) {
|
|
2871
|
+
if (Object.prototype.toString.call(i) !== Object.prototype.toString.call(g))
|
|
2892
2872
|
return !1;
|
|
2893
|
-
if (E(
|
|
2894
|
-
if (Object.keys(
|
|
2895
|
-
for (var f in
|
|
2873
|
+
if (E(i)) {
|
|
2874
|
+
if (Object.keys(i).length !== Object.keys(g).length) return !1;
|
|
2875
|
+
for (var f in i) if (!he(i[f], g[f])) return !1;
|
|
2896
2876
|
return !0;
|
|
2897
2877
|
}
|
|
2898
|
-
if (h(
|
|
2899
|
-
if (
|
|
2900
|
-
for (var B = 0, C =
|
|
2901
|
-
if (!he(
|
|
2878
|
+
if (h(i)) {
|
|
2879
|
+
if (i.length !== g.length) return !1;
|
|
2880
|
+
for (var B = 0, C = i.length; B < C; B++)
|
|
2881
|
+
if (!he(i[B], g[B])) return !1;
|
|
2902
2882
|
return !0;
|
|
2903
2883
|
}
|
|
2904
|
-
return
|
|
2884
|
+
return i === g;
|
|
2905
2885
|
}
|
|
2906
|
-
function
|
|
2907
|
-
var f = ie(
|
|
2908
|
-
return
|
|
2886
|
+
function Pe(i, g) {
|
|
2887
|
+
var f = ie(g)(i);
|
|
2888
|
+
return g && g.select && (f = {
|
|
2909
2889
|
options: f,
|
|
2910
2890
|
validate: function(B, C, D, V) {
|
|
2911
|
-
return H(B, C &&
|
|
2891
|
+
return H(B, C && g.select(C), D, V);
|
|
2912
2892
|
}
|
|
2913
2893
|
}), f;
|
|
2914
2894
|
}
|
|
2915
|
-
function Ze(
|
|
2916
|
-
var f =
|
|
2895
|
+
function Ze(i, g) {
|
|
2896
|
+
var f = Pe(i, g = Object.assign({ compare: Fe, comparable: Oe }, g));
|
|
2917
2897
|
return function(B, C, D) {
|
|
2918
2898
|
return H(f, B, C, D);
|
|
2919
2899
|
};
|
|
2920
2900
|
}
|
|
2921
|
-
function
|
|
2922
|
-
if (he(
|
|
2923
|
-
if (
|
|
2924
|
-
if (
|
|
2925
|
-
if (
|
|
2901
|
+
function Fe(i, g) {
|
|
2902
|
+
if (he(i, g)) return 0;
|
|
2903
|
+
if (m(i) === m(g)) {
|
|
2904
|
+
if (i > g) return 1;
|
|
2905
|
+
if (i < g) return -1;
|
|
2926
2906
|
}
|
|
2927
2907
|
}
|
|
2928
|
-
function Oe(
|
|
2929
|
-
return
|
|
2908
|
+
function Oe(i) {
|
|
2909
|
+
return i instanceof Date ? i.getTime() : h(i) ? i.map(Oe) : i && typeof i.toJSON == "function" ? i.toJSON() : i;
|
|
2930
2910
|
}
|
|
2931
2911
|
}
|
|
2932
2912
|
]);
|
|
2933
2913
|
});
|
|
2934
2914
|
})(ws);
|
|
2935
|
-
var
|
|
2936
|
-
const
|
|
2937
|
-
function
|
|
2915
|
+
var Kr = ws.exports;
|
|
2916
|
+
const Lr = /* @__PURE__ */ kr(Kr);
|
|
2917
|
+
function Jr(e, A) {
|
|
2938
2918
|
for (var u = 0; u < A.length; u++) {
|
|
2939
|
-
var
|
|
2940
|
-
|
|
2919
|
+
var c = A[u];
|
|
2920
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
2941
2921
|
}
|
|
2942
2922
|
}
|
|
2943
|
-
function
|
|
2944
|
-
return A &&
|
|
2923
|
+
function _r(e, A, u) {
|
|
2924
|
+
return A && Jr(e.prototype, A), e;
|
|
2945
2925
|
}
|
|
2946
|
-
function
|
|
2926
|
+
function $r(e, A) {
|
|
2947
2927
|
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
2948
2928
|
}
|
|
2949
2929
|
function Bt(e) {
|
|
@@ -2952,11 +2932,11 @@ function Bt(e) {
|
|
|
2952
2932
|
}, Bt(e);
|
|
2953
2933
|
}
|
|
2954
2934
|
function Se(e, A) {
|
|
2955
|
-
return Se = Object.setPrototypeOf || function(
|
|
2956
|
-
return
|
|
2935
|
+
return Se = Object.setPrototypeOf || function(c, r) {
|
|
2936
|
+
return c.__proto__ = r, c;
|
|
2957
2937
|
}, Se(e, A);
|
|
2958
2938
|
}
|
|
2959
|
-
function
|
|
2939
|
+
function en() {
|
|
2960
2940
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2961
2941
|
if (typeof Proxy == "function") return !0;
|
|
2962
2942
|
try {
|
|
@@ -2967,37 +2947,37 @@ function tr() {
|
|
|
2967
2947
|
}
|
|
2968
2948
|
}
|
|
2969
2949
|
function We(e, A, u) {
|
|
2970
|
-
return
|
|
2950
|
+
return en() ? We = Reflect.construct : We = function(r, m, y) {
|
|
2971
2951
|
var h = [null];
|
|
2972
|
-
h.push.apply(h,
|
|
2973
|
-
var E = Function.bind.apply(
|
|
2974
|
-
return y && Se(
|
|
2952
|
+
h.push.apply(h, m);
|
|
2953
|
+
var E = Function.bind.apply(r, h), Y = new E();
|
|
2954
|
+
return y && Se(Y, y.prototype), Y;
|
|
2975
2955
|
}, We.apply(null, arguments);
|
|
2976
2956
|
}
|
|
2977
|
-
function
|
|
2957
|
+
function tn(e) {
|
|
2978
2958
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
2979
2959
|
}
|
|
2980
2960
|
function wt(e) {
|
|
2981
2961
|
var A = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2982
|
-
return wt = function(
|
|
2983
|
-
if (
|
|
2984
|
-
if (typeof
|
|
2962
|
+
return wt = function(c) {
|
|
2963
|
+
if (c === null || !tn(c)) return c;
|
|
2964
|
+
if (typeof c != "function")
|
|
2985
2965
|
throw new TypeError("Super expression must either be null or a function");
|
|
2986
2966
|
if (typeof A < "u") {
|
|
2987
|
-
if (A.has(
|
|
2988
|
-
A.set(
|
|
2967
|
+
if (A.has(c)) return A.get(c);
|
|
2968
|
+
A.set(c, r);
|
|
2989
2969
|
}
|
|
2990
|
-
function
|
|
2991
|
-
return We(
|
|
2970
|
+
function r() {
|
|
2971
|
+
return We(c, arguments, Bt(this).constructor);
|
|
2992
2972
|
}
|
|
2993
|
-
return
|
|
2973
|
+
return r.prototype = Object.create(c.prototype, {
|
|
2994
2974
|
constructor: {
|
|
2995
|
-
value:
|
|
2975
|
+
value: r,
|
|
2996
2976
|
enumerable: !1,
|
|
2997
2977
|
writable: !0,
|
|
2998
2978
|
configurable: !0
|
|
2999
2979
|
}
|
|
3000
|
-
}), Se(
|
|
2980
|
+
}), Se(r, c);
|
|
3001
2981
|
}, wt(e);
|
|
3002
2982
|
}
|
|
3003
2983
|
function Nt(e) {
|
|
@@ -3007,84 +2987,84 @@ function Nt(e) {
|
|
|
3007
2987
|
}
|
|
3008
2988
|
var Ms = function(A) {
|
|
3009
2989
|
return 'Cannot execute "' + A.action + '" on "' + A.subjectName + '"';
|
|
3010
|
-
}, ze = Ms,
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
return
|
|
3014
|
-
} :
|
|
3015
|
-
}, A.from = function(
|
|
3016
|
-
var
|
|
3017
|
-
return Object.defineProperty(
|
|
3018
|
-
value:
|
|
3019
|
-
}),
|
|
2990
|
+
}, ze = Ms, sn = /* @__PURE__ */ function(e) {
|
|
2991
|
+
$r(A, e), A.setDefaultMessage = function(r) {
|
|
2992
|
+
r === null ? ze = Ms : ze = typeof r == "string" ? function() {
|
|
2993
|
+
return r;
|
|
2994
|
+
} : r;
|
|
2995
|
+
}, A.from = function(r) {
|
|
2996
|
+
var m = new this("");
|
|
2997
|
+
return Object.defineProperty(m, "ability", {
|
|
2998
|
+
value: r
|
|
2999
|
+
}), m;
|
|
3020
3000
|
};
|
|
3021
|
-
function A(
|
|
3022
|
-
var
|
|
3023
|
-
return
|
|
3001
|
+
function A(c, r) {
|
|
3002
|
+
var m;
|
|
3003
|
+
return r === void 0 && (r = {}), m = e.call(this, c) || this, m._setMetadata(r), m.message = c || ze(Nt(m)), m._customMessage = null, typeof Error.captureStackTrace == "function" && (m.name = m.constructor.name, Error.captureStackTrace(Nt(m), m.constructor)), m;
|
|
3024
3004
|
}
|
|
3025
3005
|
var u = A.prototype;
|
|
3026
|
-
return u.setMessage = function(
|
|
3027
|
-
return this._customMessage =
|
|
3028
|
-
}, u.throwUnlessCan = function(
|
|
3006
|
+
return u.setMessage = function(r) {
|
|
3007
|
+
return this._customMessage = r, this;
|
|
3008
|
+
}, u.throwUnlessCan = function(r, m, y) {
|
|
3029
3009
|
if (!this.ability)
|
|
3030
3010
|
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
3031
|
-
var h = this.ability.relevantRuleFor(
|
|
3011
|
+
var h = this.ability.relevantRuleFor(r, m, y);
|
|
3032
3012
|
if (!(h && !h.inverted)) {
|
|
3033
3013
|
this._setMetadata({
|
|
3034
|
-
action:
|
|
3035
|
-
subject:
|
|
3014
|
+
action: r,
|
|
3015
|
+
subject: m,
|
|
3036
3016
|
field: y,
|
|
3037
|
-
subjectName: this.ability.subjectName(
|
|
3017
|
+
subjectName: this.ability.subjectName(m)
|
|
3038
3018
|
});
|
|
3039
3019
|
var E = h ? h.reason : "";
|
|
3040
3020
|
throw this.message = this._customMessage || E || ze(this), this;
|
|
3041
3021
|
}
|
|
3042
|
-
}, u._setMetadata = function(
|
|
3043
|
-
this.subject =
|
|
3022
|
+
}, u._setMetadata = function(r) {
|
|
3023
|
+
this.subject = r.subject, this.subjectName = r.subjectName, this.action = r.action, this.field = r.field;
|
|
3044
3024
|
}, A;
|
|
3045
3025
|
}(wt(Error));
|
|
3046
3026
|
function Mt(e) {
|
|
3047
3027
|
return Array.isArray(e) ? e : [e];
|
|
3048
3028
|
}
|
|
3049
|
-
function
|
|
3029
|
+
function rn(e) {
|
|
3050
3030
|
if (!e || typeof e == "string")
|
|
3051
3031
|
return e;
|
|
3052
3032
|
var A = typeof e == "object" ? e.constructor : e;
|
|
3053
3033
|
return A.modelName || A.name;
|
|
3054
3034
|
}
|
|
3055
|
-
function
|
|
3035
|
+
function nn(e) {
|
|
3056
3036
|
return JSON.parse(JSON.stringify(e));
|
|
3057
3037
|
}
|
|
3058
|
-
var
|
|
3059
|
-
function
|
|
3060
|
-
var
|
|
3061
|
-
return A + e.length === u.length ? "(?:" +
|
|
3038
|
+
var an = /[-/\\^$+?.()|[\]{}]/g, on = /\.?\*+\.?/g, ln = /\*+/, cn = /\./g;
|
|
3039
|
+
function An(e, A, u) {
|
|
3040
|
+
var c = u[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", m = e.replace(cn, "\\$&").replace(ln, r + c);
|
|
3041
|
+
return A + e.length === u.length ? "(?:" + m + ")?" : m;
|
|
3062
3042
|
}
|
|
3063
|
-
function
|
|
3043
|
+
function un(e, A, u) {
|
|
3064
3044
|
return e === "." && (u[A - 1] === "*" || u[A + 1] === "*") ? e : "\\" + e;
|
|
3065
3045
|
}
|
|
3066
|
-
function
|
|
3067
|
-
var A = e.map(function(
|
|
3068
|
-
return
|
|
3046
|
+
function mn(e) {
|
|
3047
|
+
var A = e.map(function(c) {
|
|
3048
|
+
return c.replace(an, un).replace(on, An);
|
|
3069
3049
|
}), u = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
3070
3050
|
return new RegExp("^" + u + "$");
|
|
3071
3051
|
}
|
|
3072
|
-
var
|
|
3052
|
+
var gn = /* @__PURE__ */ function() {
|
|
3073
3053
|
function e(u) {
|
|
3074
3054
|
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", {
|
|
3075
3055
|
writable: !0
|
|
3076
3056
|
}), this.inverted = !!u.inverted, this.conditions = u.conditions, Object.defineProperty(this, "_matches", {
|
|
3077
3057
|
writable: !0,
|
|
3078
|
-
value: this.conditions ?
|
|
3058
|
+
value: this.conditions ? Lr(this.conditions) : void 0
|
|
3079
3059
|
}), this.reason = u.reason;
|
|
3080
3060
|
}
|
|
3081
3061
|
var A = e.prototype;
|
|
3082
|
-
return A.matches = function(
|
|
3083
|
-
return this._matches ? typeof
|
|
3084
|
-
}, A.isRelevantFor = function(
|
|
3085
|
-
return this.fields ?
|
|
3086
|
-
}, A.matchesField = function(
|
|
3087
|
-
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null :
|
|
3062
|
+
return A.matches = function(c) {
|
|
3063
|
+
return this._matches ? typeof c == "string" ? !this.inverted : this._matches(c) : !0;
|
|
3064
|
+
}, A.isRelevantFor = function(c, r) {
|
|
3065
|
+
return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
|
|
3066
|
+
}, A.matchesField = function(c) {
|
|
3067
|
+
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : mn(this.fields)), this._fieldsPattern === null || c.indexOf("*") !== -1 ? this.fields.indexOf(c) !== -1 : this._fieldsPattern.test(c);
|
|
3088
3068
|
}, e;
|
|
3089
3069
|
}(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), zt = {
|
|
3090
3070
|
crud: ["create", "read", "update", "delete"]
|
|
@@ -3092,114 +3072,114 @@ var mr = /* @__PURE__ */ function() {
|
|
|
3092
3072
|
function Ut(e, A) {
|
|
3093
3073
|
return e === A || Array.isArray(A) && A.indexOf(e) !== -1;
|
|
3094
3074
|
}
|
|
3095
|
-
var
|
|
3096
|
-
e.addAlias = function(
|
|
3097
|
-
if (
|
|
3075
|
+
var dn = /* @__PURE__ */ function() {
|
|
3076
|
+
e.addAlias = function(c, r) {
|
|
3077
|
+
if (c === "manage" || Ut("manage", r))
|
|
3098
3078
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
3099
|
-
if (Ut(
|
|
3100
|
-
throw new Error("Attempt to alias action to itself: " +
|
|
3101
|
-
return zt[
|
|
3079
|
+
if (Ut(c, r))
|
|
3080
|
+
throw new Error("Attempt to alias action to itself: " + c + " -> " + r.toString());
|
|
3081
|
+
return zt[c] = r, this;
|
|
3102
3082
|
};
|
|
3103
|
-
function e(u,
|
|
3104
|
-
|
|
3105
|
-
value:
|
|
3083
|
+
function e(u, c) {
|
|
3084
|
+
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
3085
|
+
value: c.subjectName || rn
|
|
3106
3086
|
}), this[ee] = {
|
|
3107
|
-
RuleType:
|
|
3087
|
+
RuleType: c.RuleType || gn,
|
|
3108
3088
|
originalRules: u || [],
|
|
3109
3089
|
hasPerFieldRules: !1,
|
|
3110
3090
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
3111
3091
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
3112
3092
|
events: {},
|
|
3113
|
-
aliases:
|
|
3093
|
+
aliases: nn(zt)
|
|
3114
3094
|
}, this.update(u);
|
|
3115
3095
|
}
|
|
3116
3096
|
var A = e.prototype;
|
|
3117
|
-
return A.update = function(
|
|
3118
|
-
if (!Array.isArray(
|
|
3097
|
+
return A.update = function(c) {
|
|
3098
|
+
if (!Array.isArray(c))
|
|
3119
3099
|
return this;
|
|
3120
|
-
var
|
|
3121
|
-
rules:
|
|
3100
|
+
var r = {
|
|
3101
|
+
rules: c,
|
|
3122
3102
|
ability: this
|
|
3123
3103
|
};
|
|
3124
|
-
this.emit("update",
|
|
3125
|
-
var
|
|
3126
|
-
return this[ee].indexedRules =
|
|
3127
|
-
}, A.buildIndexFor = function(
|
|
3128
|
-
for (var
|
|
3129
|
-
var
|
|
3130
|
-
y = !!(y &&
|
|
3131
|
-
for (var H = 0; H <
|
|
3132
|
-
var z =
|
|
3133
|
-
|
|
3104
|
+
this.emit("update", r), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
3105
|
+
var m = this.buildIndexFor(c);
|
|
3106
|
+
return this[ee].indexedRules = m.rules, this[ee].hasPerFieldRules = m.hasPerFieldRules, this.emit("updated", r), this;
|
|
3107
|
+
}, A.buildIndexFor = function(c) {
|
|
3108
|
+
for (var r = /* @__PURE__ */ Object.create(null), m = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
3109
|
+
var Y = new m(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
3110
|
+
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
3111
|
+
for (var H = 0; H < P.length; H++) {
|
|
3112
|
+
var z = P[H];
|
|
3113
|
+
r[z] = r[z] || /* @__PURE__ */ Object.create(null);
|
|
3134
3114
|
for (var S = 0; S < w.length; S++) {
|
|
3135
3115
|
var te = w[S];
|
|
3136
|
-
|
|
3116
|
+
r[z][te] = r[z][te] || /* @__PURE__ */ Object.create(null), r[z][te][I] = Y;
|
|
3137
3117
|
}
|
|
3138
3118
|
}
|
|
3139
3119
|
}
|
|
3140
3120
|
return {
|
|
3141
3121
|
isAllInverted: y,
|
|
3142
3122
|
hasPerFieldRules: h,
|
|
3143
|
-
rules:
|
|
3123
|
+
rules: r
|
|
3144
3124
|
};
|
|
3145
|
-
}, A.expandActions = function(
|
|
3146
|
-
for (var
|
|
3147
|
-
var h =
|
|
3148
|
-
|
|
3125
|
+
}, A.expandActions = function(c) {
|
|
3126
|
+
for (var r = this[ee].aliases, m = Mt(c), y = 0; y < m.length; ) {
|
|
3127
|
+
var h = m[y++];
|
|
3128
|
+
r.hasOwnProperty(h) && (m = m.concat(r[h]));
|
|
3149
3129
|
}
|
|
3150
|
-
return
|
|
3151
|
-
}, A.can = function(
|
|
3152
|
-
if (
|
|
3130
|
+
return m;
|
|
3131
|
+
}, A.can = function(c, r, m) {
|
|
3132
|
+
if (m && typeof m != "string")
|
|
3153
3133
|
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");
|
|
3154
|
-
var y = this.relevantRuleFor(
|
|
3134
|
+
var y = this.relevantRuleFor(c, r, m);
|
|
3155
3135
|
return !!y && !y.inverted;
|
|
3156
|
-
}, A.relevantRuleFor = function(
|
|
3157
|
-
for (var y = this.rulesFor(
|
|
3158
|
-
if (y[h].matches(
|
|
3136
|
+
}, A.relevantRuleFor = function(c, r, m) {
|
|
3137
|
+
for (var y = this.rulesFor(c, r, m), h = 0; h < y.length; h++)
|
|
3138
|
+
if (y[h].matches(r))
|
|
3159
3139
|
return y[h];
|
|
3160
3140
|
return null;
|
|
3161
|
-
}, A.possibleRulesFor = function(
|
|
3162
|
-
var
|
|
3163
|
-
return y[h] || (y[h] = this.mergeRulesFor(
|
|
3164
|
-
}, A.mergeRulesFor = function(
|
|
3165
|
-
var
|
|
3166
|
-
var
|
|
3167
|
-
return
|
|
3141
|
+
}, A.possibleRulesFor = function(c, r) {
|
|
3142
|
+
var m = this.subjectName(r), y = this[ee].mergedRules, h = m + "_" + c;
|
|
3143
|
+
return y[h] || (y[h] = this.mergeRulesFor(c, m)), y[h];
|
|
3144
|
+
}, A.mergeRulesFor = function(c, r) {
|
|
3145
|
+
var m = this[ee].indexedRules, y = [r, "all"].reduce(function(h, E) {
|
|
3146
|
+
var Y = m[E];
|
|
3147
|
+
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
3168
3148
|
}, []);
|
|
3169
3149
|
return y.filter(Boolean);
|
|
3170
|
-
}, A.rulesFor = function(
|
|
3171
|
-
var y = this.possibleRulesFor(
|
|
3150
|
+
}, A.rulesFor = function(c, r, m) {
|
|
3151
|
+
var y = this.possibleRulesFor(c, r);
|
|
3172
3152
|
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
3173
|
-
return h.isRelevantFor(
|
|
3153
|
+
return h.isRelevantFor(r, m);
|
|
3174
3154
|
}) : y;
|
|
3175
3155
|
}, A.cannot = function() {
|
|
3176
3156
|
return !this.can.apply(this, arguments);
|
|
3177
3157
|
}, A.throwUnlessCan = function() {
|
|
3178
|
-
var
|
|
3158
|
+
var c;
|
|
3179
3159
|
console.warn(`
|
|
3180
3160
|
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
3181
3161
|
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
3182
|
-
`.trim()), (
|
|
3183
|
-
}, A.on = function(
|
|
3184
|
-
var
|
|
3185
|
-
return
|
|
3162
|
+
`.trim()), (c = sn.from(this)).throwUnlessCan.apply(c, arguments);
|
|
3163
|
+
}, A.on = function(c, r) {
|
|
3164
|
+
var m = this[ee].events, y = !0;
|
|
3165
|
+
return m[c] || (m[c] = []), m[c].push(r), function() {
|
|
3186
3166
|
if (y) {
|
|
3187
|
-
var h =
|
|
3188
|
-
|
|
3167
|
+
var h = m[c].indexOf(r);
|
|
3168
|
+
m[c].splice(h, 1), y = !1;
|
|
3189
3169
|
}
|
|
3190
3170
|
};
|
|
3191
|
-
}, A.emit = function(
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3194
|
-
return y(
|
|
3171
|
+
}, A.emit = function(c, r) {
|
|
3172
|
+
var m = this[ee].events[c];
|
|
3173
|
+
m && m.slice(0).forEach(function(y) {
|
|
3174
|
+
return y(r);
|
|
3195
3175
|
});
|
|
3196
|
-
},
|
|
3176
|
+
}, _r(e, [{
|
|
3197
3177
|
key: "rules",
|
|
3198
3178
|
get: function() {
|
|
3199
3179
|
return this[ee].originalRules;
|
|
3200
3180
|
}
|
|
3201
3181
|
}]), e;
|
|
3202
|
-
}(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}),
|
|
3182
|
+
}(), 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 || {}), Cs = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(Cs || {});
|
|
3203
3183
|
const b = {
|
|
3204
3184
|
general: "General",
|
|
3205
3185
|
inventory: "Inventory",
|
|
@@ -3211,33 +3191,34 @@ const b = {
|
|
|
3211
3191
|
settings: "Settings",
|
|
3212
3192
|
report: "Report",
|
|
3213
3193
|
reports: "Default Report",
|
|
3214
|
-
customReports: "Custom Report"
|
|
3215
|
-
|
|
3194
|
+
customReports: "Custom Report",
|
|
3195
|
+
miniProgram: "Mini Program"
|
|
3196
|
+
}, pn = "access-denied", Te = {
|
|
3216
3197
|
Action: t,
|
|
3217
3198
|
Subject: {
|
|
3218
|
-
Business:
|
|
3199
|
+
Business: o,
|
|
3219
3200
|
Restaurant: Cs
|
|
3220
3201
|
}
|
|
3221
3202
|
}, Ds = {
|
|
3222
|
-
[U.permission]:
|
|
3223
|
-
[U.promotion]:
|
|
3224
|
-
[U.voucher]:
|
|
3225
|
-
[U.membership]:
|
|
3226
|
-
[U.stock]:
|
|
3227
|
-
[U.wastageTemplate]:
|
|
3228
|
-
[U.closingTemplate]:
|
|
3229
|
-
[U.orderTemplate]:
|
|
3230
|
-
[U.ingredient]:
|
|
3231
|
-
[U.recipe]:
|
|
3232
|
-
[U.unit]:
|
|
3233
|
-
[U.supplier]:
|
|
3234
|
-
[U.warehouse]:
|
|
3235
|
-
[U.publish]:
|
|
3236
|
-
[U.integration]:
|
|
3237
|
-
[U.orderDraft]:
|
|
3238
|
-
[U.unitCostHistory]:
|
|
3203
|
+
[U.permission]: o.hrm_teamMember,
|
|
3204
|
+
[U.promotion]: o.crm_promotion,
|
|
3205
|
+
[U.voucher]: o.crm_voucher,
|
|
3206
|
+
[U.membership]: o.crm_membership,
|
|
3207
|
+
[U.stock]: o.inventory_stock,
|
|
3208
|
+
[U.wastageTemplate]: o.inventory_wastageTemplate,
|
|
3209
|
+
[U.closingTemplate]: o.inventory_closingTemplate,
|
|
3210
|
+
[U.orderTemplate]: o.inventory_orderTemplate,
|
|
3211
|
+
[U.ingredient]: o.inventory_ingredient,
|
|
3212
|
+
[U.recipe]: o.inventory_recipe,
|
|
3213
|
+
[U.unit]: o.inventory_unit,
|
|
3214
|
+
[U.supplier]: o.inventory_supplier,
|
|
3215
|
+
[U.warehouse]: o.inventory_warehouse,
|
|
3216
|
+
[U.publish]: o.inventory_publish,
|
|
3217
|
+
[U.integration]: o.inventory_integration,
|
|
3218
|
+
[U.orderDraft]: o.inventory_orderDraftApproval,
|
|
3219
|
+
[U.unitCostHistory]: o.inventory_unitCostHistory
|
|
3239
3220
|
};
|
|
3240
|
-
function
|
|
3221
|
+
function bn(e) {
|
|
3241
3222
|
return Ds[e] ?? e;
|
|
3242
3223
|
}
|
|
3243
3224
|
function Ja(e) {
|
|
@@ -3248,459 +3229,459 @@ const _a = {
|
|
|
3248
3229
|
// General
|
|
3249
3230
|
restaurant: {
|
|
3250
3231
|
label: "Restaurant Owner",
|
|
3251
|
-
subject:
|
|
3232
|
+
subject: o.restaurant,
|
|
3252
3233
|
actions: [t.manage],
|
|
3253
3234
|
category: b.general
|
|
3254
3235
|
},
|
|
3255
3236
|
// menu
|
|
3256
3237
|
menuItem: {
|
|
3257
3238
|
label: "Menu Items Management",
|
|
3258
|
-
subject:
|
|
3239
|
+
subject: o.menu_item,
|
|
3259
3240
|
actions: [t.manage],
|
|
3260
3241
|
category: b.menu
|
|
3261
3242
|
},
|
|
3262
3243
|
menuCatalog: {
|
|
3263
3244
|
label: "Menu Catalog Management",
|
|
3264
|
-
subject:
|
|
3245
|
+
subject: o.menu_catalog,
|
|
3265
3246
|
actions: [t.manage],
|
|
3266
3247
|
category: b.menu
|
|
3267
3248
|
},
|
|
3268
3249
|
menuCategory: {
|
|
3269
3250
|
label: "Menu Category Management",
|
|
3270
|
-
subject:
|
|
3251
|
+
subject: o.menu_category,
|
|
3271
3252
|
actions: [t.manage],
|
|
3272
3253
|
category: b.menu
|
|
3273
3254
|
},
|
|
3274
3255
|
menuSubCategory: {
|
|
3275
3256
|
label: "Menu Sub-category Management",
|
|
3276
|
-
subject:
|
|
3257
|
+
subject: o.menu_subCategory,
|
|
3277
3258
|
actions: [t.manage],
|
|
3278
3259
|
category: b.menu
|
|
3279
3260
|
},
|
|
3280
3261
|
menuGroup: {
|
|
3281
3262
|
label: "Menu Group Management",
|
|
3282
|
-
subject:
|
|
3263
|
+
subject: o.menu_group,
|
|
3283
3264
|
actions: [t.manage],
|
|
3284
3265
|
category: b.menu
|
|
3285
3266
|
},
|
|
3286
3267
|
menuTakeaway: {
|
|
3287
3268
|
label: "Menu Takeaway Management",
|
|
3288
|
-
subject:
|
|
3269
|
+
subject: o.menu_takeaway,
|
|
3289
3270
|
actions: [t.manage],
|
|
3290
3271
|
category: b.menu
|
|
3291
3272
|
},
|
|
3292
3273
|
menuScheduler: {
|
|
3293
3274
|
label: "Menu Scheduler Management",
|
|
3294
|
-
subject:
|
|
3275
|
+
subject: o.menu_scheduler,
|
|
3295
3276
|
actions: [t.manage],
|
|
3296
3277
|
category: b.menu
|
|
3297
3278
|
},
|
|
3298
3279
|
menuVariant: {
|
|
3299
3280
|
label: "Menu Variant Management",
|
|
3300
|
-
subject:
|
|
3281
|
+
subject: o.menu_variant,
|
|
3301
3282
|
actions: [t.manage],
|
|
3302
3283
|
category: b.menu
|
|
3303
3284
|
},
|
|
3304
3285
|
menuCookingGuide: {
|
|
3305
3286
|
label: "Menu Cooking Guide Management",
|
|
3306
|
-
subject:
|
|
3287
|
+
subject: o.menu_cookingGuide,
|
|
3307
3288
|
actions: [t.manage],
|
|
3308
3289
|
category: b.menu
|
|
3309
3290
|
},
|
|
3310
3291
|
menuPrintRoute: {
|
|
3311
3292
|
label: "Menu Print Route Management",
|
|
3312
|
-
subject:
|
|
3293
|
+
subject: o.menu_printRoute,
|
|
3313
3294
|
actions: [t.manage],
|
|
3314
3295
|
category: b.menu
|
|
3315
3296
|
},
|
|
3316
3297
|
menuServingSequence: {
|
|
3317
3298
|
label: "Menu Serving Sequence Management",
|
|
3318
|
-
subject:
|
|
3299
|
+
subject: o.menu_servingSequence,
|
|
3319
3300
|
actions: [t.manage],
|
|
3320
3301
|
category: b.menu
|
|
3321
3302
|
},
|
|
3322
3303
|
menuUnit: {
|
|
3323
3304
|
label: "Menu Unit Management",
|
|
3324
|
-
subject:
|
|
3305
|
+
subject: o.menu_unit,
|
|
3325
3306
|
actions: [t.manage],
|
|
3326
3307
|
category: b.menu
|
|
3327
3308
|
},
|
|
3328
3309
|
menuIngredient: {
|
|
3329
3310
|
label: "Menu Ingredient Management",
|
|
3330
|
-
subject:
|
|
3311
|
+
subject: o.menu_ingredient,
|
|
3331
3312
|
actions: [t.manage],
|
|
3332
3313
|
category: b.menu
|
|
3333
3314
|
},
|
|
3334
3315
|
menuRecipe: {
|
|
3335
3316
|
label: "Menu Recipe Management",
|
|
3336
|
-
subject:
|
|
3317
|
+
subject: o.menu_recipe,
|
|
3337
3318
|
actions: [t.manage],
|
|
3338
3319
|
category: b.menu
|
|
3339
3320
|
},
|
|
3340
3321
|
menuSettings: {
|
|
3341
3322
|
label: "Menu Settings Management",
|
|
3342
|
-
subject:
|
|
3323
|
+
subject: o.menu_settings,
|
|
3343
3324
|
actions: [t.manage],
|
|
3344
3325
|
category: b.menu
|
|
3345
3326
|
},
|
|
3346
3327
|
menuPublish: {
|
|
3347
3328
|
label: "Menu Publish",
|
|
3348
|
-
subject:
|
|
3329
|
+
subject: o.menu_publish,
|
|
3349
3330
|
actions: [t.manage],
|
|
3350
3331
|
category: b.menu
|
|
3351
3332
|
},
|
|
3352
3333
|
menuManagement: {
|
|
3353
3334
|
label: "Menu Management",
|
|
3354
|
-
subject:
|
|
3335
|
+
subject: o.menu_menuManagement,
|
|
3355
3336
|
actions: [t.manage],
|
|
3356
3337
|
category: b.menu
|
|
3357
3338
|
},
|
|
3358
3339
|
menuImportExport: {
|
|
3359
3340
|
label: "Menu Import/Export",
|
|
3360
|
-
subject:
|
|
3341
|
+
subject: o.menu_importExport,
|
|
3361
3342
|
actions: [t.manage],
|
|
3362
3343
|
category: b.menu
|
|
3363
3344
|
},
|
|
3364
3345
|
// inventory
|
|
3365
3346
|
inventoryStockBalance: {
|
|
3366
3347
|
label: "Stock Balance Management",
|
|
3367
|
-
subject:
|
|
3348
|
+
subject: o.inventory_stockBalance,
|
|
3368
3349
|
actions: [t.manage],
|
|
3369
3350
|
category: b.inventory
|
|
3370
3351
|
},
|
|
3371
3352
|
inventoryStockAdjustment: {
|
|
3372
3353
|
label: "Stock Adjustment Management",
|
|
3373
|
-
subject:
|
|
3354
|
+
subject: o.inventory_stockAdjustment,
|
|
3374
3355
|
actions: [t.manage],
|
|
3375
3356
|
category: b.inventory
|
|
3376
3357
|
},
|
|
3377
3358
|
inventoryUnitCostHistory: {
|
|
3378
3359
|
label: "Unit Cost History Management",
|
|
3379
|
-
subject:
|
|
3360
|
+
subject: o.inventory_unitCostHistory,
|
|
3380
3361
|
actions: [t.manage],
|
|
3381
3362
|
category: b.inventory
|
|
3382
3363
|
},
|
|
3383
3364
|
inventoryWastageTemplate: {
|
|
3384
3365
|
label: "Wastage Template Management",
|
|
3385
|
-
subject:
|
|
3366
|
+
subject: o.inventory_wastageTemplate,
|
|
3386
3367
|
actions: [t.manage],
|
|
3387
3368
|
category: b.inventory,
|
|
3388
3369
|
showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
|
|
3389
3370
|
},
|
|
3390
3371
|
inventoryClosingHistory: {
|
|
3391
3372
|
label: "Closing History Management",
|
|
3392
|
-
subject:
|
|
3373
|
+
subject: o.inventory_closingHistory,
|
|
3393
3374
|
actions: [t.manage],
|
|
3394
3375
|
category: b.inventory
|
|
3395
3376
|
},
|
|
3396
3377
|
inventoryClosingTemplate: {
|
|
3397
3378
|
label: "Closing Template Management",
|
|
3398
|
-
subject:
|
|
3379
|
+
subject: o.inventory_closingTemplate,
|
|
3399
3380
|
actions: [t.manage],
|
|
3400
3381
|
category: b.inventory,
|
|
3401
3382
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
3402
3383
|
},
|
|
3403
3384
|
inventoryClosingDraft: {
|
|
3404
3385
|
label: "Closing Draft Management",
|
|
3405
|
-
subject:
|
|
3386
|
+
subject: o.inventory_closingDraft,
|
|
3406
3387
|
actions: [t.manage],
|
|
3407
3388
|
category: b.inventory,
|
|
3408
3389
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
3409
3390
|
},
|
|
3410
3391
|
inventoryIngredient: {
|
|
3411
3392
|
label: "Ingredient Management",
|
|
3412
|
-
subject:
|
|
3393
|
+
subject: o.inventory_ingredient,
|
|
3413
3394
|
actions: [t.manage],
|
|
3414
3395
|
category: b.inventory
|
|
3415
3396
|
},
|
|
3416
3397
|
inventoryIngredientGroup: {
|
|
3417
3398
|
label: "Ingredient Group Management",
|
|
3418
|
-
subject:
|
|
3399
|
+
subject: o.inventory_ingredientGroup,
|
|
3419
3400
|
actions: [t.manage],
|
|
3420
3401
|
showByFeatureFlag: "inventory_ingredient_group",
|
|
3421
3402
|
category: b.inventory
|
|
3422
3403
|
},
|
|
3423
3404
|
inventoryRecipe: {
|
|
3424
3405
|
label: "Recipe Management",
|
|
3425
|
-
subject:
|
|
3406
|
+
subject: o.inventory_recipe,
|
|
3426
3407
|
actions: [t.manage],
|
|
3427
3408
|
category: b.inventory
|
|
3428
3409
|
},
|
|
3429
3410
|
inventoryUnit: {
|
|
3430
3411
|
label: "Unit Management",
|
|
3431
|
-
subject:
|
|
3412
|
+
subject: o.inventory_unit,
|
|
3432
3413
|
actions: [t.manage],
|
|
3433
3414
|
category: b.inventory
|
|
3434
3415
|
},
|
|
3435
3416
|
inventoryPurchaseTransfer: {
|
|
3436
3417
|
label: "Purchase / Transfer Management",
|
|
3437
|
-
subject:
|
|
3418
|
+
subject: o.inventory_purchaseTransfer,
|
|
3438
3419
|
actions: [t.manage],
|
|
3439
3420
|
category: b.inventory
|
|
3440
3421
|
},
|
|
3441
3422
|
inventoryOrderDraftApproval: {
|
|
3442
3423
|
label: "Order Draft Approval",
|
|
3443
|
-
subject:
|
|
3424
|
+
subject: o.inventory_orderDraftApproval,
|
|
3444
3425
|
actions: [t.manage],
|
|
3445
3426
|
category: b.inventory
|
|
3446
3427
|
},
|
|
3447
3428
|
inventoryTransferOut: {
|
|
3448
3429
|
label: "Transfer Out Management",
|
|
3449
|
-
subject:
|
|
3430
|
+
subject: o.inventory_transferOut,
|
|
3450
3431
|
actions: [t.manage],
|
|
3451
3432
|
category: b.inventory
|
|
3452
3433
|
},
|
|
3453
3434
|
inventorySurcharge: {
|
|
3454
3435
|
label: "Surcharge Management",
|
|
3455
|
-
subject:
|
|
3436
|
+
subject: o.inventory_surcharge,
|
|
3456
3437
|
actions: [t.manage],
|
|
3457
3438
|
showByFeatureFlag: "inventory_portal_surcharge",
|
|
3458
3439
|
category: b.inventory
|
|
3459
3440
|
},
|
|
3460
3441
|
inventoryOrderTemplate: {
|
|
3461
3442
|
label: "Order Template Management",
|
|
3462
|
-
subject:
|
|
3443
|
+
subject: o.inventory_orderTemplate,
|
|
3463
3444
|
actions: [t.manage],
|
|
3464
3445
|
showByFeatureFlag: "inventory_portal_must_use_transfer_template",
|
|
3465
3446
|
category: b.inventory
|
|
3466
3447
|
},
|
|
3467
3448
|
inventorySupplier: {
|
|
3468
3449
|
label: "Supplier Management",
|
|
3469
|
-
subject:
|
|
3450
|
+
subject: o.inventory_supplier,
|
|
3470
3451
|
actions: [t.manage],
|
|
3471
3452
|
category: b.inventory
|
|
3472
3453
|
},
|
|
3473
3454
|
inventoryWarehouse: {
|
|
3474
3455
|
label: "Warehouse Management",
|
|
3475
|
-
subject:
|
|
3456
|
+
subject: o.inventory_warehouse,
|
|
3476
3457
|
actions: [t.manage],
|
|
3477
3458
|
category: b.inventory
|
|
3478
3459
|
},
|
|
3479
3460
|
inventoryPublish: {
|
|
3480
3461
|
label: "Publish Management",
|
|
3481
|
-
subject:
|
|
3462
|
+
subject: o.inventory_publish,
|
|
3482
3463
|
actions: [t.manage],
|
|
3483
3464
|
category: b.inventory
|
|
3484
3465
|
},
|
|
3485
3466
|
inventoryImport: {
|
|
3486
3467
|
label: "Import Management",
|
|
3487
|
-
subject:
|
|
3468
|
+
subject: o.inventory_import,
|
|
3488
3469
|
actions: [t.manage],
|
|
3489
3470
|
showByFeatureFlag: "inventory_bulk_import",
|
|
3490
3471
|
category: b.inventory
|
|
3491
3472
|
},
|
|
3492
3473
|
inventoryIntegration: {
|
|
3493
3474
|
label: "Integration Management",
|
|
3494
|
-
subject:
|
|
3475
|
+
subject: o.inventory_integration,
|
|
3495
3476
|
actions: [t.manage],
|
|
3496
3477
|
category: b.inventory
|
|
3497
3478
|
},
|
|
3498
3479
|
// CRM
|
|
3499
3480
|
crmMembership: {
|
|
3500
3481
|
label: "Membership Management (V1)",
|
|
3501
|
-
subject:
|
|
3482
|
+
subject: o.crm_membership,
|
|
3502
3483
|
actions: [t.manage],
|
|
3503
3484
|
category: b.crm
|
|
3504
3485
|
},
|
|
3505
3486
|
crmPromotion: {
|
|
3506
3487
|
label: "Promotion Management (V1/V2)",
|
|
3507
|
-
subject:
|
|
3488
|
+
subject: o.crm_promotion,
|
|
3508
3489
|
actions: [t.manage],
|
|
3509
3490
|
category: b.crm
|
|
3510
3491
|
},
|
|
3511
3492
|
crmVoucher: {
|
|
3512
3493
|
label: "Voucher Management (V1/V2)",
|
|
3513
|
-
subject:
|
|
3494
|
+
subject: o.crm_voucher,
|
|
3514
3495
|
actions: [t.manage],
|
|
3515
3496
|
category: b.crm
|
|
3516
3497
|
},
|
|
3517
3498
|
crmAnalytic: {
|
|
3518
3499
|
label: "Analytic Management",
|
|
3519
|
-
subject:
|
|
3500
|
+
subject: o.crm_analytic,
|
|
3520
3501
|
actions: [t.manage],
|
|
3521
3502
|
category: b.crm
|
|
3522
3503
|
},
|
|
3523
3504
|
crmTier: {
|
|
3524
3505
|
label: "Tier Management",
|
|
3525
|
-
subject:
|
|
3506
|
+
subject: o.crm_tier,
|
|
3526
3507
|
actions: [t.manage],
|
|
3527
3508
|
category: b.crm
|
|
3528
3509
|
},
|
|
3529
3510
|
crmTitle: {
|
|
3530
3511
|
label: "Title Management",
|
|
3531
|
-
subject:
|
|
3512
|
+
subject: o.crm_title,
|
|
3532
3513
|
actions: [t.manage],
|
|
3533
3514
|
category: b.crm
|
|
3534
3515
|
},
|
|
3535
3516
|
crmBroadcast: {
|
|
3536
3517
|
label: "Broadcast Management",
|
|
3537
|
-
subject:
|
|
3518
|
+
subject: o.crm_broadcast,
|
|
3538
3519
|
actions: [t.manage],
|
|
3539
3520
|
category: b.crm
|
|
3540
3521
|
},
|
|
3541
3522
|
crmPoint: {
|
|
3542
3523
|
label: "Point Management",
|
|
3543
|
-
subject:
|
|
3524
|
+
subject: o.crm_point,
|
|
3544
3525
|
actions: [t.manage],
|
|
3545
3526
|
category: b.crm
|
|
3546
3527
|
},
|
|
3547
3528
|
crmCredit: {
|
|
3548
3529
|
label: "Credit Management",
|
|
3549
|
-
subject:
|
|
3530
|
+
subject: o.crm_credit,
|
|
3550
3531
|
actions: [t.manage],
|
|
3551
3532
|
category: b.crm
|
|
3552
3533
|
},
|
|
3553
3534
|
crmExperience: {
|
|
3554
3535
|
label: "Experience Management",
|
|
3555
|
-
subject:
|
|
3536
|
+
subject: o.crm_experience,
|
|
3556
3537
|
actions: [t.manage],
|
|
3557
3538
|
category: b.crm
|
|
3558
3539
|
},
|
|
3559
3540
|
crmGame: {
|
|
3560
3541
|
label: "Game Management",
|
|
3561
|
-
subject:
|
|
3542
|
+
subject: o.crm_game,
|
|
3562
3543
|
actions: [t.manage],
|
|
3563
3544
|
category: b.crm
|
|
3564
3545
|
},
|
|
3565
3546
|
crmMission: {
|
|
3566
3547
|
label: "Mission Management",
|
|
3567
|
-
subject:
|
|
3548
|
+
subject: o.crm_mission,
|
|
3568
3549
|
actions: [t.manage],
|
|
3569
3550
|
category: b.crm
|
|
3570
3551
|
},
|
|
3571
3552
|
crmLoyaltyMember: {
|
|
3572
3553
|
label: "Loyalty Member Management",
|
|
3573
|
-
subject:
|
|
3554
|
+
subject: o.crm_loyaltyMember,
|
|
3574
3555
|
actions: [t.manage],
|
|
3575
3556
|
category: b.crm
|
|
3576
3557
|
},
|
|
3577
3558
|
crmLoyaltySegment: {
|
|
3578
3559
|
label: "Loyalty Segment Management",
|
|
3579
|
-
subject:
|
|
3560
|
+
subject: o.crm_loyaltySegment,
|
|
3580
3561
|
actions: [t.manage],
|
|
3581
3562
|
category: b.crm
|
|
3582
3563
|
},
|
|
3583
3564
|
crmLoyaltyCard: {
|
|
3584
3565
|
label: "Loyalty Card Management",
|
|
3585
|
-
subject:
|
|
3566
|
+
subject: o.crm_loyaltyCard,
|
|
3586
3567
|
actions: [t.manage],
|
|
3587
3568
|
category: b.crm
|
|
3588
3569
|
},
|
|
3589
3570
|
crmReferral: {
|
|
3590
3571
|
label: "Referral Management",
|
|
3591
|
-
subject:
|
|
3572
|
+
subject: o.crm_referral,
|
|
3592
3573
|
actions: [t.manage],
|
|
3593
3574
|
category: b.crm
|
|
3594
3575
|
},
|
|
3595
3576
|
crmStore: {
|
|
3596
3577
|
label: "Store Management",
|
|
3597
|
-
subject:
|
|
3578
|
+
subject: o.crm_store,
|
|
3598
3579
|
actions: [t.manage],
|
|
3599
3580
|
category: b.crm
|
|
3600
3581
|
},
|
|
3601
3582
|
crmTransaction: {
|
|
3602
3583
|
label: "Transaction Management",
|
|
3603
|
-
subject:
|
|
3584
|
+
subject: o.crm_transaction,
|
|
3604
3585
|
actions: [t.manage],
|
|
3605
3586
|
category: b.crm
|
|
3606
3587
|
},
|
|
3607
3588
|
crmSetting: {
|
|
3608
3589
|
label: "Setting Management",
|
|
3609
|
-
subject:
|
|
3590
|
+
subject: o.crm_setting,
|
|
3610
3591
|
actions: [t.manage],
|
|
3611
3592
|
category: b.crm
|
|
3612
3593
|
},
|
|
3613
3594
|
crmBin: {
|
|
3614
3595
|
label: "Bin Management",
|
|
3615
|
-
subject:
|
|
3596
|
+
subject: o.crm_bin,
|
|
3616
3597
|
actions: [t.manage],
|
|
3617
3598
|
category: b.crm
|
|
3618
3599
|
},
|
|
3619
3600
|
// Payment
|
|
3620
3601
|
paymentPayoutAccount: {
|
|
3621
3602
|
label: "Payout Account Management",
|
|
3622
|
-
subject:
|
|
3603
|
+
subject: o.payment_payoutAccount,
|
|
3623
3604
|
actions: [t.manage],
|
|
3624
3605
|
category: b.payment
|
|
3625
3606
|
},
|
|
3626
3607
|
paymentOnboarding: {
|
|
3627
3608
|
label: "Payment Onboarding Management",
|
|
3628
|
-
subject:
|
|
3609
|
+
subject: o.payment_paymentOnboarding,
|
|
3629
3610
|
actions: [t.manage],
|
|
3630
3611
|
category: b.payment
|
|
3631
3612
|
},
|
|
3632
3613
|
paymentTransactions: {
|
|
3633
3614
|
label: "Transactions Management",
|
|
3634
|
-
subject:
|
|
3615
|
+
subject: o.payment_transactions,
|
|
3635
3616
|
actions: [t.manage],
|
|
3636
3617
|
category: b.payment
|
|
3637
3618
|
},
|
|
3638
3619
|
paymentSettlements: {
|
|
3639
3620
|
label: "Settlements Management",
|
|
3640
|
-
subject:
|
|
3621
|
+
subject: o.payment_settlements,
|
|
3641
3622
|
actions: [t.manage],
|
|
3642
3623
|
category: b.payment
|
|
3643
3624
|
},
|
|
3644
3625
|
// HRM
|
|
3645
3626
|
hrmTeamMember: {
|
|
3646
3627
|
label: "Team Member Management",
|
|
3647
|
-
subject:
|
|
3628
|
+
subject: o.hrm_teamMember,
|
|
3648
3629
|
actions: [t.manage],
|
|
3649
3630
|
category: b.hrm
|
|
3650
3631
|
},
|
|
3651
3632
|
hrmEmployee: {
|
|
3652
3633
|
label: "Employee Management",
|
|
3653
|
-
subject:
|
|
3634
|
+
subject: o.hrm_employee,
|
|
3654
3635
|
actions: [t.manage],
|
|
3655
3636
|
category: b.hrm
|
|
3656
3637
|
},
|
|
3657
3638
|
hrmAuditLog: {
|
|
3658
3639
|
label: "Audit Log Management",
|
|
3659
|
-
subject:
|
|
3640
|
+
subject: o.hrm_auditLog,
|
|
3660
3641
|
actions: [t.manage],
|
|
3661
3642
|
category: b.hrm
|
|
3662
3643
|
},
|
|
3663
3644
|
// Report
|
|
3664
3645
|
reportReports: {
|
|
3665
3646
|
label: "Create Report",
|
|
3666
|
-
subject:
|
|
3647
|
+
subject: o.report_createReport,
|
|
3667
3648
|
actions: [t.manage],
|
|
3668
3649
|
category: b.report
|
|
3669
3650
|
},
|
|
3670
3651
|
reportAccessOverview: {
|
|
3671
3652
|
label: "Access Overview Page",
|
|
3672
|
-
subject:
|
|
3653
|
+
subject: o.report_accessOverview,
|
|
3673
3654
|
actions: [t.manage],
|
|
3674
3655
|
category: b.report
|
|
3675
3656
|
},
|
|
3676
3657
|
reportAccessInsight: {
|
|
3677
3658
|
label: "Access Insight Page",
|
|
3678
|
-
subject:
|
|
3659
|
+
subject: o.report_accessInsight,
|
|
3679
3660
|
actions: [t.manage],
|
|
3680
3661
|
category: b.report
|
|
3681
3662
|
},
|
|
3682
3663
|
reportAccessSetting: {
|
|
3683
3664
|
label: "Access Setting Page",
|
|
3684
|
-
subject:
|
|
3665
|
+
subject: o.report_accessSetting,
|
|
3685
3666
|
actions: [t.manage],
|
|
3686
3667
|
category: b.report
|
|
3687
3668
|
},
|
|
3688
3669
|
reportAccessIntegration: {
|
|
3689
3670
|
label: "Access Integration Page",
|
|
3690
|
-
subject:
|
|
3671
|
+
subject: o.report_accessIntegration,
|
|
3691
3672
|
actions: [t.manage],
|
|
3692
3673
|
category: b.report
|
|
3693
3674
|
},
|
|
3694
3675
|
reportAllDefaultReports: {
|
|
3695
3676
|
label: "Include future Default Reports",
|
|
3696
|
-
subject:
|
|
3677
|
+
subject: o.report_reports_allDefaultReports,
|
|
3697
3678
|
actions: [t.manage, t.read, t.create],
|
|
3698
3679
|
category: b.reports,
|
|
3699
3680
|
isCategoryCover: !0
|
|
3700
3681
|
},
|
|
3701
3682
|
reportAllCustomReports: {
|
|
3702
3683
|
label: "Include future Custom Reports",
|
|
3703
|
-
subject:
|
|
3684
|
+
subject: o.report_reports_allCustomReports,
|
|
3704
3685
|
actions: [
|
|
3705
3686
|
t.manage,
|
|
3706
3687
|
t.read,
|
|
@@ -3714,28 +3695,28 @@ const _a = {
|
|
|
3714
3695
|
// MDM
|
|
3715
3696
|
mdmDeviceManagement: {
|
|
3716
3697
|
label: "Device Management",
|
|
3717
|
-
subject:
|
|
3698
|
+
subject: o.mdm_deviceManagement,
|
|
3718
3699
|
actions: [t.manage],
|
|
3719
3700
|
category: b.settings,
|
|
3720
3701
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
3721
3702
|
},
|
|
3722
3703
|
mdmCreateDevice: {
|
|
3723
3704
|
label: "Create New Device",
|
|
3724
|
-
subject:
|
|
3705
|
+
subject: o.mdm_createDevice,
|
|
3725
3706
|
actions: [t.manage],
|
|
3726
3707
|
category: b.settings,
|
|
3727
3708
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
3728
3709
|
},
|
|
3729
3710
|
mdmDeviceBinding: {
|
|
3730
3711
|
label: "Manage Device Binding",
|
|
3731
|
-
subject:
|
|
3712
|
+
subject: o.mdm_deviceBinding,
|
|
3732
3713
|
actions: [t.manage],
|
|
3733
3714
|
category: b.settings,
|
|
3734
3715
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
3735
3716
|
},
|
|
3736
3717
|
mdmCustomerDisplay: {
|
|
3737
3718
|
label: "Manage Customer Display",
|
|
3738
|
-
subject:
|
|
3719
|
+
subject: o.mdm_customerDisplay,
|
|
3739
3720
|
actions: [t.manage, t.read, t.update],
|
|
3740
3721
|
category: b.settings,
|
|
3741
3722
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
@@ -3743,14 +3724,14 @@ const _a = {
|
|
|
3743
3724
|
// E-invoice
|
|
3744
3725
|
eInvoiceManagement: {
|
|
3745
3726
|
label: "E-invoice Management",
|
|
3746
|
-
subject:
|
|
3727
|
+
subject: o.eInvoice_management,
|
|
3747
3728
|
actions: [t.manage],
|
|
3748
3729
|
category: b.settings,
|
|
3749
3730
|
showByFeatureFlag: "hrm_enable_einvoice_permission"
|
|
3750
3731
|
},
|
|
3751
3732
|
eInvoiceIntegration: {
|
|
3752
3733
|
label: "Manage E-invoice Integration",
|
|
3753
|
-
subject:
|
|
3734
|
+
subject: o.eInvoice_integration,
|
|
3754
3735
|
actions: [t.manage],
|
|
3755
3736
|
category: b.settings,
|
|
3756
3737
|
showByFeatureFlag: "hrm_enable_einvoice_permission"
|
|
@@ -3758,52 +3739,95 @@ const _a = {
|
|
|
3758
3739
|
// operation
|
|
3759
3740
|
operationReceipt: {
|
|
3760
3741
|
label: "Receipt",
|
|
3761
|
-
subject:
|
|
3742
|
+
subject: o.operation_receipt,
|
|
3762
3743
|
actions: [t.manage],
|
|
3763
3744
|
category: b.operation,
|
|
3764
3745
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3765
3746
|
},
|
|
3766
3747
|
operationTableManagement: {
|
|
3767
3748
|
label: "Table Management",
|
|
3768
|
-
subject:
|
|
3749
|
+
subject: o.operation_tableManagement,
|
|
3769
3750
|
actions: [t.manage],
|
|
3770
3751
|
category: b.operation,
|
|
3771
3752
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3772
3753
|
},
|
|
3773
3754
|
operationOfflinePayment: {
|
|
3774
3755
|
label: "Offline Payment Management",
|
|
3775
|
-
subject:
|
|
3756
|
+
subject: o.operation_offlinePayment,
|
|
3776
3757
|
actions: [t.manage],
|
|
3777
3758
|
category: b.operation,
|
|
3778
3759
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3779
3760
|
},
|
|
3780
3761
|
operationReasonTemplate: {
|
|
3781
3762
|
label: "Reason Template Management",
|
|
3782
|
-
subject:
|
|
3763
|
+
subject: o.operation_reasonTemplate,
|
|
3783
3764
|
actions: [t.manage],
|
|
3784
3765
|
category: b.operation,
|
|
3785
3766
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3786
3767
|
},
|
|
3787
3768
|
operationDiscountRule: {
|
|
3788
3769
|
label: "Discount Rule Management",
|
|
3789
|
-
subject:
|
|
3770
|
+
subject: o.operation_discountRule,
|
|
3790
3771
|
actions: [t.manage],
|
|
3791
3772
|
category: b.operation,
|
|
3792
3773
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3793
3774
|
},
|
|
3794
3775
|
operationServiceCharge: {
|
|
3795
3776
|
label: "Service Charge Management",
|
|
3796
|
-
subject:
|
|
3777
|
+
subject: o.operation_serviceCharge,
|
|
3797
3778
|
actions: [t.manage],
|
|
3798
3779
|
category: b.operation,
|
|
3799
3780
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3800
3781
|
},
|
|
3801
3782
|
operationKitchenPrintTemplate: {
|
|
3802
3783
|
label: "Print Template Management",
|
|
3803
|
-
subject:
|
|
3784
|
+
subject: o.operation_kitchenPrintTemplate,
|
|
3804
3785
|
actions: [t.manage],
|
|
3805
3786
|
category: b.operation,
|
|
3806
3787
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3788
|
+
},
|
|
3789
|
+
// Mini Program
|
|
3790
|
+
miniProgramProfile: {
|
|
3791
|
+
label: "Business Profile Management",
|
|
3792
|
+
subject: o.miniProgram_profile,
|
|
3793
|
+
actions: [t.manage],
|
|
3794
|
+
category: b.miniProgram,
|
|
3795
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3796
|
+
},
|
|
3797
|
+
miniProgramBrandkit: {
|
|
3798
|
+
label: "Brand Kit Management",
|
|
3799
|
+
subject: o.miniProgram_brandkit,
|
|
3800
|
+
actions: [t.manage],
|
|
3801
|
+
category: b.miniProgram,
|
|
3802
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3803
|
+
},
|
|
3804
|
+
miniProgramTemplate: {
|
|
3805
|
+
label: "Template Management",
|
|
3806
|
+
subject: o.miniProgram_template,
|
|
3807
|
+
actions: [t.manage],
|
|
3808
|
+
category: b.miniProgram,
|
|
3809
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3810
|
+
},
|
|
3811
|
+
miniProgramPublish: {
|
|
3812
|
+
label: "Publish Management",
|
|
3813
|
+
subject: o.miniProgram_publish,
|
|
3814
|
+
actions: [t.manage],
|
|
3815
|
+
category: b.miniProgram,
|
|
3816
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3817
|
+
},
|
|
3818
|
+
miniProgramAssets: {
|
|
3819
|
+
label: "Assets Management",
|
|
3820
|
+
subject: o.miniProgram_assets,
|
|
3821
|
+
actions: [t.manage],
|
|
3822
|
+
category: b.miniProgram,
|
|
3823
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3824
|
+
},
|
|
3825
|
+
miniProgramNativeCredentials: {
|
|
3826
|
+
label: "Credentials Management",
|
|
3827
|
+
subject: o.miniProgram_nativeCredentials,
|
|
3828
|
+
actions: [t.manage],
|
|
3829
|
+
category: b.miniProgram,
|
|
3830
|
+
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
3807
3831
|
}
|
|
3808
3832
|
};
|
|
3809
3833
|
var q = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(q || {});
|
|
@@ -3813,7 +3837,7 @@ const R = [
|
|
|
3813
3837
|
subject: q.crm,
|
|
3814
3838
|
actions: [t.read]
|
|
3815
3839
|
}
|
|
3816
|
-
], $ = (...e) => e.flat(),
|
|
3840
|
+
], $ = (...e) => e.flat(), fn = [
|
|
3817
3841
|
...R,
|
|
3818
3842
|
{
|
|
3819
3843
|
label: "User",
|
|
@@ -3825,7 +3849,7 @@ const R = [
|
|
|
3825
3849
|
t.delete
|
|
3826
3850
|
]
|
|
3827
3851
|
}
|
|
3828
|
-
],
|
|
3852
|
+
], yn = [
|
|
3829
3853
|
...R,
|
|
3830
3854
|
{
|
|
3831
3855
|
label: "Segmentation",
|
|
@@ -3837,7 +3861,7 @@ const R = [
|
|
|
3837
3861
|
t.delete
|
|
3838
3862
|
]
|
|
3839
3863
|
}
|
|
3840
|
-
],
|
|
3864
|
+
], js = [
|
|
3841
3865
|
...R,
|
|
3842
3866
|
{
|
|
3843
3867
|
label: "Transaction",
|
|
@@ -3849,7 +3873,7 @@ const R = [
|
|
|
3849
3873
|
t.delete
|
|
3850
3874
|
]
|
|
3851
3875
|
}
|
|
3852
|
-
],
|
|
3876
|
+
], Gs = [
|
|
3853
3877
|
...R,
|
|
3854
3878
|
{
|
|
3855
3879
|
label: "Store",
|
|
@@ -3861,7 +3885,7 @@ const R = [
|
|
|
3861
3885
|
t.delete
|
|
3862
3886
|
]
|
|
3863
3887
|
}
|
|
3864
|
-
],
|
|
3888
|
+
], vn = [
|
|
3865
3889
|
...R,
|
|
3866
3890
|
{
|
|
3867
3891
|
label: "Location",
|
|
@@ -3873,7 +3897,7 @@ const R = [
|
|
|
3873
3897
|
t.delete
|
|
3874
3898
|
]
|
|
3875
3899
|
}
|
|
3876
|
-
],
|
|
3900
|
+
], hn = [
|
|
3877
3901
|
...R,
|
|
3878
3902
|
{
|
|
3879
3903
|
label: "Effect",
|
|
@@ -3885,14 +3909,14 @@ const R = [
|
|
|
3885
3909
|
t.delete
|
|
3886
3910
|
]
|
|
3887
3911
|
}
|
|
3888
|
-
],
|
|
3912
|
+
], Bn = [
|
|
3889
3913
|
...R,
|
|
3890
3914
|
{
|
|
3891
3915
|
label: "Setting",
|
|
3892
3916
|
subject: q.crm_setting,
|
|
3893
3917
|
actions: [t.read, t.update]
|
|
3894
3918
|
}
|
|
3895
|
-
],
|
|
3919
|
+
], wn = [
|
|
3896
3920
|
...R,
|
|
3897
3921
|
{
|
|
3898
3922
|
label: "Reward",
|
|
@@ -3916,7 +3940,7 @@ const R = [
|
|
|
3916
3940
|
t.delete
|
|
3917
3941
|
]
|
|
3918
3942
|
}
|
|
3919
|
-
],
|
|
3943
|
+
], Ys = [
|
|
3920
3944
|
...R,
|
|
3921
3945
|
{
|
|
3922
3946
|
label: "Referral",
|
|
@@ -3928,7 +3952,7 @@ const R = [
|
|
|
3928
3952
|
t.delete
|
|
3929
3953
|
]
|
|
3930
3954
|
}
|
|
3931
|
-
],
|
|
3955
|
+
], Mn = [
|
|
3932
3956
|
...R,
|
|
3933
3957
|
{
|
|
3934
3958
|
label: "Marketing Material",
|
|
@@ -3947,7 +3971,7 @@ const R = [
|
|
|
3947
3971
|
subject: q.crm_analytic,
|
|
3948
3972
|
actions: [t.read]
|
|
3949
3973
|
}
|
|
3950
|
-
],
|
|
3974
|
+
], Cn = [
|
|
3951
3975
|
...R,
|
|
3952
3976
|
{
|
|
3953
3977
|
label: "Tier",
|
|
@@ -3959,7 +3983,7 @@ const R = [
|
|
|
3959
3983
|
t.delete
|
|
3960
3984
|
]
|
|
3961
3985
|
}
|
|
3962
|
-
],
|
|
3986
|
+
], Dn = [
|
|
3963
3987
|
...R,
|
|
3964
3988
|
{
|
|
3965
3989
|
label: "Title",
|
|
@@ -3971,7 +3995,7 @@ const R = [
|
|
|
3971
3995
|
t.delete
|
|
3972
3996
|
]
|
|
3973
3997
|
}
|
|
3974
|
-
],
|
|
3998
|
+
], jn = [
|
|
3975
3999
|
...R,
|
|
3976
4000
|
{
|
|
3977
4001
|
label: "Broadcast",
|
|
@@ -3983,7 +4007,7 @@ const R = [
|
|
|
3983
4007
|
t.delete
|
|
3984
4008
|
]
|
|
3985
4009
|
}
|
|
3986
|
-
],
|
|
4010
|
+
], Gn = [
|
|
3987
4011
|
...R,
|
|
3988
4012
|
{
|
|
3989
4013
|
label: "Point",
|
|
@@ -3995,7 +4019,7 @@ const R = [
|
|
|
3995
4019
|
t.delete
|
|
3996
4020
|
]
|
|
3997
4021
|
}
|
|
3998
|
-
],
|
|
4022
|
+
], Yn = [
|
|
3999
4023
|
...R,
|
|
4000
4024
|
{
|
|
4001
4025
|
label: "Credit",
|
|
@@ -4007,7 +4031,7 @@ const R = [
|
|
|
4007
4031
|
t.delete
|
|
4008
4032
|
]
|
|
4009
4033
|
}
|
|
4010
|
-
],
|
|
4034
|
+
], En = [
|
|
4011
4035
|
...R,
|
|
4012
4036
|
{
|
|
4013
4037
|
label: "Experience",
|
|
@@ -4019,7 +4043,7 @@ const R = [
|
|
|
4019
4043
|
t.delete
|
|
4020
4044
|
]
|
|
4021
4045
|
}
|
|
4022
|
-
],
|
|
4046
|
+
], xn = [
|
|
4023
4047
|
...R,
|
|
4024
4048
|
{
|
|
4025
4049
|
label: "Game",
|
|
@@ -4031,7 +4055,7 @@ const R = [
|
|
|
4031
4055
|
t.delete
|
|
4032
4056
|
]
|
|
4033
4057
|
}
|
|
4034
|
-
],
|
|
4058
|
+
], Vn = [
|
|
4035
4059
|
...R,
|
|
4036
4060
|
{
|
|
4037
4061
|
label: "Mission",
|
|
@@ -4067,7 +4091,7 @@ const R = [
|
|
|
4067
4091
|
t.delete
|
|
4068
4092
|
]
|
|
4069
4093
|
}
|
|
4070
|
-
],
|
|
4094
|
+
], Ps = [
|
|
4071
4095
|
...R,
|
|
4072
4096
|
{
|
|
4073
4097
|
label: "Loyalty Card",
|
|
@@ -4079,7 +4103,7 @@ const R = [
|
|
|
4079
4103
|
t.delete
|
|
4080
4104
|
]
|
|
4081
4105
|
}
|
|
4082
|
-
],
|
|
4106
|
+
], Fs = [
|
|
4083
4107
|
...R,
|
|
4084
4108
|
{
|
|
4085
4109
|
label: "Bin",
|
|
@@ -4088,35 +4112,35 @@ const R = [
|
|
|
4088
4112
|
}
|
|
4089
4113
|
], Os = $(
|
|
4090
4114
|
oe,
|
|
4091
|
-
|
|
4115
|
+
Cn
|
|
4092
4116
|
), qs = $(
|
|
4093
4117
|
oe,
|
|
4094
|
-
|
|
4118
|
+
Dn
|
|
4095
4119
|
), Hs = $(
|
|
4096
4120
|
oe,
|
|
4097
|
-
|
|
4121
|
+
jn
|
|
4098
4122
|
), Xs = $(
|
|
4099
4123
|
oe,
|
|
4100
|
-
|
|
4124
|
+
Gn
|
|
4101
4125
|
), Qs = $(
|
|
4102
4126
|
oe,
|
|
4103
|
-
|
|
4127
|
+
Yn
|
|
4104
4128
|
), Is = $(
|
|
4105
4129
|
oe,
|
|
4106
|
-
|
|
4130
|
+
En
|
|
4107
4131
|
), Rs = $(
|
|
4108
4132
|
oe,
|
|
4109
|
-
|
|
4133
|
+
xn
|
|
4110
4134
|
), Zs = $(
|
|
4111
4135
|
oe,
|
|
4112
|
-
|
|
4113
|
-
),
|
|
4136
|
+
Vn
|
|
4137
|
+
), Pn = $(
|
|
4114
4138
|
oe,
|
|
4115
|
-
|
|
4139
|
+
Ys
|
|
4116
4140
|
), Ns = $(
|
|
4117
4141
|
oe,
|
|
4118
|
-
|
|
4119
|
-
),
|
|
4142
|
+
Bn
|
|
4143
|
+
), Fn = [
|
|
4120
4144
|
...R,
|
|
4121
4145
|
{
|
|
4122
4146
|
label: "Voucher",
|
|
@@ -4128,7 +4152,7 @@ const R = [
|
|
|
4128
4152
|
t.delete
|
|
4129
4153
|
]
|
|
4130
4154
|
}
|
|
4131
|
-
],
|
|
4155
|
+
], On = [
|
|
4132
4156
|
...R,
|
|
4133
4157
|
{
|
|
4134
4158
|
label: "Membership",
|
|
@@ -4140,15 +4164,15 @@ const R = [
|
|
|
4140
4164
|
t.delete
|
|
4141
4165
|
]
|
|
4142
4166
|
}
|
|
4143
|
-
],
|
|
4144
|
-
|
|
4145
|
-
|
|
4167
|
+
], qn = $(
|
|
4168
|
+
fn,
|
|
4169
|
+
yn,
|
|
4170
|
+
js,
|
|
4146
4171
|
Gs,
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
hr,
|
|
4172
|
+
vn,
|
|
4173
|
+
hn,
|
|
4150
4174
|
Ns,
|
|
4151
|
-
|
|
4175
|
+
wn,
|
|
4152
4176
|
Es,
|
|
4153
4177
|
Os,
|
|
4154
4178
|
qs,
|
|
@@ -4160,170 +4184,170 @@ const R = [
|
|
|
4160
4184
|
Zs,
|
|
4161
4185
|
xs,
|
|
4162
4186
|
Vs,
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
),
|
|
4187
|
+
Ps,
|
|
4188
|
+
Fs
|
|
4189
|
+
), Hn = $(
|
|
4166
4190
|
oe,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
),
|
|
4191
|
+
Ys,
|
|
4192
|
+
Mn
|
|
4193
|
+
), Xn = $(
|
|
4170
4194
|
oe,
|
|
4171
|
-
|
|
4172
|
-
),
|
|
4173
|
-
[`set_${
|
|
4195
|
+
Fn
|
|
4196
|
+
), Qn = $(On), In = {
|
|
4197
|
+
[`set_${o.crm}`]: {
|
|
4174
4198
|
key: "sys:crm:access",
|
|
4175
4199
|
name: "CRM Access",
|
|
4176
|
-
permissions:
|
|
4200
|
+
permissions: qn
|
|
4177
4201
|
},
|
|
4178
|
-
[`set_${
|
|
4202
|
+
[`set_${o.crm_promotion}`]: {
|
|
4179
4203
|
key: "sys:crm:promotion",
|
|
4180
4204
|
name: "CRM Promotion",
|
|
4181
|
-
permissions:
|
|
4205
|
+
permissions: Hn
|
|
4182
4206
|
},
|
|
4183
|
-
[`set_${
|
|
4207
|
+
[`set_${o.crm_voucher}`]: {
|
|
4184
4208
|
key: "sys:crm:voucher",
|
|
4185
4209
|
name: "CRM Voucher",
|
|
4186
|
-
permissions:
|
|
4210
|
+
permissions: Xn
|
|
4187
4211
|
},
|
|
4188
|
-
[`set_${
|
|
4212
|
+
[`set_${o.crm_membership}`]: {
|
|
4189
4213
|
key: "sys:crm:membership",
|
|
4190
4214
|
name: "CRM Membership",
|
|
4191
|
-
permissions:
|
|
4215
|
+
permissions: Qn
|
|
4192
4216
|
},
|
|
4193
|
-
[`set_${
|
|
4217
|
+
[`set_${o.crm_analytic}`]: {
|
|
4194
4218
|
key: "sys:crm:analytic",
|
|
4195
4219
|
name: "CRM Analytic",
|
|
4196
4220
|
permissions: Es
|
|
4197
4221
|
},
|
|
4198
|
-
[`set_${
|
|
4222
|
+
[`set_${o.crm_tier}`]: {
|
|
4199
4223
|
key: "sys:crm:tier",
|
|
4200
4224
|
name: "CRM Tier",
|
|
4201
4225
|
permissions: Os
|
|
4202
4226
|
},
|
|
4203
|
-
[`set_${
|
|
4227
|
+
[`set_${o.crm_title}`]: {
|
|
4204
4228
|
key: "sys:crm:title",
|
|
4205
4229
|
name: "CRM Title",
|
|
4206
4230
|
permissions: qs
|
|
4207
4231
|
},
|
|
4208
|
-
[`set_${
|
|
4232
|
+
[`set_${o.crm_broadcast}`]: {
|
|
4209
4233
|
key: "sys:crm:broadcast",
|
|
4210
4234
|
name: "CRM Broadcast",
|
|
4211
4235
|
permissions: Hs
|
|
4212
4236
|
},
|
|
4213
|
-
[`set_${
|
|
4237
|
+
[`set_${o.crm_point}`]: {
|
|
4214
4238
|
key: "sys:crm:point",
|
|
4215
4239
|
name: "CRM Point",
|
|
4216
4240
|
permissions: Xs
|
|
4217
4241
|
},
|
|
4218
|
-
[`set_${
|
|
4242
|
+
[`set_${o.crm_credit}`]: {
|
|
4219
4243
|
key: "sys:crm:credit",
|
|
4220
4244
|
name: "CRM Credit",
|
|
4221
4245
|
permissions: Qs
|
|
4222
4246
|
},
|
|
4223
|
-
[`set_${
|
|
4247
|
+
[`set_${o.crm_experience}`]: {
|
|
4224
4248
|
key: "sys:crm:experience",
|
|
4225
4249
|
name: "CRM Experience",
|
|
4226
4250
|
permissions: Is
|
|
4227
4251
|
},
|
|
4228
|
-
[`set_${
|
|
4252
|
+
[`set_${o.crm_game}`]: {
|
|
4229
4253
|
key: "sys:crm:game",
|
|
4230
4254
|
name: "CRM Game",
|
|
4231
4255
|
permissions: Rs
|
|
4232
4256
|
},
|
|
4233
|
-
[`set_${
|
|
4257
|
+
[`set_${o.crm_mission}`]: {
|
|
4234
4258
|
key: "sys:crm:mission",
|
|
4235
4259
|
name: "CRM Mission",
|
|
4236
4260
|
permissions: Zs
|
|
4237
4261
|
},
|
|
4238
|
-
[`set_${
|
|
4262
|
+
[`set_${o.crm_loyaltyMember}`]: {
|
|
4239
4263
|
key: "sys:crm:loyaltyMember",
|
|
4240
4264
|
name: "CRM Loyalty Member",
|
|
4241
4265
|
permissions: xs
|
|
4242
4266
|
},
|
|
4243
|
-
[`set_${
|
|
4267
|
+
[`set_${o.crm_loyaltySegment}`]: {
|
|
4244
4268
|
key: "sys:crm:loyaltySegment",
|
|
4245
4269
|
name: "CRM Loyalty Segment",
|
|
4246
4270
|
permissions: Vs
|
|
4247
4271
|
},
|
|
4248
|
-
[`set_${
|
|
4272
|
+
[`set_${o.crm_loyaltyCard}`]: {
|
|
4249
4273
|
key: "sys:crm:loyaltyCard",
|
|
4250
4274
|
name: "CRM Loyalty Card",
|
|
4251
|
-
permissions:
|
|
4275
|
+
permissions: Ps
|
|
4252
4276
|
},
|
|
4253
|
-
[`set_${
|
|
4277
|
+
[`set_${o.crm_referral}`]: {
|
|
4254
4278
|
key: "sys:crm:referral",
|
|
4255
4279
|
name: "CRM Referral",
|
|
4256
|
-
permissions:
|
|
4280
|
+
permissions: Pn
|
|
4257
4281
|
},
|
|
4258
|
-
[`set_${
|
|
4282
|
+
[`set_${o.crm_store}`]: {
|
|
4259
4283
|
key: "sys:crm:store",
|
|
4260
4284
|
name: "CRM Store",
|
|
4261
|
-
permissions:
|
|
4285
|
+
permissions: Gs
|
|
4262
4286
|
},
|
|
4263
|
-
[`set_${
|
|
4287
|
+
[`set_${o.crm_transaction}`]: {
|
|
4264
4288
|
key: "sys:crm:transaction",
|
|
4265
4289
|
name: "CRM Transaction",
|
|
4266
|
-
permissions:
|
|
4290
|
+
permissions: js
|
|
4267
4291
|
},
|
|
4268
|
-
[`set_${
|
|
4292
|
+
[`set_${o.crm_setting}`]: {
|
|
4269
4293
|
key: "sys:crm:setting",
|
|
4270
4294
|
name: "CRM Setting",
|
|
4271
4295
|
permissions: Ns
|
|
4272
4296
|
},
|
|
4273
|
-
[`set_${
|
|
4297
|
+
[`set_${o.crm_bin}`]: {
|
|
4274
4298
|
key: "sys:crm:bin",
|
|
4275
4299
|
name: "CRM Bin",
|
|
4276
|
-
permissions:
|
|
4300
|
+
permissions: Fs
|
|
4277
4301
|
}
|
|
4278
4302
|
};
|
|
4279
|
-
var
|
|
4303
|
+
var G = /* @__PURE__ */ ((e) => (e.inventory = "inventory", e.inventory_stock = "inventory::stock", e.inventory_stockAdjustment = "inventory::stockAdjustment", e.inventory_stockRecalculation = "inventory::stockRecalculation", e.inventory_unitCostHistory = "inventory::unitCostHistory", e.inventory_wastageTemplate = "inventory::wastageTemplate", e.inventory_closing = "inventory::closing", e.inventory_closingDraft = "inventory::closingDraft", e.inventory_closingTemplate = "inventory::closingTemplate", e.inventory_ingredient = "inventory::ingredient", e.inventory_ingredientGroup = "inventory::ingredientGroup", e.inventory_recipe = "inventory::recipe", e.inventory_unit = "inventory::unit", e.inventory_orderTemplate = "inventory::orderTemplate", e.inventory_orderDraft = "inventory::orderDraft", e.inventory_printTemplate = "inventory::printTemplate", e.inventory_purchaseOrder = "inventory::purchaseOrder", e.inventory_transferOutApproval = "inventory::transferOutApproval", e.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", e.inventory_surcharge = "inventory::surcharge", e.inventory_supplier = "inventory::supplier", e.inventory_warehouse = "inventory::warehouse", e.inventory_publish = "inventory::publish", e.inventory_integration = "inventory::integration", e.inventory_deliveryOrder = "inventory::deliveryOrder", e.inventory_shipment = "inventory::shipment", e.inventory_orderDraftApproval = "inventory::orderDraftApproval", e))(G || {});
|
|
4280
4304
|
const K = [
|
|
4281
4305
|
{
|
|
4282
4306
|
label: "Inventory",
|
|
4283
|
-
subject:
|
|
4307
|
+
subject: G.inventory,
|
|
4284
4308
|
actions: [t.read]
|
|
4285
4309
|
}
|
|
4286
4310
|
], Et = [
|
|
4287
4311
|
...K,
|
|
4288
4312
|
{
|
|
4289
4313
|
label: "Stock",
|
|
4290
|
-
subject:
|
|
4314
|
+
subject: G.inventory_stock,
|
|
4291
4315
|
actions: [t.read, t.create, t.update]
|
|
4292
4316
|
},
|
|
4293
4317
|
{
|
|
4294
4318
|
label: "Stock Adjustment",
|
|
4295
|
-
subject:
|
|
4319
|
+
subject: G.inventory_stockAdjustment,
|
|
4296
4320
|
actions: [t.read, t.update]
|
|
4297
4321
|
},
|
|
4298
4322
|
{
|
|
4299
4323
|
label: "Stock Recalculation",
|
|
4300
|
-
subject:
|
|
4324
|
+
subject: G.inventory_stockRecalculation,
|
|
4301
4325
|
actions: [t.update]
|
|
4302
4326
|
},
|
|
4303
4327
|
{
|
|
4304
4328
|
label: "Unit Cost History",
|
|
4305
|
-
subject:
|
|
4329
|
+
subject: G.inventory_unitCostHistory,
|
|
4306
4330
|
actions: [t.read]
|
|
4307
4331
|
}
|
|
4308
|
-
],
|
|
4332
|
+
], Rn = [
|
|
4309
4333
|
...K,
|
|
4310
4334
|
{
|
|
4311
4335
|
label: "Stock Adjustment",
|
|
4312
|
-
subject:
|
|
4336
|
+
subject: G.inventory_stockAdjustment,
|
|
4313
4337
|
actions: [t.update]
|
|
4314
4338
|
}
|
|
4315
4339
|
], zs = [
|
|
4316
4340
|
...K,
|
|
4317
4341
|
{
|
|
4318
4342
|
label: "Unit Cost History",
|
|
4319
|
-
subject:
|
|
4343
|
+
subject: G.inventory_unitCostHistory,
|
|
4320
4344
|
actions: [t.read, t.update]
|
|
4321
4345
|
}
|
|
4322
4346
|
], Us = [
|
|
4323
4347
|
...K,
|
|
4324
4348
|
{
|
|
4325
4349
|
label: "Wastage Template",
|
|
4326
|
-
subject:
|
|
4350
|
+
subject: G.inventory_wastageTemplate,
|
|
4327
4351
|
actions: [
|
|
4328
4352
|
t.read,
|
|
4329
4353
|
t.create,
|
|
@@ -4341,51 +4365,51 @@ const xt = [
|
|
|
4341
4365
|
...K,
|
|
4342
4366
|
{
|
|
4343
4367
|
label: "Closing",
|
|
4344
|
-
subject:
|
|
4368
|
+
subject: G.inventory_closing,
|
|
4345
4369
|
actions: [t.read, t.create]
|
|
4346
4370
|
},
|
|
4347
4371
|
{
|
|
4348
4372
|
label: "Stock Recalculation",
|
|
4349
|
-
subject:
|
|
4373
|
+
subject: G.inventory_stockRecalculation,
|
|
4350
4374
|
actions: [t.read, t.update]
|
|
4351
4375
|
},
|
|
4352
4376
|
{
|
|
4353
4377
|
label: "Closing Draft",
|
|
4354
|
-
subject:
|
|
4378
|
+
subject: G.inventory_closingDraft,
|
|
4355
4379
|
actions: [t.read]
|
|
4356
4380
|
}
|
|
4357
4381
|
], Ws = [
|
|
4358
4382
|
...K,
|
|
4359
4383
|
{
|
|
4360
4384
|
label: "Closing Draft",
|
|
4361
|
-
subject:
|
|
4385
|
+
subject: G.inventory_closingDraft,
|
|
4362
4386
|
actions: [t.read, t.create, t.update]
|
|
4363
4387
|
},
|
|
4364
4388
|
{
|
|
4365
4389
|
label: "Closing",
|
|
4366
|
-
subject:
|
|
4390
|
+
subject: G.inventory_closing,
|
|
4367
4391
|
actions: [t.read]
|
|
4368
4392
|
},
|
|
4369
4393
|
{
|
|
4370
4394
|
label: "Stock Recalculation",
|
|
4371
|
-
subject:
|
|
4395
|
+
subject: G.inventory_stockRecalculation,
|
|
4372
4396
|
actions: [t.read, t.update]
|
|
4373
4397
|
},
|
|
4374
4398
|
{
|
|
4375
4399
|
label: "Stock",
|
|
4376
|
-
subject:
|
|
4400
|
+
subject: G.inventory_stock,
|
|
4377
4401
|
actions: [t.read]
|
|
4378
4402
|
},
|
|
4379
4403
|
{
|
|
4380
4404
|
label: "Stock Adjustment",
|
|
4381
|
-
subject:
|
|
4405
|
+
subject: G.inventory_stockAdjustment,
|
|
4382
4406
|
actions: [t.read]
|
|
4383
4407
|
}
|
|
4384
4408
|
], Ts = [
|
|
4385
4409
|
...K,
|
|
4386
4410
|
{
|
|
4387
4411
|
label: "Closing Template",
|
|
4388
|
-
subject:
|
|
4412
|
+
subject: G.inventory_closingTemplate,
|
|
4389
4413
|
actions: [
|
|
4390
4414
|
t.read,
|
|
4391
4415
|
t.create,
|
|
@@ -4395,7 +4419,7 @@ const xt = [
|
|
|
4395
4419
|
},
|
|
4396
4420
|
{
|
|
4397
4421
|
label: "Closing",
|
|
4398
|
-
subject:
|
|
4422
|
+
subject: G.inventory_closing,
|
|
4399
4423
|
actions: [t.read]
|
|
4400
4424
|
}
|
|
4401
4425
|
];
|
|
@@ -4404,112 +4428,112 @@ const xt = [
|
|
|
4404
4428
|
...Ws,
|
|
4405
4429
|
...Ts
|
|
4406
4430
|
];
|
|
4407
|
-
const
|
|
4431
|
+
const Zn = [
|
|
4408
4432
|
{
|
|
4409
4433
|
label: "Inventory",
|
|
4410
|
-
subject:
|
|
4434
|
+
subject: G.inventory,
|
|
4411
4435
|
actions: [t.read, t.update]
|
|
4412
4436
|
},
|
|
4413
4437
|
{
|
|
4414
4438
|
label: "Order Template",
|
|
4415
|
-
subject:
|
|
4439
|
+
subject: G.inventory_orderTemplate,
|
|
4416
4440
|
actions: [t.read, t.update]
|
|
4417
4441
|
},
|
|
4418
4442
|
{
|
|
4419
4443
|
label: "Wastage Template",
|
|
4420
|
-
subject:
|
|
4444
|
+
subject: G.inventory_wastageTemplate,
|
|
4421
4445
|
actions: [t.read, t.update]
|
|
4422
4446
|
},
|
|
4423
4447
|
{
|
|
4424
4448
|
label: "Closing Template",
|
|
4425
|
-
subject:
|
|
4449
|
+
subject: G.inventory_closingTemplate,
|
|
4426
4450
|
actions: [t.read, t.update]
|
|
4427
4451
|
}
|
|
4428
|
-
],
|
|
4452
|
+
], Nn = [
|
|
4429
4453
|
{
|
|
4430
4454
|
label: "Inventory",
|
|
4431
|
-
subject:
|
|
4455
|
+
subject: G.inventory,
|
|
4432
4456
|
actions: [t.read, t.update]
|
|
4433
4457
|
}
|
|
4434
|
-
],
|
|
4458
|
+
], zn = [
|
|
4435
4459
|
{
|
|
4436
4460
|
label: "Inventory",
|
|
4437
|
-
subject:
|
|
4461
|
+
subject: G.inventory,
|
|
4438
4462
|
actions: [t.read, t.update]
|
|
4439
4463
|
}
|
|
4440
|
-
],
|
|
4464
|
+
], Un = [
|
|
4441
4465
|
{
|
|
4442
4466
|
label: "Inventory",
|
|
4443
|
-
subject:
|
|
4467
|
+
subject: G.inventory,
|
|
4444
4468
|
actions: [t.read, t.update]
|
|
4445
4469
|
}
|
|
4446
4470
|
], Ss = [
|
|
4447
4471
|
{
|
|
4448
4472
|
label: "Purchase Order",
|
|
4449
|
-
subject:
|
|
4473
|
+
subject: G.inventory_purchaseOrder,
|
|
4450
4474
|
actions: [t.read, t.create, t.update]
|
|
4451
4475
|
},
|
|
4452
4476
|
{
|
|
4453
4477
|
label: "Inventory",
|
|
4454
|
-
subject:
|
|
4478
|
+
subject: G.inventory,
|
|
4455
4479
|
actions: [t.read, t.create, t.update]
|
|
4456
4480
|
},
|
|
4457
4481
|
{
|
|
4458
4482
|
label: "Closing",
|
|
4459
|
-
subject:
|
|
4483
|
+
subject: G.inventory_closing,
|
|
4460
4484
|
actions: [t.read]
|
|
4461
4485
|
},
|
|
4462
4486
|
{
|
|
4463
4487
|
label: "Order Template",
|
|
4464
|
-
subject:
|
|
4488
|
+
subject: G.inventory_orderTemplate,
|
|
4465
4489
|
actions: [t.read]
|
|
4466
4490
|
},
|
|
4467
4491
|
{
|
|
4468
4492
|
label: "Supplier",
|
|
4469
|
-
subject:
|
|
4493
|
+
subject: G.inventory_supplier,
|
|
4470
4494
|
actions: [t.read]
|
|
4471
4495
|
},
|
|
4472
4496
|
{
|
|
4473
4497
|
label: "Surcharge",
|
|
4474
|
-
subject:
|
|
4498
|
+
subject: G.inventory_surcharge,
|
|
4475
4499
|
actions: [t.read]
|
|
4476
4500
|
},
|
|
4477
4501
|
{
|
|
4478
4502
|
label: "Delivery Order",
|
|
4479
|
-
subject:
|
|
4503
|
+
subject: G.inventory_deliveryOrder,
|
|
4480
4504
|
actions: [t.read, t.create, t.update]
|
|
4481
4505
|
},
|
|
4482
4506
|
{
|
|
4483
4507
|
label: "Shipment",
|
|
4484
|
-
subject:
|
|
4508
|
+
subject: G.inventory_shipment,
|
|
4485
4509
|
actions: [t.read, t.update]
|
|
4486
4510
|
}
|
|
4487
4511
|
], ks = [
|
|
4488
4512
|
{
|
|
4489
4513
|
label: "Purchase Order",
|
|
4490
|
-
subject:
|
|
4514
|
+
subject: G.inventory_purchaseOrder,
|
|
4491
4515
|
actions: [t.read, t.update]
|
|
4492
4516
|
},
|
|
4493
4517
|
{
|
|
4494
4518
|
label: "Inventory",
|
|
4495
|
-
subject:
|
|
4519
|
+
subject: G.inventory,
|
|
4496
4520
|
actions: [t.read, t.create, t.update]
|
|
4497
4521
|
},
|
|
4498
4522
|
{
|
|
4499
4523
|
label: "Delivery Order",
|
|
4500
|
-
subject:
|
|
4524
|
+
subject: G.inventory_deliveryOrder,
|
|
4501
4525
|
actions: [t.read, t.create, t.update]
|
|
4502
4526
|
},
|
|
4503
4527
|
{
|
|
4504
4528
|
label: "Shipment",
|
|
4505
|
-
subject:
|
|
4529
|
+
subject: G.inventory_shipment,
|
|
4506
4530
|
actions: [t.read, t.update]
|
|
4507
4531
|
}
|
|
4508
4532
|
], Ks = [
|
|
4509
4533
|
...K,
|
|
4510
4534
|
{
|
|
4511
4535
|
label: "Surcharge",
|
|
4512
|
-
subject:
|
|
4536
|
+
subject: G.inventory_surcharge,
|
|
4513
4537
|
actions: [
|
|
4514
4538
|
t.read,
|
|
4515
4539
|
t.create,
|
|
@@ -4519,14 +4543,14 @@ const Zr = [
|
|
|
4519
4543
|
},
|
|
4520
4544
|
{
|
|
4521
4545
|
label: "Supplier",
|
|
4522
|
-
subject:
|
|
4546
|
+
subject: G.inventory_supplier,
|
|
4523
4547
|
actions: [t.read]
|
|
4524
4548
|
}
|
|
4525
4549
|
], Ls = [
|
|
4526
4550
|
...K,
|
|
4527
4551
|
{
|
|
4528
4552
|
label: "Order Template",
|
|
4529
|
-
subject:
|
|
4553
|
+
subject: G.inventory_orderTemplate,
|
|
4530
4554
|
actions: [
|
|
4531
4555
|
t.read,
|
|
4532
4556
|
t.create,
|
|
@@ -4536,19 +4560,19 @@ const Zr = [
|
|
|
4536
4560
|
},
|
|
4537
4561
|
{
|
|
4538
4562
|
label: "Supplier",
|
|
4539
|
-
subject:
|
|
4563
|
+
subject: G.inventory_supplier,
|
|
4540
4564
|
actions: [t.read]
|
|
4541
4565
|
},
|
|
4542
4566
|
{
|
|
4543
4567
|
label: "Shipment",
|
|
4544
|
-
subject:
|
|
4568
|
+
subject: G.inventory_shipment,
|
|
4545
4569
|
actions: [t.read, t.update]
|
|
4546
4570
|
}
|
|
4547
|
-
],
|
|
4571
|
+
], Wn = [
|
|
4548
4572
|
...K,
|
|
4549
4573
|
{
|
|
4550
4574
|
label: "Order Draft Approval",
|
|
4551
|
-
subject:
|
|
4575
|
+
subject: G.inventory_orderDraftApproval,
|
|
4552
4576
|
actions: [t.update]
|
|
4553
4577
|
}
|
|
4554
4578
|
];
|
|
@@ -4558,11 +4582,11 @@ const Zr = [
|
|
|
4558
4582
|
...Ks,
|
|
4559
4583
|
...Ls
|
|
4560
4584
|
];
|
|
4561
|
-
const
|
|
4585
|
+
const Tn = [
|
|
4562
4586
|
...K,
|
|
4563
4587
|
{
|
|
4564
4588
|
label: "Supplier",
|
|
4565
|
-
subject:
|
|
4589
|
+
subject: G.inventory_supplier,
|
|
4566
4590
|
actions: [
|
|
4567
4591
|
t.read,
|
|
4568
4592
|
t.create,
|
|
@@ -4572,14 +4596,14 @@ const Tr = [
|
|
|
4572
4596
|
},
|
|
4573
4597
|
{
|
|
4574
4598
|
label: "Order Template",
|
|
4575
|
-
subject:
|
|
4599
|
+
subject: G.inventory_orderTemplate,
|
|
4576
4600
|
actions: [t.read, t.update]
|
|
4577
4601
|
}
|
|
4578
|
-
],
|
|
4602
|
+
], Sn = [
|
|
4579
4603
|
...K,
|
|
4580
4604
|
{
|
|
4581
4605
|
label: "Warehouse",
|
|
4582
|
-
subject:
|
|
4606
|
+
subject: G.inventory_warehouse,
|
|
4583
4607
|
actions: [
|
|
4584
4608
|
t.read,
|
|
4585
4609
|
t.create,
|
|
@@ -4587,24 +4611,24 @@ const Tr = [
|
|
|
4587
4611
|
t.delete
|
|
4588
4612
|
]
|
|
4589
4613
|
}
|
|
4590
|
-
],
|
|
4614
|
+
], kn = [
|
|
4591
4615
|
{
|
|
4592
4616
|
label: "Inventory",
|
|
4593
|
-
subject:
|
|
4617
|
+
subject: G.inventory,
|
|
4594
4618
|
actions: [t.read, t.update]
|
|
4595
4619
|
}
|
|
4596
|
-
],
|
|
4620
|
+
], Kn = [
|
|
4597
4621
|
...K,
|
|
4598
4622
|
{
|
|
4599
4623
|
label: "Inventory",
|
|
4600
|
-
subject:
|
|
4624
|
+
subject: G.inventory,
|
|
4601
4625
|
actions: [t.update]
|
|
4602
4626
|
}
|
|
4603
|
-
],
|
|
4627
|
+
], Ln = [
|
|
4604
4628
|
...K,
|
|
4605
4629
|
{
|
|
4606
4630
|
label: "Integration",
|
|
4607
|
-
subject:
|
|
4631
|
+
subject: G.inventory_integration,
|
|
4608
4632
|
actions: [t.read, t.create, t.update]
|
|
4609
4633
|
}
|
|
4610
4634
|
];
|
|
@@ -4613,121 +4637,121 @@ const Tr = [
|
|
|
4613
4637
|
...Et,
|
|
4614
4638
|
...xt
|
|
4615
4639
|
];
|
|
4616
|
-
const
|
|
4617
|
-
[`set_${
|
|
4640
|
+
const Jn = {
|
|
4641
|
+
[`set_${o.inventory_stockBalance}`]: {
|
|
4618
4642
|
key: "sys:inventory:stock_balance",
|
|
4619
4643
|
name: "Stock Balance",
|
|
4620
4644
|
permissions: Et
|
|
4621
4645
|
},
|
|
4622
|
-
[`set_${
|
|
4646
|
+
[`set_${o.inventory_stockAdjustment}`]: {
|
|
4623
4647
|
key: "sys:inventory:stock_adjustment",
|
|
4624
4648
|
name: "Stock Adjustment",
|
|
4625
|
-
permissions:
|
|
4649
|
+
permissions: Rn
|
|
4626
4650
|
},
|
|
4627
|
-
[`set_${
|
|
4651
|
+
[`set_${o.inventory_unitCostHistory}`]: {
|
|
4628
4652
|
key: "sys:inventory:unit_cost_history",
|
|
4629
4653
|
name: "Unit Cost History",
|
|
4630
4654
|
permissions: zs
|
|
4631
4655
|
},
|
|
4632
|
-
[`set_${
|
|
4656
|
+
[`set_${o.inventory_wastageTemplate}`]: {
|
|
4633
4657
|
key: "sys:inventory:wastage_template",
|
|
4634
4658
|
name: "Wastage Template",
|
|
4635
4659
|
permissions: Us
|
|
4636
4660
|
},
|
|
4637
|
-
[`set_${
|
|
4661
|
+
[`set_${o.inventory_closingHistory}`]: {
|
|
4638
4662
|
key: "sys:inventory:closing_history",
|
|
4639
4663
|
name: "Closing History",
|
|
4640
4664
|
permissions: xt
|
|
4641
4665
|
},
|
|
4642
|
-
[`set_${
|
|
4666
|
+
[`set_${o.inventory_closingTemplate}`]: {
|
|
4643
4667
|
key: "sys:inventory:closing_template",
|
|
4644
4668
|
name: "Closing Template",
|
|
4645
4669
|
permissions: Ts
|
|
4646
4670
|
},
|
|
4647
|
-
[`set_${
|
|
4671
|
+
[`set_${o.inventory_closingDraft}`]: {
|
|
4648
4672
|
key: "sys:inventory:closing_draft",
|
|
4649
4673
|
name: "Closing Draft",
|
|
4650
4674
|
permissions: Ws
|
|
4651
4675
|
},
|
|
4652
|
-
[`set_${
|
|
4676
|
+
[`set_${o.inventory_ingredient}`]: {
|
|
4653
4677
|
key: "sys:inventory:ingredient",
|
|
4654
4678
|
name: "Ingredient",
|
|
4655
|
-
permissions:
|
|
4679
|
+
permissions: Zn
|
|
4656
4680
|
},
|
|
4657
|
-
[`set_${
|
|
4681
|
+
[`set_${o.inventory_ingredientGroup}`]: {
|
|
4658
4682
|
key: "sys:inventory:ingredient_group",
|
|
4659
4683
|
name: "Ingredient Group",
|
|
4660
|
-
permissions:
|
|
4684
|
+
permissions: Nn
|
|
4661
4685
|
},
|
|
4662
|
-
[`set_${
|
|
4686
|
+
[`set_${o.inventory_recipe}`]: {
|
|
4663
4687
|
key: "sys:inventory:recipe",
|
|
4664
4688
|
name: "Recipe",
|
|
4665
|
-
permissions:
|
|
4689
|
+
permissions: zn
|
|
4666
4690
|
},
|
|
4667
|
-
[`set_${
|
|
4691
|
+
[`set_${o.inventory_unit}`]: {
|
|
4668
4692
|
key: "sys:inventory:unit",
|
|
4669
4693
|
name: "Unit",
|
|
4670
|
-
permissions:
|
|
4694
|
+
permissions: Un
|
|
4671
4695
|
},
|
|
4672
|
-
[`set_${
|
|
4696
|
+
[`set_${o.inventory_purchaseTransfer}`]: {
|
|
4673
4697
|
key: "sys:inventory:purchase_transfer",
|
|
4674
4698
|
name: "Purchase Transfer",
|
|
4675
4699
|
permissions: Ss
|
|
4676
4700
|
},
|
|
4677
|
-
[`set_${
|
|
4701
|
+
[`set_${o.inventory_orderDraftApproval}`]: {
|
|
4678
4702
|
key: "sys:inventory:order_draft_approval",
|
|
4679
4703
|
name: "Order Draft Approval",
|
|
4680
|
-
permissions:
|
|
4704
|
+
permissions: Wn
|
|
4681
4705
|
},
|
|
4682
|
-
[`set_${
|
|
4706
|
+
[`set_${o.inventory_transferOut}`]: {
|
|
4683
4707
|
key: "sys:inventory:transfer_out",
|
|
4684
4708
|
name: "Transfer Out",
|
|
4685
4709
|
permissions: ks
|
|
4686
4710
|
},
|
|
4687
|
-
[`set_${
|
|
4711
|
+
[`set_${o.inventory_surcharge}`]: {
|
|
4688
4712
|
key: "sys:inventory:surcharge",
|
|
4689
4713
|
name: "Surcharge",
|
|
4690
4714
|
permissions: Ks
|
|
4691
4715
|
},
|
|
4692
|
-
[`set_${
|
|
4716
|
+
[`set_${o.inventory_orderTemplate}`]: {
|
|
4693
4717
|
key: "sys:inventory:order_template",
|
|
4694
4718
|
name: "Order Template",
|
|
4695
4719
|
permissions: Ls
|
|
4696
4720
|
},
|
|
4697
|
-
[`set_${
|
|
4721
|
+
[`set_${o.inventory_supplier}`]: {
|
|
4698
4722
|
key: "sys:inventory:supplier",
|
|
4699
4723
|
name: "Supplier",
|
|
4700
|
-
permissions:
|
|
4724
|
+
permissions: Tn
|
|
4701
4725
|
},
|
|
4702
|
-
[`set_${
|
|
4726
|
+
[`set_${o.inventory_warehouse}`]: {
|
|
4703
4727
|
key: "sys:inventory:warehouse",
|
|
4704
4728
|
name: "Warehouse",
|
|
4705
|
-
permissions:
|
|
4729
|
+
permissions: Sn
|
|
4706
4730
|
},
|
|
4707
|
-
[`set_${
|
|
4731
|
+
[`set_${o.inventory_publish}`]: {
|
|
4708
4732
|
key: "sys:inventory:publish",
|
|
4709
4733
|
name: "Publish",
|
|
4710
|
-
permissions:
|
|
4734
|
+
permissions: kn
|
|
4711
4735
|
},
|
|
4712
|
-
[`set_${
|
|
4736
|
+
[`set_${o.inventory_import}`]: {
|
|
4713
4737
|
key: "sys:inventory:import",
|
|
4714
4738
|
name: "Import",
|
|
4715
|
-
permissions:
|
|
4739
|
+
permissions: Kn
|
|
4716
4740
|
},
|
|
4717
|
-
[`set_${
|
|
4741
|
+
[`set_${o.inventory_integration}`]: {
|
|
4718
4742
|
key: "sys:inventory:integration",
|
|
4719
4743
|
name: "Integration",
|
|
4720
|
-
permissions:
|
|
4744
|
+
permissions: Ln
|
|
4721
4745
|
}
|
|
4722
4746
|
};
|
|
4723
4747
|
var Ee = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e))(Ee || {});
|
|
4724
|
-
const
|
|
4748
|
+
const _n = {
|
|
4725
4749
|
/**
|
|
4726
4750
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
4727
4751
|
* Injects: team member list read + pos role read
|
|
4728
4752
|
* Users who can manage team members need to see the team member list and assign POS roles.
|
|
4729
4753
|
*/
|
|
4730
|
-
[`set_${
|
|
4754
|
+
[`set_${o.hrm_teamMember}`]: {
|
|
4731
4755
|
key: "sys:team_member_access",
|
|
4732
4756
|
name: "Team Member Access",
|
|
4733
4757
|
permissions: [
|
|
@@ -4738,7 +4762,7 @@ const _r = {
|
|
|
4738
4762
|
},
|
|
4739
4763
|
{
|
|
4740
4764
|
label: "Role resource",
|
|
4741
|
-
subject:
|
|
4765
|
+
subject: o.role,
|
|
4742
4766
|
actions: [t.read, t.update]
|
|
4743
4767
|
},
|
|
4744
4768
|
{
|
|
@@ -4752,7 +4776,7 @@ const _r = {
|
|
|
4752
4776
|
* Triggered by: hrm_employee:manage (portal toggle)
|
|
4753
4777
|
* Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
|
|
4754
4778
|
*/
|
|
4755
|
-
[`set_${
|
|
4779
|
+
[`set_${o.hrm_employee}`]: {
|
|
4756
4780
|
key: "sys:employee_access",
|
|
4757
4781
|
name: "Employee Access",
|
|
4758
4782
|
permissions: [
|
|
@@ -4763,7 +4787,7 @@ const _r = {
|
|
|
4763
4787
|
},
|
|
4764
4788
|
{
|
|
4765
4789
|
label: "Restaurant resource",
|
|
4766
|
-
subject:
|
|
4790
|
+
subject: o.restaurant,
|
|
4767
4791
|
actions: [t.read]
|
|
4768
4792
|
},
|
|
4769
4793
|
{
|
|
@@ -4779,7 +4803,7 @@ const _r = {
|
|
|
4779
4803
|
* Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
|
|
4780
4804
|
* conflating the audit-log read dependency with the full team-management module grant.
|
|
4781
4805
|
*/
|
|
4782
|
-
[`set_${
|
|
4806
|
+
[`set_${o.hrm_auditLog}`]: {
|
|
4783
4807
|
key: "sys:audit_log_access",
|
|
4784
4808
|
name: "Audit Log Access",
|
|
4785
4809
|
permissions: [
|
|
@@ -4795,7 +4819,7 @@ var Js = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e)
|
|
|
4795
4819
|
const Wt = [
|
|
4796
4820
|
{
|
|
4797
4821
|
label: "Payout Account",
|
|
4798
|
-
subject:
|
|
4822
|
+
subject: o.payment_payoutAccount,
|
|
4799
4823
|
actions: [t.read]
|
|
4800
4824
|
},
|
|
4801
4825
|
{
|
|
@@ -4803,22 +4827,22 @@ const Wt = [
|
|
|
4803
4827
|
subject: Js.payment_terminals,
|
|
4804
4828
|
actions: [t.read]
|
|
4805
4829
|
}
|
|
4806
|
-
], $
|
|
4807
|
-
[`set_${
|
|
4830
|
+
], $n = {
|
|
4831
|
+
[`set_${o.payment_transactions}`]: {
|
|
4808
4832
|
key: "sys:payment:transactions",
|
|
4809
4833
|
name: "Payment Transactions Access",
|
|
4810
4834
|
permissions: Wt
|
|
4811
4835
|
},
|
|
4812
|
-
[`set_${
|
|
4836
|
+
[`set_${o.payment_settlements}`]: {
|
|
4813
4837
|
key: "sys:payment:settlements",
|
|
4814
4838
|
name: "Payment Settlements Access",
|
|
4815
4839
|
permissions: Wt
|
|
4816
4840
|
}
|
|
4817
4841
|
}, ea = {
|
|
4818
|
-
...
|
|
4819
|
-
...
|
|
4820
|
-
...
|
|
4821
|
-
...$
|
|
4842
|
+
...In,
|
|
4843
|
+
...Jn,
|
|
4844
|
+
..._n,
|
|
4845
|
+
...$n
|
|
4822
4846
|
}, $a = Object.values(
|
|
4823
4847
|
ea
|
|
4824
4848
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
@@ -4831,19 +4855,19 @@ const Wt = [
|
|
|
4831
4855
|
function ta(e) {
|
|
4832
4856
|
return e.map((A) => ({
|
|
4833
4857
|
...A,
|
|
4834
|
-
subject:
|
|
4858
|
+
subject: bn(A.subject),
|
|
4835
4859
|
reason: A.source !== void 0 ? JSON.stringify(A.source) : A.reason
|
|
4836
4860
|
}));
|
|
4837
4861
|
}
|
|
4838
4862
|
function sa(e) {
|
|
4839
|
-
return new
|
|
4863
|
+
return new dn(ta(e));
|
|
4840
4864
|
}
|
|
4841
|
-
function
|
|
4842
|
-
const
|
|
4865
|
+
function ra(e, A, u) {
|
|
4866
|
+
const c = Array.isArray(e) ? e : [e], r = sa(A), m = (w) => w.subject, y = (w) => r.can(w.action, m(w), w.field) ? !0 : w.coverSubject !== void 0 ? r.can(w.action, w.coverSubject, w.field) : !1, h = c.find((w) => !y(w));
|
|
4843
4867
|
if (h) {
|
|
4844
|
-
const w =
|
|
4868
|
+
const w = r.relevantRuleFor(
|
|
4845
4869
|
h.action,
|
|
4846
|
-
|
|
4870
|
+
m(h),
|
|
4847
4871
|
h.field
|
|
4848
4872
|
);
|
|
4849
4873
|
return {
|
|
@@ -4852,66 +4876,66 @@ function na(e, A, u) {
|
|
|
4852
4876
|
decisiveRule: w ?? null
|
|
4853
4877
|
};
|
|
4854
4878
|
}
|
|
4855
|
-
const E =
|
|
4856
|
-
return { granted: !0, decisivePermission: E, decisiveRule:
|
|
4879
|
+
const E = c[0], Y = r.relevantRuleFor(E.action, m(E), E.field);
|
|
4880
|
+
return { granted: !0, decisivePermission: E, decisiveRule: Y ?? null };
|
|
4857
4881
|
}
|
|
4858
4882
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4859
|
-
const
|
|
4883
|
+
const na = () => {
|
|
4860
4884
|
};
|
|
4861
4885
|
function aa(e, A, u) {
|
|
4862
|
-
let
|
|
4863
|
-
|
|
4886
|
+
let c;
|
|
4887
|
+
tr(u) ? c = {
|
|
4864
4888
|
evaluating: u
|
|
4865
|
-
} :
|
|
4889
|
+
} : c = {};
|
|
4866
4890
|
const {
|
|
4867
|
-
lazy:
|
|
4868
|
-
evaluating:
|
|
4891
|
+
lazy: r = !1,
|
|
4892
|
+
evaluating: m = void 0,
|
|
4869
4893
|
shallow: y = !0,
|
|
4870
|
-
onError: h =
|
|
4871
|
-
} =
|
|
4894
|
+
onError: h = na
|
|
4895
|
+
} = c, E = ve(!r), Y = y ? sr(A) : ve(A);
|
|
4872
4896
|
let w = 0;
|
|
4873
|
-
return St(async (
|
|
4897
|
+
return St(async (P) => {
|
|
4874
4898
|
if (!E.value)
|
|
4875
4899
|
return;
|
|
4876
4900
|
w++;
|
|
4877
4901
|
const I = w;
|
|
4878
4902
|
let H = !1;
|
|
4879
|
-
|
|
4880
|
-
|
|
4903
|
+
m && Promise.resolve().then(() => {
|
|
4904
|
+
m.value = !0;
|
|
4881
4905
|
});
|
|
4882
4906
|
try {
|
|
4883
4907
|
const z = await e((S) => {
|
|
4884
|
-
|
|
4885
|
-
|
|
4908
|
+
P(() => {
|
|
4909
|
+
m && (m.value = !1), H || S();
|
|
4886
4910
|
});
|
|
4887
4911
|
});
|
|
4888
|
-
I === w && (
|
|
4912
|
+
I === w && (Y.value = z);
|
|
4889
4913
|
} catch (z) {
|
|
4890
4914
|
h(z);
|
|
4891
4915
|
} finally {
|
|
4892
|
-
|
|
4916
|
+
m && I === w && (m.value = !1), H = !0;
|
|
4893
4917
|
}
|
|
4894
|
-
}),
|
|
4918
|
+
}), r ? jt(() => (E.value = !0, Y.value)) : Y;
|
|
4895
4919
|
}
|
|
4896
4920
|
async function oa(e) {
|
|
4897
|
-
const { sessionUser: A, validationManifest: u } = e, { requiredRoles:
|
|
4921
|
+
const { sessionUser: A, validationManifest: u } = e, { requiredRoles: c, requiredCaslPermissions: r, customValidationFunction: m } = u;
|
|
4898
4922
|
if (!A)
|
|
4899
4923
|
return { canAccess: !1 };
|
|
4900
|
-
if (
|
|
4924
|
+
if (c && c.length > 0 && !c.includes(A._role || ""))
|
|
4901
4925
|
return Promise.resolve({
|
|
4902
4926
|
canAccess: !1,
|
|
4903
4927
|
message: "User does not have permission to access"
|
|
4904
4928
|
});
|
|
4905
|
-
if (
|
|
4906
|
-
const { granted: y } =
|
|
4929
|
+
if (r && r.length > 0) {
|
|
4930
|
+
const { granted: y } = ra(r, A.permissions);
|
|
4907
4931
|
if (!y)
|
|
4908
4932
|
return Promise.resolve({
|
|
4909
4933
|
canAccess: !1,
|
|
4910
4934
|
message: "User does not have permission to access"
|
|
4911
4935
|
});
|
|
4912
4936
|
}
|
|
4913
|
-
if (
|
|
4914
|
-
const y = await
|
|
4937
|
+
if (m) {
|
|
4938
|
+
const y = await m();
|
|
4915
4939
|
if (!y.canAccess)
|
|
4916
4940
|
return y;
|
|
4917
4941
|
}
|
|
@@ -4920,15 +4944,15 @@ async function oa(e) {
|
|
|
4920
4944
|
async function ia(e, A) {
|
|
4921
4945
|
for (const u of e.matched)
|
|
4922
4946
|
if (u.meta.validationManifest) {
|
|
4923
|
-
const
|
|
4947
|
+
const c = await oa({
|
|
4924
4948
|
sessionUser: A,
|
|
4925
4949
|
validationManifest: u.meta.validationManifest
|
|
4926
4950
|
});
|
|
4927
|
-
if (!
|
|
4951
|
+
if (!c.canAccess)
|
|
4928
4952
|
return {
|
|
4929
4953
|
canAccess: !1,
|
|
4930
|
-
message:
|
|
4931
|
-
redirectTo:
|
|
4954
|
+
message: c.message,
|
|
4955
|
+
redirectTo: pn
|
|
4932
4956
|
};
|
|
4933
4957
|
}
|
|
4934
4958
|
return {
|
|
@@ -4937,7 +4961,7 @@ async function ia(e, A) {
|
|
|
4937
4961
|
}
|
|
4938
4962
|
var Ct = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Ct || {});
|
|
4939
4963
|
function la() {
|
|
4940
|
-
const e =
|
|
4964
|
+
const e = Ar(), { sessionUser: A } = Yt();
|
|
4941
4965
|
return aa(
|
|
4942
4966
|
async () => {
|
|
4943
4967
|
e.matched;
|
|
@@ -4961,11 +4985,11 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4961
4985
|
subtitle: "UH OH! You don't have permission to access this page."
|
|
4962
4986
|
}, ua = {
|
|
4963
4987
|
noPermission: Aa
|
|
4964
|
-
},
|
|
4988
|
+
}, ma = {
|
|
4965
4989
|
title: "访问被拒绝",
|
|
4966
4990
|
subtitle: "哎呀!您没有权限访问此页面。"
|
|
4967
|
-
},
|
|
4968
|
-
noPermission:
|
|
4991
|
+
}, ga = {
|
|
4992
|
+
noPermission: ma
|
|
4969
4993
|
}, da = {
|
|
4970
4994
|
title: "存取被拒絕",
|
|
4971
4995
|
subtitle: "哎呀!您沒有權限存取此頁面。"
|
|
@@ -4982,12 +5006,12 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4982
5006
|
const { t: A } = Jt({
|
|
4983
5007
|
messages: {
|
|
4984
5008
|
"en-US": ua,
|
|
4985
|
-
"zh-CN":
|
|
5009
|
+
"zh-CN": ga,
|
|
4986
5010
|
"zh-Hant": pa,
|
|
4987
5011
|
"th-TH": fa
|
|
4988
5012
|
}
|
|
4989
5013
|
});
|
|
4990
|
-
return (u,
|
|
5014
|
+
return (u, c) => (Ve(), Kt("div", ya, [
|
|
4991
5015
|
we("div", va, [
|
|
4992
5016
|
we("div", ha, [
|
|
4993
5017
|
we("img", {
|
|
@@ -5006,7 +5030,7 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5006
5030
|
__name: "PermissionWrapper",
|
|
5007
5031
|
setup(e) {
|
|
5008
5032
|
const A = la();
|
|
5009
|
-
return (u,
|
|
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 }) : rr("", !0);
|
|
5010
5034
|
}
|
|
5011
5035
|
});
|
|
5012
5036
|
function Ke(e) {
|
|
@@ -5017,63 +5041,63 @@ function Ke(e) {
|
|
|
5017
5041
|
}
|
|
5018
5042
|
};
|
|
5019
5043
|
}
|
|
5020
|
-
function
|
|
5044
|
+
function ja(e, A) {
|
|
5021
5045
|
const u = ve({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5022
|
-
function
|
|
5046
|
+
function c() {
|
|
5023
5047
|
if (e.value) {
|
|
5024
|
-
const
|
|
5048
|
+
const r = e.value.getBoundingClientRect();
|
|
5025
5049
|
u.value = {
|
|
5026
|
-
top:
|
|
5027
|
-
bottom:
|
|
5028
|
-
left:
|
|
5029
|
-
right:
|
|
5050
|
+
top: r.top,
|
|
5051
|
+
bottom: r.bottom,
|
|
5052
|
+
left: r.left,
|
|
5053
|
+
right: r.right
|
|
5030
5054
|
};
|
|
5031
5055
|
}
|
|
5032
5056
|
}
|
|
5033
5057
|
return Rt(A, async () => {
|
|
5034
|
-
await Zt(),
|
|
5035
|
-
}), Rt(e, async (
|
|
5036
|
-
|
|
5058
|
+
await Zt(), c();
|
|
5059
|
+
}), Rt(e, async (r) => {
|
|
5060
|
+
r && (await Zt(), c());
|
|
5037
5061
|
}), Lt(() => {
|
|
5038
|
-
window.addEventListener("resize",
|
|
5039
|
-
}),
|
|
5040
|
-
window.removeEventListener("resize",
|
|
5062
|
+
window.addEventListener("resize", c);
|
|
5063
|
+
}), nr(() => {
|
|
5064
|
+
window.removeEventListener("resize", c);
|
|
5041
5065
|
}), u;
|
|
5042
5066
|
}
|
|
5043
|
-
const
|
|
5067
|
+
const Ga = /* @__PURE__ */ xe({
|
|
5044
5068
|
__name: "FullWrapper",
|
|
5045
5069
|
setup(e) {
|
|
5046
|
-
const A =
|
|
5070
|
+
const A = cr(), u = ve(null), c = ja(u), r = jt(() => {
|
|
5047
5071
|
var h;
|
|
5048
5072
|
const y = A.isAtMost("sm") ? 56 : 0;
|
|
5049
5073
|
return {
|
|
5050
|
-
height: `calc(100dvh - ${((h =
|
|
5074
|
+
height: `calc(100dvh - ${((h = c.value) == null ? void 0 : h.top) + 24 + y}px)`
|
|
5051
5075
|
};
|
|
5052
5076
|
});
|
|
5053
|
-
return (
|
|
5077
|
+
return (m, y) => (Ve(), Kt("div", {
|
|
5054
5078
|
ref_key: "wrapper",
|
|
5055
5079
|
ref: u,
|
|
5056
|
-
style:
|
|
5080
|
+
style: ar(r.value)
|
|
5057
5081
|
}, [
|
|
5058
|
-
kt(
|
|
5082
|
+
kt(m.$slots, "default")
|
|
5059
5083
|
], 4));
|
|
5060
5084
|
}
|
|
5061
|
-
}),
|
|
5085
|
+
}), Ya = { class: "flex justify-center items-center h-full w-full" }, Ea = /* @__PURE__ */ xe({
|
|
5062
5086
|
__name: "PageLoading",
|
|
5063
5087
|
setup(e) {
|
|
5064
5088
|
return (A, u) => {
|
|
5065
|
-
const
|
|
5066
|
-
return Ve(), ke(
|
|
5067
|
-
default:
|
|
5068
|
-
we("div",
|
|
5069
|
-
|
|
5089
|
+
const c = Gt("FmCircularProgress");
|
|
5090
|
+
return Ve(), ke(Ga, null, {
|
|
5091
|
+
default: or(() => [
|
|
5092
|
+
we("div", Ya, [
|
|
5093
|
+
ir(c, { size: "xl" })
|
|
5070
5094
|
])
|
|
5071
5095
|
]),
|
|
5072
5096
|
_: 1
|
|
5073
5097
|
});
|
|
5074
5098
|
};
|
|
5075
5099
|
}
|
|
5076
|
-
}), be = (e) =>
|
|
5100
|
+
}), be = (e) => lr({
|
|
5077
5101
|
loader: e,
|
|
5078
5102
|
loadingComponent: Ea
|
|
5079
5103
|
});
|
|
@@ -5087,10 +5111,10 @@ const ht = (e) => ({
|
|
|
5087
5111
|
}
|
|
5088
5112
|
]
|
|
5089
5113
|
}
|
|
5090
|
-
}), xa = Ke(be(() => import("./Main-
|
|
5091
|
-
be(() => import("./AuditLogList-
|
|
5092
|
-
),
|
|
5093
|
-
() => import("./PermissionSetList-
|
|
5114
|
+
}), xa = Ke(be(() => import("./Main-D2LWkcaI.js"))), Va = Ke(be(() => import("./Main-C_Tm3462.js"))), Pa = Ke(
|
|
5115
|
+
be(() => import("./AuditLogList-CfvB_c7-.js"))
|
|
5116
|
+
), Fa = Ke(be(() => import("./Main-CoGNATjU.js"))), Oa = be(() => import("./EmployeeList-Whx8sBTA.js")), qa = be(() => import("./RoleList-D0KdTM9G.js")), Ha = be(() => import("./TimesheetList-BzYGHK7n.js")), Xa = be(() => import("./TeamMemberList-DDBFCFlj.js")), Qa = be(
|
|
5117
|
+
() => import("./PermissionSetList-RYl82f1k.js")
|
|
5094
5118
|
), eo = [
|
|
5095
5119
|
{
|
|
5096
5120
|
path: "/",
|
|
@@ -5122,7 +5146,7 @@ const ht = (e) => ({
|
|
|
5122
5146
|
{
|
|
5123
5147
|
path: "/audit-log",
|
|
5124
5148
|
name: "audit-log",
|
|
5125
|
-
component:
|
|
5149
|
+
component: Pa,
|
|
5126
5150
|
meta: ht(Te.Subject.Business.hrm_auditLog)
|
|
5127
5151
|
},
|
|
5128
5152
|
{
|
|
@@ -5150,55 +5174,55 @@ const ht = (e) => ({
|
|
|
5150
5174
|
{
|
|
5151
5175
|
path: "/pos-grant",
|
|
5152
5176
|
name: "pos-grant",
|
|
5153
|
-
component:
|
|
5177
|
+
component: Fa
|
|
5154
5178
|
}
|
|
5155
5179
|
], Ia = /* @__PURE__ */ xe({
|
|
5156
5180
|
__name: "Navigator",
|
|
5157
5181
|
emits: ["close-navigation"],
|
|
5158
5182
|
setup(e, { emit: A }) {
|
|
5159
|
-
const u = A, { t:
|
|
5160
|
-
var
|
|
5183
|
+
const u = A, { t: c } = Jt(), r = ur(), { sessionUser: m } = Yt(), y = jt(() => {
|
|
5184
|
+
var Y;
|
|
5161
5185
|
const E = [];
|
|
5162
5186
|
return E.push({
|
|
5163
|
-
label:
|
|
5187
|
+
label: c("hr.employee.title"),
|
|
5164
5188
|
value: "employee",
|
|
5165
5189
|
action: () => {
|
|
5166
|
-
|
|
5190
|
+
r.push({
|
|
5167
5191
|
name: T.EMPLOYEE,
|
|
5168
|
-
query:
|
|
5192
|
+
query: r.currentRoute.value.query
|
|
5169
5193
|
}), u("close-navigation");
|
|
5170
5194
|
}
|
|
5171
5195
|
}), E.push({
|
|
5172
|
-
label:
|
|
5196
|
+
label: c("team.title"),
|
|
5173
5197
|
value: "team-member",
|
|
5174
5198
|
action: () => {
|
|
5175
|
-
|
|
5199
|
+
r.push({
|
|
5176
5200
|
name: T.TEAM,
|
|
5177
|
-
query:
|
|
5201
|
+
query: r.currentRoute.value.query
|
|
5178
5202
|
}), u("close-navigation");
|
|
5179
5203
|
}
|
|
5180
5204
|
}), E.push({
|
|
5181
|
-
label:
|
|
5205
|
+
label: c("auditLog.title"),
|
|
5182
5206
|
value: "audit-log",
|
|
5183
5207
|
action: () => {
|
|
5184
|
-
|
|
5208
|
+
r.push({
|
|
5185
5209
|
name: T.AUDIT_LOG
|
|
5186
5210
|
}), u("close-navigation");
|
|
5187
5211
|
}
|
|
5188
|
-
}), (
|
|
5189
|
-
label:
|
|
5212
|
+
}), (Y = m.value) != null && Y.role.isAdmin && E.push({
|
|
5213
|
+
label: c("grantUser.title"),
|
|
5190
5214
|
value: "pos-grant",
|
|
5191
5215
|
action: () => {
|
|
5192
|
-
|
|
5216
|
+
r.push({
|
|
5193
5217
|
name: T.POS_GRANT,
|
|
5194
|
-
query:
|
|
5218
|
+
query: r.currentRoute.value.query
|
|
5195
5219
|
}), u("close-navigation");
|
|
5196
5220
|
}
|
|
5197
5221
|
}), E;
|
|
5198
5222
|
}), h = ve();
|
|
5199
5223
|
return St(() => {
|
|
5200
|
-
var
|
|
5201
|
-
let E = (
|
|
5224
|
+
var Y;
|
|
5225
|
+
let E = (Y = r.currentRoute.value) == null ? void 0 : Y.name;
|
|
5202
5226
|
switch (E) {
|
|
5203
5227
|
case T.EMPLOYEE:
|
|
5204
5228
|
case T.ROLE:
|
|
@@ -5219,11 +5243,11 @@ const ht = (e) => ({
|
|
|
5219
5243
|
E = T.EMPLOYEE;
|
|
5220
5244
|
}
|
|
5221
5245
|
h.value !== E && (h.value = E);
|
|
5222
|
-
}), (E,
|
|
5223
|
-
const w =
|
|
5246
|
+
}), (E, Y) => {
|
|
5247
|
+
const w = Gt("FmCollapsibleTabs");
|
|
5224
5248
|
return Ve(), ke(w, {
|
|
5225
5249
|
modelValue: h.value,
|
|
5226
|
-
"onUpdate:modelValue":
|
|
5250
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (P) => h.value = P),
|
|
5227
5251
|
items: y.value,
|
|
5228
5252
|
class: "py-16"
|
|
5229
5253
|
}, null, 8, ["modelValue", "items"]);
|
|
@@ -5232,51 +5256,51 @@ const ht = (e) => ({
|
|
|
5232
5256
|
});
|
|
5233
5257
|
var Dt = { exports: {} };
|
|
5234
5258
|
(function(e, A) {
|
|
5235
|
-
(function(u,
|
|
5236
|
-
|
|
5259
|
+
(function(u, c) {
|
|
5260
|
+
c(A);
|
|
5237
5261
|
})(Re, function(u) {
|
|
5238
|
-
var
|
|
5262
|
+
var c = { getItemSync: function(d) {
|
|
5239
5263
|
try {
|
|
5240
5264
|
return localStorage.getItem(d) || null;
|
|
5241
5265
|
} catch {
|
|
5242
5266
|
return null;
|
|
5243
5267
|
}
|
|
5244
|
-
}, getItem: function(d,
|
|
5268
|
+
}, getItem: function(d, n) {
|
|
5245
5269
|
var s = this;
|
|
5246
|
-
return new Promise(function(
|
|
5270
|
+
return new Promise(function(l, a) {
|
|
5247
5271
|
try {
|
|
5248
5272
|
var p = s.getItemSync(d);
|
|
5249
|
-
|
|
5273
|
+
n == null || n(null, p), l(p);
|
|
5250
5274
|
} catch (v) {
|
|
5251
|
-
|
|
5275
|
+
n && n(v, null), a(v);
|
|
5252
5276
|
}
|
|
5253
5277
|
});
|
|
5254
|
-
}, setItem: function(d,
|
|
5255
|
-
return new Promise(function(
|
|
5278
|
+
}, setItem: function(d, n, s) {
|
|
5279
|
+
return new Promise(function(l, a) {
|
|
5256
5280
|
try {
|
|
5257
|
-
localStorage.setItem(d,
|
|
5281
|
+
localStorage.setItem(d, n), s && s(null, n), l(n);
|
|
5258
5282
|
} catch (p) {
|
|
5259
5283
|
s && s(p, null), a(p);
|
|
5260
5284
|
}
|
|
5261
5285
|
});
|
|
5262
|
-
} },
|
|
5263
|
-
return
|
|
5264
|
-
for (var
|
|
5286
|
+
} }, r = function() {
|
|
5287
|
+
return r = Object.assign || function(d) {
|
|
5288
|
+
for (var n, s = 1, l = arguments.length; s < l; s++) for (var a in n = arguments[s]) Object.prototype.hasOwnProperty.call(n, a) && (d[a] = n[a]);
|
|
5265
5289
|
return d;
|
|
5266
|
-
},
|
|
5290
|
+
}, r.apply(this, arguments);
|
|
5267
5291
|
};
|
|
5268
|
-
function
|
|
5292
|
+
function m(d, n, s, l) {
|
|
5269
5293
|
return new (s || (s = Promise))(function(a, p) {
|
|
5270
5294
|
function v(O) {
|
|
5271
5295
|
try {
|
|
5272
|
-
x(
|
|
5296
|
+
x(l.next(O));
|
|
5273
5297
|
} catch (M) {
|
|
5274
5298
|
p(M);
|
|
5275
5299
|
}
|
|
5276
5300
|
}
|
|
5277
|
-
function
|
|
5301
|
+
function j(O) {
|
|
5278
5302
|
try {
|
|
5279
|
-
x(
|
|
5303
|
+
x(l.throw(O));
|
|
5280
5304
|
} catch (M) {
|
|
5281
5305
|
p(M);
|
|
5282
5306
|
}
|
|
@@ -5285,26 +5309,26 @@ var Dt = { exports: {} };
|
|
|
5285
5309
|
var M;
|
|
5286
5310
|
O.done ? a(O.value) : (M = O.value, M instanceof s ? M : new s(function(X) {
|
|
5287
5311
|
X(M);
|
|
5288
|
-
})).then(v,
|
|
5312
|
+
})).then(v, j);
|
|
5289
5313
|
}
|
|
5290
|
-
x((
|
|
5314
|
+
x((l = l.apply(d, [])).next());
|
|
5291
5315
|
});
|
|
5292
5316
|
}
|
|
5293
|
-
function y(d,
|
|
5294
|
-
var s,
|
|
5317
|
+
function y(d, n) {
|
|
5318
|
+
var s, l, a, p, v = { label: 0, sent: function() {
|
|
5295
5319
|
if (1 & a[0]) throw a[1];
|
|
5296
5320
|
return a[1];
|
|
5297
5321
|
}, trys: [], ops: [] };
|
|
5298
|
-
return p = { next:
|
|
5322
|
+
return p = { next: j(0), throw: j(1), return: j(2) }, typeof Symbol == "function" && (p[Symbol.iterator] = function() {
|
|
5299
5323
|
return this;
|
|
5300
5324
|
}), p;
|
|
5301
|
-
function
|
|
5325
|
+
function j(x) {
|
|
5302
5326
|
return function(O) {
|
|
5303
5327
|
return function(M) {
|
|
5304
5328
|
if (s) throw new TypeError("Generator is already executing.");
|
|
5305
5329
|
for (; v; ) try {
|
|
5306
|
-
if (s = 1,
|
|
5307
|
-
switch (
|
|
5330
|
+
if (s = 1, l && (a = 2 & M[0] ? l.return : M[0] ? l.throw || ((a = l.return) && a.call(l), 0) : l.next) && !(a = a.call(l, M[1])).done) return a;
|
|
5331
|
+
switch (l = 0, a && (M = [2 & M[0], a.value]), M[0]) {
|
|
5308
5332
|
case 0:
|
|
5309
5333
|
case 1:
|
|
5310
5334
|
a = M;
|
|
@@ -5312,7 +5336,7 @@ var Dt = { exports: {} };
|
|
|
5312
5336
|
case 4:
|
|
5313
5337
|
return v.label++, { value: M[1], done: !1 };
|
|
5314
5338
|
case 5:
|
|
5315
|
-
v.label++,
|
|
5339
|
+
v.label++, l = M[1], M = [0];
|
|
5316
5340
|
continue;
|
|
5317
5341
|
case 7:
|
|
5318
5342
|
M = v.ops.pop(), v.trys.pop();
|
|
@@ -5337,9 +5361,9 @@ var Dt = { exports: {} };
|
|
|
5337
5361
|
a[2] && v.ops.pop(), v.trys.pop();
|
|
5338
5362
|
continue;
|
|
5339
5363
|
}
|
|
5340
|
-
M =
|
|
5364
|
+
M = n.call(d, v);
|
|
5341
5365
|
} catch (X) {
|
|
5342
|
-
M = [6, X],
|
|
5366
|
+
M = [6, X], l = 0;
|
|
5343
5367
|
} finally {
|
|
5344
5368
|
s = a = 0;
|
|
5345
5369
|
}
|
|
@@ -5349,87 +5373,87 @@ var Dt = { exports: {} };
|
|
|
5349
5373
|
};
|
|
5350
5374
|
}
|
|
5351
5375
|
}
|
|
5352
|
-
function h(d,
|
|
5353
|
-
for (var
|
|
5354
|
-
return d.concat(
|
|
5376
|
+
function h(d, n, s) {
|
|
5377
|
+
for (var l, a = 0, p = n.length; a < p; a++) !l && a in n || (l || (l = Array.prototype.slice.call(n, 0, a)), l[a] = n[a]);
|
|
5378
|
+
return d.concat(l || Array.prototype.slice.call(n));
|
|
5355
5379
|
}
|
|
5356
|
-
var E = function d(
|
|
5357
|
-
if (
|
|
5358
|
-
if (
|
|
5359
|
-
if (
|
|
5360
|
-
var
|
|
5361
|
-
if (Array.isArray(
|
|
5362
|
-
if ((
|
|
5363
|
-
for (a =
|
|
5380
|
+
var E = function d(n, s) {
|
|
5381
|
+
if (n === s) return !0;
|
|
5382
|
+
if (n && s && typeof n == "object" && typeof s == "object") {
|
|
5383
|
+
if (n.constructor !== s.constructor) return !1;
|
|
5384
|
+
var l, a, p;
|
|
5385
|
+
if (Array.isArray(n)) {
|
|
5386
|
+
if ((l = n.length) != s.length) return !1;
|
|
5387
|
+
for (a = l; a-- != 0; ) if (!d(n[a], s[a])) return !1;
|
|
5364
5388
|
return !0;
|
|
5365
5389
|
}
|
|
5366
|
-
if (
|
|
5367
|
-
if (
|
|
5368
|
-
if (
|
|
5369
|
-
if ((
|
|
5370
|
-
for (a =
|
|
5371
|
-
for (a =
|
|
5390
|
+
if (n.constructor === RegExp) return n.source === s.source && n.flags === s.flags;
|
|
5391
|
+
if (n.valueOf !== Object.prototype.valueOf) return n.valueOf() === s.valueOf();
|
|
5392
|
+
if (n.toString !== Object.prototype.toString) return n.toString() === s.toString();
|
|
5393
|
+
if ((l = (p = Object.keys(n)).length) !== Object.keys(s).length) return !1;
|
|
5394
|
+
for (a = l; a-- != 0; ) if (!Object.prototype.hasOwnProperty.call(s, p[a])) return !1;
|
|
5395
|
+
for (a = l; a-- != 0; ) {
|
|
5372
5396
|
var v = p[a];
|
|
5373
|
-
if (!d(
|
|
5397
|
+
if (!d(n[v], s[v])) return !1;
|
|
5374
5398
|
}
|
|
5375
5399
|
return !0;
|
|
5376
5400
|
}
|
|
5377
|
-
return
|
|
5401
|
+
return n != n && s != s;
|
|
5378
5402
|
};
|
|
5379
|
-
function
|
|
5380
|
-
var s = Object.keys(
|
|
5381
|
-
var a = d == null ? void 0 : d[
|
|
5403
|
+
function Y(d, n) {
|
|
5404
|
+
var s = Object.keys(n || {}).filter(function(l) {
|
|
5405
|
+
var a = d == null ? void 0 : d[l], p = n == null ? void 0 : n[l];
|
|
5382
5406
|
return !E(a, p);
|
|
5383
5407
|
});
|
|
5384
|
-
return Object.keys(d || {}).filter(function(
|
|
5385
|
-
Object.keys(
|
|
5408
|
+
return Object.keys(d || {}).filter(function(l) {
|
|
5409
|
+
Object.keys(n || {}).includes(l) || s.push(l);
|
|
5386
5410
|
}), Object.keys(s).length ? s : null;
|
|
5387
5411
|
}
|
|
5388
|
-
var w,
|
|
5389
|
-
function I(d,
|
|
5390
|
-
var
|
|
5391
|
-
typeof s == "number" && (
|
|
5412
|
+
var w, P;
|
|
5413
|
+
function I(d, n, s) {
|
|
5414
|
+
var l = "shortString", a = !0;
|
|
5415
|
+
typeof s == "number" && (l = "javaDouble", a = !1), d[l] = d[l] || {}, d[l][n] = a ? s + "" : s;
|
|
5392
5416
|
}
|
|
5393
5417
|
function H(d) {
|
|
5394
5418
|
return !!d && typeof d == "object" && d.value !== void 0;
|
|
5395
5419
|
}
|
|
5396
5420
|
function z(d) {
|
|
5397
|
-
return Object.fromEntries(Object.entries(d).map(function(
|
|
5398
|
-
var s =
|
|
5399
|
-
return [s, H(
|
|
5421
|
+
return Object.fromEntries(Object.entries(d).map(function(n) {
|
|
5422
|
+
var s = n[0], l = n[1];
|
|
5423
|
+
return [s, H(l) ? l : { value: l }];
|
|
5400
5424
|
}));
|
|
5401
5425
|
}
|
|
5402
5426
|
function S(d) {
|
|
5403
|
-
return
|
|
5427
|
+
return r(r({}, d), { identity: d.identity ? r(r({}, d.identity), { traits: z(d.identity.traits || {}) }) : void 0 });
|
|
5404
5428
|
}
|
|
5405
5429
|
(function(d) {
|
|
5406
5430
|
d.NONE = "NONE", d.DEFAULT_FLAGS = "DEFAULT_FLAGS", d.CACHE = "CACHE", d.SERVER = "SERVER";
|
|
5407
5431
|
})(w || (w = {}));
|
|
5408
|
-
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le, he = "https://edge.api.flagsmith.com/api/v1/",
|
|
5409
|
-
function d(
|
|
5432
|
+
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le, he = "https://edge.api.flagsmith.com/api/v1/", Pe = "flagsmith_value_", Ze = "flagsmith_enabled_", Fe = "flagsmith_trait_", Oe = function() {
|
|
5433
|
+
function d(n) {
|
|
5410
5434
|
var s = this;
|
|
5411
5435
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
5412
|
-
var
|
|
5413
|
-
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(
|
|
5414
|
-
var v = "".concat(s.getContext().identity),
|
|
5436
|
+
var l = s, a = l.api, p = l.evaluationContext;
|
|
5437
|
+
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(r(r({}, s.loadingState), { isFetching: !0 }));
|
|
5438
|
+
var v = "".concat(s.getContext().identity), j = function(x) {
|
|
5415
5439
|
var O, M, X, L;
|
|
5416
5440
|
if (x && v === "".concat(s.getContext().identity)) {
|
|
5417
5441
|
var Ae = x.flags, se = x.traits, le = x.identifier;
|
|
5418
5442
|
s.isLoading = !1;
|
|
5419
|
-
var
|
|
5443
|
+
var re = {}, ne = {};
|
|
5420
5444
|
se = se || [], (Ae = Ae || []).forEach(function(Q) {
|
|
5421
|
-
|
|
5445
|
+
re[Q.feature.name.toLowerCase().replace(/ /g, "_")] = { id: Q.feature.id, enabled: Q.enabled, value: Q.feature_state_value };
|
|
5422
5446
|
}), se.forEach(function(Q) {
|
|
5423
|
-
|
|
5424
|
-
}), s.oldFlags =
|
|
5425
|
-
var ue =
|
|
5426
|
-
if ((le || Object.keys(
|
|
5447
|
+
ne[Q.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: Q.transient, value: Q.trait_value };
|
|
5448
|
+
}), s.oldFlags = r({}, s.flags);
|
|
5449
|
+
var ue = Y(s.oldFlags, re), qe = Y((O = s.evaluationContext.identity) === null || O === void 0 ? void 0 : O.traits, ne);
|
|
5450
|
+
if ((le || Object.keys(ne).length) && (s.evaluationContext.identity = r(r({}, s.evaluationContext.identity), { traits: ne }), le && (s.evaluationContext.identity.identifier = le)), s.flags = re, s.updateStorage(), s._onChange(s.oldFlags, { isFromServer: !0, flagsChanged: ue, traitsChanged: qe }, s._loadedState(null, w.SERVER)), s.datadogRum) try {
|
|
5427
5451
|
if (s.datadogRum.trackTraits) {
|
|
5428
5452
|
var He = {};
|
|
5429
5453
|
Object.keys(((M = s.evaluationContext.identity) === null || M === void 0 ? void 0 : M.traits) || {}).map(function(Q) {
|
|
5430
|
-
He[
|
|
5454
|
+
He[Fe + Q] = s.getTrait(Q);
|
|
5431
5455
|
});
|
|
5432
|
-
var Ce =
|
|
5456
|
+
var Ce = r(r(r({}, s.datadogRum.client.getUser()), { id: s.datadogRum.client.getUser().id || ((X = s.evaluationContext.identity) === null || X === void 0 ? void 0 : X.identifier) }), He);
|
|
5433
5457
|
s.log("Setting Datadog user", Ce), s.datadogRum.client.setUser(Ce);
|
|
5434
5458
|
}
|
|
5435
5459
|
} catch (Q) {
|
|
@@ -5438,9 +5462,9 @@ var Dt = { exports: {} };
|
|
|
5438
5462
|
if (s.dtrum) try {
|
|
5439
5463
|
var J = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
|
|
5440
5464
|
Object.keys(s.flags).map(function(Q) {
|
|
5441
|
-
I(J,
|
|
5465
|
+
I(J, Pe + Q, s.getValue(Q, { skipAnalytics: !0 })), I(J, Ze + Q, s.hasFeature(Q, { skipAnalytics: !0 }));
|
|
5442
5466
|
}), Object.keys(((L = s.evaluationContext.identity) === null || L === void 0 ? void 0 : L.traits) || {}).map(function(Q) {
|
|
5443
|
-
I(J,
|
|
5467
|
+
I(J, Fe + Q, s.getTrait(Q));
|
|
5444
5468
|
}), 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);
|
|
5445
5469
|
} catch (Q) {
|
|
5446
5470
|
console.error(Q);
|
|
@@ -5453,85 +5477,85 @@ var Dt = { exports: {} };
|
|
|
5453
5477
|
}).filter(function(x) {
|
|
5454
5478
|
return x.trait_value !== void 0 || (s.log("Warning - attempted to set an undefined trait value for key", x.trait_key), !1);
|
|
5455
5479
|
}) })) : s.getJSON(a + "identities/?identifier=" + encodeURIComponent(p.identity.identifier) + (p.identity.transient ? "&transient=true" : ""))]).then(function(x) {
|
|
5456
|
-
return s.evaluationContext.identity =
|
|
5480
|
+
return s.evaluationContext.identity = r(r({}, s.evaluationContext.identity), { traits: {} }), j(x == null ? void 0 : x[0]);
|
|
5457
5481
|
}).catch(function(x) {
|
|
5458
5482
|
var O = x.message, M = new Error(O);
|
|
5459
5483
|
return Promise.reject(M);
|
|
5460
5484
|
}) : s.getJSON(a + "flags/").then(function(x) {
|
|
5461
|
-
return
|
|
5485
|
+
return j({ flags: x, traits: void 0 });
|
|
5462
5486
|
});
|
|
5463
5487
|
}, this.analyticsFlags = function() {
|
|
5464
|
-
var
|
|
5465
|
-
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(
|
|
5488
|
+
var l = s.api;
|
|
5489
|
+
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) {
|
|
5466
5490
|
if (s.evaluationContext.environment) {
|
|
5467
5491
|
var p = s.getState();
|
|
5468
|
-
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(
|
|
5492
|
+
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(r(r({}, p), { evaluationEvent: s.evaluationEvent })), s.updateEventStorage();
|
|
5469
5493
|
}
|
|
5470
5494
|
}).catch(function(a) {
|
|
5471
5495
|
s.log("Exception fetching evaluationEvent", a);
|
|
5472
5496
|
}) : void 0;
|
|
5473
|
-
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(
|
|
5474
|
-
var v = s.flags && s.flags[
|
|
5475
|
-
if (v && (
|
|
5497
|
+
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(l, a, p) {
|
|
5498
|
+
var v = s.flags && s.flags[l.toLowerCase().replace(/ /g, "_")], j = null;
|
|
5499
|
+
if (v && (j = v.value), a != null && a.skipAnalytics || p || s.evaluateFlag(l, "VALUE"), j === null && (a == null ? void 0 : a.fallback) !== void 0) return a.fallback;
|
|
5476
5500
|
if (a != null && a.json) try {
|
|
5477
|
-
return
|
|
5501
|
+
return j === null ? (s.log("Tried to parse null flag as JSON: " + l), null) : JSON.parse(j);
|
|
5478
5502
|
} catch {
|
|
5479
5503
|
return a.fallback;
|
|
5480
5504
|
}
|
|
5481
|
-
return
|
|
5482
|
-
}, this.getTrait = function(
|
|
5505
|
+
return j;
|
|
5506
|
+
}, this.getTrait = function(l) {
|
|
5483
5507
|
var a, p;
|
|
5484
|
-
return ((a = s.evaluationContext.identity) === null || a === void 0 ? void 0 : a.traits) && ((p = s.evaluationContext.identity.traits[
|
|
5508
|
+
return ((a = s.evaluationContext.identity) === null || a === void 0 ? void 0 : a.traits) && ((p = s.evaluationContext.identity.traits[l.toLowerCase().replace(/ /g, "_")]) === null || p === void 0 ? void 0 : p.value);
|
|
5485
5509
|
}, this.getAllTraits = function() {
|
|
5486
|
-
var
|
|
5487
|
-
return Object.fromEntries(Object.entries(((
|
|
5510
|
+
var l;
|
|
5511
|
+
return Object.fromEntries(Object.entries(((l = s.evaluationContext.identity) === null || l === void 0 ? void 0 : l.traits) || {}).map(function(a) {
|
|
5488
5512
|
var p = a[0], v = a[1];
|
|
5489
5513
|
return [p, v == null ? void 0 : v.value];
|
|
5490
5514
|
}));
|
|
5491
|
-
}, this.setContext = function(
|
|
5492
|
-
var a = S(
|
|
5493
|
-
return s.evaluationContext =
|
|
5515
|
+
}, this.setContext = function(l) {
|
|
5516
|
+
var a = S(l);
|
|
5517
|
+
return s.evaluationContext = r(r({}, a), { environment: a.environment || s.evaluationContext.environment }), s.initialised ? s.getFlags() : Promise.resolve();
|
|
5494
5518
|
}, this.getContext = function() {
|
|
5495
5519
|
return s.evaluationContext;
|
|
5496
|
-
}, this.updateContext = function(
|
|
5497
|
-
return s.setContext(
|
|
5498
|
-
}, this.setTrait = function(
|
|
5520
|
+
}, this.updateContext = function(l) {
|
|
5521
|
+
return s.setContext(r(r({}, s.getContext()), l));
|
|
5522
|
+
}, this.setTrait = function(l, a) {
|
|
5499
5523
|
var p;
|
|
5500
|
-
if (s.api) return s.setContext(
|
|
5501
|
-
}, this.setTraits = function(
|
|
5524
|
+
if (s.api) return s.setContext(r(r({}, s.evaluationContext), { identity: r(r({}, s.evaluationContext.identity), { traits: r(r({}, (p = s.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits), z(Object.fromEntries([[l, a]]))) }) }));
|
|
5525
|
+
}, this.setTraits = function(l) {
|
|
5502
5526
|
var a;
|
|
5503
|
-
if (s.api) return s.setContext(
|
|
5504
|
-
var v = p[0],
|
|
5505
|
-
return [v, H(
|
|
5527
|
+
if (s.api) return s.setContext(r(r({}, s.evaluationContext), { identity: r(r({}, s.evaluationContext.identity), { traits: r(r({}, (a = s.evaluationContext.identity) === null || a === void 0 ? void 0 : a.traits), Object.fromEntries(Object.entries(l).map(function(p) {
|
|
5528
|
+
var v = p[0], j = p[1];
|
|
5529
|
+
return [v, H(j) ? j : { value: j }];
|
|
5506
5530
|
}))) }) }));
|
|
5507
5531
|
console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
|
|
5508
|
-
}, this.hasFeature = function(
|
|
5509
|
-
var p = typeof a == "object", v = s.flags && s.flags[
|
|
5510
|
-
return !v && p && a.fallback !== void 0 ?
|
|
5532
|
+
}, this.hasFeature = function(l, a) {
|
|
5533
|
+
var p = typeof a == "object", v = s.flags && s.flags[l.toLowerCase().replace(/ /g, "_")], j = !1;
|
|
5534
|
+
return !v && p && a.fallback !== void 0 ? j = a == null ? void 0 : a.fallback : v && v.enabled && (j = !0), (p && !a.skipAnalytics || !a) && s.evaluateFlag(l, "ENABLED"), j;
|
|
5511
5535
|
}, this.getStorageKey = function() {
|
|
5512
|
-
var
|
|
5513
|
-
return ((
|
|
5514
|
-
}, this.getJSON = function(
|
|
5515
|
-
var v,
|
|
5516
|
-
|
|
5517
|
-
var x =
|
|
5518
|
-
s.evaluationContext.environment && (O.headers["X-Environment-Key"] = s.evaluationContext.environment.apiKey), a && a !== "GET" && (O.headers["Content-Type"] = "application/json; charset=utf-8"), x && Object.assign(O.headers, x),
|
|
5536
|
+
var l, a;
|
|
5537
|
+
return ((l = s.cacheOptions) === null || l === void 0 ? void 0 : l.storageKey) || "FLAGSMITH_DB_" + ((a = s.evaluationContext.environment) === null || a === void 0 ? void 0 : a.apiKey);
|
|
5538
|
+
}, this.getJSON = function(l, a, p) {
|
|
5539
|
+
var v, j = s;
|
|
5540
|
+
j.evaluationContext;
|
|
5541
|
+
var x = j.headers, O = { method: a || "GET", body: p, cache: "no-cache", headers: {} };
|
|
5542
|
+
s.evaluationContext.environment && (O.headers["X-Environment-Key"] = s.evaluationContext.environment.apiKey), a && a !== "GET" && (O.headers["Content-Type"] = "application/json; charset=utf-8"), x && Object.assign(O.headers, x), P || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
5519
5543
|
var M = "".concat((v = s.evaluationContext.identity) === null || v === void 0 ? void 0 : v.identifier);
|
|
5520
|
-
return
|
|
5544
|
+
return P(l, O).then(function(X) {
|
|
5521
5545
|
var L, Ae, se = "".concat((L = s.evaluationContext.identity) === null || L === void 0 ? void 0 : L.identifier);
|
|
5522
5546
|
if (M === se) {
|
|
5523
5547
|
var le = (Ae = X.headers) === null || Ae === void 0 ? void 0 : Ae.get("x-flagsmith-document-updated-at");
|
|
5524
5548
|
if (le) try {
|
|
5525
|
-
var
|
|
5526
|
-
if (isNaN(
|
|
5527
|
-
s.timestamp =
|
|
5528
|
-
} catch (
|
|
5529
|
-
s.log(
|
|
5549
|
+
var re = parseFloat(le);
|
|
5550
|
+
if (isNaN(re)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
5551
|
+
s.timestamp = re;
|
|
5552
|
+
} catch (ne) {
|
|
5553
|
+
s.log(ne, "Failed to parse x-flagsmith-document-updated-at", le);
|
|
5530
5554
|
}
|
|
5531
|
-
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 +
|
|
5532
|
-
var ue =
|
|
5555
|
+
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 + l), X.text().then(function(ne) {
|
|
5556
|
+
var ue = ne;
|
|
5533
5557
|
try {
|
|
5534
|
-
ue = JSON.parse(
|
|
5558
|
+
ue = JSON.parse(ne);
|
|
5535
5559
|
} catch {
|
|
5536
5560
|
}
|
|
5537
5561
|
return !ue && X.status && (ue = "API Response: ".concat(X.status)), X.status && X.status >= 200 && X.status < 300 ? ue : Promise.reject(new Error(ue));
|
|
@@ -5539,45 +5563,45 @@ var Dt = { exports: {} };
|
|
|
5539
5563
|
}
|
|
5540
5564
|
s.log("Received response with identity mismatch, ignoring response. Requested: ".concat(M, ", Current: ").concat(se));
|
|
5541
5565
|
});
|
|
5542
|
-
}, this.evaluateFlag = function(
|
|
5543
|
-
if (s.datadogRum && (s.datadogRum.client.addFeatureFlagEvaluation ? a === "VALUE" ? s.datadogRum.client.addFeatureFlagEvaluation(
|
|
5566
|
+
}, 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(Ze + l, s.hasFeature(l, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), s.enableAnalytics) {
|
|
5544
5568
|
if (!s.evaluationEvent || !s.evaluationContext.environment) return;
|
|
5545
|
-
s.evaluationEvent[s.evaluationContext.environment.apiKey] || (s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey][
|
|
5569
|
+
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;
|
|
5546
5570
|
}
|
|
5547
5571
|
s.updateEventStorage();
|
|
5548
|
-
}, this._onChange = function(
|
|
5549
|
-
var v,
|
|
5550
|
-
s.setLoadingState(p), (v = s.onChange) === null || v === void 0 || v.call(s,
|
|
5551
|
-
},
|
|
5572
|
+
}, this._onChange = function(l, a, p) {
|
|
5573
|
+
var v, j;
|
|
5574
|
+
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 = n.fetch ? n.fetch : typeof fetch < "u" ? fetch : Re == null ? void 0 : Re.fetch, this.canUseStorage = typeof window < "u" || !!n.browserlessStorage, this.log("Constructing flagsmith instance " + n), n.eventSource && (te = n.eventSource), n.AsyncStorage && (k = n.AsyncStorage);
|
|
5552
5576
|
}
|
|
5553
|
-
return d.prototype.init = function(
|
|
5554
|
-
var s,
|
|
5555
|
-
return
|
|
5556
|
-
var p, v,
|
|
5577
|
+
return d.prototype.init = function(n) {
|
|
5578
|
+
var s, l, a;
|
|
5579
|
+
return m(this, void 0, void 0, function() {
|
|
5580
|
+
var p, v, j, x, O, M, X, L, Ae, se, le, re, ne, ue, qe, He, Ce, J, Q, Je, Xe, Vt, De, _e, Pt, Ft, $e, Ot, et, Qe, je, qt, _ = this;
|
|
5557
5581
|
return y(this, function(ce) {
|
|
5558
5582
|
switch (ce.label) {
|
|
5559
5583
|
case 0:
|
|
5560
|
-
p = S(
|
|
5584
|
+
p = S(n.evaluationContext || this.evaluationContext), ce.label = 1;
|
|
5561
5585
|
case 1:
|
|
5562
|
-
if (ce.trys.push([1, 13, , 14]), v =
|
|
5586
|
+
if (ce.trys.push([1, 13, , 14]), v = n.environmentID, j = n.api, x = j === void 0 ? he : j, O = n.headers, M = n.onChange, X = n.cacheFlags, L = n.datadogRum, Ae = n.onError, se = n.defaultFlags, le = n.fetch, re = n.preventFetch, ne = n.enableLogs, ue = n.enableDynatrace, qe = n.enableAnalytics, He = n.realtime, Ce = n.eventSourceUrl, J = Ce === void 0 ? "https://realtime.flagsmith.com/" : Ce, Q = n.AsyncStorage, Je = n.identity, Xe = n.traits, Vt = n.state, De = n.cacheOptions, _e = n.angularHttpClient, Pt = n._trigger, Ft = n._triggerLoadingState, p.environment = v ? { apiKey: v } : p.environment, !p.environment || !p.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
5563
5587
|
if (p.identity = Je || Xe ? { identifier: Je, traits: Xe ? Object.fromEntries(Object.entries(Xe).map(function(ae) {
|
|
5564
5588
|
return [ae[0], { value: ae[1] }];
|
|
5565
|
-
})) : {} } : 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 =
|
|
5566
|
-
_.setLoadingState(
|
|
5567
|
-
}, this.enableLogs =
|
|
5568
|
-
return function(
|
|
5569
|
-
var fe =
|
|
5589
|
+
})) : {} } : 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(r(r({}, _.loadingState), { isFetching: !1, isLoading: !1, error: ae })), Ae == null || Ae(ae);
|
|
5591
|
+
}, this.enableLogs = ne || !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 = r(r({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Vt), this.log("Initialising with properties", n, 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
|
+
return function(me, ge) {
|
|
5593
|
+
var fe = ge.headers, Z = ge.method, Ge = ge.body;
|
|
5570
5594
|
return new Promise(function(Be) {
|
|
5571
5595
|
switch (Z) {
|
|
5572
5596
|
case "GET":
|
|
5573
|
-
return ae.get(
|
|
5597
|
+
return ae.get(me, { headers: fe }).subscribe(function(pe) {
|
|
5574
5598
|
Be({ ok: !0, text: function() {
|
|
5575
5599
|
return Promise.resolve(pe);
|
|
5576
5600
|
} });
|
|
5577
5601
|
});
|
|
5578
5602
|
case "POST":
|
|
5579
5603
|
case "PUT":
|
|
5580
|
-
return ae.post(
|
|
5604
|
+
return ae.post(me, Ge, { headers: fe }).subscribe(function(pe) {
|
|
5581
5605
|
Be({ ok: !0, text: function() {
|
|
5582
5606
|
return Promise.resolve(pe);
|
|
5583
5607
|
} });
|
|
@@ -5592,31 +5616,31 @@ var Dt = { exports: {} };
|
|
|
5592
5616
|
_.evaluationEvent = {};
|
|
5593
5617
|
}
|
|
5594
5618
|
_.analyticsInterval = setInterval(_.analyticsFlags, _.ticks);
|
|
5595
|
-
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), k && this.canUseStorage && k.getItem(ie, function(ae,
|
|
5596
|
-
if (
|
|
5597
|
-
var
|
|
5598
|
-
if (
|
|
5619
|
+
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), k && this.canUseStorage && k.getItem(ie, function(ae, me) {
|
|
5620
|
+
if (me && _.evaluationContext.environment) {
|
|
5621
|
+
var ge = JSON.parse(me);
|
|
5622
|
+
if (ge[_.evaluationContext.environment.apiKey]) {
|
|
5599
5623
|
var fe = _.getState();
|
|
5600
|
-
_.log("Retrieved events from cache",
|
|
5624
|
+
_.log("Retrieved events from cache", me), _.setState(r(r({}, fe), { evaluationEvent: ge[_.evaluationContext.environment.apiKey] }));
|
|
5601
5625
|
}
|
|
5602
5626
|
}
|
|
5603
5627
|
})), !X) return [3, 9];
|
|
5604
5628
|
if (!k || !this.canUseStorage) return [3, 8];
|
|
5605
|
-
Ot = function(ae,
|
|
5606
|
-
return
|
|
5607
|
-
var
|
|
5629
|
+
Ot = function(ae, me) {
|
|
5630
|
+
return m(_, void 0, void 0, function() {
|
|
5631
|
+
var ge, fe, Z, Ge, Be, pe, tt, Ht, st, rt, nt, at, ot, it, lt, ct, At, ut, mt, gt, dt, pt, bt, ft, Xt = this;
|
|
5608
5632
|
return y(this, function(ye) {
|
|
5609
5633
|
switch (ye.label) {
|
|
5610
5634
|
case 0:
|
|
5611
|
-
if (!
|
|
5612
|
-
|
|
5635
|
+
if (!me) return [3, 7];
|
|
5636
|
+
ge = null, fe = null, ye.label = 1;
|
|
5613
5637
|
case 1:
|
|
5614
|
-
return ye.trys.push([1, 5, , 6]), Z = JSON.parse(
|
|
5638
|
+
return ye.trys.push([1, 5, , 6]), Z = JSON.parse(me), Ge = !1, Be = !1, Z && Z.api === this.api && ((rt = (st = Z.evaluationContext) === null || st === void 0 ? void 0 : st.environment) === null || rt === void 0 ? void 0 : rt.apiKey) === ((nt = this.evaluationContext.environment) === null || nt === void 0 ? void 0 : nt.apiKey) && (pe = !0, this.evaluationContext.identity && ((ot = (at = Z.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 = Z.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 && (!Z.ts || (/* @__PURE__ */ new Date()).valueOf() - Z.ts > this.cacheOptions.ttl) && (Z.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + Z.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Z.ts) + "ms"), pe = !1) : Z.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + Z.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Z.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 = Z.evaluationContext) === null || At === void 0 ? void 0 : At.identity) === null || ut === void 0 ? void 0 : ut.traits), ge = Y(this.flags, Z.flags), this.setState(r(r({}, Z), { evaluationContext: S(r(r({}, Z.evaluationContext), { identity: !((mt = Z.evaluationContext) === null || mt === void 0) && mt.identity ? r(r({}, (gt = Z.evaluationContext) === null || gt === void 0 ? void 0 : gt.identity), { traits: r(r({}, ((pt = (dt = Z.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", Z))), Ge ? (tt = !re && (!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) {
|
|
5615
5639
|
var yt;
|
|
5616
5640
|
(yt = Xt.onError) === null || yt === void 0 || yt.call(Xt, _s);
|
|
5617
5641
|
}), [3, 4]) : [3, 2];
|
|
5618
5642
|
case 2:
|
|
5619
|
-
return
|
|
5643
|
+
return re ? [3, 4] : [4, this.getFlags()];
|
|
5620
5644
|
case 3:
|
|
5621
5645
|
ye.sent(), ye.label = 4;
|
|
5622
5646
|
case 4:
|
|
@@ -5626,14 +5650,14 @@ var Dt = { exports: {} };
|
|
|
5626
5650
|
case 6:
|
|
5627
5651
|
return [3, 10];
|
|
5628
5652
|
case 7:
|
|
5629
|
-
return
|
|
5653
|
+
return re ? [3, 9] : [4, this.getFlags()];
|
|
5630
5654
|
case 8:
|
|
5631
5655
|
return ye.sent(), [3, 10];
|
|
5632
5656
|
case 9:
|
|
5633
|
-
if (se) this._onChange(null, { isFromServer: !1, flagsChanged:
|
|
5657
|
+
if (se) this._onChange(null, { isFromServer: !1, flagsChanged: Y({}, this.flags), traitsChanged: Y({}, (bt = this.evaluationContext.identity) === null || bt === void 0 ? void 0 : bt.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
5634
5658
|
else {
|
|
5635
5659
|
if (!this.flags) throw new Error($e);
|
|
5636
|
-
this._onChange(null, { isFromServer: !1, flagsChanged:
|
|
5660
|
+
this._onChange(null, { isFromServer: !1, flagsChanged: Y({}, this.flags), traitsChanged: Y({}, (ft = this.evaluationContext.identity) === null || ft === void 0 ? void 0 : ft.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
5637
5661
|
}
|
|
5638
5662
|
ye.label = 10;
|
|
5639
5663
|
case 10:
|
|
@@ -5656,17 +5680,17 @@ var Dt = { exports: {} };
|
|
|
5656
5680
|
case 8:
|
|
5657
5681
|
return [3, 12];
|
|
5658
5682
|
case 9:
|
|
5659
|
-
return
|
|
5683
|
+
return re ? [3, 11] : [4, this.getFlags()];
|
|
5660
5684
|
case 10:
|
|
5661
5685
|
return ce.sent(), [3, 12];
|
|
5662
5686
|
case 11:
|
|
5663
|
-
if (se) this._onChange(null, { isFromServer: !1, flagsChanged:
|
|
5664
|
-
else if (this.flags && (Qe = null, Object.keys(this.flags).length === 0 && (Qe = $e), this._onChange(null, { isFromServer: !1, flagsChanged:
|
|
5687
|
+
if (se) this._onChange(null, { isFromServer: !1, flagsChanged: Y({}, se), traitsChanged: Y({}, (s = p.identity) === null || s === void 0 ? void 0 : s.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
5688
|
+
else if (this.flags && (Qe = null, Object.keys(this.flags).length === 0 && (Qe = $e), this._onChange(null, { isFromServer: !1, flagsChanged: Y({}, this.flags), traitsChanged: Y({}, (l = p.identity) === null || l === void 0 ? void 0 : l.traits) }, this._loadedState(Qe, w.DEFAULT_FLAGS)), Qe)) throw new Error(Qe);
|
|
5665
5689
|
ce.label = 12;
|
|
5666
5690
|
case 12:
|
|
5667
5691
|
return [3, 14];
|
|
5668
5692
|
case 13:
|
|
5669
|
-
throw
|
|
5693
|
+
throw je = ce.sent(), this.log("Error during initialisation ", je), qt = je instanceof Error ? je : new Error("".concat(je)), (a = this.onError) === null || a === void 0 || a.call(this, qt), je;
|
|
5670
5694
|
case 14:
|
|
5671
5695
|
return [2];
|
|
5672
5696
|
}
|
|
@@ -5674,184 +5698,184 @@ var Dt = { exports: {} };
|
|
|
5674
5698
|
});
|
|
5675
5699
|
}, d.prototype.getAllFlags = function() {
|
|
5676
5700
|
return this.flags;
|
|
5677
|
-
}, d.prototype.identify = function(
|
|
5678
|
-
return this.evaluationContext.identity = { identifier:
|
|
5701
|
+
}, d.prototype.identify = function(n, s, l) {
|
|
5702
|
+
return this.evaluationContext.identity = { identifier: n, transient: l, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == n ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = n, this.log("Identify: " + this.evaluationContext.identity.identifier), s && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(s).map(function(a) {
|
|
5679
5703
|
var p = a[0], v = a[1];
|
|
5680
5704
|
return [p, H(v) ? v : { value: v }];
|
|
5681
5705
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
5682
5706
|
}, d.prototype.getState = function() {
|
|
5683
5707
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
5684
|
-
}, d.prototype.setState = function(
|
|
5685
|
-
|
|
5708
|
+
}, d.prototype.setState = function(n) {
|
|
5709
|
+
n && (this.initialised = !0, this.api = n.api || this.api || he, this.flags = n.flags || this.flags, this.evaluationContext = n.evaluationContext || this.evaluationContext, this.evaluationEvent = n.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
|
|
5686
5710
|
}, d.prototype.logout = function() {
|
|
5687
5711
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
5688
|
-
}, d.prototype.startListening = function(
|
|
5689
|
-
|
|
5712
|
+
}, d.prototype.startListening = function(n) {
|
|
5713
|
+
n === void 0 && (n = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, n);
|
|
5690
5714
|
}, d.prototype.stopListening = function() {
|
|
5691
5715
|
this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
|
|
5692
|
-
}, d.prototype._loadedState = function(
|
|
5693
|
-
return
|
|
5716
|
+
}, d.prototype._loadedState = function(n, s, l) {
|
|
5717
|
+
return n === void 0 && (n = null), l === void 0 && (l = !1), { error: n, isFetching: l, isLoading: !1, source: s };
|
|
5694
5718
|
}, d.prototype.log = function() {
|
|
5695
|
-
for (var
|
|
5696
|
-
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"],
|
|
5719
|
+
for (var n = [], s = 0; s < arguments.length; s++) n[s] = arguments[s];
|
|
5720
|
+
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], n));
|
|
5697
5721
|
}, d.prototype.updateStorage = function() {
|
|
5698
5722
|
if (this.cacheFlags) {
|
|
5699
5723
|
this.ts = (/* @__PURE__ */ new Date()).valueOf();
|
|
5700
|
-
var
|
|
5701
|
-
this.log("Setting storage",
|
|
5724
|
+
var n = JSON.stringify(this.getState());
|
|
5725
|
+
this.log("Setting storage", n), k.setItem(this.getStorageKey(), n);
|
|
5702
5726
|
}
|
|
5703
5727
|
}, d.prototype.updateEventStorage = function() {
|
|
5704
5728
|
if (this.enableAnalytics) {
|
|
5705
|
-
var
|
|
5706
|
-
k.setItem(ie,
|
|
5729
|
+
var n = JSON.stringify(this.getState().evaluationEvent);
|
|
5730
|
+
k.setItem(ie, n).catch(function(s) {
|
|
5707
5731
|
return console.error("Flagsmith: Error setting item in async storage", s);
|
|
5708
5732
|
});
|
|
5709
5733
|
}
|
|
5710
|
-
}, d.prototype.setLoadingState = function(
|
|
5734
|
+
}, d.prototype.setLoadingState = function(n) {
|
|
5711
5735
|
var s;
|
|
5712
|
-
E(
|
|
5713
|
-
}, d.prototype.setupRealtime = function(
|
|
5714
|
-
var
|
|
5736
|
+
E(n, this.loadingState) || (this.loadingState = r({}, n), this.log("Loading state changed", n), (s = this._triggerLoadingState) === null || s === void 0 || s.call(this));
|
|
5737
|
+
}, d.prototype.setupRealtime = function(n, s) {
|
|
5738
|
+
var l = this, a = n + "sse/environments/" + s + "/stream";
|
|
5715
5739
|
te ? this.eventSource || (this.log("Creating event source with url " + a), this.eventSource = new te(a), this.eventSource.addEventListener("environment_updated", function(p) {
|
|
5716
5740
|
var v;
|
|
5717
5741
|
try {
|
|
5718
5742
|
v = JSON.parse(p.data).updated_at;
|
|
5719
|
-
} catch (
|
|
5720
|
-
|
|
5743
|
+
} catch (j) {
|
|
5744
|
+
l.log("Could not parse sse event", j);
|
|
5721
5745
|
}
|
|
5722
|
-
v ? !
|
|
5746
|
+
v ? !l.timestamp || v > l.timestamp ? l.isLoading ? l.log("updated_at is new, but flags are loading", p.data, l.timestamp) : (l.log("updated_at is new, fetching flags", p.data, l.timestamp), l.getFlags()) : l.log("updated_at is outdated, skipping get flags", p.data, l.timestamp) : l.log("No updated_at received, fetching flags", p);
|
|
5723
5747
|
})) : this.log("Error, EventSource is undefined");
|
|
5724
5748
|
}, d;
|
|
5725
5749
|
}();
|
|
5726
|
-
function
|
|
5727
|
-
var
|
|
5728
|
-
return new Oe({ fetch:
|
|
5750
|
+
function i(d) {
|
|
5751
|
+
var n = d.fetch, s = d.AsyncStorage, l = d.eventSource;
|
|
5752
|
+
return new Oe({ fetch: n, AsyncStorage: s, eventSource: l });
|
|
5729
5753
|
}
|
|
5730
|
-
var
|
|
5731
|
-
return
|
|
5732
|
-
s.__proto__ =
|
|
5733
|
-
} || function(s,
|
|
5734
|
-
for (var a in
|
|
5735
|
-
},
|
|
5736
|
-
}, function(d,
|
|
5737
|
-
if (typeof
|
|
5754
|
+
var g, f = (g = function(d, n) {
|
|
5755
|
+
return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, l) {
|
|
5756
|
+
s.__proto__ = l;
|
|
5757
|
+
} || function(s, l) {
|
|
5758
|
+
for (var a in l) Object.prototype.hasOwnProperty.call(l, a) && (s[a] = l[a]);
|
|
5759
|
+
}, g(d, n);
|
|
5760
|
+
}, function(d, n) {
|
|
5761
|
+
if (typeof n != "function" && n !== null) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
5738
5762
|
function s() {
|
|
5739
5763
|
this.constructor = d;
|
|
5740
5764
|
}
|
|
5741
|
-
|
|
5765
|
+
g(d, n), d.prototype = n === null ? Object.create(n) : (s.prototype = n.prototype, new s());
|
|
5742
5766
|
}), B = function(d) {
|
|
5743
|
-
var
|
|
5767
|
+
var n = typeof Symbol == "function" && Symbol.iterator, s = n && d[n], l = 0;
|
|
5744
5768
|
if (s) return s.call(d);
|
|
5745
5769
|
if (d && typeof d.length == "number") return { next: function() {
|
|
5746
|
-
return d &&
|
|
5770
|
+
return d && l >= d.length && (d = void 0), { value: d && d[l++], done: !d };
|
|
5747
5771
|
} };
|
|
5748
|
-
throw new TypeError(
|
|
5749
|
-
}, C = function(d,
|
|
5772
|
+
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
5773
|
+
}, C = function(d, n) {
|
|
5750
5774
|
var s = typeof Symbol == "function" && d[Symbol.iterator];
|
|
5751
5775
|
if (!s) return d;
|
|
5752
|
-
var
|
|
5776
|
+
var l, a, p = s.call(d), v = [];
|
|
5753
5777
|
try {
|
|
5754
|
-
for (; (
|
|
5755
|
-
} catch (
|
|
5756
|
-
a = { error:
|
|
5778
|
+
for (; (n === void 0 || n-- > 0) && !(l = p.next()).done; ) v.push(l.value);
|
|
5779
|
+
} catch (j) {
|
|
5780
|
+
a = { error: j };
|
|
5757
5781
|
} finally {
|
|
5758
5782
|
try {
|
|
5759
|
-
|
|
5783
|
+
l && !l.done && (s = p.return) && s.call(p);
|
|
5760
5784
|
} finally {
|
|
5761
5785
|
if (a) throw a.error;
|
|
5762
5786
|
}
|
|
5763
5787
|
}
|
|
5764
5788
|
return v;
|
|
5765
|
-
}, D = function(d,
|
|
5766
|
-
if (arguments.length === 2) for (var
|
|
5767
|
-
return d.concat(
|
|
5789
|
+
}, D = function(d, n, s) {
|
|
5790
|
+
if (arguments.length === 2) for (var l, a = 0, p = n.length; a < p; a++) !l && a in n || (l || (l = Array.prototype.slice.call(n, 0, a)), l[a] = n[a]);
|
|
5791
|
+
return d.concat(l || Array.prototype.slice.call(n));
|
|
5768
5792
|
}, V = function(d) {
|
|
5769
|
-
function
|
|
5793
|
+
function n() {
|
|
5770
5794
|
return d.call(this, `EventSource not available.
|
|
5771
5795
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
5772
5796
|
}
|
|
5773
|
-
return f(
|
|
5774
|
-
}(Error),
|
|
5775
|
-
function d(
|
|
5776
|
-
var
|
|
5777
|
-
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 =
|
|
5797
|
+
return f(n, d), n;
|
|
5798
|
+
}(Error), F = function() {
|
|
5799
|
+
function d(n, s) {
|
|
5800
|
+
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 = n.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();
|
|
5778
5802
|
this._onevent_wrapped = function(a) {
|
|
5779
|
-
|
|
5803
|
+
l._onevent(a);
|
|
5780
5804
|
}, this._start();
|
|
5781
5805
|
}
|
|
5782
|
-
return d.prototype.dispatchEvent = function(
|
|
5806
|
+
return d.prototype.dispatchEvent = function(n) {
|
|
5783
5807
|
throw new Error("Method not implemented.");
|
|
5784
5808
|
}, d.prototype._start = function() {
|
|
5785
|
-
var
|
|
5809
|
+
var n, s, l = this, a = this.url;
|
|
5786
5810
|
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) {
|
|
5787
|
-
|
|
5811
|
+
l._onopen(x);
|
|
5788
5812
|
}, this._eventSource.onerror = function(x) {
|
|
5789
|
-
|
|
5813
|
+
l._onerror(x);
|
|
5790
5814
|
}, this._eventSource.onmessage = function(x) {
|
|
5791
|
-
|
|
5815
|
+
l.onmessage(x);
|
|
5792
5816
|
};
|
|
5793
5817
|
try {
|
|
5794
5818
|
for (var p = B(Object.keys(this._listeners)), v = p.next(); !v.done; v = p.next()) {
|
|
5795
|
-
var
|
|
5796
|
-
this._eventSource.addEventListener(
|
|
5819
|
+
var j = v.value;
|
|
5820
|
+
this._eventSource.addEventListener(j, this._onevent_wrapped);
|
|
5797
5821
|
}
|
|
5798
5822
|
} catch (x) {
|
|
5799
|
-
|
|
5823
|
+
n = { error: x };
|
|
5800
5824
|
} finally {
|
|
5801
5825
|
try {
|
|
5802
5826
|
v && !v.done && (s = p.return) && s.call(p);
|
|
5803
5827
|
} finally {
|
|
5804
|
-
if (
|
|
5828
|
+
if (n) throw n.error;
|
|
5805
5829
|
}
|
|
5806
5830
|
}
|
|
5807
|
-
}, d.prototype._onopen = function(
|
|
5808
|
-
this.readyState === 0 && (this.readyState = 1, this.onopen(
|
|
5809
|
-
}, d.prototype._onerror = function(
|
|
5831
|
+
}, d.prototype._onopen = function(n) {
|
|
5832
|
+
this.readyState === 0 && (this.readyState = 1, this.onopen(n));
|
|
5833
|
+
}, d.prototype._onerror = function(n) {
|
|
5810
5834
|
var s = this;
|
|
5811
|
-
if (this.readyState === 1 && (this.readyState = 0, this.onerror(
|
|
5835
|
+
if (this.readyState === 1 && (this.readyState = 0, this.onerror(n)), this._eventSource) {
|
|
5812
5836
|
this._eventSource.close(), this._eventSource = null;
|
|
5813
|
-
var
|
|
5837
|
+
var l = Math.round(this.max_retry_time * Math.random());
|
|
5814
5838
|
this._timer = setTimeout(function() {
|
|
5815
5839
|
return s._start();
|
|
5816
|
-
},
|
|
5840
|
+
}, l);
|
|
5817
5841
|
}
|
|
5818
|
-
}, d.prototype._onevent = function(
|
|
5819
|
-
var s,
|
|
5820
|
-
|
|
5821
|
-
var a = this._listeners[
|
|
5842
|
+
}, d.prototype._onevent = function(n) {
|
|
5843
|
+
var s, l;
|
|
5844
|
+
n && n.lastEventId && (this._lastEventId = n.lastEventId);
|
|
5845
|
+
var a = this._listeners[n.type];
|
|
5822
5846
|
if (a != null) try {
|
|
5823
5847
|
for (var p = B(D([], C(a), !1)), v = p.next(); !v.done; v = p.next())
|
|
5824
|
-
v.value.call(this,
|
|
5825
|
-
} catch (
|
|
5826
|
-
s = { error:
|
|
5848
|
+
v.value.call(this, n);
|
|
5849
|
+
} catch (j) {
|
|
5850
|
+
s = { error: j };
|
|
5827
5851
|
} finally {
|
|
5828
5852
|
try {
|
|
5829
|
-
v && !v.done && (
|
|
5853
|
+
v && !v.done && (l = p.return) && l.call(p);
|
|
5830
5854
|
} finally {
|
|
5831
5855
|
if (s) throw s.error;
|
|
5832
5856
|
}
|
|
5833
5857
|
}
|
|
5834
|
-
|
|
5835
|
-
}, d.prototype.onopen = function(
|
|
5836
|
-
}, d.prototype.onerror = function(
|
|
5837
|
-
}, d.prototype.onmessage = function(
|
|
5858
|
+
n.type === "message" && this.onmessage(n);
|
|
5859
|
+
}, d.prototype.onopen = function(n) {
|
|
5860
|
+
}, d.prototype.onerror = function(n) {
|
|
5861
|
+
}, d.prototype.onmessage = function(n) {
|
|
5838
5862
|
}, d.prototype.close = function() {
|
|
5839
5863
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
5840
|
-
}, d.prototype.addEventListener = function(
|
|
5841
|
-
this._listeners[
|
|
5842
|
-
var a = this._listeners[
|
|
5843
|
-
a.includes(s) || (this._listeners[
|
|
5844
|
-
}, d.prototype.removeEventListener = function(
|
|
5845
|
-
var a = this._listeners[
|
|
5846
|
-
this._listeners[
|
|
5864
|
+
}, d.prototype.addEventListener = function(n, s, l) {
|
|
5865
|
+
this._listeners[n] == null && (this._listeners[n] = [], this._eventSource != null && this._eventSource.addEventListener(n, this._onevent_wrapped));
|
|
5866
|
+
var a = this._listeners[n];
|
|
5867
|
+
a.includes(s) || (this._listeners[n] = D(D([], C(a), !1), [s], !1));
|
|
5868
|
+
}, d.prototype.removeEventListener = function(n, s, l) {
|
|
5869
|
+
var a = this._listeners[n];
|
|
5870
|
+
this._listeners[n] = a.filter(function(p) {
|
|
5847
5871
|
return p !== s;
|
|
5848
5872
|
});
|
|
5849
5873
|
}, d;
|
|
5850
5874
|
}();
|
|
5851
5875
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
5852
|
-
var N = function(d,
|
|
5853
|
-
return
|
|
5854
|
-
var a = new XMLHttpRequest(), p = [], v = [],
|
|
5876
|
+
var N = function(d, n) {
|
|
5877
|
+
return n = n || {}, new Promise(function(s, l) {
|
|
5878
|
+
var a = new XMLHttpRequest(), p = [], v = [], j = {}, x = function() {
|
|
5855
5879
|
return { ok: (a.status / 100 | 0) == 2, statusText: a.statusText, status: a.status, url: a.responseURL, text: function() {
|
|
5856
5880
|
return Promise.resolve(a.responseText);
|
|
5857
5881
|
}, json: function() {
|
|
@@ -5863,21 +5887,21 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5863
5887
|
}, entries: function() {
|
|
5864
5888
|
return v;
|
|
5865
5889
|
}, get: function(M) {
|
|
5866
|
-
return
|
|
5890
|
+
return j[M.toLowerCase()];
|
|
5867
5891
|
}, has: function(M) {
|
|
5868
|
-
return M.toLowerCase() in
|
|
5892
|
+
return M.toLowerCase() in j;
|
|
5869
5893
|
} } };
|
|
5870
5894
|
};
|
|
5871
|
-
for (var O in a.open(
|
|
5895
|
+
for (var O in a.open(n.method || "get", d, !0), a.onload = function() {
|
|
5872
5896
|
a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(M, X, L) {
|
|
5873
|
-
p.push(X = X.toLowerCase()), v.push([X, L]),
|
|
5897
|
+
p.push(X = X.toLowerCase()), v.push([X, L]), j[X] = j[X] ? j[X] + "," + L : L;
|
|
5874
5898
|
}), s(x());
|
|
5875
|
-
}, a.onerror =
|
|
5876
|
-
a.send(
|
|
5899
|
+
}, a.onerror = l, a.withCredentials = n.credentials == "include", n.headers) a.setRequestHeader(O, n.headers[O]);
|
|
5900
|
+
a.send(n.body || null);
|
|
5877
5901
|
});
|
|
5878
|
-
}, W =
|
|
5902
|
+
}, W = i({ AsyncStorage: c, fetch: N, eventSource: F });
|
|
5879
5903
|
typeof window < "u" && (window.flagsmith = W), u.createFlagsmithInstance = function() {
|
|
5880
|
-
return
|
|
5904
|
+
return i({ AsyncStorage: c, fetch: N, eventSource: F });
|
|
5881
5905
|
}, u.default = W, Object.defineProperty(u, "__esModule", { value: !0 });
|
|
5882
5906
|
});
|
|
5883
5907
|
})(Dt, Dt.exports);
|
|
@@ -5899,16 +5923,16 @@ var Ra = Dt.exports, Za = {
|
|
|
5899
5923
|
if (!this.flagsmithClient)
|
|
5900
5924
|
try {
|
|
5901
5925
|
this.flagsmithClient = Ra.createFlagsmithInstance();
|
|
5902
|
-
const
|
|
5926
|
+
const c = u.reduce((r, m) => (r[m.feature.name] = m, r), {});
|
|
5903
5927
|
await this.flagsmithClient.init({
|
|
5904
5928
|
environmentID: A.apiKey,
|
|
5905
5929
|
api: (A == null ? void 0 : A.url) ?? "https://feature-flag-proxy.feedme.farm/api/v1/",
|
|
5906
5930
|
enableAnalytics: (A == null ? void 0 : A.enableAnalytics) ?? !0,
|
|
5907
|
-
defaultFlags:
|
|
5931
|
+
defaultFlags: c,
|
|
5908
5932
|
cacheFlags: (A == null ? void 0 : A.cacheFlags) ?? !0
|
|
5909
5933
|
});
|
|
5910
|
-
} catch (
|
|
5911
|
-
throw console.error("Failed to initialize FeatureFlag:",
|
|
5934
|
+
} catch (c) {
|
|
5935
|
+
throw console.error("Failed to initialize FeatureFlag:", c), c;
|
|
5912
5936
|
}
|
|
5913
5937
|
}
|
|
5914
5938
|
async setUser(A) {
|
|
@@ -5929,54 +5953,54 @@ var Ra = Dt.exports, Za = {
|
|
|
5929
5953
|
async getFlags() {
|
|
5930
5954
|
this.ensureInitialized();
|
|
5931
5955
|
const A = this.flagsmithClient.getAllFlags();
|
|
5932
|
-
return Object.entries(A).map(([u,
|
|
5933
|
-
var
|
|
5956
|
+
return Object.entries(A).map(([u, c]) => {
|
|
5957
|
+
var r;
|
|
5934
5958
|
return {
|
|
5935
5959
|
feature: {
|
|
5936
5960
|
name: u,
|
|
5937
|
-
id: (
|
|
5961
|
+
id: (c == null ? void 0 : c.id) ?? 0
|
|
5938
5962
|
},
|
|
5939
|
-
enabled:
|
|
5940
|
-
value: ((
|
|
5963
|
+
enabled: c.enabled,
|
|
5964
|
+
value: ((r = c.value) == null ? void 0 : r.toString()) ?? null
|
|
5941
5965
|
};
|
|
5942
5966
|
});
|
|
5943
5967
|
}
|
|
5944
5968
|
getFlagValue(A, u) {
|
|
5945
5969
|
this.ensureInitialized();
|
|
5946
|
-
const
|
|
5947
|
-
if (
|
|
5970
|
+
const c = this.flagsmithClient.getValue(A);
|
|
5971
|
+
if (c == null)
|
|
5948
5972
|
return null;
|
|
5949
5973
|
try {
|
|
5950
|
-
const
|
|
5951
|
-
return u ? u(
|
|
5952
|
-
} catch (
|
|
5953
|
-
return console.error("Error transforming flag value:",
|
|
5974
|
+
const r = c.toString();
|
|
5975
|
+
return u ? u(r) : typeof {} == "number" ? isNaN(Number(r)) ? null : Number(r) : typeof {} == "boolean" ? r.toLowerCase() === "true" : r;
|
|
5976
|
+
} catch (r) {
|
|
5977
|
+
return console.error("Error transforming flag value:", r), null;
|
|
5954
5978
|
}
|
|
5955
5979
|
}
|
|
5956
5980
|
getFlag(A) {
|
|
5957
5981
|
this.ensureInitialized();
|
|
5958
5982
|
const u = this.flagsmithClient.getValue(A);
|
|
5959
5983
|
if (u == null) return null;
|
|
5960
|
-
const
|
|
5984
|
+
const c = this.flagsmithClient.hasFeature(A);
|
|
5961
5985
|
return {
|
|
5962
5986
|
feature: {
|
|
5963
5987
|
name: A,
|
|
5964
5988
|
id: 0
|
|
5965
5989
|
},
|
|
5966
|
-
enabled:
|
|
5990
|
+
enabled: c,
|
|
5967
5991
|
value: u.toString()
|
|
5968
5992
|
};
|
|
5969
5993
|
}
|
|
5970
|
-
async getUserFlagValue(A, u,
|
|
5994
|
+
async getUserFlagValue(A, u, c = null, r) {
|
|
5971
5995
|
var y;
|
|
5972
|
-
const
|
|
5996
|
+
const m = this.userContext;
|
|
5973
5997
|
try {
|
|
5974
|
-
return await this.setUser(A), this.getFlagValue(u,
|
|
5998
|
+
return await this.setUser(A), this.getFlagValue(u, r) ?? c;
|
|
5975
5999
|
} catch (h) {
|
|
5976
|
-
return console.error(`Error getting user flag value for ${u}:`, h),
|
|
6000
|
+
return console.error(`Error getting user flag value for ${u}:`, h), c;
|
|
5977
6001
|
} finally {
|
|
5978
6002
|
try {
|
|
5979
|
-
await ((y = this.flagsmithClient) == null ? void 0 : y.logout()), this.userContext = null,
|
|
6003
|
+
await ((y = this.flagsmithClient) == null ? void 0 : y.logout()), this.userContext = null, m && await this.setUser(m.identifier);
|
|
5980
6004
|
} catch (h) {
|
|
5981
6005
|
console.error("Error during cleanup:", h);
|
|
5982
6006
|
}
|
|
@@ -5985,91 +6009,91 @@ var Ra = Dt.exports, Za = {
|
|
|
5985
6009
|
reset() {
|
|
5986
6010
|
this.flagsmithClient = null, this.userContext = null;
|
|
5987
6011
|
}
|
|
5988
|
-
}, Ne(de, "instance"), de), za = Na.getInstance(), Ie = ve(!1), Ue = ve([]),
|
|
6012
|
+
}, Ne(de, "instance"), de), za = Na.getInstance(), Ie = ve(!1), Ue = ve([]), Ye = ve(null);
|
|
5989
6013
|
function Ua(e = za) {
|
|
5990
|
-
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), u = async (w,
|
|
6014
|
+
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), u = async (w, P = []) => {
|
|
5991
6015
|
if (Ie.value) {
|
|
5992
6016
|
console.warn("FeatureFlag is already initialized.");
|
|
5993
6017
|
return;
|
|
5994
6018
|
}
|
|
5995
6019
|
try {
|
|
5996
|
-
await e.init(w,
|
|
6020
|
+
await e.init(w, P), Ue.value = await e.getFlags(), Ie.value = !0, Ye.value = null;
|
|
5997
6021
|
} catch (I) {
|
|
5998
|
-
console.error("Failed to initialize feature flags:", I),
|
|
6022
|
+
console.error("Failed to initialize feature flags:", I), Ye.value = I;
|
|
5999
6023
|
}
|
|
6000
|
-
},
|
|
6024
|
+
}, c = async (w) => {
|
|
6001
6025
|
if (A())
|
|
6002
6026
|
try {
|
|
6003
|
-
await e.setUser(w), Ue.value = await e.getFlags(),
|
|
6004
|
-
} catch (
|
|
6005
|
-
console.error("Failed to set user:",
|
|
6027
|
+
await e.setUser(w), Ue.value = await e.getFlags(), Ye.value = null;
|
|
6028
|
+
} catch (P) {
|
|
6029
|
+
console.error("Failed to set user:", P), Ye.value = P;
|
|
6006
6030
|
}
|
|
6007
|
-
},
|
|
6031
|
+
}, r = async (w) => c(`${Tt}-${w}`), m = (w, P, I = null) => {
|
|
6008
6032
|
if (!A()) return I;
|
|
6009
6033
|
try {
|
|
6010
|
-
return e.getFlagValue(w,
|
|
6034
|
+
return e.getFlagValue(w, P) ?? I;
|
|
6011
6035
|
} catch (H) {
|
|
6012
6036
|
return console.error(`Error getting flag value for ${w}:`, H), I;
|
|
6013
6037
|
}
|
|
6014
|
-
}, y = (w,
|
|
6015
|
-
if (!A()) return
|
|
6038
|
+
}, y = (w, P) => {
|
|
6039
|
+
if (!A()) return P ?? null;
|
|
6016
6040
|
try {
|
|
6017
|
-
return e.getFlag(w) ??
|
|
6041
|
+
return e.getFlag(w) ?? P ?? null;
|
|
6018
6042
|
} catch (I) {
|
|
6019
|
-
return console.error(`Error getting flag for ${w}:`, I),
|
|
6043
|
+
return console.error(`Error getting flag for ${w}:`, I), P ?? null;
|
|
6020
6044
|
}
|
|
6021
|
-
}, h = async (w,
|
|
6045
|
+
}, h = async (w, P, I = null, H) => {
|
|
6022
6046
|
if (!A()) return I;
|
|
6023
6047
|
try {
|
|
6024
|
-
return await e.getUserFlagValue(w,
|
|
6048
|
+
return await e.getUserFlagValue(w, P, I, H);
|
|
6025
6049
|
} catch (z) {
|
|
6026
|
-
return console.error(`Error getting user flag value for ${
|
|
6050
|
+
return console.error(`Error getting user flag value for ${P}:`, z), I;
|
|
6027
6051
|
}
|
|
6028
|
-
}, E = async (w,
|
|
6052
|
+
}, E = async (w, P, I = null, H) => h(`${Tt}-${w}`, P, I, H), Y = () => {
|
|
6029
6053
|
try {
|
|
6030
6054
|
e.reset();
|
|
6031
6055
|
} catch (w) {
|
|
6032
6056
|
console.error("Error resetting feature flags:", w);
|
|
6033
6057
|
} finally {
|
|
6034
|
-
Ue.value = [], Ie.value = !1,
|
|
6058
|
+
Ue.value = [], Ie.value = !1, Ye.value = null;
|
|
6035
6059
|
}
|
|
6036
6060
|
};
|
|
6037
6061
|
return {
|
|
6038
6062
|
flags: vt(Ue),
|
|
6039
6063
|
isInitialized: vt(Ie),
|
|
6040
|
-
error: vt(
|
|
6064
|
+
error: vt(Ye),
|
|
6041
6065
|
init: u,
|
|
6042
|
-
setUser:
|
|
6043
|
-
setBusiness:
|
|
6044
|
-
getFlagValue:
|
|
6066
|
+
setUser: c,
|
|
6067
|
+
setBusiness: r,
|
|
6068
|
+
getFlagValue: m,
|
|
6045
6069
|
getFlag: y,
|
|
6046
6070
|
getUserFlagValue: h,
|
|
6047
6071
|
getBusinessFlagValue: E,
|
|
6048
|
-
reset:
|
|
6072
|
+
reset: Y
|
|
6049
6073
|
};
|
|
6050
6074
|
}
|
|
6051
6075
|
var Wa = () => Ua();
|
|
6052
6076
|
const to = /* @__PURE__ */ xe({
|
|
6053
6077
|
__name: "App",
|
|
6054
6078
|
setup(e) {
|
|
6055
|
-
const A =
|
|
6079
|
+
const A = Yt(), { init: u } = Wa();
|
|
6056
6080
|
return Lt(async () => {
|
|
6057
6081
|
A.registerSidebarComponent(Ia), await u({
|
|
6058
6082
|
apiKey: A.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
6059
6083
|
});
|
|
6060
|
-
}), (
|
|
6061
|
-
const
|
|
6062
|
-
return Ve(), ke(
|
|
6084
|
+
}), (c, r) => {
|
|
6085
|
+
const m = Gt("RouterView");
|
|
6086
|
+
return Ve(), ke(m);
|
|
6063
6087
|
};
|
|
6064
6088
|
}
|
|
6065
6089
|
}), so = () => {
|
|
6066
|
-
const e = [
|
|
6090
|
+
const e = [Qr, Er, hr, Sr], A = new Set(e.flatMap((u) => Object.keys(u)));
|
|
6067
6091
|
return Array.from(A).reduce(
|
|
6068
|
-
(u,
|
|
6069
|
-
const
|
|
6070
|
-
return u[
|
|
6071
|
-
...
|
|
6072
|
-
...y[
|
|
6092
|
+
(u, c) => {
|
|
6093
|
+
const r = c;
|
|
6094
|
+
return u[c] = e.reduce((m, y) => ({
|
|
6095
|
+
...m,
|
|
6096
|
+
...y[r] || {}
|
|
6073
6097
|
}), {}), u;
|
|
6074
6098
|
},
|
|
6075
6099
|
{}
|
|
@@ -6077,18 +6101,18 @@ const to = /* @__PURE__ */ xe({
|
|
|
6077
6101
|
};
|
|
6078
6102
|
export {
|
|
6079
6103
|
_a as C,
|
|
6080
|
-
|
|
6104
|
+
$a as G,
|
|
6081
6105
|
T as R,
|
|
6082
|
-
|
|
6106
|
+
Ga as _,
|
|
6083
6107
|
Ea as a,
|
|
6084
6108
|
Ja as b,
|
|
6085
6109
|
Re as c,
|
|
6086
6110
|
b as d,
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6111
|
+
ea as e,
|
|
6112
|
+
bn as f,
|
|
6113
|
+
kr as g,
|
|
6114
|
+
Te as h,
|
|
6115
|
+
so as i,
|
|
6092
6116
|
to as j,
|
|
6093
6117
|
eo as r,
|
|
6094
6118
|
Wa as u,
|