@feedmepos/mf-connect 0.1.23-prod → 0.1.25-prod

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.
Files changed (93) hide show
  1. package/dist/{Analytic-DfTQmuSa.js → Analytic-DmQ3d3sr.js} +18 -17
  2. package/dist/{App-C5AMrBM2.js → App-BK6DtUuH.js} +6 -6
  3. package/dist/{Bin-nZv2ZrAD.js → Bin-B7F2tXkP.js} +19 -18
  4. package/dist/{Broadcast-1ViZILw6.js → Broadcast-6n2TGBgu.js} +13 -12
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Nuj7G5E1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-_hoK2zXW.js} +14 -8
  6. package/dist/{Card-CUAfRl0P.js → Card-D6AU_9dV.js} +57 -55
  7. package/dist/{Collections-DNlV8CiV.js → Collections-CMbKkYFL.js} +13 -11
  8. package/dist/{Credit-C8WVgeKO.js → Credit-CqLwf2JA.js} +35 -34
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CZmd7K3H.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js} +28 -27
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Crakwwgo.js → EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js} +6 -6
  11. package/dist/{Experience-C0ZrJ-rU.js → Experience-OoJ1ODiZ.js} +13 -12
  12. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  13. package/dist/Game-IAfjkExX.js +278 -0
  14. package/dist/{Index-C_mvHa_E.js → Index-DqHXbokQ.js} +14 -13
  15. package/dist/{Marketing-7lvR6gR_.js → Marketing-DIVehK5x.js} +8 -7
  16. package/dist/Member-BMT7m7s9.js +348 -0
  17. package/dist/{MemberList-BDsVY1bB.js → MemberList-C3JMhLW6.js} +270 -269
  18. package/dist/{MemberTransactions-DXgJ8Tua.js → MemberTransactions-lQLljdGi.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BbiWEoQQ.js → MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js} +15 -18
  20. package/dist/{Mission-CJnySjh4.js → Mission-BJsuCVHj.js} +118 -96
  21. package/dist/{Overview-ZENHKQhC.js → Overview-D1AMq951.js} +63 -62
  22. package/dist/{Point-DvYLQNmg.js → Point-DGffwTWG.js} +11 -10
  23. package/dist/{Promotion-CE6Mqev4.js → Promotion-Cdu7wiGv.js} +12 -11
  24. package/dist/Queue-Cm4ekHlP.js +249 -0
  25. package/dist/{Record-Cl4o08E4.js → Record-B0JjTQ3K.js} +21 -19
  26. package/dist/{Reward-C1hZ9c6y.js → Reward-U0gEl1no.js} +19 -18
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Co1mzeQA.js → RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js} +13 -12
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CDEiSeqW.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js} +12 -12
  29. package/dist/{Segment-1RH6jUyt.js → Segment-BsXsG6Ga.js} +19 -17
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CJTZZ4EH.js → SelectItems.vue_vue_type_script_setup_true_lang-hPQP_srV.js} +2 -2
  31. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js +188 -0
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DL2A84oN.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-rL9NYAk0.js} +3 -3
  33. package/dist/{Setting-DK9lsogh.js → Setting-DJxzwVSf.js} +20 -19
  34. package/dist/{Store-DSeXriUy.js → Store-sTvnMjPJ.js} +24 -23
  35. package/dist/{StoreRewards-DFUg0n5g.js → StoreRewards-CffMLGzL.js} +15 -14
  36. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js +994 -0
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-hR4OBTrC.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js} +1 -1
  38. package/dist/{Tier-Yq3BNKGq.js → Tier-BbfX13Ns.js} +25 -24
  39. package/dist/{Title-CwWan9gL.js → Title-Bf4fC78d.js} +28 -27
  40. package/dist/{Transaction-BgO5EYZB.js → Transaction-Ef6ee3WD.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CyUXbl30.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js} +6 -6
  42. package/dist/{Voucher-C2w8z86e.js → Voucher-CCH10Wrp.js} +38 -37
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-dEgiWiLL.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BME260O1.js → ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js} +1 -1
  45. package/dist/{app-BVIgk6aa.js → app-D2t3_10I.js} +1 -1
  46. package/dist/{app-BVsQcG_m.js → app-F5UOtzJ-.js} +235 -166
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CdvE-WIp.js → business-NXwwmhbL.js} +1 -1
  49. package/dist/{campaign-WGLWFuCK.js → campaign-BWkn-fFd.js} +9 -9
  50. package/dist/{campaign-gunNEZhU.js → campaign-Iww5PvJV.js} +2 -2
  51. package/dist/{campaign.enum-O82qvpU2.js → campaign.enum--kHpbveJ.js} +1 -1
  52. package/dist/{campaign.fn-Bzr9Jc5X.js → campaign.fn-D0wKIDQf.js} +123 -123
  53. package/dist/{collectible.enum-CzUCHExj.js → collectible.enum-BpsFdy57.js} +1 -1
  54. package/dist/{collection.fn-Czs8Mpdz.js → collection.fn-B-_j1A52.js} +2 -2
  55. package/dist/{dto-Czd638gm.js → dto-CjOlAnWp.js} +4 -4
  56. package/dist/{effect-D8Km5OHX.js → effect-BMe9xjgR.js} +1 -1
  57. package/dist/{email-addresses-2-RgQal8.js → email-addresses-BwGoUD7O.js} +1 -1
  58. package/dist/{export--jJWZuJy.js → export-Bsk4-mYp.js} +3 -3
  59. package/dist/{helper-BOwvTpT_.js → helper-CiybWTiD.js} +1 -1
  60. package/dist/{index-Bg8Lqk3s.js → index-7QyaWVGn.js} +1 -1
  61. package/dist/{index-DGi6aLjD.js → index-BAW03Ygy.js} +24 -21
  62. package/dist/{index-C6j2uVRJ.js → index-BG_-ksol.js} +1 -1
  63. package/dist/{index-FBWWEOV0.js → index-COTHSMx7.js} +1 -1
  64. package/dist/{index-DExfBo0i.js → index-CRa7QWQZ.js} +3 -3
  65. package/dist/{index-DllRE4Xv.js → index-Cs0QJDgH.js} +1 -1
  66. package/dist/{index-BMPlc7it.js → index-Cu28MWwC.js} +1162 -1129
  67. package/dist/{index-CpsX7fKq.js → index-CvKxhzaQ.js} +1 -1
  68. package/dist/{index-7SYnV8B2.js → index-D7AjQ5_0.js} +1273 -1273
  69. package/dist/{index-CKSGfZ62.js → index-OLChRkvG.js} +2 -2
  70. package/dist/{index-DRVIuG-G.js → index-WxOdPYZc.js} +1 -1
  71. package/dist/{index-CFxA9VYh.js → index-eJ4ofwfd.js} +10 -10
  72. package/dist/{index.esm2017-CkIJgInI.js → index.esm2017-DMXNt25X.js} +137 -137
  73. package/dist/loading-CScT_lmc.js +71 -0
  74. package/dist/{membership-ByveC1Cs.js → membership-DenkPJ5U.js} +3 -3
  75. package/dist/{money-C_wAhRJ4.js → money-B5hybQjS.js} +1 -1
  76. package/dist/{number-B1OxEx_j.js → number-anjTvmBi.js} +1 -1
  77. package/dist/objectid-BHmtsFsO.js +145 -0
  78. package/dist/{loading-C-HOw2p9.js → plugins-VONaCeWn.js} +1535 -1601
  79. package/dist/{reward-BOA1fyrM.js → reward-FwctH8OP.js} +1 -1
  80. package/dist/{rule-CfePtJap.js → rule-BqLIsoB6.js} +3 -3
  81. package/dist/{rule-builder-B7wNFPfi.js → rule-builder-EwN0tKLd.js} +1 -1
  82. package/dist/{template-CvIL9Pex.js → template-bVlMDuHk.js} +4 -4
  83. package/dist/{trigger-D7uzmrxE.js → trigger-Bh7yq_a0.js} +11 -11
  84. package/dist/usePagination-JoYaROkV.js +223 -0
  85. package/dist/{user-NlenrMEw.js → user-z65INcT0.js} +1 -1
  86. package/dist/vue-i18n-59FFzX8P.js +2365 -0
  87. package/dist/{usePagination-BFzJ3YC7.js → xlsx-D9VDeVL9.js} +2979 -3200
  88. package/package.json +3 -1
  89. package/dist/Game-KiwAxjQX.js +0 -256
  90. package/dist/Member-DR406GTr.js +0 -69
  91. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D_F7zaEl.js +0 -1105
  92. package/dist/objectid-CtnWn6lG.js +0 -145
  93. package/dist/vue-i18n-BjInRP6b.js +0 -2365
