@feedmepos/mf-hrm-portal 2.1.0-dev → 2.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AuditLogList-AGlAsWwd.js +1608 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-tiuei7CA.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js} +2 -2
- package/dist/EmployeeList-KvjoGI87.js +884 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-BgOhmojO.js → Main-BLh16xRg.js} +188 -185
- package/dist/Main-D3TSdtSE.js +94 -0
- package/dist/{Main-D2Wf__wM.js → Main-Dn1TfDRj.js} +1987 -1979
- package/dist/PermissionSetList-Ds69m9UU.js +392 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCKVpAwv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js} +1122 -1122
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-D-14ca2J.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js} +1 -1
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +42 -0
- package/dist/{RoleList-tSC8RJHe.js → RoleList-v8McRCnz.js} +231 -221
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js} +54 -20
- package/dist/{TeamMemberList-Bz-kDJ0e.js → TeamMemberList-BYQnNIhT.js} +137 -131
- package/dist/{TimesheetList-BFVhmcRt.js → TimesheetList-C1OWa6kf.js} +140 -134
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CtHuL5tW.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js} +2 -2
- package/dist/{app-DRnSocX8.js → app-CJouCBgi.js} +792 -475
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B8xOAypU.js → dayjs.min-DUugkgDM.js} +1 -1
- package/dist/{employee-UrXqUaik.js → employee-D5rEVmge.js} +3 -3
- package/dist/{iteration-LEYoQKiI.js → iteration-QRRNYlps.js} +1 -1
- package/dist/{lodash-Bq6_eZZ0.js → lodash-BlZhpHhM.js} +1 -1
- package/dist/{rule-CJC6Cq6S.js → rule-Dy7eMChN.js} +116 -110
- package/dist/src/api/audit-log/index.d.ts +23 -0
- package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +7 -1
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/components/table/EmptyDataTemplate/index.vue.d.ts +4 -1
- package/dist/src/components/table/TableEmptyState.vue.d.ts +31 -0
- package/dist/src/stores/permission-set.d.ts +12 -3
- package/dist/src/stores/team.d.ts +4 -1
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +320 -16
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +1 -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-BGsfYWAR.js → useAppStore-CtMoad7V.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-BUM5R2qV.js → useLoading-CNqlchYO.js} +1 -1
- package/dist/{useReportPermissions-nlQ_BBL2.js → useReportPermissions-C5wGC9bf.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-C1bGND8z.js +0 -1037
- package/dist/EmployeeList-DqQF9xEx.js +0 -851
- package/dist/Main-DcKVuIjB.js +0 -90
- package/dist/PermissionSetList-CQpTa0eY.js +0 -384
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Gn = Object.defineProperty;
|
|
2
2
|
var Vn = (e, t, s) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var Dt = (e, t, s) => Vn(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { isRef as Pn, ref as
|
|
5
|
-
import { useBreakpoints as
|
|
4
|
+
import { isRef as Pn, ref as Re, shallowRef as On, watchEffect as cr, computed as Os, h as Ws, defineComponent as ot, createBlock as Ut, renderSlot as lr, createCommentVNode as Fn, unref as Ue, openBlock as ct, createElementBlock as ur, createElementVNode as Se, toDisplayString as Ls, watch as qn, nextTick as In, onMounted as Ar, onBeforeUnmount as Hn, normalizeStyle as Xn, resolveComponent as Fs, withCtx as Qn, createVNode as Rn, defineAsyncComponent as kn, readonly as bs } from "vue";
|
|
5
|
+
import { useBreakpoints as Tn } from "@feedmepos/ui-library";
|
|
6
6
|
import { useRoute as Nn, useRouter as Zn } from "vue-router";
|
|
7
7
|
import { useCoreStore as qs, useI18n as mr } from "@feedmepos/mf-common";
|
|
8
8
|
var i = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(i || {}), m = /* @__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))(m || {}), ee = /* @__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))(ee || {}), dr = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(dr || {});
|
|
@@ -76,7 +76,7 @@ const x = Z.arrayToEnum([
|
|
|
76
76
|
"never",
|
|
77
77
|
"map",
|
|
78
78
|
"set"
|
|
79
|
-
]),
|
|
79
|
+
]), Xe = (e) => {
|
|
80
80
|
switch (typeof e) {
|
|
81
81
|
case "undefined":
|
|
82
82
|
return x.undefined;
|
|
@@ -298,11 +298,11 @@ class ae {
|
|
|
298
298
|
}
|
|
299
299
|
const H = Object.freeze({
|
|
300
300
|
status: "aborted"
|
|
301
|
-
}), Ln = (e) => ({ status: "dirty", value: e }), ie = (e) => ({ status: "valid", value: e }),
|
|
302
|
-
var
|
|
301
|
+
}), Ln = (e) => ({ status: "dirty", value: e }), ie = (e) => ({ status: "valid", value: e }), ws = (e) => e.status === "aborted", Bs = (e) => e.status === "dirty", Ot = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, Is = (e, t) => typeof t == "bigint" ? t.toString() : t;
|
|
302
|
+
var T;
|
|
303
303
|
(function(e) {
|
|
304
304
|
e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
|
|
305
|
-
})(
|
|
305
|
+
})(T || (T = {}));
|
|
306
306
|
class Ee {
|
|
307
307
|
constructor(t, s, r, n) {
|
|
308
308
|
this.parent = t, this.data = s, this._path = r, this._key = n;
|
|
@@ -334,13 +334,13 @@ class Q {
|
|
|
334
334
|
return this._def.description;
|
|
335
335
|
}
|
|
336
336
|
_getType(t) {
|
|
337
|
-
return
|
|
337
|
+
return Xe(t.data);
|
|
338
338
|
}
|
|
339
339
|
_getOrReturnCtx(t, s) {
|
|
340
340
|
return s || {
|
|
341
341
|
common: t.parent.common,
|
|
342
342
|
data: t.data,
|
|
343
|
-
parsedType:
|
|
343
|
+
parsedType: Xe(t.data),
|
|
344
344
|
schemaErrorMap: this._def.errorMap,
|
|
345
345
|
path: t.path,
|
|
346
346
|
parent: t.parent
|
|
@@ -352,7 +352,7 @@ class Q {
|
|
|
352
352
|
ctx: {
|
|
353
353
|
common: t.parent.common,
|
|
354
354
|
data: t.data,
|
|
355
|
-
parsedType:
|
|
355
|
+
parsedType: Xe(t.data),
|
|
356
356
|
schemaErrorMap: this._def.errorMap,
|
|
357
357
|
path: t.path,
|
|
358
358
|
parent: t.parent
|
|
@@ -387,7 +387,7 @@ class Q {
|
|
|
387
387
|
schemaErrorMap: this._def.errorMap,
|
|
388
388
|
parent: null,
|
|
389
389
|
data: t,
|
|
390
|
-
parsedType:
|
|
390
|
+
parsedType: Xe(t)
|
|
391
391
|
}, a = this._parseSync({ data: t, path: n.path, parent: n });
|
|
392
392
|
return Ks(n, a);
|
|
393
393
|
}
|
|
@@ -408,7 +408,7 @@ class Q {
|
|
|
408
408
|
schemaErrorMap: this._def.errorMap,
|
|
409
409
|
parent: null,
|
|
410
410
|
data: t,
|
|
411
|
-
parsedType:
|
|
411
|
+
parsedType: Xe(t)
|
|
412
412
|
}, n = this._parse({ data: t, path: [], parent: r }), a = await (Ms(n) ? n : Promise.resolve(n));
|
|
413
413
|
return Ks(r, a);
|
|
414
414
|
}
|
|
@@ -436,7 +436,7 @@ class Q {
|
|
|
436
436
|
return je.create(this);
|
|
437
437
|
}
|
|
438
438
|
nullable() {
|
|
439
|
-
return
|
|
439
|
+
return Ke.create(this);
|
|
440
440
|
}
|
|
441
441
|
nullish() {
|
|
442
442
|
return this.optional().nullable();
|
|
@@ -448,10 +448,10 @@ class Q {
|
|
|
448
448
|
return it.create(this);
|
|
449
449
|
}
|
|
450
450
|
or(t) {
|
|
451
|
-
return
|
|
451
|
+
return wt.create([this, t]);
|
|
452
452
|
}
|
|
453
453
|
and(t) {
|
|
454
|
-
return
|
|
454
|
+
return Bt.create(this, t);
|
|
455
455
|
}
|
|
456
456
|
transform(t) {
|
|
457
457
|
return new Ve({
|
|
@@ -483,13 +483,13 @@ class Q {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
const Kn = /^c[^\s-]{8,}$/i, Jn = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i, _n = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
|
|
486
|
-
class
|
|
486
|
+
class ke extends Q {
|
|
487
487
|
constructor() {
|
|
488
488
|
super(...arguments), this._regex = (t, s, r) => this.refinement((n) => t.test(n), {
|
|
489
489
|
validation: s,
|
|
490
490
|
code: C.invalid_string,
|
|
491
|
-
...
|
|
492
|
-
}), this.nonempty = (t) => this.min(1,
|
|
491
|
+
...T.errToObj(r)
|
|
492
|
+
}), this.nonempty = (t) => this.min(1, T.errToObj(t)), this.trim = () => new ke({
|
|
493
493
|
...this._def,
|
|
494
494
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
495
495
|
});
|
|
@@ -570,56 +570,56 @@ class Re extends Q {
|
|
|
570
570
|
return { status: r.value, value: t.data };
|
|
571
571
|
}
|
|
572
572
|
_addCheck(t) {
|
|
573
|
-
return new
|
|
573
|
+
return new ke({
|
|
574
574
|
...this._def,
|
|
575
575
|
checks: [...this._def.checks, t]
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
email(t) {
|
|
579
|
-
return this._addCheck({ kind: "email", ...
|
|
579
|
+
return this._addCheck({ kind: "email", ...T.errToObj(t) });
|
|
580
580
|
}
|
|
581
581
|
url(t) {
|
|
582
|
-
return this._addCheck({ kind: "url", ...
|
|
582
|
+
return this._addCheck({ kind: "url", ...T.errToObj(t) });
|
|
583
583
|
}
|
|
584
584
|
uuid(t) {
|
|
585
|
-
return this._addCheck({ kind: "uuid", ...
|
|
585
|
+
return this._addCheck({ kind: "uuid", ...T.errToObj(t) });
|
|
586
586
|
}
|
|
587
587
|
cuid(t) {
|
|
588
|
-
return this._addCheck({ kind: "cuid", ...
|
|
588
|
+
return this._addCheck({ kind: "cuid", ...T.errToObj(t) });
|
|
589
589
|
}
|
|
590
590
|
regex(t, s) {
|
|
591
591
|
return this._addCheck({
|
|
592
592
|
kind: "regex",
|
|
593
593
|
regex: t,
|
|
594
|
-
...
|
|
594
|
+
...T.errToObj(s)
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
597
|
startsWith(t, s) {
|
|
598
598
|
return this._addCheck({
|
|
599
599
|
kind: "startsWith",
|
|
600
600
|
value: t,
|
|
601
|
-
...
|
|
601
|
+
...T.errToObj(s)
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
endsWith(t, s) {
|
|
605
605
|
return this._addCheck({
|
|
606
606
|
kind: "endsWith",
|
|
607
607
|
value: t,
|
|
608
|
-
...
|
|
608
|
+
...T.errToObj(s)
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
min(t, s) {
|
|
612
612
|
return this._addCheck({
|
|
613
613
|
kind: "min",
|
|
614
614
|
value: t,
|
|
615
|
-
...
|
|
615
|
+
...T.errToObj(s)
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
max(t, s) {
|
|
619
619
|
return this._addCheck({
|
|
620
620
|
kind: "max",
|
|
621
621
|
value: t,
|
|
622
|
-
...
|
|
622
|
+
...T.errToObj(s)
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
length(t, s) {
|
|
@@ -650,7 +650,7 @@ class Re extends Q {
|
|
|
650
650
|
return t;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
ke.create = (e) => new ke({
|
|
654
654
|
checks: [],
|
|
655
655
|
typeName: I.ZodString,
|
|
656
656
|
...R(e)
|
|
@@ -659,7 +659,7 @@ function $n(e, t) {
|
|
|
659
659
|
const s = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, n = s > r ? s : r, a = parseInt(e.toFixed(n).replace(".", "")), c = parseInt(t.toFixed(n).replace(".", ""));
|
|
660
660
|
return a % c / Math.pow(10, n);
|
|
661
661
|
}
|
|
662
|
-
class
|
|
662
|
+
class ze extends Q {
|
|
663
663
|
constructor() {
|
|
664
664
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
665
665
|
}
|
|
@@ -700,19 +700,19 @@ class Ue extends Q {
|
|
|
700
700
|
return { status: n.value, value: t.data };
|
|
701
701
|
}
|
|
702
702
|
gte(t, s) {
|
|
703
|
-
return this.setLimit("min", t, !0,
|
|
703
|
+
return this.setLimit("min", t, !0, T.toString(s));
|
|
704
704
|
}
|
|
705
705
|
gt(t, s) {
|
|
706
|
-
return this.setLimit("min", t, !1,
|
|
706
|
+
return this.setLimit("min", t, !1, T.toString(s));
|
|
707
707
|
}
|
|
708
708
|
lte(t, s) {
|
|
709
|
-
return this.setLimit("max", t, !0,
|
|
709
|
+
return this.setLimit("max", t, !0, T.toString(s));
|
|
710
710
|
}
|
|
711
711
|
lt(t, s) {
|
|
712
|
-
return this.setLimit("max", t, !1,
|
|
712
|
+
return this.setLimit("max", t, !1, T.toString(s));
|
|
713
713
|
}
|
|
714
714
|
setLimit(t, s, r, n) {
|
|
715
|
-
return new
|
|
715
|
+
return new ze({
|
|
716
716
|
...this._def,
|
|
717
717
|
checks: [
|
|
718
718
|
...this._def.checks,
|
|
@@ -720,13 +720,13 @@ class Ue extends Q {
|
|
|
720
720
|
kind: t,
|
|
721
721
|
value: s,
|
|
722
722
|
inclusive: r,
|
|
723
|
-
message:
|
|
723
|
+
message: T.toString(n)
|
|
724
724
|
}
|
|
725
725
|
]
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
_addCheck(t) {
|
|
729
|
-
return new
|
|
729
|
+
return new ze({
|
|
730
730
|
...this._def,
|
|
731
731
|
checks: [...this._def.checks, t]
|
|
732
732
|
});
|
|
@@ -734,7 +734,7 @@ class Ue extends Q {
|
|
|
734
734
|
int(t) {
|
|
735
735
|
return this._addCheck({
|
|
736
736
|
kind: "int",
|
|
737
|
-
message:
|
|
737
|
+
message: T.toString(t)
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
740
|
positive(t) {
|
|
@@ -742,7 +742,7 @@ class Ue extends Q {
|
|
|
742
742
|
kind: "min",
|
|
743
743
|
value: 0,
|
|
744
744
|
inclusive: !1,
|
|
745
|
-
message:
|
|
745
|
+
message: T.toString(t)
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
negative(t) {
|
|
@@ -750,7 +750,7 @@ class Ue extends Q {
|
|
|
750
750
|
kind: "max",
|
|
751
751
|
value: 0,
|
|
752
752
|
inclusive: !1,
|
|
753
|
-
message:
|
|
753
|
+
message: T.toString(t)
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
nonpositive(t) {
|
|
@@ -758,7 +758,7 @@ class Ue extends Q {
|
|
|
758
758
|
kind: "max",
|
|
759
759
|
value: 0,
|
|
760
760
|
inclusive: !0,
|
|
761
|
-
message:
|
|
761
|
+
message: T.toString(t)
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
nonnegative(t) {
|
|
@@ -766,14 +766,14 @@ class Ue extends Q {
|
|
|
766
766
|
kind: "min",
|
|
767
767
|
value: 0,
|
|
768
768
|
inclusive: !0,
|
|
769
|
-
message:
|
|
769
|
+
message: T.toString(t)
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
multipleOf(t, s) {
|
|
773
773
|
return this._addCheck({
|
|
774
774
|
kind: "multipleOf",
|
|
775
775
|
value: t,
|
|
776
|
-
message:
|
|
776
|
+
message: T.toString(s)
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
get minValue() {
|
|
@@ -792,7 +792,7 @@ class Ue extends Q {
|
|
|
792
792
|
return !!this._def.checks.find((t) => t.kind === "int");
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
|
|
795
|
+
ze.create = (e) => new ze({
|
|
796
796
|
checks: [],
|
|
797
797
|
typeName: I.ZodNumber,
|
|
798
798
|
...R(e)
|
|
@@ -878,14 +878,14 @@ class nt extends Q {
|
|
|
878
878
|
return this._addCheck({
|
|
879
879
|
kind: "min",
|
|
880
880
|
value: t.getTime(),
|
|
881
|
-
message:
|
|
881
|
+
message: T.toString(s)
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
max(t, s) {
|
|
885
885
|
return this._addCheck({
|
|
886
886
|
kind: "max",
|
|
887
887
|
value: t.getTime(),
|
|
888
|
-
message:
|
|
888
|
+
message: T.toString(s)
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
891
|
get minDate() {
|
|
@@ -952,7 +952,7 @@ at.create = (e) => new at({
|
|
|
952
952
|
typeName: I.ZodAny,
|
|
953
953
|
...R(e)
|
|
954
954
|
});
|
|
955
|
-
class
|
|
955
|
+
class Qe extends Q {
|
|
956
956
|
constructor() {
|
|
957
957
|
super(...arguments), this._unknown = !0;
|
|
958
958
|
}
|
|
@@ -960,7 +960,7 @@ class Xe extends Q {
|
|
|
960
960
|
return ie(t.data);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
|
|
963
|
+
Qe.create = (e) => new Qe({
|
|
964
964
|
typeName: I.ZodUnknown,
|
|
965
965
|
...R(e)
|
|
966
966
|
});
|
|
@@ -1027,13 +1027,13 @@ class Ye extends Q {
|
|
|
1027
1027
|
min(t, s) {
|
|
1028
1028
|
return new Ye({
|
|
1029
1029
|
...this._def,
|
|
1030
|
-
minLength: { value: t, message:
|
|
1030
|
+
minLength: { value: t, message: T.toString(s) }
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
max(t, s) {
|
|
1034
1034
|
return new Ye({
|
|
1035
1035
|
...this._def,
|
|
1036
|
-
maxLength: { value: t, message:
|
|
1036
|
+
maxLength: { value: t, message: T.toString(s) }
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
length(t, s) {
|
|
@@ -1064,18 +1064,18 @@ const Js = (e) => (t) => new J({
|
|
|
1064
1064
|
...t
|
|
1065
1065
|
})
|
|
1066
1066
|
});
|
|
1067
|
-
function
|
|
1067
|
+
function rt(e) {
|
|
1068
1068
|
if (e instanceof J) {
|
|
1069
1069
|
const t = {};
|
|
1070
1070
|
for (const s in e.shape) {
|
|
1071
1071
|
const r = e.shape[s];
|
|
1072
|
-
t[s] = je.create(
|
|
1072
|
+
t[s] = je.create(rt(r));
|
|
1073
1073
|
}
|
|
1074
1074
|
return new J({
|
|
1075
1075
|
...e._def,
|
|
1076
1076
|
shape: () => t
|
|
1077
1077
|
});
|
|
1078
|
-
} else return e instanceof Ye ? Ye.create(
|
|
1078
|
+
} else return e instanceof Ye ? Ye.create(rt(e.element)) : e instanceof je ? je.create(rt(e.unwrap())) : e instanceof Ke ? Ke.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
|
|
1079
1079
|
}
|
|
1080
1080
|
class J extends Q {
|
|
1081
1081
|
constructor() {
|
|
@@ -1101,20 +1101,20 @@ class J extends Q {
|
|
|
1101
1101
|
c.includes(y) || l.push(y);
|
|
1102
1102
|
const h = [];
|
|
1103
1103
|
for (const y of c) {
|
|
1104
|
-
const
|
|
1104
|
+
const w = a[y], O = n.data[y];
|
|
1105
1105
|
h.push({
|
|
1106
1106
|
key: { status: "valid", value: y },
|
|
1107
|
-
value:
|
|
1107
|
+
value: w._parse(new Ee(n, O, n.path, y)),
|
|
1108
1108
|
alwaysSet: y in n.data
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
if (this._def.catchall instanceof Te) {
|
|
1112
1112
|
const y = this._def.unknownKeys;
|
|
1113
1113
|
if (y === "passthrough")
|
|
1114
|
-
for (const
|
|
1114
|
+
for (const w of l)
|
|
1115
1115
|
h.push({
|
|
1116
|
-
key: { status: "valid", value:
|
|
1117
|
-
value: { status: "valid", value: n.data[
|
|
1116
|
+
key: { status: "valid", value: w },
|
|
1117
|
+
value: { status: "valid", value: n.data[w] }
|
|
1118
1118
|
});
|
|
1119
1119
|
else if (y === "strict")
|
|
1120
1120
|
l.length > 0 && (Y(n, {
|
|
@@ -1124,26 +1124,26 @@ class J extends Q {
|
|
|
1124
1124
|
else if (y !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
1125
1125
|
} else {
|
|
1126
1126
|
const y = this._def.catchall;
|
|
1127
|
-
for (const
|
|
1128
|
-
const O = n.data[
|
|
1127
|
+
for (const w of l) {
|
|
1128
|
+
const O = n.data[w];
|
|
1129
1129
|
h.push({
|
|
1130
|
-
key: { status: "valid", value:
|
|
1130
|
+
key: { status: "valid", value: w },
|
|
1131
1131
|
value: y._parse(
|
|
1132
|
-
new Ee(n, O, n.path,
|
|
1132
|
+
new Ee(n, O, n.path, w)
|
|
1133
1133
|
//, ctx.child(key), value, getParsedType(value)
|
|
1134
1134
|
),
|
|
1135
|
-
alwaysSet:
|
|
1135
|
+
alwaysSet: w in n.data
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
return n.common.async ? Promise.resolve().then(async () => {
|
|
1140
1140
|
const y = [];
|
|
1141
|
-
for (const
|
|
1142
|
-
const O = await
|
|
1141
|
+
for (const w of h) {
|
|
1142
|
+
const O = await w.key;
|
|
1143
1143
|
y.push({
|
|
1144
1144
|
key: O,
|
|
1145
|
-
value: await
|
|
1146
|
-
alwaysSet:
|
|
1145
|
+
value: await w.value,
|
|
1146
|
+
alwaysSet: w.alwaysSet
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
return y;
|
|
@@ -1153,7 +1153,7 @@ class J extends Q {
|
|
|
1153
1153
|
return this._def.shape();
|
|
1154
1154
|
}
|
|
1155
1155
|
strict(t) {
|
|
1156
|
-
return
|
|
1156
|
+
return T.errToObj, new J({
|
|
1157
1157
|
...this._def,
|
|
1158
1158
|
unknownKeys: "strict",
|
|
1159
1159
|
...t !== void 0 ? {
|
|
@@ -1161,7 +1161,7 @@ class J extends Q {
|
|
|
1161
1161
|
var n, a, c, l;
|
|
1162
1162
|
const h = (c = (a = (n = this._def).errorMap) === null || a === void 0 ? void 0 : a.call(n, s, r).message) !== null && c !== void 0 ? c : r.defaultError;
|
|
1163
1163
|
return s.code === "unrecognized_keys" ? {
|
|
1164
|
-
message: (l =
|
|
1164
|
+
message: (l = T.errToObj(t).message) !== null && l !== void 0 ? l : h
|
|
1165
1165
|
} : {
|
|
1166
1166
|
message: h
|
|
1167
1167
|
};
|
|
@@ -1222,7 +1222,7 @@ class J extends Q {
|
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
1224
|
deepPartial() {
|
|
1225
|
-
return
|
|
1225
|
+
return rt(this);
|
|
1226
1226
|
}
|
|
1227
1227
|
partial(t) {
|
|
1228
1228
|
const s = {};
|
|
@@ -1280,7 +1280,7 @@ J.lazycreate = (e, t) => new J({
|
|
|
1280
1280
|
typeName: I.ZodObject,
|
|
1281
1281
|
...R(t)
|
|
1282
1282
|
});
|
|
1283
|
-
class
|
|
1283
|
+
class wt extends Q {
|
|
1284
1284
|
_parse(t) {
|
|
1285
1285
|
const { ctx: s } = this._processInputParams(t), r = this._def.options;
|
|
1286
1286
|
function n(a) {
|
|
@@ -1326,14 +1326,14 @@ class Bt extends Q {
|
|
|
1326
1326
|
issues: []
|
|
1327
1327
|
},
|
|
1328
1328
|
parent: null
|
|
1329
|
-
},
|
|
1329
|
+
}, w = h._parseSync({
|
|
1330
1330
|
data: s.data,
|
|
1331
1331
|
path: s.path,
|
|
1332
1332
|
parent: y
|
|
1333
1333
|
});
|
|
1334
|
-
if (
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1334
|
+
if (w.status === "valid")
|
|
1335
|
+
return w;
|
|
1336
|
+
w.status === "dirty" && !a && (a = { result: w, ctx: y }), y.common.issues.length && c.push(y.common.issues);
|
|
1337
1337
|
}
|
|
1338
1338
|
if (a)
|
|
1339
1339
|
return s.common.issues.push(...a.ctx.common.issues), a.result;
|
|
@@ -1348,7 +1348,7 @@ class Bt extends Q {
|
|
|
1348
1348
|
return this._def.options;
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
|
|
1351
|
+
wt.create = (e, t) => new wt({
|
|
1352
1352
|
options: e,
|
|
1353
1353
|
typeName: I.ZodUnion,
|
|
1354
1354
|
...R(t)
|
|
@@ -1415,7 +1415,7 @@ class zt extends Q {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
function Cs(e, t) {
|
|
1418
|
-
const s =
|
|
1418
|
+
const s = Xe(e), r = Xe(t);
|
|
1419
1419
|
if (e === t)
|
|
1420
1420
|
return { valid: !0, data: e };
|
|
1421
1421
|
if (s === x.object && r === x.object) {
|
|
@@ -1440,13 +1440,13 @@ function Cs(e, t) {
|
|
|
1440
1440
|
return { valid: !0, data: n };
|
|
1441
1441
|
} else return s === x.date && r === x.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
1442
1442
|
}
|
|
1443
|
-
class
|
|
1443
|
+
class Bt extends Q {
|
|
1444
1444
|
_parse(t) {
|
|
1445
1445
|
const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
|
|
1446
|
-
if (
|
|
1446
|
+
if (ws(a) || ws(c))
|
|
1447
1447
|
return H;
|
|
1448
1448
|
const l = Cs(a.value, c.value);
|
|
1449
|
-
return l.valid ? ((
|
|
1449
|
+
return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
|
|
1450
1450
|
code: C.invalid_intersection_types
|
|
1451
1451
|
}), H);
|
|
1452
1452
|
};
|
|
@@ -1472,7 +1472,7 @@ class wt extends Q {
|
|
|
1472
1472
|
}));
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
|
-
|
|
1475
|
+
Bt.create = (e, t, s) => new Bt({
|
|
1476
1476
|
left: e,
|
|
1477
1477
|
right: t,
|
|
1478
1478
|
typeName: I.ZodIntersection,
|
|
@@ -1555,7 +1555,7 @@ class Mt extends Q {
|
|
|
1555
1555
|
typeName: I.ZodRecord,
|
|
1556
1556
|
...R(r)
|
|
1557
1557
|
}) : new Mt({
|
|
1558
|
-
keyType:
|
|
1558
|
+
keyType: ke.create(),
|
|
1559
1559
|
valueType: t,
|
|
1560
1560
|
typeName: I.ZodRecord,
|
|
1561
1561
|
...R(s)
|
|
@@ -1579,20 +1579,20 @@ class Rt extends Q {
|
|
|
1579
1579
|
const l = /* @__PURE__ */ new Map();
|
|
1580
1580
|
return Promise.resolve().then(async () => {
|
|
1581
1581
|
for (const h of c) {
|
|
1582
|
-
const y = await h.key,
|
|
1583
|
-
if (y.status === "aborted" ||
|
|
1582
|
+
const y = await h.key, w = await h.value;
|
|
1583
|
+
if (y.status === "aborted" || w.status === "aborted")
|
|
1584
1584
|
return H;
|
|
1585
|
-
(y.status === "dirty" ||
|
|
1585
|
+
(y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.value);
|
|
1586
1586
|
}
|
|
1587
1587
|
return { status: s.value, value: l };
|
|
1588
1588
|
});
|
|
1589
1589
|
} else {
|
|
1590
1590
|
const l = /* @__PURE__ */ new Map();
|
|
1591
1591
|
for (const h of c) {
|
|
1592
|
-
const y = h.key,
|
|
1593
|
-
if (y.status === "aborted" ||
|
|
1592
|
+
const y = h.key, w = h.value;
|
|
1593
|
+
if (y.status === "aborted" || w.status === "aborted")
|
|
1594
1594
|
return H;
|
|
1595
|
-
(y.status === "dirty" ||
|
|
1595
|
+
(y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.value);
|
|
1596
1596
|
}
|
|
1597
1597
|
return { status: s.value, value: l };
|
|
1598
1598
|
}
|
|
@@ -1604,7 +1604,7 @@ Rt.create = (e, t, s) => new Rt({
|
|
|
1604
1604
|
typeName: I.ZodMap,
|
|
1605
1605
|
...R(s)
|
|
1606
1606
|
});
|
|
1607
|
-
class
|
|
1607
|
+
class We extends Q {
|
|
1608
1608
|
_parse(t) {
|
|
1609
1609
|
const { status: s, ctx: r } = this._processInputParams(t);
|
|
1610
1610
|
if (r.parsedType !== x.set)
|
|
@@ -1630,10 +1630,10 @@ class ze extends Q {
|
|
|
1630
1630
|
const a = this._def.valueType;
|
|
1631
1631
|
function c(h) {
|
|
1632
1632
|
const y = /* @__PURE__ */ new Set();
|
|
1633
|
-
for (const
|
|
1634
|
-
if (
|
|
1633
|
+
for (const w of h) {
|
|
1634
|
+
if (w.status === "aborted")
|
|
1635
1635
|
return H;
|
|
1636
|
-
|
|
1636
|
+
w.status === "dirty" && s.dirty(), y.add(w.value);
|
|
1637
1637
|
}
|
|
1638
1638
|
return { status: s.value, value: y };
|
|
1639
1639
|
}
|
|
@@ -1641,15 +1641,15 @@ class ze extends Q {
|
|
|
1641
1641
|
return r.common.async ? Promise.all(l).then((h) => c(h)) : c(l);
|
|
1642
1642
|
}
|
|
1643
1643
|
min(t, s) {
|
|
1644
|
-
return new
|
|
1644
|
+
return new We({
|
|
1645
1645
|
...this._def,
|
|
1646
|
-
minSize: { value: t, message:
|
|
1646
|
+
minSize: { value: t, message: T.toString(s) }
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
max(t, s) {
|
|
1650
|
-
return new
|
|
1650
|
+
return new We({
|
|
1651
1651
|
...this._def,
|
|
1652
|
-
maxSize: { value: t, message:
|
|
1652
|
+
maxSize: { value: t, message: T.toString(s) }
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
1655
|
size(t, s) {
|
|
@@ -1659,14 +1659,14 @@ class ze extends Q {
|
|
|
1659
1659
|
return this.min(1, t);
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
|
|
1662
|
+
We.create = (e, t) => new We({
|
|
1663
1663
|
valueType: e,
|
|
1664
1664
|
minSize: null,
|
|
1665
1665
|
maxSize: null,
|
|
1666
1666
|
typeName: I.ZodSet,
|
|
1667
1667
|
...R(t)
|
|
1668
1668
|
});
|
|
1669
|
-
class
|
|
1669
|
+
class Le extends Q {
|
|
1670
1670
|
constructor() {
|
|
1671
1671
|
super(...arguments), this.validate = this.implement;
|
|
1672
1672
|
}
|
|
@@ -1714,18 +1714,18 @@ class We extends Q {
|
|
|
1714
1714
|
return this._def.returns instanceof it ? ie(async (...l) => {
|
|
1715
1715
|
const h = new Oe([]), y = await this._def.args.parseAsync(l, a).catch((N) => {
|
|
1716
1716
|
throw h.addIssue(r(l, N)), h;
|
|
1717
|
-
}),
|
|
1718
|
-
return await this._def.returns._def.type.parseAsync(
|
|
1719
|
-
throw h.addIssue(n(
|
|
1717
|
+
}), w = await c(...y);
|
|
1718
|
+
return await this._def.returns._def.type.parseAsync(w, a).catch((N) => {
|
|
1719
|
+
throw h.addIssue(n(w, N)), h;
|
|
1720
1720
|
});
|
|
1721
1721
|
}) : ie((...l) => {
|
|
1722
1722
|
const h = this._def.args.safeParse(l, a);
|
|
1723
1723
|
if (!h.success)
|
|
1724
1724
|
throw new Oe([r(l, h.error)]);
|
|
1725
|
-
const y = c(...h.data),
|
|
1726
|
-
if (!
|
|
1727
|
-
throw new Oe([n(y,
|
|
1728
|
-
return
|
|
1725
|
+
const y = c(...h.data), w = this._def.returns.safeParse(y, a);
|
|
1726
|
+
if (!w.success)
|
|
1727
|
+
throw new Oe([n(y, w.error)]);
|
|
1728
|
+
return w.data;
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
1731
|
parameters() {
|
|
@@ -1735,13 +1735,13 @@ class We extends Q {
|
|
|
1735
1735
|
return this._def.returns;
|
|
1736
1736
|
}
|
|
1737
1737
|
args(...t) {
|
|
1738
|
-
return new
|
|
1738
|
+
return new Le({
|
|
1739
1739
|
...this._def,
|
|
1740
|
-
args: Ge.create(t).rest(
|
|
1740
|
+
args: Ge.create(t).rest(Qe.create())
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
1743
|
returns(t) {
|
|
1744
|
-
return new
|
|
1744
|
+
return new Le({
|
|
1745
1745
|
...this._def,
|
|
1746
1746
|
returns: t
|
|
1747
1747
|
});
|
|
@@ -1753,13 +1753,13 @@ class We extends Q {
|
|
|
1753
1753
|
return this.parse(t);
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
|
-
|
|
1757
|
-
args: e ? e.rest(
|
|
1758
|
-
returns: t ||
|
|
1756
|
+
Le.create = (e, t, s) => new Le({
|
|
1757
|
+
args: e ? e.rest(Qe.create()) : Ge.create([]).rest(Qe.create()),
|
|
1758
|
+
returns: t || Qe.create(),
|
|
1759
1759
|
typeName: I.ZodFunction,
|
|
1760
1760
|
...R(s)
|
|
1761
1761
|
});
|
|
1762
|
-
class
|
|
1762
|
+
class kt extends Q {
|
|
1763
1763
|
get schema() {
|
|
1764
1764
|
return this._def.getter();
|
|
1765
1765
|
}
|
|
@@ -1768,12 +1768,12 @@ class Tt extends Q {
|
|
|
1768
1768
|
return this._def.getter()._parse({ data: s.data, path: s.path, parent: s });
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
|
-
|
|
1771
|
+
kt.create = (e, t) => new kt({
|
|
1772
1772
|
getter: e,
|
|
1773
1773
|
typeName: I.ZodLazy,
|
|
1774
1774
|
...R(t)
|
|
1775
1775
|
});
|
|
1776
|
-
class
|
|
1776
|
+
class Tt extends Q {
|
|
1777
1777
|
_parse(t) {
|
|
1778
1778
|
if (t.data !== this._def.value) {
|
|
1779
1779
|
const s = this._getOrReturnCtx(t);
|
|
@@ -1788,7 +1788,7 @@ class kt extends Q {
|
|
|
1788
1788
|
return this._def.value;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
|
|
1791
|
+
Tt.create = (e, t) => new Tt({
|
|
1792
1792
|
value: e,
|
|
1793
1793
|
typeName: I.ZodLiteral,
|
|
1794
1794
|
...R(t)
|
|
@@ -1982,7 +1982,7 @@ je.create = (e, t) => new je({
|
|
|
1982
1982
|
typeName: I.ZodOptional,
|
|
1983
1983
|
...R(t)
|
|
1984
1984
|
});
|
|
1985
|
-
class
|
|
1985
|
+
class Ke extends Q {
|
|
1986
1986
|
_parse(t) {
|
|
1987
1987
|
return this._getType(t) === x.null ? ie(null) : this._def.innerType._parse(t);
|
|
1988
1988
|
}
|
|
@@ -1990,7 +1990,7 @@ class Le extends Q {
|
|
|
1990
1990
|
return this._def.innerType;
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
|
-
|
|
1993
|
+
Ke.create = (e, t) => new Ke({
|
|
1994
1994
|
innerType: e,
|
|
1995
1995
|
typeName: I.ZodNullable,
|
|
1996
1996
|
...R(t)
|
|
@@ -2045,10 +2045,10 @@ var I;
|
|
|
2045
2045
|
})(I || (I = {}));
|
|
2046
2046
|
const ta = (e, t = {
|
|
2047
2047
|
message: `Input not instance of ${e.name}`
|
|
2048
|
-
}) => fr((s) => s instanceof e, t, !0), hr =
|
|
2048
|
+
}) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = ze.create, sa = Zt.create, ra = Ft.create, br = qt.create, na = nt.create, aa = It.create, ia = Ht.create, oa = at.create, ca = Qe.create, la = Te.create, ua = Xt.create, Aa = Ye.create, ma = J.create, da = J.strictCreate, ga = wt.create, pa = zt.create, fa = Bt.create, ha = Ge.create, ya = Mt.create, ba = Rt.create, va = We.create, wa = Le.create, Ba = kt.create, Ma = Tt.create, Ca = Wt.create, Da = Nt.create, xa = it.create, _s = Ve.create, ja = je.create, Ea = Ke.create, Ya = Ve.createWithPreprocess, Ga = () => hr().optional(), Va = () => yr().optional(), Pa = () => br().optional();
|
|
2049
2049
|
var ft = /* @__PURE__ */ Object.freeze({
|
|
2050
2050
|
__proto__: null,
|
|
2051
|
-
getParsedType:
|
|
2051
|
+
getParsedType: Xe,
|
|
2052
2052
|
ZodParsedType: x,
|
|
2053
2053
|
makeIssue: Pt,
|
|
2054
2054
|
EMPTY_PATH: Wn,
|
|
@@ -2057,21 +2057,21 @@ var ft = /* @__PURE__ */ Object.freeze({
|
|
|
2057
2057
|
INVALID: H,
|
|
2058
2058
|
DIRTY: Ln,
|
|
2059
2059
|
OK: ie,
|
|
2060
|
-
isAborted:
|
|
2061
|
-
isDirty:
|
|
2060
|
+
isAborted: ws,
|
|
2061
|
+
isDirty: Bs,
|
|
2062
2062
|
isValid: Ot,
|
|
2063
2063
|
isAsync: Ms,
|
|
2064
2064
|
jsonStringifyReplacer: Is,
|
|
2065
2065
|
ZodType: Q,
|
|
2066
|
-
ZodString:
|
|
2067
|
-
ZodNumber:
|
|
2066
|
+
ZodString: ke,
|
|
2067
|
+
ZodNumber: ze,
|
|
2068
2068
|
ZodBigInt: Ft,
|
|
2069
2069
|
ZodBoolean: qt,
|
|
2070
2070
|
ZodDate: nt,
|
|
2071
2071
|
ZodUndefined: It,
|
|
2072
2072
|
ZodNull: Ht,
|
|
2073
2073
|
ZodAny: at,
|
|
2074
|
-
ZodUnknown:
|
|
2074
|
+
ZodUnknown: Qe,
|
|
2075
2075
|
ZodNever: Te,
|
|
2076
2076
|
ZodVoid: Xt,
|
|
2077
2077
|
ZodArray: Ye,
|
|
@@ -2079,23 +2079,23 @@ var ft = /* @__PURE__ */ Object.freeze({
|
|
|
2079
2079
|
return Qt;
|
|
2080
2080
|
},
|
|
2081
2081
|
ZodObject: J,
|
|
2082
|
-
ZodUnion:
|
|
2082
|
+
ZodUnion: wt,
|
|
2083
2083
|
ZodDiscriminatedUnion: zt,
|
|
2084
|
-
ZodIntersection:
|
|
2084
|
+
ZodIntersection: Bt,
|
|
2085
2085
|
ZodTuple: Ge,
|
|
2086
2086
|
ZodRecord: Mt,
|
|
2087
2087
|
ZodMap: Rt,
|
|
2088
|
-
ZodSet:
|
|
2089
|
-
ZodFunction:
|
|
2090
|
-
ZodLazy:
|
|
2091
|
-
ZodLiteral:
|
|
2088
|
+
ZodSet: We,
|
|
2089
|
+
ZodFunction: Le,
|
|
2090
|
+
ZodLazy: kt,
|
|
2091
|
+
ZodLiteral: Tt,
|
|
2092
2092
|
ZodEnum: Wt,
|
|
2093
2093
|
ZodNativeEnum: Nt,
|
|
2094
2094
|
ZodPromise: it,
|
|
2095
2095
|
ZodEffects: Ve,
|
|
2096
2096
|
ZodTransformer: Ve,
|
|
2097
2097
|
ZodOptional: je,
|
|
2098
|
-
ZodNullable:
|
|
2098
|
+
ZodNullable: Ke,
|
|
2099
2099
|
ZodDefault: Hs,
|
|
2100
2100
|
ZodNaN: Zt,
|
|
2101
2101
|
custom: fr,
|
|
@@ -2113,10 +2113,10 @@ var ft = /* @__PURE__ */ Object.freeze({
|
|
|
2113
2113
|
discriminatedUnion: pa,
|
|
2114
2114
|
effect: _s,
|
|
2115
2115
|
enum: Ca,
|
|
2116
|
-
function:
|
|
2116
|
+
function: wa,
|
|
2117
2117
|
instanceof: ta,
|
|
2118
2118
|
intersection: fa,
|
|
2119
|
-
lazy:
|
|
2119
|
+
lazy: Ba,
|
|
2120
2120
|
literal: Ma,
|
|
2121
2121
|
map: ba,
|
|
2122
2122
|
nan: sa,
|
|
@@ -2266,21 +2266,21 @@ function Ra(e) {
|
|
|
2266
2266
|
const t = e == null ? void 0 : e.shape;
|
|
2267
2267
|
return t ? Object.keys(t) : void 0;
|
|
2268
2268
|
}
|
|
2269
|
-
const
|
|
2270
|
-
function
|
|
2269
|
+
const wr = /* @__PURE__ */ new Map(), Et = [], ka = /* @__PURE__ */ new Map(), $s = "prefix:";
|
|
2270
|
+
function Ta(e) {
|
|
2271
2271
|
for (const [t, s] of Object.entries(e))
|
|
2272
2272
|
Na([t], s);
|
|
2273
2273
|
}
|
|
2274
2274
|
function Na(e, t) {
|
|
2275
2275
|
const s = Array.isArray(t) ? t : [t];
|
|
2276
2276
|
Za(s, e);
|
|
2277
|
-
for (const r of s)
|
|
2277
|
+
for (const r of s) ka.set(r.builderKey, r);
|
|
2278
2278
|
for (const r of e)
|
|
2279
2279
|
if (r.startsWith($s)) {
|
|
2280
2280
|
const n = r.slice($s.length), a = Et.findIndex((c) => c.prefix === n);
|
|
2281
2281
|
a >= 0 ? Et[a] = { prefix: n, builders: s } : Et.push({ prefix: n, builders: s });
|
|
2282
2282
|
} else
|
|
2283
|
-
|
|
2283
|
+
wr.set(r, s);
|
|
2284
2284
|
}
|
|
2285
2285
|
function Za(e, t) {
|
|
2286
2286
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2299,7 +2299,7 @@ function Za(e, t) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
2301
|
function Sa(e) {
|
|
2302
|
-
const t =
|
|
2302
|
+
const t = wr.get(e);
|
|
2303
2303
|
if (t) return t;
|
|
2304
2304
|
let s;
|
|
2305
2305
|
for (const r of Et)
|
|
@@ -2470,20 +2470,20 @@ const ri = {
|
|
|
2470
2470
|
// onto the returned builder, so these survive untouched.
|
|
2471
2471
|
appliesToActions: ei,
|
|
2472
2472
|
summarizeForm: si
|
|
2473
|
-
}),
|
|
2474
|
-
[`prefix:${Ua}`]:
|
|
2475
|
-
[m.report_reports_allDefaultReports]:
|
|
2476
|
-
[m.report_reports_allCustomReports]:
|
|
2473
|
+
}), tt = [ni], ai = {
|
|
2474
|
+
[`prefix:${Ua}`]: tt,
|
|
2475
|
+
[m.report_reports_allDefaultReports]: tt,
|
|
2476
|
+
[m.report_reports_allCustomReports]: tt,
|
|
2477
2477
|
// Overview / Insight are standalone page-access subjects with their own
|
|
2478
2478
|
// independent window each. They are NOT category covers and have no cover
|
|
2479
2479
|
// relationship, so CASL evaluates them in isolation — a per-report window on
|
|
2480
2480
|
// `reports::<key>` can never bleed into these page checks.
|
|
2481
|
-
[m.report_accessOverview]:
|
|
2482
|
-
[m.report_accessInsight]:
|
|
2481
|
+
[m.report_accessOverview]: tt,
|
|
2482
|
+
[m.report_accessInsight]: tt,
|
|
2483
2483
|
// Flat POS report subject used by the restaurant role editor.
|
|
2484
|
-
report:
|
|
2484
|
+
report: tt
|
|
2485
2485
|
};
|
|
2486
|
-
|
|
2486
|
+
Ta(ai);
|
|
2487
2487
|
function tl(e, t) {
|
|
2488
2488
|
if (!e) return {};
|
|
2489
2489
|
const s = new Set(t.ownedFields);
|
|
@@ -2503,7 +2503,7 @@ function sl(e, t) {
|
|
|
2503
2503
|
...t.map((s) => s.builder.toCondition(s.formValue))
|
|
2504
2504
|
);
|
|
2505
2505
|
}
|
|
2506
|
-
const
|
|
2506
|
+
const Br = {
|
|
2507
2507
|
mode: "Access window",
|
|
2508
2508
|
unrestricted: "No restriction",
|
|
2509
2509
|
since: "Since date",
|
|
@@ -2519,11 +2519,11 @@ const wr = {
|
|
|
2519
2519
|
inheritedLastMonths: "last {amount} months",
|
|
2520
2520
|
inheritedLastYears: "last {amount} years"
|
|
2521
2521
|
}, oi = {
|
|
2522
|
-
reportAccessWindow:
|
|
2522
|
+
reportAccessWindow: Br
|
|
2523
2523
|
}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2524
2524
|
__proto__: null,
|
|
2525
2525
|
default: oi,
|
|
2526
|
-
reportAccessWindow:
|
|
2526
|
+
reportAccessWindow: Br
|
|
2527
2527
|
}, Symbol.toStringTag, { value: "Module" })), Mr = {
|
|
2528
2528
|
mode: "访问期限",
|
|
2529
2529
|
unrestricted: "无限制",
|
|
@@ -2608,13 +2608,19 @@ const wr = {
|
|
|
2608
2608
|
dateRange: {
|
|
2609
2609
|
placeholder: "Select date range"
|
|
2610
2610
|
},
|
|
2611
|
+
search: {
|
|
2612
|
+
placeholder: "Search user, event, or record"
|
|
2613
|
+
},
|
|
2614
|
+
user: {
|
|
2615
|
+
feedmeAdmin: "FeedMe Admin"
|
|
2616
|
+
},
|
|
2611
2617
|
filter: {
|
|
2612
2618
|
user_placeholder: "User",
|
|
2613
2619
|
selected_user_prefix: "User: ",
|
|
2614
2620
|
subject_placeholder: "Subject",
|
|
2615
2621
|
selected_subject_prefix: "Subject: ",
|
|
2616
|
-
action_placeholder: "Action",
|
|
2617
|
-
selected_action_prefix: "Action: ",
|
|
2622
|
+
action_placeholder: "Action Type",
|
|
2623
|
+
selected_action_prefix: "Action Type: ",
|
|
2618
2624
|
status_placeholder: "Status",
|
|
2619
2625
|
selected_status_prefix: "Status: ",
|
|
2620
2626
|
outcome_placeholder: "Status",
|
|
@@ -2635,14 +2641,14 @@ const wr = {
|
|
|
2635
2641
|
payment: "Payment",
|
|
2636
2642
|
menu: "Menu",
|
|
2637
2643
|
crm: "CRM",
|
|
2644
|
+
other: "Other",
|
|
2638
2645
|
more: "More"
|
|
2639
2646
|
},
|
|
2640
2647
|
columns: {
|
|
2641
2648
|
timestamp: "Date",
|
|
2642
2649
|
user: "User",
|
|
2643
|
-
role: "Role",
|
|
2644
2650
|
subject: "Subject",
|
|
2645
|
-
action: "Action",
|
|
2651
|
+
action: "Action Description",
|
|
2646
2652
|
operation: "Operation",
|
|
2647
2653
|
outcome: "Status"
|
|
2648
2654
|
},
|
|
@@ -2674,8 +2680,8 @@ const wr = {
|
|
|
2674
2680
|
timestamp: "Date",
|
|
2675
2681
|
userName: "User Name",
|
|
2676
2682
|
userPhone: "Phone",
|
|
2677
|
-
subject: "
|
|
2678
|
-
action: "Action",
|
|
2683
|
+
subject: "Subject",
|
|
2684
|
+
action: "Action Description",
|
|
2679
2685
|
operation: "Operation",
|
|
2680
2686
|
outcome: "Status",
|
|
2681
2687
|
businessId: "Business ID",
|
|
@@ -2693,14 +2699,13 @@ const wr = {
|
|
|
2693
2699
|
email: "E-mail",
|
|
2694
2700
|
action: "Action",
|
|
2695
2701
|
operation: "Operation",
|
|
2696
|
-
role: "Role",
|
|
2697
2702
|
subject: "Subject",
|
|
2698
2703
|
field: "Field",
|
|
2699
2704
|
outcome: "Outcome",
|
|
2700
2705
|
business: "Business",
|
|
2701
2706
|
restaurant: "Restaurant",
|
|
2702
|
-
|
|
2703
|
-
|
|
2707
|
+
eventDetails: "Event Details",
|
|
2708
|
+
actionDescription: "Action Description",
|
|
2704
2709
|
metadata: "Metadata",
|
|
2705
2710
|
reason: "Reason",
|
|
2706
2711
|
resolvedFrom: "Resolved From",
|
|
@@ -2720,6 +2725,77 @@ const wr = {
|
|
|
2720
2725
|
requestMethod: "Request Method",
|
|
2721
2726
|
requestPath: "Request Path",
|
|
2722
2727
|
requestBody: "Request Body"
|
|
2728
|
+
},
|
|
2729
|
+
operation: {
|
|
2730
|
+
toggle: "Toggle operations",
|
|
2731
|
+
rowHint: "Operation",
|
|
2732
|
+
unlabeled: "Operation",
|
|
2733
|
+
badge: "{count} ops",
|
|
2734
|
+
sheetHeader: "Operation Detail",
|
|
2735
|
+
entity: "Entity",
|
|
2736
|
+
duration: "Duration",
|
|
2737
|
+
durationValue: "{ms} ms",
|
|
2738
|
+
error: "Error",
|
|
2739
|
+
changes: "Changes",
|
|
2740
|
+
showData: "Show data",
|
|
2741
|
+
added: "Added",
|
|
2742
|
+
removed: "Removed",
|
|
2743
|
+
updated: "Updated",
|
|
2744
|
+
before: "Before",
|
|
2745
|
+
after: "After",
|
|
2746
|
+
noChanges: "No changes recorded for this operation.",
|
|
2747
|
+
wholeValue: "Value"
|
|
2748
|
+
},
|
|
2749
|
+
event: {
|
|
2750
|
+
sentence: {
|
|
2751
|
+
"audit-log": {
|
|
2752
|
+
view: "Viewed audit logs"
|
|
2753
|
+
},
|
|
2754
|
+
restaurant: {
|
|
2755
|
+
list: "Listed restaurants"
|
|
2756
|
+
},
|
|
2757
|
+
"permission-assignment": {
|
|
2758
|
+
manage: "Managed permission assignments",
|
|
2759
|
+
list: "Listed permission assignments",
|
|
2760
|
+
view: "Viewed permission assignment {id}"
|
|
2761
|
+
},
|
|
2762
|
+
"permission-set": {
|
|
2763
|
+
manage: "Managed permission sets",
|
|
2764
|
+
list: "Listed permission sets",
|
|
2765
|
+
view: "Viewed permission set {id}"
|
|
2766
|
+
},
|
|
2767
|
+
"portal-user": {
|
|
2768
|
+
list: "Listed team members",
|
|
2769
|
+
"list-page": "Listed team members",
|
|
2770
|
+
view: "Viewed team member {id}",
|
|
2771
|
+
create: "Added team member {name}",
|
|
2772
|
+
update: "Updated team member {name}",
|
|
2773
|
+
delete: "Removed team member {name}"
|
|
2774
|
+
},
|
|
2775
|
+
"pos-user": {
|
|
2776
|
+
list: "Listed employees",
|
|
2777
|
+
"list-page": "Listed employees",
|
|
2778
|
+
create: "Added employee {name}",
|
|
2779
|
+
"sync-meta": "Synced employee data",
|
|
2780
|
+
update: "Updated employee {id}",
|
|
2781
|
+
migrate: "Migrated employee {id}",
|
|
2782
|
+
"generate-passcode": "Generated employee passcode"
|
|
2783
|
+
},
|
|
2784
|
+
"pos-master-user": {
|
|
2785
|
+
create: "Added POS master employee {name}",
|
|
2786
|
+
update: "Updated POS master employee {name}",
|
|
2787
|
+
delete: "Removed POS master employee {name}"
|
|
2788
|
+
},
|
|
2789
|
+
"pos-role": {
|
|
2790
|
+
list: "Listed employee roles",
|
|
2791
|
+
create: "Added employee role {name}",
|
|
2792
|
+
update: "Updated employee role {name}"
|
|
2793
|
+
},
|
|
2794
|
+
timesheet: {
|
|
2795
|
+
view: "Viewed timesheets",
|
|
2796
|
+
update: "Updated timesheet"
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2723
2799
|
}
|
|
2724
2800
|
}, fi = {
|
|
2725
2801
|
date: xr,
|
|
@@ -2745,6 +2821,12 @@ const wr = {
|
|
|
2745
2821
|
dateRange: {
|
|
2746
2822
|
placeholder: "เลือกช่วงวันที่"
|
|
2747
2823
|
},
|
|
2824
|
+
search: {
|
|
2825
|
+
placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
|
|
2826
|
+
},
|
|
2827
|
+
user: {
|
|
2828
|
+
feedmeAdmin: "ผู้ดูแล FeedMe"
|
|
2829
|
+
},
|
|
2748
2830
|
filter: {
|
|
2749
2831
|
user_placeholder: "ผู้ใช้",
|
|
2750
2832
|
selected_user_prefix: "ผู้ใช้: ",
|
|
@@ -2772,12 +2854,12 @@ const wr = {
|
|
|
2772
2854
|
payment: "การชำระเงิน",
|
|
2773
2855
|
menu: "เมนู",
|
|
2774
2856
|
crm: "CRM",
|
|
2857
|
+
other: "อื่นๆ",
|
|
2775
2858
|
more: "เพิ่มเติม"
|
|
2776
2859
|
},
|
|
2777
2860
|
columns: {
|
|
2778
2861
|
timestamp: "วันที่",
|
|
2779
2862
|
user: "ผู้ใช้",
|
|
2780
|
-
role: "ตำแหน่ง",
|
|
2781
2863
|
subject: "หัวข้อ",
|
|
2782
2864
|
action: "การดำเนินการ",
|
|
2783
2865
|
operation: "รายละเอียดการดำเนินการ",
|
|
@@ -2830,14 +2912,13 @@ const wr = {
|
|
|
2830
2912
|
email: "อีเมล",
|
|
2831
2913
|
action: "การดำเนินการ",
|
|
2832
2914
|
operation: "รายละเอียดการดำเนินการ",
|
|
2833
|
-
role: "ตำแหน่ง",
|
|
2834
2915
|
subject: "หัวข้อ",
|
|
2835
2916
|
field: "ฟิลด์",
|
|
2836
2917
|
outcome: "ผลลัพธ์",
|
|
2837
2918
|
business: "ธุรกิจ",
|
|
2838
2919
|
restaurant: "ร้านอาหาร",
|
|
2839
|
-
|
|
2840
|
-
|
|
2920
|
+
eventDetails: "รายละเอียดเหตุการณ์",
|
|
2921
|
+
actionDescription: "คำอธิบายการกระทำ",
|
|
2841
2922
|
metadata: "ข้อมูลเพิ่มเติม",
|
|
2842
2923
|
reason: "เหตุผล",
|
|
2843
2924
|
resolvedFrom: "แก้ไขจาก",
|
|
@@ -2858,6 +2939,77 @@ const wr = {
|
|
|
2858
2939
|
requestMethod: "วิธีการเข้าถึง",
|
|
2859
2940
|
requestPath: "URL ที่เข้าถึง",
|
|
2860
2941
|
requestBody: "เนื้อหาคำขอ"
|
|
2942
|
+
},
|
|
2943
|
+
operation: {
|
|
2944
|
+
toggle: "แสดง/ซ่อนการดำเนินการ",
|
|
2945
|
+
rowHint: "การดำเนินการ",
|
|
2946
|
+
unlabeled: "การดำเนินการ",
|
|
2947
|
+
badge: "{count} รายการ",
|
|
2948
|
+
sheetHeader: "รายละเอียดการดำเนินการ",
|
|
2949
|
+
entity: "ข้อมูลที่เกี่ยวข้อง",
|
|
2950
|
+
duration: "ระยะเวลา",
|
|
2951
|
+
durationValue: "{ms} มิลลิวินาที",
|
|
2952
|
+
error: "ข้อผิดพลาด",
|
|
2953
|
+
changes: "การเปลี่ยนแปลง",
|
|
2954
|
+
showData: "แสดงข้อมูล",
|
|
2955
|
+
added: "เพิ่ม",
|
|
2956
|
+
removed: "ลบ",
|
|
2957
|
+
updated: "อัปเดต",
|
|
2958
|
+
before: "ก่อนหน้า",
|
|
2959
|
+
after: "หลังจาก",
|
|
2960
|
+
noChanges: "ไม่มีการเปลี่ยนแปลงที่บันทึกไว้สำหรับการดำเนินการนี้",
|
|
2961
|
+
wholeValue: "ค่า"
|
|
2962
|
+
},
|
|
2963
|
+
event: {
|
|
2964
|
+
sentence: {
|
|
2965
|
+
"audit-log": {
|
|
2966
|
+
view: "ดูบันทึกการตรวจสอบ"
|
|
2967
|
+
},
|
|
2968
|
+
restaurant: {
|
|
2969
|
+
list: "ดูรายการร้านอาหาร"
|
|
2970
|
+
},
|
|
2971
|
+
"permission-assignment": {
|
|
2972
|
+
manage: "จัดการการกำหนดสิทธิ์",
|
|
2973
|
+
list: "ดูรายการการกำหนดสิทธิ์",
|
|
2974
|
+
view: "ดูการกำหนดสิทธิ์ {id}"
|
|
2975
|
+
},
|
|
2976
|
+
"permission-set": {
|
|
2977
|
+
manage: "จัดการกลุ่มสิทธิ์",
|
|
2978
|
+
list: "ดูรายการกลุ่มสิทธิ์",
|
|
2979
|
+
view: "ดูกลุ่มสิทธิ์ {id}"
|
|
2980
|
+
},
|
|
2981
|
+
"portal-user": {
|
|
2982
|
+
list: "ดูรายการสมาชิกทีม",
|
|
2983
|
+
"list-page": "ดูรายการสมาชิกทีม",
|
|
2984
|
+
view: "ดูสมาชิกทีม {id}",
|
|
2985
|
+
create: "เพิ่มสมาชิกทีม {name}",
|
|
2986
|
+
update: "อัปเดตสมาชิกทีม {name}",
|
|
2987
|
+
delete: "ลบสมาชิกทีม {name}"
|
|
2988
|
+
},
|
|
2989
|
+
"pos-user": {
|
|
2990
|
+
list: "ดูรายการพนักงาน",
|
|
2991
|
+
"list-page": "ดูรายการพนักงาน",
|
|
2992
|
+
create: "เพิ่มพนักงาน {name}",
|
|
2993
|
+
"sync-meta": "ซิงค์ข้อมูลพนักงาน",
|
|
2994
|
+
update: "อัปเดตพนักงาน {id}",
|
|
2995
|
+
migrate: "ย้ายพนักงาน {id}",
|
|
2996
|
+
"generate-passcode": "สร้างรหัสผ่านพนักงาน"
|
|
2997
|
+
},
|
|
2998
|
+
"pos-master-user": {
|
|
2999
|
+
create: "เพิ่มพนักงานหลัก POS {name}",
|
|
3000
|
+
update: "อัปเดตพนักงานหลัก POS {name}",
|
|
3001
|
+
delete: "ลบพนักงานหลัก POS {name}"
|
|
3002
|
+
},
|
|
3003
|
+
"pos-role": {
|
|
3004
|
+
list: "ดูรายการบทบาทพนักงาน",
|
|
3005
|
+
create: "เพิ่มบทบาทพนักงาน {name}",
|
|
3006
|
+
update: "อัปเดตบทบาทพนักงาน {name}"
|
|
3007
|
+
},
|
|
3008
|
+
timesheet: {
|
|
3009
|
+
view: "ดูใบบันทึกเวลา",
|
|
3010
|
+
update: "อัปเดตใบบันทึกเวลา"
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
2861
3013
|
}
|
|
2862
3014
|
}, yi = {
|
|
2863
3015
|
date: Er,
|
|
@@ -2883,13 +3035,19 @@ const wr = {
|
|
|
2883
3035
|
dateRange: {
|
|
2884
3036
|
placeholder: "选择日期范围"
|
|
2885
3037
|
},
|
|
3038
|
+
search: {
|
|
3039
|
+
placeholder: "搜索用户、事件或记录"
|
|
3040
|
+
},
|
|
3041
|
+
user: {
|
|
3042
|
+
feedmeAdmin: "FeedMe 管理员"
|
|
3043
|
+
},
|
|
2886
3044
|
filter: {
|
|
2887
3045
|
user_placeholder: "用户",
|
|
2888
3046
|
selected_user_prefix: "用户: ",
|
|
2889
3047
|
subject_placeholder: "主题",
|
|
2890
3048
|
selected_subject_prefix: "主题: ",
|
|
2891
|
-
action_placeholder: "
|
|
2892
|
-
selected_action_prefix: "
|
|
3049
|
+
action_placeholder: "操作类型",
|
|
3050
|
+
selected_action_prefix: "操作类型: ",
|
|
2893
3051
|
status_placeholder: "状态",
|
|
2894
3052
|
selected_status_prefix: "状态: ",
|
|
2895
3053
|
outcome_placeholder: "状态",
|
|
@@ -2910,14 +3068,14 @@ const wr = {
|
|
|
2910
3068
|
payment: "支付",
|
|
2911
3069
|
menu: "菜单",
|
|
2912
3070
|
crm: "CRM",
|
|
3071
|
+
other: "其他",
|
|
2913
3072
|
more: "更多"
|
|
2914
3073
|
},
|
|
2915
3074
|
columns: {
|
|
2916
3075
|
timestamp: "日期",
|
|
2917
3076
|
user: "用户",
|
|
2918
|
-
role: "角色",
|
|
2919
3077
|
subject: "主题",
|
|
2920
|
-
action: "
|
|
3078
|
+
action: "操作说明",
|
|
2921
3079
|
operation: "操作说明",
|
|
2922
3080
|
outcome: "状态"
|
|
2923
3081
|
},
|
|
@@ -2949,8 +3107,8 @@ const wr = {
|
|
|
2949
3107
|
timestamp: "日期",
|
|
2950
3108
|
userName: "用户名",
|
|
2951
3109
|
userPhone: "手机号",
|
|
2952
|
-
subject: "
|
|
2953
|
-
action: "
|
|
3110
|
+
subject: "主题",
|
|
3111
|
+
action: "操作说明",
|
|
2954
3112
|
operation: "操作说明",
|
|
2955
3113
|
outcome: "状态",
|
|
2956
3114
|
businessId: "商家 ID",
|
|
@@ -2968,14 +3126,13 @@ const wr = {
|
|
|
2968
3126
|
email: "邮箱",
|
|
2969
3127
|
action: "操作",
|
|
2970
3128
|
operation: "操作说明",
|
|
2971
|
-
role: "角色",
|
|
2972
3129
|
subject: "主题",
|
|
2973
3130
|
field: "字段",
|
|
2974
3131
|
outcome: "结果",
|
|
2975
3132
|
business: "商家",
|
|
2976
3133
|
restaurant: "餐厅",
|
|
2977
|
-
|
|
2978
|
-
|
|
3134
|
+
eventDetails: "事件详情",
|
|
3135
|
+
actionDescription: "操作说明",
|
|
2979
3136
|
metadata: "元数据",
|
|
2980
3137
|
reason: "原因",
|
|
2981
3138
|
resolvedFrom: "解析来源",
|
|
@@ -2996,11 +3153,82 @@ const wr = {
|
|
|
2996
3153
|
requestMethod: "请求方法",
|
|
2997
3154
|
requestPath: "请求路径",
|
|
2998
3155
|
requestBody: "请求内容"
|
|
3156
|
+
},
|
|
3157
|
+
operation: {
|
|
3158
|
+
toggle: "展开/收起操作",
|
|
3159
|
+
rowHint: "操作",
|
|
3160
|
+
unlabeled: "操作",
|
|
3161
|
+
badge: "{count} 项操作",
|
|
3162
|
+
sheetHeader: "操作详情",
|
|
3163
|
+
entity: "对象",
|
|
3164
|
+
duration: "耗时",
|
|
3165
|
+
durationValue: "{ms} 毫秒",
|
|
3166
|
+
error: "错误",
|
|
3167
|
+
changes: "变更内容",
|
|
3168
|
+
showData: "显示数据",
|
|
3169
|
+
added: "已添加",
|
|
3170
|
+
removed: "已移除",
|
|
3171
|
+
updated: "已更新",
|
|
3172
|
+
before: "变更前",
|
|
3173
|
+
after: "变更后",
|
|
3174
|
+
noChanges: "此操作未记录任何变更。",
|
|
3175
|
+
wholeValue: "值"
|
|
3176
|
+
},
|
|
3177
|
+
event: {
|
|
3178
|
+
sentence: {
|
|
3179
|
+
"audit-log": {
|
|
3180
|
+
view: "查看了审计日志"
|
|
3181
|
+
},
|
|
3182
|
+
restaurant: {
|
|
3183
|
+
list: "查看了餐厅列表"
|
|
3184
|
+
},
|
|
3185
|
+
"permission-assignment": {
|
|
3186
|
+
manage: "管理了权限分配",
|
|
3187
|
+
list: "查看了权限分配列表",
|
|
3188
|
+
view: "查看了权限分配 {id}"
|
|
3189
|
+
},
|
|
3190
|
+
"permission-set": {
|
|
3191
|
+
manage: "管理了权限集",
|
|
3192
|
+
list: "查看了权限集列表",
|
|
3193
|
+
view: "查看了权限集 {id}"
|
|
3194
|
+
},
|
|
3195
|
+
"portal-user": {
|
|
3196
|
+
list: "查看了团队成员列表",
|
|
3197
|
+
"list-page": "查看了团队成员列表",
|
|
3198
|
+
view: "查看了团队成员 {id}",
|
|
3199
|
+
create: "添加了团队成员 {name}",
|
|
3200
|
+
update: "更新了团队成员 {name}",
|
|
3201
|
+
delete: "移除了团队成员 {name}"
|
|
3202
|
+
},
|
|
3203
|
+
"pos-user": {
|
|
3204
|
+
list: "查看了员工列表",
|
|
3205
|
+
"list-page": "查看了员工列表",
|
|
3206
|
+
create: "添加了员工 {name}",
|
|
3207
|
+
"sync-meta": "同步了员工数据",
|
|
3208
|
+
update: "更新了员工 {id}",
|
|
3209
|
+
migrate: "迁移了员工 {id}",
|
|
3210
|
+
"generate-passcode": "生成了员工密码"
|
|
3211
|
+
},
|
|
3212
|
+
"pos-master-user": {
|
|
3213
|
+
create: "添加了 POS 主员工 {name}",
|
|
3214
|
+
update: "更新了 POS 主员工 {name}",
|
|
3215
|
+
delete: "移除了 POS 主员工 {name}"
|
|
3216
|
+
},
|
|
3217
|
+
"pos-role": {
|
|
3218
|
+
list: "查看了员工角色列表",
|
|
3219
|
+
create: "添加了员工角色 {name}",
|
|
3220
|
+
update: "更新了员工角色 {name}"
|
|
3221
|
+
},
|
|
3222
|
+
timesheet: {
|
|
3223
|
+
view: "查看了工时表",
|
|
3224
|
+
update: "更新了工时表"
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
2999
3227
|
}
|
|
3000
3228
|
}, vi = {
|
|
3001
3229
|
date: Gr,
|
|
3002
3230
|
auditLog: Vr
|
|
3003
|
-
},
|
|
3231
|
+
}, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3004
3232
|
__proto__: null,
|
|
3005
3233
|
auditLog: Vr,
|
|
3006
3234
|
date: Gr,
|
|
@@ -3021,13 +3249,19 @@ const wr = {
|
|
|
3021
3249
|
dateRange: {
|
|
3022
3250
|
placeholder: "選擇日期範圍"
|
|
3023
3251
|
},
|
|
3252
|
+
search: {
|
|
3253
|
+
placeholder: "搜尋使用者、事件或記錄"
|
|
3254
|
+
},
|
|
3255
|
+
user: {
|
|
3256
|
+
feedmeAdmin: "FeedMe 管理員"
|
|
3257
|
+
},
|
|
3024
3258
|
filter: {
|
|
3025
3259
|
user_placeholder: "用戶",
|
|
3026
3260
|
selected_user_prefix: "用戶: ",
|
|
3027
3261
|
subject_placeholder: "主題",
|
|
3028
3262
|
selected_subject_prefix: "主題: ",
|
|
3029
|
-
action_placeholder: "
|
|
3030
|
-
selected_action_prefix: "
|
|
3263
|
+
action_placeholder: "操作類型",
|
|
3264
|
+
selected_action_prefix: "操作類型: ",
|
|
3031
3265
|
status_placeholder: "狀態",
|
|
3032
3266
|
selected_status_prefix: "狀態: ",
|
|
3033
3267
|
outcome_placeholder: "狀態",
|
|
@@ -3048,14 +3282,14 @@ const wr = {
|
|
|
3048
3282
|
payment: "支付",
|
|
3049
3283
|
menu: "菜單",
|
|
3050
3284
|
crm: "CRM",
|
|
3285
|
+
other: "其他",
|
|
3051
3286
|
more: "更多"
|
|
3052
3287
|
},
|
|
3053
3288
|
columns: {
|
|
3054
3289
|
timestamp: "日期",
|
|
3055
3290
|
user: "用戶",
|
|
3056
|
-
role: "角色",
|
|
3057
3291
|
subject: "主題",
|
|
3058
|
-
action: "
|
|
3292
|
+
action: "操作說明",
|
|
3059
3293
|
operation: "操作說明",
|
|
3060
3294
|
outcome: "狀態"
|
|
3061
3295
|
},
|
|
@@ -3087,8 +3321,8 @@ const wr = {
|
|
|
3087
3321
|
timestamp: "日期",
|
|
3088
3322
|
userName: "用戶名稱",
|
|
3089
3323
|
userPhone: "手機號碼",
|
|
3090
|
-
subject: "
|
|
3091
|
-
action: "
|
|
3324
|
+
subject: "主題",
|
|
3325
|
+
action: "操作說明",
|
|
3092
3326
|
operation: "操作說明",
|
|
3093
3327
|
outcome: "狀態",
|
|
3094
3328
|
businessId: "商家 ID",
|
|
@@ -3106,14 +3340,13 @@ const wr = {
|
|
|
3106
3340
|
email: "電子郵件",
|
|
3107
3341
|
action: "操作",
|
|
3108
3342
|
operation: "操作說明",
|
|
3109
|
-
role: "角色",
|
|
3110
3343
|
subject: "主題",
|
|
3111
3344
|
field: "字段",
|
|
3112
3345
|
outcome: "結果",
|
|
3113
3346
|
business: "商家",
|
|
3114
3347
|
restaurant: "餐廳",
|
|
3115
|
-
|
|
3116
|
-
|
|
3348
|
+
eventDetails: "事件詳情",
|
|
3349
|
+
actionDescription: "操作說明",
|
|
3117
3350
|
metadata: "元數據",
|
|
3118
3351
|
reason: "原因",
|
|
3119
3352
|
resolvedFrom: "解析來源",
|
|
@@ -3134,23 +3367,95 @@ const wr = {
|
|
|
3134
3367
|
requestMethod: "請求方法",
|
|
3135
3368
|
requestPath: "請求路徑",
|
|
3136
3369
|
requestBody: "請求內容"
|
|
3370
|
+
},
|
|
3371
|
+
operation: {
|
|
3372
|
+
toggle: "展開/收起操作",
|
|
3373
|
+
rowHint: "操作",
|
|
3374
|
+
unlabeled: "操作",
|
|
3375
|
+
badge: "{count} 項操作",
|
|
3376
|
+
sheetHeader: "操作詳情",
|
|
3377
|
+
entity: "對象",
|
|
3378
|
+
duration: "耗時",
|
|
3379
|
+
durationValue: "{ms} 毫秒",
|
|
3380
|
+
error: "錯誤",
|
|
3381
|
+
changes: "變更內容",
|
|
3382
|
+
showData: "顯示資料",
|
|
3383
|
+
added: "已新增",
|
|
3384
|
+
removed: "已移除",
|
|
3385
|
+
updated: "已更新",
|
|
3386
|
+
before: "變更前",
|
|
3387
|
+
after: "變更後",
|
|
3388
|
+
noChanges: "此操作未記錄任何變更。",
|
|
3389
|
+
wholeValue: "值"
|
|
3390
|
+
},
|
|
3391
|
+
event: {
|
|
3392
|
+
sentence: {
|
|
3393
|
+
"audit-log": {
|
|
3394
|
+
view: "查看了稽核紀錄"
|
|
3395
|
+
},
|
|
3396
|
+
restaurant: {
|
|
3397
|
+
list: "查看了餐廳列表"
|
|
3398
|
+
},
|
|
3399
|
+
"permission-assignment": {
|
|
3400
|
+
manage: "管理了權限指派",
|
|
3401
|
+
list: "查看了權限指派列表",
|
|
3402
|
+
view: "查看了權限指派 {id}"
|
|
3403
|
+
},
|
|
3404
|
+
"permission-set": {
|
|
3405
|
+
manage: "管理了權限集",
|
|
3406
|
+
list: "查看了權限集列表",
|
|
3407
|
+
view: "查看了權限集 {id}"
|
|
3408
|
+
},
|
|
3409
|
+
"portal-user": {
|
|
3410
|
+
list: "查看了團隊成員列表",
|
|
3411
|
+
"list-page": "查看了團隊成員列表",
|
|
3412
|
+
view: "查看了團隊成員 {id}",
|
|
3413
|
+
create: "新增了團隊成員 {name}",
|
|
3414
|
+
update: "更新了團隊成員 {name}",
|
|
3415
|
+
delete: "移除了團隊成員 {name}"
|
|
3416
|
+
},
|
|
3417
|
+
"pos-user": {
|
|
3418
|
+
list: "查看了員工列表",
|
|
3419
|
+
"list-page": "查看了員工列表",
|
|
3420
|
+
create: "新增了員工 {name}",
|
|
3421
|
+
"sync-meta": "同步了員工資料",
|
|
3422
|
+
update: "更新了員工 {id}",
|
|
3423
|
+
migrate: "移轉了員工 {id}",
|
|
3424
|
+
"generate-passcode": "產生了員工密碼"
|
|
3425
|
+
},
|
|
3426
|
+
"pos-master-user": {
|
|
3427
|
+
create: "新增了 POS 主員工 {name}",
|
|
3428
|
+
update: "更新了 POS 主員工 {name}",
|
|
3429
|
+
delete: "移除了 POS 主員工 {name}"
|
|
3430
|
+
},
|
|
3431
|
+
"pos-role": {
|
|
3432
|
+
list: "查看了員工角色列表",
|
|
3433
|
+
create: "新增了員工角色 {name}",
|
|
3434
|
+
update: "更新了員工角色 {name}"
|
|
3435
|
+
},
|
|
3436
|
+
timesheet: {
|
|
3437
|
+
view: "查看了工時表",
|
|
3438
|
+
update: "更新了工時表"
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3137
3441
|
}
|
|
3138
|
-
},
|
|
3442
|
+
}, Bi = {
|
|
3139
3443
|
date: Pr,
|
|
3140
3444
|
auditLog: Or
|
|
3141
3445
|
}, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3142
3446
|
__proto__: null,
|
|
3143
3447
|
auditLog: Or,
|
|
3144
3448
|
date: Pr,
|
|
3145
|
-
default:
|
|
3449
|
+
default: Bi
|
|
3146
3450
|
}, Symbol.toStringTag, { value: "Module" })), Ci = {
|
|
3147
3451
|
"en-US": hi,
|
|
3148
|
-
"zh-CN":
|
|
3452
|
+
"zh-CN": wi,
|
|
3149
3453
|
"th-TH": bi,
|
|
3150
3454
|
"zh-Hant": Mi
|
|
3151
3455
|
}, Fr = {
|
|
3152
3456
|
employee: {
|
|
3153
3457
|
title: "Employee",
|
|
3458
|
+
subtitle: "Manage employees with access to the POS at your outlets.",
|
|
3154
3459
|
exportButtonLabel: "Export",
|
|
3155
3460
|
createButtonLabel: "Create employee",
|
|
3156
3461
|
columns: {
|
|
@@ -3357,6 +3662,7 @@ const wr = {
|
|
|
3357
3662
|
}, Symbol.toStringTag, { value: "Module" })), qr = {
|
|
3358
3663
|
employee: {
|
|
3359
3664
|
title: "พนักงาน",
|
|
3665
|
+
subtitle: "จัดการพนักงานที่สามารถเข้าถึงระบบ POS ในสาขาของคุณ",
|
|
3360
3666
|
exportButtonLabel: "ส่งออก",
|
|
3361
3667
|
createButtonLabel: "สร้างพนักงาน",
|
|
3362
3668
|
columns: {
|
|
@@ -3562,6 +3868,7 @@ const wr = {
|
|
|
3562
3868
|
}, Symbol.toStringTag, { value: "Module" })), Ir = {
|
|
3563
3869
|
employee: {
|
|
3564
3870
|
title: "员工",
|
|
3871
|
+
subtitle: "管理可访问您门店 POS 系统的员工。",
|
|
3565
3872
|
exportButtonLabel: "导出",
|
|
3566
3873
|
createButtonLabel: "添加员工",
|
|
3567
3874
|
columns: {
|
|
@@ -3768,6 +4075,7 @@ const wr = {
|
|
|
3768
4075
|
}, Symbol.toStringTag, { value: "Module" })), Hr = {
|
|
3769
4076
|
employee: {
|
|
3770
4077
|
title: "員工",
|
|
4078
|
+
subtitle: "管理可存取您門市 POS 系統的員工。",
|
|
3771
4079
|
exportButtonLabel: "導出",
|
|
3772
4080
|
createButtonLabel: "添加員工",
|
|
3773
4081
|
columns: {
|
|
@@ -3973,6 +4281,7 @@ const wr = {
|
|
|
3973
4281
|
"zh-Hant": Pi
|
|
3974
4282
|
}, Xr = {
|
|
3975
4283
|
title: "Team members",
|
|
4284
|
+
subtitle: "Manage team members with access to the Portal and POS. Assign Portal permissions and POS roles.",
|
|
3976
4285
|
actions: {
|
|
3977
4286
|
addMember: "Add member",
|
|
3978
4287
|
updateMember: "Update member",
|
|
@@ -4087,36 +4396,36 @@ const wr = {
|
|
|
4087
4396
|
}
|
|
4088
4397
|
}
|
|
4089
4398
|
}, Qr = {
|
|
4090
|
-
title: "
|
|
4091
|
-
createButtonLabel: "Create
|
|
4399
|
+
title: "Roles",
|
|
4400
|
+
createButtonLabel: "Create role",
|
|
4092
4401
|
search: {
|
|
4093
|
-
placeholder: "Search
|
|
4402
|
+
placeholder: "Search role"
|
|
4094
4403
|
},
|
|
4095
4404
|
noData: {
|
|
4096
|
-
title: "No
|
|
4097
|
-
subtitle: "You don't have any
|
|
4405
|
+
title: "No role found",
|
|
4406
|
+
subtitle: "You don't have any role to show at the current moment."
|
|
4098
4407
|
},
|
|
4099
4408
|
form: {
|
|
4100
4409
|
create: {
|
|
4101
|
-
title: "Create
|
|
4102
|
-
confirmButtonLabel: "
|
|
4410
|
+
title: "Create role",
|
|
4411
|
+
confirmButtonLabel: "Create"
|
|
4103
4412
|
},
|
|
4104
4413
|
update: {
|
|
4105
|
-
title: "Update
|
|
4106
|
-
confirmButtonLabel: "
|
|
4414
|
+
title: "Update role",
|
|
4415
|
+
confirmButtonLabel: "Update"
|
|
4107
4416
|
},
|
|
4108
4417
|
delete: {
|
|
4109
|
-
title: "Delete
|
|
4110
|
-
confirmationMessage: "Do you really want to delete
|
|
4111
|
-
successMessage: "
|
|
4112
|
-
conflictError: 'Cannot delete
|
|
4113
|
-
setReferencedConflictError: 'Cannot delete
|
|
4418
|
+
title: "Delete role",
|
|
4419
|
+
confirmationMessage: "Do you really want to delete role {permissionSetName}?",
|
|
4420
|
+
successMessage: "Role {permissionSetName} deleted.",
|
|
4421
|
+
conflictError: 'Cannot delete role "{permissionSetName}" because it is still assigned to users. Please unassign all users first.',
|
|
4422
|
+
setReferencedConflictError: 'Cannot delete role "{permissionSetName}" because it is included in other roles. Remove those references first.'
|
|
4114
4423
|
},
|
|
4115
|
-
name: "
|
|
4116
|
-
namePlaceholder: "Enter
|
|
4117
|
-
nameRequired: "
|
|
4118
|
-
includedSets: "
|
|
4119
|
-
includedSetsPlaceholder: "Select
|
|
4424
|
+
name: "Role name",
|
|
4425
|
+
namePlaceholder: "Enter role name",
|
|
4426
|
+
nameRequired: "Role name is required",
|
|
4427
|
+
includedSets: "Include permissions from other roles",
|
|
4428
|
+
includedSetsPlaceholder: "Select one or more roles to inherit permissions from",
|
|
4120
4429
|
overrideInherited: {
|
|
4121
4430
|
title: "Override custom permissions?",
|
|
4122
4431
|
message: "Changing the selected permission roles can replace the current permission selections with inherited permissions from those roles. Do you want to override the current selections?",
|
|
@@ -4224,6 +4533,7 @@ const wr = {
|
|
|
4224
4533
|
team: Xr
|
|
4225
4534
|
}, Symbol.toStringTag, { value: "Module" })), Rr = {
|
|
4226
4535
|
title: "ผู้ดูแลระบบ",
|
|
4536
|
+
subtitle: "จัดการผู้ดูแลระบบที่สามารถเข้าถึง Portal และ POS กำหนดสิทธิ์ Portal และบทบาท POS",
|
|
4227
4537
|
actions: {
|
|
4228
4538
|
addMember: "เพิ่มผู้ดูแลระบบ",
|
|
4229
4539
|
updateMember: "อัปเดตผู้ดูแลระบบ",
|
|
@@ -4337,37 +4647,37 @@ const wr = {
|
|
|
4337
4647
|
selectPlaceholder: "เลือกตำแหน่งสิทธิ์"
|
|
4338
4648
|
}
|
|
4339
4649
|
}
|
|
4340
|
-
},
|
|
4341
|
-
title: "
|
|
4342
|
-
createButtonLabel: "
|
|
4650
|
+
}, kr = {
|
|
4651
|
+
title: "บทบาท",
|
|
4652
|
+
createButtonLabel: "สร้างบทบาท",
|
|
4343
4653
|
search: {
|
|
4344
|
-
placeholder: "
|
|
4654
|
+
placeholder: "ค้นหาบทบาท"
|
|
4345
4655
|
},
|
|
4346
4656
|
noData: {
|
|
4347
|
-
title: "
|
|
4348
|
-
subtitle: "
|
|
4657
|
+
title: "ไม่พบบทบาท",
|
|
4658
|
+
subtitle: "คุณไม่มีบทบาทที่จะแสดงในขณะนี้"
|
|
4349
4659
|
},
|
|
4350
4660
|
form: {
|
|
4351
4661
|
create: {
|
|
4352
|
-
title: "
|
|
4662
|
+
title: "สร้างบทบาท",
|
|
4353
4663
|
confirmButtonLabel: "สร้าง"
|
|
4354
4664
|
},
|
|
4355
4665
|
update: {
|
|
4356
|
-
title: "
|
|
4666
|
+
title: "อัปเดตบทบาท",
|
|
4357
4667
|
confirmButtonLabel: "อัปเดต"
|
|
4358
4668
|
},
|
|
4359
4669
|
delete: {
|
|
4360
|
-
title: "
|
|
4361
|
-
confirmationMessage: "
|
|
4362
|
-
successMessage: "
|
|
4363
|
-
conflictError: '
|
|
4364
|
-
setReferencedConflictError: '
|
|
4670
|
+
title: "ลบบทบาท",
|
|
4671
|
+
confirmationMessage: "คุณต้องการลบบทบาท {permissionSetName} จริงหรือไม่?",
|
|
4672
|
+
successMessage: "ลบบทบาท {permissionSetName} แล้ว",
|
|
4673
|
+
conflictError: 'ไม่สามารถลบบทบาท "{permissionSetName}" ได้ เนื่องจากยังมีผู้ใช้งานที่ได้รับการกำหนดบทบาทนี้อยู่ กรุณายกเลิกการกำหนดทั้งหมดก่อน',
|
|
4674
|
+
setReferencedConflictError: 'ไม่สามารถลบบทบาท "{permissionSetName}" ได้ เนื่องจากถูกรวมอยู่ในบทบาทอื่น กรุณาลบการอ้างอิงเหล่านั้นก่อน'
|
|
4365
4675
|
},
|
|
4366
|
-
name: "
|
|
4367
|
-
namePlaceholder: "
|
|
4368
|
-
nameRequired: "
|
|
4369
|
-
includedSets: "
|
|
4370
|
-
includedSetsPlaceholder: "
|
|
4676
|
+
name: "ชื่อบทบาท",
|
|
4677
|
+
namePlaceholder: "ป้อนชื่อบทบาท",
|
|
4678
|
+
nameRequired: "โปรดระบุชื่อบทบาท",
|
|
4679
|
+
includedSets: "รวมสิทธิ์จากบทบาทอื่น",
|
|
4680
|
+
includedSetsPlaceholder: "เลือกบทบาทหนึ่งรายการขึ้นไปเพื่อรับสิทธิ์ที่สืบทอดมา",
|
|
4371
4681
|
overrideInherited: {
|
|
4372
4682
|
title: "แทนที่สิทธิ์ที่กำหนดเอง?",
|
|
4373
4683
|
message: "การเปลี่ยนตำแหน่งสิทธิ์ที่เลือกอาจแทนที่สิทธิ์ที่เลือกอยู่ด้วยสิทธิ์ที่สืบทอดจากตำแหน่งเหล่านั้น ต้องการแทนที่รายการที่เลือกอยู่หรือไม่?",
|
|
@@ -4467,14 +4777,15 @@ const wr = {
|
|
|
4467
4777
|
}
|
|
4468
4778
|
}, Ii = {
|
|
4469
4779
|
team: Rr,
|
|
4470
|
-
permissionSet:
|
|
4780
|
+
permissionSet: kr
|
|
4471
4781
|
}, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4472
4782
|
__proto__: null,
|
|
4473
4783
|
default: Ii,
|
|
4474
|
-
permissionSet:
|
|
4784
|
+
permissionSet: kr,
|
|
4475
4785
|
team: Rr
|
|
4476
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4786
|
+
}, Symbol.toStringTag, { value: "Module" })), Tr = {
|
|
4477
4787
|
title: "团队成员",
|
|
4788
|
+
subtitle: "管理可访问 Portal 和 POS 的团队成员,分配 Portal 权限和 POS 角色。",
|
|
4478
4789
|
actions: {
|
|
4479
4790
|
addMember: "添加成员",
|
|
4480
4791
|
updateMember: "更新成员",
|
|
@@ -4589,36 +4900,36 @@ const wr = {
|
|
|
4589
4900
|
}
|
|
4590
4901
|
}
|
|
4591
4902
|
}, Nr = {
|
|
4592
|
-
title: "
|
|
4593
|
-
createButtonLabel: "
|
|
4903
|
+
title: "角色",
|
|
4904
|
+
createButtonLabel: "创建角色",
|
|
4594
4905
|
search: {
|
|
4595
|
-
placeholder: "
|
|
4906
|
+
placeholder: "搜索角色"
|
|
4596
4907
|
},
|
|
4597
4908
|
noData: {
|
|
4598
|
-
title: "
|
|
4599
|
-
subtitle: "
|
|
4909
|
+
title: "未找到角色",
|
|
4910
|
+
subtitle: "当前没有角色可显示"
|
|
4600
4911
|
},
|
|
4601
4912
|
form: {
|
|
4602
4913
|
create: {
|
|
4603
|
-
title: "
|
|
4914
|
+
title: "创建角色",
|
|
4604
4915
|
confirmButtonLabel: "创建"
|
|
4605
4916
|
},
|
|
4606
4917
|
update: {
|
|
4607
|
-
title: "
|
|
4918
|
+
title: "更新角色",
|
|
4608
4919
|
confirmButtonLabel: "更新"
|
|
4609
4920
|
},
|
|
4610
4921
|
delete: {
|
|
4611
|
-
title: "
|
|
4612
|
-
confirmationMessage: "
|
|
4613
|
-
successMessage: "
|
|
4614
|
-
conflictError: '
|
|
4615
|
-
setReferencedConflictError: '
|
|
4922
|
+
title: "删除角色",
|
|
4923
|
+
confirmationMessage: "确定要删除角色 {permissionSetName} 吗?",
|
|
4924
|
+
successMessage: "角色 {permissionSetName} 已删除",
|
|
4925
|
+
conflictError: '无法删除角色 "{permissionSetName}",因为仍有用户被分配到此角色,请先取消所有分配。',
|
|
4926
|
+
setReferencedConflictError: '无法删除角色 "{permissionSetName}",因为其他角色正在引用此角色,请先移除这些引用。'
|
|
4616
4927
|
},
|
|
4617
|
-
name: "
|
|
4618
|
-
namePlaceholder: "
|
|
4619
|
-
nameRequired: "
|
|
4620
|
-
includedSets: "
|
|
4621
|
-
includedSetsPlaceholder: "
|
|
4928
|
+
name: "角色名称",
|
|
4929
|
+
namePlaceholder: "输入角色名称",
|
|
4930
|
+
nameRequired: "请输入角色名称",
|
|
4931
|
+
includedSets: "包含其他角色的权限",
|
|
4932
|
+
includedSetsPlaceholder: "选择一个或多个角色以继承其权限",
|
|
4622
4933
|
overrideInherited: {
|
|
4623
4934
|
title: "覆盖自定义权限?",
|
|
4624
4935
|
message: "变更已选权限角色可能会使用这些角色继承的权限取代当前权限选择。是否要覆盖当前选择?",
|
|
@@ -4717,15 +5028,16 @@ const wr = {
|
|
|
4717
5028
|
}
|
|
4718
5029
|
}
|
|
4719
5030
|
}, Xi = {
|
|
4720
|
-
team:
|
|
5031
|
+
team: Tr,
|
|
4721
5032
|
permissionSet: Nr
|
|
4722
5033
|
}, Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4723
5034
|
__proto__: null,
|
|
4724
5035
|
default: Xi,
|
|
4725
5036
|
permissionSet: Nr,
|
|
4726
|
-
team:
|
|
5037
|
+
team: Tr
|
|
4727
5038
|
}, Symbol.toStringTag, { value: "Module" })), Zr = {
|
|
4728
5039
|
title: "團隊成員",
|
|
5040
|
+
subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
|
|
4729
5041
|
actions: {
|
|
4730
5042
|
addMember: "添加成員",
|
|
4731
5043
|
updateMember: "更新成員",
|
|
@@ -4847,36 +5159,36 @@ const wr = {
|
|
|
4847
5159
|
}
|
|
4848
5160
|
}
|
|
4849
5161
|
}, Sr = {
|
|
4850
|
-
title: "
|
|
4851
|
-
createButtonLabel: "
|
|
5162
|
+
title: "角色",
|
|
5163
|
+
createButtonLabel: "創建角色",
|
|
4852
5164
|
search: {
|
|
4853
|
-
placeholder: "
|
|
5165
|
+
placeholder: "搜索角色"
|
|
4854
5166
|
},
|
|
4855
5167
|
noData: {
|
|
4856
|
-
title: "
|
|
4857
|
-
subtitle: "
|
|
5168
|
+
title: "未找到角色",
|
|
5169
|
+
subtitle: "當前沒有角色可顯示"
|
|
4858
5170
|
},
|
|
4859
5171
|
form: {
|
|
4860
5172
|
create: {
|
|
4861
|
-
title: "
|
|
5173
|
+
title: "創建角色",
|
|
4862
5174
|
confirmButtonLabel: "創建"
|
|
4863
5175
|
},
|
|
4864
5176
|
update: {
|
|
4865
|
-
title: "
|
|
5177
|
+
title: "更新角色",
|
|
4866
5178
|
confirmButtonLabel: "更新"
|
|
4867
5179
|
},
|
|
4868
5180
|
delete: {
|
|
4869
|
-
title: "
|
|
4870
|
-
confirmationMessage: "
|
|
4871
|
-
successMessage: "
|
|
4872
|
-
conflictError: '
|
|
4873
|
-
setReferencedConflictError: '
|
|
5181
|
+
title: "刪除角色",
|
|
5182
|
+
confirmationMessage: "確定要刪除角色 {permissionSetName} 嗎?",
|
|
5183
|
+
successMessage: "角色 {permissionSetName} 已刪除",
|
|
5184
|
+
conflictError: '無法刪除角色 "{permissionSetName}",因為仍有使用者被指派到此角色,請先取消所有指派。',
|
|
5185
|
+
setReferencedConflictError: '無法刪除角色 "{permissionSetName}",因為其他角色正在引用此角色,請先移除這些引用。'
|
|
4874
5186
|
},
|
|
4875
|
-
name: "
|
|
4876
|
-
namePlaceholder: "
|
|
4877
|
-
nameRequired: "
|
|
4878
|
-
includedSets: "
|
|
4879
|
-
includedSetsPlaceholder: "
|
|
5187
|
+
name: "角色名稱",
|
|
5188
|
+
namePlaceholder: "輸入角色名稱",
|
|
5189
|
+
nameRequired: "請輸入角色名稱",
|
|
5190
|
+
includedSets: "包含其他角色的權限",
|
|
5191
|
+
includedSetsPlaceholder: "選擇一個或多個角色以繼承其權限",
|
|
4880
5192
|
overrideInherited: {
|
|
4881
5193
|
title: "覆蓋自訂權限?",
|
|
4882
5194
|
message: "變更已選權限角色可能會使用這些角色繼承的權限取代目前的權限選擇。是否要覆蓋目前的選擇?",
|
|
@@ -4977,16 +5289,16 @@ const wr = {
|
|
|
4977
5289
|
}, Ri = {
|
|
4978
5290
|
team: Zr,
|
|
4979
5291
|
permissionSet: Sr
|
|
4980
|
-
},
|
|
5292
|
+
}, ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4981
5293
|
__proto__: null,
|
|
4982
5294
|
default: Ri,
|
|
4983
5295
|
permissionSet: Sr,
|
|
4984
5296
|
team: Zr
|
|
4985
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5297
|
+
}, Symbol.toStringTag, { value: "Module" })), Ti = {
|
|
4986
5298
|
"en-US": qi,
|
|
4987
5299
|
"zh-CN": Qi,
|
|
4988
5300
|
"th-TH": Hi,
|
|
4989
|
-
"zh-Hant":
|
|
5301
|
+
"zh-Hant": ki
|
|
4990
5302
|
}, Ur = {
|
|
4991
5303
|
title: "POS Grant",
|
|
4992
5304
|
actions: {
|
|
@@ -6393,7 +6705,7 @@ const oe = [
|
|
|
6393
6705
|
subject: P.inventory_unitCostHistory,
|
|
6394
6706
|
actions: [i.read]
|
|
6395
6707
|
}
|
|
6396
|
-
],
|
|
6708
|
+
], wo = [
|
|
6397
6709
|
...oe,
|
|
6398
6710
|
{
|
|
6399
6711
|
label: "Stock Adjustment",
|
|
@@ -6492,7 +6804,7 @@ const Rs = [
|
|
|
6492
6804
|
...yn,
|
|
6493
6805
|
...bn
|
|
6494
6806
|
];
|
|
6495
|
-
const
|
|
6807
|
+
const Bo = [
|
|
6496
6808
|
{
|
|
6497
6809
|
label: "Inventory",
|
|
6498
6810
|
subject: P.inventory,
|
|
@@ -6572,7 +6884,7 @@ const wo = [
|
|
|
6572
6884
|
subject: P.inventory_shipment,
|
|
6573
6885
|
actions: [i.read, i.update]
|
|
6574
6886
|
}
|
|
6575
|
-
],
|
|
6887
|
+
], wn = [
|
|
6576
6888
|
{
|
|
6577
6889
|
label: "Purchase Order",
|
|
6578
6890
|
subject: P.inventory_purchaseOrder,
|
|
@@ -6593,7 +6905,7 @@ const wo = [
|
|
|
6593
6905
|
subject: P.inventory_shipment,
|
|
6594
6906
|
actions: [i.read, i.update]
|
|
6595
6907
|
}
|
|
6596
|
-
],
|
|
6908
|
+
], Bn = [
|
|
6597
6909
|
...oe,
|
|
6598
6910
|
{
|
|
6599
6911
|
label: "Surcharge",
|
|
@@ -6642,8 +6954,8 @@ const wo = [
|
|
|
6642
6954
|
];
|
|
6643
6955
|
[
|
|
6644
6956
|
...vn,
|
|
6645
|
-
...Bn,
|
|
6646
6957
|
...wn,
|
|
6958
|
+
...Bn,
|
|
6647
6959
|
...Mn
|
|
6648
6960
|
];
|
|
6649
6961
|
const jo = [
|
|
@@ -6710,7 +7022,7 @@ const Po = {
|
|
|
6710
7022
|
[`set_${m.inventory_stockAdjustment}`]: {
|
|
6711
7023
|
key: "sys:inventory:stock_adjustment",
|
|
6712
7024
|
name: "Stock Adjustment",
|
|
6713
|
-
permissions:
|
|
7025
|
+
permissions: wo
|
|
6714
7026
|
},
|
|
6715
7027
|
[`set_${m.inventory_unitCostHistory}`]: {
|
|
6716
7028
|
key: "sys:inventory:unit_cost_history",
|
|
@@ -6740,7 +7052,7 @@ const Po = {
|
|
|
6740
7052
|
[`set_${m.inventory_ingredient}`]: {
|
|
6741
7053
|
key: "sys:inventory:ingredient",
|
|
6742
7054
|
name: "Ingredient",
|
|
6743
|
-
permissions:
|
|
7055
|
+
permissions: Bo
|
|
6744
7056
|
},
|
|
6745
7057
|
[`set_${m.inventory_ingredientGroup}`]: {
|
|
6746
7058
|
key: "sys:inventory:ingredient_group",
|
|
@@ -6770,12 +7082,12 @@ const Po = {
|
|
|
6770
7082
|
[`set_${m.inventory_transferOut}`]: {
|
|
6771
7083
|
key: "sys:inventory:transfer_out",
|
|
6772
7084
|
name: "Transfer Out",
|
|
6773
|
-
permissions:
|
|
7085
|
+
permissions: wn
|
|
6774
7086
|
},
|
|
6775
7087
|
[`set_${m.inventory_surcharge}`]: {
|
|
6776
7088
|
key: "sys:inventory:surcharge",
|
|
6777
7089
|
name: "Surcharge",
|
|
6778
|
-
permissions:
|
|
7090
|
+
permissions: Bn
|
|
6779
7091
|
},
|
|
6780
7092
|
[`set_${m.inventory_orderTemplate}`]: {
|
|
6781
7093
|
key: "sys:inventory:order_template",
|
|
@@ -6808,7 +7120,7 @@ const Po = {
|
|
|
6808
7120
|
permissions: Vo
|
|
6809
7121
|
}
|
|
6810
7122
|
};
|
|
6811
|
-
var
|
|
7123
|
+
var He = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(He || {});
|
|
6812
7124
|
const Oo = {
|
|
6813
7125
|
/**
|
|
6814
7126
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
@@ -6821,7 +7133,7 @@ const Oo = {
|
|
|
6821
7133
|
permissions: [
|
|
6822
7134
|
{
|
|
6823
7135
|
label: "Portal Users",
|
|
6824
|
-
subject:
|
|
7136
|
+
subject: He.hrm_portalUsers,
|
|
6825
7137
|
actions: [i.manage]
|
|
6826
7138
|
},
|
|
6827
7139
|
{
|
|
@@ -6831,7 +7143,12 @@ const Oo = {
|
|
|
6831
7143
|
},
|
|
6832
7144
|
{
|
|
6833
7145
|
label: "Pos Role",
|
|
6834
|
-
subject:
|
|
7146
|
+
subject: He.hrm_posRole,
|
|
7147
|
+
actions: [i.read]
|
|
7148
|
+
},
|
|
7149
|
+
{
|
|
7150
|
+
label: "Restaurant resource",
|
|
7151
|
+
subject: He.hrm_restaurant,
|
|
6835
7152
|
actions: [i.read]
|
|
6836
7153
|
}
|
|
6837
7154
|
]
|
|
@@ -6846,17 +7163,17 @@ const Oo = {
|
|
|
6846
7163
|
permissions: [
|
|
6847
7164
|
{
|
|
6848
7165
|
label: "Portal Users",
|
|
6849
|
-
subject:
|
|
7166
|
+
subject: He.hrm_portalUsers,
|
|
6850
7167
|
actions: [i.read]
|
|
6851
7168
|
},
|
|
6852
7169
|
{
|
|
6853
7170
|
label: "Restaurant resource",
|
|
6854
|
-
subject:
|
|
7171
|
+
subject: He.hrm_restaurant,
|
|
6855
7172
|
actions: [i.read]
|
|
6856
7173
|
},
|
|
6857
7174
|
{
|
|
6858
7175
|
label: "Pos Role",
|
|
6859
|
-
subject:
|
|
7176
|
+
subject: He.hrm_posRole,
|
|
6860
7177
|
actions: [i.manage]
|
|
6861
7178
|
}
|
|
6862
7179
|
]
|
|
@@ -6873,7 +7190,7 @@ const Oo = {
|
|
|
6873
7190
|
permissions: [
|
|
6874
7191
|
{
|
|
6875
7192
|
label: "Portal Users",
|
|
6876
|
-
subject:
|
|
7193
|
+
subject: He.hrm_portalUsers,
|
|
6877
7194
|
actions: [i.read]
|
|
6878
7195
|
}
|
|
6879
7196
|
]
|
|
@@ -6973,8 +7290,8 @@ var Dn = { exports: {} };
|
|
|
6973
7290
|
}
|
|
6974
7291
|
function c(d) {
|
|
6975
7292
|
var p = "[object " + d + "]";
|
|
6976
|
-
return function(
|
|
6977
|
-
return Object.prototype.toString.call(
|
|
7293
|
+
return function(B) {
|
|
7294
|
+
return Object.prototype.toString.call(B) === p;
|
|
6978
7295
|
};
|
|
6979
7296
|
}
|
|
6980
7297
|
n.r(r), n.d(r, "default", function() {
|
|
@@ -6985,27 +7302,27 @@ var Dn = { exports: {} };
|
|
|
6985
7302
|
return At;
|
|
6986
7303
|
});
|
|
6987
7304
|
var l = c("Array"), h = c("Object"), y = c("Function");
|
|
6988
|
-
function
|
|
7305
|
+
function w(d, p) {
|
|
6989
7306
|
return y(d.get) ? d.get(p) : d[p];
|
|
6990
7307
|
}
|
|
6991
7308
|
function O(d) {
|
|
6992
|
-
return function(p,
|
|
6993
|
-
if (!l(
|
|
6994
|
-
for (var D = 0, E =
|
|
6995
|
-
if (d(p, B
|
|
7309
|
+
return function(p, B) {
|
|
7310
|
+
if (!l(B) || !B.length) return d(p, B);
|
|
7311
|
+
for (var D = 0, E = B.length; D < E; D++)
|
|
7312
|
+
if (d(p, w(B, D))) return !0;
|
|
6996
7313
|
return !1;
|
|
6997
7314
|
};
|
|
6998
7315
|
}
|
|
6999
7316
|
function N(d) {
|
|
7000
|
-
return function(p,
|
|
7001
|
-
if (!l(
|
|
7002
|
-
for (var D = 0, E =
|
|
7003
|
-
if (!d(p, B
|
|
7317
|
+
return function(p, B) {
|
|
7318
|
+
if (!l(B) || !B.length) return d(p, B);
|
|
7319
|
+
for (var D = 0, E = B.length; D < E; D++)
|
|
7320
|
+
if (!d(p, w(B, D))) return !1;
|
|
7004
7321
|
return !0;
|
|
7005
7322
|
};
|
|
7006
7323
|
}
|
|
7007
|
-
function U(d, p,
|
|
7008
|
-
return d.validate(d.options, p,
|
|
7324
|
+
function U(d, p, B, D) {
|
|
7325
|
+
return d.validate(d.options, p, B, D);
|
|
7009
7326
|
}
|
|
7010
7327
|
var $ = {
|
|
7011
7328
|
$eq: O(function(d, p) {
|
|
@@ -7035,50 +7352,50 @@ var Dn = { exports: {} };
|
|
|
7035
7352
|
$nin: function(d, p) {
|
|
7036
7353
|
return d(p);
|
|
7037
7354
|
},
|
|
7038
|
-
$not: function(d, p,
|
|
7039
|
-
return d(p,
|
|
7355
|
+
$not: function(d, p, B, D) {
|
|
7356
|
+
return d(p, B, D);
|
|
7040
7357
|
},
|
|
7041
7358
|
$type: function(d, p) {
|
|
7042
7359
|
return d(p);
|
|
7043
7360
|
},
|
|
7044
|
-
$all: function(d, p,
|
|
7045
|
-
return $.$and(d, p,
|
|
7361
|
+
$all: function(d, p, B, D) {
|
|
7362
|
+
return $.$and(d, p, B, D);
|
|
7046
7363
|
},
|
|
7047
7364
|
$size: function(d, p) {
|
|
7048
7365
|
return !!p && d === p.length;
|
|
7049
7366
|
},
|
|
7050
|
-
$or: function(d, p,
|
|
7367
|
+
$or: function(d, p, B, D) {
|
|
7051
7368
|
for (var E = 0, G = d.length; E < G; E++)
|
|
7052
|
-
if (U(
|
|
7369
|
+
if (U(w(d, E), p, B, D)) return !0;
|
|
7053
7370
|
return !1;
|
|
7054
7371
|
},
|
|
7055
|
-
$nor: function(d, p,
|
|
7056
|
-
return !$.$or(d, p,
|
|
7372
|
+
$nor: function(d, p, B, D) {
|
|
7373
|
+
return !$.$or(d, p, B, D);
|
|
7057
7374
|
},
|
|
7058
|
-
$and: function(d, p,
|
|
7375
|
+
$and: function(d, p, B, D) {
|
|
7059
7376
|
for (var E = 0, G = d.length; E < G; E++)
|
|
7060
|
-
if (!U(
|
|
7377
|
+
if (!U(w(d, E), p, B, D)) return !1;
|
|
7061
7378
|
return !0;
|
|
7062
7379
|
},
|
|
7063
7380
|
$regex: O(function(d, p) {
|
|
7064
7381
|
return typeof p == "string" && d.test(p);
|
|
7065
7382
|
}),
|
|
7066
|
-
$where: function(d, p,
|
|
7067
|
-
return d.call(p, p,
|
|
7383
|
+
$where: function(d, p, B, D) {
|
|
7384
|
+
return d.call(p, p, B, D);
|
|
7068
7385
|
},
|
|
7069
|
-
$elemMatch: function(d, p,
|
|
7386
|
+
$elemMatch: function(d, p, B, D) {
|
|
7070
7387
|
return l(p) ? !!~function(E, G) {
|
|
7071
7388
|
for (var q = 0; q < E.length; q++)
|
|
7072
|
-
if (
|
|
7389
|
+
if (w(E, q), U(G, w(E, q))) return q;
|
|
7073
7390
|
return -1;
|
|
7074
|
-
}(p, d) : U(d, p,
|
|
7391
|
+
}(p, d) : U(d, p, B, D);
|
|
7075
7392
|
},
|
|
7076
|
-
$exists: function(d, p,
|
|
7077
|
-
return D.hasOwnProperty(
|
|
7393
|
+
$exists: function(d, p, B, D) {
|
|
7394
|
+
return D.hasOwnProperty(B) === d;
|
|
7078
7395
|
}
|
|
7079
7396
|
}, re = {
|
|
7080
|
-
$eq: function(d, p,
|
|
7081
|
-
var D =
|
|
7397
|
+
$eq: function(d, p, B) {
|
|
7398
|
+
var D = B.comparable, E = B.compare;
|
|
7082
7399
|
return d instanceof RegExp ? O(function(G) {
|
|
7083
7400
|
return typeof G == "string" && d.test(G);
|
|
7084
7401
|
}) : d instanceof Function ? O(d) : l(d) && !d.length ? O(function(G) {
|
|
@@ -7091,32 +7408,32 @@ var Dn = { exports: {} };
|
|
|
7091
7408
|
}
|
|
7092
7409
|
);
|
|
7093
7410
|
},
|
|
7094
|
-
$gt: function(d, p,
|
|
7095
|
-
var D =
|
|
7411
|
+
$gt: function(d, p, B) {
|
|
7412
|
+
var D = B.comparable, E = B.compare;
|
|
7096
7413
|
return function(G) {
|
|
7097
7414
|
return E(D(G), D(d)) > 0;
|
|
7098
7415
|
};
|
|
7099
7416
|
},
|
|
7100
|
-
$gte: function(d, p,
|
|
7101
|
-
var D =
|
|
7417
|
+
$gte: function(d, p, B) {
|
|
7418
|
+
var D = B.comparable, E = B.compare;
|
|
7102
7419
|
return function(G) {
|
|
7103
7420
|
return E(D(G), D(d)) >= 0;
|
|
7104
7421
|
};
|
|
7105
7422
|
},
|
|
7106
|
-
$lt: function(d, p,
|
|
7107
|
-
var D =
|
|
7423
|
+
$lt: function(d, p, B) {
|
|
7424
|
+
var D = B.comparable, E = B.compare;
|
|
7108
7425
|
return function(G) {
|
|
7109
7426
|
return E(D(G), D(d)) < 0;
|
|
7110
7427
|
};
|
|
7111
7428
|
},
|
|
7112
|
-
$lte: function(d, p,
|
|
7113
|
-
var D =
|
|
7429
|
+
$lte: function(d, p, B) {
|
|
7430
|
+
var D = B.comparable, E = B.compare;
|
|
7114
7431
|
return function(G) {
|
|
7115
7432
|
return E(D(G), D(d)) <= 0;
|
|
7116
7433
|
};
|
|
7117
7434
|
},
|
|
7118
|
-
$in: function(d, p,
|
|
7119
|
-
var D =
|
|
7435
|
+
$in: function(d, p, B) {
|
|
7436
|
+
var D = B.comparable;
|
|
7120
7437
|
return function(E) {
|
|
7121
7438
|
if (!(E instanceof Array)) {
|
|
7122
7439
|
var G = D(E);
|
|
@@ -7129,19 +7446,19 @@ var Dn = { exports: {} };
|
|
|
7129
7446
|
for (X = d.length; X--; ) if (d[X] == null) return !0;
|
|
7130
7447
|
}
|
|
7131
7448
|
for (X = d.length; X--; ) {
|
|
7132
|
-
var q = U(lt(
|
|
7449
|
+
var q = U(lt(w(d, X), B), G, X, d);
|
|
7133
7450
|
if (q && String(q) !== "[object Object]" && String(G) !== "[object Object]")
|
|
7134
7451
|
return !0;
|
|
7135
7452
|
}
|
|
7136
7453
|
return !!~d.indexOf(G);
|
|
7137
7454
|
}
|
|
7138
7455
|
for (var X = E.length; X--; )
|
|
7139
|
-
if (~d.indexOf(D(
|
|
7456
|
+
if (~d.indexOf(D(w(E, X)))) return !0;
|
|
7140
7457
|
return !1;
|
|
7141
7458
|
};
|
|
7142
7459
|
},
|
|
7143
|
-
$nin: function(d, p,
|
|
7144
|
-
var D = re.$in(d, p,
|
|
7460
|
+
$nin: function(d, p, B) {
|
|
7461
|
+
var D = re.$in(d, p, B);
|
|
7145
7462
|
return function(E, G, q, X) {
|
|
7146
7463
|
return !D(E, G, q, X);
|
|
7147
7464
|
};
|
|
@@ -7151,32 +7468,32 @@ var Dn = { exports: {} };
|
|
|
7151
7468
|
return p % d[0] == d[1];
|
|
7152
7469
|
};
|
|
7153
7470
|
},
|
|
7154
|
-
$ne: function(d, p,
|
|
7155
|
-
var D = re.$eq(d, p,
|
|
7471
|
+
$ne: function(d, p, B) {
|
|
7472
|
+
var D = re.$eq(d, p, B);
|
|
7156
7473
|
return N(function(E, G, q, X) {
|
|
7157
7474
|
return !D(E, G, q, X);
|
|
7158
7475
|
});
|
|
7159
7476
|
},
|
|
7160
|
-
$and: function(d, p,
|
|
7161
|
-
return d.map(be(
|
|
7477
|
+
$and: function(d, p, B) {
|
|
7478
|
+
return d.map(be(B));
|
|
7162
7479
|
},
|
|
7163
|
-
$all: function(d, p,
|
|
7164
|
-
return re.$and(d, p,
|
|
7480
|
+
$all: function(d, p, B) {
|
|
7481
|
+
return re.$and(d, p, B);
|
|
7165
7482
|
},
|
|
7166
|
-
$or: function(d, p,
|
|
7167
|
-
return d.map(be(
|
|
7483
|
+
$or: function(d, p, B) {
|
|
7484
|
+
return d.map(be(B));
|
|
7168
7485
|
},
|
|
7169
|
-
$nor: function(d, p,
|
|
7170
|
-
return d.map(be(
|
|
7486
|
+
$nor: function(d, p, B) {
|
|
7487
|
+
return d.map(be(B));
|
|
7171
7488
|
},
|
|
7172
|
-
$not: function(d, p,
|
|
7173
|
-
var D = be(
|
|
7489
|
+
$not: function(d, p, B) {
|
|
7490
|
+
var D = be(B)(d);
|
|
7174
7491
|
return function(E, G, q) {
|
|
7175
7492
|
return !U(D, E, G, q);
|
|
7176
7493
|
};
|
|
7177
7494
|
},
|
|
7178
7495
|
$type: function(d) {
|
|
7179
|
-
return function(p,
|
|
7496
|
+
return function(p, B, D) {
|
|
7180
7497
|
return p != null && (p instanceof d || p.constructor == d);
|
|
7181
7498
|
};
|
|
7182
7499
|
},
|
|
@@ -7189,8 +7506,8 @@ var Dn = { exports: {} };
|
|
|
7189
7506
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
7190
7507
|
);
|
|
7191
7508
|
},
|
|
7192
|
-
$elemMatch: function(d, p,
|
|
7193
|
-
return be(
|
|
7509
|
+
$elemMatch: function(d, p, B) {
|
|
7510
|
+
return be(B)(d);
|
|
7194
7511
|
},
|
|
7195
7512
|
$exists: function(d) {
|
|
7196
7513
|
return !!d;
|
|
@@ -7200,15 +7517,15 @@ var Dn = { exports: {} };
|
|
|
7200
7517
|
return { options: d, validate: p };
|
|
7201
7518
|
}
|
|
7202
7519
|
function ne(d, p) {
|
|
7203
|
-
var
|
|
7520
|
+
var B = d.keyPath, D = d.child, E = d.query, G = [];
|
|
7204
7521
|
if (function o(g, A, b, M, V) {
|
|
7205
7522
|
if (b === A.length || g == null)
|
|
7206
7523
|
return void V.push([g, A[b - 1], M]);
|
|
7207
|
-
var F =
|
|
7524
|
+
var F = w(A, b);
|
|
7208
7525
|
if (l(g) && isNaN(Number(F)))
|
|
7209
|
-
for (var
|
|
7210
|
-
else o(
|
|
7211
|
-
}(p,
|
|
7526
|
+
for (var k = 0, j = g.length; k < j; k++) o(w(g, k), A, b, g, V);
|
|
7527
|
+
else o(w(g, F), A, b + 1, g, V);
|
|
7528
|
+
}(p, B, 0, p, G), G.length === 1) {
|
|
7212
7529
|
var q = G[0];
|
|
7213
7530
|
return U(D, q[0], q[1], q[2]);
|
|
7214
7531
|
}
|
|
@@ -7218,11 +7535,11 @@ var Dn = { exports: {} };
|
|
|
7218
7535
|
}
|
|
7219
7536
|
return _;
|
|
7220
7537
|
}
|
|
7221
|
-
function Kt(d, p,
|
|
7222
|
-
return de({ keyPath: d, child: p, query:
|
|
7538
|
+
function Kt(d, p, B) {
|
|
7539
|
+
return de({ keyPath: d, child: p, query: B }, ne);
|
|
7223
7540
|
}
|
|
7224
7541
|
function be(d) {
|
|
7225
|
-
var p = d.comparable,
|
|
7542
|
+
var p = d.comparable, B = d.expressions, D = function(q) {
|
|
7226
7543
|
var X;
|
|
7227
7544
|
return (!q || !(X = q) || X.constructor !== Object && X.constructor !== Array && X.constructor.toString() !== "function Object() { [native code] }" && X.constructor.toString() !== "function Array() { [native code] }" || X.toJSON) && (q = { $eq: q }), q;
|
|
7228
7545
|
}, E = function(q) {
|
|
@@ -7231,7 +7548,7 @@ var Dn = { exports: {} };
|
|
|
7231
7548
|
for (var _ in q) {
|
|
7232
7549
|
var te = q[_];
|
|
7233
7550
|
if (_ !== "$options") {
|
|
7234
|
-
var f = $[_] || d &&
|
|
7551
|
+
var f = $[_] || d && B && B[_];
|
|
7235
7552
|
if (f) re[_] && (te = re[_](te, q, d)), X.push(de(p(te), f));
|
|
7236
7553
|
else {
|
|
7237
7554
|
if (_.charCodeAt(0) === 36)
|
|
@@ -7247,45 +7564,45 @@ var Dn = { exports: {} };
|
|
|
7247
7564
|
if (!h(_)) return te;
|
|
7248
7565
|
for (var f in _) te.push(f), X(_[f], te);
|
|
7249
7566
|
return te;
|
|
7250
|
-
}(q, []).join(",").search(/[$.]/) === -1 ? de(q,
|
|
7567
|
+
}(q, []).join(",").search(/[$.]/) === -1 ? de(q, Ne) : E(q);
|
|
7251
7568
|
};
|
|
7252
7569
|
return function(q) {
|
|
7253
7570
|
return E(D(q));
|
|
7254
7571
|
};
|
|
7255
7572
|
}
|
|
7256
|
-
function
|
|
7573
|
+
function Ne(d, p) {
|
|
7257
7574
|
if (Object.prototype.toString.call(d) !== Object.prototype.toString.call(p))
|
|
7258
7575
|
return !1;
|
|
7259
7576
|
if (h(d)) {
|
|
7260
7577
|
if (Object.keys(d).length !== Object.keys(p).length) return !1;
|
|
7261
|
-
for (var
|
|
7578
|
+
for (var B in d) if (!Ne(d[B], p[B])) return !1;
|
|
7262
7579
|
return !0;
|
|
7263
7580
|
}
|
|
7264
7581
|
if (l(d)) {
|
|
7265
7582
|
if (d.length !== p.length) return !1;
|
|
7266
7583
|
for (var D = 0, E = d.length; D < E; D++)
|
|
7267
|
-
if (!
|
|
7584
|
+
if (!Ne(d[D], p[D])) return !1;
|
|
7268
7585
|
return !0;
|
|
7269
7586
|
}
|
|
7270
7587
|
return d === p;
|
|
7271
7588
|
}
|
|
7272
7589
|
function lt(d, p) {
|
|
7273
|
-
var
|
|
7274
|
-
return p && p.select && (
|
|
7275
|
-
options:
|
|
7590
|
+
var B = be(p)(d);
|
|
7591
|
+
return p && p.select && (B = {
|
|
7592
|
+
options: B,
|
|
7276
7593
|
validate: function(D, E, G, q) {
|
|
7277
7594
|
return U(D, E && p.select(E), G, q);
|
|
7278
7595
|
}
|
|
7279
|
-
}),
|
|
7596
|
+
}), B;
|
|
7280
7597
|
}
|
|
7281
7598
|
function Ct(d, p) {
|
|
7282
|
-
var
|
|
7599
|
+
var B = lt(d, p = Object.assign({ compare: ut, comparable: At }, p));
|
|
7283
7600
|
return function(D, E, G) {
|
|
7284
|
-
return U(
|
|
7601
|
+
return U(B, D, E, G);
|
|
7285
7602
|
};
|
|
7286
7603
|
}
|
|
7287
7604
|
function ut(d, p) {
|
|
7288
|
-
if (
|
|
7605
|
+
if (Ne(d, p)) return 0;
|
|
7289
7606
|
if (a(d) === a(p)) {
|
|
7290
7607
|
if (d > p) return 1;
|
|
7291
7608
|
if (d < p) return -1;
|
|
@@ -7309,7 +7626,7 @@ function Qo(e, t) {
|
|
|
7309
7626
|
function Ro(e, t, s) {
|
|
7310
7627
|
return t && Qo(e.prototype, t), e;
|
|
7311
7628
|
}
|
|
7312
|
-
function
|
|
7629
|
+
function ko(e, t) {
|
|
7313
7630
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
7314
7631
|
}
|
|
7315
7632
|
function js(e) {
|
|
@@ -7322,7 +7639,7 @@ function St(e, t) {
|
|
|
7322
7639
|
return r.__proto__ = n, r;
|
|
7323
7640
|
}, St(e, t);
|
|
7324
7641
|
}
|
|
7325
|
-
function
|
|
7642
|
+
function To() {
|
|
7326
7643
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
7327
7644
|
if (typeof Proxy == "function") return !0;
|
|
7328
7645
|
try {
|
|
@@ -7333,7 +7650,7 @@ function ko() {
|
|
|
7333
7650
|
}
|
|
7334
7651
|
}
|
|
7335
7652
|
function Gt(e, t, s) {
|
|
7336
|
-
return
|
|
7653
|
+
return To() ? Gt = Reflect.construct : Gt = function(n, a, c) {
|
|
7337
7654
|
var l = [null];
|
|
7338
7655
|
l.push.apply(l, a);
|
|
7339
7656
|
var h = Function.bind.apply(n, l), y = new h();
|
|
@@ -7374,7 +7691,7 @@ function nr(e) {
|
|
|
7374
7691
|
var xn = function(t) {
|
|
7375
7692
|
return 'Cannot execute "' + t.action + '" on "' + t.subjectName + '"';
|
|
7376
7693
|
}, xt = xn, Zo = /* @__PURE__ */ function(e) {
|
|
7377
|
-
|
|
7694
|
+
ko(t, e), t.setDefaultMessage = function(n) {
|
|
7378
7695
|
n === null ? xt = xn : xt = typeof n == "string" ? function() {
|
|
7379
7696
|
return n;
|
|
7380
7697
|
} : n;
|
|
@@ -7492,13 +7809,13 @@ var tc = /* @__PURE__ */ function() {
|
|
|
7492
7809
|
return this[me].indexedRules = a.rules, this[me].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
|
|
7493
7810
|
}, t.buildIndexFor = function(r) {
|
|
7494
7811
|
for (var n = /* @__PURE__ */ Object.create(null), a = this[me].RuleType, c = !0, l = !1, h = 0; h < r.length; h++) {
|
|
7495
|
-
var y = new a(r[h]),
|
|
7812
|
+
var y = new a(r[h]), w = this.expandActions(y.actions), O = Ys(y.subject), N = r.length - h - 1;
|
|
7496
7813
|
c = !!(c && y.inverted), !l && y.fields && (l = !0);
|
|
7497
7814
|
for (var U = 0; U < O.length; U++) {
|
|
7498
7815
|
var $ = O[U];
|
|
7499
7816
|
n[$] = n[$] || /* @__PURE__ */ Object.create(null);
|
|
7500
|
-
for (var re = 0; re <
|
|
7501
|
-
var de =
|
|
7817
|
+
for (var re = 0; re < w.length; re++) {
|
|
7818
|
+
var de = w[re];
|
|
7502
7819
|
n[$][de] = n[$][de] || /* @__PURE__ */ Object.create(null), n[$][de][N] = y;
|
|
7503
7820
|
}
|
|
7504
7821
|
}
|
|
@@ -7640,13 +7957,13 @@ function cc(e, t, s) {
|
|
|
7640
7957
|
evaluating: a = void 0,
|
|
7641
7958
|
shallow: c = !0,
|
|
7642
7959
|
onError: l = oc
|
|
7643
|
-
} = r, h =
|
|
7644
|
-
let
|
|
7960
|
+
} = r, h = Re(!n), y = c ? On(t) : Re(t);
|
|
7961
|
+
let w = 0;
|
|
7645
7962
|
return cr(async (O) => {
|
|
7646
7963
|
if (!h.value)
|
|
7647
7964
|
return;
|
|
7648
|
-
|
|
7649
|
-
const N =
|
|
7965
|
+
w++;
|
|
7966
|
+
const N = w;
|
|
7650
7967
|
let U = !1;
|
|
7651
7968
|
a && Promise.resolve().then(() => {
|
|
7652
7969
|
a.value = !0;
|
|
@@ -7657,11 +7974,11 @@ function cc(e, t, s) {
|
|
|
7657
7974
|
a && (a.value = !1), U || re();
|
|
7658
7975
|
});
|
|
7659
7976
|
});
|
|
7660
|
-
N ===
|
|
7977
|
+
N === w && (y.value = $);
|
|
7661
7978
|
} catch ($) {
|
|
7662
7979
|
l($);
|
|
7663
7980
|
} finally {
|
|
7664
|
-
a && N ===
|
|
7981
|
+
a && N === w && (a.value = !1), U = !0;
|
|
7665
7982
|
}
|
|
7666
7983
|
}), n ? Os(() => (h.value = !0, y.value)) : y;
|
|
7667
7984
|
}
|
|
@@ -7748,7 +8065,7 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
7748
8065
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
7749
8066
|
}, vc = {
|
|
7750
8067
|
noPermission: bc
|
|
7751
|
-
},
|
|
8068
|
+
}, wc = { class: "w-full h-full flex justify-center items-center" }, Bc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Mc = { class: "w-[300px] h-[300px]" }, Cc = ["src"], Dc = { class: "text-2xl" }, xc = { class: "text-xl" }, jc = /* @__PURE__ */ ot({
|
|
7752
8069
|
__name: "NoPermission",
|
|
7753
8070
|
setup(e) {
|
|
7754
8071
|
const { t } = mr({
|
|
@@ -7759,17 +8076,17 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
7759
8076
|
"th-TH": vc
|
|
7760
8077
|
}
|
|
7761
8078
|
});
|
|
7762
|
-
return (s, r) => (ct(), ur("div",
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
src:
|
|
8079
|
+
return (s, r) => (ct(), ur("div", wc, [
|
|
8080
|
+
Se("div", Bc, [
|
|
8081
|
+
Se("div", Mc, [
|
|
8082
|
+
Se("img", {
|
|
8083
|
+
src: Ue(mc),
|
|
7767
8084
|
class: "w-full h-full"
|
|
7768
8085
|
}, null, 8, Cc)
|
|
7769
8086
|
]),
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
8087
|
+
Se("div", null, [
|
|
8088
|
+
Se("h1", Dc, Ls(Ue(t)("noPermission.title")), 1),
|
|
8089
|
+
Se("h2", xc, Ls(Ue(t)("noPermission.subtitle")), 1)
|
|
7773
8090
|
])
|
|
7774
8091
|
])
|
|
7775
8092
|
]));
|
|
@@ -7778,7 +8095,7 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
7778
8095
|
__name: "PermissionWrapper",
|
|
7779
8096
|
setup(e) {
|
|
7780
8097
|
const t = Ac();
|
|
7781
|
-
return (s, r) =>
|
|
8098
|
+
return (s, r) => Ue(t) === Ue(Vs).Denied ? (ct(), Ut(jc, { key: 0 })) : Ue(t) === Ue(Vs).Allowed ? lr(s.$slots, "default", { key: 1 }) : Fn("", !0);
|
|
7782
8099
|
}
|
|
7783
8100
|
});
|
|
7784
8101
|
function Lt(e) {
|
|
@@ -7790,7 +8107,7 @@ function Lt(e) {
|
|
|
7790
8107
|
};
|
|
7791
8108
|
}
|
|
7792
8109
|
function Yc(e, t) {
|
|
7793
|
-
const s =
|
|
8110
|
+
const s = Re({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
7794
8111
|
function r() {
|
|
7795
8112
|
if (e.value) {
|
|
7796
8113
|
const a = e.value.getBoundingClientRect();
|
|
@@ -7814,7 +8131,7 @@ function Yc(e, t) {
|
|
|
7814
8131
|
const Gc = /* @__PURE__ */ ot({
|
|
7815
8132
|
__name: "FullWrapper",
|
|
7816
8133
|
setup(e) {
|
|
7817
|
-
const t =
|
|
8134
|
+
const t = Tn(), s = Re(null), r = Yc(s), n = Os(() => {
|
|
7818
8135
|
var l;
|
|
7819
8136
|
const c = t.isAtMost("sm") ? 56 : 0;
|
|
7820
8137
|
return {
|
|
@@ -7836,7 +8153,7 @@ const Gc = /* @__PURE__ */ ot({
|
|
|
7836
8153
|
const r = Fs("FmCircularProgress");
|
|
7837
8154
|
return ct(), Ut(Gc, null, {
|
|
7838
8155
|
default: Qn(() => [
|
|
7839
|
-
|
|
8156
|
+
Se("div", Vc, [
|
|
7840
8157
|
Rn(r, { size: "xl" })
|
|
7841
8158
|
])
|
|
7842
8159
|
]),
|
|
@@ -7844,7 +8161,7 @@ const Gc = /* @__PURE__ */ ot({
|
|
|
7844
8161
|
});
|
|
7845
8162
|
};
|
|
7846
8163
|
}
|
|
7847
|
-
}), Fe = (e) =>
|
|
8164
|
+
}), Fe = (e) => kn({
|
|
7848
8165
|
loader: e,
|
|
7849
8166
|
loadingComponent: Pc
|
|
7850
8167
|
});
|
|
@@ -7858,10 +8175,10 @@ const vs = (e) => ({
|
|
|
7858
8175
|
}
|
|
7859
8176
|
]
|
|
7860
8177
|
}
|
|
7861
|
-
}), Oc = Lt(Fe(() => import("./Main-
|
|
7862
|
-
Fe(() => import("./AuditLogList-
|
|
7863
|
-
), Ic = Lt(Fe(() => import("./Main-
|
|
7864
|
-
() => import("./PermissionSetList-
|
|
8178
|
+
}), Oc = Lt(Fe(() => import("./Main-Dn1TfDRj.js"))), Fc = Lt(Fe(() => import("./Main-D3TSdtSE.js"))), qc = Lt(
|
|
8179
|
+
Fe(() => import("./AuditLogList-AGlAsWwd.js"))
|
|
8180
|
+
), Ic = Lt(Fe(() => import("./Main-BLh16xRg.js"))), Hc = Fe(() => import("./EmployeeList-KvjoGI87.js")), Xc = Fe(() => import("./RoleList-v8McRCnz.js")), Qc = Fe(() => import("./TimesheetList-C1OWa6kf.js")), Rc = Fe(() => import("./TeamMemberList-BYQnNIhT.js")), kc = Fe(
|
|
8181
|
+
() => import("./PermissionSetList-Ds69m9UU.js")
|
|
7865
8182
|
), il = [
|
|
7866
8183
|
{
|
|
7867
8184
|
path: "/",
|
|
@@ -7914,7 +8231,7 @@ const vs = (e) => ({
|
|
|
7914
8231
|
{
|
|
7915
8232
|
path: "role",
|
|
7916
8233
|
name: "team-role",
|
|
7917
|
-
component:
|
|
8234
|
+
component: kc
|
|
7918
8235
|
}
|
|
7919
8236
|
]
|
|
7920
8237
|
},
|
|
@@ -7923,7 +8240,7 @@ const vs = (e) => ({
|
|
|
7923
8240
|
name: "pos-grant",
|
|
7924
8241
|
component: Ic
|
|
7925
8242
|
}
|
|
7926
|
-
],
|
|
8243
|
+
], Tc = /* @__PURE__ */ ot({
|
|
7927
8244
|
__name: "Navigator",
|
|
7928
8245
|
emits: ["close-navigation"],
|
|
7929
8246
|
setup(e, { emit: t }) {
|
|
@@ -7966,7 +8283,7 @@ const vs = (e) => ({
|
|
|
7966
8283
|
}), s("close-navigation");
|
|
7967
8284
|
}
|
|
7968
8285
|
}), h;
|
|
7969
|
-
}), l =
|
|
8286
|
+
}), l = Re();
|
|
7970
8287
|
return cr(() => {
|
|
7971
8288
|
var y;
|
|
7972
8289
|
let h = (y = n.currentRoute.value) == null ? void 0 : y.name;
|
|
@@ -7991,8 +8308,8 @@ const vs = (e) => ({
|
|
|
7991
8308
|
}
|
|
7992
8309
|
l.value !== h && (l.value = h);
|
|
7993
8310
|
}), (h, y) => {
|
|
7994
|
-
const
|
|
7995
|
-
return ct(), Ut(
|
|
8311
|
+
const w = Fs("FmCollapsibleTabs");
|
|
8312
|
+
return ct(), Ut(w, {
|
|
7996
8313
|
modelValue: l.value,
|
|
7997
8314
|
"onUpdate:modelValue": y[0] || (y[0] = (O) => l.value = O),
|
|
7998
8315
|
items: c.value,
|
|
@@ -8038,23 +8355,23 @@ var Ps = { exports: {} };
|
|
|
8038
8355
|
};
|
|
8039
8356
|
function a(f, u, o, g) {
|
|
8040
8357
|
return new (o || (o = Promise))(function(A, b) {
|
|
8041
|
-
function M(
|
|
8358
|
+
function M(k) {
|
|
8042
8359
|
try {
|
|
8043
|
-
F(g.next(
|
|
8360
|
+
F(g.next(k));
|
|
8044
8361
|
} catch (j) {
|
|
8045
8362
|
b(j);
|
|
8046
8363
|
}
|
|
8047
8364
|
}
|
|
8048
|
-
function V(
|
|
8365
|
+
function V(k) {
|
|
8049
8366
|
try {
|
|
8050
|
-
F(g.throw(
|
|
8367
|
+
F(g.throw(k));
|
|
8051
8368
|
} catch (j) {
|
|
8052
8369
|
b(j);
|
|
8053
8370
|
}
|
|
8054
8371
|
}
|
|
8055
|
-
function F(
|
|
8372
|
+
function F(k) {
|
|
8056
8373
|
var j;
|
|
8057
|
-
|
|
8374
|
+
k.done ? A(k.value) : (j = k.value, j instanceof o ? j : new o(function(z) {
|
|
8058
8375
|
z(j);
|
|
8059
8376
|
})).then(M, V);
|
|
8060
8377
|
}
|
|
@@ -8070,7 +8387,7 @@ var Ps = { exports: {} };
|
|
|
8070
8387
|
return this;
|
|
8071
8388
|
}), b;
|
|
8072
8389
|
function V(F) {
|
|
8073
|
-
return function(
|
|
8390
|
+
return function(k) {
|
|
8074
8391
|
return function(j) {
|
|
8075
8392
|
if (o) throw new TypeError("Generator is already executing.");
|
|
8076
8393
|
for (; M; ) try {
|
|
@@ -8116,7 +8433,7 @@ var Ps = { exports: {} };
|
|
|
8116
8433
|
}
|
|
8117
8434
|
if (5 & j[0]) throw j[1];
|
|
8118
8435
|
return { value: j[0] ? j[1] : void 0, done: !0 };
|
|
8119
|
-
}([F,
|
|
8436
|
+
}([F, k]);
|
|
8120
8437
|
};
|
|
8121
8438
|
}
|
|
8122
8439
|
}
|
|
@@ -8156,7 +8473,7 @@ var Ps = { exports: {} };
|
|
|
8156
8473
|
Object.keys(u || {}).includes(g) || o.push(g);
|
|
8157
8474
|
}), Object.keys(o).length ? o : null;
|
|
8158
8475
|
}
|
|
8159
|
-
var
|
|
8476
|
+
var w, O;
|
|
8160
8477
|
function N(f, u, o) {
|
|
8161
8478
|
var g = "shortString", A = !0;
|
|
8162
8479
|
typeof o == "number" && (g = "javaDouble", A = !1), f[g] = f[g] || {}, f[g][u] = A ? o + "" : o;
|
|
@@ -8175,33 +8492,33 @@ var Ps = { exports: {} };
|
|
|
8175
8492
|
}
|
|
8176
8493
|
(function(f) {
|
|
8177
8494
|
f.NONE = "NONE", f.DEFAULT_FLAGS = "DEFAULT_FLAGS", f.CACHE = "CACHE", f.SERVER = "SERVER";
|
|
8178
|
-
})(
|
|
8179
|
-
var de, ne = null, Kt = "FLAGSMITH_EVENT", be = Kt,
|
|
8495
|
+
})(w || (w = {}));
|
|
8496
|
+
var de, ne = null, Kt = "FLAGSMITH_EVENT", be = Kt, Ne = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Ct = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
|
|
8180
8497
|
function f(u) {
|
|
8181
8498
|
var o = this;
|
|
8182
8499
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
8183
8500
|
var g = o, A = g.api, b = g.evaluationContext;
|
|
8184
8501
|
o.log("Get Flags"), o.isLoading = !0, o.loadingState.isFetching || o.setLoadingState(n(n({}, o.loadingState), { isFetching: !0 }));
|
|
8185
8502
|
var M = "".concat(o.getContext().identity), V = function(F) {
|
|
8186
|
-
var
|
|
8503
|
+
var k, j, z, ce;
|
|
8187
8504
|
if (F && M === "".concat(o.getContext().identity)) {
|
|
8188
|
-
var
|
|
8505
|
+
var Be = F.flags, ge = F.traits, ve = F.identifier;
|
|
8189
8506
|
o.isLoading = !1;
|
|
8190
8507
|
var pe = {}, fe = {};
|
|
8191
|
-
ge = ge || [], (
|
|
8508
|
+
ge = ge || [], (Be = Be || []).forEach(function(W) {
|
|
8192
8509
|
pe[W.feature.name.toLowerCase().replace(/ /g, "_")] = { id: W.feature.id, enabled: W.enabled, value: W.feature_state_value };
|
|
8193
8510
|
}), ge.forEach(function(W) {
|
|
8194
8511
|
fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
|
|
8195
8512
|
}), o.oldFlags = n({}, o.flags);
|
|
8196
|
-
var Me = y(o.oldFlags, pe), mt = y((
|
|
8197
|
-
if ((ve || Object.keys(fe).length) && (o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: fe }), ve && (o.evaluationContext.identity.identifier = ve)), o.flags = pe, o.updateStorage(), o._onChange(o.oldFlags, { isFromServer: !0, flagsChanged: Me, traitsChanged: mt }, o._loadedState(null,
|
|
8513
|
+
var Me = y(o.oldFlags, pe), mt = y((k = o.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
|
|
8514
|
+
if ((ve || Object.keys(fe).length) && (o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: fe }), ve && (o.evaluationContext.identity.identifier = ve)), o.flags = pe, o.updateStorage(), o._onChange(o.oldFlags, { isFromServer: !0, flagsChanged: Me, traitsChanged: mt }, o._loadedState(null, w.SERVER)), o.datadogRum) try {
|
|
8198
8515
|
if (o.datadogRum.trackTraits) {
|
|
8199
8516
|
var dt = {};
|
|
8200
8517
|
Object.keys(((j = o.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
|
|
8201
8518
|
dt[ut + W] = o.getTrait(W);
|
|
8202
8519
|
});
|
|
8203
|
-
var
|
|
8204
|
-
o.log("Setting Datadog user",
|
|
8520
|
+
var Je = n(n(n({}, o.datadogRum.client.getUser()), { id: o.datadogRum.client.getUser().id || ((z = o.evaluationContext.identity) === null || z === void 0 ? void 0 : z.identifier) }), dt);
|
|
8521
|
+
o.log("Setting Datadog user", Je), o.datadogRum.client.setUser(Je);
|
|
8205
8522
|
}
|
|
8206
8523
|
} catch (W) {
|
|
8207
8524
|
console.error(W);
|
|
@@ -8219,14 +8536,14 @@ var Ps = { exports: {} };
|
|
|
8219
8536
|
}
|
|
8220
8537
|
};
|
|
8221
8538
|
return b.identity ? Promise.all([b.identity.traits && Object.keys(b.identity.traits).length || !b.identity.identifier ? o.getJSON(A + "identities/", "POST", JSON.stringify({ identifier: b.identity.identifier, transient: b.identity.transient, traits: Object.entries(b.identity.traits).map(function(F) {
|
|
8222
|
-
var
|
|
8223
|
-
return { trait_key:
|
|
8539
|
+
var k = F[0], j = F[1];
|
|
8540
|
+
return { trait_key: k, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
|
|
8224
8541
|
}).filter(function(F) {
|
|
8225
8542
|
return F.trait_value !== void 0 || (o.log("Warning - attempted to set an undefined trait value for key", F.trait_key), !1);
|
|
8226
8543
|
}) })) : o.getJSON(A + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
|
|
8227
8544
|
return o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: {} }), V(F == null ? void 0 : F[0]);
|
|
8228
8545
|
}).catch(function(F) {
|
|
8229
|
-
var
|
|
8546
|
+
var k = F.message, j = new Error(k);
|
|
8230
8547
|
return Promise.reject(j);
|
|
8231
8548
|
}) : o.getJSON(A + "flags/").then(function(F) {
|
|
8232
8549
|
return V({ flags: F, traits: void 0 });
|
|
@@ -8241,7 +8558,7 @@ var Ps = { exports: {} };
|
|
|
8241
8558
|
}).catch(function(A) {
|
|
8242
8559
|
o.log("Exception fetching evaluationEvent", A);
|
|
8243
8560
|
}) : void 0;
|
|
8244
|
-
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source:
|
|
8561
|
+
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, A, b) {
|
|
8245
8562
|
var M = o.flags && o.flags[g.toLowerCase().replace(/ /g, "_")], V = null;
|
|
8246
8563
|
if (M && (V = M.value), A != null && A.skipAnalytics || b || o.evaluateFlag(g, "VALUE"), V === null && (A == null ? void 0 : A.fallback) !== void 0) return A.fallback;
|
|
8247
8564
|
if (A != null && A.json) try {
|
|
@@ -8285,13 +8602,13 @@ var Ps = { exports: {} };
|
|
|
8285
8602
|
}, this.getJSON = function(g, A, b) {
|
|
8286
8603
|
var M, V = o;
|
|
8287
8604
|
V.evaluationContext;
|
|
8288
|
-
var F = V.headers,
|
|
8289
|
-
o.evaluationContext.environment && (
|
|
8605
|
+
var F = V.headers, k = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
|
|
8606
|
+
o.evaluationContext.environment && (k.headers["X-Environment-Key"] = o.evaluationContext.environment.apiKey), A && A !== "GET" && (k.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(k.headers, F), O || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
8290
8607
|
var j = "".concat((M = o.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
|
|
8291
|
-
return O(g,
|
|
8292
|
-
var ce,
|
|
8608
|
+
return O(g, k).then(function(z) {
|
|
8609
|
+
var ce, Be, ge = "".concat((ce = o.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
|
|
8293
8610
|
if (j === ge) {
|
|
8294
|
-
var ve = (
|
|
8611
|
+
var ve = (Be = z.headers) === null || Be === void 0 ? void 0 : Be.get("x-flagsmith-document-updated-at");
|
|
8295
8612
|
if (ve) try {
|
|
8296
8613
|
var pe = parseFloat(ve);
|
|
8297
8614
|
if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
@@ -8324,32 +8641,32 @@ var Ps = { exports: {} };
|
|
|
8324
8641
|
return f.prototype.init = function(u) {
|
|
8325
8642
|
var o, g, A;
|
|
8326
8643
|
return a(this, void 0, void 0, function() {
|
|
8327
|
-
var b, M, V, F,
|
|
8328
|
-
return c(this, function(
|
|
8329
|
-
switch (
|
|
8644
|
+
var b, M, V, F, k, j, z, ce, Be, ge, ve, pe, fe, Me, mt, dt, Je, le, W, Jt, gt, ks, _e, _t, Ts, Ns, $t, Zs, es, pt, $e, Ss, ue = this;
|
|
8645
|
+
return c(this, function(we) {
|
|
8646
|
+
switch (we.label) {
|
|
8330
8647
|
case 0:
|
|
8331
|
-
b = re(u.evaluationContext || this.evaluationContext),
|
|
8648
|
+
b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
|
|
8332
8649
|
case 1:
|
|
8333
|
-
if (
|
|
8650
|
+
if (we.trys.push([1, 13, , 14]), M = u.environmentID, V = u.api, F = V === void 0 ? Ne : V, k = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, Be = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Me = u.enableDynatrace, mt = u.enableAnalytics, dt = u.realtime, Je = u.eventSourceUrl, le = Je === void 0 ? "https://realtime.flagsmith.com/" : Je, W = u.AsyncStorage, Jt = u.identity, gt = u.traits, ks = u.state, _e = u.cacheOptions, _t = u.angularHttpClient, Ts = u._trigger, Ns = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
8334
8651
|
if (b.identity = Jt || gt ? { identifier: Jt, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
|
|
8335
8652
|
return [he[0], { value: he[1] }];
|
|
8336
|
-
})) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers =
|
|
8337
|
-
ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })),
|
|
8338
|
-
}, this.enableLogs = fe || !1, this.cacheOptions =
|
|
8653
|
+
})) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = k, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, $t = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ts || this._trigger, this._triggerLoadingState = Ns || this._triggerLoadingState, this.onError = function(he) {
|
|
8654
|
+
ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Be == null || Be(he);
|
|
8655
|
+
}, this.enableLogs = fe || !1, this.cacheOptions = _e ? { skipAPI: !!_e.skipAPI, ttl: _e.ttl || 0, storageKey: _e.storageKey, loadStale: !!_e.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."), ve && (O = ve), this.enableAnalytics = mt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!z, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), dt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(ks), this.log("Initialising with properties", u, this), Me && (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), _t && (O = /* @__PURE__ */ function(he) {
|
|
8339
8656
|
return function(Ce, De) {
|
|
8340
|
-
var qe = De.headers, K = De.method,
|
|
8341
|
-
return new Promise(function(
|
|
8657
|
+
var qe = De.headers, K = De.method, et = De.body;
|
|
8658
|
+
return new Promise(function(Ze) {
|
|
8342
8659
|
switch (K) {
|
|
8343
8660
|
case "GET":
|
|
8344
8661
|
return he.get(Ce, { headers: qe }).subscribe(function(Pe) {
|
|
8345
|
-
|
|
8662
|
+
Ze({ ok: !0, text: function() {
|
|
8346
8663
|
return Promise.resolve(Pe);
|
|
8347
8664
|
} });
|
|
8348
8665
|
});
|
|
8349
8666
|
case "POST":
|
|
8350
8667
|
case "PUT":
|
|
8351
|
-
return he.post(Ce,
|
|
8352
|
-
|
|
8668
|
+
return he.post(Ce, et, { headers: qe }).subscribe(function(Pe) {
|
|
8669
|
+
Ze({ ok: !0, text: function() {
|
|
8353
8670
|
return Promise.resolve(Pe);
|
|
8354
8671
|
} });
|
|
8355
8672
|
});
|
|
@@ -8375,14 +8692,14 @@ var Ps = { exports: {} };
|
|
|
8375
8692
|
if (!ne || !this.canUseStorage) return [3, 8];
|
|
8376
8693
|
Zs = function(he, Ce) {
|
|
8377
8694
|
return a(ue, void 0, void 0, function() {
|
|
8378
|
-
var De, qe, K,
|
|
8695
|
+
var De, qe, K, et, Ze, Pe, ts, Us, ss, rs, ns, as, is, os, cs, ls, us, As, ms, ds, gs, ps, fs, hs, zs = this;
|
|
8379
8696
|
return c(this, function(Ie) {
|
|
8380
8697
|
switch (Ie.label) {
|
|
8381
8698
|
case 0:
|
|
8382
8699
|
if (!Ce) return [3, 7];
|
|
8383
8700
|
De = null, qe = null, Ie.label = 1;
|
|
8384
8701
|
case 1:
|
|
8385
|
-
return Ie.trys.push([1, 5, , 6]), K = JSON.parse(Ce),
|
|
8702
|
+
return Ie.trys.push([1, 5, , 6]), K = JSON.parse(Ce), et = !1, Ze = !1, K && K.api === this.api && ((rs = (ss = K.evaluationContext) === null || ss === void 0 ? void 0 : ss.environment) === null || rs === void 0 ? void 0 : rs.apiKey) === ((ns = this.evaluationContext.environment) === null || ns === void 0 ? void 0 : ns.apiKey) && (Pe = !0, this.evaluationContext.identity && ((is = (as = K.evaluationContext) === null || as === void 0 ? void 0 : as.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((cs = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || cs === void 0 ? void 0 : cs.identifier) + " to " + this.evaluationContext.identity.identifier), Pe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Pe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Ze = !0, Pe = !0)), Pe && (et = !0, qe = y((ls = this.evaluationContext.identity) === null || ls === void 0 ? void 0 : ls.traits, (As = (us = K.evaluationContext) === null || us === void 0 ? void 0 : us.identity) === null || As === void 0 ? void 0 : As.traits), De = y(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (ds = K.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity), { traits: n(n({}, ((ps = (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity) === null || ps === void 0 ? void 0 : ps.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ts = !pe && (!this.cacheOptions.skipAPI || Ze), this._onChange(null, { isFromServer: !1, flagsChanged: De, traitsChanged: qe }, this._loadedState(null, w.CACHE, ts)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Ze && this.log("Skipping API, using cache"), ts && this.getFlags().catch(function(Yn) {
|
|
8386
8703
|
var ys;
|
|
8387
8704
|
(ys = zs.onError) === null || ys === void 0 || ys.call(zs, Yn);
|
|
8388
8705
|
}), [3, 4]) : [3, 2];
|
|
@@ -8401,10 +8718,10 @@ var Ps = { exports: {} };
|
|
|
8401
8718
|
case 8:
|
|
8402
8719
|
return Ie.sent(), [3, 10];
|
|
8403
8720
|
case 9:
|
|
8404
|
-
if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (fs = this.evaluationContext.identity) === null || fs === void 0 ? void 0 : fs.traits) }, this._loadedState(null,
|
|
8721
|
+
if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (fs = this.evaluationContext.identity) === null || fs === void 0 ? void 0 : fs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
8405
8722
|
else {
|
|
8406
8723
|
if (!this.flags) throw new Error($t);
|
|
8407
|
-
this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null,
|
|
8724
|
+
this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
8408
8725
|
}
|
|
8409
8726
|
Ie.label = 10;
|
|
8410
8727
|
case 10:
|
|
@@ -8412,32 +8729,32 @@ var Ps = { exports: {} };
|
|
|
8412
8729
|
}
|
|
8413
8730
|
});
|
|
8414
8731
|
});
|
|
8415
|
-
},
|
|
8732
|
+
}, we.label = 2;
|
|
8416
8733
|
case 2:
|
|
8417
|
-
return
|
|
8734
|
+
return we.trys.push([2, 7, , 8]), ne.getItemSync ? (es = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
|
|
8418
8735
|
case 3:
|
|
8419
8736
|
return [4, ne.getItem(this.getStorageKey())];
|
|
8420
8737
|
case 4:
|
|
8421
|
-
es =
|
|
8738
|
+
es = we.sent(), we.label = 5;
|
|
8422
8739
|
case 5:
|
|
8423
8740
|
return [4, Zs(null, es)];
|
|
8424
8741
|
case 6:
|
|
8425
8742
|
case 7:
|
|
8426
|
-
return
|
|
8743
|
+
return we.sent(), [3, 8];
|
|
8427
8744
|
case 8:
|
|
8428
8745
|
return [3, 12];
|
|
8429
8746
|
case 9:
|
|
8430
8747
|
return pe ? [3, 11] : [4, this.getFlags()];
|
|
8431
8748
|
case 10:
|
|
8432
|
-
return
|
|
8749
|
+
return we.sent(), [3, 12];
|
|
8433
8750
|
case 11:
|
|
8434
|
-
if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ge), traitsChanged: y({}, (o = b.identity) === null || o === void 0 ? void 0 : o.traits) }, this._loadedState(null,
|
|
8435
|
-
else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = $t), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt,
|
|
8436
|
-
|
|
8751
|
+
if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ge), traitsChanged: y({}, (o = b.identity) === null || o === void 0 ? void 0 : o.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
|
|
8752
|
+
else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = $t), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, w.DEFAULT_FLAGS)), pt)) throw new Error(pt);
|
|
8753
|
+
we.label = 12;
|
|
8437
8754
|
case 12:
|
|
8438
8755
|
return [3, 14];
|
|
8439
8756
|
case 13:
|
|
8440
|
-
throw
|
|
8757
|
+
throw $e = we.sent(), this.log("Error during initialisation ", $e), Ss = $e instanceof Error ? $e : new Error("".concat($e)), (A = this.onError) === null || A === void 0 || A.call(this, Ss), $e;
|
|
8441
8758
|
case 14:
|
|
8442
8759
|
return [2];
|
|
8443
8760
|
}
|
|
@@ -8453,7 +8770,7 @@ var Ps = { exports: {} };
|
|
|
8453
8770
|
}, f.prototype.getState = function() {
|
|
8454
8771
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
8455
8772
|
}, f.prototype.setState = function(u) {
|
|
8456
|
-
u && (this.initialised = !0, this.api = u.api || this.api ||
|
|
8773
|
+
u && (this.initialised = !0, this.api = u.api || this.api || Ne, this.flags = u.flags || this.flags, this.evaluationContext = u.evaluationContext || this.evaluationContext, this.evaluationEvent = u.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
|
|
8457
8774
|
}, f.prototype.logout = function() {
|
|
8458
8775
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
8459
8776
|
}, f.prototype.startListening = function(u) {
|
|
@@ -8498,7 +8815,7 @@ var Ps = { exports: {} };
|
|
|
8498
8815
|
var u = f.fetch, o = f.AsyncStorage, g = f.eventSource;
|
|
8499
8816
|
return new At({ fetch: u, AsyncStorage: o, eventSource: g });
|
|
8500
8817
|
}
|
|
8501
|
-
var p,
|
|
8818
|
+
var p, B = (p = function(f, u) {
|
|
8502
8819
|
return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, g) {
|
|
8503
8820
|
o.__proto__ = g;
|
|
8504
8821
|
} || function(o, g) {
|
|
@@ -8541,7 +8858,7 @@ var Ps = { exports: {} };
|
|
|
8541
8858
|
return f.call(this, `EventSource not available.
|
|
8542
8859
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
8543
8860
|
}
|
|
8544
|
-
return
|
|
8861
|
+
return B(u, f), u;
|
|
8545
8862
|
}(Error), X = function() {
|
|
8546
8863
|
function f(u, o) {
|
|
8547
8864
|
var g = this;
|
|
@@ -8639,11 +8956,11 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
8639
8956
|
return j.toLowerCase() in V;
|
|
8640
8957
|
} } };
|
|
8641
8958
|
};
|
|
8642
|
-
for (var
|
|
8959
|
+
for (var k in A.open(u.method || "get", f, !0), A.onload = function() {
|
|
8643
8960
|
A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
|
|
8644
8961
|
b.push(z = z.toLowerCase()), M.push([z, ce]), V[z] = V[z] ? V[z] + "," + ce : ce;
|
|
8645
8962
|
}), o(F());
|
|
8646
|
-
}, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(
|
|
8963
|
+
}, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(k, u.headers[k]);
|
|
8647
8964
|
A.send(u.body || null);
|
|
8648
8965
|
});
|
|
8649
8966
|
}, te = d({ AsyncStorage: r, fetch: _, eventSource: X });
|
|
@@ -8756,59 +9073,59 @@ var Nc = Ps.exports, Zc = {
|
|
|
8756
9073
|
reset() {
|
|
8757
9074
|
this.flagsmithClient = null, this.userContext = null;
|
|
8758
9075
|
}
|
|
8759
|
-
}, Dt(xe, "instance"), xe), Uc = Sc.getInstance(), ht =
|
|
9076
|
+
}, Dt(xe, "instance"), xe), Uc = Sc.getInstance(), ht = Re(!1), jt = Re([]), st = Re(null);
|
|
8760
9077
|
function zc(e = Uc) {
|
|
8761
|
-
const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (
|
|
9078
|
+
const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
|
|
8762
9079
|
if (ht.value) {
|
|
8763
9080
|
console.warn("FeatureFlag is already initialized.");
|
|
8764
9081
|
return;
|
|
8765
9082
|
}
|
|
8766
9083
|
try {
|
|
8767
|
-
await e.init(
|
|
9084
|
+
await e.init(w, O), jt.value = await e.getFlags(), ht.value = !0, st.value = null;
|
|
8768
9085
|
} catch (N) {
|
|
8769
|
-
console.error("Failed to initialize feature flags:", N),
|
|
9086
|
+
console.error("Failed to initialize feature flags:", N), st.value = N;
|
|
8770
9087
|
}
|
|
8771
|
-
}, r = async (
|
|
9088
|
+
}, r = async (w) => {
|
|
8772
9089
|
if (t())
|
|
8773
9090
|
try {
|
|
8774
|
-
await e.setUser(
|
|
9091
|
+
await e.setUser(w), jt.value = await e.getFlags(), st.value = null;
|
|
8775
9092
|
} catch (O) {
|
|
8776
|
-
console.error("Failed to set user:", O),
|
|
9093
|
+
console.error("Failed to set user:", O), st.value = O;
|
|
8777
9094
|
}
|
|
8778
|
-
}, n = async (
|
|
9095
|
+
}, n = async (w) => r(`${or}-${w}`), a = (w, O, N = null) => {
|
|
8779
9096
|
if (!t()) return N;
|
|
8780
9097
|
try {
|
|
8781
|
-
return e.getFlagValue(
|
|
9098
|
+
return e.getFlagValue(w, O) ?? N;
|
|
8782
9099
|
} catch (U) {
|
|
8783
|
-
return console.error(`Error getting flag value for ${
|
|
9100
|
+
return console.error(`Error getting flag value for ${w}:`, U), N;
|
|
8784
9101
|
}
|
|
8785
|
-
}, c = (
|
|
9102
|
+
}, c = (w, O) => {
|
|
8786
9103
|
if (!t()) return O ?? null;
|
|
8787
9104
|
try {
|
|
8788
|
-
return e.getFlag(
|
|
9105
|
+
return e.getFlag(w) ?? O ?? null;
|
|
8789
9106
|
} catch (N) {
|
|
8790
|
-
return console.error(`Error getting flag for ${
|
|
9107
|
+
return console.error(`Error getting flag for ${w}:`, N), O ?? null;
|
|
8791
9108
|
}
|
|
8792
|
-
}, l = async (
|
|
9109
|
+
}, l = async (w, O, N = null, U) => {
|
|
8793
9110
|
if (!t()) return N;
|
|
8794
9111
|
try {
|
|
8795
|
-
return await e.getUserFlagValue(
|
|
9112
|
+
return await e.getUserFlagValue(w, O, N, U);
|
|
8796
9113
|
} catch ($) {
|
|
8797
9114
|
return console.error(`Error getting user flag value for ${O}:`, $), N;
|
|
8798
9115
|
}
|
|
8799
|
-
}, h = async (
|
|
9116
|
+
}, h = async (w, O, N = null, U) => l(`${or}-${w}`, O, N, U), y = () => {
|
|
8800
9117
|
try {
|
|
8801
9118
|
e.reset();
|
|
8802
|
-
} catch (
|
|
8803
|
-
console.error("Error resetting feature flags:",
|
|
9119
|
+
} catch (w) {
|
|
9120
|
+
console.error("Error resetting feature flags:", w);
|
|
8804
9121
|
} finally {
|
|
8805
|
-
jt.value = [], ht.value = !1,
|
|
9122
|
+
jt.value = [], ht.value = !1, st.value = null;
|
|
8806
9123
|
}
|
|
8807
9124
|
};
|
|
8808
9125
|
return {
|
|
8809
9126
|
flags: bs(jt),
|
|
8810
9127
|
isInitialized: bs(ht),
|
|
8811
|
-
error: bs(
|
|
9128
|
+
error: bs(st),
|
|
8812
9129
|
init: s,
|
|
8813
9130
|
setUser: r,
|
|
8814
9131
|
setBusiness: n,
|
|
@@ -8825,7 +9142,7 @@ const ol = /* @__PURE__ */ ot({
|
|
|
8825
9142
|
setup(e) {
|
|
8826
9143
|
const t = qs(), { init: s } = Wc();
|
|
8827
9144
|
return Ar(async () => {
|
|
8828
|
-
t.registerSidebarComponent(
|
|
9145
|
+
t.registerSidebarComponent(Tc), await s({
|
|
8829
9146
|
apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
8830
9147
|
});
|
|
8831
9148
|
}), (r, n) => {
|
|
@@ -8835,7 +9152,7 @@ const ol = /* @__PURE__ */ ot({
|
|
|
8835
9152
|
}
|
|
8836
9153
|
}), cl = () => {
|
|
8837
9154
|
const e = [
|
|
8838
|
-
|
|
9155
|
+
Ti,
|
|
8839
9156
|
Oi,
|
|
8840
9157
|
Ci,
|
|
8841
9158
|
Ji,
|