@feedmepos/mf-hrm-portal 2.0.18 → 2.0.19-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-CfvB_c7-.js → AuditLogList-ayMV64G1.js} +4 -4
- package/dist/{EmployeeList-Whx8sBTA.js → EmployeeList-D_ZkY6oL.js} +5 -5
- package/dist/{Main-D2LWkcaI.js → Main-CsUo2UeJ.js} +9 -9
- package/dist/{Main-CoGNATjU.js → Main-D_dew1Zy.js} +4 -4
- package/dist/{Main-C_Tm3462.js → Main-Dc9eZBpa.js} +5 -5
- package/dist/{PermissionSetList-RYl82f1k.js → PermissionSetList-CkRVYnaB.js} +48 -48
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BiImcVpI.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DF26-RE9.js} +820 -820
- package/dist/{RoleList-D0KdTM9G.js → RoleList-D6BdbJhj.js} +7 -7
- package/dist/TeamMemberList-Cf82_HoM.js +1114 -0
- package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang--Ukpicpg.js +34 -0
- package/dist/{TimesheetList-BzYGHK7n.js → TimesheetList-Bu47lfyS.js} +6 -6
- package/dist/{app-BMnTcaqa.js → app-rZIFa5rc.js} +850 -850
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CTzjqhN9.js → dayjs.min-BGndyuOo.js} +1 -1
- package/dist/{employee-DeAtPDRi.js → employee-C9_9zcbo.js} +3 -3
- package/dist/{iteration-L53uoXdY.js → iteration-BOjSUDXb.js} +389 -388
- package/dist/{lodash-t9DlqugD.js → lodash-C3mSRK8f.js} +1 -1
- package/dist/{rule-BCN5fKAA.js → rule-CPun0Q97.js} +2 -2
- package/dist/src/api/account/index.d.ts +4 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/composables/useSupportedCountries.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-D41pctAm.js → timesheet-BKF3Ow4F.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-fl7zMdUR.js → useAppStore-DBeAz_oF.js} +1 -1
- package/dist/{useLoading-BbpH9pow.js → useLoading-EAY7xVQ0.js} +1 -1
- package/dist/{useReportPermissions-qEea7Dnt.js → useReportPermissions-C0Bay1Db.js} +3 -3
- package/package.json +2 -2
- package/dist/TeamMemberList-DDBFCFlj.js +0 -1108
|
@@ -2530,656 +2530,7 @@ const _t = {
|
|
|
2530
2530
|
"th-TH": Nr,
|
|
2531
2531
|
"zh-Hant": Tr
|
|
2532
2532
|
};
|
|
2533
|
-
var
|
|
2534
|
-
function kr(e) {
|
|
2535
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2536
|
-
}
|
|
2537
|
-
var ws = { exports: {} };
|
|
2538
|
-
(function(e, A) {
|
|
2539
|
-
(function(u, c) {
|
|
2540
|
-
e.exports = c();
|
|
2541
|
-
})(Re, function() {
|
|
2542
|
-
return function(u) {
|
|
2543
|
-
var c = {};
|
|
2544
|
-
function r(m) {
|
|
2545
|
-
if (c[m]) return c[m].exports;
|
|
2546
|
-
var y = c[m] = { i: m, l: !1, exports: {} };
|
|
2547
|
-
return u[m].call(y.exports, y, y.exports, r), y.l = !0, y.exports;
|
|
2548
|
-
}
|
|
2549
|
-
return r.m = u, r.c = c, r.d = function(m, y, h) {
|
|
2550
|
-
r.o(m, y) || Object.defineProperty(m, y, { enumerable: !0, get: h });
|
|
2551
|
-
}, r.r = function(m) {
|
|
2552
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
2553
|
-
}, r.t = function(m, y) {
|
|
2554
|
-
if (1 & y && (m = r(m)), 8 & y || 4 & y && typeof m == "object" && m && m.__esModule) return m;
|
|
2555
|
-
var h = /* @__PURE__ */ Object.create(null);
|
|
2556
|
-
if (r.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: m }), 2 & y && typeof m != "string")
|
|
2557
|
-
for (var E in m)
|
|
2558
|
-
r.d(
|
|
2559
|
-
h,
|
|
2560
|
-
E,
|
|
2561
|
-
(function(Y) {
|
|
2562
|
-
return m[Y];
|
|
2563
|
-
}).bind(null, E)
|
|
2564
|
-
);
|
|
2565
|
-
return h;
|
|
2566
|
-
}, r.n = function(m) {
|
|
2567
|
-
var y = m && m.__esModule ? function() {
|
|
2568
|
-
return m.default;
|
|
2569
|
-
} : function() {
|
|
2570
|
-
return m;
|
|
2571
|
-
};
|
|
2572
|
-
return r.d(y, "a", y), y;
|
|
2573
|
-
}, r.o = function(m, y) {
|
|
2574
|
-
return Object.prototype.hasOwnProperty.call(m, y);
|
|
2575
|
-
}, r.p = "", r(r.s = 0);
|
|
2576
|
-
}([
|
|
2577
|
-
function(u, c, r) {
|
|
2578
|
-
u.exports = r(1);
|
|
2579
|
-
},
|
|
2580
|
-
function(u, c, r) {
|
|
2581
|
-
function m(i) {
|
|
2582
|
-
return (m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
2583
|
-
return typeof g;
|
|
2584
|
-
} : function(g) {
|
|
2585
|
-
return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
|
|
2586
|
-
})(i);
|
|
2587
|
-
}
|
|
2588
|
-
function y(i) {
|
|
2589
|
-
var g = "[object " + i + "]";
|
|
2590
|
-
return function(f) {
|
|
2591
|
-
return Object.prototype.toString.call(f) === g;
|
|
2592
|
-
};
|
|
2593
|
-
}
|
|
2594
|
-
r.r(c), r.d(c, "default", function() {
|
|
2595
|
-
return Ze;
|
|
2596
|
-
}), r.d(c, "compare", function() {
|
|
2597
|
-
return Fe;
|
|
2598
|
-
}), r.d(c, "comparable", function() {
|
|
2599
|
-
return Oe;
|
|
2600
|
-
});
|
|
2601
|
-
var h = y("Array"), E = y("Object"), Y = y("Function");
|
|
2602
|
-
function w(i, g) {
|
|
2603
|
-
return Y(i.get) ? i.get(g) : i[g];
|
|
2604
|
-
}
|
|
2605
|
-
function P(i) {
|
|
2606
|
-
return function(g, f) {
|
|
2607
|
-
if (!h(f) || !f.length) return i(g, f);
|
|
2608
|
-
for (var B = 0, C = f.length; B < C; B++)
|
|
2609
|
-
if (i(g, w(f, B))) return !0;
|
|
2610
|
-
return !1;
|
|
2611
|
-
};
|
|
2612
|
-
}
|
|
2613
|
-
function I(i) {
|
|
2614
|
-
return function(g, f) {
|
|
2615
|
-
if (!h(f) || !f.length) return i(g, f);
|
|
2616
|
-
for (var B = 0, C = f.length; B < C; B++)
|
|
2617
|
-
if (!i(g, w(f, B))) return !1;
|
|
2618
|
-
return !0;
|
|
2619
|
-
};
|
|
2620
|
-
}
|
|
2621
|
-
function H(i, g, f, B) {
|
|
2622
|
-
return i.validate(i.options, g, f, B);
|
|
2623
|
-
}
|
|
2624
|
-
var z = {
|
|
2625
|
-
$eq: P(function(i, g) {
|
|
2626
|
-
return i(g);
|
|
2627
|
-
}),
|
|
2628
|
-
$ne: I(function(i, g) {
|
|
2629
|
-
return i(g);
|
|
2630
|
-
}),
|
|
2631
|
-
$gt: P(function(i, g) {
|
|
2632
|
-
return i(g);
|
|
2633
|
-
}),
|
|
2634
|
-
$gte: P(function(i, g) {
|
|
2635
|
-
return i(g);
|
|
2636
|
-
}),
|
|
2637
|
-
$lt: P(function(i, g) {
|
|
2638
|
-
return i(g);
|
|
2639
|
-
}),
|
|
2640
|
-
$lte: P(function(i, g) {
|
|
2641
|
-
return i(g);
|
|
2642
|
-
}),
|
|
2643
|
-
$mod: P(function(i, g) {
|
|
2644
|
-
return i(g);
|
|
2645
|
-
}),
|
|
2646
|
-
$in: function(i, g) {
|
|
2647
|
-
return i(g);
|
|
2648
|
-
},
|
|
2649
|
-
$nin: function(i, g) {
|
|
2650
|
-
return i(g);
|
|
2651
|
-
},
|
|
2652
|
-
$not: function(i, g, f, B) {
|
|
2653
|
-
return i(g, f, B);
|
|
2654
|
-
},
|
|
2655
|
-
$type: function(i, g) {
|
|
2656
|
-
return i(g);
|
|
2657
|
-
},
|
|
2658
|
-
$all: function(i, g, f, B) {
|
|
2659
|
-
return z.$and(i, g, f, B);
|
|
2660
|
-
},
|
|
2661
|
-
$size: function(i, g) {
|
|
2662
|
-
return !!g && i === g.length;
|
|
2663
|
-
},
|
|
2664
|
-
$or: function(i, g, f, B) {
|
|
2665
|
-
for (var C = 0, D = i.length; C < D; C++)
|
|
2666
|
-
if (H(w(i, C), g, f, B)) return !0;
|
|
2667
|
-
return !1;
|
|
2668
|
-
},
|
|
2669
|
-
$nor: function(i, g, f, B) {
|
|
2670
|
-
return !z.$or(i, g, f, B);
|
|
2671
|
-
},
|
|
2672
|
-
$and: function(i, g, f, B) {
|
|
2673
|
-
for (var C = 0, D = i.length; C < D; C++)
|
|
2674
|
-
if (!H(w(i, C), g, f, B)) return !1;
|
|
2675
|
-
return !0;
|
|
2676
|
-
},
|
|
2677
|
-
$regex: P(function(i, g) {
|
|
2678
|
-
return typeof g == "string" && i.test(g);
|
|
2679
|
-
}),
|
|
2680
|
-
$where: function(i, g, f, B) {
|
|
2681
|
-
return i.call(g, g, f, B);
|
|
2682
|
-
},
|
|
2683
|
-
$elemMatch: function(i, g, f, B) {
|
|
2684
|
-
return h(g) ? !!~function(C, D) {
|
|
2685
|
-
for (var V = 0; V < C.length; V++)
|
|
2686
|
-
if (w(C, V), H(D, w(C, V))) return V;
|
|
2687
|
-
return -1;
|
|
2688
|
-
}(g, i) : H(i, g, f, B);
|
|
2689
|
-
},
|
|
2690
|
-
$exists: function(i, g, f, B) {
|
|
2691
|
-
return B.hasOwnProperty(f) === i;
|
|
2692
|
-
}
|
|
2693
|
-
}, S = {
|
|
2694
|
-
$eq: function(i, g, f) {
|
|
2695
|
-
var B = f.comparable, C = f.compare;
|
|
2696
|
-
return i instanceof RegExp ? P(function(D) {
|
|
2697
|
-
return typeof D == "string" && i.test(D);
|
|
2698
|
-
}) : i instanceof Function ? P(i) : h(i) && !i.length ? P(function(D) {
|
|
2699
|
-
return h(D) && !D.length;
|
|
2700
|
-
}) : P(
|
|
2701
|
-
i === null ? function(D) {
|
|
2702
|
-
return D == null;
|
|
2703
|
-
} : function(D) {
|
|
2704
|
-
return C(B(D), B(i)) === 0;
|
|
2705
|
-
}
|
|
2706
|
-
);
|
|
2707
|
-
},
|
|
2708
|
-
$gt: function(i, g, f) {
|
|
2709
|
-
var B = f.comparable, C = f.compare;
|
|
2710
|
-
return function(D) {
|
|
2711
|
-
return C(B(D), B(i)) > 0;
|
|
2712
|
-
};
|
|
2713
|
-
},
|
|
2714
|
-
$gte: function(i, g, f) {
|
|
2715
|
-
var B = f.comparable, C = f.compare;
|
|
2716
|
-
return function(D) {
|
|
2717
|
-
return C(B(D), B(i)) >= 0;
|
|
2718
|
-
};
|
|
2719
|
-
},
|
|
2720
|
-
$lt: function(i, g, f) {
|
|
2721
|
-
var B = f.comparable, C = f.compare;
|
|
2722
|
-
return function(D) {
|
|
2723
|
-
return C(B(D), B(i)) < 0;
|
|
2724
|
-
};
|
|
2725
|
-
},
|
|
2726
|
-
$lte: function(i, g, f) {
|
|
2727
|
-
var B = f.comparable, C = f.compare;
|
|
2728
|
-
return function(D) {
|
|
2729
|
-
return C(B(D), B(i)) <= 0;
|
|
2730
|
-
};
|
|
2731
|
-
},
|
|
2732
|
-
$in: function(i, g, f) {
|
|
2733
|
-
var B = f.comparable;
|
|
2734
|
-
return function(C) {
|
|
2735
|
-
if (!(C instanceof Array)) {
|
|
2736
|
-
var D = B(C);
|
|
2737
|
-
if (D === C && m(C) === "object") {
|
|
2738
|
-
for (F = i.length; F--; )
|
|
2739
|
-
if (String(i[F]) === String(C) && String(C) !== "[object Object]")
|
|
2740
|
-
return !0;
|
|
2741
|
-
}
|
|
2742
|
-
if (D === void 0) {
|
|
2743
|
-
for (F = i.length; F--; ) if (i[F] == null) return !0;
|
|
2744
|
-
}
|
|
2745
|
-
for (F = i.length; F--; ) {
|
|
2746
|
-
var V = H(Pe(w(i, F), f), D, F, i);
|
|
2747
|
-
if (V && String(V) !== "[object Object]" && String(D) !== "[object Object]")
|
|
2748
|
-
return !0;
|
|
2749
|
-
}
|
|
2750
|
-
return !!~i.indexOf(D);
|
|
2751
|
-
}
|
|
2752
|
-
for (var F = C.length; F--; )
|
|
2753
|
-
if (~i.indexOf(B(w(C, F)))) return !0;
|
|
2754
|
-
return !1;
|
|
2755
|
-
};
|
|
2756
|
-
},
|
|
2757
|
-
$nin: function(i, g, f) {
|
|
2758
|
-
var B = S.$in(i, g, f);
|
|
2759
|
-
return function(C, D, V, F) {
|
|
2760
|
-
return !B(C, D, V, F);
|
|
2761
|
-
};
|
|
2762
|
-
},
|
|
2763
|
-
$mod: function(i) {
|
|
2764
|
-
return function(g) {
|
|
2765
|
-
return g % i[0] == i[1];
|
|
2766
|
-
};
|
|
2767
|
-
},
|
|
2768
|
-
$ne: function(i, g, f) {
|
|
2769
|
-
var B = S.$eq(i, g, f);
|
|
2770
|
-
return I(function(C, D, V, F) {
|
|
2771
|
-
return !B(C, D, V, F);
|
|
2772
|
-
});
|
|
2773
|
-
},
|
|
2774
|
-
$and: function(i, g, f) {
|
|
2775
|
-
return i.map(ie(f));
|
|
2776
|
-
},
|
|
2777
|
-
$all: function(i, g, f) {
|
|
2778
|
-
return S.$and(i, g, f);
|
|
2779
|
-
},
|
|
2780
|
-
$or: function(i, g, f) {
|
|
2781
|
-
return i.map(ie(f));
|
|
2782
|
-
},
|
|
2783
|
-
$nor: function(i, g, f) {
|
|
2784
|
-
return i.map(ie(f));
|
|
2785
|
-
},
|
|
2786
|
-
$not: function(i, g, f) {
|
|
2787
|
-
var B = ie(f)(i);
|
|
2788
|
-
return function(C, D, V) {
|
|
2789
|
-
return !H(B, C, D, V);
|
|
2790
|
-
};
|
|
2791
|
-
},
|
|
2792
|
-
$type: function(i) {
|
|
2793
|
-
return function(g, f, B) {
|
|
2794
|
-
return g != null && (g instanceof i || g.constructor == i);
|
|
2795
|
-
};
|
|
2796
|
-
},
|
|
2797
|
-
$regex: function(i, g) {
|
|
2798
|
-
return new RegExp(i, g.$options);
|
|
2799
|
-
},
|
|
2800
|
-
$where: function(i) {
|
|
2801
|
-
if (typeof i == "function") return i;
|
|
2802
|
-
throw new Error(
|
|
2803
|
-
'In CSP mode, sift does not support strings in "$where" condition'
|
|
2804
|
-
);
|
|
2805
|
-
},
|
|
2806
|
-
$elemMatch: function(i, g, f) {
|
|
2807
|
-
return ie(f)(i);
|
|
2808
|
-
},
|
|
2809
|
-
$exists: function(i) {
|
|
2810
|
-
return !!i;
|
|
2811
|
-
}
|
|
2812
|
-
};
|
|
2813
|
-
function te(i, g) {
|
|
2814
|
-
return { options: i, validate: g };
|
|
2815
|
-
}
|
|
2816
|
-
function k(i, g) {
|
|
2817
|
-
var f = i.keyPath, B = i.child, C = i.query, D = [];
|
|
2818
|
-
if (function s(l, a, p, v, j) {
|
|
2819
|
-
if (p === a.length || l == null)
|
|
2820
|
-
return void j.push([l, a[p - 1], v]);
|
|
2821
|
-
var x = w(a, p);
|
|
2822
|
-
if (h(l) && isNaN(Number(x)))
|
|
2823
|
-
for (var O = 0, M = l.length; O < M; O++) s(w(l, O), a, p, l, j);
|
|
2824
|
-
else s(w(l, x), a, p + 1, l, j);
|
|
2825
|
-
}(g, f, 0, g, D), D.length === 1) {
|
|
2826
|
-
var V = D[0];
|
|
2827
|
-
return H(B, V[0], V[1], V[2]);
|
|
2828
|
-
}
|
|
2829
|
-
for (var F = C && C.$ne !== void 0, N = F, W = 0; W < D.length; W++) {
|
|
2830
|
-
var d = D[W], n = H(B, d[0], d[1], d[2]);
|
|
2831
|
-
F ? N &= n : N |= n;
|
|
2832
|
-
}
|
|
2833
|
-
return N;
|
|
2834
|
-
}
|
|
2835
|
-
function Le(i, g, f) {
|
|
2836
|
-
return te({ keyPath: i, child: g, query: f }, k);
|
|
2837
|
-
}
|
|
2838
|
-
function ie(i) {
|
|
2839
|
-
var g = i.comparable, f = i.expressions, B = function(V) {
|
|
2840
|
-
var F;
|
|
2841
|
-
return (!V || !(F = V) || F.constructor !== Object && F.constructor !== Array && F.constructor.toString() !== "function Object() { [native code] }" && F.constructor.toString() !== "function Array() { [native code] }" || F.toJSON) && (V = { $eq: V }), V;
|
|
2842
|
-
}, C = function(V) {
|
|
2843
|
-
V = g(V);
|
|
2844
|
-
var F = [];
|
|
2845
|
-
for (var N in V) {
|
|
2846
|
-
var W = V[N];
|
|
2847
|
-
if (N !== "$options") {
|
|
2848
|
-
var d = z[N] || i && f && f[N];
|
|
2849
|
-
if (d) S[N] && (W = S[N](W, V, i)), F.push(te(g(W), d));
|
|
2850
|
-
else {
|
|
2851
|
-
if (N.charCodeAt(0) === 36)
|
|
2852
|
-
throw new Error("Unknown operation " + N);
|
|
2853
|
-
var n = N.split(".");
|
|
2854
|
-
F.push(Le(n, D(W), W));
|
|
2855
|
-
}
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
return F.length === 1 ? F[0] : te(F, z.$and);
|
|
2859
|
-
}, D = function(V) {
|
|
2860
|
-
return V = B(V), function F(N, W) {
|
|
2861
|
-
if (!E(N)) return W;
|
|
2862
|
-
for (var d in N) W.push(d), F(N[d], W);
|
|
2863
|
-
return W;
|
|
2864
|
-
}(V, []).join(",").search(/[$.]/) === -1 ? te(V, he) : C(V);
|
|
2865
|
-
};
|
|
2866
|
-
return function(V) {
|
|
2867
|
-
return C(B(V));
|
|
2868
|
-
};
|
|
2869
|
-
}
|
|
2870
|
-
function he(i, g) {
|
|
2871
|
-
if (Object.prototype.toString.call(i) !== Object.prototype.toString.call(g))
|
|
2872
|
-
return !1;
|
|
2873
|
-
if (E(i)) {
|
|
2874
|
-
if (Object.keys(i).length !== Object.keys(g).length) return !1;
|
|
2875
|
-
for (var f in i) if (!he(i[f], g[f])) return !1;
|
|
2876
|
-
return !0;
|
|
2877
|
-
}
|
|
2878
|
-
if (h(i)) {
|
|
2879
|
-
if (i.length !== g.length) return !1;
|
|
2880
|
-
for (var B = 0, C = i.length; B < C; B++)
|
|
2881
|
-
if (!he(i[B], g[B])) return !1;
|
|
2882
|
-
return !0;
|
|
2883
|
-
}
|
|
2884
|
-
return i === g;
|
|
2885
|
-
}
|
|
2886
|
-
function Pe(i, g) {
|
|
2887
|
-
var f = ie(g)(i);
|
|
2888
|
-
return g && g.select && (f = {
|
|
2889
|
-
options: f,
|
|
2890
|
-
validate: function(B, C, D, V) {
|
|
2891
|
-
return H(B, C && g.select(C), D, V);
|
|
2892
|
-
}
|
|
2893
|
-
}), f;
|
|
2894
|
-
}
|
|
2895
|
-
function Ze(i, g) {
|
|
2896
|
-
var f = Pe(i, g = Object.assign({ compare: Fe, comparable: Oe }, g));
|
|
2897
|
-
return function(B, C, D) {
|
|
2898
|
-
return H(f, B, C, D);
|
|
2899
|
-
};
|
|
2900
|
-
}
|
|
2901
|
-
function Fe(i, g) {
|
|
2902
|
-
if (he(i, g)) return 0;
|
|
2903
|
-
if (m(i) === m(g)) {
|
|
2904
|
-
if (i > g) return 1;
|
|
2905
|
-
if (i < g) return -1;
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
function Oe(i) {
|
|
2909
|
-
return i instanceof Date ? i.getTime() : h(i) ? i.map(Oe) : i && typeof i.toJSON == "function" ? i.toJSON() : i;
|
|
2910
|
-
}
|
|
2911
|
-
}
|
|
2912
|
-
]);
|
|
2913
|
-
});
|
|
2914
|
-
})(ws);
|
|
2915
|
-
var Kr = ws.exports;
|
|
2916
|
-
const Lr = /* @__PURE__ */ kr(Kr);
|
|
2917
|
-
function Jr(e, A) {
|
|
2918
|
-
for (var u = 0; u < A.length; u++) {
|
|
2919
|
-
var c = A[u];
|
|
2920
|
-
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2923
|
-
function _r(e, A, u) {
|
|
2924
|
-
return A && Jr(e.prototype, A), e;
|
|
2925
|
-
}
|
|
2926
|
-
function $r(e, A) {
|
|
2927
|
-
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
2928
|
-
}
|
|
2929
|
-
function Bt(e) {
|
|
2930
|
-
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(u) {
|
|
2931
|
-
return u.__proto__ || Object.getPrototypeOf(u);
|
|
2932
|
-
}, Bt(e);
|
|
2933
|
-
}
|
|
2934
|
-
function Se(e, A) {
|
|
2935
|
-
return Se = Object.setPrototypeOf || function(c, r) {
|
|
2936
|
-
return c.__proto__ = r, c;
|
|
2937
|
-
}, Se(e, A);
|
|
2938
|
-
}
|
|
2939
|
-
function en() {
|
|
2940
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2941
|
-
if (typeof Proxy == "function") return !0;
|
|
2942
|
-
try {
|
|
2943
|
-
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
2944
|
-
})), !0;
|
|
2945
|
-
} catch {
|
|
2946
|
-
return !1;
|
|
2947
|
-
}
|
|
2948
|
-
}
|
|
2949
|
-
function We(e, A, u) {
|
|
2950
|
-
return en() ? We = Reflect.construct : We = function(r, m, y) {
|
|
2951
|
-
var h = [null];
|
|
2952
|
-
h.push.apply(h, m);
|
|
2953
|
-
var E = Function.bind.apply(r, h), Y = new E();
|
|
2954
|
-
return y && Se(Y, y.prototype), Y;
|
|
2955
|
-
}, We.apply(null, arguments);
|
|
2956
|
-
}
|
|
2957
|
-
function tn(e) {
|
|
2958
|
-
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
2959
|
-
}
|
|
2960
|
-
function wt(e) {
|
|
2961
|
-
var A = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2962
|
-
return wt = function(c) {
|
|
2963
|
-
if (c === null || !tn(c)) return c;
|
|
2964
|
-
if (typeof c != "function")
|
|
2965
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
2966
|
-
if (typeof A < "u") {
|
|
2967
|
-
if (A.has(c)) return A.get(c);
|
|
2968
|
-
A.set(c, r);
|
|
2969
|
-
}
|
|
2970
|
-
function r() {
|
|
2971
|
-
return We(c, arguments, Bt(this).constructor);
|
|
2972
|
-
}
|
|
2973
|
-
return r.prototype = Object.create(c.prototype, {
|
|
2974
|
-
constructor: {
|
|
2975
|
-
value: r,
|
|
2976
|
-
enumerable: !1,
|
|
2977
|
-
writable: !0,
|
|
2978
|
-
configurable: !0
|
|
2979
|
-
}
|
|
2980
|
-
}), Se(r, c);
|
|
2981
|
-
}, wt(e);
|
|
2982
|
-
}
|
|
2983
|
-
function Nt(e) {
|
|
2984
|
-
if (e === void 0)
|
|
2985
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2986
|
-
return e;
|
|
2987
|
-
}
|
|
2988
|
-
var Ms = function(A) {
|
|
2989
|
-
return 'Cannot execute "' + A.action + '" on "' + A.subjectName + '"';
|
|
2990
|
-
}, ze = Ms, sn = /* @__PURE__ */ function(e) {
|
|
2991
|
-
$r(A, e), A.setDefaultMessage = function(r) {
|
|
2992
|
-
r === null ? ze = Ms : ze = typeof r == "string" ? function() {
|
|
2993
|
-
return r;
|
|
2994
|
-
} : r;
|
|
2995
|
-
}, A.from = function(r) {
|
|
2996
|
-
var m = new this("");
|
|
2997
|
-
return Object.defineProperty(m, "ability", {
|
|
2998
|
-
value: r
|
|
2999
|
-
}), m;
|
|
3000
|
-
};
|
|
3001
|
-
function A(c, r) {
|
|
3002
|
-
var m;
|
|
3003
|
-
return r === void 0 && (r = {}), m = e.call(this, c) || this, m._setMetadata(r), m.message = c || ze(Nt(m)), m._customMessage = null, typeof Error.captureStackTrace == "function" && (m.name = m.constructor.name, Error.captureStackTrace(Nt(m), m.constructor)), m;
|
|
3004
|
-
}
|
|
3005
|
-
var u = A.prototype;
|
|
3006
|
-
return u.setMessage = function(r) {
|
|
3007
|
-
return this._customMessage = r, this;
|
|
3008
|
-
}, u.throwUnlessCan = function(r, m, y) {
|
|
3009
|
-
if (!this.ability)
|
|
3010
|
-
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
3011
|
-
var h = this.ability.relevantRuleFor(r, m, y);
|
|
3012
|
-
if (!(h && !h.inverted)) {
|
|
3013
|
-
this._setMetadata({
|
|
3014
|
-
action: r,
|
|
3015
|
-
subject: m,
|
|
3016
|
-
field: y,
|
|
3017
|
-
subjectName: this.ability.subjectName(m)
|
|
3018
|
-
});
|
|
3019
|
-
var E = h ? h.reason : "";
|
|
3020
|
-
throw this.message = this._customMessage || E || ze(this), this;
|
|
3021
|
-
}
|
|
3022
|
-
}, u._setMetadata = function(r) {
|
|
3023
|
-
this.subject = r.subject, this.subjectName = r.subjectName, this.action = r.action, this.field = r.field;
|
|
3024
|
-
}, A;
|
|
3025
|
-
}(wt(Error));
|
|
3026
|
-
function Mt(e) {
|
|
3027
|
-
return Array.isArray(e) ? e : [e];
|
|
3028
|
-
}
|
|
3029
|
-
function rn(e) {
|
|
3030
|
-
if (!e || typeof e == "string")
|
|
3031
|
-
return e;
|
|
3032
|
-
var A = typeof e == "object" ? e.constructor : e;
|
|
3033
|
-
return A.modelName || A.name;
|
|
3034
|
-
}
|
|
3035
|
-
function nn(e) {
|
|
3036
|
-
return JSON.parse(JSON.stringify(e));
|
|
3037
|
-
}
|
|
3038
|
-
var an = /[-/\\^$+?.()|[\]{}]/g, on = /\.?\*+\.?/g, ln = /\*+/, cn = /\./g;
|
|
3039
|
-
function An(e, A, u) {
|
|
3040
|
-
var c = u[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", m = e.replace(cn, "\\$&").replace(ln, r + c);
|
|
3041
|
-
return A + e.length === u.length ? "(?:" + m + ")?" : m;
|
|
3042
|
-
}
|
|
3043
|
-
function un(e, A, u) {
|
|
3044
|
-
return e === "." && (u[A - 1] === "*" || u[A + 1] === "*") ? e : "\\" + e;
|
|
3045
|
-
}
|
|
3046
|
-
function mn(e) {
|
|
3047
|
-
var A = e.map(function(c) {
|
|
3048
|
-
return c.replace(an, un).replace(on, An);
|
|
3049
|
-
}), u = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
3050
|
-
return new RegExp("^" + u + "$");
|
|
3051
|
-
}
|
|
3052
|
-
var gn = /* @__PURE__ */ function() {
|
|
3053
|
-
function e(u) {
|
|
3054
|
-
this.actions = u.actions || u.action, this.subject = u.subject, this.fields = !u.fields || u.fields.length === 0 ? void 0 : Mt(u.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
3055
|
-
writable: !0
|
|
3056
|
-
}), this.inverted = !!u.inverted, this.conditions = u.conditions, Object.defineProperty(this, "_matches", {
|
|
3057
|
-
writable: !0,
|
|
3058
|
-
value: this.conditions ? Lr(this.conditions) : void 0
|
|
3059
|
-
}), this.reason = u.reason;
|
|
3060
|
-
}
|
|
3061
|
-
var A = e.prototype;
|
|
3062
|
-
return A.matches = function(c) {
|
|
3063
|
-
return this._matches ? typeof c == "string" ? !this.inverted : this._matches(c) : !0;
|
|
3064
|
-
}, A.isRelevantFor = function(c, r) {
|
|
3065
|
-
return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
|
|
3066
|
-
}, A.matchesField = function(c) {
|
|
3067
|
-
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : mn(this.fields)), this._fieldsPattern === null || c.indexOf("*") !== -1 ? this.fields.indexOf(c) !== -1 : this._fieldsPattern.test(c);
|
|
3068
|
-
}, e;
|
|
3069
|
-
}(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), zt = {
|
|
3070
|
-
crud: ["create", "read", "update", "delete"]
|
|
3071
|
-
};
|
|
3072
|
-
function Ut(e, A) {
|
|
3073
|
-
return e === A || Array.isArray(A) && A.indexOf(e) !== -1;
|
|
3074
|
-
}
|
|
3075
|
-
var dn = /* @__PURE__ */ function() {
|
|
3076
|
-
e.addAlias = function(c, r) {
|
|
3077
|
-
if (c === "manage" || Ut("manage", r))
|
|
3078
|
-
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
3079
|
-
if (Ut(c, r))
|
|
3080
|
-
throw new Error("Attempt to alias action to itself: " + c + " -> " + r.toString());
|
|
3081
|
-
return zt[c] = r, this;
|
|
3082
|
-
};
|
|
3083
|
-
function e(u, c) {
|
|
3084
|
-
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
3085
|
-
value: c.subjectName || rn
|
|
3086
|
-
}), this[ee] = {
|
|
3087
|
-
RuleType: c.RuleType || gn,
|
|
3088
|
-
originalRules: u || [],
|
|
3089
|
-
hasPerFieldRules: !1,
|
|
3090
|
-
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
3091
|
-
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
3092
|
-
events: {},
|
|
3093
|
-
aliases: nn(zt)
|
|
3094
|
-
}, this.update(u);
|
|
3095
|
-
}
|
|
3096
|
-
var A = e.prototype;
|
|
3097
|
-
return A.update = function(c) {
|
|
3098
|
-
if (!Array.isArray(c))
|
|
3099
|
-
return this;
|
|
3100
|
-
var r = {
|
|
3101
|
-
rules: c,
|
|
3102
|
-
ability: this
|
|
3103
|
-
};
|
|
3104
|
-
this.emit("update", r), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
3105
|
-
var m = this.buildIndexFor(c);
|
|
3106
|
-
return this[ee].indexedRules = m.rules, this[ee].hasPerFieldRules = m.hasPerFieldRules, this.emit("updated", r), this;
|
|
3107
|
-
}, A.buildIndexFor = function(c) {
|
|
3108
|
-
for (var r = /* @__PURE__ */ Object.create(null), m = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
3109
|
-
var Y = new m(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
3110
|
-
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
3111
|
-
for (var H = 0; H < P.length; H++) {
|
|
3112
|
-
var z = P[H];
|
|
3113
|
-
r[z] = r[z] || /* @__PURE__ */ Object.create(null);
|
|
3114
|
-
for (var S = 0; S < w.length; S++) {
|
|
3115
|
-
var te = w[S];
|
|
3116
|
-
r[z][te] = r[z][te] || /* @__PURE__ */ Object.create(null), r[z][te][I] = Y;
|
|
3117
|
-
}
|
|
3118
|
-
}
|
|
3119
|
-
}
|
|
3120
|
-
return {
|
|
3121
|
-
isAllInverted: y,
|
|
3122
|
-
hasPerFieldRules: h,
|
|
3123
|
-
rules: r
|
|
3124
|
-
};
|
|
3125
|
-
}, A.expandActions = function(c) {
|
|
3126
|
-
for (var r = this[ee].aliases, m = Mt(c), y = 0; y < m.length; ) {
|
|
3127
|
-
var h = m[y++];
|
|
3128
|
-
r.hasOwnProperty(h) && (m = m.concat(r[h]));
|
|
3129
|
-
}
|
|
3130
|
-
return m;
|
|
3131
|
-
}, A.can = function(c, r, m) {
|
|
3132
|
-
if (m && typeof m != "string")
|
|
3133
|
-
throw new Error("Ability.can expects 3rd parameter to be a string. See https://stalniy.github.io/casl/abilities/2017/07/21/check-abilities.html#checking-fields for details");
|
|
3134
|
-
var y = this.relevantRuleFor(c, r, m);
|
|
3135
|
-
return !!y && !y.inverted;
|
|
3136
|
-
}, A.relevantRuleFor = function(c, r, m) {
|
|
3137
|
-
for (var y = this.rulesFor(c, r, m), h = 0; h < y.length; h++)
|
|
3138
|
-
if (y[h].matches(r))
|
|
3139
|
-
return y[h];
|
|
3140
|
-
return null;
|
|
3141
|
-
}, A.possibleRulesFor = function(c, r) {
|
|
3142
|
-
var m = this.subjectName(r), y = this[ee].mergedRules, h = m + "_" + c;
|
|
3143
|
-
return y[h] || (y[h] = this.mergeRulesFor(c, m)), y[h];
|
|
3144
|
-
}, A.mergeRulesFor = function(c, r) {
|
|
3145
|
-
var m = this[ee].indexedRules, y = [r, "all"].reduce(function(h, E) {
|
|
3146
|
-
var Y = m[E];
|
|
3147
|
-
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
3148
|
-
}, []);
|
|
3149
|
-
return y.filter(Boolean);
|
|
3150
|
-
}, A.rulesFor = function(c, r, m) {
|
|
3151
|
-
var y = this.possibleRulesFor(c, r);
|
|
3152
|
-
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
3153
|
-
return h.isRelevantFor(r, m);
|
|
3154
|
-
}) : y;
|
|
3155
|
-
}, A.cannot = function() {
|
|
3156
|
-
return !this.can.apply(this, arguments);
|
|
3157
|
-
}, A.throwUnlessCan = function() {
|
|
3158
|
-
var c;
|
|
3159
|
-
console.warn(`
|
|
3160
|
-
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
3161
|
-
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
3162
|
-
`.trim()), (c = sn.from(this)).throwUnlessCan.apply(c, arguments);
|
|
3163
|
-
}, A.on = function(c, r) {
|
|
3164
|
-
var m = this[ee].events, y = !0;
|
|
3165
|
-
return m[c] || (m[c] = []), m[c].push(r), function() {
|
|
3166
|
-
if (y) {
|
|
3167
|
-
var h = m[c].indexOf(r);
|
|
3168
|
-
m[c].splice(h, 1), y = !1;
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
}, A.emit = function(c, r) {
|
|
3172
|
-
var m = this[ee].events[c];
|
|
3173
|
-
m && m.slice(0).forEach(function(y) {
|
|
3174
|
-
return y(r);
|
|
3175
|
-
});
|
|
3176
|
-
}, _r(e, [{
|
|
3177
|
-
key: "rules",
|
|
3178
|
-
get: function() {
|
|
3179
|
-
return this[ee].originalRules;
|
|
3180
|
-
}
|
|
3181
|
-
}]), e;
|
|
3182
|
-
}(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), o = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e))(o || {}), U = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(U || {}), Cs = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(Cs || {});
|
|
2533
|
+
var t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), o = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e))(o || {}), U = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(U || {}), ws = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ws || {});
|
|
3183
2534
|
const b = {
|
|
3184
2535
|
general: "General",
|
|
3185
2536
|
inventory: "Inventory",
|
|
@@ -3193,13 +2544,13 @@ const b = {
|
|
|
3193
2544
|
reports: "Default Report",
|
|
3194
2545
|
customReports: "Custom Report",
|
|
3195
2546
|
miniProgram: "Mini Program"
|
|
3196
|
-
},
|
|
2547
|
+
}, kr = "access-denied", We = {
|
|
3197
2548
|
Action: t,
|
|
3198
2549
|
Subject: {
|
|
3199
2550
|
Business: o,
|
|
3200
|
-
Restaurant:
|
|
2551
|
+
Restaurant: ws
|
|
3201
2552
|
}
|
|
3202
|
-
},
|
|
2553
|
+
}, Ms = {
|
|
3203
2554
|
[U.permission]: o.hrm_teamMember,
|
|
3204
2555
|
[U.promotion]: o.crm_promotion,
|
|
3205
2556
|
[U.voucher]: o.crm_voucher,
|
|
@@ -3217,15 +2568,7 @@ const b = {
|
|
|
3217
2568
|
[U.integration]: o.inventory_integration,
|
|
3218
2569
|
[U.orderDraft]: o.inventory_orderDraftApproval,
|
|
3219
2570
|
[U.unitCostHistory]: o.inventory_unitCostHistory
|
|
3220
|
-
}
|
|
3221
|
-
function bn(e) {
|
|
3222
|
-
return Ds[e] ?? e;
|
|
3223
|
-
}
|
|
3224
|
-
function Ja(e) {
|
|
3225
|
-
const A = Object.entries(Ds).find(([, u]) => u === e);
|
|
3226
|
-
return A ? A[0] : e;
|
|
3227
|
-
}
|
|
3228
|
-
const _a = {
|
|
2571
|
+
}, Ja = {
|
|
3229
2572
|
// General
|
|
3230
2573
|
restaurant: {
|
|
3231
2574
|
label: "Restaurant Owner",
|
|
@@ -3837,7 +3180,7 @@ const R = [
|
|
|
3837
3180
|
subject: q.crm,
|
|
3838
3181
|
actions: [t.read]
|
|
3839
3182
|
}
|
|
3840
|
-
], $ = (...e) => e.flat(),
|
|
3183
|
+
], $ = (...e) => e.flat(), Kr = [
|
|
3841
3184
|
...R,
|
|
3842
3185
|
{
|
|
3843
3186
|
label: "User",
|
|
@@ -3849,7 +3192,7 @@ const R = [
|
|
|
3849
3192
|
t.delete
|
|
3850
3193
|
]
|
|
3851
3194
|
}
|
|
3852
|
-
],
|
|
3195
|
+
], Lr = [
|
|
3853
3196
|
...R,
|
|
3854
3197
|
{
|
|
3855
3198
|
label: "Segmentation",
|
|
@@ -3861,7 +3204,7 @@ const R = [
|
|
|
3861
3204
|
t.delete
|
|
3862
3205
|
]
|
|
3863
3206
|
}
|
|
3864
|
-
],
|
|
3207
|
+
], Cs = [
|
|
3865
3208
|
...R,
|
|
3866
3209
|
{
|
|
3867
3210
|
label: "Transaction",
|
|
@@ -3873,7 +3216,7 @@ const R = [
|
|
|
3873
3216
|
t.delete
|
|
3874
3217
|
]
|
|
3875
3218
|
}
|
|
3876
|
-
],
|
|
3219
|
+
], Ds = [
|
|
3877
3220
|
...R,
|
|
3878
3221
|
{
|
|
3879
3222
|
label: "Store",
|
|
@@ -3885,7 +3228,7 @@ const R = [
|
|
|
3885
3228
|
t.delete
|
|
3886
3229
|
]
|
|
3887
3230
|
}
|
|
3888
|
-
],
|
|
3231
|
+
], Jr = [
|
|
3889
3232
|
...R,
|
|
3890
3233
|
{
|
|
3891
3234
|
label: "Location",
|
|
@@ -3897,7 +3240,7 @@ const R = [
|
|
|
3897
3240
|
t.delete
|
|
3898
3241
|
]
|
|
3899
3242
|
}
|
|
3900
|
-
],
|
|
3243
|
+
], _r = [
|
|
3901
3244
|
...R,
|
|
3902
3245
|
{
|
|
3903
3246
|
label: "Effect",
|
|
@@ -3909,14 +3252,14 @@ const R = [
|
|
|
3909
3252
|
t.delete
|
|
3910
3253
|
]
|
|
3911
3254
|
}
|
|
3912
|
-
],
|
|
3255
|
+
], $r = [
|
|
3913
3256
|
...R,
|
|
3914
3257
|
{
|
|
3915
3258
|
label: "Setting",
|
|
3916
3259
|
subject: q.crm_setting,
|
|
3917
3260
|
actions: [t.read, t.update]
|
|
3918
3261
|
}
|
|
3919
|
-
],
|
|
3262
|
+
], en = [
|
|
3920
3263
|
...R,
|
|
3921
3264
|
{
|
|
3922
3265
|
label: "Reward",
|
|
@@ -3940,7 +3283,7 @@ const R = [
|
|
|
3940
3283
|
t.delete
|
|
3941
3284
|
]
|
|
3942
3285
|
}
|
|
3943
|
-
],
|
|
3286
|
+
], js = [
|
|
3944
3287
|
...R,
|
|
3945
3288
|
{
|
|
3946
3289
|
label: "Referral",
|
|
@@ -3952,7 +3295,7 @@ const R = [
|
|
|
3952
3295
|
t.delete
|
|
3953
3296
|
]
|
|
3954
3297
|
}
|
|
3955
|
-
],
|
|
3298
|
+
], tn = [
|
|
3956
3299
|
...R,
|
|
3957
3300
|
{
|
|
3958
3301
|
label: "Marketing Material",
|
|
@@ -3964,14 +3307,14 @@ const R = [
|
|
|
3964
3307
|
t.delete
|
|
3965
3308
|
]
|
|
3966
3309
|
}
|
|
3967
|
-
],
|
|
3310
|
+
], Gs = [
|
|
3968
3311
|
...R,
|
|
3969
3312
|
{
|
|
3970
3313
|
label: "Analytic",
|
|
3971
3314
|
subject: q.crm_analytic,
|
|
3972
3315
|
actions: [t.read]
|
|
3973
3316
|
}
|
|
3974
|
-
],
|
|
3317
|
+
], sn = [
|
|
3975
3318
|
...R,
|
|
3976
3319
|
{
|
|
3977
3320
|
label: "Tier",
|
|
@@ -3983,7 +3326,7 @@ const R = [
|
|
|
3983
3326
|
t.delete
|
|
3984
3327
|
]
|
|
3985
3328
|
}
|
|
3986
|
-
],
|
|
3329
|
+
], rn = [
|
|
3987
3330
|
...R,
|
|
3988
3331
|
{
|
|
3989
3332
|
label: "Title",
|
|
@@ -3995,7 +3338,7 @@ const R = [
|
|
|
3995
3338
|
t.delete
|
|
3996
3339
|
]
|
|
3997
3340
|
}
|
|
3998
|
-
],
|
|
3341
|
+
], nn = [
|
|
3999
3342
|
...R,
|
|
4000
3343
|
{
|
|
4001
3344
|
label: "Broadcast",
|
|
@@ -4007,7 +3350,7 @@ const R = [
|
|
|
4007
3350
|
t.delete
|
|
4008
3351
|
]
|
|
4009
3352
|
}
|
|
4010
|
-
],
|
|
3353
|
+
], an = [
|
|
4011
3354
|
...R,
|
|
4012
3355
|
{
|
|
4013
3356
|
label: "Point",
|
|
@@ -4019,7 +3362,7 @@ const R = [
|
|
|
4019
3362
|
t.delete
|
|
4020
3363
|
]
|
|
4021
3364
|
}
|
|
4022
|
-
],
|
|
3365
|
+
], on = [
|
|
4023
3366
|
...R,
|
|
4024
3367
|
{
|
|
4025
3368
|
label: "Credit",
|
|
@@ -4031,7 +3374,7 @@ const R = [
|
|
|
4031
3374
|
t.delete
|
|
4032
3375
|
]
|
|
4033
3376
|
}
|
|
4034
|
-
],
|
|
3377
|
+
], ln = [
|
|
4035
3378
|
...R,
|
|
4036
3379
|
{
|
|
4037
3380
|
label: "Experience",
|
|
@@ -4043,7 +3386,7 @@ const R = [
|
|
|
4043
3386
|
t.delete
|
|
4044
3387
|
]
|
|
4045
3388
|
}
|
|
4046
|
-
],
|
|
3389
|
+
], cn = [
|
|
4047
3390
|
...R,
|
|
4048
3391
|
{
|
|
4049
3392
|
label: "Game",
|
|
@@ -4055,7 +3398,7 @@ const R = [
|
|
|
4055
3398
|
t.delete
|
|
4056
3399
|
]
|
|
4057
3400
|
}
|
|
4058
|
-
],
|
|
3401
|
+
], An = [
|
|
4059
3402
|
...R,
|
|
4060
3403
|
{
|
|
4061
3404
|
label: "Mission",
|
|
@@ -4067,7 +3410,7 @@ const R = [
|
|
|
4067
3410
|
t.delete
|
|
4068
3411
|
]
|
|
4069
3412
|
}
|
|
4070
|
-
],
|
|
3413
|
+
], Ys = [
|
|
4071
3414
|
...R,
|
|
4072
3415
|
{
|
|
4073
3416
|
label: "Loyalty Member",
|
|
@@ -4079,7 +3422,7 @@ const R = [
|
|
|
4079
3422
|
t.delete
|
|
4080
3423
|
]
|
|
4081
3424
|
}
|
|
4082
|
-
],
|
|
3425
|
+
], Es = [
|
|
4083
3426
|
...R,
|
|
4084
3427
|
{
|
|
4085
3428
|
label: "Loyalty Segment",
|
|
@@ -4091,7 +3434,7 @@ const R = [
|
|
|
4091
3434
|
t.delete
|
|
4092
3435
|
]
|
|
4093
3436
|
}
|
|
4094
|
-
],
|
|
3437
|
+
], xs = [
|
|
4095
3438
|
...R,
|
|
4096
3439
|
{
|
|
4097
3440
|
label: "Loyalty Card",
|
|
@@ -4103,44 +3446,44 @@ const R = [
|
|
|
4103
3446
|
t.delete
|
|
4104
3447
|
]
|
|
4105
3448
|
}
|
|
4106
|
-
],
|
|
3449
|
+
], Vs = [
|
|
4107
3450
|
...R,
|
|
4108
3451
|
{
|
|
4109
3452
|
label: "Bin",
|
|
4110
3453
|
subject: q.crm_bin,
|
|
4111
3454
|
actions: [t.read, t.update, t.delete]
|
|
4112
3455
|
}
|
|
4113
|
-
],
|
|
3456
|
+
], Ps = $(
|
|
3457
|
+
oe,
|
|
3458
|
+
sn
|
|
3459
|
+
), Fs = $(
|
|
4114
3460
|
oe,
|
|
4115
|
-
|
|
3461
|
+
rn
|
|
3462
|
+
), Os = $(
|
|
3463
|
+
oe,
|
|
3464
|
+
nn
|
|
4116
3465
|
), qs = $(
|
|
4117
3466
|
oe,
|
|
4118
|
-
|
|
3467
|
+
an
|
|
4119
3468
|
), Hs = $(
|
|
4120
3469
|
oe,
|
|
4121
|
-
|
|
3470
|
+
on
|
|
4122
3471
|
), Xs = $(
|
|
4123
3472
|
oe,
|
|
4124
|
-
|
|
3473
|
+
ln
|
|
4125
3474
|
), Qs = $(
|
|
4126
3475
|
oe,
|
|
4127
|
-
|
|
3476
|
+
cn
|
|
4128
3477
|
), Is = $(
|
|
4129
3478
|
oe,
|
|
4130
|
-
|
|
4131
|
-
),
|
|
4132
|
-
oe,
|
|
4133
|
-
xn
|
|
4134
|
-
), Zs = $(
|
|
4135
|
-
oe,
|
|
4136
|
-
Vn
|
|
4137
|
-
), Pn = $(
|
|
3479
|
+
An
|
|
3480
|
+
), un = $(
|
|
4138
3481
|
oe,
|
|
4139
|
-
|
|
4140
|
-
),
|
|
3482
|
+
js
|
|
3483
|
+
), Rs = $(
|
|
4141
3484
|
oe,
|
|
4142
|
-
|
|
4143
|
-
),
|
|
3485
|
+
$r
|
|
3486
|
+
), mn = [
|
|
4144
3487
|
...R,
|
|
4145
3488
|
{
|
|
4146
3489
|
label: "Voucher",
|
|
@@ -4152,7 +3495,7 @@ const R = [
|
|
|
4152
3495
|
t.delete
|
|
4153
3496
|
]
|
|
4154
3497
|
}
|
|
4155
|
-
],
|
|
3498
|
+
], gn = [
|
|
4156
3499
|
...R,
|
|
4157
3500
|
{
|
|
4158
3501
|
label: "Membership",
|
|
@@ -4164,140 +3507,140 @@ const R = [
|
|
|
4164
3507
|
t.delete
|
|
4165
3508
|
]
|
|
4166
3509
|
}
|
|
4167
|
-
],
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
3510
|
+
], dn = $(
|
|
3511
|
+
Kr,
|
|
3512
|
+
Lr,
|
|
3513
|
+
Cs,
|
|
3514
|
+
Ds,
|
|
3515
|
+
Jr,
|
|
3516
|
+
_r,
|
|
3517
|
+
Rs,
|
|
3518
|
+
en,
|
|
4171
3519
|
Gs,
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
Ns,
|
|
4175
|
-
wn,
|
|
4176
|
-
Es,
|
|
3520
|
+
Ps,
|
|
3521
|
+
Fs,
|
|
4177
3522
|
Os,
|
|
4178
3523
|
qs,
|
|
4179
3524
|
Hs,
|
|
4180
3525
|
Xs,
|
|
4181
3526
|
Qs,
|
|
4182
3527
|
Is,
|
|
4183
|
-
|
|
4184
|
-
|
|
3528
|
+
Ys,
|
|
3529
|
+
Es,
|
|
4185
3530
|
xs,
|
|
4186
|
-
Vs
|
|
4187
|
-
|
|
4188
|
-
Fs
|
|
4189
|
-
), Hn = $(
|
|
3531
|
+
Vs
|
|
3532
|
+
), pn = $(
|
|
4190
3533
|
oe,
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
),
|
|
3534
|
+
js,
|
|
3535
|
+
tn
|
|
3536
|
+
), bn = $(
|
|
4194
3537
|
oe,
|
|
4195
|
-
|
|
4196
|
-
),
|
|
3538
|
+
mn
|
|
3539
|
+
), fn = $(gn), yn = {
|
|
4197
3540
|
[`set_${o.crm}`]: {
|
|
4198
3541
|
key: "sys:crm:access",
|
|
4199
3542
|
name: "CRM Access",
|
|
4200
|
-
permissions:
|
|
3543
|
+
permissions: dn
|
|
4201
3544
|
},
|
|
4202
3545
|
[`set_${o.crm_promotion}`]: {
|
|
4203
3546
|
key: "sys:crm:promotion",
|
|
4204
3547
|
name: "CRM Promotion",
|
|
4205
|
-
permissions:
|
|
3548
|
+
permissions: pn
|
|
4206
3549
|
},
|
|
4207
3550
|
[`set_${o.crm_voucher}`]: {
|
|
4208
3551
|
key: "sys:crm:voucher",
|
|
4209
3552
|
name: "CRM Voucher",
|
|
4210
|
-
permissions:
|
|
3553
|
+
permissions: bn
|
|
4211
3554
|
},
|
|
4212
3555
|
[`set_${o.crm_membership}`]: {
|
|
4213
3556
|
key: "sys:crm:membership",
|
|
4214
3557
|
name: "CRM Membership",
|
|
4215
|
-
permissions:
|
|
3558
|
+
permissions: fn
|
|
4216
3559
|
},
|
|
4217
3560
|
[`set_${o.crm_analytic}`]: {
|
|
4218
3561
|
key: "sys:crm:analytic",
|
|
4219
3562
|
name: "CRM Analytic",
|
|
4220
|
-
permissions:
|
|
3563
|
+
permissions: Gs
|
|
4221
3564
|
},
|
|
4222
3565
|
[`set_${o.crm_tier}`]: {
|
|
4223
3566
|
key: "sys:crm:tier",
|
|
4224
3567
|
name: "CRM Tier",
|
|
4225
|
-
permissions:
|
|
3568
|
+
permissions: Ps
|
|
4226
3569
|
},
|
|
4227
3570
|
[`set_${o.crm_title}`]: {
|
|
4228
3571
|
key: "sys:crm:title",
|
|
4229
3572
|
name: "CRM Title",
|
|
4230
|
-
permissions:
|
|
3573
|
+
permissions: Fs
|
|
4231
3574
|
},
|
|
4232
3575
|
[`set_${o.crm_broadcast}`]: {
|
|
4233
3576
|
key: "sys:crm:broadcast",
|
|
4234
3577
|
name: "CRM Broadcast",
|
|
4235
|
-
permissions:
|
|
3578
|
+
permissions: Os
|
|
4236
3579
|
},
|
|
4237
3580
|
[`set_${o.crm_point}`]: {
|
|
4238
3581
|
key: "sys:crm:point",
|
|
4239
3582
|
name: "CRM Point",
|
|
4240
|
-
permissions:
|
|
3583
|
+
permissions: qs
|
|
4241
3584
|
},
|
|
4242
3585
|
[`set_${o.crm_credit}`]: {
|
|
4243
3586
|
key: "sys:crm:credit",
|
|
4244
3587
|
name: "CRM Credit",
|
|
4245
|
-
permissions:
|
|
3588
|
+
permissions: Hs
|
|
4246
3589
|
},
|
|
4247
3590
|
[`set_${o.crm_experience}`]: {
|
|
4248
3591
|
key: "sys:crm:experience",
|
|
4249
3592
|
name: "CRM Experience",
|
|
4250
|
-
permissions:
|
|
3593
|
+
permissions: Xs
|
|
4251
3594
|
},
|
|
4252
3595
|
[`set_${o.crm_game}`]: {
|
|
4253
3596
|
key: "sys:crm:game",
|
|
4254
3597
|
name: "CRM Game",
|
|
4255
|
-
permissions:
|
|
3598
|
+
permissions: Qs
|
|
4256
3599
|
},
|
|
4257
3600
|
[`set_${o.crm_mission}`]: {
|
|
4258
3601
|
key: "sys:crm:mission",
|
|
4259
3602
|
name: "CRM Mission",
|
|
4260
|
-
permissions:
|
|
3603
|
+
permissions: Is
|
|
4261
3604
|
},
|
|
4262
3605
|
[`set_${o.crm_loyaltyMember}`]: {
|
|
4263
3606
|
key: "sys:crm:loyaltyMember",
|
|
4264
3607
|
name: "CRM Loyalty Member",
|
|
4265
|
-
permissions:
|
|
3608
|
+
permissions: Ys
|
|
4266
3609
|
},
|
|
4267
3610
|
[`set_${o.crm_loyaltySegment}`]: {
|
|
4268
3611
|
key: "sys:crm:loyaltySegment",
|
|
4269
3612
|
name: "CRM Loyalty Segment",
|
|
4270
|
-
permissions:
|
|
3613
|
+
permissions: Es
|
|
4271
3614
|
},
|
|
4272
3615
|
[`set_${o.crm_loyaltyCard}`]: {
|
|
4273
3616
|
key: "sys:crm:loyaltyCard",
|
|
4274
3617
|
name: "CRM Loyalty Card",
|
|
4275
|
-
permissions:
|
|
3618
|
+
permissions: xs
|
|
4276
3619
|
},
|
|
4277
3620
|
[`set_${o.crm_referral}`]: {
|
|
4278
3621
|
key: "sys:crm:referral",
|
|
4279
3622
|
name: "CRM Referral",
|
|
4280
|
-
permissions:
|
|
3623
|
+
permissions: un
|
|
4281
3624
|
},
|
|
4282
3625
|
[`set_${o.crm_store}`]: {
|
|
4283
3626
|
key: "sys:crm:store",
|
|
4284
3627
|
name: "CRM Store",
|
|
4285
|
-
permissions:
|
|
3628
|
+
permissions: Ds
|
|
4286
3629
|
},
|
|
4287
3630
|
[`set_${o.crm_transaction}`]: {
|
|
4288
3631
|
key: "sys:crm:transaction",
|
|
4289
3632
|
name: "CRM Transaction",
|
|
4290
|
-
permissions:
|
|
3633
|
+
permissions: Cs
|
|
4291
3634
|
},
|
|
4292
3635
|
[`set_${o.crm_setting}`]: {
|
|
4293
3636
|
key: "sys:crm:setting",
|
|
4294
3637
|
name: "CRM Setting",
|
|
4295
|
-
permissions:
|
|
3638
|
+
permissions: Rs
|
|
4296
3639
|
},
|
|
4297
3640
|
[`set_${o.crm_bin}`]: {
|
|
4298
3641
|
key: "sys:crm:bin",
|
|
4299
3642
|
name: "CRM Bin",
|
|
4300
|
-
permissions:
|
|
3643
|
+
permissions: Vs
|
|
4301
3644
|
}
|
|
4302
3645
|
};
|
|
4303
3646
|
var G = /* @__PURE__ */ ((e) => (e.inventory = "inventory", e.inventory_stock = "inventory::stock", e.inventory_stockAdjustment = "inventory::stockAdjustment", e.inventory_stockRecalculation = "inventory::stockRecalculation", e.inventory_unitCostHistory = "inventory::unitCostHistory", e.inventory_wastageTemplate = "inventory::wastageTemplate", e.inventory_closing = "inventory::closing", e.inventory_closingDraft = "inventory::closingDraft", e.inventory_closingTemplate = "inventory::closingTemplate", e.inventory_ingredient = "inventory::ingredient", e.inventory_ingredientGroup = "inventory::ingredientGroup", e.inventory_recipe = "inventory::recipe", e.inventory_unit = "inventory::unit", e.inventory_orderTemplate = "inventory::orderTemplate", e.inventory_orderDraft = "inventory::orderDraft", e.inventory_printTemplate = "inventory::printTemplate", e.inventory_purchaseOrder = "inventory::purchaseOrder", e.inventory_transferOutApproval = "inventory::transferOutApproval", e.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", e.inventory_surcharge = "inventory::surcharge", e.inventory_supplier = "inventory::supplier", e.inventory_warehouse = "inventory::warehouse", e.inventory_publish = "inventory::publish", e.inventory_integration = "inventory::integration", e.inventory_deliveryOrder = "inventory::deliveryOrder", e.inventory_shipment = "inventory::shipment", e.inventory_orderDraftApproval = "inventory::orderDraftApproval", e))(G || {});
|
|
@@ -4329,21 +3672,21 @@ const K = [
|
|
|
4329
3672
|
subject: G.inventory_unitCostHistory,
|
|
4330
3673
|
actions: [t.read]
|
|
4331
3674
|
}
|
|
4332
|
-
],
|
|
3675
|
+
], vn = [
|
|
4333
3676
|
...K,
|
|
4334
3677
|
{
|
|
4335
3678
|
label: "Stock Adjustment",
|
|
4336
3679
|
subject: G.inventory_stockAdjustment,
|
|
4337
3680
|
actions: [t.update]
|
|
4338
3681
|
}
|
|
4339
|
-
],
|
|
3682
|
+
], Zs = [
|
|
4340
3683
|
...K,
|
|
4341
3684
|
{
|
|
4342
3685
|
label: "Unit Cost History",
|
|
4343
3686
|
subject: G.inventory_unitCostHistory,
|
|
4344
3687
|
actions: [t.read, t.update]
|
|
4345
3688
|
}
|
|
4346
|
-
],
|
|
3689
|
+
], Ns = [
|
|
4347
3690
|
...K,
|
|
4348
3691
|
{
|
|
4349
3692
|
label: "Wastage Template",
|
|
@@ -4358,8 +3701,8 @@ const K = [
|
|
|
4358
3701
|
];
|
|
4359
3702
|
[
|
|
4360
3703
|
...Et,
|
|
4361
|
-
...
|
|
4362
|
-
...
|
|
3704
|
+
...Zs,
|
|
3705
|
+
...Ns
|
|
4363
3706
|
];
|
|
4364
3707
|
const xt = [
|
|
4365
3708
|
...K,
|
|
@@ -4378,7 +3721,7 @@ const xt = [
|
|
|
4378
3721
|
subject: G.inventory_closingDraft,
|
|
4379
3722
|
actions: [t.read]
|
|
4380
3723
|
}
|
|
4381
|
-
],
|
|
3724
|
+
], zs = [
|
|
4382
3725
|
...K,
|
|
4383
3726
|
{
|
|
4384
3727
|
label: "Closing Draft",
|
|
@@ -4405,7 +3748,7 @@ const xt = [
|
|
|
4405
3748
|
subject: G.inventory_stockAdjustment,
|
|
4406
3749
|
actions: [t.read]
|
|
4407
3750
|
}
|
|
4408
|
-
],
|
|
3751
|
+
], Us = [
|
|
4409
3752
|
...K,
|
|
4410
3753
|
{
|
|
4411
3754
|
label: "Closing Template",
|
|
@@ -4425,10 +3768,10 @@ const xt = [
|
|
|
4425
3768
|
];
|
|
4426
3769
|
[
|
|
4427
3770
|
...xt,
|
|
4428
|
-
...
|
|
4429
|
-
...
|
|
3771
|
+
...zs,
|
|
3772
|
+
...Us
|
|
4430
3773
|
];
|
|
4431
|
-
const
|
|
3774
|
+
const hn = [
|
|
4432
3775
|
{
|
|
4433
3776
|
label: "Inventory",
|
|
4434
3777
|
subject: G.inventory,
|
|
@@ -4449,25 +3792,25 @@ const Zn = [
|
|
|
4449
3792
|
subject: G.inventory_closingTemplate,
|
|
4450
3793
|
actions: [t.read, t.update]
|
|
4451
3794
|
}
|
|
4452
|
-
],
|
|
3795
|
+
], Bn = [
|
|
4453
3796
|
{
|
|
4454
3797
|
label: "Inventory",
|
|
4455
3798
|
subject: G.inventory,
|
|
4456
3799
|
actions: [t.read, t.update]
|
|
4457
3800
|
}
|
|
4458
|
-
],
|
|
3801
|
+
], wn = [
|
|
4459
3802
|
{
|
|
4460
3803
|
label: "Inventory",
|
|
4461
3804
|
subject: G.inventory,
|
|
4462
3805
|
actions: [t.read, t.update]
|
|
4463
3806
|
}
|
|
4464
|
-
],
|
|
3807
|
+
], Mn = [
|
|
4465
3808
|
{
|
|
4466
3809
|
label: "Inventory",
|
|
4467
3810
|
subject: G.inventory,
|
|
4468
3811
|
actions: [t.read, t.update]
|
|
4469
3812
|
}
|
|
4470
|
-
],
|
|
3813
|
+
], Ws = [
|
|
4471
3814
|
{
|
|
4472
3815
|
label: "Purchase Order",
|
|
4473
3816
|
subject: G.inventory_purchaseOrder,
|
|
@@ -4508,7 +3851,7 @@ const Zn = [
|
|
|
4508
3851
|
subject: G.inventory_shipment,
|
|
4509
3852
|
actions: [t.read, t.update]
|
|
4510
3853
|
}
|
|
4511
|
-
],
|
|
3854
|
+
], Ts = [
|
|
4512
3855
|
{
|
|
4513
3856
|
label: "Purchase Order",
|
|
4514
3857
|
subject: G.inventory_purchaseOrder,
|
|
@@ -4529,7 +3872,7 @@ const Zn = [
|
|
|
4529
3872
|
subject: G.inventory_shipment,
|
|
4530
3873
|
actions: [t.read, t.update]
|
|
4531
3874
|
}
|
|
4532
|
-
],
|
|
3875
|
+
], Ss = [
|
|
4533
3876
|
...K,
|
|
4534
3877
|
{
|
|
4535
3878
|
label: "Surcharge",
|
|
@@ -4546,7 +3889,7 @@ const Zn = [
|
|
|
4546
3889
|
subject: G.inventory_supplier,
|
|
4547
3890
|
actions: [t.read]
|
|
4548
3891
|
}
|
|
4549
|
-
],
|
|
3892
|
+
], ks = [
|
|
4550
3893
|
...K,
|
|
4551
3894
|
{
|
|
4552
3895
|
label: "Order Template",
|
|
@@ -4568,7 +3911,7 @@ const Zn = [
|
|
|
4568
3911
|
subject: G.inventory_shipment,
|
|
4569
3912
|
actions: [t.read, t.update]
|
|
4570
3913
|
}
|
|
4571
|
-
],
|
|
3914
|
+
], Cn = [
|
|
4572
3915
|
...K,
|
|
4573
3916
|
{
|
|
4574
3917
|
label: "Order Draft Approval",
|
|
@@ -4577,12 +3920,12 @@ const Zn = [
|
|
|
4577
3920
|
}
|
|
4578
3921
|
];
|
|
4579
3922
|
[
|
|
3923
|
+
...Ws,
|
|
3924
|
+
...Ts,
|
|
4580
3925
|
...Ss,
|
|
4581
|
-
...ks
|
|
4582
|
-
...Ks,
|
|
4583
|
-
...Ls
|
|
3926
|
+
...ks
|
|
4584
3927
|
];
|
|
4585
|
-
const
|
|
3928
|
+
const Dn = [
|
|
4586
3929
|
...K,
|
|
4587
3930
|
{
|
|
4588
3931
|
label: "Supplier",
|
|
@@ -4599,7 +3942,7 @@ const Tn = [
|
|
|
4599
3942
|
subject: G.inventory_orderTemplate,
|
|
4600
3943
|
actions: [t.read, t.update]
|
|
4601
3944
|
}
|
|
4602
|
-
],
|
|
3945
|
+
], jn = [
|
|
4603
3946
|
...K,
|
|
4604
3947
|
{
|
|
4605
3948
|
label: "Warehouse",
|
|
@@ -4611,20 +3954,20 @@ const Tn = [
|
|
|
4611
3954
|
t.delete
|
|
4612
3955
|
]
|
|
4613
3956
|
}
|
|
4614
|
-
],
|
|
3957
|
+
], Gn = [
|
|
4615
3958
|
{
|
|
4616
3959
|
label: "Inventory",
|
|
4617
3960
|
subject: G.inventory,
|
|
4618
3961
|
actions: [t.read, t.update]
|
|
4619
3962
|
}
|
|
4620
|
-
],
|
|
3963
|
+
], Yn = [
|
|
4621
3964
|
...K,
|
|
4622
3965
|
{
|
|
4623
3966
|
label: "Inventory",
|
|
4624
3967
|
subject: G.inventory,
|
|
4625
3968
|
actions: [t.update]
|
|
4626
3969
|
}
|
|
4627
|
-
],
|
|
3970
|
+
], En = [
|
|
4628
3971
|
...K,
|
|
4629
3972
|
{
|
|
4630
3973
|
label: "Integration",
|
|
@@ -4637,7 +3980,7 @@ const Tn = [
|
|
|
4637
3980
|
...Et,
|
|
4638
3981
|
...xt
|
|
4639
3982
|
];
|
|
4640
|
-
const
|
|
3983
|
+
const xn = {
|
|
4641
3984
|
[`set_${o.inventory_stockBalance}`]: {
|
|
4642
3985
|
key: "sys:inventory:stock_balance",
|
|
4643
3986
|
name: "Stock Balance",
|
|
@@ -4646,17 +3989,17 @@ const Jn = {
|
|
|
4646
3989
|
[`set_${o.inventory_stockAdjustment}`]: {
|
|
4647
3990
|
key: "sys:inventory:stock_adjustment",
|
|
4648
3991
|
name: "Stock Adjustment",
|
|
4649
|
-
permissions:
|
|
3992
|
+
permissions: vn
|
|
4650
3993
|
},
|
|
4651
3994
|
[`set_${o.inventory_unitCostHistory}`]: {
|
|
4652
3995
|
key: "sys:inventory:unit_cost_history",
|
|
4653
3996
|
name: "Unit Cost History",
|
|
4654
|
-
permissions:
|
|
3997
|
+
permissions: Zs
|
|
4655
3998
|
},
|
|
4656
3999
|
[`set_${o.inventory_wastageTemplate}`]: {
|
|
4657
4000
|
key: "sys:inventory:wastage_template",
|
|
4658
4001
|
name: "Wastage Template",
|
|
4659
|
-
permissions:
|
|
4002
|
+
permissions: Ns
|
|
4660
4003
|
},
|
|
4661
4004
|
[`set_${o.inventory_closingHistory}`]: {
|
|
4662
4005
|
key: "sys:inventory:closing_history",
|
|
@@ -4666,86 +4009,86 @@ const Jn = {
|
|
|
4666
4009
|
[`set_${o.inventory_closingTemplate}`]: {
|
|
4667
4010
|
key: "sys:inventory:closing_template",
|
|
4668
4011
|
name: "Closing Template",
|
|
4669
|
-
permissions:
|
|
4012
|
+
permissions: Us
|
|
4670
4013
|
},
|
|
4671
4014
|
[`set_${o.inventory_closingDraft}`]: {
|
|
4672
4015
|
key: "sys:inventory:closing_draft",
|
|
4673
4016
|
name: "Closing Draft",
|
|
4674
|
-
permissions:
|
|
4017
|
+
permissions: zs
|
|
4675
4018
|
},
|
|
4676
4019
|
[`set_${o.inventory_ingredient}`]: {
|
|
4677
4020
|
key: "sys:inventory:ingredient",
|
|
4678
4021
|
name: "Ingredient",
|
|
4679
|
-
permissions:
|
|
4022
|
+
permissions: hn
|
|
4680
4023
|
},
|
|
4681
4024
|
[`set_${o.inventory_ingredientGroup}`]: {
|
|
4682
4025
|
key: "sys:inventory:ingredient_group",
|
|
4683
4026
|
name: "Ingredient Group",
|
|
4684
|
-
permissions:
|
|
4027
|
+
permissions: Bn
|
|
4685
4028
|
},
|
|
4686
4029
|
[`set_${o.inventory_recipe}`]: {
|
|
4687
4030
|
key: "sys:inventory:recipe",
|
|
4688
4031
|
name: "Recipe",
|
|
4689
|
-
permissions:
|
|
4032
|
+
permissions: wn
|
|
4690
4033
|
},
|
|
4691
4034
|
[`set_${o.inventory_unit}`]: {
|
|
4692
4035
|
key: "sys:inventory:unit",
|
|
4693
4036
|
name: "Unit",
|
|
4694
|
-
permissions:
|
|
4037
|
+
permissions: Mn
|
|
4695
4038
|
},
|
|
4696
4039
|
[`set_${o.inventory_purchaseTransfer}`]: {
|
|
4697
4040
|
key: "sys:inventory:purchase_transfer",
|
|
4698
4041
|
name: "Purchase Transfer",
|
|
4699
|
-
permissions:
|
|
4042
|
+
permissions: Ws
|
|
4700
4043
|
},
|
|
4701
4044
|
[`set_${o.inventory_orderDraftApproval}`]: {
|
|
4702
4045
|
key: "sys:inventory:order_draft_approval",
|
|
4703
4046
|
name: "Order Draft Approval",
|
|
4704
|
-
permissions:
|
|
4047
|
+
permissions: Cn
|
|
4705
4048
|
},
|
|
4706
4049
|
[`set_${o.inventory_transferOut}`]: {
|
|
4707
4050
|
key: "sys:inventory:transfer_out",
|
|
4708
4051
|
name: "Transfer Out",
|
|
4709
|
-
permissions:
|
|
4052
|
+
permissions: Ts
|
|
4710
4053
|
},
|
|
4711
4054
|
[`set_${o.inventory_surcharge}`]: {
|
|
4712
4055
|
key: "sys:inventory:surcharge",
|
|
4713
4056
|
name: "Surcharge",
|
|
4714
|
-
permissions:
|
|
4057
|
+
permissions: Ss
|
|
4715
4058
|
},
|
|
4716
4059
|
[`set_${o.inventory_orderTemplate}`]: {
|
|
4717
4060
|
key: "sys:inventory:order_template",
|
|
4718
4061
|
name: "Order Template",
|
|
4719
|
-
permissions:
|
|
4062
|
+
permissions: ks
|
|
4720
4063
|
},
|
|
4721
4064
|
[`set_${o.inventory_supplier}`]: {
|
|
4722
4065
|
key: "sys:inventory:supplier",
|
|
4723
4066
|
name: "Supplier",
|
|
4724
|
-
permissions:
|
|
4067
|
+
permissions: Dn
|
|
4725
4068
|
},
|
|
4726
4069
|
[`set_${o.inventory_warehouse}`]: {
|
|
4727
4070
|
key: "sys:inventory:warehouse",
|
|
4728
4071
|
name: "Warehouse",
|
|
4729
|
-
permissions:
|
|
4072
|
+
permissions: jn
|
|
4730
4073
|
},
|
|
4731
4074
|
[`set_${o.inventory_publish}`]: {
|
|
4732
4075
|
key: "sys:inventory:publish",
|
|
4733
4076
|
name: "Publish",
|
|
4734
|
-
permissions:
|
|
4077
|
+
permissions: Gn
|
|
4735
4078
|
},
|
|
4736
4079
|
[`set_${o.inventory_import}`]: {
|
|
4737
4080
|
key: "sys:inventory:import",
|
|
4738
4081
|
name: "Import",
|
|
4739
|
-
permissions:
|
|
4082
|
+
permissions: Yn
|
|
4740
4083
|
},
|
|
4741
4084
|
[`set_${o.inventory_integration}`]: {
|
|
4742
4085
|
key: "sys:inventory:integration",
|
|
4743
4086
|
name: "Integration",
|
|
4744
|
-
permissions:
|
|
4087
|
+
permissions: En
|
|
4745
4088
|
}
|
|
4746
4089
|
};
|
|
4747
4090
|
var Ee = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e))(Ee || {});
|
|
4748
|
-
const
|
|
4091
|
+
const Vn = {
|
|
4749
4092
|
/**
|
|
4750
4093
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
4751
4094
|
* Injects: team member list read + pos role read
|
|
@@ -4812,55 +4155,712 @@ const _n = {
|
|
|
4812
4155
|
subject: Ee.hrm_portalUsers,
|
|
4813
4156
|
actions: [t.read]
|
|
4814
4157
|
}
|
|
4815
|
-
]
|
|
4158
|
+
]
|
|
4159
|
+
}
|
|
4160
|
+
};
|
|
4161
|
+
var Ks = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(Ks || {});
|
|
4162
|
+
const Nt = [
|
|
4163
|
+
{
|
|
4164
|
+
label: "Payout Account",
|
|
4165
|
+
subject: o.payment_payoutAccount,
|
|
4166
|
+
actions: [t.read]
|
|
4167
|
+
},
|
|
4168
|
+
{
|
|
4169
|
+
label: "Payment Terminals",
|
|
4170
|
+
subject: Ks.payment_terminals,
|
|
4171
|
+
actions: [t.read]
|
|
4172
|
+
}
|
|
4173
|
+
], Pn = {
|
|
4174
|
+
[`set_${o.payment_transactions}`]: {
|
|
4175
|
+
key: "sys:payment:transactions",
|
|
4176
|
+
name: "Payment Transactions Access",
|
|
4177
|
+
permissions: Nt
|
|
4178
|
+
},
|
|
4179
|
+
[`set_${o.payment_settlements}`]: {
|
|
4180
|
+
key: "sys:payment:settlements",
|
|
4181
|
+
name: "Payment Settlements Access",
|
|
4182
|
+
permissions: Nt
|
|
4183
|
+
}
|
|
4184
|
+
}, Fn = {
|
|
4185
|
+
...yn,
|
|
4186
|
+
...xn,
|
|
4187
|
+
...Vn,
|
|
4188
|
+
...Pn
|
|
4189
|
+
}, _a = Object.values(
|
|
4190
|
+
Fn
|
|
4191
|
+
).flatMap((e) => e.permissions ?? []).reduce(
|
|
4192
|
+
(e, A) => {
|
|
4193
|
+
var u;
|
|
4194
|
+
return e[u = A.subject] ?? (e[u] = A.label), e;
|
|
4195
|
+
},
|
|
4196
|
+
{}
|
|
4197
|
+
);
|
|
4198
|
+
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4199
|
+
function On(e) {
|
|
4200
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4201
|
+
}
|
|
4202
|
+
var Ls = { exports: {} };
|
|
4203
|
+
(function(e, A) {
|
|
4204
|
+
(function(u, c) {
|
|
4205
|
+
e.exports = c();
|
|
4206
|
+
})(Re, function() {
|
|
4207
|
+
return function(u) {
|
|
4208
|
+
var c = {};
|
|
4209
|
+
function r(m) {
|
|
4210
|
+
if (c[m]) return c[m].exports;
|
|
4211
|
+
var y = c[m] = { i: m, l: !1, exports: {} };
|
|
4212
|
+
return u[m].call(y.exports, y, y.exports, r), y.l = !0, y.exports;
|
|
4213
|
+
}
|
|
4214
|
+
return r.m = u, r.c = c, r.d = function(m, y, h) {
|
|
4215
|
+
r.o(m, y) || Object.defineProperty(m, y, { enumerable: !0, get: h });
|
|
4216
|
+
}, r.r = function(m) {
|
|
4217
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4218
|
+
}, r.t = function(m, y) {
|
|
4219
|
+
if (1 & y && (m = r(m)), 8 & y || 4 & y && typeof m == "object" && m && m.__esModule) return m;
|
|
4220
|
+
var h = /* @__PURE__ */ Object.create(null);
|
|
4221
|
+
if (r.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: m }), 2 & y && typeof m != "string")
|
|
4222
|
+
for (var E in m)
|
|
4223
|
+
r.d(
|
|
4224
|
+
h,
|
|
4225
|
+
E,
|
|
4226
|
+
(function(Y) {
|
|
4227
|
+
return m[Y];
|
|
4228
|
+
}).bind(null, E)
|
|
4229
|
+
);
|
|
4230
|
+
return h;
|
|
4231
|
+
}, r.n = function(m) {
|
|
4232
|
+
var y = m && m.__esModule ? function() {
|
|
4233
|
+
return m.default;
|
|
4234
|
+
} : function() {
|
|
4235
|
+
return m;
|
|
4236
|
+
};
|
|
4237
|
+
return r.d(y, "a", y), y;
|
|
4238
|
+
}, r.o = function(m, y) {
|
|
4239
|
+
return Object.prototype.hasOwnProperty.call(m, y);
|
|
4240
|
+
}, r.p = "", r(r.s = 0);
|
|
4241
|
+
}([
|
|
4242
|
+
function(u, c, r) {
|
|
4243
|
+
u.exports = r(1);
|
|
4244
|
+
},
|
|
4245
|
+
function(u, c, r) {
|
|
4246
|
+
function m(i) {
|
|
4247
|
+
return (m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
4248
|
+
return typeof g;
|
|
4249
|
+
} : function(g) {
|
|
4250
|
+
return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
|
|
4251
|
+
})(i);
|
|
4252
|
+
}
|
|
4253
|
+
function y(i) {
|
|
4254
|
+
var g = "[object " + i + "]";
|
|
4255
|
+
return function(f) {
|
|
4256
|
+
return Object.prototype.toString.call(f) === g;
|
|
4257
|
+
};
|
|
4258
|
+
}
|
|
4259
|
+
r.r(c), r.d(c, "default", function() {
|
|
4260
|
+
return Ze;
|
|
4261
|
+
}), r.d(c, "compare", function() {
|
|
4262
|
+
return Fe;
|
|
4263
|
+
}), r.d(c, "comparable", function() {
|
|
4264
|
+
return Oe;
|
|
4265
|
+
});
|
|
4266
|
+
var h = y("Array"), E = y("Object"), Y = y("Function");
|
|
4267
|
+
function w(i, g) {
|
|
4268
|
+
return Y(i.get) ? i.get(g) : i[g];
|
|
4269
|
+
}
|
|
4270
|
+
function P(i) {
|
|
4271
|
+
return function(g, f) {
|
|
4272
|
+
if (!h(f) || !f.length) return i(g, f);
|
|
4273
|
+
for (var B = 0, C = f.length; B < C; B++)
|
|
4274
|
+
if (i(g, w(f, B))) return !0;
|
|
4275
|
+
return !1;
|
|
4276
|
+
};
|
|
4277
|
+
}
|
|
4278
|
+
function I(i) {
|
|
4279
|
+
return function(g, f) {
|
|
4280
|
+
if (!h(f) || !f.length) return i(g, f);
|
|
4281
|
+
for (var B = 0, C = f.length; B < C; B++)
|
|
4282
|
+
if (!i(g, w(f, B))) return !1;
|
|
4283
|
+
return !0;
|
|
4284
|
+
};
|
|
4285
|
+
}
|
|
4286
|
+
function H(i, g, f, B) {
|
|
4287
|
+
return i.validate(i.options, g, f, B);
|
|
4288
|
+
}
|
|
4289
|
+
var z = {
|
|
4290
|
+
$eq: P(function(i, g) {
|
|
4291
|
+
return i(g);
|
|
4292
|
+
}),
|
|
4293
|
+
$ne: I(function(i, g) {
|
|
4294
|
+
return i(g);
|
|
4295
|
+
}),
|
|
4296
|
+
$gt: P(function(i, g) {
|
|
4297
|
+
return i(g);
|
|
4298
|
+
}),
|
|
4299
|
+
$gte: P(function(i, g) {
|
|
4300
|
+
return i(g);
|
|
4301
|
+
}),
|
|
4302
|
+
$lt: P(function(i, g) {
|
|
4303
|
+
return i(g);
|
|
4304
|
+
}),
|
|
4305
|
+
$lte: P(function(i, g) {
|
|
4306
|
+
return i(g);
|
|
4307
|
+
}),
|
|
4308
|
+
$mod: P(function(i, g) {
|
|
4309
|
+
return i(g);
|
|
4310
|
+
}),
|
|
4311
|
+
$in: function(i, g) {
|
|
4312
|
+
return i(g);
|
|
4313
|
+
},
|
|
4314
|
+
$nin: function(i, g) {
|
|
4315
|
+
return i(g);
|
|
4316
|
+
},
|
|
4317
|
+
$not: function(i, g, f, B) {
|
|
4318
|
+
return i(g, f, B);
|
|
4319
|
+
},
|
|
4320
|
+
$type: function(i, g) {
|
|
4321
|
+
return i(g);
|
|
4322
|
+
},
|
|
4323
|
+
$all: function(i, g, f, B) {
|
|
4324
|
+
return z.$and(i, g, f, B);
|
|
4325
|
+
},
|
|
4326
|
+
$size: function(i, g) {
|
|
4327
|
+
return !!g && i === g.length;
|
|
4328
|
+
},
|
|
4329
|
+
$or: function(i, g, f, B) {
|
|
4330
|
+
for (var C = 0, D = i.length; C < D; C++)
|
|
4331
|
+
if (H(w(i, C), g, f, B)) return !0;
|
|
4332
|
+
return !1;
|
|
4333
|
+
},
|
|
4334
|
+
$nor: function(i, g, f, B) {
|
|
4335
|
+
return !z.$or(i, g, f, B);
|
|
4336
|
+
},
|
|
4337
|
+
$and: function(i, g, f, B) {
|
|
4338
|
+
for (var C = 0, D = i.length; C < D; C++)
|
|
4339
|
+
if (!H(w(i, C), g, f, B)) return !1;
|
|
4340
|
+
return !0;
|
|
4341
|
+
},
|
|
4342
|
+
$regex: P(function(i, g) {
|
|
4343
|
+
return typeof g == "string" && i.test(g);
|
|
4344
|
+
}),
|
|
4345
|
+
$where: function(i, g, f, B) {
|
|
4346
|
+
return i.call(g, g, f, B);
|
|
4347
|
+
},
|
|
4348
|
+
$elemMatch: function(i, g, f, B) {
|
|
4349
|
+
return h(g) ? !!~function(C, D) {
|
|
4350
|
+
for (var V = 0; V < C.length; V++)
|
|
4351
|
+
if (w(C, V), H(D, w(C, V))) return V;
|
|
4352
|
+
return -1;
|
|
4353
|
+
}(g, i) : H(i, g, f, B);
|
|
4354
|
+
},
|
|
4355
|
+
$exists: function(i, g, f, B) {
|
|
4356
|
+
return B.hasOwnProperty(f) === i;
|
|
4357
|
+
}
|
|
4358
|
+
}, S = {
|
|
4359
|
+
$eq: function(i, g, f) {
|
|
4360
|
+
var B = f.comparable, C = f.compare;
|
|
4361
|
+
return i instanceof RegExp ? P(function(D) {
|
|
4362
|
+
return typeof D == "string" && i.test(D);
|
|
4363
|
+
}) : i instanceof Function ? P(i) : h(i) && !i.length ? P(function(D) {
|
|
4364
|
+
return h(D) && !D.length;
|
|
4365
|
+
}) : P(
|
|
4366
|
+
i === null ? function(D) {
|
|
4367
|
+
return D == null;
|
|
4368
|
+
} : function(D) {
|
|
4369
|
+
return C(B(D), B(i)) === 0;
|
|
4370
|
+
}
|
|
4371
|
+
);
|
|
4372
|
+
},
|
|
4373
|
+
$gt: function(i, g, f) {
|
|
4374
|
+
var B = f.comparable, C = f.compare;
|
|
4375
|
+
return function(D) {
|
|
4376
|
+
return C(B(D), B(i)) > 0;
|
|
4377
|
+
};
|
|
4378
|
+
},
|
|
4379
|
+
$gte: function(i, g, f) {
|
|
4380
|
+
var B = f.comparable, C = f.compare;
|
|
4381
|
+
return function(D) {
|
|
4382
|
+
return C(B(D), B(i)) >= 0;
|
|
4383
|
+
};
|
|
4384
|
+
},
|
|
4385
|
+
$lt: function(i, g, f) {
|
|
4386
|
+
var B = f.comparable, C = f.compare;
|
|
4387
|
+
return function(D) {
|
|
4388
|
+
return C(B(D), B(i)) < 0;
|
|
4389
|
+
};
|
|
4390
|
+
},
|
|
4391
|
+
$lte: function(i, g, f) {
|
|
4392
|
+
var B = f.comparable, C = f.compare;
|
|
4393
|
+
return function(D) {
|
|
4394
|
+
return C(B(D), B(i)) <= 0;
|
|
4395
|
+
};
|
|
4396
|
+
},
|
|
4397
|
+
$in: function(i, g, f) {
|
|
4398
|
+
var B = f.comparable;
|
|
4399
|
+
return function(C) {
|
|
4400
|
+
if (!(C instanceof Array)) {
|
|
4401
|
+
var D = B(C);
|
|
4402
|
+
if (D === C && m(C) === "object") {
|
|
4403
|
+
for (F = i.length; F--; )
|
|
4404
|
+
if (String(i[F]) === String(C) && String(C) !== "[object Object]")
|
|
4405
|
+
return !0;
|
|
4406
|
+
}
|
|
4407
|
+
if (D === void 0) {
|
|
4408
|
+
for (F = i.length; F--; ) if (i[F] == null) return !0;
|
|
4409
|
+
}
|
|
4410
|
+
for (F = i.length; F--; ) {
|
|
4411
|
+
var V = H(Pe(w(i, F), f), D, F, i);
|
|
4412
|
+
if (V && String(V) !== "[object Object]" && String(D) !== "[object Object]")
|
|
4413
|
+
return !0;
|
|
4414
|
+
}
|
|
4415
|
+
return !!~i.indexOf(D);
|
|
4416
|
+
}
|
|
4417
|
+
for (var F = C.length; F--; )
|
|
4418
|
+
if (~i.indexOf(B(w(C, F)))) return !0;
|
|
4419
|
+
return !1;
|
|
4420
|
+
};
|
|
4421
|
+
},
|
|
4422
|
+
$nin: function(i, g, f) {
|
|
4423
|
+
var B = S.$in(i, g, f);
|
|
4424
|
+
return function(C, D, V, F) {
|
|
4425
|
+
return !B(C, D, V, F);
|
|
4426
|
+
};
|
|
4427
|
+
},
|
|
4428
|
+
$mod: function(i) {
|
|
4429
|
+
return function(g) {
|
|
4430
|
+
return g % i[0] == i[1];
|
|
4431
|
+
};
|
|
4432
|
+
},
|
|
4433
|
+
$ne: function(i, g, f) {
|
|
4434
|
+
var B = S.$eq(i, g, f);
|
|
4435
|
+
return I(function(C, D, V, F) {
|
|
4436
|
+
return !B(C, D, V, F);
|
|
4437
|
+
});
|
|
4438
|
+
},
|
|
4439
|
+
$and: function(i, g, f) {
|
|
4440
|
+
return i.map(ie(f));
|
|
4441
|
+
},
|
|
4442
|
+
$all: function(i, g, f) {
|
|
4443
|
+
return S.$and(i, g, f);
|
|
4444
|
+
},
|
|
4445
|
+
$or: function(i, g, f) {
|
|
4446
|
+
return i.map(ie(f));
|
|
4447
|
+
},
|
|
4448
|
+
$nor: function(i, g, f) {
|
|
4449
|
+
return i.map(ie(f));
|
|
4450
|
+
},
|
|
4451
|
+
$not: function(i, g, f) {
|
|
4452
|
+
var B = ie(f)(i);
|
|
4453
|
+
return function(C, D, V) {
|
|
4454
|
+
return !H(B, C, D, V);
|
|
4455
|
+
};
|
|
4456
|
+
},
|
|
4457
|
+
$type: function(i) {
|
|
4458
|
+
return function(g, f, B) {
|
|
4459
|
+
return g != null && (g instanceof i || g.constructor == i);
|
|
4460
|
+
};
|
|
4461
|
+
},
|
|
4462
|
+
$regex: function(i, g) {
|
|
4463
|
+
return new RegExp(i, g.$options);
|
|
4464
|
+
},
|
|
4465
|
+
$where: function(i) {
|
|
4466
|
+
if (typeof i == "function") return i;
|
|
4467
|
+
throw new Error(
|
|
4468
|
+
'In CSP mode, sift does not support strings in "$where" condition'
|
|
4469
|
+
);
|
|
4470
|
+
},
|
|
4471
|
+
$elemMatch: function(i, g, f) {
|
|
4472
|
+
return ie(f)(i);
|
|
4473
|
+
},
|
|
4474
|
+
$exists: function(i) {
|
|
4475
|
+
return !!i;
|
|
4476
|
+
}
|
|
4477
|
+
};
|
|
4478
|
+
function te(i, g) {
|
|
4479
|
+
return { options: i, validate: g };
|
|
4480
|
+
}
|
|
4481
|
+
function k(i, g) {
|
|
4482
|
+
var f = i.keyPath, B = i.child, C = i.query, D = [];
|
|
4483
|
+
if (function s(l, a, p, v, j) {
|
|
4484
|
+
if (p === a.length || l == null)
|
|
4485
|
+
return void j.push([l, a[p - 1], v]);
|
|
4486
|
+
var x = w(a, p);
|
|
4487
|
+
if (h(l) && isNaN(Number(x)))
|
|
4488
|
+
for (var O = 0, M = l.length; O < M; O++) s(w(l, O), a, p, l, j);
|
|
4489
|
+
else s(w(l, x), a, p + 1, l, j);
|
|
4490
|
+
}(g, f, 0, g, D), D.length === 1) {
|
|
4491
|
+
var V = D[0];
|
|
4492
|
+
return H(B, V[0], V[1], V[2]);
|
|
4493
|
+
}
|
|
4494
|
+
for (var F = C && C.$ne !== void 0, N = F, W = 0; W < D.length; W++) {
|
|
4495
|
+
var d = D[W], n = H(B, d[0], d[1], d[2]);
|
|
4496
|
+
F ? N &= n : N |= n;
|
|
4497
|
+
}
|
|
4498
|
+
return N;
|
|
4499
|
+
}
|
|
4500
|
+
function Le(i, g, f) {
|
|
4501
|
+
return te({ keyPath: i, child: g, query: f }, k);
|
|
4502
|
+
}
|
|
4503
|
+
function ie(i) {
|
|
4504
|
+
var g = i.comparable, f = i.expressions, B = function(V) {
|
|
4505
|
+
var F;
|
|
4506
|
+
return (!V || !(F = V) || F.constructor !== Object && F.constructor !== Array && F.constructor.toString() !== "function Object() { [native code] }" && F.constructor.toString() !== "function Array() { [native code] }" || F.toJSON) && (V = { $eq: V }), V;
|
|
4507
|
+
}, C = function(V) {
|
|
4508
|
+
V = g(V);
|
|
4509
|
+
var F = [];
|
|
4510
|
+
for (var N in V) {
|
|
4511
|
+
var W = V[N];
|
|
4512
|
+
if (N !== "$options") {
|
|
4513
|
+
var d = z[N] || i && f && f[N];
|
|
4514
|
+
if (d) S[N] && (W = S[N](W, V, i)), F.push(te(g(W), d));
|
|
4515
|
+
else {
|
|
4516
|
+
if (N.charCodeAt(0) === 36)
|
|
4517
|
+
throw new Error("Unknown operation " + N);
|
|
4518
|
+
var n = N.split(".");
|
|
4519
|
+
F.push(Le(n, D(W), W));
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
}
|
|
4523
|
+
return F.length === 1 ? F[0] : te(F, z.$and);
|
|
4524
|
+
}, D = function(V) {
|
|
4525
|
+
return V = B(V), function F(N, W) {
|
|
4526
|
+
if (!E(N)) return W;
|
|
4527
|
+
for (var d in N) W.push(d), F(N[d], W);
|
|
4528
|
+
return W;
|
|
4529
|
+
}(V, []).join(",").search(/[$.]/) === -1 ? te(V, he) : C(V);
|
|
4530
|
+
};
|
|
4531
|
+
return function(V) {
|
|
4532
|
+
return C(B(V));
|
|
4533
|
+
};
|
|
4534
|
+
}
|
|
4535
|
+
function he(i, g) {
|
|
4536
|
+
if (Object.prototype.toString.call(i) !== Object.prototype.toString.call(g))
|
|
4537
|
+
return !1;
|
|
4538
|
+
if (E(i)) {
|
|
4539
|
+
if (Object.keys(i).length !== Object.keys(g).length) return !1;
|
|
4540
|
+
for (var f in i) if (!he(i[f], g[f])) return !1;
|
|
4541
|
+
return !0;
|
|
4542
|
+
}
|
|
4543
|
+
if (h(i)) {
|
|
4544
|
+
if (i.length !== g.length) return !1;
|
|
4545
|
+
for (var B = 0, C = i.length; B < C; B++)
|
|
4546
|
+
if (!he(i[B], g[B])) return !1;
|
|
4547
|
+
return !0;
|
|
4548
|
+
}
|
|
4549
|
+
return i === g;
|
|
4550
|
+
}
|
|
4551
|
+
function Pe(i, g) {
|
|
4552
|
+
var f = ie(g)(i);
|
|
4553
|
+
return g && g.select && (f = {
|
|
4554
|
+
options: f,
|
|
4555
|
+
validate: function(B, C, D, V) {
|
|
4556
|
+
return H(B, C && g.select(C), D, V);
|
|
4557
|
+
}
|
|
4558
|
+
}), f;
|
|
4559
|
+
}
|
|
4560
|
+
function Ze(i, g) {
|
|
4561
|
+
var f = Pe(i, g = Object.assign({ compare: Fe, comparable: Oe }, g));
|
|
4562
|
+
return function(B, C, D) {
|
|
4563
|
+
return H(f, B, C, D);
|
|
4564
|
+
};
|
|
4565
|
+
}
|
|
4566
|
+
function Fe(i, g) {
|
|
4567
|
+
if (he(i, g)) return 0;
|
|
4568
|
+
if (m(i) === m(g)) {
|
|
4569
|
+
if (i > g) return 1;
|
|
4570
|
+
if (i < g) return -1;
|
|
4571
|
+
}
|
|
4572
|
+
}
|
|
4573
|
+
function Oe(i) {
|
|
4574
|
+
return i instanceof Date ? i.getTime() : h(i) ? i.map(Oe) : i && typeof i.toJSON == "function" ? i.toJSON() : i;
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
]);
|
|
4578
|
+
});
|
|
4579
|
+
})(Ls);
|
|
4580
|
+
var qn = Ls.exports;
|
|
4581
|
+
const Hn = /* @__PURE__ */ On(qn);
|
|
4582
|
+
function Xn(e, A) {
|
|
4583
|
+
for (var u = 0; u < A.length; u++) {
|
|
4584
|
+
var c = A[u];
|
|
4585
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
4816
4586
|
}
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
{
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4587
|
+
}
|
|
4588
|
+
function Qn(e, A, u) {
|
|
4589
|
+
return A && Xn(e.prototype, A), e;
|
|
4590
|
+
}
|
|
4591
|
+
function In(e, A) {
|
|
4592
|
+
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
4593
|
+
}
|
|
4594
|
+
function Bt(e) {
|
|
4595
|
+
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(u) {
|
|
4596
|
+
return u.__proto__ || Object.getPrototypeOf(u);
|
|
4597
|
+
}, Bt(e);
|
|
4598
|
+
}
|
|
4599
|
+
function Se(e, A) {
|
|
4600
|
+
return Se = Object.setPrototypeOf || function(c, r) {
|
|
4601
|
+
return c.__proto__ = r, c;
|
|
4602
|
+
}, Se(e, A);
|
|
4603
|
+
}
|
|
4604
|
+
function Rn() {
|
|
4605
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
4606
|
+
if (typeof Proxy == "function") return !0;
|
|
4607
|
+
try {
|
|
4608
|
+
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
4609
|
+
})), !0;
|
|
4610
|
+
} catch {
|
|
4611
|
+
return !1;
|
|
4829
4612
|
}
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4613
|
+
}
|
|
4614
|
+
function Te(e, A, u) {
|
|
4615
|
+
return Rn() ? Te = Reflect.construct : Te = function(r, m, y) {
|
|
4616
|
+
var h = [null];
|
|
4617
|
+
h.push.apply(h, m);
|
|
4618
|
+
var E = Function.bind.apply(r, h), Y = new E();
|
|
4619
|
+
return y && Se(Y, y.prototype), Y;
|
|
4620
|
+
}, Te.apply(null, arguments);
|
|
4621
|
+
}
|
|
4622
|
+
function Zn(e) {
|
|
4623
|
+
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
4624
|
+
}
|
|
4625
|
+
function wt(e) {
|
|
4626
|
+
var A = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
4627
|
+
return wt = function(c) {
|
|
4628
|
+
if (c === null || !Zn(c)) return c;
|
|
4629
|
+
if (typeof c != "function")
|
|
4630
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
4631
|
+
if (typeof A < "u") {
|
|
4632
|
+
if (A.has(c)) return A.get(c);
|
|
4633
|
+
A.set(c, r);
|
|
4634
|
+
}
|
|
4635
|
+
function r() {
|
|
4636
|
+
return Te(c, arguments, Bt(this).constructor);
|
|
4637
|
+
}
|
|
4638
|
+
return r.prototype = Object.create(c.prototype, {
|
|
4639
|
+
constructor: {
|
|
4640
|
+
value: r,
|
|
4641
|
+
enumerable: !1,
|
|
4642
|
+
writable: !0,
|
|
4643
|
+
configurable: !0
|
|
4644
|
+
}
|
|
4645
|
+
}), Se(r, c);
|
|
4646
|
+
}, wt(e);
|
|
4647
|
+
}
|
|
4648
|
+
function zt(e) {
|
|
4649
|
+
if (e === void 0)
|
|
4650
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4651
|
+
return e;
|
|
4652
|
+
}
|
|
4653
|
+
var Js = function(A) {
|
|
4654
|
+
return 'Cannot execute "' + A.action + '" on "' + A.subjectName + '"';
|
|
4655
|
+
}, ze = Js, Nn = /* @__PURE__ */ function(e) {
|
|
4656
|
+
In(A, e), A.setDefaultMessage = function(r) {
|
|
4657
|
+
r === null ? ze = Js : ze = typeof r == "string" ? function() {
|
|
4658
|
+
return r;
|
|
4659
|
+
} : r;
|
|
4660
|
+
}, A.from = function(r) {
|
|
4661
|
+
var m = new this("");
|
|
4662
|
+
return Object.defineProperty(m, "ability", {
|
|
4663
|
+
value: r
|
|
4664
|
+
}), m;
|
|
4665
|
+
};
|
|
4666
|
+
function A(c, r) {
|
|
4667
|
+
var m;
|
|
4668
|
+
return r === void 0 && (r = {}), m = e.call(this, c) || this, m._setMetadata(r), m.message = c || ze(zt(m)), m._customMessage = null, typeof Error.captureStackTrace == "function" && (m.name = m.constructor.name, Error.captureStackTrace(zt(m), m.constructor)), m;
|
|
4840
4669
|
}
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
);
|
|
4670
|
+
var u = A.prototype;
|
|
4671
|
+
return u.setMessage = function(r) {
|
|
4672
|
+
return this._customMessage = r, this;
|
|
4673
|
+
}, u.throwUnlessCan = function(r, m, y) {
|
|
4674
|
+
if (!this.ability)
|
|
4675
|
+
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
4676
|
+
var h = this.ability.relevantRuleFor(r, m, y);
|
|
4677
|
+
if (!(h && !h.inverted)) {
|
|
4678
|
+
this._setMetadata({
|
|
4679
|
+
action: r,
|
|
4680
|
+
subject: m,
|
|
4681
|
+
field: y,
|
|
4682
|
+
subjectName: this.ability.subjectName(m)
|
|
4683
|
+
});
|
|
4684
|
+
var E = h ? h.reason : "";
|
|
4685
|
+
throw this.message = this._customMessage || E || ze(this), this;
|
|
4686
|
+
}
|
|
4687
|
+
}, u._setMetadata = function(r) {
|
|
4688
|
+
this.subject = r.subject, this.subjectName = r.subjectName, this.action = r.action, this.field = r.field;
|
|
4689
|
+
}, A;
|
|
4690
|
+
}(wt(Error));
|
|
4691
|
+
function Mt(e) {
|
|
4692
|
+
return Array.isArray(e) ? e : [e];
|
|
4693
|
+
}
|
|
4694
|
+
function zn(e) {
|
|
4695
|
+
if (!e || typeof e == "string")
|
|
4696
|
+
return e;
|
|
4697
|
+
var A = typeof e == "object" ? e.constructor : e;
|
|
4698
|
+
return A.modelName || A.name;
|
|
4699
|
+
}
|
|
4700
|
+
function Un(e) {
|
|
4701
|
+
return JSON.parse(JSON.stringify(e));
|
|
4702
|
+
}
|
|
4703
|
+
var Wn = /[-/\\^$+?.()|[\]{}]/g, Tn = /\.?\*+\.?/g, Sn = /\*+/, kn = /\./g;
|
|
4704
|
+
function Kn(e, A, u) {
|
|
4705
|
+
var c = u[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", m = e.replace(kn, "\\$&").replace(Sn, r + c);
|
|
4706
|
+
return A + e.length === u.length ? "(?:" + m + ")?" : m;
|
|
4707
|
+
}
|
|
4708
|
+
function Ln(e, A, u) {
|
|
4709
|
+
return e === "." && (u[A - 1] === "*" || u[A + 1] === "*") ? e : "\\" + e;
|
|
4710
|
+
}
|
|
4711
|
+
function Jn(e) {
|
|
4712
|
+
var A = e.map(function(c) {
|
|
4713
|
+
return c.replace(Wn, Ln).replace(Tn, Kn);
|
|
4714
|
+
}), u = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
4715
|
+
return new RegExp("^" + u + "$");
|
|
4716
|
+
}
|
|
4717
|
+
var _n = /* @__PURE__ */ function() {
|
|
4718
|
+
function e(u) {
|
|
4719
|
+
this.actions = u.actions || u.action, this.subject = u.subject, this.fields = !u.fields || u.fields.length === 0 ? void 0 : Mt(u.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
4720
|
+
writable: !0
|
|
4721
|
+
}), this.inverted = !!u.inverted, this.conditions = u.conditions, Object.defineProperty(this, "_matches", {
|
|
4722
|
+
writable: !0,
|
|
4723
|
+
value: this.conditions ? Hn(this.conditions) : void 0
|
|
4724
|
+
}), this.reason = u.reason;
|
|
4725
|
+
}
|
|
4726
|
+
var A = e.prototype;
|
|
4727
|
+
return A.matches = function(c) {
|
|
4728
|
+
return this._matches ? typeof c == "string" ? !this.inverted : this._matches(c) : !0;
|
|
4729
|
+
}, A.isRelevantFor = function(c, r) {
|
|
4730
|
+
return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
|
|
4731
|
+
}, A.matchesField = function(c) {
|
|
4732
|
+
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : Jn(this.fields)), this._fieldsPattern === null || c.indexOf("*") !== -1 ? this.fields.indexOf(c) !== -1 : this._fieldsPattern.test(c);
|
|
4733
|
+
}, e;
|
|
4734
|
+
}(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), Ut = {
|
|
4735
|
+
crud: ["create", "read", "update", "delete"]
|
|
4736
|
+
};
|
|
4737
|
+
function Wt(e, A) {
|
|
4738
|
+
return e === A || Array.isArray(A) && A.indexOf(e) !== -1;
|
|
4739
|
+
}
|
|
4740
|
+
var $n = /* @__PURE__ */ function() {
|
|
4741
|
+
e.addAlias = function(c, r) {
|
|
4742
|
+
if (c === "manage" || Wt("manage", r))
|
|
4743
|
+
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
4744
|
+
if (Wt(c, r))
|
|
4745
|
+
throw new Error("Attempt to alias action to itself: " + c + " -> " + r.toString());
|
|
4746
|
+
return Ut[c] = r, this;
|
|
4747
|
+
};
|
|
4748
|
+
function e(u, c) {
|
|
4749
|
+
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
4750
|
+
value: c.subjectName || zn
|
|
4751
|
+
}), this[ee] = {
|
|
4752
|
+
RuleType: c.RuleType || _n,
|
|
4753
|
+
originalRules: u || [],
|
|
4754
|
+
hasPerFieldRules: !1,
|
|
4755
|
+
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
4756
|
+
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
4757
|
+
events: {},
|
|
4758
|
+
aliases: Un(Ut)
|
|
4759
|
+
}, this.update(u);
|
|
4760
|
+
}
|
|
4761
|
+
var A = e.prototype;
|
|
4762
|
+
return A.update = function(c) {
|
|
4763
|
+
if (!Array.isArray(c))
|
|
4764
|
+
return this;
|
|
4765
|
+
var r = {
|
|
4766
|
+
rules: c,
|
|
4767
|
+
ability: this
|
|
4768
|
+
};
|
|
4769
|
+
this.emit("update", r), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
4770
|
+
var m = this.buildIndexFor(c);
|
|
4771
|
+
return this[ee].indexedRules = m.rules, this[ee].hasPerFieldRules = m.hasPerFieldRules, this.emit("updated", r), this;
|
|
4772
|
+
}, A.buildIndexFor = function(c) {
|
|
4773
|
+
for (var r = /* @__PURE__ */ Object.create(null), m = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
4774
|
+
var Y = new m(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
4775
|
+
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
4776
|
+
for (var H = 0; H < P.length; H++) {
|
|
4777
|
+
var z = P[H];
|
|
4778
|
+
r[z] = r[z] || /* @__PURE__ */ Object.create(null);
|
|
4779
|
+
for (var S = 0; S < w.length; S++) {
|
|
4780
|
+
var te = w[S];
|
|
4781
|
+
r[z][te] = r[z][te] || /* @__PURE__ */ Object.create(null), r[z][te][I] = Y;
|
|
4782
|
+
}
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
return {
|
|
4786
|
+
isAllInverted: y,
|
|
4787
|
+
hasPerFieldRules: h,
|
|
4788
|
+
rules: r
|
|
4789
|
+
};
|
|
4790
|
+
}, A.expandActions = function(c) {
|
|
4791
|
+
for (var r = this[ee].aliases, m = Mt(c), y = 0; y < m.length; ) {
|
|
4792
|
+
var h = m[y++];
|
|
4793
|
+
r.hasOwnProperty(h) && (m = m.concat(r[h]));
|
|
4794
|
+
}
|
|
4795
|
+
return m;
|
|
4796
|
+
}, A.can = function(c, r, m) {
|
|
4797
|
+
if (m && typeof m != "string")
|
|
4798
|
+
throw new Error("Ability.can expects 3rd parameter to be a string. See https://stalniy.github.io/casl/abilities/2017/07/21/check-abilities.html#checking-fields for details");
|
|
4799
|
+
var y = this.relevantRuleFor(c, r, m);
|
|
4800
|
+
return !!y && !y.inverted;
|
|
4801
|
+
}, A.relevantRuleFor = function(c, r, m) {
|
|
4802
|
+
for (var y = this.rulesFor(c, r, m), h = 0; h < y.length; h++)
|
|
4803
|
+
if (y[h].matches(r))
|
|
4804
|
+
return y[h];
|
|
4805
|
+
return null;
|
|
4806
|
+
}, A.possibleRulesFor = function(c, r) {
|
|
4807
|
+
var m = this.subjectName(r), y = this[ee].mergedRules, h = m + "_" + c;
|
|
4808
|
+
return y[h] || (y[h] = this.mergeRulesFor(c, m)), y[h];
|
|
4809
|
+
}, A.mergeRulesFor = function(c, r) {
|
|
4810
|
+
var m = this[ee].indexedRules, y = [r, "all"].reduce(function(h, E) {
|
|
4811
|
+
var Y = m[E];
|
|
4812
|
+
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
4813
|
+
}, []);
|
|
4814
|
+
return y.filter(Boolean);
|
|
4815
|
+
}, A.rulesFor = function(c, r, m) {
|
|
4816
|
+
var y = this.possibleRulesFor(c, r);
|
|
4817
|
+
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
4818
|
+
return h.isRelevantFor(r, m);
|
|
4819
|
+
}) : y;
|
|
4820
|
+
}, A.cannot = function() {
|
|
4821
|
+
return !this.can.apply(this, arguments);
|
|
4822
|
+
}, A.throwUnlessCan = function() {
|
|
4823
|
+
var c;
|
|
4824
|
+
console.warn(`
|
|
4825
|
+
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
4826
|
+
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
4827
|
+
`.trim()), (c = Nn.from(this)).throwUnlessCan.apply(c, arguments);
|
|
4828
|
+
}, A.on = function(c, r) {
|
|
4829
|
+
var m = this[ee].events, y = !0;
|
|
4830
|
+
return m[c] || (m[c] = []), m[c].push(r), function() {
|
|
4831
|
+
if (y) {
|
|
4832
|
+
var h = m[c].indexOf(r);
|
|
4833
|
+
m[c].splice(h, 1), y = !1;
|
|
4834
|
+
}
|
|
4835
|
+
};
|
|
4836
|
+
}, A.emit = function(c, r) {
|
|
4837
|
+
var m = this[ee].events[c];
|
|
4838
|
+
m && m.slice(0).forEach(function(y) {
|
|
4839
|
+
return y(r);
|
|
4840
|
+
});
|
|
4841
|
+
}, Qn(e, [{
|
|
4842
|
+
key: "rules",
|
|
4843
|
+
get: function() {
|
|
4844
|
+
return this[ee].originalRules;
|
|
4845
|
+
}
|
|
4846
|
+
}]), e;
|
|
4847
|
+
}();
|
|
4848
|
+
function ea(e) {
|
|
4849
|
+
return Ms[e] ?? e;
|
|
4850
|
+
}
|
|
4851
|
+
function $a(e) {
|
|
4852
|
+
const A = Object.entries(Ms).find(([, u]) => u === e);
|
|
4853
|
+
return A ? A[0] : e;
|
|
4854
|
+
}
|
|
4855
4855
|
function ta(e) {
|
|
4856
4856
|
return e.map((A) => ({
|
|
4857
4857
|
...A,
|
|
4858
|
-
subject:
|
|
4858
|
+
subject: ea(A.subject),
|
|
4859
4859
|
reason: A.source !== void 0 ? JSON.stringify(A.source) : A.reason
|
|
4860
4860
|
}));
|
|
4861
4861
|
}
|
|
4862
4862
|
function sa(e) {
|
|
4863
|
-
return new
|
|
4863
|
+
return new $n(ta(e));
|
|
4864
4864
|
}
|
|
4865
4865
|
function ra(e, A, u) {
|
|
4866
4866
|
const c = Array.isArray(e) ? e : [e], r = sa(A), m = (w) => w.subject, y = (w) => r.can(w.action, m(w), w.field) ? !0 : w.coverSubject !== void 0 ? r.can(w.action, w.coverSubject, w.field) : !1, h = c.find((w) => !y(w));
|
|
@@ -4952,7 +4952,7 @@ async function ia(e, A) {
|
|
|
4952
4952
|
return {
|
|
4953
4953
|
canAccess: !1,
|
|
4954
4954
|
message: c.message,
|
|
4955
|
-
redirectTo:
|
|
4955
|
+
redirectTo: kr
|
|
4956
4956
|
};
|
|
4957
4957
|
}
|
|
4958
4958
|
return {
|
|
@@ -5106,21 +5106,21 @@ const ht = (e) => ({
|
|
|
5106
5106
|
validationManifest: {
|
|
5107
5107
|
requiredCaslPermissions: [
|
|
5108
5108
|
{
|
|
5109
|
-
action:
|
|
5109
|
+
action: We.Action.manage,
|
|
5110
5110
|
subject: e
|
|
5111
5111
|
}
|
|
5112
5112
|
]
|
|
5113
5113
|
}
|
|
5114
|
-
}), xa = Ke(be(() => import("./Main-
|
|
5115
|
-
be(() => import("./AuditLogList-
|
|
5116
|
-
), Fa = Ke(be(() => import("./Main-
|
|
5117
|
-
() => import("./PermissionSetList-
|
|
5114
|
+
}), xa = Ke(be(() => import("./Main-CsUo2UeJ.js"))), Va = Ke(be(() => import("./Main-Dc9eZBpa.js"))), Pa = Ke(
|
|
5115
|
+
be(() => import("./AuditLogList-ayMV64G1.js"))
|
|
5116
|
+
), Fa = Ke(be(() => import("./Main-D_dew1Zy.js"))), Oa = be(() => import("./EmployeeList-D_ZkY6oL.js")), qa = be(() => import("./RoleList-D6BdbJhj.js")), Ha = be(() => import("./TimesheetList-Bu47lfyS.js")), Xa = be(() => import("./TeamMemberList-Cf82_HoM.js")), Qa = be(
|
|
5117
|
+
() => import("./PermissionSetList-CkRVYnaB.js")
|
|
5118
5118
|
), eo = [
|
|
5119
5119
|
{
|
|
5120
5120
|
path: "/",
|
|
5121
5121
|
name: "home",
|
|
5122
5122
|
component: xa,
|
|
5123
|
-
meta: ht(
|
|
5123
|
+
meta: ht(We.Subject.Business.hrm_employee),
|
|
5124
5124
|
redirect: {
|
|
5125
5125
|
name: "employee"
|
|
5126
5126
|
/* EMPLOYEE */
|
|
@@ -5147,13 +5147,13 @@ const ht = (e) => ({
|
|
|
5147
5147
|
path: "/audit-log",
|
|
5148
5148
|
name: "audit-log",
|
|
5149
5149
|
component: Pa,
|
|
5150
|
-
meta: ht(
|
|
5150
|
+
meta: ht(We.Subject.Business.hrm_auditLog)
|
|
5151
5151
|
},
|
|
5152
5152
|
{
|
|
5153
5153
|
path: "/team",
|
|
5154
5154
|
name: "team",
|
|
5155
5155
|
component: Va,
|
|
5156
|
-
meta: ht(
|
|
5156
|
+
meta: ht(We.Subject.Business.hrm_teamMember),
|
|
5157
5157
|
redirect: {
|
|
5158
5158
|
name: "team-member"
|
|
5159
5159
|
/* TEAM_MEMBER */
|
|
@@ -6100,21 +6100,21 @@ const to = /* @__PURE__ */ xe({
|
|
|
6100
6100
|
);
|
|
6101
6101
|
};
|
|
6102
6102
|
export {
|
|
6103
|
-
|
|
6104
|
-
|
|
6103
|
+
Ja as C,
|
|
6104
|
+
_a as G,
|
|
6105
6105
|
T as R,
|
|
6106
6106
|
Ga as _,
|
|
6107
6107
|
Ea as a,
|
|
6108
|
-
|
|
6108
|
+
b,
|
|
6109
6109
|
Re as c,
|
|
6110
|
-
|
|
6110
|
+
We as d,
|
|
6111
6111
|
ea as e,
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6112
|
+
to as f,
|
|
6113
|
+
On as g,
|
|
6114
|
+
Fn as h,
|
|
6115
6115
|
so as i,
|
|
6116
|
-
|
|
6116
|
+
t as l,
|
|
6117
|
+
$a as m,
|
|
6117
6118
|
eo as r,
|
|
6118
|
-
Wa as u
|
|
6119
|
-
t as y
|
|
6119
|
+
Wa as u
|
|
6120
6120
|
};
|