@@ -0,0 +1,188 @@
1
+ import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as b, createElementVNode as S, createVNode as c, toDisplayString as w } from "vue";
2
+ import { u as O } from "./loading-CScT_lmc.js";
3
+ import { p as Z } from "./plugins-VONaCeWn.js";
4
+ import { u as q } from "./app-wDQR6dpb.js";
5
+ import { m as z } from "./index-BAW03Ygy.js";
6
+ import { b as G } from "./index-Cu28MWwC.js";
7
+ import "./index-OLChRkvG.js";
8
+ import "./index-eJ4ofwfd.js";
9
+ import "./index-7QyaWVGn.js";
10
+ import "./index-CRa7QWQZ.js";
11
+ import { Z as d } from "./zod-Bg2FbC-D.js";
12
+ import { z as Y } from "./app-F5UOtzJ-.js";
13
+ import { u as j } from "./vue-i18n-59FFzX8P.js";
14
+ import { c as J } from "./index-CvKxhzaQ.js";
15
+ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, fe = /* @__PURE__ */ L({
16
+ __name: "SendCollectionSheet",
17
+ emits: ["success"],
18
+ setup(X, { expose: V, emit: I }) {
19
+ const { t: l } = j(), { minor: k } = O, A = I, n = p({
20
+ memberId: [],
21
+ amount: 1,
22
+ ref: ""
23
+ }), h = p(null), f = p(), v = p([]), r = p(!1), _ = p(), T = G.extend({
24
+ ref: Y.string().max(50, "Reference must be at most 50 characters").optional()
25
+ }), F = C(() => {
26
+ var a;
27
+ switch ((a = h.value) == null ? void 0 : a.type) {
28
+ case "MISSION":
29
+ return l("connect.sendCollectionSheet.stamp");
30
+ case "GAME":
31
+ return l("connect.sendCollectionSheet.game_token");
32
+ default:
33
+ return "Unknown";
34
+ }
35
+ }), u = C(() => {
36
+ const a = T.safeParse(n.value);
37
+ return a.success ? [] : a.error.errors;
38
+ });
39
+ function M(a) {
40
+ r.value = !0, h.value = a.campaign, f.value = null, n.value = {
41
+ memberId: [],
42
+ amount: 1,
43
+ ref: ""
44
+ };
45
+ }
46
+ function g() {
47
+ r.value = !1;
48
+ }
49
+ async function y(a) {
50
+ const t = await z.read({
51
+ limit: 25,
52
+ skip: 0,
53
+ sortBy: "_id",
54
+ search: a,
55
+ descending: !1
56
+ });
57
+ v.value = t.resources.map((s) => ({
58
+ label: `${s.name} (${s.phoneNumber})`,
59
+ value: s._id
60
+ }));
61
+ const m = 100;
62
+ await new Promise((s) => setTimeout(s, m));
63
+ }
64
+ async function U() {
65
+ var t;
66
+ await Z.confirm(
67
+ l("connect.sendCollectionSheet.confirmation_message", {
68
+ amount: n.value.amount,
69
+ type: F.value,
70
+ memberName: f.value ? (t = v.value.find((m) => m.value === f.value)) == null ? void 0 : t.label : "Unknown Member"
71
+ }),
72
+ l("connect.common.confirm"),
73
+ l("connect.common.confirm"),
74
+ l("connect.common.cancel")
75
+ ) && await k(
76
+ async () => {
77
+ var m;
78
+ await J.sendCollection((m = h.value) == null ? void 0 : m._id.toString(), {
79
+ memberId: n.value.memberId,
80
+ amount: n.value.amount,
81
+ ref: n.value.ref
82
+ }), await A("success"), g();
83
+ },
84
+ {
85
+ message: "Sending claim(s)",
86
+ successMessage: "Claim(s) created"
87
+ }
88
+ );
89
+ }
90
+ return V({
91
+ showSheet: M,
92
+ hideSheet: g
93
+ }), P(async () => {
94
+ await y("");
95
+ }), (a, t) => {
96
+ const m = i("FmCard"), s = i("FmSelect"), B = i("FmStepperField"), N = i("FmTextField"), E = i("FmForm"), x = i("FmButton"), R = i("FmSideSheet");
97
+ return $(), D(R, {
98
+ "max-width": 560,
99
+ "dismiss-away": !0,
100
+ header: e(l)("connect.sendCollectionSheet.title", {
101
+ type: e(F)
102
+ }),
103
+ modelValue: e(r),
104
+ "onUpdate:modelValue": [
105
+ t[5] || (t[5] = (o) => H(r) ? r.value = o : null),
106
+ t[6] || (t[6] = (o) => r.value = o)
107
+ ]
108
+ }, {
109
+ "side-sheet-footer": b(() => [
110
+ S("div", W, [
111
+ c(x, {
112
+ label: "Send",
113
+ loading: e(q)().isLoading,
114
+ onClick: t[3] || (t[3] = async () => {
115
+ var o;
116
+ return (o = e(_)) == null ? void 0 : o.validateInputs();
117
+ })
118
+ }, null, 8, ["loading"]),
119
+ c(x, {
120
+ label: "Cancel",
121
+ type: "button",
122
+ variant: "tertiary",
123
+ onClick: t[4] || (t[4] = (o) => r.value = !1)
124
+ })
125
+ ])
126
+ ]),
127
+ default: b(() => [
128
+ c(E, {
129
+ class: "space-y-16",
130
+ ref_key: "form",
131
+ ref: _,
132
+ onValidationSuccess: U,
133
+ blameFormChildOnValidationFailed: ""
134
+ }, {
135
+ default: b(() => [
136
+ c(m, {
137
+ variant: "outlined",
138
+ class: "p-16"
139
+ }, {
140
+ default: b(() => {
141
+ var o;
142
+ return [
143
+ S("div", K, w(e(l)("connect.campaign.common.campaign")), 1),
144
+ S("div", Q, w((o = e(h)) == null ? void 0 : o.name), 1)
145
+ ];
146
+ }),
147
+ _: 1
148
+ }),
149
+ c(s, {
150
+ "model-value": e(f),
151
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => {
152
+ e(n).memberId = [o], f.value = o;
153
+ }),
154
+ label: "Select member",
155
+ searchable: "",
156
+ items: e(v),
157
+ onSearch: y,
158
+ rules: [(o) => !!o || "Member is required"],
159
+ "helper-text": "Type to search member",
160
+ "helper-state": e(d).helperState(e(u), "memberId"),
161
+ "error-text": e(d).helperText(e(u), "memberId")
162
+ }, null, 8, ["model-value", "items", "rules", "helper-state", "error-text"]),
163
+ c(B, {
164
+ modelValue: e(n).amount,
165
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e(n).amount = o),
166
+ label: "Amount",
167
+ "helper-state": e(d).helperState(e(u), "amount"),
168
+ "helper-text": e(d).helperText(e(u), "amount")
169
+ }, null, 8, ["modelValue", "helper-state", "helper-text"]),
170
+ c(N, {
171
+ modelValue: e(n).ref,
172
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => e(n).ref = o),
173
+ label: "Reference (optional)",
174
+ "helper-state": e(d).helperState(e(u), "ref"),
175
+ "helper-text": e(d).helperText(e(u), "ref")
176
+ }, null, 8, ["modelValue", "helper-state", "helper-text"])
177
+ ]),
178
+ _: 1
179
+ }, 512)
180
+ ]),
181
+ _: 1
182
+ }, 8, ["header", "modelValue"]);
183
+ };
184
+ }
185
+ });
186
+ export {
187
+ fe as _
188
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as L, ref as c, watch as S, onMounted as R, resolveComponent as f, openBlock as j, createBlock as B, unref as t, isRef as _, withCtx as V, createElementVNode as v, createVNode as m, toDisplayString as N } from "vue";
2
2
  import { J as A } from "./JsonViewer-v8_C7l5N.js";
