@feedmepos/mf-hrm-portal 2.0.24-dev.9 → 2.0.25-dev
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-NOjQWc0n.js +1145 -0
- package/dist/{EmployeeList-CYOUXmdo.js → EmployeeList-CLAEc_Dl.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-DR0uJn8p.js → Main-CnLbqtUE.js} +1142 -1138
- package/dist/{Main-9hhLn78R.js → Main-DaG5Gqo3.js} +6 -6
- package/dist/Main-zga1U6eC.js +94 -0
- package/dist/{PermissionSetList-CPzhnAsF.js → PermissionSetList-4T-K3P1Y.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DwVt6Zov.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-SBojB1i0.js} +741 -741
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-B3wDoRUf.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Sn93AcEd.js} +1 -1
- package/dist/{RoleList-DQEogUW9.js → RoleList-Dz7Vwovj.js} +51 -49
- package/dist/{SelectFilter-C61IZSID.js → SelectFilter-ATOm0hdn.js} +37 -37
- package/dist/{TeamMemberList-BjZhJqoO.js → TeamMemberList-DYGEd5pe.js} +57 -57
- package/dist/{TimesheetList-FsSNYSN_.js → TimesheetList-nAeY6i18.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-DcyltQoo.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-Bd74jnJu.js} +2 -2
- package/dist/{app-D9NotBhb.js → app-DhjOMwb9.js} +778 -732
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DtwtoL_z.js → dayjs.min-Bd3JE67B.js} +1 -1
- package/dist/{employee-F_qzDON_.js → employee-B3aJC3BG.js} +3 -3
- package/dist/{iteration-BQBKoufN.js → iteration-gb-z-6D3.js} +1 -1
- package/dist/{lodash-gOdQI_3W.js → lodash-BOwvb210.js} +1 -1
- package/dist/{rule-BR05-rZt.js → rule-CkP2wcOa.js} +25 -25
- package/dist/src/api/audit-log/index.d.ts +17 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CAmajyh0.js → useAppStore-ByWfAgOH.js} +1 -1
- package/dist/{useLoading-D7Nr5flX.js → useLoading-cyuvXo-X.js} +1 -1
- package/dist/{useReportPermissions-DRSVPDf-.js → useReportPermissions-Blkuv4SJ.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-Cc0vtZTU.js +0 -1054
- package/dist/Main-DHNuxBWB.js +0 -90
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Ze = (e, A, m) =>
|
|
4
|
-
import { isRef as
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
import { useRoute as
|
|
1
|
+
var _s = Object.defineProperty;
|
|
2
|
+
var $s = (e, A, m) => A in e ? _s(e, A, { enumerable: !0, configurable: !0, writable: !0, value: m }) : e[A] = m;
|
|
3
|
+
var Ze = (e, A, m) => $s(e, typeof A != "symbol" ? A + "" : A, m);
|
|
4
|
+
import { isRef as er, ref as he, shallowRef as tr, watchEffect as Wt, computed as jt, h as Qt, defineComponent as xe, createBlock as ke, renderSlot as St, createCommentVNode as sr, unref as Ce, openBlock as Ve, createElementBlock as Tt, createElementVNode as Me, toDisplayString as It, watch as rr, nextTick as nr, onMounted as kt, onBeforeUnmount as ar, normalizeStyle as or, resolveComponent as Gt, withCtx as ir, createVNode as lr, defineAsyncComponent as cr, readonly as vt } from "vue";
|
|
5
|
+
import { useBreakpoints as Ar } from "@feedmepos/ui-library";
|
|
6
|
+
import { useRoute as ur, useRouter as mr } from "vue-router";
|
|
7
7
|
import { useCoreStore as Yt, useI18n as Kt } from "@feedmepos/mf-common";
|
|
8
8
|
const Lt = {
|
|
9
9
|
predefinedRanges: {
|
|
@@ -136,14 +136,14 @@ const Lt = {
|
|
|
136
136
|
requestPath: "Request Path",
|
|
137
137
|
requestBody: "Request Body"
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, gr = {
|
|
140
140
|
date: Lt,
|
|
141
141
|
auditLog: Jt
|
|
142
|
-
},
|
|
142
|
+
}, dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
143
143
|
__proto__: null,
|
|
144
144
|
auditLog: Jt,
|
|
145
145
|
date: Lt,
|
|
146
|
-
default:
|
|
146
|
+
default: gr
|
|
147
147
|
}, Symbol.toStringTag, { value: "Module" })), _t = {
|
|
148
148
|
predefinedRanges: {
|
|
149
149
|
today: "วันนี้",
|
|
@@ -155,7 +155,7 @@ const Lt = {
|
|
|
155
155
|
lastMonth: "เดือนที่แล้ว"
|
|
156
156
|
}
|
|
157
157
|
}, $t = {
|
|
158
|
-
title: "
|
|
158
|
+
title: "ประวัติการใช้งาน",
|
|
159
159
|
export: "ส่งออก",
|
|
160
160
|
dateRange: {
|
|
161
161
|
placeholder: "เลือกช่วงวันที่"
|
|
@@ -168,8 +168,8 @@ const Lt = {
|
|
|
168
168
|
selected_user_prefix: "ผู้ใช้: ",
|
|
169
169
|
subject_placeholder: "หัวข้อ",
|
|
170
170
|
selected_subject_prefix: "หัวข้อ: ",
|
|
171
|
-
action_placeholder: "
|
|
172
|
-
selected_action_prefix: "
|
|
171
|
+
action_placeholder: "การดำเนินการ",
|
|
172
|
+
selected_action_prefix: "การดำเนินการ: ",
|
|
173
173
|
status_placeholder: "สถานะ",
|
|
174
174
|
selected_status_prefix: "สถานะ: ",
|
|
175
175
|
outcome_placeholder: "สถานะ",
|
|
@@ -197,7 +197,7 @@ const Lt = {
|
|
|
197
197
|
timestamp: "วันที่",
|
|
198
198
|
user: "ผู้ใช้",
|
|
199
199
|
subject: "หัวข้อ",
|
|
200
|
-
action: "
|
|
200
|
+
action: "การดำเนินการ",
|
|
201
201
|
operation: "รายละเอียดการดำเนินการ",
|
|
202
202
|
outcome: "สถานะ"
|
|
203
203
|
},
|
|
@@ -209,8 +209,8 @@ const Lt = {
|
|
|
209
209
|
skipped: "ข้ามไป"
|
|
210
210
|
},
|
|
211
211
|
noData: {
|
|
212
|
-
title: "
|
|
213
|
-
subtitle: "
|
|
212
|
+
title: "ไม่มีประวัติการใช้งาน",
|
|
213
|
+
subtitle: "ประวัติการใช้งานสิทธิ์จะแสดงขึ้นที่นี่เมื่อมีกิจกรรมถูกบันทึก"
|
|
214
214
|
},
|
|
215
215
|
pagination: {
|
|
216
216
|
page: "หน้า {page}",
|
|
@@ -229,24 +229,24 @@ const Lt = {
|
|
|
229
229
|
timestamp: "วันที่",
|
|
230
230
|
userName: "ชื่อผู้ใช้",
|
|
231
231
|
userPhone: "เบอร์โทรศัพท์",
|
|
232
|
-
subject: "
|
|
233
|
-
action: "
|
|
232
|
+
subject: "ตำแหน่ง",
|
|
233
|
+
action: "การดำเนินการ",
|
|
234
234
|
operation: "รายละเอียดการดำเนินการ",
|
|
235
235
|
outcome: "สถานะ",
|
|
236
236
|
businessId: "รหัสธุรกิจ",
|
|
237
237
|
restaurantId: "รหัสร้านอาหาร",
|
|
238
238
|
country: "ประเทศ",
|
|
239
239
|
resolvedFrom: "แก้ไขจาก",
|
|
240
|
-
requestMethod: "
|
|
241
|
-
requestPath: "
|
|
240
|
+
requestMethod: "วิธีการเข้าถึง",
|
|
241
|
+
requestPath: "URL ที่เข้าถึง"
|
|
242
242
|
},
|
|
243
243
|
detail: {
|
|
244
|
-
header: "
|
|
244
|
+
header: "รายละเอียดประวัติการใช้งาน",
|
|
245
245
|
date: "วันที่",
|
|
246
246
|
timestamp: "เวลา",
|
|
247
247
|
user: "ผู้ใช้",
|
|
248
248
|
email: "อีเมล",
|
|
249
|
-
action: "
|
|
249
|
+
action: "การดำเนินการ",
|
|
250
250
|
operation: "รายละเอียดการดำเนินการ",
|
|
251
251
|
subject: "หัวข้อ",
|
|
252
252
|
field: "ฟิลด์",
|
|
@@ -255,35 +255,35 @@ const Lt = {
|
|
|
255
255
|
restaurant: "ร้านอาหาร",
|
|
256
256
|
eventDetails: "รายละเอียดเหตุการณ์",
|
|
257
257
|
actionDescription: "คำอธิบายการกระทำ",
|
|
258
|
-
metadata: "
|
|
258
|
+
metadata: "ข้อมูลเพิ่มเติม",
|
|
259
259
|
reason: "เหตุผล",
|
|
260
260
|
resolvedFrom: "แก้ไขจาก",
|
|
261
261
|
resolvedFromValue: {
|
|
262
262
|
admin: "ผู้ดูแลระบบ",
|
|
263
263
|
staff: "พนักงาน",
|
|
264
|
-
permissionSet: "
|
|
265
|
-
systemPermissionSet: "
|
|
264
|
+
permissionSet: "กลุ่มสิทธิ์",
|
|
265
|
+
systemPermissionSet: "กลุ่มสิทธิ์ระบบ",
|
|
266
266
|
custom: "กำหนดเอง",
|
|
267
267
|
noMatch: "ไม่พบรายการที่ตรงกัน",
|
|
268
268
|
unknown: "ไม่ทราบ"
|
|
269
269
|
},
|
|
270
|
-
permissionSet: "
|
|
270
|
+
permissionSet: "กลุ่มสิทธิ์",
|
|
271
271
|
permissionTrace: "เส้นทางสิทธิ์",
|
|
272
272
|
decisivePermission: "กฎที่จำเป็น",
|
|
273
273
|
decisiveRule: "กฎที่เด็ดขาด",
|
|
274
274
|
request: "คำขอ",
|
|
275
|
-
requestMethod: "
|
|
276
|
-
requestPath: "
|
|
275
|
+
requestMethod: "วิธีการเข้าถึง",
|
|
276
|
+
requestPath: "URL ที่เข้าถึง",
|
|
277
277
|
requestBody: "เนื้อหาคำขอ"
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, pr = {
|
|
280
280
|
date: _t,
|
|
281
281
|
auditLog: $t
|
|
282
|
-
},
|
|
282
|
+
}, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
283
283
|
__proto__: null,
|
|
284
284
|
auditLog: $t,
|
|
285
285
|
date: _t,
|
|
286
|
-
default:
|
|
286
|
+
default: pr
|
|
287
287
|
}, Symbol.toStringTag, { value: "Module" })), es = {
|
|
288
288
|
predefinedRanges: {
|
|
289
289
|
today: "今天",
|
|
@@ -416,14 +416,14 @@ const Lt = {
|
|
|
416
416
|
requestPath: "请求路径",
|
|
417
417
|
requestBody: "请求内容"
|
|
418
418
|
}
|
|
419
|
-
},
|
|
419
|
+
}, fr = {
|
|
420
420
|
date: es,
|
|
421
421
|
auditLog: ts
|
|
422
|
-
},
|
|
422
|
+
}, yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
423
423
|
__proto__: null,
|
|
424
424
|
auditLog: ts,
|
|
425
425
|
date: es,
|
|
426
|
-
default:
|
|
426
|
+
default: fr
|
|
427
427
|
}, Symbol.toStringTag, { value: "Module" })), ss = {
|
|
428
428
|
predefinedRanges: {
|
|
429
429
|
today: "今天",
|
|
@@ -434,7 +434,7 @@ const Lt = {
|
|
|
434
434
|
thisMonth: "本月",
|
|
435
435
|
lastMonth: "上月"
|
|
436
436
|
}
|
|
437
|
-
},
|
|
437
|
+
}, rs = {
|
|
438
438
|
title: "審計日誌",
|
|
439
439
|
export: "匯出",
|
|
440
440
|
dateRange: {
|
|
@@ -556,22 +556,23 @@ const Lt = {
|
|
|
556
556
|
requestPath: "請求路徑",
|
|
557
557
|
requestBody: "請求內容"
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, vr = {
|
|
560
560
|
date: ss,
|
|
561
|
-
auditLog:
|
|
562
|
-
},
|
|
561
|
+
auditLog: rs
|
|
562
|
+
}, hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
563
563
|
__proto__: null,
|
|
564
|
-
auditLog:
|
|
564
|
+
auditLog: rs,
|
|
565
565
|
date: ss,
|
|
566
|
-
default:
|
|
567
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
568
|
-
"en-US":
|
|
569
|
-
"zh-CN":
|
|
570
|
-
"th-TH":
|
|
571
|
-
"zh-Hant":
|
|
572
|
-
},
|
|
566
|
+
default: vr
|
|
567
|
+
}, Symbol.toStringTag, { value: "Module" })), Br = {
|
|
568
|
+
"en-US": dr,
|
|
569
|
+
"zh-CN": yr,
|
|
570
|
+
"th-TH": br,
|
|
571
|
+
"zh-Hant": hr
|
|
572
|
+
}, ns = {
|
|
573
573
|
employee: {
|
|
574
574
|
title: "Employee",
|
|
575
|
+
subtitle: "Manage employees with access to the POS at your outlets.",
|
|
575
576
|
exportButtonLabel: "Export",
|
|
576
577
|
createButtonLabel: "Create employee",
|
|
577
578
|
columns: {
|
|
@@ -769,29 +770,30 @@ const Lt = {
|
|
|
769
770
|
placeholder: "Search restaurant"
|
|
770
771
|
}
|
|
771
772
|
}
|
|
772
|
-
},
|
|
773
|
-
hr:
|
|
774
|
-
},
|
|
773
|
+
}, wr = {
|
|
774
|
+
hr: ns
|
|
775
|
+
}, Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
775
776
|
__proto__: null,
|
|
776
|
-
default:
|
|
777
|
-
hr:
|
|
777
|
+
default: wr,
|
|
778
|
+
hr: ns
|
|
778
779
|
}, Symbol.toStringTag, { value: "Module" })), as = {
|
|
779
780
|
employee: {
|
|
780
781
|
title: "พนักงาน",
|
|
782
|
+
subtitle: "จัดการพนักงานที่สามารถเข้าถึงระบบ POS ในสาขาของคุณ",
|
|
781
783
|
exportButtonLabel: "ส่งออก",
|
|
782
784
|
createButtonLabel: "สร้างพนักงาน",
|
|
783
785
|
columns: {
|
|
784
786
|
code: "รหัส",
|
|
785
787
|
name: "ชื่อ",
|
|
786
788
|
restaurants: "ร้านอาหาร",
|
|
787
|
-
assignedRole: "
|
|
789
|
+
assignedRole: "ตำแหน่งที่ได้รับมอบหมาย",
|
|
788
790
|
since: "เข้าร่วมตั้งแต่"
|
|
789
791
|
},
|
|
790
792
|
form: {
|
|
791
793
|
add: "สร้างพนักงาน",
|
|
792
794
|
update: "อัพเดทพนักงาน",
|
|
793
795
|
employeeSetting: "ตั้งค่าพนักงาน",
|
|
794
|
-
assignmentSection: "
|
|
796
|
+
assignmentSection: "การกำหนดสาขาและตำแหน่ง",
|
|
795
797
|
addAnother: "เพิ่มอีกหนึ่งรายการ",
|
|
796
798
|
masterUserConfig: "ตั้งค่าผู้ใช้หลัก",
|
|
797
799
|
code: "รหัส",
|
|
@@ -802,9 +804,9 @@ const Lt = {
|
|
|
802
804
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
803
805
|
passcodeGenerate: "สร้างรหัส",
|
|
804
806
|
atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
|
|
805
|
-
roleRequired: "
|
|
807
|
+
roleRequired: "กรุณาเลือกตำแหน่งให้ทุกร้านอาหาร",
|
|
806
808
|
all: "ทั้งหมด",
|
|
807
|
-
role: "
|
|
809
|
+
role: "ตำแหน่ง",
|
|
808
810
|
name: "ชื่อ"
|
|
809
811
|
},
|
|
810
812
|
create: {
|
|
@@ -823,8 +825,8 @@ const Lt = {
|
|
|
823
825
|
placeholder: "ค้นหาพนักงาน"
|
|
824
826
|
},
|
|
825
827
|
filter: {
|
|
826
|
-
role_placeholder: "
|
|
827
|
-
selected_role_prefix: "
|
|
828
|
+
role_placeholder: "กรองตามตำแหน่ง",
|
|
829
|
+
selected_role_prefix: "ตำแหน่งที่เลือก: "
|
|
828
830
|
},
|
|
829
831
|
restaurants: "ร้านอาหาร: {restaurants}",
|
|
830
832
|
noData: {
|
|
@@ -839,8 +841,8 @@ const Lt = {
|
|
|
839
841
|
}
|
|
840
842
|
},
|
|
841
843
|
role: {
|
|
842
|
-
title: "
|
|
843
|
-
createButtonLabel: "
|
|
844
|
+
title: "ตำแหน่ง",
|
|
845
|
+
createButtonLabel: "สร้างตำแหน่ง",
|
|
844
846
|
columns: {
|
|
845
847
|
name: "ชื่อ",
|
|
846
848
|
operation: "การดำเนินการ",
|
|
@@ -864,20 +866,20 @@ const Lt = {
|
|
|
864
866
|
successMessage: "{name} อัปเดตสำเร็จ"
|
|
865
867
|
},
|
|
866
868
|
remove: {
|
|
867
|
-
title: "
|
|
868
|
-
message: "
|
|
869
|
+
title: "ลบตำแหน่ง",
|
|
870
|
+
message: "คุณต้องการลบตำแหน่ง {name} ใช่หรือไม่?",
|
|
869
871
|
successMessage: "ลบ {name} สำเร็จ"
|
|
870
872
|
},
|
|
871
873
|
search: {
|
|
872
|
-
placeholder: "
|
|
874
|
+
placeholder: "ค้นหาตำแหน่ง"
|
|
873
875
|
},
|
|
874
876
|
form: {
|
|
875
|
-
add: "
|
|
876
|
-
update: "
|
|
877
|
+
add: "สร้างตำแหน่ง",
|
|
878
|
+
update: "อัปเดตตำแหน่ง",
|
|
877
879
|
name: "ชื่อ",
|
|
878
880
|
required: "โปรดระบุข้อมูล",
|
|
879
881
|
all: "ทั้งหมด",
|
|
880
|
-
roleDetail: "
|
|
882
|
+
roleDetail: "รายละเอียดตำแหน่ง",
|
|
881
883
|
atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
|
|
882
884
|
permissions: "สิทธิ์",
|
|
883
885
|
maxDiscountPercentage: "เปอร์เซ็นต์ส่วนลดสูงสุด",
|
|
@@ -886,14 +888,14 @@ const Lt = {
|
|
|
886
888
|
minValueIs: "ค่าต่ำสุดคือ {min}",
|
|
887
889
|
restaurant: "ร้านอาหาร",
|
|
888
890
|
permissionLabels: {
|
|
889
|
-
"order:discount": "
|
|
891
|
+
"order:discount": "ใช้ส่วนลด",
|
|
890
892
|
"order:changePrice": "เปลี่ยนราคา",
|
|
891
|
-
"order:void": "
|
|
892
|
-
"order:payment": "
|
|
893
|
-
"order:claimDeposit": "
|
|
894
|
-
"order:resend": "
|
|
895
|
-
"order:changePaymentType": "
|
|
896
|
-
refund: "
|
|
893
|
+
"order:void": "ยกเลิกออเดอร์",
|
|
894
|
+
"order:payment": "ชำระเงิน",
|
|
895
|
+
"order:claimDeposit": "ขอคืนมัดจำ",
|
|
896
|
+
"order:resend": "ส่งออเดอร์ซ้ำ",
|
|
897
|
+
"order:changePaymentType": "เปลี่ยนวิธีการชำระเงิน",
|
|
898
|
+
refund: "ขอคืนเงิน",
|
|
897
899
|
counter: "เคาน์เตอร์",
|
|
898
900
|
mallIntegration: "การเชื่อมต่อกับห้างสรรพสินค้า",
|
|
899
901
|
drawer: "ลิ้นชัก",
|
|
@@ -930,8 +932,8 @@ const Lt = {
|
|
|
930
932
|
}
|
|
931
933
|
},
|
|
932
934
|
noData: {
|
|
933
|
-
title: "
|
|
934
|
-
subtitle: "
|
|
935
|
+
title: "ไม่พบตำแหน่ง",
|
|
936
|
+
subtitle: "คุณไม่มีตำแหน่งที่จะแสดงในขณะนี้"
|
|
935
937
|
},
|
|
936
938
|
tooltip: {
|
|
937
939
|
labels: {
|
|
@@ -974,15 +976,16 @@ const Lt = {
|
|
|
974
976
|
placeholder: "ค้นหาร้านอาหาร"
|
|
975
977
|
}
|
|
976
978
|
}
|
|
977
|
-
},
|
|
979
|
+
}, Cr = {
|
|
978
980
|
hr: as
|
|
979
|
-
},
|
|
981
|
+
}, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
982
|
__proto__: null,
|
|
981
|
-
default:
|
|
983
|
+
default: Cr,
|
|
982
984
|
hr: as
|
|
983
985
|
}, Symbol.toStringTag, { value: "Module" })), os = {
|
|
984
986
|
employee: {
|
|
985
987
|
title: "员工",
|
|
988
|
+
subtitle: "管理可访问您门店 POS 系统的员工。",
|
|
986
989
|
exportButtonLabel: "导出",
|
|
987
990
|
createButtonLabel: "添加员工",
|
|
988
991
|
columns: {
|
|
@@ -1180,15 +1183,16 @@ const Lt = {
|
|
|
1180
1183
|
placeholder: "搜索餐厅"
|
|
1181
1184
|
}
|
|
1182
1185
|
}
|
|
1183
|
-
},
|
|
1186
|
+
}, jr = {
|
|
1184
1187
|
hr: os
|
|
1185
|
-
},
|
|
1188
|
+
}, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1186
1189
|
__proto__: null,
|
|
1187
|
-
default:
|
|
1190
|
+
default: jr,
|
|
1188
1191
|
hr: os
|
|
1189
1192
|
}, Symbol.toStringTag, { value: "Module" })), is = {
|
|
1190
1193
|
employee: {
|
|
1191
1194
|
title: "員工",
|
|
1195
|
+
subtitle: "管理可存取您門市 POS 系統的員工。",
|
|
1192
1196
|
exportButtonLabel: "導出",
|
|
1193
1197
|
createButtonLabel: "添加員工",
|
|
1194
1198
|
columns: {
|
|
@@ -1381,19 +1385,20 @@ const Lt = {
|
|
|
1381
1385
|
subtitle: ""
|
|
1382
1386
|
}
|
|
1383
1387
|
}
|
|
1384
|
-
},
|
|
1388
|
+
}, Yr = {
|
|
1385
1389
|
hr: is
|
|
1386
|
-
},
|
|
1390
|
+
}, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1387
1391
|
__proto__: null,
|
|
1388
|
-
default:
|
|
1392
|
+
default: Yr,
|
|
1389
1393
|
hr: is
|
|
1390
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1391
|
-
"en-US":
|
|
1392
|
-
"zh-CN":
|
|
1393
|
-
"th-TH":
|
|
1394
|
-
"zh-Hant":
|
|
1394
|
+
}, Symbol.toStringTag, { value: "Module" })), xr = {
|
|
1395
|
+
"en-US": Mr,
|
|
1396
|
+
"zh-CN": Gr,
|
|
1397
|
+
"th-TH": Dr,
|
|
1398
|
+
"zh-Hant": Er
|
|
1395
1399
|
}, ls = {
|
|
1396
1400
|
title: "Team members",
|
|
1401
|
+
subtitle: "Manage team members with access to the Portal and POS. Assign Portal permissions and POS roles.",
|
|
1397
1402
|
actions: {
|
|
1398
1403
|
addMember: "Add member",
|
|
1399
1404
|
updateMember: "Update member",
|
|
@@ -1497,36 +1502,36 @@ const Lt = {
|
|
|
1497
1502
|
}
|
|
1498
1503
|
}
|
|
1499
1504
|
}, cs = {
|
|
1500
|
-
title: "
|
|
1501
|
-
createButtonLabel: "Create
|
|
1505
|
+
title: "Roles",
|
|
1506
|
+
createButtonLabel: "Create role",
|
|
1502
1507
|
search: {
|
|
1503
|
-
placeholder: "Search
|
|
1508
|
+
placeholder: "Search role"
|
|
1504
1509
|
},
|
|
1505
1510
|
noData: {
|
|
1506
|
-
title: "No
|
|
1507
|
-
subtitle: "You don't have any
|
|
1511
|
+
title: "No role found",
|
|
1512
|
+
subtitle: "You don't have any role to show at the current moment."
|
|
1508
1513
|
},
|
|
1509
1514
|
form: {
|
|
1510
1515
|
create: {
|
|
1511
|
-
title: "Create
|
|
1512
|
-
confirmButtonLabel: "
|
|
1516
|
+
title: "Create role",
|
|
1517
|
+
confirmButtonLabel: "Create"
|
|
1513
1518
|
},
|
|
1514
1519
|
update: {
|
|
1515
|
-
title: "Update
|
|
1516
|
-
confirmButtonLabel: "
|
|
1520
|
+
title: "Update role",
|
|
1521
|
+
confirmButtonLabel: "Update"
|
|
1517
1522
|
},
|
|
1518
1523
|
delete: {
|
|
1519
|
-
title: "Delete
|
|
1520
|
-
confirmationMessage: "Do you really want to delete
|
|
1521
|
-
successMessage: "
|
|
1522
|
-
conflictError: 'Cannot delete
|
|
1523
|
-
setReferencedConflictError: 'Cannot delete
|
|
1524
|
+
title: "Delete role",
|
|
1525
|
+
confirmationMessage: "Do you really want to delete role {permissionSetName}?",
|
|
1526
|
+
successMessage: "Role {permissionSetName} deleted.",
|
|
1527
|
+
conflictError: 'Cannot delete role "{permissionSetName}" because it is still assigned to users. Please unassign all users first.',
|
|
1528
|
+
setReferencedConflictError: 'Cannot delete role "{permissionSetName}" because it is included in other roles. Remove those references first.'
|
|
1524
1529
|
},
|
|
1525
|
-
name: "
|
|
1526
|
-
namePlaceholder: "Enter
|
|
1527
|
-
nameRequired: "
|
|
1528
|
-
includedSets: "
|
|
1529
|
-
includedSetsPlaceholder: "Select
|
|
1530
|
+
name: "Role name",
|
|
1531
|
+
namePlaceholder: "Enter role name",
|
|
1532
|
+
nameRequired: "Role name is required",
|
|
1533
|
+
includedSets: "Include permissions from other roles",
|
|
1534
|
+
includedSetsPlaceholder: "Select one or more roles to inherit permissions from"
|
|
1530
1535
|
},
|
|
1531
1536
|
categoryLabels: {
|
|
1532
1537
|
General: "General",
|
|
@@ -1618,64 +1623,65 @@ const Lt = {
|
|
|
1618
1623
|
permissions: "Permissions"
|
|
1619
1624
|
}
|
|
1620
1625
|
}
|
|
1621
|
-
},
|
|
1626
|
+
}, Vr = {
|
|
1622
1627
|
team: ls,
|
|
1623
1628
|
permissionSet: cs
|
|
1624
|
-
},
|
|
1629
|
+
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1625
1630
|
__proto__: null,
|
|
1626
|
-
default:
|
|
1631
|
+
default: Vr,
|
|
1627
1632
|
permissionSet: cs,
|
|
1628
1633
|
team: ls
|
|
1629
1634
|
}, Symbol.toStringTag, { value: "Module" })), As = {
|
|
1630
|
-
title: "
|
|
1635
|
+
title: "ผู้ดูแลระบบ",
|
|
1636
|
+
subtitle: "จัดการผู้ดูแลระบบที่สามารถเข้าถึง Portal และ POS กำหนดสิทธิ์ Portal และบทบาท POS",
|
|
1631
1637
|
actions: {
|
|
1632
|
-
addMember: "
|
|
1633
|
-
updateMember: "
|
|
1634
|
-
removeMember: "
|
|
1638
|
+
addMember: "เพิ่มผู้ดูแลระบบ",
|
|
1639
|
+
updateMember: "อัปเดตผู้ดูแลระบบ",
|
|
1640
|
+
removeMember: "ลบผู้ดูแลระบบ"
|
|
1635
1641
|
},
|
|
1636
1642
|
table: {
|
|
1637
1643
|
columns: {
|
|
1638
1644
|
name: "ชื่อ",
|
|
1639
1645
|
phoneNumber: "ผู้ติดต่อ",
|
|
1640
1646
|
restaurant: "ร้านอาหาร",
|
|
1641
|
-
permission: "
|
|
1642
|
-
assignedRoles: "
|
|
1647
|
+
permission: "สิทธิ์",
|
|
1648
|
+
assignedRoles: "ตำแหน่งที่กำหนด"
|
|
1643
1649
|
}
|
|
1644
1650
|
},
|
|
1645
1651
|
labels: {
|
|
1646
1652
|
all: "ทั้งหมด",
|
|
1647
1653
|
businessOwner: "เจ้าของธุรกิจ",
|
|
1648
|
-
permission: "
|
|
1649
|
-
permissions: "
|
|
1654
|
+
permission: "สิทธิ์",
|
|
1655
|
+
permissions: "สิทธิ์",
|
|
1650
1656
|
allowed: "{ count } สิทธิ์ที่อนุญาต",
|
|
1651
1657
|
restaurant: "ร้านอาหาร",
|
|
1652
1658
|
warehouse: "คลังสินค้า"
|
|
1653
1659
|
},
|
|
1654
1660
|
removeMember: {
|
|
1655
|
-
title: "
|
|
1656
|
-
confirmationMessage: "
|
|
1661
|
+
title: "ลบผู้ดูแลระบบ",
|
|
1662
|
+
confirmationMessage: "คุณต้องการที่จะลบ {memberName} จริงหรือไม่?",
|
|
1657
1663
|
successMessage: "{memberName} ถูกลบออก"
|
|
1658
1664
|
},
|
|
1659
1665
|
addMember: {
|
|
1660
|
-
title: "
|
|
1666
|
+
title: "เพิ่มผู้ดูแลระบบ",
|
|
1661
1667
|
successMessage: "เพิ่ม {memberName} แล้ว"
|
|
1662
1668
|
},
|
|
1663
1669
|
updateMember: {
|
|
1664
|
-
title: "
|
|
1670
|
+
title: "อัปเดตผู้ดูแลระบบ",
|
|
1665
1671
|
successMessage: "อัปเดต {memberName} แล้ว"
|
|
1666
1672
|
},
|
|
1667
1673
|
search: {
|
|
1668
|
-
placeholder: "
|
|
1674
|
+
placeholder: "ค้นหาผู้ดูแลระบบ"
|
|
1669
1675
|
},
|
|
1670
1676
|
filter: {
|
|
1671
|
-
permission_placeholder: "
|
|
1677
|
+
permission_placeholder: "กรองตามสิทธิ์",
|
|
1672
1678
|
selected_permission_prefix: "สิทธิ์ที่เลือก: ",
|
|
1673
|
-
assigned_role_placeholder: "
|
|
1674
|
-
selected_assigned_role_prefix: "
|
|
1679
|
+
assigned_role_placeholder: "ตำแหน่งที่กำหนด",
|
|
1680
|
+
selected_assigned_role_prefix: "ตำแหน่งที่เลือก: "
|
|
1675
1681
|
},
|
|
1676
1682
|
emptyState: {
|
|
1677
|
-
title: "
|
|
1678
|
-
description: "
|
|
1683
|
+
title: "ไม่พบผู้ดูแลระบบ",
|
|
1684
|
+
description: "คุณไม่มีผู้ดูแลระบบที่จะแสดงในขณะนี้"
|
|
1679
1685
|
},
|
|
1680
1686
|
memberForm: {
|
|
1681
1687
|
searchUser: {
|
|
@@ -1693,7 +1699,7 @@ const Lt = {
|
|
|
1693
1699
|
emailAddress: "ที่อยู่อีเมล"
|
|
1694
1700
|
},
|
|
1695
1701
|
permissions: {
|
|
1696
|
-
title: "
|
|
1702
|
+
title: "สิทธิ์",
|
|
1697
1703
|
manageable: "จัดการได้ {context}",
|
|
1698
1704
|
search: "ค้นหา {context}",
|
|
1699
1705
|
general: "สิทธิ์ทั่วไป",
|
|
@@ -1701,8 +1707,8 @@ const Lt = {
|
|
|
1701
1707
|
hrm: "สิทธิ์ HRM",
|
|
1702
1708
|
crm: "สิทธิ์ CRM",
|
|
1703
1709
|
includedFuture: "รวม {context} ในอนาคต",
|
|
1704
|
-
includedNewRole: "
|
|
1705
|
-
roles: "
|
|
1710
|
+
includedNewRole: "รวมตำแหน่งใหม่ที่เพิ่มเข้ามา",
|
|
1711
|
+
roles: "ตำแหน่ง POS ที่สามารถใช้ได้",
|
|
1706
1712
|
inherited: "สิทธิ์ที่ได้รับการสืบทอดจาก:",
|
|
1707
1713
|
allowedCount: "{count} สิทธิ์ที่อนุญาต",
|
|
1708
1714
|
columnName: "ชื่อ",
|
|
@@ -1713,54 +1719,54 @@ const Lt = {
|
|
|
1713
1719
|
passcode: "รหัสผ่านผู้ใช้หลัก",
|
|
1714
1720
|
passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
|
|
1715
1721
|
sublabel: "ผู้ใช้หลักสามารถเข้าถึงระบบ POS ของร้านอาหารได้",
|
|
1716
|
-
assignmentSection: "
|
|
1722
|
+
assignmentSection: "การกำหนดสาขาและตำแหน่ง",
|
|
1717
1723
|
addAnother: "เพิ่มอีก",
|
|
1718
1724
|
code: "รหัส",
|
|
1719
1725
|
name: "ชื่อ",
|
|
1720
|
-
role: "
|
|
1726
|
+
role: "ตำแหน่ง",
|
|
1721
1727
|
nameEmptyError: "กรุณาป้อนชื่อ",
|
|
1722
1728
|
restaurantRequired: "กรุณาเลือกร้านอาหารอย่างน้อย 1 แห่ง",
|
|
1723
|
-
roleRequired: "
|
|
1729
|
+
roleRequired: "กรุณากำหนดตำแหน่งให้กับร้านอาหารที่เลือกทุกแห่ง"
|
|
1724
1730
|
},
|
|
1725
1731
|
posRole: {
|
|
1726
|
-
placeholder: "
|
|
1732
|
+
placeholder: "ค้นหาตำแหน่ง POS"
|
|
1727
1733
|
},
|
|
1728
1734
|
permissionSet: {
|
|
1729
|
-
title: "
|
|
1730
|
-
selectPlaceholder: "
|
|
1735
|
+
title: "ตำแหน่งสิทธิ์",
|
|
1736
|
+
selectPlaceholder: "เลือกตำแหน่งสิทธิ์"
|
|
1731
1737
|
}
|
|
1732
1738
|
}
|
|
1733
1739
|
}, us = {
|
|
1734
|
-
title: "
|
|
1735
|
-
createButtonLabel: "
|
|
1740
|
+
title: "บทบาท",
|
|
1741
|
+
createButtonLabel: "สร้างบทบาท",
|
|
1736
1742
|
search: {
|
|
1737
|
-
placeholder: "
|
|
1743
|
+
placeholder: "ค้นหาบทบาท"
|
|
1738
1744
|
},
|
|
1739
1745
|
noData: {
|
|
1740
|
-
title: "
|
|
1741
|
-
subtitle: "
|
|
1746
|
+
title: "ไม่พบบทบาท",
|
|
1747
|
+
subtitle: "คุณไม่มีบทบาทที่จะแสดงในขณะนี้"
|
|
1742
1748
|
},
|
|
1743
1749
|
form: {
|
|
1744
1750
|
create: {
|
|
1745
|
-
title: "
|
|
1751
|
+
title: "สร้างบทบาท",
|
|
1746
1752
|
confirmButtonLabel: "สร้าง"
|
|
1747
1753
|
},
|
|
1748
1754
|
update: {
|
|
1749
|
-
title: "
|
|
1755
|
+
title: "อัปเดตบทบาท",
|
|
1750
1756
|
confirmButtonLabel: "อัปเดต"
|
|
1751
1757
|
},
|
|
1752
1758
|
delete: {
|
|
1753
|
-
title: "
|
|
1754
|
-
confirmationMessage: "
|
|
1755
|
-
successMessage: "
|
|
1756
|
-
conflictError: '
|
|
1757
|
-
setReferencedConflictError: '
|
|
1759
|
+
title: "ลบบทบาท",
|
|
1760
|
+
confirmationMessage: "คุณต้องการลบบทบาท {permissionSetName} จริงหรือไม่?",
|
|
1761
|
+
successMessage: "ลบบทบาท {permissionSetName} แล้ว",
|
|
1762
|
+
conflictError: 'ไม่สามารถลบบทบาท "{permissionSetName}" ได้ เนื่องจากยังมีผู้ใช้งานที่ได้รับการกำหนดบทบาทนี้อยู่ กรุณายกเลิกการกำหนดทั้งหมดก่อน',
|
|
1763
|
+
setReferencedConflictError: 'ไม่สามารถลบบทบาท "{permissionSetName}" ได้ เนื่องจากถูกรวมอยู่ในบทบาทอื่น กรุณาลบการอ้างอิงเหล่านั้นก่อน'
|
|
1758
1764
|
},
|
|
1759
|
-
name: "
|
|
1760
|
-
namePlaceholder: "
|
|
1761
|
-
nameRequired: "
|
|
1762
|
-
includedSets: "
|
|
1763
|
-
includedSetsPlaceholder: "
|
|
1765
|
+
name: "ชื่อบทบาท",
|
|
1766
|
+
namePlaceholder: "ป้อนชื่อบทบาท",
|
|
1767
|
+
nameRequired: "โปรดระบุชื่อบทบาท",
|
|
1768
|
+
includedSets: "รวมสิทธิ์จากบทบาทอื่น",
|
|
1769
|
+
includedSetsPlaceholder: "เลือกบทบาทหนึ่งรายการขึ้นไปเพื่อรับสิทธิ์ที่สืบทอดมา"
|
|
1764
1770
|
},
|
|
1765
1771
|
categoryLabels: {
|
|
1766
1772
|
General: "ทั่วไป",
|
|
@@ -1835,9 +1841,9 @@ const Lt = {
|
|
|
1835
1841
|
"business::payment::paymentOnboarding": "จัดการการลงทะเบียนชำระเงิน",
|
|
1836
1842
|
"business::payment::transactions": "จัดการธุรกรรมการชำระเงิน",
|
|
1837
1843
|
"business::payment::settlements": "จัดการการชำระบัญชี",
|
|
1838
|
-
"business::hrm::teamMember": "
|
|
1844
|
+
"business::hrm::teamMember": "จัดการผู้ดูแลระบบ",
|
|
1839
1845
|
"business::hrm::employee": "จัดการพนักงาน",
|
|
1840
|
-
"business::hrm::auditLog": "
|
|
1846
|
+
"business::hrm::auditLog": "จัดการประวัติการใช้งาน",
|
|
1841
1847
|
"business::report::createReport": "สร้างรายงาน",
|
|
1842
1848
|
"business::report::accessOverview": "เข้าถึงหน้าภาพรวม",
|
|
1843
1849
|
"business::report::accessInsight": "เข้าถึงหน้าข้อมูลเชิงลึก",
|
|
@@ -1849,19 +1855,20 @@ const Lt = {
|
|
|
1849
1855
|
table: {
|
|
1850
1856
|
columns: {
|
|
1851
1857
|
name: "ชื่อ",
|
|
1852
|
-
permissions: "
|
|
1858
|
+
permissions: "สิทธิ์"
|
|
1853
1859
|
}
|
|
1854
1860
|
}
|
|
1855
|
-
},
|
|
1861
|
+
}, Fr = {
|
|
1856
1862
|
team: As,
|
|
1857
1863
|
permissionSet: us
|
|
1858
|
-
},
|
|
1864
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1859
1865
|
__proto__: null,
|
|
1860
|
-
default:
|
|
1866
|
+
default: Fr,
|
|
1861
1867
|
permissionSet: us,
|
|
1862
1868
|
team: As
|
|
1863
1869
|
}, Symbol.toStringTag, { value: "Module" })), ms = {
|
|
1864
1870
|
title: "团队成员",
|
|
1871
|
+
subtitle: "管理可访问 Portal 和 POS 的团队成员,分配 Portal 权限和 POS 角色。",
|
|
1865
1872
|
actions: {
|
|
1866
1873
|
addMember: "添加成员",
|
|
1867
1874
|
updateMember: "更新成员",
|
|
@@ -1965,36 +1972,36 @@ const Lt = {
|
|
|
1965
1972
|
}
|
|
1966
1973
|
}
|
|
1967
1974
|
}, gs = {
|
|
1968
|
-
title: "
|
|
1969
|
-
createButtonLabel: "
|
|
1975
|
+
title: "角色",
|
|
1976
|
+
createButtonLabel: "创建角色",
|
|
1970
1977
|
search: {
|
|
1971
|
-
placeholder: "
|
|
1978
|
+
placeholder: "搜索角色"
|
|
1972
1979
|
},
|
|
1973
1980
|
noData: {
|
|
1974
|
-
title: "
|
|
1975
|
-
subtitle: "
|
|
1981
|
+
title: "未找到角色",
|
|
1982
|
+
subtitle: "当前没有角色可显示"
|
|
1976
1983
|
},
|
|
1977
1984
|
form: {
|
|
1978
1985
|
create: {
|
|
1979
|
-
title: "
|
|
1986
|
+
title: "创建角色",
|
|
1980
1987
|
confirmButtonLabel: "创建"
|
|
1981
1988
|
},
|
|
1982
1989
|
update: {
|
|
1983
|
-
title: "
|
|
1990
|
+
title: "更新角色",
|
|
1984
1991
|
confirmButtonLabel: "更新"
|
|
1985
1992
|
},
|
|
1986
1993
|
delete: {
|
|
1987
|
-
title: "
|
|
1988
|
-
confirmationMessage: "
|
|
1989
|
-
successMessage: "
|
|
1990
|
-
conflictError: '
|
|
1991
|
-
setReferencedConflictError: '
|
|
1994
|
+
title: "删除角色",
|
|
1995
|
+
confirmationMessage: "确定要删除角色 {permissionSetName} 吗?",
|
|
1996
|
+
successMessage: "角色 {permissionSetName} 已删除",
|
|
1997
|
+
conflictError: '无法删除角色 "{permissionSetName}",因为仍有用户被分配到此角色,请先取消所有分配。',
|
|
1998
|
+
setReferencedConflictError: '无法删除角色 "{permissionSetName}",因为其他角色正在引用此角色,请先移除这些引用。'
|
|
1992
1999
|
},
|
|
1993
|
-
name: "
|
|
1994
|
-
namePlaceholder: "
|
|
1995
|
-
nameRequired: "
|
|
1996
|
-
includedSets: "
|
|
1997
|
-
includedSetsPlaceholder: "
|
|
2000
|
+
name: "角色名称",
|
|
2001
|
+
namePlaceholder: "输入角色名称",
|
|
2002
|
+
nameRequired: "请输入角色名称",
|
|
2003
|
+
includedSets: "包含其他角色的权限",
|
|
2004
|
+
includedSetsPlaceholder: "选择一个或多个角色以继承其权限"
|
|
1998
2005
|
},
|
|
1999
2006
|
categoryLabels: {
|
|
2000
2007
|
General: "通用",
|
|
@@ -2086,16 +2093,17 @@ const Lt = {
|
|
|
2086
2093
|
permissions: "权限"
|
|
2087
2094
|
}
|
|
2088
2095
|
}
|
|
2089
|
-
},
|
|
2096
|
+
}, qr = {
|
|
2090
2097
|
team: ms,
|
|
2091
2098
|
permissionSet: gs
|
|
2092
|
-
},
|
|
2099
|
+
}, Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2093
2100
|
__proto__: null,
|
|
2094
|
-
default:
|
|
2101
|
+
default: qr,
|
|
2095
2102
|
permissionSet: gs,
|
|
2096
2103
|
team: ms
|
|
2097
2104
|
}, Symbol.toStringTag, { value: "Module" })), ds = {
|
|
2098
2105
|
title: "團隊成員",
|
|
2106
|
+
subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
|
|
2099
2107
|
actions: {
|
|
2100
2108
|
addMember: "添加成員",
|
|
2101
2109
|
updateMember: "更新成員",
|
|
@@ -2206,36 +2214,36 @@ const Lt = {
|
|
|
2206
2214
|
}
|
|
2207
2215
|
}
|
|
2208
2216
|
}, ps = {
|
|
2209
|
-
title: "
|
|
2210
|
-
createButtonLabel: "
|
|
2217
|
+
title: "角色",
|
|
2218
|
+
createButtonLabel: "創建角色",
|
|
2211
2219
|
search: {
|
|
2212
|
-
placeholder: "
|
|
2220
|
+
placeholder: "搜索角色"
|
|
2213
2221
|
},
|
|
2214
2222
|
noData: {
|
|
2215
|
-
title: "
|
|
2216
|
-
subtitle: "
|
|
2223
|
+
title: "未找到角色",
|
|
2224
|
+
subtitle: "當前沒有角色可顯示"
|
|
2217
2225
|
},
|
|
2218
2226
|
form: {
|
|
2219
2227
|
create: {
|
|
2220
|
-
title: "
|
|
2228
|
+
title: "創建角色",
|
|
2221
2229
|
confirmButtonLabel: "創建"
|
|
2222
2230
|
},
|
|
2223
2231
|
update: {
|
|
2224
|
-
title: "
|
|
2232
|
+
title: "更新角色",
|
|
2225
2233
|
confirmButtonLabel: "更新"
|
|
2226
2234
|
},
|
|
2227
2235
|
delete: {
|
|
2228
|
-
title: "
|
|
2229
|
-
confirmationMessage: "
|
|
2230
|
-
successMessage: "
|
|
2231
|
-
conflictError: '
|
|
2232
|
-
setReferencedConflictError: '
|
|
2236
|
+
title: "刪除角色",
|
|
2237
|
+
confirmationMessage: "確定要刪除角色 {permissionSetName} 嗎?",
|
|
2238
|
+
successMessage: "角色 {permissionSetName} 已刪除",
|
|
2239
|
+
conflictError: '無法刪除角色 "{permissionSetName}",因為仍有使用者被指派到此角色,請先取消所有指派。',
|
|
2240
|
+
setReferencedConflictError: '無法刪除角色 "{permissionSetName}",因為其他角色正在引用此角色,請先移除這些引用。'
|
|
2233
2241
|
},
|
|
2234
|
-
name: "
|
|
2235
|
-
namePlaceholder: "
|
|
2236
|
-
nameRequired: "
|
|
2237
|
-
includedSets: "
|
|
2238
|
-
includedSetsPlaceholder: "
|
|
2242
|
+
name: "角色名稱",
|
|
2243
|
+
namePlaceholder: "輸入角色名稱",
|
|
2244
|
+
nameRequired: "請輸入角色名稱",
|
|
2245
|
+
includedSets: "包含其他角色的權限",
|
|
2246
|
+
includedSetsPlaceholder: "選擇一個或多個角色以繼承其權限"
|
|
2239
2247
|
},
|
|
2240
2248
|
categoryLabels: {
|
|
2241
2249
|
General: "通用",
|
|
@@ -2327,19 +2335,19 @@ const Lt = {
|
|
|
2327
2335
|
permissions: "權限"
|
|
2328
2336
|
}
|
|
2329
2337
|
}
|
|
2330
|
-
},
|
|
2338
|
+
}, Xr = {
|
|
2331
2339
|
team: ds,
|
|
2332
2340
|
permissionSet: ps
|
|
2333
|
-
},
|
|
2341
|
+
}, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2334
2342
|
__proto__: null,
|
|
2335
|
-
default:
|
|
2343
|
+
default: Xr,
|
|
2336
2344
|
permissionSet: ps,
|
|
2337
2345
|
team: ds
|
|
2338
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2339
|
-
"en-US":
|
|
2340
|
-
"zh-CN":
|
|
2341
|
-
"th-TH":
|
|
2342
|
-
"zh-Hant":
|
|
2346
|
+
}, Symbol.toStringTag, { value: "Module" })), Ir = {
|
|
2347
|
+
"en-US": Pr,
|
|
2348
|
+
"zh-CN": Hr,
|
|
2349
|
+
"th-TH": Or,
|
|
2350
|
+
"zh-Hant": Qr
|
|
2343
2351
|
}, bs = {
|
|
2344
2352
|
title: "POS Grant",
|
|
2345
2353
|
actions: {
|
|
@@ -2394,11 +2402,11 @@ const Lt = {
|
|
|
2394
2402
|
passcode: {
|
|
2395
2403
|
copied: "Passcode copied"
|
|
2396
2404
|
}
|
|
2397
|
-
},
|
|
2405
|
+
}, Rr = {
|
|
2398
2406
|
grantUser: bs
|
|
2399
|
-
},
|
|
2407
|
+
}, Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2400
2408
|
__proto__: null,
|
|
2401
|
-
default:
|
|
2409
|
+
default: Rr,
|
|
2402
2410
|
grantUser: bs
|
|
2403
2411
|
}, Symbol.toStringTag, { value: "Module" })), fs = {
|
|
2404
2412
|
title: "POS Grant",
|
|
@@ -2414,15 +2422,15 @@ const Lt = {
|
|
|
2414
2422
|
restaurant: "ร้านอาหาร",
|
|
2415
2423
|
selectRestaurant: "เลือกร้านอาหาร",
|
|
2416
2424
|
restaurantRequired: "ต้องเลือกร้านอาหาร",
|
|
2417
|
-
role: "
|
|
2418
|
-
selectRole: "
|
|
2419
|
-
roleRequired: "
|
|
2425
|
+
role: "ตำแหน่ง",
|
|
2426
|
+
selectRole: "เลือกตำแหน่ง",
|
|
2427
|
+
roleRequired: "ต้องเลือกตำแหน่ง"
|
|
2420
2428
|
},
|
|
2421
2429
|
columns: {
|
|
2422
2430
|
passcode: "รหัสผ่าน",
|
|
2423
2431
|
name: "ชื่อ",
|
|
2424
2432
|
restaurant: "ร้านอาหาร",
|
|
2425
|
-
role: "
|
|
2433
|
+
role: "ตำแหน่ง",
|
|
2426
2434
|
status: "สถานะ",
|
|
2427
2435
|
grantedBy: "ให้สิทธิ์โดย",
|
|
2428
2436
|
createdAt: "สร้างเมื่อ"
|
|
@@ -2454,11 +2462,11 @@ const Lt = {
|
|
|
2454
2462
|
passcode: {
|
|
2455
2463
|
copied: "คัดลอกรหัสผ่านแล้ว"
|
|
2456
2464
|
}
|
|
2457
|
-
},
|
|
2465
|
+
}, Zr = {
|
|
2458
2466
|
grantUser: fs
|
|
2459
|
-
},
|
|
2467
|
+
}, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2460
2468
|
__proto__: null,
|
|
2461
|
-
default:
|
|
2469
|
+
default: Zr,
|
|
2462
2470
|
grantUser: fs
|
|
2463
2471
|
}, Symbol.toStringTag, { value: "Module" })), ys = {
|
|
2464
2472
|
title: "POS 授予",
|
|
@@ -2514,11 +2522,11 @@ const Lt = {
|
|
|
2514
2522
|
passcode: {
|
|
2515
2523
|
copied: "密码已复制"
|
|
2516
2524
|
}
|
|
2517
|
-
},
|
|
2525
|
+
}, Ur = {
|
|
2518
2526
|
grantUser: ys
|
|
2519
|
-
},
|
|
2527
|
+
}, Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2520
2528
|
__proto__: null,
|
|
2521
|
-
default:
|
|
2529
|
+
default: Ur,
|
|
2522
2530
|
grantUser: ys
|
|
2523
2531
|
}, Symbol.toStringTag, { value: "Module" })), vs = {
|
|
2524
2532
|
title: "POS 授予",
|
|
@@ -2574,19 +2582,19 @@ const Lt = {
|
|
|
2574
2582
|
passcode: {
|
|
2575
2583
|
copied: "密碼已複製"
|
|
2576
2584
|
}
|
|
2577
|
-
},
|
|
2585
|
+
}, Sr = {
|
|
2578
2586
|
grantUser: vs
|
|
2579
|
-
},
|
|
2587
|
+
}, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2580
2588
|
__proto__: null,
|
|
2581
|
-
default:
|
|
2589
|
+
default: Sr,
|
|
2582
2590
|
grantUser: vs
|
|
2583
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2584
|
-
"en-US":
|
|
2585
|
-
"zh-CN":
|
|
2586
|
-
"th-TH":
|
|
2587
|
-
"zh-Hant":
|
|
2591
|
+
}, Symbol.toStringTag, { value: "Module" })), kr = {
|
|
2592
|
+
"en-US": Nr,
|
|
2593
|
+
"zh-CN": Wr,
|
|
2594
|
+
"th-TH": zr,
|
|
2595
|
+
"zh-Hant": Tr
|
|
2588
2596
|
};
|
|
2589
|
-
var t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), o = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e))(o || {}), U = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(U || {}), hs = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(hs || {});
|
|
2597
|
+
var t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), o = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.crm_marketingMaterial = "business::crm::marketingMaterial", 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.kiosk_deviceManagement = "business::kiosk::deviceManagement", e.kiosk_deviceBinding = "business::kiosk::deviceBinding", 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.operation_orderSetting = "business::operation::orderSetting", 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 || {}), hs = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(hs || {});
|
|
2590
2598
|
const b = {
|
|
2591
2599
|
general: "General",
|
|
2592
2600
|
inventory: "Inventory",
|
|
@@ -2600,7 +2608,7 @@ const b = {
|
|
|
2600
2608
|
reports: "Default Report",
|
|
2601
2609
|
customReports: "Custom Report",
|
|
2602
2610
|
miniProgram: "Mini Program"
|
|
2603
|
-
},
|
|
2611
|
+
}, Kr = "access-denied", We = {
|
|
2604
2612
|
Action: t,
|
|
2605
2613
|
Subject: {
|
|
2606
2614
|
Business: o,
|
|
@@ -2996,6 +3004,12 @@ const b = {
|
|
|
2996
3004
|
actions: [t.manage],
|
|
2997
3005
|
category: b.crm
|
|
2998
3006
|
},
|
|
3007
|
+
crmMarketingMaterial: {
|
|
3008
|
+
label: "Marketing Material Management",
|
|
3009
|
+
subject: o.crm_marketingMaterial,
|
|
3010
|
+
actions: [t.manage],
|
|
3011
|
+
category: b.crm
|
|
3012
|
+
},
|
|
2999
3013
|
// Payment
|
|
3000
3014
|
paymentPayoutAccount: {
|
|
3001
3015
|
label: "Payout Account Management",
|
|
@@ -3120,6 +3134,21 @@ const b = {
|
|
|
3120
3134
|
category: b.settings,
|
|
3121
3135
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
3122
3136
|
},
|
|
3137
|
+
// Kiosk
|
|
3138
|
+
kioskDeviceManagement: {
|
|
3139
|
+
label: "Kiosk Device Management",
|
|
3140
|
+
subject: o.kiosk_deviceManagement,
|
|
3141
|
+
actions: [t.manage],
|
|
3142
|
+
category: b.settings,
|
|
3143
|
+
showByFeatureFlag: "hrm_enable_kiosk_permission"
|
|
3144
|
+
},
|
|
3145
|
+
kioskDeviceBinding: {
|
|
3146
|
+
label: "Kiosk Device Binding",
|
|
3147
|
+
subject: o.kiosk_deviceBinding,
|
|
3148
|
+
actions: [t.manage],
|
|
3149
|
+
category: b.settings,
|
|
3150
|
+
showByFeatureFlag: "hrm_enable_kiosk_permission"
|
|
3151
|
+
},
|
|
3123
3152
|
// E-invoice
|
|
3124
3153
|
eInvoiceManagement: {
|
|
3125
3154
|
label: "E-invoice Management",
|
|
@@ -3185,6 +3214,13 @@ const b = {
|
|
|
3185
3214
|
category: b.operation,
|
|
3186
3215
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3187
3216
|
},
|
|
3217
|
+
operationOrderSetting: {
|
|
3218
|
+
label: "Order Settings",
|
|
3219
|
+
subject: o.operation_orderSetting,
|
|
3220
|
+
actions: [t.manage],
|
|
3221
|
+
category: b.operation,
|
|
3222
|
+
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
3223
|
+
},
|
|
3188
3224
|
// Mini Program
|
|
3189
3225
|
miniProgramProfile: {
|
|
3190
3226
|
label: "Business Profile Management",
|
|
@@ -3236,7 +3272,7 @@ const R = [
|
|
|
3236
3272
|
subject: q.crm,
|
|
3237
3273
|
actions: [t.read]
|
|
3238
3274
|
}
|
|
3239
|
-
], $ = (...e) => e.flat(),
|
|
3275
|
+
], $ = (...e) => e.flat(), Lr = [
|
|
3240
3276
|
...R,
|
|
3241
3277
|
{
|
|
3242
3278
|
label: "User",
|
|
@@ -3248,7 +3284,7 @@ const R = [
|
|
|
3248
3284
|
t.delete
|
|
3249
3285
|
]
|
|
3250
3286
|
}
|
|
3251
|
-
],
|
|
3287
|
+
], Jr = [
|
|
3252
3288
|
...R,
|
|
3253
3289
|
{
|
|
3254
3290
|
label: "Segmentation",
|
|
@@ -3284,7 +3320,7 @@ const R = [
|
|
|
3284
3320
|
t.delete
|
|
3285
3321
|
]
|
|
3286
3322
|
}
|
|
3287
|
-
],
|
|
3323
|
+
], _r = [
|
|
3288
3324
|
...R,
|
|
3289
3325
|
{
|
|
3290
3326
|
label: "Location",
|
|
@@ -3296,7 +3332,7 @@ const R = [
|
|
|
3296
3332
|
t.delete
|
|
3297
3333
|
]
|
|
3298
3334
|
}
|
|
3299
|
-
], $
|
|
3335
|
+
], $r = [
|
|
3300
3336
|
...R,
|
|
3301
3337
|
{
|
|
3302
3338
|
label: "Effect",
|
|
@@ -3308,14 +3344,14 @@ const R = [
|
|
|
3308
3344
|
t.delete
|
|
3309
3345
|
]
|
|
3310
3346
|
}
|
|
3311
|
-
],
|
|
3347
|
+
], en = [
|
|
3312
3348
|
...R,
|
|
3313
3349
|
{
|
|
3314
3350
|
label: "Setting",
|
|
3315
3351
|
subject: q.crm_setting,
|
|
3316
3352
|
actions: [t.read, t.update]
|
|
3317
3353
|
}
|
|
3318
|
-
],
|
|
3354
|
+
], tn = [
|
|
3319
3355
|
...R,
|
|
3320
3356
|
{
|
|
3321
3357
|
label: "Reward",
|
|
@@ -3351,7 +3387,7 @@ const R = [
|
|
|
3351
3387
|
t.delete
|
|
3352
3388
|
]
|
|
3353
3389
|
}
|
|
3354
|
-
],
|
|
3390
|
+
], Ds = [
|
|
3355
3391
|
...R,
|
|
3356
3392
|
{
|
|
3357
3393
|
label: "Marketing Material",
|
|
@@ -3363,14 +3399,14 @@ const R = [
|
|
|
3363
3399
|
t.delete
|
|
3364
3400
|
]
|
|
3365
3401
|
}
|
|
3366
|
-
],
|
|
3402
|
+
], js = [
|
|
3367
3403
|
...R,
|
|
3368
3404
|
{
|
|
3369
3405
|
label: "Analytic",
|
|
3370
3406
|
subject: q.crm_analytic,
|
|
3371
3407
|
actions: [t.read]
|
|
3372
3408
|
}
|
|
3373
|
-
],
|
|
3409
|
+
], sn = [
|
|
3374
3410
|
...R,
|
|
3375
3411
|
{
|
|
3376
3412
|
label: "Tier",
|
|
@@ -3382,7 +3418,7 @@ const R = [
|
|
|
3382
3418
|
t.delete
|
|
3383
3419
|
]
|
|
3384
3420
|
}
|
|
3385
|
-
],
|
|
3421
|
+
], rn = [
|
|
3386
3422
|
...R,
|
|
3387
3423
|
{
|
|
3388
3424
|
label: "Title",
|
|
@@ -3394,7 +3430,7 @@ const R = [
|
|
|
3394
3430
|
t.delete
|
|
3395
3431
|
]
|
|
3396
3432
|
}
|
|
3397
|
-
],
|
|
3433
|
+
], nn = [
|
|
3398
3434
|
...R,
|
|
3399
3435
|
{
|
|
3400
3436
|
label: "Broadcast",
|
|
@@ -3406,7 +3442,7 @@ const R = [
|
|
|
3406
3442
|
t.delete
|
|
3407
3443
|
]
|
|
3408
3444
|
}
|
|
3409
|
-
],
|
|
3445
|
+
], an = [
|
|
3410
3446
|
...R,
|
|
3411
3447
|
{
|
|
3412
3448
|
label: "Point",
|
|
@@ -3418,7 +3454,7 @@ const R = [
|
|
|
3418
3454
|
t.delete
|
|
3419
3455
|
]
|
|
3420
3456
|
}
|
|
3421
|
-
],
|
|
3457
|
+
], on = [
|
|
3422
3458
|
...R,
|
|
3423
3459
|
{
|
|
3424
3460
|
label: "Credit",
|
|
@@ -3430,7 +3466,7 @@ const R = [
|
|
|
3430
3466
|
t.delete
|
|
3431
3467
|
]
|
|
3432
3468
|
}
|
|
3433
|
-
],
|
|
3469
|
+
], ln = [
|
|
3434
3470
|
...R,
|
|
3435
3471
|
{
|
|
3436
3472
|
label: "Experience",
|
|
@@ -3442,7 +3478,7 @@ const R = [
|
|
|
3442
3478
|
t.delete
|
|
3443
3479
|
]
|
|
3444
3480
|
}
|
|
3445
|
-
],
|
|
3481
|
+
], cn = [
|
|
3446
3482
|
...R,
|
|
3447
3483
|
{
|
|
3448
3484
|
label: "Game",
|
|
@@ -3454,7 +3490,7 @@ const R = [
|
|
|
3454
3490
|
t.delete
|
|
3455
3491
|
]
|
|
3456
3492
|
}
|
|
3457
|
-
],
|
|
3493
|
+
], An = [
|
|
3458
3494
|
...R,
|
|
3459
3495
|
{
|
|
3460
3496
|
label: "Mission",
|
|
@@ -3466,7 +3502,7 @@ const R = [
|
|
|
3466
3502
|
t.delete
|
|
3467
3503
|
]
|
|
3468
3504
|
}
|
|
3469
|
-
],
|
|
3505
|
+
], Gs = [
|
|
3470
3506
|
...R,
|
|
3471
3507
|
{
|
|
3472
3508
|
label: "Loyalty Member",
|
|
@@ -3478,7 +3514,7 @@ const R = [
|
|
|
3478
3514
|
t.delete
|
|
3479
3515
|
]
|
|
3480
3516
|
}
|
|
3481
|
-
],
|
|
3517
|
+
], Ys = [
|
|
3482
3518
|
...R,
|
|
3483
3519
|
{
|
|
3484
3520
|
label: "Loyalty Segment",
|
|
@@ -3490,7 +3526,7 @@ const R = [
|
|
|
3490
3526
|
t.delete
|
|
3491
3527
|
]
|
|
3492
3528
|
}
|
|
3493
|
-
],
|
|
3529
|
+
], Es = [
|
|
3494
3530
|
...R,
|
|
3495
3531
|
{
|
|
3496
3532
|
label: "Loyalty Card",
|
|
@@ -3502,44 +3538,44 @@ const R = [
|
|
|
3502
3538
|
t.delete
|
|
3503
3539
|
]
|
|
3504
3540
|
}
|
|
3505
|
-
],
|
|
3541
|
+
], xs = [
|
|
3506
3542
|
...R,
|
|
3507
3543
|
{
|
|
3508
3544
|
label: "Bin",
|
|
3509
3545
|
subject: q.crm_bin,
|
|
3510
3546
|
actions: [t.read, t.update, t.delete]
|
|
3511
3547
|
}
|
|
3512
|
-
],
|
|
3513
|
-
oe,
|
|
3514
|
-
nr
|
|
3515
|
-
), Vs = $(
|
|
3548
|
+
], Vs = $(
|
|
3516
3549
|
oe,
|
|
3517
|
-
|
|
3550
|
+
sn
|
|
3518
3551
|
), Ps = $(
|
|
3519
3552
|
oe,
|
|
3520
|
-
|
|
3553
|
+
rn
|
|
3521
3554
|
), Fs = $(
|
|
3522
3555
|
oe,
|
|
3523
|
-
|
|
3556
|
+
nn
|
|
3524
3557
|
), Os = $(
|
|
3525
3558
|
oe,
|
|
3526
|
-
|
|
3559
|
+
an
|
|
3527
3560
|
), qs = $(
|
|
3528
3561
|
oe,
|
|
3529
|
-
|
|
3562
|
+
on
|
|
3530
3563
|
), Hs = $(
|
|
3531
3564
|
oe,
|
|
3532
|
-
|
|
3565
|
+
ln
|
|
3533
3566
|
), Xs = $(
|
|
3534
3567
|
oe,
|
|
3535
|
-
|
|
3536
|
-
),
|
|
3568
|
+
cn
|
|
3569
|
+
), Qs = $(
|
|
3570
|
+
oe,
|
|
3571
|
+
An
|
|
3572
|
+
), un = $(
|
|
3537
3573
|
oe,
|
|
3538
3574
|
Cs
|
|
3539
|
-
),
|
|
3575
|
+
), Is = $(
|
|
3540
3576
|
oe,
|
|
3541
|
-
|
|
3542
|
-
),
|
|
3577
|
+
en
|
|
3578
|
+
), mn = [
|
|
3543
3579
|
...R,
|
|
3544
3580
|
{
|
|
3545
3581
|
label: "Voucher",
|
|
@@ -3551,7 +3587,7 @@ const R = [
|
|
|
3551
3587
|
t.delete
|
|
3552
3588
|
]
|
|
3553
3589
|
}
|
|
3554
|
-
],
|
|
3590
|
+
], gn = [
|
|
3555
3591
|
...R,
|
|
3556
3592
|
{
|
|
3557
3593
|
label: "Membership",
|
|
@@ -3563,17 +3599,16 @@ const R = [
|
|
|
3563
3599
|
t.delete
|
|
3564
3600
|
]
|
|
3565
3601
|
}
|
|
3566
|
-
],
|
|
3567
|
-
|
|
3568
|
-
|
|
3602
|
+
], dn = $(
|
|
3603
|
+
Lr,
|
|
3604
|
+
Jr,
|
|
3569
3605
|
ws,
|
|
3570
3606
|
Ms,
|
|
3571
|
-
|
|
3572
|
-
$
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
xs,
|
|
3607
|
+
_r,
|
|
3608
|
+
$r,
|
|
3609
|
+
Is,
|
|
3610
|
+
tn,
|
|
3611
|
+
js,
|
|
3577
3612
|
Vs,
|
|
3578
3613
|
Ps,
|
|
3579
3614
|
Fs,
|
|
@@ -3581,102 +3616,103 @@ const R = [
|
|
|
3581
3616
|
qs,
|
|
3582
3617
|
Hs,
|
|
3583
3618
|
Xs,
|
|
3584
|
-
|
|
3619
|
+
Qs,
|
|
3585
3620
|
Gs,
|
|
3586
3621
|
Ys,
|
|
3587
|
-
Es
|
|
3588
|
-
|
|
3622
|
+
Es,
|
|
3623
|
+
xs
|
|
3624
|
+
), pn = $(
|
|
3589
3625
|
oe,
|
|
3590
3626
|
Cs,
|
|
3591
|
-
|
|
3592
|
-
),
|
|
3627
|
+
Ds
|
|
3628
|
+
), bn = $(
|
|
3593
3629
|
oe,
|
|
3594
|
-
|
|
3595
|
-
),
|
|
3630
|
+
mn
|
|
3631
|
+
), fn = $(gn), yn = {
|
|
3596
3632
|
[`set_${o.crm}`]: {
|
|
3597
3633
|
key: "sys:crm:access",
|
|
3598
3634
|
name: "CRM Access",
|
|
3599
|
-
permissions:
|
|
3635
|
+
permissions: dn
|
|
3600
3636
|
},
|
|
3601
3637
|
[`set_${o.crm_promotion}`]: {
|
|
3602
3638
|
key: "sys:crm:promotion",
|
|
3603
3639
|
name: "CRM Promotion",
|
|
3604
|
-
permissions:
|
|
3640
|
+
permissions: pn
|
|
3605
3641
|
},
|
|
3606
3642
|
[`set_${o.crm_voucher}`]: {
|
|
3607
3643
|
key: "sys:crm:voucher",
|
|
3608
3644
|
name: "CRM Voucher",
|
|
3609
|
-
permissions:
|
|
3645
|
+
permissions: bn
|
|
3610
3646
|
},
|
|
3611
3647
|
[`set_${o.crm_membership}`]: {
|
|
3612
3648
|
key: "sys:crm:membership",
|
|
3613
3649
|
name: "CRM Membership",
|
|
3614
|
-
permissions:
|
|
3650
|
+
permissions: fn
|
|
3615
3651
|
},
|
|
3616
3652
|
[`set_${o.crm_analytic}`]: {
|
|
3617
3653
|
key: "sys:crm:analytic",
|
|
3618
3654
|
name: "CRM Analytic",
|
|
3619
|
-
permissions:
|
|
3655
|
+
permissions: js
|
|
3620
3656
|
},
|
|
3621
3657
|
[`set_${o.crm_tier}`]: {
|
|
3622
3658
|
key: "sys:crm:tier",
|
|
3623
3659
|
name: "CRM Tier",
|
|
3624
|
-
permissions:
|
|
3660
|
+
permissions: Vs
|
|
3625
3661
|
},
|
|
3626
3662
|
[`set_${o.crm_title}`]: {
|
|
3627
3663
|
key: "sys:crm:title",
|
|
3628
3664
|
name: "CRM Title",
|
|
3629
|
-
permissions:
|
|
3665
|
+
permissions: Ps
|
|
3630
3666
|
},
|
|
3631
3667
|
[`set_${o.crm_broadcast}`]: {
|
|
3632
3668
|
key: "sys:crm:broadcast",
|
|
3633
3669
|
name: "CRM Broadcast",
|
|
3634
|
-
permissions:
|
|
3670
|
+
permissions: Fs
|
|
3635
3671
|
},
|
|
3636
3672
|
[`set_${o.crm_point}`]: {
|
|
3637
3673
|
key: "sys:crm:point",
|
|
3638
3674
|
name: "CRM Point",
|
|
3639
|
-
permissions:
|
|
3675
|
+
permissions: Os
|
|
3640
3676
|
},
|
|
3641
3677
|
[`set_${o.crm_credit}`]: {
|
|
3642
3678
|
key: "sys:crm:credit",
|
|
3643
3679
|
name: "CRM Credit",
|
|
3644
|
-
permissions:
|
|
3680
|
+
permissions: qs
|
|
3645
3681
|
},
|
|
3646
3682
|
[`set_${o.crm_experience}`]: {
|
|
3647
3683
|
key: "sys:crm:experience",
|
|
3648
3684
|
name: "CRM Experience",
|
|
3649
|
-
permissions:
|
|
3685
|
+
permissions: Hs
|
|
3650
3686
|
},
|
|
3651
3687
|
[`set_${o.crm_game}`]: {
|
|
3652
3688
|
key: "sys:crm:game",
|
|
3653
3689
|
name: "CRM Game",
|
|
3654
|
-
permissions:
|
|
3690
|
+
permissions: Xs
|
|
3655
3691
|
},
|
|
3656
3692
|
[`set_${o.crm_mission}`]: {
|
|
3657
3693
|
key: "sys:crm:mission",
|
|
3658
3694
|
name: "CRM Mission",
|
|
3659
|
-
permissions:
|
|
3695
|
+
permissions: Qs
|
|
3660
3696
|
},
|
|
3661
3697
|
[`set_${o.crm_loyaltyMember}`]: {
|
|
3662
3698
|
key: "sys:crm:loyaltyMember",
|
|
3663
3699
|
name: "CRM Loyalty Member",
|
|
3664
|
-
permissions:
|
|
3700
|
+
permissions: Gs
|
|
3665
3701
|
},
|
|
3666
3702
|
[`set_${o.crm_loyaltySegment}`]: {
|
|
3667
3703
|
key: "sys:crm:loyaltySegment",
|
|
3668
3704
|
name: "CRM Loyalty Segment",
|
|
3669
|
-
permissions:
|
|
3705
|
+
permissions: Ys
|
|
3670
3706
|
},
|
|
3671
3707
|
[`set_${o.crm_loyaltyCard}`]: {
|
|
3672
3708
|
key: "sys:crm:loyaltyCard",
|
|
3673
3709
|
name: "CRM Loyalty Card",
|
|
3674
|
-
permissions:
|
|
3710
|
+
permissions: Es
|
|
3675
3711
|
},
|
|
3676
3712
|
[`set_${o.crm_referral}`]: {
|
|
3677
3713
|
key: "sys:crm:referral",
|
|
3678
3714
|
name: "CRM Referral",
|
|
3679
|
-
permissions:
|
|
3715
|
+
permissions: un
|
|
3680
3716
|
},
|
|
3681
3717
|
[`set_${o.crm_store}`]: {
|
|
3682
3718
|
key: "sys:crm:store",
|
|
@@ -3691,12 +3727,17 @@ const R = [
|
|
|
3691
3727
|
[`set_${o.crm_setting}`]: {
|
|
3692
3728
|
key: "sys:crm:setting",
|
|
3693
3729
|
name: "CRM Setting",
|
|
3694
|
-
permissions:
|
|
3730
|
+
permissions: Is
|
|
3695
3731
|
},
|
|
3696
3732
|
[`set_${o.crm_bin}`]: {
|
|
3697
3733
|
key: "sys:crm:bin",
|
|
3698
3734
|
name: "CRM Bin",
|
|
3699
|
-
permissions:
|
|
3735
|
+
permissions: xs
|
|
3736
|
+
},
|
|
3737
|
+
[`set_${o.crm_marketingMaterial}`]: {
|
|
3738
|
+
key: "sys:crm:marketingMaterial",
|
|
3739
|
+
name: "CRM Marketing Material",
|
|
3740
|
+
permissions: Ds
|
|
3700
3741
|
}
|
|
3701
3742
|
};
|
|
3702
3743
|
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 || {});
|
|
@@ -3728,21 +3769,21 @@ const K = [
|
|
|
3728
3769
|
subject: G.inventory_unitCostHistory,
|
|
3729
3770
|
actions: [t.read]
|
|
3730
3771
|
}
|
|
3731
|
-
],
|
|
3772
|
+
], vn = [
|
|
3732
3773
|
...K,
|
|
3733
3774
|
{
|
|
3734
3775
|
label: "Stock Adjustment",
|
|
3735
3776
|
subject: G.inventory_stockAdjustment,
|
|
3736
3777
|
actions: [t.update]
|
|
3737
3778
|
}
|
|
3738
|
-
],
|
|
3779
|
+
], Rs = [
|
|
3739
3780
|
...K,
|
|
3740
3781
|
{
|
|
3741
3782
|
label: "Unit Cost History",
|
|
3742
3783
|
subject: G.inventory_unitCostHistory,
|
|
3743
3784
|
actions: [t.read, t.update]
|
|
3744
3785
|
}
|
|
3745
|
-
],
|
|
3786
|
+
], Ns = [
|
|
3746
3787
|
...K,
|
|
3747
3788
|
{
|
|
3748
3789
|
label: "Wastage Template",
|
|
@@ -3757,8 +3798,8 @@ const K = [
|
|
|
3757
3798
|
];
|
|
3758
3799
|
[
|
|
3759
3800
|
...Et,
|
|
3760
|
-
...
|
|
3761
|
-
...
|
|
3801
|
+
...Rs,
|
|
3802
|
+
...Ns
|
|
3762
3803
|
];
|
|
3763
3804
|
const xt = [
|
|
3764
3805
|
...K,
|
|
@@ -3777,7 +3818,7 @@ const xt = [
|
|
|
3777
3818
|
subject: G.inventory_closingDraft,
|
|
3778
3819
|
actions: [t.read]
|
|
3779
3820
|
}
|
|
3780
|
-
],
|
|
3821
|
+
], Zs = [
|
|
3781
3822
|
...K,
|
|
3782
3823
|
{
|
|
3783
3824
|
label: "Closing Draft",
|
|
@@ -3804,7 +3845,7 @@ const xt = [
|
|
|
3804
3845
|
subject: G.inventory_stockAdjustment,
|
|
3805
3846
|
actions: [t.read]
|
|
3806
3847
|
}
|
|
3807
|
-
],
|
|
3848
|
+
], zs = [
|
|
3808
3849
|
...K,
|
|
3809
3850
|
{
|
|
3810
3851
|
label: "Closing Template",
|
|
@@ -3824,10 +3865,10 @@ const xt = [
|
|
|
3824
3865
|
];
|
|
3825
3866
|
[
|
|
3826
3867
|
...xt,
|
|
3827
|
-
...
|
|
3828
|
-
...
|
|
3868
|
+
...Zs,
|
|
3869
|
+
...zs
|
|
3829
3870
|
];
|
|
3830
|
-
const
|
|
3871
|
+
const hn = [
|
|
3831
3872
|
{
|
|
3832
3873
|
label: "Inventory",
|
|
3833
3874
|
subject: G.inventory,
|
|
@@ -3848,25 +3889,25 @@ const hr = [
|
|
|
3848
3889
|
subject: G.inventory_closingTemplate,
|
|
3849
3890
|
actions: [t.read, t.update]
|
|
3850
3891
|
}
|
|
3851
|
-
],
|
|
3892
|
+
], Bn = [
|
|
3852
3893
|
{
|
|
3853
3894
|
label: "Inventory",
|
|
3854
3895
|
subject: G.inventory,
|
|
3855
3896
|
actions: [t.read, t.update]
|
|
3856
3897
|
}
|
|
3857
|
-
],
|
|
3898
|
+
], wn = [
|
|
3858
3899
|
{
|
|
3859
3900
|
label: "Inventory",
|
|
3860
3901
|
subject: G.inventory,
|
|
3861
3902
|
actions: [t.read, t.update]
|
|
3862
3903
|
}
|
|
3863
|
-
],
|
|
3904
|
+
], Mn = [
|
|
3864
3905
|
{
|
|
3865
3906
|
label: "Inventory",
|
|
3866
3907
|
subject: G.inventory,
|
|
3867
3908
|
actions: [t.read, t.update]
|
|
3868
3909
|
}
|
|
3869
|
-
],
|
|
3910
|
+
], Us = [
|
|
3870
3911
|
{
|
|
3871
3912
|
label: "Purchase Order",
|
|
3872
3913
|
subject: G.inventory_purchaseOrder,
|
|
@@ -3907,7 +3948,7 @@ const hr = [
|
|
|
3907
3948
|
subject: G.inventory_shipment,
|
|
3908
3949
|
actions: [t.read, t.update]
|
|
3909
3950
|
}
|
|
3910
|
-
],
|
|
3951
|
+
], Ws = [
|
|
3911
3952
|
{
|
|
3912
3953
|
label: "Purchase Order",
|
|
3913
3954
|
subject: G.inventory_purchaseOrder,
|
|
@@ -3928,7 +3969,7 @@ const hr = [
|
|
|
3928
3969
|
subject: G.inventory_shipment,
|
|
3929
3970
|
actions: [t.read, t.update]
|
|
3930
3971
|
}
|
|
3931
|
-
],
|
|
3972
|
+
], Ss = [
|
|
3932
3973
|
...K,
|
|
3933
3974
|
{
|
|
3934
3975
|
label: "Surcharge",
|
|
@@ -3967,7 +4008,7 @@ const hr = [
|
|
|
3967
4008
|
subject: G.inventory_shipment,
|
|
3968
4009
|
actions: [t.read, t.update]
|
|
3969
4010
|
}
|
|
3970
|
-
],
|
|
4011
|
+
], Cn = [
|
|
3971
4012
|
...K,
|
|
3972
4013
|
{
|
|
3973
4014
|
label: "Order Draft Approval",
|
|
@@ -3976,12 +4017,12 @@ const hr = [
|
|
|
3976
4017
|
}
|
|
3977
4018
|
];
|
|
3978
4019
|
[
|
|
3979
|
-
...zs,
|
|
3980
4020
|
...Us,
|
|
3981
4021
|
...Ws,
|
|
4022
|
+
...Ss,
|
|
3982
4023
|
...Ts
|
|
3983
4024
|
];
|
|
3984
|
-
const
|
|
4025
|
+
const Dn = [
|
|
3985
4026
|
...K,
|
|
3986
4027
|
{
|
|
3987
4028
|
label: "Supplier",
|
|
@@ -3998,7 +4039,7 @@ const Dr = [
|
|
|
3998
4039
|
subject: G.inventory_orderTemplate,
|
|
3999
4040
|
actions: [t.read, t.update]
|
|
4000
4041
|
}
|
|
4001
|
-
],
|
|
4042
|
+
], jn = [
|
|
4002
4043
|
...K,
|
|
4003
4044
|
{
|
|
4004
4045
|
label: "Warehouse",
|
|
@@ -4010,20 +4051,20 @@ const Dr = [
|
|
|
4010
4051
|
t.delete
|
|
4011
4052
|
]
|
|
4012
4053
|
}
|
|
4013
|
-
],
|
|
4054
|
+
], Gn = [
|
|
4014
4055
|
{
|
|
4015
4056
|
label: "Inventory",
|
|
4016
4057
|
subject: G.inventory,
|
|
4017
4058
|
actions: [t.read, t.update]
|
|
4018
4059
|
}
|
|
4019
|
-
],
|
|
4060
|
+
], Yn = [
|
|
4020
4061
|
...K,
|
|
4021
4062
|
{
|
|
4022
4063
|
label: "Inventory",
|
|
4023
4064
|
subject: G.inventory,
|
|
4024
4065
|
actions: [t.update]
|
|
4025
4066
|
}
|
|
4026
|
-
],
|
|
4067
|
+
], En = [
|
|
4027
4068
|
...K,
|
|
4028
4069
|
{
|
|
4029
4070
|
label: "Integration",
|
|
@@ -4036,7 +4077,7 @@ const Dr = [
|
|
|
4036
4077
|
...Et,
|
|
4037
4078
|
...xt
|
|
4038
4079
|
];
|
|
4039
|
-
const
|
|
4080
|
+
const xn = {
|
|
4040
4081
|
[`set_${o.inventory_stockBalance}`]: {
|
|
4041
4082
|
key: "sys:inventory:stock_balance",
|
|
4042
4083
|
name: "Stock Balance",
|
|
@@ -4045,17 +4086,17 @@ const xr = {
|
|
|
4045
4086
|
[`set_${o.inventory_stockAdjustment}`]: {
|
|
4046
4087
|
key: "sys:inventory:stock_adjustment",
|
|
4047
4088
|
name: "Stock Adjustment",
|
|
4048
|
-
permissions:
|
|
4089
|
+
permissions: vn
|
|
4049
4090
|
},
|
|
4050
4091
|
[`set_${o.inventory_unitCostHistory}`]: {
|
|
4051
4092
|
key: "sys:inventory:unit_cost_history",
|
|
4052
4093
|
name: "Unit Cost History",
|
|
4053
|
-
permissions:
|
|
4094
|
+
permissions: Rs
|
|
4054
4095
|
},
|
|
4055
4096
|
[`set_${o.inventory_wastageTemplate}`]: {
|
|
4056
4097
|
key: "sys:inventory:wastage_template",
|
|
4057
4098
|
name: "Wastage Template",
|
|
4058
|
-
permissions:
|
|
4099
|
+
permissions: Ns
|
|
4059
4100
|
},
|
|
4060
4101
|
[`set_${o.inventory_closingHistory}`]: {
|
|
4061
4102
|
key: "sys:inventory:closing_history",
|
|
@@ -4065,52 +4106,52 @@ const xr = {
|
|
|
4065
4106
|
[`set_${o.inventory_closingTemplate}`]: {
|
|
4066
4107
|
key: "sys:inventory:closing_template",
|
|
4067
4108
|
name: "Closing Template",
|
|
4068
|
-
permissions:
|
|
4109
|
+
permissions: zs
|
|
4069
4110
|
},
|
|
4070
4111
|
[`set_${o.inventory_closingDraft}`]: {
|
|
4071
4112
|
key: "sys:inventory:closing_draft",
|
|
4072
4113
|
name: "Closing Draft",
|
|
4073
|
-
permissions:
|
|
4114
|
+
permissions: Zs
|
|
4074
4115
|
},
|
|
4075
4116
|
[`set_${o.inventory_ingredient}`]: {
|
|
4076
4117
|
key: "sys:inventory:ingredient",
|
|
4077
4118
|
name: "Ingredient",
|
|
4078
|
-
permissions:
|
|
4119
|
+
permissions: hn
|
|
4079
4120
|
},
|
|
4080
4121
|
[`set_${o.inventory_ingredientGroup}`]: {
|
|
4081
4122
|
key: "sys:inventory:ingredient_group",
|
|
4082
4123
|
name: "Ingredient Group",
|
|
4083
|
-
permissions:
|
|
4124
|
+
permissions: Bn
|
|
4084
4125
|
},
|
|
4085
4126
|
[`set_${o.inventory_recipe}`]: {
|
|
4086
4127
|
key: "sys:inventory:recipe",
|
|
4087
4128
|
name: "Recipe",
|
|
4088
|
-
permissions:
|
|
4129
|
+
permissions: wn
|
|
4089
4130
|
},
|
|
4090
4131
|
[`set_${o.inventory_unit}`]: {
|
|
4091
4132
|
key: "sys:inventory:unit",
|
|
4092
4133
|
name: "Unit",
|
|
4093
|
-
permissions:
|
|
4134
|
+
permissions: Mn
|
|
4094
4135
|
},
|
|
4095
4136
|
[`set_${o.inventory_purchaseTransfer}`]: {
|
|
4096
4137
|
key: "sys:inventory:purchase_transfer",
|
|
4097
4138
|
name: "Purchase Transfer",
|
|
4098
|
-
permissions:
|
|
4139
|
+
permissions: Us
|
|
4099
4140
|
},
|
|
4100
4141
|
[`set_${o.inventory_orderDraftApproval}`]: {
|
|
4101
4142
|
key: "sys:inventory:order_draft_approval",
|
|
4102
4143
|
name: "Order Draft Approval",
|
|
4103
|
-
permissions:
|
|
4144
|
+
permissions: Cn
|
|
4104
4145
|
},
|
|
4105
4146
|
[`set_${o.inventory_transferOut}`]: {
|
|
4106
4147
|
key: "sys:inventory:transfer_out",
|
|
4107
4148
|
name: "Transfer Out",
|
|
4108
|
-
permissions:
|
|
4149
|
+
permissions: Ws
|
|
4109
4150
|
},
|
|
4110
4151
|
[`set_${o.inventory_surcharge}`]: {
|
|
4111
4152
|
key: "sys:inventory:surcharge",
|
|
4112
4153
|
name: "Surcharge",
|
|
4113
|
-
permissions:
|
|
4154
|
+
permissions: Ss
|
|
4114
4155
|
},
|
|
4115
4156
|
[`set_${o.inventory_orderTemplate}`]: {
|
|
4116
4157
|
key: "sys:inventory:order_template",
|
|
@@ -4120,31 +4161,31 @@ const xr = {
|
|
|
4120
4161
|
[`set_${o.inventory_supplier}`]: {
|
|
4121
4162
|
key: "sys:inventory:supplier",
|
|
4122
4163
|
name: "Supplier",
|
|
4123
|
-
permissions:
|
|
4164
|
+
permissions: Dn
|
|
4124
4165
|
},
|
|
4125
4166
|
[`set_${o.inventory_warehouse}`]: {
|
|
4126
4167
|
key: "sys:inventory:warehouse",
|
|
4127
4168
|
name: "Warehouse",
|
|
4128
|
-
permissions:
|
|
4169
|
+
permissions: jn
|
|
4129
4170
|
},
|
|
4130
4171
|
[`set_${o.inventory_publish}`]: {
|
|
4131
4172
|
key: "sys:inventory:publish",
|
|
4132
4173
|
name: "Publish",
|
|
4133
|
-
permissions:
|
|
4174
|
+
permissions: Gn
|
|
4134
4175
|
},
|
|
4135
4176
|
[`set_${o.inventory_import}`]: {
|
|
4136
4177
|
key: "sys:inventory:import",
|
|
4137
4178
|
name: "Import",
|
|
4138
|
-
permissions:
|
|
4179
|
+
permissions: Yn
|
|
4139
4180
|
},
|
|
4140
4181
|
[`set_${o.inventory_integration}`]: {
|
|
4141
4182
|
key: "sys:inventory:integration",
|
|
4142
4183
|
name: "Integration",
|
|
4143
|
-
permissions:
|
|
4184
|
+
permissions: En
|
|
4144
4185
|
}
|
|
4145
4186
|
};
|
|
4146
|
-
var
|
|
4147
|
-
const
|
|
4187
|
+
var ve = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(ve || {});
|
|
4188
|
+
const Vn = {
|
|
4148
4189
|
/**
|
|
4149
4190
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
4150
4191
|
* Injects: team member list read + pos role read
|
|
@@ -4156,7 +4197,7 @@ const Vr = {
|
|
|
4156
4197
|
permissions: [
|
|
4157
4198
|
{
|
|
4158
4199
|
label: "Portal Users",
|
|
4159
|
-
subject:
|
|
4200
|
+
subject: ve.hrm_portalUsers,
|
|
4160
4201
|
actions: [t.manage]
|
|
4161
4202
|
},
|
|
4162
4203
|
{
|
|
@@ -4166,7 +4207,12 @@ const Vr = {
|
|
|
4166
4207
|
},
|
|
4167
4208
|
{
|
|
4168
4209
|
label: "Pos Role",
|
|
4169
|
-
subject:
|
|
4210
|
+
subject: ve.hrm_posRole,
|
|
4211
|
+
actions: [t.read]
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
label: "Restaurant resource",
|
|
4215
|
+
subject: ve.hrm_restaurant,
|
|
4170
4216
|
actions: [t.read]
|
|
4171
4217
|
}
|
|
4172
4218
|
]
|
|
@@ -4181,17 +4227,17 @@ const Vr = {
|
|
|
4181
4227
|
permissions: [
|
|
4182
4228
|
{
|
|
4183
4229
|
label: "Portal Users",
|
|
4184
|
-
subject:
|
|
4230
|
+
subject: ve.hrm_portalUsers,
|
|
4185
4231
|
actions: [t.read]
|
|
4186
4232
|
},
|
|
4187
4233
|
{
|
|
4188
4234
|
label: "Restaurant resource",
|
|
4189
|
-
subject:
|
|
4235
|
+
subject: ve.hrm_restaurant,
|
|
4190
4236
|
actions: [t.read]
|
|
4191
4237
|
},
|
|
4192
4238
|
{
|
|
4193
4239
|
label: "Pos Role",
|
|
4194
|
-
subject:
|
|
4240
|
+
subject: ve.hrm_posRole,
|
|
4195
4241
|
actions: [t.manage]
|
|
4196
4242
|
}
|
|
4197
4243
|
]
|
|
@@ -4208,13 +4254,13 @@ const Vr = {
|
|
|
4208
4254
|
permissions: [
|
|
4209
4255
|
{
|
|
4210
4256
|
label: "Portal Users",
|
|
4211
|
-
subject:
|
|
4257
|
+
subject: ve.hrm_portalUsers,
|
|
4212
4258
|
actions: [t.read]
|
|
4213
4259
|
}
|
|
4214
4260
|
]
|
|
4215
4261
|
}
|
|
4216
4262
|
};
|
|
4217
|
-
var
|
|
4263
|
+
var ks = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(ks || {});
|
|
4218
4264
|
const Rt = [
|
|
4219
4265
|
{
|
|
4220
4266
|
label: "Payout Account",
|
|
@@ -4223,10 +4269,10 @@ const Rt = [
|
|
|
4223
4269
|
},
|
|
4224
4270
|
{
|
|
4225
4271
|
label: "Payment Terminals",
|
|
4226
|
-
subject:
|
|
4272
|
+
subject: ks.payment_terminals,
|
|
4227
4273
|
actions: [t.read]
|
|
4228
4274
|
}
|
|
4229
|
-
],
|
|
4275
|
+
], Pn = {
|
|
4230
4276
|
[`set_${o.payment_transactions}`]: {
|
|
4231
4277
|
key: "sys:payment:transactions",
|
|
4232
4278
|
name: "Payment Transactions Access",
|
|
@@ -4237,13 +4283,13 @@ const Rt = [
|
|
|
4237
4283
|
name: "Payment Settlements Access",
|
|
4238
4284
|
permissions: Rt
|
|
4239
4285
|
}
|
|
4240
|
-
},
|
|
4241
|
-
...
|
|
4242
|
-
...
|
|
4243
|
-
...
|
|
4244
|
-
...
|
|
4286
|
+
}, Fn = {
|
|
4287
|
+
...yn,
|
|
4288
|
+
...xn,
|
|
4289
|
+
...Vn,
|
|
4290
|
+
...Pn
|
|
4245
4291
|
}, _a = Object.values(
|
|
4246
|
-
|
|
4292
|
+
Fn
|
|
4247
4293
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
4248
4294
|
(e, A) => {
|
|
4249
4295
|
var m;
|
|
@@ -4252,31 +4298,31 @@ const Rt = [
|
|
|
4252
4298
|
{}
|
|
4253
4299
|
);
|
|
4254
4300
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4255
|
-
function
|
|
4301
|
+
function On(e) {
|
|
4256
4302
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4257
4303
|
}
|
|
4258
|
-
var
|
|
4304
|
+
var Ks = { exports: {} };
|
|
4259
4305
|
(function(e, A) {
|
|
4260
4306
|
(function(m, c) {
|
|
4261
4307
|
e.exports = c();
|
|
4262
4308
|
})(Re, function() {
|
|
4263
4309
|
return function(m) {
|
|
4264
4310
|
var c = {};
|
|
4265
|
-
function
|
|
4311
|
+
function r(u) {
|
|
4266
4312
|
if (c[u]) return c[u].exports;
|
|
4267
4313
|
var y = c[u] = { i: u, l: !1, exports: {} };
|
|
4268
|
-
return m[u].call(y.exports, y, y.exports,
|
|
4314
|
+
return m[u].call(y.exports, y, y.exports, r), y.l = !0, y.exports;
|
|
4269
4315
|
}
|
|
4270
|
-
return
|
|
4271
|
-
|
|
4272
|
-
},
|
|
4316
|
+
return r.m = m, r.c = c, r.d = function(u, y, h) {
|
|
4317
|
+
r.o(u, y) || Object.defineProperty(u, y, { enumerable: !0, get: h });
|
|
4318
|
+
}, r.r = function(u) {
|
|
4273
4319
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(u, "__esModule", { value: !0 });
|
|
4274
|
-
},
|
|
4275
|
-
if (1 & y && (u =
|
|
4320
|
+
}, r.t = function(u, y) {
|
|
4321
|
+
if (1 & y && (u = r(u)), 8 & y || 4 & y && typeof u == "object" && u && u.__esModule) return u;
|
|
4276
4322
|
var h = /* @__PURE__ */ Object.create(null);
|
|
4277
|
-
if (
|
|
4323
|
+
if (r.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: u }), 2 & y && typeof u != "string")
|
|
4278
4324
|
for (var E in u)
|
|
4279
|
-
|
|
4325
|
+
r.d(
|
|
4280
4326
|
h,
|
|
4281
4327
|
E,
|
|
4282
4328
|
(function(Y) {
|
|
@@ -4284,21 +4330,21 @@ var ks = { exports: {} };
|
|
|
4284
4330
|
}).bind(null, E)
|
|
4285
4331
|
);
|
|
4286
4332
|
return h;
|
|
4287
|
-
},
|
|
4333
|
+
}, r.n = function(u) {
|
|
4288
4334
|
var y = u && u.__esModule ? function() {
|
|
4289
4335
|
return u.default;
|
|
4290
4336
|
} : function() {
|
|
4291
4337
|
return u;
|
|
4292
4338
|
};
|
|
4293
|
-
return
|
|
4294
|
-
},
|
|
4339
|
+
return r.d(y, "a", y), y;
|
|
4340
|
+
}, r.o = function(u, y) {
|
|
4295
4341
|
return Object.prototype.hasOwnProperty.call(u, y);
|
|
4296
|
-
},
|
|
4342
|
+
}, r.p = "", r(r.s = 0);
|
|
4297
4343
|
}([
|
|
4298
|
-
function(m, c,
|
|
4299
|
-
m.exports =
|
|
4344
|
+
function(m, c, r) {
|
|
4345
|
+
m.exports = r(1);
|
|
4300
4346
|
},
|
|
4301
|
-
function(m, c,
|
|
4347
|
+
function(m, c, r) {
|
|
4302
4348
|
function u(i) {
|
|
4303
4349
|
return (u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
4304
4350
|
return typeof g;
|
|
@@ -4312,11 +4358,11 @@ var ks = { exports: {} };
|
|
|
4312
4358
|
return Object.prototype.toString.call(f) === g;
|
|
4313
4359
|
};
|
|
4314
4360
|
}
|
|
4315
|
-
|
|
4361
|
+
r.r(c), r.d(c, "default", function() {
|
|
4316
4362
|
return Ne;
|
|
4317
|
-
}),
|
|
4363
|
+
}), r.d(c, "compare", function() {
|
|
4318
4364
|
return Fe;
|
|
4319
|
-
}),
|
|
4365
|
+
}), r.d(c, "comparable", function() {
|
|
4320
4366
|
return Oe;
|
|
4321
4367
|
});
|
|
4322
4368
|
var h = y("Array"), E = y("Object"), Y = y("Function");
|
|
@@ -4411,7 +4457,7 @@ var ks = { exports: {} };
|
|
|
4411
4457
|
$exists: function(i, g, f, B) {
|
|
4412
4458
|
return B.hasOwnProperty(f) === i;
|
|
4413
4459
|
}
|
|
4414
|
-
},
|
|
4460
|
+
}, T = {
|
|
4415
4461
|
$eq: function(i, g, f) {
|
|
4416
4462
|
var B = f.comparable, C = f.compare;
|
|
4417
4463
|
return i instanceof RegExp ? P(function(D) {
|
|
@@ -4476,7 +4522,7 @@ var ks = { exports: {} };
|
|
|
4476
4522
|
};
|
|
4477
4523
|
},
|
|
4478
4524
|
$nin: function(i, g, f) {
|
|
4479
|
-
var B =
|
|
4525
|
+
var B = T.$in(i, g, f);
|
|
4480
4526
|
return function(C, D, V, F) {
|
|
4481
4527
|
return !B(C, D, V, F);
|
|
4482
4528
|
};
|
|
@@ -4487,7 +4533,7 @@ var ks = { exports: {} };
|
|
|
4487
4533
|
};
|
|
4488
4534
|
},
|
|
4489
4535
|
$ne: function(i, g, f) {
|
|
4490
|
-
var B =
|
|
4536
|
+
var B = T.$eq(i, g, f);
|
|
4491
4537
|
return I(function(C, D, V, F) {
|
|
4492
4538
|
return !B(C, D, V, F);
|
|
4493
4539
|
});
|
|
@@ -4496,7 +4542,7 @@ var ks = { exports: {} };
|
|
|
4496
4542
|
return i.map(ie(f));
|
|
4497
4543
|
},
|
|
4498
4544
|
$all: function(i, g, f) {
|
|
4499
|
-
return
|
|
4545
|
+
return T.$and(i, g, f);
|
|
4500
4546
|
},
|
|
4501
4547
|
$or: function(i, g, f) {
|
|
4502
4548
|
return i.map(ie(f));
|
|
@@ -4548,8 +4594,8 @@ var ks = { exports: {} };
|
|
|
4548
4594
|
return H(B, V[0], V[1], V[2]);
|
|
4549
4595
|
}
|
|
4550
4596
|
for (var F = C && C.$ne !== void 0, Z = F, W = 0; W < D.length; W++) {
|
|
4551
|
-
var d = D[W],
|
|
4552
|
-
F ? Z &=
|
|
4597
|
+
var d = D[W], n = H(B, d[0], d[1], d[2]);
|
|
4598
|
+
F ? Z &= n : Z |= n;
|
|
4553
4599
|
}
|
|
4554
4600
|
return Z;
|
|
4555
4601
|
}
|
|
@@ -4567,12 +4613,12 @@ var ks = { exports: {} };
|
|
|
4567
4613
|
var W = V[Z];
|
|
4568
4614
|
if (Z !== "$options") {
|
|
4569
4615
|
var d = z[Z] || i && f && f[Z];
|
|
4570
|
-
if (d)
|
|
4616
|
+
if (d) T[Z] && (W = T[Z](W, V, i)), F.push(te(g(W), d));
|
|
4571
4617
|
else {
|
|
4572
4618
|
if (Z.charCodeAt(0) === 36)
|
|
4573
4619
|
throw new Error("Unknown operation " + Z);
|
|
4574
|
-
var
|
|
4575
|
-
F.push(Le(
|
|
4620
|
+
var n = Z.split(".");
|
|
4621
|
+
F.push(Le(n, D(W), W));
|
|
4576
4622
|
}
|
|
4577
4623
|
}
|
|
4578
4624
|
}
|
|
@@ -4582,24 +4628,24 @@ var ks = { exports: {} };
|
|
|
4582
4628
|
if (!E(Z)) return W;
|
|
4583
4629
|
for (var d in Z) W.push(d), F(Z[d], W);
|
|
4584
4630
|
return W;
|
|
4585
|
-
}(V, []).join(",").search(/[$.]/) === -1 ? te(V,
|
|
4631
|
+
}(V, []).join(",").search(/[$.]/) === -1 ? te(V, Be) : C(V);
|
|
4586
4632
|
};
|
|
4587
4633
|
return function(V) {
|
|
4588
4634
|
return C(B(V));
|
|
4589
4635
|
};
|
|
4590
4636
|
}
|
|
4591
|
-
function
|
|
4637
|
+
function Be(i, g) {
|
|
4592
4638
|
if (Object.prototype.toString.call(i) !== Object.prototype.toString.call(g))
|
|
4593
4639
|
return !1;
|
|
4594
4640
|
if (E(i)) {
|
|
4595
4641
|
if (Object.keys(i).length !== Object.keys(g).length) return !1;
|
|
4596
|
-
for (var f in i) if (!
|
|
4642
|
+
for (var f in i) if (!Be(i[f], g[f])) return !1;
|
|
4597
4643
|
return !0;
|
|
4598
4644
|
}
|
|
4599
4645
|
if (h(i)) {
|
|
4600
4646
|
if (i.length !== g.length) return !1;
|
|
4601
4647
|
for (var B = 0, C = i.length; B < C; B++)
|
|
4602
|
-
if (!
|
|
4648
|
+
if (!Be(i[B], g[B])) return !1;
|
|
4603
4649
|
return !0;
|
|
4604
4650
|
}
|
|
4605
4651
|
return i === g;
|
|
@@ -4620,7 +4666,7 @@ var ks = { exports: {} };
|
|
|
4620
4666
|
};
|
|
4621
4667
|
}
|
|
4622
4668
|
function Fe(i, g) {
|
|
4623
|
-
if (
|
|
4669
|
+
if (Be(i, g)) return 0;
|
|
4624
4670
|
if (u(i) === u(g)) {
|
|
4625
4671
|
if (i > g) return 1;
|
|
4626
4672
|
if (i < g) return -1;
|
|
@@ -4632,19 +4678,19 @@ var ks = { exports: {} };
|
|
|
4632
4678
|
}
|
|
4633
4679
|
]);
|
|
4634
4680
|
});
|
|
4635
|
-
})(
|
|
4636
|
-
var
|
|
4637
|
-
const
|
|
4638
|
-
function
|
|
4681
|
+
})(Ks);
|
|
4682
|
+
var qn = Ks.exports;
|
|
4683
|
+
const Hn = /* @__PURE__ */ On(qn);
|
|
4684
|
+
function Xn(e, A) {
|
|
4639
4685
|
for (var m = 0; m < A.length; m++) {
|
|
4640
4686
|
var c = A[m];
|
|
4641
4687
|
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
4642
4688
|
}
|
|
4643
4689
|
}
|
|
4644
|
-
function
|
|
4645
|
-
return A &&
|
|
4690
|
+
function Qn(e, A, m) {
|
|
4691
|
+
return A && Xn(e.prototype, A), e;
|
|
4646
4692
|
}
|
|
4647
|
-
function
|
|
4693
|
+
function In(e, A) {
|
|
4648
4694
|
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
4649
4695
|
}
|
|
4650
4696
|
function Bt(e) {
|
|
@@ -4652,12 +4698,12 @@ function Bt(e) {
|
|
|
4652
4698
|
return m.__proto__ || Object.getPrototypeOf(m);
|
|
4653
4699
|
}, Bt(e);
|
|
4654
4700
|
}
|
|
4655
|
-
function
|
|
4656
|
-
return
|
|
4657
|
-
return c.__proto__ =
|
|
4658
|
-
},
|
|
4701
|
+
function Te(e, A) {
|
|
4702
|
+
return Te = Object.setPrototypeOf || function(c, r) {
|
|
4703
|
+
return c.__proto__ = r, c;
|
|
4704
|
+
}, Te(e, A);
|
|
4659
4705
|
}
|
|
4660
|
-
function
|
|
4706
|
+
function Rn() {
|
|
4661
4707
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
4662
4708
|
if (typeof Proxy == "function") return !0;
|
|
4663
4709
|
try {
|
|
@@ -4667,38 +4713,38 @@ function Rr() {
|
|
|
4667
4713
|
return !1;
|
|
4668
4714
|
}
|
|
4669
4715
|
}
|
|
4670
|
-
function
|
|
4671
|
-
return
|
|
4716
|
+
function Se(e, A, m) {
|
|
4717
|
+
return Rn() ? Se = Reflect.construct : Se = function(r, u, y) {
|
|
4672
4718
|
var h = [null];
|
|
4673
4719
|
h.push.apply(h, u);
|
|
4674
|
-
var E = Function.bind.apply(
|
|
4675
|
-
return y &&
|
|
4676
|
-
},
|
|
4720
|
+
var E = Function.bind.apply(r, h), Y = new E();
|
|
4721
|
+
return y && Te(Y, y.prototype), Y;
|
|
4722
|
+
}, Se.apply(null, arguments);
|
|
4677
4723
|
}
|
|
4678
|
-
function
|
|
4724
|
+
function Nn(e) {
|
|
4679
4725
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
4680
4726
|
}
|
|
4681
4727
|
function wt(e) {
|
|
4682
4728
|
var A = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
4683
4729
|
return wt = function(c) {
|
|
4684
|
-
if (c === null || !
|
|
4730
|
+
if (c === null || !Nn(c)) return c;
|
|
4685
4731
|
if (typeof c != "function")
|
|
4686
4732
|
throw new TypeError("Super expression must either be null or a function");
|
|
4687
4733
|
if (typeof A < "u") {
|
|
4688
4734
|
if (A.has(c)) return A.get(c);
|
|
4689
|
-
A.set(c,
|
|
4735
|
+
A.set(c, r);
|
|
4690
4736
|
}
|
|
4691
|
-
function
|
|
4692
|
-
return
|
|
4737
|
+
function r() {
|
|
4738
|
+
return Se(c, arguments, Bt(this).constructor);
|
|
4693
4739
|
}
|
|
4694
|
-
return
|
|
4740
|
+
return r.prototype = Object.create(c.prototype, {
|
|
4695
4741
|
constructor: {
|
|
4696
|
-
value:
|
|
4742
|
+
value: r,
|
|
4697
4743
|
enumerable: !1,
|
|
4698
4744
|
writable: !0,
|
|
4699
4745
|
configurable: !0
|
|
4700
4746
|
}
|
|
4701
|
-
}),
|
|
4747
|
+
}), Te(r, c);
|
|
4702
4748
|
}, wt(e);
|
|
4703
4749
|
}
|
|
4704
4750
|
function Nt(e) {
|
|
@@ -4706,33 +4752,33 @@ function Nt(e) {
|
|
|
4706
4752
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4707
4753
|
return e;
|
|
4708
4754
|
}
|
|
4709
|
-
var
|
|
4755
|
+
var Ls = function(A) {
|
|
4710
4756
|
return 'Cannot execute "' + A.action + '" on "' + A.subjectName + '"';
|
|
4711
|
-
}, ze =
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
return
|
|
4715
|
-
} :
|
|
4716
|
-
}, A.from = function(
|
|
4757
|
+
}, ze = Ls, Zn = /* @__PURE__ */ function(e) {
|
|
4758
|
+
In(A, e), A.setDefaultMessage = function(r) {
|
|
4759
|
+
r === null ? ze = Ls : ze = typeof r == "string" ? function() {
|
|
4760
|
+
return r;
|
|
4761
|
+
} : r;
|
|
4762
|
+
}, A.from = function(r) {
|
|
4717
4763
|
var u = new this("");
|
|
4718
4764
|
return Object.defineProperty(u, "ability", {
|
|
4719
|
-
value:
|
|
4765
|
+
value: r
|
|
4720
4766
|
}), u;
|
|
4721
4767
|
};
|
|
4722
|
-
function A(c,
|
|
4768
|
+
function A(c, r) {
|
|
4723
4769
|
var u;
|
|
4724
|
-
return
|
|
4770
|
+
return r === void 0 && (r = {}), u = e.call(this, c) || this, u._setMetadata(r), u.message = c || ze(Nt(u)), u._customMessage = null, typeof Error.captureStackTrace == "function" && (u.name = u.constructor.name, Error.captureStackTrace(Nt(u), u.constructor)), u;
|
|
4725
4771
|
}
|
|
4726
4772
|
var m = A.prototype;
|
|
4727
|
-
return m.setMessage = function(
|
|
4728
|
-
return this._customMessage =
|
|
4729
|
-
}, m.throwUnlessCan = function(
|
|
4773
|
+
return m.setMessage = function(r) {
|
|
4774
|
+
return this._customMessage = r, this;
|
|
4775
|
+
}, m.throwUnlessCan = function(r, u, y) {
|
|
4730
4776
|
if (!this.ability)
|
|
4731
4777
|
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
4732
|
-
var h = this.ability.relevantRuleFor(
|
|
4778
|
+
var h = this.ability.relevantRuleFor(r, u, y);
|
|
4733
4779
|
if (!(h && !h.inverted)) {
|
|
4734
4780
|
this._setMetadata({
|
|
4735
|
-
action:
|
|
4781
|
+
action: r,
|
|
4736
4782
|
subject: u,
|
|
4737
4783
|
field: y,
|
|
4738
4784
|
subjectName: this.ability.subjectName(u)
|
|
@@ -4740,52 +4786,52 @@ var Ks = function(A) {
|
|
|
4740
4786
|
var E = h ? h.reason : "";
|
|
4741
4787
|
throw this.message = this._customMessage || E || ze(this), this;
|
|
4742
4788
|
}
|
|
4743
|
-
}, m._setMetadata = function(
|
|
4744
|
-
this.subject =
|
|
4789
|
+
}, m._setMetadata = function(r) {
|
|
4790
|
+
this.subject = r.subject, this.subjectName = r.subjectName, this.action = r.action, this.field = r.field;
|
|
4745
4791
|
}, A;
|
|
4746
4792
|
}(wt(Error));
|
|
4747
4793
|
function Mt(e) {
|
|
4748
4794
|
return Array.isArray(e) ? e : [e];
|
|
4749
4795
|
}
|
|
4750
|
-
function
|
|
4796
|
+
function zn(e) {
|
|
4751
4797
|
if (!e || typeof e == "string")
|
|
4752
4798
|
return e;
|
|
4753
4799
|
var A = typeof e == "object" ? e.constructor : e;
|
|
4754
4800
|
return A.modelName || A.name;
|
|
4755
4801
|
}
|
|
4756
|
-
function
|
|
4802
|
+
function Un(e) {
|
|
4757
4803
|
return JSON.parse(JSON.stringify(e));
|
|
4758
4804
|
}
|
|
4759
|
-
var
|
|
4760
|
-
function
|
|
4761
|
-
var c = m[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*",
|
|
4805
|
+
var Wn = /[-/\\^$+?.()|[\]{}]/g, Sn = /\.?\*+\.?/g, Tn = /\*+/, kn = /\./g;
|
|
4806
|
+
function Kn(e, A, m) {
|
|
4807
|
+
var c = m[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", u = e.replace(kn, "\\$&").replace(Tn, r + c);
|
|
4762
4808
|
return A + e.length === m.length ? "(?:" + u + ")?" : u;
|
|
4763
4809
|
}
|
|
4764
|
-
function
|
|
4810
|
+
function Ln(e, A, m) {
|
|
4765
4811
|
return e === "." && (m[A - 1] === "*" || m[A + 1] === "*") ? e : "\\" + e;
|
|
4766
4812
|
}
|
|
4767
|
-
function
|
|
4813
|
+
function Jn(e) {
|
|
4768
4814
|
var A = e.map(function(c) {
|
|
4769
|
-
return c.replace(
|
|
4815
|
+
return c.replace(Wn, Ln).replace(Sn, Kn);
|
|
4770
4816
|
}), m = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
4771
4817
|
return new RegExp("^" + m + "$");
|
|
4772
4818
|
}
|
|
4773
|
-
var
|
|
4819
|
+
var _n = /* @__PURE__ */ function() {
|
|
4774
4820
|
function e(m) {
|
|
4775
4821
|
this.actions = m.actions || m.action, this.subject = m.subject, this.fields = !m.fields || m.fields.length === 0 ? void 0 : Mt(m.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
4776
4822
|
writable: !0
|
|
4777
4823
|
}), this.inverted = !!m.inverted, this.conditions = m.conditions, Object.defineProperty(this, "_matches", {
|
|
4778
4824
|
writable: !0,
|
|
4779
|
-
value: this.conditions ?
|
|
4825
|
+
value: this.conditions ? Hn(this.conditions) : void 0
|
|
4780
4826
|
}), this.reason = m.reason;
|
|
4781
4827
|
}
|
|
4782
4828
|
var A = e.prototype;
|
|
4783
4829
|
return A.matches = function(c) {
|
|
4784
4830
|
return this._matches ? typeof c == "string" ? !this.inverted : this._matches(c) : !0;
|
|
4785
|
-
}, A.isRelevantFor = function(c,
|
|
4786
|
-
return this.fields ?
|
|
4831
|
+
}, A.isRelevantFor = function(c, r) {
|
|
4832
|
+
return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
|
|
4787
4833
|
}, A.matchesField = function(c) {
|
|
4788
|
-
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null :
|
|
4834
|
+
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : Jn(this.fields)), this._fieldsPattern === null || c.indexOf("*") !== -1 ? this.fields.indexOf(c) !== -1 : this._fieldsPattern.test(c);
|
|
4789
4835
|
}, e;
|
|
4790
4836
|
}(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), Zt = {
|
|
4791
4837
|
crud: ["create", "read", "update", "delete"]
|
|
@@ -4793,85 +4839,85 @@ var _r = /* @__PURE__ */ function() {
|
|
|
4793
4839
|
function zt(e, A) {
|
|
4794
4840
|
return e === A || Array.isArray(A) && A.indexOf(e) !== -1;
|
|
4795
4841
|
}
|
|
4796
|
-
var $
|
|
4797
|
-
e.addAlias = function(c,
|
|
4798
|
-
if (c === "manage" || zt("manage",
|
|
4842
|
+
var $n = /* @__PURE__ */ function() {
|
|
4843
|
+
e.addAlias = function(c, r) {
|
|
4844
|
+
if (c === "manage" || zt("manage", r))
|
|
4799
4845
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
4800
|
-
if (zt(c,
|
|
4801
|
-
throw new Error("Attempt to alias action to itself: " + c + " -> " +
|
|
4802
|
-
return Zt[c] =
|
|
4846
|
+
if (zt(c, r))
|
|
4847
|
+
throw new Error("Attempt to alias action to itself: " + c + " -> " + r.toString());
|
|
4848
|
+
return Zt[c] = r, this;
|
|
4803
4849
|
};
|
|
4804
4850
|
function e(m, c) {
|
|
4805
4851
|
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
4806
|
-
value: c.subjectName ||
|
|
4852
|
+
value: c.subjectName || zn
|
|
4807
4853
|
}), this[ee] = {
|
|
4808
|
-
RuleType: c.RuleType ||
|
|
4854
|
+
RuleType: c.RuleType || _n,
|
|
4809
4855
|
originalRules: m || [],
|
|
4810
4856
|
hasPerFieldRules: !1,
|
|
4811
4857
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
4812
4858
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
4813
4859
|
events: {},
|
|
4814
|
-
aliases:
|
|
4860
|
+
aliases: Un(Zt)
|
|
4815
4861
|
}, this.update(m);
|
|
4816
4862
|
}
|
|
4817
4863
|
var A = e.prototype;
|
|
4818
4864
|
return A.update = function(c) {
|
|
4819
4865
|
if (!Array.isArray(c))
|
|
4820
4866
|
return this;
|
|
4821
|
-
var
|
|
4867
|
+
var r = {
|
|
4822
4868
|
rules: c,
|
|
4823
4869
|
ability: this
|
|
4824
4870
|
};
|
|
4825
|
-
this.emit("update",
|
|
4871
|
+
this.emit("update", r), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
4826
4872
|
var u = this.buildIndexFor(c);
|
|
4827
|
-
return this[ee].indexedRules = u.rules, this[ee].hasPerFieldRules = u.hasPerFieldRules, this.emit("updated",
|
|
4873
|
+
return this[ee].indexedRules = u.rules, this[ee].hasPerFieldRules = u.hasPerFieldRules, this.emit("updated", r), this;
|
|
4828
4874
|
}, A.buildIndexFor = function(c) {
|
|
4829
|
-
for (var
|
|
4875
|
+
for (var r = /* @__PURE__ */ Object.create(null), u = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
4830
4876
|
var Y = new u(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
4831
4877
|
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
4832
4878
|
for (var H = 0; H < P.length; H++) {
|
|
4833
4879
|
var z = P[H];
|
|
4834
|
-
|
|
4835
|
-
for (var
|
|
4836
|
-
var te = w[
|
|
4837
|
-
|
|
4880
|
+
r[z] = r[z] || /* @__PURE__ */ Object.create(null);
|
|
4881
|
+
for (var T = 0; T < w.length; T++) {
|
|
4882
|
+
var te = w[T];
|
|
4883
|
+
r[z][te] = r[z][te] || /* @__PURE__ */ Object.create(null), r[z][te][I] = Y;
|
|
4838
4884
|
}
|
|
4839
4885
|
}
|
|
4840
4886
|
}
|
|
4841
4887
|
return {
|
|
4842
4888
|
isAllInverted: y,
|
|
4843
4889
|
hasPerFieldRules: h,
|
|
4844
|
-
rules:
|
|
4890
|
+
rules: r
|
|
4845
4891
|
};
|
|
4846
4892
|
}, A.expandActions = function(c) {
|
|
4847
|
-
for (var
|
|
4893
|
+
for (var r = this[ee].aliases, u = Mt(c), y = 0; y < u.length; ) {
|
|
4848
4894
|
var h = u[y++];
|
|
4849
|
-
|
|
4895
|
+
r.hasOwnProperty(h) && (u = u.concat(r[h]));
|
|
4850
4896
|
}
|
|
4851
4897
|
return u;
|
|
4852
|
-
}, A.can = function(c,
|
|
4898
|
+
}, A.can = function(c, r, u) {
|
|
4853
4899
|
if (u && typeof u != "string")
|
|
4854
4900
|
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");
|
|
4855
|
-
var y = this.relevantRuleFor(c,
|
|
4901
|
+
var y = this.relevantRuleFor(c, r, u);
|
|
4856
4902
|
return !!y && !y.inverted;
|
|
4857
|
-
}, A.relevantRuleFor = function(c,
|
|
4858
|
-
for (var y = this.rulesFor(c,
|
|
4859
|
-
if (y[h].matches(
|
|
4903
|
+
}, A.relevantRuleFor = function(c, r, u) {
|
|
4904
|
+
for (var y = this.rulesFor(c, r, u), h = 0; h < y.length; h++)
|
|
4905
|
+
if (y[h].matches(r))
|
|
4860
4906
|
return y[h];
|
|
4861
4907
|
return null;
|
|
4862
|
-
}, A.possibleRulesFor = function(c,
|
|
4863
|
-
var u = this.subjectName(
|
|
4908
|
+
}, A.possibleRulesFor = function(c, r) {
|
|
4909
|
+
var u = this.subjectName(r), y = this[ee].mergedRules, h = u + "_" + c;
|
|
4864
4910
|
return y[h] || (y[h] = this.mergeRulesFor(c, u)), y[h];
|
|
4865
|
-
}, A.mergeRulesFor = function(c,
|
|
4866
|
-
var u = this[ee].indexedRules, y = [
|
|
4911
|
+
}, A.mergeRulesFor = function(c, r) {
|
|
4912
|
+
var u = this[ee].indexedRules, y = [r, "all"].reduce(function(h, E) {
|
|
4867
4913
|
var Y = u[E];
|
|
4868
4914
|
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
4869
4915
|
}, []);
|
|
4870
4916
|
return y.filter(Boolean);
|
|
4871
|
-
}, A.rulesFor = function(c,
|
|
4872
|
-
var y = this.possibleRulesFor(c,
|
|
4917
|
+
}, A.rulesFor = function(c, r, u) {
|
|
4918
|
+
var y = this.possibleRulesFor(c, r);
|
|
4873
4919
|
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
4874
|
-
return h.isRelevantFor(
|
|
4920
|
+
return h.isRelevantFor(r, u);
|
|
4875
4921
|
}) : y;
|
|
4876
4922
|
}, A.cannot = function() {
|
|
4877
4923
|
return !this.can.apply(this, arguments);
|
|
@@ -4880,21 +4926,21 @@ var $r = /* @__PURE__ */ function() {
|
|
|
4880
4926
|
console.warn(`
|
|
4881
4927
|
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
4882
4928
|
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
4883
|
-
`.trim()), (c =
|
|
4884
|
-
}, A.on = function(c,
|
|
4929
|
+
`.trim()), (c = Zn.from(this)).throwUnlessCan.apply(c, arguments);
|
|
4930
|
+
}, A.on = function(c, r) {
|
|
4885
4931
|
var u = this[ee].events, y = !0;
|
|
4886
|
-
return u[c] || (u[c] = []), u[c].push(
|
|
4932
|
+
return u[c] || (u[c] = []), u[c].push(r), function() {
|
|
4887
4933
|
if (y) {
|
|
4888
|
-
var h = u[c].indexOf(
|
|
4934
|
+
var h = u[c].indexOf(r);
|
|
4889
4935
|
u[c].splice(h, 1), y = !1;
|
|
4890
4936
|
}
|
|
4891
4937
|
};
|
|
4892
|
-
}, A.emit = function(c,
|
|
4938
|
+
}, A.emit = function(c, r) {
|
|
4893
4939
|
var u = this[ee].events[c];
|
|
4894
4940
|
u && u.slice(0).forEach(function(y) {
|
|
4895
|
-
return y(
|
|
4941
|
+
return y(r);
|
|
4896
4942
|
});
|
|
4897
|
-
},
|
|
4943
|
+
}, Qn(e, [{
|
|
4898
4944
|
key: "rules",
|
|
4899
4945
|
get: function() {
|
|
4900
4946
|
return this[ee].originalRules;
|
|
@@ -4916,12 +4962,12 @@ function ta(e) {
|
|
|
4916
4962
|
}));
|
|
4917
4963
|
}
|
|
4918
4964
|
function sa(e) {
|
|
4919
|
-
return new $
|
|
4965
|
+
return new $n(ta(e));
|
|
4920
4966
|
}
|
|
4921
|
-
function
|
|
4922
|
-
const c = Array.isArray(e) ? e : [e],
|
|
4967
|
+
function ra(e, A, m) {
|
|
4968
|
+
const c = Array.isArray(e) ? e : [e], r = sa(A), u = (w) => w.subject, y = (w) => r.can(w.action, u(w), w.field) ? !0 : w.coverSubject !== void 0 ? r.can(w.action, w.coverSubject, w.field) : !1, h = c.find((w) => !y(w));
|
|
4923
4969
|
if (h) {
|
|
4924
|
-
const w =
|
|
4970
|
+
const w = r.relevantRuleFor(
|
|
4925
4971
|
h.action,
|
|
4926
4972
|
u(h),
|
|
4927
4973
|
h.field
|
|
@@ -4932,23 +4978,23 @@ function na(e, A, m) {
|
|
|
4932
4978
|
decisiveRule: w ?? null
|
|
4933
4979
|
};
|
|
4934
4980
|
}
|
|
4935
|
-
const E = c[0], Y =
|
|
4981
|
+
const E = c[0], Y = r.relevantRuleFor(E.action, u(E), E.field);
|
|
4936
4982
|
return { granted: !0, decisivePermission: E, decisiveRule: Y ?? null };
|
|
4937
4983
|
}
|
|
4938
4984
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4939
|
-
const
|
|
4985
|
+
const na = () => {
|
|
4940
4986
|
};
|
|
4941
4987
|
function aa(e, A, m) {
|
|
4942
4988
|
let c;
|
|
4943
|
-
|
|
4989
|
+
er(m) ? c = {
|
|
4944
4990
|
evaluating: m
|
|
4945
4991
|
} : c = {};
|
|
4946
4992
|
const {
|
|
4947
|
-
lazy:
|
|
4993
|
+
lazy: r = !1,
|
|
4948
4994
|
evaluating: u = void 0,
|
|
4949
4995
|
shallow: y = !0,
|
|
4950
|
-
onError: h =
|
|
4951
|
-
} = c, E =
|
|
4996
|
+
onError: h = na
|
|
4997
|
+
} = c, E = he(!r), Y = y ? tr(A) : he(A);
|
|
4952
4998
|
let w = 0;
|
|
4953
4999
|
return Wt(async (P) => {
|
|
4954
5000
|
if (!E.value)
|
|
@@ -4960,9 +5006,9 @@ function aa(e, A, m) {
|
|
|
4960
5006
|
u.value = !0;
|
|
4961
5007
|
});
|
|
4962
5008
|
try {
|
|
4963
|
-
const z = await e((
|
|
5009
|
+
const z = await e((T) => {
|
|
4964
5010
|
P(() => {
|
|
4965
|
-
u && (u.value = !1), H ||
|
|
5011
|
+
u && (u.value = !1), H || T();
|
|
4966
5012
|
});
|
|
4967
5013
|
});
|
|
4968
5014
|
I === w && (Y.value = z);
|
|
@@ -4971,10 +5017,10 @@ function aa(e, A, m) {
|
|
|
4971
5017
|
} finally {
|
|
4972
5018
|
u && I === w && (u.value = !1), H = !0;
|
|
4973
5019
|
}
|
|
4974
|
-
}),
|
|
5020
|
+
}), r ? jt(() => (E.value = !0, Y.value)) : Y;
|
|
4975
5021
|
}
|
|
4976
5022
|
async function oa(e) {
|
|
4977
|
-
const { sessionUser: A, validationManifest: m } = e, { requiredRoles: c, requiredCaslPermissions:
|
|
5023
|
+
const { sessionUser: A, validationManifest: m } = e, { requiredRoles: c, requiredCaslPermissions: r, customValidationFunction: u } = m;
|
|
4978
5024
|
if (!A)
|
|
4979
5025
|
return { canAccess: !1 };
|
|
4980
5026
|
if (c && c.length > 0 && !c.includes(A._role || ""))
|
|
@@ -4982,8 +5028,8 @@ async function oa(e) {
|
|
|
4982
5028
|
canAccess: !1,
|
|
4983
5029
|
message: "User does not have permission to access"
|
|
4984
5030
|
});
|
|
4985
|
-
if (
|
|
4986
|
-
const { granted: y } =
|
|
5031
|
+
if (r && r.length > 0) {
|
|
5032
|
+
const { granted: y } = ra(r, A.permissions);
|
|
4987
5033
|
if (!y)
|
|
4988
5034
|
return Promise.resolve({
|
|
4989
5035
|
canAccess: !1,
|
|
@@ -5008,7 +5054,7 @@ async function ia(e, A) {
|
|
|
5008
5054
|
return {
|
|
5009
5055
|
canAccess: !1,
|
|
5010
5056
|
message: c.message,
|
|
5011
|
-
redirectTo:
|
|
5057
|
+
redirectTo: Kr
|
|
5012
5058
|
};
|
|
5013
5059
|
}
|
|
5014
5060
|
return {
|
|
@@ -5017,7 +5063,7 @@ async function ia(e, A) {
|
|
|
5017
5063
|
}
|
|
5018
5064
|
var Ct = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Ct || {});
|
|
5019
5065
|
function la() {
|
|
5020
|
-
const e =
|
|
5066
|
+
const e = ur(), { sessionUser: A } = Yt();
|
|
5021
5067
|
return aa(
|
|
5022
5068
|
async () => {
|
|
5023
5069
|
e.matched;
|
|
@@ -5067,17 +5113,17 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5067
5113
|
"th-TH": fa
|
|
5068
5114
|
}
|
|
5069
5115
|
});
|
|
5070
|
-
return (m, c) => (Ve(),
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
src:
|
|
5116
|
+
return (m, c) => (Ve(), Tt("div", ya, [
|
|
5117
|
+
Me("div", va, [
|
|
5118
|
+
Me("div", ha, [
|
|
5119
|
+
Me("img", {
|
|
5120
|
+
src: Ce(ca),
|
|
5075
5121
|
class: "w-full h-full"
|
|
5076
5122
|
}, null, 8, Ba)
|
|
5077
5123
|
]),
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5124
|
+
Me("div", null, [
|
|
5125
|
+
Me("h1", wa, It(Ce(A)("noPermission.title")), 1),
|
|
5126
|
+
Me("h2", Ma, It(Ce(A)("noPermission.subtitle")), 1)
|
|
5081
5127
|
])
|
|
5082
5128
|
])
|
|
5083
5129
|
]));
|
|
@@ -5086,7 +5132,7 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5086
5132
|
__name: "PermissionWrapper",
|
|
5087
5133
|
setup(e) {
|
|
5088
5134
|
const A = la();
|
|
5089
|
-
return (m, c) =>
|
|
5135
|
+
return (m, c) => Ce(A) === Ce(Ct).Denied ? (Ve(), ke(Ca, { key: 0 })) : Ce(A) === Ce(Ct).Allowed ? St(m.$slots, "default", { key: 1 }) : sr("", !0);
|
|
5090
5136
|
}
|
|
5091
5137
|
});
|
|
5092
5138
|
function Ke(e) {
|
|
@@ -5098,7 +5144,7 @@ function Ke(e) {
|
|
|
5098
5144
|
};
|
|
5099
5145
|
}
|
|
5100
5146
|
function ja(e, A) {
|
|
5101
|
-
const m =
|
|
5147
|
+
const m = he({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5102
5148
|
function c() {
|
|
5103
5149
|
if (e.value) {
|
|
5104
5150
|
const u = e.value.getBoundingClientRect();
|
|
@@ -5110,31 +5156,31 @@ function ja(e, A) {
|
|
|
5110
5156
|
};
|
|
5111
5157
|
}
|
|
5112
5158
|
}
|
|
5113
|
-
let
|
|
5114
|
-
return
|
|
5115
|
-
u && (await
|
|
5159
|
+
let r = null;
|
|
5160
|
+
return rr(e, async (u) => {
|
|
5161
|
+
u && (await nr(), c());
|
|
5116
5162
|
}), kt(() => {
|
|
5117
|
-
window.addEventListener("resize", c),
|
|
5118
|
-
}),
|
|
5119
|
-
window.removeEventListener("resize", c),
|
|
5163
|
+
window.addEventListener("resize", c), r = new ResizeObserver(c), r.observe(document.body);
|
|
5164
|
+
}), ar(() => {
|
|
5165
|
+
window.removeEventListener("resize", c), r == null || r.disconnect(), r = null;
|
|
5120
5166
|
}), m;
|
|
5121
5167
|
}
|
|
5122
5168
|
const Ga = /* @__PURE__ */ xe({
|
|
5123
5169
|
__name: "FullWrapper",
|
|
5124
5170
|
setup(e) {
|
|
5125
|
-
const A =
|
|
5171
|
+
const A = Ar(), m = he(null), c = ja(m), r = jt(() => {
|
|
5126
5172
|
var h;
|
|
5127
5173
|
const y = A.isAtMost("sm") ? 56 : 0;
|
|
5128
5174
|
return {
|
|
5129
5175
|
height: `calc(100dvh - ${((h = c.value) == null ? void 0 : h.top) + 24 + y}px)`
|
|
5130
5176
|
};
|
|
5131
5177
|
});
|
|
5132
|
-
return (u, y) => (Ve(),
|
|
5178
|
+
return (u, y) => (Ve(), Tt("div", {
|
|
5133
5179
|
ref_key: "wrapper",
|
|
5134
5180
|
ref: m,
|
|
5135
|
-
style:
|
|
5181
|
+
style: or(r.value)
|
|
5136
5182
|
}, [
|
|
5137
|
-
|
|
5183
|
+
St(u.$slots, "default")
|
|
5138
5184
|
], 4));
|
|
5139
5185
|
}
|
|
5140
5186
|
}), Ya = { class: "flex justify-center items-center h-full w-full" }, Ea = /* @__PURE__ */ xe({
|
|
@@ -5143,20 +5189,20 @@ const Ga = /* @__PURE__ */ xe({
|
|
|
5143
5189
|
return (A, m) => {
|
|
5144
5190
|
const c = Gt("FmCircularProgress");
|
|
5145
5191
|
return Ve(), ke(Ga, null, {
|
|
5146
|
-
default:
|
|
5147
|
-
|
|
5148
|
-
|
|
5192
|
+
default: ir(() => [
|
|
5193
|
+
Me("div", Ya, [
|
|
5194
|
+
lr(c, { size: "xl" })
|
|
5149
5195
|
])
|
|
5150
5196
|
]),
|
|
5151
5197
|
_: 1
|
|
5152
5198
|
});
|
|
5153
5199
|
};
|
|
5154
5200
|
}
|
|
5155
|
-
}), be = (e) =>
|
|
5201
|
+
}), be = (e) => cr({
|
|
5156
5202
|
loader: e,
|
|
5157
5203
|
loadingComponent: Ea
|
|
5158
5204
|
});
|
|
5159
|
-
var
|
|
5205
|
+
var S = /* @__PURE__ */ ((e) => (e.HOME = "home", e.EMPLOYEE = "employee", e.ROLE = "role", e.TIMESHEET = "timesheet", e.AUDIT_LOG = "audit-log", e.TEAM = "team", e.TEAM_MEMBER = "team-member", e.TEAM_ROLE = "team-role", e.POS_GRANT = "pos-grant", e))(S || {});
|
|
5160
5206
|
const ht = (e) => ({
|
|
5161
5207
|
validationManifest: {
|
|
5162
5208
|
requiredCaslPermissions: [
|
|
@@ -5166,10 +5212,10 @@ const ht = (e) => ({
|
|
|
5166
5212
|
}
|
|
5167
5213
|
]
|
|
5168
5214
|
}
|
|
5169
|
-
}), xa = Ke(be(() => import("./Main-
|
|
5170
|
-
be(() => import("./AuditLogList-
|
|
5171
|
-
), Fa = Ke(be(() => import("./Main-
|
|
5172
|
-
() => import("./PermissionSetList-
|
|
5215
|
+
}), xa = Ke(be(() => import("./Main-CnLbqtUE.js"))), Va = Ke(be(() => import("./Main-zga1U6eC.js"))), Pa = Ke(
|
|
5216
|
+
be(() => import("./AuditLogList-NOjQWc0n.js"))
|
|
5217
|
+
), Fa = Ke(be(() => import("./Main-DaG5Gqo3.js"))), Oa = be(() => import("./EmployeeList-CLAEc_Dl.js")), qa = be(() => import("./RoleList-Dz7Vwovj.js")), Ha = be(() => import("./TimesheetList-nAeY6i18.js")), Xa = be(() => import("./TeamMemberList-DYGEd5pe.js")), Qa = be(
|
|
5218
|
+
() => import("./PermissionSetList-4T-K3P1Y.js")
|
|
5173
5219
|
), eo = [
|
|
5174
5220
|
{
|
|
5175
5221
|
path: "/",
|
|
@@ -5235,67 +5281,67 @@ const ht = (e) => ({
|
|
|
5235
5281
|
__name: "Navigator",
|
|
5236
5282
|
emits: ["close-navigation"],
|
|
5237
5283
|
setup(e, { emit: A }) {
|
|
5238
|
-
const m = A, { t: c } = Kt(),
|
|
5284
|
+
const m = A, { t: c } = Kt(), r = mr(), { sessionUser: u } = Yt(), y = jt(() => {
|
|
5239
5285
|
var Y;
|
|
5240
5286
|
const E = [];
|
|
5241
5287
|
return E.push({
|
|
5242
5288
|
label: c("hr.employee.title"),
|
|
5243
5289
|
value: "employee",
|
|
5244
5290
|
action: () => {
|
|
5245
|
-
|
|
5246
|
-
name:
|
|
5247
|
-
query:
|
|
5291
|
+
r.push({
|
|
5292
|
+
name: S.EMPLOYEE,
|
|
5293
|
+
query: r.currentRoute.value.query
|
|
5248
5294
|
}), m("close-navigation");
|
|
5249
5295
|
}
|
|
5250
5296
|
}), E.push({
|
|
5251
5297
|
label: c("team.title"),
|
|
5252
5298
|
value: "team-member",
|
|
5253
5299
|
action: () => {
|
|
5254
|
-
|
|
5255
|
-
name:
|
|
5256
|
-
query:
|
|
5300
|
+
r.push({
|
|
5301
|
+
name: S.TEAM,
|
|
5302
|
+
query: r.currentRoute.value.query
|
|
5257
5303
|
}), m("close-navigation");
|
|
5258
5304
|
}
|
|
5259
5305
|
}), E.push({
|
|
5260
5306
|
label: c("auditLog.title"),
|
|
5261
5307
|
value: "audit-log",
|
|
5262
5308
|
action: () => {
|
|
5263
|
-
|
|
5264
|
-
name:
|
|
5309
|
+
r.push({
|
|
5310
|
+
name: S.AUDIT_LOG
|
|
5265
5311
|
}), m("close-navigation");
|
|
5266
5312
|
}
|
|
5267
5313
|
}), (Y = u.value) != null && Y.role.isAdmin && E.push({
|
|
5268
5314
|
label: c("grantUser.title"),
|
|
5269
5315
|
value: "pos-grant",
|
|
5270
5316
|
action: () => {
|
|
5271
|
-
|
|
5272
|
-
name:
|
|
5273
|
-
query:
|
|
5317
|
+
r.push({
|
|
5318
|
+
name: S.POS_GRANT,
|
|
5319
|
+
query: r.currentRoute.value.query
|
|
5274
5320
|
}), m("close-navigation");
|
|
5275
5321
|
}
|
|
5276
5322
|
}), E;
|
|
5277
|
-
}), h =
|
|
5323
|
+
}), h = he();
|
|
5278
5324
|
return Wt(() => {
|
|
5279
5325
|
var Y;
|
|
5280
|
-
let E = (Y =
|
|
5326
|
+
let E = (Y = r.currentRoute.value) == null ? void 0 : Y.name;
|
|
5281
5327
|
switch (E) {
|
|
5282
|
-
case
|
|
5283
|
-
case
|
|
5284
|
-
case
|
|
5285
|
-
E =
|
|
5328
|
+
case S.EMPLOYEE:
|
|
5329
|
+
case S.ROLE:
|
|
5330
|
+
case S.TIMESHEET:
|
|
5331
|
+
E = S.EMPLOYEE;
|
|
5286
5332
|
break;
|
|
5287
|
-
case
|
|
5288
|
-
case
|
|
5289
|
-
E =
|
|
5333
|
+
case S.TEAM_MEMBER:
|
|
5334
|
+
case S.TEAM_ROLE:
|
|
5335
|
+
E = S.TEAM_MEMBER;
|
|
5290
5336
|
break;
|
|
5291
|
-
case
|
|
5292
|
-
E =
|
|
5337
|
+
case S.AUDIT_LOG:
|
|
5338
|
+
E = S.AUDIT_LOG;
|
|
5293
5339
|
break;
|
|
5294
|
-
case
|
|
5340
|
+
case S.POS_GRANT:
|
|
5295
5341
|
E = "pos-grant";
|
|
5296
5342
|
break;
|
|
5297
5343
|
default:
|
|
5298
|
-
E =
|
|
5344
|
+
E = S.EMPLOYEE;
|
|
5299
5345
|
}
|
|
5300
5346
|
h.value !== E && (h.value = E);
|
|
5301
5347
|
}), (E, Y) => {
|
|
@@ -5320,31 +5366,31 @@ var Dt = { exports: {} };
|
|
|
5320
5366
|
} catch {
|
|
5321
5367
|
return null;
|
|
5322
5368
|
}
|
|
5323
|
-
}, getItem: function(d,
|
|
5369
|
+
}, getItem: function(d, n) {
|
|
5324
5370
|
var s = this;
|
|
5325
5371
|
return new Promise(function(l, a) {
|
|
5326
5372
|
try {
|
|
5327
5373
|
var p = s.getItemSync(d);
|
|
5328
|
-
|
|
5374
|
+
n == null || n(null, p), l(p);
|
|
5329
5375
|
} catch (v) {
|
|
5330
|
-
|
|
5376
|
+
n && n(v, null), a(v);
|
|
5331
5377
|
}
|
|
5332
5378
|
});
|
|
5333
|
-
}, setItem: function(d,
|
|
5379
|
+
}, setItem: function(d, n, s) {
|
|
5334
5380
|
return new Promise(function(l, a) {
|
|
5335
5381
|
try {
|
|
5336
|
-
localStorage.setItem(d,
|
|
5382
|
+
localStorage.setItem(d, n), s && s(null, n), l(n);
|
|
5337
5383
|
} catch (p) {
|
|
5338
5384
|
s && s(p, null), a(p);
|
|
5339
5385
|
}
|
|
5340
5386
|
});
|
|
5341
|
-
} },
|
|
5342
|
-
return
|
|
5343
|
-
for (var
|
|
5387
|
+
} }, r = function() {
|
|
5388
|
+
return r = Object.assign || function(d) {
|
|
5389
|
+
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]);
|
|
5344
5390
|
return d;
|
|
5345
|
-
},
|
|
5391
|
+
}, r.apply(this, arguments);
|
|
5346
5392
|
};
|
|
5347
|
-
function u(d,
|
|
5393
|
+
function u(d, n, s, l) {
|
|
5348
5394
|
return new (s || (s = Promise))(function(a, p) {
|
|
5349
5395
|
function v(O) {
|
|
5350
5396
|
try {
|
|
@@ -5369,7 +5415,7 @@ var Dt = { exports: {} };
|
|
|
5369
5415
|
x((l = l.apply(d, [])).next());
|
|
5370
5416
|
});
|
|
5371
5417
|
}
|
|
5372
|
-
function y(d,
|
|
5418
|
+
function y(d, n) {
|
|
5373
5419
|
var s, l, a, p, v = { label: 0, sent: function() {
|
|
5374
5420
|
if (1 & a[0]) throw a[1];
|
|
5375
5421
|
return a[1];
|
|
@@ -5416,7 +5462,7 @@ var Dt = { exports: {} };
|
|
|
5416
5462
|
a[2] && v.ops.pop(), v.trys.pop();
|
|
5417
5463
|
continue;
|
|
5418
5464
|
}
|
|
5419
|
-
M =
|
|
5465
|
+
M = n.call(d, v);
|
|
5420
5466
|
} catch (X) {
|
|
5421
5467
|
M = [6, X], l = 0;
|
|
5422
5468
|
} finally {
|
|
@@ -5428,88 +5474,88 @@ var Dt = { exports: {} };
|
|
|
5428
5474
|
};
|
|
5429
5475
|
}
|
|
5430
5476
|
}
|
|
5431
|
-
function h(d,
|
|
5432
|
-
for (var l, a = 0, p =
|
|
5433
|
-
return d.concat(l || Array.prototype.slice.call(
|
|
5477
|
+
function h(d, n, s) {
|
|
5478
|
+
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]);
|
|
5479
|
+
return d.concat(l || Array.prototype.slice.call(n));
|
|
5434
5480
|
}
|
|
5435
|
-
var E = function d(
|
|
5436
|
-
if (
|
|
5437
|
-
if (
|
|
5438
|
-
if (
|
|
5481
|
+
var E = function d(n, s) {
|
|
5482
|
+
if (n === s) return !0;
|
|
5483
|
+
if (n && s && typeof n == "object" && typeof s == "object") {
|
|
5484
|
+
if (n.constructor !== s.constructor) return !1;
|
|
5439
5485
|
var l, a, p;
|
|
5440
|
-
if (Array.isArray(
|
|
5441
|
-
if ((l =
|
|
5442
|
-
for (a = l; a-- != 0; ) if (!d(
|
|
5486
|
+
if (Array.isArray(n)) {
|
|
5487
|
+
if ((l = n.length) != s.length) return !1;
|
|
5488
|
+
for (a = l; a-- != 0; ) if (!d(n[a], s[a])) return !1;
|
|
5443
5489
|
return !0;
|
|
5444
5490
|
}
|
|
5445
|
-
if (
|
|
5446
|
-
if (
|
|
5447
|
-
if (
|
|
5448
|
-
if ((l = (p = Object.keys(
|
|
5491
|
+
if (n.constructor === RegExp) return n.source === s.source && n.flags === s.flags;
|
|
5492
|
+
if (n.valueOf !== Object.prototype.valueOf) return n.valueOf() === s.valueOf();
|
|
5493
|
+
if (n.toString !== Object.prototype.toString) return n.toString() === s.toString();
|
|
5494
|
+
if ((l = (p = Object.keys(n)).length) !== Object.keys(s).length) return !1;
|
|
5449
5495
|
for (a = l; a-- != 0; ) if (!Object.prototype.hasOwnProperty.call(s, p[a])) return !1;
|
|
5450
5496
|
for (a = l; a-- != 0; ) {
|
|
5451
5497
|
var v = p[a];
|
|
5452
|
-
if (!d(
|
|
5498
|
+
if (!d(n[v], s[v])) return !1;
|
|
5453
5499
|
}
|
|
5454
5500
|
return !0;
|
|
5455
5501
|
}
|
|
5456
|
-
return
|
|
5502
|
+
return n != n && s != s;
|
|
5457
5503
|
};
|
|
5458
|
-
function Y(d,
|
|
5459
|
-
var s = Object.keys(
|
|
5460
|
-
var a = d == null ? void 0 : d[l], p =
|
|
5504
|
+
function Y(d, n) {
|
|
5505
|
+
var s = Object.keys(n || {}).filter(function(l) {
|
|
5506
|
+
var a = d == null ? void 0 : d[l], p = n == null ? void 0 : n[l];
|
|
5461
5507
|
return !E(a, p);
|
|
5462
5508
|
});
|
|
5463
5509
|
return Object.keys(d || {}).filter(function(l) {
|
|
5464
|
-
Object.keys(
|
|
5510
|
+
Object.keys(n || {}).includes(l) || s.push(l);
|
|
5465
5511
|
}), Object.keys(s).length ? s : null;
|
|
5466
5512
|
}
|
|
5467
5513
|
var w, P;
|
|
5468
|
-
function I(d,
|
|
5514
|
+
function I(d, n, s) {
|
|
5469
5515
|
var l = "shortString", a = !0;
|
|
5470
|
-
typeof s == "number" && (l = "javaDouble", a = !1), d[l] = d[l] || {}, d[l][
|
|
5516
|
+
typeof s == "number" && (l = "javaDouble", a = !1), d[l] = d[l] || {}, d[l][n] = a ? s + "" : s;
|
|
5471
5517
|
}
|
|
5472
5518
|
function H(d) {
|
|
5473
5519
|
return !!d && typeof d == "object" && d.value !== void 0;
|
|
5474
5520
|
}
|
|
5475
5521
|
function z(d) {
|
|
5476
|
-
return Object.fromEntries(Object.entries(d).map(function(
|
|
5477
|
-
var s =
|
|
5522
|
+
return Object.fromEntries(Object.entries(d).map(function(n) {
|
|
5523
|
+
var s = n[0], l = n[1];
|
|
5478
5524
|
return [s, H(l) ? l : { value: l }];
|
|
5479
5525
|
}));
|
|
5480
5526
|
}
|
|
5481
|
-
function
|
|
5482
|
-
return
|
|
5527
|
+
function T(d) {
|
|
5528
|
+
return r(r({}, d), { identity: d.identity ? r(r({}, d.identity), { traits: z(d.identity.traits || {}) }) : void 0 });
|
|
5483
5529
|
}
|
|
5484
5530
|
(function(d) {
|
|
5485
5531
|
d.NONE = "NONE", d.DEFAULT_FLAGS = "DEFAULT_FLAGS", d.CACHE = "CACHE", d.SERVER = "SERVER";
|
|
5486
5532
|
})(w || (w = {}));
|
|
5487
|
-
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le,
|
|
5488
|
-
function d(
|
|
5533
|
+
var te, k = null, Le = "FLAGSMITH_EVENT", ie = Le, Be = "https://edge.api.flagsmith.com/api/v1/", Pe = "flagsmith_value_", Ne = "flagsmith_enabled_", Fe = "flagsmith_trait_", Oe = function() {
|
|
5534
|
+
function d(n) {
|
|
5489
5535
|
var s = this;
|
|
5490
5536
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
5491
5537
|
var l = s, a = l.api, p = l.evaluationContext;
|
|
5492
|
-
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(
|
|
5538
|
+
s.log("Get Flags"), s.isLoading = !0, s.loadingState.isFetching || s.setLoadingState(r(r({}, s.loadingState), { isFetching: !0 }));
|
|
5493
5539
|
var v = "".concat(s.getContext().identity), j = function(x) {
|
|
5494
5540
|
var O, M, X, L;
|
|
5495
5541
|
if (x && v === "".concat(s.getContext().identity)) {
|
|
5496
5542
|
var Ae = x.flags, se = x.traits, le = x.identifier;
|
|
5497
5543
|
s.isLoading = !1;
|
|
5498
|
-
var
|
|
5544
|
+
var re = {}, ne = {};
|
|
5499
5545
|
se = se || [], (Ae = Ae || []).forEach(function(Q) {
|
|
5500
|
-
|
|
5546
|
+
re[Q.feature.name.toLowerCase().replace(/ /g, "_")] = { id: Q.feature.id, enabled: Q.enabled, value: Q.feature_state_value };
|
|
5501
5547
|
}), se.forEach(function(Q) {
|
|
5502
|
-
|
|
5503
|
-
}), s.oldFlags =
|
|
5504
|
-
var ue = Y(s.oldFlags,
|
|
5505
|
-
if ((le || Object.keys(
|
|
5548
|
+
ne[Q.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: Q.transient, value: Q.trait_value };
|
|
5549
|
+
}), s.oldFlags = r({}, s.flags);
|
|
5550
|
+
var ue = Y(s.oldFlags, re), qe = Y((O = s.evaluationContext.identity) === null || O === void 0 ? void 0 : O.traits, ne);
|
|
5551
|
+
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 {
|
|
5506
5552
|
if (s.datadogRum.trackTraits) {
|
|
5507
5553
|
var He = {};
|
|
5508
5554
|
Object.keys(((M = s.evaluationContext.identity) === null || M === void 0 ? void 0 : M.traits) || {}).map(function(Q) {
|
|
5509
5555
|
He[Fe + Q] = s.getTrait(Q);
|
|
5510
5556
|
});
|
|
5511
|
-
var
|
|
5512
|
-
s.log("Setting Datadog user",
|
|
5557
|
+
var De = 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);
|
|
5558
|
+
s.log("Setting Datadog user", De), s.datadogRum.client.setUser(De);
|
|
5513
5559
|
}
|
|
5514
5560
|
} catch (Q) {
|
|
5515
5561
|
console.error(Q);
|
|
@@ -5532,7 +5578,7 @@ var Dt = { exports: {} };
|
|
|
5532
5578
|
}).filter(function(x) {
|
|
5533
5579
|
return x.trait_value !== void 0 || (s.log("Warning - attempted to set an undefined trait value for key", x.trait_key), !1);
|
|
5534
5580
|
}) })) : s.getJSON(a + "identities/?identifier=" + encodeURIComponent(p.identity.identifier) + (p.identity.transient ? "&transient=true" : ""))]).then(function(x) {
|
|
5535
|
-
return s.evaluationContext.identity =
|
|
5581
|
+
return s.evaluationContext.identity = r(r({}, s.evaluationContext.identity), { traits: {} }), j(x == null ? void 0 : x[0]);
|
|
5536
5582
|
}).catch(function(x) {
|
|
5537
5583
|
var O = x.message, M = new Error(O);
|
|
5538
5584
|
return Promise.reject(M);
|
|
@@ -5544,7 +5590,7 @@ var Dt = { exports: {} };
|
|
|
5544
5590
|
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) {
|
|
5545
5591
|
if (s.evaluationContext.environment) {
|
|
5546
5592
|
var p = s.getState();
|
|
5547
|
-
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(
|
|
5593
|
+
s.evaluationEvent || (s.evaluationEvent = {}), s.evaluationEvent[s.evaluationContext.environment.apiKey] = {}, s.setState(r(r({}, p), { evaluationEvent: s.evaluationEvent })), s.updateEventStorage();
|
|
5548
5594
|
}
|
|
5549
5595
|
}).catch(function(a) {
|
|
5550
5596
|
s.log("Exception fetching evaluationEvent", a);
|
|
@@ -5568,18 +5614,18 @@ var Dt = { exports: {} };
|
|
|
5568
5614
|
return [p, v == null ? void 0 : v.value];
|
|
5569
5615
|
}));
|
|
5570
5616
|
}, this.setContext = function(l) {
|
|
5571
|
-
var a =
|
|
5572
|
-
return s.evaluationContext =
|
|
5617
|
+
var a = T(l);
|
|
5618
|
+
return s.evaluationContext = r(r({}, a), { environment: a.environment || s.evaluationContext.environment }), s.initialised ? s.getFlags() : Promise.resolve();
|
|
5573
5619
|
}, this.getContext = function() {
|
|
5574
5620
|
return s.evaluationContext;
|
|
5575
5621
|
}, this.updateContext = function(l) {
|
|
5576
|
-
return s.setContext(
|
|
5622
|
+
return s.setContext(r(r({}, s.getContext()), l));
|
|
5577
5623
|
}, this.setTrait = function(l, a) {
|
|
5578
5624
|
var p;
|
|
5579
|
-
if (s.api) return s.setContext(
|
|
5625
|
+
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]]))) }) }));
|
|
5580
5626
|
}, this.setTraits = function(l) {
|
|
5581
5627
|
var a;
|
|
5582
|
-
if (s.api) return s.setContext(
|
|
5628
|
+
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) {
|
|
5583
5629
|
var v = p[0], j = p[1];
|
|
5584
5630
|
return [v, H(j) ? j : { value: j }];
|
|
5585
5631
|
}))) }) }));
|
|
@@ -5601,16 +5647,16 @@ var Dt = { exports: {} };
|
|
|
5601
5647
|
if (M === se) {
|
|
5602
5648
|
var le = (Ae = X.headers) === null || Ae === void 0 ? void 0 : Ae.get("x-flagsmith-document-updated-at");
|
|
5603
5649
|
if (le) try {
|
|
5604
|
-
var
|
|
5605
|
-
if (isNaN(
|
|
5606
|
-
s.timestamp =
|
|
5607
|
-
} catch (
|
|
5608
|
-
s.log(
|
|
5650
|
+
var re = parseFloat(le);
|
|
5651
|
+
if (isNaN(re)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
5652
|
+
s.timestamp = re;
|
|
5653
|
+
} catch (ne) {
|
|
5654
|
+
s.log(ne, "Failed to parse x-flagsmith-document-updated-at", le);
|
|
5609
5655
|
}
|
|
5610
|
-
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 + l), X.text().then(function(
|
|
5611
|
-
var ue =
|
|
5656
|
+
return s.log("Fetch response: " + X.status + " " + (a || "GET") + 0 + l), X.text().then(function(ne) {
|
|
5657
|
+
var ue = ne;
|
|
5612
5658
|
try {
|
|
5613
|
-
ue = JSON.parse(
|
|
5659
|
+
ue = JSON.parse(ne);
|
|
5614
5660
|
} catch {
|
|
5615
5661
|
}
|
|
5616
5662
|
return !ue && X.status && (ue = "API Response: ".concat(X.status)), X.status && X.status >= 200 && X.status < 300 ? ue : Promise.reject(new Error(ue));
|
|
@@ -5627,37 +5673,37 @@ var Dt = { exports: {} };
|
|
|
5627
5673
|
}, this._onChange = function(l, a, p) {
|
|
5628
5674
|
var v, j;
|
|
5629
5675
|
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);
|
|
5630
|
-
}, P =
|
|
5676
|
+
}, 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);
|
|
5631
5677
|
}
|
|
5632
|
-
return d.prototype.init = function(
|
|
5678
|
+
return d.prototype.init = function(n) {
|
|
5633
5679
|
var s, l, a;
|
|
5634
5680
|
return u(this, void 0, void 0, function() {
|
|
5635
|
-
var p, v, j, x, O, M, X, L, Ae, se, le,
|
|
5681
|
+
var p, v, j, x, O, M, X, L, Ae, se, le, re, ne, ue, qe, He, De, J, Q, Je, Xe, Vt, je, _e, Pt, Ft, $e, Ot, et, Qe, Ge, qt, _ = this;
|
|
5636
5682
|
return y(this, function(ce) {
|
|
5637
5683
|
switch (ce.label) {
|
|
5638
5684
|
case 0:
|
|
5639
|
-
p =
|
|
5685
|
+
p = T(n.evaluationContext || this.evaluationContext), ce.label = 1;
|
|
5640
5686
|
case 1:
|
|
5641
|
-
if (ce.trys.push([1, 13, , 14]), v =
|
|
5687
|
+
if (ce.trys.push([1, 13, , 14]), v = n.environmentID, j = n.api, x = j === void 0 ? Be : 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, De = n.eventSourceUrl, J = De === void 0 ? "https://realtime.flagsmith.com/" : De, Q = n.AsyncStorage, Je = n.identity, Xe = n.traits, Vt = n.state, je = 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`");
|
|
5642
5688
|
if (p.identity = Je || Xe ? { identifier: Je, traits: Xe ? Object.fromEntries(Object.entries(Xe).map(function(ae) {
|
|
5643
5689
|
return [ae[0], { value: ae[1] }];
|
|
5644
5690
|
})) : {} } : 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) {
|
|
5645
|
-
_.setLoadingState(
|
|
5646
|
-
}, this.enableLogs =
|
|
5691
|
+
_.setLoadingState(r(r({}, _.loadingState), { isFetching: !1, isLoading: !1, error: ae })), Ae == null || Ae(ae);
|
|
5692
|
+
}, this.enableLogs = ne || !1, this.cacheOptions = je ? { skipAPI: !!je.skipAPI, ttl: je.ttl || 0, storageKey: je.storageKey, loadStale: !!je.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) {
|
|
5647
5693
|
return function(me, ge) {
|
|
5648
|
-
var fe = ge.headers, N = ge.method,
|
|
5649
|
-
return new Promise(function(
|
|
5694
|
+
var fe = ge.headers, N = ge.method, Ye = ge.body;
|
|
5695
|
+
return new Promise(function(we) {
|
|
5650
5696
|
switch (N) {
|
|
5651
5697
|
case "GET":
|
|
5652
5698
|
return ae.get(me, { headers: fe }).subscribe(function(pe) {
|
|
5653
|
-
|
|
5699
|
+
we({ ok: !0, text: function() {
|
|
5654
5700
|
return Promise.resolve(pe);
|
|
5655
5701
|
} });
|
|
5656
5702
|
});
|
|
5657
5703
|
case "POST":
|
|
5658
5704
|
case "PUT":
|
|
5659
|
-
return ae.post(me,
|
|
5660
|
-
|
|
5705
|
+
return ae.post(me, Ye, { headers: fe }).subscribe(function(pe) {
|
|
5706
|
+
we({ ok: !0, text: function() {
|
|
5661
5707
|
return Promise.resolve(pe);
|
|
5662
5708
|
} });
|
|
5663
5709
|
});
|
|
@@ -5676,26 +5722,26 @@ var Dt = { exports: {} };
|
|
|
5676
5722
|
var ge = JSON.parse(me);
|
|
5677
5723
|
if (ge[_.evaluationContext.environment.apiKey]) {
|
|
5678
5724
|
var fe = _.getState();
|
|
5679
|
-
_.log("Retrieved events from cache", me), _.setState(
|
|
5725
|
+
_.log("Retrieved events from cache", me), _.setState(r(r({}, fe), { evaluationEvent: ge[_.evaluationContext.environment.apiKey] }));
|
|
5680
5726
|
}
|
|
5681
5727
|
}
|
|
5682
5728
|
})), !X) return [3, 9];
|
|
5683
5729
|
if (!k || !this.canUseStorage) return [3, 8];
|
|
5684
5730
|
Ot = function(ae, me) {
|
|
5685
5731
|
return u(_, void 0, void 0, function() {
|
|
5686
|
-
var ge, fe, N,
|
|
5732
|
+
var ge, fe, N, Ye, we, pe, tt, Ht, st, rt, nt, at, ot, it, lt, ct, At, ut, mt, gt, dt, pt, bt, ft, Xt = this;
|
|
5687
5733
|
return y(this, function(ye) {
|
|
5688
5734
|
switch (ye.label) {
|
|
5689
5735
|
case 0:
|
|
5690
5736
|
if (!me) return [3, 7];
|
|
5691
5737
|
ge = null, fe = null, ye.label = 1;
|
|
5692
5738
|
case 1:
|
|
5693
|
-
return ye.trys.push([1, 5, , 6]), N = JSON.parse(me),
|
|
5739
|
+
return ye.trys.push([1, 5, , 6]), N = JSON.parse(me), Ye = !1, we = !1, N && N.api === this.api && ((rt = (st = N.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 = N.evaluationContext) === null || at === void 0 ? void 0 : at.identity) === null || ot === void 0 ? void 0 : ot.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((lt = (it = N.evaluationContext) === null || it === void 0 ? void 0 : it.identity) === null || lt === void 0 ? void 0 : lt.identifier) + " to " + this.evaluationContext.identity.identifier), pe = !1), this.cacheOptions.ttl && (!N.ts || (/* @__PURE__ */ new Date()).valueOf() - N.ts > this.cacheOptions.ttl) && (N.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + N.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - N.ts) + "ms"), pe = !1) : N.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + N.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - N.ts) + "ms"), we = !0, pe = !0)), pe && (Ye = !0, fe = Y((ct = this.evaluationContext.identity) === null || ct === void 0 ? void 0 : ct.traits, (ut = (At = N.evaluationContext) === null || At === void 0 ? void 0 : At.identity) === null || ut === void 0 ? void 0 : ut.traits), ge = Y(this.flags, N.flags), this.setState(r(r({}, N), { evaluationContext: T(r(r({}, N.evaluationContext), { identity: !((mt = N.evaluationContext) === null || mt === void 0) && mt.identity ? r(r({}, (gt = N.evaluationContext) === null || gt === void 0 ? void 0 : gt.identity), { traits: r(r({}, ((pt = (dt = N.evaluationContext) === null || dt === void 0 ? void 0 : dt.identity) === null || pt === void 0 ? void 0 : pt.traits) || {}), Xe || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", N))), Ye ? (tt = !re && (!this.cacheOptions.skipAPI || we), this._onChange(null, { isFromServer: !1, flagsChanged: ge, traitsChanged: fe }, this._loadedState(null, w.CACHE, tt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ye && !we && this.log("Skipping API, using cache"), tt && this.getFlags().catch(function(Js) {
|
|
5694
5740
|
var yt;
|
|
5695
|
-
(yt = Xt.onError) === null || yt === void 0 || yt.call(Xt,
|
|
5741
|
+
(yt = Xt.onError) === null || yt === void 0 || yt.call(Xt, Js);
|
|
5696
5742
|
}), [3, 4]) : [3, 2];
|
|
5697
5743
|
case 2:
|
|
5698
|
-
return
|
|
5744
|
+
return re ? [3, 4] : [4, this.getFlags()];
|
|
5699
5745
|
case 3:
|
|
5700
5746
|
ye.sent(), ye.label = 4;
|
|
5701
5747
|
case 4:
|
|
@@ -5705,7 +5751,7 @@ var Dt = { exports: {} };
|
|
|
5705
5751
|
case 6:
|
|
5706
5752
|
return [3, 10];
|
|
5707
5753
|
case 7:
|
|
5708
|
-
return
|
|
5754
|
+
return re ? [3, 9] : [4, this.getFlags()];
|
|
5709
5755
|
case 8:
|
|
5710
5756
|
return ye.sent(), [3, 10];
|
|
5711
5757
|
case 9:
|
|
@@ -5735,7 +5781,7 @@ var Dt = { exports: {} };
|
|
|
5735
5781
|
case 8:
|
|
5736
5782
|
return [3, 12];
|
|
5737
5783
|
case 9:
|
|
5738
|
-
return
|
|
5784
|
+
return re ? [3, 11] : [4, this.getFlags()];
|
|
5739
5785
|
case 10:
|
|
5740
5786
|
return ce.sent(), [3, 12];
|
|
5741
5787
|
case 11:
|
|
@@ -5745,7 +5791,7 @@ var Dt = { exports: {} };
|
|
|
5745
5791
|
case 12:
|
|
5746
5792
|
return [3, 14];
|
|
5747
5793
|
case 13:
|
|
5748
|
-
throw
|
|
5794
|
+
throw Ge = ce.sent(), this.log("Error during initialisation ", Ge), qt = Ge instanceof Error ? Ge : new Error("".concat(Ge)), (a = this.onError) === null || a === void 0 || a.call(this, qt), Ge;
|
|
5749
5795
|
case 14:
|
|
5750
5796
|
return [2];
|
|
5751
5797
|
}
|
|
@@ -5753,44 +5799,44 @@ var Dt = { exports: {} };
|
|
|
5753
5799
|
});
|
|
5754
5800
|
}, d.prototype.getAllFlags = function() {
|
|
5755
5801
|
return this.flags;
|
|
5756
|
-
}, d.prototype.identify = function(
|
|
5757
|
-
return this.evaluationContext.identity = { identifier:
|
|
5802
|
+
}, d.prototype.identify = function(n, s, l) {
|
|
5803
|
+
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) {
|
|
5758
5804
|
var p = a[0], v = a[1];
|
|
5759
5805
|
return [p, H(v) ? v : { value: v }];
|
|
5760
5806
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
5761
5807
|
}, d.prototype.getState = function() {
|
|
5762
5808
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
5763
|
-
}, d.prototype.setState = function(
|
|
5764
|
-
|
|
5809
|
+
}, d.prototype.setState = function(n) {
|
|
5810
|
+
n && (this.initialised = !0, this.api = n.api || this.api || Be, this.flags = n.flags || this.flags, this.evaluationContext = n.evaluationContext || this.evaluationContext, this.evaluationEvent = n.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
|
|
5765
5811
|
}, d.prototype.logout = function() {
|
|
5766
5812
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
5767
|
-
}, d.prototype.startListening = function(
|
|
5768
|
-
|
|
5813
|
+
}, d.prototype.startListening = function(n) {
|
|
5814
|
+
n === void 0 && (n = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, n);
|
|
5769
5815
|
}, d.prototype.stopListening = function() {
|
|
5770
5816
|
this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
|
|
5771
|
-
}, d.prototype._loadedState = function(
|
|
5772
|
-
return
|
|
5817
|
+
}, d.prototype._loadedState = function(n, s, l) {
|
|
5818
|
+
return n === void 0 && (n = null), l === void 0 && (l = !1), { error: n, isFetching: l, isLoading: !1, source: s };
|
|
5773
5819
|
}, d.prototype.log = function() {
|
|
5774
|
-
for (var
|
|
5775
|
-
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"],
|
|
5820
|
+
for (var n = [], s = 0; s < arguments.length; s++) n[s] = arguments[s];
|
|
5821
|
+
this.enableLogs && console.log.apply(this, h(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], n));
|
|
5776
5822
|
}, d.prototype.updateStorage = function() {
|
|
5777
5823
|
if (this.cacheFlags) {
|
|
5778
5824
|
this.ts = (/* @__PURE__ */ new Date()).valueOf();
|
|
5779
|
-
var
|
|
5780
|
-
this.log("Setting storage",
|
|
5825
|
+
var n = JSON.stringify(this.getState());
|
|
5826
|
+
this.log("Setting storage", n), k.setItem(this.getStorageKey(), n);
|
|
5781
5827
|
}
|
|
5782
5828
|
}, d.prototype.updateEventStorage = function() {
|
|
5783
5829
|
if (this.enableAnalytics) {
|
|
5784
|
-
var
|
|
5785
|
-
k.setItem(ie,
|
|
5830
|
+
var n = JSON.stringify(this.getState().evaluationEvent);
|
|
5831
|
+
k.setItem(ie, n).catch(function(s) {
|
|
5786
5832
|
return console.error("Flagsmith: Error setting item in async storage", s);
|
|
5787
5833
|
});
|
|
5788
5834
|
}
|
|
5789
|
-
}, d.prototype.setLoadingState = function(
|
|
5835
|
+
}, d.prototype.setLoadingState = function(n) {
|
|
5790
5836
|
var s;
|
|
5791
|
-
E(
|
|
5792
|
-
}, d.prototype.setupRealtime = function(
|
|
5793
|
-
var l = this, a =
|
|
5837
|
+
E(n, this.loadingState) || (this.loadingState = r({}, n), this.log("Loading state changed", n), (s = this._triggerLoadingState) === null || s === void 0 || s.call(this));
|
|
5838
|
+
}, d.prototype.setupRealtime = function(n, s) {
|
|
5839
|
+
var l = this, a = n + "sse/environments/" + s + "/stream";
|
|
5794
5840
|
te ? this.eventSource || (this.log("Creating event source with url " + a), this.eventSource = new te(a), this.eventSource.addEventListener("environment_updated", function(p) {
|
|
5795
5841
|
var v;
|
|
5796
5842
|
try {
|
|
@@ -5803,34 +5849,34 @@ var Dt = { exports: {} };
|
|
|
5803
5849
|
}, d;
|
|
5804
5850
|
}();
|
|
5805
5851
|
function i(d) {
|
|
5806
|
-
var
|
|
5807
|
-
return new Oe({ fetch:
|
|
5852
|
+
var n = d.fetch, s = d.AsyncStorage, l = d.eventSource;
|
|
5853
|
+
return new Oe({ fetch: n, AsyncStorage: s, eventSource: l });
|
|
5808
5854
|
}
|
|
5809
|
-
var g, f = (g = function(d,
|
|
5855
|
+
var g, f = (g = function(d, n) {
|
|
5810
5856
|
return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, l) {
|
|
5811
5857
|
s.__proto__ = l;
|
|
5812
5858
|
} || function(s, l) {
|
|
5813
5859
|
for (var a in l) Object.prototype.hasOwnProperty.call(l, a) && (s[a] = l[a]);
|
|
5814
|
-
}, g(d,
|
|
5815
|
-
}, function(d,
|
|
5816
|
-
if (typeof
|
|
5860
|
+
}, g(d, n);
|
|
5861
|
+
}, function(d, n) {
|
|
5862
|
+
if (typeof n != "function" && n !== null) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
5817
5863
|
function s() {
|
|
5818
5864
|
this.constructor = d;
|
|
5819
5865
|
}
|
|
5820
|
-
g(d,
|
|
5866
|
+
g(d, n), d.prototype = n === null ? Object.create(n) : (s.prototype = n.prototype, new s());
|
|
5821
5867
|
}), B = function(d) {
|
|
5822
|
-
var
|
|
5868
|
+
var n = typeof Symbol == "function" && Symbol.iterator, s = n && d[n], l = 0;
|
|
5823
5869
|
if (s) return s.call(d);
|
|
5824
5870
|
if (d && typeof d.length == "number") return { next: function() {
|
|
5825
5871
|
return d && l >= d.length && (d = void 0), { value: d && d[l++], done: !d };
|
|
5826
5872
|
} };
|
|
5827
|
-
throw new TypeError(
|
|
5828
|
-
}, C = function(d,
|
|
5873
|
+
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
5874
|
+
}, C = function(d, n) {
|
|
5829
5875
|
var s = typeof Symbol == "function" && d[Symbol.iterator];
|
|
5830
5876
|
if (!s) return d;
|
|
5831
5877
|
var l, a, p = s.call(d), v = [];
|
|
5832
5878
|
try {
|
|
5833
|
-
for (; (
|
|
5879
|
+
for (; (n === void 0 || n-- > 0) && !(l = p.next()).done; ) v.push(l.value);
|
|
5834
5880
|
} catch (j) {
|
|
5835
5881
|
a = { error: j };
|
|
5836
5882
|
} finally {
|
|
@@ -5841,27 +5887,27 @@ var Dt = { exports: {} };
|
|
|
5841
5887
|
}
|
|
5842
5888
|
}
|
|
5843
5889
|
return v;
|
|
5844
|
-
}, D = function(d,
|
|
5845
|
-
if (arguments.length === 2) for (var l, a = 0, p =
|
|
5846
|
-
return d.concat(l || Array.prototype.slice.call(
|
|
5890
|
+
}, D = function(d, n, s) {
|
|
5891
|
+
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]);
|
|
5892
|
+
return d.concat(l || Array.prototype.slice.call(n));
|
|
5847
5893
|
}, V = function(d) {
|
|
5848
|
-
function
|
|
5894
|
+
function n() {
|
|
5849
5895
|
return d.call(this, `EventSource not available.
|
|
5850
5896
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
5851
5897
|
}
|
|
5852
|
-
return f(
|
|
5898
|
+
return f(n, d), n;
|
|
5853
5899
|
}(Error), F = function() {
|
|
5854
|
-
function d(
|
|
5900
|
+
function d(n, s) {
|
|
5855
5901
|
var l = this;
|
|
5856
|
-
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 =
|
|
5902
|
+
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();
|
|
5857
5903
|
this._onevent_wrapped = function(a) {
|
|
5858
5904
|
l._onevent(a);
|
|
5859
5905
|
}, this._start();
|
|
5860
5906
|
}
|
|
5861
|
-
return d.prototype.dispatchEvent = function(
|
|
5907
|
+
return d.prototype.dispatchEvent = function(n) {
|
|
5862
5908
|
throw new Error("Method not implemented.");
|
|
5863
5909
|
}, d.prototype._start = function() {
|
|
5864
|
-
var
|
|
5910
|
+
var n, s, l = this, a = this.url;
|
|
5865
5911
|
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) {
|
|
5866
5912
|
l._onopen(x);
|
|
5867
5913
|
}, this._eventSource.onerror = function(x) {
|
|
@@ -5875,32 +5921,32 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5875
5921
|
this._eventSource.addEventListener(j, this._onevent_wrapped);
|
|
5876
5922
|
}
|
|
5877
5923
|
} catch (x) {
|
|
5878
|
-
|
|
5924
|
+
n = { error: x };
|
|
5879
5925
|
} finally {
|
|
5880
5926
|
try {
|
|
5881
5927
|
v && !v.done && (s = p.return) && s.call(p);
|
|
5882
5928
|
} finally {
|
|
5883
|
-
if (
|
|
5929
|
+
if (n) throw n.error;
|
|
5884
5930
|
}
|
|
5885
5931
|
}
|
|
5886
|
-
}, d.prototype._onopen = function(
|
|
5887
|
-
this.readyState === 0 && (this.readyState = 1, this.onopen(
|
|
5888
|
-
}, d.prototype._onerror = function(
|
|
5932
|
+
}, d.prototype._onopen = function(n) {
|
|
5933
|
+
this.readyState === 0 && (this.readyState = 1, this.onopen(n));
|
|
5934
|
+
}, d.prototype._onerror = function(n) {
|
|
5889
5935
|
var s = this;
|
|
5890
|
-
if (this.readyState === 1 && (this.readyState = 0, this.onerror(
|
|
5936
|
+
if (this.readyState === 1 && (this.readyState = 0, this.onerror(n)), this._eventSource) {
|
|
5891
5937
|
this._eventSource.close(), this._eventSource = null;
|
|
5892
5938
|
var l = Math.round(this.max_retry_time * Math.random());
|
|
5893
5939
|
this._timer = setTimeout(function() {
|
|
5894
5940
|
return s._start();
|
|
5895
5941
|
}, l);
|
|
5896
5942
|
}
|
|
5897
|
-
}, d.prototype._onevent = function(
|
|
5943
|
+
}, d.prototype._onevent = function(n) {
|
|
5898
5944
|
var s, l;
|
|
5899
|
-
|
|
5900
|
-
var a = this._listeners[
|
|
5945
|
+
n && n.lastEventId && (this._lastEventId = n.lastEventId);
|
|
5946
|
+
var a = this._listeners[n.type];
|
|
5901
5947
|
if (a != null) try {
|
|
5902
5948
|
for (var p = B(D([], C(a), !1)), v = p.next(); !v.done; v = p.next())
|
|
5903
|
-
v.value.call(this,
|
|
5949
|
+
v.value.call(this, n);
|
|
5904
5950
|
} catch (j) {
|
|
5905
5951
|
s = { error: j };
|
|
5906
5952
|
} finally {
|
|
@@ -5910,26 +5956,26 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5910
5956
|
if (s) throw s.error;
|
|
5911
5957
|
}
|
|
5912
5958
|
}
|
|
5913
|
-
|
|
5914
|
-
}, d.prototype.onopen = function(
|
|
5915
|
-
}, d.prototype.onerror = function(
|
|
5916
|
-
}, d.prototype.onmessage = function(
|
|
5959
|
+
n.type === "message" && this.onmessage(n);
|
|
5960
|
+
}, d.prototype.onopen = function(n) {
|
|
5961
|
+
}, d.prototype.onerror = function(n) {
|
|
5962
|
+
}, d.prototype.onmessage = function(n) {
|
|
5917
5963
|
}, d.prototype.close = function() {
|
|
5918
5964
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
5919
|
-
}, d.prototype.addEventListener = function(
|
|
5920
|
-
this._listeners[
|
|
5921
|
-
var a = this._listeners[
|
|
5922
|
-
a.includes(s) || (this._listeners[
|
|
5923
|
-
}, d.prototype.removeEventListener = function(
|
|
5924
|
-
var a = this._listeners[
|
|
5925
|
-
this._listeners[
|
|
5965
|
+
}, d.prototype.addEventListener = function(n, s, l) {
|
|
5966
|
+
this._listeners[n] == null && (this._listeners[n] = [], this._eventSource != null && this._eventSource.addEventListener(n, this._onevent_wrapped));
|
|
5967
|
+
var a = this._listeners[n];
|
|
5968
|
+
a.includes(s) || (this._listeners[n] = D(D([], C(a), !1), [s], !1));
|
|
5969
|
+
}, d.prototype.removeEventListener = function(n, s, l) {
|
|
5970
|
+
var a = this._listeners[n];
|
|
5971
|
+
this._listeners[n] = a.filter(function(p) {
|
|
5926
5972
|
return p !== s;
|
|
5927
5973
|
});
|
|
5928
5974
|
}, d;
|
|
5929
5975
|
}();
|
|
5930
5976
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
5931
|
-
var Z = function(d,
|
|
5932
|
-
return
|
|
5977
|
+
var Z = function(d, n) {
|
|
5978
|
+
return n = n || {}, new Promise(function(s, l) {
|
|
5933
5979
|
var a = new XMLHttpRequest(), p = [], v = [], j = {}, x = function() {
|
|
5934
5980
|
return { ok: (a.status / 100 | 0) == 2, statusText: a.statusText, status: a.status, url: a.responseURL, text: function() {
|
|
5935
5981
|
return Promise.resolve(a.responseText);
|
|
@@ -5947,12 +5993,12 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5947
5993
|
return M.toLowerCase() in j;
|
|
5948
5994
|
} } };
|
|
5949
5995
|
};
|
|
5950
|
-
for (var O in a.open(
|
|
5996
|
+
for (var O in a.open(n.method || "get", d, !0), a.onload = function() {
|
|
5951
5997
|
a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(M, X, L) {
|
|
5952
5998
|
p.push(X = X.toLowerCase()), v.push([X, L]), j[X] = j[X] ? j[X] + "," + L : L;
|
|
5953
5999
|
}), s(x());
|
|
5954
|
-
}, a.onerror = l, a.withCredentials =
|
|
5955
|
-
a.send(
|
|
6000
|
+
}, a.onerror = l, a.withCredentials = n.credentials == "include", n.headers) a.setRequestHeader(O, n.headers[O]);
|
|
6001
|
+
a.send(n.body || null);
|
|
5956
6002
|
});
|
|
5957
6003
|
}, W = i({ AsyncStorage: c, fetch: Z, eventSource: F });
|
|
5958
6004
|
typeof window < "u" && (window.flagsmith = W), m.createFlagsmithInstance = function() {
|
|
@@ -5978,7 +6024,7 @@ var Ra = Dt.exports, Na = {
|
|
|
5978
6024
|
if (!this.flagsmithClient)
|
|
5979
6025
|
try {
|
|
5980
6026
|
this.flagsmithClient = Ra.createFlagsmithInstance();
|
|
5981
|
-
const c = m.reduce((
|
|
6027
|
+
const c = m.reduce((r, u) => (r[u.feature.name] = u, r), {});
|
|
5982
6028
|
await this.flagsmithClient.init({
|
|
5983
6029
|
environmentID: A.apiKey,
|
|
5984
6030
|
api: (A == null ? void 0 : A.url) ?? "https://feature-flag-proxy.feedme.farm/api/v1/",
|
|
@@ -6009,14 +6055,14 @@ var Ra = Dt.exports, Na = {
|
|
|
6009
6055
|
this.ensureInitialized();
|
|
6010
6056
|
const A = this.flagsmithClient.getAllFlags();
|
|
6011
6057
|
return Object.entries(A).map(([m, c]) => {
|
|
6012
|
-
var
|
|
6058
|
+
var r;
|
|
6013
6059
|
return {
|
|
6014
6060
|
feature: {
|
|
6015
6061
|
name: m,
|
|
6016
6062
|
id: (c == null ? void 0 : c.id) ?? 0
|
|
6017
6063
|
},
|
|
6018
6064
|
enabled: c.enabled,
|
|
6019
|
-
value: ((
|
|
6065
|
+
value: ((r = c.value) == null ? void 0 : r.toString()) ?? null
|
|
6020
6066
|
};
|
|
6021
6067
|
});
|
|
6022
6068
|
}
|
|
@@ -6026,10 +6072,10 @@ var Ra = Dt.exports, Na = {
|
|
|
6026
6072
|
if (c == null)
|
|
6027
6073
|
return null;
|
|
6028
6074
|
try {
|
|
6029
|
-
const
|
|
6030
|
-
return m ? m(
|
|
6031
|
-
} catch (
|
|
6032
|
-
return console.error("Error transforming flag value:",
|
|
6075
|
+
const r = c.toString();
|
|
6076
|
+
return m ? m(r) : typeof {} == "number" ? isNaN(Number(r)) ? null : Number(r) : typeof {} == "boolean" ? r.toLowerCase() === "true" : r;
|
|
6077
|
+
} catch (r) {
|
|
6078
|
+
return console.error("Error transforming flag value:", r), null;
|
|
6033
6079
|
}
|
|
6034
6080
|
}
|
|
6035
6081
|
getFlag(A) {
|
|
@@ -6046,11 +6092,11 @@ var Ra = Dt.exports, Na = {
|
|
|
6046
6092
|
value: m.toString()
|
|
6047
6093
|
};
|
|
6048
6094
|
}
|
|
6049
|
-
async getUserFlagValue(A, m, c = null,
|
|
6095
|
+
async getUserFlagValue(A, m, c = null, r) {
|
|
6050
6096
|
var y;
|
|
6051
6097
|
const u = this.userContext;
|
|
6052
6098
|
try {
|
|
6053
|
-
return await this.setUser(A), this.getFlagValue(m,
|
|
6099
|
+
return await this.setUser(A), this.getFlagValue(m, r) ?? c;
|
|
6054
6100
|
} catch (h) {
|
|
6055
6101
|
return console.error(`Error getting user flag value for ${m}:`, h), c;
|
|
6056
6102
|
} finally {
|
|
@@ -6064,7 +6110,7 @@ var Ra = Dt.exports, Na = {
|
|
|
6064
6110
|
reset() {
|
|
6065
6111
|
this.flagsmithClient = null, this.userContext = null;
|
|
6066
6112
|
}
|
|
6067
|
-
}, Ze(de, "instance"), de), za = Za.getInstance(), Ie =
|
|
6113
|
+
}, Ze(de, "instance"), de), za = Za.getInstance(), Ie = he(!1), Ue = he([]), Ee = he(null);
|
|
6068
6114
|
function Ua(e = za) {
|
|
6069
6115
|
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), m = async (w, P = []) => {
|
|
6070
6116
|
if (Ie.value) {
|
|
@@ -6072,18 +6118,18 @@ function Ua(e = za) {
|
|
|
6072
6118
|
return;
|
|
6073
6119
|
}
|
|
6074
6120
|
try {
|
|
6075
|
-
await e.init(w, P), Ue.value = await e.getFlags(), Ie.value = !0,
|
|
6121
|
+
await e.init(w, P), Ue.value = await e.getFlags(), Ie.value = !0, Ee.value = null;
|
|
6076
6122
|
} catch (I) {
|
|
6077
|
-
console.error("Failed to initialize feature flags:", I),
|
|
6123
|
+
console.error("Failed to initialize feature flags:", I), Ee.value = I;
|
|
6078
6124
|
}
|
|
6079
6125
|
}, c = async (w) => {
|
|
6080
6126
|
if (A())
|
|
6081
6127
|
try {
|
|
6082
|
-
await e.setUser(w), Ue.value = await e.getFlags(),
|
|
6128
|
+
await e.setUser(w), Ue.value = await e.getFlags(), Ee.value = null;
|
|
6083
6129
|
} catch (P) {
|
|
6084
|
-
console.error("Failed to set user:", P),
|
|
6130
|
+
console.error("Failed to set user:", P), Ee.value = P;
|
|
6085
6131
|
}
|
|
6086
|
-
},
|
|
6132
|
+
}, r = async (w) => c(`${Ut}-${w}`), u = (w, P, I = null) => {
|
|
6087
6133
|
if (!A()) return I;
|
|
6088
6134
|
try {
|
|
6089
6135
|
return e.getFlagValue(w, P) ?? I;
|
|
@@ -6110,16 +6156,16 @@ function Ua(e = za) {
|
|
|
6110
6156
|
} catch (w) {
|
|
6111
6157
|
console.error("Error resetting feature flags:", w);
|
|
6112
6158
|
} finally {
|
|
6113
|
-
Ue.value = [], Ie.value = !1,
|
|
6159
|
+
Ue.value = [], Ie.value = !1, Ee.value = null;
|
|
6114
6160
|
}
|
|
6115
6161
|
};
|
|
6116
6162
|
return {
|
|
6117
6163
|
flags: vt(Ue),
|
|
6118
6164
|
isInitialized: vt(Ie),
|
|
6119
|
-
error: vt(
|
|
6165
|
+
error: vt(Ee),
|
|
6120
6166
|
init: m,
|
|
6121
6167
|
setUser: c,
|
|
6122
|
-
setBusiness:
|
|
6168
|
+
setBusiness: r,
|
|
6123
6169
|
getFlagValue: u,
|
|
6124
6170
|
getFlag: y,
|
|
6125
6171
|
getUserFlagValue: h,
|
|
@@ -6136,28 +6182,28 @@ const to = /* @__PURE__ */ xe({
|
|
|
6136
6182
|
A.registerSidebarComponent(Ia), await m({
|
|
6137
6183
|
apiKey: A.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
6138
6184
|
});
|
|
6139
|
-
}), (c,
|
|
6185
|
+
}), (c, r) => {
|
|
6140
6186
|
const u = Gt("RouterView");
|
|
6141
6187
|
return Ve(), ke(u);
|
|
6142
6188
|
};
|
|
6143
6189
|
}
|
|
6144
6190
|
}), so = () => {
|
|
6145
|
-
const e = [
|
|
6191
|
+
const e = [Ir, xr, Br, kr], A = new Set(e.flatMap((m) => Object.keys(m)));
|
|
6146
6192
|
return Array.from(A).reduce(
|
|
6147
6193
|
(m, c) => {
|
|
6148
|
-
const
|
|
6194
|
+
const r = c;
|
|
6149
6195
|
return m[c] = e.reduce((u, y) => ({
|
|
6150
6196
|
...u,
|
|
6151
|
-
...y[
|
|
6197
|
+
...y[r] || {}
|
|
6152
6198
|
}), {}), m;
|
|
6153
6199
|
},
|
|
6154
6200
|
{}
|
|
6155
6201
|
);
|
|
6156
6202
|
};
|
|
6157
6203
|
export {
|
|
6158
|
-
Ja as C,
|
|
6159
6204
|
_a as G,
|
|
6160
|
-
|
|
6205
|
+
Fn as P,
|
|
6206
|
+
S as R,
|
|
6161
6207
|
Ga as _,
|
|
6162
6208
|
Ea as a,
|
|
6163
6209
|
b,
|
|
@@ -6165,9 +6211,9 @@ export {
|
|
|
6165
6211
|
We as d,
|
|
6166
6212
|
ea as e,
|
|
6167
6213
|
to as f,
|
|
6168
|
-
|
|
6169
|
-
Fr as h,
|
|
6214
|
+
On as g,
|
|
6170
6215
|
so as i,
|
|
6216
|
+
Ja as k,
|
|
6171
6217
|
t as l,
|
|
6172
6218
|
$a as m,
|
|
6173
6219
|
eo as r,
|