3
- import { u as E } from "./loading-C-HOw2p9.js";
3
+ import { u as E } from "./loading-CScT_lmc.js";
4
4
  import { u as P } from "./app-wDQR6dpb.js";
5
5
  import { l as U } from "./lodash-B5I3zXaY.js";
6
- import { m as D } from "./index-DGi6aLjD.js";
7
- import { c as J } from "./index-CpsX7fKq.js";
6
+ import { m as D } from "./index-BAW03Ygy.js";
7
+ import { c as J } from "./index-CvKxhzaQ.js";
8
8
  const O = { class: "space-y-16" }, T = { class: "fm-typo-en-body-md-600" }, $ = { class: "flex items-center justify-end" }, q = { class: "flex items-center gap-8" }, ee = /* @__PURE__ */ L({
9
9
  __name: "SendVoucherSheet",
10
10
  emits: ["success"],
@@ -2,18 +2,19 @@ import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resol
2
2
  import { h as _t } from "./moment-BWErdI6_.js";
3
3
  import { Z as Oe } from "./zod-Bg2FbC-D.js";
4
4
  import { useDialog as et } from "@feedmepos/ui-library";
5
- import { a as tt, u as Et, p as At, f as G } from "./loading-C-HOw2p9.js";
6
- import { u as Bt } from "./app-wDQR6dpb.js";
7
- import { u as Me, l as nt } from "./business-CdvE-WIp.js";
8
- import { u as ot } from "./membership-ByveC1Cs.js";
9
- import { q as Mt, h as St } from "./index-BMPlc7it.js";
5
+ import { u as Et } from "./loading-CScT_lmc.js";
6
+ import { u as At } from "./app-wDQR6dpb.js";
7
+ import { u as Me, l as tt } from "./business-NXwwmhbL.js";
8
+ import { u as nt } from "./membership-DenkPJ5U.js";
9
+ import { a as ot, p as Bt, f as G } from "./plugins-VONaCeWn.js";
10
+ import { r as Mt, i as St } from "./index-Cu28MWwC.js";
10
11
  import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
11
- import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-hR4OBTrC.js";
12
- import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-BbiWEoQQ.js";
13
- import { u as Nt } from "./vue-i18n-BjInRP6b.js";
12
+ import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js";
13
+ import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js";
14
+ import { u as Nt } from "./vue-i18n-59FFzX8P.js";
14
15
  import { useCoreStore as Ut } from "@feedmepos/mf-common";
15
- import { m as je } from "./index-FBWWEOV0.js";
16
- import { S as Lt } from "./index-7SYnV8B2.js";
16
+ import { m as je } from "./index-COTHSMx7.js";
17
+ import { S as Lt } from "./index-D7AjQ5_0.js";
17
18
  import { o as Ft } from "./objectId-dwaoBfJX.js";
18
19
  import { a as Rt } from "./object-qECH92oz.js";
19
20
  var ie = {}, Dt = function() {
@@ -1508,12 +1509,12 @@ const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
1508
1509
  ], -1), Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
1509
1510
  __name: "LinkDeviceDialog",
1510
1511
  setup(t) {
1511
- const e = Me(), i = ot(), r = et(), o = H(), n = H(), a = Sn.crmUrl, l = H(), s = me(() => i.membership), u = me(() => {
1512
+ const e = Me(), i = nt(), r = et(), o = H(), n = H(), a = Sn.crmUrl, l = H(), s = me(() => i.membership), u = me(() => {
1512
1513
  var m, d;
1513
1514
  return `https://${(m = s.value) != null && m.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${a}`;
1514
1515
  });
1515
1516
  async function f(m) {
1516
- const d = await nt.getOtp(m);
1517
+ const d = await tt.getOtp(m);
1517
1518
  return `${u.value}?link-device=${d.otp}`;
1518
1519
  }
1519
1520
  async function A(m) {
@@ -1557,7 +1558,7 @@ const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
1557
1558
  class: "mx-auto",
1558
1559
  variant: "plain",
1559
1560
  icon: "content_copy",
1560
- onClick: d[2] || (d[2] = (b) => c(tt)(c(l)))
1561
+ onClick: d[2] || (d[2] = (b) => c(ot)(c(l)))
1561
1562
  })
1562
1563
  ])
1563
1564
  ]),
@@ -1573,10 +1574,10 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1573
1574
  }, Dn = { class: "col-span-2 flex flex-col xs:col-span-3" }, kn = { class: "fm-typo-en-title-sm-800" }, Vn = { class: "space-y-24" }, xn = { class: "space-y-8" }, $n = { class: "fm-typo-en-title-sm-800" }, zn = { class: "fm-typo-body-lg-400" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, On = { class: "space-y-8" }, Yn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, jn = { class: "space-y-8" }, Jn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), qn = { class: "space-y-8" }, Gn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1), Qn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1), Xn = { class: "space-y-8" }, Zn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, [
1574
1575
  /* @__PURE__ */ ne(" Free Credit as Discount "),
1575
1576
  /* @__PURE__ */ w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1576
- ], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" }, Lo = /* @__PURE__ */ Xe({
1577
+ ], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" }, Fo = /* @__PURE__ */ Xe({
1577
1578
  __name: "Setting",
1578
1579
  setup(t) {
1579
- const e = Bt(), i = Ut(), r = Me(), o = ot(), { global: n, minor: a } = Et, l = et(), s = H(), u = H(!1), f = H([]), A = H(null), m = Mt, d = [
1580
+ const e = At(), i = Ut(), r = Me(), o = nt(), { global: n, minor: a } = Et, l = et(), s = H(), u = H(!1), f = H([]), A = H(null), m = Mt, d = [
1580
1581
  (E) => !E || E.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1581
1582
  (E) => !E || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(E) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1582
1583
  ], v = Qe.appUrl, C = me(() => {
@@ -1605,13 +1606,13 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1605
1606
  });
1606
1607
  }
1607
1608
  async function P(E) {
1608
- await At.remove(
1609
+ await Bt.remove(
1609
1610
  "Are you sure you want to unlink this device?",
1610
1611
  "Unlink device",
1611
1612
  "Unlink"
1612
1613
  ) && await a(
1613
1614
  async () => {
1614
- await nt.unregisterDevice(E), await r.readLocationDevices();
1615
+ await tt.unregisterDevice(E), await r.readLocationDevices();
1615
1616
  },
1616
1617
  {
1617
1618
  message: "Unlinking device",
@@ -1703,7 +1704,7 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1703
1704
  I(z, {
1704
1705
  icon: "content_copy",
1705
1706
  variant: "tertiary",
1706
- onClick: y[1] || (y[1] = (_) => c(tt)(c(C)))
1707
+ onClick: y[1] || (y[1] = (_) => c(ot)(c(C)))
1707
1708
  })
1708
1709
  ]),
1709
1710
  _: 1
@@ -1926,5 +1927,5 @@ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1926
1927
  }
1927
1928
  });
1928
1929
  export {
1929
- Lo as default
1930
+ Fo as default
1930
1931
  };
@@ -1,30 +1,31 @@
1
1
  import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as x, createElementBlock as B, createVNode as i, createCommentVNode as M, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as oe, reactive as Ke, onMounted as fe, watch as we, toRaw as He, createTextVNode as de, h as qe } from "vue";
2
2
  import { _ as Ye } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Me, useDialogChild as Oe, components as We } from "@feedmepos/ui-library";
4
- import { c as D, e as he, S as ze } from "./index-7SYnV8B2.js";
5
- import { d as se, a as Je, p as xe, u as Ee, n as Ge, f as Fe } from "./loading-C-HOw2p9.js";
6
- import { u as ke, C as me } from "./membership-ByveC1Cs.js";
7
- import { a as Xe, c as De } from "./object-qECH92oz.js";
4
+ import { c as D, e as he, S as ze } from "./index-D7AjQ5_0.js";
5
+ import { u as Ee } from "./loading-CScT_lmc.js";
6
+ import { u as ke, C as me } from "./membership-DenkPJ5U.js";
7
+ import { a as Je, c as De } from "./object-qECH92oz.js";
8
8
  import { _ as ue } from "./lodash-B5I3zXaY.js";
9
- import { u as be } from "./vue-i18n-BjInRP6b.js";
9
+ import { d as se, a as Ge, p as xe, n as Xe, f as Fe } from "./plugins-VONaCeWn.js";
10
+ import { u as be } from "./vue-i18n-59FFzX8P.js";
10
11
  import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
11
- import { z as Q, R as Ze } from "./app-BVsQcG_m.js";
12
- import { k as Qe, l as et, m as tt, n as Ae, o as nt } from "./index-BMPlc7it.js";
12
+ import { z as Q, R as Ze } from "./app-F5UOtzJ-.js";
13
+ import { l as Qe, m as et, n as tt, o as Ae, p as nt } from "./index-Cu28MWwC.js";
13
14
  import { u as Se } from "./app-wDQR6dpb.js";
14
- import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BME260O1.js";
15
+ import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js";
15
16
  import { J as Pe } from "./JsonViewer-v8_C7l5N.js";
16
- import { _ as ot } from "./index-CKSGfZ62.js";
17
+ import { _ as ot } from "./index-OLChRkvG.js";
17
18
  import { _ as at } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
18
19
  import { _ as lt } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
19
- import { z as st, a as rt } from "./money-C_wAhRJ4.js";
20
- import { F as it } from "./number-B1OxEx_j.js";
21
- import { t as dt } from "./helper-BOwvTpT_.js";
22
- import "./index-C6j2uVRJ.js";
23
- import "./index-CFxA9VYh.js";
24
- import "./index-Bg8Lqk3s.js";
25
- import "./index-DExfBo0i.js";
26
- import { m as ut } from "./index-DGi6aLjD.js";
27
- import { m as Ce } from "./index-FBWWEOV0.js";
20
+ import { z as st, a as rt } from "./money-B5hybQjS.js";
21
+ import { F as it } from "./number-anjTvmBi.js";
22
+ import { t as dt } from "./helper-CiybWTiD.js";
23
+ import "./index-BG_-ksol.js";
24
+ import "./index-eJ4ofwfd.js";
25
+ import "./index-7QyaWVGn.js";
26
+ import "./index-CRa7QWQZ.js";
27
+ import { m as ut } from "./index-BAW03Ygy.js";
28
+ import { m as Ce } from "./index-COTHSMx7.js";
28
29
  import { useRouter as ct } from "vue-router";
29
30
  function je(v) {
30
31
  return se.DineroFactory(v).toUnit();
@@ -609,7 +610,7 @@ const Nt = { class: "space-y-8" }, Dt = {
609
610
  i(c, {
610
611
  icon: "content_copy",
611
612
  variant: "tertiary",
612
- onClick: m[2] || (m[2] = (y) => e(Je)(e(b)))
613
+ onClick: m[2] || (m[2] = (y) => e(Ge)(e(b)))
613
614
  })
614
615
  ]),
615
616
  _: 1
@@ -1076,7 +1077,7 @@ const Xt = /* @__PURE__ */ ee({
1076
1077
  return Number.isNaN(C) ? 0 : C;
1077
1078
  });
1078
1079
  function O() {
1079
- t.value.taxTotals = s.value, f("update", Ae.parse(Xe(t.value)));
1080
+ t.value.taxTotals = s.value, f("update", Ae.parse(Je(t.value)));
1080
1081
  }
1081
1082
  function P() {
1082
1083
  return ue.cloneDeep(Ve);
@@ -1581,7 +1582,7 @@ var bn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https:
1581
1582
  const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8 items-center" }, hn = { class: "fm-typo-en-body-lg-600" }, _n = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, xn = /* @__PURE__ */ x("img", {
1582
1583
  src: Ye,
1583
1584
  class: "aspect-square w-[150px]"
1584
- }, null, -1), Cn = { class: "flex flex-col gap-16 text-center" }, Sn = { class: "fm-typo-en-title-sm-800" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qn = /* @__PURE__ */ ee({
1585
+ }, null, -1), Cn = { class: "flex flex-col gap-16 text-center" }, Sn = { class: "fm-typo-en-title-sm-800" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, eo = /* @__PURE__ */ ee({
1585
1586
  __name: "Store",
1586
1587
  setup(v) {
1587
1588
  const _ = {
@@ -1661,7 +1662,7 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
1661
1662
  k != O && (P[O].bundles.splice(U, 1), U = P[k].bundles.length), console.log(k, U, O, "ci, bi, originalCategoryIndex");
1662
1663
  const N = P[k];
1663
1664
  if (!N) {
1664
- Ge.error("Unexpected error", 2e3);
1665
+ Xe.error("Unexpected error", 2e3);
1665
1666
  return;
1666
1667
  }
1667
1668
  if (s == null) {
@@ -1836,5 +1837,5 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
1836
1837
  }
1837
1838
  });
1838
1839
  export {
1839
- Qn as default
1840
+ eo as default
1840
1841
  };
@@ -1,24 +1,25 @@
1
1
  import { defineComponent as G, ref as F, computed as N, onMounted as q, resolveComponent as v, openBlock as d, createBlock as x, unref as e, isRef as Y, withCtx as S, createElementVNode as l, createVNode as m, createElementBlock as O, createTextVNode as z, resolveDynamicComponent as H, toDisplayString as P, Fragment as j, createCommentVNode as U, h as C } from "vue";
2
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as Q, components as $ } from "@feedmepos/ui-library";
4
- import "./index-C6j2uVRJ.js";
5
- import { p as M, u as X, f as B } from "./loading-C-HOw2p9.js";
6
- import { C as Z, u as ee } from "./membership-ByveC1Cs.js";
7
- import { u as te } from "./vue-i18n-BjInRP6b.js";
8
- import { F as oe } from "./index-CKSGfZ62.js";
4
+ import "./index-BG_-ksol.js";
5
+ import { u as X } from "./loading-CScT_lmc.js";
6
+ import { C as Z, u as ee } from "./membership-DenkPJ5U.js";
7
+ import { p as M, f as B } from "./plugins-VONaCeWn.js";
8
+ import { u as te } from "./vue-i18n-59FFzX8P.js";
9
+ import { F as oe } from "./index-OLChRkvG.js";
9
10
  import { c as ae } from "./object-qECH92oz.js";
10
11
  import { u as K } from "./app-wDQR6dpb.js";
11
- import { u as ne } from "./business-CdvE-WIp.js";
12
+ import { u as ne } from "./business-NXwwmhbL.js";
12
13
  import { useCoreStore as se } from "@feedmepos/mf-common";
13
14
  import { Z as R } from "./zod-Bg2FbC-D.js";
14
- import { _ as ie } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BME260O1.js";
15
+ import { _ as ie } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js";
15
16
  import { _ as re } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
16
- import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-hR4OBTrC.js";
17
- import { _ as ce, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-Crakwwgo.js";
18
- import { i as de, t as ue } from "./helper-BOwvTpT_.js";
17
+ import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js";
18
+ import { _ as ce, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js";
19
+ import { i as de, t as ue } from "./helper-CiybWTiD.js";
19
20
  import { useRouter as pe } from "vue-router";
20
- import { m as D } from "./index-FBWWEOV0.js";
21
- import { R as k } from "./app-BVsQcG_m.js";
21
+ import { m as D } from "./index-COTHSMx7.js";
22
+ import { R as k } from "./app-F5UOtzJ-.js";
22
23
  const fe = {
23
24
  key: 0,
24
25
  class: "flex flex-col space-y-16 pr-12"
@@ -174,7 +175,7 @@ const fe = {
174
175
  }), he = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, Ce = /* @__PURE__ */ l("div", { class: "flex gap-8" }, null, -1), Se = /* @__PURE__ */ l("img", {
175
176
  src: J,
176
177
  class: "aspect-square w-[150px]"
177
- }, null, -1), Fe = { class: "flex flex-col gap-16 text-center" }, Ve = { class: "fm-typo-en-title-sm-800" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = /* @__PURE__ */ G({
178
+ }, null, -1), Fe = { class: "flex flex-col gap-16 text-center" }, Ve = { class: "fm-typo-en-title-sm-800" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ G({
178
179
  __name: "StoreRewards",
179
180
  setup(W) {
180
181
  const { t: n } = te(), T = Q(), A = {
@@ -418,5 +419,5 @@ const fe = {
418
419
  }
419
420
  });
420
421
  export {
421
- ze as default
422
+ Je as default
422
423
  };